react-crud-mui 0.2.45 → 0.2.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { StackProps } from '@mui/material';
2
2
  import { PanelSelectItemProps } from './PanelSelectItem';
3
3
  export type PanelSelectData = {
4
4
  value: string | number;
5
- } & Pick<PanelSelectItemProps, 'deleteable' | 'helperText' | 'icon' | 'rightContent' | 'selectedIcon' | 'label' | 'sx' | 'children'>;
5
+ } & Pick<PanelSelectItemProps, 'deleteable' | 'helperText' | 'icon' | 'rightContent' | 'selectedIcon' | 'label' | 'sx' | 'disabled' | 'children'>;
6
6
  export type PanelSelectSize = 'small' | 'normal' | 'large';
7
7
  export type PanelSelectDirection = 'vertical' | 'horizontal';
8
8
  export interface PanelSelectProps extends Omit<StackProps, 'onChange' | 'direction'> {
package/dist/coreui.js CHANGED
@@ -922,10 +922,10 @@ function Pr({
922
922
  }) {
923
923
  const {
924
924
  t: $
925
- } = et(), [Z, J] = Ne(null), Y = (U) => {
926
- J(U.currentTarget);
927
- }, W = () => J(null);
928
- return /* @__PURE__ */ z($l, { open: Z, handleOpen: Y, handleClose: W, disabled: I, ...D, children: [
925
+ } = et(), [Z, X] = Ne(null), J = (U) => {
926
+ X(U.currentTarget);
927
+ }, W = () => X(null);
928
+ return /* @__PURE__ */ z($l, { open: Z, handleOpen: J, handleClose: W, disabled: I, ...D, children: [
929
929
  x ? /* @__PURE__ */ u(Hn, { Icon: pm, title: (A == null ? void 0 : A.view) ?? $("browse"), handleClick: () => {
930
930
  a == null || a(), W();
931
931
  }, disabled: !s }) : null,
@@ -1069,10 +1069,10 @@ function E4({
1069
1069
  value: D,
1070
1070
  renderOption: $,
1071
1071
  selectRef: Z,
1072
- ...J
1072
+ ...X
1073
1073
  }) {
1074
1074
  const {
1075
- t: Y
1075
+ t: J
1076
1076
  } = et(), [W, U] = Ne(), {
1077
1077
  renderDisplay: O,
1078
1078
  renderOption: E,
@@ -1102,11 +1102,11 @@ function E4({
1102
1102
  } = oe;
1103
1103
  return o && (pe !== "" && !Q.length ? (Q.push({
1104
1104
  [Ni]: pe,
1105
- [Ml]: Y("combobox.newItem", {
1105
+ [Ml]: J("combobox.newItem", {
1106
1106
  inputValue: pe
1107
1107
  })
1108
1108
  }), U(!0)) : U(!1)), Q;
1109
- }, [o, Y]), Me = (ie) => {
1109
+ }, [o, J]), Me = (ie) => {
1110
1110
  let oe = {};
1111
1111
  return W && (oe = {
1112
1112
  endAdornment: /* @__PURE__ */ u(ru, { position: "end", children: /* @__PURE__ */ u(Al, { sx: {
@@ -1114,7 +1114,7 @@ function E4({
1114
1114
  p: "0.2rem 0.6rem",
1115
1115
  borderRadius: 1,
1116
1116
  backgroundColor: "success.main"
1117
- }, children: Y("combobox.newLabel") }) })
1117
+ }, children: J("combobox.newLabel") }) })
1118
1118
  }), /* @__PURE__ */ u(qi, { label: _, ...ie, fullWidth: !0, inputRef: Z, autoFocus: n, error: g, helperText: d, sx: {
1119
1119
  "& > .MuiFormLabel-root": {
1120
1120
  lineHeight: A === "smaller" ? 1.2 : void 0
@@ -1135,9 +1135,9 @@ function E4({
1135
1135
  return /* @__PURE__ */ u(
1136
1136
  hm,
1137
1137
  {
1138
- ...J,
1138
+ ...X,
1139
1139
  options: i,
1140
- noOptionsText: Y("nodatafound"),
1140
+ noOptionsText: J("nodatafound"),
1141
1141
  autoComplete: !0,
1142
1142
  loading: x,
1143
1143
  fullWidth: !0,
@@ -1157,7 +1157,7 @@ function E4({
1157
1157
  onChange: async (ie, oe, Q, pe) => {
1158
1158
  var le, se;
1159
1159
  if (typeof oe == "string") {
1160
- (le = J.onChange) == null || le.call(J, ie, oe, Q, pe);
1160
+ (le = X.onChange) == null || le.call(X, ie, oe, Q, pe);
1161
1161
  return;
1162
1162
  }
1163
1163
  let ge = oe;
@@ -1166,7 +1166,7 @@ function E4({
1166
1166
  throw new Error("missing onCreate callback when createable is used");
1167
1167
  ge = await w(oe[Ni]), U(!1);
1168
1168
  }
1169
- (se = J.onChange) == null || se.call(J, ie, ge, Q, pe);
1169
+ (se = X.onChange) == null || se.call(X, ie, ge, Q, pe);
1170
1170
  },
1171
1171
  forcePopupIcon: !0,
1172
1172
  filterOptions: me,
@@ -1492,8 +1492,8 @@ function Gi(n) {
1492
1492
  currentForm: D,
1493
1493
  showPrevButton: $,
1494
1494
  showNextButton: Z,
1495
- prevButtonTitle: J,
1496
- nextButtonTitle: Y,
1495
+ prevButtonTitle: X,
1496
+ nextButtonTitle: J,
1497
1497
  steps: W,
1498
1498
  activeStepIndex: U,
1499
1499
  saveCommandMode: O = "save"
@@ -1541,7 +1541,7 @@ function Gi(n) {
1541
1541
  (${G.toUpperCase()})`,
1542
1542
  children: E(le ? "savecreate" : "updatecreate")
1543
1543
  }
1544
- }, X = (ot) => !Q.save || _ != null && _.save ? null : /* @__PURE__ */ Ji(Bi, { ...ke[ot], key: ke[ot].key, color: "success", startIcon: /* @__PURE__ */ u(Tc, {}), disabled: o === "steps" ? !se : pe.save, loading: ge, ...A == null ? void 0 : A.save }), it = () => !Q.create || _ != null && _.create ? null : /* @__PURE__ */ u(
1544
+ }, K = (ot) => !Q.save || _ != null && _.save ? null : /* @__PURE__ */ Ji(Bi, { ...ke[ot], key: ke[ot].key, color: "success", startIcon: /* @__PURE__ */ u(Tc, {}), disabled: o === "steps" ? !se : pe.save, loading: ge, ...A == null ? void 0 : A.save }), it = () => !Q.create || _ != null && _.create ? null : /* @__PURE__ */ u(
1545
1545
  Bi,
1546
1546
  {
1547
1547
  color: "primary",
@@ -1598,7 +1598,7 @@ function Gi(n) {
1598
1598
  color: "secondary",
1599
1599
  title: `${E("prevstep")}
1600
1600
  (${oe.toUpperCase()})`,
1601
- children: J,
1601
+ children: X,
1602
1602
  ...A == null ? void 0 : A.prev
1603
1603
  },
1604
1604
  "prev"
@@ -1612,7 +1612,7 @@ function Gi(n) {
1612
1612
  endIcon: /* @__PURE__ */ u(Oc, {}),
1613
1613
  title: `${E("nextstep")}
1614
1614
  (${ie.toUpperCase()})`,
1615
- children: Y,
1615
+ children: J,
1616
1616
  ...A == null ? void 0 : A.next
1617
1617
  },
1618
1618
  "next"
@@ -1671,7 +1671,7 @@ function Gi(n) {
1671
1671
  icon: /* @__PURE__ */ u(Rc, {}),
1672
1672
  disabled: pe.close,
1673
1673
  onClick: x,
1674
- children: J
1674
+ children: X
1675
1675
  };
1676
1676
  case "next":
1677
1677
  return {
@@ -1687,7 +1687,7 @@ function Gi(n) {
1687
1687
  return /* @__PURE__ */ u(ze, { children: (() => {
1688
1688
  const ot = Te();
1689
1689
  if (o === "steps") {
1690
- const Oe = ee(), ue = Le(), be = j(), H = X(O);
1690
+ const Oe = ee(), ue = Le(), be = j(), H = K(O);
1691
1691
  return /* @__PURE__ */ z(ze, { children: [
1692
1692
  /* @__PURE__ */ z(jn, { children: [
1693
1693
  Oe,
@@ -1701,7 +1701,7 @@ function Gi(n) {
1701
1701
  ] })
1702
1702
  ] });
1703
1703
  }
1704
- const _e = X(O), ut = it(), vt = xe(), qe = kt(), on = [j(), vt, ut, qe, _e];
1704
+ const _e = K(O), ut = it(), vt = xe(), qe = kt(), on = [j(), vt, ut, qe, _e];
1705
1705
  return /* @__PURE__ */ z(ze, { children: [
1706
1706
  I,
1707
1707
  on,
@@ -2069,8 +2069,8 @@ function pt({
2069
2069
  onTabChanged: D,
2070
2070
  onTabs: $,
2071
2071
  panels: Z,
2072
- rightContent: J,
2073
- selectedTabIndex: Y = 0,
2072
+ rightContent: X,
2073
+ selectedTabIndex: J = 0,
2074
2074
  showCommands: W = !0,
2075
2075
  showHeader: U = !0,
2076
2076
  size: O = "small",
@@ -2084,7 +2084,7 @@ function pt({
2084
2084
  const ie = jc(), oe = f === "bottom" || f === "bottom-between" || f === "bottom-left" || f === "bottom-right" ? "bottom" : "top", Q = (xe) => {
2085
2085
  if (!(G != null && G.length))
2086
2086
  return null;
2087
- const kt = Y <= G.length - 1 ? G[Y].value : "", j = {
2087
+ const kt = J <= G.length - 1 ? G[J].value : "", j = {
2088
2088
  tabs: G,
2089
2089
  value: kt,
2090
2090
  onChange: (ee, Le) => {
@@ -2101,7 +2101,7 @@ function pt({
2101
2101
  }, pe = () => {
2102
2102
  if (!(G != null && G.length))
2103
2103
  return null;
2104
- const xe = Y <= G.length - 1 ? G[Y] : null;
2104
+ const xe = J <= G.length - 1 ? G[J] : null;
2105
2105
  return xe == null ? void 0 : xe.children;
2106
2106
  }, ge = () => {
2107
2107
  if (!W)
@@ -2133,7 +2133,7 @@ function pt({
2133
2133
  p: zr[O],
2134
2134
  rightContent: /* @__PURE__ */ z(ze, { children: [
2135
2135
  oe === "top" ? ge() : null,
2136
- J
2136
+ X
2137
2137
  ] }),
2138
2138
  centerContent: /* @__PURE__ */ z(ze, { children: [
2139
2139
  me === "in-center" ? Q() : null,
@@ -2148,7 +2148,7 @@ function pt({
2148
2148
  xe ? /* @__PURE__ */ u(lt, { p: zr[O], children: xe }) : null,
2149
2149
  d ? /* @__PURE__ */ u(lt, { p: zr[O], children: d }) : null
2150
2150
  ] });
2151
- }, ke = () => m ? /* @__PURE__ */ u(U4, { loading: x, visible: o, ...w }) : null, X = () => Z != null && Z.length ? /* @__PURE__ */ u(G4, { panels: Z, sx: {
2151
+ }, ke = () => m ? /* @__PURE__ */ u(U4, { loading: x, visible: o, ...w }) : null, K = () => Z != null && Z.length ? /* @__PURE__ */ u(G4, { panels: Z, sx: {
2152
2152
  pt: o ? void 0 : 0
2153
2153
  } }) : null;
2154
2154
  return /* @__PURE__ */ u(zu, { size: O, disabled: g, loading: x, children: (() => {
@@ -2162,7 +2162,7 @@ function pt({
2162
2162
  px: zr[O]
2163
2163
  }
2164
2164
  }) : null,
2165
- panelsContent: X(),
2165
+ panelsContent: K(),
2166
2166
  pageHeader: le(),
2167
2167
  footerContent: se(),
2168
2168
  progressContent: ke(),
@@ -2794,17 +2794,17 @@ var Or = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
2794
2794
  Zi.exports;
2795
2795
  (function(n, o) {
2796
2796
  (function() {
2797
- var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", m = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", x = 500, b = "__lodash_placeholder__", w = 1, I = 2, _ = 4, A = 1, D = 2, $ = 1, Z = 2, J = 4, Y = 8, W = 16, U = 32, O = 64, E = 128, q = 256, G = 512, Re = 30, me = "...", Me = 800, ie = 16, oe = 1, Q = 2, pe = 3, ge = 1 / 0, le = 9007199254740991, se = 17976931348623157e292, ke = NaN, X = 4294967295, it = X - 1, xe = X >>> 1, kt = [
2797
+ var i, a = "4.17.21", s = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", g = "Expected a function", m = "Invalid `variable` option passed into `_.template`", d = "__lodash_hash_undefined__", x = 500, b = "__lodash_placeholder__", w = 1, I = 2, _ = 4, A = 1, D = 2, $ = 1, Z = 2, X = 4, J = 8, W = 16, U = 32, O = 64, E = 128, q = 256, G = 512, Re = 30, me = "...", Me = 800, ie = 16, oe = 1, Q = 2, pe = 3, ge = 1 / 0, le = 9007199254740991, se = 17976931348623157e292, ke = NaN, K = 4294967295, it = K - 1, xe = K >>> 1, kt = [
2798
2798
  ["ary", E],
2799
2799
  ["bind", $],
2800
2800
  ["bindKey", Z],
2801
- ["curry", Y],
2801
+ ["curry", J],
2802
2802
  ["curryRight", W],
2803
2803
  ["flip", G],
2804
2804
  ["partial", U],
2805
2805
  ["partialRight", O],
2806
2806
  ["rearg", q]
2807
- ], j = "[object Arguments]", ee = "[object Array]", Le = "[object AsyncFunction]", Te = "[object Boolean]", ve = "[object Date]", ot = "[object DOMException]", _e = "[object Error]", ut = "[object Function]", vt = "[object GeneratorFunction]", qe = "[object Map]", At = "[object Number]", on = "[object Null]", ft = "[object Object]", Oe = "[object Promise]", ue = "[object Proxy]", be = "[object RegExp]", H = "[object Set]", fe = "[object String]", Ee = "[object Symbol]", Ue = "[object Undefined]", Ge = "[object WeakMap]", gt = "[object WeakSet]", zt = "[object ArrayBuffer]", R = "[object DataView]", N = "[object Float32Array]", K = "[object Float64Array]", Ve = "[object Int8Array]", Ze = "[object Int16Array]", ht = "[object Int32Array]", $t = "[object Uint8Array]", Mt = "[object Uint8ClampedArray]", lo = "[object Uint16Array]", so = "[object Uint32Array]", _f = /\b__p \+= '';/g, If = /\b(__p \+=) '' \+/g, kf = /(__e\(.*?\)|\b__t\)) \+\n'';/g, es = /&(?:amp|lt|gt|quot|#39);/g, ts = /[&<>"']/g, Af = RegExp(es.source), Mf = RegExp(ts.source), Tf = /<%-([\s\S]+?)%>/g, Lf = /<%([\s\S]+?)%>/g, ns = /<%=([\s\S]+?)%>/g, Ef = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ff = /^\w*$/, Rf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ao = /[\\^$.*+?()[\]{}|]/g, Of = RegExp(ao.source), co = /^\s+/, Df = /\s/, zf = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, $f = /\{\n\/\* \[wrapped with (.+)\] \*/, Bf = /,? & /, Wf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Nf = /[()=,{}\[\]\/\s]/, Hf = /\\(\\)?/g, Pf = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, rs = /\w*$/, Uf = /^[-+]0x[0-9a-f]+$/i, Gf = /^0b[01]+$/i, Vf = /^\[object .+?Constructor\]$/, Zf = /^0o[0-7]+$/i, Xf = /^(?:0|[1-9]\d*)$/, Kf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Vr = /($^)/, Yf = /['\n\r\u2028\u2029\\]/g, Zr = "\\ud800-\\udfff", Jf = "\\u0300-\\u036f", qf = "\\ufe20-\\ufe2f", Qf = "\\u20d0-\\u20ff", is = Jf + qf + Qf, os = "\\u2700-\\u27bf", ls = "a-z\\xdf-\\xf6\\xf8-\\xff", jf = "\\xac\\xb1\\xd7\\xf7", ed = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", td = "\\u2000-\\u206f", nd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ss = "A-Z\\xc0-\\xd6\\xd8-\\xde", as = "\\ufe0e\\ufe0f", cs = jf + ed + td + nd, uo = "['’]", rd = "[" + Zr + "]", us = "[" + cs + "]", Xr = "[" + is + "]", fs = "\\d+", id = "[" + os + "]", ds = "[" + ls + "]", ps = "[^" + Zr + cs + fs + os + ls + ss + "]", fo = "\\ud83c[\\udffb-\\udfff]", od = "(?:" + Xr + "|" + fo + ")", gs = "[^" + Zr + "]", po = "(?:\\ud83c[\\udde6-\\uddff]){2}", go = "[\\ud800-\\udbff][\\udc00-\\udfff]", rr = "[" + ss + "]", hs = "\\u200d", ms = "(?:" + ds + "|" + ps + ")", ld = "(?:" + rr + "|" + ps + ")", xs = "(?:" + uo + "(?:d|ll|m|re|s|t|ve))?", vs = "(?:" + uo + "(?:D|LL|M|RE|S|T|VE))?", bs = od + "?", ys = "[" + as + "]?", sd = "(?:" + hs + "(?:" + [gs, po, go].join("|") + ")" + ys + bs + ")*", ad = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", cd = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ws = ys + bs + sd, ud = "(?:" + [id, po, go].join("|") + ")" + ws, fd = "(?:" + [gs + Xr + "?", Xr, po, go, rd].join("|") + ")", dd = RegExp(uo, "g"), pd = RegExp(Xr, "g"), ho = RegExp(fo + "(?=" + fo + ")|" + fd + ws, "g"), gd = RegExp([
2807
+ ], j = "[object Arguments]", ee = "[object Array]", Le = "[object AsyncFunction]", Te = "[object Boolean]", ve = "[object Date]", ot = "[object DOMException]", _e = "[object Error]", ut = "[object Function]", vt = "[object GeneratorFunction]", qe = "[object Map]", At = "[object Number]", on = "[object Null]", ft = "[object Object]", Oe = "[object Promise]", ue = "[object Proxy]", be = "[object RegExp]", H = "[object Set]", fe = "[object String]", Ee = "[object Symbol]", Ue = "[object Undefined]", Ge = "[object WeakMap]", gt = "[object WeakSet]", zt = "[object ArrayBuffer]", R = "[object DataView]", N = "[object Float32Array]", Y = "[object Float64Array]", Ve = "[object Int8Array]", Ze = "[object Int16Array]", ht = "[object Int32Array]", $t = "[object Uint8Array]", Mt = "[object Uint8ClampedArray]", lo = "[object Uint16Array]", so = "[object Uint32Array]", _f = /\b__p \+= '';/g, If = /\b(__p \+=) '' \+/g, kf = /(__e\(.*?\)|\b__t\)) \+\n'';/g, es = /&(?:amp|lt|gt|quot|#39);/g, ts = /[&<>"']/g, Af = RegExp(es.source), Mf = RegExp(ts.source), Tf = /<%-([\s\S]+?)%>/g, Lf = /<%([\s\S]+?)%>/g, ns = /<%=([\s\S]+?)%>/g, Ef = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ff = /^\w*$/, Rf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ao = /[\\^$.*+?()[\]{}|]/g, Of = RegExp(ao.source), co = /^\s+/, Df = /\s/, zf = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, $f = /\{\n\/\* \[wrapped with (.+)\] \*/, Bf = /,? & /, Wf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Nf = /[()=,{}\[\]\/\s]/, Hf = /\\(\\)?/g, Pf = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, rs = /\w*$/, Uf = /^[-+]0x[0-9a-f]+$/i, Gf = /^0b[01]+$/i, Vf = /^\[object .+?Constructor\]$/, Zf = /^0o[0-7]+$/i, Xf = /^(?:0|[1-9]\d*)$/, Kf = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Vr = /($^)/, Yf = /['\n\r\u2028\u2029\\]/g, Zr = "\\ud800-\\udfff", Jf = "\\u0300-\\u036f", qf = "\\ufe20-\\ufe2f", Qf = "\\u20d0-\\u20ff", is = Jf + qf + Qf, os = "\\u2700-\\u27bf", ls = "a-z\\xdf-\\xf6\\xf8-\\xff", jf = "\\xac\\xb1\\xd7\\xf7", ed = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", td = "\\u2000-\\u206f", nd = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ss = "A-Z\\xc0-\\xd6\\xd8-\\xde", as = "\\ufe0e\\ufe0f", cs = jf + ed + td + nd, uo = "['’]", rd = "[" + Zr + "]", us = "[" + cs + "]", Xr = "[" + is + "]", fs = "\\d+", id = "[" + os + "]", ds = "[" + ls + "]", ps = "[^" + Zr + cs + fs + os + ls + ss + "]", fo = "\\ud83c[\\udffb-\\udfff]", od = "(?:" + Xr + "|" + fo + ")", gs = "[^" + Zr + "]", po = "(?:\\ud83c[\\udde6-\\uddff]){2}", go = "[\\ud800-\\udbff][\\udc00-\\udfff]", rr = "[" + ss + "]", hs = "\\u200d", ms = "(?:" + ds + "|" + ps + ")", ld = "(?:" + rr + "|" + ps + ")", xs = "(?:" + uo + "(?:d|ll|m|re|s|t|ve))?", vs = "(?:" + uo + "(?:D|LL|M|RE|S|T|VE))?", bs = od + "?", ys = "[" + as + "]?", sd = "(?:" + hs + "(?:" + [gs, po, go].join("|") + ")" + ys + bs + ")*", ad = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", cd = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", ws = ys + bs + sd, ud = "(?:" + [id, po, go].join("|") + ")" + ws, fd = "(?:" + [gs + Xr + "?", Xr, po, go, rd].join("|") + ")", dd = RegExp(uo, "g"), pd = RegExp(Xr, "g"), ho = RegExp(fo + "(?=" + fo + ")|" + fd + ws, "g"), gd = RegExp([
2808
2808
  rr + "?" + ds + "+" + xs + "(?=" + [us, rr, "$"].join("|") + ")",
2809
2809
  ld + "+" + vs + "(?=" + [us, rr + ms, "$"].join("|") + ")",
2810
2810
  rr + "?" + ms + "+" + xs,
@@ -2845,9 +2845,9 @@ Zi.exports;
2845
2845
  "parseInt",
2846
2846
  "setTimeout"
2847
2847
  ], vd = -1, Xe = {};
2848
- Xe[N] = Xe[K] = Xe[Ve] = Xe[Ze] = Xe[ht] = Xe[$t] = Xe[Mt] = Xe[lo] = Xe[so] = !0, Xe[j] = Xe[ee] = Xe[zt] = Xe[Te] = Xe[R] = Xe[ve] = Xe[_e] = Xe[ut] = Xe[qe] = Xe[At] = Xe[ft] = Xe[be] = Xe[H] = Xe[fe] = Xe[Ge] = !1;
2848
+ Xe[N] = Xe[Y] = Xe[Ve] = Xe[Ze] = Xe[ht] = Xe[$t] = Xe[Mt] = Xe[lo] = Xe[so] = !0, Xe[j] = Xe[ee] = Xe[zt] = Xe[Te] = Xe[R] = Xe[ve] = Xe[_e] = Xe[ut] = Xe[qe] = Xe[At] = Xe[ft] = Xe[be] = Xe[H] = Xe[fe] = Xe[Ge] = !1;
2849
2849
  var He = {};
2850
- He[j] = He[ee] = He[zt] = He[R] = He[Te] = He[ve] = He[N] = He[K] = He[Ve] = He[Ze] = He[ht] = He[qe] = He[At] = He[ft] = He[be] = He[H] = He[fe] = He[Ee] = He[$t] = He[Mt] = He[lo] = He[so] = !0, He[_e] = He[ut] = He[Ge] = !1;
2850
+ He[j] = He[ee] = He[zt] = He[R] = He[Te] = He[ve] = He[N] = He[Y] = He[Ve] = He[Ze] = He[ht] = He[qe] = He[At] = He[ft] = He[be] = He[H] = He[fe] = He[Ee] = He[$t] = He[Mt] = He[lo] = He[so] = !0, He[_e] = He[ut] = He[Ge] = !1;
2851
2851
  var bd = {
2852
2852
  // Latin-1 Supplement block.
2853
2853
  À: "A",
@@ -3423,7 +3423,7 @@ Zi.exports;
3423
3423
  }
3424
3424
  }, p.prototype = ui.prototype, p.prototype.constructor = p, Jt.prototype = fr(ui.prototype), Jt.prototype.constructor = Jt;
3425
3425
  function Ie(e) {
3426
- this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = X, this.__views__ = [];
3426
+ this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = K, this.__views__ = [];
3427
3427
  }
3428
3428
  function m0() {
3429
3429
  var e = new Ie(this.__wrapped__);
@@ -4433,7 +4433,7 @@ Zi.exports;
4433
4433
  for (l = v ? l : r; ++l < r; ) {
4434
4434
  h = t[l];
4435
4435
  var y = Si(h), C = y == "wrapper" ? jo(h) : i;
4436
- C && rl(C[0]) && C[1] == (E | Y | U | q) && !C[4].length && C[9] == 1 ? v = v[Si(C[0])].apply(v, C[3]) : v = h.length == 1 && rl(h) ? v[y]() : v.thru(h);
4436
+ C && rl(C[0]) && C[1] == (E | J | U | q) && !C[4].length && C[9] == 1 ? v = v[Si(C[0])].apply(v, C[3]) : v = h.length == 1 && rl(h) ? v[y]() : v.thru(h);
4437
4437
  }
4438
4438
  return function() {
4439
4439
  var T = arguments, L = T[0];
@@ -4446,7 +4446,7 @@ Zi.exports;
4446
4446
  });
4447
4447
  }
4448
4448
  function vi(e, t, r, l, c, h, v, y, C, T) {
4449
- var L = t & E, F = t & $, B = t & Z, V = t & (Y | W), ne = t & G, ye = B ? i : Lr(e);
4449
+ var L = t & E, F = t & $, B = t & Z, V = t & (J | W), ne = t & G, ye = B ? i : Lr(e);
4450
4450
  function re() {
4451
4451
  for (var Ce = arguments.length, Ae = k(Ce), Pt = Ce; Pt--; )
4452
4452
  Ae[Pt] = arguments[Pt];
@@ -4530,8 +4530,8 @@ Zi.exports;
4530
4530
  };
4531
4531
  }
4532
4532
  function Fa(e, t, r, l, c, h, v, y, C, T) {
4533
- var L = t & Y, F = L ? v : i, B = L ? i : v, V = L ? h : i, ne = L ? i : h;
4534
- t |= L ? U : O, t &= ~(L ? O : U), t & J || (t &= ~($ | Z));
4533
+ var L = t & J, F = L ? v : i, B = L ? i : v, V = L ? h : i, ne = L ? i : h;
4534
+ t |= L ? U : O, t &= ~(L ? O : U), t & X || (t &= ~($ | Z));
4535
4535
  var ye = [
4536
4536
  e,
4537
4537
  t,
@@ -4586,9 +4586,9 @@ Zi.exports;
4586
4586
  v,
4587
4587
  y
4588
4588
  ];
4589
- if (B && Np(V, B), e = V[0], t = V[1], r = V[2], l = V[3], c = V[4], y = V[9] = V[9] === i ? C ? 0 : e.length : at(V[9] - T, 0), !y && t & (Y | W) && (t &= ~(Y | W)), !t || t == $)
4589
+ if (B && Np(V, B), e = V[0], t = V[1], r = V[2], l = V[3], c = V[4], y = V[9] = V[9] === i ? C ? 0 : e.length : at(V[9] - T, 0), !y && t & (J | W) && (t &= ~(J | W)), !t || t == $)
4590
4590
  var ne = Sp(e, t, r);
4591
- else t == Y || t == W ? ne = Cp(e, t, y) : (t == U || t == ($ | U)) && !c.length ? ne = _p(e, t, r, l) : ne = vi.apply(i, V);
4591
+ else t == J || t == W ? ne = Cp(e, t, y) : (t == U || t == ($ | U)) && !c.length ? ne = _p(e, t, r, l) : ne = vi.apply(i, V);
4592
4592
  var ye = B ? pa : Ga;
4593
4593
  return Va(ye(ne, V), e, t);
4594
4594
  }
@@ -4831,7 +4831,7 @@ Zi.exports;
4831
4831
  case R:
4832
4832
  return mp(e, r);
4833
4833
  case N:
4834
- case K:
4834
+ case Y:
4835
4835
  case Ve:
4836
4836
  case Ze:
4837
4837
  case ht:
@@ -4917,10 +4917,10 @@ Zi.exports;
4917
4917
  return t;
4918
4918
  }
4919
4919
  function Np(e, t) {
4920
- var r = e[1], l = t[1], c = r | l, h = c < ($ | Z | E), v = l == E && r == Y || l == E && r == q && e[7].length <= t[8] || l == (E | q) && t[7].length <= t[8] && r == Y;
4920
+ var r = e[1], l = t[1], c = r | l, h = c < ($ | Z | E), v = l == E && r == J || l == E && r == q && e[7].length <= t[8] || l == (E | q) && t[7].length <= t[8] && r == J;
4921
4921
  if (!(h || v))
4922
4922
  return e;
4923
- l & $ && (e[2] = t[2], c |= r & $ ? 0 : J);
4923
+ l & $ && (e[2] = t[2], c |= r & $ ? 0 : X);
4924
4924
  var y = t[3];
4925
4925
  if (y) {
4926
4926
  var C = e[3];
@@ -5494,7 +5494,7 @@ Zi.exports;
5494
5494
  });
5495
5495
  function sc(e, t, r) {
5496
5496
  t = r ? i : t;
5497
- var l = Sn(e, Y, i, i, i, i, i, t);
5497
+ var l = Sn(e, J, i, i, i, i, i, t);
5498
5498
  return l.placeholder = sc.placeholder, l;
5499
5499
  }
5500
5500
  function ac(e, t, r) {
@@ -5813,7 +5813,7 @@ Zi.exports;
5813
5813
  return t === t ? r ? t - r : t : 0;
5814
5814
  }
5815
5815
  function mc(e) {
5816
- return e ? Xn(he(e), 0, X) : 0;
5816
+ return e ? Xn(he(e), 0, K) : 0;
5817
5817
  }
5818
5818
  function en(e) {
5819
5819
  if (typeof e == "number")
@@ -6075,7 +6075,7 @@ Zi.exports;
6075
6075
  return e + (r ? "_" : "") + t.toLowerCase();
6076
6076
  });
6077
6077
  function l2(e, t, r) {
6078
- return r && typeof r != "number" && St(e, t, r) && (t = r = i), r = r === i ? X : r >>> 0, r ? (e = De(e), e && (typeof t == "string" || t != null && !fl(t)) && (t = Nt(t), !t && or(e)) ? Bn(ln(e), 0, r) : e.split(t, r)) : [];
6078
+ return r && typeof r != "number" && St(e, t, r) && (t = r = i), r = r === i ? K : r >>> 0, r ? (e = De(e), e && (typeof t == "string" || t != null && !fl(t)) && (t = Nt(t), !t && or(e)) ? Bn(ln(e), 0, r) : e.split(t, r)) : [];
6079
6079
  }
6080
6080
  var s2 = pr(function(e, t, r) {
6081
6081
  return e + (r ? " " : "") + gl(t);
@@ -6307,8 +6307,8 @@ function print() { __p += __j.call(arguments, '') }
6307
6307
  function W2(e, t) {
6308
6308
  if (e = he(e), e < 1 || e > le)
6309
6309
  return [];
6310
- var r = X, l = bt(e, X);
6311
- t = te(t), e -= X;
6310
+ var r = K, l = bt(e, K);
6311
+ t = te(t), e -= K;
6312
6312
  for (var c = _o(l, t); ++r < e; )
6313
6313
  t(r);
6314
6314
  return c;
@@ -6366,7 +6366,7 @@ function print() { __p += __j.call(arguments, '') }
6366
6366
  r = r === i ? 1 : at(he(r), 0);
6367
6367
  var l = this.__filtered__ && !t ? new Ie(this) : this.clone();
6368
6368
  return l.__filtered__ ? l.__takeCount__ = bt(r, l.__takeCount__) : l.__views__.push({
6369
- size: bt(r, X),
6369
+ size: bt(r, K),
6370
6370
  type: e + (l.__dir__ < 0 ? "Right" : "")
6371
6371
  }), l;
6372
6372
  }, Ie.prototype[e + "Right"] = function(r) {
@@ -6410,7 +6410,7 @@ function print() { __p += __j.call(arguments, '') }
6410
6410
  }, Ie.prototype.takeRightWhile = function(e) {
6411
6411
  return this.reverse().takeWhile(e).reverse();
6412
6412
  }, Ie.prototype.toArray = function() {
6413
- return this.take(X);
6413
+ return this.take(K);
6414
6414
  }, pn(Ie.prototype, function(e, t) {
6415
6415
  var r = /^(?:filter|find|map|reject)|While$/.test(t), l = /^(?:head|last)$/.test(t), c = p[l ? "take" + (t == "last" ? "Right" : "") : t], h = l || /^find/.test(t);
6416
6416
  c && (p.prototype[t] = function() {
@@ -6518,7 +6518,7 @@ function yb({
6518
6518
  scopes: f,
6519
6519
  ...Dr,
6520
6520
  ...m
6521
- }), Mn($, (J, Y) => s == null ? void 0 : s(J, Y), {
6521
+ }), Mn($, (X, J) => s == null ? void 0 : s(X, J), {
6522
6522
  enabled: !d.create && b.create && !x,
6523
6523
  description: w("newitemtitle"),
6524
6524
  scopes: f,
@@ -6609,8 +6609,8 @@ function _b({
6609
6609
  enableDiscardChanges: D,
6610
6610
  enableSave: $ = !0,
6611
6611
  error: Z,
6612
- form: J,
6613
- hotkeyScopes: Y = ql,
6612
+ form: X,
6613
+ hotkeyScopes: J = ql,
6614
6614
  loading: W,
6615
6615
  onClose: U,
6616
6616
  onCommands: O,
@@ -6628,7 +6628,7 @@ function _b({
6628
6628
  onWrapperLayout: le,
6629
6629
  reason: se = "create",
6630
6630
  showHeader: ke = !0,
6631
- steps: X,
6631
+ steps: K,
6632
6632
  stepsProps: it,
6633
6633
  tabExtraContent: xe,
6634
6634
  ...kt
@@ -6670,7 +6670,7 @@ function _b({
6670
6670
  } }) : null, _e = () => /* @__PURE__ */ z(jn, { ref: ee, children: [
6671
6671
  /* @__PURE__ */ u(Jl, { messages: o }),
6672
6672
  /* @__PURE__ */ u(ef, {})
6673
- ] }), ut = () => !!(X != null && X.length) ? qe() : vt(), vt = () => {
6673
+ ] }), ut = () => !!(K != null && K.length) ? qe() : vt(), vt = () => {
6674
6674
  const ue = {
6675
6675
  mode: "standard",
6676
6676
  onCreate: G,
@@ -6691,10 +6691,10 @@ function _b({
6691
6691
  const be = ie == null ? void 0 : ie();
6692
6692
  return /* @__PURE__ */ u(Gi, { ...ue, children: be });
6693
6693
  }, qe = () => {
6694
- if (!(X != null && X.length))
6694
+ if (!(K != null && K.length))
6695
6695
  return null;
6696
- const ue = X[n].key, be = X[n].name, H = be && Le.get(be), fe = n < X.length - 1 ? X[n + 1].label : void 0, Ee = n > 0 ? X[n - 1].label : void 0, Ue = () => {
6697
- H && J.setValue(be, H.getValues(), {
6696
+ const ue = K[n].key, be = K[n].name, H = be && Le.get(be), fe = n < K.length - 1 ? K[n + 1].label : void 0, Ee = n > 0 ? K[n - 1].label : void 0, Ue = () => {
6697
+ H && X.setValue(be, H.getValues(), {
6698
6698
  shouldValidate: !0
6699
6699
  });
6700
6700
  }, Ge = {
@@ -6726,7 +6726,7 @@ function _b({
6726
6726
  showNextButton: !!fe,
6727
6727
  showPrevButton: !!Ee,
6728
6728
  activeStepIndex: n,
6729
- steps: X,
6729
+ steps: K,
6730
6730
  currentKey: ue,
6731
6731
  currentForm: H,
6732
6732
  name: be,
@@ -6745,10 +6745,10 @@ function _b({
6745
6745
  reason: se
6746
6746
  };
6747
6747
  return oe ? oe(be) : /* @__PURE__ */ u(Fu, { ...be });
6748
- }, on = () => b ? null : /* @__PURE__ */ u(wb, { onSave: Q, onSaveClose: pe, onSaveCreate: ge, onNewItem: G, onDelete: Re, scopes: Y, defaultSaveMode: d }), ft = () => {
6749
- if (!(X != null && X.length))
6748
+ }, on = () => b ? null : /* @__PURE__ */ u(wb, { onSave: Q, onSaveClose: pe, onSaveCreate: ge, onNewItem: G, onDelete: Re, scopes: J, defaultSaveMode: d }), ft = () => {
6749
+ if (!(K != null && K.length))
6750
6750
  return null;
6751
- const be = /* @__PURE__ */ u(g ?? $u, { items: X, activeStep: n, ...it }), H = X.map(({
6751
+ const be = /* @__PURE__ */ u(g ?? $u, { items: K, activeStep: n, ...it }), H = K.map(({
6752
6752
  children: fe,
6753
6753
  name: Ee,
6754
6754
  schema: Ue,
@@ -6760,7 +6760,7 @@ function _b({
6760
6760
  H[n]
6761
6761
  ] });
6762
6762
  }, Oe = (ue, be, H) => {
6763
- const fe = !!(X != null && X.length), Ee = typeof xe == "function" ? xe(m) : xe;
6763
+ const fe = !!(K != null && K.length), Ee = typeof xe == "function" ? xe(m) : xe;
6764
6764
  return /* @__PURE__ */ z(pt, { title: j(se === "fetch" ? "edit" : se === "view" ? "browse" : "newitem"), tabsPosition: "in-subrow", ...kt, tabExtraContent: Ee, disabled: x || W || se === "view", commandsContent: be, commandsPosition: fe ? "bottom-between" : s, onHeader: At, onClose: U, loading: W, alertsContent: H, onTabChanged: ({
6765
6765
  selectedTabIndex: Ue
6766
6766
  }) => Me == null ? void 0 : Me(Ue), selectedTabIndex: n, children: [
@@ -6791,8 +6791,8 @@ function Ib({
6791
6791
  const {
6792
6792
  t: $
6793
6793
  } = et(), [Z, {
6794
- loading: J,
6795
- error: Y,
6794
+ loading: X,
6795
+ error: J,
6796
6796
  reset: W
6797
6797
  }] = ub(), {
6798
6798
  reset: U,
@@ -6806,8 +6806,8 @@ function Ib({
6806
6806
  const le = [], se = (ke) => {
6807
6807
  le.push(...ju(ke));
6808
6808
  };
6809
- return n && le.push(...n), a && se(a), Y && se(Y), le;
6810
- }, [a, n, Y]), me = async (le = "save") => {
6809
+ return n && le.push(...n), a && se(a), J && se(J), le;
6810
+ }, [a, n, J]), me = async (le = "save") => {
6811
6811
  W();
6812
6812
  const se = await O(), ke = {
6813
6813
  reason: _,
@@ -6815,8 +6815,8 @@ function Ib({
6815
6815
  data: i,
6816
6816
  mode: le
6817
6817
  };
6818
- let X = I == null ? void 0 : I(ke, s);
6819
- Vi(X) && (X = await Z(X)), U(X ?? se), A && !o && Hi.success($("savedsuccesfully")), m == null || m(X, ke, s);
6818
+ let K = I == null ? void 0 : I(ke, s);
6819
+ Vi(K) && (K = await Z(K)), U(K ?? se), A && !o && Hi.success($("savedsuccesfully")), m == null || m(K, ke, s);
6820
6820
  }, Me = async () => {
6821
6821
  await me();
6822
6822
  }, ie = async () => {
@@ -6836,7 +6836,7 @@ function Ib({
6836
6836
  }, ge = (le = "create") => {
6837
6837
  w == null || w(le), W();
6838
6838
  };
6839
- return /* @__PURE__ */ u(_b, { ...D, form: s, alerts: Re, error: a, data: i ?? q, autoSave: o, loading: f || J || G, reason: _, onCreate: () => ge(), onCopy: () => ge("copy"), onSaveCreate: () => void ie(), onSaveClose: () => void oe(), onSave: () => void Me(), onDelete: () => void Q(), onDiscardChanges: pe, onClose: d });
6839
+ return /* @__PURE__ */ u(_b, { ...D, form: s, alerts: Re, error: a, data: i ?? q, autoSave: o, loading: f || X || G, reason: _, onCreate: () => ge(), onCopy: () => ge("copy"), onSaveCreate: () => void ie(), onSaveClose: () => void oe(), onSave: () => void Me(), onDelete: () => void Q(), onDiscardChanges: pe, onClose: d });
6840
6840
  }
6841
6841
  function nf({
6842
6842
  activeSegmentIndex: n = 0,
@@ -7373,8 +7373,8 @@ function io({
7373
7373
  newRowButtonContent: D,
7374
7374
  onNewRow: $,
7375
7375
  onRenderNestedComponent: Z,
7376
- onRowClick: J,
7377
- onRowEnterPress: Y,
7376
+ onRowClick: X,
7377
+ onRowEnterPress: J,
7378
7378
  onRowProps: W,
7379
7379
  onSubTreeRows: U,
7380
7380
  paginationProps: O,
@@ -7394,12 +7394,12 @@ function io({
7394
7394
  ...ke
7395
7395
  }) {
7396
7396
  const {
7397
- t: X
7397
+ t: K
7398
7398
  } = et(), it = ct(null), xe = ct(!0), kt = Ke(() => [], []), j = Se((R) => Tn(R, E), [E]), ee = jc(), {
7399
7399
  isLoading: Le,
7400
7400
  state: Te
7401
- } = Ru(!!_, f), ve = Ke(() => a.filter((N) => !er(N.hidden)).reduce((N, K) => ({
7402
- [K.id]: !K.hidden,
7401
+ } = Ru(!!_, f), ve = Ke(() => a.filter((N) => !er(N.hidden)).reduce((N, Y) => ({
7402
+ [Y.id]: !Y.hidden,
7403
7403
  ...N
7404
7404
  }), {}), [a]), ot = Ke(() => {
7405
7405
  let R = a;
@@ -7421,10 +7421,10 @@ function io({
7421
7421
  cell: ({
7422
7422
  row: N
7423
7423
  }) => {
7424
- const K = N.getIsExpanded();
7425
- return N.getCanExpand() ? /* @__PURE__ */ u(Pb, { onClick: N.getToggleExpandedHandler(), expand: K, sx: {
7424
+ const Y = N.getIsExpanded();
7425
+ return N.getCanExpand() ? /* @__PURE__ */ u(Pb, { onClick: N.getToggleExpandedHandler(), expand: Y, sx: {
7426
7426
  p: 1
7427
- }, children: K ? /* @__PURE__ */ u(eo, { color: "disabled", sx: {
7427
+ }, children: Y ? /* @__PURE__ */ u(eo, { color: "disabled", sx: {
7428
7428
  color: "primary.main"
7429
7429
  } }) : /* @__PURE__ */ u(Nr, { color: "disabled" }) }) : null;
7430
7430
  }
@@ -7475,27 +7475,27 @@ function io({
7475
7475
  return;
7476
7476
  R.getCanMultiSelect() ? R.toggleSelected() : (_e.toggleAllRowsSelected(!1), R.toggleSelected(!0));
7477
7477
  }, vt = (R, N) => {
7478
- x && ut(N), J == null || J(R, N);
7478
+ x && ut(N), X == null || X(R, N);
7479
7479
  }, qe = (R, N) => {
7480
7480
  var Ve, Ze, ht;
7481
7481
  R.stopPropagation();
7482
- const K = (Ve = it.current) == null ? void 0 : Ve.children.namedItem(N.id);
7482
+ const Y = (Ve = it.current) == null ? void 0 : Ve.children.namedItem(N.id);
7483
7483
  switch (R.code) {
7484
7484
  case "ArrowUp":
7485
- (Ze = K == null ? void 0 : K.previousElementSibling) == null || Ze.focus();
7485
+ (Ze = Y == null ? void 0 : Y.previousElementSibling) == null || Ze.focus();
7486
7486
  break;
7487
7487
  case "ArrowDown":
7488
- (ht = K == null ? void 0 : K.nextElementSibling) == null || ht.focus();
7488
+ (ht = Y == null ? void 0 : Y.nextElementSibling) == null || ht.focus();
7489
7489
  break;
7490
7490
  case "Space":
7491
7491
  ut(N);
7492
7492
  break;
7493
7493
  case "Enter":
7494
- Y == null || Y(N);
7494
+ J == null || J(N);
7495
7495
  break;
7496
7496
  }
7497
7497
  }, At = (R, N) => {
7498
- const K = /* @__PURE__ */ z(Hc, { gap: 1, sx: {
7498
+ const Y = /* @__PURE__ */ z(Hc, { gap: 1, sx: {
7499
7499
  textAlign: "center"
7500
7500
  }, children: [
7501
7501
  R.column.icon,
@@ -7516,11 +7516,11 @@ function io({
7516
7516
  "&.Mui-active, &.MuiTableSortLabel-root >.MuiTableSortLabel-icon": {
7517
7517
  color: Mt ? "primary.main" : void 0
7518
7518
  }
7519
- }, children: K }) : K }, R.id);
7519
+ }, children: Y }) : Y }, R.id);
7520
7520
  }, on = () => {
7521
7521
  const R = _e.getHeaderGroups(), N = R.length > 1;
7522
- return /* @__PURE__ */ u(p3, { children: R.map((K) => {
7523
- const Ve = N && R.length - 1 === K.depth;
7522
+ return /* @__PURE__ */ u(p3, { children: R.map((Y) => {
7523
+ const Ve = N && R.length - 1 === Y.depth;
7524
7524
  return /* @__PURE__ */ u(Qn, { sx: {
7525
7525
  "& .MuiTableCell-root": {
7526
7526
  borderBottom: N && !Ve ? "1px solid" : "none",
@@ -7531,11 +7531,11 @@ function io({
7531
7531
  }
7532
7532
  },
7533
7533
  ...I
7534
- }, children: K.headers.map((Ze) => At(Ze, Ve)) }, K.id);
7534
+ }, children: Y.headers.map((Ze) => At(Ze, Ve)) }, Y.id);
7535
7535
  }) });
7536
7536
  }, ft = (R) => {
7537
7537
  let N = Cl(R.column.columnDef.cell, R.getContext());
7538
- const K = Xb(R.column.id), Ve = R.row.depth > 0 && R.column.getIndex() === 1, Ze = R.column.getCanSort() && !!R.column.getIsSorted(), ht = _e.options.enableColumnPinning ? Kc(R.column) : null, $t = R.column.columnDef.ellipsis;
7538
+ const Y = Xb(R.column.id), Ve = R.row.depth > 0 && R.column.getIndex() === 1, Ze = R.column.getCanSort() && !!R.column.getIsSorted(), ht = _e.options.enableColumnPinning ? Kc(R.column) : null, $t = R.column.columnDef.ellipsis;
7539
7539
  if (R.column.columnDef.link) {
7540
7540
  const Mt = R.column.columnDef.link(R.row);
7541
7541
  Mt && (N = /* @__PURE__ */ u(Mm, { to: Mt, children: N }));
@@ -7550,7 +7550,7 @@ function io({
7550
7550
  N = /* @__PURE__ */ u(Ot, { justifyContent: "flex-end", children: N });
7551
7551
  break;
7552
7552
  }
7553
- return /* @__PURE__ */ u($r, { title: R.column.title || ($t ? R.getValue() : void 0), size: K ? "small" : G, style: {
7553
+ return /* @__PURE__ */ u($r, { title: R.column.title || ($t ? R.getValue() : void 0), size: Y ? "small" : G, style: {
7554
7554
  ...ht
7555
7555
  }, ellipsis: $t, sx: {
7556
7556
  backgroundColor: Ze ? de(ee) ? je(ee.palette.primary.main, 0.04) : je(ee.palette.primary.main, 0.07) : void 0,
@@ -7569,12 +7569,12 @@ function io({
7569
7569
  if (s != null && s.length || _ || !Re)
7570
7570
  return null;
7571
7571
  const R = _e.getVisibleFlatColumns();
7572
- return /* @__PURE__ */ u(Qn, { children: /* @__PURE__ */ u(Wi, { colSpan: R == null ? void 0 : R.length, children: /* @__PURE__ */ u(af, { emptyText: m ?? X("nodatafound"), showEmptyImage: Q, sx: {
7572
+ return /* @__PURE__ */ u(Qn, { children: /* @__PURE__ */ u(Wi, { colSpan: R == null ? void 0 : R.length, children: /* @__PURE__ */ u(af, { emptyText: m ?? K("nodatafound"), showEmptyImage: Q, sx: {
7573
7573
  py: 2
7574
7574
  } }) }) });
7575
7575
  }, ue = (R, N) => {
7576
- const K = N.getVisibleCells();
7577
- return /* @__PURE__ */ u(Xc, { className: "description-row", children: /* @__PURE__ */ u($r, { colSpan: K == null ? void 0 : K.length, sx: {
7576
+ const Y = N.getVisibleCells();
7577
+ return /* @__PURE__ */ u(Xc, { className: "description-row", children: /* @__PURE__ */ u($r, { colSpan: Y == null ? void 0 : Y.length, sx: {
7578
7578
  py: 1,
7579
7579
  px: 0,
7580
7580
  backgroundColor: je(lf.main, 0.1)
@@ -7586,44 +7586,44 @@ function io({
7586
7586
  /* @__PURE__ */ u(l3, { sx: {
7587
7587
  fontSize: "14px"
7588
7588
  } }),
7589
- A ?? X("new_row")
7589
+ A ?? K("new_row")
7590
7590
  ] }) }), N = _e == null ? void 0 : _e.getVisibleFlatColumns();
7591
7591
  return /* @__PURE__ */ u(Qn, { children: /* @__PURE__ */ u(Wi, { sx: {
7592
7592
  py: 2,
7593
7593
  textAlign: "center"
7594
7594
  }, colSpan: N == null ? void 0 : N.length, children: R }) }, "new-row");
7595
- }, H = () => _e.getRowModel().rows.map((K) => {
7595
+ }, H = () => _e.getRowModel().rows.map((Y) => {
7596
7596
  let Ve;
7597
- g && (Ve = typeof g == "function" ? g(K) : Tn(K.original, g));
7598
- const Ze = Z && K.getIsExpanded(), ht = K.getIsSelected(), $t = W == null ? void 0 : W(K);
7597
+ g && (Ve = typeof g == "function" ? g(Y) : Tn(Y.original, g));
7598
+ const Ze = Z && Y.getIsExpanded(), ht = Y.getIsSelected(), $t = W == null ? void 0 : W(Y);
7599
7599
  return /* @__PURE__ */ z(El, { children: [
7600
7600
  /* @__PURE__ */ Ji(
7601
7601
  Xc,
7602
7602
  {
7603
7603
  bordered: !Ve,
7604
7604
  indicatorColor: ht ? ee.palette.primary.main : void 0,
7605
- bgColor: ht ? `${je(ee.palette.primary.main, 0.3)} !important` : n && K.index % 2 ? ee.palette.action.hover : void 0,
7605
+ bgColor: ht ? `${je(ee.palette.primary.main, 0.3)} !important` : n && Y.index % 2 ? ee.palette.action.hover : void 0,
7606
7606
  onClick: (Mt) => {
7607
- vt(Mt, K);
7607
+ vt(Mt, Y);
7608
7608
  },
7609
7609
  ...$t,
7610
7610
  sx: {
7611
7611
  ...q,
7612
7612
  ...$t == null ? void 0 : $t.sx,
7613
- cursor: J || x ? "pointer" : "default",
7613
+ cursor: X || x ? "pointer" : "default",
7614
7614
  wordWrap: "break-word",
7615
7615
  wordBreak: "break-all"
7616
7616
  },
7617
- id: K.id,
7617
+ id: Y.id,
7618
7618
  tabIndex: 0,
7619
- onKeyDown: (Mt) => qe(Mt, K),
7620
- key: K.id
7619
+ onKeyDown: (Mt) => qe(Mt, Y),
7620
+ key: Y.id
7621
7621
  },
7622
- K.getVisibleCells().map(ft)
7622
+ Y.getVisibleCells().map(ft)
7623
7623
  ),
7624
- Ve ? ue(Ve, K) : null,
7625
- Ze && Ge(K)
7626
- ] }, K.id);
7624
+ Ve ? ue(Ve, Y) : null,
7625
+ Ze && Ge(Y)
7626
+ ] }, Y.id);
7627
7627
  }), fe = () => /* @__PURE__ */ z(f3, { ref: it, children: [
7628
7628
  H(),
7629
7629
  zt(ge),
@@ -7635,13 +7635,13 @@ function io({
7635
7635
  const {
7636
7636
  pageSize: R,
7637
7637
  pageIndex: N
7638
- } = _e.getState().pagination, K = /* @__PURE__ */ u(g3, { component: "div", rowsPerPageOptions: Vb, page: N, rowsPerPage: R, count: _e.getRowCount(), onPageChange: (Ve, Ze) => _e.setPageIndex(Ze), onRowsPerPageChange: (Ve) => _e.setPageSize(+Ve.target.value || 5), ...O });
7638
+ } = _e.getState().pagination, Y = /* @__PURE__ */ u(g3, { component: "div", rowsPerPageOptions: Vb, page: N, rowsPerPage: R, count: _e.getRowCount(), onPageChange: (Ve, Ze) => _e.setPageIndex(Ze), onRowsPerPageChange: (Ve) => _e.setPageSize(+Ve.target.value || 5), ...O });
7639
7639
  return O != null && O.extraContent ? /* @__PURE__ */ z(Hr, { sx: {
7640
7640
  pl: 1
7641
7641
  }, children: [
7642
7642
  O.extraContent,
7643
- K
7644
- ] }) : K;
7643
+ Y
7644
+ ] }) : Y;
7645
7645
  }, Ue = () => /* @__PURE__ */ u(s3, { open: !!Le && !xe.current, sx: {
7646
7646
  position: "absolute",
7647
7647
  zIndex: 2
@@ -7650,19 +7650,19 @@ function io({
7650
7650
  } }) }), Ge = (R) => {
7651
7651
  const N = Z == null ? void 0 : Z({
7652
7652
  row: R
7653
- }), K = R.getVisibleCells();
7653
+ }), Y = R.getVisibleCells();
7654
7654
  return /* @__PURE__ */ u(Qn, { children: /* @__PURE__ */ u(Wi, { sx: {
7655
7655
  py: "1rem",
7656
7656
  paddingLeft: 7,
7657
7657
  backgroundColor: "background.default"
7658
- }, colSpan: K == null ? void 0 : K.length, children: N }) }, `sub-row-${R.id}`);
7658
+ }, colSpan: Y == null ? void 0 : Y.length, children: N }) }, `sub-row-${R.id}`);
7659
7659
  }, gt = () => Me ? /* @__PURE__ */ u(d3, { children: _e.getFooterGroups().map((R) => /* @__PURE__ */ u(Qn, { sx: {
7660
7660
  backgroundColor: je(ee.palette.primary.main, 0.05)
7661
7661
  }, children: R.headers.map((N) => /* @__PURE__ */ u($r, { size: G, colSpan: N.colSpan, children: N.isPlaceholder ? null : Cl(N.column.columnDef.footer, N.getContext()) }, N.id)) }, R.id)) }) : null, zt = (R) => {
7662
7662
  if (!w || !_ || !xe.current)
7663
7663
  return null;
7664
7664
  const N = _e.getVisibleFlatColumns();
7665
- return [...Array(R)].map((K, Ve) => /* @__PURE__ */ u(Qn, { children: N.map((Ze, ht) => /* @__PURE__ */ u($r, { scope: "row", children: /* @__PURE__ */ u(c3, { animation: "wave", variant: "text" }) }, `skeloton-${ht}`)) }, Ve));
7665
+ return [...Array(R)].map((Y, Ve) => /* @__PURE__ */ u(Qn, { children: N.map((Ze, ht) => /* @__PURE__ */ u($r, { scope: "row", children: /* @__PURE__ */ u(c3, { animation: "wave", variant: "text" }) }, `skeloton-${ht}`)) }, Ve));
7666
7666
  };
7667
7667
  return /* @__PURE__ */ z(ze, { children: [
7668
7668
  /* @__PURE__ */ z(ro, { autoHide: !1, forceVisible: !0, ...oe, children: [
@@ -7744,8 +7744,8 @@ function jl({
7744
7744
  headerProps: D,
7745
7745
  name: $,
7746
7746
  newItemTitle: Z,
7747
- onDelete: J,
7748
- onSave: Y,
7747
+ onDelete: X,
7748
+ onSave: J,
7749
7749
  rowCommands: W,
7750
7750
  uniqueFields: U,
7751
7751
  ...O
@@ -7778,7 +7778,7 @@ function jl({
7778
7778
  disabled: !0
7779
7779
  } : {
7780
7780
  disabled: _
7781
- }, [_, se]), X = sb({
7781
+ }, [_, se]), K = sb({
7782
7782
  api: me,
7783
7783
  uniqueFields: U
7784
7784
  }), {
@@ -7836,7 +7836,7 @@ function jl({
7836
7836
  data: H
7837
7837
  } = Oe, fe = () => {
7838
7838
  if (U != null && U.length) {
7839
- const Ee = X({
7839
+ const Ee = K({
7840
7840
  model: ue,
7841
7841
  reason: be,
7842
7842
  uid: Te
@@ -7857,11 +7857,11 @@ function jl({
7857
7857
  [Yc]: "created"
7858
7858
  }));
7859
7859
  };
7860
- return Y ? Y(Oe, me, fe, X) : fe();
7861
- }, [U == null ? void 0 : U.length, Y, me, X, Te, ge, Q, ie, q]), ut = Se((Oe) => {
7862
- const ue = ge(Te), be = (J == null ? void 0 : J(Oe, ue)) ?? ue;
7860
+ return J ? J(Oe, me, fe, K) : fe();
7861
+ }, [U == null ? void 0 : U.length, J, me, K, Te, ge, Q, ie, q]), ut = Se((Oe) => {
7862
+ const ue = ge(Te), be = (X == null ? void 0 : X(Oe, ue)) ?? ue;
7863
7863
  oe(be), Le();
7864
- }, [ge, Le, J, oe, Te]), vt = () => /* @__PURE__ */ u(io, { size: "small", showEmptyImage: !1, ...O, rowIdField: Tl, data: Me, enableSorting: !0, state: {
7864
+ }, [ge, Le, X, oe, Te]), vt = () => /* @__PURE__ */ u(io, { size: "small", showEmptyImage: !1, ...O, rowIdField: Tl, data: Me, enableSorting: !0, state: {
7865
7865
  sorting: G
7866
7866
  }, onSortingChange: Re, getSortedRowModel: du(), columns: ot, rowSx: {
7867
7867
  ".MuiTableCell-root": {
@@ -8356,13 +8356,14 @@ function gy({
8356
8356
  rightContent: A,
8357
8357
  selectedIcon: D,
8358
8358
  sx: $,
8359
- children: Z
8359
+ children: Z,
8360
+ disabled: X
8360
8361
  }) => /* @__PURE__ */ u(
8361
8362
  py,
8362
8363
  {
8363
8364
  selected: b === a,
8364
8365
  label: x,
8365
- disabled: s,
8366
+ disabled: X || s,
8366
8367
  helperText: I,
8367
8368
  icon: _,
8368
8369
  rightContent: A,
@@ -8374,7 +8375,7 @@ function gy({
8374
8375
  s || n == null || n(b);
8375
8376
  },
8376
8377
  onChange: () => {
8377
- s || b === a || i == null || i(b);
8378
+ X || s || b === a || i == null || i(b);
8378
8379
  }
8379
8380
  },
8380
8381
  b
@@ -8616,8 +8617,8 @@ function Iy({
8616
8617
  optionTemplate: D = Cu,
8617
8618
  optionAsValue: $,
8618
8619
  selectInitialOption: Z,
8619
- selectRef: J,
8620
- sx: Y,
8620
+ selectRef: X,
8621
+ sx: J,
8621
8622
  value: W,
8622
8623
  valueField: U = "id",
8623
8624
  multiple: O,
@@ -8690,7 +8691,7 @@ function Iy({
8690
8691
  }
8691
8692
  }
8692
8693
  I == null || I(j, ee);
8693
- }, se = () => /* @__PURE__ */ z(mu, { ...q, notched: !!W, error: m, multiple: O, ref: J, labelId: `${b}-label`, id: `${b}-select`, label: w, value: Me, onChange: le, disabled: s, MenuProps: {
8694
+ }, se = () => /* @__PURE__ */ z(mu, { ...q, notched: !!W, error: m, multiple: O, ref: X, labelId: `${b}-label`, id: `${b}-select`, label: w, value: Me, onChange: le, disabled: s, MenuProps: {
8694
8695
  PaperProps: {
8695
8696
  sx: {
8696
8697
  maxHeight: g
@@ -8717,20 +8718,20 @@ function Iy({
8717
8718
  "& > .MuiSelect-select": {
8718
8719
  padding: E === "smaller" ? "8px 12px" : void 0
8719
8720
  },
8720
- ...Y
8721
+ ...J
8721
8722
  }, size: "small", inputProps: {
8722
8723
  size: "small"
8723
8724
  }, renderValue: er(W) ? () => null : f && pe(W) ? () => ge(W) : void 0, children: [
8724
8725
  o,
8725
8726
  d ? ie(i) : oe(i)
8726
- ] }), ke = () => x ? /* @__PURE__ */ u(gu, { error: !0, children: x }) : null, X = (j, ee) => /* @__PURE__ */ z(A3, { fullWidth: !0, error: !!m, size: "small", children: [
8727
+ ] }), ke = () => x ? /* @__PURE__ */ u(gu, { error: !0, children: x }) : null, K = (j, ee) => /* @__PURE__ */ z(A3, { fullWidth: !0, error: !!m, size: "small", children: [
8727
8728
  /* @__PURE__ */ u(M3, { shrink: !!W, id: `${b}-label`, sx: {
8728
8729
  lineHeight: E === "smaller" ? 1.4 : void 0
8729
8730
  }, children: w }),
8730
8731
  j,
8731
8732
  ee
8732
8733
  ] }), it = se(), xe = ke();
8733
- return w ? X(it, xe) : /* @__PURE__ */ z(ze, { children: [
8734
+ return w ? K(it, xe) : /* @__PURE__ */ z(ze, { children: [
8734
8735
  it,
8735
8736
  xe
8736
8737
  ] });
@@ -8802,9 +8803,9 @@ function $e({
8802
8803
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8803
8804
  field: {
8804
8805
  disabled: Z,
8805
- ...J
8806
+ ...X
8806
8807
  },
8807
- fieldState: Y
8808
+ fieldState: J
8808
8809
  } = ym({
8809
8810
  name: $,
8810
8811
  control: o,
@@ -8824,21 +8825,21 @@ function $e({
8824
8825
  }, O = w === "all" || w === "selected-fields" && (b == null ? void 0 : b.includes($)), E = n ?? f;
8825
8826
  if (!E)
8826
8827
  throw new Error(`missing render function in field ${$}`);
8827
- const q = O && !(U != null && U.disabled) ? Y : {
8828
- ...Y,
8828
+ const q = O && !(U != null && U.disabled) ? J : {
8829
+ ...J,
8829
8830
  error: void 0
8830
8831
  }, G = m === "onBlur" ? {
8831
- ...J,
8832
+ ...X,
8832
8833
  onChange: (me) => {
8833
8834
  I($, me.target.value), D(!0);
8834
8835
  },
8835
8836
  onBlur: () => {
8836
- J.onBlur(), _();
8837
+ X.onBlur(), _();
8837
8838
  }
8838
8839
  } : {
8839
- ...J,
8840
+ ...X,
8840
8841
  onChange: (me) => {
8841
- J.onChange(me), D(!0);
8842
+ X.onChange(me), D(!0);
8842
8843
  }
8843
8844
  }, Re = E == null ? void 0 : E({
8844
8845
  ...G,
@@ -8891,13 +8892,18 @@ function Ly({
8891
8892
  currency: o = Bl,
8892
8893
  prefix: i = "",
8893
8894
  suffix: a = "",
8894
- ...s
8895
- }, f) {
8895
+ value: s,
8896
+ sx: f,
8897
+ ...g
8898
+ }, m) {
8896
8899
  const {
8897
- prefix: g = "",
8898
- suffix: m = ""
8900
+ prefix: d = "",
8901
+ suffix: x = ""
8899
8902
  } = Wl(o);
8900
- return /* @__PURE__ */ u(bf, { decimalDigit: n, ref: f, prefix: `${i} ${g}`, suffix: `${m} ${a}`, ...s });
8903
+ return /* @__PURE__ */ u(bf, { decimalDigit: n, ref: m, prefix: `${i} ${d}`, suffix: `${x} ${a}`, value: s, sx: {
8904
+ color: s ? void 0 : "text.secondary",
8905
+ ...f
8906
+ }, ...g });
8901
8907
  }
8902
8908
  const Ey = It(Ly), Fy = Vt(/* @__PURE__ */ u("path", { d: "M19,4H18V2.5a.5.5,0,0,0-.5-.5h-1a.5.5,0,0,0-.5.5V4H8V2.5A.5.5,0,0,0,7.5,2h-1a.5.5,0,0,0-.5.5V4H5A2,2,0,0,0,3,6V19a2,2,0,0,0,2,2H19a2,2,0,0,0,2-2V6A2,2,0,0,0,19,4Zm0,15H5V8H19Z" }), "Calendar");
8903
8909
  function Ry({
@@ -8922,8 +8928,8 @@ function Ry({
8922
8928
  const A = i ? I : o ? x : d;
8923
8929
  let D, $ = _;
8924
8930
  s != null && ($ = s), $ ? D = Rt.utc(n).local() : D = Rt(n);
8925
- const Z = D.format(f ?? A), J = i ? Z : D.format(f ?? (o ? w : b));
8926
- return /* @__PURE__ */ z(Ot, { alignItems: "center", title: J, ...g, ref: m, gap: 1, children: [
8931
+ const Z = D.format(f ?? A), X = i ? Z : D.format(f ?? (o ? w : b));
8932
+ return /* @__PURE__ */ z(Ot, { alignItems: "center", title: X, ...g, ref: m, gap: 1, children: [
8927
8933
  a && /* @__PURE__ */ u(Fy, { sx: {
8928
8934
  color: "currentColor"
8929
8935
  } }),
@@ -9059,7 +9065,7 @@ function Sf(n) {
9059
9065
  ...m == null ? void 0 : m.clear
9060
9066
  },
9061
9067
  "clear"
9062
- ), J = () => !x.export || g != null && g.export ? null : /* @__PURE__ */ u(
9068
+ ), X = () => !x.export || g != null && g.export ? null : /* @__PURE__ */ u(
9063
9069
  tr,
9064
9070
  {
9065
9071
  color: "secondary",
@@ -9072,7 +9078,7 @@ function Sf(n) {
9072
9078
  ...m == null ? void 0 : m.export
9073
9079
  },
9074
9080
  "clear"
9075
- ), Y = () => !x.create || g != null && g.create ? null : /* @__PURE__ */ u(
9081
+ ), J = () => !x.create || g != null && g.create ? null : /* @__PURE__ */ u(
9076
9082
  Br,
9077
9083
  {
9078
9084
  startIcon: /* @__PURE__ */ u(Ll, {}),
@@ -9125,7 +9131,7 @@ function Sf(n) {
9125
9131
  return O.length ? /* @__PURE__ */ u(no, { options: O }, "more-options") : null;
9126
9132
  };
9127
9133
  return /* @__PURE__ */ u(ze, { children: (() => {
9128
- const O = W(), E = $(), q = J(), G = Z(), Re = Y();
9134
+ const O = W(), E = $(), q = X(), G = Z(), Re = J();
9129
9135
  return /* @__PURE__ */ z(ze, { children: [
9130
9136
  f,
9131
9137
  [q, G, Re, E],
@@ -9262,8 +9268,8 @@ function Vy({
9262
9268
  enableClear: D,
9263
9269
  enableCreateItem: $ = !0,
9264
9270
  enableRefetch: Z,
9265
- enableExport: J,
9266
- enableSearch: Y,
9271
+ enableExport: X,
9272
+ enableSearch: J,
9267
9273
  error: W,
9268
9274
  filterContent: U,
9269
9275
  hotkeyScopes: O,
@@ -9281,7 +9287,7 @@ function Vy({
9281
9287
  onHeader: le,
9282
9288
  onSearch: se,
9283
9289
  onTabChanged: ke,
9284
- tableProps: X,
9290
+ tableProps: K,
9285
9291
  onWrapperLayout: it,
9286
9292
  showHeader: xe = !0,
9287
9293
  ...kt
@@ -9299,7 +9305,7 @@ function Vy({
9299
9305
  }, [W]);
9300
9306
  const [Le, Te] = Au({
9301
9307
  models: x,
9302
- uniqueIdParamName: (X == null ? void 0 : X.rowIdField) ?? ff
9308
+ uniqueIdParamName: (K == null ? void 0 : K.rowIdField) ?? ff
9303
9309
  }), ve = Se((H, fe) => {
9304
9310
  if (typeof Q == "function" ? !0 : !!(Q != null && Q[H]))
9305
9311
  return Le({
@@ -9365,7 +9371,7 @@ function Vy({
9365
9371
  const H = {
9366
9372
  newRowButtonText: ((Ee = d == null ? void 0 : d.create) == null ? void 0 : Ee.children) ?? j("newitem"),
9367
9373
  onNewRow: () => ve("create"),
9368
- ...X,
9374
+ ...K,
9369
9375
  columns: _ ? [...m ?? [], {
9370
9376
  accessorKey: "commands",
9371
9377
  align: "center",
@@ -9415,12 +9421,12 @@ function Vy({
9415
9421
  }
9416
9422
  },
9417
9423
  onAfterSave: (N, {
9418
- reason: K,
9424
+ reason: Y,
9419
9425
  mode: Ve
9420
9426
  }) => {
9421
9427
  switch (Ve) {
9422
9428
  case "save":
9423
- K === "create" && N && ve("fetch", N);
9429
+ Y === "create" && N && ve("fetch", N);
9424
9430
  break;
9425
9431
  case "save-close":
9426
9432
  case "save-create":
@@ -9442,9 +9448,9 @@ function Vy({
9442
9448
  clear: me,
9443
9449
  enableClear: D,
9444
9450
  enableCreateItem: $,
9445
- enableExport: J,
9446
- enableSearch: Y
9447
- }), [x, D, $, J, Y, q, me, ve, se]);
9451
+ enableExport: X,
9452
+ enableSearch: J
9453
+ }), [x, D, $, X, J, q, me, ve, se]);
9448
9454
  return /* @__PURE__ */ u(yf.Provider, { value: be, children: ot() });
9449
9455
  }
9450
9456
  function Zy({
@@ -9471,8 +9477,8 @@ function Zy({
9471
9477
  defaultValues: $,
9472
9478
  isLoading: Z
9473
9479
  },
9474
- getFormModel: J
9475
- } = m, Y = {
9480
+ getFormModel: X
9481
+ } = m, J = {
9476
9482
  enableSorting: g,
9477
9483
  enablePagination: f,
9478
9484
  manualPagination: f && I === "server",
@@ -9524,7 +9530,7 @@ function Zy({
9524
9530
  }
9525
9531
  }, W = async (E) => {
9526
9532
  try {
9527
- const q = await J();
9533
+ const q = await X();
9528
9534
  x == null || x(q, E);
9529
9535
  } catch {
9530
9536
  }
@@ -9551,7 +9557,7 @@ function Zy({
9551
9557
  pagination: {
9552
9558
  pageIndex: Wr
9553
9559
  }
9554
- }), tableProps: Y, activeSegmentIndex: d == null ? void 0 : d.selectedTabIndex, onTabChanged: (E) => {
9560
+ }), tableProps: J, activeSegmentIndex: d == null ? void 0 : d.selectedTabIndex, onTabChanged: (E) => {
9555
9561
  W({
9556
9562
  reason: "tabChanged",
9557
9563
  ...E
@@ -9696,7 +9702,7 @@ function Jy({
9696
9702
  setFiltersInQS: Z
9697
9703
  } = Yy({
9698
9704
  matcher: typeof a == "object" ? a : void 0
9699
- }), [J] = Ne(() => {
9705
+ }), [X] = Ne(() => {
9700
9706
  if (a) {
9701
9707
  const {
9702
9708
  filter: O,
@@ -9717,7 +9723,7 @@ function Jy({
9717
9723
  defaultFilter: n,
9718
9724
  defaultMeta: o
9719
9725
  };
9720
- }), Y = (O, E) => {
9726
+ }), J = (O, E) => {
9721
9727
  const {
9722
9728
  reason: q,
9723
9729
  selectedTabIndex: G
@@ -9760,7 +9766,7 @@ function Jy({
9760
9766
  O.pageContent,
9761
9767
  O.detailPageContent,
9762
9768
  i ? /* @__PURE__ */ u(Tm, {}) : null
9763
- ] }), ...x, tabs: m, onNeedData: Y, ...J });
9769
+ ] }), ...x, tabs: m, onNeedData: J, ...X });
9764
9770
  }
9765
9771
  function qy({
9766
9772
  modalProps: n,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-crud-mui",
3
3
  "private": false,
4
- "version": "0.2.45",
4
+ "version": "0.2.47",
5
5
  "type": "module",
6
6
  "main": "./dist/coreui.js",
7
7
  "module": "./dist/coreui.js",