sera-components 1.6.8 → 1.6.9

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,16 +1,16 @@
1
1
  var Dn = Object.defineProperty;
2
- var bn = (e, n, t) => n in e ? Dn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var ee = (e, n, t) => bn(e, typeof n != "symbol" ? n + "" : n, t);
2
+ var Vn = (e, n, t) => n in e ? Dn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var ee = (e, n, t) => Vn(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import * as Xe from "react";
5
- import Vn, { createContext as De, useContext as B, useMemo as _, useState as $, useEffect as be } from "react";
6
- import { Paper as ie, Image as An, Text as P, Menu as ae, Button as H, Container as Tn, Alert as lt, Stack as W, Flex as q, Loader as Ee, NavLink as jt, Checkbox as de, Group as L, Input as X, useCombobox as qt, Combobox as O, Grid as A, InputBase as Nn, PasswordInput as Bt, Select as kn, CloseButton as Ln, Divider as On, Tooltip as Ut, Fieldset as Kt, Table as Yt, rem as ge, Pagination as zn, MenuTarget as Gn, MenuDropdown as Hn, MenuItem as qn, TextInput as _t, Popover as Oe, ActionIcon as Ft, Tabs as Re } from "@mantine/core";
7
- import { IconCheck as Bn, IconInfoCircle as at, IconChevronRight as Un, IconSearch as ut, IconCalendar as $e, IconHelpCircle as Wt, IconPlus as Kn, IconPencil as Yn, IconReload as Wn, IconDatabaseImport as Xn, IconDownload as Jn, IconDatabaseOff as Qn, IconSelector as Zn, IconCircleX as eo, IconAdjustmentsHorizontal as to, IconKeyboard as no } from "@tabler/icons-react";
5
+ import An, { createContext as be, useContext as B, useMemo as _, useState as $, useEffect as De } from "react";
6
+ import { Paper as ie, Image as Tn, Text as P, Menu as ae, Button as H, Container as Nn, Alert as lt, Stack as W, Flex as q, Loader as Ee, NavLink as jt, Checkbox as de, Group as L, Input as X, useCombobox as qt, Combobox as O, Grid as A, InputBase as kn, PasswordInput as Bt, Select as Ln, CloseButton as On, Divider as zn, Tooltip as Ut, Fieldset as Kt, Table as Yt, rem as ge, Pagination as Gn, MenuTarget as Hn, MenuDropdown as qn, MenuItem as Bn, TextInput as _t, Popover as Oe, ActionIcon as Ft, Tabs as Re } from "@mantine/core";
7
+ import { IconCheck as Un, IconInfoCircle as at, IconChevronRight as Kn, IconSearch as ut, IconCalendar as $e, IconHelpCircle as Wt, IconPlus as Yn, IconPencil as Wn, IconReload as Xn, IconDatabaseImport as Jn, IconDownload as Qn, IconDatabaseOff as Zn, IconSelector as eo, IconCircleX as to, IconAdjustmentsHorizontal as no, IconKeyboard as oo } from "@tabler/icons-react";
8
8
  import { observer as oe } from "mobx-react-lite";
9
- import { isNestedProperty as Xt, NestedProperty as K, isObjectProperty as se, DynamicMultiLingualString as oo, isDraftRecord as Jt, I18NStore as ro, validators as It } from "sera-db";
10
- import { IMaskInput as io } from "react-imask";
9
+ import { isNestedProperty as Xt, NestedProperty as K, isObjectProperty as se, DynamicMultiLingualString as ro, isDraftRecord as Jt, I18NStore as io, validators as It } from "sera-db";
10
+ import { IMaskInput as so } from "react-imask";
11
11
  import Q from "dayjs";
12
12
  import { DatePickerInput as Je, DateTimePicker as Pt } from "@mantine/dates";
13
- import { debounce as so } from "throttle-debounce";
13
+ import { debounce as lo } from "throttle-debounce";
14
14
  var ye = { exports: {} }, fe = {};
15
15
  /**
16
16
  * @license React
@@ -22,7 +22,7 @@ var ye = { exports: {} }, fe = {};
22
22
  * LICENSE file in the root directory of this source tree.
23
23
  */
24
24
  var Et;
25
- function lo() {
25
+ function ao() {
26
26
  if (Et) return fe;
27
27
  Et = 1;
28
28
  var e = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
@@ -54,7 +54,7 @@ var me = {};
54
54
  * LICENSE file in the root directory of this source tree.
55
55
  */
56
56
  var $t;
57
- function ao() {
57
+ function uo() {
58
58
  return $t || ($t = 1, process.env.NODE_ENV !== "production" && (function() {
59
59
  function e(S) {
60
60
  if (S == null) return null;
@@ -83,12 +83,12 @@ function ao() {
83
83
  return "Portal";
84
84
  case F:
85
85
  return S.displayName || "Context";
86
- case R:
86
+ case w:
87
87
  return (S._context.displayName || "Context") + ".Consumer";
88
88
  case N:
89
89
  var j = S.render;
90
90
  return S = S.displayName, S || (S = j.displayName || j.name || "", S = S !== "" ? "ForwardRef(" + S + ")" : "ForwardRef"), S;
91
- case b:
91
+ case D:
92
92
  return j = S.displayName || null, j !== null ? j : e(S.type) || "Memo";
93
93
  case z:
94
94
  j = S._payload, S = S._init;
@@ -163,14 +163,14 @@ function ao() {
163
163
  )), S = this.props.ref, S !== void 0 ? S : null;
164
164
  }
165
165
  function c(S, j, E, M, xe, ke) {
166
- var D = E.ref;
166
+ var b = E.ref;
167
167
  return S = {
168
168
  $$typeof: g,
169
169
  type: S,
170
170
  key: j,
171
171
  props: E,
172
172
  _owner: M
173
- }, (D !== void 0 ? D : null) !== null ? Object.defineProperty(S, "ref", {
173
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(S, "ref", {
174
174
  enumerable: !1,
175
175
  get: u
176
176
  }) : Object.defineProperty(S, "ref", { enumerable: !1, value: null }), S._store = {}, Object.defineProperty(S._store, "validated", {
@@ -196,24 +196,24 @@ function ao() {
196
196
  }), Object.freeze && (Object.freeze(S.props), Object.freeze(S)), S;
197
197
  }
198
198
  function f(S, j, E, M, xe, ke) {
199
- var D = j.children;
200
- if (D !== void 0)
199
+ var b = j.children;
200
+ if (b !== void 0)
201
201
  if (M)
202
- if ($n(D)) {
203
- for (M = 0; M < D.length; M++)
204
- m(D[M]);
205
- Object.freeze && Object.freeze(D);
202
+ if (Mn(b)) {
203
+ for (M = 0; M < b.length; M++)
204
+ m(b[M]);
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(D);
210
+ else m(b);
211
211
  if (vt.call(j, "key")) {
212
- D = e(S);
213
- var le = Object.keys(j).filter(function(Mn) {
214
- return Mn !== "key";
212
+ b = e(S);
213
+ var le = Object.keys(j).filter(function(bn) {
214
+ return bn !== "key";
215
215
  });
216
- M = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", yt[D + M] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
216
+ M = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", yt[b + M] || (le = 0 < le.length ? "{" + le.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,22 +221,22 @@ React keys must be passed directly to JSX without using spread:
221
221
  let props = %s;
222
222
  <%s key={someKey} {...props} />`,
223
223
  M,
224
- D,
224
+ b,
225
225
  le,
226
- D
227
- ), yt[D + M] = !0);
226
+ b
227
+ ), yt[b + M] = !0);
228
228
  }
229
- if (D = null, E !== void 0 && (t(E), D = "" + E), s(j) && (t(j.key), D = "" + j.key), "key" in j) {
229
+ if (b = null, E !== void 0 && (t(E), b = "" + E), s(j) && (t(j.key), b = "" + j.key), "key" in j) {
230
230
  E = {};
231
231
  for (var Le in j)
232
232
  Le !== "key" && (E[Le] = j[Le]);
233
233
  } else E = j;
234
- return D && a(
234
+ return b && a(
235
235
  E,
236
236
  typeof S == "function" ? S.displayName || S.name || "Unknown" : S
237
237
  ), c(
238
238
  S,
239
- D,
239
+ b,
240
240
  E,
241
241
  r(),
242
242
  xe,
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
249
249
  function p(S) {
250
250
  return typeof S == "object" && S !== null && S.$$typeof === g;
251
251
  }
252
- var d = Vn, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), F = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Ae = Symbol.for("react.activity"), we = Symbol.for("react.client.reference"), Te = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, vt = Object.prototype.hasOwnProperty, $n = Array.isArray, Ne = console.createTask ? console.createTask : function() {
252
+ var d = An, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), F = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Ae = Symbol.for("react.activity"), we = Symbol.for("react.client.reference"), Te = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, vt = Object.prototype.hasOwnProperty, Mn = Array.isArray, Ne = console.createTask ? console.createTask : function() {
253
253
  return null;
254
254
  };
255
255
  d = {
@@ -285,10 +285,10 @@ React keys must be passed directly to JSX without using spread:
285
285
  })()), me;
286
286
  }
287
287
  var Mt;
288
- function uo() {
289
- return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? ye.exports = lo() : ye.exports = ao()), ye.exports;
288
+ function co() {
289
+ return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? ye.exports = ao() : ye.exports = uo()), ye.exports;
290
290
  }
291
- var l = uo();
291
+ var l = co();
292
292
  const V = {
293
293
  UK: {
294
294
  svgFlag: "https://flagcdn.com/gb.svg",
@@ -354,19 +354,19 @@ const V = {
354
354
  svgFlag: "https://flagcdn.com/kh.svg",
355
355
  emojiFlag: "🇰🇭"
356
356
  }
357
- }, co = ({ 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" }) }), go = ({ flag: e }) => /* @__PURE__ */ l.jsx(
357
+ }, go = ({ flag: e }) => /* @__PURE__ */ l.jsx(ie, { shadow: "xs", w: 20, h: 14, children: /* @__PURE__ */ l.jsx(Tn, { src: e.svgFlag, w: 20, h: 14, fit: "cover" }) }), fo = ({ flag: e }) => /* @__PURE__ */ l.jsx(
358
358
  P,
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") ? co : go, re = De(new Intl.Locale("en-US")), hi = oe(
364
+ ), Qe = navigator.userAgent.includes("Windows") ? go : fo, re = be(new Intl.Locale("en-US")), hi = oe(
365
365
  ({
366
366
  value: e,
367
367
  children: n
368
368
  }) => /* @__PURE__ */ l.jsx(re.Provider, { value: e.locale, children: n })
369
- ), fo = {
369
+ ), mo = {
370
370
  lang2value: {
371
371
  en: "Choose Language",
372
372
  vi: "Chọn ngôn ngữ"
@@ -392,7 +392,7 @@ const V = {
392
392
  {
393
393
  onClick: () => n(s),
394
394
  leftSection: /* @__PURE__ */ l.jsx(Qe, { flag: r }),
395
- rightSection: e.language === o && /* @__PURE__ */ l.jsx(Bn, { size: "15", color: "#2986cc", stroke: 2 }),
395
+ rightSection: e.language === o && /* @__PURE__ */ l.jsx(Un, { size: "15", color: "#2986cc", stroke: 2 }),
396
396
  children: /* @__PURE__ */ l.jsx(P, { size: "sm", children: i })
397
397
  },
398
398
  o
@@ -409,7 +409,7 @@ const V = {
409
409
  }
410
410
  ) }),
411
411
  /* @__PURE__ */ l.jsxs(ae.Dropdown, { children: [
412
- /* @__PURE__ */ l.jsx(ae.Label, { children: /* @__PURE__ */ l.jsx(P, { size: "sm", children: fo.lang2value[e.language] }) }),
412
+ /* @__PURE__ */ l.jsx(ae.Label, { children: /* @__PURE__ */ l.jsx(P, { size: "sm", children: mo.lang2value[e.language] }) }),
413
413
  t
414
414
  ] })
415
415
  ] });
@@ -427,7 +427,7 @@ const Ci = ({
427
427
  message: e,
428
428
  navigate: n
429
429
  }) => /* @__PURE__ */ l.jsx(
430
- Tn,
430
+ Nn,
431
431
  {
432
432
  size: "xs",
433
433
  style: {
@@ -519,7 +519,7 @@ class Ii {
519
519
  return this.items;
520
520
  }
521
521
  }
522
- class Dt {
522
+ class bt {
523
523
  constructor() {
524
524
  ee(this, "children", /* @__PURE__ */ new Map());
525
525
  ee(this, "isEndOfWord", !1);
@@ -528,7 +528,7 @@ class Dt {
528
528
  }
529
529
  class Zt {
530
530
  constructor() {
531
- ee(this, "root", new Dt());
531
+ ee(this, "root", new bt());
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 Dt(), t.children.set(o, r)), t = r;
543
+ r === void 0 && (r = new bt(), t.children.set(o, r)), t = r;
544
544
  }
545
545
  t.isEndOfWord = !0, t.value = n;
546
546
  }
@@ -571,7 +571,7 @@ function dt(e, n) {
571
571
  function Ze(e, n, t) {
572
572
  Xt(n) ? n.setValue(e, t) : e[n.updateFuncName](t);
573
573
  }
574
- const ct = De(!1), Pi = ct.Provider;
574
+ const ct = be(!1), Pi = ct.Provider;
575
575
  function Ei(e) {
576
576
  return B(ct) ? { "data-testid": e } : {};
577
577
  }
@@ -583,7 +583,7 @@ function Y(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
- function mo(e) {
586
+ function po(e) {
587
587
  const n = {}, t = {}, o = {}, r = (i, s = []) => {
588
588
  i.forEach((a) => {
589
589
  const u = [...s, a.key];
@@ -592,8 +592,8 @@ function mo(e) {
592
592
  };
593
593
  return r(e), { key2item: n, key2fullpath: t, key2route: o };
594
594
  }
595
- function po(e) {
596
- const n = new So(), t = (o) => {
595
+ function ho(e) {
596
+ const n = new vo(), t = (o) => {
597
597
  o.forEach((r) => {
598
598
  if (r.route !== void 0) {
599
599
  const i = r.route.path.pathDef;
@@ -604,7 +604,7 @@ function po(e) {
604
604
  };
605
605
  return t(e), n;
606
606
  }
607
- function ho(e, n) {
607
+ function So(e, n) {
608
608
  return e.map((t) => {
609
609
  if (t.route !== void 0)
610
610
  return n(t.route.role) === et.Allow ? t : null;
@@ -616,11 +616,11 @@ function ho(e, n) {
616
616
  }).filter((t) => t !== null);
617
617
  }
618
618
  const Mi = (e) => {
619
- const [n, t] = $(/* @__PURE__ */ new Set()), [o, r] = $(/* @__PURE__ */ new Set()), [i, s] = $(), a = _(() => ho(e.items, e.checkPermission), [e.items, e.checkPermission]), u = _(() => po(e.items), [e.items]), { key2fullpath: c, key2route: f } = _(
620
- () => mo(a),
619
+ const [n, t] = $(/* @__PURE__ */ new Set()), [o, r] = $(/* @__PURE__ */ new Set()), [i, s] = $(), a = _(() => So(e.items, e.checkPermission), [e.items, e.checkPermission]), u = _(() => ho(e.items), [e.items]), { key2fullpath: c, key2route: f } = _(
620
+ () => po(a),
621
621
  [a]
622
622
  );
623
- be(() => {
623
+ De(() => {
624
624
  const p = window.location.pathname, d = u.findMatchingKey(p);
625
625
  d !== void 0 && (r(new Set(c[d])), s(d));
626
626
  }, [window.location.pathname, f]);
@@ -659,7 +659,7 @@ const Mi = (e) => {
659
659
  ml: g === 0 ? void 0 : g === 1 ? "md" : `calc(var(--mantine-spacing-md) * ${g})`,
660
660
  w: "unset",
661
661
  rightSection: h ? /* @__PURE__ */ l.jsx(
662
- Un,
662
+ Kn,
663
663
  {
664
664
  size: 12,
665
665
  stroke: 1.5,
@@ -669,8 +669,8 @@ const Mi = (e) => {
669
669
  opened: n.has(d.key) || o.has(d.key),
670
670
  onClick: (C) => {
671
671
  C.preventDefault(), r((y) => {
672
- const R = new Set(y);
673
- return y.has(d.key) ? R.delete(d.key) : R.add(d.key), R;
672
+ const w = new Set(y);
673
+ return y.has(d.key) ? w.delete(d.key) : w.add(d.key), w;
674
674
  });
675
675
  }
676
676
  },
@@ -706,7 +706,7 @@ const Mi = (e) => {
706
706
  }, [a, i, o, n, e.navigate]);
707
707
  return /* @__PURE__ */ l.jsx(l.Fragment, { children: m });
708
708
  };
709
- class So extends Zt {
709
+ class vo extends Zt {
710
710
  constructor() {
711
711
  super(...arguments);
712
712
  ee(this, "pathToKey", /* @__PURE__ */ new Map());
@@ -742,7 +742,7 @@ class So 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, en = be({ gap: "sm" }), tn = ({
746
746
  children: e,
747
747
  gap: n = "sm",
748
748
  align: t = "flex-start",
@@ -799,22 +799,22 @@ function on(e, n, t = !0) {
799
799
  const o = n.getHours().toString().padStart(2, "0"), r = n.getMinutes().toString().padStart(2, "0"), i = n.getSeconds().toString().padStart(2, "0");
800
800
  return t ? Ce(e, n) + ` ${o}:${r}:${i}` : Ce(e, n) + ` ${o}:${r}`;
801
801
  }
802
- const vo = ({ value: e }) => {
802
+ const Co = ({ value: e }) => {
803
803
  const n = B(re), t = _(
804
804
  () => on(n, e),
805
805
  [n, e]
806
806
  );
807
807
  return /* @__PURE__ */ l.jsx(P, { size: "sm", children: t });
808
- }, Co = ({ value: e }) => {
808
+ }, wo = ({ value: e }) => {
809
809
  const n = B(re), t = _(() => Ce(n, e), [n, e]);
810
810
  return /* @__PURE__ */ l.jsx(P, { size: "sm", children: t });
811
- }, Di = ({ value: e }) => {
811
+ }, bi = ({ value: e }) => {
812
812
  const n = B(re), [t, o] = _(() => {
813
813
  const r = Ce(n, e), i = e.getHours().toString().padStart(2, "0"), s = e.getMinutes().toString().padStart(2, "0"), a = e.getSeconds().toString().padStart(2, "0");
814
814
  return [r, `${i}:${s}:${a}`];
815
815
  }, [n, e]);
816
816
  return /* @__PURE__ */ l.jsx(P, { size: "sm", title: o, children: t });
817
- }, wo = {
817
+ }, xo = {
818
818
  yes: {
819
819
  lang2value: {
820
820
  en: "Yes",
@@ -829,28 +829,28 @@ const vo = ({ value: e }) => {
829
829
  },
830
830
  lang: "en"
831
831
  }
832
- }, xo = ({ value: e }) => /* @__PURE__ */ l.jsx(
832
+ }, Ro = ({ value: e }) => /* @__PURE__ */ l.jsx(
833
833
  de,
834
834
  {
835
835
  checked: e,
836
- label: /* @__PURE__ */ l.jsx(T, { value: wo[e ? "yes" : "no"] }),
836
+ label: /* @__PURE__ */ l.jsx(T, { value: xo[e ? "yes" : "no"] }),
837
837
  readOnly: !0
838
838
  }
839
- ), Ro = ({ property: e, value: n }) => {
839
+ ), yo = ({ property: e, value: n }) => {
840
840
  const t = e;
841
841
  if (se(t) || t.enumType === void 0)
842
842
  throw new Error(
843
843
  "Invalid usage of EnumDisplay. Expect a property of type enum"
844
844
  );
845
845
  return /* @__PURE__ */ l.jsx(P, { size: "sm", children: /* @__PURE__ */ l.jsx(T, { value: t.enumType.label[n] }) });
846
- }, gt = De({ link: () => null, entityRoutes: {} }), bi = ({
846
+ }, gt = be({ link: () => null, entityRoutes: {} }), Di = ({
847
847
  link: e,
848
848
  entityRoutes: n,
849
849
  children: t
850
850
  }) => /* @__PURE__ */ l.jsx(gt.Provider, { value: { link: e, entityRoutes: n }, children: t });
851
851
  function rn(e, n, t, o) {
852
852
  const r = e.getByName(n.targetClass), i = o[n.targetClass];
853
- be(() => {
853
+ De(() => {
854
854
  r.fetchByIds(t);
855
855
  }, [t]);
856
856
  const s = {};
@@ -912,11 +912,11 @@ const ft = oe(
912
912
  string: _e,
913
913
  integer: _e,
914
914
  float: _e,
915
- boolean: xo,
915
+ boolean: Ro,
916
916
  "string[]": _e,
917
- enum: Ro,
918
- datetime: vo,
919
- date: Co
917
+ enum: yo,
918
+ datetime: Co,
919
+ date: wo
920
920
  }, sn = ({
921
921
  property: e,
922
922
  value: n,
@@ -958,13 +958,13 @@ const ft = oe(
958
958
  disabled: o
959
959
  }
960
960
  );
961
- }, yo = {
961
+ }, jo = {
962
962
  lang2value: {
963
963
  en: "The leading zero is not necessary in international phone number format. For example, if your phone number is 0123456789, you should enter it as 123-456-789.",
964
964
  vi: "Số 0 đầu tiên không cần thiết trong định dạng điện thoại quốc tế. Ví dụ, nếu số điện thoại của bạn là 0123456789, bạn nên nhập nó là 123-456-789."
965
965
  },
966
966
  lang: "en"
967
- }, jo = {
967
+ }, _o = {
968
968
  lang2value: {
969
969
  en: "No valid country code found.",
970
970
  vi: "Không tìm thấy mã quốc gia hợp lệ. "
@@ -1031,14 +1031,14 @@ const ft = oe(
1031
1031
  name: "Cambodia",
1032
1032
  flags: [V.CAM]
1033
1033
  }
1034
- }, _o = (e, n) => {
1034
+ }, Fo = (e, n) => {
1035
1035
  if (e === "" || e === void 0)
1036
1036
  return { match: "84", remaining: "" };
1037
1037
  const t = e.replace(/[^\d]/g, ""), o = n.findLongestPrefix(t);
1038
1038
  if (o.match === "")
1039
1039
  throw new Error(`No valid country code found for phone number: ${e}`);
1040
1040
  return o;
1041
- }, bt = ({ value: e }) => {
1041
+ }, Dt = ({ value: e }) => {
1042
1042
  const n = ue[e];
1043
1043
  if (n !== void 0)
1044
1044
  return /* @__PURE__ */ l.jsxs(L, { gap: "xs", wrap: "nowrap", align: "center", children: [
@@ -1048,7 +1048,7 @@ const ft = oe(
1048
1048
  ] }),
1049
1049
  /* @__PURE__ */ l.jsx(L, { gap: "xs", wrap: "nowrap", children: n.flags.map((t, o) => /* @__PURE__ */ l.jsx(Qe, { flag: t }, o)) })
1050
1050
  ] });
1051
- }, Fo = ({
1051
+ }, Io = ({
1052
1052
  value: e,
1053
1053
  onChange: n,
1054
1054
  error: t,
@@ -1060,17 +1060,17 @@ const ft = oe(
1060
1060
  i !== void 0 && (s = { "data-testid": `${i}_country_code` }, a = { "data-testid": i });
1061
1061
  const [u, c] = $(""), [f, m] = $(!1), [p, d] = $(""), [g, h] = $(!1), v = _(() => {
1062
1062
  const I = new Zt();
1063
- return Object.keys(ue).forEach((b) => {
1064
- I.insert(b);
1063
+ return Object.keys(ue).forEach((D) => {
1064
+ I.insert(D);
1065
1065
  }), I;
1066
1066
  }, [ue]), { rawInput: C } = _(() => {
1067
1067
  try {
1068
- const { match: I, remaining: b } = _o(
1068
+ const { match: I, remaining: D } = Fo(
1069
1069
  e,
1070
1070
  v
1071
1071
  );
1072
1072
  return d(I), h(!1), {
1073
- rawInput: b
1073
+ rawInput: D
1074
1074
  };
1075
1075
  } catch {
1076
1076
  return h(!0), d(""), {
@@ -1084,12 +1084,12 @@ const ft = oe(
1084
1084
  onDropdownOpen: () => {
1085
1085
  y.updateSelectedOptionIndex("active");
1086
1086
  }
1087
- }), R = _(() => Object.keys(ue), [ue]), F = (I, b) => {
1087
+ }), w = _(() => Object.keys(ue), [ue]), F = (I, D) => {
1088
1088
  if (I === void 0)
1089
- return `+${b}`;
1089
+ return `+${D}`;
1090
1090
  const z = I.replace(/[^\d]/g, "");
1091
- return z.length === 0 ? `+${b}` : z.startsWith("0") ? (m(!0), `+${b}${z}`) : (m(!1), `+${b}${z}`);
1092
- }, N = _(() => R.filter((I) => ue[I].name.toLowerCase().includes(u.toLowerCase()) || I.includes(u)), [u, R]), Z = _(() => N.map((I, b) => /* @__PURE__ */ l.jsx(O.Option, { value: I, children: /* @__PURE__ */ l.jsx(bt, { value: I }) }, b)), [N]);
1091
+ return z.length === 0 ? `+${D}` : z.startsWith("0") ? (m(!0), `+${D}${z}`) : (m(!1), `+${D}${z}`);
1092
+ }, N = _(() => w.filter((I) => ue[I].name.toLowerCase().includes(u.toLowerCase()) || I.includes(u)), [u, w]), Z = _(() => N.map((I, D) => /* @__PURE__ */ l.jsx(O.Option, { value: I, children: /* @__PURE__ */ l.jsx(Dt, { value: I }) }, D)), [N]);
1093
1093
  return /* @__PURE__ */ l.jsxs("div", { children: [
1094
1094
  /* @__PURE__ */ l.jsx(A, { gutter: "xs", children: /* @__PURE__ */ l.jsx(A.Col, { children: /* @__PURE__ */ l.jsxs(L, { gap: 5, children: [
1095
1095
  /* @__PURE__ */ l.jsxs(
@@ -1105,7 +1105,7 @@ const ft = oe(
1105
1105
  disabled: r,
1106
1106
  children: [
1107
1107
  /* @__PURE__ */ l.jsx(O.Target, { children: /* @__PURE__ */ l.jsx(
1108
- Nn,
1108
+ kn,
1109
1109
  {
1110
1110
  ...s,
1111
1111
  component: "button",
@@ -1115,7 +1115,7 @@ const ft = oe(
1115
1115
  onClick: () => y.toggleDropdown(),
1116
1116
  rightSectionPointerEvents: "none",
1117
1117
  disabled: r,
1118
- children: /* @__PURE__ */ l.jsx(bt, { value: p })
1118
+ children: /* @__PURE__ */ l.jsx(Dt, { value: p })
1119
1119
  }
1120
1120
  ) }),
1121
1121
  /* @__PURE__ */ l.jsxs(O.Dropdown, { children: [
@@ -1158,12 +1158,12 @@ const ft = oe(
1158
1158
  value: C,
1159
1159
  type: "phone_number",
1160
1160
  onAccept: (I) => {
1161
- const b = I.replace(/[^\d]/g, ""), z = F(b, p);
1161
+ const D = I.replace(/[^\d]/g, ""), z = F(D, p);
1162
1162
  z !== e && n({
1163
1163
  target: { value: z }
1164
1164
  });
1165
1165
  },
1166
- component: io,
1166
+ component: so,
1167
1167
  mask: "000-000-0000",
1168
1168
  error: t,
1169
1169
  flex: 1,
@@ -1171,7 +1171,7 @@ const ft = oe(
1171
1171
  }
1172
1172
  )
1173
1173
  ] }) }) }),
1174
- (f || g || t && typeof t == "string") && /* @__PURE__ */ l.jsx(A, { gutter: "xs", children: /* @__PURE__ */ l.jsx(A.Col, { children: /* @__PURE__ */ l.jsx(X.Error, { children: f ? /* @__PURE__ */ l.jsx(T, { value: yo }) : g ? /* @__PURE__ */ l.jsx(T, { value: jo }) : t }) }) })
1174
+ (f || g || t && typeof t == "string") && /* @__PURE__ */ l.jsx(A, { gutter: "xs", children: /* @__PURE__ */ l.jsx(A.Col, { children: /* @__PURE__ */ l.jsx(X.Error, { children: f ? /* @__PURE__ */ l.jsx(T, { value: jo }) : g ? /* @__PURE__ */ l.jsx(T, { value: _o }) : t }) }) })
1175
1175
  ] });
1176
1176
  }, Se = ({
1177
1177
  property: e,
@@ -1180,7 +1180,7 @@ const ft = oe(
1180
1180
  onChange: o,
1181
1181
  freeze: r = !1
1182
1182
  }) => {
1183
- const i = Y(e), [s, a] = _(() => e.constraints.includes("password") ? ["password", Bt] : e.constraints.includes("phone_number") ? ["phone_number", Fo] : [e.constraints.includes("email") ? "email" : e.constraints.includes("url") ? "url" : "text", X], [e.constraints]);
1183
+ const i = Y(e), [s, a] = _(() => e.constraints.includes("password") ? ["password", Bt] : e.constraints.includes("phone_number") ? ["phone_number", Io] : [e.constraints.includes("email") ? "email" : e.constraints.includes("url") ? "url" : "text", X], [e.constraints]);
1184
1184
  return /* @__PURE__ */ l.jsx(
1185
1185
  a,
1186
1186
  {
@@ -1193,7 +1193,7 @@ const ft = oe(
1193
1193
  disabled: r
1194
1194
  }
1195
1195
  );
1196
- }, Io = ({
1196
+ }, Po = ({
1197
1197
  property: e,
1198
1198
  value: n,
1199
1199
  onChange: t,
@@ -1219,7 +1219,7 @@ const ft = oe(
1219
1219
  disabled: o
1220
1220
  }
1221
1221
  );
1222
- }, Po = ({
1222
+ }, Eo = ({
1223
1223
  property: e,
1224
1224
  value: n,
1225
1225
  onChange: t,
@@ -1243,7 +1243,7 @@ const ft = oe(
1243
1243
  return [c, f];
1244
1244
  }, [r, s]);
1245
1245
  return /* @__PURE__ */ l.jsx(
1246
- kn,
1246
+ Ln,
1247
1247
  {
1248
1248
  ...i,
1249
1249
  data: u,
@@ -1259,16 +1259,16 @@ const ft = oe(
1259
1259
  allowDeselect: !e.isRequired
1260
1260
  }
1261
1261
  );
1262
- }, Eo = {
1262
+ }, $o = {
1263
1263
  lang2value: {
1264
1264
  en: "Confirm",
1265
1265
  vi: "Xác Nhận"
1266
1266
  },
1267
1267
  lang: "en"
1268
- }, $o = new oo(
1268
+ }, Mo = new ro(
1269
1269
  "confirmation.valuesDoNotMatch"
1270
1270
  ), Vi = ({ property: e }) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1271
- /* @__PURE__ */ l.jsx(T, { value: Eo }),
1271
+ /* @__PURE__ */ l.jsx(T, { value: $o }),
1272
1272
  " ",
1273
1273
  /* @__PURE__ */ l.jsx(T, { value: e.label })
1274
1274
  ] }), Ai = ({
@@ -1280,7 +1280,7 @@ const ft = oe(
1280
1280
  }) => {
1281
1281
  const i = Y(e, "confirm"), [s, a] = $(""), [u, c] = $(!1), [f, m] = _(() => e.constraints.includes("password") ? ["password", Bt] : ["text", X], [e.constraints]), p = _(() => {
1282
1282
  if (u && s !== t)
1283
- return $o.t({ args: { name: e.label } });
1283
+ return Mo.t({ args: { name: e.label } });
1284
1284
  }, [u, s, t, e.label]), d = n || p;
1285
1285
  return /* @__PURE__ */ l.jsx(
1286
1286
  m,
@@ -1298,7 +1298,7 @@ const ft = oe(
1298
1298
  }
1299
1299
  );
1300
1300
  };
1301
- function Mo(e, n) {
1301
+ function bo(e, n) {
1302
1302
  const [t, o] = $(""), [r, i] = $([]);
1303
1303
  return {
1304
1304
  data: r,
@@ -1317,7 +1317,7 @@ function Mo(e, n) {
1317
1317
  table: e.getByName(n.targetClass)
1318
1318
  };
1319
1319
  }
1320
- const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", children: e.name }), ln = oe(
1320
+ const Do = (e) => e.name, Vo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", children: e.name }), ln = oe(
1321
1321
  (e) => /* @__PURE__ */ l.jsx("h1", { children: "SingleForeignKey" })
1322
1322
  ), an = oe(
1323
1323
  ({
@@ -1327,13 +1327,13 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1327
1327
  onChange: o,
1328
1328
  freeze: r = !1
1329
1329
  }) => {
1330
- const { table: i, data: s, query: a, setQuery: u } = Mo(
1330
+ const { table: i, data: s, query: a, setQuery: u } = bo(
1331
1331
  e,
1332
1332
  n
1333
1333
  );
1334
1334
  return /* @__PURE__ */ l.jsxs(W, { gap: "sm", children: [
1335
1335
  /* @__PURE__ */ l.jsx(
1336
- Vo,
1336
+ Ao,
1337
1337
  {
1338
1338
  property: n,
1339
1339
  query: a,
@@ -1348,19 +1348,19 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1348
1348
  }
1349
1349
  ),
1350
1350
  /* @__PURE__ */ l.jsx(
1351
- Ao,
1351
+ To,
1352
1352
  {
1353
1353
  items: t.map((c) => i.get(c)).filter((c) => c != null),
1354
1354
  onDelete: (c) => {
1355
1355
  o(t.filter((f) => f !== c.id));
1356
1356
  },
1357
- render: bo,
1357
+ render: Vo,
1358
1358
  freeze: r
1359
1359
  }
1360
1360
  )
1361
1361
  ] });
1362
1362
  }
1363
- ), Vo = ({
1363
+ ), Ao = ({
1364
1364
  property: e,
1365
1365
  data: n,
1366
1366
  onSelect: t,
@@ -1406,7 +1406,7 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1406
1406
  ]
1407
1407
  }
1408
1408
  );
1409
- }, Ao = ({
1409
+ }, To = ({
1410
1410
  items: e,
1411
1411
  onDelete: n,
1412
1412
  render: t,
@@ -1419,15 +1419,15 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1419
1419
  i.push(
1420
1420
  /* @__PURE__ */ l.jsxs(L, { justify: "space-between", p: "sm", children: [
1421
1421
  t(a),
1422
- !o && /* @__PURE__ */ l.jsx(Ln, { size: "sm", onClick: () => n(a) })
1422
+ !o && /* @__PURE__ */ l.jsx(On, { size: "sm", onClick: () => n(a) })
1423
1423
  ] }, s)
1424
- ), s < e.length - 1 && i.push(/* @__PURE__ */ l.jsx(On, {}, `divider-${s}`));
1424
+ ), s < e.length - 1 && i.push(/* @__PURE__ */ l.jsx(zn, {}, `divider-${s}`));
1425
1425
  }
1426
1426
  return i;
1427
1427
  }, [e, o]);
1428
1428
  if (r.length !== 0)
1429
1429
  return /* @__PURE__ */ l.jsx(ie, { bd: "1px solid #ddd", children: r });
1430
- }, To = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1430
+ }, No = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1431
1431
  const r = Y(e, "start"), i = Y(e, "end");
1432
1432
  return /* @__PURE__ */ l.jsxs(q, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1433
1433
  /* @__PURE__ */ l.jsx(
@@ -1474,7 +1474,7 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1474
1474
  }
1475
1475
  )
1476
1476
  ] });
1477
- }, No = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1477
+ }, ko = ({ property: e, value: n, onChange: t, freeze: o = !1 }) => {
1478
1478
  const r = Y(e, "start"), i = Y(e, "end");
1479
1479
  return /* @__PURE__ */ l.jsxs(q, { gap: "sm", justify: "space-between", direction: "row", align: "center", children: [
1480
1480
  /* @__PURE__ */ l.jsx(
@@ -1529,11 +1529,11 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1529
1529
  string: Se,
1530
1530
  boolean: sn,
1531
1531
  "string[]": Se,
1532
- enum: Po,
1533
- date: Io
1534
- }, ko = "_requiredLabelLeft_l5p83_1", Lo = "_requiredLabelRight_l5p83_11", At = {
1535
- requiredLabelLeft: ko,
1536
- requiredLabelRight: Lo
1532
+ enum: Eo,
1533
+ date: Po
1534
+ }, Lo = "_requiredLabelLeft_l5p83_1", Oo = "_requiredLabelRight_l5p83_11", At = {
1535
+ requiredLabelLeft: Lo,
1536
+ requiredLabelRight: Oo
1537
1537
  }, un = ({
1538
1538
  label: e,
1539
1539
  name: n,
@@ -1557,7 +1557,7 @@ const Do = (e) => e.name, bo = (e) => /* @__PURE__ */ l.jsx(P, { size: "sm", chi
1557
1557
  }, dn = {
1558
1558
  type: "vertical",
1559
1559
  helpAlwaysVisible: !1
1560
- }, Oo = oe(
1560
+ }, zo = oe(
1561
1561
  ({
1562
1562
  store: e,
1563
1563
  record: n,
@@ -1612,7 +1612,7 @@ function cn({
1612
1612
  label: a,
1613
1613
  onChange: u
1614
1614
  }) {
1615
- return zo(n) ? /* @__PURE__ */ l.jsxs(W, { gap: 5, children: [
1615
+ return Go(n) ? /* @__PURE__ */ l.jsxs(W, { gap: 5, children: [
1616
1616
  /* @__PURE__ */ l.jsxs(A, { gutter: "sm", children: [
1617
1617
  /* @__PURE__ */ l.jsx(
1618
1618
  A.Col,
@@ -1687,11 +1687,11 @@ function cn({
1687
1687
  }
1688
1688
  ));
1689
1689
  }
1690
- function zo(e) {
1690
+ function Go(e) {
1691
1691
  return e.type === "horizontal";
1692
1692
  }
1693
1693
  const Ti = 12, Ni = (e) => {
1694
- const n = e.schema, t = _(() => e.fieldGroups.map((o, r) => Go(
1694
+ const n = e.schema, t = _(() => e.fieldGroups.map((o, r) => Ho(
1695
1695
  n,
1696
1696
  e.store,
1697
1697
  e.record,
@@ -1723,7 +1723,7 @@ const Ti = 12, Ni = (e) => {
1723
1723
  }
1724
1724
  );
1725
1725
  };
1726
- function Go(e, n, t, o, r, i) {
1726
+ function Ho(e, n, t, o, r, i) {
1727
1727
  var c, f;
1728
1728
  const s = r.fields, a = [];
1729
1729
  for (let m = 0; m < s.length; m++) {
@@ -1736,7 +1736,7 @@ function Go(e, n, t, o, r, i) {
1736
1736
  else {
1737
1737
  let C;
1738
1738
  typeof g == "object" && "prop" in g ? (C = g.prop instanceof K ? g.prop : e.allProperties[g.prop], g.args !== void 0 && (v = g.args)) : C = g instanceof K ? g : e.allProperties[g], h = /* @__PURE__ */ l.jsx(
1739
- Oo,
1739
+ zo,
1740
1740
  {
1741
1741
  store: n,
1742
1742
  record: t,
@@ -1781,7 +1781,7 @@ function gn(e, n) {
1781
1781
  );
1782
1782
  return Vt[t.datatype];
1783
1783
  }
1784
- const Ho = oe(
1784
+ const qo = oe(
1785
1785
  ({
1786
1786
  db: e,
1787
1787
  record: n,
@@ -1820,7 +1820,7 @@ const Ho = oe(
1820
1820
  );
1821
1821
  }
1822
1822
  ), ki = (e) => {
1823
- const n = e.schema, t = _(() => e.fieldGroups.map((o, r) => qo(
1823
+ const n = e.schema, t = _(() => e.fieldGroups.map((o, r) => Bo(
1824
1824
  n,
1825
1825
  e.record,
1826
1826
  r,
@@ -1852,7 +1852,7 @@ const Ho = oe(
1852
1852
  }
1853
1853
  );
1854
1854
  };
1855
- function qo(e, n, t, o, r, i) {
1855
+ function Bo(e, n, t, o, r, i) {
1856
1856
  var c, f;
1857
1857
  const s = o.fields, a = [];
1858
1858
  for (let m = 0; m < s.length; m++) {
@@ -1865,7 +1865,7 @@ function qo(e, n, t, o, r, i) {
1865
1865
  else {
1866
1866
  let C;
1867
1867
  typeof g == "object" && "prop" in g ? (C = g.prop instanceof K ? g.prop : e.allProperties[g.prop], g.args !== void 0 && (v = g.args)) : C = g instanceof K ? g : e.allProperties[g], h = /* @__PURE__ */ l.jsx(
1868
- Ho,
1868
+ qo,
1869
1869
  {
1870
1870
  db: i,
1871
1871
  record: n,
@@ -1922,10 +1922,10 @@ function G(e, n) {
1922
1922
  function Ve(e) {
1923
1923
  return e instanceof Function;
1924
1924
  }
1925
- function Bo(e) {
1925
+ function Uo(e) {
1926
1926
  return Array.isArray(e) && e.every((n) => typeof n == "number");
1927
1927
  }
1928
- function Uo(e, n) {
1928
+ function Ko(e, n) {
1929
1929
  const t = [], o = (r) => {
1930
1930
  r.forEach((i) => {
1931
1931
  t.push(i);
@@ -1935,7 +1935,7 @@ function Uo(e, n) {
1935
1935
  };
1936
1936
  return o(e), t;
1937
1937
  }
1938
- function w(e, n, t) {
1938
+ function x(e, n, t) {
1939
1939
  let o = [], r;
1940
1940
  return (i) => {
1941
1941
  let s;
@@ -1959,7 +1959,7 @@ function w(e, n, t) {
1959
1959
  return r;
1960
1960
  };
1961
1961
  }
1962
- function x(e, n, t, o) {
1962
+ function R(e, n, t, o) {
1963
1963
  return {
1964
1964
  debug: () => {
1965
1965
  var r;
@@ -1969,7 +1969,7 @@ function x(e, n, t, o) {
1969
1969
  onChange: o
1970
1970
  };
1971
1971
  }
1972
- function Ko(e, n, t, o) {
1972
+ function Yo(e, n, t, o) {
1973
1973
  const r = () => {
1974
1974
  var s;
1975
1975
  return (s = i.getValue()) != null ? s : e.options.renderFallbackValue;
@@ -1979,20 +1979,20 @@ function Ko(e, n, t, o) {
1979
1979
  column: t,
1980
1980
  getValue: () => n.getValue(o),
1981
1981
  renderValue: r,
1982
- getContext: w(() => [e, t, n, i], (s, a, u, c) => ({
1982
+ getContext: x(() => [e, t, n, i], (s, a, u, c) => ({
1983
1983
  table: s,
1984
1984
  column: a,
1985
1985
  row: u,
1986
1986
  cell: c,
1987
1987
  getValue: c.getValue,
1988
1988
  renderValue: c.renderValue
1989
- }), x(e.options, "debugCells", "cell.getContext"))
1989
+ }), R(e.options, "debugCells", "cell.getContext"))
1990
1990
  };
1991
1991
  return e._features.forEach((s) => {
1992
1992
  s.createCell == null || s.createCell(i, t, n, e);
1993
1993
  }, {}), i;
1994
1994
  }
1995
- function Yo(e, n, t, o) {
1995
+ function Wo(e, n, t, o) {
1996
1996
  var r, i;
1997
1997
  const a = {
1998
1998
  ...e._getDefaultColumnDef(),
@@ -2015,18 +2015,18 @@ function Yo(e, n, t, o) {
2015
2015
  depth: t,
2016
2016
  columnDef: a,
2017
2017
  columns: [],
2018
- getFlatColumns: w(() => [!0], () => {
2018
+ getFlatColumns: x(() => [!0], () => {
2019
2019
  var p;
2020
2020
  return [m, ...(p = m.columns) == null ? void 0 : p.flatMap((d) => d.getFlatColumns())];
2021
- }, x(e.options, "debugColumns", "column.getFlatColumns")),
2022
- getLeafColumns: w(() => [e._getOrderColumnsFn()], (p) => {
2021
+ }, R(e.options, "debugColumns", "column.getFlatColumns")),
2022
+ getLeafColumns: x(() => [e._getOrderColumnsFn()], (p) => {
2023
2023
  var d;
2024
2024
  if ((d = m.columns) != null && d.length) {
2025
2025
  let g = m.columns.flatMap((h) => h.getLeafColumns());
2026
2026
  return p(g);
2027
2027
  }
2028
2028
  return [m];
2029
- }, x(e.options, "debugColumns", "column.getLeafColumns"))
2029
+ }, R(e.options, "debugColumns", "column.getLeafColumns"))
2030
2030
  };
2031
2031
  for (const p of e._features)
2032
2032
  p.createColumn == null || p.createColumn(m, e);
@@ -2062,33 +2062,33 @@ function Tt(e, n, t) {
2062
2062
  s.createHeader == null || s.createHeader(i, e);
2063
2063
  }), i;
2064
2064
  }
2065
- const Wo = {
2065
+ const Xo = {
2066
2066
  createTable: (e) => {
2067
- e.getHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
2067
+ e.getHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o, r) => {
2068
2068
  var i, s;
2069
2069
  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 : [], c = t.filter((m) => !(o != null && o.includes(m.id)) && !(r != null && r.includes(m.id)));
2070
2070
  return Fe(n, [...a, ...c, ...u], e);
2071
- }, 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) => {
2071
+ }, R(e.options, k, "getHeaderGroups")), e.getCenterHeaderGroups = x(() => [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")), R(e.options, k, "getCenterHeaderGroups")), e.getLeftHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, o) => {
2072
2072
  var r;
2073
2073
  const i = (r = o == null ? void 0 : o.map((s) => t.find((a) => a.id === s)).filter(Boolean)) != null ? r : [];
2074
2074
  return Fe(n, i, e, "left");
2075
- }, x(e.options, k, "getLeftHeaderGroups")), e.getRightHeaderGroups = w(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
2075
+ }, R(e.options, k, "getLeftHeaderGroups")), e.getRightHeaderGroups = x(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, o) => {
2076
2076
  var r;
2077
2077
  const i = (r = o == null ? void 0 : o.map((s) => t.find((a) => a.id === s)).filter(Boolean)) != null ? r : [];
2078
2078
  return Fe(n, i, e, "right");
2079
- }, 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) => {
2079
+ }, R(e.options, k, "getRightHeaderGroups")), e.getFooterGroups = x(() => [e.getHeaderGroups()], (n) => [...n].reverse(), R(e.options, k, "getFooterGroups")), e.getLeftFooterGroups = x(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), R(e.options, k, "getLeftFooterGroups")), e.getCenterFooterGroups = x(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), R(e.options, k, "getCenterFooterGroups")), e.getRightFooterGroups = x(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), R(e.options, k, "getRightFooterGroups")), e.getFlatHeaders = x(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, k, "getFlatHeaders")), e.getLeftFlatHeaders = x(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, k, "getLeftFlatHeaders")), e.getCenterFlatHeaders = x(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, k, "getCenterFlatHeaders")), e.getRightFlatHeaders = x(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), R(e.options, k, "getRightFlatHeaders")), e.getCenterLeafHeaders = x(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
2080
2080
  var o;
2081
2081
  return !((o = t.subHeaders) != null && o.length);
2082
- }), x(e.options, k, "getCenterLeafHeaders")), e.getLeftLeafHeaders = w(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
2082
+ }), R(e.options, k, "getCenterLeafHeaders")), e.getLeftLeafHeaders = x(() => [e.getLeftFlatHeaders()], (n) => n.filter((t) => {
2083
2083
  var o;
2084
2084
  return !((o = t.subHeaders) != null && o.length);
2085
- }), x(e.options, k, "getLeftLeafHeaders")), e.getRightLeafHeaders = w(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
2085
+ }), R(e.options, k, "getLeftLeafHeaders")), e.getRightLeafHeaders = x(() => [e.getRightFlatHeaders()], (n) => n.filter((t) => {
2086
2086
  var o;
2087
2087
  return !((o = t.subHeaders) != null && o.length);
2088
- }), x(e.options, k, "getRightLeafHeaders")), e.getLeafHeaders = w(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
2088
+ }), R(e.options, k, "getRightLeafHeaders")), e.getLeafHeaders = x(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (n, t, o) => {
2089
2089
  var r, i, s, a, u, c;
2090
2090
  return [...(r = (i = n[0]) == null ? void 0 : i.headers) != null ? r : [], ...(s = (a = t[0]) == null ? void 0 : a.headers) != null ? s : [], ...(u = (c = o[0]) == null ? void 0 : c.headers) != null ? u : []].map((f) => f.getLeafHeaders()).flat();
2091
- }, x(e.options, k, "getLeafHeaders"));
2091
+ }, R(e.options, k, "getLeafHeaders"));
2092
2092
  }
2093
2093
  };
2094
2094
  function Fe(e, n, t, o) {
@@ -2110,14 +2110,14 @@ function Fe(e, n, t, o) {
2110
2110
  }, h = [];
2111
2111
  p.forEach((v) => {
2112
2112
  const C = [...h].reverse()[0], y = v.column.depth === g.depth;
2113
- let R, F = !1;
2114
- if (y && v.column.parent ? R = v.column.parent : (R = v.column, F = !0), C && (C == null ? void 0 : C.column) === R)
2113
+ let w, F = !1;
2114
+ if (y && v.column.parent ? w = v.column.parent : (w = v.column, F = !0), C && (C == null ? void 0 : C.column) === w)
2115
2115
  C.subHeaders.push(v);
2116
2116
  else {
2117
- const N = Tt(t, R, {
2118
- id: [o, d, R.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
2117
+ const N = Tt(t, w, {
2118
+ id: [o, d, w.id, v == null ? void 0 : v.id].filter(Boolean).join("_"),
2119
2119
  isPlaceholder: F,
2120
- placeholderId: F ? `${h.filter((Z) => Z.column === R).length}` : void 0,
2120
+ placeholderId: F ? `${h.filter((Z) => Z.column === w).length}` : void 0,
2121
2121
  depth: d,
2122
2122
  index: h.length
2123
2123
  });
@@ -2132,11 +2132,11 @@ function Fe(e, n, t, o) {
2132
2132
  c(f, s - 1), u.reverse();
2133
2133
  const m = (p) => p.filter((g) => g.column.getIsVisible()).map((g) => {
2134
2134
  let h = 0, v = 0, C = [0];
2135
- g.subHeaders && g.subHeaders.length ? (C = [], m(g.subHeaders).forEach((R) => {
2135
+ g.subHeaders && g.subHeaders.length ? (C = [], m(g.subHeaders).forEach((w) => {
2136
2136
  let {
2137
2137
  colSpan: F,
2138
2138
  rowSpan: N
2139
- } = R;
2139
+ } = w;
2140
2140
  h += F, C.push(N);
2141
2141
  })) : h = 1;
2142
2142
  const y = Math.min(...C);
@@ -2147,7 +2147,7 @@ function Fe(e, n, t, o) {
2147
2147
  });
2148
2148
  return m((r = (i = u[0]) == null ? void 0 : i.headers) != null ? r : []), u;
2149
2149
  }
2150
- const Xo = (e, n, t, o, r, i, s) => {
2150
+ const Jo = (e, n, t, o, r, i, s) => {
2151
2151
  let a = {
2152
2152
  id: n,
2153
2153
  index: o,
@@ -2175,7 +2175,7 @@ const Xo = (e, n, t, o, r, i, s) => {
2175
2175
  return (c = a.getValue(u)) != null ? c : e.options.renderFallbackValue;
2176
2176
  },
2177
2177
  subRows: [],
2178
- getLeafRows: () => Uo(a.subRows, (u) => u.subRows),
2178
+ getLeafRows: () => Ko(a.subRows, (u) => u.subRows),
2179
2179
  getParentRow: () => a.parentId ? e.getRow(a.parentId, !0) : void 0,
2180
2180
  getParentRows: () => {
2181
2181
  let u = [], c = a;
@@ -2186,15 +2186,15 @@ const Xo = (e, n, t, o, r, i, s) => {
2186
2186
  }
2187
2187
  return u.reverse();
2188
2188
  },
2189
- getAllCells: w(() => [e.getAllLeafColumns()], (u) => u.map((c) => Ko(e, a, c, c.id)), x(e.options, "debugRows", "getAllCells")),
2190
- _getAllCellsByColumnId: w(() => [a.getAllCells()], (u) => u.reduce((c, f) => (c[f.column.id] = f, c), {}), x(e.options, "debugRows", "getAllCellsByColumnId"))
2189
+ getAllCells: x(() => [e.getAllLeafColumns()], (u) => u.map((c) => Yo(e, a, c, c.id)), R(e.options, "debugRows", "getAllCells")),
2190
+ _getAllCellsByColumnId: x(() => [a.getAllCells()], (u) => u.reduce((c, f) => (c[f.column.id] = f, c), {}), R(e.options, "debugRows", "getAllCellsByColumnId"))
2191
2191
  };
2192
2192
  for (let u = 0; u < e._features.length; u++) {
2193
2193
  const c = e._features[u];
2194
2194
  c == null || c.createRow == null || c.createRow(a, e);
2195
2195
  }
2196
2196
  return a;
2197
- }, Jo = {
2197
+ }, Qo = {
2198
2198
  createColumn: (e, n) => {
2199
2199
  e._getFacetedRowModel = n.options.getFacetedRowModel && n.options.getFacetedRowModel(n, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : n.getPreFilteredRowModel(), e._getFacetedUniqueValues = n.options.getFacetedUniqueValues && n.options.getFacetedUniqueValues(n, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = n.options.getFacetedMinMaxValues && n.options.getFacetedMinMaxValues(n, e.id), e.getFacetedMinMaxValues = () => {
2200
2200
  if (e._getFacetedMinMaxValues)
@@ -2264,7 +2264,7 @@ const J = {
2264
2264
  function U(e) {
2265
2265
  return e == null || e === "";
2266
2266
  }
2267
- const Qo = {
2267
+ const Zo = {
2268
2268
  getDefaultColumnDef: () => ({
2269
2269
  filterFn: "auto"
2270
2270
  }),
@@ -2342,54 +2342,54 @@ const Qo = {
2342
2342
  function Nt(e, n, t) {
2343
2343
  return (e && e.autoRemove ? e.autoRemove(n, t) : !1) || typeof n > "u" || typeof n == "string" && !n;
2344
2344
  }
2345
- const Zo = (e, n, t) => t.reduce((o, r) => {
2345
+ const er = (e, n, t) => t.reduce((o, r) => {
2346
2346
  const i = r.getValue(e);
2347
2347
  return o + (typeof i == "number" ? i : 0);
2348
- }, 0), er = (e, n, t) => {
2348
+ }, 0), tr = (e, n, t) => {
2349
2349
  let o;
2350
2350
  return t.forEach((r) => {
2351
2351
  const i = r.getValue(e);
2352
2352
  i != null && (o > i || o === void 0 && i >= i) && (o = i);
2353
2353
  }), o;
2354
- }, tr = (e, n, t) => {
2354
+ }, nr = (e, n, t) => {
2355
2355
  let o;
2356
2356
  return t.forEach((r) => {
2357
2357
  const i = r.getValue(e);
2358
2358
  i != null && (o < i || o === void 0 && i >= i) && (o = i);
2359
2359
  }), o;
2360
- }, nr = (e, n, t) => {
2360
+ }, or = (e, n, t) => {
2361
2361
  let o, r;
2362
2362
  return t.forEach((i) => {
2363
2363
  const s = i.getValue(e);
2364
2364
  s != null && (o === void 0 ? s >= s && (o = r = s) : (o > s && (o = s), r < s && (r = s)));
2365
2365
  }), [o, r];
2366
- }, or = (e, n) => {
2366
+ }, rr = (e, n) => {
2367
2367
  let t = 0, o = 0;
2368
2368
  if (n.forEach((r) => {
2369
2369
  let i = r.getValue(e);
2370
2370
  i != null && (i = +i) >= i && (++t, o += i);
2371
2371
  }), t) return o / t;
2372
- }, rr = (e, n) => {
2372
+ }, ir = (e, n) => {
2373
2373
  if (!n.length)
2374
2374
  return;
2375
2375
  const t = n.map((i) => i.getValue(e));
2376
- if (!Bo(t))
2376
+ if (!Uo(t))
2377
2377
  return;
2378
2378
  if (t.length === 1)
2379
2379
  return t[0];
2380
2380
  const o = Math.floor(t.length / 2), r = t.sort((i, s) => i - s);
2381
2381
  return t.length % 2 !== 0 ? r[o] : (r[o - 1] + r[o]) / 2;
2382
- }, ir = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), sr = (e, n) => new Set(n.map((t) => t.getValue(e))).size, lr = (e, n) => n.length, Ge = {
2383
- sum: Zo,
2384
- min: er,
2385
- max: tr,
2386
- extent: nr,
2387
- mean: or,
2388
- median: rr,
2389
- unique: ir,
2390
- uniqueCount: sr,
2391
- count: lr
2392
- }, ar = {
2382
+ }, sr = (e, n) => Array.from(new Set(n.map((t) => t.getValue(e))).values()), lr = (e, n) => new Set(n.map((t) => t.getValue(e))).size, ar = (e, n) => n.length, Ge = {
2383
+ sum: er,
2384
+ min: tr,
2385
+ max: nr,
2386
+ extent: or,
2387
+ mean: rr,
2388
+ median: ir,
2389
+ unique: sr,
2390
+ uniqueCount: lr,
2391
+ count: ar
2392
+ }, ur = {
2393
2393
  getDefaultColumnDef: () => ({
2394
2394
  aggregatedCell: (e) => {
2395
2395
  var n, t;
@@ -2456,13 +2456,13 @@ const Zo = (e, n, t) => t.reduce((o, r) => {
2456
2456
  };
2457
2457
  }
2458
2458
  };
2459
- function ur(e, n, t) {
2459
+ function dr(e, n, t) {
2460
2460
  if (!(n != null && n.length) || !t)
2461
2461
  return e;
2462
2462
  const o = e.filter((i) => !n.includes(i.id));
2463
2463
  return t === "remove" ? o : [...n.map((i) => e.find((s) => s.id === i)).filter(Boolean), ...o];
2464
2464
  }
2465
- const dr = {
2465
+ const cr = {
2466
2466
  getInitialState: (e) => ({
2467
2467
  columnOrder: [],
2468
2468
  ...e
@@ -2471,7 +2471,7 @@ const dr = {
2471
2471
  onColumnOrderChange: G("columnOrder", e)
2472
2472
  }),
2473
2473
  createColumn: (e, n) => {
2474
- e.getIndex = w((t) => [ve(n, t)], (t) => t.findIndex((o) => o.id === e.id), x(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2474
+ e.getIndex = x((t) => [ve(n, t)], (t) => t.findIndex((o) => o.id === e.id), R(n.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
2475
2475
  var o;
2476
2476
  return ((o = ve(n, t)[0]) == null ? void 0 : o.id) === e.id;
2477
2477
  }, e.getIsLastColumn = (t) => {
@@ -2484,7 +2484,7 @@ const dr = {
2484
2484
  e.setColumnOrder = (n) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(n), e.resetColumnOrder = (n) => {
2485
2485
  var t;
2486
2486
  e.setColumnOrder(n ? [] : (t = e.initialState.columnOrder) != null ? t : []);
2487
- }, e._getOrderColumnsFn = w(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, o) => (r) => {
2487
+ }, e._getOrderColumnsFn = x(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (n, t, o) => (r) => {
2488
2488
  let i = [];
2489
2489
  if (!(n != null && n.length))
2490
2490
  i = r;
@@ -2496,13 +2496,13 @@ const dr = {
2496
2496
  }
2497
2497
  i = [...i, ...a];
2498
2498
  }
2499
- return ur(i, t, o);
2500
- }, x(e.options, "debugTable", "_getOrderColumnsFn"));
2499
+ return dr(i, t, o);
2500
+ }, R(e.options, "debugTable", "_getOrderColumnsFn"));
2501
2501
  }
2502
2502
  }, He = () => ({
2503
2503
  left: [],
2504
2504
  right: []
2505
- }), cr = {
2505
+ }), gr = {
2506
2506
  getInitialState: (e) => ({
2507
2507
  columnPinning: He(),
2508
2508
  ...e
@@ -2550,16 +2550,16 @@ const dr = {
2550
2550
  };
2551
2551
  },
2552
2552
  createRow: (e, n) => {
2553
- e.getCenterVisibleCells = w(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
2553
+ e.getCenterVisibleCells = x(() => [e._getAllVisibleCells(), n.getState().columnPinning.left, n.getState().columnPinning.right], (t, o, r) => {
2554
2554
  const i = [...o ?? [], ...r ?? []];
2555
2555
  return t.filter((s) => !i.includes(s.column.id));
2556
- }, 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) => ({
2556
+ }, R(n.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = x(() => [e._getAllVisibleCells(), n.getState().columnPinning.left], (t, o) => (o ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
2557
2557
  ...i,
2558
2558
  position: "left"
2559
- })), 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) => ({
2559
+ })), R(n.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = x(() => [e._getAllVisibleCells(), n.getState().columnPinning.right], (t, o) => (o ?? []).map((i) => t.find((s) => s.column.id === i)).filter(Boolean).map((i) => ({
2560
2560
  ...i,
2561
2561
  position: "right"
2562
- })), x(n.options, "debugRows", "getRightVisibleCells"));
2562
+ })), R(n.options, "debugRows", "getRightVisibleCells"));
2563
2563
  },
2564
2564
  createTable: (e) => {
2565
2565
  e.setColumnPinning = (n) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(n), e.resetColumnPinning = (n) => {
@@ -2573,13 +2573,13 @@ const dr = {
2573
2573
  return !!((r = o.left) != null && r.length || (i = o.right) != null && i.length);
2574
2574
  }
2575
2575
  return !!((t = o[n]) != null && t.length);
2576
- }, e.getLeftLeafColumns = w(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), x(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = w(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), x(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = w(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
2576
+ }, e.getLeftLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), R(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (n, t) => (t ?? []).map((o) => n.find((r) => r.id === o)).filter(Boolean), R(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = x(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, o) => {
2577
2577
  const r = [...t ?? [], ...o ?? []];
2578
2578
  return n.filter((i) => !r.includes(i.id));
2579
- }, x(e.options, "debugColumns", "getCenterLeafColumns"));
2579
+ }, R(e.options, "debugColumns", "getCenterLeafColumns"));
2580
2580
  }
2581
2581
  };
2582
- function gr(e) {
2582
+ function fr(e) {
2583
2583
  return e || (typeof document < "u" ? document : null);
2584
2584
  }
2585
2585
  const Ie = {
@@ -2593,7 +2593,7 @@ const Ie = {
2593
2593
  deltaPercentage: null,
2594
2594
  isResizingColumn: !1,
2595
2595
  columnSizingStart: []
2596
- }), fr = {
2596
+ }), mr = {
2597
2597
  getDefaultColumnDef: () => Ie,
2598
2598
  getInitialState: (e) => ({
2599
2599
  columnSizing: {},
@@ -2611,7 +2611,7 @@ const Ie = {
2611
2611
  var t, o, r;
2612
2612
  const i = n.getState().columnSizing[e.id];
2613
2613
  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);
2614
- }, 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 = () => {
2614
+ }, e.getStart = x((t) => [t, ve(n, t), n.getState().columnSizing], (t, o) => o.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), R(n.options, "debugColumns", "getStart")), e.getAfter = x((t) => [t, ve(n, t), n.getState().columnSizing], (t, o) => o.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), R(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
2615
2615
  n.setColumnSizing((t) => {
2616
2616
  let {
2617
2617
  [e.id]: o,
@@ -2648,19 +2648,19 @@ const Ie = {
2648
2648
  if (!o || !r || (i.persist == null || i.persist(), Be(i) && i.touches && i.touches.length > 1))
2649
2649
  return;
2650
2650
  const s = e.getSize(), a = e ? e.getLeafHeaders().map((C) => [C.column.id, C.column.getSize()]) : [[o.id, o.getSize()]], u = Be(i) ? Math.round(i.touches[0].clientX) : i.clientX, c = {}, f = (C, y) => {
2651
- typeof y == "number" && (n.setColumnSizingInfo((R) => {
2651
+ typeof y == "number" && (n.setColumnSizingInfo((w) => {
2652
2652
  var F, N;
2653
- const Z = n.options.columnResizeDirection === "rtl" ? -1 : 1, I = (y - ((F = R == null ? void 0 : R.startOffset) != null ? F : 0)) * Z, b = Math.max(I / ((N = R == null ? void 0 : R.startSize) != null ? N : 0), -0.999999);
2654
- return R.columnSizingStart.forEach((z) => {
2653
+ const Z = n.options.columnResizeDirection === "rtl" ? -1 : 1, I = (y - ((F = w == null ? void 0 : w.startOffset) != null ? F : 0)) * Z, D = Math.max(I / ((N = w == null ? void 0 : w.startSize) != null ? N : 0), -0.999999);
2654
+ return w.columnSizingStart.forEach((z) => {
2655
2655
  let [Ae, we] = z;
2656
- c[Ae] = Math.round(Math.max(we + we * b, 0) * 100) / 100;
2656
+ c[Ae] = Math.round(Math.max(we + we * D, 0) * 100) / 100;
2657
2657
  }), {
2658
- ...R,
2658
+ ...w,
2659
2659
  deltaOffset: I,
2660
- deltaPercentage: b
2660
+ deltaPercentage: D
2661
2661
  };
2662
- }), (n.options.columnResizeMode === "onChange" || C === "end") && n.setColumnSizing((R) => ({
2663
- ...R,
2662
+ }), (n.options.columnResizeMode === "onChange" || C === "end") && n.setColumnSizing((w) => ({
2663
+ ...w,
2664
2664
  ...c
2665
2665
  })));
2666
2666
  }, m = (C) => f("move", C), p = (C) => {
@@ -2673,7 +2673,7 @@ const Ie = {
2673
2673
  deltaPercentage: null,
2674
2674
  columnSizingStart: []
2675
2675
  }));
2676
- }, d = gr(t), g = {
2676
+ }, d = fr(t), g = {
2677
2677
  moveHandler: (C) => m(C.clientX),
2678
2678
  upHandler: (C) => {
2679
2679
  d == null || d.removeEventListener("mousemove", g.moveHandler), d == null || d.removeEventListener("mouseup", g.upHandler), p(C.clientX);
@@ -2684,7 +2684,7 @@ const Ie = {
2684
2684
  var y;
2685
2685
  d == null || d.removeEventListener("touchmove", h.moveHandler), d == null || d.removeEventListener("touchend", h.upHandler), C.cancelable && (C.preventDefault(), C.stopPropagation()), p((y = C.touches[0]) == null ? void 0 : y.clientX);
2686
2686
  }
2687
- }, v = mr() ? {
2687
+ }, v = pr() ? {
2688
2688
  passive: !1
2689
2689
  } : !1;
2690
2690
  Be(i) ? (d == null || d.addEventListener("touchmove", h.moveHandler, v), d == null || d.addEventListener("touchend", h.upHandler, v)) : (d == null || d.addEventListener("mousemove", g.moveHandler, v), d == null || d.addEventListener("mouseup", g.upHandler, v)), n.setColumnSizingInfo((C) => ({
@@ -2722,7 +2722,7 @@ const Ie = {
2722
2722
  }
2723
2723
  };
2724
2724
  let Pe = null;
2725
- function mr() {
2725
+ function pr() {
2726
2726
  if (typeof Pe == "boolean") return Pe;
2727
2727
  let e = !1;
2728
2728
  try {
@@ -2741,7 +2741,7 @@ function mr() {
2741
2741
  function Be(e) {
2742
2742
  return e.type === "touchstart";
2743
2743
  }
2744
- const pr = {
2744
+ const hr = {
2745
2745
  getInitialState: (e) => ({
2746
2746
  columnVisibility: {},
2747
2747
  ...e
@@ -2767,10 +2767,10 @@ const pr = {
2767
2767
  };
2768
2768
  },
2769
2769
  createRow: (e, n) => {
2770
- e._getAllVisibleCells = w(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), x(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = w(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], x(n.options, "debugRows", "getVisibleCells"));
2770
+ e._getAllVisibleCells = x(() => [e.getAllCells(), n.getState().columnVisibility], (t) => t.filter((o) => o.column.getIsVisible()), R(n.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = x(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, o, r) => [...t, ...o, ...r], R(n.options, "debugRows", "getVisibleCells"));
2771
2771
  },
2772
2772
  createTable: (e) => {
2773
- const n = (t, o) => w(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), x(e.options, "debugColumns", t));
2773
+ const n = (t, o) => x(() => [o(), o().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), R(e.options, "debugColumns", t));
2774
2774
  e.getVisibleFlatColumns = n("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = n("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = n("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = n("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = n("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
2775
2775
  var o;
2776
2776
  e.setColumnVisibility(t ? {} : (o = e.initialState.columnVisibility) != null ? o : {});
@@ -2789,14 +2789,14 @@ const pr = {
2789
2789
  function ve(e, n) {
2790
2790
  return n ? n === "center" ? e.getCenterVisibleLeafColumns() : n === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
2791
2791
  }
2792
- const hr = {
2792
+ const Sr = {
2793
2793
  createTable: (e) => {
2794
2794
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
2795
2795
  if (e._getGlobalFacetedMinMaxValues)
2796
2796
  return e._getGlobalFacetedMinMaxValues();
2797
2797
  };
2798
2798
  }
2799
- }, Sr = {
2799
+ }, vr = {
2800
2800
  getInitialState: (e) => ({
2801
2801
  globalFilter: void 0,
2802
2802
  ...e
@@ -2829,7 +2829,7 @@ const hr = {
2829
2829
  e.setGlobalFilter(n ? void 0 : e.initialState.globalFilter);
2830
2830
  };
2831
2831
  }
2832
- }, vr = {
2832
+ }, Cr = {
2833
2833
  getInitialState: (e) => ({
2834
2834
  expanded: {},
2835
2835
  ...e
@@ -2919,7 +2919,7 @@ const hr = {
2919
2919
  }, tt = 0, nt = 10, Ue = () => ({
2920
2920
  pageIndex: tt,
2921
2921
  pageSize: nt
2922
- }), Cr = {
2922
+ }), wr = {
2923
2923
  getInitialState: (e) => ({
2924
2924
  ...e,
2925
2925
  pagination: {
@@ -2983,10 +2983,10 @@ const hr = {
2983
2983
  ...r,
2984
2984
  pageCount: s
2985
2985
  };
2986
- }), e.getPageOptions = w(() => [e.getPageCount()], (o) => {
2986
+ }), e.getPageOptions = x(() => [e.getPageCount()], (o) => {
2987
2987
  let r = [];
2988
2988
  return o && o > 0 && (r = [...new Array(o)].fill(null).map((i, s) => s)), r;
2989
- }, x(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
2989
+ }, R(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
2990
2990
  const {
2991
2991
  pageIndex: o
2992
2992
  } = e.getState().pagination, r = e.getPageCount();
@@ -3002,7 +3002,7 @@ const hr = {
3002
3002
  }, Ke = () => ({
3003
3003
  top: [],
3004
3004
  bottom: []
3005
- }), wr = {
3005
+ }), xr = {
3006
3006
  getInitialState: (e) => ({
3007
3007
  rowPinning: Ke(),
3008
3008
  ...e
@@ -3098,12 +3098,12 @@ const hr = {
3098
3098
  ...s,
3099
3099
  position: o
3100
3100
  }));
3101
- }, 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) => {
3101
+ }, e.getTopRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top], (n, t) => e._getPinnedRows(n, t, "top"), R(e.options, "debugRows", "getTopRows")), e.getBottomRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (n, t) => e._getPinnedRows(n, t, "bottom"), R(e.options, "debugRows", "getBottomRows")), e.getCenterRows = x(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (n, t, o) => {
3102
3102
  const r = /* @__PURE__ */ new Set([...t ?? [], ...o ?? []]);
3103
3103
  return n.filter((i) => !r.has(i.id));
3104
- }, x(e.options, "debugRows", "getCenterRows"));
3104
+ }, R(e.options, "debugRows", "getCenterRows"));
3105
3105
  }
3106
- }, xr = {
3106
+ }, Rr = {
3107
3107
  getInitialState: (e) => ({
3108
3108
  rowSelection: {},
3109
3109
  ...e
@@ -3140,19 +3140,19 @@ const hr = {
3140
3140
  return e.getRowModel().rows.forEach((i) => {
3141
3141
  ot(r, i.id, o, !0, e);
3142
3142
  }), r;
3143
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = w(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3143
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = x(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3144
3144
  rows: [],
3145
3145
  flatRows: [],
3146
3146
  rowsById: {}
3147
- }, x(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = w(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3147
+ }, R(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = x(() => [e.getState().rowSelection, e.getFilteredRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3148
3148
  rows: [],
3149
3149
  flatRows: [],
3150
3150
  rowsById: {}
3151
- }, x(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = w(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3151
+ }, R(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = x(() => [e.getState().rowSelection, e.getSortedRowModel()], (n, t) => Object.keys(n).length ? Ye(e, t) : {
3152
3152
  rows: [],
3153
3153
  flatRows: [],
3154
3154
  rowsById: {}
3155
- }, x(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
3155
+ }, R(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
3156
3156
  const n = e.getFilteredRowModel().flatRows, {
3157
3157
  rowSelection: t
3158
3158
  } = e.getState();
@@ -3259,10 +3259,10 @@ function rt(e, n, t) {
3259
3259
  }
3260
3260
  }), r ? "all" : i ? "some" : !1;
3261
3261
  }
3262
- const it = /([0-9]+)/gm, Rr = (e, n, t) => xn(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), yr = (e, n, t) => xn(ne(e.getValue(t)), ne(n.getValue(t))), jr = (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))), Fr = (e, n, t) => {
3262
+ const it = /([0-9]+)/gm, yr = (e, n, t) => xn(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), jr = (e, n, t) => xn(ne(e.getValue(t)), ne(n.getValue(t))), _r = (e, n, t) => St(ne(e.getValue(t)).toLowerCase(), ne(n.getValue(t)).toLowerCase()), Fr = (e, n, t) => St(ne(e.getValue(t)), ne(n.getValue(t))), Ir = (e, n, t) => {
3263
3263
  const o = e.getValue(t), r = n.getValue(t);
3264
3264
  return o > r ? 1 : o < r ? -1 : 0;
3265
- }, Ir = (e, n, t) => St(e.getValue(t), n.getValue(t));
3265
+ }, Pr = (e, n, t) => St(e.getValue(t), n.getValue(t));
3266
3266
  function St(e, n) {
3267
3267
  return e === n ? 0 : e > n ? 1 : -1;
3268
3268
  }
@@ -3290,13 +3290,13 @@ function xn(e, n) {
3290
3290
  return t.length - o.length;
3291
3291
  }
3292
3292
  const pe = {
3293
- alphanumeric: Rr,
3294
- alphanumericCaseSensitive: yr,
3295
- text: jr,
3296
- textCaseSensitive: _r,
3297
- datetime: Fr,
3298
- basic: Ir
3299
- }, Pr = {
3293
+ alphanumeric: yr,
3294
+ alphanumericCaseSensitive: jr,
3295
+ text: _r,
3296
+ textCaseSensitive: Fr,
3297
+ datetime: Ir,
3298
+ basic: Pr
3299
+ }, Er = {
3300
3300
  getInitialState: (e) => ({
3301
3301
  sorting: [],
3302
3302
  ...e
@@ -3385,30 +3385,30 @@ const pe = {
3385
3385
  e.setSorting(n ? [] : (t = (o = e.initialState) == null ? void 0 : o.sorting) != null ? t : []);
3386
3386
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
3387
3387
  }
3388
- }, Er = [
3389
- Wo,
3390
- pr,
3391
- dr,
3388
+ }, $r = [
3389
+ Xo,
3390
+ hr,
3392
3391
  cr,
3393
- Jo,
3392
+ gr,
3394
3393
  Qo,
3395
- hr,
3396
- //depends on ColumnFaceting
3394
+ Zo,
3397
3395
  Sr,
3396
+ //depends on ColumnFaceting
3397
+ vr,
3398
3398
  //depends on ColumnFiltering
3399
- Pr,
3400
- ar,
3399
+ Er,
3400
+ ur,
3401
3401
  //depends on RowSorting
3402
- vr,
3403
3402
  Cr,
3404
3403
  wr,
3405
3404
  xr,
3406
- fr
3405
+ Rr,
3406
+ mr
3407
3407
  ];
3408
- function $r(e) {
3408
+ function Mr(e) {
3409
3409
  var n, t;
3410
3410
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
3411
- const o = [...Er, ...(n = e._features) != null ? n : []];
3411
+ const o = [...$r, ...(n = e._features) != null ? n : []];
3412
3412
  let r = {
3413
3413
  _features: o
3414
3414
  };
@@ -3468,7 +3468,7 @@ function $r(e) {
3468
3468
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${p}`) : new Error();
3469
3469
  return g;
3470
3470
  },
3471
- _getDefaultColumnDef: w(() => [r.options.defaultColumn], (p) => {
3471
+ _getDefaultColumnDef: x(() => [r.options.defaultColumn], (p) => {
3472
3472
  var d;
3473
3473
  return p = (d = p) != null ? d : {}, {
3474
3474
  header: (g) => {
@@ -3483,23 +3483,23 @@ function $r(e) {
3483
3483
  ...r._features.reduce((g, h) => Object.assign(g, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
3484
3484
  ...p
3485
3485
  };
3486
- }, x(e, "debugColumns", "_getDefaultColumnDef")),
3486
+ }, R(e, "debugColumns", "_getDefaultColumnDef")),
3487
3487
  _getColumnDefs: () => r.options.columns,
3488
- getAllColumns: w(() => [r._getColumnDefs()], (p) => {
3488
+ getAllColumns: x(() => [r._getColumnDefs()], (p) => {
3489
3489
  const d = function(g, h, v) {
3490
3490
  return v === void 0 && (v = 0), g.map((C) => {
3491
- const y = Yo(r, C, v, h), R = C;
3492
- return y.columns = R.columns ? d(R.columns, y, v + 1) : [], y;
3491
+ const y = Wo(r, C, v, h), w = C;
3492
+ return y.columns = w.columns ? d(w.columns, y, v + 1) : [], y;
3493
3493
  });
3494
3494
  };
3495
3495
  return d(p);
3496
- }, x(e, "debugColumns", "getAllColumns")),
3497
- getAllFlatColumns: w(() => [r.getAllColumns()], (p) => p.flatMap((d) => d.getFlatColumns()), x(e, "debugColumns", "getAllFlatColumns")),
3498
- _getAllFlatColumnsById: w(() => [r.getAllFlatColumns()], (p) => p.reduce((d, g) => (d[g.id] = g, d), {}), x(e, "debugColumns", "getAllFlatColumnsById")),
3499
- getAllLeafColumns: w(() => [r.getAllColumns(), r._getOrderColumnsFn()], (p, d) => {
3496
+ }, R(e, "debugColumns", "getAllColumns")),
3497
+ getAllFlatColumns: x(() => [r.getAllColumns()], (p) => p.flatMap((d) => d.getFlatColumns()), R(e, "debugColumns", "getAllFlatColumns")),
3498
+ _getAllFlatColumnsById: x(() => [r.getAllFlatColumns()], (p) => p.reduce((d, g) => (d[g.id] = g, d), {}), R(e, "debugColumns", "getAllFlatColumnsById")),
3499
+ getAllLeafColumns: x(() => [r.getAllColumns(), r._getOrderColumnsFn()], (p, d) => {
3500
3500
  let g = p.flatMap((h) => h.getLeafColumns());
3501
3501
  return d(g);
3502
- }, x(e, "debugColumns", "getAllLeafColumns")),
3502
+ }, R(e, "debugColumns", "getAllLeafColumns")),
3503
3503
  getColumn: (p) => {
3504
3504
  const d = r._getAllFlatColumnsById()[p];
3505
3505
  return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${p}' does not exist.`), d;
@@ -3513,7 +3513,7 @@ function $r(e) {
3513
3513
  return r;
3514
3514
  }
3515
3515
  function Rn() {
3516
- return (e) => w(() => [e.options.data], (n) => {
3516
+ return (e) => x(() => [e.options.data], (n) => {
3517
3517
  const t = {
3518
3518
  rows: [],
3519
3519
  flatRows: [],
@@ -3522,7 +3522,7 @@ function Rn() {
3522
3522
  i === void 0 && (i = 0);
3523
3523
  const a = [];
3524
3524
  for (let c = 0; c < r.length; c++) {
3525
- const f = Xo(e, e._getRowId(r[c], c, s), r[c], c, i, void 0, s == null ? void 0 : s.id);
3525
+ const f = Jo(e, e._getRowId(r[c], c, s), r[c], c, i, void 0, s == null ? void 0 : s.id);
3526
3526
  if (t.flatRows.push(f), t.rowsById[f.id] = f, a.push(f), e.options.getSubRows) {
3527
3527
  var u;
3528
3528
  f.originalSubRows = e.options.getSubRows(r[c], c), (u = f.originalSubRows) != null && u.length && (f.subRows = o(f.originalSubRows, i + 1, f));
@@ -3531,9 +3531,9 @@ function Rn() {
3531
3531
  return a;
3532
3532
  };
3533
3533
  return t.rows = o(n), t;
3534
- }, x(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
3534
+ }, R(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
3535
3535
  }
3536
- function Mr(e) {
3536
+ function br(e) {
3537
3537
  const n = [], t = (o) => {
3538
3538
  var r;
3539
3539
  n.push(o), (r = o.subRows) != null && r.length && o.getIsExpanded() && o.subRows.forEach(t);
@@ -3545,7 +3545,7 @@ function Mr(e) {
3545
3545
  };
3546
3546
  }
3547
3547
  function Dr(e) {
3548
- return (n) => w(() => [n.getState().pagination, n.getPrePaginationRowModel(), n.options.paginateExpandedRows ? void 0 : n.getState().expanded], (t, o) => {
3548
+ return (n) => x(() => [n.getState().pagination, n.getPrePaginationRowModel(), n.options.paginateExpandedRows ? void 0 : n.getState().expanded], (t, o) => {
3549
3549
  if (!o.rows.length)
3550
3550
  return o;
3551
3551
  const {
@@ -3564,7 +3564,7 @@ function Dr(e) {
3564
3564
  rows: s,
3565
3565
  flatRows: a,
3566
3566
  rowsById: u
3567
- } : m = Mr({
3567
+ } : m = br({
3568
3568
  rows: s,
3569
3569
  flatRows: a,
3570
3570
  rowsById: u
@@ -3573,7 +3573,7 @@ function Dr(e) {
3573
3573
  m.flatRows.push(d), d.subRows.length && d.subRows.forEach(p);
3574
3574
  };
3575
3575
  return m.rows.forEach(p), m;
3576
- }, x(n.options, "debugTable", "getPaginationRowModel"));
3576
+ }, R(n.options, "debugTable", "getPaginationRowModel"));
3577
3577
  }
3578
3578
  /**
3579
3579
  * react-table
@@ -3586,18 +3586,18 @@ function Dr(e) {
3586
3586
  * @license MIT
3587
3587
  */
3588
3588
  function kt(e, n) {
3589
- return e ? br(e) ? /* @__PURE__ */ Xe.createElement(e, n) : e : null;
3590
- }
3591
- function br(e) {
3592
- return Vr(e) || typeof e == "function" || Ar(e);
3589
+ return e ? Vr(e) ? /* @__PURE__ */ Xe.createElement(e, n) : e : null;
3593
3590
  }
3594
3591
  function Vr(e) {
3592
+ return Ar(e) || typeof e == "function" || Tr(e);
3593
+ }
3594
+ function Ar(e) {
3595
3595
  return typeof e == "function" && (() => {
3596
3596
  const n = Object.getPrototypeOf(e);
3597
3597
  return n.prototype && n.prototype.isReactComponent;
3598
3598
  })();
3599
3599
  }
3600
- function Ar(e) {
3600
+ function Tr(e) {
3601
3601
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
3602
3602
  }
3603
3603
  function yn(e) {
@@ -3610,7 +3610,7 @@ function yn(e) {
3610
3610
  renderFallbackValue: null,
3611
3611
  ...e
3612
3612
  }, [t] = Xe.useState(() => ({
3613
- current: $r(n)
3613
+ current: Mr(n)
3614
3614
  })), [o, r] = Xe.useState(() => t.current.initialState);
3615
3615
  return t.current.setOptions((i) => ({
3616
3616
  ...i,
@@ -3636,7 +3636,7 @@ const jn = ({
3636
3636
  H,
3637
3637
  {
3638
3638
  variant: "light",
3639
- leftSection: /* @__PURE__ */ l.jsx(Kn, { size: 16, stroke: 1.5 }),
3639
+ leftSection: /* @__PURE__ */ l.jsx(Yn, { size: 16, stroke: 1.5 }),
3640
3640
  size: o,
3641
3641
  onClick: e.add,
3642
3642
  children: "Add"
@@ -3645,7 +3645,7 @@ const jn = ({
3645
3645
  (e == null ? void 0 : e.edit) && /* @__PURE__ */ l.jsx(
3646
3646
  H,
3647
3647
  {
3648
- leftSection: /* @__PURE__ */ l.jsx(Yn, { size: 16, stroke: 1.5 }),
3648
+ leftSection: /* @__PURE__ */ l.jsx(Wn, { size: 16, stroke: 1.5 }),
3649
3649
  size: o,
3650
3650
  variant: "light",
3651
3651
  onClick: () => e.edit !== void 0 && e.edit(t[0]),
@@ -3656,7 +3656,7 @@ const jn = ({
3656
3656
  (e == null ? void 0 : e.reload) && /* @__PURE__ */ l.jsx(
3657
3657
  H,
3658
3658
  {
3659
- leftSection: /* @__PURE__ */ l.jsx(Wn, { size: 16, stroke: 1.5 }),
3659
+ leftSection: /* @__PURE__ */ l.jsx(Xn, { size: 16, stroke: 1.5 }),
3660
3660
  size: o,
3661
3661
  onClick: n,
3662
3662
  variant: "light",
@@ -3666,7 +3666,7 @@ const jn = ({
3666
3666
  (e == null ? void 0 : e.import) && /* @__PURE__ */ l.jsx(
3667
3667
  H,
3668
3668
  {
3669
- leftSection: /* @__PURE__ */ l.jsx(Xn, { size: 16, stroke: 1.5 }),
3669
+ leftSection: /* @__PURE__ */ l.jsx(Jn, { size: 16, stroke: 1.5 }),
3670
3670
  size: o,
3671
3671
  variant: "light",
3672
3672
  onClick: e.import,
@@ -3676,17 +3676,17 @@ const jn = ({
3676
3676
  (e == null ? void 0 : e.export) && /* @__PURE__ */ l.jsx(
3677
3677
  H,
3678
3678
  {
3679
- leftSection: /* @__PURE__ */ l.jsx(Jn, { size: 16, stroke: 1.5 }),
3679
+ leftSection: /* @__PURE__ */ l.jsx(Qn, { size: 16, stroke: 1.5 }),
3680
3680
  size: o,
3681
3681
  variant: "light",
3682
3682
  onClick: e.export,
3683
3683
  children: "Export"
3684
3684
  }
3685
3685
  )
3686
- ] }), _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), Tr = (e) => e !== void 0 && (e.add !== void 0 || e.edit !== void 0 || e.delete !== void 0 || e.export !== void 0), Nr = "__selectcol__", { Thead: kr, Tr: We, Th: Lr, Tbody: Or, Td: Lt } = Yt, Fn = (e) => {
3686
+ ] }), _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), Nr = "__selectcol__", { Thead: kr, Tr: We, Th: Lr, Tbody: Or, Td: Lt } = Yt, In = (e) => {
3687
3687
  let n;
3688
3688
  e.table.getRowCount() === 0 ? n = /* @__PURE__ */ l.jsx(We, { children: /* @__PURE__ */ l.jsx(Lt, { colSpan: e.table.getVisibleLeafColumns().length, children: /* @__PURE__ */ l.jsxs(W, { justify: "center", align: "center", gap: "xs", children: [
3689
- /* @__PURE__ */ l.jsx(Qn, { color: "var(--mantine-color-dimmed)" }),
3689
+ /* @__PURE__ */ l.jsx(Zn, { color: "var(--mantine-color-dimmed)" }),
3690
3690
  /* @__PURE__ */ l.jsx(P, { c: "dimmed", fz: "sm", children: "No records found." })
3691
3691
  ] }) }) }, "empty-row") : n = e.table.getRowModel().rows.map((i, s) => {
3692
3692
  var u, c;
@@ -3742,7 +3742,7 @@ const jn = ({
3742
3742
  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 });
3743
3743
  }, zr = "_pageSizeSelectorActive_1wv6j_1", Gr = {
3744
3744
  pageSizeSelectorActive: zr
3745
- }, In = ({
3745
+ }, Pn = ({
3746
3746
  total: e,
3747
3747
  pageIndex: n,
3748
3748
  pageSize: t,
@@ -3750,7 +3750,7 @@ const jn = ({
3750
3750
  onUpdatePagination: r
3751
3751
  }) => {
3752
3752
  const i = /* @__PURE__ */ l.jsx(
3753
- zn,
3753
+ Gn,
3754
3754
  {
3755
3755
  size: "sm",
3756
3756
  total: e,
@@ -3789,12 +3789,12 @@ function Hr({
3789
3789
  onChange: o
3790
3790
  }) {
3791
3791
  return /* @__PURE__ */ l.jsxs(ae, { withinPortal: !0, withArrow: !0, offset: 2, children: [
3792
- /* @__PURE__ */ l.jsx(Gn, { children: /* @__PURE__ */ l.jsx(
3792
+ /* @__PURE__ */ l.jsx(Hn, { children: /* @__PURE__ */ l.jsx(
3793
3793
  H,
3794
3794
  {
3795
3795
  size: e,
3796
3796
  variant: "default",
3797
- rightSection: /* @__PURE__ */ l.jsx(Zn, { size: 16, stroke: 1.5 }),
3797
+ rightSection: /* @__PURE__ */ l.jsx(eo, { size: 16, stroke: 1.5 }),
3798
3798
  style: [
3799
3799
  { fontWeight: "normal" },
3800
3800
  (r) => ({
@@ -3811,10 +3811,10 @@ function Hr({
3811
3811
  children: t
3812
3812
  }
3813
3813
  ) }),
3814
- /* @__PURE__ */ l.jsx(Hn, { children: n.map((r) => {
3814
+ /* @__PURE__ */ l.jsx(qn, { children: n.map((r) => {
3815
3815
  const i = r === t;
3816
3816
  return /* @__PURE__ */ l.jsx(
3817
- qn,
3817
+ Bn,
3818
3818
  {
3819
3819
  className: i ? Gr.pageSizeSelectorActive : void 0,
3820
3820
  style: [
@@ -3843,25 +3843,25 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
3843
3843
  total: 0
3844
3844
  }), [o, r] = $(!1), [i, s] = $(
3845
3845
  {}
3846
- ), a = (R) => {
3847
- r(!0), e.getData(R).then((F) => {
3846
+ ), a = (w) => {
3847
+ r(!0), e.getData(w).then((F) => {
3848
3848
  t(F), r(!1);
3849
3849
  });
3850
- }, u = (R, F) => {
3850
+ }, u = (w, F) => {
3851
3851
  const N = {
3852
3852
  ...e.query.query,
3853
3853
  limit: F,
3854
- offset: R * F
3854
+ offset: w * F
3855
3855
  };
3856
3856
  e.query.update(N);
3857
3857
  }, [c, f, m] = _(() => {
3858
- const R = e.query.query.limit, F = Math.floor(
3858
+ const w = e.query.query.limit, F = Math.floor(
3859
3859
  (e.query.query.offset || 0) / e.query.query.limit
3860
3860
  ), N = Math.ceil(n.total / e.query.query.limit);
3861
- return [R, F, N];
3861
+ return [w, F, N];
3862
3862
  }, [e.query.query.limit, e.query.query.offset, n.total]);
3863
- be(() => (n.total == 0 && a(e.query.query), e.query.subscribe(a)), [e.query]);
3864
- const p = _(() => Object.keys(i).filter((R) => i[R]).map((R) => e.normalizeRowId(R)), [i]);
3863
+ De(() => (n.total == 0 && a(e.query.query), e.query.subscribe(a)), [e.query]);
3864
+ const p = _(() => Object.keys(i).filter((w) => i[w]).map((w) => e.normalizeRowId(w)), [i]);
3865
3865
  let d, g;
3866
3866
  _n(e.actions) && (d = /* @__PURE__ */ l.jsx(
3867
3867
  jn,
@@ -3873,8 +3873,8 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
3873
3873
  ));
3874
3874
  const h = ((C = e.pagination) == null ? void 0 : C.positions) || qr;
3875
3875
  if (h.size > 0) {
3876
- const R = /* @__PURE__ */ l.jsx(
3877
- In,
3876
+ const w = /* @__PURE__ */ l.jsx(
3877
+ Pn,
3878
3878
  {
3879
3879
  total: m,
3880
3880
  pageIndex: f,
@@ -3885,9 +3885,9 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
3885
3885
  );
3886
3886
  h.has("topRight") && (d !== void 0 ? d = /* @__PURE__ */ l.jsxs(L, { justify: "space-between", gap: "sm", children: [
3887
3887
  d,
3888
- R
3889
- ] }) : d = /* @__PURE__ */ l.jsx(q, { justify: "flex-end", children: R })), (h.has("bottomRight") || h.has("bottomLeft") || h.has("bottomCenter")) && (h.has("bottomLeft") ? g = /* @__PURE__ */ l.jsxs(q, { justify: "space-between", align: "center", children: [
3890
- R,
3888
+ w
3889
+ ] }) : d = /* @__PURE__ */ l.jsx(q, { justify: "flex-end", children: w })), (h.has("bottomRight") || h.has("bottomLeft") || h.has("bottomCenter")) && (h.has("bottomLeft") ? g = /* @__PURE__ */ l.jsxs(q, { justify: "space-between", align: "center", children: [
3890
+ w,
3891
3891
  /* @__PURE__ */ l.jsxs(P, { size: "sm", c: "dimmed", children: [
3892
3892
  "Showing ",
3893
3893
  Math.min(f * c + 1, n.total),
@@ -3911,25 +3911,30 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
3911
3911
  " ",
3912
3912
  "records"
3913
3913
  ] }),
3914
- R
3914
+ w
3915
3915
  ] }));
3916
3916
  }
3917
- const v = _(() => /* @__PURE__ */ l.jsx(
3918
- Br,
3919
- {
3920
- data: n,
3921
- loading: o,
3922
- columns: e.columns,
3923
- getRowId: e.getRowId,
3924
- selectedRowKeys: i,
3925
- setSelectedRowKeys: s,
3926
- hasTopSection: d !== void 0,
3927
- hasBottomSection: g !== void 0
3928
- }
3929
- ), [
3917
+ const v = _(() => {
3918
+ const w = e.selectable ?? Fn(e.actions);
3919
+ return /* @__PURE__ */ l.jsx(
3920
+ Br,
3921
+ {
3922
+ data: n,
3923
+ loading: o,
3924
+ columns: e.columns,
3925
+ isSelectable: w,
3926
+ getRowId: e.getRowId,
3927
+ selectedRowKeys: i,
3928
+ setSelectedRowKeys: s,
3929
+ hasTopSection: d !== void 0,
3930
+ hasBottomSection: g !== void 0
3931
+ }
3932
+ );
3933
+ }, [
3930
3934
  n,
3931
3935
  o,
3932
3936
  e.columns,
3937
+ e.selectable,
3933
3938
  e.getRowId,
3934
3939
  i,
3935
3940
  s,
@@ -3967,38 +3972,38 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
3967
3972
  ] });
3968
3973
  }, Br = (e) => {
3969
3974
  const n = _(() => {
3970
- const o = [
3971
- {
3972
- id: "selection",
3973
- header: ({ table: r }) => /* @__PURE__ */ l.jsx(
3974
- de,
3975
- {
3976
- checked: r.getIsAllRowsSelected(),
3977
- indeterminate: r.getIsSomeRowsSelected(),
3978
- onChange: r.getToggleAllRowsSelectedHandler()
3979
- }
3980
- ),
3981
- cell: ({ row: r }) => /* @__PURE__ */ l.jsx(
3982
- de,
3983
- {
3984
- checked: r.getIsSelected(),
3985
- disabled: !r.getCanSelect(),
3986
- onChange: r.getToggleSelectedHandler()
3987
- }
3988
- )
3989
- }
3990
- ];
3991
- return e.columns.forEach((r) => {
3975
+ const o = [];
3976
+ e.isSelectable && o.push({
3977
+ id: "selection",
3978
+ header: ({ table: r }) => /* @__PURE__ */ l.jsx(
3979
+ de,
3980
+ {
3981
+ checked: r.getIsAllRowsSelected(),
3982
+ indeterminate: r.getIsSomeRowsSelected(),
3983
+ onChange: r.getToggleAllRowsSelectedHandler()
3984
+ }
3985
+ ),
3986
+ cell: ({ row: r }) => /* @__PURE__ */ l.jsx(
3987
+ de,
3988
+ {
3989
+ checked: r.getIsSelected(),
3990
+ disabled: !r.getCanSelect(),
3991
+ onChange: r.getToggleSelectedHandler()
3992
+ }
3993
+ )
3994
+ });
3995
+ for (const r of e.columns)
3992
3996
  o.push({
3993
3997
  id: r.key,
3994
3998
  header: r.title,
3995
3999
  accessorFn: r.render,
3996
4000
  cell: ({ row: i }) => r.render(i.original)
3997
4001
  });
3998
- }), o;
3999
- }, [e.columns]), t = yn({
4002
+ return o;
4003
+ }, [e.columns, e.isSelectable]), t = yn({
4000
4004
  data: e.data.records,
4001
4005
  columns: n,
4006
+ enableRowSelection: e.isSelectable,
4002
4007
  getCoreRowModel: Rn(),
4003
4008
  // convert to string, but we actually can get away with number
4004
4009
  getRowId: (o) => e.getRowId(o).toString(),
@@ -4009,7 +4014,7 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
4009
4014
  manualPagination: !0
4010
4015
  });
4011
4016
  return /* @__PURE__ */ l.jsx(
4012
- Fn,
4017
+ In,
4013
4018
  {
4014
4019
  table: t,
4015
4020
  selectedRowKeys: e.selectedRowKeys,
@@ -4019,7 +4024,7 @@ const qr = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Li = (e) => {
4019
4024
  }
4020
4025
  );
4021
4026
  };
4022
- function Pn(e, n, {
4027
+ function En(e, n, {
4023
4028
  title: t,
4024
4029
  nestedKey: o,
4025
4030
  component: r
@@ -4082,19 +4087,19 @@ function Oi(e, n, t, {
4082
4087
  }), a;
4083
4088
  }
4084
4089
  function zi(e, n, t, o = {}) {
4085
- return t.map((r) => En(r) ? r : Pn(e, n.publicProperties[r], o));
4090
+ return t.map((r) => $n(r) ? r : En(e, n.publicProperties[r], o));
4086
4091
  }
4087
4092
  function Gi(e, n, t = [], o = {}) {
4088
- return t.map((r) => En(r) ? r : Pn(e, n.publicProperties[r], o));
4093
+ return t.map((r) => $n(r) ? r : En(e, n.publicProperties[r], o));
4089
4094
  }
4090
- function En(e) {
4095
+ function $n(e) {
4091
4096
  return typeof e == "object" && "key" in e && "title" in e;
4092
4097
  }
4093
4098
  const Ur = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Hi = (e) => {
4094
4099
  var m, p;
4095
4100
  const [n, t] = $(
4096
4101
  {}
4097
- ), o = e.selectable ?? Tr(e.actions), r = _(() => {
4102
+ ), o = e.selectable ?? Fn(e.actions), r = _(() => {
4098
4103
  const d = [];
4099
4104
  o && d.push({
4100
4105
  id: "selection",
@@ -4149,7 +4154,7 @@ const Ur = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Hi = (e) => {
4149
4154
  const c = ((m = e.pagination) == null ? void 0 : m.positions) || Ur;
4150
4155
  if (c.size > 0) {
4151
4156
  const d = i.getState().pagination, g = /* @__PURE__ */ l.jsx(
4152
- In,
4157
+ Pn,
4153
4158
  {
4154
4159
  total: i.getPageCount(),
4155
4160
  pageIndex: d.pageIndex,
@@ -4196,7 +4201,7 @@ const Ur = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Hi = (e) => {
4196
4201
  ] }));
4197
4202
  }
4198
4203
  const f = /* @__PURE__ */ l.jsx(
4199
- Fn,
4204
+ In,
4200
4205
  {
4201
4206
  selectedRowKeys: n,
4202
4207
  table: i,
@@ -4242,8 +4247,8 @@ const Ur = /* @__PURE__ */ new Set(["topRight", "bottomRight"]), Hi = (e) => {
4242
4247
  boolean: sn,
4243
4248
  "string[]": Se,
4244
4249
  enum: Se,
4245
- date: To,
4246
- datetime: No
4250
+ date: No,
4251
+ datetime: ko
4247
4252
  }, Kr = {
4248
4253
  lang2value: {
4249
4254
  en: "Update",
@@ -4330,7 +4335,7 @@ function Qr({
4330
4335
  properties: e,
4331
4336
  queryConditions: n
4332
4337
  }) {
4333
- const t = ro.getInstance().getLocale(), o = [];
4338
+ const t = io.getInstance().getLocale(), o = [];
4334
4339
  for (const r of e) {
4335
4340
  const i = n[r.property.tsName];
4336
4341
  if (i !== void 0)
@@ -4352,7 +4357,7 @@ const Zr = ({
4352
4357
  queryConditions: s
4353
4358
  }) => {
4354
4359
  const [a, u] = $({});
4355
- be(() => {
4360
+ De(() => {
4356
4361
  const g = {};
4357
4362
  for (const h of n) {
4358
4363
  const v = s[h.property.tsName];
@@ -4372,14 +4377,14 @@ const Zr = ({
4372
4377
  const [c, f, m] = _(() => {
4373
4378
  const g = [], h = {}, v = {};
4374
4379
  for (const C of n) {
4375
- let y, R = (F) => {
4380
+ let y, w = (F) => {
4376
4381
  if (!It.isEmpty(F))
4377
4382
  return { op: "eq", value: F };
4378
4383
  };
4379
- (C.property.datatype === "date" || C.property.datatype === "datetime") && (y = It.validateTimeRange, R = (F) => F.start !== void 0 && F.end !== void 0 ? {
4384
+ (C.property.datatype === "date" || C.property.datatype === "datetime") && (y = It.validateTimeRange, w = (F) => F.start !== void 0 && F.end !== void 0 ? {
4380
4385
  op: "bti",
4381
4386
  value: [F.start.toISOString(), F.end.toISOString()]
4382
- } : F.start !== void 0 ? { op: "gte", value: F.start.toISOString() } : F.end !== void 0 ? { op: "lte", value: F.end.toISOString() } : void 0), h[C.property.tsName] = R, v[C.property.tsName] = y, g.push(
4387
+ } : F.start !== void 0 ? { op: "gte", value: F.start.toISOString() } : F.end !== void 0 ? { op: "lte", value: F.end.toISOString() } : void 0), h[C.property.tsName] = w, v[C.property.tsName] = y, g.push(
4383
4388
  /* @__PURE__ */ l.jsx(
4384
4389
  Wr,
4385
4390
  {
@@ -4442,7 +4447,7 @@ const Zr = ({
4442
4447
  )
4443
4448
  ] })
4444
4449
  ] });
4445
- }, Gt = /* @__PURE__ */ l.jsx(no, { size: 16, stroke: 1.5 }), Ht = /* @__PURE__ */ l.jsx(ut, { size: 16, stroke: 1.5 }), ei = {
4450
+ }, Gt = /* @__PURE__ */ l.jsx(oo, { size: 16, stroke: 1.5 }), Ht = /* @__PURE__ */ l.jsx(ut, { size: 16, stroke: 1.5 }), ei = {
4446
4451
  lang2value: {
4447
4452
  en: "Search By",
4448
4453
  vi: "Tìm Kiếm Theo"
@@ -4456,7 +4461,7 @@ const Zr = ({
4456
4461
  searchField: r,
4457
4462
  advancedSearch: i
4458
4463
  }) => {
4459
- const s = B(re), [a, u] = $(e), [c, f] = $(!1), [m, p] = $([!1, Date.now()]), d = _(() => so(
4464
+ const s = B(re), [a, u] = $(e), [c, f] = $(!1), [m, p] = $([!1, Date.now()]), d = _(() => lo(
4460
4465
  t,
4461
4466
  (C) => {
4462
4467
  f(!1), n(C);
@@ -4509,7 +4514,7 @@ const Zr = ({
4509
4514
  onClick: () => {
4510
4515
  u(""), n("");
4511
4516
  },
4512
- children: /* @__PURE__ */ l.jsx(eo, { size: 16, stroke: 1.5, cursor: "pointer" })
4517
+ children: /* @__PURE__ */ l.jsx(to, { size: 16, stroke: 1.5, cursor: "pointer" })
4513
4518
  }
4514
4519
  ),
4515
4520
  /* @__PURE__ */ l.jsx(
@@ -4522,7 +4527,7 @@ const Zr = ({
4522
4527
  m[1] + 200 >= Date.now() || p([!0, Date.now()]);
4523
4528
  },
4524
4529
  children: /* @__PURE__ */ l.jsx(
4525
- to,
4530
+ no,
4526
4531
  {
4527
4532
  size: 16,
4528
4533
  stroke: v > 0 ? 2 : 1.5,
@@ -4672,16 +4677,16 @@ export {
4672
4677
  qr as DEFAULT_PAGINATION_POSITIONS,
4673
4678
  ce as DataType2DisplayComponent,
4674
4679
  Vt as DataType2InputComponent,
4675
- Co as DateDisplay,
4676
- Io as DateInput,
4677
- To as DateRangeInput,
4678
- vo as DateTimeDisplay,
4679
- Di as DateTimeHideTimeDisplay,
4680
- No as DateTimeRangeInput,
4681
- Ho as EmbeddedFormItem,
4682
- go as EmojiCountryFlag,
4683
- Po as EnumInput,
4684
- Oo as FormItem,
4680
+ wo as DateDisplay,
4681
+ Po as DateInput,
4682
+ No as DateRangeInput,
4683
+ Co as DateTimeDisplay,
4684
+ bi as DateTimeHideTimeDisplay,
4685
+ ko as DateTimeRangeInput,
4686
+ qo as EmbeddedFormItem,
4687
+ fo as EmojiCountryFlag,
4688
+ Eo as EnumInput,
4689
+ zo as FormItem,
4685
4690
  cn as FormItemInner,
4686
4691
  un as FormItemLabel,
4687
4692
  Si as LanguageSelector,
@@ -4689,7 +4694,7 @@ export {
4689
4694
  Ri as LoadingInline,
4690
4695
  re as LocaleContext,
4691
4696
  hi as LocaleProvider,
4692
- So as MenuTrie,
4697
+ vo as MenuTrie,
4693
4698
  mt as MultiForeignKeyDisplay,
4694
4699
  an as MultiForeignKeyInput,
4695
4700
  T as MultiLingualString,
@@ -4701,12 +4706,12 @@ export {
4701
4706
  Ii as OrderedUniqueList,
4702
4707
  et as Permission,
4703
4708
  Ti as SPAN_COL,
4704
- co as SVGCountryFlag,
4709
+ go as SVGCountryFlag,
4705
4710
  Zr as SearchForm,
4706
4711
  Wr as SearchFormItem,
4707
4712
  nn as SeraCol,
4708
4713
  gt as SeraContext,
4709
- bi as SeraContextProvider,
4714
+ Di as SeraContextProvider,
4710
4715
  ki as SeraEmbeddedForm,
4711
4716
  Hi as SeraEmbeddedTable,
4712
4717
  Ni as SeraForm,
@@ -4722,10 +4727,10 @@ export {
4722
4727
  Pi as TestIdProvider,
4723
4728
  Se as TextInput,
4724
4729
  Zt as Trie,
4725
- Dt as TrieNode,
4726
- mo as buildMenuItemIndex,
4730
+ bt as TrieNode,
4731
+ po as buildMenuItemIndex,
4727
4732
  V as countryFlags,
4728
- ho as filterAllowedItems,
4733
+ So as filterAllowedItems,
4729
4734
  gn as getInputComponent,
4730
4735
  Xr as getNumberOfFilters,
4731
4736
  dt as getPropertyValue,
@@ -4734,10 +4739,10 @@ export {
4734
4739
  ji as groupBy,
4735
4740
  _i as groupByAsList,
4736
4741
  Bi as groupFields,
4737
- zo as isHorizontalLayout,
4738
- En as isSeraColumn,
4742
+ Go as isHorizontalLayout,
4743
+ $n as isSeraColumn,
4739
4744
  Gi as makeEmbeddedTableColumns,
4740
- Pn as makeTableColumn,
4745
+ En as makeTableColumn,
4741
4746
  Oi as makeTableColumnFromNestedProperty,
4742
4747
  zi as makeTableColumns,
4743
4748
  Ze as setPropertyValue,