ia-table 0.15.6 → 0.15.7

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.
@@ -2,12 +2,12 @@
2
2
  import * as J from "react";
3
3
  import Mn, { createContext as Tn, useContext as An, useMemo as Rn, useEffect as pe, useRef as Pe, useState as Ge, useCallback as Ie, useLayoutEffect as Fn, forwardRef as mn, useImperativeHandle as bn, memo as Hn } from "react";
4
4
  import { jsx as de, jsxs as Le } from "react/jsx-runtime";
5
- import { createPortal as Sn } from "react-dom";
6
- import { g as M, U as zn, f as Ve, L as De, s as kn, p as Ke, h as Un, m as an, S as Wn, B as dn } from "./RadioGroup-D3RQET6P.js";
5
+ import { createPortal as On } from "react-dom";
6
+ import { g as M, U as zn, f as Ve, L as De, s as kn, p as Ke, h as Un, m as sn, S as Wn, B as dn } from "./RadioGroup-D3RQET6P.js";
7
7
  import { create as Yn } from "zustand";
8
- const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ J.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" })), jn = (e, n) => (t, r, A) => (A.dispatch = (i) => (t((o) => e(o, i), !1, i), i), A.dispatchFromDevtools = !0, { dispatch: (...i) => A.dispatch(...i), ...n }), _n = jn, W = "_IATableOrdered", Me = (e = 100) => `${(/* @__PURE__ */ new Date()).getTime()}_${e}`, On = (e, n = { path: [] }) => {
9
- var f, c, E, g, C, L, l, p;
10
- const t = Me(), r = M(e), A = e._originalField || ((c = (f = r == null ? void 0 : r.split) == null ? void 0 : f.call(r, W)) == null ? void 0 : c[0]), i = ((C = (g = (E = e.column_name) == null ? void 0 : E.split) == null ? void 0 : g.call(E, W)) == null ? void 0 : C[0]) || e.column_name, o = ((p = (l = (L = e.accessor) == null ? void 0 : L.split) == null ? void 0 : l.call(L, W)) == null ? void 0 : p[0]) || e.accessor, d = r.split(W)[0];
8
+ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ J.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" })), _n = (e, n) => (t, r, A) => (A.dispatch = (i) => (t((o) => e(o, i), !1, i), i), A.dispatchFromDevtools = !0, { dispatch: (...i) => A.dispatch(...i), ...n }), jn = _n, W = "_IATableOrdered", Me = (e = 100) => `${(/* @__PURE__ */ new Date()).getTime()}_${e}`, Sn = (e, n = { path: [] }) => {
9
+ var f, c, u, g, C, L, a, p;
10
+ const t = Me(), r = M(e), A = e._originalField || ((c = (f = r == null ? void 0 : r.split) == null ? void 0 : f.call(r, W)) == null ? void 0 : c[0]), i = ((C = (g = (u = e.column_name) == null ? void 0 : u.split) == null ? void 0 : g.call(u, W)) == null ? void 0 : C[0]) || e.column_name, o = ((p = (a = (L = e.accessor) == null ? void 0 : L.split) == null ? void 0 : a.call(L, W)) == null ? void 0 : p[0]) || e.accessor, d = r.split(W)[0];
11
11
  return {
12
12
  accessor: `${o}${W}${t}`,
13
13
  field: `${A}${W}${t}`,
@@ -22,7 +22,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
22
22
  isReorderedColumn: !0
23
23
  };
24
24
  }, Kn = (e) => {
25
- var r, A, i, o, d, f, c, E, g, C, L, l, p, R, P, S, U, N;
25
+ var r, A, i, o, d, f, c, u, g, C, L, a, p, R, P, O, U, N;
26
26
  const n = { ...e };
27
27
  delete n.originalParentId, delete n.isReorderedColumn, delete n.originalId, delete n.uniqueSplitId, delete n.isSplitHierarchy, delete n.uniqueHierarchyId, delete n.originalPath;
28
28
  const t = M(e);
@@ -31,18 +31,18 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
31
31
  // Get the original field name before any ORDERED_SUFFIX
32
32
  accessor: ((i = (A = (r = e.accessor) == null ? void 0 : r.split) == null ? void 0 : A.call(r, W)) == null ? void 0 : i[0]) || e.accessor,
33
33
  field: e._originalField || ((d = (o = t == null ? void 0 : t.split) == null ? void 0 : o.call(t, W)) == null ? void 0 : d[0]),
34
- column_name: ((E = (c = (f = e.column_name) == null ? void 0 : f.split) == null ? void 0 : c.call(f, W)) == null ? void 0 : E[0]) || e.column_name,
34
+ column_name: ((u = (c = (f = e.column_name) == null ? void 0 : f.split) == null ? void 0 : c.call(f, W)) == null ? void 0 : u[0]) || e.column_name,
35
35
  _originalField: e._originalField || ((C = (g = t == null ? void 0 : t.split) == null ? void 0 : g.call(t, W)) == null ? void 0 : C[0]),
36
36
  path: e.originalPath ? (L = e.originalPath) == null ? void 0 : L.map((Q) => Q.split(W)[0]) : e.path,
37
- id: ((R = (p = (l = e.id) == null ? void 0 : l.split) == null ? void 0 : p.call(l, W)) == null ? void 0 : R[0]) || e.id,
37
+ id: ((R = (p = (a = e.id) == null ? void 0 : a.split) == null ? void 0 : p.call(a, W)) == null ? void 0 : R[0]) || e.id,
38
38
  originalPath: null,
39
39
  parent_id: (P = e.parent_id) == null ? void 0 : P.map(
40
40
  (Q) => {
41
- var j, v;
42
- return typeof Q == "string" ? (v = (j = Q == null ? void 0 : Q.split) == null ? void 0 : j.call(Q, W)) == null ? void 0 : v[0] : Q;
41
+ var _, v;
42
+ return typeof Q == "string" ? (v = (_ = Q == null ? void 0 : Q.split) == null ? void 0 : _.call(Q, W)) == null ? void 0 : v[0] : Q;
43
43
  }
44
44
  ),
45
- parentField: (N = (U = (S = e.parentField) == null ? void 0 : S.split) == null ? void 0 : U.call(S, W)) == null ? void 0 : N[0]
45
+ parentField: (N = (U = (O = e.parentField) == null ? void 0 : O.split) == null ? void 0 : U.call(O, W)) == null ? void 0 : N[0]
46
46
  };
47
47
  }, on = (e) => {
48
48
  var r, A, i, o;
@@ -51,21 +51,21 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
51
51
  const n = [...e];
52
52
  let t = 0;
53
53
  for (; t < n.length - 1; ) {
54
- const d = n[t], f = n[t + 1], c = d.originalPath || d.path, E = f.originalPath || f.path;
55
- if (!c || !E) {
54
+ const d = n[t], f = n[t + 1], c = d.originalPath || d.path, u = f.originalPath || f.path;
55
+ if (!c || !u) {
56
56
  t++;
57
57
  continue;
58
58
  }
59
59
  const g = Xn(d, f);
60
- if (g.length > 0 && g.length === c.length && g.length === E.length) {
61
- const L = d.isReorderedColumn && f.isReorderedColumn, l = Me(t), p = g[g.length - 1].split(W)[0], R = L ? {
60
+ if (g.length > 0 && g.length === c.length && g.length === u.length) {
61
+ const L = d.isReorderedColumn && f.isReorderedColumn, a = Me(t), p = g[g.length - 1].split(W)[0], R = L ? {
62
62
  ...d,
63
- accessor: `${((i = (A = (r = d.accessor) == null ? void 0 : r.split) == null ? void 0 : A.call(r, W)) == null ? void 0 : i[0]) || d.accessor}${W}${l}`,
64
- field: `${p}${W}${l}`,
65
- column_name: `${p}${W}${l}`,
63
+ accessor: `${((i = (A = (r = d.accessor) == null ? void 0 : r.split) == null ? void 0 : A.call(r, W)) == null ? void 0 : i[0]) || d.accessor}${W}${a}`,
64
+ field: `${p}${W}${a}`,
65
+ column_name: `${p}${W}${a}`,
66
66
  path: [
67
67
  ...((o = d.path) == null ? void 0 : o.slice(0, -1)) ?? [],
68
- `${p}${W}${l}`
68
+ `${p}${W}${a}`
69
69
  ],
70
70
  originalPath: [...g],
71
71
  children: []
@@ -73,10 +73,10 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
73
73
  ...Kn(d),
74
74
  children: []
75
75
  }, P = (U, N, Q) => {
76
- const j = [...Q, M(U)], v = {
76
+ const _ = [...Q, M(U)], v = {
77
77
  ...U,
78
- originalPath: j.map((K) => K.split(W)[0]),
79
- path: j
78
+ originalPath: _.map((K) => K.split(W)[0]),
79
+ path: _
80
80
  };
81
81
  return v.children && v.children.length > 0 && (v.children = v.children.map(
82
82
  (K) => P(
@@ -84,8 +84,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
84
84
  N,
85
85
  v.path
86
86
  )
87
- )), v.path = j, v;
88
- }, S = [];
87
+ )), v.path = _, v;
88
+ }, O = [];
89
89
  if (d.children && d.children.length > 0) {
90
90
  const U = M(R);
91
91
  d.children.forEach((N) => {
@@ -94,7 +94,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
94
94
  d.path || [],
95
95
  R.path || []
96
96
  );
97
- Q.parent_id = [U], Q.parentField = U, S.push(Q);
97
+ Q.parent_id = [U], Q.parentField = U, O.push(Q);
98
98
  });
99
99
  }
100
100
  if (f.children && f.children.length > 0) {
@@ -105,10 +105,10 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
105
105
  f.path || [],
106
106
  R.path || []
107
107
  );
108
- Q.parent_id = [U], Q.parentField = U, S.push(Q);
108
+ Q.parent_id = [U], Q.parentField = U, O.push(Q);
109
109
  });
110
110
  }
111
- R.children = S, n.splice(t, 2, R);
111
+ R.children = O, n.splice(t, 2, R);
112
112
  } else
113
113
  t++;
114
114
  }
@@ -118,8 +118,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
118
118
  }, Xn = (e, n) => {
119
119
  const t = (c) => c ? c.split(W)[0] : "", r = e.path || [], A = n.path || [];
120
120
  if (r.length > 0 && A.length > 0) {
121
- const c = t(r[0]), E = t(A[0]);
122
- if (c !== E)
121
+ const c = t(r[0]), u = t(A[0]);
122
+ if (c !== u)
123
123
  return [];
124
124
  }
125
125
  const i = e.originalPath || e.path, o = n.originalPath || n.path;
@@ -201,28 +201,28 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
201
201
  var C, L;
202
202
  if (!n || n.length === 0 || n.length === 1)
203
203
  return { removed: !1, hierarchy: null };
204
- const t = (l, p) => M(l) === p, r = e.findIndex(
205
- (l) => t(l, n[0])
204
+ const t = (a, p) => M(a) === p, r = e.findIndex(
205
+ (a) => t(a, n[0])
206
206
  );
207
207
  if (r === -1)
208
208
  return { removed: !1, hierarchy: null };
209
- const A = e[r], i = JSON.parse(JSON.stringify(A)), o = (l, p, R, P = [], S = 0) => {
210
- var Z, te, se, ae;
211
- if (!(l != null && l.children))
209
+ const A = e[r], i = JSON.parse(JSON.stringify(A)), o = (a, p, R, P = [], O = 0) => {
210
+ var Z, te, ae, se;
211
+ if (!(a != null && a.children))
212
212
  return { success: !1, hierarchy: null };
213
- const U = R[0], N = l.children.findIndex(
214
- (ue) => t(ue, U)
213
+ const U = R[0], N = a.children.findIndex(
214
+ (Ee) => t(Ee, U)
215
215
  );
216
216
  if (N === -1)
217
217
  return { success: !1, hierarchy: null };
218
218
  const Q = (Z = p.children) == null ? void 0 : Z.find(
219
- (ue) => t(ue, U)
219
+ (Ee) => t(Ee, U)
220
220
  );
221
221
  if (!Q)
222
222
  return { success: !1, hierarchy: null };
223
223
  if (R.length === 1) {
224
- l.children.splice(N, 1);
225
- const ue = Me(), fe = M(Q).split(W)[0], he = `${W}${ue}`, ie = `${fe}${he}`, ce = {
224
+ a.children.splice(N, 1);
225
+ const Ee = Me(), fe = M(Q).split(W)[0], he = `${W}${Ee}`, ie = `${fe}${he}`, ce = {
226
226
  ...Q,
227
227
  field: ie,
228
228
  column_name: Q.column_name ? `${Q.column_name.split(W)[0]}${he}` : ie,
@@ -236,55 +236,55 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
236
236
  };
237
237
  return P.length > 0 && (ce.parent_id = [P[P.length - 1]], ce.parentField = P[P.length - 1]), { success: !0, hierarchy: ce };
238
238
  }
239
- const j = Me(), v = M(Q).split(W)[0], K = `${W}${j}`, _ = `${v}${K}`, q = [...P, _], ee = l.children[N], ne = o(
239
+ const _ = Me(), v = M(Q).split(W)[0], K = `${W}${_}`, j = `${v}${K}`, q = [...P, j], ee = a.children[N], ne = o(
240
240
  ee,
241
241
  Q,
242
242
  R.slice(1),
243
243
  q,
244
- S + 1
244
+ O + 1
245
245
  );
246
246
  if (!ne.success)
247
247
  return ne;
248
- ((se = ee.children) == null ? void 0 : se.length) === 0 && !ee.isLeaf && l.children.splice(N, 1);
248
+ ((ae = ee.children) == null ? void 0 : ae.length) === 0 && !ee.isLeaf && a.children.splice(N, 1);
249
249
  const $ = {
250
250
  ...Q,
251
- field: _,
252
- column_name: Q.column_name ? `${Q.column_name.split(W)[0]}${K}` : _,
253
- accessor: Q.accessor ? `${Q.accessor.split(W)[0]}${K}` : _,
254
- id: Q.id ? `${Q.id.split(W)[0]}${K}` : _,
251
+ field: j,
252
+ column_name: Q.column_name ? `${Q.column_name.split(W)[0]}${K}` : j,
253
+ accessor: Q.accessor ? `${Q.accessor.split(W)[0]}${K}` : j,
254
+ id: Q.id ? `${Q.id.split(W)[0]}${K}` : j,
255
255
  path: q,
256
- originalPath: Q.originalPath || ((ae = Q.path) == null ? void 0 : ae.map((ue) => ue.split(W)[0])),
256
+ originalPath: Q.originalPath || ((se = Q.path) == null ? void 0 : se.map((Ee) => Ee.split(W)[0])),
257
257
  originalId: v,
258
258
  _originalField: Q._originalField || v,
259
259
  isReorderedColumn: !0,
260
260
  children: [ne.hierarchy]
261
261
  };
262
- return P.length > 0 && ($.parent_id = [P[P.length - 1]], $.parentField = P[P.length - 1]), ne.hierarchy && (ne.hierarchy.parent_id = [_], ne.hierarchy.parentField = _), {
262
+ return P.length > 0 && ($.parent_id = [P[P.length - 1]], $.parentField = P[P.length - 1]), ne.hierarchy && (ne.hierarchy.parent_id = [j], ne.hierarchy.parentField = j), {
263
263
  success: !0,
264
264
  hierarchy: $
265
265
  };
266
- }, d = Me(), f = M(i).split(W)[0], c = `${W}${d}`, E = `${f}${c}`, g = o(
266
+ }, d = Me(), f = M(i).split(W)[0], c = `${W}${d}`, u = `${f}${c}`, g = o(
267
267
  A,
268
268
  i,
269
269
  n.slice(1),
270
- [E],
270
+ [u],
271
271
  0
272
272
  );
273
273
  if (g.success) {
274
- const l = {
274
+ const a = {
275
275
  ...i,
276
- field: E,
277
- column_name: i.column_name ? `${i.column_name.split(W)[0]}${c}` : E,
278
- accessor: i.accessor ? `${i.accessor.split(W)[0]}${c}` : E,
279
- id: i.id ? `${i.id.split(W)[0]}${c}` : E,
280
- path: [E],
276
+ field: u,
277
+ column_name: i.column_name ? `${i.column_name.split(W)[0]}${c}` : u,
278
+ accessor: i.accessor ? `${i.accessor.split(W)[0]}${c}` : u,
279
+ id: i.id ? `${i.id.split(W)[0]}${c}` : u,
280
+ path: [u],
281
281
  originalPath: i.originalPath || ((C = i.path) == null ? void 0 : C.map((p) => p.split(W)[0])),
282
282
  originalId: f,
283
283
  _originalField: i._originalField || f,
284
284
  isReorderedColumn: !0,
285
285
  children: [g.hierarchy]
286
286
  };
287
- return g.hierarchy && (g.hierarchy.parent_id = [E], g.hierarchy.parentField = E), ((L = A.children) == null ? void 0 : L.length) === 0 && !A.isLeaf && e.splice(r, 1), { removed: !0, hierarchy: l };
287
+ return g.hierarchy && (g.hierarchy.parent_id = [u], g.hierarchy.parentField = u), ((L = A.children) == null ? void 0 : L.length) === 0 && !A.isLeaf && e.splice(r, 1), { removed: !0, hierarchy: a };
288
288
  }
289
289
  return { removed: !1, hierarchy: null };
290
290
  }, $n = (e, n, t) => {
@@ -306,9 +306,9 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
306
306
  pinned: f
307
307
  } = t[o];
308
308
  let c = o;
309
- const E = i === c;
309
+ const u = i === c;
310
310
  let g = 0, C = !1;
311
- if (E) {
311
+ if (u) {
312
312
  const { rightAddition: N } = et(
313
313
  e,
314
314
  n,
@@ -320,12 +320,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
320
320
  const L = Ne(
321
321
  t[i]
322
322
  );
323
- let l = null, p = null;
323
+ let a = null, p = null;
324
324
  const { removed: R, hierarchy: P } = qn(
325
325
  t,
326
326
  e.path
327
327
  );
328
- let S = P;
328
+ let O = P;
329
329
  if (C && R && !L)
330
330
  Ne(
331
331
  t[c]
@@ -351,25 +351,25 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
351
351
  n.path.slice(1),
352
352
  C
353
353
  );
354
- l = Q, p = N;
354
+ a = Q, p = N;
355
355
  }
356
- if ((p || l) && !S) {
356
+ if ((p || a) && !O) {
357
357
  const N = Ne(
358
358
  t[c]
359
359
  );
360
- S = t.splice(i, 1)[0], C && !R && !N && c--;
360
+ O = t.splice(i, 1)[0], C && !R && !N && c--;
361
361
  }
362
- if (S)
362
+ if (O)
363
363
  Vn({
364
364
  beforeHierarchy: p,
365
- afterHierarchy: l,
366
- newHierarchy: S,
365
+ afterHierarchy: a,
366
+ newHierarchy: O,
367
367
  targetColumFrozenState: d,
368
368
  targetColumnFrozenPinned: f
369
369
  }), Zn({
370
370
  beforeHierarchy: p,
371
- afterHierarchy: l,
372
- newHierarchy: S,
371
+ afterHierarchy: a,
372
+ newHierarchy: O,
373
373
  updatedtargetIndex: c,
374
374
  removeColumnsCount: g,
375
375
  isChildrenUpdate: !1,
@@ -422,38 +422,38 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
422
422
  const r = e.path || e.originalPath || [], A = n.path || n.originalPath || [], i = Jn(r, A), o = r[i], d = A[i], f = r[i - 1];
423
423
  let c = t;
424
424
  if (f && M(c) !== f) {
425
- const l = en(c, f);
426
- l && (c = l);
425
+ const a = en(c, f);
426
+ a && (c = a);
427
427
  }
428
- let E = -1, g = -1;
429
- c.children && (E = cn(
428
+ let u = -1, g = -1;
429
+ c.children && (u = cn(
430
430
  c.children,
431
431
  o
432
432
  ), g = cn(
433
433
  c.children,
434
434
  d
435
435
  ));
436
- const C = (l, p, R, P, S) => {
436
+ const C = (a, p, R, P, O) => {
437
437
  var N, Q;
438
438
  let U = i - 1;
439
439
  for (; U >= 0; ) {
440
- const j = p[U], v = R[U + 1];
440
+ const _ = p[U], v = R[U + 1];
441
441
  let K = t;
442
- if (j && M(K) !== j) {
443
- const _ = en(
442
+ if (_ && M(K) !== _) {
443
+ const j = en(
444
444
  t,
445
- j
445
+ _
446
446
  );
447
- _ && (K = _);
447
+ j && (K = j);
448
448
  }
449
449
  if (K.children) {
450
- const _ = K.children.findIndex((q) => {
450
+ const j = K.children.findIndex((q) => {
451
451
  const ee = M(q);
452
452
  return ee === v || ee.split(W)[0] === v || ee.split(W)[0] === P;
453
453
  });
454
- if (_ !== -1) {
454
+ if (j !== -1) {
455
455
  c = K;
456
- const q = (l === "target" ? r : A)[U + 1], ee = l === "target" ? o : d, ne = (Q = (N = c.children) == null ? void 0 : N.findIndex) == null ? void 0 : Q.call(
456
+ const q = (a === "target" ? r : A)[U + 1], ee = a === "target" ? o : d, ne = (Q = (N = c.children) == null ? void 0 : N.findIndex) == null ? void 0 : Q.call(
457
457
  N,
458
458
  ($) => {
459
459
  const Z = M($);
@@ -462,112 +462,112 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
462
462
  );
463
463
  return {
464
464
  found: !0,
465
- missingIndex: _ ?? -1,
465
+ missingIndex: j ?? -1,
466
466
  foundIndex: ne ?? -1
467
467
  };
468
468
  }
469
469
  }
470
470
  U--;
471
471
  }
472
- return console.warn(`Could not find ${l} in any common parent`), { found: !1, missingIndex: -1, foundIndex: S };
472
+ return console.warn(`Could not find ${a} in any common parent`), { found: !1, missingIndex: -1, foundIndex: O };
473
473
  };
474
- if (E === -1 && g === -1) {
475
- const l = o.split(W)[0], p = d.split(W)[0], R = Pn(
474
+ if (u === -1 && g === -1) {
475
+ const a = o.split(W)[0], p = d.split(W)[0], R = Pn(
476
476
  t,
477
- l,
477
+ a,
478
478
  p
479
479
  );
480
- R ? (c = R.parent, E = R.sourceIndex, g = R.targetIndex) : console.warn(
480
+ R ? (c = R.parent, u = R.sourceIndex, g = R.targetIndex) : console.warn(
481
481
  "Abhay Could not find any common parent containing both source and target"
482
482
  );
483
483
  }
484
- if (E >= 0 && g === -1) {
485
- const l = C(
484
+ if (u >= 0 && g === -1) {
485
+ const a = C(
486
486
  "target",
487
487
  r,
488
488
  A,
489
489
  d,
490
- E
490
+ u
491
491
  );
492
- l.found && (g = l.missingIndex, E = l.foundIndex);
492
+ a.found && (g = a.missingIndex, u = a.foundIndex);
493
493
  }
494
- if (g >= 0 && E === -1) {
495
- const l = C(
494
+ if (g >= 0 && u === -1) {
495
+ const a = C(
496
496
  "source",
497
497
  A,
498
498
  r,
499
499
  o,
500
500
  g
501
501
  );
502
- l.found && (E = l.missingIndex, g = l.foundIndex);
502
+ a.found && (u = a.missingIndex, g = a.foundIndex);
503
503
  }
504
- const L = E < g;
504
+ const L = u < g;
505
505
  return {
506
- sourceIndexInCommonParent: E,
506
+ sourceIndexInCommonParent: u,
507
507
  targetIndexInCommonParent: g,
508
508
  rightAddition: L
509
509
  };
510
510
  }, nt = (e, n, t, r) => {
511
- function A(c, E) {
511
+ function A(c, u) {
512
512
  if (!c.children)
513
513
  return { before: null, after: null };
514
- const g = c.children, C = t[E], L = g.findIndex((v) => v.field === C);
514
+ const g = c.children, C = t[u], L = g.findIndex((v) => v.field === C);
515
515
  if (L === -1)
516
516
  return { before: null, after: null };
517
- const l = [], p = [];
517
+ const a = [], p = [];
518
518
  g.forEach((v, K) => {
519
- K < L ? l.push(JSON.parse(JSON.stringify(v))) : K > L ? p.push(JSON.parse(JSON.stringify(v))) : E === t.length - 1 && (v.isLeaf || !v.children || v.children.length === 0 || v.children.length === 1) ? r ? l.push(JSON.parse(JSON.stringify(v))) : p.push(JSON.parse(JSON.stringify(v))) : (l.push(null), p.push(null));
519
+ K < L ? a.push(JSON.parse(JSON.stringify(v))) : K > L ? p.push(JSON.parse(JSON.stringify(v))) : u === t.length - 1 && (v.isLeaf || !v.children || v.children.length === 0 || v.children.length === 1) ? r ? a.push(JSON.parse(JSON.stringify(v))) : p.push(JSON.parse(JSON.stringify(v))) : (a.push(null), p.push(null));
520
520
  });
521
521
  const R = g[L];
522
- if (!(E === t.length - 1) || R.children && R.children.length > 1) {
522
+ if (!(u === t.length - 1) || R.children && R.children.length > 1) {
523
523
  const { before: v, after: K } = A(
524
524
  R,
525
- E + 1
525
+ u + 1
526
526
  );
527
527
  if (v) {
528
- const _ = l.indexOf(null);
529
- _ !== -1 && (l[_] = v);
528
+ const j = a.indexOf(null);
529
+ j !== -1 && (a[j] = v);
530
530
  }
531
531
  if (K) {
532
- const _ = p.indexOf(null);
533
- _ !== -1 && (p[_] = K);
532
+ const j = p.indexOf(null);
533
+ j !== -1 && (p[j] = K);
534
534
  }
535
535
  }
536
- const U = l.filter(
536
+ const U = a.filter(
537
537
  (v) => v !== null
538
538
  ), N = p.filter(
539
539
  (v) => v !== null
540
540
  ), Q = U.length > 0 ? {
541
541
  ...JSON.parse(JSON.stringify(c)),
542
542
  children: U
543
- } : null, j = N.length > 0 ? {
543
+ } : null, _ = N.length > 0 ? {
544
544
  ...JSON.parse(JSON.stringify(c)),
545
545
  children: N
546
546
  } : null;
547
- return { before: Q, after: j };
547
+ return { before: Q, after: _ };
548
548
  }
549
549
  const { before: i, after: o } = A(e, 0);
550
550
  let d = o;
551
- const f = (c, E = [], g = /* @__PURE__ */ new Map()) => {
551
+ const f = (c, u = [], g = /* @__PURE__ */ new Map()) => {
552
552
  !c || !c.children || c.children.length === 0 || c.children.forEach((C) => {
553
- const L = M(C).split(W)[0], l = Me(), p = `${L}_${l}`, R = g.get(p) || 0;
553
+ const L = M(C).split(W)[0], a = Me(), p = `${L}_${a}`, R = g.get(p) || 0;
554
554
  g.set(p, R + 1);
555
- const P = `${W}${l}_${R}`;
555
+ const P = `${W}${a}_${R}`;
556
556
  if (!C.originalPath && C.path && (C.originalPath = [
557
- ...C.path.map((S) => S.split(W)[0])
557
+ ...C.path.map((O) => O.split(W)[0])
558
558
  ]), C.originalId || (C.originalId = L), C.field = `${L}${P}`, C.accessor) {
559
- const S = C.accessor.split(W)[0];
560
- C.accessor = `${S}${P}`;
559
+ const O = C.accessor.split(W)[0];
560
+ C.accessor = `${O}${P}`;
561
561
  }
562
562
  if (C.column_name) {
563
- const S = C.column_name.split(W)[0];
564
- C.column_name = `${S}${P}`;
563
+ const O = C.column_name.split(W)[0];
564
+ C.column_name = `${O}${P}`;
565
565
  }
566
566
  if (C.id) {
567
- const S = C.id.split(W)[0];
568
- C.id = `${S}${P}`;
567
+ const O = C.id.split(W)[0];
568
+ C.id = `${O}${P}`;
569
569
  }
570
- C.path = [...E, C.field], E.length > 0 && (C.parent_id = [E[E.length - 1]]), C.isReorderedColumn = !0, f(C, C.path, g);
570
+ C.path = [...u, C.field], u.length > 0 && (C.parent_id = [u[u.length - 1]]), C.isReorderedColumn = !0, f(C, C.path, g);
571
571
  });
572
572
  };
573
573
  if (d) {
@@ -578,16 +578,16 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
578
578
  );
579
579
  c.push(...(d.path || []).slice(0, g));
580
580
  }
581
- const E = On(d, {
581
+ const u = Sn(d, {
582
582
  path: c
583
583
  });
584
584
  d = {
585
585
  ...d,
586
- ...E
586
+ ...u
587
587
  }, f(d, d.path);
588
588
  }
589
589
  return { before: i, after: d };
590
- }, s = {
590
+ }, l = {
591
591
  SET_DATA: "SET_DATA",
592
592
  SET_FILTERED_DATA: "SET_FILTERED_DATA",
593
593
  SET_COLUMNS: "SET_COLUMNS",
@@ -693,7 +693,9 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
693
693
  SET_NO_HEADER_SELECTION_CHECKBOX: "SET_NO_HEADER_SELECTION_CHECKBOX",
694
694
  SET_DATA_IS_TREE_DATA: "SET_DATA_IS_TREE_DATA",
695
695
  SET_VIRTUALIZATION_CONFIG: "SET_VIRTUALIZATION_CONFIG",
696
- SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS"
696
+ SET_DISABLE_CURRENT_PAGE_RECORDS: "SET_DISABLE_CURRENT_PAGE_RECORDS",
697
+ SET_FORCE_SHOW_LOADING: "SET_FORCE_SHOW_LOADING",
698
+ UPDATE_ROW_DATA_WITH_REFRESH: "UPDATE_ROW_DATA_WITH_REFRESH"
697
699
  }, Vt = (e = "iaTable") => {
698
700
  var n;
699
701
  window._pageTransitionTimers ? (window._pageTransitionTimers.forEach((t) => clearTimeout(t)), window._pageTransitionTimers = []) : window._pageTransitionTimers = [], (n = window._pageTransitions) != null && n[e] || (window._pageTransitions = {
@@ -730,14 +732,14 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
730
732
  }) => {
731
733
  if (!e) return;
732
734
  const o = e.closest(".ia-table-body-cell") || e;
733
- document.querySelectorAll(".ia-table-body-cell-selected").forEach((l) => {
734
- l.classList.remove("ia-table-body-cell-selected");
735
+ document.querySelectorAll(".ia-table-body-cell-selected").forEach((a) => {
736
+ a.classList.remove("ia-table-body-cell-selected");
735
737
  }), window.dispatchEvent(new CustomEvent("ia-table-clear-selection"));
736
- const f = n.iaTableInstanceId || "", c = e.getAttribute("data-row-id") || t, E = e.getAttribute("data-field") || "", g = e.getAttribute("data-pinned"), C = {
738
+ const f = n.iaTableInstanceId || "", c = e.getAttribute("data-row-id") || t, u = e.getAttribute("data-field") || "", g = e.getAttribute("data-pinned"), C = {
737
739
  rowIndex: t,
738
740
  colIndex: r,
739
741
  rowId: c,
740
- field: E,
742
+ field: u,
741
743
  pinnedType: g === "false" ? !1 : g,
742
744
  frozenColumnsLength: A,
743
745
  rowAttr: t,
@@ -925,11 +927,11 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
925
927
  case "smartGridDateRangePickerRenderer":
926
928
  break;
927
929
  default:
928
- st(e);
930
+ at(e);
929
931
  break;
930
932
  }
931
933
  }, 0);
932
- }, st = (e) => {
934
+ }, at = (e) => {
933
935
  setTimeout(() => {
934
936
  const n = e.querySelector(".ia-table-input");
935
937
  n && n.blur();
@@ -962,13 +964,13 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
962
964
  return;
963
965
  }
964
966
  }, 0);
965
- }, sr = (e, n, t, r, A, i, o, d, f, c, E) => {
966
- var R, P, S, U;
967
+ }, ar = (e, n, t, r, A, i, o, d, f, c, u) => {
968
+ var R, P, O, U;
967
969
  e.stopPropagation(), !e.shiftKey && ((P = (R = window.iaTableState) == null ? void 0 : R.multiSelection) != null && P.anchor) && rt();
968
970
  const g = tt(n);
969
971
  if (!g) return;
970
972
  const C = g.iaTableInstanceId;
971
- (S = window.iaTableSelectedCell) != null && S.target && window.iaTableSelectedCell.target.classList.remove(
973
+ (O = window.iaTableSelectedCell) != null && O.target && window.iaTableSelectedCell.target.classList.remove(
972
974
  "ia-table-body-cell-selected"
973
975
  );
974
976
  const L = e.target.closest(
@@ -976,7 +978,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
976
978
  );
977
979
  if (!L) return;
978
980
  L.classList.add("ia-table-body-cell-selected"), window.dispatchEvent(new CustomEvent("ia-table-clear-selection"));
979
- const l = L.getAttribute("data-row"), p = {
981
+ const a = L.getAttribute("data-row"), p = {
980
982
  rowIndex: t,
981
983
  colIndex: r,
982
984
  rowId: A,
@@ -988,15 +990,15 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
988
990
  target: L,
989
991
  column: f,
990
992
  rowData: c,
991
- cellValue: E,
992
- rowAttr: l
993
+ cellValue: u,
994
+ rowAttr: a
993
995
  // Add the row attribute for keyboard navigation
994
996
  };
995
997
  window.iaTableSelectedCell = p, C && window.iaTableState && window.iaTableState.selectedCells.set(C, p), window.iaTableState && g && (window.iaTableState.activeInstance = g), document.activeElement && document.activeElement !== document.body && document.activeElement.blur(), lt(L);
996
- }, at = (e, n) => !e || !n ? void 0 : (Array.isArray(n) ? n : n.split(".")).reduce(
998
+ }, st = (e, n) => !e || !n ? void 0 : (Array.isArray(n) ? n : n.split(".")).reduce(
997
999
  (r, A) => r && r[A] !== void 0 ? r[A] : void 0,
998
1000
  e
999
- ), ar = (e) => e == null ? "" : typeof e == "boolean" ? e ? "Yes" : "No" : e instanceof Date ? e.toLocaleString() : typeof e == "object" && e !== null ? Array.isArray(e) ? e.join(", ") : JSON.stringify(e) : String(e), dt = (e, n) => {
1001
+ ), sr = (e) => e == null ? "" : typeof e == "boolean" ? e ? "Yes" : "No" : e instanceof Date ? e.toLocaleString() : typeof e == "object" && e !== null ? Array.isArray(e) ? e.join(", ") : JSON.stringify(e) : String(e), dt = (e, n) => {
1000
1002
  const t = e.groupingLevel, r = n.originalFields && t && n.originalFields[t] ? n.originalFields[t] : M(n);
1001
1003
  return e[r];
1002
1004
  }, dr = (e, n, t, r, A) => {
@@ -1024,7 +1026,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1024
1026
  // Pass the table API to the valueGetter
1025
1027
  columnApi: r == null ? void 0 : r.columnApi,
1026
1028
  // Pass column API if available
1027
- getValue: (E) => e[E]
1029
+ getValue: (u) => e[u]
1028
1030
  };
1029
1031
  return o.valueGetter(c);
1030
1032
  } catch (c) {
@@ -1039,15 +1041,15 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1039
1041
  if (f && t) {
1040
1042
  const c = e[t];
1041
1043
  if (c && Array.isArray(c) && c.length > 0) {
1042
- const E = c;
1043
- for (const g of E)
1044
+ const u = c;
1045
+ for (const g of u)
1044
1046
  if (g && g[d] !== void 0)
1045
1047
  return g[d];
1046
1048
  }
1047
1049
  if (o.parent_id) {
1048
- const E = o.parent_id[0];
1049
- if (E && e[E]) {
1050
- const g = e[E];
1050
+ const u = o.parent_id[0];
1051
+ if (u && e[u]) {
1052
+ const g = e[u];
1051
1053
  if (typeof g == "object" && g !== null) {
1052
1054
  const C = g;
1053
1055
  return C[d] !== void 0 ? C[d] : "";
@@ -1055,7 +1057,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1055
1057
  }
1056
1058
  }
1057
1059
  }
1058
- return d.includes(".") && !e[d] ? at(e, d) : e[d] ?? "";
1060
+ return d.includes(".") && !e[d] ? st(e, d) : e[d] ?? "";
1059
1061
  }, cr = (e) => {
1060
1062
  const n = [], t = [];
1061
1063
  return e.forEach((r) => {
@@ -1082,22 +1084,22 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1082
1084
  t,
1083
1085
  typeof r == "string" ? r : void 0
1084
1086
  ) : e(r, t) : null, Ct = (e, n, t) => !e || e.length === 0 || Object.keys(n).length === 0 ? e : e.filter((r) => Object.entries(n).every(([A, i]) => !i || !i.length ? !0 : i.every((o) => {
1085
- const d = o.column || o.field || A, f = o.search_type || o.operator || "", c = t[d], E = c == null ? void 0 : c.type, g = be.includes(E || "");
1087
+ const d = o.column || o.field || A, f = o.search_type || o.operator || "", c = t[d], u = c == null ? void 0 : c.type, g = be.includes(u || "");
1086
1088
  let C = o.pattern || o.value || "";
1087
- const L = gt(c, E);
1089
+ const L = gt(c, u);
1088
1090
  if (L && c)
1089
1091
  return ft(
1090
1092
  L,
1091
1093
  f,
1092
1094
  r[d],
1093
1095
  g ? { min_val: o.min_val, max_val: o.max_val } : C,
1094
- E
1096
+ u
1095
1097
  );
1096
- const l = r[d];
1097
- if (l == null || l === "")
1098
+ const a = r[d];
1099
+ if (a == null || a === "")
1098
1100
  return !1;
1099
- if (be.includes(E || "")) {
1100
- const p = parseFloat(l);
1101
+ if (be.includes(u || "")) {
1102
+ const p = parseFloat(a);
1101
1103
  switch (f) {
1102
1104
  case "equals":
1103
1105
  return C = o.max_val ?? 0, p === parseFloat(String(C));
@@ -1117,18 +1119,18 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1117
1119
  return !0;
1118
1120
  }
1119
1121
  } else {
1120
- const p = String(l).toLowerCase(), R = String(C || "").toLowerCase(), P = R.includes(",") ? R.split(",").map((S) => S.trim()).filter(Boolean) : [R];
1122
+ const p = String(a).toLowerCase(), R = String(C || "").toLowerCase(), P = R.includes(",") ? R.split(",").map((O) => O.trim()).filter(Boolean) : [R];
1121
1123
  switch (f) {
1122
1124
  case "contains":
1123
- return P.some((S) => p.includes(S));
1125
+ return P.some((O) => p.includes(O));
1124
1126
  case "equals":
1125
- return P.some((S) => p === S);
1127
+ return P.some((O) => p === O);
1126
1128
  case "notEqual":
1127
- return P.every((S) => p !== S);
1129
+ return P.every((O) => p !== O);
1128
1130
  case "startsWith":
1129
- return P.some((S) => p.startsWith(S));
1131
+ return P.some((O) => p.startsWith(O));
1130
1132
  case "endsWith":
1131
- return P.some((S) => p.endsWith(S));
1133
+ return P.some((O) => p.endsWith(O));
1132
1134
  default:
1133
1135
  return !0;
1134
1136
  }
@@ -1139,65 +1141,65 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1139
1141
  if (!A) return [...e];
1140
1142
  const o = t == null ? void 0 : t[A], d = o == null ? void 0 : o.comparator;
1141
1143
  return [...e].sort((f, c) => {
1142
- const E = f[A], g = c[A];
1144
+ const u = f[A], g = c[A];
1143
1145
  return d ? d(
1144
- E,
1146
+ u,
1145
1147
  g,
1146
1148
  f,
1147
1149
  // nodeA (full row data)
1148
1150
  c,
1149
1151
  // nodeB (full row data)
1150
1152
  r ? n : n ? [n] : []
1151
- ) : E === g ? 0 : E == null ? 1 : g == null ? -1 : typeof E == "string" && typeof g == "string" ? i === "asc" ? E.localeCompare(g) : g.localeCompare(E) : i === "asc" ? E < g ? -1 : 1 : E > g ? -1 : 1;
1153
+ ) : u === g ? 0 : u == null ? 1 : g == null ? -1 : typeof u == "string" && typeof g == "string" ? i === "asc" ? u.localeCompare(g) : g.localeCompare(u) : i === "asc" ? u < g ? -1 : 1 : u > g ? -1 : 1;
1152
1154
  });
1153
1155
  }, Be = (e, n = { minWidth: 150 }) => {
1154
1156
  const t = {}, r = {};
1155
- e.forEach((l) => {
1156
- const p = M(l);
1157
- l.children && Array.isArray(l.children) && (r[p] = [], l.children.forEach((R) => {
1157
+ e.forEach((a) => {
1158
+ const p = M(a);
1159
+ a.children && Array.isArray(a.children) && (r[p] = [], a.children.forEach((R) => {
1158
1160
  const P = M(R);
1159
1161
  t[P] = p, r[p] ? r[p].push(P) : r[p] = [P];
1160
1162
  }));
1161
1163
  });
1162
- const A = e.map((l) => {
1164
+ const A = e.map((a) => {
1163
1165
  var q, ee;
1164
- const p = l.width !== void 0, R = l.field || M(l);
1165
- let P = l.is_frozen || !1, S = l.pinned === "right";
1166
+ const p = a.width !== void 0, R = a.field || M(a);
1167
+ let P = a.is_frozen || !1, O = a.pinned === "right";
1166
1168
  const U = [];
1167
1169
  let N = R;
1168
1170
  for (; t[N]; ) {
1169
1171
  const ne = t[N];
1170
1172
  U.push(ne), N = ne;
1171
1173
  }
1172
- const Q = l.children && l.children.length > 0;
1173
- let j = !1, v = !1;
1174
- Q && ((ee = (q = l.children) == null ? void 0 : q.forEach) == null || ee.call(q, (ne) => {
1174
+ const Q = a.children && a.children.length > 0;
1175
+ let _ = !1, v = !1;
1176
+ Q && ((ee = (q = a.children) == null ? void 0 : q.forEach) == null || ee.call(q, (ne) => {
1175
1177
  const $ = M(ne), Z = e.find(
1176
1178
  (te) => M(te) === $
1177
1179
  );
1178
- Z && (Z.is_frozen && (j = !0), Z.pinned === "right" && (v = !0));
1179
- }), j && (P = !0), v && (S = !0));
1180
- const K = (n == null ? void 0 : n.minWidth) || 150, _ = l.width ? Math.max(l.width, K) : K;
1180
+ Z && (Z.is_frozen && (_ = !0), Z.pinned === "right" && (v = !0));
1181
+ }), _ && (P = !0), v && (O = !0));
1182
+ const K = (n == null ? void 0 : n.minWidth) || 150, j = a.width ? Math.max(a.width, K) : K;
1181
1183
  return {
1182
- ...l,
1184
+ ...a,
1183
1185
  field: R,
1184
- headerName: l.headerName || l.label,
1186
+ headerName: a.headerName || a.label,
1185
1187
  // Set width and track if it's a custom width or auto width
1186
- width: _,
1187
- originalWidth: l.width || K,
1188
+ width: j,
1189
+ originalWidth: a.width || K,
1188
1190
  // Store original width
1189
1191
  isAutoWidth: !p,
1190
1192
  // Mark columns without explicit width as auto-width
1191
- filterable: l.is_searchable !== !1 || l.isSearchable !== !1,
1192
- isSortable: l.isSortable !== !1,
1193
- resizable: l.resizable !== !1,
1194
- hidden: Ve(l),
1195
- align: l.align || "left",
1193
+ filterable: a.is_searchable !== !1 || a.isSearchable !== !1,
1194
+ isSortable: a.isSortable !== !1,
1195
+ resizable: a.resizable !== !1,
1196
+ hidden: Ve(a),
1197
+ align: a.align || "left",
1196
1198
  is_frozen: P,
1197
1199
  // Ensure left-pinned property is set
1198
- pinned: S ? "right" : l.pinned,
1200
+ pinned: O ? "right" : a.pinned,
1199
1201
  // Ensure right-pinned property is set
1200
- originalIndex: e.indexOf(l),
1202
+ originalIndex: e.indexOf(a),
1201
1203
  // Store original index
1202
1204
  parentColumns: U,
1203
1205
  // Store the ancestry chain
@@ -1206,17 +1208,17 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1206
1208
  // Store if this is a parent with children
1207
1209
  hasChildren: Q,
1208
1210
  // Store whether any children are frozen or right-pinned
1209
- hasAnyFrozenChildren: j,
1211
+ hasAnyFrozenChildren: _,
1210
1212
  hasAnyRightPinnedChildren: v
1211
1213
  };
1212
1214
  });
1213
- A.forEach((l) => {
1214
- l.is_frozen && l.parentColumns.forEach((p) => {
1215
+ A.forEach((a) => {
1216
+ a.is_frozen && a.parentColumns.forEach((p) => {
1215
1217
  const R = A.find(
1216
1218
  (P) => M(P) === p
1217
1219
  );
1218
1220
  R && (R.is_frozen = !0);
1219
- }), l.pinned === "right" && l.parentColumns.forEach((p) => {
1221
+ }), a.pinned === "right" && a.parentColumns.forEach((p) => {
1220
1222
  const R = A.find(
1221
1223
  (P) => M(P) === p
1222
1224
  );
@@ -1225,7 +1227,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1225
1227
  });
1226
1228
  const i = [
1227
1229
  ...A
1228
- ].sort((l, p) => l.is_frozen && !p.is_frozen ? -1 : !l.is_frozen && p.is_frozen || l.pinned === "right" && p.pinned !== "right" ? 1 : l.pinned !== "right" && p.pinned === "right" ? -1 : l.originalIndex - p.originalIndex), o = {
1230
+ ].sort((a, p) => a.is_frozen && !p.is_frozen ? -1 : !a.is_frozen && p.is_frozen || a.pinned === "right" && p.pinned !== "right" ? 1 : a.pinned !== "right" && p.pinned === "right" ? -1 : a.originalIndex - p.originalIndex), o = {
1229
1231
  indexes: [],
1230
1232
  positions: {},
1231
1233
  totalWidth: 0,
@@ -1239,42 +1241,42 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1239
1241
  positions: {},
1240
1242
  totalWidth: 0
1241
1243
  }, f = A.filter(
1242
- (l) => l.is_frozen && !l.hidden
1244
+ (a) => a.is_frozen && !a.hidden
1243
1245
  ), c = A.filter(
1244
- (l) => l.pinned === "right" && !l.hidden
1246
+ (a) => a.pinned === "right" && !a.hidden
1245
1247
  );
1246
- let E = 0;
1247
- function g(l, p) {
1248
+ let u = 0;
1249
+ function g(a, p) {
1248
1250
  var U, N, Q;
1249
- const R = M(l), P = p;
1251
+ const R = M(a), P = p;
1250
1252
  o.indexes.push(R), o.positions[R] = P;
1251
- let S;
1252
- if (l && l.children && ((U = l.children) == null ? void 0 : U.length) > 0) {
1253
- let j = 0;
1254
- (Q = (N = l.children) == null ? void 0 : N.forEach) == null || Q.call(N, (v) => {
1253
+ let O;
1254
+ if (a && a.children && ((U = a.children) == null ? void 0 : U.length) > 0) {
1255
+ let _ = 0;
1256
+ (Q = (N = a.children) == null ? void 0 : N.forEach) == null || Q.call(N, (v) => {
1255
1257
  if (Ve(v))
1256
1258
  return;
1257
- const K = P + j, _ = g(v, K);
1258
- j += _;
1259
- }), S = j;
1259
+ const K = P + _, j = g(v, K);
1260
+ _ += j;
1261
+ }), O = _;
1260
1262
  } else {
1261
- const j = n.minWidth || 150;
1262
- S = l.width && l.width < j ? j : l.width || j;
1263
+ const _ = n.minWidth || 150;
1264
+ O = a.width && a.width < _ ? _ : a.width || _;
1263
1265
  }
1264
- return S;
1266
+ return O;
1265
1267
  }
1266
- f.forEach((l) => {
1267
- if (Ve(l))
1268
+ f.forEach((a) => {
1269
+ if (Ve(a))
1268
1270
  return;
1269
- const p = g(l, E);
1270
- E += p;
1271
- }), o.totalWidth = E;
1271
+ const p = g(a, u);
1272
+ u += p;
1273
+ }), o.totalWidth = u;
1272
1274
  let C = 0;
1273
- return [...c].reverse().forEach((l) => {
1274
- const p = M(l);
1275
- d.indexes.push(p), d.positions[p] = C, C += l.width || n.minWidth;
1275
+ return [...c].reverse().forEach((a) => {
1276
+ const p = M(a);
1277
+ d.indexes.push(p), d.positions[p] = C, C += a.width || n.minWidth;
1276
1278
  }), d.totalWidth = C, d.rightIndexes = c.map(
1277
- (l) => M(l)
1279
+ (a) => M(a)
1278
1280
  ), o.rightPinned = {
1279
1281
  indexes: d.indexes,
1280
1282
  positions: d.positions,
@@ -1295,41 +1297,41 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1295
1297
  t,
1296
1298
  r
1297
1299
  ));
1298
- }), { parentToChildrenMap: t, childToParentMap: r }), ut = {
1299
- [s.REORDER_COLUMNS]: "columnMoved",
1300
- [s.SET_SELECTED_ROWS]: "selectionChanged",
1301
- [s.TOGGLE_COLUMN_VISIBILITY]: "columnVisibilityChanged",
1302
- [s.SET_COLUMN_FILTER]: "filterChanged",
1303
- [s.SET_COLUMN_WIDTH]: "columnResized",
1304
- [s.SET_COLUMNS_WIDTH]: "columnResized",
1305
- [s.REMOVE_COLUMN_FILTER]: "filterChanged",
1306
- [s.APPLY_FILTERS]: "filterChanged",
1307
- [s.SET_SORT]: "sortChanged",
1300
+ }), { parentToChildrenMap: t, childToParentMap: r }), Et = {
1301
+ [l.REORDER_COLUMNS]: "columnMoved",
1302
+ [l.SET_SELECTED_ROWS]: "selectionChanged",
1303
+ [l.TOGGLE_COLUMN_VISIBILITY]: "columnVisibilityChanged",
1304
+ [l.SET_COLUMN_FILTER]: "filterChanged",
1305
+ [l.SET_COLUMN_WIDTH]: "columnResized",
1306
+ [l.SET_COLUMNS_WIDTH]: "columnResized",
1307
+ [l.REMOVE_COLUMN_FILTER]: "filterChanged",
1308
+ [l.APPLY_FILTERS]: "filterChanged",
1309
+ [l.SET_SORT]: "sortChanged",
1308
1310
  // SET_COLUMNS is used for column resizing in ColumnResizer
1309
- [s.UPDATE_ROW_DATA]: "cellValueChanged",
1310
- [s.UPDATE_ROW_DATA_OBJECT]: "rowDataChanged",
1311
+ [l.UPDATE_ROW_DATA]: "cellValueChanged",
1312
+ [l.UPDATE_ROW_DATA_OBJECT]: "rowDataChanged",
1311
1313
  // Row group events
1312
- [s.TOGGLE_ROW_GROUP]: "rowGroupToggled",
1313
- [s.SET_ROW_GROUP_DATA]: "rowGroupDataLoaded",
1314
- [s.SET_PAGE]: "paginationChanged",
1315
- [s.SET_PAGE_SIZE]: "paginationChanged",
1316
- [s.TOGGLE_GROUP_EXPANSION]: "rowGroupToggled"
1317
- }, Et = [
1318
- s.SET_COLUMNS,
1319
- s.TOGGLE_COLUMN_VISIBILITY,
1320
- s.REORDER_COLUMNS,
1321
- s.SET_COLUMNS_WIDTH,
1322
- s.SET_COLUMN_WIDTH,
1323
- s.TOGGLE_FREEZE_COLUMN,
1324
- s.PIN_COLUMN_RIGHT,
1325
- s.UNPIN_COLUMN_RIGHT,
1326
- s.SET_PAGE,
1327
- s.SET_COLUMN_FILTER,
1328
- s.REMOVE_COLUMN_FILTER,
1329
- s.APPLY_FILTERS,
1330
- s.SET_SELECTED_ROWS,
1331
- s.SET_IS_SELECT_ALL_RECORDS,
1332
- s.SET_SORT
1314
+ [l.TOGGLE_ROW_GROUP]: "rowGroupToggled",
1315
+ [l.SET_ROW_GROUP_DATA]: "rowGroupDataLoaded",
1316
+ [l.SET_PAGE]: "paginationChanged",
1317
+ [l.SET_PAGE_SIZE]: "paginationChanged",
1318
+ [l.TOGGLE_GROUP_EXPANSION]: "rowGroupToggled"
1319
+ }, ut = [
1320
+ l.SET_COLUMNS,
1321
+ l.TOGGLE_COLUMN_VISIBILITY,
1322
+ l.REORDER_COLUMNS,
1323
+ l.SET_COLUMNS_WIDTH,
1324
+ l.SET_COLUMN_WIDTH,
1325
+ l.TOGGLE_FREEZE_COLUMN,
1326
+ l.PIN_COLUMN_RIGHT,
1327
+ l.UNPIN_COLUMN_RIGHT,
1328
+ l.SET_PAGE,
1329
+ l.SET_COLUMN_FILTER,
1330
+ l.REMOVE_COLUMN_FILTER,
1331
+ l.APPLY_FILTERS,
1332
+ l.SET_SELECTED_ROWS,
1333
+ l.SET_IS_SELECT_ALL_RECORDS,
1334
+ l.SET_SORT
1333
1335
  ], ht = ({
1334
1336
  freezeColumnField: e,
1335
1337
  frozen: n,
@@ -1343,13 +1345,13 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1343
1345
  A,
1344
1346
  n,
1345
1347
  e
1346
- ), f = window.innerWidth * 0.6, c = r.frozenColumns.totalWidth - (((N = r.frozenColumns.rightPinned) == null ? void 0 : N.totalWidth) || 0), E = (j) => {
1347
- let v = j.width || 150;
1348
- return j.children && j.children.length > 0 && (v = j.children.reduce(
1349
- (K, _) => K + E(_),
1348
+ ), f = window.innerWidth * 0.6, c = r.frozenColumns.totalWidth - (((N = r.frozenColumns.rightPinned) == null ? void 0 : N.totalWidth) || 0), u = (_) => {
1349
+ let v = _.width || 150;
1350
+ return _.children && _.children.length > 0 && (v = _.children.reduce(
1351
+ (K, j) => K + u(j),
1350
1352
  0
1351
1353
  )), v;
1352
- }, g = E(
1354
+ }, g = u(
1353
1355
  o || A
1354
1356
  ), L = c + g > f;
1355
1357
  if (n && L && i)
@@ -1362,31 +1364,31 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1362
1364
  timeout: 5e3
1363
1365
  }
1364
1366
  };
1365
- let l = -1;
1366
- o && (l = d.findIndex((j) => {
1367
- const v = o.is_frozen, K = o.pinned, _ = o.originalPath || o.path || [], q = j.originalPath || j.path || [];
1368
- return j.is_frozen === v && j.pinned === K && q[0] === _[0];
1367
+ let a = -1;
1368
+ o && (a = d.findIndex((_) => {
1369
+ const v = o.is_frozen, K = o.pinned, j = o.originalPath || o.path || [], q = _.originalPath || _.path || [];
1370
+ return _.is_frozen === v && _.pinned === K && q[0] === j[0];
1369
1371
  }));
1370
1372
  const p = [...d];
1371
- o && l !== -1 ? p.splice(l, 0, o) : o && p.push(o);
1373
+ o && a !== -1 ? p.splice(a, 0, o) : o && p.push(o);
1372
1374
  const R = on(p), { processedColumns: P } = De(
1373
1375
  R,
1374
1376
  r.expandedColumnGroups,
1375
1377
  0,
1376
1378
  null,
1377
1379
  ((Q = r.defaultColDef) == null ? void 0 : Q.minWidth) || 150
1378
- ), { columns: S, frozenData: U } = Be(
1380
+ ), { columns: O, frozenData: U } = Be(
1379
1381
  P,
1380
1382
  r.defaultColDef || { minWidth: 150 }
1381
1383
  );
1382
1384
  return {
1383
1385
  ...r,
1384
- columns: S,
1386
+ columns: O,
1385
1387
  frozenColumns: U
1386
1388
  };
1387
1389
  }, pt = (e, n, t, r) => {
1388
- var L, l, p, R, P;
1389
- const A = ((L = n.path) == null ? void 0 : L.slice(0, -1)) || [], i = kn(e), o = ((p = (l = n.path) == null ? void 0 : l.slice(0, -1)) == null ? void 0 : p.join("/")) || "", d = i[(o == null ? void 0 : o.toLowerCase()) || ""], f = ((R = d == null ? void 0 : d.children) == null ? void 0 : R.length) || 0;
1390
+ var L, a, p, R, P;
1391
+ const A = ((L = n.path) == null ? void 0 : L.slice(0, -1)) || [], i = kn(e), o = ((p = (a = n.path) == null ? void 0 : a.slice(0, -1)) == null ? void 0 : p.join("/")) || "", d = i[(o == null ? void 0 : o.toLowerCase()) || ""], f = ((R = d == null ? void 0 : d.children) == null ? void 0 : R.length) || 0;
1390
1392
  let c = null;
1391
1393
  if (A.length === 0)
1392
1394
  return {
@@ -1398,53 +1400,53 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1398
1400
  } : U)
1399
1401
  };
1400
1402
  {
1401
- let S = null, U = null, N = "", Q = [];
1402
- for (let j = 0; j < A.length; j++) {
1403
- const v = A[j];
1403
+ let O = null, U = null, N = "", Q = [];
1404
+ for (let _ = 0; _ < A.length; _++) {
1405
+ const v = A[_];
1404
1406
  N = N ? `${N}/${v}` : v;
1405
1407
  const K = i[N.toLowerCase()];
1406
1408
  if (!K)
1407
1409
  continue;
1408
- const _ = {
1410
+ const j = {
1409
1411
  ...K,
1410
- ...t || f > 1 ? On(K, { path: Q }) : K,
1412
+ ...t || f > 1 ? Sn(K, { path: Q }) : K,
1411
1413
  is_frozen: t,
1412
1414
  pinned: t ? "left" : null,
1413
1415
  children: []
1414
1416
  // Clear children as we'll rebuild the hierarchy
1415
1417
  };
1416
- Q = _.path || [], j === 0 && (U = _), S && (S.children = [_]), S = _;
1418
+ Q = j.path || [], _ === 0 && (U = j), O && (O.children = [j]), O = j;
1417
1419
  }
1418
- if (S) {
1419
- const j = S.originalPath || (S.path ? S.path.map((q) => q.split(W)[0]) : []), v = M(n), K = v.split(W)[0], _ = [...j, K];
1420
- S.children = [
1420
+ if (O) {
1421
+ const _ = O.originalPath || (O.path ? O.path.map((q) => q.split(W)[0]) : []), v = M(n), K = v.split(W)[0], j = [..._, K];
1422
+ O.children = [
1421
1423
  {
1422
1424
  ...n,
1423
1425
  is_frozen: t,
1424
1426
  pinned: t ? "left" : null,
1425
- originalPath: _,
1426
- path: [...S.path || [], v]
1427
+ originalPath: j,
1428
+ path: [...O.path || [], v]
1427
1429
  }
1428
1430
  ];
1429
1431
  }
1430
1432
  c = U;
1431
1433
  }
1432
- const E = (S, U) => {
1433
- let N = JSON.parse(JSON.stringify(S));
1434
+ const u = (O, U) => {
1435
+ let N = JSON.parse(JSON.stringify(O));
1434
1436
  const Q = n.path || [];
1435
1437
  if (Q.length === 0)
1436
1438
  return N.filter(
1437
- (_) => M(_) !== U
1439
+ (j) => M(j) !== U
1438
1440
  );
1439
- const j = (_, q) => {
1440
- let ee = _, ne = null, $ = -1;
1441
+ const _ = (j, q) => {
1442
+ let ee = j, ne = null, $ = -1;
1441
1443
  for (let Z = 0; Z < q.length - 1; Z++) {
1442
- const te = q[Z], se = ee.findIndex(
1443
- (ae) => M(ae) === te
1444
+ const te = q[Z], ae = ee.findIndex(
1445
+ (se) => M(se) === te
1444
1446
  );
1445
- if (se === -1)
1447
+ if (ae === -1)
1446
1448
  return console.warn(`Could not find column with field ${te} in path`), { parent: null, targetIndex: -1 };
1447
- ne = ee[se], ee = ne.children || [];
1449
+ ne = ee[ae], ee = ne.children || [];
1448
1450
  }
1449
1451
  if (q.length > 0) {
1450
1452
  const Z = q[q.length - 1];
@@ -1453,10 +1455,10 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1453
1455
  );
1454
1456
  }
1455
1457
  return { parent: ne, targetIndex: $ };
1456
- }, { parent: v, targetIndex: K } = j(N, Q);
1458
+ }, { parent: v, targetIndex: K } = _(N, Q);
1457
1459
  if (v && v.children && K !== -1) {
1458
- const _ = v.children[K];
1459
- if (_ && M(_) === r)
1460
+ const j = v.children[K];
1461
+ if (j && M(j) === r)
1460
1462
  v.children.splice(K, 1);
1461
1463
  else {
1462
1464
  const q = v.children.findIndex(
@@ -1469,24 +1471,24 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1469
1471
  ($) => M($) === (v.path || [])[0]
1470
1472
  ), ee = ($, Z, te) => {
1471
1473
  if (te === -1 || !$[te]) return $;
1472
- const se = $[te], ae = Z || se;
1473
- if (M(ae) === M(se)) {
1474
- if (ae.children && ae.children.length > 0)
1474
+ const ae = $[te], se = Z || ae;
1475
+ if (M(se) === M(ae)) {
1476
+ if (se.children && se.children.length > 0)
1475
1477
  return $;
1476
1478
  $.splice(te, 1);
1477
1479
  } else {
1478
1480
  const fe = (ie, ce, Ae = null) => {
1479
1481
  if (!ie.children || ie.children.length === 0)
1480
1482
  return !1;
1481
- const Ee = ie.children.findIndex(
1483
+ const ue = ie.children.findIndex(
1482
1484
  (k) => M(k) === M(ce)
1483
1485
  );
1484
- if (Ee !== -1) {
1485
- const k = ie.children[Ee];
1486
+ if (ue !== -1) {
1487
+ const k = ie.children[ue];
1486
1488
  if (!k.children || k.children.length === 0) {
1487
- if (ie.children.splice(Ee, 1), ie.children.length === 0 && (Ae != null && Ae.children)) {
1489
+ if (ie.children.splice(ue, 1), ie.children.length === 0 && (Ae != null && Ae.children)) {
1488
1490
  const V = M(ie), le = Ae.children.findIndex(
1489
- (a) => M(a) === V
1491
+ (s) => M(s) === V
1490
1492
  );
1491
1493
  le !== -1 && Ae.children.splice(le, 1);
1492
1494
  }
@@ -1498,7 +1500,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1498
1500
  if (fe(k, ce, ie)) {
1499
1501
  if (ie.children.length === 0 && (Ae != null && Ae.children)) {
1500
1502
  const V = M(ie), le = Ae.children.findIndex(
1501
- (a) => M(a) === V
1503
+ (s) => M(s) === V
1502
1504
  );
1503
1505
  le !== -1 && Ae.children.splice(le, 1);
1504
1506
  }
@@ -1507,30 +1509,30 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1507
1509
  return !1;
1508
1510
  };
1509
1511
  fe(
1510
- se,
1511
1512
  ae,
1513
+ se,
1512
1514
  null
1513
1515
  ) || console.warn(
1514
1516
  "Could not find nested parent to remove:",
1515
- M(ae)
1516
- ), (!se.children || se.children.length === 0) && $.splice(te, 1);
1517
+ M(se)
1518
+ ), (!ae.children || ae.children.length === 0) && $.splice(te, 1);
1517
1519
  }
1518
- if (ae.path && ae.path.length > 1) {
1519
- const fe = ae.path.slice(0, -1), ie = ((ce, Ae) => {
1520
+ if (se.path && se.path.length > 1) {
1521
+ const fe = se.path.slice(0, -1), ie = ((ce, Ae) => {
1520
1522
  if (Ae.length === 0) return -1;
1521
1523
  if (Ae.length === 1)
1522
1524
  return ce.findIndex(
1523
1525
  (V) => M(V) === Ae[0]
1524
1526
  );
1525
- let Ee = ce, k = -1;
1527
+ let ue = ce, k = -1;
1526
1528
  for (let V = 0; V < Ae.length - 1; V++) {
1527
1529
  const le = Ae[V];
1528
- if (k = Ee.findIndex(
1529
- (a) => M(a) === le
1530
+ if (k = ue.findIndex(
1531
+ (s) => M(s) === le
1530
1532
  ), k === -1) return -1;
1531
- Ee = Ee[k].children || [];
1533
+ ue = ue[k].children || [];
1532
1534
  }
1533
- return Ee.findIndex(
1535
+ return ue.findIndex(
1534
1536
  (V) => M(V) === Ae[Ae.length - 1]
1535
1537
  );
1536
1538
  })($, fe);
@@ -1577,18 +1579,18 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1577
1579
  };
1578
1580
  let g = e;
1579
1581
  if (t || (((P = n.path) == null ? void 0 : P.length) || 0) > 1)
1580
- g = E(
1582
+ g = u(
1581
1583
  e,
1582
1584
  r
1583
1585
  );
1584
1586
  else {
1585
- const S = e.findIndex(
1587
+ const O = e.findIndex(
1586
1588
  (N) => M(N) === (n.path || [])[0]
1587
1589
  );
1588
- S !== -1 && g.splice(S, 1);
1590
+ O !== -1 && g.splice(O, 1);
1589
1591
  const U = n.originalPath ? e.findIndex(
1590
1592
  (N) => M(N) === (n.originalPath || [])[0]
1591
- ) : S;
1593
+ ) : O;
1592
1594
  U && c && g.splice(
1593
1595
  U,
1594
1596
  0,
@@ -1611,22 +1613,22 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1611
1613
  if (t.length) {
1612
1614
  let i = 0;
1613
1615
  t.forEach(({ rowId: o, rowIndex: d }) => {
1614
- var E;
1616
+ var u;
1615
1617
  let f = 0;
1616
1618
  Object.keys(A).forEach((g) => {
1617
1619
  g.startsWith(o) && (f += A[g].childRowsCount);
1618
1620
  });
1619
1621
  const c = d - i;
1620
- (E = r == null ? void 0 : r[c]) == null || delete E.__rowSpanInfo, r.splice(c + 1, f), i += f;
1622
+ (u = r == null ? void 0 : r[c]) == null || delete u.__rowSpanInfo, r.splice(c + 1, f), i += f;
1621
1623
  });
1622
1624
  }
1623
1625
  return r;
1624
- }, Oe = (e, n, t = !0, r, A) => {
1625
- var o, d, f, c, E, g, C, L, l;
1626
+ }, me = (e, n, t = !0, r, A) => {
1627
+ var o, d, f, c, u, g, C, L, a;
1626
1628
  const i = (d = (o = e.api) == null ? void 0 : o.getInfiniteCacheInstance) == null ? void 0 : d.call(o);
1627
1629
  (f = i == null ? void 0 : i.updatePageData) == null || f.call(i, e.pagination.page, n, !0, {
1628
1630
  isRefreshData: !1
1629
- }), !e.serverSide && t && ((l = (L = (C = (g = (E = (c = e.api) == null ? void 0 : c.getInfiniteCache) == null ? void 0 : E.call(c)) == null ? void 0 : g.params) == null ? void 0 : C.datasource) == null ? void 0 : L.updateData) == null || l.call(
1631
+ }), !e.serverSide && t && ((a = (L = (C = (g = (u = (c = e.api) == null ? void 0 : c.getInfiniteCache) == null ? void 0 : u.call(c)) == null ? void 0 : g.params) == null ? void 0 : C.datasource) == null ? void 0 : L.updateData) == null || a.call(
1630
1632
  L,
1631
1633
  e,
1632
1634
  n.filter((p) => !(p.__parentPath || p.isChildGroup)),
@@ -1637,7 +1639,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1637
1639
  var t, r;
1638
1640
  const n = (r = (t = e.api) == null ? void 0 : t.getInfiniteRowModel) == null ? void 0 : r.call(t);
1639
1641
  n && n.infiniteCache && n.infiniteCache.purgeCache && n.infiniteCache.purgeCache({ isRefreshData: !1 });
1640
- }, ke = (e) => Object.keys(e.expandedChildRows).length === 0, un = (e, n) => {
1642
+ }, ke = (e) => Object.keys(e.expandedChildRows).length === 0, En = (e, n) => {
1641
1643
  var r, A;
1642
1644
  const t = (A = (r = e.current) == null ? void 0 : r.querySelectorAll) == null ? void 0 : A.call(
1643
1645
  r,
@@ -1663,17 +1665,17 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1663
1665
  getSelectedRows: () => {
1664
1666
  const i = [];
1665
1667
  let o = [];
1666
- const { serverSide: d, data: f, api: c } = e, E = c == null ? void 0 : c.getInfiniteCache();
1667
- d && E ? o = E.getAllCachedData() || f : !d && E && (o = E.params.datasource.getWholeData() || f);
1668
+ const { serverSide: d, data: f, api: c } = e, u = c == null ? void 0 : c.getInfiniteCache();
1669
+ d && u ? o = u.getAllCachedData() || f : !d && u && (o = u.params.datasource.getWholeData() || f);
1668
1670
  let g = e.selectedRows;
1669
1671
  if (Array.isArray(n.payload)) {
1670
1672
  if (Array.isArray(n.payload) && (g = n.payload, o && g && g.length > 0)) {
1671
1673
  const C = new Set(g.map(String));
1672
1674
  for (let L = 0; L < o.length; L++) {
1673
- const l = o[L];
1674
- if (!l) continue;
1675
- const p = l[e.uniqueIdField] || l.id;
1676
- if (p !== void 0 && C.has(String(p)) && (i.push(l), i.length === g.length))
1675
+ const a = o[L];
1676
+ if (!a) continue;
1677
+ const p = a[e.uniqueIdField] || a.id;
1678
+ if (p !== void 0 && C.has(String(p)) && (i.push(a), i.length === g.length))
1677
1679
  break;
1678
1680
  }
1679
1681
  }
@@ -1682,8 +1684,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1682
1684
  },
1683
1685
  getSelectedRowsID: () => {
1684
1686
  let i = e.selectedRows, o = [];
1685
- const { serverSide: d, data: f, api: c } = e, E = c == null ? void 0 : c.getInfiniteCache();
1686
- if (d && E ? o = E.getAllCachedData() || f : !d && E && (o = E.params.datasource.getWholeData() || f), Array.isArray(n.payload))
1687
+ const { serverSide: d, data: f, api: c } = e, u = c == null ? void 0 : c.getInfiniteCache();
1688
+ if (d && u ? o = u.getAllCachedData() || f : !d && u && (o = u.params.datasource.getWholeData() || f), Array.isArray(n.payload))
1687
1689
  Array.isArray(n.payload) && (i = n.payload);
1688
1690
  else return n.payload ? o.filter((g) => !g.__parentPath).map((g) => g[e.uniqueIdField]) : [];
1689
1691
  return i;
@@ -1706,10 +1708,10 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1706
1708
  let A = e.filteredData;
1707
1709
  if (e.isSingleSelect) {
1708
1710
  const f = n ? [t] : [], c = n ? { [t]: !0 } : {};
1709
- return A = A == null ? void 0 : A.map((E) => E.is_selected && !n && t === String(E[e.uniqueIdField]) ? {
1710
- ...E,
1711
+ return A = A == null ? void 0 : A.map((u) => u.is_selected && !n && t === String(u[e.uniqueIdField]) ? {
1712
+ ...u,
1711
1713
  is_selected: !1
1712
- } : E), {
1714
+ } : u), {
1713
1715
  selectedRowsUpdated: f,
1714
1716
  unCheckedRowsUpdated: e.unCheckedRows,
1715
1717
  selectedRowsObjectUpdated: c,
@@ -1784,7 +1786,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1784
1786
  const i = Ln(A, n);
1785
1787
  r.push(...i);
1786
1788
  }), r;
1787
- }, En = (e, n, t) => {
1789
+ }, un = (e, n, t) => {
1788
1790
  if (!n || !n.aggFunc)
1789
1791
  return null;
1790
1792
  const r = Ln(e, t);
@@ -1798,7 +1800,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1798
1800
  `Aggregation function '${o}' not found for column '${A}'`
1799
1801
  ), null);
1800
1802
  }, ye = (e, n, t, r, A, i) => {
1801
- var f, c, E;
1803
+ var f, c, u;
1802
1804
  const o = {
1803
1805
  __isAggregationRow: !0,
1804
1806
  __parentId: i,
@@ -1814,27 +1816,27 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1814
1816
  for (let g = 0; g < e.columns.length; g++) {
1815
1817
  const C = e.columns[g], L = M(C);
1816
1818
  if ((f = C == null ? void 0 : C.extra) != null && f.is_grouping_key && (t != null && t[L]) || C.rowGroup && !C.is_hidden) {
1817
- const l = (c = C == null ? void 0 : C.originalFields) != null && c[r] ? C.originalFields[r] : L, p = (E = C == null ? void 0 : C.originalFields) != null && E[r - 1] ? C.originalFields[r - 1] : L;
1818
- o[l] = t != null && t[p] ? `Total ${(t == null ? void 0 : t[p]) || ""}` : "Total", t != null && t[p] ? (o.grandTotalAggreRow = !1, o.subTotalAggreRow = !0) : (o.isGrandTotalRow = !0, o.grandTotalAggreRow = !0, o.subTotalAggreRow = !1);
1819
+ const a = (c = C == null ? void 0 : C.originalFields) != null && c[r] ? C.originalFields[r] : L, p = (u = C == null ? void 0 : C.originalFields) != null && u[r - 1] ? C.originalFields[r - 1] : L;
1820
+ o[a] = t != null && t[p] ? `Total ${(t == null ? void 0 : t[p]) || ""}` : "Total", t != null && t[p] ? (o.grandTotalAggreRow = !1, o.subTotalAggreRow = !0) : (o.isGrandTotalRow = !0, o.grandTotalAggreRow = !0, o.subTotalAggreRow = !1);
1819
1821
  break;
1820
1822
  }
1821
1823
  }
1822
1824
  return d.forEach((g) => {
1823
1825
  if (g.aggFunc) {
1824
- const C = En(
1826
+ const C = un(
1825
1827
  t,
1826
1828
  g,
1827
1829
  e.childKeyField
1828
1830
  ), L = M(g);
1829
- o[L] = C, n && n.length && (n = n.map((l) => {
1830
- const p = En(
1831
- l,
1831
+ o[L] = C, n && n.length && (n = n.map((a) => {
1832
+ const p = un(
1833
+ a,
1832
1834
  g,
1833
1835
  e.childKeyField
1834
- ), R = l == null ? void 0 : l[e.childKeyField], P = Array.isArray(R) && R.length > 0;
1836
+ ), R = a == null ? void 0 : a[e.childKeyField], P = Array.isArray(R) && R.length > 0;
1835
1837
  return {
1836
- ...l,
1837
- __parentPath: l.__parentPath ? `${l.__parentPath}${String(l.__parentPath).includes(String(i)) ? "" : `/${i}`}` : String(i),
1838
+ ...a,
1839
+ __parentPath: a.__parentPath ? `${a.__parentPath}${String(a.__parentPath).includes(String(i)) ? "" : `/${i}`}` : String(i),
1838
1840
  level: r,
1839
1841
  parentRowIndex: A,
1840
1842
  parentRowData: t,
@@ -1850,58 +1852,58 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1850
1852
  aggreChildRows: n
1851
1853
  };
1852
1854
  }, fr = (e, n, t, r, A, i) => {
1853
- var E, g;
1854
- const o = t.parentRowIndex || r, d = e.columns.some((C) => C.aggFunc), f = ((E = t.__parentPath) == null ? void 0 : E.split("/").length) || 0;
1855
+ var u, g;
1856
+ const o = t.parentRowIndex || r, d = e.columns.some((C) => C.aggFunc), f = ((u = t.__parentPath) == null ? void 0 : u.split("/").length) || 0;
1855
1857
  let c = null;
1856
1858
  if (d && f) {
1857
- const C = n[o], L = C[i], l = C[e.childKeyField], p = Object.keys(
1859
+ const C = n[o], L = C[i], a = C[e.childKeyField], p = Object.keys(
1858
1860
  e.expandedChildRows
1859
- ).reduce((Q, j) => (j.startsWith(String(L)) && (Q += e.expandedChildRows[j].childRowsCount), Q), 0), R = !!C.__parentPath;
1861
+ ).reduce((Q, _) => (_.startsWith(String(L)) && (Q += e.expandedChildRows[_].childRowsCount), Q), 0), R = !!C.__parentPath;
1860
1862
  let P;
1861
1863
  if (R) {
1862
- P = o + (l == null ? void 0 : l.length) + 1;
1864
+ P = o + (a == null ? void 0 : a.length) + 1;
1863
1865
  let Q = 0;
1864
- Object.keys(e.expandedChildRows).forEach((j) => {
1865
- const v = String(j).split("/"), K = String(L), _ = v.indexOf(K);
1866
- _ >= 0 && _ < v.length - 1 && (Q += e.expandedChildRows[j].childRowsCount);
1866
+ Object.keys(e.expandedChildRows).forEach((_) => {
1867
+ const v = String(_).split("/"), K = String(L), j = v.indexOf(K);
1868
+ j >= 0 && j < v.length - 1 && (Q += e.expandedChildRows[_].childRowsCount);
1867
1869
  }), P += Q;
1868
1870
  } else
1869
1871
  P = p;
1870
- const { aggreRow: S } = ye(
1872
+ const { aggreRow: O } = ye(
1871
1873
  e,
1872
- l,
1874
+ a,
1873
1875
  C,
1874
1876
  f,
1875
1877
  o,
1876
1878
  A
1877
1879
  );
1878
- n[P] = S;
1879
- let U = { ...S };
1880
+ n[P] = O;
1881
+ let U = { ...O };
1880
1882
  if (R) {
1881
1883
  let Q = f - 1;
1882
1884
  for (; Q !== 0; ) {
1883
- const j = U.parentRowIndex, v = ((g = n[j]) == null ? void 0 : g.parentRowIndex) || j, K = v >= 0 ? v : j;
1885
+ const _ = U.parentRowIndex, v = ((g = n[_]) == null ? void 0 : g.parentRowIndex) || _, K = v >= 0 ? v : _;
1884
1886
  if (K >= 0) {
1885
- const _ = n[K], q = _[i], ee = _[e.childKeyField], { aggreRow: ne } = ye(
1887
+ const j = n[K], q = j[i], ee = j[e.childKeyField], { aggreRow: ne } = ye(
1886
1888
  e,
1887
1889
  ee,
1888
- _,
1890
+ j,
1889
1891
  Q,
1890
1892
  K,
1891
1893
  q
1892
- ), $ = !!_.__parentPath;
1894
+ ), $ = !!j.__parentPath;
1893
1895
  let Z;
1894
1896
  if ($) {
1895
1897
  Z = K + (ee == null ? void 0 : ee.length) + 1;
1896
1898
  let te = 0;
1897
- Object.keys(e.expandedChildRows).forEach((se) => {
1898
- const ae = String(se).split("/"), ue = String(q), fe = ae.indexOf(ue);
1899
- fe >= 0 && fe < ae.length - 1 && (te += e.expandedChildRows[se].childRowsCount);
1899
+ Object.keys(e.expandedChildRows).forEach((ae) => {
1900
+ const se = String(ae).split("/"), Ee = String(q), fe = se.indexOf(Ee);
1901
+ fe >= 0 && fe < se.length - 1 && (te += e.expandedChildRows[ae].childRowsCount);
1900
1902
  }), Z += te;
1901
1903
  } else
1902
1904
  Z = Object.keys(
1903
1905
  e.expandedChildRows
1904
- ).reduce((te, se) => (se.startsWith(String(q)) && (te += e.expandedChildRows[se].childRowsCount), te), 0);
1906
+ ).reduce((te, ae) => (ae.startsWith(String(q)) && (te += e.expandedChildRows[ae].childRowsCount), te), 0);
1905
1907
  n[Z] = ne, U = ne, Q--;
1906
1908
  } else
1907
1909
  Q = 0;
@@ -1964,15 +1966,15 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1964
1966
  };
1965
1967
  const o = {}, d = [...e];
1966
1968
  return i.forEach((f) => {
1967
- var E;
1969
+ var u;
1968
1970
  const c = /* @__PURE__ */ new Map();
1969
1971
  for (let g = 0; g < e.length; g++) {
1970
1972
  const C = e[g];
1971
1973
  delete C.__rowSpanInfo;
1972
1974
  const L = C[t];
1973
1975
  o[L] || (o[L] = {});
1974
- const l = o[L][f];
1975
- if (!(l && l.span === 0))
1976
+ const a = o[L][f];
1977
+ if (!(a && a.span === 0))
1976
1978
  if (A && typeof A == "function") {
1977
1979
  const p = A(
1978
1980
  {
@@ -1991,9 +1993,9 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
1991
1993
  }, p > 1 && (o[L].isRowSpan = !0), p > 1) {
1992
1994
  const R = [L];
1993
1995
  for (let P = 1; P < p; P++) {
1994
- const S = g + P;
1995
- if (S < e.length) {
1996
- const U = e[S][t];
1996
+ const O = g + P;
1997
+ if (O < e.length) {
1998
+ const U = e[O][t];
1997
1999
  R.push(U), o[U] || (o[U] = {}), o[U][f] = {
1998
2000
  span: 0,
1999
2001
  isFirst: !1,
@@ -2021,17 +2023,17 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2021
2023
  if (!(A && typeof A == "function"))
2022
2024
  for (const [g, C] of c.entries()) {
2023
2025
  if (C.length <= 1) {
2024
- const l = (E = C[0]) == null ? void 0 : E.rowId;
2025
- l && (o[l] || (o[l] = {}), o[l][f] = {
2026
+ const a = (u = C[0]) == null ? void 0 : u.rowId;
2027
+ a && (o[a] || (o[a] = {}), o[a][f] = {
2026
2028
  span: 1,
2027
2029
  isFirst: !0,
2028
2030
  isLast: !0
2029
2031
  });
2030
2032
  continue;
2031
2033
  }
2032
- const L = C.map((l) => l.rowId);
2033
- C.forEach((l, p) => {
2034
- const R = l.rowId;
2034
+ const L = C.map((a) => a.rowId);
2035
+ C.forEach((a, p) => {
2036
+ const R = a.rowId;
2035
2037
  o[R] || (o[R] = {}), o[R][f] = {
2036
2038
  span: p === 0 ? C.length : 0,
2037
2039
  isFirst: p === 0,
@@ -2092,8 +2094,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2092
2094
  let d = !1;
2093
2095
  r.forEach((f) => {
2094
2096
  if (f === "Selection") {
2095
- const E = i.__rowSpanInfo && i.__rowSpanInfo[f];
2096
- E != null && E.span && (E == null ? void 0 : E.span) > 1 && (d = !0);
2097
+ const u = i.__rowSpanInfo && i.__rowSpanInfo[f];
2098
+ u != null && u.span && (u == null ? void 0 : u.span) > 1 && (d = !0);
2097
2099
  return;
2098
2100
  }
2099
2101
  const c = hn(
@@ -2114,7 +2116,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2114
2116
  }), c > 1 && (d = !0);
2115
2117
  }), d && (i.__rowSpanInfo.isRowSpan = !0);
2116
2118
  }), A;
2117
- }, ur = (e, n) => {
2119
+ }, Er = (e, n) => {
2118
2120
  var r;
2119
2121
  return (r = e.data) != null && r.__rowSpanInfo && e.data.__rowSpanInfo[n] ? e.data.__rowSpanInfo[n].span || 1 : Tt(e, n) ? 0 : yn(e, n);
2120
2122
  }, Tt = (e, n) => {
@@ -2152,7 +2154,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2152
2154
  t
2153
2155
  ) : void 0;
2154
2156
  return n !== null && r === A;
2155
- }, Er = (e, n, t = "id", r) => {
2157
+ }, ur = (e, n, t = "id", r) => {
2156
2158
  if (!n || !e || !e.length)
2157
2159
  return {
2158
2160
  processedData: e || [],
@@ -2168,43 +2170,43 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2168
2170
  e,
2169
2171
  r || ["wp", "iaf", "ly"]
2170
2172
  ), o = {}, d = [...i], f = /* @__PURE__ */ new Map();
2171
- return i.forEach((c, E) => {
2173
+ return i.forEach((c, u) => {
2172
2174
  if (!c.__flattenedRowId) {
2173
- const C = c[t] || E;
2174
- f.has(C) || f.set(C, []), f.get(C).push({ row: c, index: E });
2175
+ const C = c[t] || u;
2176
+ f.has(C) || f.set(C, []), f.get(C).push({ row: c, index: u });
2175
2177
  return;
2176
2178
  }
2177
2179
  const g = c.__flattenedRowId.split("__")[0];
2178
- f.has(g) || f.set(g, []), f.get(g).push({ row: c, index: E });
2180
+ f.has(g) || f.set(g, []), f.get(g).push({ row: c, index: u });
2179
2181
  }), A.forEach((c) => {
2180
- for (const [E, g] of f.entries()) {
2182
+ for (const [u, g] of f.entries()) {
2181
2183
  const C = g.length;
2182
- g.sort((l, p) => {
2183
- const R = l.row.__split, P = p.row.__split, S = (R == null ? void 0 : R.index) ?? 0, U = (P == null ? void 0 : P.index) ?? 0;
2184
- return S - U;
2184
+ g.sort((a, p) => {
2185
+ const R = a.row.__split, P = p.row.__split, O = (R == null ? void 0 : R.index) ?? 0, U = (P == null ? void 0 : P.index) ?? 0;
2186
+ return O - U;
2185
2187
  });
2186
2188
  const L = g.map(
2187
- (l) => l.row[t] || l.row.__flattenedRowId || l.index
2189
+ (a) => a.row[t] || a.row.__flattenedRowId || a.index
2188
2190
  );
2189
- g.forEach((l, p) => {
2190
- const { row: R, index: P } = l, S = R[t] || R.__flattenedRowId || P;
2191
- o[S] || (o[S] = {}), o[S][c] = {
2191
+ g.forEach((a, p) => {
2192
+ const { row: R, index: P } = a, O = R[t] || R.__flattenedRowId || P;
2193
+ o[O] || (o[O] = {}), o[O][c] = {
2192
2194
  span: p === 0 ? C : 0,
2193
2195
  isFirst: p === 0,
2194
2196
  isLast: p === C - 1,
2195
2197
  rowIds: p === 0 ? L : void 0
2196
2198
  // Store row IDs only in the first row
2197
- }, C > 1 && p === 0 && (o[S].isRowSpan = !0);
2199
+ }, C > 1 && p === 0 && (o[O].isRowSpan = !0);
2198
2200
  });
2199
2201
  }
2200
2202
  }), d.forEach((c) => {
2201
- const E = c[t] || c.__flattenedRowId || c.id;
2202
- c.__rowSpanInfo = o[E] || {};
2203
+ const u = c[t] || c.__flattenedRowId || c.id;
2204
+ c.__rowSpanInfo = o[u] || {};
2203
2205
  }), {
2204
2206
  processedData: d,
2205
2207
  rowSpanMap: o
2206
2208
  };
2207
- }, je = (e, n, t, r) => {
2209
+ }, _e = (e, n, t, r) => {
2208
2210
  var A, i;
2209
2211
  return e && e.current && ((A = e.current) != null && A.isRowSelectable) ? (i = e.current) == null ? void 0 : i.isRowSelectable({
2210
2212
  data: t,
@@ -2220,7 +2222,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2220
2222
  const A = [];
2221
2223
  for (let i = 0; i < e.length; i++) {
2222
2224
  const o = e[i];
2223
- o != null && o.__parentPath || o != null && o.isChildGroup || r && !je(n, i, o, t) || A.push(String(o[t]));
2225
+ o != null && o.__parentPath || o != null && o.isChildGroup || r && !_e(n, i, o, t) || A.push(String(o[t]));
2224
2226
  }
2225
2227
  return A;
2226
2228
  }, rn = {
@@ -2391,27 +2393,28 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2391
2393
  virtualizationConfig: {
2392
2394
  threshold: 20
2393
2395
  },
2394
- disableCurrentPageRecords: !1
2396
+ disableCurrentPageRecords: !1,
2397
+ showForceLoading: !1
2395
2398
  }, mt = (e, n) => {
2396
- var t, r, A, i, o, d, f, c, E, g, C, L, l, p, R, P, S, U, N, Q, j, v, K, _, q, ee, ne, $, Z, te, se, ae, ue, fe, he, ie, ce, Ae, Ee, k, V, le;
2399
+ var t, r, A, i, o, d, f, c, u, g, C, L, a, p, R, P, O, U, N, Q, _, v, K, j, q, ee, ne, $, Z, te, ae, se, Ee, fe, he, ie, ce, Ae, ue, k, V, le;
2397
2400
  switch (n.type) {
2398
- case s.SET_LOADING:
2401
+ case l.SET_LOADING:
2399
2402
  return {
2400
2403
  ...e,
2401
2404
  isLoading: n.payload
2402
2405
  };
2403
- case s.SET_TABLE_ID:
2406
+ case l.SET_TABLE_ID:
2404
2407
  return {
2405
2408
  ...e,
2406
2409
  tableId: n.payload
2407
2410
  };
2408
- case s.SET_DATA: {
2409
- const { isCountUnknown: a, totalItems: u, totalPages: h, currentPage: B } = n.meta || {}, w = e.columns.some((O) => O.aggFunc), I = B || e.pagination.page || 1;
2411
+ case l.SET_DATA: {
2412
+ const { isCountUnknown: s, totalItems: E, totalPages: h, currentPage: B } = n.meta || {}, w = e.columns.some((S) => S.aggFunc), I = B || e.pagination.page || 1;
2410
2413
  let m = null;
2411
2414
  const G = e.aggregationTotalRow && ((t = e.aggregationTotalRow) == null ? void 0 : t[I]);
2412
2415
  let F = e.aggregationTotalRow;
2413
2416
  if (w && !G) {
2414
- const { aggreRow: O } = ye(
2417
+ const { aggreRow: S } = ye(
2415
2418
  e,
2416
2419
  [],
2417
2420
  { [e.childKeyField]: n.payload },
@@ -2419,22 +2422,22 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2419
2422
  0,
2420
2423
  null
2421
2424
  );
2422
- m = O, F = {
2425
+ m = S, F = {
2423
2426
  ...e.aggregationTotalRow,
2424
2427
  [I]: m
2425
2428
  };
2426
2429
  } else G && (m = G);
2427
2430
  const x = n.payload;
2428
- if ((r = e.data) != null && r.length && JSON.stringify(x) === JSON.stringify(e.data) && a === e.isCountUnknown && u === e.totalItems && h === e.totalPages && B === e.currentPage && !m)
2431
+ if ((r = e.data) != null && r.length && JSON.stringify(x) === JSON.stringify(e.data) && s === e.isCountUnknown && E === e.totalItems && h === e.totalPages && B === e.currentPage && !m)
2429
2432
  return e;
2430
- const D = x.map((O) => (delete O._animationState, delete O._isDraggedRow, O)), y = [...e.selectedRows], z = {
2433
+ const D = x.map((S) => (delete S._animationState, delete S._isDraggedRow, S)), y = [...e.selectedRows], z = {
2431
2434
  ...e.selectedRowsObject
2432
2435
  };
2433
- for (let O = 0; O < D.length; O++) {
2434
- const T = D[O];
2435
- if (T.is_selected && je(
2436
+ for (let S = 0; S < D.length; S++) {
2437
+ const T = D[S];
2438
+ if (T.is_selected && _e(
2436
2439
  e.rowSelectionRef,
2437
- O,
2440
+ S,
2438
2441
  T,
2439
2442
  e.uniqueIdField
2440
2443
  ) || e.serverSide && e.removeSelectionOnOperation && e.isSelectAllRecords) {
@@ -2458,8 +2461,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2458
2461
  pagination: {
2459
2462
  ...e.pagination,
2460
2463
  ...Object.keys(e.columnFilters).length && !e.serverSide ? {} : {
2461
- isCountUnknown: a,
2462
- totalItems: u,
2464
+ isCountUnknown: s,
2465
+ totalItems: E,
2463
2466
  allTotalPages: h,
2464
2467
  currentLoadedPage: B,
2465
2468
  totalPages: h,
@@ -2468,24 +2471,24 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2468
2471
  }
2469
2472
  };
2470
2473
  }
2471
- case s.SET_FILTERED_DATA:
2474
+ case l.SET_FILTERED_DATA:
2472
2475
  return {
2473
2476
  ...e,
2474
2477
  filteredData: n.payload
2475
2478
  };
2476
- case s.UPDATE_ROW_DATA: {
2477
- const { updatedData: a, dataRowIndex: u, aggregationRow: h, rowId: B, parentIndex: w } = n.payload, I = Fe(
2478
- a,
2479
+ case l.UPDATE_ROW_DATA: {
2480
+ const { updatedData: s, dataRowIndex: E, aggregationRow: h, rowId: B, parentIndex: w } = n.payload, I = Fe(
2481
+ s,
2479
2482
  e.rowSpanColumn,
2480
2483
  e.api
2481
2484
  );
2482
- Oe(
2485
+ me(
2483
2486
  e,
2484
2487
  I,
2485
2488
  !0,
2486
2489
  B,
2487
- w >= 0 ? w : u
2488
- ), un(e.tableInstance, u);
2490
+ w >= 0 ? w : E
2491
+ ), En(e.tableInstance, E);
2489
2492
  const m = e.pagination.page || 1, G = h ? {
2490
2493
  ...e.aggregationTotalRow,
2491
2494
  [m]: h
@@ -2500,67 +2503,67 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2500
2503
  } : {}
2501
2504
  };
2502
2505
  }
2503
- case s.UPDATE_ROW_DATA_OBJECT: {
2504
- const { rowId: a, data: u } = n.payload, h = e.uniqueIdField, B = e.expandedChildRows[a], w = { ...e.expandedChildRows };
2506
+ case l.UPDATE_ROW_DATA_OBJECT: {
2507
+ const { rowId: s, data: E } = n.payload, h = e.uniqueIdField, B = e.expandedChildRows[s], w = { ...e.expandedChildRows };
2505
2508
  let I = !1, m = -1, G = 0;
2506
2509
  B && (Object.keys(e.expandedChildRows).filter(
2507
- (y) => y.startsWith(String(a))
2510
+ (y) => y.startsWith(String(s))
2508
2511
  ).forEach((y) => {
2509
2512
  G += e.expandedChildRows[y].childRowsCount;
2510
2513
  }), m = B.rowIndex);
2511
2514
  let F = ((A = e.data) == null ? void 0 : A.map((D, y) => {
2512
- if (D[h] == a)
2513
- return m = y, { ...D, ...u };
2515
+ if (D[h] == s)
2516
+ return m = y, { ...D, ...E };
2514
2517
  if (D[e.childKeyField] && Array.isArray(D[e.childKeyField])) {
2515
- const z = D[e.childKeyField].map((O) => O[h] == a ? { ...O, ...u } : O);
2518
+ const z = D[e.childKeyField].map((S) => S[h] == s ? { ...S, ...E } : S);
2516
2519
  if (z !== D[e.childKeyField])
2517
2520
  return { ...D, [e.childKeyField]: z };
2518
2521
  }
2519
2522
  return D;
2520
2523
  })) || [];
2521
2524
  if (B && m !== -1) {
2522
- const D = G, y = u[e.childKeyField], O = (y ? y.length : 0) - D;
2525
+ const D = G, y = E[e.childKeyField], S = (y ? y.length : 0) - D;
2523
2526
  if (!y)
2524
2527
  F.splice(m + 1, G);
2525
2528
  else {
2526
- const T = typeof a == "string" ? a.split("/").length : 1, X = y.map((H) => ({
2529
+ const T = typeof s == "string" ? s.split("/").length : 1, X = y.map((H) => ({
2527
2530
  ...H,
2528
- __parentPath: H.__parentPath ? `${H.__parentPath}/${H[a]}` : String(a),
2531
+ __parentPath: H.__parentPath ? `${H.__parentPath}/${H[s]}` : String(s),
2529
2532
  level: T,
2530
2533
  parentRowIndex: m,
2531
- parentRowData: u
2534
+ parentRowData: E
2532
2535
  }));
2533
2536
  F.splice(m + 1, G), F.splice(
2534
2537
  m + 1,
2535
2538
  0,
2536
2539
  ...X
2537
- ), w[a] = {
2538
- ...w[a],
2540
+ ), w[s] = {
2541
+ ...w[s],
2539
2542
  childRowsCount: y.length
2540
2543
  }, I = !0;
2541
2544
  }
2542
- O !== 0 && (Object.keys(w).forEach((T) => {
2545
+ S !== 0 && (Object.keys(w).forEach((T) => {
2543
2546
  const X = w[T];
2544
2547
  X.rowIndex > m && (w[T] = {
2545
2548
  ...X,
2546
- rowIndex: X.rowIndex + O
2549
+ rowIndex: X.rowIndex + S
2547
2550
  });
2548
2551
  }), F = F.map((T) => T.__parentPath && T.parentRowIndex !== void 0 && T.parentRowIndex > m ? {
2549
2552
  ...T,
2550
- parentRowIndex: T.parentRowIndex + O
2553
+ parentRowIndex: T.parentRowIndex + S
2551
2554
  } : T));
2552
2555
  }
2553
- m !== -1 && un(e.tableInstance, m);
2556
+ m !== -1 && En(e.tableInstance, m);
2554
2557
  const x = Fe(
2555
2558
  F,
2556
2559
  e.rowSpanColumn,
2557
2560
  e.api
2558
2561
  );
2559
- return Oe(
2562
+ return me(
2560
2563
  e,
2561
2564
  x,
2562
2565
  !0,
2563
- String(a),
2566
+ String(s),
2564
2567
  m
2565
2568
  ), {
2566
2569
  ...e,
@@ -2569,39 +2572,39 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2569
2572
  ...I ? { expandedChildRows: w } : {}
2570
2573
  };
2571
2574
  }
2572
- case s.SET_COLUMNS: {
2573
- const a = ((i = n.meta) == null ? void 0 : i.defaultColDef) || e.defaultColDef, { columns: u, frozenData: h } = Be(
2575
+ case l.SET_COLUMNS: {
2576
+ const s = ((i = n.meta) == null ? void 0 : i.defaultColDef) || e.defaultColDef, { columns: E, frozenData: h } = Be(
2574
2577
  n.payload,
2575
- a ?? void 0
2578
+ s ?? void 0
2576
2579
  );
2577
2580
  if (n.meta && n.meta.recomputeFrozen) {
2578
2581
  h.positions = n.meta.frozenPositions || {};
2579
- let B = an(
2582
+ let B = sn(
2580
2583
  !0,
2581
2584
  e.disableSelectAllRecords,
2582
2585
  e.isSingleSelect
2583
2586
  );
2584
2587
  h.indexes.forEach((w) => {
2585
2588
  var m;
2586
- const I = u.find((G) => M(G) === w);
2589
+ const I = E.find((G) => M(G) === w);
2587
2590
  I && !I.hidden && (B += I.width || ((m = e.defaultColDef) == null ? void 0 : m.minWidth) || 150);
2588
2591
  }), h.totalWidth = B;
2589
2592
  }
2590
2593
  return {
2591
2594
  ...e,
2592
- columns: u,
2595
+ columns: E,
2593
2596
  frozenColumns: h
2594
2597
  };
2595
2598
  }
2596
- case s.MOVE_ROW: {
2597
- const { fromIndex: a, toIndex: u } = n.payload, h = [...e.data || []], B = h[a], w = String(B[e.uniqueIdField]);
2599
+ case l.MOVE_ROW: {
2600
+ const { fromIndex: s, toIndex: E } = n.payload, h = [...e.data || []], B = h[s], w = String(B[e.uniqueIdField]);
2598
2601
  let I = 0;
2599
2602
  Object.keys(e.expandedChildRows).forEach((D) => {
2600
2603
  D.startsWith(w) && (I += e.expandedChildRows[D].childRowsCount);
2601
2604
  });
2602
- const m = I + 1, G = h.splice(a, m);
2603
- let F = u;
2604
- a < u && (F -= m), h.splice(F, 0, ...G);
2605
+ const m = I + 1, G = h.splice(s, m);
2606
+ let F = E;
2607
+ s < E && (F -= m), h.splice(F, 0, ...G);
2605
2608
  const x = h.map((D) => (delete D._isDraggedRow, delete D._animationState, D));
2606
2609
  return {
2607
2610
  ...e,
@@ -2610,12 +2613,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2610
2613
  // Keep filtered data in sync
2611
2614
  };
2612
2615
  }
2613
- case s.SET_SORT: {
2614
- const a = ke(e);
2616
+ case l.SET_SORT: {
2617
+ const s = ke(e);
2615
2618
  (e.isSelectAllRecords || ((o = e.selectedRows) == null ? void 0 : o.length) > 0) && e.removeSelectionOnOperation && qe({ state: e, action: { payload: null } });
2616
- const u = {
2619
+ const E = {
2617
2620
  ...e,
2618
- ...a ? {} : { expandedChildRows: {} },
2621
+ ...s ? {} : { expandedChildRows: {} },
2619
2622
  sortState: n.payload,
2620
2623
  ...e.removeSelectionOnOperation ? {
2621
2624
  selectedRows: [],
@@ -2634,25 +2637,25 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2634
2637
  page: 1
2635
2638
  }
2636
2639
  };
2637
- return (f = (d = e.callBackRef) == null ? void 0 : d.current) != null && f.onSortChange && e.callBackRef.current.onSortChange(n.payload), u;
2640
+ return (f = (d = e.callBackRef) == null ? void 0 : d.current) != null && f.onSortChange && e.callBackRef.current.onSortChange(n.payload), E;
2638
2641
  }
2639
- case s.ENABLE_ROW_SPAN:
2642
+ case l.ENABLE_ROW_SPAN:
2640
2643
  return {
2641
2644
  ...e,
2642
2645
  enableRowSpan: n.payload
2643
2646
  };
2644
- case s.SET_ROW_SPAN_COLUMN:
2647
+ case l.SET_ROW_SPAN_COLUMN:
2645
2648
  return {
2646
2649
  ...e,
2647
2650
  rowSpanColumn: n.payload
2648
2651
  };
2649
- case s.SET_PAGE: {
2650
- const a = Ze(e);
2651
- Oe(e, a);
2652
- const u = ke(e);
2652
+ case l.SET_PAGE: {
2653
+ const s = Ze(e);
2654
+ me(e, s);
2655
+ const E = ke(e);
2653
2656
  return {
2654
2657
  ...e,
2655
- ...u ? {} : { expandedChildRows: {} },
2658
+ ...E ? {} : { expandedChildRows: {} },
2656
2659
  pagination: {
2657
2660
  ...e.pagination,
2658
2661
  page: n.payload,
@@ -2660,11 +2663,11 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2660
2663
  }
2661
2664
  };
2662
2665
  }
2663
- case s.SET_PAGE_SIZE: {
2664
- const a = ke(e), { totalItems: u } = e.pagination;
2666
+ case l.SET_PAGE_SIZE: {
2667
+ const s = ke(e), { totalItems: E } = e.pagination;
2665
2668
  return {
2666
2669
  ...e,
2667
- ...a ? {} : { expandedChildRows: {} },
2670
+ ...s ? {} : { expandedChildRows: {} },
2668
2671
  ...e.removeSelectionOnOperation ? {
2669
2672
  isSelectAllRecords: !1,
2670
2673
  selectedRows: [],
@@ -2677,19 +2680,19 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2677
2680
  page: 1,
2678
2681
  currentPage: 1,
2679
2682
  // Reset to first page when changing page size
2680
- ...e.serverSide ? {} : { totalPages: Math.ceil(u / n.payload) }
2683
+ ...e.serverSide ? {} : { totalPages: Math.ceil(E / n.payload) }
2681
2684
  }
2682
2685
  };
2683
2686
  }
2684
- case s.SET_IS_SINGLE_SELECT:
2687
+ case l.SET_IS_SINGLE_SELECT:
2685
2688
  return {
2686
2689
  ...e,
2687
2690
  isSingleSelect: n.payload
2688
2691
  };
2689
- case s.SET_SELECTED_ROWS: {
2690
- let a = e.selectedRows, u = e.unCheckedRows, h = e.selectedRowsObject, B = e.filteredData;
2692
+ case l.SET_SELECTED_ROWS: {
2693
+ let s = e.selectedRows, E = e.unCheckedRows, h = e.selectedRowsObject, B = e.filteredData;
2691
2694
  if (Array.isArray(n.payload))
2692
- a = n.payload.map((w) => String(w)), h = n.payload.reduce(
2695
+ s = n.payload.map((w) => String(w)), h = n.payload.reduce(
2693
2696
  (w, I) => (w[I] = !0, w),
2694
2697
  {}
2695
2698
  );
@@ -2712,48 +2715,48 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2712
2715
  selectUnselectRowId: String(F),
2713
2716
  isUnchecked: m
2714
2717
  });
2715
- a = x, u = D, h = y, B = z;
2718
+ s = x, E = D, h = y, B = z;
2716
2719
  }
2717
2720
  }
2718
2721
  return qe({
2719
2722
  state: e,
2720
- action: { payload: a }
2723
+ action: { payload: s }
2721
2724
  }), {
2722
2725
  ...e,
2723
2726
  filteredData: B,
2724
- selectedRows: a,
2727
+ selectedRows: s,
2725
2728
  selectedRowsObject: h,
2726
2729
  isSelectionChanged: !1,
2727
- unCheckedRows: u
2730
+ unCheckedRows: E
2728
2731
  };
2729
2732
  }
2730
- case s.SET_COLUMN_FILTER: {
2731
- const { field: a, rules: u, isBulk: h, filters: B } = n.payload;
2733
+ case l.SET_COLUMN_FILTER: {
2734
+ const { field: s, rules: E, isBulk: h, filters: B } = n.payload;
2732
2735
  return {
2733
2736
  ...e,
2734
2737
  columnFilters: {
2735
- ...h ? B : { ...e.columnFilters, [a]: u }
2738
+ ...h ? B : { ...e.columnFilters, [s]: E }
2736
2739
  }
2737
2740
  };
2738
2741
  }
2739
- case s.REMOVE_COLUMN_FILTER: {
2742
+ case l.REMOVE_COLUMN_FILTER: {
2740
2743
  if (typeof n.payload == "boolean")
2741
2744
  return {
2742
2745
  ...e,
2743
2746
  columnFilters: {}
2744
2747
  };
2745
- const a = { ...e.columnFilters };
2746
- return delete a[n.payload], {
2748
+ const s = { ...e.columnFilters };
2749
+ return delete s[n.payload], {
2747
2750
  ...e,
2748
- columnFilters: a
2751
+ columnFilters: s
2749
2752
  };
2750
2753
  }
2751
- case s.APPLY_FILTERS: {
2752
- const { isChildRowEmpty: a, updatedData: u, filteredData: h } = n.payload;
2754
+ case l.APPLY_FILTERS: {
2755
+ const { isChildRowEmpty: s, updatedData: E, filteredData: h } = n.payload;
2753
2756
  return {
2754
2757
  ...e,
2755
- ...a ? {} : { expandedChildRows: {} },
2756
- data: u,
2758
+ ...s ? {} : { expandedChildRows: {} },
2759
+ data: E,
2757
2760
  filteredData: h,
2758
2761
  ...e.removeSelectionOnOperation ? {
2759
2762
  selectedRows: [],
@@ -2780,12 +2783,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2780
2783
  }
2781
2784
  };
2782
2785
  }
2783
- case s.TOGGLE_GROUP_EXPANSION: {
2784
- const { rowId: a, rowIndex: u } = n.payload, h = String(a), B = e.filteredData || [];
2786
+ case l.TOGGLE_GROUP_EXPANSION: {
2787
+ const { rowId: s, rowIndex: E } = n.payload, h = String(s), B = e.filteredData || [];
2785
2788
  let w;
2786
2789
  const I = [...B], m = h.split("/").length, G = !e.expandedChildRows[h];
2787
2790
  if (G) {
2788
- const F = B[u], x = (F == null ? void 0 : F[e.childKeyField]) || [], D = e.columns.some((H) => H.aggFunc);
2791
+ const F = B[E], x = (F == null ? void 0 : F[e.childKeyField]) || [], D = e.columns.some((H) => H.aggFunc);
2789
2792
  let y = x, z = null;
2790
2793
  if (D && x.length > 0) {
2791
2794
  const { aggreRow: H, aggreChildRows: b } = ye(
@@ -2793,7 +2796,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2793
2796
  y,
2794
2797
  F,
2795
2798
  m,
2796
- u,
2799
+ E,
2797
2800
  h
2798
2801
  );
2799
2802
  z = H, y = b;
@@ -2802,17 +2805,17 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2802
2805
  ...H,
2803
2806
  __parentPath: H.__parentPath ? `${H.__parentPath}/${h}` : h,
2804
2807
  level: m,
2805
- parentRowIndex: u,
2808
+ parentRowIndex: E,
2806
2809
  parentRowData: F,
2807
2810
  groupingLevel: m
2808
2811
  }));
2809
- const O = x.length + (z ? 1 : 0);
2812
+ const S = x.length + (z ? 1 : 0);
2810
2813
  w = {
2811
2814
  ...e.expandedChildRows,
2812
2815
  [h]: {
2813
2816
  rowId: h,
2814
- rowIndex: u,
2815
- childRowsCount: O
2817
+ rowIndex: E,
2818
+ childRowsCount: S
2816
2819
  }
2817
2820
  };
2818
2821
  const T = Fe(
@@ -2820,7 +2823,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2820
2823
  e.rowSpanColumn,
2821
2824
  e.api
2822
2825
  ), X = z ? [...T, z] : T;
2823
- I.splice(u, 1), I.splice(u, 0, ...X);
2826
+ I.splice(E, 1), I.splice(E, 0, ...X);
2824
2827
  } else {
2825
2828
  w = {
2826
2829
  ...e.expandedChildRows
@@ -2828,41 +2831,41 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2828
2831
  let F = 0;
2829
2832
  Object.keys(w).forEach((x) => {
2830
2833
  x.startsWith(h) && (F += w[x].childRowsCount, delete w[x]);
2831
- }), delete I[u].__rowSpanInfo, I.splice(u + 1, F);
2834
+ }), delete I[E].__rowSpanInfo, I.splice(E + 1, F);
2832
2835
  }
2833
- return (E = (c = e.callBackRef) == null ? void 0 : c.current) != null && E.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
2836
+ return (u = (c = e.callBackRef) == null ? void 0 : c.current) != null && u.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
2834
2837
  rowId: h,
2835
- rowIndex: u,
2838
+ rowIndex: E,
2836
2839
  api: e.api,
2837
2840
  isExpanded: G
2838
- }), Oe(e, I), {
2841
+ }), me(e, I), {
2839
2842
  ...e,
2840
2843
  expandedChildRows: w,
2841
2844
  filteredData: I,
2842
2845
  data: I
2843
2846
  };
2844
2847
  }
2845
- case s.SET_FIELD_KEYS:
2848
+ case l.SET_FIELD_KEYS:
2846
2849
  return {
2847
2850
  ...e,
2848
2851
  uniqueIdField: n.payload.uniqueIdField || e.uniqueIdField,
2849
2852
  childKeyField: n.payload.childKeyField || e.childKeyField
2850
2853
  };
2851
- case s.SELECTION_CHANGED_HANDLED:
2854
+ case l.SELECTION_CHANGED_HANDLED:
2852
2855
  return e.isSelectionChanged ? {
2853
2856
  ...e,
2854
2857
  isSelectionChanged: !1
2855
2858
  } : e;
2856
- case s.FREEZE_COLUMN: {
2857
- const { columnId: a } = n.payload, u = e.columns.map((I) => M(I) === a ? { ...I, is_frozen: !0, pinned: "left" } : I), { processedColumns: h } = De(
2858
- u,
2859
+ case l.FREEZE_COLUMN: {
2860
+ const { columnId: s } = n.payload, E = e.columns.map((I) => M(I) === s ? { ...I, is_frozen: !0, pinned: "left" } : I), { processedColumns: h } = De(
2861
+ E,
2859
2862
  e.expandedColumnGroups || {},
2860
2863
  0,
2861
2864
  null,
2862
2865
  ((C = (g = n.meta) == null ? void 0 : g.defaultColDef) == null ? void 0 : C.minWidth) || ((L = e.defaultColDef) == null ? void 0 : L.minWidth) || 150
2863
2866
  ), { columns: B, frozenData: w } = Be(
2864
2867
  h,
2865
- ((l = n.meta) == null ? void 0 : l.defaultColDef) || e.defaultColDef || void 0
2868
+ ((a = n.meta) == null ? void 0 : a.defaultColDef) || e.defaultColDef || void 0
2866
2869
  );
2867
2870
  return {
2868
2871
  ...e,
@@ -2870,39 +2873,39 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2870
2873
  frozenColumns: w
2871
2874
  };
2872
2875
  }
2873
- case s.UNFREEZE_COLUMN: {
2874
- const { columnId: a } = n.payload, u = {}, h = {};
2876
+ case l.UNFREEZE_COLUMN: {
2877
+ const { columnId: s } = n.payload, E = {}, h = {};
2875
2878
  if (e.columns.forEach((y) => {
2876
2879
  if (y.children && Array.isArray(y.children)) {
2877
2880
  const z = M(y);
2878
- h[z] = [], y.children.forEach((O) => {
2879
- const T = M(O);
2880
- u[T] = z, h[z] ? h[z].push(T) : h[z] = [T];
2881
+ h[z] = [], y.children.forEach((S) => {
2882
+ const T = M(S);
2883
+ E[T] = z, h[z] ? h[z].push(T) : h[z] = [T];
2881
2884
  });
2882
2885
  }
2883
2886
  }), !e.columns.find(
2884
- (y) => M(y) === a
2887
+ (y) => M(y) === s
2885
2888
  )) return e;
2886
2889
  const w = [];
2887
- let I = a;
2888
- for (; u[I]; ) {
2889
- const y = u[I];
2890
+ let I = s;
2891
+ for (; E[I]; ) {
2892
+ const y = E[I];
2890
2893
  w.push(y), I = y;
2891
2894
  }
2892
2895
  const m = {};
2893
2896
  e.columns.forEach((y) => {
2894
2897
  const z = M(y);
2895
- if (y.is_frozen && z !== a && w.includes(z) === !1) {
2896
- let O = z;
2897
- for (; u[O]; ) {
2898
- const T = u[O];
2899
- m[T] = !0, O = T;
2898
+ if (y.is_frozen && z !== s && w.includes(z) === !1) {
2899
+ let S = z;
2900
+ for (; E[S]; ) {
2901
+ const T = E[S];
2902
+ m[T] = !0, S = T;
2900
2903
  }
2901
2904
  }
2902
2905
  });
2903
2906
  const G = e.columns.map((y) => {
2904
2907
  const z = M(y);
2905
- return z === a ? { ...y, is_frozen: !1, pinned: null } : w.includes(z) ? m[z] ? y : { ...y, is_frozen: !1, pinned: null } : y;
2908
+ return z === s ? { ...y, is_frozen: !1, pinned: null } : w.includes(z) ? m[z] ? y : { ...y, is_frozen: !1, pinned: null } : y;
2906
2909
  }), { processedColumns: F } = De(
2907
2910
  G,
2908
2911
  e.expandedColumnGroups || {},
@@ -2911,7 +2914,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2911
2914
  ((R = (p = n.meta) == null ? void 0 : p.defaultColDef) == null ? void 0 : R.minWidth) || ((P = e.defaultColDef) == null ? void 0 : P.minWidth) || 150
2912
2915
  ), { columns: x, frozenData: D } = Be(
2913
2916
  F,
2914
- ((S = n.meta) == null ? void 0 : S.defaultColDef) || e.defaultColDef || void 0
2917
+ ((O = n.meta) == null ? void 0 : O.defaultColDef) || e.defaultColDef || void 0
2915
2918
  );
2916
2919
  return {
2917
2920
  ...e,
@@ -2919,27 +2922,27 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2919
2922
  frozenColumns: D
2920
2923
  };
2921
2924
  }
2922
- case s.SET_COLUMN_WIDTH: {
2925
+ case l.SET_COLUMN_WIDTH: {
2923
2926
  const {
2924
- field: a,
2925
- width: u,
2927
+ field: s,
2928
+ width: E,
2926
2929
  isAutoWidth: h
2927
2930
  } = n.payload, B = (G) => {
2928
- if (M(G) === a)
2931
+ if (M(G) === s)
2929
2932
  return {
2930
2933
  ...G,
2931
- width: u,
2934
+ width: E,
2932
2935
  isAutoWidth: h !== void 0 ? h : G.isAutoWidth
2933
2936
  };
2934
2937
  if (G.children && G.children.length > 0) {
2935
2938
  const x = G.children.some(
2936
- (y) => M(y) === a || y.path && y.path.includes(a)
2939
+ (y) => M(y) === s || y.path && y.path.includes(s)
2937
2940
  ), D = G.children.map(
2938
2941
  B
2939
2942
  );
2940
2943
  if (x) {
2941
2944
  const y = D.reduce(
2942
- (z, O) => O.hidden || O.is_hidden ? z : z + (O.width || 100),
2945
+ (z, S) => S.hidden || S.is_hidden ? z : z + (S.width || 100),
2943
2946
  0
2944
2947
  );
2945
2948
  return {
@@ -2967,17 +2970,17 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2967
2970
  frozenColumns: m
2968
2971
  };
2969
2972
  }
2970
- case s.SET_COLUMNS_WIDTH: {
2971
- const { widths: a, isAutoWidth: u } = n.payload, h = e.columns.map((w) => {
2973
+ case l.SET_COLUMNS_WIDTH: {
2974
+ const { widths: s, isAutoWidth: E } = n.payload, h = e.columns.map((w) => {
2972
2975
  const I = M(w);
2973
- return a[I] !== void 0 ? {
2976
+ return s[I] !== void 0 ? {
2974
2977
  ...w,
2975
- width: a[I],
2976
- isAutoWidth: u !== void 0 ? u : w.isAutoWidth
2978
+ width: s[I],
2979
+ isAutoWidth: E !== void 0 ? E : w.isAutoWidth
2977
2980
  } : w;
2978
2981
  }), B = { ...e.frozenColumns };
2979
2982
  if (B.indexes.length > 0) {
2980
- let w = an(
2983
+ let w = sn(
2981
2984
  !0,
2982
2985
  e.disableSelectAllRecords,
2983
2986
  e.isSingleSelect
@@ -2998,7 +3001,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
2998
3001
  frozenColumns: B
2999
3002
  };
3000
3003
  }
3001
- case s.SHOW_NOTIFICATION:
3004
+ case l.SHOW_NOTIFICATION:
3002
3005
  return {
3003
3006
  ...e,
3004
3007
  notification: {
@@ -3008,7 +3011,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3008
3011
  timeout: n.payload.timeout || 3e3
3009
3012
  }
3010
3013
  };
3011
- case s.HIDE_NOTIFICATION:
3014
+ case l.HIDE_NOTIFICATION:
3012
3015
  return {
3013
3016
  ...e,
3014
3017
  notification: {
@@ -3019,25 +3022,25 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3019
3022
  timeout: 0
3020
3023
  }
3021
3024
  };
3022
- case s.TOGGLE_COLUMN_VISIBILITY: {
3023
- const { columns: a, frozenData: u } = Be(
3025
+ case l.TOGGLE_COLUMN_VISIBILITY: {
3026
+ const { columns: s, frozenData: E } = Be(
3024
3027
  n.payload,
3025
3028
  e.defaultColDef || { minWidth: 150 }
3026
3029
  );
3027
3030
  return {
3028
3031
  ...e,
3029
- columns: a,
3030
- frozenColumns: u
3032
+ columns: s,
3033
+ frozenColumns: E
3031
3034
  };
3032
3035
  }
3033
- case s.AUTOSIZE_COLUMNS_REQUESTED:
3036
+ case l.AUTOSIZE_COLUMNS_REQUESTED:
3034
3037
  return {
3035
3038
  ...e,
3036
3039
  columnsToAutosize: n.payload.columnsToAutosize
3037
3040
  };
3038
- case s.PIN_COLUMN_RIGHT: {
3039
- const { field: a } = n.payload, u = window.innerWidth * 0.3, h = e.columns.find(
3040
- (b) => M(b) === a
3041
+ case l.PIN_COLUMN_RIGHT: {
3042
+ const { field: s } = n.payload, E = window.innerWidth * 0.3, h = e.columns.find(
3043
+ (b) => M(b) === s
3041
3044
  );
3042
3045
  if (!h)
3043
3046
  return e;
@@ -3050,21 +3053,21 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3050
3053
  },
3051
3054
  0
3052
3055
  ), I = h.width || ((U = e.defaultColDef) == null ? void 0 : U.minWidth) || 150;
3053
- if (w + I > u)
3056
+ if (w + I > E)
3054
3057
  return {
3055
3058
  ...e,
3056
3059
  notification: {
3057
3060
  show: !0,
3058
- message: `Cannot pin column "${(h == null ? void 0 : h.headerName) || a}" to the right. It would exceed the maximum allowed width (30% of viewport).`,
3061
+ message: `Cannot pin column "${(h == null ? void 0 : h.headerName) || s}" to the right. It would exceed the maximum allowed width (30% of viewport).`,
3059
3062
  type: "warning",
3060
3063
  timeout: 5e3
3061
3064
  }
3062
3065
  };
3063
3066
  const { parentToChildrenMap: F, childToParentMap: x } = tn(
3064
3067
  e.columns
3065
- ), D = x[a], y = !!D, z = y ? fn(a, x) : [], O = y ? F[D] || [] : [], T = e.columns.map((b) => {
3068
+ ), D = x[s], y = !!D, z = y ? fn(s, x) : [], S = y ? F[D] || [] : [], T = e.columns.map((b) => {
3066
3069
  const re = M(b);
3067
- return re === a ? {
3070
+ return re === s ? {
3068
3071
  ...b,
3069
3072
  pinned: "right",
3070
3073
  is_frozen: !1
@@ -3077,7 +3080,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3077
3080
  ...b,
3078
3081
  pinned: "right",
3079
3082
  is_frozen: !1
3080
- } : O.includes(re) ? {
3083
+ } : S.includes(re) ? {
3081
3084
  ...b,
3082
3085
  pinned: "right",
3083
3086
  is_frozen: !1
@@ -3092,18 +3095,18 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3092
3095
  frozenColumns: H
3093
3096
  };
3094
3097
  }
3095
- case s.UNPIN_COLUMN_RIGHT: {
3096
- const { field: a } = n.payload, { parentToChildrenMap: u, childToParentMap: h } = tn(
3098
+ case l.UNPIN_COLUMN_RIGHT: {
3099
+ const { field: s } = n.payload, { parentToChildrenMap: E, childToParentMap: h } = tn(
3097
3100
  e.columns
3098
- ), B = h[a], w = !!B, I = w ? fn(a, h) : [], m = w ? u[B] || [] : [], G = e.columns.map((D) => {
3101
+ ), B = h[s], w = !!B, I = w ? fn(s, h) : [], m = w ? E[B] || [] : [], G = e.columns.map((D) => {
3099
3102
  const y = M(D);
3100
- return y === a ? {
3103
+ return y === s ? {
3101
3104
  ...D,
3102
3105
  pinned: void 0
3103
3106
  } : I.includes(y) ? {
3104
3107
  ...D,
3105
3108
  pinned: void 0
3106
- } : I.some((O) => (u[O] || []).includes(y)) ? {
3109
+ } : I.some((S) => (E[S] || []).includes(y)) ? {
3107
3110
  ...D,
3108
3111
  pinned: void 0
3109
3112
  } : m.includes(y) ? {
@@ -3120,16 +3123,16 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3120
3123
  frozenColumns: x
3121
3124
  };
3122
3125
  }
3123
- case s.TOGGLE_FREEZE_COLUMN: {
3126
+ case l.TOGGLE_FREEZE_COLUMN: {
3124
3127
  const {
3125
- field: a,
3126
- column: u,
3128
+ field: s,
3129
+ column: E,
3127
3130
  frozen: h = !1,
3128
3131
  options: B = {}
3129
3132
  } = n.payload, w = ht({
3130
3133
  state: e,
3131
- freezeColumnField: a,
3132
- column: u,
3134
+ freezeColumnField: s,
3135
+ column: E,
3133
3136
  frozen: h,
3134
3137
  options: B
3135
3138
  });
@@ -3138,12 +3141,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3138
3141
  ...w
3139
3142
  };
3140
3143
  }
3141
- case s.REORDER_COLUMNS: {
3142
- const { sourceColumn: a, targetColumn: u } = n.payload, h = e.frozenColumns.totalWidth, B = ((v = (j = e.tableInstance) == null ? void 0 : j.current) == null ? void 0 : v.clientWidth) || 0, w = [...e.columns], I = a.children && a.children.length > 0, m = (T) => {
3144
+ case l.REORDER_COLUMNS: {
3145
+ const { sourceColumn: s, targetColumn: E } = n.payload, h = e.frozenColumns.totalWidth, B = ((v = (_ = e.tableInstance) == null ? void 0 : _.current) == null ? void 0 : v.clientWidth) || 0, w = [...e.columns], I = s.children && s.children.length > 0, m = (T) => {
3143
3146
  var X;
3144
3147
  return T.children && T.children.length > 0 ? T.children.reduce((H, b) => H + m(b), 0) : T.width || ((X = e.defaultColDef) == null ? void 0 : X.minWidth) || 150;
3145
- }, G = I ? m(a) : a.width || ((K = e.defaultColDef) == null ? void 0 : K.minWidth) || 150;
3146
- if (u.is_frozen && !a.is_frozen && G && h + G > B * 0.7)
3148
+ }, G = I ? m(s) : s.width || ((K = e.defaultColDef) == null ? void 0 : K.minWidth) || 150;
3149
+ if (E.is_frozen && !s.is_frozen && G && h + G > B * 0.7)
3147
3150
  return {
3148
3151
  ...e,
3149
3152
  notification: {
@@ -3154,15 +3157,15 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3154
3157
  timeout: 3e3
3155
3158
  }
3156
3159
  };
3157
- if (!a || !u)
3160
+ if (!s || !E)
3158
3161
  return console.error("Invalid source or target column for reordering", {
3159
- sourceColumn: a,
3160
- targetColumn: u
3162
+ sourceColumn: s,
3163
+ targetColumn: E
3161
3164
  }), e;
3162
3165
  let F = [...w];
3163
3166
  F = $n(
3164
- a,
3165
- u,
3167
+ s,
3168
+ E,
3166
3169
  F
3167
3170
  ), F.forEach((T, X) => {
3168
3171
  T.order_of_display = X + 1;
@@ -3172,7 +3175,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3172
3175
  e.expandedColumnGroups || {},
3173
3176
  0,
3174
3177
  null,
3175
- ((_ = e.defaultColDef) == null ? void 0 : _.minWidth) || 150
3178
+ ((j = e.defaultColDef) == null ? void 0 : j.minWidth) || 150
3176
3179
  ), D = { ...e.expandedColumnGroups };
3177
3180
  x.forEach((T) => {
3178
3181
  D[T] !== !0 && (D[T] = !0);
@@ -3183,77 +3186,77 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3183
3186
  0,
3184
3187
  null,
3185
3188
  ((q = e.defaultColDef) == null ? void 0 : q.minWidth) || 150
3186
- ), { columns: z, frozenData: O } = Be(
3189
+ ), { columns: z, frozenData: S } = Be(
3187
3190
  y,
3188
3191
  ((ee = n.meta) == null ? void 0 : ee.defaultColDef) || e.defaultColDef || void 0
3189
3192
  );
3190
3193
  return {
3191
3194
  ...e,
3192
3195
  columns: z,
3193
- frozenColumns: O,
3196
+ frozenColumns: S,
3194
3197
  expandedColumnGroups: D
3195
3198
  };
3196
3199
  }
3197
- case s.SET_PREV_ACTION:
3200
+ case l.SET_PREV_ACTION:
3198
3201
  return n.payload === e.prevAction ? e : {
3199
3202
  ...e,
3200
3203
  prevAction: n.payload
3201
3204
  };
3202
- case s.SET_CHECK_CONFIGURATION:
3205
+ case l.SET_CHECK_CONFIGURATION:
3203
3206
  return JSON.stringify(n.payload) === JSON.stringify(e.checkConfiguration) ? e : {
3204
3207
  ...e,
3205
3208
  checkConfiguration: n.payload
3206
3209
  };
3207
- case s.SET_IS_SELECT_ALL_RECORDS: {
3208
- const a = (ne = e.api) == null ? void 0 : ne.getInfiniteCache();
3209
- let u = [];
3210
- e.serverSide ? u = (a == null ? void 0 : a.getAllCachedData()) || e.data || [] : u = (a == null ? void 0 : a.params.datasource.getWholeData()) || e.data || [];
3211
- let h = u, B = !1;
3210
+ case l.SET_IS_SELECT_ALL_RECORDS: {
3211
+ const s = (ne = e.api) == null ? void 0 : ne.getInfiniteCache();
3212
+ let E = [];
3213
+ e.serverSide ? E = (s == null ? void 0 : s.getAllCachedData()) || e.data || [] : E = (s == null ? void 0 : s.params.datasource.getWholeData()) || e.data || [];
3214
+ let h = E, B = !1;
3212
3215
  if (!e.serverSide && e.columnFilters && Object.keys(e.columnFilters).length > 0) {
3213
- const O = Un(
3216
+ const S = Un(
3214
3217
  e.columns
3215
3218
  );
3216
3219
  h = Ct(
3217
- u,
3220
+ E,
3218
3221
  e.columnFilters,
3219
- O
3222
+ S
3220
3223
  ), B = !0;
3221
3224
  }
3222
3225
  const w = {};
3223
- for (let O = 0; O < h.length; O++) {
3224
- const T = h[O], X = String(T[e.uniqueIdField]);
3226
+ for (let S = 0; S < h.length; S++) {
3227
+ const T = h[S], X = String(T[e.uniqueIdField]);
3225
3228
  T != null && T.__parentPath || T != null && T.isChildGroup || (w[X] = !0);
3226
3229
  }
3227
3230
  let I = [], m = {}, G = {};
3228
3231
  if (n.payload) {
3229
3232
  I = [...e.selectedRows], m = { ...e.selectedRowsObject }, G = { ...e.unCheckedRows };
3230
- for (const O in w) {
3231
- if (!m[O]) {
3233
+ for (const S in w) {
3234
+ if (!m[S]) {
3232
3235
  const T = h.findIndex(
3233
- (X) => String(X[e.uniqueIdField]) === O
3236
+ (X) => String(X[e.uniqueIdField]) === S
3234
3237
  );
3235
- je(
3238
+ _e(
3236
3239
  e.rowSelectionRef,
3237
3240
  T,
3238
3241
  h[T],
3239
3242
  e.uniqueIdField
3240
- ) && (I.push(O), m[O] = !0);
3243
+ ) && (I.push(S), m[S] = !0);
3241
3244
  }
3242
- delete G[O];
3245
+ delete G[S];
3243
3246
  }
3244
3247
  } else if (!n.payload && Object.keys(e.columnFilters).length === 0)
3245
- I = [], m = {}, G = {}, h = h.map((O) => O.is_selected ? { ...O, is_selected: !1 } : O);
3248
+ I = [], m = {}, G = {}, h = h.map((S) => S.is_selected ? { ...S, is_selected: !1 } : S);
3246
3249
  else {
3247
3250
  G = { ...e.unCheckedRows };
3248
- for (let O = 0; O < e.selectedRows.length; O++) {
3249
- const T = e.selectedRows[O];
3251
+ for (let S = 0; S < e.selectedRows.length; S++) {
3252
+ const T = e.selectedRows[S];
3250
3253
  if (w[T])
3251
3254
  G[T] = !0;
3252
3255
  else {
3253
3256
  const X = h.findIndex(
3254
3257
  (H) => String(H[e.uniqueIdField]) === T
3255
3258
  );
3256
- je(
3259
+ _e(
3257
3260
  e.rowSelectionRef,
3258
3261
  X,
3259
3262
  h[X],
@@ -3261,11 +3264,11 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3261
3264
  ) && (I.push(T), m[T] = !0);
3262
3265
  }
3263
3266
  }
3264
- h = h.map((O) => O.is_selected ? { ...O, is_selected: !1 } : O);
3267
+ h = h.map((S) => S.is_selected ? { ...S, is_selected: !1 } : S);
3265
3268
  }
3266
3269
  let F = !0;
3267
- for (const O in w)
3268
- if (!m[O]) {
3270
+ for (const S in w)
3271
+ if (!m[S]) {
3269
3272
  F = !1;
3270
3273
  break;
3271
3274
  }
@@ -3278,7 +3281,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3278
3281
  return h = h.slice(
3279
3282
  (z - 1) * y,
3280
3283
  z * y
3281
- ), h.length || (h = e.filteredData.map((O) => O.is_selected ? { ...O, is_selected: !1 } : O)), {
3284
+ ), h.length || (h = e.filteredData.map((S) => S.is_selected ? { ...S, is_selected: !1 } : S)), {
3282
3285
  ...e,
3283
3286
  filteredData: h,
3284
3287
  isSelectAllRecords: x,
@@ -3290,23 +3293,23 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3290
3293
  prevAction: x ? e.prevAction : ""
3291
3294
  };
3292
3295
  }
3293
- case s.BATCH_UPDATE: {
3294
- const { prevAction: a, checkConfiguration: u, isSelectAllRecords: h } = n.payload, B = {};
3295
- return a !== void 0 && a !== e.prevAction && (B.prevAction = a), u !== void 0 && JSON.stringify(u) !== JSON.stringify(e.checkConfiguration) && (B.checkConfiguration = u), h !== void 0 && h !== e.isSelectAllRecords && (B.isSelectAllRecords = h), Object.keys(B).length === 0 ? e : {
3296
+ case l.BATCH_UPDATE: {
3297
+ const { prevAction: s, checkConfiguration: E, isSelectAllRecords: h } = n.payload, B = {};
3298
+ return s !== void 0 && s !== e.prevAction && (B.prevAction = s), E !== void 0 && JSON.stringify(E) !== JSON.stringify(e.checkConfiguration) && (B.checkConfiguration = E), h !== void 0 && h !== e.isSelectAllRecords && (B.isSelectAllRecords = h), Object.keys(B).length === 0 ? e : {
3296
3299
  ...e,
3297
3300
  ...B
3298
3301
  };
3299
3302
  }
3300
3303
  // Master-Detail functionality
3301
- case s.TOGGLE_MASTER_DETAIL: {
3304
+ case l.TOGGLE_MASTER_DETAIL: {
3302
3305
  const {
3303
- rowId: a,
3304
- rowData: u,
3306
+ rowId: s,
3307
+ rowData: E,
3305
3308
  rowIndex: h,
3306
3309
  currentRowStyles: B
3307
3310
  } = n.payload, w = ((Z = e.masterDetail) == null ? void 0 : Z.expandedRows) || [];
3308
3311
  let I, m = null, G = !1;
3309
- return w.includes(a) ? (I = [], G = !0) : (I = [a], m = u), {
3312
+ return w.includes(s) ? (I = [], G = !0) : (I = [s], m = E), {
3310
3313
  ...e,
3311
3314
  masterDetail: {
3312
3315
  ...e.masterDetail,
@@ -3317,7 +3320,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3317
3320
  }
3318
3321
  };
3319
3322
  }
3320
- case s.SET_DETAIL_RENDERER:
3323
+ case l.SET_DETAIL_RENDERER:
3321
3324
  return {
3322
3325
  ...e,
3323
3326
  masterDetail: {
@@ -3325,7 +3328,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3325
3328
  detailRenderer: n.payload
3326
3329
  }
3327
3330
  };
3328
- case s.SET_MASTER_DETAIL_CONFIG:
3331
+ case l.SET_MASTER_DETAIL_CONFIG:
3329
3332
  return {
3330
3333
  ...e,
3331
3334
  masterDetail: {
@@ -3333,53 +3336,53 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3333
3336
  ...n.payload
3334
3337
  }
3335
3338
  };
3336
- case s.ADD_EVENT_LISTENER: {
3337
- const { eventType: a, listener: u, once: h = !1 } = n.payload, B = { ...e.eventListeners };
3338
- return B[a] || (B[a] = []), B[a].some(
3339
- (I) => I.fn === u
3340
- ) || B[a].push({
3341
- fn: u,
3339
+ case l.ADD_EVENT_LISTENER: {
3340
+ const { eventType: s, listener: E, once: h = !1 } = n.payload, B = { ...e.eventListeners };
3341
+ return B[s] || (B[s] = []), B[s].some(
3342
+ (I) => I.fn === E
3343
+ ) || B[s].push({
3344
+ fn: E,
3342
3345
  once: h
3343
3346
  }), {
3344
3347
  ...e,
3345
3348
  eventListeners: B
3346
3349
  };
3347
3350
  }
3348
- case s.REMOVE_EVENT_LISTENER: {
3349
- const { eventType: a, listener: u } = n.payload;
3350
- if (!e.eventListeners[a])
3351
+ case l.REMOVE_EVENT_LISTENER: {
3352
+ const { eventType: s, listener: E } = n.payload;
3353
+ if (!e.eventListeners[s])
3351
3354
  return e;
3352
- const h = e.eventListeners[a].filter(
3353
- (w) => w.fn !== u
3355
+ const h = e.eventListeners[s].filter(
3356
+ (w) => w.fn !== E
3354
3357
  ), B = { ...e.eventListeners };
3355
- return h.length === 0 ? delete B[a] : B[a] = h, {
3358
+ return h.length === 0 ? delete B[s] : B[s] = h, {
3356
3359
  ...e,
3357
3360
  eventListeners: B
3358
3361
  };
3359
3362
  }
3360
3363
  // Column grouping functionality
3361
- case s.TOGGLE_COLUMN_GROUP: {
3362
- const { field: a } = n.payload, u = e.expandedColumnGroups || {}, h = u[a] === !0;
3364
+ case l.TOGGLE_COLUMN_GROUP: {
3365
+ const { field: s } = n.payload, E = e.expandedColumnGroups || {}, h = E[s] === !0;
3363
3366
  if (!h) {
3364
3367
  const F = (D, y) => {
3365
3368
  for (const z of D) {
3366
3369
  if (M(z) === y)
3367
3370
  return z;
3368
3371
  if (z.children && z.children.length > 0) {
3369
- const O = F(z.children, y);
3370
- if (O) return O;
3372
+ const S = F(z.children, y);
3373
+ if (S) return S;
3371
3374
  }
3372
3375
  }
3373
3376
  return null;
3374
3377
  }, x = F(
3375
3378
  e.columns,
3376
- a
3379
+ s
3377
3380
  );
3378
3381
  if (x && x.is_frozen) {
3379
- const D = ((se = (te = e.tableInstance) == null ? void 0 : te.current) == null ? void 0 : se.clientWidth) || 0, y = ((ae = e.frozenColumns) == null ? void 0 : ae.totalWidth) || 0, z = (b) => {
3382
+ const D = ((ae = (te = e.tableInstance) == null ? void 0 : te.current) == null ? void 0 : ae.clientWidth) || 0, y = ((se = e.frozenColumns) == null ? void 0 : se.totalWidth) || 0, z = (b) => {
3380
3383
  var re;
3381
3384
  return !b.children || b.children.length === 0 ? b.width || ((re = e.defaultColDef) == null ? void 0 : re.minWidth) || 150 : b.children.reduce((Ce, we) => Ce + z(we), 0);
3382
- }, O = x.width || ((ue = e.defaultColDef) == null ? void 0 : ue.minWidth) || 150, X = z(x) - O, H = y + X;
3385
+ }, S = x.width || ((Ee = e.defaultColDef) == null ? void 0 : Ee.minWidth) || 150, X = z(x) - S, H = y + X;
3383
3386
  if (D > 0 && H > D * 0.7)
3384
3387
  return {
3385
3388
  ...e,
@@ -3393,8 +3396,8 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3393
3396
  }
3394
3397
  }
3395
3398
  const w = {
3396
- ...u,
3397
- [a]: !h
3399
+ ...E,
3400
+ [s]: !h
3398
3401
  }, { processedColumns: I } = De(
3399
3402
  e.columns,
3400
3403
  w,
@@ -3412,38 +3415,38 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3412
3415
  frozenColumns: G
3413
3416
  };
3414
3417
  }
3415
- case s.SET_EXPANDED_COLUMN_GROUPS: {
3416
- const { processedColumns: a } = De(
3418
+ case l.SET_EXPANDED_COLUMN_GROUPS: {
3419
+ const { processedColumns: s } = De(
3417
3420
  e.columns,
3418
3421
  n.payload,
3419
3422
  0,
3420
3423
  null,
3421
3424
  ((he = e.defaultColDef) == null ? void 0 : he.minWidth) || 150
3422
- ), { columns: u, frozenData: h } = Be(
3423
- a,
3425
+ ), { columns: E, frozenData: h } = Be(
3426
+ s,
3424
3427
  e.defaultColDef || { minWidth: 150 }
3425
3428
  );
3426
3429
  return {
3427
3430
  ...e,
3428
3431
  expandedColumnGroups: n.payload,
3429
- columns: u,
3432
+ columns: E,
3430
3433
  frozenColumns: h
3431
3434
  };
3432
3435
  }
3433
3436
  // Row drag preview functionality with swap animation
3434
- case s.PREVIEW_ROW_MOVE: {
3435
- const { fromIndex: a, toIndex: u, fromRowData: h, isDraggingDownward: B } = n.payload;
3437
+ case l.PREVIEW_ROW_MOVE: {
3438
+ const { fromIndex: s, toIndex: E, fromRowData: h, isDraggingDownward: B } = n.payload;
3436
3439
  if (e.previewMode) {
3437
3440
  const w = e.originalFromIndex, I = [...e.originalData ?? []], m = e.hasExpandedChildren;
3438
3441
  I.forEach((x, D) => {
3439
- D === w ? (x._animationState = "moving", x._isDraggedRow = !0, x._hasExpandedChildren = m) : (D >= Math.min(w ?? 0, u) && D <= Math.max(w ?? 0, u) || D >= Math.min(w ?? 0, e.lastToIndex ?? 0) && D <= Math.max(w ?? 0, e.lastToIndex ?? 0)) && (x._animationState = "affected");
3442
+ D === w ? (x._animationState = "moving", x._isDraggedRow = !0, x._hasExpandedChildren = m) : (D >= Math.min(w ?? 0, E) && D <= Math.max(w ?? 0, E) || D >= Math.min(w ?? 0, e.lastToIndex ?? 0) && D <= Math.max(w ?? 0, e.lastToIndex ?? 0)) && (x._animationState = "affected");
3440
3443
  });
3441
3444
  const [G] = I.splice(w ?? 0, 1);
3442
- let F = u;
3445
+ let F = E;
3443
3446
  if (m && B) {
3444
3447
  const x = h == null ? void 0 : h[e.childKeyField], D = (x == null ? void 0 : x.length) || 0;
3445
3448
  D > 0 && e.expandedChildRows[h == null ? void 0 : h[e.uniqueIdField]] && (F = Math.max(
3446
- u - D,
3449
+ E - D,
3447
3450
  (w ?? 0) + 1
3448
3451
  ));
3449
3452
  }
@@ -3465,20 +3468,20 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3465
3468
  } else {
3466
3469
  const w = [...e.filteredData || []], I = [...w], m = h == null ? void 0 : h[e.childKeyField], G = h && m && Array.isArray(m) && m.length > 0;
3467
3470
  I.forEach((D, y) => {
3468
- y === a ? (D._animationState = "moving", D._isDraggedRow = !0, D._hasExpandedChildren = G) : y >= Math.min(a, u) && y <= Math.max(a, u) && (D._animationState = "affected");
3471
+ y === s ? (D._animationState = "moving", D._isDraggedRow = !0, D._hasExpandedChildren = G) : y >= Math.min(s, E) && y <= Math.max(s, E) && (D._animationState = "affected");
3469
3472
  });
3470
- const [F] = I.splice(a, 1);
3471
- let x = u;
3473
+ const [F] = I.splice(s, 1);
3474
+ let x = E;
3472
3475
  if (G && B) {
3473
3476
  const D = (m == null ? void 0 : m.length) || 0;
3474
- D > 0 && (x = Math.max(u - D, a + 1));
3477
+ D > 0 && (x = Math.max(E - D, s + 1));
3475
3478
  }
3476
3479
  return I.splice(x, 0, F), {
3477
3480
  ...e,
3478
3481
  originalData: w,
3479
3482
  filteredData: I,
3480
3483
  previewMode: !0,
3481
- originalFromIndex: a,
3484
+ originalFromIndex: s,
3482
3485
  // Store the original fromIndex
3483
3486
  lastToIndex: x,
3484
3487
  // Track the last position for animation
@@ -3489,13 +3492,13 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3489
3492
  };
3490
3493
  }
3491
3494
  }
3492
- case s.RESET_ROW_PREVIEW: {
3495
+ case l.RESET_ROW_PREVIEW: {
3493
3496
  if (!e.previewMode)
3494
3497
  return e;
3495
- const a = (e.originalData || []).map((u) => (delete u._isDraggedRow, delete u._animationState, u));
3498
+ const s = (e.originalData || []).map((E) => (delete E._isDraggedRow, delete E._animationState, E));
3496
3499
  return {
3497
3500
  ...e,
3498
- filteredData: a,
3501
+ filteredData: s,
3499
3502
  originalData: null,
3500
3503
  previewMode: !1,
3501
3504
  originalFromIndex: null,
@@ -3505,54 +3508,54 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3505
3508
  };
3506
3509
  }
3507
3510
  // Row pinning functionality
3508
- case s.SET_PINNED_TOP_ROWS:
3511
+ case l.SET_PINNED_TOP_ROWS:
3509
3512
  return {
3510
3513
  ...e,
3511
3514
  pinnedTopRows: n.payload
3512
3515
  };
3513
- case s.SET_PINNED_BOTTOM_ROWS:
3516
+ case l.SET_PINNED_BOTTOM_ROWS:
3514
3517
  return {
3515
3518
  ...e,
3516
3519
  pinnedBottomRows: n.payload
3517
3520
  };
3518
3521
  // Row group functionality
3519
- case s.TOGGLE_ROW_GROUP: {
3522
+ case l.TOGGLE_ROW_GROUP: {
3520
3523
  const {
3521
- groupId: a,
3522
- rowIndex: u,
3524
+ groupId: s,
3525
+ rowIndex: E,
3523
3526
  extra: { fieldName: h, value: B }
3524
- } = n.payload, { expandedGroups: w, loadedData: I } = e.rowGroupState, m = !((ie = w[a]) != null && ie[a]), G = [...e.filteredData ?? []], F = I[a] || [], x = { ...w };
3527
+ } = n.payload, { expandedGroups: w, loadedData: I } = e.rowGroupState, m = !((ie = w[s]) != null && ie[s]), G = [...e.filteredData ?? []], F = I[s] || [], x = { ...w };
3525
3528
  let D = 0;
3526
3529
  if (m)
3527
- F.length && (G.splice(u + 1, 0, ...F), D = F.length);
3530
+ F.length && (G.splice(E + 1, 0, ...F), D = F.length);
3528
3531
  else {
3529
- let O = -1;
3532
+ let S = -1;
3530
3533
  for (let X = 0; X < G.length; X++)
3531
- if ((G[X].id || G[X][e.uniqueIdField]) == a) {
3532
- O = X;
3534
+ if ((G[X].id || G[X][e.uniqueIdField]) == s) {
3535
+ S = X;
3533
3536
  break;
3534
3537
  }
3535
- O === -1 && (O = ((ce = w[a]) == null ? void 0 : ce.rowIndex) || u);
3538
+ S === -1 && (S = ((ce = w[s]) == null ? void 0 : ce.rowIndex) || E);
3536
3539
  let T = 0;
3537
3540
  Object.keys(w).forEach((X) => {
3538
- X.startsWith(a) && (delete x[X], T += w[X].count);
3539
- }), G.splice(O + 1, T);
3541
+ X.startsWith(s) && (delete x[X], T += w[X].count);
3542
+ }), G.splice(S + 1, T);
3540
3543
  }
3541
3544
  const y = { ...I };
3542
3545
  let z = { ...e.rowGroupState.pagination };
3543
3546
  return e.purgeClosedRowNodes && !m && (Object.keys(w).filter(
3544
- (T) => T.startsWith(a)
3547
+ (T) => T.startsWith(s)
3545
3548
  ).forEach((T) => {
3546
3549
  delete y[T], delete z[T];
3547
3550
  }), z = {
3548
3551
  ...z,
3549
- [a]: {
3550
- ...z[a],
3552
+ [s]: {
3553
+ ...z[s],
3551
3554
  hasMore: !1
3552
3555
  }
3553
- }), (Ee = (Ae = e.callBackRef) == null ? void 0 : Ae.current) != null && Ee.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
3554
- rowId: a,
3555
- rowIndex: u,
3556
+ }), (ue = (Ae = e.callBackRef) == null ? void 0 : Ae.current) != null && ue.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
3557
+ rowId: s,
3558
+ rowIndex: E,
3556
3559
  api: e.api,
3557
3560
  isExpanded: m
3558
3561
  }), {
@@ -3566,9 +3569,9 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3566
3569
  pagination: z,
3567
3570
  expandedGroups: m ? {
3568
3571
  ...e.rowGroupState.expandedGroups,
3569
- [a]: {
3570
- [a]: m,
3571
- rowIndex: u,
3572
+ [s]: {
3573
+ [s]: m,
3574
+ rowIndex: E,
3572
3575
  count: D,
3573
3576
  fieldName: h,
3574
3577
  value: B
@@ -3577,19 +3580,19 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3577
3580
  }
3578
3581
  };
3579
3582
  }
3580
- case s.SET_ROW_GROUP_DATA: {
3581
- const { groupId: a, data: u, append: h } = n.payload, B = a.split("/").length, w = u.map((x, D) => ({
3583
+ case l.SET_ROW_GROUP_DATA: {
3584
+ const { groupId: s, data: E, append: h } = n.payload, B = s.split("/").length, w = E.map((x, D) => ({
3582
3585
  ...x,
3583
3586
  isChildGroup: !0,
3584
3587
  childIndex: D,
3585
3588
  groupingLevel: B,
3586
- __parentPath: x.__parentPath ? `${x.__parentPath}/${a}` : a
3587
- })), I = (k = e.rowGroupState.expandedGroups[a]) == null ? void 0 : k.rowIndex, m = e.rowGroupState.loadedData[a] || [], G = h ? [...m, ...w] : w, F = [...e.filteredData ?? []];
3589
+ __parentPath: x.__parentPath ? `${x.__parentPath}/${s}` : s
3590
+ })), I = (k = e.rowGroupState.expandedGroups[s]) == null ? void 0 : k.rowIndex, m = e.rowGroupState.loadedData[s] || [], G = h ? [...m, ...w] : w, F = [...e.filteredData ?? []];
3588
3591
  if (I >= 0) {
3589
3592
  const x = h ? I + 1 + m.length : I + 1;
3590
3593
  F.splice(x, 0, ...w);
3591
3594
  }
3592
- return e.rowGroupState.expandedGroups[a] ? {
3595
+ return e.rowGroupState.expandedGroups[s] ? {
3593
3596
  ...e,
3594
3597
  filteredData: F,
3595
3598
  data: F,
@@ -3597,12 +3600,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3597
3600
  ...e.rowGroupState,
3598
3601
  loadedData: {
3599
3602
  ...e.rowGroupState.loadedData,
3600
- [a]: G
3603
+ [s]: G
3601
3604
  },
3602
3605
  expandedGroups: {
3603
3606
  ...e.rowGroupState.expandedGroups,
3604
- [a]: {
3605
- ...e.rowGroupState.expandedGroups[a],
3607
+ [s]: {
3608
+ ...e.rowGroupState.expandedGroups[s],
3606
3609
  count: G.length
3607
3610
  }
3608
3611
  },
@@ -3610,7 +3613,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3610
3613
  ...e.rowGroupState.cache,
3611
3614
  metadata: {
3612
3615
  ...e.rowGroupState.cache.metadata,
3613
- [a]: {
3616
+ [s]: {
3614
3617
  timestamp: Date.now(),
3615
3618
  lastUpdated: Date.now()
3616
3619
  }
@@ -3619,45 +3622,45 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3619
3622
  }
3620
3623
  } : e;
3621
3624
  }
3622
- case s.SET_ROW_GROUP_LOADING: {
3623
- const { groupId: a, isLoading: u } = n.payload;
3625
+ case l.SET_ROW_GROUP_LOADING: {
3626
+ const { groupId: s, isLoading: E } = n.payload;
3624
3627
  return {
3625
3628
  ...e,
3626
3629
  rowGroupState: {
3627
3630
  ...e.rowGroupState,
3628
3631
  loading: {
3629
3632
  ...e.rowGroupState.loading,
3630
- [a]: u
3633
+ [s]: E
3631
3634
  }
3632
3635
  }
3633
3636
  };
3634
3637
  }
3635
- case s.SET_ROW_GROUP_PAGINATION: {
3636
- const { groupId: a, pagination: u } = n.payload;
3638
+ case l.SET_ROW_GROUP_PAGINATION: {
3639
+ const { groupId: s, pagination: E } = n.payload;
3637
3640
  return {
3638
3641
  ...e,
3639
3642
  rowGroupState: {
3640
3643
  ...e.rowGroupState,
3641
3644
  pagination: {
3642
3645
  ...e.rowGroupState.pagination,
3643
- [a]: {
3644
- ...e.rowGroupState.pagination[a],
3645
- ...u
3646
+ [s]: {
3647
+ ...e.rowGroupState.pagination[s],
3648
+ ...E
3646
3649
  }
3647
3650
  },
3648
- isLoadingSomething: u.hasMore ?? !1
3651
+ isLoadingSomething: E.hasMore ?? !1
3649
3652
  }
3650
3653
  };
3651
3654
  }
3652
- case s.CLEAR_ROW_GROUP_CACHE: {
3653
- const { groupId: a } = n.payload, u = { ...e.rowGroupState.loadedData }, h = { ...e.rowGroupState.pagination }, B = { ...e.rowGroupState.cache.metadata };
3654
- return a ? (delete u[a], delete h[a], delete B[a]) : (Object.keys(u).forEach((w) => delete u[w]), Object.keys(h).forEach((w) => delete h[w]), Object.keys(B).forEach(
3655
+ case l.CLEAR_ROW_GROUP_CACHE: {
3656
+ const { groupId: s } = n.payload, E = { ...e.rowGroupState.loadedData }, h = { ...e.rowGroupState.pagination }, B = { ...e.rowGroupState.cache.metadata };
3657
+ return s ? (delete E[s], delete h[s], delete B[s]) : (Object.keys(E).forEach((w) => delete E[w]), Object.keys(h).forEach((w) => delete h[w]), Object.keys(B).forEach(
3655
3658
  (w) => delete B[w]
3656
3659
  )), {
3657
3660
  ...e,
3658
3661
  rowGroupState: {
3659
3662
  ...e.rowGroupState,
3660
- loadedData: u,
3663
+ loadedData: E,
3661
3664
  pagination: h,
3662
3665
  cache: {
3663
3666
  ...e.rowGroupState.cache,
@@ -3666,14 +3669,14 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3666
3669
  }
3667
3670
  };
3668
3671
  }
3669
- case s.REFRESH_ROW_GROUP_DATA: {
3670
- const { groupId: a } = n.payload, u = { ...e.rowGroupState.cache.metadata };
3671
- return a && u[a] ? u[a] = {
3672
- ...u[a],
3672
+ case l.REFRESH_ROW_GROUP_DATA: {
3673
+ const { groupId: s } = n.payload, E = { ...e.rowGroupState.cache.metadata };
3674
+ return s && E[s] ? E[s] = {
3675
+ ...E[s],
3673
3676
  lastUpdated: Date.now()
3674
- } : a || Object.keys(u).forEach((h) => {
3675
- u[h] = {
3676
- ...u[h],
3677
+ } : s || Object.keys(E).forEach((h) => {
3678
+ E[h] = {
3679
+ ...E[h],
3677
3680
  lastUpdated: Date.now()
3678
3681
  };
3679
3682
  }), {
@@ -3682,12 +3685,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3682
3685
  ...e.rowGroupState,
3683
3686
  cache: {
3684
3687
  ...e.rowGroupState.cache,
3685
- metadata: u
3688
+ metadata: E
3686
3689
  }
3687
3690
  }
3688
3691
  };
3689
3692
  }
3690
- case s.SET_API:
3693
+ case l.SET_API:
3691
3694
  return {
3692
3695
  ...e,
3693
3696
  rowGroupState: {
@@ -3695,12 +3698,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3695
3698
  api: n.payload
3696
3699
  }
3697
3700
  };
3698
- case s.SET_COLUMN_MAP:
3701
+ case l.SET_COLUMN_MAP:
3699
3702
  return {
3700
3703
  ...e,
3701
3704
  columnMap: n.payload
3702
3705
  };
3703
- case s.SET_NUMBER_FORMAT:
3706
+ case l.SET_NUMBER_FORMAT:
3704
3707
  return {
3705
3708
  ...e,
3706
3709
  format: {
@@ -3708,7 +3711,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3708
3711
  numberFormat: n.payload
3709
3712
  }
3710
3713
  };
3711
- case s.SET_HEADER_ROW_HEIGHT:
3714
+ case l.SET_HEADER_ROW_HEIGHT:
3712
3715
  return {
3713
3716
  ...e,
3714
3717
  headerRowHeightwithIndex: {
@@ -3716,12 +3719,12 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3716
3719
  ...n.payload
3717
3720
  }
3718
3721
  };
3719
- case s.CLEANUP_TABLE_RESOURCES:
3722
+ case l.CLEANUP_TABLE_RESOURCES:
3720
3723
  return {
3721
3724
  ...e,
3722
3725
  ...rn
3723
3726
  };
3724
- case s.ADD_TABLE_INSTANCE:
3727
+ case l.ADD_TABLE_INSTANCE:
3725
3728
  return {
3726
3729
  ...e,
3727
3730
  tableInstance: n.payload
@@ -3734,75 +3737,75 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3734
3737
  // ...action.payload,
3735
3738
  // },
3736
3739
  // };
3737
- case s.SET_SERVER_SIDE:
3740
+ case l.SET_SERVER_SIDE:
3738
3741
  return {
3739
3742
  ...e,
3740
3743
  serverSide: n.payload
3741
3744
  };
3742
- case s.ROW_DRAG_MANAGED:
3745
+ case l.ROW_DRAG_MANAGED:
3743
3746
  return {
3744
3747
  ...e,
3745
3748
  rowDragManaged: n.payload
3746
3749
  };
3747
- case s.INFINITE_SCROLL:
3750
+ case l.INFINITE_SCROLL:
3748
3751
  return {
3749
3752
  ...e,
3750
3753
  infiniteScroll: n.payload
3751
3754
  };
3752
- case s.SET_INITIAL_EXPANDED_COLUMN_GROUPS:
3755
+ case l.SET_INITIAL_EXPANDED_COLUMN_GROUPS:
3753
3756
  return {
3754
3757
  ...e,
3755
3758
  expandedColumnGroups: n.payload
3756
3759
  };
3757
- case s.SET_TABLE_API:
3760
+ case l.SET_TABLE_API:
3758
3761
  return {
3759
3762
  ...e,
3760
3763
  api: n.payload
3761
3764
  };
3762
- case s.EXPAND_COLLAPSE_ALL_COLUMNS: {
3763
- const a = n.payload ? { isAllGroupExpanded: !0 } : { isAllGroupExpanded: !1 }, { processedColumns: u } = De(
3765
+ case l.EXPAND_COLLAPSE_ALL_COLUMNS: {
3766
+ const s = n.payload ? { isAllGroupExpanded: !0 } : { isAllGroupExpanded: !1 }, { processedColumns: E } = De(
3764
3767
  e.columns,
3765
- a,
3768
+ s,
3766
3769
  0,
3767
3770
  null,
3768
3771
  ((V = e.defaultColDef) == null ? void 0 : V.minWidth) || 150
3769
3772
  ), { columns: h, frozenData: B } = Be(
3770
- u,
3773
+ E,
3771
3774
  e.defaultColDef || { minWidth: 150 }
3772
3775
  );
3773
3776
  return {
3774
3777
  ...e,
3775
- expandedColumnGroups: a,
3778
+ expandedColumnGroups: s,
3776
3779
  columns: h,
3777
3780
  frozenColumns: B
3778
3781
  };
3779
3782
  }
3780
- case s.SET_SMART_GRID_MENU_OPTIONS:
3783
+ case l.SET_SMART_GRID_MENU_OPTIONS:
3781
3784
  return {
3782
3785
  ...e,
3783
3786
  smartGridMenuOptions: n.payload
3784
3787
  };
3785
- case s.ROW_GROUP_CACHE_ENABLE:
3788
+ case l.ROW_GROUP_CACHE_ENABLE:
3786
3789
  return {
3787
3790
  ...e,
3788
3791
  purgeClosedRowNodes: n.payload
3789
3792
  };
3790
- case s.DETAIL_RENDERER_TABLE:
3793
+ case l.DETAIL_RENDERER_TABLE:
3791
3794
  return {
3792
3795
  ...e,
3793
3796
  detailRendererTable: n.payload
3794
3797
  };
3795
- case s.IS_SAVE_VIEW_ENABLED:
3798
+ case l.IS_SAVE_VIEW_ENABLED:
3796
3799
  return {
3797
3800
  ...e,
3798
3801
  isSaveViewEnabled: n.payload
3799
3802
  };
3800
- case s.SAVE_VIEW_CALLBACKS:
3803
+ case l.SAVE_VIEW_CALLBACKS:
3801
3804
  return {
3802
3805
  ...e,
3803
3806
  saveViewCallbacks: n.payload
3804
3807
  };
3805
- case s.SET_ROW_HEIGHT:
3808
+ case l.SET_ROW_HEIGHT:
3806
3809
  return {
3807
3810
  ...e,
3808
3811
  rowHeight: {
@@ -3811,7 +3814,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3811
3814
  padding: Ke[n.payload].padding
3812
3815
  }
3813
3816
  };
3814
- case s.EXPAND_COLLAPSE_ALL_ROWS:
3817
+ case l.EXPAND_COLLAPSE_ALL_ROWS:
3815
3818
  return {
3816
3819
  ...e,
3817
3820
  rowGroupState: {
@@ -3820,47 +3823,47 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3820
3823
  isManuallyChanged: !n.payload
3821
3824
  }
3822
3825
  };
3823
- case s.SET_REFS:
3826
+ case l.SET_REFS:
3824
3827
  return {
3825
3828
  ...e,
3826
3829
  ...n.payload
3827
3830
  };
3828
- case s.SET_DEFAULT_COL_DEF:
3831
+ case l.SET_DEFAULT_COL_DEF:
3829
3832
  return {
3830
3833
  ...e,
3831
3834
  defaultColDef: n.payload
3832
3835
  };
3833
- case s.SET_SELECTABLE:
3836
+ case l.SET_SELECTABLE:
3834
3837
  return {
3835
3838
  ...e,
3836
3839
  selectable: n.payload
3837
3840
  };
3838
- case s.SET_DISABLE_SELECT_ALL_RECORDS_OPTION:
3841
+ case l.SET_DISABLE_SELECT_ALL_RECORDS_OPTION:
3839
3842
  return {
3840
3843
  ...e,
3841
3844
  disableSelectAllRecords: n.payload
3842
3845
  };
3843
- case s.SET_COLUMN_BUFFER_SIZE:
3846
+ case l.SET_COLUMN_BUFFER_SIZE:
3844
3847
  return {
3845
3848
  ...e,
3846
3849
  columnBufferSize: n.payload
3847
3850
  };
3848
- case s.SET_LAZY_LOAD_CELL_RENDERER:
3851
+ case l.SET_LAZY_LOAD_CELL_RENDERER:
3849
3852
  return {
3850
3853
  ...e,
3851
3854
  lazyLoadCellRenderer: n.payload
3852
3855
  };
3853
- case s.SET_HAS_SPLIT_RENDERER:
3856
+ case l.SET_HAS_SPLIT_RENDERER:
3854
3857
  return {
3855
3858
  ...e,
3856
3859
  hasSplitRenderer: n.payload
3857
3860
  };
3858
- case s.SET_HAS_SPLIT_RENDERER_KEYS:
3861
+ case l.SET_HAS_SPLIT_RENDERER_KEYS:
3859
3862
  return {
3860
3863
  ...e,
3861
3864
  splitRendererKeys: n.payload
3862
3865
  };
3863
- case s.SET_CUSTOM_CALLBACKS:
3866
+ case l.SET_CUSTOM_CALLBACKS:
3864
3867
  return {
3865
3868
  ...e,
3866
3869
  customCallback: {
@@ -3868,30 +3871,30 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3868
3871
  ...n.payload
3869
3872
  }
3870
3873
  };
3871
- case s.SET_REMOVE_SELECTION_ON_OPERATION:
3874
+ case l.SET_REMOVE_SELECTION_ON_OPERATION:
3872
3875
  return {
3873
3876
  ...e,
3874
3877
  removeSelectionOnOperation: n.payload
3875
3878
  };
3876
- case s.SET_TOTAL_COLUMNS_COUNT:
3879
+ case l.SET_TOTAL_COLUMNS_COUNT:
3877
3880
  return {
3878
3881
  ...e,
3879
3882
  totalColumnsCount: n.payload
3880
3883
  };
3881
- case s.SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION:
3884
+ case l.SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION:
3882
3885
  return {
3883
3886
  ...e,
3884
3887
  removeCheckConfigurationOnOperation: n.payload
3885
3888
  };
3886
- case s.SET_ALL_CHILD_ROWS_EXPANDED: {
3887
- const a = n.payload;
3888
- if (!a && ke(e))
3889
+ case l.SET_ALL_CHILD_ROWS_EXPANDED: {
3890
+ const s = n.payload;
3891
+ if (!s && ke(e))
3889
3892
  return e;
3890
- if (a) {
3891
- const u = Ze(e), h = e.columns.some((D) => D.aggFunc), B = [], w = {};
3893
+ if (s) {
3894
+ const E = Ze(e), h = e.columns.some((D) => D.aggFunc), B = [], w = {};
3892
3895
  let I = 0;
3893
3896
  const { uniqueIdField: m, childKeyField: G, rowSpanColumn: F, api: x } = e;
3894
- for (const D of u) {
3897
+ for (const D of E) {
3895
3898
  const y = String(D[m]), z = D[G] || [];
3896
3899
  if (z.length > 0) {
3897
3900
  let T, X = null;
@@ -3931,21 +3934,21 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3931
3934
  } else
3932
3935
  B.push(D), I += 1;
3933
3936
  }
3934
- return Oe(e, B), {
3937
+ return me(e, B), {
3935
3938
  ...e,
3936
3939
  expandedChildRows: w,
3937
3940
  filteredData: B,
3938
3941
  data: B
3939
3942
  };
3940
3943
  } else {
3941
- const u = Ze(e), h = e.enableRowSpan ? u.map((B) => {
3944
+ const E = Ze(e), h = e.enableRowSpan ? E.map((B) => {
3942
3945
  if (B.__rowSpanInfo) {
3943
3946
  const { __rowSpanInfo: w, ...I } = B;
3944
3947
  return I;
3945
3948
  }
3946
3949
  return B;
3947
- }) : u;
3948
- return Oe(e, h), {
3950
+ }) : E;
3951
+ return me(e, h), {
3949
3952
  ...e,
3950
3953
  expandedChildRows: {},
3951
3954
  filteredData: h,
@@ -3953,20 +3956,20 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3953
3956
  };
3954
3957
  }
3955
3958
  }
3956
- case s.EXPAND_ROW_WITH_NESTED_CHILDREN: {
3957
- const { rowId: a, rowIndex: u, expand: h } = n.payload, { uniqueIdField: B, childKeyField: w, rowSpanColumn: I, api: m, columns: G } = e;
3959
+ case l.EXPAND_ROW_WITH_NESTED_CHILDREN: {
3960
+ const { rowId: s, rowIndex: E, expand: h } = n.payload, { uniqueIdField: B, childKeyField: w, rowSpanColumn: I, api: m, columns: G } = e;
3958
3961
  if (h) {
3959
- const F = e.filteredData || [], x = F[u];
3962
+ const F = e.filteredData || [], x = F[E];
3960
3963
  if (!x) return e;
3961
3964
  const D = G.some((b) => b.aggFunc), y = { ...e.expandedChildRows }, z = (b, re, Ce, we) => {
3962
- const me = b[w] || [];
3963
- if (me.length === 0) return [b];
3965
+ const Oe = b[w] || [];
3966
+ if (Oe.length === 0) return [b];
3964
3967
  const ve = we.value;
3965
3968
  let Re, Qe = null;
3966
3969
  if (D) {
3967
3970
  const { aggreRow: Se, aggreChildRows: ze } = ye(
3968
3971
  e,
3969
- me,
3972
+ Oe,
3970
3973
  b,
3971
3974
  Ce,
3972
3975
  ve,
@@ -3974,7 +3977,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3974
3977
  );
3975
3978
  Qe = Se, Re = ze;
3976
3979
  } else
3977
- Re = me.map((Se) => ({
3980
+ Re = Oe.map((Se) => ({
3978
3981
  ...Se,
3979
3982
  __parentPath: re,
3980
3983
  level: Ce,
@@ -3985,7 +3988,7 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3985
3988
  y[re] = {
3986
3989
  rowId: re,
3987
3990
  rowIndex: ve,
3988
- childRowsCount: me.length + (Qe ? 1 : 0)
3991
+ childRowsCount: Oe.length + (Qe ? 1 : 0)
3989
3992
  };
3990
3993
  const oe = I ? Fe(
3991
3994
  [b, ...Re],
@@ -3995,95 +3998,107 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
3995
3998
  we.value += 1;
3996
3999
  const Xe = Re.length;
3997
4000
  for (let Se = 0; Se < Xe; Se++) {
3998
- const ze = Re[Se], sn = oe[Se + 1], Je = ze[w];
4001
+ const ze = Re[Se], an = oe[Se + 1], Je = ze[w];
3999
4002
  if ((Je == null ? void 0 : Je.length) > 0) {
4000
4003
  const vn = String(ze[B]), Gn = z(
4001
- sn,
4004
+ an,
4002
4005
  `${re}/${vn}`,
4003
4006
  Ce + 1,
4004
4007
  we
4005
4008
  );
4006
4009
  Y.push(...Gn);
4007
4010
  } else
4008
- Y.push(sn), we.value += 1;
4011
+ Y.push(an), we.value += 1;
4009
4012
  }
4010
4013
  return Qe && (Y.push(Qe), we.value += 1), Y;
4011
- }, O = z(x, a, 1, {
4012
- value: u
4013
- }), T = F.slice(0, u), X = F.slice(u + 1), H = [
4014
+ }, S = z(x, s, 1, {
4015
+ value: E
4016
+ }), T = F.slice(0, E), X = F.slice(E + 1), H = [
4014
4017
  ...T,
4015
- ...O,
4018
+ ...S,
4016
4019
  ...X
4017
4020
  ];
4018
- return Oe(e, H), {
4021
+ return me(e, H), {
4019
4022
  ...e,
4020
4023
  expandedChildRows: y,
4021
4024
  filteredData: H,
4022
4025
  data: H
4023
4026
  };
4024
4027
  } else {
4025
- if (!e.expandedChildRows[a]) return e;
4026
- const F = e.filteredData || [], x = { ...e.expandedChildRows }, D = `${a}/`;
4028
+ if (!e.expandedChildRows[s]) return e;
4029
+ const F = e.filteredData || [], x = { ...e.expandedChildRows }, D = `${s}/`;
4027
4030
  let y = 0;
4028
4031
  const z = [];
4029
4032
  for (const T of Object.keys(x))
4030
- (T === a || T.startsWith(D)) && (y += x[T].childRowsCount, z.push(T));
4033
+ (T === s || T.startsWith(D)) && (y += x[T].childRowsCount, z.push(T));
4031
4034
  for (const T of z)
4032
4035
  delete x[T];
4033
- const O = [
4034
- ...F.slice(0, u + 1),
4035
- ...F.slice(u + 1 + y)
4036
+ const S = [
4037
+ ...F.slice(0, E + 1),
4038
+ ...F.slice(E + 1 + y)
4036
4039
  ];
4037
- return (le = O[u]) != null && le.__rowSpanInfo && (O[u] = {
4038
- ...O[u],
4040
+ return (le = S[E]) != null && le.__rowSpanInfo && (S[E] = {
4041
+ ...S[E],
4039
4042
  __rowSpanInfo: void 0
4040
- }), Oe(e, O), {
4043
+ }), me(e, S), {
4041
4044
  ...e,
4042
4045
  expandedChildRows: x,
4043
- filteredData: O,
4044
- data: O
4046
+ filteredData: S,
4047
+ data: S
4045
4048
  };
4046
4049
  }
4047
4050
  }
4048
- case s.SET_COMMENT_CONTEXT_REF:
4051
+ case l.SET_COMMENT_CONTEXT_REF:
4049
4052
  return {
4050
4053
  ...e,
4051
4054
  contextRef: n.payload
4052
4055
  };
4053
- case s.SET_CHAT_ENABLED:
4056
+ case l.SET_CHAT_ENABLED:
4054
4057
  return {
4055
4058
  ...e,
4056
4059
  isChatEnabled: n.payload
4057
4060
  };
4058
- case s.SET_COMMENT_ENABLED:
4061
+ case l.SET_COMMENT_ENABLED:
4059
4062
  return {
4060
4063
  ...e,
4061
4064
  isCommentFeatureEnabled: n.payload
4062
4065
  };
4063
- case s.SET_NO_HEADER_SELECTION_CHECKBOX:
4066
+ case l.SET_NO_HEADER_SELECTION_CHECKBOX:
4064
4067
  return {
4065
4068
  ...e,
4066
4069
  noHeaderSelection: n.payload
4067
4070
  };
4068
- case s.SET_DATA_IS_TREE_DATA:
4071
+ case l.SET_DATA_IS_TREE_DATA:
4069
4072
  return {
4070
4073
  ...e,
4071
4074
  treeData: n.payload
4072
4075
  };
4073
- case s.SET_VIRTUALIZATION_CONFIG:
4076
+ case l.SET_VIRTUALIZATION_CONFIG:
4074
4077
  return {
4075
4078
  ...e,
4076
4079
  virtualizationConfig: n.payload
4077
4080
  };
4078
- case s.SET_DISABLE_CURRENT_PAGE_RECORDS:
4081
+ case l.SET_DISABLE_CURRENT_PAGE_RECORDS:
4079
4082
  return {
4080
4083
  ...e,
4081
4084
  disableCurrentPageRecords: n.payload
4082
4085
  };
4086
+ case l.SET_FORCE_SHOW_LOADING:
4087
+ return {
4088
+ ...e,
4089
+ showForceLoading: n.payload
4090
+ };
4091
+ case l.UPDATE_ROW_DATA_WITH_REFRESH:
4092
+ return me(e, n.payload.updatedData), {
4093
+ ...e,
4094
+ data: n.payload.updatedData,
4095
+ filteredData: n.payload.updatedData,
4096
+ expandedChildRows: n.payload.expandedChildRows
4097
+ };
4083
4098
  default:
4084
4099
  return e;
4085
4100
  }
4086
- }, ln = Tn(null), St = ({
4101
+ }, ln = Tn(null), Ot = ({
4087
4102
  tableId: e = "default",
4088
4103
  children: n
4089
4104
  }) => {
@@ -4092,25 +4107,25 @@ const Jt = (e) => /* @__PURE__ */ J.createElement("svg", { width: "1em", height:
4092
4107
  Pt(e);
4093
4108
  }, [e]), /* @__PURE__ */ de(ln.Provider, { value: t, children: n });
4094
4109
  };
4095
- function Ot(e) {
4110
+ function St(e) {
4096
4111
  const t = An(ln) || xn;
4097
4112
  return e ? t(e) : t();
4098
4113
  }
4099
- const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "default") => {
4100
- if (!_e.has(e)) {
4114
+ const Dt = () => An(ln) || xn, je = /* @__PURE__ */ new Map(), Qn = (e = "default") => {
4115
+ if (!je.has(e)) {
4101
4116
  const n = Yn(
4102
- _n(
4117
+ jn(
4103
4118
  (t = rn, r) => mt(t, r),
4104
4119
  {
4105
4120
  ...rn
4106
4121
  }
4107
4122
  )
4108
4123
  );
4109
- _e.set(e, n);
4124
+ je.set(e, n);
4110
4125
  }
4111
- return _e.get(e);
4126
+ return je.get(e);
4112
4127
  }, xn = Qn("default"), Pt = (e) => {
4113
- e && e !== "default" && _e.delete(e);
4128
+ e && e !== "default" && je.delete(e);
4114
4129
  }, Lt = (e, n = []) => {
4115
4130
  const t = Pe(null);
4116
4131
  return pe(() => {
@@ -4120,8 +4135,8 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4120
4135
  (C) => C && C.current && C.current.contains(i)
4121
4136
  ), f = (g = t.current) == null ? void 0 : g.querySelector(
4122
4137
  ".ia-table-menu-submenu"
4123
- ), E = !!f && (f == null ? void 0 : f.contains(i));
4124
- o && !d && !E && e();
4138
+ ), u = !!f && (f == null ? void 0 : f.contains(i));
4139
+ o && !d && !u && e();
4125
4140
  };
4126
4141
  return document.addEventListener("mousedown", r), () => {
4127
4142
  document.removeEventListener("mousedown", r);
@@ -4171,24 +4186,24 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4171
4186
  // Custom width for the menu
4172
4187
  horizontalAlign: c = xe.AUTO,
4173
4188
  // Horizontal alignment of the menu
4174
- isSubmenu: E = !1,
4189
+ isSubmenu: u = !1,
4175
4190
  parentOptionRef: g = null,
4176
4191
  skipAnimation: C = !1,
4177
4192
  // Skip animation for submenus
4178
4193
  portalContainer: L = document.body,
4179
- additionalButtons: l = null,
4194
+ additionalButtons: a = null,
4180
4195
  forcePosition: p = !1,
4181
4196
  // When true, prevents position flipping even if there's not enough space
4182
4197
  anchorOrigin: R,
4183
4198
  onClick: P
4184
4199
  }) => {
4185
- const [S, U] = Ge({
4200
+ const [O, U] = Ge({
4186
4201
  top: 0,
4187
4202
  left: 0,
4188
4203
  width: 0,
4189
4204
  visibility: "hidden"
4190
4205
  // Hide menu initially until positioned
4191
- }), [N, Q] = Ge("entered"), [j, v] = Ge(d), [K, _] = Ge("center"), [q, ee] = Ge(
4206
+ }), [N, Q] = Ge("entered"), [_, v] = Ge(d), [K, j] = Ge("center"), [q, ee] = Ge(
4192
4207
  null
4193
4208
  ), ne = Pe(
4194
4209
  null
@@ -4202,7 +4217,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4202
4217
  Q("exiting"), ne.current && clearTimeout(ne.current), ne.current = setTimeout(() => {
4203
4218
  A(!1), Q("entered");
4204
4219
  }, 150);
4205
- }, [A, C]), se = Ie(
4220
+ }, [A, C]), ae = Ie(
4206
4221
  (k) => {
4207
4222
  if (!(k.submenu && k.useHover)) {
4208
4223
  if (k.submenu) {
@@ -4213,9 +4228,9 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4213
4228
  }
4214
4229
  },
4215
4230
  [q, A, P]
4216
- ), ae = Ie((k) => {
4231
+ ), se = Ie((k) => {
4217
4232
  k.submenu && k.useHover && (Z.current && (clearTimeout(Z.current), Z.current = null), ee(k.label));
4218
- }, []), ue = Ie(() => {
4233
+ }, []), Ee = Ie(() => {
4219
4234
  Z.current && (clearTimeout(Z.current), Z.current = null);
4220
4235
  }, []), fe = Ie(
4221
4236
  (k) => {
@@ -4238,8 +4253,8 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4238
4253
  const k = (i == null ? void 0 : i.current) || o;
4239
4254
  if (k && r) {
4240
4255
  const V = () => {
4241
- var a;
4242
- const le = (a = k.getBoundingClientRect) == null ? void 0 : a.call(k);
4256
+ var s;
4257
+ const le = (s = k.getBoundingClientRect) == null ? void 0 : s.call(k);
4243
4258
  le && ce({ top: le.top, left: le.left });
4244
4259
  };
4245
4260
  return V(), window.addEventListener("scroll", V), window.addEventListener("resize", V), () => {
@@ -4259,11 +4274,11 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4259
4274
  height: 0,
4260
4275
  right: 0
4261
4276
  };
4262
- let le = { top: 0, left: 0, width: 0 }, a = !1;
4263
- L !== document.body && L instanceof Element && (le = L.getBoundingClientRect(), a = !0);
4264
- const u = window.innerWidth, h = window.innerHeight, B = f || Math.max(V.width, 150), w = e.length * 40;
4277
+ let le = { top: 0, left: 0, width: 0 }, s = !1;
4278
+ L !== document.body && L instanceof Element && (le = L.getBoundingClientRect(), s = !0);
4279
+ const E = window.innerWidth, h = window.innerHeight, B = f || Math.max(V.width, 150), w = e.length * 40;
4265
4280
  let I = d;
4266
- const m = V.top > w, G = h - V.bottom > w, F = V.left > B, x = u - V.right > B;
4281
+ const m = V.top > w, G = h - V.bottom > w, F = V.left > B, x = E - V.right > B;
4267
4282
  if (p)
4268
4283
  I = d;
4269
4284
  else
@@ -4281,11 +4296,11 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4281
4296
  !x && F && (I = ge.LEFT);
4282
4297
  break;
4283
4298
  }
4284
- const D = E && (g != null && g.current) ? g.current.getBoundingClientRect() : V, y = V.left, z = V.right, O = V.width;
4299
+ const D = u && (g != null && g.current) ? g.current.getBoundingClientRect() : V, y = V.left, z = V.right, S = V.width;
4285
4300
  f && (D.width = f);
4286
4301
  const T = yt(
4287
4302
  I,
4288
- a,
4303
+ s,
4289
4304
  D,
4290
4305
  le,
4291
4306
  V
@@ -4293,37 +4308,37 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4293
4308
  if (R)
4294
4309
  switch (R) {
4295
4310
  case "start":
4296
- a ? T.left = y - le.left : T.left = y + window.scrollX;
4311
+ s ? T.left = y - le.left : T.left = y + window.scrollX;
4297
4312
  break;
4298
4313
  case "end":
4299
- a ? T.left = z - B - le.left : T.left = z - B + window.scrollX;
4314
+ s ? T.left = z - B - le.left : T.left = z - B + window.scrollX;
4300
4315
  break;
4301
4316
  case "center":
4302
- a ? T.left = y + O / 2 - B / 2 - le.left : T.left = y + O / 2 - B / 2 + window.scrollX;
4317
+ s ? T.left = y + S / 2 - B / 2 - le.left : T.left = y + S / 2 - B / 2 + window.scrollX;
4303
4318
  break;
4304
4319
  }
4305
4320
  if (!R && (I === ge.BOTTOM || I === ge.TOP)) {
4306
4321
  let H = c;
4307
4322
  if (c === xe.AUTO) {
4308
- const b = V.right + B <= u, re = V.left - B >= 0;
4323
+ const b = V.right + B <= E, re = V.left - B >= 0;
4309
4324
  b ? H = xe.START : re ? H = xe.END : H = xe.START;
4310
4325
  }
4311
- if (H === xe.START ? a ? T.left = V.left - le.left : T.left = V.left + window.scrollX : H === xe.END && (a ? T.left = V.right - B - le.left : T.left = V.right - B + window.scrollX), a) {
4326
+ if (H === xe.START ? s ? T.left = V.left - le.left : T.left = V.left + window.scrollX : H === xe.END && (s ? T.left = V.right - B - le.left : T.left = V.right - B + window.scrollX), s) {
4312
4327
  const b = le.width;
4313
4328
  (T.left ?? 0) + B > b && (T.left = Math.max(0, b - B));
4314
4329
  } else
4315
- (T.left ?? 0) + B > u && (T.left = Math.max(0, u - B));
4330
+ (T.left ?? 0) + B > E && (T.left = Math.max(0, E - B));
4316
4331
  (T.left ?? 0) < 0 && (T.left = 0);
4317
- } else (I === ge.LEFT || I === ge.RIGHT) && (a || (T.top ?? 0) + w > h && (T.top = Math.max(0, h - w)));
4332
+ } else (I === ge.LEFT || I === ge.RIGHT) && (s || (T.top ?? 0) + w > h && (T.top = Math.max(0, h - w)));
4318
4333
  let X = "center";
4319
4334
  if (I === ge.BOTTOM || I === ge.TOP) {
4320
- const H = V.left + V.width / 2, b = u / 2;
4335
+ const H = V.left + V.width / 2, b = E / 2;
4321
4336
  H < b && x ? X = "left" : H >= b && F && (X = "right");
4322
4337
  } else if (I === ge.LEFT || I === ge.RIGHT) {
4323
4338
  const H = V.top + V.height / 2, b = h / 2;
4324
4339
  H < b && G ? X = "top" : H >= b && m && (X = "bottom");
4325
4340
  }
4326
- v(I), _(X), U({
4341
+ v(I), j(X), U({
4327
4342
  top: T.top ?? 0,
4328
4343
  left: T.left ?? 0,
4329
4344
  width: T.width ?? 0,
@@ -4348,28 +4363,28 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4348
4363
  ]);
4349
4364
  const Ae = Pe(o ?? null);
4350
4365
  Ae.current = o ?? null;
4351
- const Ee = Lt(
4366
+ const ue = Lt(
4352
4367
  te,
4353
- E ? [g] : [i || Ae]
4368
+ u ? [g] : [i || Ae]
4354
4369
  );
4355
- return r ? Sn(
4370
+ return r ? On(
4356
4371
  /* @__PURE__ */ Le(
4357
4372
  "div",
4358
4373
  {
4359
- className: `ia-table-menu-submenu d-flex flex-column gap-2 ia-table-position-${j} flip-${K} ${!C && N === "entering" ? "menu-entering" : ""} ${!C && N === "entered" ? "menu-entered" : ""} ${!C && N === "exiting" ? "menu-exiting" : ""} ${E ? "ia-table-submenu-only" : ""}`,
4374
+ className: `ia-table-menu-submenu d-flex flex-column gap-2 ia-table-position-${_} flip-${K} ${!C && N === "entering" ? "menu-entering" : ""} ${!C && N === "entered" ? "menu-entered" : ""} ${!C && N === "exiting" ? "menu-exiting" : ""} ${u ? "ia-table-submenu-only" : ""}`,
4360
4375
  style: {
4361
- ...S,
4376
+ ...O,
4362
4377
  position: "absolute",
4363
- width: f ? `${f}px` : S.width ? `${S.width}px` : void 0,
4364
- minHeight: S.height ? `${S.height}px` : void 0,
4365
- transform: S.transform,
4366
- transformOrigin: S.transformOrigin,
4367
- visibility: S.visibility || "hidden"
4378
+ width: f ? `${f}px` : O.width ? `${O.width}px` : void 0,
4379
+ minHeight: O.height ? `${O.height}px` : void 0,
4380
+ transform: O.transform,
4381
+ transformOrigin: O.transformOrigin,
4382
+ visibility: O.visibility || "hidden"
4368
4383
  },
4369
- ref: Ee,
4384
+ ref: ue,
4370
4385
  children: [
4371
- l,
4372
- l && /* @__PURE__ */ de("div", { className: "ia-table-divider" }),
4386
+ a,
4387
+ a && /* @__PURE__ */ de("div", { className: "ia-table-divider" }),
4373
4388
  e.map((k) => /* @__PURE__ */ Le(Mn.Fragment, { children: [
4374
4389
  /* @__PURE__ */ Le(
4375
4390
  "div",
@@ -4377,9 +4392,9 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4377
4392
  ref: (V) => $.current[k.label] = V,
4378
4393
  className: `ia-table-menu-option d-flex align-items-center justify-content-between gap-6 rounded-8 cursor-pointer ${k.id === n || k.value === n ? "ia-table-menu-option-selected" : ""} ${q === k.label ? "submenu-active" : ""}`,
4379
4394
  onClick: (V) => {
4380
- V.stopPropagation(), se(k);
4395
+ V.stopPropagation(), ae(k);
4381
4396
  },
4382
- onMouseEnter: () => ae(k),
4397
+ onMouseEnter: () => se(k),
4383
4398
  onMouseLeave: () => he(k),
4384
4399
  children: [
4385
4400
  /* @__PURE__ */ Le("div", { className: "d-flex align-items-center gap-6 ia-table-user-select-none", children: [
@@ -4414,7 +4429,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4414
4429
  k.submenu && q === k.label && /* @__PURE__ */ de(
4415
4430
  "div",
4416
4431
  {
4417
- onMouseEnter: ue,
4432
+ onMouseEnter: Ee,
4418
4433
  onMouseLeave: () => fe(k.useHover),
4419
4434
  children: /* @__PURE__ */ de(
4420
4435
  Qt,
@@ -4431,7 +4446,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4431
4446
  current: $.current[k.label]
4432
4447
  },
4433
4448
  skipAnimation: !0,
4434
- portalContainer: Ee.current ?? void 0,
4449
+ portalContainer: ue.current ?? void 0,
4435
4450
  menuButtonRef: void 0
4436
4451
  },
4437
4452
  `submenu-${k.label}`
@@ -4461,7 +4476,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4461
4476
  if (d && Te.has(d)) {
4462
4477
  const f = Te.get(d);
4463
4478
  f.alignedWith.some(
4464
- (E) => He(E) === e
4479
+ (u) => He(u) === e
4465
4480
  ) || f.alignedWith.push(e);
4466
4481
  }
4467
4482
  });
@@ -4500,8 +4515,8 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4500
4515
  if (typeof c == "function" && (n.includes("COLUMN") || n.includes("COLUMNS")))
4501
4516
  try {
4502
4517
  c(t);
4503
- } catch (E) {
4504
- console.log("Error Grid ALignemnt", E);
4518
+ } catch (u) {
4519
+ console.log("Error Grid ALignemnt", u);
4505
4520
  }
4506
4521
  }
4507
4522
  }
@@ -4513,7 +4528,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4513
4528
  });
4514
4529
  return pe(() => {
4515
4530
  if (e)
4516
- return A.current.isRegistered ? A.current.previousAlignedGrids !== n && (In(e), pn(e, t, r, s, n), A.current.previousAlignedGrids = n) : (pn(e, t, r, s, n), A.current.isRegistered = !0, A.current.previousAlignedGrids = n), () => {
4531
+ return A.current.isRegistered ? A.current.previousAlignedGrids !== n && (In(e), pn(e, t, r, l, n), A.current.previousAlignedGrids = n) : (pn(e, t, r, l, n), A.current.isRegistered = !0, A.current.previousAlignedGrids = n), () => {
4517
4532
  A.current.isRegistered && (In(e), A.current.isRegistered = !1);
4518
4533
  };
4519
4534
  }, [e, t, r, n]), { propagateChange: Ie(
@@ -4576,7 +4591,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4576
4591
  return {
4577
4592
  expandRowGroup: (i, o) => {
4578
4593
  e({
4579
- type: s.TOGGLE_ROW_GROUP,
4594
+ type: l.TOGGLE_ROW_GROUP,
4580
4595
  payload: { groupId: i, rowIndex: o, isExpanded: !0 }
4581
4596
  }), Ue("rowGroupToggled", {
4582
4597
  groupId: i,
@@ -4585,7 +4600,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4585
4600
  },
4586
4601
  collapseRowGroup: (i, o) => {
4587
4602
  e({
4588
- type: s.TOGGLE_ROW_GROUP,
4603
+ type: l.TOGGLE_ROW_GROUP,
4589
4604
  payload: { groupId: i, rowIndex: o, isExpanded: !1 }
4590
4605
  }), Ue("rowGroupToggled", {
4591
4606
  groupId: i,
@@ -4594,7 +4609,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4594
4609
  },
4595
4610
  toggleRowGroup: (i, o, d) => {
4596
4611
  e({
4597
- type: s.TOGGLE_ROW_GROUP,
4612
+ type: l.TOGGLE_ROW_GROUP,
4598
4613
  payload: { groupId: i, rowIndex: o, extra: d }
4599
4614
  }), Ue("rowGroupToggled", {
4600
4615
  groupId: i,
@@ -4604,19 +4619,19 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4604
4619
  },
4605
4620
  clearRowGroupCache: (i) => {
4606
4621
  e({
4607
- type: s.CLEAR_ROW_GROUP_CACHE,
4622
+ type: l.CLEAR_ROW_GROUP_CACHE,
4608
4623
  payload: { groupId: i }
4609
4624
  });
4610
4625
  },
4611
4626
  refreshRowGroupData: (i) => {
4612
4627
  e({
4613
- type: s.REFRESH_ROW_GROUP_DATA,
4628
+ type: l.REFRESH_ROW_GROUP_DATA,
4614
4629
  payload: { groupId: i }
4615
4630
  });
4616
4631
  },
4617
4632
  setRowGroupData: (i, o, d = !1) => {
4618
4633
  e({
4619
- type: s.SET_ROW_GROUP_DATA,
4634
+ type: l.SET_ROW_GROUP_DATA,
4620
4635
  payload: { groupId: i, data: o, append: d }
4621
4636
  }), Ue("rowGroupDataLoaded", {
4622
4637
  groupId: i,
@@ -4626,13 +4641,13 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4626
4641
  },
4627
4642
  setRowGroupLoading: (i, o) => {
4628
4643
  e({
4629
- type: s.SET_ROW_GROUP_LOADING,
4644
+ type: l.SET_ROW_GROUP_LOADING,
4630
4645
  payload: { groupId: i, isLoading: o }
4631
4646
  });
4632
4647
  },
4633
4648
  setRowGroupPagination: (i, o) => {
4634
4649
  e({
4635
- type: s.SET_ROW_GROUP_PAGINATION,
4650
+ type: l.SET_ROW_GROUP_PAGINATION,
4636
4651
  payload: { groupId: i, pagination: o }
4637
4652
  });
4638
4653
  },
@@ -4649,168 +4664,168 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4649
4664
  enableRowSpan: d,
4650
4665
  rowSpanColumn: f,
4651
4666
  pageSize: c,
4652
- serverSide: E,
4667
+ serverSide: u,
4653
4668
  rowDragManaged: g,
4654
4669
  infiniteScroll: C,
4655
4670
  initialExpandedColumnGroups: L,
4656
- tableApi: l,
4671
+ tableApi: a,
4657
4672
  smartGridMenuOptions: p,
4658
4673
  purgeClosedRowNodes: R,
4659
4674
  detailRendererTable: P,
4660
- isSaveViewEnabled: S,
4675
+ isSaveViewEnabled: O,
4661
4676
  isSavingViewLoading: U,
4662
4677
  savedViewsOptions: N,
4663
4678
  rowHeight: Q,
4664
- tableId: j,
4679
+ tableId: _,
4665
4680
  refObj: v,
4666
4681
  callBackRef: K,
4667
- exportCallbackRef: _,
4682
+ exportCallbackRef: j,
4668
4683
  saveViewCallbackRef: q,
4669
4684
  saveViewOptionsRef: ee,
4670
4685
  isSingleSelect: ne,
4671
4686
  defaultColDef: $,
4672
4687
  disableSelectAllRecords: Z,
4673
4688
  selectable: te,
4674
- columnBufferSize: se,
4675
- lazyLoadCellRenderer: ae,
4676
- hasSplitRenderer: ue,
4689
+ columnBufferSize: ae,
4690
+ lazyLoadCellRenderer: se,
4691
+ hasSplitRenderer: Ee,
4677
4692
  splitRendererKeys: fe,
4678
4693
  removeSelectionOnOperation: he,
4679
4694
  removeCheckConfigurationOnOperation: ie,
4680
4695
  clickCallbackRef: ce,
4681
4696
  isChatEnabled: Ae,
4682
- isCommentFeatureEnabled: Ee,
4697
+ isCommentFeatureEnabled: ue,
4683
4698
  noHeaderSelection: k,
4684
4699
  treeData: V,
4685
4700
  virtualizationConfig: le,
4686
- rowSelectionRef: a,
4687
- disableCurrentPageRecords: u
4701
+ rowSelectionRef: s,
4702
+ disableCurrentPageRecords: E
4688
4703
  }) => (pe(() => {
4689
4704
  e({
4690
- type: s.SET_COLUMN_MAP,
4705
+ type: l.SET_COLUMN_MAP,
4691
4706
  payload: A
4692
4707
  });
4693
4708
  }, [A, e]), pe(() => {
4694
4709
  e({
4695
- type: s.SET_PINNED_TOP_ROWS,
4710
+ type: l.SET_PINNED_TOP_ROWS,
4696
4711
  payload: n || []
4697
4712
  });
4698
4713
  }, [n, e]), pe(() => {
4699
4714
  e({
4700
- type: s.SET_PINNED_BOTTOM_ROWS,
4715
+ type: l.SET_PINNED_BOTTOM_ROWS,
4701
4716
  payload: t || []
4702
4717
  });
4703
4718
  }, [t, e]), pe(() => {
4704
4719
  const h = Gt(e, v);
4705
4720
  e({
4706
- type: s.SET_TABLE_ID,
4707
- payload: j
4721
+ type: l.SET_TABLE_ID,
4722
+ payload: _
4708
4723
  }), e({
4709
- type: s.SET_INITIAL_EXPANDED_COLUMN_GROUPS,
4724
+ type: l.SET_INITIAL_EXPANDED_COLUMN_GROUPS,
4710
4725
  payload: L
4711
4726
  }), e({
4712
- type: s.ROW_DRAG_MANAGED,
4727
+ type: l.ROW_DRAG_MANAGED,
4713
4728
  payload: g
4714
4729
  }), e({
4715
- type: s.SET_PAGE_SIZE,
4730
+ type: l.SET_PAGE_SIZE,
4716
4731
  payload: c
4717
4732
  }), d !== void 0 && e({
4718
- type: s.ENABLE_ROW_SPAN,
4733
+ type: l.ENABLE_ROW_SPAN,
4719
4734
  payload: d
4720
4735
  }), f !== void 0 && e({
4721
- type: s.SET_ROW_SPAN_COLUMN,
4736
+ type: l.SET_ROW_SPAN_COLUMN,
4722
4737
  payload: f
4723
4738
  }), e({
4724
- type: s.SET_FIELD_KEYS,
4739
+ type: l.SET_FIELD_KEYS,
4725
4740
  payload: { uniqueIdField: i, childKeyField: o }
4726
4741
  }), e({
4727
- type: s.INFINITE_SCROLL,
4742
+ type: l.INFINITE_SCROLL,
4728
4743
  payload: C
4729
4744
  }), e({
4730
- type: s.ADD_TABLE_INSTANCE,
4745
+ type: l.ADD_TABLE_INSTANCE,
4731
4746
  payload: r
4732
4747
  }), e({
4733
- type: s.SET_TABLE_API,
4734
- payload: { ...l, ...h }
4748
+ type: l.SET_TABLE_API,
4749
+ payload: { ...a, ...h }
4735
4750
  }), e({
4736
- type: s.SET_SMART_GRID_MENU_OPTIONS,
4751
+ type: l.SET_SMART_GRID_MENU_OPTIONS,
4737
4752
  payload: p
4738
4753
  }), e({
4739
- type: s.ROW_GROUP_CACHE_ENABLE,
4754
+ type: l.ROW_GROUP_CACHE_ENABLE,
4740
4755
  payload: R
4741
4756
  }), e({
4742
- type: s.DETAIL_RENDERER_TABLE,
4757
+ type: l.DETAIL_RENDERER_TABLE,
4743
4758
  payload: P
4744
4759
  }), e({
4745
- type: s.IS_SAVE_VIEW_ENABLED,
4746
- payload: S
4760
+ type: l.IS_SAVE_VIEW_ENABLED,
4761
+ payload: O
4747
4762
  }), e({
4748
- type: s.SET_REFS,
4763
+ type: l.SET_REFS,
4749
4764
  payload: {
4750
4765
  callBackRef: K,
4751
- exportCallbackRef: _,
4766
+ exportCallbackRef: j,
4752
4767
  saveViewCallbackRef: q,
4753
4768
  saveViewOptionsRef: ee,
4754
4769
  clickCallbackRef: ce,
4755
- rowSelectionRef: a
4770
+ rowSelectionRef: s
4756
4771
  }
4757
4772
  }), e({
4758
- type: s.SET_IS_SINGLE_SELECT,
4773
+ type: l.SET_IS_SINGLE_SELECT,
4759
4774
  payload: ne
4760
4775
  }), e({
4761
- type: s.SET_DEFAULT_COL_DEF,
4776
+ type: l.SET_DEFAULT_COL_DEF,
4762
4777
  payload: $
4763
4778
  }), e({
4764
- type: s.SET_SELECTABLE,
4779
+ type: l.SET_SELECTABLE,
4765
4780
  payload: te
4766
4781
  }), e({
4767
- type: s.SET_DISABLE_SELECT_ALL_RECORDS_OPTION,
4782
+ type: l.SET_DISABLE_SELECT_ALL_RECORDS_OPTION,
4768
4783
  payload: Z
4769
4784
  }), e({
4770
- type: s.SET_COLUMN_BUFFER_SIZE,
4771
- payload: se
4772
- }), e({
4773
- type: s.SET_LAZY_LOAD_CELL_RENDERER,
4785
+ type: l.SET_COLUMN_BUFFER_SIZE,
4774
4786
  payload: ae
4775
4787
  }), e({
4776
- type: s.SET_HAS_SPLIT_RENDERER,
4777
- payload: ue
4788
+ type: l.SET_LAZY_LOAD_CELL_RENDERER,
4789
+ payload: se
4778
4790
  }), e({
4779
- type: s.SET_HAS_SPLIT_RENDERER_KEYS,
4791
+ type: l.SET_HAS_SPLIT_RENDERER,
4792
+ payload: Ee
4793
+ }), e({
4794
+ type: l.SET_HAS_SPLIT_RENDERER_KEYS,
4780
4795
  payload: fe
4781
4796
  }), e({
4782
- type: s.SET_REMOVE_SELECTION_ON_OPERATION,
4797
+ type: l.SET_REMOVE_SELECTION_ON_OPERATION,
4783
4798
  payload: he
4784
4799
  }), e({
4785
- type: s.SET_CHAT_ENABLED,
4800
+ type: l.SET_CHAT_ENABLED,
4786
4801
  payload: Ae
4787
4802
  }), e({
4788
- type: s.SET_COMMENT_ENABLED,
4789
- payload: Ee
4803
+ type: l.SET_COMMENT_ENABLED,
4804
+ payload: ue
4790
4805
  }), e({
4791
- type: s.SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION,
4806
+ type: l.SET_REMOVE_CHECK_CONFIGURATION_ON_OPERATION,
4792
4807
  payload: ie
4793
4808
  }), e({
4794
- type: s.SET_NO_HEADER_SELECTION_CHECKBOX,
4809
+ type: l.SET_NO_HEADER_SELECTION_CHECKBOX,
4795
4810
  payload: k
4796
4811
  }), e({
4797
- type: s.SET_DATA_IS_TREE_DATA,
4812
+ type: l.SET_DATA_IS_TREE_DATA,
4798
4813
  payload: V
4799
4814
  }), e({
4800
- type: s.SET_VIRTUALIZATION_CONFIG,
4815
+ type: l.SET_VIRTUALIZATION_CONFIG,
4801
4816
  payload: le
4802
4817
  }), e({
4803
- type: s.SET_DISABLE_CURRENT_PAGE_RECORDS,
4804
- payload: u
4818
+ type: l.SET_DISABLE_CURRENT_PAGE_RECORDS,
4819
+ payload: E
4805
4820
  });
4806
4821
  }, []), pe(() => {
4807
4822
  e({
4808
- type: s.SET_ROW_HEIGHT,
4823
+ type: l.SET_ROW_HEIGHT,
4809
4824
  payload: Q
4810
4825
  });
4811
4826
  }, [Q]), pe(() => {
4812
4827
  e({
4813
- type: s.SAVE_VIEW_CALLBACKS,
4828
+ type: l.SAVE_VIEW_CALLBACKS,
4814
4829
  payload: {
4815
4830
  isSavingViewLoading: U,
4816
4831
  savedViewsOptions: N
@@ -4818,10 +4833,10 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4818
4833
  });
4819
4834
  }, [N, U]), pe(() => {
4820
4835
  e({
4821
- type: s.SET_SERVER_SIDE,
4822
- payload: E
4836
+ type: l.SET_SERVER_SIDE,
4837
+ payload: u
4823
4838
  });
4824
- }, [E]), null), Nn = Tn(
4839
+ }, [u]), null), Nn = Tn(
4825
4840
  void 0
4826
4841
  ), Ft = mn(
4827
4842
  ({
@@ -4836,23 +4851,23 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4836
4851
  // Grid alignment props
4837
4852
  tableId: f,
4838
4853
  alignedGrids: c = [],
4839
- initialExpandedColumnGroups: E = {},
4854
+ initialExpandedColumnGroups: u = {},
4840
4855
  enableRowSpan: g = !1,
4841
4856
  rowSpanColumn: C = null,
4842
4857
  columnMap: L = {},
4843
- infiniteScroll: l = !1,
4858
+ infiniteScroll: a = !1,
4844
4859
  rowDragManaged: p,
4845
4860
  pinnedTopRows: R = [],
4846
4861
  pinnedBottomRows: P = [],
4847
- getRowStyle: S,
4862
+ getRowStyle: O,
4848
4863
  tableInstance: U,
4849
4864
  smartGridMenuOptions: N,
4850
4865
  purgeClosedRowNodes: Q,
4851
- detailRendererTable: j,
4866
+ detailRendererTable: _,
4852
4867
  // Save View Props
4853
4868
  isSaveViewEnabled: v,
4854
4869
  isSavingViewLoading: K,
4855
- savedViewsOptions: _,
4870
+ savedViewsOptions: j,
4856
4871
  rowHeight: q,
4857
4872
  callBackRef: ee,
4858
4873
  exportCallbackRef: ne,
@@ -4860,20 +4875,20 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4860
4875
  saveViewOptionsRef: Z,
4861
4876
  clickCallbackRef: te,
4862
4877
  // Row selection
4863
- isSingleSelect: se = !1,
4864
- selectable: ae,
4865
- disableSelectAllRecords: ue,
4878
+ isSingleSelect: ae = !1,
4879
+ selectable: se,
4880
+ disableSelectAllRecords: Ee,
4866
4881
  columnBufferSize: fe,
4867
4882
  lazyLoadCellRenderer: he,
4868
4883
  hasSplitRenderer: ie,
4869
4884
  splitRendererKeys: ce,
4870
4885
  removeSelectionOnOperation: Ae,
4871
- removeCheckConfigurationOnOperation: Ee,
4886
+ removeCheckConfigurationOnOperation: ue,
4872
4887
  isChatEnabled: k,
4873
4888
  isCommentFeatureEnabled: V,
4874
4889
  noHeaderSelection: le,
4875
- treeData: a,
4876
- virtualizationConfig: u,
4890
+ treeData: s,
4891
+ virtualizationConfig: E,
4877
4892
  rowSelectionRef: h,
4878
4893
  disableCurrentPageRecords: B
4879
4894
  }, w) => {
@@ -4881,41 +4896,41 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4881
4896
  {}
4882
4897
  ), F = Dt().getState().dispatch, x = Ie(
4883
4898
  (H) => {
4884
- var re, Ce, we, me, ve, Re;
4899
+ var re, Ce, we, Oe, ve, Re;
4885
4900
  F(H);
4886
4901
  const b = m.current.state || {};
4887
4902
  if (b != null && b.api && ((re = b.api) != null && re.dispatchEvent)) {
4888
- const Qe = ut[H.type];
4903
+ const Qe = Et[H.type];
4889
4904
  if (Qe) {
4890
4905
  let oe = { api: b.api };
4891
4906
  const Y = H.payload;
4892
4907
  switch (H.type) {
4893
- case s.SET_COLUMN_WIDTH:
4894
- case s.SET_COLUMNS_WIDTH:
4908
+ case l.SET_COLUMN_WIDTH:
4909
+ case l.SET_COLUMNS_WIDTH:
4895
4910
  oe = {
4896
4911
  ...oe,
4897
4912
  column: (Y == null ? void 0 : Y.column) || (Y == null ? void 0 : Y.columns)
4898
4913
  };
4899
4914
  break;
4900
- case s.REORDER_COLUMNS:
4915
+ case l.REORDER_COLUMNS:
4901
4916
  oe = { ...oe, columns: H.payload };
4902
4917
  break;
4903
- case s.TOGGLE_COLUMN_VISIBILITY:
4918
+ case l.TOGGLE_COLUMN_VISIBILITY:
4904
4919
  oe = {
4905
4920
  ...oe,
4906
4921
  column: Y == null ? void 0 : Y.column,
4907
4922
  visible: Y == null ? void 0 : Y.visible
4908
4923
  };
4909
4924
  break;
4910
- case s.SET_SORT:
4925
+ case l.SET_SORT:
4911
4926
  oe = { ...oe, sortState: H.payload };
4912
4927
  break;
4913
- case s.SET_COLUMN_FILTER:
4914
- case s.REMOVE_COLUMN_FILTER:
4915
- case s.APPLY_FILTERS:
4928
+ case l.SET_COLUMN_FILTER:
4929
+ case l.REMOVE_COLUMN_FILTER:
4930
+ case l.APPLY_FILTERS:
4916
4931
  Cn(b), oe = { ...oe, filterState: b.columnFilters };
4917
4932
  break;
4918
- case s.SET_PAGE:
4933
+ case l.SET_PAGE:
4919
4934
  oe = {
4920
4935
  ...oe,
4921
4936
  paginationState: {
@@ -4924,7 +4939,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4924
4939
  }
4925
4940
  };
4926
4941
  break;
4927
- case s.SET_PAGE_SIZE:
4942
+ case l.SET_PAGE_SIZE:
4928
4943
  Cn(b), oe = {
4929
4944
  ...oe,
4930
4945
  paginationState: {
@@ -4933,7 +4948,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4933
4948
  }
4934
4949
  };
4935
4950
  break;
4936
- case s.UPDATE_ROW_DATA:
4951
+ case l.UPDATE_ROW_DATA:
4937
4952
  oe = {
4938
4953
  ...oe,
4939
4954
  data: Y != null && Y.rowId ? (Ce = b.data) == null ? void 0 : Ce.find(
@@ -4944,17 +4959,17 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4944
4959
  oldValue: Y == null ? void 0 : Y.oldValue
4945
4960
  };
4946
4961
  break;
4947
- case s.UPDATE_ROW_DATA_OBJECT:
4962
+ case l.UPDATE_ROW_DATA_OBJECT:
4948
4963
  oe = {
4949
4964
  ...oe,
4950
4965
  data: Y == null ? void 0 : Y.rowData,
4951
4966
  changes: Y == null ? void 0 : Y.changes
4952
4967
  };
4953
4968
  break;
4954
- case s.SET_SELECTED_ROWS:
4969
+ case l.SET_SELECTED_ROWS:
4955
4970
  oe = { ...oe, selectedRows: H.payload };
4956
4971
  break;
4957
- case s.TOGGLE_ROW_GROUP:
4972
+ case l.TOGGLE_ROW_GROUP:
4958
4973
  oe = {
4959
4974
  ...oe,
4960
4975
  groupId: Y == null ? void 0 : Y.groupId,
@@ -4962,7 +4977,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4962
4977
  isExpanded: Y == null ? void 0 : Y.isExpanded
4963
4978
  };
4964
4979
  break;
4965
- case s.SET_ROW_GROUP_DATA:
4980
+ case l.SET_ROW_GROUP_DATA:
4966
4981
  oe = {
4967
4982
  ...oe,
4968
4983
  groupId: Y == null ? void 0 : Y.groupId,
@@ -4971,7 +4986,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4971
4986
  hasMoreData: Y == null ? void 0 : Y.hasMoreData
4972
4987
  };
4973
4988
  break;
4974
- case s.TOGGLE_GROUP_EXPANSION:
4989
+ case l.TOGGLE_GROUP_EXPANSION:
4975
4990
  oe = {
4976
4991
  ...oe,
4977
4992
  rowId: Y == null ? void 0 : Y.rowId,
@@ -4982,7 +4997,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
4982
4997
  b.api.dispatchEvent(Qe, oe);
4983
4998
  }
4984
4999
  }
4985
- !b.tableId || !((me = (we = I.current) == null ? void 0 : we.alignedGrids) != null && me.length) || (ve = H.meta) != null && ve.fromAlignedGrid || !Et.includes(H.type) || (Re = I.current) != null && Re.propagateChange && I.current.propagateChange(
5000
+ !b.tableId || !((Oe = (we = I.current) == null ? void 0 : we.alignedGrids) != null && Oe.length) || (ve = H.meta) != null && ve.fromAlignedGrid || !ut.includes(H.type) || (Re = I.current) != null && Re.propagateChange && I.current.propagateChange(
4986
5001
  H.type,
4987
5002
  H.payload,
4988
5003
  H.meta
@@ -5003,16 +5018,16 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5003
5018
  pageSize: d,
5004
5019
  serverSide: o,
5005
5020
  rowDragManaged: p,
5006
- infiniteScroll: l,
5007
- initialExpandedColumnGroups: E,
5021
+ infiniteScroll: a,
5022
+ initialExpandedColumnGroups: u,
5008
5023
  tableApi: A,
5009
5024
  smartGridMenuOptions: N,
5010
5025
  purgeClosedRowNodes: Q,
5011
- detailRendererTable: j,
5026
+ detailRendererTable: _,
5012
5027
  // Save View Props
5013
5028
  isSaveViewEnabled: v,
5014
5029
  isSavingViewLoading: K,
5015
- savedViewsOptions: _,
5030
+ savedViewsOptions: j,
5016
5031
  rowHeight: q,
5017
5032
  tableId: f,
5018
5033
  refObj: m,
@@ -5021,27 +5036,27 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5021
5036
  exportCallbackRef: ne,
5022
5037
  saveViewCallbackRef: $,
5023
5038
  saveViewOptionsRef: Z,
5024
- isSingleSelect: se,
5039
+ isSingleSelect: ae,
5025
5040
  defaultColDef: i,
5026
- disableSelectAllRecords: ue,
5027
- selectable: ae,
5041
+ disableSelectAllRecords: Ee,
5042
+ selectable: se,
5028
5043
  columnBufferSize: fe,
5029
5044
  lazyLoadCellRenderer: he,
5030
5045
  hasSplitRenderer: ie,
5031
5046
  splitRendererKeys: ce,
5032
5047
  removeSelectionOnOperation: Ae,
5033
- removeCheckConfigurationOnOperation: Ee,
5048
+ removeCheckConfigurationOnOperation: ue,
5034
5049
  clickCallbackRef: te,
5035
5050
  isChatEnabled: k,
5036
5051
  isCommentFeatureEnabled: V,
5037
5052
  noHeaderSelection: le,
5038
- treeData: a,
5039
- virtualizationConfig: u,
5053
+ treeData: s,
5054
+ virtualizationConfig: E,
5040
5055
  rowSelectionRef: h,
5041
5056
  disableCurrentPageRecords: B
5042
5057
  }), pe(() => {
5043
5058
  F({
5044
- type: s.SET_COLUMNS,
5059
+ type: l.SET_COLUMNS,
5045
5060
  payload: n,
5046
5061
  meta: { defaultColDef: i }
5047
5062
  });
@@ -5051,7 +5066,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5051
5066
  n.forEach((Ce) => {
5052
5067
  Ce.width || (re = !0, b[M(Ce)] = !0);
5053
5068
  }), re && F({
5054
- type: s.AUTOSIZE_COLUMNS_REQUESTED,
5069
+ type: l.AUTOSIZE_COLUMNS_REQUESTED,
5055
5070
  payload: { columnsToAutosize: b }
5056
5071
  });
5057
5072
  }, 100);
@@ -5060,7 +5075,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5060
5075
  const D = Ie(
5061
5076
  (H, b) => {
5062
5077
  H && x({
5063
- type: s.TOGGLE_GROUP_EXPANSION,
5078
+ type: l.TOGGLE_GROUP_EXPANSION,
5064
5079
  payload: { rowId: String(H), rowIndex: b }
5065
5080
  });
5066
5081
  },
@@ -5092,12 +5107,12 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5092
5107
  return;
5093
5108
  }
5094
5109
  x({
5095
- type: s.ADD_EVENT_LISTENER,
5110
+ type: l.ADD_EVENT_LISTENER,
5096
5111
  payload: { eventType: H, listener: b, once: re }
5097
5112
  });
5098
5113
  },
5099
5114
  [x]
5100
- ), O = Ie(
5115
+ ), S = Ie(
5101
5116
  (H, b) => {
5102
5117
  if (!We.includes(H)) {
5103
5118
  console.warn(
@@ -5112,7 +5127,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5112
5127
  return;
5113
5128
  }
5114
5129
  x({
5115
- type: s.REMOVE_EVENT_LISTENER,
5130
+ type: l.REMOVE_EVENT_LISTENER,
5116
5131
  payload: { eventType: H, listener: b }
5117
5132
  });
5118
5133
  },
@@ -5121,13 +5136,13 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5121
5136
  (H, b) => {
5122
5137
  const re = vt(m.current.state, H, b) || [];
5123
5138
  Array.isArray(re) && re.forEach((Ce) => {
5124
- O(H, Ce);
5139
+ S(H, Ce);
5125
5140
  });
5126
5141
  },
5127
- [O]
5142
+ [S]
5128
5143
  );
5129
5144
  pe(() => () => {
5130
- F({ type: s.CLEANUP_TABLE_RESOURCES });
5145
+ F({ type: l.CLEANUP_TABLE_RESOURCES });
5131
5146
  }, []);
5132
5147
  const X = Rn(() => {
5133
5148
  var H;
@@ -5137,23 +5152,23 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5137
5152
  api: {
5138
5153
  ...A,
5139
5154
  addEventListener: z,
5140
- removeEventListener: O,
5155
+ removeEventListener: S,
5141
5156
  dispatchEvent: T
5142
5157
  }
5143
5158
  },
5144
5159
  tableApi: A,
5145
5160
  dispatch: x,
5146
- ACTION_TYPES: s,
5161
+ ACTION_TYPES: l,
5147
5162
  toggleGroupExpansion: D,
5148
5163
  dispatchEvent: T,
5149
- getRowStyle: S
5164
+ getRowStyle: O
5150
5165
  };
5151
5166
  }, [
5152
5167
  D,
5153
5168
  T,
5154
- S,
5155
- z,
5156
5169
  O,
5170
+ z,
5171
+ S,
5157
5172
  x,
5158
5173
  A
5159
5174
  ]);
@@ -5163,7 +5178,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5163
5178
  {
5164
5179
  refObj: m,
5165
5180
  addEventListener: z,
5166
- removeEventListener: O,
5181
+ removeEventListener: S,
5167
5182
  dispatchEvent: T
5168
5183
  }
5169
5184
  ),
@@ -5172,14 +5187,14 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5172
5187
  }
5173
5188
  ), pr = mn((e, n) => {
5174
5189
  const { tableId: t = "default" } = e;
5175
- return /* @__PURE__ */ de(St, { tableId: t, children: /* @__PURE__ */ de(Ft, { ...e, ref: n }) });
5190
+ return /* @__PURE__ */ de(Ot, { tableId: t, children: /* @__PURE__ */ de(Ft, { ...e, ref: n }) });
5176
5191
  }), bt = ({
5177
5192
  refObj: e,
5178
5193
  addEventListener: n,
5179
5194
  removeEventListener: t,
5180
5195
  dispatchEvent: r
5181
5196
  }) => {
5182
- const A = Ot((i) => i);
5197
+ const A = St((i) => i);
5183
5198
  return pe(() => {
5184
5199
  e.current.state = A, e.current.state = {
5185
5200
  ...A,
@@ -5214,7 +5229,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5214
5229
  secondaryButtonLabel: f = "Close",
5215
5230
  primaryButtonProps: c = {}
5216
5231
  }) => {
5217
- const E = Ie(() => {
5232
+ const u = Ie(() => {
5218
5233
  n();
5219
5234
  }, [n]), g = Ie(
5220
5235
  (P) => {
@@ -5223,7 +5238,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5223
5238
  [d, n]
5224
5239
  );
5225
5240
  if (!e) return null;
5226
- const C = `ia-table-prompt-${A}`, L = A === "delete" || A === "error" ? "danger" : "primary", l = o || f, p = o && A !== "success", R = /* @__PURE__ */ de("div", { className: "ia-table-prompt-overlay d-flex align-items-center justify-content-center", children: /* @__PURE__ */ Le(
5241
+ const C = `ia-table-prompt-${A}`, L = A === "delete" || A === "error" ? "danger" : "primary", a = o || f, p = o && A !== "success", R = /* @__PURE__ */ de("div", { className: "ia-table-prompt-overlay d-flex align-items-center justify-content-center", children: /* @__PURE__ */ Le(
5227
5242
  "div",
5228
5243
  {
5229
5244
  className: `ia-table-prompt d-flex flex-column position-relative ${C}`,
@@ -5232,7 +5247,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5232
5247
  "div",
5233
5248
  {
5234
5249
  className: "ia-table-prompt-close-icon cursor-pointer",
5235
- onClick: E,
5250
+ onClick: u,
5236
5251
  "aria-label": "Close",
5237
5252
  children: /* @__PURE__ */ de(Wn, { width: "11.67", height: "11.67" })
5238
5253
  }
@@ -5242,7 +5257,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5242
5257
  t && /* @__PURE__ */ de("div", { className: "ia-table-prompt-title", children: t }),
5243
5258
  r && /* @__PURE__ */ de("div", { className: "ia-table-prompt-message", children: r })
5244
5259
  ] }),
5245
- l && /* @__PURE__ */ Le("div", { className: "ia-table-prompt-footer d-flex justify-content-center align-items-center gap-12", children: [
5260
+ a && /* @__PURE__ */ Le("div", { className: "ia-table-prompt-footer d-flex justify-content-center align-items-center gap-12", children: [
5246
5261
  f && /* @__PURE__ */ de(dn, { onClick: g, variant: "text", children: f }),
5247
5262
  p && /* @__PURE__ */ de(
5248
5263
  dn,
@@ -5257,7 +5272,7 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5257
5272
  ]
5258
5273
  }
5259
5274
  ) });
5260
- return Sn(R, document.body);
5275
+ return On(R, document.body);
5261
5276
  }, wr = Hn(Wt), Br = ({
5262
5277
  isMultiSelect: e,
5263
5278
  cellValue: n,
@@ -5281,10 +5296,10 @@ const Dt = () => An(ln) || xn, _e = /* @__PURE__ */ new Map(), Qn = (e = "defaul
5281
5296
  }, Tr = (e, n) => typeof n == "number" ? n : n === "center" ? e.height / 2 : n === "bottom" ? e.height : 0, Rr = (e, n) => typeof n == "number" ? n : n === "center" ? e.width / 2 : n === "right" ? e.width : 0, mr = (e) => {
5282
5297
  const n = typeof e.horizontal == "number" ? `${e.horizontal}px` : e.horizontal, t = typeof e.vertical == "number" ? `${e.vertical}px` : e.vertical;
5283
5298
  return `${n} ${t}`;
5284
- }, Sr = {
5299
+ }, Or = {
5285
5300
  vertical: "bottom",
5286
5301
  horizontal: "left"
5287
- }, Or = {
5302
+ }, Sr = {
5288
5303
  vertical: "top",
5289
5304
  horizontal: "left"
5290
5305
  };
@@ -5295,24 +5310,24 @@ function Pr(e) {
5295
5310
  return e.type !== "date-separator";
5296
5311
  }
5297
5312
  export {
5298
- s as A,
5313
+ l as A,
5299
5314
  rt as B,
5300
5315
  gr as C,
5301
5316
  cr as D,
5302
5317
  Zt as E,
5303
5318
  Ze as F,
5304
- Oe as G,
5319
+ me as G,
5305
5320
  ke as H,
5306
5321
  qe as I,
5307
5322
  fr as J,
5308
- ur as K,
5323
+ Er as K,
5309
5324
  Vt as L,
5310
5325
  Qt as M,
5311
5326
  Pr as N,
5312
5327
  Dr as O,
5313
5328
  wr as P,
5314
- Sr as Q,
5315
- Or as R,
5329
+ Or as Q,
5330
+ Sr as R,
5316
5331
  Jt as S,
5317
5332
  pr as T,
5318
5333
  mr as U,
@@ -5324,21 +5339,21 @@ export {
5324
5339
  Ct as d,
5325
5340
  rr as e,
5326
5341
  Ar as f,
5327
- at as g,
5342
+ st as g,
5328
5343
  dr as h,
5329
5344
  Br as i,
5330
- En as j,
5331
- ar as k,
5345
+ un as j,
5346
+ sr as k,
5332
5347
  or as l,
5333
- sr as m,
5348
+ ar as m,
5334
5349
  ir as n,
5335
5350
  tr as o,
5336
- je as p,
5351
+ _e as p,
5337
5352
  ct as q,
5338
5353
  hr as r,
5339
- Er as s,
5354
+ ur as s,
5340
5355
  tt as t,
5341
- Ot as u,
5356
+ St as u,
5342
5357
  nr as v,
5343
5358
  qt as w,
5344
5359
  lr as x,