sera-components 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- var Dn = Object.defineProperty;
2
- var Vn = (e, n, t) => n in e ? Dn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
1
+ var bn = Object.defineProperty;
2
+ var Vn = (e, n, t) => n in e ? bn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var ee = (e, n, t) => Vn(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import * as Xe from "react";
5
- import Tn, { createContext as De, useContext as U, useMemo as _, useState as M, useEffect as Ve } from "react";
6
- import { Paper as ie, Image as An, Text as E, Menu as ae, Button as z, Container as Nn, Alert as lt, Stack as Y, Flex as B, Loader as $e, NavLink as yt, Popover as de, Group as O, Checkbox as ce, Input as J, useCombobox as qt, Combobox as G, Grid as N, InputBase as kn, PasswordInput as Bt, Select as Ln, CloseButton as On, Divider as zn, Tooltip as Ut, Fieldset as Yt, Table as Kt, rem as fe, Pagination as Gn, MenuTarget as Hn, MenuDropdown as qn, MenuItem as Bn, TextInput as _t, ActionIcon as Ft, Tabs as je } from "@mantine/core";
7
- import { IconCheck as Un, IconInfoCircle as at, IconChevronRight as Yn, IconSearch as ut, IconCalendar as Me, IconHelpCircle as Wt, IconPlus as Kn, IconPencil as Wn, IconTrash as Xn, IconReload as Jn, IconDatabaseImport as Qn, IconDownload as Zn, IconDatabaseOff as eo, IconSelector as to, IconCircleX as no, IconAdjustmentsHorizontal as oo, IconKeyboard as ro } from "@tabler/icons-react";
5
+ import Tn, { createContext as be, useContext as U, useMemo as _, useState as M, useEffect as Ve } from "react";
6
+ import { Paper as ie, Image as An, Text as E, Menu as le, Button as z, Container as Nn, Alert as lt, Stack as Y, Flex as B, Loader as Ee, NavLink as jt, Popover as ue, Group as O, Checkbox as de, Input as J, useCombobox as Ht, Combobox as G, Grid as N, InputBase as Ln, PasswordInput as qt, Select as kn, CloseButton as On, Divider as zn, Tooltip as Bt, Fieldset as Ut, Table as Yt, rem as ge, Pagination as Gn, MenuTarget as Hn, MenuDropdown as qn, MenuItem as Bn, TextInput as yt, ActionIcon as _t, Tabs as Re } from "@mantine/core";
7
+ import { IconCheck as Un, IconInfoCircle as at, IconChevronRight as Yn, IconSearch as ut, IconCalendar as $e, IconHelpCircle as Kt, IconPlus as Kn, IconPencil as Wn, IconTrash as Xn, IconReload as Jn, IconDatabaseImport as Qn, IconDownload as Zn, IconDatabaseOff as eo, IconSelector as to, IconCircleX as no, IconAdjustmentsHorizontal as oo, IconKeyboard as ro } from "@tabler/icons-react";
8
8
  import { observer as oe } from "mobx-react-lite";
9
- import { isNestedProperty as Xt, NestedProperty as W, isObjectProperty as se, DynamicMultiLingualString as io, isDraftRecord as Jt, I18NStore as so, validators as It } from "sera-db";
9
+ import { isNestedProperty as dt, NestedProperty as W, isObjectProperty as ce, DynamicMultiLingualString as io, isDraftRecord as Wt, I18NStore as so, validators as Ft } from "sera-db";
10
10
  import { IMaskInput as lo } from "react-imask";
11
11
  import Z from "dayjs";
12
- import { DatePickerInput as Je, DateTimePicker as Pt } from "@mantine/dates";
12
+ import { DatePickerInput as Je, DateTimePicker as It } from "@mantine/dates";
13
13
  import { debounce as ao } from "throttle-debounce";
14
- var ye = { exports: {} }, me = {};
14
+ var je = { exports: {} }, fe = {};
15
15
  /**
16
16
  * @license React
17
17
  * react-jsx-runtime.production.js
@@ -21,14 +21,14 @@ var ye = { exports: {} }, me = {};
21
21
  * This source code is licensed under the MIT license found in the
22
22
  * LICENSE file in the root directory of this source tree.
23
23
  */
24
- var Et;
24
+ var Pt;
25
25
  function uo() {
26
- if (Et) return me;
27
- Et = 1;
26
+ if (Pt) return fe;
27
+ Pt = 1;
28
28
  var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
29
29
  function t(o, r, i) {
30
- var s = null;
31
- if (i !== void 0 && (s = "" + i), r.key !== void 0 && (s = "" + r.key), "key" in r) {
30
+ var l = null;
31
+ if (i !== void 0 && (l = "" + i), r.key !== void 0 && (l = "" + r.key), "key" in r) {
32
32
  i = {};
33
33
  for (var a in r)
34
34
  a !== "key" && (i[a] = r[a]);
@@ -36,12 +36,12 @@ function uo() {
36
36
  return r = i.ref, {
37
37
  $$typeof: e,
38
38
  type: o,
39
- key: s,
39
+ key: l,
40
40
  ref: r !== void 0 ? r : null,
41
41
  props: i
42
42
  };
43
43
  }
44
- return me.Fragment = n, me.jsx = t, me.jsxs = t, me;
44
+ return fe.Fragment = n, fe.jsx = t, fe.jsxs = t, fe;
45
45
  }
46
46
  var pe = {};
47
47
  /**
@@ -53,13 +53,13 @@ var pe = {};
53
53
  * This source code is licensed under the MIT license found in the
54
54
  * LICENSE file in the root directory of this source tree.
55
55
  */
56
- var $t;
56
+ var Et;
57
57
  function co() {
58
- return $t || ($t = 1, process.env.NODE_ENV !== "production" && (function() {
58
+ return Et || (Et = 1, process.env.NODE_ENV !== "production" && (function() {
59
59
  function e(C) {
60
60
  if (C == null) return null;
61
61
  if (typeof C == "function")
62
- return C.$$typeof === xe ? null : C.displayName || C.name || null;
62
+ return C.$$typeof === we ? null : C.displayName || C.name || null;
63
63
  if (typeof C == "string") return C;
64
64
  switch (C) {
65
65
  case v:
@@ -68,7 +68,7 @@ function co() {
68
68
  return "Profiler";
69
69
  case S:
70
70
  return "StrictMode";
71
- case k:
71
+ case L:
72
72
  return "Suspense";
73
73
  case F:
74
74
  return "SuspenseList";
@@ -137,8 +137,8 @@ function co() {
137
137
  function i() {
138
138
  return Error("react-stack-top-frame");
139
139
  }
140
- function s(C) {
141
- if (vt.call(C, "key")) {
140
+ function l(C) {
141
+ if (St.call(C, "key")) {
142
142
  var j = Object.getOwnPropertyDescriptor(C, "key").get;
143
143
  if (j && j.isReactWarning) return !1;
144
144
  }
@@ -146,7 +146,7 @@ function co() {
146
146
  }
147
147
  function a(C, j) {
148
148
  function $() {
149
- Ct || (Ct = !0, console.error(
149
+ vt || (vt = !0, console.error(
150
150
  "%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://react.dev/link/special-props)",
151
151
  j
152
152
  ));
@@ -158,19 +158,19 @@ function co() {
158
158
  }
159
159
  function u() {
160
160
  var C = e(this.type);
161
- return wt[C] || (wt[C] = !0, console.error(
161
+ return Ct[C] || (Ct[C] = !0, console.error(
162
162
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
163
163
  )), C = this.props.ref, C !== void 0 ? C : null;
164
164
  }
165
- function d(C, j, $, D, Re, Le) {
166
- var V = $.ref;
165
+ function c(C, j, $, D, xe, ke) {
166
+ var b = $.ref;
167
167
  return C = {
168
- $$typeof: f,
168
+ $$typeof: p,
169
169
  type: C,
170
170
  key: j,
171
171
  props: $,
172
172
  _owner: D
173
- }, (V !== void 0 ? V : null) !== null ? Object.defineProperty(C, "ref", {
173
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(C, "ref", {
174
174
  enumerable: !1,
175
175
  get: u
176
176
  }) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
@@ -187,33 +187,33 @@ function co() {
187
187
  configurable: !1,
188
188
  enumerable: !1,
189
189
  writable: !0,
190
- value: Re
190
+ value: xe
191
191
  }), Object.defineProperty(C, "_debugTask", {
192
192
  configurable: !1,
193
193
  enumerable: !1,
194
194
  writable: !0,
195
- value: Le
195
+ value: ke
196
196
  }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
197
197
  }
198
- function g(C, j, $, D, Re, Le) {
199
- var V = j.children;
200
- if (V !== void 0)
198
+ function f(C, j, $, D, xe, ke) {
199
+ var b = j.children;
200
+ if (b !== void 0)
201
201
  if (D)
202
- if (Mn(V)) {
203
- for (D = 0; D < V.length; D++)
204
- m(V[D]);
205
- Object.freeze && Object.freeze(V);
202
+ if (Mn(b)) {
203
+ for (D = 0; D < b.length; D++)
204
+ g(b[D]);
205
+ Object.freeze && Object.freeze(b);
206
206
  } else
207
207
  console.error(
208
208
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
209
209
  );
210
- else m(V);
211
- if (vt.call(j, "key")) {
212
- V = e(C);
213
- var le = Object.keys(j).filter(function(bn) {
214
- return bn !== "key";
210
+ else g(b);
211
+ if (St.call(j, "key")) {
212
+ b = e(C);
213
+ var se = Object.keys(j).filter(function(Dn) {
214
+ return Dn !== "key";
215
215
  });
216
- D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", jt[V + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
216
+ D = 0 < se.length ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}", Rt[b + D] || (se = 0 < se.length ? "{" + se.join(": ..., ") + ": ...}" : "{}", console.error(
217
217
  `A props object containing a "key" prop is being spread into JSX:
218
218
  let props = %s;
219
219
  <%s {...props} />
@@ -221,74 +221,74 @@ React keys must be passed directly to JSX without using spread:
221
221
  let props = %s;
222
222
  <%s key={someKey} {...props} />`,
223
223
  D,
224
- V,
225
- le,
226
- V
227
- ), jt[V + D] = !0);
224
+ b,
225
+ se,
226
+ b
227
+ ), Rt[b + D] = !0);
228
228
  }
229
- if (V = null, $ !== void 0 && (t($), V = "" + $), s(j) && (t(j.key), V = "" + j.key), "key" in j) {
229
+ if (b = null, $ !== void 0 && (t($), b = "" + $), l(j) && (t(j.key), b = "" + j.key), "key" in j) {
230
230
  $ = {};
231
231
  for (var Oe in j)
232
232
  Oe !== "key" && ($[Oe] = j[Oe]);
233
233
  } else $ = j;
234
- return V && a(
234
+ return b && a(
235
235
  $,
236
236
  typeof C == "function" ? C.displayName || C.name || "Unknown" : C
237
- ), d(
237
+ ), c(
238
238
  C,
239
- V,
239
+ b,
240
240
  $,
241
241
  r(),
242
- Re,
243
- Le
242
+ xe,
243
+ ke
244
244
  );
245
245
  }
246
- function m(C) {
247
- p(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === H && (C._payload.status === "fulfilled" ? p(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
246
+ function g(C) {
247
+ m(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === H && (C._payload.status === "fulfilled" ? m(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
248
248
  }
249
- function p(C) {
250
- return typeof C == "object" && C !== null && C.$$typeof === f;
249
+ function m(C) {
250
+ return typeof C == "object" && C !== null && C.$$typeof === p;
251
251
  }
252
- var c = Tn, f = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), Ae = Symbol.for("react.activity"), xe = Symbol.for("react.client.reference"), Ne = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, vt = Object.prototype.hasOwnProperty, Mn = Array.isArray, ke = console.createTask ? console.createTask : function() {
252
+ var d = Tn, p = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), I = Symbol.for("react.context"), P = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), Ae = Symbol.for("react.activity"), we = Symbol.for("react.client.reference"), Ne = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, St = Object.prototype.hasOwnProperty, Mn = Array.isArray, Le = console.createTask ? console.createTask : function() {
253
253
  return null;
254
254
  };
255
- c = {
255
+ d = {
256
256
  react_stack_bottom_frame: function(C) {
257
257
  return C();
258
258
  }
259
259
  };
260
- var Ct, wt = {}, xt = c.react_stack_bottom_frame.bind(
261
- c,
260
+ var vt, Ct = {}, wt = d.react_stack_bottom_frame.bind(
261
+ d,
262
262
  i
263
- )(), Rt = ke(o(i)), jt = {};
263
+ )(), xt = Le(o(i)), Rt = {};
264
264
  pe.Fragment = v, pe.jsx = function(C, j, $) {
265
265
  var D = 1e4 > Ne.recentlyCreatedOwnerStacks++;
266
- return g(
266
+ return f(
267
267
  C,
268
268
  j,
269
269
  $,
270
270
  !1,
271
- D ? Error("react-stack-top-frame") : xt,
272
- D ? ke(o(C)) : Rt
271
+ D ? Error("react-stack-top-frame") : wt,
272
+ D ? Le(o(C)) : xt
273
273
  );
274
274
  }, pe.jsxs = function(C, j, $) {
275
275
  var D = 1e4 > Ne.recentlyCreatedOwnerStacks++;
276
- return g(
276
+ return f(
277
277
  C,
278
278
  j,
279
279
  $,
280
280
  !0,
281
- D ? Error("react-stack-top-frame") : xt,
282
- D ? ke(o(C)) : Rt
281
+ D ? Error("react-stack-top-frame") : wt,
282
+ D ? Le(o(C)) : xt
283
283
  );
284
284
  };
285
285
  })()), pe;
286
286
  }
287
- var Mt;
287
+ var $t;
288
288
  function go() {
289
- return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? ye.exports = uo() : ye.exports = co()), ye.exports;
289
+ return $t || ($t = 1, process.env.NODE_ENV === "production" ? je.exports = uo() : je.exports = co()), je.exports;
290
290
  }
291
- var l = go();
291
+ var s = go();
292
292
  const A = {
293
293
  UK: {
294
294
  svgFlag: "https://flagcdn.com/gb.svg",
@@ -354,24 +354,24 @@ const A = {
354
354
  svgFlag: "https://flagcdn.com/kh.svg",
355
355
  emojiFlag: "🇰🇭"
356
356
  }
357
- }, fo = ({ flag: e }) => /* @__PURE__ */ l.jsx(ie, { shadow: "xs", w: 20, h: 14, children: /* @__PURE__ */ l.jsx(An, { src: e.svgFlag, w: 20, h: 14, fit: "cover" }) }), mo = ({ flag: e }) => /* @__PURE__ */ l.jsx(
357
+ }, fo = ({ flag: e }) => /* @__PURE__ */ s.jsx(ie, { shadow: "xs", w: 20, h: 14, children: /* @__PURE__ */ s.jsx(An, { src: e.svgFlag, w: 20, h: 14, fit: "cover" }) }), po = ({ flag: e }) => /* @__PURE__ */ s.jsx(
358
358
  E,
359
359
  {
360
360
  component: "span",
361
361
  style: (n) => ({ textShadow: n.shadows.xs }),
362
362
  children: e.emojiFlag
363
363
  }
364
- ), Qe = navigator.userAgent.includes("Windows") ? fo : mo, re = De(new Intl.Locale("en-US")), xi = oe(
364
+ ), Qe = navigator.userAgent.includes("Windows") ? fo : po, re = be(new Intl.Locale("en-US")), xi = oe(
365
365
  ({
366
366
  value: e,
367
367
  children: n
368
- }) => /* @__PURE__ */ l.jsx(re.Provider, { value: e.locale, children: n })
369
- ), po = {
368
+ }) => /* @__PURE__ */ s.jsx(re.Provider, { value: e.locale, children: n })
369
+ ), mo = {
370
370
  lang2value: {
371
371
  en: "Choose Language",
372
372
  vi: "Chọn ngôn ngữ"
373
373
  }
374
- }, _e = {
374
+ }, ye = {
375
375
  en: {
376
376
  name: "English",
377
377
  flag: A.US,
@@ -386,47 +386,47 @@ const A = {
386
386
  locale: e,
387
387
  setLocale: n
388
388
  }) => {
389
- const t = _(() => Object.entries(_e).map(
390
- ([o, { flag: r, name: i, locale: s }]) => /* @__PURE__ */ l.jsx(
391
- ae.Item,
389
+ const t = _(() => Object.entries(ye).map(
390
+ ([o, { flag: r, name: i, locale: l }]) => /* @__PURE__ */ s.jsx(
391
+ le.Item,
392
392
  {
393
- onClick: () => n(s),
394
- leftSection: /* @__PURE__ */ l.jsx(Qe, { flag: r }),
395
- rightSection: e.language === o && /* @__PURE__ */ l.jsx(Un, { size: "15", color: "#2986cc", stroke: 2 }),
396
- children: /* @__PURE__ */ l.jsx(E, { size: "sm", children: i })
393
+ onClick: () => n(l),
394
+ leftSection: /* @__PURE__ */ s.jsx(Qe, { flag: r }),
395
+ rightSection: e.language === o && /* @__PURE__ */ s.jsx(Un, { size: "15", color: "#2986cc", stroke: 2 }),
396
+ children: /* @__PURE__ */ s.jsx(E, { size: "sm", children: i })
397
397
  },
398
398
  o
399
399
  )
400
- ), [_e, e]);
401
- return /* @__PURE__ */ l.jsxs(ae, { width: 170, children: [
402
- /* @__PURE__ */ l.jsx(ae.Target, { children: /* @__PURE__ */ l.jsx(
400
+ ), [ye, e]);
401
+ return /* @__PURE__ */ s.jsxs(le, { width: 170, children: [
402
+ /* @__PURE__ */ s.jsx(le.Target, { children: /* @__PURE__ */ s.jsx(
403
403
  z,
404
404
  {
405
405
  variant: "subtle",
406
406
  size: "sm",
407
- leftSection: /* @__PURE__ */ l.jsx(Qe, { flag: _e[e.language].flag }),
408
- children: /* @__PURE__ */ l.jsx(E, { size: "sm", children: _e[e.language].name })
407
+ leftSection: /* @__PURE__ */ s.jsx(Qe, { flag: ye[e.language].flag }),
408
+ children: /* @__PURE__ */ s.jsx(E, { size: "sm", children: ye[e.language].name })
409
409
  }
410
410
  ) }),
411
- /* @__PURE__ */ l.jsxs(ae.Dropdown, { children: [
412
- /* @__PURE__ */ l.jsx(ae.Label, { children: /* @__PURE__ */ l.jsx(E, { size: "sm", children: po.lang2value[e.language] }) }),
411
+ /* @__PURE__ */ s.jsxs(le.Dropdown, { children: [
412
+ /* @__PURE__ */ s.jsx(le.Label, { children: /* @__PURE__ */ s.jsx(E, { size: "sm", children: mo.lang2value[e.language] }) }),
413
413
  t
414
414
  ] })
415
415
  ] });
416
- }, b = ({ value: e }) => {
416
+ }, V = ({ value: e }) => {
417
417
  const n = U(re);
418
418
  return e.lang2value[n.language] || e.lang2value[e.lang];
419
419
  }, ji = (e) => {
420
420
  const n = U(re);
421
421
  return e.lang2value[n.language] || e.lang2value[e.lang];
422
422
  };
423
- function Se(e, n) {
423
+ function he(e, n) {
424
424
  return n.lang2value[e.language] || n.lang2value[n.lang];
425
425
  }
426
426
  const yi = ({
427
427
  message: e,
428
428
  navigate: n
429
- }) => /* @__PURE__ */ l.jsx(
429
+ }) => /* @__PURE__ */ s.jsx(
430
430
  Nn,
431
431
  {
432
432
  size: "xs",
@@ -436,30 +436,30 @@ const yi = ({
436
436
  alignItems: "center",
437
437
  justifyContent: "center"
438
438
  },
439
- children: /* @__PURE__ */ l.jsx(
439
+ children: /* @__PURE__ */ s.jsx(
440
440
  lt,
441
441
  {
442
442
  color: "red",
443
443
  title: "Not Found",
444
444
  variant: "404 - Not Found",
445
- icon: /* @__PURE__ */ l.jsx(at, { size: 12, stroke: 1.5 }),
446
- children: /* @__PURE__ */ l.jsxs(Y, { align: "flex-start", children: [
445
+ icon: /* @__PURE__ */ s.jsx(at, { size: 12, stroke: 1.5 }),
446
+ children: /* @__PURE__ */ s.jsxs(Y, { align: "flex-start", children: [
447
447
  e || "Sorry, the page you are looking for does not exist.",
448
- /* @__PURE__ */ l.jsx(z, { variant: "filled", onClick: () => n("/"), size: "xs", children: "Back Home" })
448
+ /* @__PURE__ */ s.jsx(z, { variant: "filled", onClick: () => n("/"), size: "xs", children: "Back Home" })
449
449
  ] })
450
450
  }
451
451
  )
452
452
  }
453
- ), _i = ({ message: e }) => /* @__PURE__ */ l.jsx(
453
+ ), _i = ({ message: e }) => /* @__PURE__ */ s.jsx(
454
454
  lt,
455
455
  {
456
456
  color: "red",
457
457
  title: "Not Found",
458
458
  variant: "404 - Not Found",
459
- icon: /* @__PURE__ */ l.jsx(at, { size: 12, stroke: 1.5 }),
459
+ icon: /* @__PURE__ */ s.jsx(at, { size: 12, stroke: 1.5 }),
460
460
  children: e || "Sorry, the page you are looking for does not exist."
461
461
  }
462
- ), Qt = ({ message: e }) => /* @__PURE__ */ l.jsx(E, { c: "red", size: "sm", children: e || "Not Found" }), Fi = ({ tip: e }) => e === void 0 ? /* @__PURE__ */ l.jsx(B, { justify: "center", align: "center", children: /* @__PURE__ */ l.jsx($e, { color: "blue", size: "md" }) }) : /* @__PURE__ */ l.jsxs(
462
+ ), Xt = ({ message: e }) => /* @__PURE__ */ s.jsx(E, { c: "red", size: "sm", children: e || "Not Found" }), Fi = ({ tip: e }) => e === void 0 ? /* @__PURE__ */ s.jsx(B, { justify: "center", align: "center", children: /* @__PURE__ */ s.jsx(Ee, { color: "blue", size: "md" }) }) : /* @__PURE__ */ s.jsxs(
463
463
  B,
464
464
  {
465
465
  gap: "md",
@@ -468,20 +468,20 @@ const yi = ({
468
468
  align: "center",
469
469
  style: { height: "100%" },
470
470
  children: [
471
- /* @__PURE__ */ l.jsx($e, { color: "blue", size: "md" }),
471
+ /* @__PURE__ */ s.jsx(Ee, { color: "blue", size: "md" }),
472
472
  e
473
473
  ]
474
474
  }
475
- ), Ii = ({ tip: e }) => e === void 0 ? /* @__PURE__ */ l.jsx($e, { color: "blue", size: "xs" }) : /* @__PURE__ */ l.jsxs(B, { gap: "md", direction: "column", justify: "center", align: "center", children: [
476
- /* @__PURE__ */ l.jsx($e, { color: "blue", size: "xs" }),
475
+ ), Ii = ({ tip: e }) => e === void 0 ? /* @__PURE__ */ s.jsx(Ee, { color: "blue", size: "xs" }) : /* @__PURE__ */ s.jsxs(B, { gap: "md", direction: "column", justify: "center", align: "center", children: [
476
+ /* @__PURE__ */ s.jsx(Ee, { color: "blue", size: "xs" }),
477
477
  e
478
- ] }), Pi = ({ message: e }) => /* @__PURE__ */ l.jsx(
478
+ ] }), Pi = ({ message: e }) => /* @__PURE__ */ s.jsx(
479
479
  lt,
480
480
  {
481
481
  color: "red",
482
482
  title: "Not Found",
483
483
  variant: "403 - Not Authorized",
484
- icon: /* @__PURE__ */ l.jsx(at, { size: 12, stroke: 1.5 }),
484
+ icon: /* @__PURE__ */ s.jsx(at, { size: 12, stroke: 1.5 }),
485
485
  children: e || "Sorry, you are not authorized to access this page."
486
486
  }
487
487
  );
@@ -495,8 +495,8 @@ function $i(e, n) {
495
495
  const t = [];
496
496
  let o;
497
497
  return e.reduce((r, i) => {
498
- const s = n(i);
499
- return s === void 0 ? (o === void 0 && (o = t.length, t.push([])), t[o].push(i)) : (r[s] === void 0 && (r[s] = t.length, t.push([])), t[r[s]].push(i)), r;
498
+ const l = n(i);
499
+ return l === void 0 ? (o === void 0 && (o = t.length, t.push([])), t[o].push(i)) : (r[l] === void 0 && (r[l] = t.length, t.push([])), t[r[l]].push(i)), r;
500
500
  }, {}), t;
501
501
  }
502
502
  function Mi(e, n) {
@@ -506,7 +506,7 @@ function Mi(e, n) {
506
506
  return t.has(r) ? !1 : (t.add(r), !0);
507
507
  });
508
508
  }
509
- class bi {
509
+ class Di {
510
510
  constructor() {
511
511
  ee(this, "items", []);
512
512
  ee(this, "seen", /* @__PURE__ */ new Set());
@@ -519,16 +519,16 @@ class bi {
519
519
  return this.items;
520
520
  }
521
521
  }
522
- class bt {
522
+ class Mt {
523
523
  constructor() {
524
524
  ee(this, "children", /* @__PURE__ */ new Map());
525
525
  ee(this, "isEndOfWord", !1);
526
526
  ee(this, "value", "");
527
527
  }
528
528
  }
529
- class Zt {
529
+ class Jt {
530
530
  constructor() {
531
- ee(this, "root", new bt());
531
+ ee(this, "root", new Mt());
532
532
  }
533
533
  /**
534
534
  * Inserts a word into the trie structure.
@@ -540,7 +540,7 @@ class Zt {
540
540
  let t = this.root;
541
541
  for (const o of n) {
542
542
  let r = t.children.get(o);
543
- r === void 0 && (r = new bt(), t.children.set(o, r)), t = r;
543
+ r === void 0 && (r = new Mt(), t.children.set(o, r)), t = r;
544
544
  }
545
545
  t.isEndOfWord = !0, t.value = n;
546
546
  }
@@ -565,28 +565,28 @@ class Zt {
565
565
  return o;
566
566
  }
567
567
  }
568
- function dt(e, n) {
569
- return Xt(n) ? n.getValue(e) : e[n.tsName];
568
+ function ct(e, n) {
569
+ return dt(n) ? n.getValue(e) : e[n.tsName];
570
570
  }
571
571
  function Ze(e, n, t) {
572
- Xt(n) ? n.setValue(e, t) : e[n.updateFuncName](t);
572
+ dt(n) ? n.setValue(e, t) : e[n.updateFuncName](t);
573
573
  }
574
- const ct = De(!1), Di = ct.Provider;
574
+ const gt = be(!1), bi = gt.Provider;
575
575
  function Vi(e) {
576
- return U(ct) ? { "data-testid": e } : {};
576
+ return U(gt) ? { "data-testid": e } : {};
577
577
  }
578
578
  function Ti(e, n) {
579
579
  return n ? { "data-testid": e } : {};
580
580
  }
581
581
  function X(e, n = "") {
582
- const t = U(ct), o = _(() => (n !== "" && (n = `_${n}`), e instanceof W ? `${e.allProperties.map((r) => r.name).join(".")}${n}` : `${e.name}${n}`), [e, n]);
582
+ const t = U(gt), o = _(() => (n !== "" && (n = `_${n}`), e instanceof W ? `${e.allProperties.map((r) => r.name).join(".")}${n}` : `${e.name}${n}`), [e, n]);
583
583
  return t ? { "data-testid": o } : {};
584
584
  }
585
585
  var et = /* @__PURE__ */ ((e) => (e[e.Allow = 0] = "Allow", e[e.Denied = 1] = "Denied", e[e.Pending = 2] = "Pending", e))(et || {});
586
586
  function ho(e) {
587
- const n = {}, t = {}, o = {}, r = (i, s = []) => {
587
+ const n = {}, t = {}, o = {}, r = (i, l = []) => {
588
588
  i.forEach((a) => {
589
- const u = [...s, a.key];
589
+ const u = [...l, a.key];
590
590
  n[a.key] = a, t[a.key] = u, a.route !== void 0 && (o[a.key] = a.route), a.children !== void 0 && a.children.length > 0 && r(a.children, u);
591
591
  });
592
592
  };
@@ -616,49 +616,49 @@ function vo(e, n) {
616
616
  }).filter((t) => t !== null);
617
617
  }
618
618
  const Ai = (e) => {
619
- const [n, t] = M(/* @__PURE__ */ new Set()), [o, r] = M(/* @__PURE__ */ new Set()), [i, s] = M(), a = _(() => vo(e.items, e.checkPermission), [e.items, e.checkPermission]), u = _(() => So(e.items), [e.items]), { key2fullpath: d, key2route: g } = _(
619
+ const [n, t] = M(/* @__PURE__ */ new Set()), [o, r] = M(/* @__PURE__ */ new Set()), [i, l] = M(), a = _(() => vo(e.items, e.checkPermission), [e.items, e.checkPermission]), u = _(() => So(e.items), [e.items]), { key2fullpath: c, key2route: f } = _(
620
620
  () => ho(a),
621
621
  [a]
622
622
  );
623
623
  Ve(() => {
624
- const p = window.location.pathname, c = u.findMatchingKey(p);
625
- c !== void 0 && (r(new Set(d[c])), s(c));
626
- }, [window.location.pathname, g]);
627
- const m = _(() => {
628
- function p(c, f) {
624
+ const m = window.location.pathname, d = u.findMatchingKey(m);
625
+ d !== void 0 && (r(new Set(c[d])), l(d));
626
+ }, [window.location.pathname, f]);
627
+ const g = _(() => {
628
+ function m(d, p) {
629
629
  var v;
630
- const h = c.children !== void 0 && c.children.length > 0;
631
- return h ? /* @__PURE__ */ l.jsxs(
630
+ const h = d.children !== void 0 && d.children.length > 0;
631
+ return h ? /* @__PURE__ */ s.jsxs(
632
632
  "div",
633
633
  {
634
634
  onMouseEnter: () => {
635
- o.has(c.key) || t((S) => {
635
+ o.has(d.key) || t((S) => {
636
636
  const R = new Set(S);
637
- return R.add(c.key), R;
637
+ return R.add(d.key), R;
638
638
  });
639
639
  },
640
640
  onMouseLeave: () => {
641
- o.has(c.key) || t((S) => {
641
+ o.has(d.key) || t((S) => {
642
642
  const R = new Set(S);
643
- return R.delete(c.key), R;
643
+ return R.delete(d.key), R;
644
644
  });
645
645
  },
646
646
  children: [
647
- /* @__PURE__ */ l.jsx(
648
- yt,
647
+ /* @__PURE__ */ s.jsx(
648
+ jt,
649
649
  {
650
- active: i === c.key,
651
- label: c.label,
652
- leftSection: c.icon,
650
+ active: i === d.key,
651
+ label: d.label,
652
+ leftSection: d.icon,
653
653
  styles: {
654
654
  label: { fontSize: "md" },
655
655
  root: {
656
656
  borderRadius: "var(--mantine-radius-sm)"
657
657
  }
658
658
  },
659
- ml: f === 0 ? void 0 : f === 1 ? "md" : `calc(var(--mantine-spacing-md) * ${f})`,
659
+ ml: p === 0 ? void 0 : p === 1 ? "md" : `calc(var(--mantine-spacing-md) * ${p})`,
660
660
  w: "unset",
661
- rightSection: h ? /* @__PURE__ */ l.jsx(
661
+ rightSection: h ? /* @__PURE__ */ s.jsx(
662
662
  Yn,
663
663
  {
664
664
  size: 12,
@@ -666,47 +666,47 @@ const Ai = (e) => {
666
666
  className: "mantine-rotate-rtl"
667
667
  }
668
668
  ) : void 0,
669
- opened: n.has(c.key) || o.has(c.key),
669
+ opened: n.has(d.key) || o.has(d.key),
670
670
  onClick: (S) => {
671
671
  S.preventDefault(), r((R) => {
672
672
  const y = new Set(R);
673
- return R.has(c.key) ? y.delete(c.key) : y.add(c.key), y;
673
+ return R.has(d.key) ? y.delete(d.key) : y.add(d.key), y;
674
674
  });
675
675
  }
676
676
  },
677
- c.key
677
+ d.key
678
678
  ),
679
- (o.has(c.key) || n.has(c.key)) && c.children.map((S) => p(S, f + 1))
679
+ (o.has(d.key) || n.has(d.key)) && d.children.map((S) => m(S, p + 1))
680
680
  ]
681
681
  },
682
- `container-${c.key}`
683
- ) : /* @__PURE__ */ l.jsx(
684
- yt,
682
+ `container-${d.key}`
683
+ ) : /* @__PURE__ */ s.jsx(
684
+ jt,
685
685
  {
686
- active: i === c.key,
687
- href: (v = c.route) == null ? void 0 : v.path.getURL(c.route.defaultPathArgs ?? {}),
688
- label: c.label,
689
- leftSection: c.icon,
686
+ active: i === d.key,
687
+ href: (v = d.route) == null ? void 0 : v.path.getURL(d.route.defaultPathArgs ?? {}),
688
+ label: d.label,
689
+ leftSection: d.icon,
690
690
  styles: {
691
691
  label: { fontSize: "md" },
692
692
  root: {
693
693
  borderRadius: "var(--mantine-radius-sm)"
694
694
  }
695
695
  },
696
- ml: f === 0 ? void 0 : f === 1 ? "md" : `calc(var(--mantine-spacing-md) * ${f})`,
696
+ ml: p === 0 ? void 0 : p === 1 ? "md" : `calc(var(--mantine-spacing-md) * ${p})`,
697
697
  w: "unset",
698
698
  onClick: (S) => {
699
- S.ctrlKey || S.metaKey || (S.preventDefault(), c.route != null && c.route.path.path(c.route.defaultPathArgs ?? {}).open(e.navigate));
699
+ S.ctrlKey || S.metaKey || (S.preventDefault(), d.route != null && d.route.path.path(d.route.defaultPathArgs ?? {}).open(e.navigate));
700
700
  }
701
701
  },
702
- c.key
702
+ d.key
703
703
  );
704
704
  }
705
- return a.map((c) => p(c, 0));
705
+ return a.map((d) => m(d, 0));
706
706
  }, [a, i, o, n, e.navigate]);
707
- return /* @__PURE__ */ l.jsx(l.Fragment, { children: m });
707
+ return /* @__PURE__ */ s.jsx(s.Fragment, { children: g });
708
708
  };
709
- class Co extends Zt {
709
+ class Co extends Jt {
710
710
  constructor() {
711
711
  super(...arguments);
712
712
  ee(this, "pathToKey", /* @__PURE__ */ new Map());
@@ -742,13 +742,13 @@ class Co extends Zt {
742
742
  return this.pathToKey.get(r.match);
743
743
  }
744
744
  }
745
- const ze = 12, en = De({ gap: "sm" }), tn = ({
745
+ const ze = 12, Qt = be({ gap: "sm" }), Zt = ({
746
746
  children: e,
747
747
  gap: n = "sm",
748
748
  align: t = "flex-start",
749
749
  className: o,
750
750
  style: r
751
- }) => /* @__PURE__ */ l.jsx(en.Provider, { value: { gap: n }, children: /* @__PURE__ */ l.jsx(
751
+ }) => /* @__PURE__ */ s.jsx(Qt.Provider, { value: { gap: n }, children: /* @__PURE__ */ s.jsx(
752
752
  "div",
753
753
  {
754
754
  className: o,
@@ -762,31 +762,31 @@ const ze = 12, en = De({ gap: "sm" }), tn = ({
762
762
  },
763
763
  children: e
764
764
  }
765
- ) }), nn = ({
765
+ ) }), en = ({
766
766
  children: e,
767
767
  span: n,
768
768
  grow: t,
769
769
  className: o,
770
770
  style: r
771
771
  }) => {
772
- const { gap: i } = U(en);
773
- let s = {
772
+ const { gap: i } = U(Qt);
773
+ let l = {
774
774
  minWidth: 0,
775
775
  ...r
776
776
  };
777
777
  if (n !== void 0) {
778
- const a = n / ze * 100, u = `var(--mantine-spacing-${i})`, d = (ze - n) / ze, g = `calc(${a}% - ${d} * ${u})`;
779
- s = {
780
- ...s,
781
- flex: `0 0 ${g}`,
782
- maxWidth: g
778
+ const a = n / ze * 100, u = `var(--mantine-spacing-${i})`, c = (ze - n) / ze, f = `calc(${a}% - ${c} * ${u})`;
779
+ l = {
780
+ ...l,
781
+ flex: `0 0 ${f}`,
782
+ maxWidth: f
783
783
  };
784
784
  } else
785
- s = {
786
- ...s,
785
+ l = {
786
+ ...l,
787
787
  flex: `${t ?? 1} 1 0px`
788
788
  };
789
- return /* @__PURE__ */ l.jsx("div", { className: o, style: s, children: e });
789
+ return /* @__PURE__ */ s.jsx("div", { className: o, style: l, children: e });
790
790
  }, wo = {
791
791
  lang: "en",
792
792
  lang2value: {
@@ -806,72 +806,72 @@ const ze = 12, en = De({ gap: "sm" }), tn = ({
806
806
  onCancel: o,
807
807
  confirmLabel: r = wo,
808
808
  cancelLabel: i = xo,
809
- confirmProps: s,
809
+ confirmProps: l,
810
810
  cancelProps: a,
811
811
  popoverProps: u,
812
- disabled: d = !1
812
+ disabled: c = !1
813
813
  }) => {
814
- const [g, m] = M(!1), p = () => {
815
- m(!1), t();
816
- }, c = () => {
817
- m(!1), o == null || o();
814
+ const [f, g] = M(!1), m = () => {
815
+ g(!1), t();
816
+ }, d = () => {
817
+ g(!1), o == null || o();
818
818
  };
819
- return /* @__PURE__ */ l.jsxs(
820
- de,
819
+ return /* @__PURE__ */ s.jsxs(
820
+ ue,
821
821
  {
822
- opened: g,
823
- onClose: () => m(!1),
822
+ opened: f,
823
+ onClose: () => g(!1),
824
824
  position: "bottom",
825
825
  withArrow: !0,
826
826
  shadow: "md",
827
827
  ...u,
828
828
  children: [
829
- /* @__PURE__ */ l.jsx(de.Target, { children: /* @__PURE__ */ l.jsx(
829
+ /* @__PURE__ */ s.jsx(ue.Target, { children: /* @__PURE__ */ s.jsx(
830
830
  "span",
831
831
  {
832
- onClick: (f) => {
833
- d || (f.stopPropagation(), m(!0));
832
+ onClick: (p) => {
833
+ c || (p.stopPropagation(), g(!0));
834
834
  },
835
835
  children: e
836
836
  }
837
837
  ) }),
838
- /* @__PURE__ */ l.jsx(de.Dropdown, { children: /* @__PURE__ */ l.jsxs(Y, { gap: "xs", children: [
839
- typeof n == "string" ? /* @__PURE__ */ l.jsx(E, { size: "sm", children: n }) : n,
840
- /* @__PURE__ */ l.jsxs(O, { gap: "xs", justify: "flex-end", children: [
841
- /* @__PURE__ */ l.jsx(z, { size: "xs", variant: "default", onClick: c, ...a, children: /* @__PURE__ */ l.jsx(b, { value: i }) }),
842
- /* @__PURE__ */ l.jsx(z, { size: "xs", onClick: p, ...s, children: /* @__PURE__ */ l.jsx(b, { value: r }) })
838
+ /* @__PURE__ */ s.jsx(ue.Dropdown, { children: /* @__PURE__ */ s.jsxs(Y, { gap: "xs", children: [
839
+ typeof n == "string" ? /* @__PURE__ */ s.jsx(E, { size: "sm", children: n }) : n,
840
+ /* @__PURE__ */ s.jsxs(O, { gap: "xs", justify: "flex-end", children: [
841
+ /* @__PURE__ */ s.jsx(z, { size: "xs", variant: "default", onClick: d, ...a, children: /* @__PURE__ */ s.jsx(V, { value: i }) }),
842
+ /* @__PURE__ */ s.jsx(z, { size: "xs", onClick: m, ...l, children: /* @__PURE__ */ s.jsx(V, { value: r }) })
843
843
  ] })
844
844
  ] }) })
845
845
  ]
846
846
  }
847
847
  );
848
- }, Fe = ({ value: e }) => /* @__PURE__ */ l.jsx(E, { size: "sm", children: e });
849
- function we(e, n) {
848
+ }, _e = ({ value: e }) => /* @__PURE__ */ s.jsx(E, { size: "sm", children: e });
849
+ function Ce(e, n) {
850
850
  return n.toLocaleDateString(e.baseName, {
851
851
  year: "numeric",
852
852
  month: "short",
853
853
  day: "2-digit"
854
854
  });
855
855
  }
856
- function on(e, n, t = !0) {
856
+ function tn(e, n, t = !0) {
857
857
  const o = n.getHours().toString().padStart(2, "0"), r = n.getMinutes().toString().padStart(2, "0"), i = n.getSeconds().toString().padStart(2, "0");
858
- return t ? we(e, n) + ` ${o}:${r}:${i}` : we(e, n) + ` ${o}:${r}`;
858
+ return t ? Ce(e, n) + ` ${o}:${r}:${i}` : Ce(e, n) + ` ${o}:${r}`;
859
859
  }
860
860
  const jo = ({ value: e }) => {
861
861
  const n = U(re), t = _(
862
- () => on(n, e),
862
+ () => tn(n, e),
863
863
  [n, e]
864
864
  );
865
- return /* @__PURE__ */ l.jsx(E, { size: "sm", children: t });
865
+ return /* @__PURE__ */ s.jsx(E, { span: !0, size: "sm", children: t });
866
866
  }, yo = ({ value: e }) => {
867
- const n = U(re), t = _(() => we(n, e), [n, e]);
868
- return /* @__PURE__ */ l.jsx(E, { size: "sm", children: t });
867
+ const n = U(re), t = _(() => Ce(n, e), [n, e]);
868
+ return /* @__PURE__ */ s.jsx(E, { span: !0, size: "sm", children: t });
869
869
  }, Ni = ({ value: e }) => {
870
870
  const n = U(re), [t, o] = _(() => {
871
- const r = we(n, e), i = e.getHours().toString().padStart(2, "0"), s = e.getMinutes().toString().padStart(2, "0"), a = e.getSeconds().toString().padStart(2, "0");
872
- return [r, `${i}:${s}:${a}`];
871
+ const r = Ce(n, e), i = e.getHours().toString().padStart(2, "0"), l = e.getMinutes().toString().padStart(2, "0"), a = e.getSeconds().toString().padStart(2, "0");
872
+ return [r, `${i}:${l}:${a}`];
873
873
  }, [n, e]);
874
- return /* @__PURE__ */ l.jsx(E, { size: "sm", title: o, children: t });
874
+ return /* @__PURE__ */ s.jsx(E, { span: !0, size: "sm", title: o, children: t });
875
875
  }, _o = {
876
876
  yes: {
877
877
  lang2value: {
@@ -887,47 +887,47 @@ const jo = ({ value: e }) => {
887
887
  },
888
888
  lang: "en"
889
889
  }
890
- }, Fo = ({ value: e }) => /* @__PURE__ */ l.jsx(
891
- ce,
890
+ }, Fo = ({ value: e }) => /* @__PURE__ */ s.jsx(
891
+ de,
892
892
  {
893
893
  checked: e,
894
- label: /* @__PURE__ */ l.jsx(b, { value: _o[e ? "yes" : "no"] }),
894
+ label: /* @__PURE__ */ s.jsx(V, { value: _o[e ? "yes" : "no"] }),
895
895
  readOnly: !0
896
896
  }
897
897
  ), Io = ({ property: e, value: n }) => {
898
- if (se(e) || e.enumType === void 0)
898
+ if (ce(e) || e.enumType === void 0)
899
899
  throw new Error(
900
900
  "Invalid usage of EnumDisplay. Expect a property of type enum"
901
901
  );
902
- return /* @__PURE__ */ l.jsx(E, { size: "sm", children: /* @__PURE__ */ l.jsx(b, { value: e.enumType.label[n] }) });
903
- }, gt = De({ EntityLink: () => null, entityRoutes: {} }), ki = ({
902
+ return /* @__PURE__ */ s.jsx(E, { size: "sm", children: /* @__PURE__ */ s.jsx(V, { value: e.enumType.label[n] }) });
903
+ }, ft = be({ EntityLink: () => null, entityRoutes: {} }), Li = ({
904
904
  EntityLink: e,
905
905
  entityRoutes: n,
906
906
  children: t
907
- }) => /* @__PURE__ */ l.jsx(gt.Provider, { value: { EntityLink: e, entityRoutes: n }, children: t });
908
- function rn(e, n, t, o) {
907
+ }) => /* @__PURE__ */ s.jsx(ft.Provider, { value: { EntityLink: e, entityRoutes: n }, children: t });
908
+ function nn(e, n, t, o) {
909
909
  const r = e.getByName(n.targetClass), i = o[n.targetClass];
910
910
  Ve(() => {
911
911
  r.fetchByIds(t);
912
912
  }, [t]);
913
- const s = {};
913
+ const l = {};
914
914
  for (const a of t)
915
- s[a] = r.get(a);
916
- return [s, i.view];
915
+ l[a] = r.get(a);
916
+ return [l, i.view];
917
917
  }
918
- const ft = oe(
918
+ const on = oe(
919
919
  ({
920
920
  db: e,
921
921
  property: n,
922
922
  value: t
923
923
  }) => {
924
- const { EntityLink: o, entityRoutes: r } = U(gt), i = _(() => [t], [t]), [s, a] = rn(
924
+ const { EntityLink: o, entityRoutes: r } = U(ft), i = _(() => [t], [t]), [l, a] = nn(
925
925
  e,
926
926
  n,
927
927
  i,
928
928
  r
929
- ), u = s[t];
930
- return u === void 0 ? /* @__PURE__ */ l.jsx(E, { size: "sm", children: t }) : u === null ? /* @__PURE__ */ l.jsx(Qt, {}) : a === void 0 ? /* @__PURE__ */ l.jsx(E, { size: "sm", children: u.name }) : /* @__PURE__ */ l.jsx(
929
+ ), u = l[t];
930
+ return u === void 0 ? /* @__PURE__ */ s.jsx(E, { size: "sm", children: t }) : u === null ? /* @__PURE__ */ s.jsx(Xt, {}) : a === void 0 ? /* @__PURE__ */ s.jsx(E, { size: "sm", children: u.name }) : /* @__PURE__ */ s.jsx(
931
931
  o,
932
932
  {
933
933
  path: a,
@@ -937,38 +937,38 @@ const ft = oe(
937
937
  }
938
938
  );
939
939
  }
940
- ), mt = oe(
940
+ ), rn = oe(
941
941
  ({
942
942
  db: e,
943
943
  property: n,
944
944
  value: t
945
945
  }) => {
946
- const { EntityLink: o, entityRoutes: r } = U(gt), [i, s] = rn(
946
+ const { EntityLink: o, entityRoutes: r } = U(ft), [i, l] = nn(
947
947
  e,
948
948
  n,
949
949
  t,
950
950
  r
951
951
  );
952
- return /* @__PURE__ */ l.jsx(O, { gap: "xs", children: t.map((a, u) => {
953
- const d = i[a];
954
- return d === void 0 ? /* @__PURE__ */ l.jsx(E, { size: "sm", children: t }, a) : d === null ? /* @__PURE__ */ l.jsx(Qt, {}, a) : s === void 0 ? /* @__PURE__ */ l.jsx(E, { size: "sm", children: d.name }, u) : /* @__PURE__ */ l.jsx(
952
+ return /* @__PURE__ */ s.jsx(O, { gap: "xs", children: t.map((a, u) => {
953
+ const c = i[a];
954
+ return c === void 0 ? /* @__PURE__ */ s.jsx(E, { size: "sm", children: t }, a) : c === null ? /* @__PURE__ */ s.jsx(Xt, {}, a) : l === void 0 ? /* @__PURE__ */ s.jsx(E, { size: "sm", children: c.name }, u) : /* @__PURE__ */ s.jsx(
955
955
  o,
956
956
  {
957
- path: s,
957
+ path: l,
958
958
  openInNewPage: !1,
959
- args: { id: d.id },
960
- children: d.name
959
+ args: { id: c.id },
960
+ children: c.name
961
961
  },
962
962
  u
963
963
  );
964
964
  }) });
965
965
  }
966
- ), ge = {
967
- string: Fe,
968
- integer: Fe,
969
- float: Fe,
966
+ ), Me = {
967
+ string: _e,
968
+ integer: _e,
969
+ float: _e,
970
970
  boolean: Fo,
971
- "string[]": Fe,
971
+ "string[]": _e,
972
972
  enum: Io,
973
973
  datetime: jo,
974
974
  date: yo
@@ -979,27 +979,27 @@ const ft = oe(
979
979
  freeze: o = !1
980
980
  }) => {
981
981
  const r = X(e);
982
- return /* @__PURE__ */ l.jsx(
983
- ce,
982
+ return /* @__PURE__ */ s.jsx(
983
+ de,
984
984
  {
985
985
  ...r,
986
986
  id: e.name,
987
987
  checked: n,
988
988
  onChange: (i) => {
989
- const s = i.target.checked;
990
- t(s);
989
+ const l = i.target.checked;
990
+ t(l);
991
991
  },
992
992
  disabled: o
993
993
  }
994
994
  );
995
- }, be = ({
995
+ }, De = ({
996
996
  property: e,
997
997
  value: n,
998
998
  onChange: t,
999
999
  freeze: o = !1
1000
1000
  }) => {
1001
1001
  const r = X(e);
1002
- return /* @__PURE__ */ l.jsx(
1002
+ return /* @__PURE__ */ s.jsx(
1003
1003
  J,
1004
1004
  {
1005
1005
  ...r,
@@ -1007,8 +1007,8 @@ const ft = oe(
1007
1007
  type: "number",
1008
1008
  value: n,
1009
1009
  onChange: (i) => {
1010
- const s = i.target.value;
1011
- t(s === "" ? void 0 : Number(s));
1010
+ const l = i.target.value;
1011
+ t(l === "" ? void 0 : Number(l));
1012
1012
  },
1013
1013
  disabled: o
1014
1014
  }
@@ -1025,7 +1025,7 @@ const ft = oe(
1025
1025
  vi: "Không tìm thấy mã quốc gia hợp lệ. "
1026
1026
  },
1027
1027
  lang: "en"
1028
- }, ue = {
1028
+ }, ae = {
1029
1029
  84: {
1030
1030
  name: "Vietnam",
1031
1031
  flags: [A.VN]
@@ -1094,14 +1094,14 @@ const ft = oe(
1094
1094
  throw new Error(`No valid country code found for phone number: ${e}`);
1095
1095
  return o;
1096
1096
  }, Dt = ({ value: e }) => {
1097
- const n = ue[e];
1097
+ const n = ae[e];
1098
1098
  if (n !== void 0)
1099
- return /* @__PURE__ */ l.jsxs(O, { gap: "xs", wrap: "nowrap", align: "center", children: [
1100
- /* @__PURE__ */ l.jsxs(E, { size: "sm", children: [
1099
+ return /* @__PURE__ */ s.jsxs(O, { gap: "xs", wrap: "nowrap", align: "center", children: [
1100
+ /* @__PURE__ */ s.jsxs(E, { size: "sm", children: [
1101
1101
  "+",
1102
1102
  e
1103
1103
  ] }),
1104
- /* @__PURE__ */ l.jsx(O, { gap: "xs", wrap: "nowrap", children: n.flags.map((t, o) => /* @__PURE__ */ l.jsx(Qe, { flag: t }, o)) })
1104
+ /* @__PURE__ */ s.jsx(O, { gap: "xs", wrap: "nowrap", children: n.flags.map((t, o) => /* @__PURE__ */ s.jsx(Qe, { flag: t }, o)) })
1105
1105
  ] });
1106
1106
  }, Mo = ({
1107
1107
  value: e,
@@ -1111,87 +1111,87 @@ const ft = oe(
1111
1111
  disabled: r = !1,
1112
1112
  "data-testid": i
1113
1113
  }) => {
1114
- let s = {}, a = {};
1115
- i !== void 0 && (s = { "data-testid": `${i}_country_code` }, a = { "data-testid": i });
1116
- const [u, d] = M(""), [g, m] = M(!1), [p, c] = M(""), [f, h] = M(!1), v = _(() => {
1117
- const F = new Zt();
1118
- return Object.keys(ue).forEach((T) => {
1114
+ let l = {}, a = {};
1115
+ i !== void 0 && (l = { "data-testid": `${i}_country_code` }, a = { "data-testid": i });
1116
+ const [u, c] = M(""), [f, g] = M(!1), [m, d] = M(""), [p, h] = M(!1), v = _(() => {
1117
+ const F = new Jt();
1118
+ return Object.keys(ae).forEach((T) => {
1119
1119
  F.insert(T);
1120
1120
  }), F;
1121
- }, [ue]), { rawInput: S } = _(() => {
1121
+ }, [ae]), { rawInput: S } = _(() => {
1122
1122
  try {
1123
1123
  const { match: F, remaining: T } = $o(
1124
1124
  e,
1125
1125
  v
1126
1126
  );
1127
- return c(F), h(!1), {
1127
+ return d(F), h(!1), {
1128
1128
  rawInput: T
1129
1129
  };
1130
1130
  } catch {
1131
- return h(!0), c(""), {
1131
+ return h(!0), d(""), {
1132
1132
  rawInput: e
1133
1133
  };
1134
1134
  }
1135
- }, [e]), R = qt({
1135
+ }, [e]), R = Ht({
1136
1136
  onDropdownClose: () => {
1137
- R.resetSelectedOption(), d("");
1137
+ R.resetSelectedOption(), c("");
1138
1138
  },
1139
1139
  onDropdownOpen: () => {
1140
1140
  R.updateSelectedOptionIndex("active");
1141
1141
  }
1142
- }), y = _(() => Object.keys(ue), [ue]), I = (F, T) => {
1142
+ }), y = _(() => Object.keys(ae), [ae]), I = (F, T) => {
1143
1143
  if (F === void 0)
1144
1144
  return `+${T}`;
1145
1145
  const H = F.replace(/[^\d]/g, "");
1146
- return H.length === 0 ? `+${T}` : H.startsWith("0") ? (m(!0), `+${T}${H}`) : (m(!1), `+${T}${H}`);
1147
- }, P = _(() => y.filter((F) => ue[F].name.toLowerCase().includes(u.toLowerCase()) || F.includes(u)), [u, y]), k = _(() => P.map((F, T) => /* @__PURE__ */ l.jsx(G.Option, { value: F, children: /* @__PURE__ */ l.jsx(Dt, { value: F }) }, T)), [P]);
1148
- return /* @__PURE__ */ l.jsxs("div", { children: [
1149
- /* @__PURE__ */ l.jsx(N, { gutter: "xs", children: /* @__PURE__ */ l.jsx(N.Col, { children: /* @__PURE__ */ l.jsxs(O, { gap: 5, children: [
1150
- /* @__PURE__ */ l.jsxs(
1146
+ return H.length === 0 ? `+${T}` : H.startsWith("0") ? (g(!0), `+${T}${H}`) : (g(!1), `+${T}${H}`);
1147
+ }, P = _(() => y.filter((F) => ae[F].name.toLowerCase().includes(u.toLowerCase()) || F.includes(u)), [u, y]), L = _(() => P.map((F, T) => /* @__PURE__ */ s.jsx(G.Option, { value: F, children: /* @__PURE__ */ s.jsx(Dt, { value: F }) }, T)), [P]);
1148
+ return /* @__PURE__ */ s.jsxs("div", { children: [
1149
+ /* @__PURE__ */ s.jsx(N, { gutter: "xs", children: /* @__PURE__ */ s.jsx(N.Col, { children: /* @__PURE__ */ s.jsxs(O, { gap: 5, children: [
1150
+ /* @__PURE__ */ s.jsxs(
1151
1151
  G,
1152
1152
  {
1153
1153
  store: R,
1154
1154
  position: "top-start",
1155
1155
  onOptionSubmit: (F) => {
1156
- d(""), R.closeDropdown(), n({
1156
+ c(""), R.closeDropdown(), n({
1157
1157
  target: { value: I(S, F) }
1158
1158
  });
1159
1159
  },
1160
1160
  disabled: r,
1161
1161
  children: [
1162
- /* @__PURE__ */ l.jsx(G.Target, { children: /* @__PURE__ */ l.jsx(
1163
- kn,
1162
+ /* @__PURE__ */ s.jsx(G.Target, { children: /* @__PURE__ */ s.jsx(
1163
+ Ln,
1164
1164
  {
1165
- ...s,
1165
+ ...l,
1166
1166
  component: "button",
1167
1167
  type: "button",
1168
1168
  pointer: !0,
1169
- rightSection: /* @__PURE__ */ l.jsx(G.Chevron, {}),
1169
+ rightSection: /* @__PURE__ */ s.jsx(G.Chevron, {}),
1170
1170
  onClick: () => R.toggleDropdown(),
1171
1171
  rightSectionPointerEvents: "none",
1172
1172
  disabled: r,
1173
- children: /* @__PURE__ */ l.jsx(Dt, { value: p })
1173
+ children: /* @__PURE__ */ s.jsx(Dt, { value: m })
1174
1174
  }
1175
1175
  ) }),
1176
- /* @__PURE__ */ l.jsxs(G.Dropdown, { children: [
1177
- /* @__PURE__ */ l.jsx(
1176
+ /* @__PURE__ */ s.jsxs(G.Dropdown, { children: [
1177
+ /* @__PURE__ */ s.jsx(
1178
1178
  G.Search,
1179
1179
  {
1180
- leftSection: /* @__PURE__ */ l.jsx(ut, { size: 14, stroke: 1.5 }),
1180
+ leftSection: /* @__PURE__ */ s.jsx(ut, { size: 14, stroke: 1.5 }),
1181
1181
  placeholder: ".....",
1182
1182
  value: u,
1183
1183
  onChange: (F) => {
1184
- d(F.currentTarget.value);
1184
+ c(F.currentTarget.value);
1185
1185
  },
1186
1186
  disabled: r
1187
1187
  }
1188
1188
  ),
1189
- /* @__PURE__ */ l.jsx(G.Options, { children: k.length > 0 ? k : /* @__PURE__ */ l.jsx(G.Empty, { children: /* @__PURE__ */ l.jsx(E, { size: "sm", children: "Nothing found" }) }) })
1189
+ /* @__PURE__ */ s.jsx(G.Options, { children: L.length > 0 ? L : /* @__PURE__ */ s.jsx(G.Empty, { children: /* @__PURE__ */ s.jsx(E, { size: "sm", children: "Nothing found" }) }) })
1190
1190
  ] })
1191
1191
  ]
1192
1192
  }
1193
1193
  ),
1194
- p === "" ? /* @__PURE__ */ l.jsx(
1194
+ m === "" ? /* @__PURE__ */ s.jsx(
1195
1195
  J,
1196
1196
  {
1197
1197
  ...a,
@@ -1205,7 +1205,7 @@ const ft = oe(
1205
1205
  flex: 1,
1206
1206
  disabled: r
1207
1207
  }
1208
- ) : /* @__PURE__ */ l.jsx(
1208
+ ) : /* @__PURE__ */ s.jsx(
1209
1209
  J,
1210
1210
  {
1211
1211
  ...a,
@@ -1213,7 +1213,7 @@ const ft = oe(
1213
1213
  value: S,
1214
1214
  type: "phone_number",
1215
1215
  onAccept: (F) => {
1216
- const T = F.replace(/[^\d]/g, ""), H = I(T, p);
1216
+ const T = F.replace(/[^\d]/g, ""), H = I(T, m);
1217
1217
  H !== e && n({
1218
1218
  target: { value: H }
1219
1219
  });
@@ -1226,36 +1226,36 @@ const ft = oe(
1226
1226
  }
1227
1227
  )
1228
1228
  ] }) }) }),
1229
- (g || f || t && typeof t == "string") && /* @__PURE__ */ l.jsx(N, { gutter: "xs", children: /* @__PURE__ */ l.jsx(N.Col, { children: /* @__PURE__ */ l.jsx(J.Error, { children: g ? /* @__PURE__ */ l.jsx(b, { value: Po }) : f ? /* @__PURE__ */ l.jsx(b, { value: Eo }) : t }) }) })
1229
+ (f || p || t && typeof t == "string") && /* @__PURE__ */ s.jsx(N, { gutter: "xs", children: /* @__PURE__ */ s.jsx(N.Col, { children: /* @__PURE__ */ s.jsx(J.Error, { children: f ? /* @__PURE__ */ s.jsx(V, { value: Po }) : p ? /* @__PURE__ */ s.jsx(V, { value: Eo }) : t }) }) })
1230
1230
  ] });
1231
- }, ve = ({
1231
+ }, Se = ({
1232
1232
  property: e,
1233
1233
  error: n,
1234
1234
  value: t,
1235
1235
  onChange: o,
1236
1236
  freeze: r = !1
1237
1237
  }) => {
1238
- const i = X(e), [s, a] = _(() => e.constraints.includes("password") ? ["password", Bt] : e.constraints.includes("phone_number") ? ["phone_number", Mo] : [e.constraints.includes("email") ? "email" : e.constraints.includes("url") ? "url" : "text", J], [e.constraints]);
1239
- return /* @__PURE__ */ l.jsx(
1238
+ const i = X(e), [l, a] = _(() => e.constraints.includes("password") ? ["password", qt] : e.constraints.includes("phone_number") ? ["phone_number", Mo] : [e.constraints.includes("email") ? "email" : e.constraints.includes("url") ? "url" : "text", J], [e.constraints]);
1239
+ return /* @__PURE__ */ s.jsx(
1240
1240
  a,
1241
1241
  {
1242
1242
  ...i,
1243
1243
  id: e.name,
1244
1244
  value: t,
1245
- type: s,
1245
+ type: l,
1246
1246
  onChange: (u) => o(u.target.value),
1247
1247
  error: n,
1248
1248
  disabled: r
1249
1249
  }
1250
1250
  );
1251
- }, bo = ({
1251
+ }, Do = ({
1252
1252
  property: e,
1253
1253
  value: n,
1254
1254
  onChange: t,
1255
1255
  freeze: o = !1
1256
1256
  }) => {
1257
1257
  const r = X(e);
1258
- return /* @__PURE__ */ l.jsx(
1258
+ return /* @__PURE__ */ s.jsx(
1259
1259
  Je,
1260
1260
  {
1261
1261
  ...r,
@@ -1274,41 +1274,41 @@ const ft = oe(
1274
1274
  disabled: o
1275
1275
  }
1276
1276
  );
1277
- }, Do = ({
1277
+ }, bo = ({
1278
1278
  property: e,
1279
1279
  value: n,
1280
1280
  onChange: t,
1281
1281
  freeze: o = !1
1282
1282
  }) => {
1283
1283
  const r = U(re), i = X(e);
1284
- if (se(e) || e.enumType === void 0)
1284
+ if (ce(e) || e.enumType === void 0)
1285
1285
  throw new Error(
1286
1286
  "Invalid usage of EnumInput. Expect a property of type enum"
1287
1287
  );
1288
- const s = e.enumType, [a, u] = _(() => {
1289
- const d = {}, g = Object.entries(s.label).map(
1290
- ([m, p]) => {
1291
- const c = isNaN(Number(m)) ? m : Number(m);
1292
- return d[m] = c, {
1293
- value: m,
1294
- label: Se(r, p)
1288
+ const l = e.enumType, [a, u] = _(() => {
1289
+ const c = {}, f = Object.entries(l.label).map(
1290
+ ([g, m]) => {
1291
+ const d = isNaN(Number(g)) ? g : Number(g);
1292
+ return c[g] = d, {
1293
+ value: g,
1294
+ label: he(r, m)
1295
1295
  };
1296
1296
  }
1297
1297
  );
1298
- return [d, g];
1299
- }, [r, s]);
1300
- return /* @__PURE__ */ l.jsx(
1301
- Ln,
1298
+ return [c, f];
1299
+ }, [r, l]);
1300
+ return /* @__PURE__ */ s.jsx(
1301
+ kn,
1302
1302
  {
1303
1303
  ...i,
1304
1304
  data: u,
1305
1305
  value: n === void 0 ? null : String(n),
1306
- onChange: (d) => {
1307
- if (d === null) {
1306
+ onChange: (c) => {
1307
+ if (c === null) {
1308
1308
  t(void 0);
1309
1309
  return;
1310
1310
  }
1311
- t(a[d]);
1311
+ t(a[c]);
1312
1312
  },
1313
1313
  disabled: o,
1314
1314
  allowDeselect: !e.isRequired
@@ -1322,10 +1322,10 @@ const ft = oe(
1322
1322
  lang: "en"
1323
1323
  }, To = new io(
1324
1324
  "confirmation.valuesDoNotMatch"
1325
- ), Li = ({ property: e }) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1326
- /* @__PURE__ */ l.jsx(b, { value: Vo }),
1325
+ ), ki = ({ property: e }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
1326
+ /* @__PURE__ */ s.jsx(V, { value: Vo }),
1327
1327
  " ",
1328
- /* @__PURE__ */ l.jsx(b, { value: e.label })
1328
+ /* @__PURE__ */ s.jsx(V, { value: e.label })
1329
1329
  ] }), Oi = ({
1330
1330
  property: e,
1331
1331
  error: n,
@@ -1333,22 +1333,22 @@ const ft = oe(
1333
1333
  onChange: o,
1334
1334
  freeze: r = !1
1335
1335
  }) => {
1336
- const i = X(e, "confirm"), [s, a] = M(""), [u, d] = M(!1), [g, m] = _(() => e.constraints.includes("password") ? ["password", Bt] : ["text", J], [e.constraints]), p = _(() => {
1337
- if (u && s !== t)
1336
+ const i = X(e, "confirm"), [l, a] = M(""), [u, c] = M(!1), [f, g] = _(() => e.constraints.includes("password") ? ["password", qt] : ["text", J], [e.constraints]), m = _(() => {
1337
+ if (u && l !== t)
1338
1338
  return To.t({ args: { name: e.label } });
1339
- }, [u, s, t, e.label]), c = n || p;
1340
- return /* @__PURE__ */ l.jsx(
1341
- m,
1339
+ }, [u, l, t, e.label]), d = n || m;
1340
+ return /* @__PURE__ */ s.jsx(
1341
+ g,
1342
1342
  {
1343
1343
  ...i,
1344
1344
  id: `${e.name}-confirm`,
1345
- value: s,
1346
- type: g,
1347
- onChange: (f) => {
1348
- const h = f.target.value;
1349
- a(h), d(!0), o(h);
1345
+ value: l,
1346
+ type: f,
1347
+ onChange: (p) => {
1348
+ const h = p.target.value;
1349
+ a(h), c(!0), o(h);
1350
1350
  },
1351
- error: c,
1351
+ error: d,
1352
1352
  disabled: r
1353
1353
  }
1354
1354
  );
@@ -1372,8 +1372,8 @@ function Ao(e, n) {
1372
1372
  table: e.getByName(n.targetClass)
1373
1373
  };
1374
1374
  }
1375
- const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", children: e.name }), ln = oe(
1376
- (e) => /* @__PURE__ */ l.jsx("h1", { children: "SingleForeignKey" })
1375
+ const No = (e) => e.name, Lo = (e) => /* @__PURE__ */ s.jsx(E, { size: "sm", children: e.name }), ln = oe(
1376
+ (e) => /* @__PURE__ */ s.jsx("h1", { children: "SingleForeignKey" })
1377
1377
  ), an = oe(
1378
1378
  ({
1379
1379
  db: e,
@@ -1382,82 +1382,82 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1382
1382
  onChange: o,
1383
1383
  freeze: r = !1
1384
1384
  }) => {
1385
- const { table: i, data: s, query: a, setQuery: u } = Ao(
1385
+ const { table: i, data: l, query: a, setQuery: u } = Ao(
1386
1386
  e,
1387
1387
  n
1388
1388
  );
1389
- return /* @__PURE__ */ l.jsxs(Y, { gap: "sm", children: [
1390
- /* @__PURE__ */ l.jsx(
1391
- Lo,
1389
+ return /* @__PURE__ */ s.jsxs(Y, { gap: "sm", children: [
1390
+ /* @__PURE__ */ s.jsx(
1391
+ ko,
1392
1392
  {
1393
1393
  property: n,
1394
1394
  query: a,
1395
1395
  setQuery: u,
1396
- data: s,
1397
- onSelect: (d) => {
1398
- t.includes(d) || o([...t, d]);
1396
+ data: l,
1397
+ onSelect: (c) => {
1398
+ t.includes(c) || o([...t, c]);
1399
1399
  },
1400
1400
  renderOption: No,
1401
1401
  isIdInteger: n.datatype === "integer",
1402
1402
  freeze: r
1403
1403
  }
1404
1404
  ),
1405
- /* @__PURE__ */ l.jsx(
1405
+ /* @__PURE__ */ s.jsx(
1406
1406
  Oo,
1407
1407
  {
1408
- items: t.map((d) => i.get(d)).filter((d) => d != null),
1409
- onDelete: (d) => {
1410
- o(t.filter((g) => g !== d.id));
1408
+ items: t.map((c) => i.get(c)).filter((c) => c != null),
1409
+ onDelete: (c) => {
1410
+ o(t.filter((f) => f !== c.id));
1411
1411
  },
1412
- render: ko,
1412
+ render: Lo,
1413
1413
  freeze: r
1414
1414
  }
1415
1415
  )
1416
1416
  ] });
1417
1417
  }
1418
- ), Lo = ({
1418
+ ), ko = ({
1419
1419
  property: e,
1420
1420
  data: n,
1421
1421
  onSelect: t,
1422
1422
  renderOption: o,
1423
1423
  isIdInteger: r,
1424
1424
  query: i,
1425
- setQuery: s,
1425
+ setQuery: l,
1426
1426
  freeze: a = !1
1427
1427
  }) => {
1428
- const u = X(e), d = qt({
1429
- onDropdownClose: () => d.resetSelectedOption()
1430
- }), g = _(() => n.map((m) => (
1428
+ const u = X(e), c = Ht({
1429
+ onDropdownClose: () => c.resetSelectedOption()
1430
+ }), f = _(() => n.map((g) => (
1431
1431
  // value has to be a string
1432
- /* @__PURE__ */ l.jsx(G.Option, { value: m.id.toString(), children: o(m) }, m.id)
1432
+ /* @__PURE__ */ s.jsx(G.Option, { value: g.id.toString(), children: o(g) }, g.id)
1433
1433
  )), [n]);
1434
- return /* @__PURE__ */ l.jsxs(
1434
+ return /* @__PURE__ */ s.jsxs(
1435
1435
  G,
1436
1436
  {
1437
- store: d,
1438
- onOptionSubmit: (m) => {
1439
- t(r ? parseInt(m) : m), s(""), d.closeDropdown();
1437
+ store: c,
1438
+ onOptionSubmit: (g) => {
1439
+ t(r ? parseInt(g) : g), l(""), c.closeDropdown();
1440
1440
  },
1441
1441
  offset: 4,
1442
1442
  shadow: "sm",
1443
1443
  disabled: a,
1444
1444
  children: [
1445
- /* @__PURE__ */ l.jsx(G.Target, { children: /* @__PURE__ */ l.jsx(
1445
+ /* @__PURE__ */ s.jsx(G.Target, { children: /* @__PURE__ */ s.jsx(
1446
1446
  J,
1447
1447
  {
1448
1448
  ...u,
1449
1449
  id: e.name,
1450
1450
  pointer: !a,
1451
- rightSection: /* @__PURE__ */ l.jsx(ut, { size: 16, stroke: 1.5 }),
1451
+ rightSection: /* @__PURE__ */ s.jsx(ut, { size: 16, stroke: 1.5 }),
1452
1452
  rightSectionPointerEvents: "none",
1453
- onClick: () => d.toggleDropdown(),
1453
+ onClick: () => c.toggleDropdown(),
1454
1454
  placeholder: "Type to search...",
1455
1455
  value: i,
1456
- onChange: (m) => s(m.currentTarget.value),
1456
+ onChange: (g) => l(g.currentTarget.value),
1457
1457
  disabled: a
1458
1458
  }
1459
1459
  ) }),
1460
- /* @__PURE__ */ l.jsx(G.Dropdown, { children: /* @__PURE__ */ l.jsx(G.Options, { children: g.length === 0 ? /* @__PURE__ */ l.jsx(G.Empty, { children: "Nothing found" }) : g }) })
1460
+ /* @__PURE__ */ s.jsx(G.Dropdown, { children: /* @__PURE__ */ s.jsx(G.Options, { children: f.length === 0 ? /* @__PURE__ */ s.jsx(G.Empty, { children: "Nothing found" }) : f }) })
1461
1461
  ]
1462
1462
  }
1463
1463
  );
@@ -1469,31 +1469,31 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1469
1469
  }) => {
1470
1470
  const r = _(() => {
1471
1471
  const i = [];
1472
- for (let s = 0; s < e.length; s++) {
1473
- const a = e[s];
1472
+ for (let l = 0; l < e.length; l++) {
1473
+ const a = e[l];
1474
1474
  i.push(
1475
- /* @__PURE__ */ l.jsxs(O, { justify: "space-between", p: "sm", children: [
1475
+ /* @__PURE__ */ s.jsxs(O, { justify: "space-between", p: "sm", children: [
1476
1476
  t(a),
1477
- !o && /* @__PURE__ */ l.jsx(On, { size: "sm", onClick: () => n(a) })
1478
- ] }, s)
1479
- ), s < e.length - 1 && i.push(/* @__PURE__ */ l.jsx(zn, {}, `divider-${s}`));
1477
+ !o && /* @__PURE__ */ s.jsx(On, { size: "sm", onClick: () => n(a) })
1478
+ ] }, l)
1479
+ ), l < e.length - 1 && i.push(/* @__PURE__ */ s.jsx(zn, {}, `divider-${l}`));
1480
1480
  }
1481
1481
  return i;
1482
1482
  }, [e, o]);
1483
1483
  if (r.length !== 0)
1484
- return /* @__PURE__ */ l.jsx(ie, { bd: "1px solid #ddd", children: r });
1484
+ return /* @__PURE__ */ s.jsx(ie, { bd: "1px solid #ddd", children: r });
1485
1485
  }, zo = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1486
1486
  const r = X(e, "start"), i = X(e, "end");
1487
- return /* @__PURE__ */ l.jsxs(B, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1488
- /* @__PURE__ */ l.jsx(
1487
+ return /* @__PURE__ */ s.jsxs(B, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1488
+ /* @__PURE__ */ s.jsx(
1489
1489
  Je,
1490
1490
  {
1491
1491
  ...r,
1492
1492
  id: e.tsName,
1493
1493
  value: (n == null ? void 0 : n.start) || null,
1494
- onChange: (s) => {
1494
+ onChange: (l) => {
1495
1495
  t({
1496
- start: s === null ? void 0 : Z(s).startOf("day").toDate(),
1496
+ start: l === null ? void 0 : Z(l).startOf("day").toDate(),
1497
1497
  end: n == null ? void 0 : n.end
1498
1498
  });
1499
1499
  },
@@ -1503,20 +1503,20 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1503
1503
  disabled: o,
1504
1504
  popoverProps: { withinPortal: !1 },
1505
1505
  flex: 1,
1506
- leftSection: /* @__PURE__ */ l.jsx(Me, { size: 16, stroke: 1.5 })
1506
+ leftSection: /* @__PURE__ */ s.jsx($e, { size: 16, stroke: 1.5 })
1507
1507
  }
1508
1508
  ),
1509
- /* @__PURE__ */ l.jsx("span", { style: { flexGrow: 0 }, children: "–" }),
1510
- /* @__PURE__ */ l.jsx(
1509
+ /* @__PURE__ */ s.jsx("span", { style: { flexGrow: 0 }, children: "–" }),
1510
+ /* @__PURE__ */ s.jsx(
1511
1511
  Je,
1512
1512
  {
1513
1513
  ...i,
1514
1514
  id: e.tsName,
1515
1515
  value: (n == null ? void 0 : n.end) || null,
1516
- onChange: (s) => {
1516
+ onChange: (l) => {
1517
1517
  t({
1518
1518
  start: n == null ? void 0 : n.start,
1519
- end: s === null ? void 0 : Z(s).startOf("day").toDate()
1519
+ end: l === null ? void 0 : Z(l).startOf("day").toDate()
1520
1520
  });
1521
1521
  },
1522
1522
  valueFormat: "YYYY MMM DD",
@@ -1525,22 +1525,22 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1525
1525
  disabled: o,
1526
1526
  popoverProps: { withinPortal: !1 },
1527
1527
  flex: 1,
1528
- leftSection: /* @__PURE__ */ l.jsx(Me, { size: 16, stroke: 1.5 })
1528
+ leftSection: /* @__PURE__ */ s.jsx($e, { size: 16, stroke: 1.5 })
1529
1529
  }
1530
1530
  )
1531
1531
  ] });
1532
1532
  }, Go = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1533
1533
  const r = X(e, "start"), i = X(e, "end");
1534
- return /* @__PURE__ */ l.jsxs(B, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1535
- /* @__PURE__ */ l.jsx(
1536
- Pt,
1534
+ return /* @__PURE__ */ s.jsxs(B, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1535
+ /* @__PURE__ */ s.jsx(
1536
+ It,
1537
1537
  {
1538
1538
  ...r,
1539
1539
  id: e.tsName,
1540
1540
  value: (n == null ? void 0 : n.start) || null,
1541
- onChange: (s) => {
1541
+ onChange: (l) => {
1542
1542
  t({
1543
- start: s === null ? void 0 : Z(s).toDate(),
1543
+ start: l === null ? void 0 : Z(l).toDate(),
1544
1544
  end: n == null ? void 0 : n.end
1545
1545
  });
1546
1546
  },
@@ -1551,20 +1551,20 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1551
1551
  popoverProps: { withinPortal: !1 },
1552
1552
  flex: 1,
1553
1553
  withSeconds: !1,
1554
- leftSection: /* @__PURE__ */ l.jsx(Me, { size: 16, stroke: 1.5 })
1554
+ leftSection: /* @__PURE__ */ s.jsx($e, { size: 16, stroke: 1.5 })
1555
1555
  }
1556
1556
  ),
1557
- /* @__PURE__ */ l.jsx("span", { style: { flexGrow: 0 }, children: "–" }),
1558
- /* @__PURE__ */ l.jsx(
1559
- Pt,
1557
+ /* @__PURE__ */ s.jsx("span", { style: { flexGrow: 0 }, children: "–" }),
1558
+ /* @__PURE__ */ s.jsx(
1559
+ It,
1560
1560
  {
1561
1561
  ...i,
1562
1562
  id: e.tsName,
1563
1563
  value: (n == null ? void 0 : n.end) || null,
1564
- onChange: (s) => {
1564
+ onChange: (l) => {
1565
1565
  t({
1566
1566
  start: n == null ? void 0 : n.start,
1567
- end: s === null ? void 0 : Z(s).toDate()
1567
+ end: l === null ? void 0 : Z(l).toDate()
1568
1568
  });
1569
1569
  },
1570
1570
  valueFormat: "YYYY MMM DD HH:mm",
@@ -1574,19 +1574,19 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1574
1574
  popoverProps: { withinPortal: !1 },
1575
1575
  flex: 1,
1576
1576
  withSeconds: !1,
1577
- leftSection: /* @__PURE__ */ l.jsx(Me, { size: 16, stroke: 1.5 })
1577
+ leftSection: /* @__PURE__ */ s.jsx($e, { size: 16, stroke: 1.5 })
1578
1578
  }
1579
1579
  )
1580
1580
  ] });
1581
- }, Vt = {
1582
- integer: be,
1583
- float: be,
1584
- string: ve,
1581
+ }, bt = {
1582
+ integer: De,
1583
+ float: De,
1584
+ string: Se,
1585
1585
  boolean: sn,
1586
- "string[]": ve,
1587
- enum: Do,
1588
- date: bo
1589
- }, Ho = "_requiredLabelLeft_l5p83_1", qo = "_requiredLabelRight_l5p83_11", Tt = {
1586
+ "string[]": Se,
1587
+ enum: bo,
1588
+ date: Do
1589
+ }, Ho = "_requiredLabelLeft_l5p83_1", qo = "_requiredLabelRight_l5p83_11", Vt = {
1590
1590
  requiredLabelLeft: Ho,
1591
1591
  requiredLabelRight: qo
1592
1592
  }, un = ({
@@ -1597,11 +1597,11 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1597
1597
  style: r,
1598
1598
  align: i = "left"
1599
1599
  }) => {
1600
- const s = t ? i === "left" ? Tt.requiredLabelRight : Tt.requiredLabelLeft : "";
1601
- return /* @__PURE__ */ l.jsx(B, { align: "center", h: 36, children: /* @__PURE__ */ l.jsx("label", { htmlFor: n, style: r, children: /* @__PURE__ */ l.jsxs(O, { gap: 4, children: [
1602
- /* @__PURE__ */ l.jsx(E, { size: "sm", className: s, children: e }),
1603
- o !== void 0 && /* @__PURE__ */ l.jsx(Ut, { label: o, withArrow: !0, children: /* @__PURE__ */ l.jsx(
1604
- Wt,
1600
+ const l = t ? i === "left" ? Vt.requiredLabelRight : Vt.requiredLabelLeft : "";
1601
+ return /* @__PURE__ */ s.jsx(B, { align: "center", h: 36, children: /* @__PURE__ */ s.jsx("label", { htmlFor: n, style: r, children: /* @__PURE__ */ s.jsxs(O, { gap: 4, children: [
1602
+ /* @__PURE__ */ s.jsx(E, { size: "sm", className: l, children: e }),
1603
+ o !== void 0 && /* @__PURE__ */ s.jsx(Bt, { label: o, withArrow: !0, children: /* @__PURE__ */ s.jsx(
1604
+ Kt,
1605
1605
  {
1606
1606
  size: 16,
1607
1607
  stroke: 1.5,
@@ -1620,27 +1620,27 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1620
1620
  layout: o = dn,
1621
1621
  InputComponent: r,
1622
1622
  freeze: i = !1,
1623
- label: s,
1623
+ label: l,
1624
1624
  onChange: a,
1625
1625
  visible: u
1626
1626
  }) => {
1627
- const [d, g] = M(void 0);
1627
+ const [c, f] = M(void 0);
1628
1628
  if (u !== void 0 && !u(n))
1629
- return /* @__PURE__ */ l.jsx("div", {});
1630
- const m = dt(n, t);
1631
- return a === void 0 && (a = (p) => {
1632
- var f;
1633
- if (Jt(n))
1634
- Ze(n, t, p);
1629
+ return /* @__PURE__ */ s.jsx("div", {});
1630
+ const g = ct(n, t);
1631
+ return a === void 0 && (a = (m) => {
1632
+ var p;
1633
+ if (Wt(n))
1634
+ Ze(n, t, m);
1635
1635
  else {
1636
1636
  const h = n.toDraft();
1637
- Ze(h, t, p), e.setDraft(h);
1637
+ Ze(h, t, m), e.setDraft(h);
1638
1638
  }
1639
- const c = t.validator(p);
1640
- c.isValid ? g(void 0) : g(
1641
- (f = c.errorMessage) == null ? void 0 : f.t({ args: { name: t.label } })
1639
+ const d = t.validator(m);
1640
+ d.isValid ? f(void 0) : f(
1641
+ (p = d.errorMessage) == null ? void 0 : p.t({ args: { name: t.label } })
1642
1642
  );
1643
- }), /* @__PURE__ */ l.jsx(
1643
+ }), /* @__PURE__ */ s.jsx(
1644
1644
  cn,
1645
1645
  {
1646
1646
  db: e.db,
@@ -1648,9 +1648,9 @@ const No = (e) => e.name, ko = (e) => /* @__PURE__ */ l.jsx(E, { size: "sm", chi
1648
1648
  layout: o,
1649
1649
  InputComponent: r,
1650
1650
  freeze: i,
1651
- value: m,
1652
- error: d,
1653
- label: s,
1651
+ value: g,
1652
+ error: c,
1653
+ label: l,
1654
1654
  onChange: a
1655
1655
  }
1656
1656
  );
@@ -1663,13 +1663,13 @@ function cn({
1663
1663
  InputComponent: o,
1664
1664
  freeze: r,
1665
1665
  value: i,
1666
- error: s,
1666
+ error: l,
1667
1667
  label: a,
1668
1668
  onChange: u
1669
1669
  }) {
1670
- return Uo(n) ? /* @__PURE__ */ l.jsxs(Y, { gap: 5, children: [
1671
- /* @__PURE__ */ l.jsxs(N, { gutter: "sm", children: [
1672
- /* @__PURE__ */ l.jsx(
1670
+ return Uo(n) ? /* @__PURE__ */ s.jsxs(Y, { gap: 5, children: [
1671
+ /* @__PURE__ */ s.jsxs(N, { gutter: "sm", children: [
1672
+ /* @__PURE__ */ s.jsx(
1673
1673
  N.Col,
1674
1674
  {
1675
1675
  span: n.labelCol,
@@ -1677,43 +1677,43 @@ function cn({
1677
1677
  display: "flex",
1678
1678
  justifyContent: n.align || "left"
1679
1679
  },
1680
- children: /* @__PURE__ */ l.jsx(
1680
+ children: /* @__PURE__ */ s.jsx(
1681
1681
  un,
1682
1682
  {
1683
- label: /* @__PURE__ */ l.jsx(b, { value: t.label }),
1683
+ label: /* @__PURE__ */ s.jsx(V, { value: t.label }),
1684
1684
  name: t.name,
1685
1685
  required: t.isRequired,
1686
- tooltip: t.description !== void 0 ? /* @__PURE__ */ l.jsx(b, { value: t.description }) : void 0,
1686
+ tooltip: t.description !== void 0 ? /* @__PURE__ */ s.jsx(V, { value: t.description }) : void 0,
1687
1687
  align: n.align
1688
1688
  }
1689
1689
  )
1690
1690
  }
1691
1691
  ),
1692
- /* @__PURE__ */ l.jsx(N.Col, { span: n.itemCol, children: /* @__PURE__ */ l.jsx(
1692
+ /* @__PURE__ */ s.jsx(N.Col, { span: n.itemCol, children: /* @__PURE__ */ s.jsx(
1693
1693
  o,
1694
1694
  {
1695
1695
  db: e,
1696
1696
  property: t,
1697
1697
  value: i,
1698
- error: s !== void 0,
1698
+ error: l !== void 0,
1699
1699
  onChange: u,
1700
1700
  freeze: r
1701
1701
  }
1702
1702
  ) })
1703
1703
  ] }),
1704
- s !== void 0 && /* @__PURE__ */ l.jsxs(N, { gutter: "sm", children: [
1705
- /* @__PURE__ */ l.jsx(N.Col, { span: n.labelCol }),
1706
- /* @__PURE__ */ l.jsx(N.Col, { span: n.itemCol, children: /* @__PURE__ */ l.jsx(J.Error, { children: s }) })
1704
+ l !== void 0 && /* @__PURE__ */ s.jsxs(N, { gutter: "sm", children: [
1705
+ /* @__PURE__ */ s.jsx(N.Col, { span: n.labelCol }),
1706
+ /* @__PURE__ */ s.jsx(N.Col, { span: n.itemCol, children: /* @__PURE__ */ s.jsx(J.Error, { children: l }) })
1707
1707
  ] })
1708
- ] }) : (a === void 0 && (a = /* @__PURE__ */ l.jsx(b, { value: t.label })), !n.helpAlwaysVisible && t.description !== void 0 && (a = /* @__PURE__ */ l.jsxs(O, { gap: 4, style: { display: "inline-flex" }, children: [
1708
+ ] }) : (a === void 0 && (a = /* @__PURE__ */ s.jsx(V, { value: t.label })), !n.helpAlwaysVisible && t.description !== void 0 && (a = /* @__PURE__ */ s.jsxs(O, { gap: 4, style: { display: "inline-flex" }, children: [
1709
1709
  a,
1710
- /* @__PURE__ */ l.jsx(
1711
- Ut,
1710
+ /* @__PURE__ */ s.jsx(
1711
+ Bt,
1712
1712
  {
1713
- label: /* @__PURE__ */ l.jsx(b, { value: t.description }),
1713
+ label: /* @__PURE__ */ s.jsx(V, { value: t.description }),
1714
1714
  withArrow: !0,
1715
- children: /* @__PURE__ */ l.jsx(
1716
- Wt,
1715
+ children: /* @__PURE__ */ s.jsx(
1716
+ Kt,
1717
1717
  {
1718
1718
  size: 16,
1719
1719
  stroke: 1.5,
@@ -1722,19 +1722,19 @@ function cn({
1722
1722
  )
1723
1723
  }
1724
1724
  )
1725
- ] })), /* @__PURE__ */ l.jsx(
1725
+ ] })), /* @__PURE__ */ s.jsx(
1726
1726
  J.Wrapper,
1727
1727
  {
1728
1728
  label: a,
1729
- description: n.helpAlwaysVisible && t.description !== void 0 ? /* @__PURE__ */ l.jsx(b, { value: t.description }) : void 0,
1729
+ description: n.helpAlwaysVisible && t.description !== void 0 ? /* @__PURE__ */ s.jsx(V, { value: t.description }) : void 0,
1730
1730
  required: t.isRequired,
1731
- children: /* @__PURE__ */ l.jsx(
1731
+ children: /* @__PURE__ */ s.jsx(
1732
1732
  o,
1733
1733
  {
1734
1734
  db: e,
1735
1735
  property: t,
1736
1736
  value: i,
1737
- error: s,
1737
+ error: l,
1738
1738
  onChange: u,
1739
1739
  freeze: r
1740
1740
  }
@@ -1754,15 +1754,15 @@ const zi = 12, Gi = (e) => {
1754
1754
  o,
1755
1755
  e.layout
1756
1756
  )), [n, e.store, e.record, e.fieldGroups, e.layout]);
1757
- return /* @__PURE__ */ l.jsx(
1757
+ return /* @__PURE__ */ s.jsx(
1758
1758
  "form",
1759
1759
  {
1760
1760
  onSubmit: e.onSubmit === void 0 ? void 0 : (o) => {
1761
- o.preventDefault(), e.onSubmit !== void 0 && Jt(e.record) && e.record.stale && e.record.isValid() && e.onSubmit(e.record);
1761
+ o.preventDefault(), e.onSubmit !== void 0 && Wt(e.record) && e.record.stale && e.record.isValid() && e.onSubmit(e.record);
1762
1762
  },
1763
- children: /* @__PURE__ */ l.jsxs(Y, { gap: "sm", className: e.className, style: e.styles, children: [
1763
+ children: /* @__PURE__ */ s.jsxs(Y, { gap: "sm", className: e.className, style: e.styles, children: [
1764
1764
  t,
1765
- /* @__PURE__ */ l.jsx(O, { gap: "sm", justify: e.actionsAlign, children: e.actions.map((o, r) => /* @__PURE__ */ l.jsx(
1765
+ /* @__PURE__ */ s.jsx(O, { gap: "sm", justify: e.actionsAlign, children: e.actions.map((o, r) => /* @__PURE__ */ s.jsx(
1766
1766
  z,
1767
1767
  {
1768
1768
  variant: o.variant,
@@ -1779,18 +1779,18 @@ const zi = 12, Gi = (e) => {
1779
1779
  );
1780
1780
  };
1781
1781
  function Yo(e, n, t, o, r, i) {
1782
- var d, g;
1783
- const s = r.fields, a = [];
1784
- for (let m = 0; m < s.length; m++) {
1785
- const p = [];
1786
- for (let c = 0; c < s[m].length; c++) {
1787
- const f = s[m][c];
1782
+ var c, f;
1783
+ const l = r.fields, a = [];
1784
+ for (let g = 0; g < l.length; g++) {
1785
+ const m = [];
1786
+ for (let d = 0; d < l[g].length; d++) {
1787
+ const p = l[g][d];
1788
1788
  let h, v = {};
1789
- if (typeof f == "function")
1790
- h = f(n, t);
1789
+ if (typeof p == "function")
1790
+ h = p(n, t);
1791
1791
  else {
1792
1792
  let S;
1793
- typeof f == "object" && "prop" in f ? (S = f.prop instanceof W ? f.prop : e.allProperties[f.prop], f.args !== void 0 && (v = f.args)) : S = f instanceof W ? f : e.allProperties[f], h = /* @__PURE__ */ l.jsx(
1793
+ typeof p == "object" && "prop" in p ? (S = p.prop instanceof W ? p.prop : e.allProperties[p.prop], p.args !== void 0 && (v = p.args)) : S = p instanceof W ? p : e.allProperties[p], h = /* @__PURE__ */ s.jsx(
1794
1794
  Bo,
1795
1795
  {
1796
1796
  store: n,
@@ -1805,36 +1805,36 @@ function Yo(e, n, t, o, r, i) {
1805
1805
  }
1806
1806
  );
1807
1807
  }
1808
- p.push(
1809
- /* @__PURE__ */ l.jsx(
1810
- nn,
1808
+ m.push(
1809
+ /* @__PURE__ */ s.jsx(
1810
+ en,
1811
1811
  {
1812
- span: (d = v.colsize) == null ? void 0 : d.span,
1813
- grow: (g = v.colsize) == null ? void 0 : g.grow,
1812
+ span: (c = v.colsize) == null ? void 0 : c.span,
1813
+ grow: (f = v.colsize) == null ? void 0 : f.grow,
1814
1814
  children: h
1815
1815
  },
1816
- `${m}-${c}`
1816
+ `${g}-${d}`
1817
1817
  )
1818
1818
  );
1819
1819
  }
1820
1820
  a.push(
1821
- /* @__PURE__ */ l.jsx(tn, { children: p }, m)
1821
+ /* @__PURE__ */ s.jsx(Zt, { children: m }, g)
1822
1822
  );
1823
1823
  }
1824
- const u = /* @__PURE__ */ l.jsx(Y, { gap: "sm", children: a }, o);
1825
- return r.name !== void 0 ? /* @__PURE__ */ l.jsx(Yt, { legend: r.name, children: u }, o) : u;
1824
+ const u = /* @__PURE__ */ s.jsx(Y, { gap: "sm", children: a }, o);
1825
+ return r.name !== void 0 ? /* @__PURE__ */ s.jsx(Ut, { legend: r.name, children: u }, o) : u;
1826
1826
  }
1827
1827
  function gn(e, n) {
1828
1828
  if (n !== void 0)
1829
1829
  return n;
1830
1830
  const t = e instanceof W ? e.leafProperty : e;
1831
- if (se(t))
1831
+ if (ce(t))
1832
1832
  return t.cardinality === "N:N" || t.cardinality === "1:N" ? an : ln;
1833
- if (Vt[t.datatype] === void 0)
1833
+ if (bt[t.datatype] === void 0)
1834
1834
  throw new Error(
1835
1835
  `No input component found for datatype ${t.datatype}`
1836
1836
  );
1837
- return Vt[t.datatype];
1837
+ return bt[t.datatype];
1838
1838
  }
1839
1839
  const Ko = oe(
1840
1840
  ({
@@ -1844,22 +1844,22 @@ const Ko = oe(
1844
1844
  layout: o = dn,
1845
1845
  InputComponent: r,
1846
1846
  freeze: i = !1,
1847
- label: s,
1847
+ label: l,
1848
1848
  onChange: a,
1849
1849
  visible: u
1850
1850
  }) => {
1851
- const [d, g] = M(void 0);
1851
+ const [c, f] = M(void 0);
1852
1852
  if (u !== void 0 && !u(n))
1853
- return /* @__PURE__ */ l.jsx("div", {});
1854
- const m = dt(n, t);
1855
- return a === void 0 && (a = (p) => {
1856
- var f;
1857
- Ze(n, t, p);
1858
- const c = t.validator(p);
1859
- c.isValid ? g(void 0) : g(
1860
- (f = c.errorMessage) == null ? void 0 : f.t({ args: { name: t.label } })
1853
+ return /* @__PURE__ */ s.jsx("div", {});
1854
+ const g = ct(n, t);
1855
+ return a === void 0 && (a = (m) => {
1856
+ var p;
1857
+ Ze(n, t, m);
1858
+ const d = t.validator(m);
1859
+ d.isValid ? f(void 0) : f(
1860
+ (p = d.errorMessage) == null ? void 0 : p.t({ args: { name: t.label } })
1861
1861
  );
1862
- }), /* @__PURE__ */ l.jsx(
1862
+ }), /* @__PURE__ */ s.jsx(
1863
1863
  cn,
1864
1864
  {
1865
1865
  db: e,
@@ -1867,9 +1867,9 @@ const Ko = oe(
1867
1867
  layout: o,
1868
1868
  InputComponent: r,
1869
1869
  freeze: i,
1870
- value: m,
1871
- error: d,
1872
- label: s,
1870
+ value: g,
1871
+ error: c,
1872
+ label: l,
1873
1873
  onChange: a
1874
1874
  }
1875
1875
  );
@@ -1883,15 +1883,15 @@ const Ko = oe(
1883
1883
  e.layout,
1884
1884
  e.db
1885
1885
  )), [n, e.record, e.fieldGroups, e.layout]);
1886
- return /* @__PURE__ */ l.jsx(
1886
+ return /* @__PURE__ */ s.jsx(
1887
1887
  "form",
1888
1888
  {
1889
1889
  onSubmit: e.onSubmit === void 0 ? void 0 : (o) => {
1890
1890
  o.preventDefault(), e.onSubmit !== void 0 && e.record.stale && e.record.isValid() && e.onSubmit(e.record);
1891
1891
  },
1892
- children: /* @__PURE__ */ l.jsxs(Y, { gap: "sm", className: e.className, style: e.styles, children: [
1892
+ children: /* @__PURE__ */ s.jsxs(Y, { gap: "sm", className: e.className, style: e.styles, children: [
1893
1893
  t,
1894
- e.actions && e.actions.length > 0 && /* @__PURE__ */ l.jsx(O, { gap: "sm", justify: e.actionsAlign, children: e.actions.map((o, r) => /* @__PURE__ */ l.jsx(
1894
+ e.actions && e.actions.length > 0 && /* @__PURE__ */ s.jsx(O, { gap: "sm", justify: e.actionsAlign, children: e.actions.map((o, r) => /* @__PURE__ */ s.jsx(
1895
1895
  z,
1896
1896
  {
1897
1897
  variant: o.variant,
@@ -1908,18 +1908,18 @@ const Ko = oe(
1908
1908
  );
1909
1909
  };
1910
1910
  function Wo(e, n, t, o, r, i) {
1911
- var d, g;
1912
- const s = o.fields, a = [];
1913
- for (let m = 0; m < s.length; m++) {
1914
- const p = [];
1915
- for (let c = 0; c < s[m].length; c++) {
1916
- const f = s[m][c];
1911
+ var c, f;
1912
+ const l = o.fields, a = [];
1913
+ for (let g = 0; g < l.length; g++) {
1914
+ const m = [];
1915
+ for (let d = 0; d < l[g].length; d++) {
1916
+ const p = l[g][d];
1917
1917
  let h, v = {};
1918
- if (typeof f == "function")
1919
- h = f(n);
1918
+ if (typeof p == "function")
1919
+ h = p(n);
1920
1920
  else {
1921
1921
  let S;
1922
- typeof f == "object" && "prop" in f ? (S = f.prop instanceof W ? f.prop : e.allProperties[f.prop], f.args !== void 0 && (v = f.args)) : S = f instanceof W ? f : e.allProperties[f], h = /* @__PURE__ */ l.jsx(
1922
+ typeof p == "object" && "prop" in p ? (S = p.prop instanceof W ? p.prop : e.allProperties[p.prop], p.args !== void 0 && (v = p.args)) : S = p instanceof W ? p : e.allProperties[p], h = /* @__PURE__ */ s.jsx(
1923
1923
  Ko,
1924
1924
  {
1925
1925
  db: i,
@@ -1934,24 +1934,24 @@ function Wo(e, n, t, o, r, i) {
1934
1934
  }
1935
1935
  );
1936
1936
  }
1937
- p.push(
1938
- /* @__PURE__ */ l.jsx(
1939
- nn,
1937
+ m.push(
1938
+ /* @__PURE__ */ s.jsx(
1939
+ en,
1940
1940
  {
1941
- span: (d = v.colsize) == null ? void 0 : d.span,
1942
- grow: (g = v.colsize) == null ? void 0 : g.grow,
1941
+ span: (c = v.colsize) == null ? void 0 : c.span,
1942
+ grow: (f = v.colsize) == null ? void 0 : f.grow,
1943
1943
  children: h
1944
1944
  },
1945
- `${m}-${c}`
1945
+ `${g}-${d}`
1946
1946
  )
1947
1947
  );
1948
1948
  }
1949
1949
  a.push(
1950
- /* @__PURE__ */ l.jsx(tn, { children: p }, m)
1950
+ /* @__PURE__ */ s.jsx(Zt, { children: m }, g)
1951
1951
  );
1952
1952
  }
1953
- const u = /* @__PURE__ */ l.jsx(Y, { gap: "sm", children: a }, t);
1954
- return o.name !== void 0 ? /* @__PURE__ */ l.jsx(Yt, { legend: o.name, children: u }, t) : u;
1953
+ const u = /* @__PURE__ */ s.jsx(Y, { gap: "sm", children: a }, t);
1954
+ return o.name !== void 0 ? /* @__PURE__ */ s.jsx(Ut, { legend: o.name, children: u }, t) : u;
1955
1955
  }
1956
1956
  /**
1957
1957
  * table-core
@@ -1984,8 +1984,8 @@ function Jo(e, n) {
1984
1984
  const t = [], o = (r) => {
1985
1985
  r.forEach((i) => {
1986
1986
  t.push(i);
1987
- const s = n(i);
1988
- s != null && s.length && o(s);
1987
+ const l = n(i);
1988
+ l != null && l.length && o(l);
1989
1989
  });
1990
1990
  };
1991
1991
  return o(e), t;
@@ -1993,23 +1993,23 @@ function Jo(e, n) {
1993
1993
  function w(e, n, t) {
1994
1994
  let o = [], r;
1995
1995
  return (i) => {
1996
- let s;
1997
- t.key && t.debug && (s = Date.now());
1996
+ let l;
1997
+ t.key && t.debug && (l = Date.now());
1998
1998
  const a = e(i);
1999
- if (!(a.length !== o.length || a.some((g, m) => o[m] !== g)))
1999
+ if (!(a.length !== o.length || a.some((f, g) => o[g] !== f)))
2000
2000
  return r;
2001
2001
  o = a;
2002
- let d;
2003
- if (t.key && t.debug && (d = Date.now()), r = n(...a), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
2004
- const g = Math.round((Date.now() - s) * 100) / 100, m = Math.round((Date.now() - d) * 100) / 100, p = m / 16, c = (f, h) => {
2005
- for (f = String(f); f.length < h; )
2006
- f = " " + f;
2007
- return f;
2002
+ let c;
2003
+ if (t.key && t.debug && (c = Date.now()), r = n(...a), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
2004
+ const f = Math.round((Date.now() - l) * 100) / 100, g = Math.round((Date.now() - c) * 100) / 100, m = g / 16, d = (p, h) => {
2005
+ for (p = String(p); p.length < h; )
2006
+ p = " " + p;
2007
+ return p;
2008
2008
  };
2009
- console.info(`%c⏱ ${c(m, 5)} /${c(g, 5)} ms`, `
2009
+ console.info(`%c⏱ ${d(g, 5)} /${d(f, 5)} ms`, `
2010
2010
  font-size: .6rem;
2011
2011
  font-weight: bold;
2012
- color: hsl(${Math.max(0, Math.min(120 - 120 * p, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
2012
+ color: hsl(${Math.max(0, Math.min(120 - 120 * m, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
2013
2013
  }
2014
2014
  return r;
2015
2015
  };
@@ -2026,25 +2026,25 @@ function x(e, n, t, o) {
2026
2026
  }
2027
2027
  function Qo(e, n, t, o) {
2028
2028
  const r = () => {
2029
- var s;
2030
- return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
2029
+ var l;
2030
+ return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
2031
2031
  }, i = {
2032
2032
  id: `${n.id}_${t.id}`,
2033
2033
  row: n,
2034
2034
  column: t,
2035
2035
  getValue: () => n.getValue(o),
2036
2036
  renderValue: r,
2037
- getContext: w(() => [e, t, n, i], (s, a, u, d) => ({
2038
- table: s,
2037
+ getContext: w(() => [e, t, n, i], (l, a, u, c) => ({
2038
+ table: l,
2039
2039
  column: a,
2040
2040
  row: u,
2041
- cell: d,
2042
- getValue: d.getValue,
2043
- renderValue: d.renderValue
2041
+ cell: c,
2042
+ getValue: c.getValue,
2043
+ renderValue: c.renderValue
2044
2044
  }), x(e.options, "debugCells", "cell.getContext"))
2045
2045
  };
2046
- return e._features.forEach((s) => {
2047
- s.createCell == null || s.createCell(i, t, n, e);
2046
+ return e._features.forEach((l) => {
2047
+ l.createCell == null || l.createCell(i, t, n, e);
2048
2048
  }, {}), i;
2049
2049
  }
2050
2050
  function Zo(e, n, t, o) {
@@ -2053,42 +2053,42 @@ function Zo(e, n, t, o) {
2053
2053
  ...e._getDefaultColumnDef(),
2054
2054
  ...n
2055
2055
  }, u = a.accessorKey;
2056
- let d = (r = (i = a.id) != null ? i : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? r : typeof a.header == "string" ? a.header : void 0, g;
2057
- if (a.accessorFn ? g = a.accessorFn : u && (u.includes(".") ? g = (p) => {
2058
- let c = p;
2056
+ let c = (r = (i = a.id) != null ? i : u ? typeof String.prototype.replaceAll == "function" ? u.replaceAll(".", "_") : u.replace(/\./g, "_") : void 0) != null ? r : typeof a.header == "string" ? a.header : void 0, f;
2057
+ if (a.accessorFn ? f = a.accessorFn : u && (u.includes(".") ? f = (m) => {
2058
+ let d = m;
2059
2059
  for (const h of u.split(".")) {
2060
- var f;
2061
- c = (f = c) == null ? void 0 : f[h], process.env.NODE_ENV !== "production" && c === void 0 && console.warn(`"${h}" in deeply nested key "${u}" returned undefined.`);
2060
+ var p;
2061
+ d = (p = d) == null ? void 0 : p[h], process.env.NODE_ENV !== "production" && d === void 0 && console.warn(`"${h}" in deeply nested key "${u}" returned undefined.`);
2062
2062
  }
2063
- return c;
2064
- } : g = (p) => p[a.accessorKey]), !d)
2063
+ return d;
2064
+ } : f = (m) => m[a.accessorKey]), !c)
2065
2065
  throw process.env.NODE_ENV !== "production" ? new Error(a.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
2066
- let m = {
2067
- id: `${String(d)}`,
2068
- accessorFn: g,
2066
+ let g = {
2067
+ id: `${String(c)}`,
2068
+ accessorFn: f,
2069
2069
  parent: o,
2070
2070
  depth: t,
2071
2071
  columnDef: a,
2072
2072
  columns: [],
2073
2073
  getFlatColumns: w(() => [!0], () => {
2074
- var p;
2075
- return [m, ...(p = m.columns) == null ? void 0 : p.flatMap((c) => c.getFlatColumns())];
2074
+ var m;
2075
+ return [g, ...(m = g.columns) == null ? void 0 : m.flatMap((d) => d.getFlatColumns())];
2076
2076
  }, x(e.options, "debugColumns", "column.getFlatColumns")),
2077
- getLeafColumns: w(() => [e._getOrderColumnsFn()], (p) => {
2078
- var c;
2079
- if ((c = m.columns) != null && c.length) {
2080
- let f = m.columns.flatMap((h) => h.getLeafColumns());
2081
- return p(f);
2077
+ getLeafColumns: w(() => [e._getOrderColumnsFn()], (m) => {
2078
+ var d;
2079
+ if ((d = g.columns) != null && d.length) {
2080
+ let p = g.columns.flatMap((h) => h.getLeafColumns());
2081
+ return m(p);
2082
2082
  }
2083
- return [m];
2083
+ return [g];
2084
2084
  }, x(e.options, "debugColumns", "column.getLeafColumns"))
2085
2085
  };
2086
- for (const p of e._features)
2087
- p.createColumn == null || p.createColumn(m, e);
2088
- return m;
2086
+ for (const m of e._features)
2087
+ m.createColumn == null || m.createColumn(g, e);
2088
+ return g;
2089
2089
  }
2090
- const L = "debugHeaders";
2091
- function At(e, n, t) {
2090
+ const k = "debugHeaders";
2091
+ function Tt(e, n, t) {
2092
2092
  var o;
2093
2093
  let i = {
2094
2094
  id: (o = t.id) != null ? o : n.id,
@@ -2102,10 +2102,10 @@ function At(e, n, t) {
2102
2102
  rowSpan: 0,
2103
2103
  headerGroup: null,
2104
2104
  getLeafHeaders: () => {
2105
- const s = [], a = (u) => {
2106
- u.subHeaders && u.subHeaders.length && u.subHeaders.map(a), s.push(u);
2105
+ const l = [], a = (u) => {
2106
+ u.subHeaders && u.subHeaders.length && u.subHeaders.map(a), l.push(u);
2107
2107
  };
2108
- return a(i), s;
2108
+ return a(i), l;
2109
2109
  },
2110
2110
  getContext: () => ({
2111
2111
  table: e,
@@ -2113,81 +2113,81 @@ function At(e, n, t) {
2113
2113
  column: n
2114
2114
  })
2115
2115
  };
2116
- return e._features.forEach((s) => {
2117
- s.createHeader == null || s.createHeader(i, e);
2116
+ return e._features.forEach((l) => {
2117
+ l.createHeader == null || l.createHeader(i, e);
2118
2118
  }), i;
2119
2119
  }
2120
2120
  const er = {
2121
2121
  createTable: (e) => {
2122
2122
  e.getHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
2123
- var i, s;
2124
- const a = (i = o == null ? void 0 : o.map((m) => t.find((p) => p.id === m)).filter(Boolean)) != null ? i : [], u = (s = r == null ? void 0 : r.map((m) => t.find((p) => p.id === m)).filter(Boolean)) != null ? s : [], d = t.filter((m) => !(o != null && o.includes(m.id)) && !(r != null && r.includes(m.id)));
2125
- return Ie(n, [...a, ...d, ...u], e);
2126
- }, x(e.options, L, "getHeaderGroups")), e.getCenterHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))), Ie(n, t, e, "center")), x(e.options, L, "getCenterHeaderGroups")), e.getLeftHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
2123
+ var i, l;
2124
+ const a = (i = o == null ? void 0 : o.map((g) => t.find((m) => m.id === g)).filter(Boolean)) != null ? i : [], u = (l = r == null ? void 0 : r.map((g) => t.find((m) => m.id === g)).filter(Boolean)) != null ? l : [], c = t.filter((g) => !(o != null && o.includes(g.id)) && !(r != null && r.includes(g.id)));
2125
+ return Fe(n, [...a, ...c, ...u], e);
2126
+ }, x(e.options, k, "getHeaderGroups")), e.getCenterHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => (t = t.filter((i) => !(o != null && o.includes(i.id)) && !(r != null && r.includes(i.id))), Fe(n, t, e, "center")), x(e.options, k, "getCenterHeaderGroups")), e.getLeftHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
2127
2127
  var r;
2128
- const i = (r = o == null ? void 0 : o.map((s) => t.find((a) => a.id === s)).filter(Boolean)) != null ? r : [];
2129
- return Ie(n, i, e, "left");
2130
- }, x(e.options, L, "getLeftHeaderGroups")), e.getRightHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
2128
+ const i = (r = o == null ? void 0 : o.map((l) => t.find((a) => a.id === l)).filter(Boolean)) != null ? r : [];
2129
+ return Fe(n, i, e, "left");
2130
+ }, x(e.options, k, "getLeftHeaderGroups")), e.getRightHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
2131
2131
  var r;
2132
- const i = (r = o == null ? void 0 : o.map((s) => t.find((a) => a.id === s)).filter(Boolean)) != null ? r : [];
2133
- return Ie(n, i, e, "right");
2134
- }, x(e.options, L, "getRightHeaderGroups")), e.getFooterGroups = w(() => [e.getHeaderGroups()], (n) => [...n].reverse(), x(e.options, L, "getFooterGroups")), e.getLeftFooterGroups = w(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), x(e.options, L, "getLeftFooterGroups")), e.getCenterFooterGroups = w(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), x(e.options, L, "getCenterFooterGroups")), e.getRightFooterGroups = w(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), x(e.options, L, "getRightFooterGroups")), e.getFlatHeaders = w(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, L, "getFlatHeaders")), e.getLeftFlatHeaders = w(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, L, "getLeftFlatHeaders")), e.getCenterFlatHeaders = w(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, L, "getCenterFlatHeaders")), e.getRightFlatHeaders = w(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, L, "getRightFlatHeaders")), e.getCenterLeafHeaders = w(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
2132
+ const i = (r = o == null ? void 0 : o.map((l) => t.find((a) => a.id === l)).filter(Boolean)) != null ? r : [];
2133
+ return Fe(n, i, e, "right");
2134
+ }, x(e.options, k, "getRightHeaderGroups")), e.getFooterGroups = w(() => [e.getHeaderGroups()], (n) => [...n].reverse(), x(e.options, k, "getFooterGroups")), e.getLeftFooterGroups = w(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), x(e.options, k, "getLeftFooterGroups")), e.getCenterFooterGroups = w(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), x(e.options, k, "getCenterFooterGroups")), e.getRightFooterGroups = w(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), x(e.options, k, "getRightFooterGroups")), e.getFlatHeaders = w(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, k, "getFlatHeaders")), e.getLeftFlatHeaders = w(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, k, "getLeftFlatHeaders")), e.getCenterFlatHeaders = w(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, k, "getCenterFlatHeaders")), e.getRightFlatHeaders = w(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), x(e.options, k, "getRightFlatHeaders")), e.getCenterLeafHeaders = w(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
2135
2135
  var o;
2136
2136
  return !((o = t.subHeaders) != null && o.length);
2137
- }), x(e.options, L, "getCenterLeafHeaders")), e.getLeftLeafHeaders = w(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
2137
+ }), x(e.options, k, "getCenterLeafHeaders")), e.getLeftLeafHeaders = w(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
2138
2138
  var o;
2139
2139
  return !((o = t.subHeaders) != null && o.length);
2140
- }), x(e.options, L, "getLeftLeafHeaders")), e.getRightLeafHeaders = w(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
2140
+ }), x(e.options, k, "getLeftLeafHeaders")), e.getRightLeafHeaders = w(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
2141
2141
  var o;
2142
2142
  return !((o = t.subHeaders) != null && o.length);
2143
- }), x(e.options, L, "getRightLeafHeaders")), e.getLeafHeaders = w(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
2144
- var r, i, s, a, u, d;
2145
- return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(s = (a = t[0]) == null ? void 0 : a.headers) != null ? s : [], ...(u = (d = o[0]) == null ? void 0 : d.headers) != null ? u : []].map((g) => g.getLeafHeaders()).flat();
2146
- }, x(e.options, L, "getLeafHeaders"));
2143
+ }), x(e.options, k, "getRightLeafHeaders")), e.getLeafHeaders = w(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
2144
+ var r, i, l, a, u, c;
2145
+ return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (a = t[0]) == null ? void 0 : a.headers) != null ? l : [], ...(u = (c = o[0]) == null ? void 0 : c.headers) != null ? u : []].map((f) => f.getLeafHeaders()).flat();
2146
+ }, x(e.options, k, "getLeafHeaders"));
2147
2147
  }
2148
2148
  };
2149
- function Ie(e, n, t, o) {
2149
+ function Fe(e, n, t, o) {
2150
2150
  var r, i;
2151
- let s = 0;
2152
- const a = function(p, c) {
2153
- c === void 0 && (c = 1), s = Math.max(s, c), p.filter((f) => f.getIsVisible()).forEach((f) => {
2151
+ let l = 0;
2152
+ const a = function(m, d) {
2153
+ d === void 0 && (d = 1), l = Math.max(l, d), m.filter((p) => p.getIsVisible()).forEach((p) => {
2154
2154
  var h;
2155
- (h = f.columns) != null && h.length && a(f.columns, c + 1);
2155
+ (h = p.columns) != null && h.length && a(p.columns, d + 1);
2156
2156
  }, 0);
2157
2157
  };
2158
2158
  a(e);
2159
2159
  let u = [];
2160
- const d = (p, c) => {
2161
- const f = {
2162
- depth: c,
2163
- id: [o, `${c}`].filter(Boolean).join("_"),
2160
+ const c = (m, d) => {
2161
+ const p = {
2162
+ depth: d,
2163
+ id: [o, `${d}`].filter(Boolean).join("_"),
2164
2164
  headers: []
2165
2165
  }, h = [];
2166
- p.forEach((v) => {
2167
- const S = [...h].reverse()[0], R = v.column.depth === f.depth;
2166
+ m.forEach((v) => {
2167
+ const S = [...h].reverse()[0], R = v.column.depth === p.depth;
2168
2168
  let y, I = !1;
2169
2169
  if (R && v.column.parent ? y = v.column.parent : (y = v.column, I = !0), S && (S == null ? void 0 : S.column) === y)
2170
2170
  S.subHeaders.push(v);
2171
2171
  else {
2172
- const P = At(t, y, {
2173
- id: [o, c, y.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
2172
+ const P = Tt(t, y, {
2173
+ id: [o, d, y.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
2174
2174
  isPlaceholder: I,
2175
- placeholderId: I ? `${h.filter((k) => k.column === y).length}` : void 0,
2176
- depth: c,
2175
+ placeholderId: I ? `${h.filter((L) => L.column === y).length}` : void 0,
2176
+ depth: d,
2177
2177
  index: h.length
2178
2178
  });
2179
2179
  P.subHeaders.push(v), h.push(P);
2180
2180
  }
2181
- f.headers.push(v), v.headerGroup = f;
2182
- }), u.push(f), c > 0 && d(h, c - 1);
2183
- }, g = n.map((p, c) => At(t, p, {
2184
- depth: s,
2185
- index: c
2181
+ p.headers.push(v), v.headerGroup = p;
2182
+ }), u.push(p), d > 0 && c(h, d - 1);
2183
+ }, f = n.map((m, d) => Tt(t, m, {
2184
+ depth: l,
2185
+ index: d
2186
2186
  }));
2187
- d(g, s - 1), u.reverse();
2188
- const m = (p) => p.filter((f) => f.column.getIsVisible()).map((f) => {
2187
+ c(f, l - 1), u.reverse();
2188
+ const g = (m) => m.filter((p) => p.column.getIsVisible()).map((p) => {
2189
2189
  let h = 0, v = 0, S = [0];
2190
- f.subHeaders && f.subHeaders.length ? (S = [], m(f.subHeaders).forEach((y) => {
2190
+ p.subHeaders && p.subHeaders.length ? (S = [], g(p.subHeaders).forEach((y) => {
2191
2191
  let {
2192
2192
  colSpan: I,
2193
2193
  rowSpan: P
@@ -2195,58 +2195,58 @@ function Ie(e, n, t, o) {
2195
2195
  h += I, S.push(P);
2196
2196
  })) : h = 1;
2197
2197
  const R = Math.min(...S);
2198
- return v = v + R, f.colSpan = h, f.rowSpan = v, {
2198
+ return v = v + R, p.colSpan = h, p.rowSpan = v, {
2199
2199
  colSpan: h,
2200
2200
  rowSpan: v
2201
2201
  };
2202
2202
  });
2203
- return m((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
2203
+ return g((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
2204
2204
  }
2205
- const tr = (e, n, t, o, r, i, s) => {
2205
+ const tr = (e, n, t, o, r, i, l) => {
2206
2206
  let a = {
2207
2207
  id: n,
2208
2208
  index: o,
2209
2209
  original: t,
2210
2210
  depth: r,
2211
- parentId: s,
2211
+ parentId: l,
2212
2212
  _valuesCache: {},
2213
2213
  _uniqueValuesCache: {},
2214
2214
  getValue: (u) => {
2215
2215
  if (a._valuesCache.hasOwnProperty(u))
2216
2216
  return a._valuesCache[u];
2217
- const d = e.getColumn(u);
2218
- if (d != null && d.accessorFn)
2219
- return a._valuesCache[u] = d.accessorFn(a.original, o), a._valuesCache[u];
2217
+ const c = e.getColumn(u);
2218
+ if (c != null && c.accessorFn)
2219
+ return a._valuesCache[u] = c.accessorFn(a.original, o), a._valuesCache[u];
2220
2220
  },
2221
2221
  getUniqueValues: (u) => {
2222
2222
  if (a._uniqueValuesCache.hasOwnProperty(u))
2223
2223
  return a._uniqueValuesCache[u];
2224
- const d = e.getColumn(u);
2225
- if (d != null && d.accessorFn)
2226
- return d.columnDef.getUniqueValues ? (a._uniqueValuesCache[u] = d.columnDef.getUniqueValues(a.original, o), a._uniqueValuesCache[u]) : (a._uniqueValuesCache[u] = [a.getValue(u)], a._uniqueValuesCache[u]);
2224
+ const c = e.getColumn(u);
2225
+ if (c != null && c.accessorFn)
2226
+ return c.columnDef.getUniqueValues ? (a._uniqueValuesCache[u] = c.columnDef.getUniqueValues(a.original, o), a._uniqueValuesCache[u]) : (a._uniqueValuesCache[u] = [a.getValue(u)], a._uniqueValuesCache[u]);
2227
2227
  },
2228
2228
  renderValue: (u) => {
2229
- var d;
2230
- return (d = a.getValue(u)) != null ? d : e.options.renderFallbackValue;
2229
+ var c;
2230
+ return (c = a.getValue(u)) != null ? c : e.options.renderFallbackValue;
2231
2231
  },
2232
2232
  subRows: [],
2233
2233
  getLeafRows: () => Jo(a.subRows, (u) => u.subRows),
2234
2234
  getParentRow: () => a.parentId ? e.getRow(a.parentId, !0) : void 0,
2235
2235
  getParentRows: () => {
2236
- let u = [], d = a;
2236
+ let u = [], c = a;
2237
2237
  for (; ; ) {
2238
- const g = d.getParentRow();
2239
- if (!g) break;
2240
- u.push(g), d = g;
2238
+ const f = c.getParentRow();
2239
+ if (!f) break;
2240
+ u.push(f), c = f;
2241
2241
  }
2242
2242
  return u.reverse();
2243
2243
  },
2244
- getAllCells: w(() => [e.getAllLeafColumns()], (u) => u.map((d) => Qo(e, a, d, d.id)), x(e.options, "debugRows", "getAllCells")),
2245
- _getAllCellsByColumnId: w(() => [a.getAllCells()], (u) => u.reduce((d, g) => (d[g.column.id] = g, d), {}), x(e.options, "debugRows", "getAllCellsByColumnId"))
2244
+ getAllCells: w(() => [e.getAllLeafColumns()], (u) => u.map((c) => Qo(e, a, c, c.id)), x(e.options, "debugRows", "getAllCells")),
2245
+ _getAllCellsByColumnId: w(() => [a.getAllCells()], (u) => u.reduce((c, f) => (c[f.column.id] = f, c), {}), x(e.options, "debugRows", "getAllCellsByColumnId"))
2246
2246
  };
2247
2247
  for (let u = 0; u < e._features.length; u++) {
2248
- const d = e._features[u];
2249
- d == null || d.createRow == null || d.createRow(a, e);
2248
+ const c = e._features[u];
2249
+ c == null || c.createRow == null || c.createRow(a, e);
2250
2250
  }
2251
2251
  return a;
2252
2252
  }, nr = {
@@ -2262,16 +2262,16 @@ const tr = (e, n, t, o, r, i, s) => {
2262
2262
  return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
2263
2263
  };
2264
2264
  fn.autoRemove = (e) => K(e);
2265
- const mn = (e, n, t) => {
2265
+ const pn = (e, n, t) => {
2266
2266
  var o;
2267
2267
  return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null) && o.includes(t));
2268
2268
  };
2269
- mn.autoRemove = (e) => K(e);
2270
- const pn = (e, n, t) => {
2269
+ pn.autoRemove = (e) => K(e);
2270
+ const mn = (e, n, t) => {
2271
2271
  var o;
2272
2272
  return ((o = e.getValue(n)) == null || (o = o.toString()) == null ? void 0 : o.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
2273
2273
  };
2274
- pn.autoRemove = (e) => K(e);
2274
+ mn.autoRemove = (e) => K(e);
2275
2275
  const hn = (e, n, t) => {
2276
2276
  var o;
2277
2277
  return (o = e.getValue(n)) == null ? void 0 : o.includes(t);
@@ -2297,18 +2297,18 @@ const pt = (e, n, t) => {
2297
2297
  return i >= o && i <= r;
2298
2298
  };
2299
2299
  pt.resolveFilterValue = (e) => {
2300
- let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, r = typeof t != "number" ? parseFloat(t) : t, i = n === null || Number.isNaN(o) ? -1 / 0 : o, s = t === null || Number.isNaN(r) ? 1 / 0 : r;
2301
- if (i > s) {
2300
+ let [n, t] = e, o = typeof n != "number" ? parseFloat(n) : n, r = typeof t != "number" ? parseFloat(t) : t, i = n === null || Number.isNaN(o) ? -1 / 0 : o, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
2301
+ if (i > l) {
2302
2302
  const a = i;
2303
- i = s, s = a;
2303
+ i = l, l = a;
2304
2304
  }
2305
- return [i, s];
2305
+ return [i, l];
2306
2306
  };
2307
2307
  pt.autoRemove = (e) => K(e) || K(e[0]) && K(e[1]);
2308
2308
  const Q = {
2309
2309
  includesString: fn,
2310
- includesStringSensitive: mn,
2311
- equalsString: pn,
2310
+ includesStringSensitive: pn,
2311
+ equalsString: mn,
2312
2312
  arrIncludes: hn,
2313
2313
  arrIncludesAll: Sn,
2314
2314
  arrIncludesSome: vn,
@@ -2353,18 +2353,18 @@ const or = {
2353
2353
  return (t = (o = n.getState().columnFilters) == null ? void 0 : o.findIndex((r) => r.id === e.id)) != null ? t : -1;
2354
2354
  }, e.setFilterValue = (t) => {
2355
2355
  n.setColumnFilters((o) => {
2356
- const r = e.getFilterFn(), i = o == null ? void 0 : o.find((g) => g.id === e.id), s = te(t, i ? i.value : void 0);
2357
- if (Nt(r, s, e)) {
2356
+ const r = e.getFilterFn(), i = o == null ? void 0 : o.find((f) => f.id === e.id), l = te(t, i ? i.value : void 0);
2357
+ if (At(r, l, e)) {
2358
2358
  var a;
2359
- return (a = o == null ? void 0 : o.filter((g) => g.id !== e.id)) != null ? a : [];
2359
+ return (a = o == null ? void 0 : o.filter((f) => f.id !== e.id)) != null ? a : [];
2360
2360
  }
2361
2361
  const u = {
2362
2362
  id: e.id,
2363
- value: s
2363
+ value: l
2364
2364
  };
2365
2365
  if (i) {
2366
- var d;
2367
- return (d = o == null ? void 0 : o.map((g) => g.id === e.id ? u : g)) != null ? d : [];
2366
+ var c;
2367
+ return (c = o == null ? void 0 : o.map((f) => f.id === e.id ? u : f)) != null ? c : [];
2368
2368
  }
2369
2369
  return o != null && o.length ? [...o, u] : [u];
2370
2370
  });
@@ -2377,11 +2377,11 @@ const or = {
2377
2377
  e.setColumnFilters = (n) => {
2378
2378
  const t = e.getAllLeafColumns(), o = (r) => {
2379
2379
  var i;
2380
- return (i = te(n, r)) == null ? void 0 : i.filter((s) => {
2381
- const a = t.find((u) => u.id === s.id);
2380
+ return (i = te(n, r)) == null ? void 0 : i.filter((l) => {
2381
+ const a = t.find((u) => u.id === l.id);
2382
2382
  if (a) {
2383
2383
  const u = a.getFilterFn();
2384
- if (Nt(u, s.value, a))
2384
+ if (At(u, l.value, a))
2385
2385
  return !1;
2386
2386
  }
2387
2387
  return !0;
@@ -2394,7 +2394,7 @@ const or = {
2394
2394
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
2395
2395
  }
2396
2396
  };
2397
- function Nt(e, n, t) {
2397
+ function At(e, n, t) {
2398
2398
  return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
2399
2399
  }
2400
2400
  const rr = (e, n, t) => t.reduce((o, r) => {
@@ -2415,8 +2415,8 @@ const rr = (e, n, t) => t.reduce((o, r) => {
2415
2415
  }, lr = (e, n, t) => {
2416
2416
  let o, r;
2417
2417
  return t.forEach((i) => {
2418
- const s = i.getValue(e);
2419
- s != null && (o === void 0 ? s >= s && (o = r = s) : (o > s && (o = s), r < s && (r = s)));
2418
+ const l = i.getValue(e);
2419
+ l != null && (o === void 0 ? l >= l && (o = r = l) : (o > l && (o = l), r < l && (r = l)));
2420
2420
  }), [o, r];
2421
2421
  }, ar = (e, n) => {
2422
2422
  let t = 0, o = 0;
@@ -2432,7 +2432,7 @@ const rr = (e, n, t) => t.reduce((o, r) => {
2432
2432
  return;
2433
2433
  if (t.length === 1)
2434
2434
  return t[0];
2435
- const o = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
2435
+ const o = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
2436
2436
  return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
2437
2437
  }, dr = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), cr = (e, n) => new Set(n.map((t) => t.getValue(e))).size, gr = (e, n) => n.length, Ge = {
2438
2438
  sum: rr,
@@ -2511,13 +2511,13 @@ const rr = (e, n, t) => t.reduce((o, r) => {
2511
2511
  };
2512
2512
  }
2513
2513
  };
2514
- function mr(e, n, t) {
2514
+ function pr(e, n, t) {
2515
2515
  if (!(n != null && n.length) || !t)
2516
2516
  return e;
2517
2517
  const o = e.filter((i) => !n.includes(i.id));
2518
- return t === "remove" ? o : [...n.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...o];
2518
+ return t === "remove" ? o : [...n.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...o];
2519
2519
  }
2520
- const pr = {
2520
+ const mr = {
2521
2521
  getInitialState: (e) => ({
2522
2522
  columnOrder: [],
2523
2523
  ...e
@@ -2526,12 +2526,12 @@ const pr = {
2526
2526
  onColumnOrderChange: q("columnOrder", e)
2527
2527
  }),
2528
2528
  createColumn: (e, n) => {
2529
- e.getIndex = w((t) => [Ce(n, t)], (t) => t.findIndex((o) => o.id === e.id), x(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2529
+ e.getIndex = w((t) => [ve(n, t)], (t) => t.findIndex((o) => o.id === e.id), x(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2530
2530
  var o;
2531
- return ((o = Ce(n, t)[0]) == null ? void 0 : o.id) === e.id;
2531
+ return ((o = ve(n, t)[0]) == null ? void 0 : o.id) === e.id;
2532
2532
  }, e.getIsLastColumn = (t) => {
2533
2533
  var o;
2534
- const r = Ce(n, t);
2534
+ const r = ve(n, t);
2535
2535
  return ((o = r[r.length - 1]) == null ? void 0 : o.id) === e.id;
2536
2536
  };
2537
2537
  },
@@ -2544,14 +2544,14 @@ const pr = {
2544
2544
  if (!(n != null && n.length))
2545
2545
  i = r;
2546
2546
  else {
2547
- const s = [...n], a = [...r];
2548
- for (; a.length && s.length; ) {
2549
- const u = s.shift(), d = a.findIndex((g) => g.id === u);
2550
- d > -1 && i.push(a.splice(d, 1)[0]);
2547
+ const l = [...n], a = [...r];
2548
+ for (; a.length && l.length; ) {
2549
+ const u = l.shift(), c = a.findIndex((f) => f.id === u);
2550
+ c > -1 && i.push(a.splice(c, 1)[0]);
2551
2551
  }
2552
2552
  i = [...i, ...a];
2553
2553
  }
2554
- return mr(i, t, o);
2554
+ return pr(i, t, o);
2555
2555
  }, x(e.options, "debugTable", "_getOrderColumnsFn"));
2556
2556
  }
2557
2557
  }, He = () => ({
@@ -2569,35 +2569,35 @@ const pr = {
2569
2569
  e.pin = (t) => {
2570
2570
  const o = e.getLeafColumns().map((r) => r.id).filter(Boolean);
2571
2571
  n.setColumnPinning((r) => {
2572
- var i, s;
2572
+ var i, l;
2573
2573
  if (t === "right") {
2574
2574
  var a, u;
2575
2575
  return {
2576
- left: ((a = r == null ? void 0 : r.left) != null ? a : []).filter((m) => !(o != null && o.includes(m))),
2577
- right: [...((u = r == null ? void 0 : r.right) != null ? u : []).filter((m) => !(o != null && o.includes(m))), ...o]
2576
+ left: ((a = r == null ? void 0 : r.left) != null ? a : []).filter((g) => !(o != null && o.includes(g))),
2577
+ right: [...((u = r == null ? void 0 : r.right) != null ? u : []).filter((g) => !(o != null && o.includes(g))), ...o]
2578
2578
  };
2579
2579
  }
2580
2580
  if (t === "left") {
2581
- var d, g;
2581
+ var c, f;
2582
2582
  return {
2583
- left: [...((d = r == null ? void 0 : r.left) != null ? d : []).filter((m) => !(o != null && o.includes(m))), ...o],
2584
- right: ((g = r == null ? void 0 : r.right) != null ? g : []).filter((m) => !(o != null && o.includes(m)))
2583
+ left: [...((c = r == null ? void 0 : r.left) != null ? c : []).filter((g) => !(o != null && o.includes(g))), ...o],
2584
+ right: ((f = r == null ? void 0 : r.right) != null ? f : []).filter((g) => !(o != null && o.includes(g)))
2585
2585
  };
2586
2586
  }
2587
2587
  return {
2588
- left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((m) => !(o != null && o.includes(m))),
2589
- right: ((s = r == null ? void 0 : r.right) != null ? s : []).filter((m) => !(o != null && o.includes(m)))
2588
+ left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((g) => !(o != null && o.includes(g))),
2589
+ right: ((l = r == null ? void 0 : r.right) != null ? l : []).filter((g) => !(o != null && o.includes(g)))
2590
2590
  };
2591
2591
  });
2592
2592
  }, e.getCanPin = () => e.getLeafColumns().some((o) => {
2593
- var r, i, s;
2594
- return ((r = o.columnDef.enablePinning) != null ? r : !0) && ((i = (s = n.options.enableColumnPinning) != null ? s : n.options.enablePinning) != null ? i : !0);
2593
+ var r, i, l;
2594
+ return ((r = o.columnDef.enablePinning) != null ? r : !0) && ((i = (l = n.options.enableColumnPinning) != null ? l : n.options.enablePinning) != null ? i : !0);
2595
2595
  }), e.getIsPinned = () => {
2596
2596
  const t = e.getLeafColumns().map((a) => a.id), {
2597
2597
  left: o,
2598
2598
  right: r
2599
- } = n.getState().columnPinning, i = t.some((a) => o == null ? void 0 : o.includes(a)), s = t.some((a) => r == null ? void 0 : r.includes(a));
2600
- return i ? "left" : s ? "right" : !1;
2599
+ } = n.getState().columnPinning, i = t.some((a) => o == null ? void 0 : o.includes(a)), l = t.some((a) => r == null ? void 0 : r.includes(a));
2600
+ return i ? "left" : l ? "right" : !1;
2601
2601
  }, e.getPinnedIndex = () => {
2602
2602
  var t, o;
2603
2603
  const r = e.getIsPinned();
@@ -2607,11 +2607,11 @@ const pr = {
2607
2607
  createRow: (e, n) => {
2608
2608
  e.getCenterVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
2609
2609
  const i = [...o ?? [], ...r ?? []];
2610
- return t.filter((s) => !i.includes(s.column.id));
2611
- }, x(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
2610
+ return t.filter((l) => !i.includes(l.column.id));
2611
+ }, x(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
2612
2612
  ...i,
2613
2613
  position: "left"
2614
- })), x(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
2614
+ })), x(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
2615
2615
  ...i,
2616
2616
  position: "right"
2617
2617
  })), x(n.options, "debugRows", "getRightVisibleCells"));
@@ -2637,7 +2637,7 @@ const pr = {
2637
2637
  function Sr(e) {
2638
2638
  return e || (typeof document < "u" ? document : null);
2639
2639
  }
2640
- const Pe = {
2640
+ const Ie = {
2641
2641
  size: 150,
2642
2642
  minSize: 20,
2643
2643
  maxSize: Number.MAX_SAFE_INTEGER
@@ -2649,7 +2649,7 @@ const Pe = {
2649
2649
  isResizingColumn: !1,
2650
2650
  columnSizingStart: []
2651
2651
  }), vr = {
2652
- getDefaultColumnDef: () => Pe,
2652
+ getDefaultColumnDef: () => Ie,
2653
2653
  getInitialState: (e) => ({
2654
2654
  columnSizing: {},
2655
2655
  columnSizingInfo: qe(),
@@ -2665,8 +2665,8 @@ const Pe = {
2665
2665
  e.getSize = () => {
2666
2666
  var t, o, r;
2667
2667
  const i = n.getState().columnSizing[e.id];
2668
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Pe.minSize, (o = i ?? e.columnDef.size) != null ? o : Pe.size), (r = e.columnDef.maxSize) != null ? r : Pe.maxSize);
2669
- }, e.getStart = w((t) => [t, Ce(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), x(n.options, "debugColumns", "getStart")), e.getAfter = w((t) => [t, Ce(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), x(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
2668
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ie.minSize, (o = i ?? e.columnDef.size) != null ? o : Ie.size), (r = e.columnDef.maxSize) != null ? r : Ie.maxSize);
2669
+ }, e.getStart = w((t) => [t, ve(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), x(n.options, "debugColumns", "getStart")), e.getAfter = w((t) => [t, ve(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), x(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
2670
2670
  n.setColumnSizing((t) => {
2671
2671
  let {
2672
2672
  [e.id]: o,
@@ -2702,13 +2702,13 @@ const Pe = {
2702
2702
  return (i) => {
2703
2703
  if (!o || !r || (i.persist == null || i.persist(), Be(i) && i.touches && i.touches.length > 1))
2704
2704
  return;
2705
- const s = e.getSize(), a = e ? e.getLeafHeaders().map((S) => [S.column.id, S.column.getSize()]) : [[o.id, o.getSize()]], u = Be(i) ? Math.round(i.touches[0].clientX) : i.clientX, d = {}, g = (S, R) => {
2705
+ const l = e.getSize(), a = e ? e.getLeafHeaders().map((S) => [S.column.id, S.column.getSize()]) : [[o.id, o.getSize()]], u = Be(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, f = (S, R) => {
2706
2706
  typeof R == "number" && (n.setColumnSizingInfo((y) => {
2707
2707
  var I, P;
2708
- const k = n.options.columnResizeDirection === "rtl" ? -1 : 1, F = (R - ((I = y == null ? void 0 : y.startOffset) != null ? I : 0)) * k, T = Math.max(F / ((P = y == null ? void 0 : y.startSize) != null ? P : 0), -0.999999);
2708
+ const L = n.options.columnResizeDirection === "rtl" ? -1 : 1, F = (R - ((I = y == null ? void 0 : y.startOffset) != null ? I : 0)) * L, T = Math.max(F / ((P = y == null ? void 0 : y.startSize) != null ? P : 0), -0.999999);
2709
2709
  return y.columnSizingStart.forEach((H) => {
2710
- let [Ae, xe] = H;
2711
- d[Ae] = Math.round(Math.max(xe + xe * T, 0) * 100) / 100;
2710
+ let [Ae, we] = H;
2711
+ c[Ae] = Math.round(Math.max(we + we * T, 0) * 100) / 100;
2712
2712
  }), {
2713
2713
  ...y,
2714
2714
  deltaOffset: F,
@@ -2716,10 +2716,10 @@ const Pe = {
2716
2716
  };
2717
2717
  }), (n.options.columnResizeMode === "onChange" || S === "end") && n.setColumnSizing((y) => ({
2718
2718
  ...y,
2719
- ...d
2719
+ ...c
2720
2720
  })));
2721
- }, m = (S) => g("move", S), p = (S) => {
2722
- g("end", S), n.setColumnSizingInfo((R) => ({
2721
+ }, g = (S) => f("move", S), m = (S) => {
2722
+ f("end", S), n.setColumnSizingInfo((R) => ({
2723
2723
  ...R,
2724
2724
  isResizingColumn: !1,
2725
2725
  startOffset: null,
@@ -2728,24 +2728,24 @@ const Pe = {
2728
2728
  deltaPercentage: null,
2729
2729
  columnSizingStart: []
2730
2730
  }));
2731
- }, c = Sr(t), f = {
2732
- moveHandler: (S) => m(S.clientX),
2731
+ }, d = Sr(t), p = {
2732
+ moveHandler: (S) => g(S.clientX),
2733
2733
  upHandler: (S) => {
2734
- c == null || c.removeEventListener("mousemove", f.moveHandler), c == null || c.removeEventListener("mouseup", f.upHandler), p(S.clientX);
2734
+ d == null || d.removeEventListener("mousemove", p.moveHandler), d == null || d.removeEventListener("mouseup", p.upHandler), m(S.clientX);
2735
2735
  }
2736
2736
  }, h = {
2737
- moveHandler: (S) => (S.cancelable && (S.preventDefault(), S.stopPropagation()), m(S.touches[0].clientX), !1),
2737
+ moveHandler: (S) => (S.cancelable && (S.preventDefault(), S.stopPropagation()), g(S.touches[0].clientX), !1),
2738
2738
  upHandler: (S) => {
2739
2739
  var R;
2740
- c == null || c.removeEventListener("touchmove", h.moveHandler), c == null || c.removeEventListener("touchend", h.upHandler), S.cancelable && (S.preventDefault(), S.stopPropagation()), p((R = S.touches[0]) == null ? void 0 : R.clientX);
2740
+ d == null || d.removeEventListener("touchmove", h.moveHandler), d == null || d.removeEventListener("touchend", h.upHandler), S.cancelable && (S.preventDefault(), S.stopPropagation()), m((R = S.touches[0]) == null ? void 0 : R.clientX);
2741
2741
  }
2742
2742
  }, v = Cr() ? {
2743
2743
  passive: !1
2744
2744
  } : !1;
2745
- Be(i) ? (c == null || c.addEventListener("touchmove", h.moveHandler, v), c == null || c.addEventListener("touchend", h.upHandler, v)) : (c == null || c.addEventListener("mousemove", f.moveHandler, v), c == null || c.addEventListener("mouseup", f.upHandler, v)), n.setColumnSizingInfo((S) => ({
2745
+ Be(i) ? (d == null || d.addEventListener("touchmove", h.moveHandler, v), d == null || d.addEventListener("touchend", h.upHandler, v)) : (d == null || d.addEventListener("mousemove", p.moveHandler, v), d == null || d.addEventListener("mouseup", p.upHandler, v)), n.setColumnSizingInfo((S) => ({
2746
2746
  ...S,
2747
2747
  startOffset: u,
2748
- startSize: s,
2748
+ startSize: l,
2749
2749
  deltaOffset: 0,
2750
2750
  deltaPercentage: 0,
2751
2751
  columnSizingStart: a,
@@ -2776,9 +2776,9 @@ const Pe = {
2776
2776
  };
2777
2777
  }
2778
2778
  };
2779
- let Ee = null;
2779
+ let Pe = null;
2780
2780
  function Cr() {
2781
- if (typeof Ee == "boolean") return Ee;
2781
+ if (typeof Pe == "boolean") return Pe;
2782
2782
  let e = !1;
2783
2783
  try {
2784
2784
  const n = {
@@ -2791,7 +2791,7 @@ function Cr() {
2791
2791
  } catch {
2792
2792
  e = !1;
2793
2793
  }
2794
- return Ee = e, Ee;
2794
+ return Pe = e, Pe;
2795
2795
  }
2796
2796
  function Be(e) {
2797
2797
  return e.type === "touchstart";
@@ -2841,7 +2841,7 @@ const wr = {
2841
2841
  };
2842
2842
  }
2843
2843
  };
2844
- function Ce(e, n) {
2844
+ function ve(e, n) {
2845
2845
  return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
2846
2846
  }
2847
2847
  const xr = {
@@ -2925,8 +2925,8 @@ const xr = {
2925
2925
  }, e.getExpandedDepth = () => {
2926
2926
  let o = 0;
2927
2927
  return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((i) => {
2928
- const s = i.split(".");
2929
- o = Math.max(o, s.length);
2928
+ const l = i.split(".");
2929
+ o = Math.max(o, l.length);
2930
2930
  }), o;
2931
2931
  }, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
2932
2932
  },
@@ -2935,19 +2935,19 @@ const xr = {
2935
2935
  n.setExpanded((o) => {
2936
2936
  var r;
2937
2937
  const i = o === !0 ? !0 : !!(o != null && o[e.id]);
2938
- let s = {};
2938
+ let l = {};
2939
2939
  if (o === !0 ? Object.keys(n.getRowModel().rowsById).forEach((a) => {
2940
- s[a] = !0;
2941
- }) : s = o, t = (r = t) != null ? r : !i, !i && t)
2940
+ l[a] = !0;
2941
+ }) : l = o, t = (r = t) != null ? r : !i, !i && t)
2942
2942
  return {
2943
- ...s,
2943
+ ...l,
2944
2944
  [e.id]: !0
2945
2945
  };
2946
2946
  if (i && !t) {
2947
2947
  const {
2948
2948
  [e.id]: a,
2949
2949
  ...u
2950
- } = s;
2950
+ } = l;
2951
2951
  return u;
2952
2952
  }
2953
2953
  return o;
@@ -3010,8 +3010,8 @@ const xr = {
3010
3010
  }, e.setPageIndex = (o) => {
3011
3011
  e.setPagination((r) => {
3012
3012
  let i = te(o, r.pageIndex);
3013
- const s = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
3014
- return i = Math.max(0, Math.min(i, s)), {
3013
+ const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
3014
+ return i = Math.max(0, Math.min(i, l)), {
3015
3015
  ...r,
3016
3016
  pageIndex: i
3017
3017
  };
@@ -3024,7 +3024,7 @@ const xr = {
3024
3024
  e.setPageSize(o ? nt : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : nt);
3025
3025
  }, e.setPageSize = (o) => {
3026
3026
  e.setPagination((r) => {
3027
- const i = Math.max(1, te(o, r.pageSize)), s = r.pageSize * r.pageIndex, a = Math.floor(s / i);
3027
+ const i = Math.max(1, te(o, r.pageSize)), l = r.pageSize * r.pageIndex, a = Math.floor(l / i);
3028
3028
  return {
3029
3029
  ...r,
3030
3030
  pageIndex: a,
@@ -3033,14 +3033,14 @@ const xr = {
3033
3033
  });
3034
3034
  }, e.setPageCount = (o) => e.setPagination((r) => {
3035
3035
  var i;
3036
- let s = te(o, (i = e.options.pageCount) != null ? i : -1);
3037
- return typeof s == "number" && (s = Math.max(-1, s)), {
3036
+ let l = te(o, (i = e.options.pageCount) != null ? i : -1);
3037
+ return typeof l == "number" && (l = Math.max(-1, l)), {
3038
3038
  ...r,
3039
- pageCount: s
3039
+ pageCount: l
3040
3040
  };
3041
3041
  }), e.getPageOptions = w(() => [e.getPageCount()], (o) => {
3042
3042
  let r = [];
3043
- return o && o > 0 && (r = [...new Array(o)].fill(null).map((i, s) => s)), r;
3043
+ return o && o > 0 && (r = [...new Array(o)].fill(null).map((i, l) => l)), r;
3044
3044
  }, x(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
3045
3045
  const {
3046
3046
  pageIndex: o
@@ -3069,34 +3069,34 @@ const xr = {
3069
3069
  e.pin = (t, o, r) => {
3070
3070
  const i = o ? e.getLeafRows().map((u) => {
3071
3071
  let {
3072
- id: d
3072
+ id: c
3073
3073
  } = u;
3074
- return d;
3075
- }) : [], s = r ? e.getParentRows().map((u) => {
3074
+ return c;
3075
+ }) : [], l = r ? e.getParentRows().map((u) => {
3076
3076
  let {
3077
- id: d
3077
+ id: c
3078
3078
  } = u;
3079
- return d;
3080
- }) : [], a = /* @__PURE__ */ new Set([...s, e.id, ...i]);
3079
+ return c;
3080
+ }) : [], a = /* @__PURE__ */ new Set([...l, e.id, ...i]);
3081
3081
  n.setRowPinning((u) => {
3082
- var d, g;
3082
+ var c, f;
3083
3083
  if (t === "bottom") {
3084
- var m, p;
3084
+ var g, m;
3085
3085
  return {
3086
- top: ((m = u == null ? void 0 : u.top) != null ? m : []).filter((h) => !(a != null && a.has(h))),
3087
- bottom: [...((p = u == null ? void 0 : u.bottom) != null ? p : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)]
3086
+ top: ((g = u == null ? void 0 : u.top) != null ? g : []).filter((h) => !(a != null && a.has(h))),
3087
+ bottom: [...((m = u == null ? void 0 : u.bottom) != null ? m : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)]
3088
3088
  };
3089
3089
  }
3090
3090
  if (t === "top") {
3091
- var c, f;
3091
+ var d, p;
3092
3092
  return {
3093
- top: [...((c = u == null ? void 0 : u.top) != null ? c : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)],
3094
- bottom: ((f = u == null ? void 0 : u.bottom) != null ? f : []).filter((h) => !(a != null && a.has(h)))
3093
+ top: [...((d = u == null ? void 0 : u.top) != null ? d : []).filter((h) => !(a != null && a.has(h))), ...Array.from(a)],
3094
+ bottom: ((p = u == null ? void 0 : u.bottom) != null ? p : []).filter((h) => !(a != null && a.has(h)))
3095
3095
  };
3096
3096
  }
3097
3097
  return {
3098
- top: ((d = u == null ? void 0 : u.top) != null ? d : []).filter((h) => !(a != null && a.has(h))),
3099
- bottom: ((g = u == null ? void 0 : u.bottom) != null ? g : []).filter((h) => !(a != null && a.has(h)))
3098
+ top: ((c = u == null ? void 0 : u.top) != null ? c : []).filter((h) => !(a != null && a.has(h))),
3099
+ bottom: ((f = u == null ? void 0 : u.bottom) != null ? f : []).filter((h) => !(a != null && a.has(h)))
3100
3100
  };
3101
3101
  });
3102
3102
  }, e.getCanPin = () => {
@@ -3110,16 +3110,16 @@ const xr = {
3110
3110
  const t = [e.id], {
3111
3111
  top: o,
3112
3112
  bottom: r
3113
- } = n.getState().rowPinning, i = t.some((a) => o == null ? void 0 : o.includes(a)), s = t.some((a) => r == null ? void 0 : r.includes(a));
3114
- return i ? "top" : s ? "bottom" : !1;
3113
+ } = n.getState().rowPinning, i = t.some((a) => o == null ? void 0 : o.includes(a)), l = t.some((a) => r == null ? void 0 : r.includes(a));
3114
+ return i ? "top" : l ? "bottom" : !1;
3115
3115
  }, e.getPinnedIndex = () => {
3116
3116
  var t, o;
3117
3117
  const r = e.getIsPinned();
3118
3118
  if (!r) return -1;
3119
- const i = (t = r === "top" ? n.getTopRows() : n.getBottomRows()) == null ? void 0 : t.map((s) => {
3119
+ const i = (t = r === "top" ? n.getTopRows() : n.getBottomRows()) == null ? void 0 : t.map((l) => {
3120
3120
  let {
3121
3121
  id: a
3122
- } = s;
3122
+ } = l;
3123
3123
  return a;
3124
3124
  });
3125
3125
  return (o = i == null ? void 0 : i.indexOf(e.id)) != null ? o : -1;
@@ -3142,15 +3142,15 @@ const xr = {
3142
3142
  return ((r = e.options.keepPinnedRows) == null || r ? (
3143
3143
  //get all rows that are pinned even if they would not be otherwise visible
3144
3144
  //account for expanded parent rows, but not pagination or filtering
3145
- (t ?? []).map((s) => {
3146
- const a = e.getRow(s, !0);
3145
+ (t ?? []).map((l) => {
3146
+ const a = e.getRow(l, !0);
3147
3147
  return a.getIsAllParentsExpanded() ? a : null;
3148
3148
  })
3149
3149
  ) : (
3150
3150
  //else get only visible rows that are pinned
3151
- (t ?? []).map((s) => n.find((a) => a.id === s))
3152
- )).filter(Boolean).map((s) => ({
3153
- ...s,
3151
+ (t ?? []).map((l) => n.find((a) => a.id === l))
3152
+ )).filter(Boolean).map((l) => ({
3153
+ ...l,
3154
3154
  position: o
3155
3155
  }));
3156
3156
  }, e.getTopRows = w(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), x(e.options, "debugRows", "getTopRows")), e.getBottomRows = w(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), x(e.options, "debugRows", "getBottomRows")), e.getCenterRows = w(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
@@ -3236,19 +3236,19 @@ const xr = {
3236
3236
  e.toggleSelected = (t, o) => {
3237
3237
  const r = e.getIsSelected();
3238
3238
  n.setRowSelection((i) => {
3239
- var s;
3239
+ var l;
3240
3240
  if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
3241
3241
  return i;
3242
3242
  const a = {
3243
3243
  ...i
3244
3244
  };
3245
- return ot(a, e.id, t, (s = o == null ? void 0 : o.selectChildren) != null ? s : !0, n), a;
3245
+ return ot(a, e.id, t, (l = o == null ? void 0 : o.selectChildren) != null ? l : !0, n), a;
3246
3246
  });
3247
3247
  }, e.getIsSelected = () => {
3248
3248
  const {
3249
3249
  rowSelection: t
3250
3250
  } = n.getState();
3251
- return ht(e, t);
3251
+ return mt(e, t);
3252
3252
  }, e.getIsSomeSelected = () => {
3253
3253
  const {
3254
3254
  rowSelection: t
@@ -3278,18 +3278,18 @@ const xr = {
3278
3278
  }
3279
3279
  }, ot = (e, n, t, o, r) => {
3280
3280
  var i;
3281
- const s = r.getRow(n, !0);
3282
- t ? (s.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), s.getCanSelect() && (e[n] = !0)) : delete e[n], o && (i = s.subRows) != null && i.length && s.getCanSelectSubRows() && s.subRows.forEach((a) => ot(e, a.id, t, o, r));
3281
+ const l = r.getRow(n, !0);
3282
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((a) => delete e[a]), l.getCanSelect() && (e[n] = !0)) : delete e[n], o && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((a) => ot(e, a.id, t, o, r));
3283
3283
  };
3284
3284
  function Ke(e, n) {
3285
- const t = e.getState().rowSelection, o = [], r = {}, i = function(s, a) {
3286
- return s.map((u) => {
3287
- var d;
3288
- const g = ht(u, t);
3289
- if (g && (o.push(u), r[u.id] = u), (d = u.subRows) != null && d.length && (u = {
3285
+ const t = e.getState().rowSelection, o = [], r = {}, i = function(l, a) {
3286
+ return l.map((u) => {
3287
+ var c;
3288
+ const f = mt(u, t);
3289
+ if (f && (o.push(u), r[u.id] = u), (c = u.subRows) != null && c.length && (u = {
3290
3290
  ...u,
3291
3291
  subRows: i(u.subRows)
3292
- }), g)
3292
+ }), f)
3293
3293
  return u;
3294
3294
  }).filter(Boolean);
3295
3295
  };
@@ -3299,7 +3299,7 @@ function Ke(e, n) {
3299
3299
  rowsById: r
3300
3300
  };
3301
3301
  }
3302
- function ht(e, n) {
3302
+ function mt(e, n) {
3303
3303
  var t;
3304
3304
  return (t = n[e.id]) != null ? t : !1;
3305
3305
  }
@@ -3307,18 +3307,18 @@ function rt(e, n, t) {
3307
3307
  var o;
3308
3308
  if (!((o = e.subRows) != null && o.length)) return !1;
3309
3309
  let r = !0, i = !1;
3310
- return e.subRows.forEach((s) => {
3311
- if (!(i && !r) && (s.getCanSelect() && (ht(s, n) ? i = !0 : r = !1), s.subRows && s.subRows.length)) {
3312
- const a = rt(s, n);
3310
+ return e.subRows.forEach((l) => {
3311
+ if (!(i && !r) && (l.getCanSelect() && (mt(l, n) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
3312
+ const a = rt(l, n);
3313
3313
  a === "all" ? i = !0 : (a === "some" && (i = !0), r = !1);
3314
3314
  }
3315
3315
  }), r ? "all" : i ? "some" : !1;
3316
3316
  }
3317
- const it = /([0-9]+)/gm, Ir = (e, n, t) => xn(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), Pr = (e, n, t) => xn(ne(e.getValue(t)), ne(n.getValue(t))), Er = (e, n, t) => St(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), $r = (e, n, t) => St(ne(e.getValue(t)), ne(n.getValue(t))), Mr = (e, n, t) => {
3317
+ const it = /([0-9]+)/gm, Ir = (e, n, t) => xn(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), Pr = (e, n, t) => xn(ne(e.getValue(t)), ne(n.getValue(t))), Er = (e, n, t) => ht(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), $r = (e, n, t) => ht(ne(e.getValue(t)), ne(n.getValue(t))), Mr = (e, n, t) => {
3318
3318
  const o = e.getValue(t), r = n.getValue(t);
3319
3319
  return o > r ? 1 : o < r ? -1 : 0;
3320
- }, br = (e, n, t) => St(e.getValue(t), n.getValue(t));
3321
- function St(e, n) {
3320
+ }, Dr = (e, n, t) => ht(e.getValue(t), n.getValue(t));
3321
+ function ht(e, n) {
3322
3322
  return e === n ? 0 : e > n ? 1 : -1;
3323
3323
  }
3324
3324
  function ne(e) {
@@ -3327,7 +3327,7 @@ function ne(e) {
3327
3327
  function xn(e, n) {
3328
3328
  const t = e.split(it).filter(Boolean), o = n.split(it).filter(Boolean);
3329
3329
  for (; t.length && o.length; ) {
3330
- const r = t.shift(), i = o.shift(), s = parseInt(r, 10), a = parseInt(i, 10), u = [s, a].sort();
3330
+ const r = t.shift(), i = o.shift(), l = parseInt(r, 10), a = parseInt(i, 10), u = [l, a].sort();
3331
3331
  if (isNaN(u[0])) {
3332
3332
  if (r > i)
3333
3333
  return 1;
@@ -3336,22 +3336,22 @@ function xn(e, n) {
3336
3336
  continue;
3337
3337
  }
3338
3338
  if (isNaN(u[1]))
3339
- return isNaN(s) ? -1 : 1;
3340
- if (s > a)
3339
+ return isNaN(l) ? -1 : 1;
3340
+ if (l > a)
3341
3341
  return 1;
3342
- if (a > s)
3342
+ if (a > l)
3343
3343
  return -1;
3344
3344
  }
3345
3345
  return t.length - o.length;
3346
3346
  }
3347
- const he = {
3347
+ const me = {
3348
3348
  alphanumeric: Ir,
3349
3349
  alphanumericCaseSensitive: Pr,
3350
3350
  text: Er,
3351
3351
  textCaseSensitive: $r,
3352
3352
  datetime: Mr,
3353
- basic: br
3354
- }, Dr = {
3353
+ basic: Dr
3354
+ }, br = {
3355
3355
  getInitialState: (e) => ({
3356
3356
  sorting: [],
3357
3357
  ...e
@@ -3371,11 +3371,11 @@ const he = {
3371
3371
  for (const r of t) {
3372
3372
  const i = r == null ? void 0 : r.getValue(e.id);
3373
3373
  if (Object.prototype.toString.call(i) === "[object Date]")
3374
- return he.datetime;
3374
+ return me.datetime;
3375
3375
  if (typeof i == "string" && (o = !0, i.split(it).length > 1))
3376
- return he.alphanumeric;
3376
+ return me.alphanumeric;
3377
3377
  }
3378
- return o ? he.text : he.basic;
3378
+ return o ? me.text : me.basic;
3379
3379
  }, e.getAutoSortDir = () => {
3380
3380
  const t = n.getFilteredRowModel().flatRows[0];
3381
3381
  return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
@@ -3383,35 +3383,35 @@ const he = {
3383
3383
  var t, o;
3384
3384
  if (!e)
3385
3385
  throw new Error();
3386
- return Te(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : he[e.columnDef.sortingFn];
3386
+ return Te(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (o = n.options.sortingFns) == null ? void 0 : o[e.columnDef.sortingFn]) != null ? t : me[e.columnDef.sortingFn];
3387
3387
  }, e.toggleSorting = (t, o) => {
3388
3388
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
3389
- n.setSorting((s) => {
3390
- const a = s == null ? void 0 : s.find((c) => c.id === e.id), u = s == null ? void 0 : s.findIndex((c) => c.id === e.id);
3391
- let d = [], g, m = i ? t : r === "desc";
3392
- if (s != null && s.length && e.getCanMultiSort() && o ? a ? g = "toggle" : g = "add" : s != null && s.length && u !== s.length - 1 ? g = "replace" : a ? g = "toggle" : g = "replace", g === "toggle" && (i || r || (g = "remove")), g === "add") {
3393
- var p;
3394
- d = [...s, {
3389
+ n.setSorting((l) => {
3390
+ const a = l == null ? void 0 : l.find((d) => d.id === e.id), u = l == null ? void 0 : l.findIndex((d) => d.id === e.id);
3391
+ let c = [], f, g = i ? t : r === "desc";
3392
+ if (l != null && l.length && e.getCanMultiSort() && o ? a ? f = "toggle" : f = "add" : l != null && l.length && u !== l.length - 1 ? f = "replace" : a ? f = "toggle" : f = "replace", f === "toggle" && (i || r || (f = "remove")), f === "add") {
3393
+ var m;
3394
+ c = [...l, {
3395
3395
  id: e.id,
3396
- desc: m
3397
- }], d.splice(0, d.length - ((p = n.options.maxMultiSortColCount) != null ? p : Number.MAX_SAFE_INTEGER));
3398
- } else g === "toggle" ? d = s.map((c) => c.id === e.id ? {
3399
- ...c,
3400
- desc: m
3401
- } : c) : g === "remove" ? d = s.filter((c) => c.id !== e.id) : d = [{
3396
+ desc: g
3397
+ }], c.splice(0, c.length - ((m = n.options.maxMultiSortColCount) != null ? m : Number.MAX_SAFE_INTEGER));
3398
+ } else f === "toggle" ? c = l.map((d) => d.id === e.id ? {
3399
+ ...d,
3400
+ desc: g
3401
+ } : d) : f === "remove" ? c = l.filter((d) => d.id !== e.id) : c = [{
3402
3402
  id: e.id,
3403
- desc: m
3403
+ desc: g
3404
3404
  }];
3405
- return d;
3405
+ return c;
3406
3406
  });
3407
3407
  }, e.getFirstSortDir = () => {
3408
3408
  var t, o;
3409
3409
  return ((t = (o = e.columnDef.sortDescFirst) != null ? o : n.options.sortDescFirst) != null ? t : e.getAutoSortDir() === "desc") ? "desc" : "asc";
3410
3410
  }, e.getNextSortingOrder = (t) => {
3411
3411
  var o, r;
3412
- const i = e.getFirstSortDir(), s = e.getIsSorted();
3413
- return s ? s !== i && ((o = n.options.enableSortingRemoval) == null || o) && // If enableSortRemove, enable in general
3414
- (!(t && (r = n.options.enableMultiRemove) != null) || r) ? !1 : s === "desc" ? "asc" : "desc" : i;
3412
+ const i = e.getFirstSortDir(), l = e.getIsSorted();
3413
+ return l ? l !== i && ((o = n.options.enableSortingRemoval) == null || o) && // If enableSortRemove, enable in general
3414
+ (!(t && (r = n.options.enableMultiRemove) != null) || r) ? !1 : l === "desc" ? "asc" : "desc" : i;
3415
3415
  }, e.getCanSort = () => {
3416
3416
  var t, o;
3417
3417
  return ((t = e.columnDef.enableSorting) != null ? t : !0) && ((o = n.options.enableSorting) != null ? o : !0) && !!e.accessorFn;
@@ -3443,7 +3443,7 @@ const he = {
3443
3443
  }, Vr = [
3444
3444
  er,
3445
3445
  wr,
3446
- pr,
3446
+ mr,
3447
3447
  hr,
3448
3448
  nr,
3449
3449
  or,
@@ -3451,7 +3451,7 @@ const he = {
3451
3451
  //depends on ColumnFaceting
3452
3452
  Rr,
3453
3453
  //depends on ColumnFiltering
3454
- Dr,
3454
+ br,
3455
3455
  fr,
3456
3456
  //depends on RowSorting
3457
3457
  jr,
@@ -3467,103 +3467,103 @@ function Tr(e) {
3467
3467
  let r = {
3468
3468
  _features: o
3469
3469
  };
3470
- const i = r._features.reduce((p, c) => Object.assign(p, c.getDefaultOptions == null ? void 0 : c.getDefaultOptions(r)), {}), s = (p) => r.options.mergeOptions ? r.options.mergeOptions(i, p) : {
3470
+ const i = r._features.reduce((m, d) => Object.assign(m, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(r)), {}), l = (m) => r.options.mergeOptions ? r.options.mergeOptions(i, m) : {
3471
3471
  ...i,
3472
- ...p
3472
+ ...m
3473
3473
  };
3474
3474
  let u = {
3475
3475
  ...{},
3476
3476
  ...(t = e.initialState) != null ? t : {}
3477
3477
  };
3478
- r._features.forEach((p) => {
3479
- var c;
3480
- u = (c = p.getInitialState == null ? void 0 : p.getInitialState(u)) != null ? c : u;
3478
+ r._features.forEach((m) => {
3479
+ var d;
3480
+ u = (d = m.getInitialState == null ? void 0 : m.getInitialState(u)) != null ? d : u;
3481
3481
  });
3482
- const d = [];
3483
- let g = !1;
3484
- const m = {
3482
+ const c = [];
3483
+ let f = !1;
3484
+ const g = {
3485
3485
  _features: o,
3486
3486
  options: {
3487
3487
  ...i,
3488
3488
  ...e
3489
3489
  },
3490
3490
  initialState: u,
3491
- _queue: (p) => {
3492
- d.push(p), g || (g = !0, Promise.resolve().then(() => {
3493
- for (; d.length; )
3494
- d.shift()();
3495
- g = !1;
3496
- }).catch((c) => setTimeout(() => {
3497
- throw c;
3491
+ _queue: (m) => {
3492
+ c.push(m), f || (f = !0, Promise.resolve().then(() => {
3493
+ for (; c.length; )
3494
+ c.shift()();
3495
+ f = !1;
3496
+ }).catch((d) => setTimeout(() => {
3497
+ throw d;
3498
3498
  })));
3499
3499
  },
3500
3500
  reset: () => {
3501
3501
  r.setState(r.initialState);
3502
3502
  },
3503
- setOptions: (p) => {
3504
- const c = te(p, r.options);
3505
- r.options = s(c);
3503
+ setOptions: (m) => {
3504
+ const d = te(m, r.options);
3505
+ r.options = l(d);
3506
3506
  },
3507
3507
  getState: () => r.options.state,
3508
- setState: (p) => {
3509
- r.options.onStateChange == null || r.options.onStateChange(p);
3508
+ setState: (m) => {
3509
+ r.options.onStateChange == null || r.options.onStateChange(m);
3510
3510
  },
3511
- _getRowId: (p, c, f) => {
3511
+ _getRowId: (m, d, p) => {
3512
3512
  var h;
3513
- return (h = r.options.getRowId == null ? void 0 : r.options.getRowId(p, c, f)) != null ? h : `${f ? [f.id, c].join(".") : c}`;
3513
+ return (h = r.options.getRowId == null ? void 0 : r.options.getRowId(m, d, p)) != null ? h : `${p ? [p.id, d].join(".") : d}`;
3514
3514
  },
3515
3515
  getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
3516
3516
  // The final calls start at the bottom of the model,
3517
3517
  // expanded rows, which then work their way up
3518
3518
  getRowModel: () => r.getPaginationRowModel(),
3519
3519
  //in next version, we should just pass in the row model as the optional 2nd arg
3520
- getRow: (p, c) => {
3521
- let f = (c ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[p];
3522
- if (!f && (f = r.getCoreRowModel().rowsById[p], !f))
3523
- throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${p}`) : new Error();
3524
- return f;
3520
+ getRow: (m, d) => {
3521
+ let p = (d ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[m];
3522
+ if (!p && (p = r.getCoreRowModel().rowsById[m], !p))
3523
+ throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${m}`) : new Error();
3524
+ return p;
3525
3525
  },
3526
- _getDefaultColumnDef: w(() => [r.options.defaultColumn], (p) => {
3527
- var c;
3528
- return p = (c = p) != null ? c : {}, {
3529
- header: (f) => {
3530
- const h = f.header.column.columnDef;
3526
+ _getDefaultColumnDef: w(() => [r.options.defaultColumn], (m) => {
3527
+ var d;
3528
+ return m = (d = m) != null ? d : {}, {
3529
+ header: (p) => {
3530
+ const h = p.header.column.columnDef;
3531
3531
  return h.accessorKey ? h.accessorKey : h.accessorFn ? h.id : null;
3532
3532
  },
3533
3533
  // footer: props => props.header.column.id,
3534
- cell: (f) => {
3534
+ cell: (p) => {
3535
3535
  var h, v;
3536
- return (h = (v = f.renderValue()) == null || v.toString == null ? void 0 : v.toString()) != null ? h : null;
3536
+ return (h = (v = p.renderValue()) == null || v.toString == null ? void 0 : v.toString()) != null ? h : null;
3537
3537
  },
3538
- ...r._features.reduce((f, h) => Object.assign(f, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
3539
- ...p
3538
+ ...r._features.reduce((p, h) => Object.assign(p, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
3539
+ ...m
3540
3540
  };
3541
3541
  }, x(e, "debugColumns", "_getDefaultColumnDef")),
3542
3542
  _getColumnDefs: () => r.options.columns,
3543
- getAllColumns: w(() => [r._getColumnDefs()], (p) => {
3544
- const c = function(f, h, v) {
3545
- return v === void 0 && (v = 0), f.map((S) => {
3543
+ getAllColumns: w(() => [r._getColumnDefs()], (m) => {
3544
+ const d = function(p, h, v) {
3545
+ return v === void 0 && (v = 0), p.map((S) => {
3546
3546
  const R = Zo(r, S, v, h), y = S;
3547
- return R.columns = y.columns ? c(y.columns, R, v + 1) : [], R;
3547
+ return R.columns = y.columns ? d(y.columns, R, v + 1) : [], R;
3548
3548
  });
3549
3549
  };
3550
- return c(p);
3550
+ return d(m);
3551
3551
  }, x(e, "debugColumns", "getAllColumns")),
3552
- getAllFlatColumns: w(() => [r.getAllColumns()], (p) => p.flatMap((c) => c.getFlatColumns()), x(e, "debugColumns", "getAllFlatColumns")),
3553
- _getAllFlatColumnsById: w(() => [r.getAllFlatColumns()], (p) => p.reduce((c, f) => (c[f.id] = f, c), {}), x(e, "debugColumns", "getAllFlatColumnsById")),
3554
- getAllLeafColumns: w(() => [r.getAllColumns(), r._getOrderColumnsFn()], (p, c) => {
3555
- let f = p.flatMap((h) => h.getLeafColumns());
3556
- return c(f);
3552
+ getAllFlatColumns: w(() => [r.getAllColumns()], (m) => m.flatMap((d) => d.getFlatColumns()), x(e, "debugColumns", "getAllFlatColumns")),
3553
+ _getAllFlatColumnsById: w(() => [r.getAllFlatColumns()], (m) => m.reduce((d, p) => (d[p.id] = p, d), {}), x(e, "debugColumns", "getAllFlatColumnsById")),
3554
+ getAllLeafColumns: w(() => [r.getAllColumns(), r._getOrderColumnsFn()], (m, d) => {
3555
+ let p = m.flatMap((h) => h.getLeafColumns());
3556
+ return d(p);
3557
3557
  }, x(e, "debugColumns", "getAllLeafColumns")),
3558
- getColumn: (p) => {
3559
- const c = r._getAllFlatColumnsById()[p];
3560
- return process.env.NODE_ENV !== "production" && !c && console.error(`[Table] Column with id '${p}' does not exist.`), c;
3558
+ getColumn: (m) => {
3559
+ const d = r._getAllFlatColumnsById()[m];
3560
+ return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${m}' does not exist.`), d;
3561
3561
  }
3562
3562
  };
3563
- Object.assign(r, m);
3564
- for (let p = 0; p < r._features.length; p++) {
3565
- const c = r._features[p];
3566
- c == null || c.createTable == null || c.createTable(r);
3563
+ Object.assign(r, g);
3564
+ for (let m = 0; m < r._features.length; m++) {
3565
+ const d = r._features[m];
3566
+ d == null || d.createTable == null || d.createTable(r);
3567
3567
  }
3568
3568
  return r;
3569
3569
  }
@@ -3573,14 +3573,14 @@ function Rn() {
3573
3573
  rows: [],
3574
3574
  flatRows: [],
3575
3575
  rowsById: {}
3576
- }, o = function(r, i, s) {
3576
+ }, o = function(r, i, l) {
3577
3577
  i === void 0 && (i = 0);
3578
3578
  const a = [];
3579
- for (let d = 0; d < r.length; d++) {
3580
- const g = tr(e, e._getRowId(r[d], d, s), r[d], d, i, void 0, s == null ? void 0 : s.id);
3581
- if (t.flatRows.push(g), t.rowsById[g.id] = g, a.push(g), e.options.getSubRows) {
3579
+ for (let c = 0; c < r.length; c++) {
3580
+ const f = tr(e, e._getRowId(r[c], c, l), r[c], c, i, void 0, l == null ? void 0 : l.id);
3581
+ if (t.flatRows.push(f), t.rowsById[f.id] = f, a.push(f), e.options.getSubRows) {
3582
3582
  var u;
3583
- g.originalSubRows = e.options.getSubRows(r[d], d), (u = g.originalSubRows) != null && u.length && (g.subRows = o(g.originalSubRows, i + 1, g));
3583
+ f.originalSubRows = e.options.getSubRows(r[c], c), (u = f.originalSubRows) != null && u.length && (f.subRows = o(f.originalSubRows, i + 1, f));
3584
3584
  }
3585
3585
  }
3586
3586
  return a;
@@ -3608,26 +3608,26 @@ function Nr(e) {
3608
3608
  pageIndex: i
3609
3609
  } = t;
3610
3610
  let {
3611
- rows: s,
3611
+ rows: l,
3612
3612
  flatRows: a,
3613
3613
  rowsById: u
3614
3614
  } = o;
3615
- const d = r * i, g = d + r;
3616
- s = s.slice(d, g);
3617
- let m;
3618
- n.options.paginateExpandedRows ? m = {
3619
- rows: s,
3615
+ const c = r * i, f = c + r;
3616
+ l = l.slice(c, f);
3617
+ let g;
3618
+ n.options.paginateExpandedRows ? g = {
3619
+ rows: l,
3620
3620
  flatRows: a,
3621
3621
  rowsById: u
3622
- } : m = Ar({
3623
- rows: s,
3622
+ } : g = Ar({
3623
+ rows: l,
3624
3624
  flatRows: a,
3625
3625
  rowsById: u
3626
- }), m.flatRows = [];
3627
- const p = (c) => {
3628
- m.flatRows.push(c), c.subRows.length && c.subRows.forEach(p);
3626
+ }), g.flatRows = [];
3627
+ const m = (d) => {
3628
+ g.flatRows.push(d), d.subRows.length && d.subRows.forEach(m);
3629
3629
  };
3630
- return m.rows.forEach(p), m;
3630
+ return g.rows.forEach(m), g;
3631
3631
  }, x(n.options, "debugTable", "getPaginationRowModel"));
3632
3632
  }
3633
3633
  /**
@@ -3640,13 +3640,13 @@ function Nr(e) {
3640
3640
  *
3641
3641
  * @license MIT
3642
3642
  */
3643
- function kt(e, n) {
3644
- return e ? kr(e) ? /* @__PURE__ */ Xe.createElement(e, n) : e : null;
3645
- }
3646
- function kr(e) {
3647
- return Lr(e) || typeof e == "function" || Or(e);
3643
+ function Nt(e, n) {
3644
+ return e ? Lr(e) ? /* @__PURE__ */ Xe.createElement(e, n) : e : null;
3648
3645
  }
3649
3646
  function Lr(e) {
3647
+ return kr(e) || typeof e == "function" || Or(e);
3648
+ }
3649
+ function kr(e) {
3650
3650
  return typeof e == "function" && (() => {
3651
3651
  const n = Object.getPrototypeOf(e);
3652
3652
  return n.prototype && n.prototype.isReactComponent;
@@ -3676,8 +3676,8 @@ function jn(e) {
3676
3676
  },
3677
3677
  // Similarly, we'll maintain both our internal state and any user-provided
3678
3678
  // state.
3679
- onStateChange: (s) => {
3680
- r(s), e.onStateChange == null || e.onStateChange(s);
3679
+ onStateChange: (l) => {
3680
+ r(l), e.onStateChange == null || e.onStateChange(l);
3681
3681
  }
3682
3682
  })), t.current;
3683
3683
  }
@@ -3686,21 +3686,21 @@ const yn = ({
3686
3686
  reloadData: n,
3687
3687
  selectedRowKeys: t,
3688
3688
  size: o = "xs"
3689
- }) => /* @__PURE__ */ l.jsxs(O, { gap: o, children: [
3690
- (e == null ? void 0 : e.add) && /* @__PURE__ */ l.jsx(
3689
+ }) => /* @__PURE__ */ s.jsxs(O, { gap: o, children: [
3690
+ (e == null ? void 0 : e.add) && /* @__PURE__ */ s.jsx(
3691
3691
  z,
3692
3692
  {
3693
3693
  variant: "light",
3694
- leftSection: /* @__PURE__ */ l.jsx(Kn, { size: 16, stroke: 1.5 }),
3694
+ leftSection: /* @__PURE__ */ s.jsx(Kn, { size: 16, stroke: 1.5 }),
3695
3695
  size: o,
3696
3696
  onClick: e.add,
3697
3697
  children: "Add"
3698
3698
  }
3699
3699
  ),
3700
- (e == null ? void 0 : e.edit) && /* @__PURE__ */ l.jsx(
3700
+ (e == null ? void 0 : e.edit) && /* @__PURE__ */ s.jsx(
3701
3701
  z,
3702
3702
  {
3703
- leftSection: /* @__PURE__ */ l.jsx(Wn, { size: 16, stroke: 1.5 }),
3703
+ leftSection: /* @__PURE__ */ s.jsx(Wn, { size: 16, stroke: 1.5 }),
3704
3704
  size: o,
3705
3705
  variant: "light",
3706
3706
  onClick: () => e.edit !== void 0 && e.edit(t[0]),
@@ -3708,7 +3708,7 @@ const yn = ({
3708
3708
  children: "Edit"
3709
3709
  }
3710
3710
  ),
3711
- (e == null ? void 0 : e.delete) && /* @__PURE__ */ l.jsx(
3711
+ (e == null ? void 0 : e.delete) && /* @__PURE__ */ s.jsx(
3712
3712
  Ro,
3713
3713
  {
3714
3714
  title: `Delete ${t.length} item${t.length > 1 ? "s" : ""}?`,
@@ -3718,10 +3718,10 @@ const yn = ({
3718
3718
  },
3719
3719
  confirmProps: { color: "red" },
3720
3720
  disabled: t.length === 0,
3721
- children: /* @__PURE__ */ l.jsx(
3721
+ children: /* @__PURE__ */ s.jsx(
3722
3722
  z,
3723
3723
  {
3724
- leftSection: /* @__PURE__ */ l.jsx(Xn, { size: 16, stroke: 1.5 }),
3724
+ leftSection: /* @__PURE__ */ s.jsx(Xn, { size: 16, stroke: 1.5 }),
3725
3725
  size: o,
3726
3726
  variant: "light",
3727
3727
  color: "red",
@@ -3731,59 +3731,59 @@ const yn = ({
3731
3731
  )
3732
3732
  }
3733
3733
  ),
3734
- (e == null ? void 0 : e.reload) && /* @__PURE__ */ l.jsx(
3734
+ (e == null ? void 0 : e.reload) && /* @__PURE__ */ s.jsx(
3735
3735
  z,
3736
3736
  {
3737
- leftSection: /* @__PURE__ */ l.jsx(Jn, { size: 16, stroke: 1.5 }),
3737
+ leftSection: /* @__PURE__ */ s.jsx(Jn, { size: 16, stroke: 1.5 }),
3738
3738
  size: o,
3739
3739
  onClick: n,
3740
3740
  variant: "light",
3741
3741
  children: "Reload"
3742
3742
  }
3743
3743
  ),
3744
- (e == null ? void 0 : e.import) && /* @__PURE__ */ l.jsx(
3744
+ (e == null ? void 0 : e.import) && /* @__PURE__ */ s.jsx(
3745
3745
  z,
3746
3746
  {
3747
- leftSection: /* @__PURE__ */ l.jsx(Qn, { size: 16, stroke: 1.5 }),
3747
+ leftSection: /* @__PURE__ */ s.jsx(Qn, { size: 16, stroke: 1.5 }),
3748
3748
  size: o,
3749
3749
  variant: "light",
3750
3750
  onClick: e.import,
3751
3751
  children: "Import"
3752
3752
  }
3753
3753
  ),
3754
- (e == null ? void 0 : e.export) && /* @__PURE__ */ l.jsx(
3754
+ (e == null ? void 0 : e.export) && /* @__PURE__ */ s.jsx(
3755
3755
  z,
3756
3756
  {
3757
- leftSection: /* @__PURE__ */ l.jsx(Zn, { size: 16, stroke: 1.5 }),
3757
+ leftSection: /* @__PURE__ */ s.jsx(Zn, { size: 16, stroke: 1.5 }),
3758
3758
  size: o,
3759
3759
  variant: "light",
3760
3760
  onClick: e.export,
3761
3761
  children: "Export"
3762
3762
  }
3763
3763
  )
3764
- ] }), _n = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0 || e.reload === !0 || e.import !== void 0), Fn = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0), zr = "__selectcol__", { Thead: Gr, Tr: We, Th: Hr, Tbody: qr, Td: Lt } = Kt, In = (e) => {
3764
+ ] }), _n = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0 || e.reload === !0 || e.import !== void 0), Fn = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0), zr = "__selectcol__", { Thead: Gr, Tr: We, Th: Hr, Tbody: qr, Td: Lt } = Yt, In = (e) => {
3765
3765
  let n;
3766
- e.table.getRowCount() === 0 ? n = /* @__PURE__ */ l.jsx(We, { children: /* @__PURE__ */ l.jsx(Lt, { colSpan: e.table.getVisibleLeafColumns().length, children: /* @__PURE__ */ l.jsxs(Y, { justify: "center", align: "center", gap: "xs", children: [
3767
- /* @__PURE__ */ l.jsx(eo, { color: "var(--mantine-color-dimmed)" }),
3768
- /* @__PURE__ */ l.jsx(E, { c: "dimmed", fz: "sm", children: "No records found." })
3769
- ] }) }) }, "empty-row") : n = e.table.getRowModel().rows.map((i, s) => {
3770
- var u, d;
3766
+ e.table.getRowCount() === 0 ? n = /* @__PURE__ */ s.jsx(We, { children: /* @__PURE__ */ s.jsx(Lt, { colSpan: e.table.getVisibleLeafColumns().length, children: /* @__PURE__ */ s.jsxs(Y, { justify: "center", align: "center", gap: "xs", children: [
3767
+ /* @__PURE__ */ s.jsx(eo, { color: "var(--mantine-color-dimmed)" }),
3768
+ /* @__PURE__ */ s.jsx(E, { c: "dimmed", fz: "sm", children: "No records found." })
3769
+ ] }) }) }, "empty-row") : n = e.table.getRowModel().rows.map((i, l) => {
3770
+ var u, c;
3771
3771
  const a = [];
3772
- for (const g of i.getVisibleCells()) {
3773
- const m = g.column.columnDef.meta, p = (u = m == null ? void 0 : m.rowSpan) == null ? void 0 : u.call(m, i.original, s), c = (d = m == null ? void 0 : m.colSpan) == null ? void 0 : d.call(m, i.original, s);
3774
- p === 0 || c === 0 || a.push(
3775
- /* @__PURE__ */ l.jsx(
3772
+ for (const f of i.getVisibleCells()) {
3773
+ const g = f.column.columnDef.meta, m = (u = g == null ? void 0 : g.rowSpan) == null ? void 0 : u.call(g, i.original, l), d = (c = g == null ? void 0 : g.colSpan) == null ? void 0 : c.call(g, i.original, l);
3774
+ m === 0 || d === 0 || a.push(
3775
+ /* @__PURE__ */ s.jsx(
3776
3776
  Lt,
3777
3777
  {
3778
- rowSpan: p,
3779
- colSpan: c,
3780
- children: kt(g.column.columnDef.cell, g.getContext())
3778
+ rowSpan: m,
3779
+ colSpan: d,
3780
+ children: Nt(f.column.columnDef.cell, f.getContext())
3781
3781
  },
3782
- g.id
3782
+ f.id
3783
3783
  )
3784
3784
  );
3785
3785
  }
3786
- return /* @__PURE__ */ l.jsx(
3786
+ return /* @__PURE__ */ s.jsx(
3787
3787
  We,
3788
3788
  {
3789
3789
  bg: e.selectedRowKeys[i.id] ? "var(--mantine-color-blue-light)" : void 0,
@@ -3792,32 +3792,32 @@ const yn = ({
3792
3792
  i.id
3793
3793
  );
3794
3794
  });
3795
- const t = /* @__PURE__ */ l.jsxs(
3796
- Kt,
3795
+ const t = /* @__PURE__ */ s.jsxs(
3796
+ Yt,
3797
3797
  {
3798
3798
  striped: e.striped ?? !0,
3799
3799
  highlightOnHover: !0,
3800
3800
  verticalSpacing: "xs",
3801
3801
  tabularNums: !0,
3802
3802
  children: [
3803
- /* @__PURE__ */ l.jsx(Gr, { children: e.table.getHeaderGroups().map((r) => /* @__PURE__ */ l.jsx(We, { children: r.headers.map((i) => /* @__PURE__ */ l.jsx(
3803
+ /* @__PURE__ */ s.jsx(Gr, { children: e.table.getHeaderGroups().map((r) => /* @__PURE__ */ s.jsx(We, { children: r.headers.map((i) => /* @__PURE__ */ s.jsx(
3804
3804
  Hr,
3805
3805
  {
3806
3806
  w: i.id === zr ? "1%" : void 0,
3807
- children: i.isPlaceholder ? null : kt(
3807
+ children: i.isPlaceholder ? null : Nt(
3808
3808
  i.column.columnDef.header,
3809
3809
  i.getContext()
3810
3810
  )
3811
3811
  },
3812
3812
  i.id
3813
3813
  )) }, r.id)) }),
3814
- /* @__PURE__ */ l.jsx(qr, { pos: "relative", children: n })
3814
+ /* @__PURE__ */ s.jsx(qr, { pos: "relative", children: n })
3815
3815
  ]
3816
3816
  }
3817
3817
  );
3818
3818
  if (!e.bordered) return t;
3819
3819
  const o = {};
3820
- return e.hasTopSection && (o.borderTopLeftRadius = 0, o.borderTopRightRadius = 0), e.hasBottomSection && (o.borderBottomLeftRadius = 0, o.borderBottomRightRadius = 0), /* @__PURE__ */ l.jsx(ie, { withBorder: !0, p: 0, style: o, children: t });
3820
+ return e.hasTopSection && (o.borderTopLeftRadius = 0, o.borderTopRightRadius = 0), e.hasBottomSection && (o.borderBottomLeftRadius = 0, o.borderBottomRightRadius = 0), /* @__PURE__ */ s.jsx(ie, { withBorder: !0, p: 0, style: o, children: t });
3821
3821
  }, Br = "_pageSizeSelectorActive_1wv6j_1", Ur = {
3822
3822
  pageSizeSelectorActive: Br
3823
3823
  }, Yr = ["10", "20", "50", "100"], Pn = ({
@@ -3828,7 +3828,7 @@ const yn = ({
3828
3828
  pageSizeOptions: r = Yr,
3829
3829
  onUpdatePagination: i
3830
3830
  }) => {
3831
- const s = /* @__PURE__ */ l.jsx(
3831
+ const l = /* @__PURE__ */ s.jsx(
3832
3832
  Gn,
3833
3833
  {
3834
3834
  size: "sm",
@@ -3837,10 +3837,10 @@ const yn = ({
3837
3837
  onChange: (a) => i(a - 1, t)
3838
3838
  }
3839
3839
  );
3840
- return o ? /* @__PURE__ */ l.jsxs(O, { gap: "sm", children: [
3841
- /* @__PURE__ */ l.jsxs("div", { children: [
3842
- /* @__PURE__ */ l.jsx(E, { size: "sm", component: "span", pr: "xs", c: "dimmed", children: "Records per page" }),
3843
- /* @__PURE__ */ l.jsx(
3840
+ return o ? /* @__PURE__ */ s.jsxs(O, { gap: "sm", children: [
3841
+ /* @__PURE__ */ s.jsxs("div", { children: [
3842
+ /* @__PURE__ */ s.jsx(E, { size: "sm", component: "span", pr: "xs", c: "dimmed", children: "Records per page" }),
3843
+ /* @__PURE__ */ s.jsx(
3844
3844
  Kr,
3845
3845
  {
3846
3846
  size: "sm",
@@ -3852,14 +3852,14 @@ const yn = ({
3852
3852
  }
3853
3853
  )
3854
3854
  ] }),
3855
- s
3856
- ] }) : s;
3857
- }, Ot = {
3858
- xs: fe(22),
3859
- sm: fe(26),
3860
- md: fe(32),
3861
- lg: fe(38),
3862
- xl: fe(44)
3855
+ l
3856
+ ] }) : l;
3857
+ }, kt = {
3858
+ xs: ge(22),
3859
+ sm: ge(26),
3860
+ md: ge(32),
3861
+ lg: ge(38),
3862
+ xl: ge(44)
3863
3863
  };
3864
3864
  function Kr({
3865
3865
  size: e,
@@ -3867,17 +3867,17 @@ function Kr({
3867
3867
  value: t,
3868
3868
  onChange: o
3869
3869
  }) {
3870
- return /* @__PURE__ */ l.jsxs(ae, { withinPortal: !0, withArrow: !0, offset: 2, children: [
3871
- /* @__PURE__ */ l.jsx(Hn, { children: /* @__PURE__ */ l.jsx(
3870
+ return /* @__PURE__ */ s.jsxs(le, { withinPortal: !0, withArrow: !0, offset: 2, children: [
3871
+ /* @__PURE__ */ s.jsx(Hn, { children: /* @__PURE__ */ s.jsx(
3872
3872
  z,
3873
3873
  {
3874
3874
  size: e,
3875
3875
  variant: "default",
3876
- rightSection: /* @__PURE__ */ l.jsx(to, { size: 16, stroke: 1.5 }),
3876
+ rightSection: /* @__PURE__ */ s.jsx(to, { size: 16, stroke: 1.5 }),
3877
3877
  style: [
3878
3878
  { fontWeight: "normal" },
3879
3879
  (r) => ({
3880
- height: Ot[e],
3880
+ height: kt[e],
3881
3881
  paddingLeft: r.spacing[e],
3882
3882
  paddingRight: r.spacing[e]
3883
3883
  })
@@ -3890,14 +3890,14 @@ function Kr({
3890
3890
  children: t
3891
3891
  }
3892
3892
  ) }),
3893
- /* @__PURE__ */ l.jsx(qn, { children: n.map((r) => {
3893
+ /* @__PURE__ */ s.jsx(qn, { children: n.map((r) => {
3894
3894
  const i = r === t;
3895
- return /* @__PURE__ */ l.jsx(
3895
+ return /* @__PURE__ */ s.jsx(
3896
3896
  Bn,
3897
3897
  {
3898
3898
  className: i ? Ur.pageSizeSelectorActive : void 0,
3899
3899
  style: [
3900
- { height: Ot[e] }
3900
+ { height: kt[e] }
3901
3901
  // isCurrent
3902
3902
  // ? {
3903
3903
  // color: "var(--mantine-color-text)",
@@ -3908,7 +3908,7 @@ function Kr({
3908
3908
  ],
3909
3909
  disabled: i,
3910
3910
  onClick: () => o(r),
3911
- children: /* @__PURE__ */ l.jsx(E, { component: "div", size: e, children: r })
3911
+ children: /* @__PURE__ */ s.jsx(E, { component: "div", size: e, children: r })
3912
3912
  },
3913
3913
  r
3914
3914
  );
@@ -3920,72 +3920,72 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
3920
3920
  const [n, t] = M({
3921
3921
  records: [],
3922
3922
  total: 0
3923
- }), [o, r] = M(!1), [i, s] = M(
3923
+ }), [o, r] = M(!1), [i, l] = M(
3924
3924
  {}
3925
3925
  ), a = (P) => {
3926
- r(!0), e.getData(P).then((k) => {
3927
- t(k), r(!1);
3926
+ r(!0), e.getData(P).then((L) => {
3927
+ t(L), r(!1);
3928
3928
  });
3929
- }, u = (P, k) => {
3929
+ }, u = (P, L) => {
3930
3930
  const F = {
3931
3931
  ...e.query.query,
3932
- limit: k,
3933
- offset: P * k
3932
+ limit: L,
3933
+ offset: P * L
3934
3934
  };
3935
3935
  e.query.update(F);
3936
- }, [d, g, m] = _(() => {
3937
- const P = e.query.query.limit, k = Math.floor(
3936
+ }, [c, f, g] = _(() => {
3937
+ const P = e.query.query.limit, L = Math.floor(
3938
3938
  (e.query.query.offset || 0) / e.query.query.limit
3939
3939
  ), F = Math.ceil(n.total / e.query.query.limit);
3940
- return [P, k, F];
3940
+ return [P, L, F];
3941
3941
  }, [e.query.query.limit, e.query.query.offset, n.total]);
3942
3942
  Ve(() => (n.total == 0 && a(e.query.query), e.query.subscribe(a)), [e.query]);
3943
- const p = _(() => Object.keys(i).filter((P) => i[P]).map((P) => e.normalizeRowId(P)), [i]);
3944
- let c, f;
3945
- _n(e.actions) && (c = /* @__PURE__ */ l.jsx(
3943
+ const m = _(() => Object.keys(i).filter((P) => i[P]).map((P) => e.normalizeRowId(P)), [i]);
3944
+ let d, p;
3945
+ _n(e.actions) && (d = /* @__PURE__ */ s.jsx(
3946
3946
  yn,
3947
3947
  {
3948
3948
  actions: e.actions,
3949
3949
  reloadData: () => a(e.query.query),
3950
- selectedRowKeys: p
3950
+ selectedRowKeys: m
3951
3951
  }
3952
3952
  ));
3953
3953
  const h = ((S = e.pagination) == null ? void 0 : S.positions) || Wr;
3954
3954
  if (h.size > 0) {
3955
- const P = /* @__PURE__ */ l.jsx(
3955
+ const P = /* @__PURE__ */ s.jsx(
3956
3956
  Pn,
3957
3957
  {
3958
- total: m,
3959
- pageIndex: g,
3960
- pageSize: d,
3958
+ total: g,
3959
+ pageIndex: f,
3960
+ pageSize: c,
3961
3961
  onUpdatePagination: u,
3962
3962
  allowPageSizeChange: (R = e.pagination) == null ? void 0 : R.showSizeChanger,
3963
- pageSizeOptions: (I = (y = e.pagination) == null ? void 0 : y.pageSizeOptions) == null ? void 0 : I.map((k) => k.toString())
3963
+ pageSizeOptions: (I = (y = e.pagination) == null ? void 0 : y.pageSizeOptions) == null ? void 0 : I.map((L) => L.toString())
3964
3964
  }
3965
3965
  );
3966
- h.has("topRight") && (c !== void 0 ? c = /* @__PURE__ */ l.jsxs(O, { justify: "space-between", gap: "sm", children: [
3967
- c,
3966
+ h.has("topRight") && (d !== void 0 ? d = /* @__PURE__ */ s.jsxs(O, { justify: "space-between", gap: "sm", children: [
3967
+ d,
3968
3968
  P
3969
- ] }) : c = /* @__PURE__ */ l.jsx(B, { justify: "flex-end", children: P })), (h.has("bottomRight") || h.has("bottomLeft") || h.has("bottomCenter")) && (h.has("bottomLeft") ? f = /* @__PURE__ */ l.jsxs(B, { justify: "space-between", align: "center", children: [
3969
+ ] }) : d = /* @__PURE__ */ s.jsx(B, { justify: "flex-end", children: P })), (h.has("bottomRight") || h.has("bottomLeft") || h.has("bottomCenter")) && (h.has("bottomLeft") ? p = /* @__PURE__ */ s.jsxs(B, { justify: "space-between", align: "center", children: [
3970
3970
  P,
3971
- /* @__PURE__ */ l.jsxs(E, { size: "sm", c: "dimmed", children: [
3971
+ /* @__PURE__ */ s.jsxs(E, { size: "sm", c: "dimmed", children: [
3972
3972
  "Showing ",
3973
- Math.min(g * d + 1, n.total),
3973
+ Math.min(f * c + 1, n.total),
3974
3974
  " to",
3975
3975
  " ",
3976
- Math.min((g + 1) * d, n.total),
3976
+ Math.min((f + 1) * c, n.total),
3977
3977
  " of ",
3978
3978
  n.total,
3979
3979
  " ",
3980
3980
  "records"
3981
3981
  ] })
3982
- ] }) : f = /* @__PURE__ */ l.jsxs(B, { justify: "space-between", align: "center", children: [
3983
- /* @__PURE__ */ l.jsxs(E, { size: "sm", c: "dimmed", children: [
3982
+ ] }) : p = /* @__PURE__ */ s.jsxs(B, { justify: "space-between", align: "center", children: [
3983
+ /* @__PURE__ */ s.jsxs(E, { size: "sm", c: "dimmed", children: [
3984
3984
  "Showing ",
3985
- Math.min(g * d + 1, n.total),
3985
+ Math.min(f * c + 1, n.total),
3986
3986
  " to",
3987
3987
  " ",
3988
- Math.min((g + 1) * d, n.total),
3988
+ Math.min((f + 1) * c, n.total),
3989
3989
  " of ",
3990
3990
  n.total,
3991
3991
  " ",
@@ -3996,7 +3996,7 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
3996
3996
  }
3997
3997
  const v = _(() => {
3998
3998
  const P = e.selectable ?? Fn(e.actions);
3999
- return /* @__PURE__ */ l.jsx(
3999
+ return /* @__PURE__ */ s.jsx(
4000
4000
  Xr,
4001
4001
  {
4002
4002
  data: n,
@@ -4005,9 +4005,9 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4005
4005
  isSelectable: P,
4006
4006
  getRowId: e.getRowId,
4007
4007
  selectedRowKeys: i,
4008
- setSelectedRowKeys: s,
4009
- hasTopSection: c !== void 0,
4010
- hasBottomSection: f !== void 0
4008
+ setSelectedRowKeys: l,
4009
+ hasTopSection: d !== void 0,
4010
+ hasBottomSection: p !== void 0
4011
4011
  }
4012
4012
  );
4013
4013
  }, [
@@ -4017,12 +4017,12 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4017
4017
  e.selectable,
4018
4018
  e.getRowId,
4019
4019
  i,
4020
- s,
4021
- c !== void 0,
4022
- f !== void 0
4020
+ l,
4021
+ d !== void 0,
4022
+ p !== void 0
4023
4023
  ]);
4024
- return c === void 0 || f === void 0 ? v : /* @__PURE__ */ l.jsxs("div", { children: [
4025
- c !== void 0 && /* @__PURE__ */ l.jsx(
4024
+ return d === void 0 || p === void 0 ? v : /* @__PURE__ */ s.jsxs("div", { children: [
4025
+ d !== void 0 && /* @__PURE__ */ s.jsx(
4026
4026
  ie,
4027
4027
  {
4028
4028
  withBorder: !0,
@@ -4032,11 +4032,11 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4032
4032
  borderBottomRightRadius: 0,
4033
4033
  borderBottom: "none"
4034
4034
  },
4035
- children: c
4035
+ children: d
4036
4036
  }
4037
4037
  ),
4038
4038
  v,
4039
- f !== void 0 && /* @__PURE__ */ l.jsx(
4039
+ p !== void 0 && /* @__PURE__ */ s.jsx(
4040
4040
  ie,
4041
4041
  {
4042
4042
  withBorder: !0,
@@ -4046,7 +4046,7 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4046
4046
  borderTopRightRadius: 0,
4047
4047
  borderTop: "none"
4048
4048
  },
4049
- children: f
4049
+ children: p
4050
4050
  }
4051
4051
  )
4052
4052
  ] });
@@ -4055,16 +4055,16 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4055
4055
  const o = [];
4056
4056
  e.isSelectable && o.push({
4057
4057
  id: "selection",
4058
- header: ({ table: r }) => /* @__PURE__ */ l.jsx(
4059
- ce,
4058
+ header: ({ table: r }) => /* @__PURE__ */ s.jsx(
4059
+ de,
4060
4060
  {
4061
4061
  checked: r.getIsAllRowsSelected(),
4062
4062
  indeterminate: r.getIsSomeRowsSelected(),
4063
4063
  onChange: r.getToggleAllRowsSelectedHandler()
4064
4064
  }
4065
4065
  ),
4066
- cell: ({ row: r }) => /* @__PURE__ */ l.jsx(
4067
- ce,
4066
+ cell: ({ row: r }) => /* @__PURE__ */ s.jsx(
4067
+ de,
4068
4068
  {
4069
4069
  checked: r.getIsSelected(),
4070
4070
  disabled: !r.getCanSelect(),
@@ -4093,7 +4093,7 @@ const Wr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), qi = (e) => {
4093
4093
  onRowSelectionChange: e.setSelectedRowKeys,
4094
4094
  manualPagination: !0
4095
4095
  });
4096
- return /* @__PURE__ */ l.jsx(
4096
+ return /* @__PURE__ */ s.jsx(
4097
4097
  In,
4098
4098
  {
4099
4099
  table: t,
@@ -4109,94 +4109,73 @@ function En(e, n, {
4109
4109
  nestedKey: o,
4110
4110
  component: r,
4111
4111
  rowSpan: i,
4112
- colSpan: s
4112
+ colSpan: l
4113
4113
  } = {}) {
4114
- let a;
4114
+ const a = dt(n), u = a ? n.leafProperty : n;
4115
+ let c;
4115
4116
  if (r !== void 0)
4116
- a = r;
4117
- else if (se(n))
4118
- n.cardinality === "1:N" || n.cardinality === "N:N" ? a = mt : a = ft;
4117
+ c = r;
4118
+ else if (ce(u))
4119
+ u.cardinality === "1:N" || u.cardinality === "N:N" ? c = rn : c = on;
4119
4120
  else {
4120
- if (ge[n.datatype] === void 0)
4121
+ if (Me[u.datatype] === void 0)
4121
4122
  throw new Error(
4122
- `No display component found for datatype ${n.datatype}`
4123
+ `No display component found for datatype ${u.datatype}`
4123
4124
  );
4124
- a = ge[n.datatype];
4125
+ c = Me[u.datatype];
4125
4126
  }
4126
- const u = {
4127
- key: n.name,
4128
- title: t || /* @__PURE__ */ l.jsx(b, { value: n.label }),
4129
- accessorFn: (d) => d[n.tsName],
4130
- render: (d) => {
4131
- const g = d[n.tsName];
4132
- return /* @__PURE__ */ l.jsx(a, { db: e, property: n, value: g });
4127
+ const f = {
4128
+ key: a ? n.allProperties.map((g) => g.tsName).join(".") : n.name,
4129
+ title: t || /* @__PURE__ */ s.jsx(V, { value: u.label }),
4130
+ accessorFn: a ? (g) => n.getValue(g) : (g) => g[n.tsName],
4131
+ render: a ? (g) => {
4132
+ const m = n.getValue(g);
4133
+ return /* @__PURE__ */ s.jsx(c, { db: e, property: u, value: m });
4134
+ } : (g) => {
4135
+ const m = g[n.tsName];
4136
+ return /* @__PURE__ */ s.jsx(c, { db: e, property: u, value: m });
4133
4137
  },
4134
4138
  rowSpan: i,
4135
- colSpan: s
4139
+ colSpan: l
4136
4140
  };
4137
- return o !== void 0 && (u.accessorFn = (d) => d[o][n.tsName], u.render = (d) => {
4138
- const g = d[o][n.tsName];
4139
- return /* @__PURE__ */ l.jsx(a, { db: e, property: n, value: g });
4140
- }), u;
4141
+ return o !== void 0 && (f.accessorFn = a ? (g) => {
4142
+ const m = g[o];
4143
+ return n.getValue(m);
4144
+ } : (g) => g[o][n.tsName], f.render = a ? (g) => {
4145
+ const m = g[o], d = n.getValue(m);
4146
+ return /* @__PURE__ */ s.jsx(c, { db: e, property: u, value: d });
4147
+ } : (g) => {
4148
+ const d = g[o][n.tsName];
4149
+ return /* @__PURE__ */ s.jsx(c, { db: e, property: u, value: d });
4150
+ }), f;
4141
4151
  }
4142
- function Bi(e, n, t, {
4143
- title: o,
4144
- nestedKey: r,
4145
- component: i
4146
- } = {}) {
4147
- let s;
4148
- if (i !== void 0)
4149
- s = i;
4150
- else if (se(t))
4151
- t.cardinality === "1:N" || t.cardinality === "N:N" ? s = mt : s = ft;
4152
- else {
4153
- if (ge[t.datatype] === void 0)
4154
- throw new Error(
4155
- `No display component found for datatype ${t.datatype}`
4156
- );
4157
- s = ge[t.datatype];
4158
- }
4159
- const a = {
4160
- key: n + "." + t.name,
4161
- title: o || /* @__PURE__ */ l.jsx(b, { value: t.label }),
4162
- accessorFn: (u) => u[n.tsName][t.tsName],
4163
- render: (u) => {
4164
- const d = u[n.tsName][t.tsName];
4165
- return /* @__PURE__ */ l.jsx(s, { db: e, property: t, value: d });
4166
- }
4167
- };
4168
- return r !== void 0 && (a.accessorFn = (u) => u[r][n.tsName][t.tsName], a.render = (u) => {
4169
- const d = u[r][n.tsName][t.tsName];
4170
- return /* @__PURE__ */ l.jsx(s, { db: e, property: t, value: d });
4171
- }), a;
4172
- }
4173
- function Ui(e, n, t, o = {}) {
4152
+ function Bi(e, n, t, o = {}) {
4174
4153
  return t.map((r) => $n(r) ? r : En(e, n.publicProperties[r], o));
4175
4154
  }
4176
- function Yi(e, n, t = [], o = {}) {
4155
+ function Ui(e, n, t = [], o = {}) {
4177
4156
  return t.map((r) => $n(r) ? r : En(e, n.publicProperties[r], o));
4178
4157
  }
4179
4158
  function $n(e) {
4180
4159
  return typeof e == "object" && "key" in e && "title" in e;
4181
4160
  }
4182
- const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4183
- var m, p, c, f, h;
4161
+ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Yi = (e) => {
4162
+ var g, m, d, p, h;
4184
4163
  const [n, t] = M(
4185
4164
  {}
4186
4165
  ), o = e.selectable ?? Fn(e.actions), r = _(() => {
4187
4166
  const v = [];
4188
4167
  o && v.push({
4189
4168
  id: "selection",
4190
- header: ({ table: S }) => /* @__PURE__ */ l.jsx(
4191
- ce,
4169
+ header: ({ table: S }) => /* @__PURE__ */ s.jsx(
4170
+ de,
4192
4171
  {
4193
4172
  checked: S.getIsAllRowsSelected(),
4194
4173
  indeterminate: S.getIsSomeRowsSelected(),
4195
4174
  onChange: S.getToggleAllRowsSelectedHandler()
4196
4175
  }
4197
4176
  ),
4198
- cell: ({ row: S }) => /* @__PURE__ */ l.jsx(
4199
- ce,
4177
+ cell: ({ row: S }) => /* @__PURE__ */ s.jsx(
4178
+ de,
4200
4179
  {
4201
4180
  checked: S.getIsSelected(),
4202
4181
  disabled: !S.getCanSelect(),
@@ -4224,7 +4203,7 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4224
4203
  getPaginationRowModel: Nr(),
4225
4204
  initialState: {
4226
4205
  pagination: {
4227
- pageSize: ((m = e.pagination) == null ? void 0 : m.pageSize) ?? 10,
4206
+ pageSize: ((g = e.pagination) == null ? void 0 : g.pageSize) ?? 10,
4228
4207
  pageIndex: 0
4229
4208
  }
4230
4209
  },
@@ -4232,34 +4211,34 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4232
4211
  rowSelection: n
4233
4212
  },
4234
4213
  onRowSelectionChange: t
4235
- }), s = _(() => Object.keys(n).filter((v) => n[v]).map(Number), [n]);
4214
+ }), l = _(() => Object.keys(n).filter((v) => n[v]).map(Number), [n]);
4236
4215
  let a, u;
4237
- _n(e.actions) && (a = /* @__PURE__ */ l.jsx(
4216
+ _n(e.actions) && (a = /* @__PURE__ */ s.jsx(
4238
4217
  yn,
4239
4218
  {
4240
4219
  actions: e.actions,
4241
- selectedRowKeys: s
4220
+ selectedRowKeys: l
4242
4221
  }
4243
4222
  ));
4244
- const d = ((p = e.pagination) == null ? void 0 : p.positions) || Jr;
4245
- if (d.size > 0) {
4246
- const v = i.getState().pagination, S = /* @__PURE__ */ l.jsx(
4223
+ const c = ((m = e.pagination) == null ? void 0 : m.positions) || Jr;
4224
+ if (c.size > 0) {
4225
+ const v = i.getState().pagination, S = /* @__PURE__ */ s.jsx(
4247
4226
  Pn,
4248
4227
  {
4249
4228
  total: i.getPageCount(),
4250
4229
  pageIndex: v.pageIndex,
4251
4230
  pageSize: v.pageSize,
4252
4231
  onUpdatePagination: (R, y) => i.setPagination({ pageIndex: R, pageSize: y }),
4253
- allowPageSizeChange: (c = e.pagination) == null ? void 0 : c.showSizeChanger,
4254
- pageSizeOptions: (h = (f = e.pagination) == null ? void 0 : f.pageSizeOptions) == null ? void 0 : h.map((R) => R.toString())
4232
+ allowPageSizeChange: (d = e.pagination) == null ? void 0 : d.showSizeChanger,
4233
+ pageSizeOptions: (h = (p = e.pagination) == null ? void 0 : p.pageSizeOptions) == null ? void 0 : h.map((R) => R.toString())
4255
4234
  }
4256
4235
  );
4257
- d.has("topRight") && (a !== void 0 ? a = /* @__PURE__ */ l.jsxs(O, { justify: "space-between", gap: "sm", children: [
4236
+ c.has("topRight") && (a !== void 0 ? a = /* @__PURE__ */ s.jsxs(O, { justify: "space-between", gap: "sm", children: [
4258
4237
  a,
4259
4238
  S
4260
- ] }) : a = /* @__PURE__ */ l.jsx(B, { justify: "flex-end", children: S })), (d.has("bottomRight") || d.has("bottomLeft") || d.has("bottomCenter")) && (d.has("bottomLeft") ? u = /* @__PURE__ */ l.jsxs(B, { justify: "space-between", align: "center", children: [
4239
+ ] }) : a = /* @__PURE__ */ s.jsx(B, { justify: "flex-end", children: S })), (c.has("bottomRight") || c.has("bottomLeft") || c.has("bottomCenter")) && (c.has("bottomLeft") ? u = /* @__PURE__ */ s.jsxs(B, { justify: "space-between", align: "center", children: [
4261
4240
  S,
4262
- /* @__PURE__ */ l.jsxs(E, { size: "sm", c: "dimmed", children: [
4241
+ /* @__PURE__ */ s.jsxs(E, { size: "sm", c: "dimmed", children: [
4263
4242
  "Showing ",
4264
4243
  v.pageIndex * v.pageSize + 1,
4265
4244
  " to",
@@ -4273,8 +4252,8 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4273
4252
  e.data.length,
4274
4253
  " records"
4275
4254
  ] })
4276
- ] }) : u = /* @__PURE__ */ l.jsxs(B, { justify: "space-between", align: "center", children: [
4277
- /* @__PURE__ */ l.jsxs(E, { size: "sm", c: "dimmed", children: [
4255
+ ] }) : u = /* @__PURE__ */ s.jsxs(B, { justify: "space-between", align: "center", children: [
4256
+ /* @__PURE__ */ s.jsxs(E, { size: "sm", c: "dimmed", children: [
4278
4257
  "Showing ",
4279
4258
  v.pageIndex * v.pageSize + 1,
4280
4259
  " to",
@@ -4291,7 +4270,7 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4291
4270
  S
4292
4271
  ] }));
4293
4272
  }
4294
- const g = /* @__PURE__ */ l.jsx(
4273
+ const f = /* @__PURE__ */ s.jsx(
4295
4274
  In,
4296
4275
  {
4297
4276
  selectedRowKeys: n,
@@ -4302,8 +4281,8 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4302
4281
  striped: e.striped
4303
4282
  }
4304
4283
  );
4305
- return a === void 0 && u === void 0 ? g : /* @__PURE__ */ l.jsxs("div", { children: [
4306
- a !== void 0 && /* @__PURE__ */ l.jsx(
4284
+ return a === void 0 && u === void 0 ? f : /* @__PURE__ */ s.jsxs("div", { children: [
4285
+ a !== void 0 && /* @__PURE__ */ s.jsx(
4307
4286
  ie,
4308
4287
  {
4309
4288
  withBorder: !0,
@@ -4316,8 +4295,8 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4316
4295
  children: a
4317
4296
  }
4318
4297
  ),
4319
- g,
4320
- u !== void 0 && /* @__PURE__ */ l.jsx(
4298
+ f,
4299
+ u !== void 0 && /* @__PURE__ */ s.jsx(
4321
4300
  ie,
4322
4301
  {
4323
4302
  withBorder: !0,
@@ -4331,13 +4310,13 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4331
4310
  }
4332
4311
  )
4333
4312
  ] });
4334
- }, zt = {
4335
- integer: be,
4336
- float: be,
4337
- string: ve,
4313
+ }, Ot = {
4314
+ integer: De,
4315
+ float: De,
4316
+ string: Se,
4338
4317
  boolean: sn,
4339
- "string[]": ve,
4340
- enum: ve,
4318
+ "string[]": Se,
4319
+ enum: Se,
4341
4320
  date: zo,
4342
4321
  datetime: Go
4343
4322
  }, Qr = {
@@ -4359,27 +4338,27 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4359
4338
  layout: o,
4360
4339
  validator: r,
4361
4340
  value: i,
4362
- onChange: s
4341
+ onChange: l
4363
4342
  }) => {
4364
4343
  if (t === void 0)
4365
- if (se(n)) {
4344
+ if (ce(n)) {
4366
4345
  if (n.isEmbedded)
4367
4346
  throw new Error("You should use nested property for embedded object");
4368
4347
  t = n.cardinality === "N:N" || n.cardinality === "1:N" ? an : ln;
4369
4348
  } else {
4370
- if (zt[n.datatype] === void 0)
4349
+ if (Ot[n.datatype] === void 0)
4371
4350
  throw new Error(
4372
4351
  `No input component found for datatype ${n.datatype}`
4373
4352
  );
4374
- t = zt[n.datatype];
4353
+ t = Ot[n.datatype];
4375
4354
  }
4376
4355
  const a = _(() => {
4377
- var d;
4378
- return r === void 0 || (d = r(i).errorMessage) == null ? void 0 : d.t({ args: { name: n.label } });
4356
+ var c;
4357
+ return r === void 0 || (c = r(i).errorMessage) == null ? void 0 : c.t({ args: { name: n.label } });
4379
4358
  }, [r, i, n.label]);
4380
- return /* @__PURE__ */ l.jsxs(Y, { gap: 5, children: [
4381
- /* @__PURE__ */ l.jsxs(N, { gutter: "sm", children: [
4382
- /* @__PURE__ */ l.jsx(
4359
+ return /* @__PURE__ */ s.jsxs(Y, { gap: 5, children: [
4360
+ /* @__PURE__ */ s.jsxs(N, { gutter: "sm", children: [
4361
+ /* @__PURE__ */ s.jsx(
4383
4362
  N.Col,
4384
4363
  {
4385
4364
  span: o.labelCol,
@@ -4387,31 +4366,31 @@ const Jr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Ki = (e) => {
4387
4366
  display: "flex",
4388
4367
  justifyContent: o.align || "left"
4389
4368
  },
4390
- children: /* @__PURE__ */ l.jsx(
4369
+ children: /* @__PURE__ */ s.jsx(
4391
4370
  un,
4392
4371
  {
4393
- label: /* @__PURE__ */ l.jsx(b, { value: n.label }),
4372
+ label: /* @__PURE__ */ s.jsx(V, { value: n.label }),
4394
4373
  name: n.name,
4395
4374
  required: n.isRequired,
4396
- tooltip: n.description !== void 0 ? /* @__PURE__ */ l.jsx(b, { value: n.description }) : void 0,
4375
+ tooltip: n.description !== void 0 ? /* @__PURE__ */ s.jsx(V, { value: n.description }) : void 0,
4397
4376
  align: o.align
4398
4377
  }
4399
4378
  )
4400
4379
  }
4401
4380
  ),
4402
- /* @__PURE__ */ l.jsx(N.Col, { span: o.itemCol, children: /* @__PURE__ */ l.jsx(
4381
+ /* @__PURE__ */ s.jsx(N.Col, { span: o.itemCol, children: /* @__PURE__ */ s.jsx(
4403
4382
  t,
4404
4383
  {
4405
4384
  db: e,
4406
4385
  property: n,
4407
4386
  value: i,
4408
- onChange: s
4387
+ onChange: l
4409
4388
  }
4410
4389
  ) })
4411
4390
  ] }),
4412
- a !== void 0 && /* @__PURE__ */ l.jsxs(N, { gutter: "sm", children: [
4413
- /* @__PURE__ */ l.jsx(N.Col, { span: o.labelCol }),
4414
- /* @__PURE__ */ l.jsx(N.Col, { span: o.itemCol, children: /* @__PURE__ */ l.jsx(J.Error, { children: a }) })
4391
+ a !== void 0 && /* @__PURE__ */ s.jsxs(N, { gutter: "sm", children: [
4392
+ /* @__PURE__ */ s.jsx(N.Col, { span: o.labelCol }),
4393
+ /* @__PURE__ */ s.jsx(N.Col, { span: o.itemCol, children: /* @__PURE__ */ s.jsx(J.Error, { children: a }) })
4415
4394
  ] })
4416
4395
  ] });
4417
4396
  };
@@ -4421,7 +4400,7 @@ function ti({
4421
4400
  }) {
4422
4401
  return e.reduce((t, o) => n[o.property.tsName] === void 0 ? t : t + 1, 0);
4423
4402
  }
4424
- const ni = (e, n) => on(e, n, !1);
4403
+ const ni = (e, n) => tn(e, n, !1);
4425
4404
  function oi({
4426
4405
  properties: e,
4427
4406
  queryConditions: n
@@ -4431,10 +4410,10 @@ function oi({
4431
4410
  const i = n[r.property.tsName];
4432
4411
  if (i !== void 0)
4433
4412
  if (o.length > 0 && o.push(" & "), r.property.datatype === "date" || r.property.datatype === "datetime") {
4434
- const s = r.property.datatype === "date" ? we : ni;
4435
- i.op === "bti" ? (o.push(s(t, Z(i.value[0]).toDate())), o.push(" ≤ "), o.push(Se(t, r.property.label)), o.push(" ≤ "), o.push(s(t, Z(i.value[1]).toDate()))) : i.op === "gte" ? (o.push(Se(t, r.property.label)), o.push(" ≥ "), o.push(s(t, Z(i.value).toDate()))) : i.op === "lte" && (o.push(Se(t, r.property.label)), o.push(" ≤ "), o.push(s(t, Z(i.value).toDate())));
4413
+ const l = r.property.datatype === "date" ? Ce : ni;
4414
+ i.op === "bti" ? (o.push(l(t, Z(i.value[0]).toDate())), o.push(" ≤ "), o.push(he(t, r.property.label)), o.push(" ≤ "), o.push(l(t, Z(i.value[1]).toDate()))) : i.op === "gte" ? (o.push(he(t, r.property.label)), o.push(" ≥ "), o.push(l(t, Z(i.value).toDate()))) : i.op === "lte" && (o.push(he(t, r.property.label)), o.push(" ≤ "), o.push(l(t, Z(i.value).toDate())));
4436
4415
  } else
4437
- o.push(Se(t, r.property.label)), i.op === "eq" ? o.push(" = ") : o.push(` ${i.op} `), o.push(i.value.toString());
4416
+ o.push(he(t, r.property.label)), i.op === "eq" ? o.push(" = ") : o.push(` ${i.op} `), o.push(i.value.toString());
4438
4417
  }
4439
4418
  return o.join("");
4440
4419
  }
@@ -4445,38 +4424,38 @@ const ri = ({
4445
4424
  className: o,
4446
4425
  layout: r,
4447
4426
  onChange: i,
4448
- queryConditions: s
4427
+ queryConditions: l
4449
4428
  }) => {
4450
4429
  const [a, u] = M({});
4451
4430
  Ve(() => {
4452
- const f = {};
4431
+ const p = {};
4453
4432
  for (const h of n) {
4454
- const v = s[h.property.tsName];
4455
- v !== void 0 && (h.property.datatype === "date" || h.property.datatype === "datetime" ? v.op === "bti" ? f[h.property.tsName] = {
4433
+ const v = l[h.property.tsName];
4434
+ v !== void 0 && (h.property.datatype === "date" || h.property.datatype === "datetime" ? v.op === "bti" ? p[h.property.tsName] = {
4456
4435
  start: v.value[0] ? new Date(v.value[0]) : void 0,
4457
4436
  end: v.value[1] ? new Date(v.value[1]) : void 0
4458
- } : v.op === "gte" ? f[h.property.tsName] = {
4437
+ } : v.op === "gte" ? p[h.property.tsName] = {
4459
4438
  start: v.value ? new Date(v.value) : void 0,
4460
4439
  end: void 0
4461
- } : v.op === "lte" && (f[h.property.tsName] = {
4440
+ } : v.op === "lte" && (p[h.property.tsName] = {
4462
4441
  start: void 0,
4463
4442
  end: v.value ? new Date(v.value) : void 0
4464
- }) : f[h.property.tsName] = v.value);
4443
+ }) : p[h.property.tsName] = v.value);
4465
4444
  }
4466
- u(f);
4467
- }, [n, s]);
4468
- const [d, g, m] = _(() => {
4469
- const f = [], h = {}, v = {};
4445
+ u(p);
4446
+ }, [n, l]);
4447
+ const [c, f, g] = _(() => {
4448
+ const p = [], h = {}, v = {};
4470
4449
  for (const S of n) {
4471
4450
  let R, y = (I) => {
4472
- if (!It.isEmpty(I))
4451
+ if (!Ft.isEmpty(I))
4473
4452
  return { op: "eq", value: I };
4474
4453
  };
4475
- (S.property.datatype === "date" || S.property.datatype === "datetime") && (R = It.validateTimeRange, y = (I) => I.start !== void 0 && I.end !== void 0 ? {
4454
+ (S.property.datatype === "date" || S.property.datatype === "datetime") && (R = Ft.validateTimeRange, y = (I) => I.start !== void 0 && I.end !== void 0 ? {
4476
4455
  op: "bti",
4477
4456
  value: [I.start.toISOString(), I.end.toISOString()]
4478
- } : I.start !== void 0 ? { op: "gte", value: I.start.toISOString() } : I.end !== void 0 ? { op: "lte", value: I.end.toISOString() } : void 0), h[S.property.tsName] = y, v[S.property.tsName] = R, f.push(
4479
- /* @__PURE__ */ l.jsx(
4457
+ } : I.start !== void 0 ? { op: "gte", value: I.start.toISOString() } : I.end !== void 0 ? { op: "lte", value: I.end.toISOString() } : void 0), h[S.property.tsName] = y, v[S.property.tsName] = R, p.push(
4458
+ /* @__PURE__ */ s.jsx(
4480
4459
  ei,
4481
4460
  {
4482
4461
  db: e,
@@ -4493,58 +4472,58 @@ const ri = ({
4493
4472
  )
4494
4473
  );
4495
4474
  }
4496
- return [f, h, v];
4497
- }, [n, a, u]), p = (f) => {
4475
+ return [p, h, v];
4476
+ }, [n, a, u]), m = (p) => {
4498
4477
  const h = {};
4499
4478
  for (const v of n) {
4500
- if (f[v.property.tsName] === void 0) continue;
4501
- const S = g[v.property.tsName](f[v.property.tsName]);
4479
+ if (p[v.property.tsName] === void 0) continue;
4480
+ const S = f[v.property.tsName](p[v.property.tsName]);
4502
4481
  S !== void 0 && (h[v.property.tsName] = S);
4503
4482
  }
4504
4483
  i(h);
4505
- }, c = _(() => (f) => {
4484
+ }, d = _(() => (p) => {
4506
4485
  for (const h of n) {
4507
- const v = m[h.property.tsName];
4508
- if (v !== void 0 && !v(f[h.property.tsName]).isValid)
4486
+ const v = g[h.property.tsName];
4487
+ if (v !== void 0 && !v(p[h.property.tsName]).isValid)
4509
4488
  return !1;
4510
4489
  }
4511
4490
  return !0;
4512
- }, [n, m]);
4513
- return /* @__PURE__ */ l.jsxs(Y, { gap: "sm", className: o, style: t, children: [
4514
- d,
4515
- /* @__PURE__ */ l.jsxs(O, { gap: "sm", justify: "flex-end", children: [
4516
- /* @__PURE__ */ l.jsx(
4491
+ }, [n, g]);
4492
+ return /* @__PURE__ */ s.jsxs(Y, { gap: "sm", className: o, style: t, children: [
4493
+ c,
4494
+ /* @__PURE__ */ s.jsxs(O, { gap: "sm", justify: "flex-end", children: [
4495
+ /* @__PURE__ */ s.jsx(
4517
4496
  z,
4518
4497
  {
4519
4498
  variant: "light",
4520
4499
  size: "xs",
4521
4500
  color: "gray",
4522
4501
  onClick: () => {
4523
- u({}), p({});
4502
+ u({}), m({});
4524
4503
  },
4525
4504
  disabled: Object.keys(a).length === 0,
4526
- children: /* @__PURE__ */ l.jsx(b, { value: Zr })
4505
+ children: /* @__PURE__ */ s.jsx(V, { value: Zr })
4527
4506
  }
4528
4507
  ),
4529
- /* @__PURE__ */ l.jsx(
4508
+ /* @__PURE__ */ s.jsx(
4530
4509
  z,
4531
4510
  {
4532
4511
  variant: "light",
4533
4512
  size: "xs",
4534
- onClick: () => p(a),
4535
- disabled: !c(a),
4536
- children: /* @__PURE__ */ l.jsx(b, { value: Qr })
4513
+ onClick: () => m(a),
4514
+ disabled: !d(a),
4515
+ children: /* @__PURE__ */ s.jsx(V, { value: Qr })
4537
4516
  }
4538
4517
  )
4539
4518
  ] })
4540
4519
  ] });
4541
- }, Gt = /* @__PURE__ */ l.jsx(ro, { size: 16, stroke: 1.5 }), Ht = /* @__PURE__ */ l.jsx(ut, { size: 16, stroke: 1.5 }), ii = {
4520
+ }, zt = /* @__PURE__ */ s.jsx(ro, { size: 16, stroke: 1.5 }), Gt = /* @__PURE__ */ s.jsx(ut, { size: 16, stroke: 1.5 }), ii = {
4542
4521
  lang2value: {
4543
4522
  en: "Search By",
4544
4523
  vi: "Tìm Kiếm Theo"
4545
4524
  },
4546
4525
  lang: "en"
4547
- }, Wi = ({
4526
+ }, Ki = ({
4548
4527
  query: e,
4549
4528
  onChange: n,
4550
4529
  debounceTime: t = 250,
@@ -4552,72 +4531,72 @@ const ri = ({
4552
4531
  searchField: r,
4553
4532
  advancedSearch: i
4554
4533
  }) => {
4555
- const s = U(re), [a, u] = M(e), [d, g] = M(!1), [m, p] = M([!1, Date.now()]), c = _(() => ao(
4534
+ const l = U(re), [a, u] = M(e), [c, f] = M(!1), [g, m] = M([!1, Date.now()]), d = _(() => ao(
4556
4535
  t,
4557
4536
  (S) => {
4558
- g(!1), n(S);
4537
+ f(!1), n(S);
4559
4538
  },
4560
4539
  { atBegin: !1 }
4561
- ), [t, n]), f = _(() => (S) => {
4562
- u(S.target.value), g(!0), c(S.target.value);
4563
- }, [u, g, c]);
4540
+ ), [t, n]), p = _(() => (S) => {
4541
+ u(S.target.value), f(!0), d(S.target.value);
4542
+ }, [u, f, d]);
4564
4543
  o === void 0 && r !== void 0 && (o = ii);
4565
4544
  let h = "";
4566
- if (o !== void 0 && (h = o.lang2value[s.language] || o.lang2value[o.lang]), r !== void 0 && (h.length > 0 && (h += " "), h += r.lang2value[s.language] || r.lang2value[r.lang]), i === void 0)
4567
- return /* @__PURE__ */ l.jsx(
4568
- _t,
4545
+ if (o !== void 0 && (h = o.lang2value[l.language] || o.lang2value[o.lang]), r !== void 0 && (h.length > 0 && (h += " "), h += r.lang2value[l.language] || r.lang2value[r.lang]), i === void 0)
4546
+ return /* @__PURE__ */ s.jsx(
4547
+ yt,
4569
4548
  {
4570
4549
  flex: 1,
4571
4550
  label: "Search",
4572
4551
  placeholder: h,
4573
- leftSection: d ? Gt : Ht,
4552
+ leftSection: c ? zt : Gt,
4574
4553
  value: a,
4575
- onChange: f
4554
+ onChange: p
4576
4555
  }
4577
4556
  );
4578
4557
  const v = ti(i);
4579
- return /* @__PURE__ */ l.jsxs(
4580
- de,
4558
+ return /* @__PURE__ */ s.jsxs(
4559
+ ue,
4581
4560
  {
4582
4561
  width: "target",
4583
4562
  trapFocus: !0,
4584
4563
  position: "bottom",
4585
4564
  withArrow: !0,
4586
4565
  shadow: "md",
4587
- opened: m[0],
4566
+ opened: g[0],
4588
4567
  onDismiss: () => {
4589
- p([!1, Date.now()]);
4568
+ m([!1, Date.now()]);
4590
4569
  },
4591
4570
  children: [
4592
- /* @__PURE__ */ l.jsx(de.Target, { children: /* @__PURE__ */ l.jsx(
4593
- _t,
4571
+ /* @__PURE__ */ s.jsx(ue.Target, { children: /* @__PURE__ */ s.jsx(
4572
+ yt,
4594
4573
  {
4595
4574
  flex: 1,
4596
4575
  label: "Search",
4597
4576
  placeholder: h,
4598
- leftSection: d ? Gt : Ht,
4599
- rightSection: /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4600
- /* @__PURE__ */ l.jsx(
4601
- Ft,
4577
+ leftSection: c ? zt : Gt,
4578
+ rightSection: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4579
+ /* @__PURE__ */ s.jsx(
4580
+ _t,
4602
4581
  {
4603
4582
  variant: "transparent",
4604
4583
  "aria-label": "Clear Query",
4605
4584
  onClick: () => {
4606
4585
  u(""), n("");
4607
4586
  },
4608
- children: /* @__PURE__ */ l.jsx(no, { size: 16, stroke: 1.5, cursor: "pointer" })
4587
+ children: /* @__PURE__ */ s.jsx(no, { size: 16, stroke: 1.5, cursor: "pointer" })
4609
4588
  }
4610
4589
  ),
4611
- /* @__PURE__ */ l.jsx(
4612
- Ft,
4590
+ /* @__PURE__ */ s.jsx(
4591
+ _t,
4613
4592
  {
4614
4593
  variant: "transparent",
4615
4594
  "aria-label": "Extra Filters",
4616
4595
  color: v > 0 ? "orange" : void 0,
4617
4596
  onClick: () => {
4618
- m[1] + 200 >= Date.now() || p([!0, Date.now()]);
4597
+ g[1] + 200 >= Date.now() || m([!0, Date.now()]);
4619
4598
  },
4620
- children: /* @__PURE__ */ l.jsx(
4599
+ children: /* @__PURE__ */ s.jsx(
4621
4600
  oo,
4622
4601
  {
4623
4602
  size: 16,
@@ -4633,12 +4612,12 @@ const ri = ({
4633
4612
  ] }),
4634
4613
  rightSectionWidth: 68,
4635
4614
  value: a,
4636
- onChange: f,
4615
+ onChange: p,
4637
4616
  description: oi(i),
4638
4617
  inputWrapperOrder: ["label", "input", "description", "error"]
4639
4618
  }
4640
4619
  ) }),
4641
- /* @__PURE__ */ l.jsx(de.Dropdown, { children: /* @__PURE__ */ l.jsx(
4620
+ /* @__PURE__ */ s.jsx(ue.Dropdown, { children: /* @__PURE__ */ s.jsx(
4642
4621
  ri,
4643
4622
  {
4644
4623
  db: i.db,
@@ -4662,57 +4641,57 @@ const ri = ({
4662
4641
  visible: r
4663
4642
  }) => {
4664
4643
  if (r !== void 0 && !r(n))
4665
- return /* @__PURE__ */ l.jsx("div", {});
4666
- const i = dt(n, t);
4667
- return /* @__PURE__ */ l.jsxs("div", { children: [
4668
- /* @__PURE__ */ l.jsx(E, { size: "sm", fw: 550, children: /* @__PURE__ */ l.jsx(b, { value: t.label }) }),
4669
- i !== void 0 && /* @__PURE__ */ l.jsx(o, { db: e.db, property: t, value: i })
4644
+ return /* @__PURE__ */ s.jsx("div", {});
4645
+ const i = ct(n, t);
4646
+ return /* @__PURE__ */ s.jsxs("div", { children: [
4647
+ /* @__PURE__ */ s.jsx(E, { size: "sm", fw: 550, children: /* @__PURE__ */ s.jsx(V, { value: t.label }) }),
4648
+ i !== void 0 && /* @__PURE__ */ s.jsx(o, { db: e.db, property: t, value: i })
4670
4649
  ] });
4671
4650
  }
4672
4651
  ), li = 12, ai = (e) => {
4673
4652
  const n = e.schema, t = _(() => e.fieldGroups.map((o, r) => ui(n, e.store, e.record, r, o)), [n, e.store, e.record, e.fieldGroups]);
4674
- return /* @__PURE__ */ l.jsx(Y, { gap: "sm", className: e.className, style: e.styles, children: t });
4653
+ return /* @__PURE__ */ s.jsx(Y, { gap: "sm", className: e.className, style: e.styles, children: t });
4675
4654
  };
4676
4655
  function ui(e, n, t, o, r) {
4677
- const i = r.fields, s = [];
4656
+ const i = r.fields, l = [];
4678
4657
  for (let a = 0; a < i.length; a++) {
4679
4658
  const u = li / i[a].length;
4680
4659
  if (!Number.isInteger(u))
4681
4660
  throw new Error(`Span must be an integer, but got ${u} for row ${a}`);
4682
- for (let d = 0; d < i[a].length; d++) {
4683
- const g = i[a][d];
4684
- let m;
4685
- typeof g == "function" ? m = g(n, t) : typeof g == "object" && "prop" in g ? m = st(
4661
+ for (let c = 0; c < i[a].length; c++) {
4662
+ const f = i[a][c];
4663
+ let g;
4664
+ typeof f == "function" ? g = f(n, t) : typeof f == "object" && "prop" in f ? g = st(
4686
4665
  n,
4687
4666
  t,
4688
- g.prop instanceof W ? g.prop : e.allProperties[g.prop],
4689
- g.args
4690
- ) : m = st(
4667
+ f.prop instanceof W ? f.prop : e.allProperties[f.prop],
4668
+ f.args
4669
+ ) : g = st(
4691
4670
  n,
4692
4671
  t,
4693
- g instanceof W ? g : e.allProperties[g]
4694
- ), s.push(
4695
- /* @__PURE__ */ l.jsx(N.Col, { span: u, children: m }, `${a}-${d}`)
4672
+ f instanceof W ? f : e.allProperties[f]
4673
+ ), l.push(
4674
+ /* @__PURE__ */ s.jsx(N.Col, { span: u, children: g }, `${a}-${c}`)
4696
4675
  );
4697
4676
  }
4698
4677
  }
4699
- return /* @__PURE__ */ l.jsx(N, { gutter: "sm", children: s }, o);
4678
+ return /* @__PURE__ */ s.jsx(N, { gutter: "sm", children: l }, o);
4700
4679
  }
4701
- function Xi(e, n, t = {}) {
4680
+ function Wi(e, n, t = {}) {
4702
4681
  return (o, r) => {
4703
4682
  if (t.visible !== void 0 && !t.visible(r))
4704
- return /* @__PURE__ */ l.jsx("div", {});
4705
- const i = n.map((s, a) => {
4683
+ return /* @__PURE__ */ s.jsx("div", {});
4684
+ const i = n.map((l, a) => {
4706
4685
  let u;
4707
- if (typeof s == "function")
4708
- u = s(o, r);
4686
+ if (typeof l == "function")
4687
+ u = l(o, r);
4709
4688
  else {
4710
- let d, g = {};
4711
- typeof s == "object" && "prop" in s ? (d = s.prop instanceof W ? s.prop : e.allProperties[s.prop], s.args !== void 0 && (g = s.args)) : d = s instanceof W ? s : e.allProperties[s], u = st(o, r, d, g);
4689
+ let c, f = {};
4690
+ typeof l == "object" && "prop" in l ? (c = l.prop instanceof W ? l.prop : e.allProperties[l.prop], l.args !== void 0 && (f = l.args)) : c = l instanceof W ? l : e.allProperties[l], u = st(o, r, c, f);
4712
4691
  }
4713
- return /* @__PURE__ */ l.jsx("div", { children: u }, a);
4692
+ return /* @__PURE__ */ s.jsx("div", { children: u }, a);
4714
4693
  });
4715
- return /* @__PURE__ */ l.jsx(
4694
+ return /* @__PURE__ */ s.jsx(
4716
4695
  O,
4717
4696
  {
4718
4697
  gap: t.flexGap,
@@ -4724,17 +4703,17 @@ function Xi(e, n, t = {}) {
4724
4703
  };
4725
4704
  }
4726
4705
  function di(e) {
4727
- if (se(e))
4728
- return e.cardinality === "N:N" || e.cardinality === "1:N" ? mt : ft;
4729
- if (ge[e.datatype] === void 0)
4706
+ if (ce(e))
4707
+ return e.cardinality === "N:N" || e.cardinality === "1:N" ? rn : on;
4708
+ if (Me[e.datatype] === void 0)
4730
4709
  throw new Error(
4731
4710
  `No display component found for datatype ${e.datatype}`
4732
4711
  );
4733
- return ge[e.datatype];
4712
+ return Me[e.datatype];
4734
4713
  }
4735
4714
  function st(e, n, t, o = {}) {
4736
4715
  let r;
4737
- return o.display !== void 0 ? r = o.display : r = di(t instanceof W ? t.leafProperty : t), /* @__PURE__ */ l.jsx(
4716
+ return o.display !== void 0 ? r = o.display : r = di(t instanceof W ? t.leafProperty : t), /* @__PURE__ */ s.jsx(
4738
4717
  si,
4739
4718
  {
4740
4719
  store: e,
@@ -4745,9 +4724,9 @@ function st(e, n, t, o = {}) {
4745
4724
  }
4746
4725
  );
4747
4726
  }
4748
- const Ji = (e) => /* @__PURE__ */ l.jsxs(je, { defaultValue: e.fieldTabs[0].tabName, children: [
4749
- /* @__PURE__ */ l.jsx(je.List, { children: e.fieldTabs.map((n, t) => /* @__PURE__ */ l.jsx(je.Tab, { value: n.tabName, children: n.tabName }, t)) }),
4750
- e.fieldTabs.map((n, t) => /* @__PURE__ */ l.jsx(je.Panel, { value: n.tabName, pt: "sm", children: /* @__PURE__ */ l.jsx(
4727
+ const Xi = (e) => /* @__PURE__ */ s.jsxs(Re, { defaultValue: e.fieldTabs[0].tabName, children: [
4728
+ /* @__PURE__ */ s.jsx(Re.List, { children: e.fieldTabs.map((n, t) => /* @__PURE__ */ s.jsx(Re.Tab, { value: n.tabName, children: n.tabName }, t)) }),
4729
+ e.fieldTabs.map((n, t) => /* @__PURE__ */ s.jsx(Re.Panel, { value: n.tabName, pt: "sm", children: /* @__PURE__ */ s.jsx(
4751
4730
  ai,
4752
4731
  {
4753
4732
  schema: e.schema,
@@ -4762,21 +4741,21 @@ const Ji = (e) => /* @__PURE__ */ l.jsxs(je, { defaultValue: e.fieldTabs[0].tabN
4762
4741
  export {
4763
4742
  sn as BooleanInput,
4764
4743
  Oi as ConfirmationInput,
4765
- Li as ConfirmationLabel,
4744
+ ki as ConfirmationLabel,
4766
4745
  Qe as CountryFlagComponent,
4767
4746
  dn as DEFAULT_LAYOUT,
4768
4747
  Wr as DEFAULT_PAGINATION_POSITIONS,
4769
- ge as DataType2DisplayComponent,
4770
- Vt as DataType2InputComponent,
4748
+ Me as DataType2DisplayComponent,
4749
+ bt as DataType2InputComponent,
4771
4750
  yo as DateDisplay,
4772
- bo as DateInput,
4751
+ Do as DateInput,
4773
4752
  zo as DateRangeInput,
4774
4753
  jo as DateTimeDisplay,
4775
4754
  Ni as DateTimeHideTimeDisplay,
4776
4755
  Go as DateTimeRangeInput,
4777
4756
  Ko as EmbeddedFormItem,
4778
- mo as EmojiCountryFlag,
4779
- Do as EnumInput,
4757
+ po as EmojiCountryFlag,
4758
+ bo as EnumInput,
4780
4759
  Bo as FormItem,
4781
4760
  cn as FormItemInner,
4782
4761
  un as FormItemLabel,
@@ -4786,59 +4765,58 @@ export {
4786
4765
  re as LocaleContext,
4787
4766
  xi as LocaleProvider,
4788
4767
  Co as MenuTrie,
4789
- mt as MultiForeignKeyDisplay,
4768
+ rn as MultiForeignKeyDisplay,
4790
4769
  an as MultiForeignKeyInput,
4791
- b as MultiLingualString,
4770
+ V as MultiLingualString,
4792
4771
  Pi as NotAuthorized,
4793
4772
  yi as NotFound,
4794
- Qt as NotFoundInline,
4773
+ Xt as NotFoundInline,
4795
4774
  _i as NotFoundSubPage,
4796
- be as NumberInput,
4797
- bi as OrderedUniqueList,
4775
+ De as NumberInput,
4776
+ Di as OrderedUniqueList,
4798
4777
  et as Permission,
4799
4778
  Ro as PopConfirm,
4800
4779
  zi as SPAN_COL,
4801
4780
  fo as SVGCountryFlag,
4802
4781
  ri as SearchForm,
4803
4782
  ei as SearchFormItem,
4804
- nn as SeraCol,
4805
- gt as SeraContext,
4806
- ki as SeraContextProvider,
4783
+ en as SeraCol,
4784
+ ft as SeraContext,
4785
+ Li as SeraContextProvider,
4807
4786
  Hi as SeraEmbeddedForm,
4808
- Ki as SeraEmbeddedTable,
4787
+ Yi as SeraEmbeddedTable,
4809
4788
  Gi as SeraForm,
4810
- tn as SeraRow,
4811
- Wi as SeraSearch,
4789
+ Zt as SeraRow,
4790
+ Ki as SeraSearch,
4812
4791
  qi as SeraTable,
4813
4792
  Ai as SeraVerticalMenu,
4814
4793
  ai as SeraView,
4815
- Ji as SeraViewTab,
4816
- ft as SingleForeignKeyDisplay,
4794
+ Xi as SeraViewTab,
4795
+ on as SingleForeignKeyDisplay,
4817
4796
  ln as SingleForeignKeyInput,
4818
- ct as TestIdContext,
4819
- Di as TestIdProvider,
4820
- ve as TextInput,
4821
- Zt as Trie,
4822
- bt as TrieNode,
4797
+ gt as TestIdContext,
4798
+ bi as TestIdProvider,
4799
+ Se as TextInput,
4800
+ Jt as Trie,
4801
+ Mt as TrieNode,
4823
4802
  ho as buildMenuItemIndex,
4824
4803
  A as countryFlags,
4825
4804
  vo as filterAllowedItems,
4826
4805
  gn as getInputComponent,
4827
4806
  ti as getNumberOfFilters,
4828
- dt as getPropertyValue,
4807
+ ct as getPropertyValue,
4829
4808
  oi as getReadableFilters,
4830
4809
  Ti as getTestIdProps,
4831
4810
  Ei as groupBy,
4832
4811
  $i as groupByAsList,
4833
- Xi as groupFields,
4812
+ Wi as groupFields,
4834
4813
  Uo as isHorizontalLayout,
4835
4814
  $n as isSeraColumn,
4836
- Yi as makeEmbeddedTableColumns,
4815
+ Ui as makeEmbeddedTableColumns,
4837
4816
  En as makeTableColumn,
4838
- Bi as makeTableColumnFromNestedProperty,
4839
- Ui as makeTableColumns,
4817
+ Bi as makeTableColumns,
4840
4818
  Ze as setPropertyValue,
4841
- Se as translateMultiLingualString,
4819
+ he as translateMultiLingualString,
4842
4820
  Mi as uniqueList,
4843
4821
  ji as useMultiLingualString,
4844
4822
  X as usePropertyTestId,