master-data-management-react 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,144 +1,144 @@
1
- import ht, { useRef as Ke, useMemo as Oe, useState as w, useEffect as Pe, useCallback as Ne } from "react";
2
- import { styled as ue, Box as L, Select as Ht, FormControl as Xt, CircularProgress as Ue, Divider as zt, Button as ie, Typography as Ie, Paper as vt, Autocomplete as Je, TextField as te, Menu as qt, MenuItem as He, Alert as Kt } from "@mui/material";
3
- import { AgGridReact as Jt } from "ag-grid-react";
4
- import { ModuleRegistry as Qt, ClientSideRowModelModule as St, AllCommunityModule as Zt } from "ag-grid-community";
5
- const At = (a, u) => ({
1
+ import St, { useRef as ke, useMemo as be, useState as $, useEffect as Ne, useCallback as Oe } from "react";
2
+ import { styled as pe, Box as P, Select as Ht, FormControl as zt, CircularProgress as $e, Divider as Xt, Button as ue, Typography as Le, Paper as vt, Autocomplete as Qe, TextField as ae, Menu as qt, MenuItem as ze, Alert as Jt } from "@mui/material";
3
+ import { AgGridReact as Kt } from "ag-grid-react";
4
+ import { ModuleRegistry as Qt, ClientSideRowModelModule as At, AllCommunityModule as Zt } from "ag-grid-community";
5
+ const Ot = (n, f) => ({
6
6
  getEntities: async () => {
7
- const d = await a.get(u.entities);
7
+ const u = await n.get(f.entities);
8
8
  return {
9
- data: d.data.data ?? d.data
9
+ data: u.data.data ?? u.data
10
10
  };
11
11
  },
12
- getMetadata: async (d) => {
13
- const E = await a.get(u.metadata(d));
12
+ getMetadata: async (u) => {
13
+ const E = await n.get(f.metadata(u));
14
14
  return {
15
15
  data: E.data.data ?? E.data
16
16
  };
17
17
  },
18
- getRecords: async (d, E) => {
19
- const s = await a.get(u.records(d), { params: E });
18
+ getRecords: async (u, E) => {
19
+ const i = await n.get(f.records(u), { params: E });
20
20
  return {
21
- data: s.data.data ?? s.data,
22
- total: s.data.total ?? s.data.count ?? 0
21
+ data: i.data.data ?? i.data,
22
+ total: i.data.total ?? i.data.count ?? 0
23
23
  };
24
24
  },
25
- getRecord: async (d, E) => {
26
- const s = await a.get(u.recordById(d, E));
25
+ getRecord: async (u, E) => {
26
+ const i = await n.get(f.recordById(u, E));
27
27
  return {
28
- data: s.data.data ?? s.data
28
+ data: i.data.data ?? i.data
29
29
  };
30
30
  },
31
- createRecord: async (d, E) => {
32
- const s = await a.post(u.records(d), E);
31
+ createRecord: async (u, E) => {
32
+ const i = await n.post(f.records(u), E);
33
33
  return {
34
- data: s.data.data ?? s.data
34
+ data: i.data.data ?? i.data
35
35
  };
36
36
  },
37
- updateRecord: async (d, E, s) => {
38
- const k = await a.put(u.recordById(d, E), s);
37
+ updateRecord: async (u, E, i) => {
38
+ const G = await n.put(f.recordById(u, E), i);
39
39
  return {
40
- data: k.data.data ?? k.data
40
+ data: G.data.data ?? G.data
41
41
  };
42
42
  },
43
- deleteRecord: async (d, E) => {
44
- const s = await a.delete(u.recordById(d, E));
43
+ deleteRecord: async (u, E) => {
44
+ const i = await n.delete(f.recordById(u, E));
45
45
  return {
46
- data: s.data.data ?? s.data
46
+ data: i.data.data ?? i.data
47
47
  };
48
48
  },
49
- exportCSV: async (d, E) => await a.get(u.exportCSV(d), {
49
+ exportCSV: async (u, E) => await n.get(f.exportCSV(u), {
50
50
  params: E,
51
51
  responseType: "blob"
52
52
  }),
53
- exportExcel: async (d, E) => await a.get(u.exportExcel(d), {
53
+ exportExcel: async (u, E) => await n.get(f.exportExcel(u), {
54
54
  params: E,
55
55
  responseType: "blob"
56
56
  }),
57
- getDropdownOptions: async (d) => {
58
- const E = u.dropdownOptions ? u.dropdownOptions(d) : d, s = await a.get(E);
57
+ getDropdownOptions: async (u) => {
58
+ const E = f.dropdownOptions ? f.dropdownOptions(u) : u, i = await n.get(E);
59
59
  return {
60
- data: s.data.data ?? s.data
60
+ data: i.data.data ?? i.data
61
61
  };
62
62
  }
63
63
  });
64
- var Me = { exports: {} }, De = {};
64
+ var Me = { exports: {} }, ye = {};
65
65
  var dt;
66
66
  function er() {
67
- if (dt) return De;
67
+ if (dt) return ye;
68
68
  dt = 1;
69
- var a = ht, u = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, s = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
70
- function z(p, v, V) {
71
- var S, A = {}, C = null, B = null;
72
- V !== void 0 && (C = "" + V), v.key !== void 0 && (C = "" + v.key), v.ref !== void 0 && (B = v.ref);
73
- for (S in v) E.call(v, S) && !k.hasOwnProperty(S) && (A[S] = v[S]);
74
- if (p && p.defaultProps) for (S in v = p.defaultProps, v) A[S] === void 0 && (A[S] = v[S]);
75
- return { $$typeof: u, type: p, key: C, ref: B, props: A, _owner: s.current };
69
+ var n = St, f = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, i = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, G = { key: !0, ref: !0, __self: !0, __source: !0 };
70
+ function J(T, h, V) {
71
+ var S, v = {}, D = null, B = null;
72
+ V !== void 0 && (D = "" + V), h.key !== void 0 && (D = "" + h.key), h.ref !== void 0 && (B = h.ref);
73
+ for (S in h) E.call(h, S) && !G.hasOwnProperty(S) && (v[S] = h[S]);
74
+ if (T && T.defaultProps) for (S in h = T.defaultProps, h) v[S] === void 0 && (v[S] = h[S]);
75
+ return { $$typeof: f, type: T, key: D, ref: B, props: v, _owner: i.current };
76
76
  }
77
- return De.Fragment = d, De.jsx = z, De.jsxs = z, De;
77
+ return ye.Fragment = u, ye.jsx = J, ye.jsxs = J, ye;
78
78
  }
79
- var xe = {};
80
- var ut;
79
+ var Ce = {};
80
+ var ft;
81
81
  function tr() {
82
- return ut || (ut = 1, process.env.NODE_ENV !== "production" && (function() {
83
- var a = ht, u = /* @__PURE__ */ Symbol.for("react.element"), d = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), s = /* @__PURE__ */ Symbol.for("react.strict_mode"), k = /* @__PURE__ */ Symbol.for("react.profiler"), z = /* @__PURE__ */ Symbol.for("react.provider"), p = /* @__PURE__ */ Symbol.for("react.context"), v = /* @__PURE__ */ Symbol.for("react.forward_ref"), V = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), C = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.offscreen"), re = Symbol.iterator, fe = "@@iterator";
84
- function Q(e) {
82
+ return ft || (ft = 1, process.env.NODE_ENV !== "production" && (function() {
83
+ var n = St, f = /* @__PURE__ */ Symbol.for("react.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), i = /* @__PURE__ */ Symbol.for("react.strict_mode"), G = /* @__PURE__ */ Symbol.for("react.profiler"), J = /* @__PURE__ */ Symbol.for("react.provider"), T = /* @__PURE__ */ Symbol.for("react.context"), h = /* @__PURE__ */ Symbol.for("react.forward_ref"), V = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), v = /* @__PURE__ */ Symbol.for("react.memo"), D = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.offscreen"), ne = Symbol.iterator, Te = "@@iterator";
84
+ function z(e) {
85
85
  if (e === null || typeof e != "object")
86
86
  return null;
87
- var t = re && e[re] || e[fe];
87
+ var t = ne && e[ne] || e[Te];
88
88
  return typeof t == "function" ? t : null;
89
89
  }
90
- var Y = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
91
- function b(e) {
90
+ var Y = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
91
+ function x(e) {
92
92
  {
93
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
94
- n[c - 1] = arguments[c];
95
- j("error", e, n);
93
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), c = 1; c < t; c++)
94
+ o[c - 1] = arguments[c];
95
+ N("error", e, o);
96
96
  }
97
97
  }
98
- function j(e, t, n) {
98
+ function N(e, t, o) {
99
99
  {
100
- var c = Y.ReactDebugCurrentFrame, I = c.getStackAddendum();
101
- I !== "" && (t += "%s", n = n.concat([I]));
102
- var y = n.map(function(g) {
103
- return String(g);
100
+ var c = Y.ReactDebugCurrentFrame, O = c.getStackAddendum();
101
+ O !== "" && (t += "%s", o = o.concat([O]));
102
+ var C = o.map(function(_) {
103
+ return String(_);
104
104
  });
105
- y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
105
+ C.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, C);
106
106
  }
107
107
  }
108
- var ne = !1, U = !1, G = !1, Ee = !1, Z = !1, le;
109
- le = /* @__PURE__ */ Symbol.for("react.module.reference");
110
- function _(e) {
111
- return !!(typeof e == "string" || typeof e == "function" || e === E || e === k || Z || e === s || e === V || e === S || Ee || e === B || ne || U || G || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === A || e.$$typeof === z || e.$$typeof === p || e.$$typeof === v || // This needs to include all possible module reference object
108
+ var se = !1, w = !1, k = !1, me = !1, X = !1, de;
109
+ de = /* @__PURE__ */ Symbol.for("react.module.reference");
110
+ function g(e) {
111
+ return !!(typeof e == "string" || typeof e == "function" || e === E || e === G || X || e === i || e === V || e === S || me || e === B || se || w || k || typeof e == "object" && e !== null && (e.$$typeof === D || e.$$typeof === v || e.$$typeof === J || e.$$typeof === T || e.$$typeof === h || // This needs to include all possible module reference object
112
112
  // types supported by any Flight configuration anywhere since
113
113
  // we don't know which Flight build this will end up being used
114
114
  // with.
115
- e.$$typeof === le || e.getModuleId !== void 0));
115
+ e.$$typeof === de || e.getModuleId !== void 0));
116
116
  }
117
- function T(e, t, n) {
117
+ function p(e, t, o) {
118
118
  var c = e.displayName;
119
119
  if (c)
120
120
  return c;
121
- var I = t.displayName || t.name || "";
122
- return I !== "" ? n + "(" + I + ")" : n;
121
+ var O = t.displayName || t.name || "";
122
+ return O !== "" ? o + "(" + O + ")" : o;
123
123
  }
124
124
  function l(e) {
125
125
  return e.displayName || "Context";
126
126
  }
127
- function f(e) {
127
+ function d(e) {
128
128
  if (e == null)
129
129
  return null;
130
- if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
130
+ if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
131
131
  return e.displayName || e.name || null;
132
132
  if (typeof e == "string")
133
133
  return e;
134
134
  switch (e) {
135
135
  case E:
136
136
  return "Fragment";
137
- case d:
137
+ case u:
138
138
  return "Portal";
139
- case k:
139
+ case G:
140
140
  return "Profiler";
141
- case s:
141
+ case i:
142
142
  return "StrictMode";
143
143
  case V:
144
144
  return "Suspense";
@@ -147,21 +147,21 @@ function tr() {
147
147
  }
148
148
  if (typeof e == "object")
149
149
  switch (e.$$typeof) {
150
- case p:
150
+ case T:
151
151
  var t = e;
152
152
  return l(t) + ".Consumer";
153
- case z:
154
- var n = e;
155
- return l(n._context) + ".Provider";
153
+ case J:
154
+ var o = e;
155
+ return l(o._context) + ".Provider";
156
+ case h:
157
+ return p(e, e.render, "ForwardRef");
156
158
  case v:
157
- return T(e, e.render, "ForwardRef");
158
- case A:
159
159
  var c = e.displayName || null;
160
- return c !== null ? c : f(e.type) || "Memo";
161
- case C: {
162
- var I = e, y = I._payload, g = I._init;
160
+ return c !== null ? c : d(e.type) || "Memo";
161
+ case D: {
162
+ var O = e, C = O._payload, _ = O._init;
163
163
  try {
164
- return f(g(y));
164
+ return d(_(C));
165
165
  } catch {
166
166
  return null;
167
167
  }
@@ -169,18 +169,18 @@ function tr() {
169
169
  }
170
170
  return null;
171
171
  }
172
- var F = Object.assign, O = 0, ee, $, oe, Te, he, se, ye;
173
- function Ce() {
172
+ var M = Object.assign, A = 0, re, F, K, Re, ge, ie, Pe;
173
+ function Ie() {
174
174
  }
175
- Ce.__reactDisabledLog = !0;
176
- function Ge() {
175
+ Ie.__reactDisabledLog = !0;
176
+ function Fe() {
177
177
  {
178
- if (O === 0) {
179
- ee = console.log, $ = console.info, oe = console.warn, Te = console.error, he = console.group, se = console.groupCollapsed, ye = console.groupEnd;
178
+ if (A === 0) {
179
+ re = console.log, F = console.info, K = console.warn, Re = console.error, ge = console.group, ie = console.groupCollapsed, Pe = console.groupEnd;
180
180
  var e = {
181
181
  configurable: !0,
182
182
  enumerable: !0,
183
- value: Ce,
183
+ value: Ie,
184
184
  writable: !0
185
185
  };
186
186
  Object.defineProperties(console, {
@@ -193,100 +193,100 @@ function tr() {
193
193
  groupEnd: e
194
194
  });
195
195
  }
196
- O++;
196
+ A++;
197
197
  }
198
198
  }
199
- function o() {
199
+ function Ge() {
200
200
  {
201
- if (O--, O === 0) {
201
+ if (A--, A === 0) {
202
202
  var e = {
203
203
  configurable: !0,
204
204
  enumerable: !0,
205
205
  writable: !0
206
206
  };
207
207
  Object.defineProperties(console, {
208
- log: F({}, e, {
209
- value: ee
208
+ log: M({}, e, {
209
+ value: re
210
210
  }),
211
- info: F({}, e, {
212
- value: $
211
+ info: M({}, e, {
212
+ value: F
213
213
  }),
214
- warn: F({}, e, {
215
- value: oe
214
+ warn: M({}, e, {
215
+ value: K
216
216
  }),
217
- error: F({}, e, {
218
- value: Te
217
+ error: M({}, e, {
218
+ value: Re
219
219
  }),
220
- group: F({}, e, {
221
- value: he
220
+ group: M({}, e, {
221
+ value: ge
222
222
  }),
223
- groupCollapsed: F({}, e, {
224
- value: se
223
+ groupCollapsed: M({}, e, {
224
+ value: ie
225
225
  }),
226
- groupEnd: F({}, e, {
227
- value: ye
226
+ groupEnd: M({}, e, {
227
+ value: Pe
228
228
  })
229
229
  });
230
230
  }
231
- O < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
231
+ A < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
232
232
  }
233
233
  }
234
- var i = Y.ReactCurrentDispatcher, h;
235
- function x(e, t, n) {
234
+ var r = Y.ReactCurrentDispatcher, s;
235
+ function m(e, t, o) {
236
236
  {
237
- if (h === void 0)
237
+ if (s === void 0)
238
238
  try {
239
239
  throw Error();
240
- } catch (I) {
241
- var c = I.stack.trim().match(/\n( *(at )?)/);
242
- h = c && c[1] || "";
240
+ } catch (O) {
241
+ var c = O.stack.trim().match(/\n( *(at )?)/);
242
+ s = c && c[1] || "";
243
243
  }
244
244
  return `
245
- ` + h + e;
245
+ ` + s + e;
246
246
  }
247
247
  }
248
- var m = !1, N;
248
+ var L = !1, I;
249
249
  {
250
- var ve = typeof WeakMap == "function" ? WeakMap : Map;
251
- N = new ve();
250
+ var y = typeof WeakMap == "function" ? WeakMap : Map;
251
+ I = new y();
252
252
  }
253
- function pe(e, t) {
254
- if (!e || m)
253
+ function Q(e, t) {
254
+ if (!e || L)
255
255
  return "";
256
256
  {
257
- var n = N.get(e);
258
- if (n !== void 0)
259
- return n;
257
+ var o = I.get(e);
258
+ if (o !== void 0)
259
+ return o;
260
260
  }
261
261
  var c;
262
- m = !0;
263
- var I = Error.prepareStackTrace;
262
+ L = !0;
263
+ var O = Error.prepareStackTrace;
264
264
  Error.prepareStackTrace = void 0;
265
- var y;
266
- y = i.current, i.current = null, Ge();
265
+ var C;
266
+ C = r.current, r.current = null, Fe();
267
267
  try {
268
268
  if (t) {
269
- var g = function() {
269
+ var _ = function() {
270
270
  throw Error();
271
271
  };
272
- if (Object.defineProperty(g.prototype, "props", {
272
+ if (Object.defineProperty(_.prototype, "props", {
273
273
  set: function() {
274
274
  throw Error();
275
275
  }
276
276
  }), typeof Reflect == "object" && Reflect.construct) {
277
277
  try {
278
- Reflect.construct(g, []);
278
+ Reflect.construct(_, []);
279
279
  } catch (H) {
280
280
  c = H;
281
281
  }
282
- Reflect.construct(e, [], g);
282
+ Reflect.construct(e, [], _);
283
283
  } else {
284
284
  try {
285
- g.call();
285
+ _.call();
286
286
  } catch (H) {
287
287
  c = H;
288
288
  }
289
- e.call(g.prototype);
289
+ e.call(_.prototype);
290
290
  }
291
291
  } else {
292
292
  try {
@@ -300,122 +300,122 @@ function tr() {
300
300
  if (H && c && typeof H.stack == "string") {
301
301
  for (var R = H.stack.split(`
302
302
  `), W = c.stack.split(`
303
- `), P = R.length - 1, M = W.length - 1; P >= 1 && M >= 0 && R[P] !== W[M]; )
304
- M--;
305
- for (; P >= 1 && M >= 0; P--, M--)
306
- if (R[P] !== W[M]) {
307
- if (P !== 1 || M !== 1)
303
+ `), j = R.length - 1, U = W.length - 1; j >= 1 && U >= 0 && R[j] !== W[U]; )
304
+ U--;
305
+ for (; j >= 1 && U >= 0; j--, U--)
306
+ if (R[j] !== W[U]) {
307
+ if (j !== 1 || U !== 1)
308
308
  do
309
- if (P--, M--, M < 0 || R[P] !== W[M]) {
310
- var K = `
311
- ` + R[P].replace(" at new ", " at ");
312
- return e.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, K), K;
309
+ if (j--, U--, U < 0 || R[j] !== W[U]) {
310
+ var ee = `
311
+ ` + R[j].replace(" at new ", " at ");
312
+ return e.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", e.displayName)), typeof e == "function" && I.set(e, ee), ee;
313
313
  }
314
- while (P >= 1 && M >= 0);
314
+ while (j >= 1 && U >= 0);
315
315
  break;
316
316
  }
317
317
  }
318
318
  } finally {
319
- m = !1, i.current = y, o(), Error.prepareStackTrace = I;
319
+ L = !1, r.current = C, Ge(), Error.prepareStackTrace = O;
320
320
  }
321
- var Ae = e ? e.displayName || e.name : "", ge = Ae ? x(Ae) : "";
322
- return typeof e == "function" && N.set(e, ge), ge;
321
+ var Ae = e ? e.displayName || e.name : "", he = Ae ? m(Ae) : "";
322
+ return typeof e == "function" && I.set(e, he), he;
323
323
  }
324
- function je(e, t, n) {
325
- return pe(e, !1);
324
+ function Se(e, t, o) {
325
+ return Q(e, !1);
326
326
  }
327
- function me(e) {
327
+ function _e(e) {
328
328
  var t = e.prototype;
329
329
  return !!(t && t.isReactComponent);
330
330
  }
331
- function Re(e, t, n) {
331
+ function oe(e, t, o) {
332
332
  if (e == null)
333
333
  return "";
334
334
  if (typeof e == "function")
335
- return pe(e, me(e));
335
+ return Q(e, _e(e));
336
336
  if (typeof e == "string")
337
- return x(e);
337
+ return m(e);
338
338
  switch (e) {
339
339
  case V:
340
- return x("Suspense");
340
+ return m("Suspense");
341
341
  case S:
342
- return x("SuspenseList");
342
+ return m("SuspenseList");
343
343
  }
344
344
  if (typeof e == "object")
345
345
  switch (e.$$typeof) {
346
+ case h:
347
+ return Se(e.render);
346
348
  case v:
347
- return je(e.render);
348
- case A:
349
- return Re(e.type, t, n);
350
- case C: {
351
- var c = e, I = c._payload, y = c._init;
349
+ return oe(e.type, t, o);
350
+ case D: {
351
+ var c = e, O = c._payload, C = c._init;
352
352
  try {
353
- return Re(y(I), t, n);
353
+ return oe(C(O), t, o);
354
354
  } catch {
355
355
  }
356
356
  }
357
357
  }
358
358
  return "";
359
359
  }
360
- var q = Object.prototype.hasOwnProperty, D = {}, ae = Y.ReactDebugCurrentFrame;
361
- function _e(e) {
360
+ var fe = Object.prototype.hasOwnProperty, le = {}, b = Y.ReactDebugCurrentFrame;
361
+ function Z(e) {
362
362
  if (e) {
363
- var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
364
- ae.setExtraStackFrame(n);
363
+ var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
364
+ b.setExtraStackFrame(o);
365
365
  } else
366
- ae.setExtraStackFrame(null);
366
+ b.setExtraStackFrame(null);
367
367
  }
368
- function Fe(e, t, n, c, I) {
368
+ function je(e, t, o, c, O) {
369
369
  {
370
- var y = Function.call.bind(q);
371
- for (var g in e)
372
- if (y(e, g)) {
370
+ var C = Function.call.bind(fe);
371
+ for (var _ in e)
372
+ if (C(e, _)) {
373
373
  var R = void 0;
374
374
  try {
375
- if (typeof e[g] != "function") {
376
- var W = Error((c || "React class") + ": " + n + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
375
+ if (typeof e[_] != "function") {
376
+ var W = Error((c || "React class") + ": " + o + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
377
377
  throw W.name = "Invariant Violation", W;
378
378
  }
379
- R = e[g](t, g, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
380
- } catch (P) {
381
- R = P;
379
+ R = e[_](t, _, c, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
380
+ } catch (j) {
381
+ R = j;
382
382
  }
383
- R && !(R instanceof Error) && (_e(I), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, g, typeof R), _e(null)), R instanceof Error && !(R.message in D) && (D[R.message] = !0, _e(I), b("Failed %s type: %s", n, R.message), _e(null));
383
+ R && !(R instanceof Error) && (Z(O), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", o, _, typeof R), Z(null)), R instanceof Error && !(R.message in le) && (le[R.message] = !0, Z(O), x("Failed %s type: %s", o, R.message), Z(null));
384
384
  }
385
385
  }
386
386
  }
387
- var It = Array.isArray;
388
- function ke(e) {
389
- return It(e);
387
+ var we = Array.isArray;
388
+ function Ve(e) {
389
+ return we(e);
390
390
  }
391
391
  function yt(e) {
392
392
  {
393
- var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
394
- return n;
393
+ var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
394
+ return o;
395
395
  }
396
396
  }
397
397
  function Ct(e) {
398
398
  try {
399
- return Qe(e), !1;
399
+ return Ze(e), !1;
400
400
  } catch {
401
401
  return !0;
402
402
  }
403
403
  }
404
- function Qe(e) {
404
+ function Ze(e) {
405
405
  return "" + e;
406
406
  }
407
- function Ze(e) {
407
+ function et(e) {
408
408
  if (Ct(e))
409
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), Qe(e);
409
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), Ze(e);
410
410
  }
411
- var et = Y.ReactCurrentOwner, Dt = {
411
+ var tt = Y.ReactCurrentOwner, Dt = {
412
412
  key: !0,
413
413
  ref: !0,
414
414
  __self: !0,
415
415
  __source: !0
416
- }, tt, rt;
416
+ }, rt, at;
417
417
  function xt(e) {
418
- if (q.call(e, "ref")) {
418
+ if (fe.call(e, "ref")) {
419
419
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
420
420
  if (t && t.isReactWarning)
421
421
  return !1;
@@ -423,7 +423,7 @@ function tr() {
423
423
  return e.ref !== void 0;
424
424
  }
425
425
  function bt(e) {
426
- if (q.call(e, "key")) {
426
+ if (fe.call(e, "key")) {
427
427
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
428
428
  if (t && t.isReactWarning)
429
429
  return !1;
@@ -431,41 +431,41 @@ function tr() {
431
431
  return e.key !== void 0;
432
432
  }
433
433
  function Nt(e, t) {
434
- typeof e.ref == "string" && et.current;
434
+ typeof e.ref == "string" && tt.current;
435
435
  }
436
436
  function Lt(e, t) {
437
437
  {
438
- var n = function() {
439
- tt || (tt = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
438
+ var o = function() {
439
+ rt || (rt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
440
440
  };
441
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
442
- get: n,
441
+ o.isReactWarning = !0, Object.defineProperty(e, "key", {
442
+ get: o,
443
443
  configurable: !0
444
444
  });
445
445
  }
446
446
  }
447
447
  function Pt(e, t) {
448
448
  {
449
- var n = function() {
450
- rt || (rt = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
449
+ var o = function() {
450
+ at || (at = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
451
451
  };
452
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
453
- get: n,
452
+ o.isReactWarning = !0, Object.defineProperty(e, "ref", {
453
+ get: o,
454
454
  configurable: !0
455
455
  });
456
456
  }
457
457
  }
458
- var jt = function(e, t, n, c, I, y, g) {
458
+ var Ft = function(e, t, o, c, O, C, _) {
459
459
  var R = {
460
460
  // This tag allows us to uniquely identify this as a React Element
461
- $$typeof: u,
461
+ $$typeof: f,
462
462
  // Built-in properties that belong on the element
463
463
  type: e,
464
464
  key: t,
465
- ref: n,
466
- props: g,
465
+ ref: o,
466
+ props: _,
467
467
  // Record the component responsible for creating this element.
468
- _owner: y
468
+ _owner: C
469
469
  };
470
470
  return R._store = {}, Object.defineProperty(R._store, "validated", {
471
471
  configurable: !1,
@@ -481,44 +481,44 @@ function tr() {
481
481
  configurable: !1,
482
482
  enumerable: !1,
483
483
  writable: !1,
484
- value: I
484
+ value: O
485
485
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
486
486
  };
487
- function Ft(e, t, n, c, I) {
487
+ function jt(e, t, o, c, O) {
488
488
  {
489
- var y, g = {}, R = null, W = null;
490
- n !== void 0 && (Ze(n), R = "" + n), bt(t) && (Ze(t.key), R = "" + t.key), xt(t) && (W = t.ref, Nt(t, I));
491
- for (y in t)
492
- q.call(t, y) && !Dt.hasOwnProperty(y) && (g[y] = t[y]);
489
+ var C, _ = {}, R = null, W = null;
490
+ o !== void 0 && (et(o), R = "" + o), bt(t) && (et(t.key), R = "" + t.key), xt(t) && (W = t.ref, Nt(t, O));
491
+ for (C in t)
492
+ fe.call(t, C) && !Dt.hasOwnProperty(C) && (_[C] = t[C]);
493
493
  if (e && e.defaultProps) {
494
- var P = e.defaultProps;
495
- for (y in P)
496
- g[y] === void 0 && (g[y] = P[y]);
494
+ var j = e.defaultProps;
495
+ for (C in j)
496
+ _[C] === void 0 && (_[C] = j[C]);
497
497
  }
498
498
  if (R || W) {
499
- var M = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
500
- R && Lt(g, M), W && Pt(g, M);
499
+ var U = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
500
+ R && Lt(_, U), W && Pt(_, U);
501
501
  }
502
- return jt(e, R, W, I, c, et.current, g);
502
+ return Ft(e, R, W, O, c, tt.current, _);
503
503
  }
504
504
  }
505
- var Ve = Y.ReactCurrentOwner, at = Y.ReactDebugCurrentFrame;
506
- function Se(e) {
505
+ var Ye = Y.ReactCurrentOwner, nt = Y.ReactDebugCurrentFrame;
506
+ function ve(e) {
507
507
  if (e) {
508
- var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
509
- at.setExtraStackFrame(n);
508
+ var t = e._owner, o = oe(e.type, e._source, t ? t.type : null);
509
+ nt.setExtraStackFrame(o);
510
510
  } else
511
- at.setExtraStackFrame(null);
511
+ nt.setExtraStackFrame(null);
512
512
  }
513
- var Ye;
514
- Ye = !1;
515
- function We(e) {
516
- return typeof e == "object" && e !== null && e.$$typeof === u;
513
+ var We;
514
+ We = !1;
515
+ function Be(e) {
516
+ return typeof e == "object" && e !== null && e.$$typeof === f;
517
517
  }
518
- function nt() {
518
+ function ot() {
519
519
  {
520
- if (Ve.current) {
521
- var e = f(Ve.current.type);
520
+ if (Ye.current) {
521
+ var e = d(Ye.current.type);
522
522
  if (e)
523
523
  return `
524
524
 
@@ -527,51 +527,51 @@ Check the render method of \`` + e + "`.";
527
527
  return "";
528
528
  }
529
529
  }
530
- function Mt(e) {
530
+ function wt(e) {
531
531
  return "";
532
532
  }
533
- var ot = {};
534
- function wt(e) {
533
+ var st = {};
534
+ function Mt(e) {
535
535
  {
536
- var t = nt();
536
+ var t = ot();
537
537
  if (!t) {
538
- var n = typeof e == "string" ? e : e.displayName || e.name;
539
- n && (t = `
538
+ var o = typeof e == "string" ? e : e.displayName || e.name;
539
+ o && (t = `
540
540
 
541
- Check the top-level render call using <` + n + ">.");
541
+ Check the top-level render call using <` + o + ">.");
542
542
  }
543
543
  return t;
544
544
  }
545
545
  }
546
- function st(e, t) {
546
+ function it(e, t) {
547
547
  {
548
548
  if (!e._store || e._store.validated || e.key != null)
549
549
  return;
550
550
  e._store.validated = !0;
551
- var n = wt(t);
552
- if (ot[n])
551
+ var o = Mt(t);
552
+ if (st[o])
553
553
  return;
554
- ot[n] = !0;
554
+ st[o] = !0;
555
555
  var c = "";
556
- e && e._owner && e._owner !== Ve.current && (c = " It was passed a child from " + f(e._owner.type) + "."), Se(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, c), Se(null);
556
+ e && e._owner && e._owner !== Ye.current && (c = " It was passed a child from " + d(e._owner.type) + "."), ve(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, c), ve(null);
557
557
  }
558
558
  }
559
- function it(e, t) {
559
+ function lt(e, t) {
560
560
  {
561
561
  if (typeof e != "object")
562
562
  return;
563
- if (ke(e))
564
- for (var n = 0; n < e.length; n++) {
565
- var c = e[n];
566
- We(c) && st(c, t);
563
+ if (Ve(e))
564
+ for (var o = 0; o < e.length; o++) {
565
+ var c = e[o];
566
+ Be(c) && it(c, t);
567
567
  }
568
- else if (We(e))
568
+ else if (Be(e))
569
569
  e._store && (e._store.validated = !0);
570
570
  else if (e) {
571
- var I = Q(e);
572
- if (typeof I == "function" && I !== e.entries)
573
- for (var y = I.call(e), g; !(g = y.next()).done; )
574
- We(g.value) && st(g.value, t);
571
+ var O = z(e);
572
+ if (typeof O == "function" && O !== e.entries)
573
+ for (var C = O.call(e), _; !(_ = C.next()).done; )
574
+ Be(_.value) && it(_.value, t);
575
575
  }
576
576
  }
577
577
  }
@@ -580,108 +580,108 @@ Check the top-level render call using <` + n + ">.");
580
580
  var t = e.type;
581
581
  if (t == null || typeof t == "string")
582
582
  return;
583
- var n;
583
+ var o;
584
584
  if (typeof t == "function")
585
- n = t.propTypes;
586
- else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
585
+ o = t.propTypes;
586
+ else if (typeof t == "object" && (t.$$typeof === h || // Note: Memo only checks outer props here.
587
587
  // Inner props are checked in the reconciler.
588
- t.$$typeof === A))
589
- n = t.propTypes;
588
+ t.$$typeof === v))
589
+ o = t.propTypes;
590
590
  else
591
591
  return;
592
- if (n) {
593
- var c = f(t);
594
- Fe(n, e.props, "prop", c, e);
595
- } else if (t.PropTypes !== void 0 && !Ye) {
596
- Ye = !0;
597
- var I = f(t);
598
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
592
+ if (o) {
593
+ var c = d(t);
594
+ je(o, e.props, "prop", c, e);
595
+ } else if (t.PropTypes !== void 0 && !We) {
596
+ We = !0;
597
+ var O = d(t);
598
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
599
599
  }
600
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
600
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
601
601
  }
602
602
  }
603
603
  function $t(e) {
604
604
  {
605
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
606
- var c = t[n];
605
+ for (var t = Object.keys(e.props), o = 0; o < t.length; o++) {
606
+ var c = t[o];
607
607
  if (c !== "children" && c !== "key") {
608
- Se(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), Se(null);
608
+ ve(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), ve(null);
609
609
  break;
610
610
  }
611
611
  }
612
- e.ref !== null && (Se(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), Se(null));
612
+ e.ref !== null && (ve(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
613
613
  }
614
614
  }
615
- var lt = {};
616
- function ct(e, t, n, c, I, y) {
615
+ var ct = {};
616
+ function ut(e, t, o, c, O, C) {
617
617
  {
618
- var g = _(e);
619
- if (!g) {
618
+ var _ = g(e);
619
+ if (!_) {
620
620
  var R = "";
621
621
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
622
- var W = Mt();
623
- W ? R += W : R += nt();
624
- var P;
625
- e === null ? P = "null" : ke(e) ? P = "array" : e !== void 0 && e.$$typeof === u ? (P = "<" + (f(e.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, R);
622
+ var W = wt();
623
+ W ? R += W : R += ot();
624
+ var j;
625
+ e === null ? j = "null" : Ve(e) ? j = "array" : e !== void 0 && e.$$typeof === f ? (j = "<" + (d(e.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : j = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, R);
626
626
  }
627
- var M = Ft(e, t, n, I, y);
628
- if (M == null)
629
- return M;
630
- if (g) {
631
- var K = t.children;
632
- if (K !== void 0)
627
+ var U = jt(e, t, o, O, C);
628
+ if (U == null)
629
+ return U;
630
+ if (_) {
631
+ var ee = t.children;
632
+ if (ee !== void 0)
633
633
  if (c)
634
- if (ke(K)) {
635
- for (var Ae = 0; Ae < K.length; Ae++)
636
- it(K[Ae], e);
637
- Object.freeze && Object.freeze(K);
634
+ if (Ve(ee)) {
635
+ for (var Ae = 0; Ae < ee.length; Ae++)
636
+ lt(ee[Ae], e);
637
+ Object.freeze && Object.freeze(ee);
638
638
  } else
639
- b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
639
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
640
640
  else
641
- it(K, e);
641
+ lt(ee, e);
642
642
  }
643
- if (q.call(t, "key")) {
644
- var ge = f(e), H = Object.keys(t).filter(function(Bt) {
643
+ if (fe.call(t, "key")) {
644
+ var he = d(e), H = Object.keys(t).filter(function(Bt) {
645
645
  return Bt !== "key";
646
- }), Be = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
647
- if (!lt[ge + Be]) {
646
+ }), He = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
647
+ if (!ct[he + He]) {
648
648
  var Wt = H.length > 0 ? "{" + H.join(": ..., ") + ": ...}" : "{}";
649
- b(`A props object containing a "key" prop is being spread into JSX:
649
+ x(`A props object containing a "key" prop is being spread into JSX:
650
650
  let props = %s;
651
651
  <%s {...props} />
652
652
  React keys must be passed directly to JSX without using spread:
653
653
  let props = %s;
654
- <%s key={someKey} {...props} />`, Be, ge, Wt, ge), lt[ge + Be] = !0;
654
+ <%s key={someKey} {...props} />`, He, he, Wt, he), ct[he + He] = !0;
655
655
  }
656
656
  }
657
- return e === E ? $t(M) : Ut(M), M;
657
+ return e === E ? $t(U) : Ut(U), U;
658
658
  }
659
659
  }
660
- function Gt(e, t, n) {
661
- return ct(e, t, n, !0);
660
+ function kt(e, t, o) {
661
+ return ut(e, t, o, !0);
662
662
  }
663
- function kt(e, t, n) {
664
- return ct(e, t, n, !1);
663
+ function Gt(e, t, o) {
664
+ return ut(e, t, o, !1);
665
665
  }
666
- var Vt = kt, Yt = Gt;
667
- xe.Fragment = E, xe.jsx = Vt, xe.jsxs = Yt;
668
- })()), xe;
666
+ var Vt = Gt, Yt = kt;
667
+ Ce.Fragment = E, Ce.jsx = Vt, Ce.jsxs = Yt;
668
+ })()), Ce;
669
669
  }
670
- var ft;
670
+ var Et;
671
671
  function rr() {
672
- return ft || (ft = 1, process.env.NODE_ENV === "production" ? Me.exports = er() : Me.exports = tr()), Me.exports;
672
+ return Et || (Et = 1, process.env.NODE_ENV === "production" ? Me.exports = er() : Me.exports = tr()), Me.exports;
673
673
  }
674
- var r = rr();
675
- const ar = ue(L)(({ theme: a }) => ({
674
+ var a = rr();
675
+ const ar = pe(P)(({ theme: n }) => ({
676
676
  width: "100%",
677
- fontFamily: a.typography.fontFamily
678
- })), Et = ue("div")(({ theme: a }) => ({
677
+ fontFamily: n.typography.fontFamily
678
+ })), pt = pe("div")(({ theme: n }) => ({
679
679
  width: "100%",
680
680
  "& .ag-header": {
681
681
  borderRadius: "8px 8px 0 0"
682
682
  },
683
683
  "& .ag-theme-alpine": {
684
- fontFamily: a.typography.fontFamily
684
+ fontFamily: n.typography.fontFamily
685
685
  },
686
686
  "& .ag-header-cell-text": {
687
687
  fontSize: "14px",
@@ -692,7 +692,9 @@ const ar = ue(L)(({ theme: a }) => ({
692
692
  fontSize: "14px",
693
693
  fontWeight: 400,
694
694
  color: "#000",
695
- padding: "12px 16px"
695
+ padding: "12px 16px",
696
+ display: "flex",
697
+ alignItems: "center"
696
698
  },
697
699
  "& .right-aligned-cell": {
698
700
  textAlign: "right"
@@ -715,7 +717,7 @@ const ar = ue(L)(({ theme: a }) => ({
715
717
  border: "1px solid transparent !important"
716
718
  }
717
719
  }));
718
- ue(L)(() => ({
720
+ pe(P)(() => ({
719
721
  position: "fixed",
720
722
  inset: 0,
721
723
  display: "flex",
@@ -724,22 +726,22 @@ ue(L)(() => ({
724
726
  zIndex: 1301,
725
727
  background: "rgba(255, 255, 255, 0.5)"
726
728
  }));
727
- const nr = ue(L)(({ theme: a }) => ({
729
+ const nr = pe(P)(({ theme: n }) => ({
728
730
  display: "flex",
729
731
  justifyContent: "flex-end",
730
732
  marginTop: "16px",
731
733
  gap: "16px",
732
- [a.breakpoints.down("md")]: {
734
+ [n.breakpoints.down("md")]: {
733
735
  flexWrap: "wrap",
734
736
  justifyContent: "center",
735
737
  gap: "12px"
736
738
  },
737
- [a.breakpoints.down("sm")]: {
739
+ [n.breakpoints.down("sm")]: {
738
740
  flexDirection: "column",
739
741
  alignItems: "center",
740
742
  gap: "16px"
741
743
  }
742
- })), or = ue(Ht)(() => ({
744
+ })), or = pe(Ht)(() => ({
743
745
  fontSize: "14px",
744
746
  border: "none",
745
747
  boxShadow: "none",
@@ -755,10 +757,10 @@ const nr = ue(L)(({ theme: a }) => ({
755
757
  paddingLeft: "8px",
756
758
  paddingRight: "32px !important"
757
759
  }
758
- })), sr = ue(L)(
759
- ({ height: a }) => ({
760
- ...a !== void 0 && {
761
- height: `${a}px`
760
+ })), sr = pe(P)(
761
+ ({ height: n }) => ({
762
+ ...n !== void 0 && {
763
+ height: `${n}px`
762
764
  },
763
765
  "&.ag-theme-alpine": {
764
766
  border: "none !important"
@@ -791,21 +793,21 @@ const nr = ue(L)(({ theme: a }) => ({
791
793
  justifyContent: "space-between"
792
794
  }
793
795
  })
794
- ), ir = ue(Xt)(
795
- ({ theme: a }) => ({
796
+ ), ir = pe(zt)(
797
+ ({ theme: n }) => ({
796
798
  display: "flex",
797
799
  flexDirection: "row",
798
800
  alignItems: "center",
799
- [a.breakpoints.down("sm")]: {
801
+ [n.breakpoints.down("sm")]: {
800
802
  flexWrap: "wrap",
801
803
  justifyContent: "center",
802
804
  gap: "8px"
803
805
  }
804
806
  })
805
- ), Tt = ue(L)(({ theme: a }) => ({
807
+ ), Tt = pe(P)(({ theme: n }) => ({
806
808
  fontWeight: 300,
807
809
  fontSize: "14px",
808
- [a.breakpoints.down("sm")]: {
810
+ [n.breakpoints.down("sm")]: {
809
811
  fontSize: "12px"
810
812
  }
811
813
  })), lr = {
@@ -813,7 +815,7 @@ const nr = ue(L)(({ theme: a }) => ({
813
815
  MIN_HEIGHT: 300,
814
816
  MAX_HEIGHT: 800,
815
817
  DEFAULT_ROW_HEIGHT: 50
816
- }, Sr = {
818
+ }, vr = {
817
819
  DEFAULT_PAGE: 1,
818
820
  DEFAULT_PAGE_SIZE: 10,
819
821
  PAGE_SIZE_OPTIONS: [10, 20, 50, 100],
@@ -825,10 +827,10 @@ const nr = ue(L)(({ theme: a }) => ({
825
827
  UI_COLUMN_SORTED: "uiColumnSorted",
826
828
  API: "api",
827
829
  COLUMN_MOVED: "columnMoved"
828
- }, pt = {
830
+ }, mt = {
829
831
  NORMAL: "normal",
830
832
  AUTO_HEIGHT: "autoHeight"
831
- }, Ot = {
833
+ }, It = {
832
834
  CLIENT_SIDE: "clientSide",
833
835
  SERVER_SIDE: "serverSide",
834
836
  INFINITE: "infinite",
@@ -838,11 +840,11 @@ const nr = ue(L)(({ theme: a }) => ({
838
840
  ACTION_COLUMN_WIDTH: 150,
839
841
  SORTABLE: !0,
840
842
  FILTER: !1
841
- }, dr = {
843
+ }, ur = {
842
844
  NO_DATA: "N/A",
843
845
  LOADING: "Loading...",
844
846
  NO_RECORDS: "No records found"
845
- }, ur = {
847
+ }, dr = {
846
848
  AG_THEME_ALPINE: "ag-theme-alpine",
847
849
  AG_THEME_BALHAM: "ag-theme-balham",
848
850
  AG_THEME_MATERIAL: "ag-theme-material"
@@ -850,85 +852,95 @@ const nr = ue(L)(({ theme: a }) => ({
850
852
  URL_REVOKE: 100
851
853
  // milliseconds to wait before revoking blob URL
852
854
  };
853
- Qt.registerModules([St, Zt]);
855
+ Qt.registerModules([At, Zt]);
854
856
  const Er = ({
855
- rows: a,
856
- totalRecords: u,
857
- currentPage: d,
857
+ rows: n,
858
+ totalRecords: f,
859
+ currentPage: u,
858
860
  loading: E,
859
- onPageChange: s,
860
- columns: k,
861
- pageSize: z,
862
- pageSizeOptions: p,
863
- onPageSizeChange: v,
861
+ onPageChange: i,
862
+ columns: G,
863
+ pageSize: J,
864
+ pageSizeOptions: T,
865
+ onPageSizeChange: h,
864
866
  setSort: V,
865
867
  sortModel: S,
866
- height: A = lr.DEFAULT_HEIGHT,
867
- domLayout: C = pt.NORMAL,
868
+ height: v = lr.DEFAULT_HEIGHT,
869
+ domLayout: D = mt.NORMAL,
868
870
  getRowHeight: B,
869
- pinnedBottomRowData: re,
870
- showLoader: fe = !0,
871
- emptyDataMessage: Q,
871
+ pinnedBottomRowData: ne,
872
+ showLoader: Te = !0,
873
+ emptyDataMessage: z,
872
874
  ...Y
873
875
  }) => {
874
- const b = Ke(null), j = Ke([]), ne = (U) => {
875
- if (U.source !== cr.UI_COLUMN_SORTED || (console.log("Sort Changed Event (User Initiated):", U), !V)) return;
876
- const G = U.api.getColumnState().filter((Z) => Z.sort).map((Z) => ({
877
- colId: Z.colId,
878
- sort: Z.sort
876
+ const x = ke(null), N = ke([]), se = (w) => {
877
+ if (w.source !== cr.UI_COLUMN_SORTED || (console.log("Sort Changed Event (User Initiated):", w), !V)) return;
878
+ const k = w.api.getColumnState().filter((X) => X.sort).map((X) => ({
879
+ colId: X.colId,
880
+ sort: X.sort
879
881
  }));
880
- console.log("New Sort Model:", G), JSON.stringify(G) !== JSON.stringify(j.current) && (j.current = G, V(G));
882
+ console.log("New Sort Model:", k), JSON.stringify(k) !== JSON.stringify(N.current) && (N.current = k, V(k));
881
883
  };
882
- return fe && E ? /* @__PURE__ */ r.jsx(
883
- Et,
884
+ return Te && E ? /* @__PURE__ */ a.jsx(
885
+ pt,
884
886
  {
885
887
  style: {
886
888
  display: "flex",
887
889
  alignItems: "center",
888
890
  justifyContent: "center",
889
- height: A,
891
+ height: v,
890
892
  minHeight: 120
891
893
  },
892
- children: /* @__PURE__ */ r.jsx(Ue, {})
894
+ children: /* @__PURE__ */ a.jsx($e, {})
893
895
  }
894
- ) : /* @__PURE__ */ r.jsx(Et, { "data-testid": "ServerSideGrid", className: ur.AG_THEME_ALPINE, children: /* @__PURE__ */ r.jsxs(ar, { children: [
895
- /* @__PURE__ */ r.jsx(
896
+ ) : /* @__PURE__ */ a.jsx(pt, { "data-testid": "ServerSideGrid", className: dr.AG_THEME_ALPINE, children: /* @__PURE__ */ a.jsxs(ar, { children: [
897
+ /* @__PURE__ */ a.jsx(
896
898
  sr,
897
899
  {
898
- height: C === pt.AUTO_HEIGHT ? void 0 : A,
899
- children: /* @__PURE__ */ r.jsx(
900
- Jt,
900
+ height: D === mt.AUTO_HEIGHT ? void 0 : v,
901
+ children: /* @__PURE__ */ a.jsx(
902
+ Kt,
901
903
  {
902
- ref: b,
904
+ ref: x,
903
905
  theme: "legacy",
904
- columnDefs: k,
905
- rowData: a,
906
- pinnedBottomRowData: re,
907
- domLayout: C,
908
- rowModelType: Ot.CLIENT_SIDE,
909
- modules: [St],
906
+ columnDefs: G,
907
+ rowData: n,
908
+ pinnedBottomRowData: ne,
909
+ domLayout: D,
910
+ rowModelType: It.CLIENT_SIDE,
911
+ modules: [At],
910
912
  localeText: {
911
- noRowsToShow: Q || "No data to show"
913
+ noRowsToShow: z || "No data to show"
912
914
  },
913
915
  ...Y,
914
916
  enableBrowserTooltips: !0,
915
917
  suppressMovableColumns: !0,
916
918
  suppressMenuHide: !0,
917
- onSortChanged: ne,
919
+ onSortChanged: se,
920
+ suppressAutoSize: !0,
921
+ suppressColumnMoveAnimation: !0,
918
922
  defaultColDef: {
919
923
  width: 170,
920
924
  sortable: !0,
921
925
  unSortIcon: !0,
922
- tooltipValueGetter: (U) => U.value ?? dr.NO_DATA
926
+ tooltipValueGetter: (w) => w.value ?? ur.NO_DATA,
927
+ suppressSizeToFit: !0,
928
+ suppressAutoSize: !0,
929
+ resizable: !0,
930
+ lockPosition: !0,
931
+ lockPinned: !0
923
932
  },
924
933
  suppressRowTransform: !0,
925
934
  getRowHeight: B ?? (() => 54),
926
935
  maintainColumnOrder: !0,
936
+ suppressColumnVirtualisation: !1,
937
+ suppressAnimationFrame: !1,
938
+ skipHeaderOnAutoSize: !0,
927
939
  initialState: S && S.length > 0 ? {
928
940
  sort: {
929
- sortModel: S.map((U) => ({
930
- colId: U.colId,
931
- sort: U.sort
941
+ sortModel: S.map((w) => ({
942
+ colId: w.colId,
943
+ sort: w.sort
932
944
  }))
933
945
  }
934
946
  } : void 0
@@ -936,47 +948,47 @@ const Er = ({
936
948
  )
937
949
  }
938
950
  ),
939
- u === 0 && /* @__PURE__ */ r.jsx(zt, {})
951
+ f === 0 && /* @__PURE__ */ a.jsx(Xt, {})
940
952
  ] }) });
941
- }, Tr = ({
942
- totalRecords: a,
943
- currentPage: u,
944
- pageSize: d,
953
+ }, pr = ({
954
+ totalRecords: n,
955
+ currentPage: f,
956
+ pageSize: u,
945
957
  onPageChange: E
946
958
  }) => {
947
- const s = Math.ceil(a / d);
948
- return /* @__PURE__ */ r.jsxs(L, { sx: { display: "flex", gap: 2, alignItems: "center" }, children: [
949
- /* @__PURE__ */ r.jsx(
950
- ie,
959
+ const i = Math.ceil(n / u);
960
+ return /* @__PURE__ */ a.jsxs(P, { sx: { display: "flex", gap: 2, alignItems: "center" }, children: [
961
+ /* @__PURE__ */ a.jsx(
962
+ ue,
951
963
  {
952
964
  size: "small",
953
- disabled: u === 1,
954
- onClick: () => E(u - 1),
965
+ disabled: f === 1,
966
+ onClick: () => E(f - 1),
955
967
  children: "Previous"
956
968
  }
957
969
  ),
958
- /* @__PURE__ */ r.jsxs(Ie, { variant: "body2", children: [
970
+ /* @__PURE__ */ a.jsxs(Le, { variant: "body2", children: [
959
971
  "Page ",
960
- u,
972
+ f,
961
973
  " of ",
962
- s || 1
974
+ i || 1
963
975
  ] }),
964
- /* @__PURE__ */ r.jsx(
965
- ie,
976
+ /* @__PURE__ */ a.jsx(
977
+ ue,
966
978
  {
967
979
  size: "small",
968
- disabled: u >= s,
969
- onClick: () => E(u + 1),
980
+ disabled: f >= i,
981
+ onClick: () => E(f + 1),
970
982
  children: "Next"
971
983
  }
972
984
  )
973
985
  ] });
974
- }, $e = {
986
+ }, Xe = {
975
987
  MASTER_DATA_MANAGEMENT: "Master Data Management",
976
988
  ADD_NEW_RECORD: "Add New Record",
977
989
  EDIT_RECORD: "Edit Record",
978
990
  VIEW_RECORD: "View Record"
979
- }, de = {
991
+ }, Ee = {
980
992
  VIEW: "View",
981
993
  ADD_NEW_RECORD: "Add New Record",
982
994
  EDIT: "Edit",
@@ -985,19 +997,19 @@ const Er = ({
985
997
  CANCEL: "Cancel",
986
998
  BACK: "Back",
987
999
  EXPORT: "Export"
988
- }, Xe = {
1000
+ }, qe = {
989
1001
  SELECT_ENTITY: "Select Entity",
990
1002
  ACTIONS: "Actions",
991
1003
  FROM: "From",
992
1004
  TO: "To"
993
- }, Le = {
1005
+ }, xe = {
994
1006
  SELECT_ENTITY: "Select Entity",
995
- SELECT: (a) => `Select ${a}`,
996
- FILTER_BY: (a) => `Filter by ${a}`
997
- }, mt = {
1007
+ SELECT: (n) => `Select ${n}`,
1008
+ FILTER_BY: (n) => `Filter by ${n}`
1009
+ }, Rt = {
998
1010
  CSV: "CSV Format",
999
1011
  EXCEL: "Excel Format"
1000
- }, Rt = {
1012
+ }, gt = {
1001
1013
  CSV: "csv",
1002
1014
  EXCEL: "xlsx"
1003
1015
  }, ce = {
@@ -1008,11 +1020,11 @@ const Er = ({
1008
1020
  FAILED_SAVE_RECORD: "Failed to save record. Please try again.",
1009
1021
  FAILED_EXPORT_CSV: "Failed to export CSV",
1010
1022
  FAILED_EXPORT_EXCEL: "Failed to export Excel",
1011
- FAILED_LOAD_OPTIONS: (a) => `Failed to load options for ${a}`,
1023
+ FAILED_LOAD_OPTIONS: (n) => `Failed to load options for ${n}`,
1012
1024
  FAILED_LOAD_FORM_CONFIG: "Failed to load form configuration",
1013
- FIELD_REQUIRED: (a) => `${a} is required`,
1014
- FIELD_MIN_VALUE: (a, u) => `${a} must be at least ${u}`,
1015
- FIELD_MAX_VALUE: (a, u) => `${a} must be at most ${u}`
1025
+ FIELD_REQUIRED: (n) => `${n} is required`,
1026
+ FIELD_MIN_VALUE: (n, f) => `${n} must be at least ${f}`,
1027
+ FIELD_MAX_VALUE: (n, f) => `${n} must be at most ${f}`
1016
1028
  }, Ir = {
1017
1029
  RECORD_CREATED: "Record created successfully",
1018
1030
  RECORD_UPDATED: "Record updated successfully",
@@ -1026,7 +1038,7 @@ const Er = ({
1026
1038
  }, Dr = {
1027
1039
  LOADING: "Loading...",
1028
1040
  PLEASE_WAIT: "Please wait..."
1029
- }, ze = {
1041
+ }, Je = {
1030
1042
  SHOWING: "Showing",
1031
1043
  OF: "of",
1032
1044
  ENTRIES: "entries"
@@ -1051,7 +1063,7 @@ const Er = ({
1051
1063
  ACTION_BUTTON_GAP: 1,
1052
1064
  FORM_MARGIN_TOP: 3,
1053
1065
  FORM_MARGIN_BOTTOM: 2
1054
- }, _t = [10, 20, 50, 100], pr = " *", mr = "red", Rr = "_display", Nr = {
1066
+ }, _t = [10, 20, 50, 100], Tr = " *", mr = "red", Rr = "_display", Nr = {
1055
1067
  ISO_DATE: "YYYY-MM-DD",
1056
1068
  DISPLAY_DATE: "DD/MM/YYYY",
1057
1069
  FILE_DATE: "YYYY-MM-DD"
@@ -1063,39 +1075,39 @@ const Er = ({
1063
1075
  HEADERS: {
1064
1076
  CONTENT_TYPE: "application/json"
1065
1077
  }
1066
- }, jr = {
1067
- MASTER: "/master"
1068
1078
  }, Fr = {
1079
+ MASTER: "/master"
1080
+ }, jr = {
1069
1081
  // Entity endpoints
1070
1082
  ENTITIES: "/master/entities",
1071
- ENTITY_METADATA: (a) => `/master/${a}/metadata`,
1072
- ENTITY_RECORDS: (a) => `/master/${a}/records`,
1073
- ENTITY_RECORD_BY_ID: (a, u) => `/master/${a}/records/${u}`,
1074
- ENTITY_OPTIONS: (a) => `/master/${a}/options`,
1083
+ ENTITY_METADATA: (n) => `/master/${n}/metadata`,
1084
+ ENTITY_RECORDS: (n) => `/master/${n}/records`,
1085
+ ENTITY_RECORD_BY_ID: (n, f) => `/master/${n}/records/${f}`,
1086
+ ENTITY_OPTIONS: (n) => `/master/${n}/options`,
1075
1087
  // Export endpoints
1076
- EXPORT_CSV: (a) => `/master/${a}/export/csv`,
1077
- EXPORT_EXCEL: (a) => `/master/${a}/export/excel`
1078
- }, Mr = {
1088
+ EXPORT_CSV: (n) => `/master/${n}/export/csv`,
1089
+ EXPORT_EXCEL: (n) => `/master/${n}/export/excel`
1090
+ }, wr = {
1079
1091
  GET: "GET",
1080
1092
  POST: "POST",
1081
1093
  PUT: "PUT",
1082
1094
  DELETE: "DELETE",
1083
1095
  PATCH: "PATCH"
1084
- }, wr = {
1096
+ }, Mr = {
1085
1097
  PAGE: "page",
1086
1098
  LIMIT: "limit",
1087
1099
  SEARCH: "search",
1088
1100
  SEARCH_BY: "searchBy",
1089
1101
  SORT_BY: "sortBy",
1090
1102
  SORT_ORDER: "sortOrder"
1091
- }, we = {
1103
+ }, Ue = {
1092
1104
  ASC: "ASC",
1093
1105
  DESC: "DESC"
1094
1106
  }, Ur = {
1095
1107
  JSON: "json",
1096
1108
  BLOB: "blob",
1097
1109
  TEXT: "text"
1098
- }, gt = {
1110
+ }, ht = {
1099
1111
  CSV: "text/csv;charset=utf-8;",
1100
1112
  EXCEL: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
1101
1113
  JSON: "application/json"
@@ -1104,11 +1116,11 @@ const Er = ({
1104
1116
  COUNT: "count",
1105
1117
  MESSAGE: "message",
1106
1118
  ERROR: "error"
1107
- }, X = {
1119
+ }, q = {
1108
1120
  CREATE: "create",
1109
1121
  EDIT: "edit",
1110
1122
  VIEW: "view"
1111
- }, qe = {
1123
+ }, Ke = {
1112
1124
  TEXT: "text",
1113
1125
  DROPDOWN: "dropdown",
1114
1126
  DATEPICKER: "datepicker",
@@ -1116,7 +1128,7 @@ const Er = ({
1116
1128
  TEXTAREA: "textarea",
1117
1129
  CHECKBOX: "checkbox",
1118
1130
  RADIO: "radio"
1119
- }, be = {
1131
+ }, De = {
1120
1132
  STRING: "string",
1121
1133
  NUMBER: "number",
1122
1134
  FLOAT: "float",
@@ -1125,11 +1137,11 @@ const Er = ({
1125
1137
  BOOLEAN: "boolean",
1126
1138
  ARRAY: "array",
1127
1139
  OBJECT: "object"
1128
- }, Gr = {
1140
+ }, kr = {
1129
1141
  API: "API",
1130
1142
  RAW: "Raw",
1131
1143
  STATIC: "Static"
1132
- }, kr = {
1144
+ }, Gr = {
1133
1145
  ID: "id",
1134
1146
  NAME: "name",
1135
1147
  LABEL: "label",
@@ -1145,7 +1157,7 @@ const Er = ({
1145
1157
  PATTERN: "pattern",
1146
1158
  EMAIL: "email",
1147
1159
  URL: "url"
1148
- }, J = {
1160
+ }, te = {
1149
1161
  FROM: "From",
1150
1162
  TO: "To"
1151
1163
  }, Yr = {
@@ -1162,552 +1174,578 @@ const Er = ({
1162
1174
  }, Br = {
1163
1175
  ENTITY_MATCH: /\/master\/([^\/]+)\/options/
1164
1176
  }, Hr = ({
1165
- apiClient: a,
1166
- apiEndpoints: u,
1167
- onNavigateToNew: d,
1177
+ apiClient: n,
1178
+ apiEndpoints: f,
1179
+ onNavigateToNew: u,
1168
1180
  onNavigateToEdit: E
1169
1181
  }) => {
1170
- const s = Oe(() => At(a, u), [a, u]), [k, z] = w([]), [p, v] = w(null), [V, S] = w([]), [A, C] = w({}), [B, re] = w([]), [fe, Q] = w([]), [Y, b] = w(0), [j, ne] = w(10), [U, G] = w(1), [Ee, Z] = w(!1), [le, _] = w(!1), [T, l] = w({}), [f, F] = w([]), [O, ee] = w(null), $ = Ke(!0);
1171
- Pe(() => {
1182
+ const i = be(() => Ot(n, f), [n, f]), [G, J] = $([]), [T, h] = $(null), [V, S] = $([]), [v, D] = $({}), [B, ne] = $([]), [Te, z] = $([]), [Y, x] = $(0), [N, se] = $(10), [w, k] = $(1), [me, X] = $(!1), [de, g] = $(!1), [p, l] = $({}), [d, M] = $([]), [A, re] = $(null), F = ke(!0), K = ke({
1183
+ page: 0,
1184
+ pageSize: 0,
1185
+ sort: ""
1186
+ });
1187
+ Ne(() => {
1172
1188
  (async () => {
1173
1189
  try {
1174
- const x = ((await s.getEntities()).data || []).map((m) => ({
1175
- name: m.tableName || m.name,
1176
- label: m.displayName || m.label
1190
+ const L = ((await i.getEntities()).data || []).map((I) => ({
1191
+ name: I.tableName || I.name,
1192
+ label: I.displayName || I.label
1177
1193
  }));
1178
- z(x), x.length > 0 && v(x[0]);
1179
- } catch (i) {
1180
- console.error(ce.FAILED_LOAD_ENTITIES, i);
1194
+ J(L), L.length > 0 && h(L[0]);
1195
+ } catch (s) {
1196
+ console.error(ce.FAILED_LOAD_ENTITIES, s);
1181
1197
  }
1182
1198
  })();
1183
- }, []), Pe(() => {
1184
- if (!p) return;
1199
+ }, []), Ne(() => {
1200
+ if (!T) return;
1185
1201
  (async () => {
1186
1202
  try {
1187
- const h = (await s.getMetadata(p.name)).data || {};
1188
- S(h.parameterList || []), re(h.resultsList || []);
1189
- const x = {};
1190
- (h.parameterList || []).forEach((N) => {
1191
- x[N.name] = null;
1192
- }), C(x);
1193
- const m = {};
1194
- for (const N of h.parameterList || [])
1195
- N.options && Array.isArray(N.options) && (m[N.name] = N.options);
1196
- l(m), Q([]), _(!1);
1197
- } catch (i) {
1198
- console.error(ce.FAILED_LOAD_METADATA, i);
1203
+ const m = (await i.getMetadata(T.name)).data || {};
1204
+ S(m.parameterList || []), ne(m.resultsList || []);
1205
+ const L = {};
1206
+ (m.parameterList || []).forEach((y) => {
1207
+ L[y.name] = null;
1208
+ }), D(L);
1209
+ const I = {};
1210
+ for (const y of m.parameterList || [])
1211
+ y.options && Array.isArray(y.options) && (I[y.name] = y.options);
1212
+ l(I), z([]), g(!1);
1213
+ } catch (s) {
1214
+ console.error(ce.FAILED_LOAD_METADATA, s);
1199
1215
  }
1200
1216
  })();
1201
- }, [p]);
1202
- const oe = Oe(() => {
1203
- const o = {}, i = [], h = [];
1204
- V.forEach((m) => {
1205
- if (m.dataType === be.DATERANGE) {
1206
- const ve = A[`${m.name}${J.FROM}`], pe = A[`${m.name}${J.TO}`];
1207
- ve && (o[`${m.name}${J.FROM}`] = ve), pe && (o[`${m.name}${J.TO}`] = pe);
1217
+ }, [T]);
1218
+ const Re = Oe((r) => {
1219
+ const s = {}, m = [], L = [];
1220
+ V.forEach((y) => {
1221
+ if (y.dataType === De.DATERANGE) {
1222
+ const Se = v[`${y.name}${te.FROM}`], _e = v[`${y.name}${te.TO}`];
1223
+ Se && (s[`${y.name}${te.FROM}`] = Se), _e && (s[`${y.name}${te.TO}`] = _e);
1208
1224
  return;
1209
1225
  }
1210
- const N = A[m.name];
1211
- N == null || N === "" || (m.options ? o[m.name] = N : (i.push(m.name), h.push(String(N).trim())));
1226
+ const Q = v[y.name];
1227
+ Q == null || Q === "" || (y.options ? s[y.name] = Q : (m.push(y.name), L.push(String(Q).trim())));
1212
1228
  });
1213
- const x = {
1214
- page: U,
1215
- limit: j
1229
+ const I = {
1230
+ page: r !== void 0 ? r : w,
1231
+ limit: N
1216
1232
  };
1217
- return Object.keys(o).length > 0 && Object.entries(o).forEach(([m, N]) => {
1218
- x[`filters[${m}]`] = N;
1219
- }), i.length > 0 && (x.search = h.join(","), x.searchBy = i.join(",")), f.length > 0 && (x.sortBy = f.map((m) => m.colId).join(","), x.sortOrder = f.map((m) => m.sort === "desc" ? we.DESC : we.ASC).join(",")), console.log("Query params:", x), x;
1220
- }, [V, A, U, j, f]), Te = Ne(async () => {
1221
- if (!(!p || !$.current)) {
1222
- $.current = !1, Z(!0);
1233
+ return Object.keys(s).length > 0 && Object.entries(s).forEach(([y, Q]) => {
1234
+ I[`filters[${y}]`] = Q;
1235
+ }), m.length > 0 && (I.search = L.join(","), I.searchBy = m.join(",")), d.length > 0 && (I.sortBy = d.map((y) => y.colId).join(","), I.sortOrder = d.map((y) => y.sort === "desc" ? Ue.DESC : Ue.ASC).join(",")), console.log("Query params:", I), I;
1236
+ }, [V, v, w, N, d]), ge = Oe(async () => {
1237
+ if (!(!T || !F.current)) {
1238
+ F.current = !1, X(!0);
1239
+ try {
1240
+ const r = Re();
1241
+ console.log("Fetching with params:", r);
1242
+ const s = await i.getRecords(T.name, r), m = s.data || [], L = s.total || 0;
1243
+ z(m), x(L);
1244
+ } catch (r) {
1245
+ console.error(ce.FAILED_FETCH_LIST, r), console.error("Full error:", r), z([]), x(0);
1246
+ } finally {
1247
+ X(!1), F.current = !0;
1248
+ }
1249
+ }
1250
+ }, [T, i, Re]);
1251
+ Ne(() => {
1252
+ if (!de) return;
1253
+ const r = JSON.stringify(d);
1254
+ (K.current.page !== w || K.current.pageSize !== N || K.current.sort !== r) && K.current.page !== 0 && (K.current = { page: w, pageSize: N, sort: r }, F.current = !0, ge());
1255
+ }, [w, N, d, de, ge]);
1256
+ const ie = async () => {
1257
+ if (k(1), g(!0), K.current = {
1258
+ page: 1,
1259
+ pageSize: N,
1260
+ sort: JSON.stringify(d)
1261
+ }, !!T) {
1262
+ X(!0), F.current = !1;
1223
1263
  try {
1224
- console.log("Fetching with params:", oe);
1225
- const o = await s.getRecords(p.name, oe), i = o.data || [], h = o.total || 0;
1226
- Q(i), b(h);
1227
- } catch (o) {
1228
- console.error(ce.FAILED_FETCH_LIST, o), console.error("Full error:", o), Q([]), b(0);
1264
+ const r = Re(1);
1265
+ console.log("Fetching with params:", r);
1266
+ const s = await i.getRecords(T.name, r), m = s.data || [], L = s.total || 0;
1267
+ z(m), x(L);
1268
+ } catch (r) {
1269
+ console.error(ce.FAILED_FETCH_LIST, r), console.error("Full error:", r), z([]), x(0);
1229
1270
  } finally {
1230
- Z(!1), $.current = !0;
1271
+ X(!1), F.current = !0;
1231
1272
  }
1232
1273
  }
1233
- }, [p, oe]);
1234
- Pe(() => {
1235
- le && (U > 1 || f.length > 0) && Te();
1236
- }, [U, j, f, le, Te]);
1237
- const he = () => {
1238
- G(1), _(!0), setTimeout(() => {
1239
- $.current = !0, Te();
1240
- }, 0);
1241
- }, se = (o) => {
1242
- ee(o.currentTarget);
1243
- }, ye = () => {
1244
- ee(null);
1245
- }, Ce = async (o) => {
1246
- if (p)
1274
+ }, Pe = (r) => {
1275
+ re(r.currentTarget);
1276
+ }, Ie = () => {
1277
+ re(null);
1278
+ }, Fe = async (r) => {
1279
+ if (T)
1247
1280
  try {
1248
- const i = {}, h = [], x = [];
1249
- V.forEach((D) => {
1250
- if (D.dataType === be.DATERANGE) {
1251
- const _e = A[`${D.name}${J.FROM}`], Fe = A[`${D.name}${J.TO}`];
1252
- _e && (i[`${D.name}${J.FROM}`] = _e), Fe && (i[`${D.name}${J.TO}`] = Fe);
1281
+ const s = {}, m = [], L = [];
1282
+ V.forEach((b) => {
1283
+ if (b.dataType === De.DATERANGE) {
1284
+ const je = v[`${b.name}${te.FROM}`], we = v[`${b.name}${te.TO}`];
1285
+ je && (s[`${b.name}${te.FROM}`] = je), we && (s[`${b.name}${te.TO}`] = we);
1253
1286
  return;
1254
1287
  }
1255
- const ae = A[D.name];
1256
- ae == null || ae === "" || (D.options ? i[D.name] = ae : (h.push(D.name), x.push(String(ae).trim())));
1288
+ const Z = v[b.name];
1289
+ Z == null || Z === "" || (b.options ? s[b.name] = Z : (m.push(b.name), L.push(String(Z).trim())));
1257
1290
  });
1258
- const m = {};
1259
- Object.keys(i).length > 0 && Object.entries(i).forEach(([D, ae]) => {
1260
- m[`filters[${D}]`] = ae;
1261
- }), h.length > 0 && (m.search = x.join(","), m.searchBy = h.join(",")), f.length > 0 && (m.sortBy = f.map((D) => D.colId).join(","), m.sortOrder = f.map((D) => D.sort === "desc" ? we.DESC : we.ASC).join(",")), console.log("Export params:", m);
1262
- const N = o === "csv" ? await s.exportCSV(p.name, m) : await s.exportExcel(p.name, m), ve = N.headers["content-type"] || (o === "csv" ? gt.CSV : gt.EXCEL), pe = new Blob([N.data], { type: ve }), je = N.headers["content-disposition"];
1263
- let me = `${p.name}_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`;
1264
- if (je) {
1265
- const D = je.match(/filename="?(.+)"?/i);
1266
- D && D[1] && (me = D[1].replace(/["]/g, ""));
1291
+ const I = {};
1292
+ Object.keys(s).length > 0 && Object.entries(s).forEach(([b, Z]) => {
1293
+ I[`filters[${b}]`] = Z;
1294
+ }), m.length > 0 && (I.search = L.join(","), I.searchBy = m.join(",")), d.length > 0 && (I.sortBy = d.map((b) => b.colId).join(","), I.sortOrder = d.map((b) => b.sort === "desc" ? Ue.DESC : Ue.ASC).join(",")), console.log("Export params:", I);
1295
+ const y = r === "csv" ? await i.exportCSV(T.name, I) : await i.exportExcel(T.name, I), Q = y.headers["content-type"] || (r === "csv" ? ht.CSV : ht.EXCEL), Se = new Blob([y.data], { type: Q }), _e = y.headers["content-disposition"];
1296
+ let oe = `${T.name}_${(/* @__PURE__ */ new Date()).toISOString().split("T")[0]}`;
1297
+ if (_e) {
1298
+ const b = _e.match(/filename="?(.+)"?/i);
1299
+ b && b[1] && (oe = b[1].replace(/["]/g, ""));
1267
1300
  } else {
1268
- const D = o === "csv" ? Rt.CSV : Rt.EXCEL;
1269
- me.endsWith(`.${D}`) || (me += `.${D}`);
1301
+ const b = r === "csv" ? gt.CSV : gt.EXCEL;
1302
+ oe.endsWith(`.${b}`) || (oe += `.${b}`);
1270
1303
  }
1271
- const Re = URL.createObjectURL(pe), q = document.createElement("a");
1272
- q.href = Re, q.download = me, q.style.display = "none", document.body.appendChild(q), q.click(), document.body.removeChild(q), setTimeout(() => URL.revokeObjectURL(Re), fr.URL_REVOKE), console.log(`${o.toUpperCase()} export successful:`, me);
1273
- } catch (i) {
1274
- console.error(`Failed to export ${o.toUpperCase()}:`, i), alert(`Failed to export ${o.toUpperCase()}. Please try again.`);
1304
+ const fe = URL.createObjectURL(Se), le = document.createElement("a");
1305
+ le.href = fe, le.download = oe, le.style.display = "none", document.body.appendChild(le), le.click(), document.body.removeChild(le), setTimeout(() => URL.revokeObjectURL(fe), fr.URL_REVOKE), console.log(`${r.toUpperCase()} export successful:`, oe);
1306
+ } catch (s) {
1307
+ console.error(`Failed to export ${r.toUpperCase()}:`, s), alert(`Failed to export ${r.toUpperCase()}. Please try again.`);
1275
1308
  } finally {
1276
- ye();
1309
+ Ie();
1277
1310
  }
1278
- }, Ge = Oe(() => {
1279
- const o = B.map((i) => ({
1280
- field: i.name,
1281
- headerName: i.label,
1311
+ }, Ge = be(() => {
1312
+ const r = B.map((s) => ({
1313
+ field: s.name,
1314
+ headerName: s.label,
1282
1315
  sortable: !0,
1283
1316
  filter: !1,
1284
- flex: 1
1317
+ width: 200,
1318
+ suppressSizeToFit: !0,
1319
+ suppressAutoSize: !0,
1320
+ resizable: !0
1285
1321
  }));
1286
- return o.push({
1322
+ return r.push({
1287
1323
  field: "actions",
1288
- headerName: Xe.ACTIONS,
1324
+ headerName: qe.ACTIONS,
1289
1325
  sortable: !1,
1290
1326
  filter: !1,
1291
1327
  width: 150,
1292
- cellRenderer: (i) => {
1293
- const h = i.data;
1294
- return !h || !p ? null : /* @__PURE__ */ r.jsx(L, { sx: { display: "flex", gap: 1, py: 1 }, children: /* @__PURE__ */ r.jsx(
1295
- ie,
1328
+ suppressSizeToFit: !0,
1329
+ suppressAutoSize: !0,
1330
+ resizable: !1,
1331
+ cellRenderer: (s) => {
1332
+ const m = s.data;
1333
+ return !m || !T ? null : /* @__PURE__ */ a.jsx(P, { sx: { display: "flex", gap: 1, alignItems: "center", height: "100%" }, children: /* @__PURE__ */ a.jsx(
1334
+ ue,
1296
1335
  {
1297
1336
  size: "small",
1298
1337
  variant: "outlined",
1299
- onClick: () => E?.(p.name, h.id),
1300
- children: de.EDIT
1338
+ onClick: () => E?.(T.name, m.id),
1339
+ children: Ee.EDIT
1301
1340
  }
1302
1341
  ) });
1303
1342
  }
1304
- }), o;
1305
- }, [B, p, E]);
1306
- return /* @__PURE__ */ r.jsxs(L, { className: "master-view", children: [
1307
- /* @__PURE__ */ r.jsxs(vt, { className: "filter-section", children: [
1308
- /* @__PURE__ */ r.jsx(Ie, { variant: "h5", gutterBottom: !0, children: $e.MASTER_DATA_MANAGEMENT }),
1309
- /* @__PURE__ */ r.jsxs(L, { className: "filters", children: [
1310
- /* @__PURE__ */ r.jsxs(L, { className: "filter-field", children: [
1311
- /* @__PURE__ */ r.jsx(Ie, { variant: "body2", className: "field-label", children: Xe.SELECT_ENTITY }),
1312
- /* @__PURE__ */ r.jsx(
1313
- Je,
1343
+ }), r;
1344
+ }, [B, T, E]);
1345
+ return /* @__PURE__ */ a.jsxs(P, { className: "master-view", children: [
1346
+ /* @__PURE__ */ a.jsxs(vt, { className: "filter-section", children: [
1347
+ /* @__PURE__ */ a.jsxs(P, { className: "filters", children: [
1348
+ /* @__PURE__ */ a.jsxs(P, { className: "filter-field", children: [
1349
+ /* @__PURE__ */ a.jsx(Le, { variant: "body2", className: "field-label", children: qe.SELECT_ENTITY }),
1350
+ /* @__PURE__ */ a.jsx(
1351
+ Qe,
1314
1352
  {
1315
- options: k,
1316
- getOptionLabel: (o) => o.label,
1317
- value: p,
1318
- onChange: (o, i) => v(i),
1319
- renderInput: (o) => /* @__PURE__ */ r.jsx(te, { ...o, size: "small", placeholder: Le.SELECT_ENTITY }),
1353
+ options: G,
1354
+ getOptionLabel: (r) => r.label,
1355
+ value: T,
1356
+ onChange: (r, s) => h(s),
1357
+ renderInput: (r) => /* @__PURE__ */ a.jsx(ae, { ...r, size: "small", placeholder: xe.SELECT_ENTITY }),
1320
1358
  className: "field-input"
1321
1359
  }
1322
1360
  )
1323
1361
  ] }),
1324
- V.filter((o) => o.name.toLowerCase() !== "id").map((o) => /* @__PURE__ */ r.jsxs(L, { className: "filter-field", children: [
1325
- /* @__PURE__ */ r.jsx(Ie, { variant: "body2", className: "field-label", children: o.label }),
1326
- o.dataType === be.DATERANGE ? /* @__PURE__ */ r.jsxs(L, { sx: { display: "flex", gap: 1, width: "100%" }, children: [
1327
- /* @__PURE__ */ r.jsx(
1328
- te,
1362
+ V.filter((r) => r.name.toLowerCase() !== "id").map((r) => /* @__PURE__ */ a.jsxs(P, { className: "filter-field", children: [
1363
+ /* @__PURE__ */ a.jsx(Le, { variant: "body2", className: "field-label", children: r.label }),
1364
+ r.dataType === De.DATERANGE ? /* @__PURE__ */ a.jsxs(P, { sx: { display: "flex", gap: 1, width: "100%" }, children: [
1365
+ /* @__PURE__ */ a.jsx(
1366
+ ae,
1329
1367
  {
1330
1368
  type: "date",
1331
1369
  size: "small",
1332
- value: A[`${o.name}${J.FROM}`] || "",
1333
- onChange: (i) => C((h) => ({ ...h, [`${o.name}${J.FROM}`]: i.target.value })),
1370
+ value: v[`${r.name}${te.FROM}`] || "",
1371
+ onChange: (s) => D((m) => ({ ...m, [`${r.name}${te.FROM}`]: s.target.value })),
1334
1372
  sx: { flex: 1 }
1335
1373
  }
1336
1374
  ),
1337
- /* @__PURE__ */ r.jsx(
1338
- te,
1375
+ /* @__PURE__ */ a.jsx(
1376
+ ae,
1339
1377
  {
1340
1378
  type: "date",
1341
1379
  size: "small",
1342
- label: Xe.TO,
1343
- value: A[`${o.name}${J.TO}`] || "",
1344
- onChange: (i) => C((h) => ({ ...h, [`${o.name}${J.TO}`]: i.target.value })),
1380
+ label: qe.TO,
1381
+ value: v[`${r.name}${te.TO}`] || "",
1382
+ onChange: (s) => D((m) => ({ ...m, [`${r.name}${te.TO}`]: s.target.value })),
1345
1383
  sx: { flex: 1 }
1346
1384
  }
1347
1385
  )
1348
- ] }) : o.dataType === be.DATE ? /* @__PURE__ */ r.jsx(
1349
- te,
1386
+ ] }) : r.dataType === De.DATE ? /* @__PURE__ */ a.jsx(
1387
+ ae,
1350
1388
  {
1351
1389
  type: "date",
1352
1390
  size: "small",
1353
- value: A[o.name] || "",
1354
- onChange: (i) => C((h) => ({ ...h, [o.name]: i.target.value })),
1391
+ value: v[r.name] || "",
1392
+ onChange: (s) => D((m) => ({ ...m, [r.name]: s.target.value })),
1355
1393
  className: "field-input"
1356
1394
  }
1357
- ) : o.options ? /* @__PURE__ */ r.jsx(
1358
- Je,
1395
+ ) : r.options ? /* @__PURE__ */ a.jsx(
1396
+ Qe,
1359
1397
  {
1360
- options: T[o.name] || o.options,
1361
- getOptionLabel: (i) => i.label || String(i.value),
1362
- value: T[o.name]?.find((i) => i.value === A[o.name]) || null,
1363
- onChange: (i, h) => C((x) => ({ ...x, [o.name]: h?.value || null })),
1364
- renderInput: (i) => /* @__PURE__ */ r.jsx(te, { ...i, size: "small", placeholder: Le.SELECT(o.label) }),
1398
+ options: p[r.name] || r.options,
1399
+ getOptionLabel: (s) => s.label || String(s.value),
1400
+ value: p[r.name]?.find((s) => s.value === v[r.name]) || null,
1401
+ onChange: (s, m) => D((L) => ({ ...L, [r.name]: m?.value || null })),
1402
+ renderInput: (s) => /* @__PURE__ */ a.jsx(ae, { ...s, size: "small", placeholder: xe.SELECT(r.label) }),
1365
1403
  className: "field-input"
1366
1404
  }
1367
- ) : o.dataType === be.NUMBER ? /* @__PURE__ */ r.jsx(
1368
- te,
1405
+ ) : r.dataType === De.NUMBER ? /* @__PURE__ */ a.jsx(
1406
+ ae,
1369
1407
  {
1370
1408
  type: "number",
1371
1409
  size: "small",
1372
- value: A[o.name] || "",
1373
- onChange: (i) => C((h) => ({ ...h, [o.name]: i.target.value })),
1374
- placeholder: Le.FILTER_BY(o.label),
1410
+ value: v[r.name] || "",
1411
+ onChange: (s) => D((m) => ({ ...m, [r.name]: s.target.value })),
1412
+ placeholder: xe.FILTER_BY(r.label),
1375
1413
  className: "field-input"
1376
1414
  }
1377
- ) : /* @__PURE__ */ r.jsx(
1378
- te,
1415
+ ) : /* @__PURE__ */ a.jsx(
1416
+ ae,
1379
1417
  {
1380
1418
  size: "small",
1381
- value: A[o.name] || "",
1382
- onChange: (i) => C((h) => ({ ...h, [o.name]: i.target.value })),
1383
- placeholder: Le.FILTER_BY(o.label),
1419
+ value: v[r.name] || "",
1420
+ onChange: (s) => D((m) => ({ ...m, [r.name]: s.target.value })),
1421
+ placeholder: xe.FILTER_BY(r.label),
1384
1422
  className: "field-input"
1385
1423
  }
1386
1424
  )
1387
- ] }, o.name))
1425
+ ] }, r.name))
1388
1426
  ] }),
1389
- /* @__PURE__ */ r.jsxs(L, { className: "action-buttons", children: [
1390
- /* @__PURE__ */ r.jsx(ie, { variant: "contained", onClick: he, children: de.VIEW }),
1391
- /* @__PURE__ */ r.jsx(
1392
- ie,
1427
+ /* @__PURE__ */ a.jsxs(P, { className: "action-buttons", children: [
1428
+ /* @__PURE__ */ a.jsx(ue, { variant: "contained", onClick: ie, children: Ee.VIEW }),
1429
+ /* @__PURE__ */ a.jsx(
1430
+ ue,
1393
1431
  {
1394
1432
  variant: "contained",
1395
- disabled: !p,
1396
- onClick: () => p && d?.(p.name),
1397
- children: de.ADD_NEW_RECORD
1433
+ disabled: !T,
1434
+ onClick: () => T && u?.(T.name),
1435
+ children: Ee.ADD_NEW_RECORD
1398
1436
  }
1399
1437
  )
1400
1438
  ] })
1401
1439
  ] }),
1402
- le && /* @__PURE__ */ r.jsxs(L, { mt: 4, width: "100%", children: [
1403
- /* @__PURE__ */ r.jsxs(L, { display: "flex", justifyContent: "flex-end", mb: 2, children: [
1404
- /* @__PURE__ */ r.jsx(
1405
- ie,
1440
+ de && /* @__PURE__ */ a.jsxs(P, { mt: 4, width: "100%", children: [
1441
+ /* @__PURE__ */ a.jsxs(P, { display: "flex", justifyContent: "flex-end", mb: 2, children: [
1442
+ /* @__PURE__ */ a.jsx(
1443
+ ue,
1406
1444
  {
1407
1445
  variant: "outlined",
1408
- onClick: se,
1409
- disabled: !p,
1410
- children: de.EXPORT
1446
+ onClick: Pe,
1447
+ disabled: !T,
1448
+ children: Ee.EXPORT
1411
1449
  }
1412
1450
  ),
1413
- /* @__PURE__ */ r.jsxs(
1451
+ /* @__PURE__ */ a.jsxs(
1414
1452
  qt,
1415
1453
  {
1416
- anchorEl: O,
1417
- open: !!O,
1418
- onClose: ye,
1454
+ anchorEl: A,
1455
+ open: !!A,
1456
+ onClose: Ie,
1419
1457
  children: [
1420
- /* @__PURE__ */ r.jsx(He, { onClick: () => Ce("csv"), children: mt.CSV }),
1421
- /* @__PURE__ */ r.jsx(He, { onClick: () => Ce("excel"), children: mt.EXCEL })
1458
+ /* @__PURE__ */ a.jsx(ze, { onClick: () => Fe("csv"), children: Rt.CSV }),
1459
+ /* @__PURE__ */ a.jsx(ze, { onClick: () => Fe("excel"), children: Rt.EXCEL })
1422
1460
  ]
1423
1461
  }
1424
1462
  )
1425
1463
  ] }),
1426
- /* @__PURE__ */ r.jsx(
1464
+ /* @__PURE__ */ a.jsx(
1427
1465
  Er,
1428
1466
  {
1429
- rows: fe,
1467
+ rows: Te,
1430
1468
  columns: Ge,
1431
1469
  totalRecords: Y,
1432
- currentPage: U,
1433
- loading: Ee,
1434
- rowModelType: Ot.CLIENT_SIDE,
1435
- onPageChange: G,
1436
- pageSize: j,
1470
+ currentPage: w,
1471
+ loading: me,
1472
+ rowModelType: It.CLIENT_SIDE,
1473
+ onPageChange: k,
1474
+ pageSize: N,
1437
1475
  pageSizeOptions: [..._t],
1438
- onPageSizeChange: (o) => {
1439
- ne(o), G(1);
1476
+ onPageSizeChange: (r) => {
1477
+ se(r), k(1);
1440
1478
  },
1441
- setSort: F,
1442
- sortModel: f,
1479
+ setSort: M,
1480
+ sortModel: d,
1443
1481
  height: 500
1444
1482
  },
1445
- p?.name
1483
+ T?.name
1446
1484
  ),
1447
- /* @__PURE__ */ r.jsxs(nr, { children: [
1448
- /* @__PURE__ */ r.jsx(L, { display: "flex", alignItems: "center", gap: 1, children: /* @__PURE__ */ r.jsxs(ir, { variant: "outlined", size: "small", children: [
1449
- /* @__PURE__ */ r.jsxs(Tt, { children: [
1450
- ze.SHOWING,
1485
+ /* @__PURE__ */ a.jsxs(nr, { children: [
1486
+ /* @__PURE__ */ a.jsx(P, { display: "flex", alignItems: "center", gap: 1, children: /* @__PURE__ */ a.jsxs(ir, { variant: "outlined", size: "small", children: [
1487
+ /* @__PURE__ */ a.jsxs(Tt, { children: [
1488
+ Je.SHOWING,
1451
1489
  " "
1452
1490
  ] }),
1453
- /* @__PURE__ */ r.jsx(
1491
+ /* @__PURE__ */ a.jsx(
1454
1492
  or,
1455
1493
  {
1456
- value: j,
1494
+ value: N,
1457
1495
  inputProps: { "aria-label": "Page size" },
1458
- onChange: (o) => {
1459
- ne(Number(o.target.value)), G(1);
1496
+ onChange: (r) => {
1497
+ se(Number(r.target.value)), k(1);
1460
1498
  },
1461
- children: _t.map((o) => /* @__PURE__ */ r.jsx(He, { value: o, children: o }, o))
1499
+ children: _t.map((r) => /* @__PURE__ */ a.jsx(ze, { value: r, children: r }, r))
1462
1500
  }
1463
1501
  ),
1464
- /* @__PURE__ */ r.jsxs(Tt, { children: [
1465
- ze.OF,
1502
+ /* @__PURE__ */ a.jsxs(Tt, { children: [
1503
+ Je.OF,
1466
1504
  " ",
1467
1505
  Y,
1468
1506
  " ",
1469
- ze.ENTRIES
1507
+ Je.ENTRIES
1470
1508
  ] })
1471
1509
  ] }) }),
1472
- /* @__PURE__ */ r.jsx(
1473
- Tr,
1510
+ /* @__PURE__ */ a.jsx(
1511
+ pr,
1474
1512
  {
1475
1513
  totalRecords: Y,
1476
- currentPage: U,
1477
- onPageChange: G,
1478
- pageSize: j
1514
+ currentPage: w,
1515
+ onPageChange: k,
1516
+ pageSize: N
1479
1517
  }
1480
1518
  )
1481
1519
  ] })
1482
1520
  ] })
1483
1521
  ] });
1484
- }, Xr = ({
1485
- apiClient: a,
1486
- apiEndpoints: u,
1487
- entity: d,
1522
+ }, zr = ({
1523
+ apiClient: n,
1524
+ apiEndpoints: f,
1525
+ entity: u,
1488
1526
  id: E,
1489
- mode: s,
1490
- onBack: k,
1491
- onSuccess: z
1527
+ mode: i,
1528
+ onBack: G,
1529
+ onSuccess: J
1492
1530
  }) => {
1493
- const p = Oe(() => At(a, u), [a, u]), [v, V] = w({}), [S, A] = w({}), [C, B] = w(!1), [re, fe] = w({}), [Q, Y] = w(!0), [b, j] = w(null), ne = Oe(() => Object.keys(v), [v]), U = Oe(() => ne.sort((_, T) => {
1494
- const l = v[_], f = v[T];
1495
- return l?.validation?.required && !f?.validation?.required ? -1 : !l?.validation?.required && f?.validation?.required ? 1 : _.localeCompare(T);
1496
- }), [ne, v]);
1497
- Pe(() => {
1498
- if (!d) return;
1499
- let _ = !0;
1531
+ const T = be(() => Ot(n, f), [n, f]), [h, V] = $({}), [S, v] = $({}), [D, B] = $(!1), [ne, Te] = $({}), [z, Y] = $(!0), [x, N] = $(null), se = be(() => Object.keys(h), [h]), w = be(() => se.sort((g, p) => {
1532
+ const l = h[g], d = h[p];
1533
+ return l?.validation?.required && !d?.validation?.required ? -1 : !l?.validation?.required && d?.validation?.required ? 1 : g.localeCompare(p);
1534
+ }), [se, h]);
1535
+ Ne(() => {
1536
+ if (!u) return;
1537
+ let g = !0;
1500
1538
  return (async () => {
1501
- Y(!0), j(null);
1539
+ Y(!0), N(null);
1502
1540
  try {
1503
- const l = await p.getMetadata(d);
1504
- if (!_) return;
1505
- const F = (l.data?.data || l.data || {}).formConfig || {};
1506
- V(F);
1507
- const O = {};
1508
- for (const [ee, $] of Object.entries(F))
1509
- if ($.fieldType === qe.DROPDOWN)
1510
- if ($.optionType === "API" && $.option && typeof $.option == "string")
1541
+ const l = await T.getMetadata(u);
1542
+ if (!g) return;
1543
+ const M = (l.data?.data || l.data || {}).formConfig || {};
1544
+ V(M);
1545
+ const A = {};
1546
+ for (const [re, F] of Object.entries(M))
1547
+ if (F.fieldType === Ke.DROPDOWN)
1548
+ if (F.optionType === "API" && F.option && typeof F.option == "string")
1511
1549
  try {
1512
- const he = ((await p.getDropdownOptions($.option)).data || []).map((se) => ({
1513
- value: se.id,
1514
- label: se.name || se.displayName || String(se.id)
1550
+ const ge = ((await T.getDropdownOptions(F.option)).data || []).map((ie) => ({
1551
+ value: ie.id,
1552
+ label: ie.name || ie.displayName || String(ie.id)
1515
1553
  }));
1516
- O[$.fieldName] = he;
1517
- } catch (oe) {
1518
- console.error(`Failed to load options for ${ee}:`, oe), O[$.fieldName] = [];
1554
+ A[F.fieldName] = ge;
1555
+ } catch (K) {
1556
+ console.error(`Failed to load options for ${re}:`, K), A[F.fieldName] = [];
1519
1557
  }
1520
- else $.optionType === "Raw" && Array.isArray($.option) && (O[$.fieldName] = $.option);
1521
- _ && fe(O);
1558
+ else F.optionType === "Raw" && Array.isArray(F.option) && (A[F.fieldName] = F.option);
1559
+ g && Te(A);
1522
1560
  } catch (l) {
1523
- console.error(ce.FAILED_LOAD_METADATA, l), _ && j(ce.FAILED_LOAD_FORM_CONFIG);
1561
+ console.error(ce.FAILED_LOAD_METADATA, l), g && N(ce.FAILED_LOAD_FORM_CONFIG);
1524
1562
  } finally {
1525
- _ && Y(!1);
1563
+ g && Y(!1);
1526
1564
  }
1527
1565
  })(), () => {
1528
- _ = !1;
1566
+ g = !1;
1529
1567
  };
1530
- }, [d, p, a]), Pe(() => {
1531
- if (!d || !E || s === X.CREATE) {
1532
- A({});
1568
+ }, [u, T, n]), Ne(() => {
1569
+ if (!u || !E || i === q.CREATE) {
1570
+ v({});
1533
1571
  return;
1534
1572
  }
1535
- let _ = !0;
1573
+ let g = !0;
1536
1574
  return (async () => {
1537
- B(!0), j(null);
1575
+ B(!0), N(null);
1538
1576
  try {
1539
- const l = await p.getRecord(d, E);
1540
- if (!_) return;
1541
- const f = l.data?.data || l.data || {}, F = {};
1542
- for (const [O, ee] of Object.entries(f))
1543
- O.endsWith(Rr) || (F[O] = ee);
1544
- A(F);
1577
+ const l = await T.getRecord(u, E);
1578
+ if (!g) return;
1579
+ const d = l.data?.data || l.data || {}, M = {};
1580
+ for (const [A, re] of Object.entries(d))
1581
+ A.endsWith(Rr) || (M[A] = re);
1582
+ v(M);
1545
1583
  } catch (l) {
1546
- console.error(ce.FAILED_LOAD_RECORD, l), _ && j(ce.FAILED_LOAD_RECORD);
1584
+ console.error(ce.FAILED_LOAD_RECORD, l), g && N(ce.FAILED_LOAD_RECORD);
1547
1585
  } finally {
1548
- _ && B(!1);
1586
+ g && B(!1);
1549
1587
  }
1550
1588
  })(), () => {
1551
- _ = !1;
1589
+ g = !1;
1552
1590
  };
1553
- }, [d, E, s, p]);
1554
- const G = Ne((_, T) => {
1555
- A((l) => ({ ...l, [_]: T }));
1556
- }, []), Ee = Ne(() => {
1557
- const _ = [];
1558
- for (const [T, l] of Object.entries(v))
1559
- l.validation?.required && !S[l.fieldName] && _.push(ce.FIELD_REQUIRED(T)), l.validation?.min !== void 0 && S[l.fieldName] < l.validation.min && _.push(`${T} must be at least ${l.validation.min}`), l.validation?.max !== void 0 && S[l.fieldName] > l.validation.max && _.push(`${T} must be at most ${l.validation.max}`);
1560
- return _;
1561
- }, [v, S]), Z = Ne(async () => {
1562
- if (!d) return;
1563
- const _ = Ee();
1564
- if (_.length > 0) {
1565
- j(_.join(", "));
1591
+ }, [u, E, i, T]);
1592
+ const k = Oe((g, p) => {
1593
+ v((l) => ({ ...l, [g]: p }));
1594
+ }, []), me = Oe(() => {
1595
+ const g = [];
1596
+ for (const [p, l] of Object.entries(h))
1597
+ l.validation?.required && !S[l.fieldName] && g.push(ce.FIELD_REQUIRED(p)), l.validation?.min !== void 0 && S[l.fieldName] < l.validation.min && g.push(`${p} must be at least ${l.validation.min}`), l.validation?.max !== void 0 && S[l.fieldName] > l.validation.max && g.push(`${p} must be at most ${l.validation.max}`);
1598
+ return g;
1599
+ }, [h, S]), X = Oe(async () => {
1600
+ if (!u) return;
1601
+ const g = me();
1602
+ if (g.length > 0) {
1603
+ N(g.join(", "));
1566
1604
  return;
1567
1605
  }
1568
- B(!0), j(null);
1606
+ B(!0), N(null);
1569
1607
  try {
1570
- const T = {};
1571
- for (const l of Object.values(v)) {
1572
- const f = l.fieldName;
1573
- f && S[f] !== void 0 && S[f] !== "" && (T[f] = S[f]);
1608
+ const p = {};
1609
+ for (const l of Object.values(h)) {
1610
+ const d = l.fieldName;
1611
+ d && S[d] !== void 0 && S[d] !== "" && (p[d] = S[d]);
1574
1612
  }
1575
- if (s === X.CREATE) {
1576
- const l = await p.createRecord(d, { data: T });
1577
- z?.(l);
1613
+ if (i === q.CREATE) {
1614
+ const l = await T.createRecord(u, { data: p });
1615
+ J?.(l);
1578
1616
  } else if (E) {
1579
- const l = await p.updateRecord(d, E, { data: T });
1580
- z?.(l);
1617
+ const l = await T.updateRecord(u, E, { data: p });
1618
+ J?.(l);
1581
1619
  }
1582
- k?.();
1583
- } catch (T) {
1584
- console.error("Failed to save record:", T);
1585
- const l = T?.response?.data?.message || (Array.isArray(T?.response?.data?.message) ? T.response.data.message.join(", ") : "Failed to save record. Please try again.");
1586
- j(l);
1620
+ G?.();
1621
+ } catch (p) {
1622
+ console.error("Failed to save record:", p);
1623
+ const l = p?.response?.data?.message || (Array.isArray(p?.response?.data?.message) ? p.response.data.message.join(", ") : "Failed to save record. Please try again.");
1624
+ N(l);
1587
1625
  } finally {
1588
1626
  B(!1);
1589
1627
  }
1590
- }, [d, v, S, Ee, s, E, p, k, z]), le = Ne((_) => {
1591
- const T = v[_], l = T?.fieldName;
1592
- if (!T || l === "id") return null;
1593
- const f = S[l] ?? "", F = s === X.VIEW || C;
1594
- return /* @__PURE__ */ r.jsxs(L, { className: "form-field", children: [
1595
- /* @__PURE__ */ r.jsxs(Ie, { variant: "body2", className: "field-label", children: [
1596
- _,
1597
- T.validation?.required && s !== X.VIEW && /* @__PURE__ */ r.jsx("span", { style: { color: mr }, children: pr })
1628
+ }, [u, h, S, me, i, E, T, G, J]), de = Oe((g) => {
1629
+ const p = h[g], l = p?.fieldName;
1630
+ if (!p || l === "id") return null;
1631
+ const d = S[l] ?? "", M = i === q.VIEW || D;
1632
+ return /* @__PURE__ */ a.jsxs(P, { className: "form-field", children: [
1633
+ /* @__PURE__ */ a.jsxs(Le, { variant: "body2", className: "field-label", children: [
1634
+ g,
1635
+ p.validation?.required && i !== q.VIEW && /* @__PURE__ */ a.jsx("span", { style: { color: mr }, children: Tr })
1598
1636
  ] }),
1599
- T.fieldType === qe.DROPDOWN ? /* @__PURE__ */ r.jsx(
1600
- Je,
1637
+ p.fieldType === Ke.DROPDOWN ? /* @__PURE__ */ a.jsx(
1638
+ Qe,
1601
1639
  {
1602
- options: re[l] || [],
1603
- getOptionLabel: (O) => O.label || String(O.value),
1604
- value: re[l]?.find((O) => O.value === f) || null,
1605
- onChange: (O, ee) => G(l, ee?.value ?? null),
1606
- disabled: F,
1607
- loading: Q,
1608
- renderInput: (O) => /* @__PURE__ */ r.jsx(
1609
- te,
1640
+ options: ne[l] || [],
1641
+ getOptionLabel: (A) => A.label || String(A.value),
1642
+ value: ne[l]?.find((A) => A.value === d) || null,
1643
+ onChange: (A, re) => k(l, re?.value ?? null),
1644
+ disabled: M,
1645
+ loading: z,
1646
+ renderInput: (A) => /* @__PURE__ */ a.jsx(
1647
+ ae,
1610
1648
  {
1611
- ...O,
1649
+ ...A,
1612
1650
  size: "small",
1613
- placeholder: Le.SELECT(_),
1614
- error: T.validation?.required && !f && s !== X.VIEW
1651
+ placeholder: xe.SELECT(g),
1652
+ error: p.validation?.required && !d && i !== q.VIEW
1615
1653
  }
1616
1654
  ),
1617
1655
  className: "field-input"
1618
1656
  }
1619
- ) : T.fieldType === qe.DATEPICKER ? /* @__PURE__ */ r.jsx(
1620
- te,
1657
+ ) : p.fieldType === Ke.DATEPICKER ? /* @__PURE__ */ a.jsx(
1658
+ ae,
1621
1659
  {
1622
1660
  type: "date",
1623
1661
  size: "small",
1624
- value: f ? String(f).slice(0, 10) : "",
1625
- onChange: (O) => G(l, O.target.value),
1626
- disabled: F,
1627
- error: T.validation?.required && !f && s !== X.VIEW,
1662
+ value: d ? String(d).slice(0, 10) : "",
1663
+ onChange: (A) => k(l, A.target.value),
1664
+ disabled: M,
1665
+ error: p.validation?.required && !d && i !== q.VIEW,
1628
1666
  className: "field-input",
1629
1667
  InputLabelProps: { shrink: !0 }
1630
1668
  }
1631
- ) : T.dataType === "number" || T.dataType === "float" ? /* @__PURE__ */ r.jsx(
1632
- te,
1669
+ ) : p.dataType === "number" || p.dataType === "float" ? /* @__PURE__ */ a.jsx(
1670
+ ae,
1633
1671
  {
1634
1672
  type: "number",
1635
1673
  size: "small",
1636
- value: f,
1637
- onChange: (O) => G(l, O.target.value),
1638
- disabled: F,
1639
- placeholder: _,
1640
- error: T.validation?.required && !f && s !== X.VIEW,
1674
+ value: d,
1675
+ onChange: (A) => k(l, A.target.value),
1676
+ disabled: M,
1677
+ placeholder: g,
1678
+ error: p.validation?.required && !d && i !== q.VIEW,
1641
1679
  inputProps: {
1642
- max: T.validation?.max,
1643
- min: T.validation?.min,
1644
- step: T.dataType === "float" ? 0.01 : 1
1680
+ max: p.validation?.max,
1681
+ min: p.validation?.min,
1682
+ step: p.dataType === "float" ? 0.01 : 1
1645
1683
  },
1646
1684
  className: "field-input"
1647
1685
  }
1648
- ) : /* @__PURE__ */ r.jsx(
1649
- te,
1686
+ ) : /* @__PURE__ */ a.jsx(
1687
+ ae,
1650
1688
  {
1651
1689
  size: "small",
1652
- value: f,
1653
- onChange: (O) => G(l, O.target.value),
1654
- disabled: F,
1655
- placeholder: _,
1656
- error: T.validation?.required && !f && s !== X.VIEW,
1690
+ value: d,
1691
+ onChange: (A) => k(l, A.target.value),
1692
+ disabled: M,
1693
+ placeholder: g,
1694
+ error: p.validation?.required && !d && i !== q.VIEW,
1657
1695
  inputProps: {
1658
- maxLength: T.validation?.max
1696
+ maxLength: p.validation?.max
1659
1697
  },
1660
1698
  className: "field-input"
1661
1699
  }
1662
1700
  )
1663
- ] }, _);
1664
- }, [v, S, re, G, s, C, Q]);
1665
- return Q ? /* @__PURE__ */ r.jsx(L, { className: "loading-container", display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px", children: /* @__PURE__ */ r.jsx(Ue, {}) }) : /* @__PURE__ */ r.jsx(L, { className: "master-form", children: /* @__PURE__ */ r.jsxs(vt, { className: "form-section", children: [
1666
- /* @__PURE__ */ r.jsxs(Ie, { variant: "h5", gutterBottom: !0, children: [
1667
- s === X.CREATE ? $e.ADD_NEW_RECORD : s === X.EDIT ? $e.EDIT_RECORD : $e.VIEW_RECORD,
1668
- d && ` - ${d.charAt(0).toUpperCase() + d.slice(1)}`
1701
+ ] }, g);
1702
+ }, [h, S, ne, k, i, D, z]);
1703
+ return z ? /* @__PURE__ */ a.jsx(P, { className: "loading-container", display: "flex", justifyContent: "center", alignItems: "center", minHeight: "400px", children: /* @__PURE__ */ a.jsx($e, {}) }) : /* @__PURE__ */ a.jsx(P, { className: "master-form", children: /* @__PURE__ */ a.jsxs(vt, { className: "form-section", children: [
1704
+ /* @__PURE__ */ a.jsxs(Le, { variant: "h5", gutterBottom: !0, children: [
1705
+ i === q.CREATE ? Xe.ADD_NEW_RECORD : i === q.EDIT ? Xe.EDIT_RECORD : Xe.VIEW_RECORD,
1706
+ u && ` - ${u.charAt(0).toUpperCase() + u.slice(1)}`
1669
1707
  ] }),
1670
- b && /* @__PURE__ */ r.jsx(Kt, { severity: "error", onClose: () => j(null), sx: { mb: 2 }, children: b }),
1671
- C && s !== X.VIEW && /* @__PURE__ */ r.jsx(L, { display: "flex", justifyContent: "center", my: 2, children: /* @__PURE__ */ r.jsx(Ue, { size: 24 }) }),
1672
- /* @__PURE__ */ r.jsx(L, { className: "form-fields", children: U.map(le) }),
1673
- /* @__PURE__ */ r.jsx(L, { className: "action-buttons", mt: 3, children: s !== X.VIEW ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1674
- /* @__PURE__ */ r.jsx(
1675
- ie,
1708
+ x && /* @__PURE__ */ a.jsx(Jt, { severity: "error", onClose: () => N(null), sx: { mb: 2 }, children: x }),
1709
+ D && i !== q.VIEW && /* @__PURE__ */ a.jsx(P, { display: "flex", justifyContent: "center", my: 2, children: /* @__PURE__ */ a.jsx($e, { size: 24 }) }),
1710
+ /* @__PURE__ */ a.jsx(P, { className: "form-fields", children: w.map(de) }),
1711
+ /* @__PURE__ */ a.jsx(P, { className: "action-buttons", mt: 3, children: i !== q.VIEW ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1712
+ /* @__PURE__ */ a.jsx(
1713
+ ue,
1676
1714
  {
1677
1715
  variant: "contained",
1678
- onClick: Z,
1679
- disabled: C,
1680
- children: C ? /* @__PURE__ */ r.jsx(Ue, { size: 24 }) : s === X.CREATE ? de.CREATE : de.UPDATE
1716
+ onClick: X,
1717
+ disabled: D,
1718
+ children: D ? /* @__PURE__ */ a.jsx($e, { size: 24 }) : i === q.CREATE ? Ee.CREATE : Ee.UPDATE
1681
1719
  }
1682
1720
  ),
1683
- /* @__PURE__ */ r.jsx(
1684
- ie,
1721
+ /* @__PURE__ */ a.jsx(
1722
+ ue,
1685
1723
  {
1686
1724
  variant: "outlined",
1687
- onClick: () => k?.(),
1688
- disabled: C,
1689
- children: de.CANCEL
1725
+ onClick: () => G?.(),
1726
+ disabled: D,
1727
+ children: Ee.CANCEL
1690
1728
  }
1691
1729
  )
1692
- ] }) : /* @__PURE__ */ r.jsx(ie, { variant: "outlined", onClick: () => k?.(), children: de.BACK }) })
1730
+ ] }) : /* @__PURE__ */ a.jsx(ue, { variant: "outlined", onClick: () => G?.(), children: Ee.BACK }) })
1693
1731
  ] }) });
1694
- }, zr = {
1732
+ }, Xr = {
1695
1733
  ROOT: "/",
1696
1734
  MASTER: "/master",
1697
- MASTER_ENTITY_NEW: (a) => `/master/${a}/new`,
1698
- MASTER_ENTITY_VIEW: (a, u) => `/master/${a}/${u}`,
1699
- MASTER_ENTITY_EDIT: (a, u) => `/master/${a}/${u}/edit`
1735
+ MASTER_ENTITY_NEW: (n) => `/master/${n}/new`,
1736
+ MASTER_ENTITY_VIEW: (n, f) => `/master/${n}/${f}`,
1737
+ MASTER_ENTITY_EDIT: (n, f) => `/master/${n}/${f}/edit`
1700
1738
  }, qr = {
1701
1739
  ROOT: "/",
1702
1740
  MASTER: "/master",
1703
1741
  MASTER_ENTITY_NEW: "/master/:entity/new",
1704
1742
  MASTER_ENTITY_VIEW: "/master/:entity/:id",
1705
1743
  MASTER_ENTITY_EDIT: "/master/:entity/:id/edit"
1706
- }, Kr = {
1744
+ }, Jr = {
1707
1745
  NEW: "new",
1708
1746
  EDIT: "edit",
1709
1747
  VIEW: "view"
1710
- }, Jr = {
1748
+ }, Kr = {
1711
1749
  ENTITY: "entity",
1712
1750
  ID: "id"
1713
1751
  }, Qr = {
@@ -1715,63 +1753,63 @@ const Er = ({
1715
1753
  EDIT: "/edit"
1716
1754
  };
1717
1755
  export {
1718
- jr as API_BASE_PATHS,
1756
+ Fr as API_BASE_PATHS,
1719
1757
  Pr as API_CONFIG,
1720
- Fr as API_ENDPOINTS,
1758
+ jr as API_ENDPOINTS,
1721
1759
  Lr as ARIA_LABELS,
1722
- de as BUTTON_LABELS,
1760
+ Ee as BUTTON_LABELS,
1723
1761
  Or as COLUMN_PROPERTIES,
1724
1762
  xr as CSS_CLASSES,
1725
- be as DATA_TYPES,
1763
+ De as DATA_TYPES,
1726
1764
  Nr as DATE_FORMATS,
1727
- J as DATE_RANGE_SUFFIXES,
1765
+ te as DATE_RANGE_SUFFIXES,
1728
1766
  Rr as DISPLAY_FIELD_SUFFIX,
1729
1767
  Cr as EMPTY_STATE_MESSAGES,
1730
1768
  ce as ERROR_MESSAGES,
1731
- mt as EXPORT_OPTIONS,
1732
- Xe as FIELD_LABELS,
1733
- kr as FIELD_NAMES,
1734
- qe as FIELD_TYPES,
1735
- Rt as FILE_EXTENSIONS,
1736
- X as FORM_MODES,
1737
- ur as GRID_CSS_CLASSES,
1769
+ Rt as EXPORT_OPTIONS,
1770
+ qe as FIELD_LABELS,
1771
+ Gr as FIELD_NAMES,
1772
+ Ke as FIELD_TYPES,
1773
+ gt as FILE_EXTENSIONS,
1774
+ q as FORM_MODES,
1775
+ dr as GRID_CSS_CLASSES,
1738
1776
  cr as GRID_EVENT_SOURCES,
1739
- pt as GRID_LAYOUT,
1740
- dr as GRID_MESSAGES,
1777
+ mt as GRID_LAYOUT,
1778
+ ur as GRID_MESSAGES,
1741
1779
  lr as GRID_SETTINGS,
1742
- ze as GRID_TEXT,
1780
+ Je as GRID_TEXT,
1743
1781
  fr as GRID_TIMEOUTS,
1744
- Mr as HTTP_METHODS,
1782
+ wr as HTTP_METHODS,
1745
1783
  Yr as INPUT_TYPES,
1746
1784
  Dr as LOADING_MESSAGES,
1747
- gt as MIME_TYPES,
1748
- Xr as MasterForm,
1785
+ ht as MIME_TYPES,
1786
+ zr as MasterForm,
1749
1787
  Hr as MasterView,
1750
1788
  Wr as NUMBER_INPUT,
1751
- Gr as OPTION_TYPES,
1789
+ kr as OPTION_TYPES,
1752
1790
  _t as PAGE_SIZE_OPTIONS,
1753
- $e as PAGE_TITLES,
1754
- Sr as PAGINATION_SETTINGS,
1755
- Le as PLACEHOLDERS,
1756
- Tr as Pagination,
1757
- wr as QUERY_PARAMS,
1791
+ Xe as PAGE_TITLES,
1792
+ vr as PAGINATION_SETTINGS,
1793
+ xe as PLACEHOLDERS,
1794
+ pr as Pagination,
1795
+ Mr as QUERY_PARAMS,
1758
1796
  Br as REGEX_PATTERNS,
1759
- pr as REQUIRED_INDICATOR,
1797
+ Tr as REQUIRED_INDICATOR,
1760
1798
  mr as REQUIRED_INDICATOR_COLOR,
1761
1799
  $r as RESPONSE_KEYS,
1762
1800
  Ur as RESPONSE_TYPES,
1763
- zr as ROUTES,
1764
- Kr as ROUTE_KEYS,
1801
+ Xr as ROUTES,
1802
+ Jr as ROUTE_KEYS,
1765
1803
  qr as ROUTE_PATTERNS,
1766
1804
  Qr as ROUTE_SUFFIXES,
1767
- Ot as ROW_MODEL_TYPES,
1768
- we as SORT_ORDER,
1805
+ It as ROW_MODEL_TYPES,
1806
+ Ue as SORT_ORDER,
1769
1807
  Ar as SORT_SETTINGS,
1770
1808
  br as STYLE_CONSTANTS,
1771
1809
  Ir as SUCCESS_MESSAGES,
1772
1810
  Er as ServerSideGrid,
1773
- Jr as URL_PARAMS,
1811
+ Kr as URL_PARAMS,
1774
1812
  yr as VALIDATION_MESSAGES,
1775
1813
  Vr as VALIDATION_RULES,
1776
- At as createApiService
1814
+ Ot as createApiService
1777
1815
  };