ia-table 0.15.0 → 0.15.1

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.
@@ -3,11 +3,11 @@ import * as X from "react";
3
3
  import Nn, { createContext as pn, useContext as en, useMemo as In, useEffect as Ee, useRef as De, useState as Qe, useCallback as pe, forwardRef as wn, useImperativeHandle as Gn, memo as vn } from "react";
4
4
  import { jsx as de, jsxs as Se } from "react/jsx-runtime";
5
5
  import { createPortal as Bn } from "react-dom";
6
- import { g as v, P as Mn, f as Ke, L as Oe, s as Fn, p as Ye, h as Hn, m as on, S as bn, B as ln } from "./RadioGroup-Cv9QL-Yd.js";
6
+ import { g as M, P as Mn, f as Ke, L as Oe, s as Fn, p as Ye, h as Hn, m as on, S as bn, B as ln } from "./RadioGroup-Cv9QL-Yd.js";
7
7
  import { create as zn } from "zustand";
8
8
  const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ X.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" })), kn = (e, n) => (t, r, i) => (i.dispatch = (A) => (t((o) => e(o, A), !1, A), A), i.dispatchFromDevtools = !0, { dispatch: (...A) => i.dispatch(...A), ...n }), Un = kn, z = "_IATableOrdered", xe = (e = 100) => `${(/* @__PURE__ */ new Date()).getTime()}_${e}`, Rn = (e, n = { path: [] }) => {
9
9
  var E, g, u, C, f, L, l, p;
10
- const t = xe(), r = v(e), i = e._originalField || ((g = (E = r == null ? void 0 : r.split) == null ? void 0 : E.call(r, z)) == null ? void 0 : g[0]), A = ((f = (C = (u = e.column_name) == null ? void 0 : u.split) == null ? void 0 : C.call(u, z)) == null ? void 0 : f[0]) || e.column_name, o = ((p = (l = (L = e.accessor) == null ? void 0 : L.split) == null ? void 0 : l.call(L, z)) == null ? void 0 : p[0]) || e.accessor, d = r.split(z)[0];
10
+ const t = xe(), r = M(e), i = e._originalField || ((g = (E = r == null ? void 0 : r.split) == null ? void 0 : E.call(r, z)) == null ? void 0 : g[0]), A = ((f = (C = (u = e.column_name) == null ? void 0 : u.split) == null ? void 0 : C.call(u, z)) == null ? void 0 : f[0]) || e.column_name, o = ((p = (l = (L = e.accessor) == null ? void 0 : L.split) == null ? void 0 : l.call(L, z)) == null ? void 0 : p[0]) || e.accessor, d = r.split(z)[0];
11
11
  return {
12
12
  accessor: `${o}${z}${t}`,
13
13
  field: `${i}${z}${t}`,
@@ -22,10 +22,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
22
22
  isReorderedColumn: !0
23
23
  };
24
24
  }, Wn = (e) => {
25
- var r, i, A, o, d, E, g, u, C, f, L, l, p, O, S, F, k, Q;
25
+ var r, i, A, o, d, E, g, u, C, f, L, l, p, O, D, y, k, x;
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
- const t = v(e);
28
+ const t = M(e);
29
29
  return {
30
30
  ...n,
31
31
  // Get the original field name before any ORDERED_SUFFIX
@@ -33,16 +33,16 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
33
33
  field: e._originalField || ((d = (o = t == null ? void 0 : t.split) == null ? void 0 : o.call(t, z)) == null ? void 0 : d[0]),
34
34
  column_name: ((u = (g = (E = e.column_name) == null ? void 0 : E.split) == null ? void 0 : g.call(E, z)) == null ? void 0 : u[0]) || e.column_name,
35
35
  _originalField: e._originalField || ((f = (C = t == null ? void 0 : t.split) == null ? void 0 : C.call(t, z)) == null ? void 0 : f[0]),
36
- path: e.originalPath ? (L = e.originalPath) == null ? void 0 : L.map((y) => y.split(z)[0]) : e.path,
36
+ path: e.originalPath ? (L = e.originalPath) == null ? void 0 : L.map((Q) => Q.split(z)[0]) : e.path,
37
37
  id: ((O = (p = (l = e.id) == null ? void 0 : l.split) == null ? void 0 : p.call(l, z)) == null ? void 0 : O[0]) || e.id,
38
38
  originalPath: null,
39
- parent_id: (S = e.parent_id) == null ? void 0 : S.map(
40
- (y) => {
41
- var U, N;
42
- return typeof y == "string" ? (N = (U = y == null ? void 0 : y.split) == null ? void 0 : U.call(y, z)) == null ? void 0 : N[0] : y;
39
+ parent_id: (D = e.parent_id) == null ? void 0 : D.map(
40
+ (Q) => {
41
+ var U, G;
42
+ return typeof Q == "string" ? (G = (U = Q == null ? void 0 : Q.split) == null ? void 0 : U.call(Q, z)) == null ? void 0 : G[0] : Q;
43
43
  }
44
44
  ),
45
- parentField: (Q = (k = (F = e.parentField) == null ? void 0 : F.split) == null ? void 0 : k.call(F, z)) == null ? void 0 : Q[0]
45
+ parentField: (x = (k = (y = e.parentField) == null ? void 0 : y.split) == null ? void 0 : k.call(y, z)) == null ? void 0 : x[0]
46
46
  };
47
47
  }, nn = (e) => {
48
48
  var r, i, A, o;
@@ -72,43 +72,43 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
72
72
  } : {
73
73
  ...Wn(d),
74
74
  children: []
75
- }, S = (k, Q, y) => {
76
- const U = [...y, v(k)], N = {
75
+ }, D = (k, x, Q) => {
76
+ const U = [...Q, M(k)], G = {
77
77
  ...k,
78
78
  originalPath: U.map((j) => j.split(z)[0]),
79
79
  path: U
80
80
  };
81
- return N.children && N.children.length > 0 && (N.children = N.children.map(
82
- (j) => S(
81
+ return G.children && G.children.length > 0 && (G.children = G.children.map(
82
+ (j) => D(
83
83
  j,
84
- Q,
85
- N.path
84
+ x,
85
+ G.path
86
86
  )
87
- )), N.path = U, N;
88
- }, F = [];
87
+ )), G.path = U, G;
88
+ }, y = [];
89
89
  if (d.children && d.children.length > 0) {
90
- const k = v(O);
91
- d.children.forEach((Q) => {
92
- const y = S(
93
- Q,
90
+ const k = M(O);
91
+ d.children.forEach((x) => {
92
+ const Q = D(
93
+ x,
94
94
  d.path || [],
95
95
  O.path || []
96
96
  );
97
- y.parent_id = [k], y.parentField = k, F.push(y);
97
+ Q.parent_id = [k], Q.parentField = k, y.push(Q);
98
98
  });
99
99
  }
100
100
  if (E.children && E.children.length > 0) {
101
- const k = v(O);
102
- E.children.forEach((Q) => {
103
- const y = S(
104
- Q,
101
+ const k = M(O);
102
+ E.children.forEach((x) => {
103
+ const Q = D(
104
+ x,
105
105
  E.path || [],
106
106
  O.path || []
107
107
  );
108
- y.parent_id = [k], y.parentField = k, F.push(y);
108
+ Q.parent_id = [k], Q.parentField = k, y.push(Q);
109
109
  });
110
110
  }
111
- O.children = F, n.splice(t, 2, O);
111
+ O.children = y, n.splice(t, 2, O);
112
112
  } else
113
113
  t++;
114
114
  }
@@ -128,18 +128,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
128
128
  for (let g = 0; g < E && (A[g] === o[g] && e.is_frozen === n.is_frozen && e.pinned === n.pinned); g++)
129
129
  d.push(A[g]);
130
130
  return d;
131
- }, Tn = (e, n) => {
131
+ }, mn = (e, n) => {
132
132
  for (const t of e) {
133
- if (v(t) === n)
133
+ if (M(t) === n)
134
134
  return t;
135
135
  if (t.children && t.children.length > 0) {
136
- const r = Tn(t.children, n);
136
+ const r = mn(t.children, n);
137
137
  if (r) return r;
138
138
  }
139
139
  }
140
140
  return null;
141
141
  }, Ve = (e, n) => {
142
- const t = v(e);
142
+ const t = M(e);
143
143
  if (t === n || t.split(z)[0] === n.split(z)[0])
144
144
  return e;
145
145
  if (e.children && e.children.length > 0)
@@ -201,69 +201,69 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
201
201
  var f, L;
202
202
  if (!n || n.length === 0 || n.length === 1)
203
203
  return { removed: !1, hierarchy: null };
204
- const t = (l, p) => v(l) === p, r = e.findIndex(
204
+ const t = (l, p) => M(l) === p, r = e.findIndex(
205
205
  (l) => t(l, n[0])
206
206
  );
207
207
  if (r === -1)
208
208
  return { removed: !1, hierarchy: null };
209
- const i = e[r], A = JSON.parse(JSON.stringify(i)), o = (l, p, O, S = [], F = 0) => {
209
+ const i = e[r], A = JSON.parse(JSON.stringify(i)), o = (l, p, O, D = [], y = 0) => {
210
210
  var $, ne, oe, se;
211
211
  if (!(l != null && l.children))
212
212
  return { success: !1, hierarchy: null };
213
- const k = O[0], Q = l.children.findIndex(
213
+ const k = O[0], x = l.children.findIndex(
214
214
  (fe) => t(fe, k)
215
215
  );
216
- if (Q === -1)
216
+ if (x === -1)
217
217
  return { success: !1, hierarchy: null };
218
- const y = ($ = p.children) == null ? void 0 : $.find(
218
+ const Q = ($ = p.children) == null ? void 0 : $.find(
219
219
  (fe) => t(fe, k)
220
220
  );
221
- if (!y)
221
+ if (!Q)
222
222
  return { success: !1, hierarchy: null };
223
223
  if (O.length === 1) {
224
- l.children.splice(Q, 1);
225
- const fe = xe(), Ce = v(y).split(z)[0], ue = `${z}${fe}`, re = `${Ce}${ue}`, ae = {
226
- ...y,
224
+ l.children.splice(x, 1);
225
+ const fe = xe(), Ce = M(Q).split(z)[0], ue = `${z}${fe}`, re = `${Ce}${ue}`, ae = {
226
+ ...Q,
227
227
  field: re,
228
- column_name: y.column_name ? `${y.column_name.split(z)[0]}${ue}` : re,
229
- accessor: y.accessor ? `${y.accessor.split(z)[0]}${ue}` : re,
230
- id: y.id ? `${y.id.split(z)[0]}${ue}` : re,
231
- path: [...S, re],
232
- originalPath: y.originalPath || ((ne = y.path) == null ? void 0 : ne.map((Ae) => Ae.split(z)[0])),
228
+ column_name: Q.column_name ? `${Q.column_name.split(z)[0]}${ue}` : re,
229
+ accessor: Q.accessor ? `${Q.accessor.split(z)[0]}${ue}` : re,
230
+ id: Q.id ? `${Q.id.split(z)[0]}${ue}` : re,
231
+ path: [...D, re],
232
+ originalPath: Q.originalPath || ((ne = Q.path) == null ? void 0 : ne.map((Ae) => Ae.split(z)[0])),
233
233
  originalId: Ce,
234
- _originalField: y._originalField || Ce,
234
+ _originalField: Q._originalField || Ce,
235
235
  isReorderedColumn: !0
236
236
  };
237
- return S.length > 0 && (ae.parent_id = [S[S.length - 1]], ae.parentField = S[S.length - 1]), { success: !0, hierarchy: ae };
237
+ return D.length > 0 && (ae.parent_id = [D[D.length - 1]], ae.parentField = D[D.length - 1]), { success: !0, hierarchy: ae };
238
238
  }
239
- const U = xe(), N = v(y).split(z)[0], j = `${z}${U}`, Y = `${N}${j}`, J = [...S, Y], Z = l.children[Q], ee = o(
239
+ const U = xe(), G = M(Q).split(z)[0], j = `${z}${U}`, Y = `${G}${j}`, J = [...D, Y], Z = l.children[x], ee = o(
240
240
  Z,
241
- y,
241
+ Q,
242
242
  O.slice(1),
243
243
  J,
244
- F + 1
244
+ y + 1
245
245
  );
246
246
  if (!ee.success)
247
247
  return ee;
248
- ((oe = Z.children) == null ? void 0 : oe.length) === 0 && !Z.isLeaf && l.children.splice(Q, 1);
248
+ ((oe = Z.children) == null ? void 0 : oe.length) === 0 && !Z.isLeaf && l.children.splice(x, 1);
249
249
  const K = {
250
- ...y,
250
+ ...Q,
251
251
  field: Y,
252
- column_name: y.column_name ? `${y.column_name.split(z)[0]}${j}` : Y,
253
- accessor: y.accessor ? `${y.accessor.split(z)[0]}${j}` : Y,
254
- id: y.id ? `${y.id.split(z)[0]}${j}` : Y,
252
+ column_name: Q.column_name ? `${Q.column_name.split(z)[0]}${j}` : Y,
253
+ accessor: Q.accessor ? `${Q.accessor.split(z)[0]}${j}` : Y,
254
+ id: Q.id ? `${Q.id.split(z)[0]}${j}` : Y,
255
255
  path: J,
256
- originalPath: y.originalPath || ((se = y.path) == null ? void 0 : se.map((fe) => fe.split(z)[0])),
257
- originalId: N,
258
- _originalField: y._originalField || N,
256
+ originalPath: Q.originalPath || ((se = Q.path) == null ? void 0 : se.map((fe) => fe.split(z)[0])),
257
+ originalId: G,
258
+ _originalField: Q._originalField || G,
259
259
  isReorderedColumn: !0,
260
260
  children: [ee.hierarchy]
261
261
  };
262
- return S.length > 0 && (K.parent_id = [S[S.length - 1]], K.parentField = S[S.length - 1]), ee.hierarchy && (ee.hierarchy.parent_id = [Y], ee.hierarchy.parentField = Y), {
262
+ return D.length > 0 && (K.parent_id = [D[D.length - 1]], K.parentField = D[D.length - 1]), ee.hierarchy && (ee.hierarchy.parent_id = [Y], ee.hierarchy.parentField = Y), {
263
263
  success: !0,
264
264
  hierarchy: K
265
265
  };
266
- }, d = xe(), E = v(A).split(z)[0], g = `${z}${d}`, u = `${E}${g}`, C = o(
266
+ }, d = xe(), E = M(A).split(z)[0], g = `${z}${d}`, u = `${E}${g}`, C = o(
267
267
  i,
268
268
  A,
269
269
  n.slice(1),
@@ -290,9 +290,9 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
290
290
  }, _n = (e, n, t) => {
291
291
  e.path || (e.path = []), n.path || (n.path = []);
292
292
  const r = e.path[0] || "", i = n.path[0] || "", A = t.findIndex(
293
- (Q) => v(Q) === r
293
+ (x) => M(x) === r
294
294
  ), o = t.findIndex(
295
- (Q) => v(Q) === i
295
+ (x) => M(x) === i
296
296
  );
297
297
  if (A === -1 || o === -1)
298
298
  return console.error("Could not find source or target column in columns array", {
@@ -309,23 +309,23 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
309
309
  const u = A === g;
310
310
  let C = 0, f = !1;
311
311
  if (u) {
312
- const { rightAddition: Q } = Vn(
312
+ const { rightAddition: x } = Vn(
313
313
  e,
314
314
  n,
315
315
  t[g]
316
316
  );
317
- f = Q;
317
+ f = x;
318
318
  } else
319
319
  f = A < g;
320
320
  const L = ye(
321
321
  t[A]
322
322
  );
323
323
  let l = null, p = null;
324
- const { removed: O, hierarchy: S } = Jn(
324
+ const { removed: O, hierarchy: D } = Jn(
325
325
  t,
326
326
  e.path
327
327
  );
328
- let F = S;
328
+ let y = D;
329
329
  if (f && O && !L)
330
330
  ye(
331
331
  t[g]
@@ -339,49 +339,49 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
339
339
  t[g]
340
340
  ) || C++;
341
341
  else if (!O) {
342
- const Q = ye(
342
+ const x = ye(
343
343
  t[g]
344
344
  );
345
- !f && !Q && C++, f && !Q && C++;
345
+ !f && !x && C++, f && !x && C++;
346
346
  }
347
347
  if (n.path.length > 1) {
348
- const { before: Q, after: y } = Zn(
348
+ const { before: x, after: Q } = Zn(
349
349
  t[g],
350
350
  0,
351
351
  n.path.slice(1),
352
352
  f
353
353
  );
354
- l = y, p = Q;
354
+ l = Q, p = x;
355
355
  }
356
- if ((p || l) && !F) {
357
- const Q = ye(
356
+ if ((p || l) && !y) {
357
+ const x = ye(
358
358
  t[g]
359
359
  );
360
- F = t.splice(A, 1)[0], f && !O && !Q && g--;
360
+ y = t.splice(A, 1)[0], f && !O && !x && g--;
361
361
  }
362
- if (F)
362
+ if (y)
363
363
  Kn({
364
364
  beforeHierarchy: p,
365
365
  afterHierarchy: l,
366
- newHierarchy: F,
366
+ newHierarchy: y,
367
367
  targetColumFrozenState: d,
368
368
  targetColumnFrozenPinned: E
369
369
  }), Xn({
370
370
  beforeHierarchy: p,
371
371
  afterHierarchy: l,
372
- newHierarchy: F,
372
+ newHierarchy: y,
373
373
  updatedtargetIndex: g,
374
374
  removeColumnsCount: C,
375
375
  isChildrenUpdate: !1,
376
376
  columns: t
377
377
  });
378
378
  else {
379
- const [Q] = t.splice(A, 1);
379
+ const [x] = t.splice(A, 1);
380
380
  Mn(
381
- Q,
381
+ x,
382
382
  d,
383
383
  E
384
- ), t.splice(o, 0, Q);
384
+ ), t.splice(o, 0, x);
385
385
  }
386
386
  return nn(t);
387
387
  }, ye = (e) => {
@@ -392,12 +392,12 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
392
392
  const n = e.children[0];
393
393
  return !n.children || n.children.length === 0 ? !0 : ye(n);
394
394
  }, sn = (e, n) => e.findIndex((t) => {
395
- const r = v(t);
395
+ const r = M(t);
396
396
  return r === n || r.split(z)[0] === n;
397
397
  }), an = (e, n) => e.findIndex((t) => {
398
- const r = v(t), i = r.split(z)[0], A = n.split(z)[0], o = r === n || i === A, d = !o && Tn([t], n) !== null;
398
+ const r = M(t), i = r.split(z)[0], A = n.split(z)[0], o = r === n || i === A, d = !o && mn([t], n) !== null;
399
399
  return o || d;
400
- }), mn = (e, n, t, r = 0) => {
400
+ }), Tn = (e, n, t, r = 0) => {
401
401
  if (!e.children || e.children.length === 0)
402
402
  return null;
403
403
  const i = an(e.children, n), A = an(e.children, t);
@@ -408,7 +408,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
408
408
  targetIndex: A
409
409
  };
410
410
  for (const o of e.children) {
411
- const d = mn(
411
+ const d = Tn(
412
412
  o,
413
413
  n,
414
414
  t,
@@ -421,7 +421,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
421
421
  }, Vn = (e, n, t) => {
422
422
  const r = e.path || e.originalPath || [], i = n.path || n.originalPath || [], A = jn(r, i), o = r[A], d = i[A], E = r[A - 1];
423
423
  let g = t;
424
- if (E && v(g) !== E) {
424
+ if (E && M(g) !== E) {
425
425
  const l = Ve(g, E);
426
426
  l && (g = l);
427
427
  }
@@ -433,13 +433,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
433
433
  g.children,
434
434
  d
435
435
  ));
436
- const f = (l, p, O, S, F) => {
437
- var Q, y;
436
+ const f = (l, p, O, D, y) => {
437
+ var x, Q;
438
438
  let k = A - 1;
439
439
  for (; k >= 0; ) {
440
- const U = p[k], N = O[k + 1];
440
+ const U = p[k], G = O[k + 1];
441
441
  let j = t;
442
- if (U && v(j) !== U) {
442
+ if (U && M(j) !== U) {
443
443
  const Y = Ve(
444
444
  t,
445
445
  U
@@ -448,15 +448,15 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
448
448
  }
449
449
  if (j.children) {
450
450
  const Y = j.children.findIndex((J) => {
451
- const Z = v(J);
452
- return Z === N || Z.split(z)[0] === N || Z.split(z)[0] === S;
451
+ const Z = M(J);
452
+ return Z === G || Z.split(z)[0] === G || Z.split(z)[0] === D;
453
453
  });
454
454
  if (Y !== -1) {
455
455
  g = j;
456
- const J = (l === "target" ? r : i)[k + 1], Z = l === "target" ? o : d, ee = (y = (Q = g.children) == null ? void 0 : Q.findIndex) == null ? void 0 : y.call(
457
- Q,
456
+ const J = (l === "target" ? r : i)[k + 1], Z = l === "target" ? o : d, ee = (Q = (x = g.children) == null ? void 0 : x.findIndex) == null ? void 0 : Q.call(
457
+ x,
458
458
  (K) => {
459
- const $ = v(K);
459
+ const $ = M(K);
460
460
  return $ === J || $.split(z)[0] === J || $.split(z)[0] === Z;
461
461
  }
462
462
  );
@@ -469,10 +469,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
469
469
  }
470
470
  k--;
471
471
  }
472
- return console.warn(`Could not find ${l} in any common parent`), { found: !1, missingIndex: -1, foundIndex: F };
472
+ return console.warn(`Could not find ${l} in any common parent`), { found: !1, missingIndex: -1, foundIndex: y };
473
473
  };
474
474
  if (u === -1 && C === -1) {
475
- const l = o.split(z)[0], p = d.split(z)[0], O = mn(
475
+ const l = o.split(z)[0], p = d.split(z)[0], O = Tn(
476
476
  t,
477
477
  l,
478
478
  p
@@ -511,22 +511,22 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
511
511
  function i(g, u) {
512
512
  if (!g.children)
513
513
  return { before: null, after: null };
514
- const C = g.children, f = t[u], L = C.findIndex((N) => N.field === f);
514
+ const C = g.children, f = t[u], L = C.findIndex((G) => G.field === f);
515
515
  if (L === -1)
516
516
  return { before: null, after: null };
517
517
  const l = [], p = [];
518
- C.forEach((N, j) => {
519
- j < L ? l.push(JSON.parse(JSON.stringify(N))) : j > L ? p.push(JSON.parse(JSON.stringify(N))) : u === t.length - 1 && (N.isLeaf || !N.children || N.children.length === 0 || N.children.length === 1) ? r ? l.push(JSON.parse(JSON.stringify(N))) : p.push(JSON.parse(JSON.stringify(N))) : (l.push(null), p.push(null));
518
+ C.forEach((G, j) => {
519
+ j < L ? l.push(JSON.parse(JSON.stringify(G))) : j > L ? p.push(JSON.parse(JSON.stringify(G))) : u === t.length - 1 && (G.isLeaf || !G.children || G.children.length === 0 || G.children.length === 1) ? r ? l.push(JSON.parse(JSON.stringify(G))) : p.push(JSON.parse(JSON.stringify(G))) : (l.push(null), p.push(null));
520
520
  });
521
521
  const O = C[L];
522
522
  if (!(u === t.length - 1) || O.children && O.children.length > 1) {
523
- const { before: N, after: j } = i(
523
+ const { before: G, after: j } = i(
524
524
  O,
525
525
  u + 1
526
526
  );
527
- if (N) {
527
+ if (G) {
528
528
  const Y = l.indexOf(null);
529
- Y !== -1 && (l[Y] = N);
529
+ Y !== -1 && (l[Y] = G);
530
530
  }
531
531
  if (j) {
532
532
  const Y = p.indexOf(null);
@@ -534,47 +534,47 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
534
534
  }
535
535
  }
536
536
  const k = l.filter(
537
- (N) => N !== null
538
- ), Q = p.filter(
539
- (N) => N !== null
540
- ), y = k.length > 0 ? {
537
+ (G) => G !== null
538
+ ), x = p.filter(
539
+ (G) => G !== null
540
+ ), Q = k.length > 0 ? {
541
541
  ...JSON.parse(JSON.stringify(g)),
542
542
  children: k
543
- } : null, U = Q.length > 0 ? {
543
+ } : null, U = x.length > 0 ? {
544
544
  ...JSON.parse(JSON.stringify(g)),
545
- children: Q
545
+ children: x
546
546
  } : null;
547
- return { before: y, after: U };
547
+ return { before: Q, after: U };
548
548
  }
549
549
  const { before: A, after: o } = i(e, 0);
550
550
  let d = o;
551
551
  const E = (g, u = [], C = /* @__PURE__ */ new Map()) => {
552
552
  !g || !g.children || g.children.length === 0 || g.children.forEach((f) => {
553
- const L = v(f).split(z)[0], l = xe(), p = `${L}_${l}`, O = C.get(p) || 0;
553
+ const L = M(f).split(z)[0], l = xe(), p = `${L}_${l}`, O = C.get(p) || 0;
554
554
  C.set(p, O + 1);
555
- const S = `${z}${l}_${O}`;
555
+ const D = `${z}${l}_${O}`;
556
556
  if (!f.originalPath && f.path && (f.originalPath = [
557
- ...f.path.map((F) => F.split(z)[0])
558
- ]), f.originalId || (f.originalId = L), f.field = `${L}${S}`, f.accessor) {
559
- const F = f.accessor.split(z)[0];
560
- f.accessor = `${F}${S}`;
557
+ ...f.path.map((y) => y.split(z)[0])
558
+ ]), f.originalId || (f.originalId = L), f.field = `${L}${D}`, f.accessor) {
559
+ const y = f.accessor.split(z)[0];
560
+ f.accessor = `${y}${D}`;
561
561
  }
562
562
  if (f.column_name) {
563
- const F = f.column_name.split(z)[0];
564
- f.column_name = `${F}${S}`;
563
+ const y = f.column_name.split(z)[0];
564
+ f.column_name = `${y}${D}`;
565
565
  }
566
566
  if (f.id) {
567
- const F = f.id.split(z)[0];
568
- f.id = `${F}${S}`;
567
+ const y = f.id.split(z)[0];
568
+ f.id = `${y}${D}`;
569
569
  }
570
570
  f.path = [...u, f.field], u.length > 0 && (f.parent_id = [u[u.length - 1]]), f.isReorderedColumn = !0, E(f, f.path, C);
571
571
  });
572
572
  };
573
573
  if (d) {
574
574
  const g = [];
575
- if (d.path && d.path[0] !== v(d)) {
575
+ if (d.path && d.path[0] !== M(d)) {
576
576
  const C = d.path.findIndex(
577
- (f) => f === v(d)
577
+ (f) => f === M(d)
578
578
  );
579
579
  g.push(...(d.path || []).slice(0, C));
580
580
  }
@@ -869,7 +869,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
869
869
  }
870
870
  }, 0);
871
871
  }, qt = (e, n, t, r, i, A, o, d, E, g, u) => {
872
- var O, S;
872
+ var O, D;
873
873
  e.stopPropagation();
874
874
  const C = qn(n);
875
875
  if (!C) return;
@@ -890,7 +890,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
890
890
  pinnedType: o,
891
891
  frozenColumnsLength: d,
892
892
  tableInstanceId: f,
893
- tableId: ((S = C == null ? void 0 : C.api) == null ? void 0 : S.tableId) ?? "",
893
+ tableId: ((D = C == null ? void 0 : C.api) == null ? void 0 : D.tableId) ?? "",
894
894
  target: L,
895
895
  column: E,
896
896
  rowData: g,
@@ -903,17 +903,17 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
903
903
  (r, i) => r && r[i] !== void 0 ? r[i] : void 0,
904
904
  e
905
905
  ), $t = (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), tt = (e, n) => {
906
- const t = e.groupingLevel, r = n.originalFields && t && n.originalFields[t] ? n.originalFields[t] : v(n);
906
+ const t = e.groupingLevel, r = n.originalFields && t && n.originalFields[t] ? n.originalFields[t] : M(n);
907
907
  return e[r];
908
908
  }, er = (e, n, t, r, i) => {
909
909
  if (!e || !n) return "";
910
910
  const A = e.groupingLevel || 0, o = A && n.rowGroup && n.originalFields && n.originalFields.length > A ? {
911
911
  ...i[n.originalFields[A]],
912
- colId: v(
912
+ colId: M(
913
913
  i[n.originalFields[A]]
914
914
  )
915
- } : { ...n, colId: v(n) };
916
- let d = o.field || v(o);
915
+ } : { ...n, colId: M(n) };
916
+ let d = o.field || M(o);
917
917
  if (o.isReorderedColumn && o.originalPath && (d = o.originalPath[o.originalPath.length - 1]), o.valueGetter)
918
918
  try {
919
919
  const g = {
@@ -1016,25 +1016,25 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1016
1016
  case "greaterThanOrEqual":
1017
1017
  return f = o.min_val ?? 0, p >= parseFloat(String(f));
1018
1018
  case "inRange": {
1019
- const O = o.min_val, S = o.max_val;
1020
- return O !== void 0 && S !== void 0 ? p >= parseFloat(String(O)) && p <= parseFloat(String(S)) : !0;
1019
+ const O = o.min_val, D = o.max_val;
1020
+ return O !== void 0 && D !== void 0 ? p >= parseFloat(String(O)) && p <= parseFloat(String(D)) : !0;
1021
1021
  }
1022
1022
  default:
1023
1023
  return !0;
1024
1024
  }
1025
1025
  } else {
1026
- const p = String(l).toLowerCase(), O = String(f || "").toLowerCase();
1026
+ const p = String(l).toLowerCase(), O = String(f || "").toLowerCase(), D = O.includes(",") ? O.split(",").map((y) => y.trim()).filter(Boolean) : [O];
1027
1027
  switch (E) {
1028
1028
  case "contains":
1029
- return p.includes(O);
1029
+ return D.some((y) => p.includes(y));
1030
1030
  case "equals":
1031
- return p === O;
1031
+ return D.some((y) => p === y);
1032
1032
  case "notEqual":
1033
- return p !== O;
1033
+ return D.every((y) => p !== y);
1034
1034
  case "startsWith":
1035
- return p.startsWith(O);
1035
+ return D.some((y) => p.startsWith(y));
1036
1036
  case "endsWith":
1037
- return p.endsWith(O);
1037
+ return D.some((y) => p.endsWith(y));
1038
1038
  default:
1039
1039
  return !0;
1040
1040
  }
@@ -1059,30 +1059,30 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1059
1059
  }, we = (e, n = { minWidth: 150 }) => {
1060
1060
  const t = {}, r = {};
1061
1061
  e.forEach((l) => {
1062
- const p = v(l);
1062
+ const p = M(l);
1063
1063
  l.children && Array.isArray(l.children) && (r[p] = [], l.children.forEach((O) => {
1064
- const S = v(O);
1065
- t[S] = p, r[p] ? r[p].push(S) : r[p] = [S];
1064
+ const D = M(O);
1065
+ t[D] = p, r[p] ? r[p].push(D) : r[p] = [D];
1066
1066
  }));
1067
1067
  });
1068
1068
  const i = e.map((l) => {
1069
1069
  var J, Z;
1070
- const p = l.width !== void 0, O = l.field || v(l);
1071
- let S = l.is_frozen || !1, F = l.pinned === "right";
1070
+ const p = l.width !== void 0, O = l.field || M(l);
1071
+ let D = l.is_frozen || !1, y = l.pinned === "right";
1072
1072
  const k = [];
1073
- let Q = O;
1074
- for (; t[Q]; ) {
1075
- const ee = t[Q];
1076
- k.push(ee), Q = ee;
1073
+ let x = O;
1074
+ for (; t[x]; ) {
1075
+ const ee = t[x];
1076
+ k.push(ee), x = ee;
1077
1077
  }
1078
- const y = l.children && l.children.length > 0;
1079
- let U = !1, N = !1;
1080
- y && ((Z = (J = l.children) == null ? void 0 : J.forEach) == null || Z.call(J, (ee) => {
1081
- const K = v(ee), $ = e.find(
1082
- (ne) => v(ne) === K
1078
+ const Q = l.children && l.children.length > 0;
1079
+ let U = !1, G = !1;
1080
+ Q && ((Z = (J = l.children) == null ? void 0 : J.forEach) == null || Z.call(J, (ee) => {
1081
+ const K = M(ee), $ = e.find(
1082
+ (ne) => M(ne) === K
1083
1083
  );
1084
- $ && ($.is_frozen && (U = !0), $.pinned === "right" && (N = !0));
1085
- }), U && (S = !0), N && (F = !0));
1084
+ $ && ($.is_frozen && (U = !0), $.pinned === "right" && (G = !0));
1085
+ }), U && (D = !0), G && (y = !0));
1086
1086
  const j = (n == null ? void 0 : n.minWidth) || 150, Y = l.width ? Math.max(l.width, j) : j;
1087
1087
  return {
1088
1088
  ...l,
@@ -1099,9 +1099,9 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1099
1099
  resizable: l.resizable !== !1,
1100
1100
  hidden: Ke(l),
1101
1101
  align: l.align || "left",
1102
- is_frozen: S,
1102
+ is_frozen: D,
1103
1103
  // Ensure left-pinned property is set
1104
- pinned: F ? "right" : l.pinned,
1104
+ pinned: y ? "right" : l.pinned,
1105
1105
  // Ensure right-pinned property is set
1106
1106
  originalIndex: e.indexOf(l),
1107
1107
  // Store original index
@@ -1110,21 +1110,21 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1110
1110
  // Add placeholder flag if this is a child with no explicit parent
1111
1111
  isChildWithoutParent: k.length === 0 && t[O] === void 0,
1112
1112
  // Store if this is a parent with children
1113
- hasChildren: y,
1113
+ hasChildren: Q,
1114
1114
  // Store whether any children are frozen or right-pinned
1115
1115
  hasAnyFrozenChildren: U,
1116
- hasAnyRightPinnedChildren: N
1116
+ hasAnyRightPinnedChildren: G
1117
1117
  };
1118
1118
  });
1119
1119
  i.forEach((l) => {
1120
1120
  l.is_frozen && l.parentColumns.forEach((p) => {
1121
1121
  const O = i.find(
1122
- (S) => v(S) === p
1122
+ (D) => M(D) === p
1123
1123
  );
1124
1124
  O && (O.is_frozen = !0);
1125
1125
  }), l.pinned === "right" && l.parentColumns.forEach((p) => {
1126
1126
  const O = i.find(
1127
- (S) => v(S) === p
1127
+ (D) => M(D) === p
1128
1128
  );
1129
1129
  O && (O.pinned = "right", O.is_frozen = !1);
1130
1130
  });
@@ -1151,23 +1151,23 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1151
1151
  );
1152
1152
  let u = 0;
1153
1153
  function C(l, p) {
1154
- var k, Q, y;
1155
- const O = v(l), S = p;
1156
- o.indexes.push(O), o.positions[O] = S;
1157
- let F;
1154
+ var k, x, Q;
1155
+ const O = M(l), D = p;
1156
+ o.indexes.push(O), o.positions[O] = D;
1157
+ let y;
1158
1158
  if (l && l.children && ((k = l.children) == null ? void 0 : k.length) > 0) {
1159
1159
  let U = 0;
1160
- (y = (Q = l.children) == null ? void 0 : Q.forEach) == null || y.call(Q, (N) => {
1161
- if (Ke(N))
1160
+ (Q = (x = l.children) == null ? void 0 : x.forEach) == null || Q.call(x, (G) => {
1161
+ if (Ke(G))
1162
1162
  return;
1163
- const j = S + U, Y = C(N, j);
1163
+ const j = D + U, Y = C(G, j);
1164
1164
  U += Y;
1165
- }), F = U;
1165
+ }), y = U;
1166
1166
  } else {
1167
1167
  const U = n.minWidth || 150;
1168
- F = l.width && l.width < U ? U : l.width || U;
1168
+ y = l.width && l.width < U ? U : l.width || U;
1169
1169
  }
1170
- return F;
1170
+ return y;
1171
1171
  }
1172
1172
  E.forEach((l) => {
1173
1173
  if (Ke(l))
@@ -1177,10 +1177,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1177
1177
  }), o.totalWidth = u;
1178
1178
  let f = 0;
1179
1179
  return [...g].reverse().forEach((l) => {
1180
- const p = v(l);
1180
+ const p = M(l);
1181
1181
  d.indexes.push(p), d.positions[p] = f, f += l.width || n.minWidth;
1182
1182
  }), d.totalWidth = f, d.rightIndexes = g.map(
1183
- (l) => v(l)
1183
+ (l) => M(l)
1184
1184
  ), o.rightPinned = {
1185
1185
  indexes: d.indexes,
1186
1186
  positions: d.positions,
@@ -1194,7 +1194,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1194
1194
  return t;
1195
1195
  }, qe = (e, n = null, t = {}, r = {}) => (e.forEach((i) => {
1196
1196
  var o;
1197
- const A = v(i);
1197
+ const A = M(i);
1198
1198
  n && (t[n] || (t[n] = []), t[n].includes(A) || t[n].push(A), r[A] = n), i && i.children && ((o = i.children) == null ? void 0 : o.length) > 0 && (t[A] || (t[A] = []), qe(
1199
1199
  i.children || [],
1200
1200
  A,
@@ -1243,18 +1243,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1243
1243
  state: r,
1244
1244
  column: i
1245
1245
  }) => {
1246
- var Q, y;
1246
+ var x, Q;
1247
1247
  const { preventIfExceedsMaxWidth: A = !0 } = t, { newHierarchy: o, updatedColumns: d } = dt(
1248
1248
  r.columns,
1249
1249
  i,
1250
1250
  n,
1251
1251
  e
1252
- ), E = window.innerWidth * 0.6, g = r.frozenColumns.totalWidth - (((Q = r.frozenColumns.rightPinned) == null ? void 0 : Q.totalWidth) || 0), u = (U) => {
1253
- let N = U.width || 150;
1254
- return U.children && U.children.length > 0 && (N = U.children.reduce(
1252
+ ), E = window.innerWidth * 0.6, g = r.frozenColumns.totalWidth - (((x = r.frozenColumns.rightPinned) == null ? void 0 : x.totalWidth) || 0), u = (U) => {
1253
+ let G = U.width || 150;
1254
+ return U.children && U.children.length > 0 && (G = U.children.reduce(
1255
1255
  (j, Y) => j + u(Y),
1256
1256
  0
1257
- )), N;
1257
+ )), G;
1258
1258
  }, C = u(
1259
1259
  o || i
1260
1260
  ), L = g + C > E;
@@ -1270,83 +1270,83 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1270
1270
  };
1271
1271
  let l = -1;
1272
1272
  o && (l = d.findIndex((U) => {
1273
- const N = o.is_frozen, j = o.pinned, Y = o.originalPath || o.path || [], J = U.originalPath || U.path || [];
1274
- return U.is_frozen === N && U.pinned === j && J[0] === Y[0];
1273
+ const G = o.is_frozen, j = o.pinned, Y = o.originalPath || o.path || [], J = U.originalPath || U.path || [];
1274
+ return U.is_frozen === G && U.pinned === j && J[0] === Y[0];
1275
1275
  }));
1276
1276
  const p = [...d];
1277
1277
  o && l !== -1 ? p.splice(l, 0, o) : o && p.push(o);
1278
- const O = nn(p), { processedColumns: S } = Oe(
1278
+ const O = nn(p), { processedColumns: D } = Oe(
1279
1279
  O,
1280
1280
  r.expandedColumnGroups,
1281
1281
  0,
1282
1282
  null,
1283
- ((y = r.defaultColDef) == null ? void 0 : y.minWidth) || 150
1284
- ), { columns: F, frozenData: k } = we(
1285
- S,
1283
+ ((Q = r.defaultColDef) == null ? void 0 : Q.minWidth) || 150
1284
+ ), { columns: y, frozenData: k } = we(
1285
+ D,
1286
1286
  r.defaultColDef || { minWidth: 150 }
1287
1287
  );
1288
1288
  return {
1289
1289
  ...r,
1290
- columns: F,
1290
+ columns: y,
1291
1291
  frozenColumns: k
1292
1292
  };
1293
1293
  }, dt = (e, n, t, r) => {
1294
- var L, l, p, O, S;
1294
+ var L, l, p, O, D;
1295
1295
  const i = ((L = n.path) == null ? void 0 : L.slice(0, -1)) || [], A = Fn(e), o = ((p = (l = n.path) == null ? void 0 : l.slice(0, -1)) == null ? void 0 : p.join("/")) || "", d = A[(o == null ? void 0 : o.toLowerCase()) || ""], E = ((O = d == null ? void 0 : d.children) == null ? void 0 : O.length) || 0;
1296
1296
  let g = null;
1297
1297
  if (i.length === 0)
1298
1298
  return {
1299
1299
  newHierarchy: null,
1300
- updatedColumns: e.map((k) => v(k) === r ? {
1300
+ updatedColumns: e.map((k) => M(k) === r ? {
1301
1301
  ...k,
1302
1302
  is_frozen: t,
1303
1303
  pinned: t ? "left" : null
1304
1304
  } : k)
1305
1305
  };
1306
1306
  {
1307
- let F = null, k = null, Q = "", y = [];
1307
+ let y = null, k = null, x = "", Q = [];
1308
1308
  for (let U = 0; U < i.length; U++) {
1309
- const N = i[U];
1310
- Q = Q ? `${Q}/${N}` : N;
1311
- const j = A[Q.toLowerCase()];
1309
+ const G = i[U];
1310
+ x = x ? `${x}/${G}` : G;
1311
+ const j = A[x.toLowerCase()];
1312
1312
  if (!j)
1313
1313
  continue;
1314
1314
  const Y = {
1315
1315
  ...j,
1316
- ...t || E > 1 ? Rn(j, { path: y }) : j,
1316
+ ...t || E > 1 ? Rn(j, { path: Q }) : j,
1317
1317
  is_frozen: t,
1318
1318
  pinned: t ? "left" : null,
1319
1319
  children: []
1320
1320
  // Clear children as we'll rebuild the hierarchy
1321
1321
  };
1322
- y = Y.path || [], U === 0 && (k = Y), F && (F.children = [Y]), F = Y;
1322
+ Q = Y.path || [], U === 0 && (k = Y), y && (y.children = [Y]), y = Y;
1323
1323
  }
1324
- if (F) {
1325
- const U = F.originalPath || (F.path ? F.path.map((J) => J.split(z)[0]) : []), N = v(n), j = N.split(z)[0], Y = [...U, j];
1326
- F.children = [
1324
+ if (y) {
1325
+ const U = y.originalPath || (y.path ? y.path.map((J) => J.split(z)[0]) : []), G = M(n), j = G.split(z)[0], Y = [...U, j];
1326
+ y.children = [
1327
1327
  {
1328
1328
  ...n,
1329
1329
  is_frozen: t,
1330
1330
  pinned: t ? "left" : null,
1331
1331
  originalPath: Y,
1332
- path: [...F.path || [], N]
1332
+ path: [...y.path || [], G]
1333
1333
  }
1334
1334
  ];
1335
1335
  }
1336
1336
  g = k;
1337
1337
  }
1338
- const u = (F, k) => {
1339
- let Q = JSON.parse(JSON.stringify(F));
1340
- const y = n.path || [];
1341
- if (y.length === 0)
1342
- return Q.filter(
1343
- (Y) => v(Y) !== k
1338
+ const u = (y, k) => {
1339
+ let x = JSON.parse(JSON.stringify(y));
1340
+ const Q = n.path || [];
1341
+ if (Q.length === 0)
1342
+ return x.filter(
1343
+ (Y) => M(Y) !== k
1344
1344
  );
1345
1345
  const U = (Y, J) => {
1346
1346
  let Z = Y, ee = null, K = -1;
1347
1347
  for (let $ = 0; $ < J.length - 1; $++) {
1348
1348
  const ne = J[$], oe = Z.findIndex(
1349
- (se) => v(se) === ne
1349
+ (se) => M(se) === ne
1350
1350
  );
1351
1351
  if (oe === -1)
1352
1352
  return console.warn(`Could not find column with field ${ne} in path`), { parent: null, targetIndex: -1 };
@@ -1355,28 +1355,28 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1355
1355
  if (J.length > 0) {
1356
1356
  const $ = J[J.length - 1];
1357
1357
  K = Z.findIndex(
1358
- (ne) => v(ne) === $
1358
+ (ne) => M(ne) === $
1359
1359
  );
1360
1360
  }
1361
1361
  return { parent: ee, targetIndex: K };
1362
- }, { parent: N, targetIndex: j } = U(Q, y);
1363
- if (N && N.children && j !== -1) {
1364
- const Y = N.children[j];
1365
- if (Y && v(Y) === r)
1366
- N.children.splice(j, 1);
1362
+ }, { parent: G, targetIndex: j } = U(x, Q);
1363
+ if (G && G.children && j !== -1) {
1364
+ const Y = G.children[j];
1365
+ if (Y && M(Y) === r)
1366
+ G.children.splice(j, 1);
1367
1367
  else {
1368
- const J = N.children.findIndex(
1369
- (Z) => v(Z) === r
1368
+ const J = G.children.findIndex(
1369
+ (Z) => M(Z) === r
1370
1370
  );
1371
- J !== -1 && N.children.splice(J, 1);
1371
+ J !== -1 && G.children.splice(J, 1);
1372
1372
  }
1373
- if (N.children.length === 0) {
1374
- const J = Q.findIndex(
1375
- (K) => v(K) === (N.path || [])[0]
1373
+ if (G.children.length === 0) {
1374
+ const J = x.findIndex(
1375
+ (K) => M(K) === (G.path || [])[0]
1376
1376
  ), Z = (K, $, ne) => {
1377
1377
  if (ne === -1 || !K[ne]) return K;
1378
1378
  const oe = K[ne], se = $ || oe;
1379
- if (v(se) === v(oe)) {
1379
+ if (M(se) === M(oe)) {
1380
1380
  if (se.children && se.children.length > 0)
1381
1381
  return K;
1382
1382
  K.splice(ne, 1);
@@ -1385,14 +1385,14 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1385
1385
  if (!re.children || re.children.length === 0)
1386
1386
  return !1;
1387
1387
  const b = re.children.findIndex(
1388
- (V) => v(V) === v(ae)
1388
+ (V) => M(V) === M(ae)
1389
1389
  );
1390
1390
  if (b !== -1) {
1391
1391
  const V = re.children[b];
1392
1392
  if (!V.children || V.children.length === 0) {
1393
1393
  if (re.children.splice(b, 1), re.children.length === 0 && (Ae != null && Ae.children)) {
1394
- const le = v(re), s = Ae.children.findIndex(
1395
- (c) => v(c) === le
1394
+ const le = M(re), s = Ae.children.findIndex(
1395
+ (c) => M(c) === le
1396
1396
  );
1397
1397
  s !== -1 && Ae.children.splice(s, 1);
1398
1398
  }
@@ -1403,8 +1403,8 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1403
1403
  for (const V of re.children)
1404
1404
  if (Ce(V, ae, re)) {
1405
1405
  if (re.children.length === 0 && (Ae != null && Ae.children)) {
1406
- const le = v(re), s = Ae.children.findIndex(
1407
- (c) => v(c) === le
1406
+ const le = M(re), s = Ae.children.findIndex(
1407
+ (c) => M(c) === le
1408
1408
  );
1409
1409
  s !== -1 && Ae.children.splice(s, 1);
1410
1410
  }
@@ -1418,7 +1418,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1418
1418
  null
1419
1419
  ) || console.warn(
1420
1420
  "Could not find nested parent to remove:",
1421
- v(se)
1421
+ M(se)
1422
1422
  ), (!oe.children || oe.children.length === 0) && K.splice(ne, 1);
1423
1423
  }
1424
1424
  if (se.path && se.path.length > 1) {
@@ -1426,18 +1426,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1426
1426
  if (Ae.length === 0) return -1;
1427
1427
  if (Ae.length === 1)
1428
1428
  return ae.findIndex(
1429
- (le) => v(le) === Ae[0]
1429
+ (le) => M(le) === Ae[0]
1430
1430
  );
1431
1431
  let b = ae, V = -1;
1432
1432
  for (let le = 0; le < Ae.length - 1; le++) {
1433
1433
  const s = Ae[le];
1434
1434
  if (V = b.findIndex(
1435
- (c) => v(c) === s
1435
+ (c) => M(c) === s
1436
1436
  ), V === -1) return -1;
1437
1437
  b = b[V].children || [];
1438
1438
  }
1439
1439
  return b.findIndex(
1440
- (le) => v(le) === Ae[Ae.length - 1]
1440
+ (le) => M(le) === Ae[Ae.length - 1]
1441
1441
  );
1442
1442
  })(K, Ce);
1443
1443
  if (re !== -1) {
@@ -1452,9 +1452,9 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1452
1452
  }
1453
1453
  return K;
1454
1454
  };
1455
- Q = Z(
1456
- Q,
1457
- N,
1455
+ x = Z(
1456
+ x,
1457
+ G,
1458
1458
  J
1459
1459
  );
1460
1460
  const ee = (K) => {
@@ -1479,22 +1479,22 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1479
1479
  console.warn(
1480
1480
  `Could not find parent column or target index for ${r}`
1481
1481
  );
1482
- return Q;
1482
+ return x;
1483
1483
  };
1484
1484
  let C = e;
1485
- if (t || (((S = n.path) == null ? void 0 : S.length) || 0) > 1)
1485
+ if (t || (((D = n.path) == null ? void 0 : D.length) || 0) > 1)
1486
1486
  C = u(
1487
1487
  e,
1488
1488
  r
1489
1489
  );
1490
1490
  else {
1491
- const F = e.findIndex(
1492
- (Q) => v(Q) === (n.path || [])[0]
1491
+ const y = e.findIndex(
1492
+ (x) => M(x) === (n.path || [])[0]
1493
1493
  );
1494
- F !== -1 && C.splice(F, 1);
1494
+ y !== -1 && C.splice(y, 1);
1495
1495
  const k = n.originalPath ? e.findIndex(
1496
- (Q) => v(Q) === (n.originalPath || [])[0]
1497
- ) : F;
1496
+ (x) => M(x) === (n.originalPath || [])[0]
1497
+ ) : y;
1498
1498
  k && g && C.splice(
1499
1499
  k,
1500
1500
  0,
@@ -1527,7 +1527,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1527
1527
  });
1528
1528
  }
1529
1529
  return r;
1530
- }, me = (e, n, t = !0, r, i) => {
1530
+ }, Te = (e, n, t = !0, r, i) => {
1531
1531
  var o, d, E, g, u, C, f, L, l;
1532
1532
  const A = (d = (o = e.api) == null ? void 0 : o.getInfiniteCacheInstance) == null ? void 0 : d.call(o);
1533
1533
  (E = A == null ? void 0 : A.updatePageData) == null || E.call(A, e.pagination.page, n, !0, {
@@ -1679,7 +1679,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1679
1679
  const r = On(e, t);
1680
1680
  if (r.length === 0)
1681
1681
  return null;
1682
- const i = v(n), A = r.map((E) => Number(String(E[i]).replaceAll(",", ""))).filter((E) => E != null && !isNaN(E));
1682
+ const i = M(n), A = r.map((E) => Number(String(E[i]).replaceAll(",", ""))).filter((E) => E != null && !isNaN(E));
1683
1683
  if (A.length === 0)
1684
1684
  return null;
1685
1685
  const o = n.aggFunc, d = gt[o];
@@ -1701,7 +1701,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1701
1701
  groupingLevel: r
1702
1702
  }, d = e.columns.filter((C) => C.aggFunc);
1703
1703
  for (let C = 0; C < e.columns.length; C++) {
1704
- const f = e.columns[C], L = v(f);
1704
+ const f = e.columns[C], L = M(f);
1705
1705
  if ((E = f == null ? void 0 : f.extra) != null && E.is_grouping_key && (t != null && t[L]) || f.rowGroup && !f.is_hidden) {
1706
1706
  const l = (g = f == null ? void 0 : f.originalFields) != null && g[r] ? f.originalFields[r] : L, p = (u = f == null ? void 0 : f.originalFields) != null && u[r - 1] ? f.originalFields[r - 1] : L;
1707
1707
  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);
@@ -1714,13 +1714,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1714
1714
  t,
1715
1715
  C,
1716
1716
  e.childKeyField
1717
- ), L = v(C);
1717
+ ), L = M(C);
1718
1718
  o[L] = f, n && n.length && (n = n.map((l) => {
1719
1719
  const p = Cn(
1720
1720
  l,
1721
1721
  C,
1722
1722
  e.childKeyField
1723
- ), O = l == null ? void 0 : l[e.childKeyField], S = Array.isArray(O) && O.length > 0;
1723
+ ), O = l == null ? void 0 : l[e.childKeyField], D = Array.isArray(O) && O.length > 0;
1724
1724
  return {
1725
1725
  ...l,
1726
1726
  __parentPath: l.__parentPath ? `${l.__parentPath}${String(l.__parentPath).includes(String(A)) ? "" : `/${A}`}` : String(A),
@@ -1729,8 +1729,8 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1729
1729
  parentRowData: t,
1730
1730
  groupingLevel: r,
1731
1731
  [L]: p,
1732
- __isAggregationRow: !!S,
1733
- subTotalAggreRow: !!S
1732
+ __isAggregationRow: !!D,
1733
+ subTotalAggreRow: !!D
1734
1734
  };
1735
1735
  }));
1736
1736
  }
@@ -1745,18 +1745,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1745
1745
  if (d && E) {
1746
1746
  const f = n[o], L = f[A], l = f[e.childKeyField], p = Object.keys(
1747
1747
  e.expandedChildRows
1748
- ).reduce((y, U) => (U.startsWith(String(L)) && (y += e.expandedChildRows[U].childRowsCount), y), 0), O = !!f.__parentPath;
1749
- let S;
1748
+ ).reduce((Q, U) => (U.startsWith(String(L)) && (Q += e.expandedChildRows[U].childRowsCount), Q), 0), O = !!f.__parentPath;
1749
+ let D;
1750
1750
  if (O) {
1751
- S = o + (l == null ? void 0 : l.length) + 1;
1752
- let y = 0;
1751
+ D = o + (l == null ? void 0 : l.length) + 1;
1752
+ let Q = 0;
1753
1753
  Object.keys(e.expandedChildRows).forEach((U) => {
1754
- const N = String(U).split("/"), j = String(L), Y = N.indexOf(j);
1755
- Y >= 0 && Y < N.length - 1 && (y += e.expandedChildRows[U].childRowsCount);
1756
- }), S += y;
1754
+ const G = String(U).split("/"), j = String(L), Y = G.indexOf(j);
1755
+ Y >= 0 && Y < G.length - 1 && (Q += e.expandedChildRows[U].childRowsCount);
1756
+ }), D += Q;
1757
1757
  } else
1758
- S = p;
1759
- const { aggreRow: F } = Pe(
1758
+ D = p;
1759
+ const { aggreRow: y } = Pe(
1760
1760
  e,
1761
1761
  l,
1762
1762
  f,
@@ -1764,18 +1764,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1764
1764
  o,
1765
1765
  i
1766
1766
  );
1767
- n[S] = F;
1768
- let k = { ...F };
1767
+ n[D] = y;
1768
+ let k = { ...y };
1769
1769
  if (O) {
1770
- let y = E - 1;
1771
- for (; y !== 0; ) {
1772
- const U = k.parentRowIndex, N = ((C = n[U]) == null ? void 0 : C.parentRowIndex) || U, j = N >= 0 ? N : U;
1770
+ let Q = E - 1;
1771
+ for (; Q !== 0; ) {
1772
+ const U = k.parentRowIndex, G = ((C = n[U]) == null ? void 0 : C.parentRowIndex) || U, j = G >= 0 ? G : U;
1773
1773
  if (j >= 0) {
1774
1774
  const Y = n[j], J = Y[A], Z = Y[e.childKeyField], { aggreRow: ee } = Pe(
1775
1775
  e,
1776
1776
  Z,
1777
1777
  Y,
1778
- y,
1778
+ Q,
1779
1779
  j,
1780
1780
  J
1781
1781
  ), K = !!Y.__parentPath;
@@ -1791,12 +1791,12 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1791
1791
  $ = Object.keys(
1792
1792
  e.expandedChildRows
1793
1793
  ).reduce((ne, oe) => (oe.startsWith(String(J)) && (ne += e.expandedChildRows[oe].childRowsCount), ne), 0);
1794
- n[$] = ee, k = ee, y--;
1794
+ n[$] = ee, k = ee, Q--;
1795
1795
  } else
1796
- y = 0;
1796
+ Q = 0;
1797
1797
  }
1798
1798
  }
1799
- const { aggreRow: Q } = Pe(
1799
+ const { aggreRow: x } = Pe(
1800
1800
  e,
1801
1801
  [],
1802
1802
  { [e.childKeyField]: n },
@@ -1804,7 +1804,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1804
1804
  0,
1805
1805
  null
1806
1806
  );
1807
- g = Q;
1807
+ g = x;
1808
1808
  } else if (d) {
1809
1809
  const { aggreRow: f } = Pe(
1810
1810
  e,
@@ -1876,10 +1876,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
1876
1876
  isFirst: p > 0
1877
1877
  }, p > 1 && (o[L].isRowSpan = !0), p > 1) {
1878
1878
  const O = [L];
1879
- for (let S = 1; S < p; S++) {
1880
- const F = C + S;
1881
- if (F < e.length) {
1882
- const k = e[F][t];
1879
+ for (let D = 1; D < p; D++) {
1880
+ const y = C + D;
1881
+ if (y < e.length) {
1882
+ const k = e[y][t];
1883
1883
  O.push(k), o[k] || (o[k] = {}), o[k][E] = {
1884
1884
  span: 0,
1885
1885
  isFirst: !1
@@ -2056,20 +2056,20 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2056
2056
  for (const [u, C] of E.entries()) {
2057
2057
  const f = C.length;
2058
2058
  C.sort((l, p) => {
2059
- const O = l.row.__split, S = p.row.__split, F = (O == null ? void 0 : O.index) ?? 0, k = (S == null ? void 0 : S.index) ?? 0;
2060
- return F - k;
2059
+ const O = l.row.__split, D = p.row.__split, y = (O == null ? void 0 : O.index) ?? 0, k = (D == null ? void 0 : D.index) ?? 0;
2060
+ return y - k;
2061
2061
  });
2062
2062
  const L = C.map(
2063
2063
  (l) => l.row[t] || l.row.__flattenedRowId || l.index
2064
2064
  );
2065
2065
  C.forEach((l, p) => {
2066
- const { row: O, index: S } = l, F = O[t] || O.__flattenedRowId || S;
2067
- o[F] || (o[F] = {}), o[F][g] = {
2066
+ const { row: O, index: D } = l, y = O[t] || O.__flattenedRowId || D;
2067
+ o[y] || (o[y] = {}), o[y][g] = {
2068
2068
  span: p === 0 ? f : 0,
2069
2069
  isFirst: p === 0,
2070
2070
  rowIds: p === 0 ? L : void 0
2071
2071
  // Store row IDs only in the first row
2072
- }, f > 1 && p === 0 && (o[F].isRowSpan = !0);
2072
+ }, f > 1 && p === 0 && (o[y].isRowSpan = !0);
2073
2073
  });
2074
2074
  }
2075
2075
  }), d.forEach((g) => {
@@ -2242,7 +2242,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2242
2242
  isCommentFeatureEnabled: !1,
2243
2243
  isChatEnabled: !1
2244
2244
  }, ht = (e, n) => {
2245
- var t, r, i, A, o, d, E, g, u, C, f, L, l, p, O, S, F, k, Q, y, U, N, j, Y, J, Z, ee, K, $, ne, oe, se, fe, Ce, ue, re, ae, Ae, b, V, le;
2245
+ var t, r, i, A, o, d, E, g, u, C, f, L, l, p, O, D, y, k, x, Q, U, G, j, Y, J, Z, ee, K, $, ne, oe, se, fe, Ce, ue, re, ae, Ae, b, V, le;
2246
2246
  switch (n.type) {
2247
2247
  case a.SET_LOADING:
2248
2248
  return {
@@ -2255,12 +2255,12 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2255
2255
  tableId: n.payload
2256
2256
  };
2257
2257
  case a.SET_DATA: {
2258
- const { isCountUnknown: s, totalItems: c, totalPages: h, currentPage: T } = n.meta || {}, I = e.columns.some((D) => D.aggFunc), w = T || e.pagination.page || 1;
2258
+ const { isCountUnknown: s, totalItems: c, totalPages: h, currentPage: m } = n.meta || {}, I = e.columns.some((S) => S.aggFunc), w = m || e.pagination.page || 1;
2259
2259
  let P = null;
2260
- const M = e.aggregationTotalRow && ((t = e.aggregationTotalRow) == null ? void 0 : t[w]);
2260
+ const F = e.aggregationTotalRow && ((t = e.aggregationTotalRow) == null ? void 0 : t[w]);
2261
2261
  let H = e.aggregationTotalRow;
2262
- if (I && !M) {
2263
- const { aggreRow: D } = Pe(
2262
+ if (I && !F) {
2263
+ const { aggreRow: S } = Pe(
2264
2264
  e,
2265
2265
  [],
2266
2266
  { [e.childKeyField]: n.payload },
@@ -2268,22 +2268,22 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2268
2268
  0,
2269
2269
  null
2270
2270
  );
2271
- P = D, H = {
2271
+ P = S, H = {
2272
2272
  ...e.aggregationTotalRow,
2273
2273
  [w]: P
2274
2274
  };
2275
- } else M && (P = M);
2276
- const G = n.payload;
2277
- if ((r = e.data) != null && r.length && JSON.stringify(G) === JSON.stringify(e.data) && s === e.isCountUnknown && c === e.totalItems && h === e.totalPages && T === e.currentPage && !P)
2275
+ } else F && (P = F);
2276
+ const v = n.payload;
2277
+ if ((r = e.data) != null && r.length && JSON.stringify(v) === JSON.stringify(e.data) && s === e.isCountUnknown && c === e.totalItems && h === e.totalPages && m === e.currentPage && !P)
2278
2278
  return e;
2279
- const B = G.map((D) => (delete D._animationState, delete D._isDraggedRow, D)), R = [...e.selectedRows], m = {
2279
+ const B = v.map((S) => (delete S._animationState, delete S._isDraggedRow, S)), R = [...e.selectedRows], T = {
2280
2280
  ...e.selectedRowsObject
2281
2281
  };
2282
- for (let D = 0; D < B.length; D++) {
2283
- const x = B[D];
2284
- if (x.is_selected) {
2285
- const _ = x[e.uniqueIdField];
2286
- R.push(_), m[_] = !0;
2282
+ for (let S = 0; S < B.length; S++) {
2283
+ const N = B[S];
2284
+ if (N.is_selected) {
2285
+ const _ = N[e.uniqueIdField];
2286
+ R.push(_), T[_] = !0;
2287
2287
  }
2288
2288
  }
2289
2289
  return {
@@ -2297,16 +2297,16 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2297
2297
  } : {},
2298
2298
  hasAggregation: I,
2299
2299
  selectedRows: [.../* @__PURE__ */ new Set([...R])],
2300
- selectedRowsObject: m,
2300
+ selectedRowsObject: T,
2301
2301
  pagination: {
2302
2302
  ...e.pagination,
2303
2303
  ...Object.keys(e.columnFilters).length && !e.serverSide ? {} : {
2304
2304
  isCountUnknown: s,
2305
2305
  totalItems: c,
2306
2306
  allTotalPages: h,
2307
- currentLoadedPage: T,
2307
+ currentLoadedPage: m,
2308
2308
  totalPages: h,
2309
- page: T
2309
+ page: m
2310
2310
  }
2311
2311
  }
2312
2312
  };
@@ -2317,19 +2317,19 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2317
2317
  filteredData: n.payload
2318
2318
  };
2319
2319
  case a.UPDATE_ROW_DATA: {
2320
- const { updatedData: s, dataRowIndex: c, aggregationRow: h, rowId: T, parentIndex: I } = n.payload, w = Ne(
2320
+ const { updatedData: s, dataRowIndex: c, aggregationRow: h, rowId: m, parentIndex: I } = n.payload, w = Ne(
2321
2321
  s,
2322
2322
  e.rowSpanColumn,
2323
2323
  e.api
2324
2324
  );
2325
- me(
2325
+ Te(
2326
2326
  e,
2327
2327
  w,
2328
2328
  !0,
2329
- T,
2329
+ m,
2330
2330
  I >= 0 ? I : c
2331
2331
  ), gn(e.tableInstance, c);
2332
- const P = e.pagination.page || 1, M = h ? {
2332
+ const P = e.pagination.page || 1, F = h ? {
2333
2333
  ...e.aggregationTotalRow,
2334
2334
  [P]: h
2335
2335
  } : e.aggregationTotalRow;
@@ -2338,42 +2338,42 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2338
2338
  data: w,
2339
2339
  filteredData: w,
2340
2340
  ...h ? {
2341
- aggregationTotalRow: M,
2341
+ aggregationTotalRow: F,
2342
2342
  pinnedBottomRows: [h]
2343
2343
  } : {}
2344
2344
  };
2345
2345
  }
2346
2346
  case a.UPDATE_ROW_DATA_OBJECT: {
2347
- const { rowId: s, data: c } = n.payload, h = e.uniqueIdField, T = e.expandedChildRows[s], I = { ...e.expandedChildRows };
2348
- let w = !1, P = -1, M = 0;
2349
- T && (Object.keys(e.expandedChildRows).filter(
2347
+ const { rowId: s, data: c } = n.payload, h = e.uniqueIdField, m = e.expandedChildRows[s], I = { ...e.expandedChildRows };
2348
+ let w = !1, P = -1, F = 0;
2349
+ m && (Object.keys(e.expandedChildRows).filter(
2350
2350
  (R) => R.startsWith(String(s))
2351
2351
  ).forEach((R) => {
2352
- M += e.expandedChildRows[R].childRowsCount;
2353
- }), P = T.rowIndex);
2352
+ F += e.expandedChildRows[R].childRowsCount;
2353
+ }), P = m.rowIndex);
2354
2354
  let H = ((i = e.data) == null ? void 0 : i.map((B, R) => {
2355
2355
  if (B[h] == s)
2356
2356
  return P = R, { ...B, ...c };
2357
2357
  if (B[e.childKeyField] && Array.isArray(B[e.childKeyField])) {
2358
- const m = B[e.childKeyField].map((D) => D[h] == s ? { ...D, ...c } : D);
2359
- if (m !== B[e.childKeyField])
2360
- return { ...B, [e.childKeyField]: m };
2358
+ const T = B[e.childKeyField].map((S) => S[h] == s ? { ...S, ...c } : S);
2359
+ if (T !== B[e.childKeyField])
2360
+ return { ...B, [e.childKeyField]: T };
2361
2361
  }
2362
2362
  return B;
2363
2363
  })) || [];
2364
- if (T && P !== -1) {
2365
- const B = M, R = c[e.childKeyField], D = (R ? R.length : 0) - B;
2364
+ if (m && P !== -1) {
2365
+ const B = F, R = c[e.childKeyField], S = (R ? R.length : 0) - B;
2366
2366
  if (!R)
2367
- H.splice(P + 1, M);
2367
+ H.splice(P + 1, F);
2368
2368
  else {
2369
- const x = typeof s == "string" ? s.split("/").length : 1, _ = R.map((ie) => ({
2369
+ const N = typeof s == "string" ? s.split("/").length : 1, _ = R.map((ie) => ({
2370
2370
  ...ie,
2371
2371
  __parentPath: ie.__parentPath ? `${ie.__parentPath}/${ie[s]}` : String(s),
2372
- level: x,
2372
+ level: N,
2373
2373
  parentRowIndex: P,
2374
2374
  parentRowData: c
2375
2375
  }));
2376
- H.splice(P + 1, M), H.splice(
2376
+ H.splice(P + 1, F), H.splice(
2377
2377
  P + 1,
2378
2378
  0,
2379
2379
  ..._
@@ -2382,33 +2382,33 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2382
2382
  childRowsCount: R.length
2383
2383
  }, w = !0;
2384
2384
  }
2385
- D !== 0 && (Object.keys(I).forEach((x) => {
2386
- const _ = I[x];
2387
- _.rowIndex > P && (I[x] = {
2385
+ S !== 0 && (Object.keys(I).forEach((N) => {
2386
+ const _ = I[N];
2387
+ _.rowIndex > P && (I[N] = {
2388
2388
  ..._,
2389
- rowIndex: _.rowIndex + D
2389
+ rowIndex: _.rowIndex + S
2390
2390
  });
2391
- }), H = H.map((x) => x.__parentPath && x.parentRowIndex !== void 0 && x.parentRowIndex > P ? {
2392
- ...x,
2393
- parentRowIndex: x.parentRowIndex + D
2394
- } : x));
2391
+ }), H = H.map((N) => N.__parentPath && N.parentRowIndex !== void 0 && N.parentRowIndex > P ? {
2392
+ ...N,
2393
+ parentRowIndex: N.parentRowIndex + S
2394
+ } : N));
2395
2395
  }
2396
2396
  P !== -1 && gn(e.tableInstance, P);
2397
- const G = Ne(
2397
+ const v = Ne(
2398
2398
  H,
2399
2399
  e.rowSpanColumn,
2400
2400
  e.api
2401
2401
  );
2402
- return me(
2402
+ return Te(
2403
2403
  e,
2404
- G,
2404
+ v,
2405
2405
  !0,
2406
2406
  String(s),
2407
2407
  P
2408
2408
  ), {
2409
2409
  ...e,
2410
- data: G,
2411
- filteredData: G,
2410
+ data: v,
2411
+ filteredData: v,
2412
2412
  ...w ? { expandedChildRows: I } : {}
2413
2413
  };
2414
2414
  }
@@ -2419,16 +2419,16 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2419
2419
  );
2420
2420
  if (n.meta && n.meta.recomputeFrozen) {
2421
2421
  h.positions = n.meta.frozenPositions || {};
2422
- let T = on(
2422
+ let m = on(
2423
2423
  !0,
2424
2424
  e.disableSelectAllRecords,
2425
2425
  e.isSingleSelect
2426
2426
  );
2427
2427
  h.indexes.forEach((I) => {
2428
2428
  var P;
2429
- const w = c.find((M) => v(M) === I);
2430
- w && !w.hidden && (T += w.width || ((P = e.defaultColDef) == null ? void 0 : P.minWidth) || 150);
2431
- }), h.totalWidth = T;
2429
+ const w = c.find((F) => M(F) === I);
2430
+ w && !w.hidden && (m += w.width || ((P = e.defaultColDef) == null ? void 0 : P.minWidth) || 150);
2431
+ }), h.totalWidth = m;
2432
2432
  }
2433
2433
  return {
2434
2434
  ...e,
@@ -2437,19 +2437,19 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2437
2437
  };
2438
2438
  }
2439
2439
  case a.MOVE_ROW: {
2440
- const { fromIndex: s, toIndex: c } = n.payload, h = [...e.data || []], T = h[s], I = String(T[e.uniqueIdField]);
2440
+ const { fromIndex: s, toIndex: c } = n.payload, h = [...e.data || []], m = h[s], I = String(m[e.uniqueIdField]);
2441
2441
  let w = 0;
2442
2442
  Object.keys(e.expandedChildRows).forEach((B) => {
2443
2443
  B.startsWith(I) && (w += e.expandedChildRows[B].childRowsCount);
2444
2444
  });
2445
- const P = w + 1, M = h.splice(s, P);
2445
+ const P = w + 1, F = h.splice(s, P);
2446
2446
  let H = c;
2447
- s < c && (H -= P), h.splice(H, 0, ...M);
2448
- const G = h.map((B) => (delete B._isDraggedRow, delete B._animationState, B));
2447
+ s < c && (H -= P), h.splice(H, 0, ...F);
2448
+ const v = h.map((B) => (delete B._isDraggedRow, delete B._animationState, B));
2449
2449
  return {
2450
2450
  ...e,
2451
- data: G,
2452
- filteredData: G
2451
+ data: v,
2452
+ filteredData: v
2453
2453
  // Keep filtered data in sync
2454
2454
  };
2455
2455
  }
@@ -2491,7 +2491,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2491
2491
  };
2492
2492
  case a.SET_PAGE: {
2493
2493
  const s = Xe(e);
2494
- me(e, s);
2494
+ Te(e, s);
2495
2495
  const c = be(e);
2496
2496
  return {
2497
2497
  ...e,
@@ -2533,28 +2533,28 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2533
2533
  let s = e.selectedRows, c = e.unCheckedRows, h = e.selectedRowsObject;
2534
2534
  if (Array.isArray(n.payload))
2535
2535
  s = n.payload, h = n.payload.reduce(
2536
- (T, I) => (T[I] = !0, T),
2536
+ (m, I) => (m[I] = !0, m),
2537
2537
  {}
2538
2538
  );
2539
2539
  else {
2540
2540
  const {
2541
- isSelected: T = !1,
2541
+ isSelected: m = !1,
2542
2542
  selectUnselectRowId: I = [],
2543
2543
  isUnchecked: w = !1,
2544
2544
  singleEntry: P = !1
2545
2545
  } = n.payload;
2546
2546
  if (P) {
2547
- const M = Array.isArray(I) ? I[0] : I, {
2547
+ const F = Array.isArray(I) ? I[0] : I, {
2548
2548
  selectedRowsUpdated: H,
2549
- unCheckedRowsUpdated: G,
2549
+ unCheckedRowsUpdated: v,
2550
2550
  selectedRowsObjectUpdated: B
2551
2551
  } = ct({
2552
2552
  state: e,
2553
- isSelected: T,
2554
- selectUnselectRowId: M,
2553
+ isSelected: m,
2554
+ selectUnselectRowId: F,
2555
2555
  isUnchecked: w
2556
2556
  });
2557
- s = H, c = G, h = B;
2557
+ s = H, c = v, h = B;
2558
2558
  }
2559
2559
  }
2560
2560
  return Je({
@@ -2569,11 +2569,11 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2569
2569
  };
2570
2570
  }
2571
2571
  case a.SET_COLUMN_FILTER: {
2572
- const { field: s, rules: c, isBulk: h, filters: T } = n.payload;
2572
+ const { field: s, rules: c, isBulk: h, filters: m } = n.payload;
2573
2573
  return {
2574
2574
  ...e,
2575
2575
  columnFilters: {
2576
- ...h ? T : { ...e.columnFilters, [s]: c }
2576
+ ...h ? m : { ...e.columnFilters, [s]: c }
2577
2577
  }
2578
2578
  };
2579
2579
  }
@@ -2622,13 +2622,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2622
2622
  };
2623
2623
  }
2624
2624
  case a.TOGGLE_GROUP_EXPANSION: {
2625
- const { rowId: s, rowIndex: c } = n.payload, h = String(s), T = e.filteredData || [];
2625
+ const { rowId: s, rowIndex: c } = n.payload, h = String(s), m = e.filteredData || [];
2626
2626
  let I;
2627
- const w = [...T], P = h.split("/").length, M = !e.expandedChildRows[h];
2628
- if (M) {
2629
- const H = T[c], G = (H == null ? void 0 : H[e.childKeyField]) || [], B = e.columns.some((ie) => ie.aggFunc);
2630
- let R = G, m = null;
2631
- if (B && G.length > 0) {
2627
+ const w = [...m], P = h.split("/").length, F = !e.expandedChildRows[h];
2628
+ if (F) {
2629
+ const H = m[c], v = (H == null ? void 0 : H[e.childKeyField]) || [], B = e.columns.some((ie) => ie.aggFunc);
2630
+ let R = v, T = null;
2631
+ if (B && v.length > 0) {
2632
2632
  const { aggreRow: ie, aggreChildRows: q } = Pe(
2633
2633
  e,
2634
2634
  R,
@@ -2637,7 +2637,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2637
2637
  c,
2638
2638
  h
2639
2639
  );
2640
- m = ie, R = q;
2640
+ T = ie, R = q;
2641
2641
  } else
2642
2642
  R = R.map((ie) => ({
2643
2643
  ...ie,
@@ -2647,36 +2647,36 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2647
2647
  parentRowData: H,
2648
2648
  groupingLevel: P
2649
2649
  }));
2650
- const D = G.length + (m ? 1 : 0);
2650
+ const S = v.length + (T ? 1 : 0);
2651
2651
  I = {
2652
2652
  ...e.expandedChildRows,
2653
2653
  [h]: {
2654
2654
  rowId: h,
2655
2655
  rowIndex: c,
2656
- childRowsCount: D
2656
+ childRowsCount: S
2657
2657
  }
2658
2658
  };
2659
- const x = Ne(
2659
+ const N = Ne(
2660
2660
  [H, ...R],
2661
2661
  e.rowSpanColumn,
2662
2662
  e.api
2663
- ), _ = m ? [...x, m] : x;
2663
+ ), _ = T ? [...N, T] : N;
2664
2664
  w.splice(c, 1), w.splice(c, 0, ..._);
2665
2665
  } else {
2666
2666
  I = {
2667
2667
  ...e.expandedChildRows
2668
2668
  };
2669
2669
  let H = 0;
2670
- Object.keys(I).forEach((G) => {
2671
- G.startsWith(h) && (H += I[G].childRowsCount, delete I[G]);
2670
+ Object.keys(I).forEach((v) => {
2671
+ v.startsWith(h) && (H += I[v].childRowsCount, delete I[v]);
2672
2672
  }), delete w[c].__rowSpanInfo, w.splice(c + 1, H);
2673
2673
  }
2674
2674
  return (u = (g = e.callBackRef) == null ? void 0 : g.current) != null && u.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
2675
2675
  rowId: h,
2676
2676
  rowIndex: c,
2677
2677
  api: e.api,
2678
- isExpanded: M
2679
- }), me(e, w), {
2678
+ isExpanded: F
2679
+ }), Te(e, w), {
2680
2680
  ...e,
2681
2681
  expandedChildRows: I,
2682
2682
  filteredData: w,
@@ -2695,19 +2695,19 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2695
2695
  isSelectionChanged: !1
2696
2696
  } : e;
2697
2697
  case a.FREEZE_COLUMN: {
2698
- const { columnId: s } = n.payload, c = e.columns.map((w) => v(w) === s ? { ...w, is_frozen: !0, pinned: "left" } : w), { processedColumns: h } = Oe(
2698
+ const { columnId: s } = n.payload, c = e.columns.map((w) => M(w) === s ? { ...w, is_frozen: !0, pinned: "left" } : w), { processedColumns: h } = Oe(
2699
2699
  c,
2700
2700
  e.expandedColumnGroups || {},
2701
2701
  0,
2702
2702
  null,
2703
2703
  ((f = (C = n.meta) == null ? void 0 : C.defaultColDef) == null ? void 0 : f.minWidth) || ((L = e.defaultColDef) == null ? void 0 : L.minWidth) || 150
2704
- ), { columns: T, frozenData: I } = we(
2704
+ ), { columns: m, frozenData: I } = we(
2705
2705
  h,
2706
2706
  ((l = n.meta) == null ? void 0 : l.defaultColDef) || e.defaultColDef || void 0
2707
2707
  );
2708
2708
  return {
2709
2709
  ...e,
2710
- columns: T,
2710
+ columns: m,
2711
2711
  frozenColumns: I
2712
2712
  };
2713
2713
  }
@@ -2715,14 +2715,14 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2715
2715
  const { columnId: s } = n.payload, c = {}, h = {};
2716
2716
  if (e.columns.forEach((R) => {
2717
2717
  if (R.children && Array.isArray(R.children)) {
2718
- const m = v(R);
2719
- h[m] = [], R.children.forEach((D) => {
2720
- const x = v(D);
2721
- c[x] = m, h[m] ? h[m].push(x) : h[m] = [x];
2718
+ const T = M(R);
2719
+ h[T] = [], R.children.forEach((S) => {
2720
+ const N = M(S);
2721
+ c[N] = T, h[T] ? h[T].push(N) : h[T] = [N];
2722
2722
  });
2723
2723
  }
2724
2724
  }), !e.columns.find(
2725
- (R) => v(R) === s
2725
+ (R) => M(R) === s
2726
2726
  )) return e;
2727
2727
  const I = [];
2728
2728
  let w = s;
@@ -2732,31 +2732,31 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2732
2732
  }
2733
2733
  const P = {};
2734
2734
  e.columns.forEach((R) => {
2735
- const m = v(R);
2736
- if (R.is_frozen && m !== s && I.includes(m) === !1) {
2737
- let D = m;
2738
- for (; c[D]; ) {
2739
- const x = c[D];
2740
- P[x] = !0, D = x;
2735
+ const T = M(R);
2736
+ if (R.is_frozen && T !== s && I.includes(T) === !1) {
2737
+ let S = T;
2738
+ for (; c[S]; ) {
2739
+ const N = c[S];
2740
+ P[N] = !0, S = N;
2741
2741
  }
2742
2742
  }
2743
2743
  });
2744
- const M = e.columns.map((R) => {
2745
- const m = v(R);
2746
- return m === s ? { ...R, is_frozen: !1, pinned: null } : I.includes(m) ? P[m] ? R : { ...R, is_frozen: !1, pinned: null } : R;
2744
+ const F = e.columns.map((R) => {
2745
+ const T = M(R);
2746
+ return T === s ? { ...R, is_frozen: !1, pinned: null } : I.includes(T) ? P[T] ? R : { ...R, is_frozen: !1, pinned: null } : R;
2747
2747
  }), { processedColumns: H } = Oe(
2748
- M,
2748
+ F,
2749
2749
  e.expandedColumnGroups || {},
2750
2750
  0,
2751
2751
  null,
2752
- ((O = (p = n.meta) == null ? void 0 : p.defaultColDef) == null ? void 0 : O.minWidth) || ((S = e.defaultColDef) == null ? void 0 : S.minWidth) || 150
2753
- ), { columns: G, frozenData: B } = we(
2752
+ ((O = (p = n.meta) == null ? void 0 : p.defaultColDef) == null ? void 0 : O.minWidth) || ((D = e.defaultColDef) == null ? void 0 : D.minWidth) || 150
2753
+ ), { columns: v, frozenData: B } = we(
2754
2754
  H,
2755
- ((F = n.meta) == null ? void 0 : F.defaultColDef) || e.defaultColDef || void 0
2755
+ ((y = n.meta) == null ? void 0 : y.defaultColDef) || e.defaultColDef || void 0
2756
2756
  );
2757
2757
  return {
2758
2758
  ...e,
2759
- columns: G,
2759
+ columns: v,
2760
2760
  frozenColumns: B
2761
2761
  };
2762
2762
  }
@@ -2765,39 +2765,39 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2765
2765
  field: s,
2766
2766
  width: c,
2767
2767
  isAutoWidth: h
2768
- } = n.payload, T = (M) => {
2769
- if (v(M) === s)
2768
+ } = n.payload, m = (F) => {
2769
+ if (M(F) === s)
2770
2770
  return {
2771
- ...M,
2771
+ ...F,
2772
2772
  width: c,
2773
- isAutoWidth: h !== void 0 ? h : M.isAutoWidth
2773
+ isAutoWidth: h !== void 0 ? h : F.isAutoWidth
2774
2774
  };
2775
- if (M.children && M.children.length > 0) {
2776
- const G = M.children.some(
2777
- (R) => v(R) === s || R.path && R.path.includes(s)
2778
- ), B = M.children.map(
2779
- T
2775
+ if (F.children && F.children.length > 0) {
2776
+ const v = F.children.some(
2777
+ (R) => M(R) === s || R.path && R.path.includes(s)
2778
+ ), B = F.children.map(
2779
+ m
2780
2780
  );
2781
- if (G) {
2781
+ if (v) {
2782
2782
  const R = B.reduce(
2783
- (m, D) => D.hidden || D.is_hidden ? m : m + (D.width || 100),
2783
+ (T, S) => S.hidden || S.is_hidden ? T : T + (S.width || 100),
2784
2784
  0
2785
2785
  );
2786
2786
  return {
2787
- ...M,
2787
+ ...F,
2788
2788
  children: B,
2789
2789
  // Update parent width based on children's total width
2790
2790
  width: R
2791
2791
  };
2792
2792
  }
2793
2793
  return {
2794
- ...M,
2794
+ ...F,
2795
2795
  children: B
2796
2796
  };
2797
2797
  }
2798
- return M;
2798
+ return F;
2799
2799
  }, I = e.columns.map(
2800
- T
2800
+ m
2801
2801
  ), { columns: w, frozenData: P } = we(
2802
2802
  I,
2803
2803
  e.defaultColDef || void 0
@@ -2810,33 +2810,33 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2810
2810
  }
2811
2811
  case a.SET_COLUMNS_WIDTH: {
2812
2812
  const { widths: s, isAutoWidth: c } = n.payload, h = e.columns.map((I) => {
2813
- const w = v(I);
2813
+ const w = M(I);
2814
2814
  return s[w] !== void 0 ? {
2815
2815
  ...I,
2816
2816
  width: s[w],
2817
2817
  isAutoWidth: c !== void 0 ? c : I.isAutoWidth
2818
2818
  } : I;
2819
- }), T = { ...e.frozenColumns };
2820
- if (T.indexes.length > 0) {
2819
+ }), m = { ...e.frozenColumns };
2820
+ if (m.indexes.length > 0) {
2821
2821
  let I = on(
2822
2822
  !0,
2823
2823
  e.disableSelectAllRecords,
2824
2824
  e.isSingleSelect
2825
2825
  );
2826
- T.indexes.forEach((w) => {
2826
+ m.indexes.forEach((w) => {
2827
2827
  const P = h.find(
2828
- (M) => v(M) === w
2828
+ (F) => M(F) === w
2829
2829
  );
2830
2830
  if (P && !P.hidden) {
2831
- const M = v(P);
2832
- T.positions[M] = I, I += P.width || 100;
2831
+ const F = M(P);
2832
+ m.positions[F] = I, I += P.width || 100;
2833
2833
  }
2834
- }), T.totalWidth = I;
2834
+ }), m.totalWidth = I;
2835
2835
  }
2836
2836
  return {
2837
2837
  ...e,
2838
2838
  columns: h,
2839
- frozenColumns: T
2839
+ frozenColumns: m
2840
2840
  };
2841
2841
  }
2842
2842
  case a.SHOW_NOTIFICATION:
@@ -2878,7 +2878,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2878
2878
  };
2879
2879
  case a.PIN_COLUMN_RIGHT: {
2880
2880
  const { field: s } = n.payload, c = window.innerWidth * 0.3, h = e.columns.find(
2881
- (q) => v(q) === s
2881
+ (q) => M(q) === s
2882
2882
  );
2883
2883
  if (!h)
2884
2884
  return e;
@@ -2901,31 +2901,31 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2901
2901
  timeout: 5e3
2902
2902
  }
2903
2903
  };
2904
- const { parentToChildrenMap: H, childToParentMap: G } = qe(
2904
+ const { parentToChildrenMap: H, childToParentMap: v } = qe(
2905
2905
  e.columns
2906
- ), B = G[s], R = !!B, m = R ? dn(s, G) : [], D = R ? H[B] || [] : [], x = e.columns.map((q) => {
2907
- const ce = v(q);
2906
+ ), B = v[s], R = !!B, T = R ? dn(s, v) : [], S = R ? H[B] || [] : [], N = e.columns.map((q) => {
2907
+ const ce = M(q);
2908
2908
  return ce === s ? {
2909
2909
  ...q,
2910
2910
  pinned: "right",
2911
2911
  is_frozen: !1
2912
2912
  // Ensure it's not left-pinned
2913
- } : m.includes(ce) ? {
2913
+ } : T.includes(ce) ? {
2914
2914
  ...q,
2915
2915
  pinned: "right",
2916
2916
  is_frozen: !1
2917
- } : m.some((Ie) => (H[Ie] || []).includes(ce)) ? {
2917
+ } : T.some((Ie) => (H[Ie] || []).includes(ce)) ? {
2918
2918
  ...q,
2919
2919
  pinned: "right",
2920
2920
  is_frozen: !1
2921
- } : D.includes(ce) ? {
2921
+ } : S.includes(ce) ? {
2922
2922
  ...q,
2923
2923
  pinned: "right",
2924
2924
  is_frozen: !1
2925
2925
  } : q;
2926
2926
  }), { columns: _, frozenData: ie } = we(
2927
- x,
2928
- ((Q = n.meta) == null ? void 0 : Q.defaultColDef) || e.defaultColDef || void 0
2927
+ N,
2928
+ ((x = n.meta) == null ? void 0 : x.defaultColDef) || e.defaultColDef || void 0
2929
2929
  );
2930
2930
  return {
2931
2931
  ...e,
@@ -2936,29 +2936,29 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2936
2936
  case a.UNPIN_COLUMN_RIGHT: {
2937
2937
  const { field: s } = n.payload, { parentToChildrenMap: c, childToParentMap: h } = qe(
2938
2938
  e.columns
2939
- ), T = h[s], I = !!T, w = I ? dn(s, h) : [], P = I ? c[T] || [] : [], M = e.columns.map((B) => {
2940
- const R = v(B);
2939
+ ), m = h[s], I = !!m, w = I ? dn(s, h) : [], P = I ? c[m] || [] : [], F = e.columns.map((B) => {
2940
+ const R = M(B);
2941
2941
  return R === s ? {
2942
2942
  ...B,
2943
2943
  pinned: void 0
2944
2944
  } : w.includes(R) ? {
2945
2945
  ...B,
2946
2946
  pinned: void 0
2947
- } : w.some((D) => (c[D] || []).includes(R)) ? {
2947
+ } : w.some((S) => (c[S] || []).includes(R)) ? {
2948
2948
  ...B,
2949
2949
  pinned: void 0
2950
2950
  } : P.includes(R) ? {
2951
2951
  ...B,
2952
2952
  pinned: void 0
2953
2953
  } : B;
2954
- }), { columns: H, frozenData: G } = we(
2955
- M,
2956
- ((y = n.meta) == null ? void 0 : y.defaultColDef) || e.defaultColDef || void 0
2954
+ }), { columns: H, frozenData: v } = we(
2955
+ F,
2956
+ ((Q = n.meta) == null ? void 0 : Q.defaultColDef) || e.defaultColDef || void 0
2957
2957
  );
2958
2958
  return {
2959
2959
  ...e,
2960
2960
  columns: H,
2961
- frozenColumns: G
2961
+ frozenColumns: v
2962
2962
  };
2963
2963
  }
2964
2964
  case a.TOGGLE_FREEZE_COLUMN: {
@@ -2966,13 +2966,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2966
2966
  field: s,
2967
2967
  column: c,
2968
2968
  frozen: h = !1,
2969
- options: T = {}
2969
+ options: m = {}
2970
2970
  } = n.payload, I = at({
2971
2971
  state: e,
2972
2972
  freezeColumnField: s,
2973
2973
  column: c,
2974
2974
  frozen: h,
2975
- options: T
2975
+ options: m
2976
2976
  });
2977
2977
  return {
2978
2978
  ...e,
@@ -2980,11 +2980,11 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
2980
2980
  };
2981
2981
  }
2982
2982
  case a.REORDER_COLUMNS: {
2983
- const { sourceColumn: s, targetColumn: c } = n.payload, h = e.frozenColumns.totalWidth, T = ((N = (U = e.tableInstance) == null ? void 0 : U.current) == null ? void 0 : N.clientWidth) || 0, I = [...e.columns], w = s.children && s.children.length > 0, P = (x) => {
2983
+ const { sourceColumn: s, targetColumn: c } = n.payload, h = e.frozenColumns.totalWidth, m = ((G = (U = e.tableInstance) == null ? void 0 : U.current) == null ? void 0 : G.clientWidth) || 0, I = [...e.columns], w = s.children && s.children.length > 0, P = (N) => {
2984
2984
  var _;
2985
- return x.children && x.children.length > 0 ? x.children.reduce((ie, q) => ie + P(q), 0) : x.width || ((_ = e.defaultColDef) == null ? void 0 : _.minWidth) || 150;
2986
- }, M = w ? P(s) : s.width || ((j = e.defaultColDef) == null ? void 0 : j.minWidth) || 150;
2987
- if (c.is_frozen && !s.is_frozen && M && h + M > T * 0.7)
2985
+ return N.children && N.children.length > 0 ? N.children.reduce((ie, q) => ie + P(q), 0) : N.width || ((_ = e.defaultColDef) == null ? void 0 : _.minWidth) || 150;
2986
+ }, F = w ? P(s) : s.width || ((j = e.defaultColDef) == null ? void 0 : j.minWidth) || 150;
2987
+ if (c.is_frozen && !s.is_frozen && F && h + F > m * 0.7)
2988
2988
  return {
2989
2989
  ...e,
2990
2990
  notification: {
@@ -3005,18 +3005,18 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3005
3005
  s,
3006
3006
  c,
3007
3007
  H
3008
- ), H.forEach((x, _) => {
3009
- x.order_of_display = _ + 1;
3008
+ ), H.forEach((N, _) => {
3009
+ N.order_of_display = _ + 1;
3010
3010
  });
3011
- const { initialGroupedColumns: G } = Oe(
3011
+ const { initialGroupedColumns: v } = Oe(
3012
3012
  H,
3013
3013
  e.expandedColumnGroups || {},
3014
3014
  0,
3015
3015
  null,
3016
3016
  ((Y = e.defaultColDef) == null ? void 0 : Y.minWidth) || 150
3017
3017
  ), B = { ...e.expandedColumnGroups };
3018
- G.forEach((x) => {
3019
- B[x] !== !0 && (B[x] = !0);
3018
+ v.forEach((N) => {
3019
+ B[N] !== !0 && (B[N] = !0);
3020
3020
  });
3021
3021
  const { processedColumns: R } = Oe(
3022
3022
  H,
@@ -3024,14 +3024,14 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3024
3024
  0,
3025
3025
  null,
3026
3026
  ((J = e.defaultColDef) == null ? void 0 : J.minWidth) || 150
3027
- ), { columns: m, frozenData: D } = we(
3027
+ ), { columns: T, frozenData: S } = we(
3028
3028
  R,
3029
3029
  ((Z = n.meta) == null ? void 0 : Z.defaultColDef) || e.defaultColDef || void 0
3030
3030
  );
3031
3031
  return {
3032
3032
  ...e,
3033
- columns: m,
3034
- frozenColumns: D,
3033
+ columns: T,
3034
+ frozenColumns: S,
3035
3035
  expandedColumnGroups: B
3036
3036
  };
3037
3037
  }
@@ -3060,30 +3060,32 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3060
3060
  B
3061
3061
  );
3062
3062
  }
3063
- const T = {};
3063
+ const m = {};
3064
3064
  for (let B = 0; B < h.length; B++) {
3065
- const R = h[B], m = R[e.uniqueIdField];
3066
- R != null && R.__parentPath || R != null && R.isChildGroup || (T[m] = !0);
3065
+ const R = h[B], T = R[e.uniqueIdField];
3066
+ R != null && R.__parentPath || R != null && R.isChildGroup || (m[T] = !0);
3067
3067
  }
3068
3068
  let I = [], w = {}, P = {};
3069
3069
  if (n.payload) {
3070
3070
  I = [...e.selectedRows], w = { ...e.selectedRowsObject }, P = { ...e.unCheckedRows };
3071
- for (const B in T)
3071
+ for (const B in m)
3072
3072
  w[B] || (I.push(B), w[B] = !0), delete P[B];
3073
- } else {
3073
+ } else if (!n.payload && Object.keys(e.columnFilters).length === 0)
3074
+ I = [], w = {}, P = {};
3075
+ else {
3074
3076
  P = { ...e.unCheckedRows };
3075
3077
  for (let B = 0; B < e.selectedRows.length; B++) {
3076
3078
  const R = e.selectedRows[B];
3077
- T[R] ? P[R] = !0 : (I.push(R), w[R] = !0);
3079
+ m[R] ? P[R] = !0 : (I.push(R), w[R] = !0);
3078
3080
  }
3079
3081
  }
3080
- let M = !0;
3081
- for (const B in T)
3082
+ let F = !0;
3083
+ for (const B in m)
3082
3084
  if (!w[B]) {
3083
- M = !1;
3085
+ F = !1;
3084
3086
  break;
3085
3087
  }
3086
- const H = I.length === 0 ? !1 : M, G = I.length === 0 ? {} : P;
3088
+ const H = I.length === 0 ? !1 : F, v = I.length === 0 ? {} : P;
3087
3089
  return Je({
3088
3090
  state: e,
3089
3091
  action: { payload: I }
@@ -3092,16 +3094,16 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3092
3094
  isSelectAllRecords: H,
3093
3095
  selectedRows: I,
3094
3096
  selectedRowsObject: w,
3095
- unCheckedRows: G,
3097
+ unCheckedRows: v,
3096
3098
  isSelectionChanged: !1,
3097
3099
  checkConfiguration: H ? e.checkConfiguration : []
3098
3100
  };
3099
3101
  }
3100
3102
  case a.BATCH_UPDATE: {
3101
- const { prevAction: s, checkConfiguration: c, isSelectAllRecords: h } = n.payload, T = {};
3102
- return s !== void 0 && s !== e.prevAction && (T.prevAction = s), c !== void 0 && JSON.stringify(c) !== JSON.stringify(e.checkConfiguration) && (T.checkConfiguration = c), h !== void 0 && h !== e.isSelectAllRecords && (T.isSelectAllRecords = h), Object.keys(T).length === 0 ? e : {
3103
+ const { prevAction: s, checkConfiguration: c, isSelectAllRecords: h } = n.payload, m = {};
3104
+ return s !== void 0 && s !== e.prevAction && (m.prevAction = s), c !== void 0 && JSON.stringify(c) !== JSON.stringify(e.checkConfiguration) && (m.checkConfiguration = c), h !== void 0 && h !== e.isSelectAllRecords && (m.isSelectAllRecords = h), Object.keys(m).length === 0 ? e : {
3103
3105
  ...e,
3104
- ...T
3106
+ ...m
3105
3107
  };
3106
3108
  }
3107
3109
  // Master-Detail functionality
@@ -3110,17 +3112,17 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3110
3112
  rowId: s,
3111
3113
  rowData: c,
3112
3114
  rowIndex: h,
3113
- currentRowStyles: T
3115
+ currentRowStyles: m
3114
3116
  } = n.payload, I = ((K = e.masterDetail) == null ? void 0 : K.expandedRows) || [];
3115
- let w, P = null, M = !1;
3116
- return I.includes(s) ? (w = [], M = !0) : (w = [s], P = c), {
3117
+ let w, P = null, F = !1;
3118
+ return I.includes(s) ? (w = [], F = !0) : (w = [s], P = c), {
3117
3119
  ...e,
3118
3120
  masterDetail: {
3119
3121
  ...e.masterDetail,
3120
3122
  expandedRows: w,
3121
3123
  expandedRowData: P,
3122
- currentRowStyles: T,
3123
- rowIndex: M ? null : h
3124
+ currentRowStyles: m,
3125
+ rowIndex: F ? null : h
3124
3126
  }
3125
3127
  };
3126
3128
  }
@@ -3141,15 +3143,15 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3141
3143
  }
3142
3144
  };
3143
3145
  case a.ADD_EVENT_LISTENER: {
3144
- const { eventType: s, listener: c, once: h = !1 } = n.payload, T = { ...e.eventListeners };
3145
- return T[s] || (T[s] = []), T[s].some(
3146
+ const { eventType: s, listener: c, once: h = !1 } = n.payload, m = { ...e.eventListeners };
3147
+ return m[s] || (m[s] = []), m[s].some(
3146
3148
  (w) => w.fn === c
3147
- ) || T[s].push({
3149
+ ) || m[s].push({
3148
3150
  fn: c,
3149
3151
  once: h
3150
3152
  }), {
3151
3153
  ...e,
3152
- eventListeners: T
3154
+ eventListeners: m
3153
3155
  };
3154
3156
  }
3155
3157
  case a.REMOVE_EVENT_LISTENER: {
@@ -3158,10 +3160,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3158
3160
  return e;
3159
3161
  const h = e.eventListeners[s].filter(
3160
3162
  (I) => I.fn !== c
3161
- ), T = { ...e.eventListeners };
3162
- return h.length === 0 ? delete T[s] : T[s] = h, {
3163
+ ), m = { ...e.eventListeners };
3164
+ return h.length === 0 ? delete m[s] : m[s] = h, {
3163
3165
  ...e,
3164
- eventListeners: T
3166
+ eventListeners: m
3165
3167
  };
3166
3168
  }
3167
3169
  // Column grouping functionality
@@ -3169,24 +3171,24 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3169
3171
  const { field: s } = n.payload, c = e.expandedColumnGroups || {}, h = c[s] === !0;
3170
3172
  if (!h) {
3171
3173
  const H = (B, R) => {
3172
- for (const m of B) {
3173
- if (v(m) === R)
3174
- return m;
3175
- if (m.children && m.children.length > 0) {
3176
- const D = H(m.children, R);
3177
- if (D) return D;
3174
+ for (const T of B) {
3175
+ if (M(T) === R)
3176
+ return T;
3177
+ if (T.children && T.children.length > 0) {
3178
+ const S = H(T.children, R);
3179
+ if (S) return S;
3178
3180
  }
3179
3181
  }
3180
3182
  return null;
3181
- }, G = H(
3183
+ }, v = H(
3182
3184
  e.columns,
3183
3185
  s
3184
3186
  );
3185
- if (G && G.is_frozen) {
3186
- const B = ((ne = ($ = e.tableInstance) == null ? void 0 : $.current) == null ? void 0 : ne.clientWidth) || 0, R = ((oe = e.frozenColumns) == null ? void 0 : oe.totalWidth) || 0, m = (q) => {
3187
+ if (v && v.is_frozen) {
3188
+ const B = ((ne = ($ = e.tableInstance) == null ? void 0 : $.current) == null ? void 0 : ne.clientWidth) || 0, R = ((oe = e.frozenColumns) == null ? void 0 : oe.totalWidth) || 0, T = (q) => {
3187
3189
  var ce;
3188
- return !q.children || q.children.length === 0 ? q.width || ((ce = e.defaultColDef) == null ? void 0 : ce.minWidth) || 150 : q.children.reduce((he, Ie) => he + m(Ie), 0);
3189
- }, D = G.width || ((se = e.defaultColDef) == null ? void 0 : se.minWidth) || 150, _ = m(G) - D, ie = R + _;
3190
+ return !q.children || q.children.length === 0 ? q.width || ((ce = e.defaultColDef) == null ? void 0 : ce.minWidth) || 150 : q.children.reduce((he, Ie) => he + T(Ie), 0);
3191
+ }, S = v.width || ((se = e.defaultColDef) == null ? void 0 : se.minWidth) || 150, _ = T(v) - S, ie = R + _;
3190
3192
  if (B > 0 && ie > B * 0.7)
3191
3193
  return {
3192
3194
  ...e,
@@ -3208,7 +3210,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3208
3210
  0,
3209
3211
  null,
3210
3212
  ((fe = e.defaultColDef) == null ? void 0 : fe.minWidth) || 150
3211
- ), { columns: P, frozenData: M } = we(
3213
+ ), { columns: P, frozenData: F } = we(
3212
3214
  w,
3213
3215
  e.defaultColDef || { minWidth: 150 }
3214
3216
  );
@@ -3216,7 +3218,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3216
3218
  ...e,
3217
3219
  expandedColumnGroups: I,
3218
3220
  columns: P,
3219
- frozenColumns: M
3221
+ frozenColumns: F
3220
3222
  };
3221
3223
  }
3222
3224
  case a.SET_EXPANDED_COLUMN_GROUPS: {
@@ -3239,22 +3241,22 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3239
3241
  }
3240
3242
  // Row drag preview functionality with swap animation
3241
3243
  case a.PREVIEW_ROW_MOVE: {
3242
- const { fromIndex: s, toIndex: c, fromRowData: h, isDraggingDownward: T } = n.payload;
3244
+ const { fromIndex: s, toIndex: c, fromRowData: h, isDraggingDownward: m } = n.payload;
3243
3245
  if (e.previewMode) {
3244
3246
  const I = e.originalFromIndex, w = [...e.originalData ?? []], P = e.hasExpandedChildren;
3245
- w.forEach((G, B) => {
3246
- B === I ? (G._animationState = "moving", G._isDraggedRow = !0, G._hasExpandedChildren = P) : (B >= Math.min(I ?? 0, c) && B <= Math.max(I ?? 0, c) || B >= Math.min(I ?? 0, e.lastToIndex ?? 0) && B <= Math.max(I ?? 0, e.lastToIndex ?? 0)) && (G._animationState = "affected");
3247
+ w.forEach((v, B) => {
3248
+ B === I ? (v._animationState = "moving", v._isDraggedRow = !0, v._hasExpandedChildren = P) : (B >= Math.min(I ?? 0, c) && B <= Math.max(I ?? 0, c) || B >= Math.min(I ?? 0, e.lastToIndex ?? 0) && B <= Math.max(I ?? 0, e.lastToIndex ?? 0)) && (v._animationState = "affected");
3247
3249
  });
3248
- const [M] = w.splice(I ?? 0, 1);
3250
+ const [F] = w.splice(I ?? 0, 1);
3249
3251
  let H = c;
3250
- if (P && T) {
3251
- const G = h == null ? void 0 : h[e.childKeyField], B = (G == null ? void 0 : G.length) || 0;
3252
+ if (P && m) {
3253
+ const v = h == null ? void 0 : h[e.childKeyField], B = (v == null ? void 0 : v.length) || 0;
3252
3254
  B > 0 && e.expandedChildRows[h == null ? void 0 : h[e.uniqueIdField]] && (H = Math.max(
3253
3255
  c - B,
3254
3256
  (I ?? 0) + 1
3255
3257
  ));
3256
3258
  }
3257
- return w.splice(H, 0, M), {
3259
+ return w.splice(H, 0, F), {
3258
3260
  ...e,
3259
3261
  originalData: e.originalData,
3260
3262
  // Keep the original data unchanged
@@ -3266,32 +3268,32 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3266
3268
  // Update the last position
3267
3269
  hasExpandedChildren: P,
3268
3270
  // Maintain whether the dragged row has expanded children
3269
- isDraggingDownward: T
3271
+ isDraggingDownward: m
3270
3272
  // Update the drag direction
3271
3273
  };
3272
3274
  } else {
3273
- const I = [...e.filteredData || []], w = [...I], P = h == null ? void 0 : h[e.childKeyField], M = h && P && Array.isArray(P) && P.length > 0;
3275
+ const I = [...e.filteredData || []], w = [...I], P = h == null ? void 0 : h[e.childKeyField], F = h && P && Array.isArray(P) && P.length > 0;
3274
3276
  w.forEach((B, R) => {
3275
- R === s ? (B._animationState = "moving", B._isDraggedRow = !0, B._hasExpandedChildren = M) : R >= Math.min(s, c) && R <= Math.max(s, c) && (B._animationState = "affected");
3277
+ R === s ? (B._animationState = "moving", B._isDraggedRow = !0, B._hasExpandedChildren = F) : R >= Math.min(s, c) && R <= Math.max(s, c) && (B._animationState = "affected");
3276
3278
  });
3277
3279
  const [H] = w.splice(s, 1);
3278
- let G = c;
3279
- if (M && T) {
3280
+ let v = c;
3281
+ if (F && m) {
3280
3282
  const B = (P == null ? void 0 : P.length) || 0;
3281
- B > 0 && (G = Math.max(c - B, s + 1));
3283
+ B > 0 && (v = Math.max(c - B, s + 1));
3282
3284
  }
3283
- return w.splice(G, 0, H), {
3285
+ return w.splice(v, 0, H), {
3284
3286
  ...e,
3285
3287
  originalData: I,
3286
3288
  filteredData: w,
3287
3289
  previewMode: !0,
3288
3290
  originalFromIndex: s,
3289
3291
  // Store the original fromIndex
3290
- lastToIndex: G,
3292
+ lastToIndex: v,
3291
3293
  // Track the last position for animation
3292
- hasExpandedChildren: M,
3294
+ hasExpandedChildren: F,
3293
3295
  // Store whether the dragged row has expanded children
3294
- isDraggingDownward: T
3296
+ isDraggingDownward: m
3295
3297
  // Store the drag direction
3296
3298
  };
3297
3299
  }
@@ -3327,34 +3329,34 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3327
3329
  const {
3328
3330
  groupId: s,
3329
3331
  rowIndex: c,
3330
- extra: { fieldName: h, value: T }
3331
- } = n.payload, { expandedGroups: I, loadedData: w } = e.rowGroupState, P = !((ue = I[s]) != null && ue[s]), M = [...e.filteredData ?? []], H = w[s] || [], G = { ...I };
3332
+ extra: { fieldName: h, value: m }
3333
+ } = n.payload, { expandedGroups: I, loadedData: w } = e.rowGroupState, P = !((ue = I[s]) != null && ue[s]), F = [...e.filteredData ?? []], H = w[s] || [], v = { ...I };
3332
3334
  let B = 0;
3333
3335
  if (P)
3334
- H.length && (M.splice(c + 1, 0, ...H), B = H.length);
3336
+ H.length && (F.splice(c + 1, 0, ...H), B = H.length);
3335
3337
  else {
3336
- let D = -1;
3337
- for (let _ = 0; _ < M.length; _++)
3338
- if ((M[_].id || M[_][e.uniqueIdField]) == s) {
3339
- D = _;
3338
+ let S = -1;
3339
+ for (let _ = 0; _ < F.length; _++)
3340
+ if ((F[_].id || F[_][e.uniqueIdField]) == s) {
3341
+ S = _;
3340
3342
  break;
3341
3343
  }
3342
- D === -1 && (D = ((re = I[s]) == null ? void 0 : re.rowIndex) || c);
3343
- let x = 0;
3344
+ S === -1 && (S = ((re = I[s]) == null ? void 0 : re.rowIndex) || c);
3345
+ let N = 0;
3344
3346
  Object.keys(I).forEach((_) => {
3345
- _.startsWith(s) && (delete G[_], x += I[_].count);
3346
- }), M.splice(D + 1, x);
3347
+ _.startsWith(s) && (delete v[_], N += I[_].count);
3348
+ }), F.splice(S + 1, N);
3347
3349
  }
3348
3350
  const R = { ...w };
3349
- let m = { ...e.rowGroupState.pagination };
3351
+ let T = { ...e.rowGroupState.pagination };
3350
3352
  return e.purgeClosedRowNodes && !P && (Object.keys(I).filter(
3351
- (x) => x.startsWith(s)
3352
- ).forEach((x) => {
3353
- delete R[x], delete m[x];
3354
- }), m = {
3355
- ...m,
3353
+ (N) => N.startsWith(s)
3354
+ ).forEach((N) => {
3355
+ delete R[N], delete T[N];
3356
+ }), T = {
3357
+ ...T,
3356
3358
  [s]: {
3357
- ...m[s],
3359
+ ...T[s],
3358
3360
  hasMore: !1
3359
3361
  }
3360
3362
  }), (Ae = (ae = e.callBackRef) == null ? void 0 : ae.current) != null && Ae.onRowGroupOpened && e.callBackRef.current.onRowGroupOpened({
@@ -3364,13 +3366,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3364
3366
  isExpanded: P
3365
3367
  }), {
3366
3368
  ...e,
3367
- filteredData: M,
3368
- data: M,
3369
+ filteredData: F,
3370
+ data: F,
3369
3371
  rowGroupState: {
3370
3372
  ...e.rowGroupState,
3371
3373
  isLoadingSomething: P,
3372
3374
  loadedData: R,
3373
- pagination: m,
3375
+ pagination: T,
3374
3376
  expandedGroups: P ? {
3375
3377
  ...e.rowGroupState.expandedGroups,
3376
3378
  [s]: {
@@ -3378,23 +3380,23 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3378
3380
  rowIndex: c,
3379
3381
  count: B,
3380
3382
  fieldName: h,
3381
- value: T
3383
+ value: m
3382
3384
  }
3383
- } : G
3385
+ } : v
3384
3386
  }
3385
3387
  };
3386
3388
  }
3387
3389
  case a.SET_ROW_GROUP_DATA: {
3388
- const { groupId: s, data: c, append: h } = n.payload, T = s.split("/").length, I = c.map((G, B) => ({
3389
- ...G,
3390
+ const { groupId: s, data: c, append: h } = n.payload, m = s.split("/").length, I = c.map((v, B) => ({
3391
+ ...v,
3390
3392
  isChildGroup: !0,
3391
3393
  childIndex: B,
3392
- groupingLevel: T,
3393
- __parentPath: G.__parentPath ? `${G.__parentPath}/${s}` : s
3394
- })), w = (b = e.rowGroupState.expandedGroups[s]) == null ? void 0 : b.rowIndex, P = e.rowGroupState.loadedData[s] || [], M = h ? [...P, ...I] : I, H = [...e.filteredData ?? []];
3394
+ groupingLevel: m,
3395
+ __parentPath: v.__parentPath ? `${v.__parentPath}/${s}` : s
3396
+ })), w = (b = e.rowGroupState.expandedGroups[s]) == null ? void 0 : b.rowIndex, P = e.rowGroupState.loadedData[s] || [], F = h ? [...P, ...I] : I, H = [...e.filteredData ?? []];
3395
3397
  if (w >= 0) {
3396
- const G = h ? w + 1 + P.length : w + 1;
3397
- H.splice(G, 0, ...I);
3398
+ const v = h ? w + 1 + P.length : w + 1;
3399
+ H.splice(v, 0, ...I);
3398
3400
  }
3399
3401
  return e.rowGroupState.expandedGroups[s] ? {
3400
3402
  ...e,
@@ -3404,13 +3406,13 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3404
3406
  ...e.rowGroupState,
3405
3407
  loadedData: {
3406
3408
  ...e.rowGroupState.loadedData,
3407
- [s]: M
3409
+ [s]: F
3408
3410
  },
3409
3411
  expandedGroups: {
3410
3412
  ...e.rowGroupState.expandedGroups,
3411
3413
  [s]: {
3412
3414
  ...e.rowGroupState.expandedGroups[s],
3413
- count: M.length
3415
+ count: F.length
3414
3416
  }
3415
3417
  },
3416
3418
  cache: e.purgeClosedRowNodes ? { metadata: {}, expirationTime: 0 } : {
@@ -3457,9 +3459,9 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3457
3459
  };
3458
3460
  }
3459
3461
  case a.CLEAR_ROW_GROUP_CACHE: {
3460
- const { groupId: s } = n.payload, c = { ...e.rowGroupState.loadedData }, h = { ...e.rowGroupState.pagination }, T = { ...e.rowGroupState.cache.metadata };
3461
- return s ? (delete c[s], delete h[s], delete T[s]) : (Object.keys(c).forEach((I) => delete c[I]), Object.keys(h).forEach((I) => delete h[I]), Object.keys(T).forEach(
3462
- (I) => delete T[I]
3462
+ const { groupId: s } = n.payload, c = { ...e.rowGroupState.loadedData }, h = { ...e.rowGroupState.pagination }, m = { ...e.rowGroupState.cache.metadata };
3463
+ return s ? (delete c[s], delete h[s], delete m[s]) : (Object.keys(c).forEach((I) => delete c[I]), Object.keys(h).forEach((I) => delete h[I]), Object.keys(m).forEach(
3464
+ (I) => delete m[I]
3463
3465
  )), {
3464
3466
  ...e,
3465
3467
  rowGroupState: {
@@ -3468,7 +3470,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3468
3470
  pagination: h,
3469
3471
  cache: {
3470
3472
  ...e.rowGroupState.cache,
3471
- metadata: T
3473
+ metadata: m
3472
3474
  }
3473
3475
  }
3474
3476
  };
@@ -3573,7 +3575,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3573
3575
  0,
3574
3576
  null,
3575
3577
  ((V = e.defaultColDef) == null ? void 0 : V.minWidth) || 150
3576
- ), { columns: h, frozenData: T } = we(
3578
+ ), { columns: h, frozenData: m } = we(
3577
3579
  c,
3578
3580
  e.defaultColDef || { minWidth: 150 }
3579
3581
  );
@@ -3581,7 +3583,7 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3581
3583
  ...e,
3582
3584
  expandedColumnGroups: s,
3583
3585
  columns: h,
3584
- frozenColumns: T
3586
+ frozenColumns: m
3585
3587
  };
3586
3588
  }
3587
3589
  case a.SET_SMART_GRID_MENU_OPTIONS:
@@ -3695,25 +3697,25 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3695
3697
  if (!s && be(e))
3696
3698
  return e;
3697
3699
  if (s) {
3698
- const c = Xe(e), h = e.columns.some((B) => B.aggFunc), T = [], I = {};
3700
+ const c = Xe(e), h = e.columns.some((B) => B.aggFunc), m = [], I = {};
3699
3701
  let w = 0;
3700
- const { uniqueIdField: P, childKeyField: M, rowSpanColumn: H, api: G } = e;
3702
+ const { uniqueIdField: P, childKeyField: F, rowSpanColumn: H, api: v } = e;
3701
3703
  for (const B of c) {
3702
- const R = String(B[P]), m = B[M] || [];
3703
- if (m.length > 0) {
3704
- let x, _ = null;
3704
+ const R = String(B[P]), T = B[F] || [];
3705
+ if (T.length > 0) {
3706
+ let N, _ = null;
3705
3707
  if (h) {
3706
3708
  const { aggreRow: ce, aggreChildRows: he } = Pe(
3707
3709
  e,
3708
- m,
3710
+ T,
3709
3711
  B,
3710
3712
  1,
3711
3713
  w,
3712
3714
  R
3713
3715
  );
3714
- _ = ce, x = he;
3716
+ _ = ce, N = he;
3715
3717
  } else
3716
- x = m.map(
3718
+ N = T.map(
3717
3719
  (ce) => ({
3718
3720
  ...ce,
3719
3721
  __parentPath: R,
@@ -3723,36 +3725,36 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3723
3725
  groupingLevel: 1
3724
3726
  })
3725
3727
  );
3726
- const ie = m.length + (_ ? 1 : 0);
3728
+ const ie = T.length + (_ ? 1 : 0);
3727
3729
  I[R] = {
3728
3730
  rowId: R,
3729
3731
  rowIndex: w,
3730
3732
  childRowsCount: ie
3731
3733
  };
3732
3734
  const q = Ne(
3733
- [B, ...x],
3735
+ [B, ...N],
3734
3736
  H,
3735
- G
3737
+ v
3736
3738
  );
3737
- _ ? (T.push(...q, _), w += q.length + 1) : (T.push(...q), w += q.length);
3739
+ _ ? (m.push(...q, _), w += q.length + 1) : (m.push(...q), w += q.length);
3738
3740
  } else
3739
- T.push(B), w += 1;
3741
+ m.push(B), w += 1;
3740
3742
  }
3741
- return me(e, T), {
3743
+ return Te(e, m), {
3742
3744
  ...e,
3743
3745
  expandedChildRows: I,
3744
- filteredData: T,
3745
- data: T
3746
+ filteredData: m,
3747
+ data: m
3746
3748
  };
3747
3749
  } else {
3748
- const c = Xe(e), h = e.enableRowSpan ? c.map((T) => {
3749
- if (T.__rowSpanInfo) {
3750
- const { __rowSpanInfo: I, ...w } = T;
3750
+ const c = Xe(e), h = e.enableRowSpan ? c.map((m) => {
3751
+ if (m.__rowSpanInfo) {
3752
+ const { __rowSpanInfo: I, ...w } = m;
3751
3753
  return w;
3752
3754
  }
3753
- return T;
3755
+ return m;
3754
3756
  }) : c;
3755
- return me(e, h), {
3757
+ return Te(e, h), {
3756
3758
  ...e,
3757
3759
  expandedChildRows: {},
3758
3760
  filteredData: h,
@@ -3761,17 +3763,17 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3761
3763
  }
3762
3764
  }
3763
3765
  case a.EXPAND_ROW_WITH_NESTED_CHILDREN: {
3764
- const { rowId: s, rowIndex: c, expand: h } = n.payload, { uniqueIdField: T, childKeyField: I, rowSpanColumn: w, api: P, columns: M } = e;
3766
+ const { rowId: s, rowIndex: c, expand: h } = n.payload, { uniqueIdField: m, childKeyField: I, rowSpanColumn: w, api: P, columns: F } = e;
3765
3767
  if (h) {
3766
- const H = e.filteredData || [], G = H[c];
3767
- if (!G) return e;
3768
- const B = M.some((q) => q.aggFunc), R = { ...e.expandedChildRows }, m = (q, ce, he, Ie) => {
3768
+ const H = e.filteredData || [], v = H[c];
3769
+ if (!v) return e;
3770
+ const B = F.some((q) => q.aggFunc), R = { ...e.expandedChildRows }, T = (q, ce, he, Ie) => {
3769
3771
  const te = q[I] || [];
3770
3772
  if (te.length === 0) return [q];
3771
3773
  const W = Ie.value;
3772
3774
  let Re, Me = null;
3773
3775
  if (B) {
3774
- const { aggreRow: Te, aggreChildRows: He } = Pe(
3776
+ const { aggreRow: me, aggreChildRows: He } = Pe(
3775
3777
  e,
3776
3778
  te,
3777
3779
  q,
@@ -3779,10 +3781,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3779
3781
  W,
3780
3782
  ce
3781
3783
  );
3782
- Me = Te, Re = He;
3784
+ Me = me, Re = He;
3783
3785
  } else
3784
- Re = te.map((Te) => ({
3785
- ...Te,
3786
+ Re = te.map((me) => ({
3787
+ ...me,
3786
3788
  __parentPath: ce,
3787
3789
  level: he,
3788
3790
  parentRowIndex: W,
@@ -3801,10 +3803,10 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3801
3803
  ) : [q, ...Re], Fe = [rn[0]];
3802
3804
  Ie.value += 1;
3803
3805
  const yn = Re.length;
3804
- for (let Te = 0; Te < yn; Te++) {
3805
- const He = Re[Te], An = rn[Te + 1], je = He[I];
3806
+ for (let me = 0; me < yn; me++) {
3807
+ const He = Re[me], An = rn[me + 1], je = He[I];
3806
3808
  if ((je == null ? void 0 : je.length) > 0) {
3807
- const Qn = String(He[T]), xn = m(
3809
+ const Qn = String(He[m]), xn = T(
3808
3810
  An,
3809
3811
  `${ce}/${Qn}`,
3810
3812
  he + 1,
@@ -3815,14 +3817,14 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3815
3817
  Fe.push(An), Ie.value += 1;
3816
3818
  }
3817
3819
  return Me && (Fe.push(Me), Ie.value += 1), Fe;
3818
- }, D = m(G, s, 1, {
3820
+ }, S = T(v, s, 1, {
3819
3821
  value: c
3820
- }), x = H.slice(0, c), _ = H.slice(c + 1), ie = [
3821
- ...x,
3822
- ...D,
3822
+ }), N = H.slice(0, c), _ = H.slice(c + 1), ie = [
3823
+ ...N,
3824
+ ...S,
3823
3825
  ..._
3824
3826
  ];
3825
- return me(e, ie), {
3827
+ return Te(e, ie), {
3826
3828
  ...e,
3827
3829
  expandedChildRows: R,
3828
3830
  filteredData: ie,
@@ -3830,25 +3832,25 @@ const Ut = (e) => /* @__PURE__ */ X.createElement("svg", { width: "1em", height:
3830
3832
  };
3831
3833
  } else {
3832
3834
  if (!e.expandedChildRows[s]) return e;
3833
- const H = e.filteredData || [], G = { ...e.expandedChildRows }, B = `${s}/`;
3835
+ const H = e.filteredData || [], v = { ...e.expandedChildRows }, B = `${s}/`;
3834
3836
  let R = 0;
3835
- const m = [];
3836
- for (const x of Object.keys(G))
3837
- (x === s || x.startsWith(B)) && (R += G[x].childRowsCount, m.push(x));
3838
- for (const x of m)
3839
- delete G[x];
3840
- const D = [
3837
+ const T = [];
3838
+ for (const N of Object.keys(v))
3839
+ (N === s || N.startsWith(B)) && (R += v[N].childRowsCount, T.push(N));
3840
+ for (const N of T)
3841
+ delete v[N];
3842
+ const S = [
3841
3843
  ...H.slice(0, c + 1),
3842
3844
  ...H.slice(c + 1 + R)
3843
3845
  ];
3844
- return (le = D[c]) != null && le.__rowSpanInfo && (D[c] = {
3845
- ...D[c],
3846
+ return (le = S[c]) != null && le.__rowSpanInfo && (S[c] = {
3847
+ ...S[c],
3846
3848
  __rowSpanInfo: void 0
3847
- }), me(e, D), {
3849
+ }), Te(e, S), {
3848
3850
  ...e,
3849
- expandedChildRows: G,
3850
- filteredData: D,
3851
- data: D
3851
+ expandedChildRows: v,
3852
+ filteredData: S,
3853
+ data: S
3852
3854
  };
3853
3855
  }
3854
3856
  }
@@ -3926,7 +3928,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
3926
3928
  // Align with right edge of button
3927
3929
  AUTO: "auto"
3928
3930
  // Automatically determine based on available space
3929
- }, Tt = (e, n, t, r, i) => {
3931
+ }, mt = (e, n, t, r, i) => {
3930
3932
  const A = {};
3931
3933
  switch (e) {
3932
3934
  case ge.TOP:
@@ -3944,7 +3946,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
3944
3946
  break;
3945
3947
  }
3946
3948
  return A;
3947
- }, mt = ({
3949
+ }, Tt = ({
3948
3950
  options: e = [],
3949
3951
  selectedElement: n,
3950
3952
  iconPlacement: t,
@@ -3968,13 +3970,13 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
3968
3970
  // When true, prevents position flipping even if there's not enough space
3969
3971
  onClick: O
3970
3972
  }) => {
3971
- const [S, F] = Qe({
3973
+ const [D, y] = Qe({
3972
3974
  top: 0,
3973
3975
  left: 0,
3974
3976
  width: 0,
3975
3977
  visibility: "hidden"
3976
3978
  // Hide menu initially until positioned
3977
- }), [k, Q] = Qe("entered"), [y, U] = Qe(d), [N, j] = Qe("center"), [Y, J] = Qe(
3979
+ }), [k, x] = Qe("entered"), [Q, U] = Qe(d), [G, j] = Qe("center"), [Y, J] = Qe(
3978
3980
  null
3979
3981
  ), Z = De(
3980
3982
  null
@@ -3985,8 +3987,8 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
3985
3987
  i(!1);
3986
3988
  return;
3987
3989
  }
3988
- Q("exiting"), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
3989
- i(!1), Q("entered");
3990
+ x("exiting"), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
3991
+ i(!1), x("entered");
3990
3992
  }, 150);
3991
3993
  }, [i, f]), ne = pe(
3992
3994
  (b) => {
@@ -4034,8 +4036,8 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4034
4036
  }
4035
4037
  }, [A, o, r]), Ee(() => {
4036
4038
  if (r && (A != null && A.current || o || C != null && C.current)) {
4037
- f || (Q("entering"), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
4038
- Q("entered");
4039
+ f || (x("entering"), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
4040
+ x("entered");
4039
4041
  }, 200));
4040
4042
  const b = (C == null ? void 0 : C.current) || (A == null ? void 0 : A.current) || o, V = (b == null ? void 0 : b.getBoundingClientRect()) || {
4041
4043
  top: 0,
@@ -4047,29 +4049,29 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4047
4049
  };
4048
4050
  let le = { top: 0, left: 0, width: 0 }, s = !1;
4049
4051
  L !== document.body && L instanceof Element && (le = L.getBoundingClientRect(), s = !0);
4050
- const c = window.innerWidth, h = window.innerHeight, T = E || Math.max(V.width, 150), I = e.length * 40;
4052
+ const c = window.innerWidth, h = window.innerHeight, m = E || Math.max(V.width, 150), I = e.length * 40;
4051
4053
  let w = d;
4052
- const P = V.top > I, M = h - V.bottom > I, H = V.left > T, G = c - V.right > T;
4054
+ const P = V.top > I, F = h - V.bottom > I, H = V.left > m, v = c - V.right > m;
4053
4055
  if (p)
4054
4056
  w = d;
4055
4057
  else
4056
4058
  switch (d) {
4057
4059
  case ge.TOP:
4058
- !P && M && (w = ge.BOTTOM);
4060
+ !P && F && (w = ge.BOTTOM);
4059
4061
  break;
4060
4062
  case ge.BOTTOM:
4061
- !M && P && (w = ge.TOP);
4063
+ !F && P && (w = ge.TOP);
4062
4064
  break;
4063
4065
  case ge.LEFT:
4064
- !H && G && (w = ge.RIGHT);
4066
+ !H && v && (w = ge.RIGHT);
4065
4067
  break;
4066
4068
  case ge.RIGHT:
4067
- !G && H && (w = ge.LEFT);
4069
+ !v && H && (w = ge.LEFT);
4068
4070
  break;
4069
4071
  }
4070
4072
  const B = u && (C != null && C.current) ? C.current.getBoundingClientRect() : V;
4071
4073
  E && (B.width = E);
4072
- const R = Tt(
4074
+ const R = mt(
4073
4075
  w,
4074
4076
  s,
4075
4077
  B,
@@ -4077,27 +4079,27 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4077
4079
  V
4078
4080
  );
4079
4081
  if (w === ge.BOTTOM || w === ge.TOP) {
4080
- let D = g;
4082
+ let S = g;
4081
4083
  if (g === Le.AUTO) {
4082
- const x = V.right + T <= c, _ = V.left - T >= 0;
4083
- x ? D = Le.START : _ ? D = Le.END : D = Le.START;
4084
+ const N = V.right + m <= c, _ = V.left - m >= 0;
4085
+ N ? S = Le.START : _ ? S = Le.END : S = Le.START;
4084
4086
  }
4085
- if (D === Le.START ? s ? R.left = V.left - le.left : R.left = V.left + window.scrollX : D === Le.END && (s ? R.left = V.right - T - le.left : R.left = V.right - T + window.scrollX), s) {
4086
- const x = le.width;
4087
- (R.left ?? 0) + T > x && (R.left = Math.max(0, x - T));
4087
+ if (S === Le.START ? s ? R.left = V.left - le.left : R.left = V.left + window.scrollX : S === Le.END && (s ? R.left = V.right - m - le.left : R.left = V.right - m + window.scrollX), s) {
4088
+ const N = le.width;
4089
+ (R.left ?? 0) + m > N && (R.left = Math.max(0, N - m));
4088
4090
  } else
4089
- (R.left ?? 0) + T > c && (R.left = Math.max(0, c - T));
4091
+ (R.left ?? 0) + m > c && (R.left = Math.max(0, c - m));
4090
4092
  (R.left ?? 0) < 0 && (R.left = 0);
4091
4093
  } else (w === ge.LEFT || w === ge.RIGHT) && (s || (R.top ?? 0) + I > h && (R.top = Math.max(0, h - I)));
4092
- let m = "center";
4094
+ let T = "center";
4093
4095
  if (w === ge.BOTTOM || w === ge.TOP) {
4094
- const D = V.left + V.width / 2, x = c / 2;
4095
- D < x && G ? m = "left" : D >= x && H && (m = "right");
4096
+ const S = V.left + V.width / 2, N = c / 2;
4097
+ S < N && v ? T = "left" : S >= N && H && (T = "right");
4096
4098
  } else if (w === ge.LEFT || w === ge.RIGHT) {
4097
- const D = V.top + V.height / 2, x = h / 2;
4098
- D < x && M ? m = "top" : D >= x && P && (m = "bottom");
4099
+ const S = V.top + V.height / 2, N = h / 2;
4100
+ S < N && F ? T = "top" : S >= N && P && (T = "bottom");
4099
4101
  }
4100
- U(w), j(m), F({
4102
+ U(w), j(T), y({
4101
4103
  top: R.top ?? 0,
4102
4104
  left: R.left ?? 0,
4103
4105
  width: R.width ?? 0,
@@ -4129,15 +4131,15 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4129
4131
  /* @__PURE__ */ Se(
4130
4132
  "div",
4131
4133
  {
4132
- className: `ia-table-menu-submenu d-flex flex-column gap-2 ia-table-position-${y} flip-${N} ${!f && k === "entering" ? "menu-entering" : ""} ${!f && k === "entered" ? "menu-entered" : ""} ${!f && k === "exiting" ? "menu-exiting" : ""} ${u ? "ia-table-submenu-only" : ""}`,
4134
+ className: `ia-table-menu-submenu d-flex flex-column gap-2 ia-table-position-${Q} flip-${G} ${!f && k === "entering" ? "menu-entering" : ""} ${!f && k === "entered" ? "menu-entered" : ""} ${!f && k === "exiting" ? "menu-exiting" : ""} ${u ? "ia-table-submenu-only" : ""}`,
4133
4135
  style: {
4134
- ...S,
4136
+ ...D,
4135
4137
  position: "absolute",
4136
- width: E ? `${E}px` : S.width ? `${S.width}px` : void 0,
4137
- minHeight: S.height ? `${S.height}px` : void 0,
4138
- transform: S.transform,
4139
- transformOrigin: S.transformOrigin,
4140
- visibility: S.visibility || "hidden"
4138
+ width: E ? `${E}px` : D.width ? `${D.width}px` : void 0,
4139
+ minHeight: D.height ? `${D.height}px` : void 0,
4140
+ transform: D.transform,
4141
+ transformOrigin: D.transformOrigin,
4142
+ visibility: D.visibility || "hidden"
4141
4143
  },
4142
4144
  ref: Ae,
4143
4145
  children: [
@@ -4190,7 +4192,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4190
4192
  onMouseEnter: se,
4191
4193
  onMouseLeave: () => fe(b.useHover),
4192
4194
  children: /* @__PURE__ */ de(
4193
- mt,
4195
+ Tt,
4194
4196
  {
4195
4197
  options: b.submenu,
4196
4198
  isOpen: !0,
@@ -4429,13 +4431,13 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4429
4431
  tableApi: l,
4430
4432
  smartGridMenuOptions: p,
4431
4433
  purgeClosedRowNodes: O,
4432
- detailRendererTable: S,
4433
- isSaveViewEnabled: F,
4434
+ detailRendererTable: D,
4435
+ isSaveViewEnabled: y,
4434
4436
  isSavingViewLoading: k,
4435
- savedViewsOptions: Q,
4436
- rowHeight: y,
4437
+ savedViewsOptions: x,
4438
+ rowHeight: Q,
4437
4439
  tableId: U,
4438
- refObj: N,
4440
+ refObj: G,
4439
4441
  callBackRef: j,
4440
4442
  exportCallbackRef: Y,
4441
4443
  saveViewCallbackRef: J,
@@ -4469,7 +4471,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4469
4471
  payload: t || []
4470
4472
  });
4471
4473
  }, [t, e]), Ee(() => {
4472
- const V = Pt(e, N);
4474
+ const V = Pt(e, G);
4473
4475
  e({
4474
4476
  type: a.SET_TABLE_ID,
4475
4477
  payload: U
@@ -4508,10 +4510,10 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4508
4510
  payload: O
4509
4511
  }), e({
4510
4512
  type: a.DETAIL_RENDERER_TABLE,
4511
- payload: S
4513
+ payload: D
4512
4514
  }), e({
4513
4515
  type: a.IS_SAVE_VIEW_ENABLED,
4514
- payload: F
4516
+ payload: y
4515
4517
  }), e({
4516
4518
  type: a.SET_REFS,
4517
4519
  payload: {
@@ -4561,17 +4563,17 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4561
4563
  }, []), Ee(() => {
4562
4564
  e({
4563
4565
  type: a.SET_ROW_HEIGHT,
4564
- payload: y
4566
+ payload: Q
4565
4567
  });
4566
- }, [y]), Ee(() => {
4568
+ }, [Q]), Ee(() => {
4567
4569
  e({
4568
4570
  type: a.SAVE_VIEW_CALLBACKS,
4569
4571
  payload: {
4570
4572
  isSavingViewLoading: k,
4571
- savedViewsOptions: Q
4573
+ savedViewsOptions: x
4572
4574
  }
4573
4575
  });
4574
- }, [Q, k]), Ee(() => {
4576
+ }, [x, k]), Ee(() => {
4575
4577
  e({
4576
4578
  type: a.SET_SERVER_SIDE,
4577
4579
  payload: u
@@ -4598,14 +4600,14 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4598
4600
  infiniteScroll: l = !1,
4599
4601
  rowDragManaged: p,
4600
4602
  pinnedTopRows: O = [],
4601
- pinnedBottomRows: S = [],
4602
- getRowStyle: F,
4603
+ pinnedBottomRows: D = [],
4604
+ getRowStyle: y,
4603
4605
  tableInstance: k,
4604
- smartGridMenuOptions: Q,
4605
- purgeClosedRowNodes: y,
4606
+ smartGridMenuOptions: x,
4607
+ purgeClosedRowNodes: Q,
4606
4608
  detailRendererTable: U,
4607
4609
  // Save View Props
4608
- isSaveViewEnabled: N,
4610
+ isSaveViewEnabled: G,
4609
4611
  isSavingViewLoading: j,
4610
4612
  savedViewsOptions: Y,
4611
4613
  rowHeight: J,
@@ -4630,16 +4632,16 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4630
4632
  const c = De(null), h = De(
4631
4633
  {}
4632
4634
  ), I = wt().getState().dispatch, w = pe(
4633
- (m) => {
4634
- var x, _, ie, q, ce, he;
4635
- I(m);
4636
- const D = h.current.state || {};
4637
- if (D != null && D.api && ((x = D.api) != null && x.dispatchEvent)) {
4638
- const Ie = lt[m.type];
4635
+ (T) => {
4636
+ var N, _, ie, q, ce, he;
4637
+ I(T);
4638
+ const S = h.current.state || {};
4639
+ if (S != null && S.api && ((N = S.api) != null && N.dispatchEvent)) {
4640
+ const Ie = lt[T.type];
4639
4641
  if (Ie) {
4640
- let te = { api: D.api };
4641
- const W = m.payload;
4642
- switch (m.type) {
4642
+ let te = { api: S.api };
4643
+ const W = T.payload;
4644
+ switch (T.type) {
4643
4645
  case a.SET_COLUMN_WIDTH:
4644
4646
  case a.SET_COLUMNS_WIDTH:
4645
4647
  te = {
@@ -4648,7 +4650,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4648
4650
  };
4649
4651
  break;
4650
4652
  case a.REORDER_COLUMNS:
4651
- te = { ...te, columns: m.payload };
4653
+ te = { ...te, columns: T.payload };
4652
4654
  break;
4653
4655
  case a.TOGGLE_COLUMN_VISIBILITY:
4654
4656
  te = {
@@ -4658,36 +4660,36 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4658
4660
  };
4659
4661
  break;
4660
4662
  case a.SET_SORT:
4661
- te = { ...te, sortState: m.payload };
4663
+ te = { ...te, sortState: T.payload };
4662
4664
  break;
4663
4665
  case a.SET_COLUMN_FILTER:
4664
4666
  case a.REMOVE_COLUMN_FILTER:
4665
4667
  case a.APPLY_FILTERS:
4666
- cn(D), te = { ...te, filterState: D.columnFilters };
4668
+ cn(S), te = { ...te, filterState: S.columnFilters };
4667
4669
  break;
4668
4670
  case a.SET_PAGE:
4669
4671
  te = {
4670
4672
  ...te,
4671
4673
  paginationState: {
4672
- ...D.pagination,
4673
- page: m.payload
4674
+ ...S.pagination,
4675
+ page: T.payload
4674
4676
  }
4675
4677
  };
4676
4678
  break;
4677
4679
  case a.SET_PAGE_SIZE:
4678
- cn(D), te = {
4680
+ cn(S), te = {
4679
4681
  ...te,
4680
4682
  paginationState: {
4681
- ...D.pagination,
4682
- pageSize: m.payload
4683
+ ...S.pagination,
4684
+ pageSize: T.payload
4683
4685
  }
4684
4686
  };
4685
4687
  break;
4686
4688
  case a.UPDATE_ROW_DATA:
4687
4689
  te = {
4688
4690
  ...te,
4689
- data: W != null && W.rowId ? (_ = D.data) == null ? void 0 : _.find(
4690
- (Re) => Re[D.uniqueIdField] === (W == null ? void 0 : W.rowId)
4691
+ data: W != null && W.rowId ? (_ = S.data) == null ? void 0 : _.find(
4692
+ (Re) => Re[S.uniqueIdField] === (W == null ? void 0 : W.rowId)
4691
4693
  ) : null,
4692
4694
  column: { field: W == null ? void 0 : W.field },
4693
4695
  newValue: W == null ? void 0 : W.value,
@@ -4702,7 +4704,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4702
4704
  };
4703
4705
  break;
4704
4706
  case a.SET_SELECTED_ROWS:
4705
- te = { ...te, selectedRows: m.payload };
4707
+ te = { ...te, selectedRows: T.payload };
4706
4708
  break;
4707
4709
  case a.TOGGLE_ROW_GROUP:
4708
4710
  te = {
@@ -4729,13 +4731,13 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4729
4731
  };
4730
4732
  break;
4731
4733
  }
4732
- D.api.dispatchEvent(Ie, te);
4734
+ S.api.dispatchEvent(Ie, te);
4733
4735
  }
4734
4736
  }
4735
- !D.tableId || !((q = (ie = c.current) == null ? void 0 : ie.alignedGrids) != null && q.length) || (ce = m.meta) != null && ce.fromAlignedGrid || !st.includes(m.type) || (he = c.current) != null && he.propagateChange && c.current.propagateChange(
4736
- m.type,
4737
- m.payload,
4738
- m.meta
4737
+ !S.tableId || !((q = (ie = c.current) == null ? void 0 : ie.alignedGrids) != null && q.length) || (ce = T.meta) != null && ce.fromAlignedGrid || !st.includes(T.type) || (he = c.current) != null && he.propagateChange && c.current.propagateChange(
4738
+ T.type,
4739
+ T.payload,
4740
+ T.meta
4739
4741
  );
4740
4742
  },
4741
4743
  []
@@ -4743,7 +4745,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4743
4745
  Lt({
4744
4746
  dispatch: I,
4745
4747
  pinnedTopRows: O,
4746
- pinnedBottomRows: S,
4748
+ pinnedBottomRows: D,
4747
4749
  tableInstance: k,
4748
4750
  columnMap: L,
4749
4751
  uniqueIdField: t,
@@ -4756,11 +4758,11 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4756
4758
  infiniteScroll: l,
4757
4759
  initialExpandedColumnGroups: u,
4758
4760
  tableApi: i,
4759
- smartGridMenuOptions: Q,
4760
- purgeClosedRowNodes: y,
4761
+ smartGridMenuOptions: x,
4762
+ purgeClosedRowNodes: Q,
4761
4763
  detailRendererTable: U,
4762
4764
  // Save View Props
4763
- isSaveViewEnabled: N,
4765
+ isSaveViewEnabled: G,
4764
4766
  isSavingViewLoading: j,
4765
4767
  savedViewsOptions: Y,
4766
4768
  rowHeight: J,
@@ -4790,27 +4792,27 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4790
4792
  payload: n,
4791
4793
  meta: { defaultColDef: A }
4792
4794
  });
4793
- const m = setTimeout(() => {
4794
- const D = {};
4795
- let x = !1;
4795
+ const T = setTimeout(() => {
4796
+ const S = {};
4797
+ let N = !1;
4796
4798
  n.forEach((_) => {
4797
- _.width || (x = !0, D[v(_)] = !0);
4798
- }), x && I({
4799
+ _.width || (N = !0, S[M(_)] = !0);
4800
+ }), N && I({
4799
4801
  type: a.AUTOSIZE_COLUMNS_REQUESTED,
4800
- payload: { columnsToAutosize: D }
4802
+ payload: { columnsToAutosize: S }
4801
4803
  });
4802
4804
  }, 100);
4803
- return () => clearTimeout(m);
4805
+ return () => clearTimeout(T);
4804
4806
  }, [n]);
4805
4807
  const P = pe(
4806
- (m, D) => {
4807
- m && w({
4808
+ (T, S) => {
4809
+ T && w({
4808
4810
  type: a.TOGGLE_GROUP_EXPANSION,
4809
- payload: { rowId: String(m), rowIndex: D }
4811
+ payload: { rowId: String(T), rowIndex: S }
4810
4812
  });
4811
4813
  },
4812
4814
  [w]
4813
- ), { propagateChange: M } = Dt(
4815
+ ), { propagateChange: F } = Dt(
4814
4816
  E,
4815
4817
  g,
4816
4818
  i,
@@ -4818,71 +4820,71 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4818
4820
  );
4819
4821
  Ee(() => {
4820
4822
  c.current = {
4821
- propagateChange: M,
4823
+ propagateChange: F,
4822
4824
  alignedGrids: g
4823
4825
  };
4824
- }, [M, g]);
4826
+ }, [F, g]);
4825
4827
  const H = pe(
4826
- (m, D, x = !1) => {
4827
- if (!ke.includes(m)) {
4828
+ (T, S, N = !1) => {
4829
+ if (!ke.includes(T)) {
4828
4830
  console.warn(
4829
- `Invalid event type: ${m}. Valid types are: ${ke.join(
4831
+ `Invalid event type: ${T}. Valid types are: ${ke.join(
4830
4832
  ", "
4831
4833
  )}`
4832
4834
  );
4833
4835
  return;
4834
4836
  }
4835
- if (typeof D != "function") {
4837
+ if (typeof S != "function") {
4836
4838
  console.warn("Event listener must be a function");
4837
4839
  return;
4838
4840
  }
4839
4841
  w({
4840
4842
  type: a.ADD_EVENT_LISTENER,
4841
- payload: { eventType: m, listener: D, once: x }
4843
+ payload: { eventType: T, listener: S, once: N }
4842
4844
  });
4843
4845
  },
4844
4846
  [w]
4845
- ), G = pe(
4846
- (m, D) => {
4847
- if (!ke.includes(m)) {
4847
+ ), v = pe(
4848
+ (T, S) => {
4849
+ if (!ke.includes(T)) {
4848
4850
  console.warn(
4849
- `Invalid event type: ${m}. Valid types are: ${ke.join(
4851
+ `Invalid event type: ${T}. Valid types are: ${ke.join(
4850
4852
  ", "
4851
4853
  )}`
4852
4854
  );
4853
4855
  return;
4854
4856
  }
4855
- if (typeof D != "function") {
4857
+ if (typeof S != "function") {
4856
4858
  console.warn("Event listener must be a function");
4857
4859
  return;
4858
4860
  }
4859
4861
  w({
4860
4862
  type: a.REMOVE_EVENT_LISTENER,
4861
- payload: { eventType: m, listener: D }
4863
+ payload: { eventType: T, listener: S }
4862
4864
  });
4863
4865
  },
4864
4866
  [w]
4865
4867
  ), B = pe(
4866
- (m, D) => {
4867
- const x = St(h.current.state, m, D) || [];
4868
- Array.isArray(x) && x.forEach((_) => {
4869
- G(m, _);
4868
+ (T, S) => {
4869
+ const N = St(h.current.state, T, S) || [];
4870
+ Array.isArray(N) && N.forEach((_) => {
4871
+ v(T, _);
4870
4872
  });
4871
4873
  },
4872
- [G]
4874
+ [v]
4873
4875
  );
4874
4876
  Ee(() => () => {
4875
4877
  I({ type: a.CLEANUP_TABLE_RESOURCES });
4876
4878
  }, []);
4877
4879
  const R = In(() => {
4878
- var m;
4880
+ var T;
4879
4881
  return {
4880
4882
  state: {
4881
- ...((m = h.current) == null ? void 0 : m.state) || {},
4883
+ ...((T = h.current) == null ? void 0 : T.state) || {},
4882
4884
  api: {
4883
4885
  ...i,
4884
4886
  addEventListener: H,
4885
- removeEventListener: G,
4887
+ removeEventListener: v,
4886
4888
  dispatchEvent: B
4887
4889
  }
4888
4890
  },
@@ -4891,14 +4893,14 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4891
4893
  ACTION_TYPES: a,
4892
4894
  toggleGroupExpansion: P,
4893
4895
  dispatchEvent: B,
4894
- getRowStyle: F
4896
+ getRowStyle: y
4895
4897
  };
4896
4898
  }, [
4897
4899
  P,
4898
4900
  B,
4899
- F,
4901
+ y,
4900
4902
  H,
4901
- G,
4903
+ v,
4902
4904
  w,
4903
4905
  i
4904
4906
  ]);
@@ -4908,7 +4910,7 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4908
4910
  {
4909
4911
  refObj: h,
4910
4912
  addEventListener: H,
4911
- removeEventListener: G,
4913
+ removeEventListener: v,
4912
4914
  dispatchEvent: B
4913
4915
  }
4914
4916
  ),
@@ -4962,8 +4964,8 @@ const wt = () => en(tn) || Pn, We = /* @__PURE__ */ new Map(), Sn = (e = "defaul
4962
4964
  const u = pe(() => {
4963
4965
  n();
4964
4966
  }, [n]), C = pe(
4965
- (S) => {
4966
- S.stopPropagation(), d ? d(S) : n(S);
4967
+ (D) => {
4968
+ D.stopPropagation(), d ? d(D) : n(D);
4967
4969
  },
4968
4970
  [d, n]
4969
4971
  );
@@ -5052,7 +5054,7 @@ export {
5052
5054
  Er as J,
5053
5055
  Cr as K,
5054
5056
  cr as L,
5055
- mt as M,
5057
+ Tt as M,
5056
5058
  gr as N,
5057
5059
  ar as P,
5058
5060
  Ut as S,
@@ -5061,8 +5063,8 @@ export {
5061
5063
  Ge as b,
5062
5064
  Ar as c,
5063
5065
  ot as d,
5064
- _t as e,
5065
- Xt as f,
5066
+ Xt as e,
5067
+ _t as f,
5066
5068
  nt as g,
5067
5069
  er as h,
5068
5070
  dr as i,
@@ -5082,5 +5084,5 @@ export {
5082
5084
  nr as w,
5083
5085
  Yt as x,
5084
5086
  Xe as y,
5085
- me as z
5087
+ Te as z
5086
5088
  };