@applica-software-guru/react-admin 1.1.112 → 1.1.113

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.
@@ -6,7 +6,7 @@ import { useResourceDefinitions as fR, useGetIdentity as tI, usePermissions as g
6
6
  import { ArrayInputContext as A_, BooleanField as d_, BulkDeleteWithConfirmButton as f_, Button as g_, ChipField as p_, Confirm as h_, CreateButton as C_, CreateContextProvider as E_, CustomRoutes as m_, DeleteWithConfirmButton as I_, DeleteWithUndoButton as B_, EditButton as v_, EditContextProvider as y_, FieldTitle as Q_, Form as b_, FormDataConsumer as x_, HttpError as w_, I18nContextProvider as T_, ListToolbar as P_, LoadingIndicator as R_, Pagination as S_, SimpleFormIterator as O_, RecordContextProvider as D_, ReferenceArrayField as M_, ReferenceField as k_, Resource as F_, ResourceContextProvider as L_, SaveButton as N_, SimpleFormIteratorContext as j_, SimpleList as V_, SimpleShowLayout as H_, SingleFieldList as z_, TopToolbar as W_, UrlField as U_, choices as Y_, email as G_, maxLength as K_, maxValue as __, minLength as q_, minValue as J_, number as $_, regex as X_, required as Z_, useArrayInput as eq, useAuthProvider as tq, useChoices as nq, useChoicesContext as rq, useCreateController as oq, useDataProvider as iq, useEditContext as aq, useGetIdentity as sq, useGetList as lq, useGetMany as cq, useGetManyReference as uq, useGetOne as Aq, useInput as dq, useListContext as fq, useNotify as gq, usePermissions as pq, useRecordContext as hq, useRefresh as Cq, useResourceContext as Eq, useResourceDefinition as mq, useResourceDefinitions as Iq, useShowContext as Bq, useShowController as vq, useSimpleFormIterator as yq, useSimpleFormIteratorItem as Qq, useTranslate as bq, useTranslateLabel as xq, useUnselect as wq, useUnselectAll as Tq, useUpdateMany as Pq } from "react-admin";
7
7
  import { Popover as jR, styled as BI, IconButton as vI, MenuItem as VR, Card as HR, CardHeader as $d, Typography as Ie, Divider as ns, CardContent as yI, Grid as ve, Box as ke, Tooltip as au, tooltipClasses as Jl, Grow as zR, Collapse as QI, Fade as WR, Slide as UR, Zoom as bI, CircularProgress as li, circularProgressClasses as YR, LinearProgress as xI, Stack as Gt, InputLabel as Xf, FormHelperText as wI, TextField as GR, Alert as KR, AlertTitle as _R, useMediaQuery as rs, ListItemButton as Sr, ListItemIcon as fr, ListItemText as Er, ListItemSecondaryAction as qR, Avatar as xc, List as ea, TableCell as os, TableContainer as JR, Paper as ci, Table as $R, TableHead as XR, TableRow as ud, TableBody as ZR, useTheme as no, Dialog as su, Toolbar as Zf, AppBar as eg, ListItem as eS, ListItemAvatar as tS, Badge as nS, Popper as Ms, ClickAwayListener as ta, ButtonBase as TI, Container as PI, Drawer as rS, useScrollTrigger as oS, Chip as rE, Fab as iS, darken as aS, lighten as sS, Button as lu, Link as lS, StyledEngineProvider as cS, CssBaseline as uS } from "@mui/material";
8
8
  import * as F from "react";
9
- import we, { useState as Ze, useCallback as Ke, Children as cu, createContext as Vn, useContext as zt, useMemo as tt, useEffect as ft, useLayoutEffect as AS, useRef as $r, useInsertionEffect as dS, forwardRef as ro, createElement as fS, useId as gS, isValidElement as is, cloneElement as as, Fragment as Mr, useReducer as pS, Suspense as hS } from "react";
9
+ import we, { useState as Ze, useCallback as Ke, Children as cu, createContext as Vn, useContext as zt, useMemo as et, useEffect as ft, useLayoutEffect as AS, useRef as $r, useInsertionEffect as dS, forwardRef as ro, createElement as fS, useId as gS, isValidElement as is, cloneElement as as, Fragment as Mr, useReducer as pS, Suspense as hS } from "react";
10
10
  import CS from "@emotion/styled";
11
11
  import { ThemeContext as RI, keyframes as So, css as ks, useTheme as tg } from "@emotion/react";
12
12
  import { MoreHoriz as ES, MoreVert as mS, Key as IS, LogoutOutlined as SI, Add as oE, Edit as BS, VpnKey as vS, Inbox as yS, Email as QS, Drafts as bS } from "@mui/icons-material";
@@ -3806,8 +3806,8 @@ Mc.exports;
3806
3806
  "setTimeout"
3807
3807
  ], b1 = -1, vt = {};
3808
3808
  vt[xe] = vt[pt] = vt[Ue] = vt[ye] = vt[Vt] = vt[vr] = vt[ar] = vt[No] = vt[Ei] = !0, vt[le] = vt[de] = vt[be] = vt[pe] = vt[We] = vt[fe] = vt[Qe] = vt[oe] = vt[ue] = vt[ut] = vt[It] = vt[Qt] = vt[Bt] = vt[gt] = vt[Pe] = !1;
3809
- var Ct = {};
3810
- Ct[le] = Ct[de] = Ct[be] = Ct[We] = Ct[pe] = Ct[fe] = Ct[xe] = Ct[pt] = Ct[Ue] = Ct[ye] = Ct[Vt] = Ct[ue] = Ct[ut] = Ct[It] = Ct[Qt] = Ct[Bt] = Ct[gt] = Ct[Nt] = Ct[vr] = Ct[ar] = Ct[No] = Ct[Ei] = !0, Ct[Qe] = Ct[oe] = Ct[Pe] = !1;
3809
+ var Et = {};
3810
+ Et[le] = Et[de] = Et[be] = Et[We] = Et[pe] = Et[fe] = Et[xe] = Et[pt] = Et[Ue] = Et[ye] = Et[Vt] = Et[ue] = Et[ut] = Et[It] = Et[Qt] = Et[Bt] = Et[gt] = Et[Nt] = Et[vr] = Et[ar] = Et[No] = Et[Ei] = !0, Et[Qe] = Et[oe] = Et[Pe] = !1;
3811
3811
  var x1 = {
3812
3812
  // Latin-1 Supplement block.
3813
3813
  À: "A",
@@ -4627,7 +4627,7 @@ Mc.exports;
4627
4627
  if (R = z || ge ? {} : fC(o), !k)
4628
4628
  return z ? Tw(o, $x(R, o)) : ww(o, Qh(R, o));
4629
4629
  } else {
4630
- if (!Ct[ne])
4630
+ if (!Et[ne])
4631
4631
  return v ? o : {};
4632
4632
  R = Vw(o, ne, k);
4633
4633
  }
@@ -7418,7 +7418,7 @@ function print() { __p += __j.call(arguments, '') }
7418
7418
  }).call(Xn);
7419
7419
  })(Mc, Mc.exports);
7420
7420
  var lt = Mc.exports;
7421
- const Et = /* @__PURE__ */ fa(lt), LE = (e) => function() {
7421
+ const Ct = /* @__PURE__ */ fa(lt), LE = (e) => function() {
7422
7422
  return e.apply(this, arguments);
7423
7423
  }, vs = c.shape({
7424
7424
  id: c.string,
@@ -7604,7 +7604,7 @@ const di = () => zt(gB), EM = ["e-", "entities/"], mM = (e) => {
7604
7604
  p && (p.children || (p.children = []));
7605
7605
  }), g.filter(EB).map(mB);
7606
7606
  }, IB = () => {
7607
- const e = fR(), { isLoading: t, data: n } = tI(), r = n && n.id > 0, { isLoading: i, permissions: s } = gR(r), { groups: l } = di(), u = rr(), A = tt(() => {
7607
+ const e = fR(), { isLoading: t, data: n } = tI(), r = n && n.id > 0, { isLoading: i, permissions: s } = gR(r), { groups: l } = di(), u = rr(), A = et(() => {
7608
7608
  if (t || !n || n === null || (n == null ? void 0 : n.id) <= 0)
7609
7609
  return null;
7610
7610
  const g = ((n == null ? void 0 : n.roles) || []).map((p) => p.id);
@@ -7615,7 +7615,7 @@ const di = () => zt(gB), EM = ["e-", "entities/"], mM = (e) => {
7615
7615
  userGroups: l,
7616
7616
  roles: g
7617
7617
  });
7618
- }, [t, i, n, e, s, u, l]), f = tt(() => t, [t]);
7618
+ }, [t, i, n, e, s, u, l]), f = et(() => t, [t]);
7619
7619
  return {
7620
7620
  menu: A,
7621
7621
  isLoading: f,
@@ -7625,7 +7625,7 @@ const di = () => zt(gB), EM = ["e-", "entities/"], mM = (e) => {
7625
7625
  };
7626
7626
  }, yM = () => {
7627
7627
  const e = rr(), { isLoading: t, menu: n, findInMenu: r } = IB(), { pathname: i } = Aa();
7628
- return tt(() => {
7628
+ return et(() => {
7629
7629
  var h;
7630
7630
  const s = i.split("/").filter((p) => p);
7631
7631
  let l = lt.cloneDeep(n), u = i, A = r(l, i);
@@ -7683,7 +7683,7 @@ function BB(e, t) {
7683
7683
  }
7684
7684
  const QM = (e) => {
7685
7685
  const t = Xt(), n = rr(), r = bn(), i = t != null && t.id ? "edit" : "create";
7686
- return tt(() => {
7686
+ return et(() => {
7687
7687
  const l = `resources.${r}.title`;
7688
7688
  return e || n(`resources.${r}.title.${i}`, {
7689
7689
  _: n(l, { _: l }),
@@ -7692,12 +7692,12 @@ const QM = (e) => {
7692
7692
  }, [i, t, r, n, e]);
7693
7693
  }, mr = () => zt(AB);
7694
7694
  function Vs(e, t) {
7695
- const n = Et.merge(
7696
- Et.cloneDeepWith((e == null ? void 0 : e.sx) ?? {}, (s) => Et.isFunction(s) ? s : void 0),
7695
+ const n = Ct.merge(
7696
+ Ct.cloneDeepWith((e == null ? void 0 : e.sx) ?? {}, (s) => Ct.isFunction(s) ? s : void 0),
7697
7697
  t
7698
7698
  ), [r, i] = Ze(n);
7699
7699
  return ft(() => {
7700
- Et.isEqual(r, n) || i(n);
7700
+ Ct.isEqual(r, n) || i(n);
7701
7701
  }, [r, n]), r;
7702
7702
  }
7703
7703
  function KK(e, t) {
@@ -7729,7 +7729,7 @@ function KK(e, t) {
7729
7729
  });
7730
7730
  }
7731
7731
  const l = new ResizeObserver(s);
7732
- return Et.isEmpty(e == null ? void 0 : e.current) || (l.observe(e == null ? void 0 : e.current), s()), () => {
7732
+ return Ct.isEmpty(e == null ? void 0 : e.current) || (l.observe(e == null ? void 0 : e.current), s()), () => {
7733
7733
  l.disconnect();
7734
7734
  };
7735
7735
  }, [i, t]), n;
@@ -7833,7 +7833,7 @@ function TM(e, t) {
7833
7833
  }
7834
7834
  function PM(e) {
7835
7835
  const { initial: t, animate: n } = TM(e, zt(yu));
7836
- return tt(() => ({ initial: t, animate: n }), [NE(t), NE(n)]);
7836
+ return et(() => ({ initial: t, animate: n }), [NE(t), NE(n)]);
7837
7837
  }
7838
7838
  function NE(e) {
7839
7839
  return Array.isArray(e) ? e.join(" ") : e;
@@ -8134,7 +8134,7 @@ function DB(e, t, n) {
8134
8134
  !yn(t[r]) && !TB(r, n) && (e[r] = t[r]);
8135
8135
  }
8136
8136
  function YM({ transformTemplate: e }, t, n) {
8137
- return tt(() => {
8137
+ return et(() => {
8138
8138
  const r = Tg();
8139
8139
  return wg(r, t, { enableHardwareAcceleration: !n }, e), Object.assign({}, r.vars, r.style);
8140
8140
  }, [t]);
@@ -8246,7 +8246,7 @@ const kB = () => ({
8246
8246
  attrs: {}
8247
8247
  }), Rg = (e) => typeof e == "string" && e.toLowerCase() === "svg";
8248
8248
  function t5(e, t, n, r) {
8249
- const i = tt(() => {
8249
+ const i = et(() => {
8250
8250
  const s = kB();
8251
8251
  return Pg(s, t, { enableHardwareAcceleration: !1 }, Rg(r), e.transformTemplate), {
8252
8252
  ...s.attrs,
@@ -8265,7 +8265,7 @@ function n5(e = !1) {
8265
8265
  ...JM(r, typeof n == "string", e),
8266
8266
  ...A,
8267
8267
  ref: i
8268
- }, { children: h } = r, p = tt(() => yn(h) ? h.get() : h, [h]);
8268
+ }, { children: h } = r, p = et(() => yn(h) ? h.get() : h, [h]);
8269
8269
  return fS(n, {
8270
8270
  ...g,
8271
8271
  children: p
@@ -15882,18 +15882,18 @@ S9.propTypes = {
15882
15882
  };
15883
15883
  const sy = Vn({});
15884
15884
  function O9(e) {
15885
- const { useDefaults: t = !1 } = e, n = bn(), r = eu(), { search: i } = uu(), s = `${n}/new`, l = Ke(() => {
15886
- if (!t || !Et.isFunction(r.get))
15885
+ const { useDefaults: t = !1, queryOptions: n = {} } = e, r = bn(), i = eu(), { search: s } = uu(), l = `${r}/new`, u = Ke(() => {
15886
+ if (!t || !Ct.isFunction(i.get))
15887
15887
  return Promise.resolve({});
15888
- const g = {};
15889
- return new URLSearchParams(i ?? "").forEach((h, p) => {
15890
- g[p] = h;
15891
- }), r.get(s, g).then((h) => h.data).then((h) => {
15892
- const { responseCode: p, value: m } = h;
15893
- return p === "ok" ? m : Promise.reject(h);
15888
+ const p = {};
15889
+ return new URLSearchParams(s ?? "").forEach((m, I) => {
15890
+ p[I] = m;
15891
+ }), i.get(l, p).then((m) => m.data).then((m) => {
15892
+ const { responseCode: I, value: B } = m;
15893
+ return I === "ok" ? B : Promise.reject(m);
15894
15894
  });
15895
- }, [n, t, i, r]), { data: u, isLoading: A } = sO({ queryKey: [n, i], queryFn: l }), f = Et.omit(e, ["useDefaults"]);
15896
- return A ? /* @__PURE__ */ C(Gt, { alignItems: "center", justifyContent: "center", flex: 1, p: 2, children: /* @__PURE__ */ C(li, {}) }) : /* @__PURE__ */ C(sy.Provider, { value: u ?? {}, children: /* @__PURE__ */ C(pR, { ...f }) });
15895
+ }, [r, t, s, i]), A = et(() => Ct.chain(n).extend({ queryKey: [r, s], queryFn: u }).value(), [r, s, u, n]), { data: f, isLoading: g } = sO(A), h = Ct.omit(e, ["useDefaults"]);
15896
+ return g ? /* @__PURE__ */ C(Gt, { alignItems: "center", justifyContent: "center", flex: 1, p: 2, children: /* @__PURE__ */ C(li, {}) }) : /* @__PURE__ */ C(sy.Provider, { value: f ?? {}, children: /* @__PURE__ */ C(pR, { ...h }) });
15897
15897
  }
15898
15898
  function qK() {
15899
15899
  return zt(sy);
@@ -15933,7 +15933,7 @@ Mo.propTypes = {
15933
15933
  ...Lf.propTypes
15934
15934
  };
15935
15935
  const $g = ({ children: e, content: t, title: n, subheader: r, secondary: i, toolbar: s, ...l }) => {
15936
- const u = rr(), A = bn(), { cardTitle: f, cardSubheader: g } = tt(() => {
15936
+ const u = rr(), A = bn(), { cardTitle: f, cardSubheader: g } = et(() => {
15937
15937
  const h = n || `resources.${A}.title`;
15938
15938
  return {
15939
15939
  cardTitle: u(h, { _: h }),
@@ -16487,7 +16487,7 @@ const eo = /* @__PURE__ */ fa(N9), Ay = ({ entityId: e, property: t, disabled: n
16487
16487
  P.href = y, P.download = lt.get(u, (i == null ? void 0 : i.title) || (i == null ? void 0 : i.source)), P.click();
16488
16488
  },
16489
16489
  [A, u, e, f, t, i == null ? void 0 : i.source, i == null ? void 0 : i.title]
16490
- ), h = tt(
16490
+ ), h = et(
16491
16491
  () => ({
16492
16492
  ...u,
16493
16493
  [i == null ? void 0 : i.source]: (u == null ? void 0 : u.src) || lt.get(u, i == null ? void 0 : i.source),
@@ -16544,7 +16544,7 @@ const tp = ({
16544
16544
  record: i,
16545
16545
  ...s
16546
16546
  }) => {
16547
- const l = tt(
16547
+ const l = et(
16548
16548
  () => ({
16549
16549
  width: typeof e == "number" ? `${e}px !important` : `${e} !important`,
16550
16550
  height: typeof t == "number" ? `${t}px !important` : `${t} !important`,
@@ -16634,7 +16634,7 @@ var V9 = dy.exports;
16634
16634
  const H9 = /* @__PURE__ */ fa(V9);
16635
16635
  eo.extend(H9);
16636
16636
  const np = (e) => {
16637
- const t = Xt(e), [n] = Vf(), r = tt(() => eo(lt.get(t, e == null ? void 0 : e.source)).locale(n).fromNow(), [t, e == null ? void 0 : e.source, n]);
16637
+ const t = Xt(e), [n] = Vf(), r = et(() => eo(lt.get(t, e == null ? void 0 : e.source)).locale(n).fromNow(), [t, e == null ? void 0 : e.source, n]);
16638
16638
  return /* @__PURE__ */ Z(Mr, { children: [
16639
16639
  /* @__PURE__ */ C(Os, { record: t, source: e.source, showTime: !0 }),
16640
16640
  /* @__PURE__ */ C("br", {}),
@@ -16729,7 +16729,7 @@ Ey.propTypes = {
16729
16729
  children: c.oneOfType([c.element, c.arrayOf(c.element)])
16730
16730
  };
16731
16731
  const my = ({ label: e, source: t, defaultValue: n, children: r, tooltip: i, ...s }) => {
16732
- const { getCurrentDialog: l } = Ca(), u = Xt(s), A = bn(s), f = l(), g = tt(() => !i || i === !1 ? !1 : typeof i == "function" ? i(u) : typeof i == "string" ? lt.get(u, i, i) : i, [u, i]);
16732
+ const { getCurrentDialog: l } = Ca(), u = Xt(s), A = bn(s), f = l(), g = et(() => !i || i === !1 ? !1 : typeof i == "function" ? i(u) : typeof i == "string" ? lt.get(u, i, i) : i, [u, i]);
16733
16733
  return /* @__PURE__ */ C(Ey, { title: g, children: /* @__PURE__ */ Z(Mr, { children: [
16734
16734
  /* @__PURE__ */ C(Xf, { children: /* @__PURE__ */ C(Nf, { label: e, source: t, resource: f || A }) }),
16735
16735
  /* @__PURE__ */ C(U9, { ...s, children: we.cloneElement(r, {
@@ -17114,7 +17114,7 @@ const eL = se(ru, {
17114
17114
  }
17115
17115
  }
17116
17116
  })), Ty = ({ children: e, title: t, ...n }) => {
17117
- const r = kI({ name: n.source }), i = Xt(n), { source: s } = n, l = tt(() => {
17117
+ const r = kI({ name: n.source }), i = Xt(n), { source: s } = n, l = et(() => {
17118
17118
  if (r && (r != null && r.title))
17119
17119
  return r == null ? void 0 : r.title;
17120
17120
  const u = lt.get(i, s);
@@ -17852,7 +17852,7 @@ const QL = se(ve, {
17852
17852
  sticky: u,
17853
17853
  ...A
17854
17854
  }) => {
17855
- const [f, g] = Ze(0), h = oO(""), p = bn(A), m = uu(), I = tt(() => we.Children.toArray(e).find((w) => r0(w, "top")), [e]), B = tt(() => we.Children.toArray(e).find((w) => r0(w, "bottom")), [e]), y = tt(() => we.Children.toArray(e).filter((w) => bL(w)), [e]), P = (w) => {
17855
+ const [f, g] = Ze(0), h = oO(""), p = bn(A), m = uu(), I = et(() => we.Children.toArray(e).find((w) => r0(w, "top")), [e]), B = et(() => we.Children.toArray(e).find((w) => r0(w, "bottom")), [e]), y = et(() => we.Children.toArray(e).filter((w) => bL(w)), [e]), P = (w) => {
17856
17856
  n || g(w);
17857
17857
  }, S = () => we.cloneElement(
17858
17858
  i,
@@ -17864,7 +17864,7 @@ const QL = se(ve, {
17864
17864
  intent: "header"
17865
17865
  },
17866
17866
  y
17867
- ), b = tt(
17867
+ ), b = et(
17868
17868
  () => /* @__PURE__ */ Z(Mr, { children: [
17869
17869
  I,
17870
17870
  n ? /* @__PURE__ */ C(iO, { children: /* @__PURE__ */ C(aO, { path: "/*", element: S() }) }) : S(),
@@ -17982,7 +17982,7 @@ ap.Tab = ou.Tab;
17982
17982
  const Hy = Vn(void 0), wL = Vn(void 0), TL = () => zt(Hy), PL = F.forwardRef((e, t) => {
17983
17983
  const { children: n, disabled: r, disableActions: i = !1, index: s, member: l, resource: u } = e, A = rr(), [f, g] = F.useState(!1), { total: h, remove: p } = TL(), m = F.useCallback(() => {
17984
17984
  g(!1), p(s);
17985
- }, [s, p]), I = tt(
17985
+ }, [s, p]), I = et(
17986
17986
  // @ts-ignore
17987
17987
  () => ({
17988
17988
  index: s,
@@ -18329,7 +18329,7 @@ const oV = /* @__PURE__ */ fa(rV), _y = (e) => {
18329
18329
  }
18330
18330
  const T = Ke(() => {
18331
18331
  I([]), h(!1);
18332
- }, [I]), M = oV(P, r), O = tt(
18332
+ }, [I]), M = oV(P, r), O = et(
18333
18333
  () => ({
18334
18334
  total: p.length,
18335
18335
  remove: w,
@@ -18416,27 +18416,27 @@ _y.propTypes = {
18416
18416
  empty: c.oneOfType([c.node, c.string])
18417
18417
  };
18418
18418
  function iV(e, t) {
18419
- const n = Et.clone(e), { type: r, payload: i } = t;
18419
+ const n = Ct.clone(e), { type: r, payload: i } = t;
18420
18420
  switch (r) {
18421
18421
  case "updateMedia": {
18422
- const s = Et.chain(n.media).clone().extend(i).value();
18423
- return Et.extend(n, { media: s });
18422
+ const s = Ct.chain(n.media).clone().extend(i).value();
18423
+ return Ct.extend(n, { media: s });
18424
18424
  }
18425
18425
  case "updateDrawer": {
18426
- const s = Et.chain(n.drawer).clone().extend(i).value();
18427
- return Et.extend(n, { drawer: s });
18426
+ const s = Ct.chain(n.drawer).clone().extend(i).value();
18427
+ return Ct.extend(n, { drawer: s });
18428
18428
  }
18429
18429
  case "updateLogo": {
18430
- const s = Et.chain(n.logo).clone().extend(i).value();
18431
- return Et.extend(n, { logo: s });
18430
+ const s = Ct.chain(n.logo).clone().extend(i).value();
18431
+ return Ct.extend(n, { logo: s });
18432
18432
  }
18433
18433
  case "updateNotifications": {
18434
- const s = Et.chain(n.notifications).clone().extend(i).value();
18435
- return Et.extend(n, { notifications: s });
18434
+ const s = Ct.chain(n.notifications).clone().extend(i).value();
18435
+ return Ct.extend(n, { notifications: s });
18436
18436
  }
18437
18437
  case "updateTheme": {
18438
- const s = Et.chain(n.theme).clone().extend(i).value();
18439
- return Et.extend(n, { theme: s });
18438
+ const s = Ct.chain(n.theme).clone().extend(i).value();
18439
+ return Ct.extend(n, { theme: s });
18440
18440
  }
18441
18441
  default:
18442
18442
  return n;
@@ -18471,8 +18471,8 @@ function sV(e) {
18471
18471
  p(!h);
18472
18472
  }, [h, p]), [I, B] = Ze(!1), [y, P] = pS(
18473
18473
  iV,
18474
- Et.chain(aV).clone().merge({ drawer: { open: !l || h } }).value()
18475
- ), S = Ke(() => B(!1), []), b = tt(() => ({ state: y, dispatch: P }), [y, P]), { logoIcon: w, logoMain: T, enableNotification: M, notification: O } = e;
18474
+ Ct.chain(aV).clone().merge({ drawer: { open: !l || h } }).value()
18475
+ ), S = Ke(() => B(!1), []), b = et(() => ({ state: y, dispatch: P }), [y, P]), { logoIcon: w, logoMain: T, enableNotification: M, notification: O } = e;
18476
18476
  return ft(() => {
18477
18477
  P({
18478
18478
  type: "updateMedia",
@@ -18592,7 +18592,7 @@ function AV(e) {
18592
18592
  elevation: 0,
18593
18593
  sx: A
18594
18594
  };
18595
- return r || Et.extend(f, { open: s }), //@ts-ignore
18595
+ return r || Ct.extend(f, { open: s }), //@ts-ignore
18596
18596
  /* @__PURE__ */ C(u, { ref: t, ...f, children: /* @__PURE__ */ Z(Zf, { sx: { "& > *": { marginX: n.spacing(0.325) } }, children: [
18597
18597
  !i && /* @__PURE__ */ C(uV, {}),
18598
18598
  e.children
@@ -18617,7 +18617,7 @@ function dV(e) {
18617
18617
  u("resources.notifications.messages.readed.error", "warning");
18618
18618
  }
18619
18619
  }
18620
- ), g = Ke(() => f(), [f]), [h] = GS(), p = tt(() => eo(n.created).locale(h).fromNow(), [n, h]);
18620
+ ), g = Ke(() => f(), [f]), [h] = GS(), p = et(() => eo(n.created).locale(h).fromNow(), [n, h]);
18621
18621
  return /* @__PURE__ */ C(eS, { disablePadding: !0, divider: s, children: /* @__PURE__ */ Z(Sr, { selected: i, onClick: g, children: [
18622
18622
  /* @__PURE__ */ C(tS, { children: /* @__PURE__ */ C(
18623
18623
  xc,
@@ -24293,7 +24293,7 @@ kb.propTypes = {
24293
24293
  sx: c.object
24294
24294
  };
24295
24295
  function CY(e) {
24296
- const t = no(), n = Vs(e, { flexShrink: { md: 0 }, zIndex: 1200 }), { downLg: r } = Ir(), { open: i, handleDrawerToggle: s, width: l } = va(), u = r ? rS : sW, A = document.body, f = tt(() => r ? {
24296
+ const t = no(), n = Vs(e, { flexShrink: { md: 0 }, zIndex: 1200 }), { downLg: r } = Ir(), { open: i, handleDrawerToggle: s, width: l } = va(), u = r ? rS : sW, A = document.body, f = et(() => r ? {
24297
24297
  container: A,
24298
24298
  variant: "temporary",
24299
24299
  onClose: s,
@@ -24585,7 +24585,7 @@ const j0 = se(Ms)(({ theme: e }) => ({
24585
24585
  }, T = () => {
24586
24586
  m(!1), B(null), P(null);
24587
24587
  };
24588
- tt(() => {
24588
+ et(() => {
24589
24589
  I === i ? t === 1 && m(!0) : t === l && (m(!1), B(null));
24590
24590
  }, [i, t, I, l]);
24591
24591
  const { pathname: M } = Aa(), O = !!y, U = ($, j) => {
@@ -25076,7 +25076,7 @@ function BY(e) {
25076
25076
  "& > ul:first-of-type": { mt: 0 },
25077
25077
  display: t ? { xs: "block", lg: "flex" } : "block"
25078
25078
  });
25079
- return /* @__PURE__ */ C(ke, { sx: I, children: !i && Et.map((r ?? []).slice(0, h + 1), (B) => {
25079
+ return /* @__PURE__ */ C(ke, { sx: I, children: !i && Ct.map((r ?? []).slice(0, h + 1), (B) => {
25080
25080
  const { type: y } = B;
25081
25081
  switch (y) {
25082
25082
  case "group":
@@ -25895,7 +25895,7 @@ const qY = () => {
25895
25895
  }
25896
25896
  );
25897
25897
  }, $Y = (e) => {
25898
- const t = Xt(e), n = bn(e), r = gI(), i = Ds(), s = rr(), [l] = Vf(), u = tt(
25898
+ const t = Xt(e), n = bn(e), r = gI(), i = Ds(), s = rr(), [l] = Vf(), u = et(
25899
25899
  () => t != null && t.readed ? eo(t == null ? void 0 : t.readed).locale(l).format("ddd, DD MMM YYYY HH:mm:ss") : !1,
25900
25900
  [t == null ? void 0 : t.readed, l]
25901
25901
  ), [A] = FR(
@@ -25938,7 +25938,7 @@ const qY = () => {
25938
25938
  u && /* @__PURE__ */ C(Ie, { variant: "caption", display: "block", sx: { mt: 1 }, color: "textSecondary", children: s("ra.notification.readed", { readed: u }) })
25939
25939
  ] });
25940
25940
  }, s_ = ({ ...e }) => {
25941
- const t = no(), { mode: n, colorize: r, density: i } = tt(
25941
+ const t = no(), { mode: n, colorize: r, density: i } = et(
25942
25942
  () => ({
25943
25943
  mode: t.palette.mode,
25944
25944
  colorize: t.palette.mode === "dark" ? aS : sS,
@@ -26248,9 +26248,9 @@ const XY = ({ name: e, copy: t, version: n, background: r }) => {
26248
26248
  if (typeof s.activate != "function")
26249
26249
  throw new Error("The authProvider used for the ActivatePage must define an activate() method");
26250
26250
  s.activate(A).then(() => {
26251
- l("ra.auth.activate_success", { type: "info" }), Et.delay(() => u("/login"), 1e3);
26251
+ l("ra.auth.activate_success", { type: "info" }), Ct.delay(() => u("/login"), 1e3);
26252
26252
  }).catch((f) => {
26253
- l(f, { type: "error" }), Et.delay(() => u("/login"), 1e3);
26253
+ l(f, { type: "error" }), Ct.delay(() => u("/login"), 1e3);
26254
26254
  });
26255
26255
  }, [A]), /* @__PURE__ */ C(Xs, { name: e, copy: t, version: n, background: r, children: /* @__PURE__ */ Z(ve, { container: !0, spacing: 3, children: [
26256
26256
  /* @__PURE__ */ C(ve, { item: !0, xs: 12, children: /* @__PURE__ */ Z(Gt, { direction: "row", justifyContent: "space-between", alignItems: "baseline", sx: { mb: { xs: -0.5, sm: 0.5 } }, children: [
@@ -27918,7 +27918,7 @@ function MG(e) {
27918
27918
  }
27919
27919
  };
27920
27920
  }
27921
- function et({ variant: e, color: t, theme: n }) {
27921
+ function tt({ variant: e, color: t, theme: n }) {
27922
27922
  const r = ln(n, t), { lighter: i, main: s, dark: l, contrastText: u } = r, A = `${t}Button`, f = Ea(n, A), g = {
27923
27923
  "&::after": {
27924
27924
  boxShadow: `0 0 5px 5px ${He(s, 0.9)}`
@@ -27983,7 +27983,7 @@ function et({ variant: e, color: t, theme: n }) {
27983
27983
  }
27984
27984
  }
27985
27985
  function kG(e) {
27986
- const t = et({ variant: "dashed", color: "primary", theme: e }), n = et({ variant: "shadow", color: "primary", theme: e }), r = {
27986
+ const t = tt({ variant: "dashed", color: "primary", theme: e }), n = tt({ variant: "shadow", color: "primary", theme: e }), r = {
27987
27987
  "&.Mui-disabled": {
27988
27988
  backgroundColor: e.palette.grey[200]
27989
27989
  }
@@ -28042,24 +28042,24 @@ function kG(e) {
28042
28042
  dashed: {
28043
28043
  border: "1px dashed",
28044
28044
  ...t,
28045
- "&.MuiButton-dashedPrimary": et({
28045
+ "&.MuiButton-dashedPrimary": tt({
28046
28046
  variant: "dashed",
28047
28047
  color: "primary",
28048
28048
  theme: e
28049
28049
  }),
28050
- "&.MuiButton-dashedSecondary": et({
28050
+ "&.MuiButton-dashedSecondary": tt({
28051
28051
  variant: "dashed",
28052
28052
  color: "secondary",
28053
28053
  theme: e
28054
28054
  }),
28055
- "&.MuiButton-dashedError": et({ variant: "dashed", color: "error", theme: e }),
28056
- "&.MuiButton-dashedSuccess": et({
28055
+ "&.MuiButton-dashedError": tt({ variant: "dashed", color: "error", theme: e }),
28056
+ "&.MuiButton-dashedSuccess": tt({
28057
28057
  variant: "dashed",
28058
28058
  color: "success",
28059
28059
  theme: e
28060
28060
  }),
28061
- "&.MuiButton-dashedInfo": et({ variant: "dashed", color: "info", theme: e }),
28062
- "&.MuiButton-dashedWarning": et({
28061
+ "&.MuiButton-dashedInfo": tt({ variant: "dashed", color: "info", theme: e }),
28062
+ "&.MuiButton-dashedWarning": tt({
28063
28063
  variant: "dashed",
28064
28064
  color: "warning",
28065
28065
  theme: e
@@ -28072,24 +28072,24 @@ function kG(e) {
28072
28072
  },
28073
28073
  shadow: {
28074
28074
  ...n,
28075
- "&.MuiButton-shadowPrimary": et({
28075
+ "&.MuiButton-shadowPrimary": tt({
28076
28076
  variant: "shadow",
28077
28077
  color: "primary",
28078
28078
  theme: e
28079
28079
  }),
28080
- "&.MuiButton-shadowSecondary": et({
28080
+ "&.MuiButton-shadowSecondary": tt({
28081
28081
  variant: "shadow",
28082
28082
  color: "secondary",
28083
28083
  theme: e
28084
28084
  }),
28085
- "&.MuiButton-shadowError": et({ variant: "shadow", color: "error", theme: e }),
28086
- "&.MuiButton-shadowSuccess": et({
28085
+ "&.MuiButton-shadowError": tt({ variant: "shadow", color: "error", theme: e }),
28086
+ "&.MuiButton-shadowSuccess": tt({
28087
28087
  variant: "shadow",
28088
28088
  color: "success",
28089
28089
  theme: e
28090
28090
  }),
28091
- "&.MuiButton-shadowInfo": et({ variant: "shadow", color: "info", theme: e }),
28092
- "&.MuiButton-shadowWarning": et({
28091
+ "&.MuiButton-shadowInfo": tt({ variant: "shadow", color: "info", theme: e }),
28092
+ "&.MuiButton-shadowWarning": tt({
28093
28093
  variant: "shadow",
28094
28094
  color: "warning",
28095
28095
  theme: e
@@ -28100,24 +28100,24 @@ function kG(e) {
28100
28100
  backgroundColor: `${e.palette.grey[200]} !important`
28101
28101
  }
28102
28102
  },
28103
- containedPrimary: et({ variant: "contained", color: "primary", theme: e }),
28104
- containedSecondary: et({ variant: "contained", color: "secondary", theme: e }),
28105
- containedError: et({ variant: "contained", color: "error", theme: e }),
28106
- containedSuccess: et({ variant: "contained", color: "success", theme: e }),
28107
- containedInfo: et({ variant: "contained", color: "info", theme: e }),
28108
- containedWarning: et({ variant: "contained", color: "warning", theme: e }),
28109
- outlinedPrimary: et({ variant: "outlined", color: "primary", theme: e }),
28110
- outlinedSecondary: et({ variant: "outlined", color: "secondary", theme: e }),
28111
- outlinedError: et({ variant: "outlined", color: "error", theme: e }),
28112
- outlinedSuccess: et({ variant: "outlined", color: "success", theme: e }),
28113
- outlinedInfo: et({ variant: "outlined", color: "info", theme: e }),
28114
- outlinedWarning: et({ variant: "outlined", color: "warning", theme: e }),
28115
- textPrimary: et({ variant: "text", color: "primary", theme: e }),
28116
- textSecondary: et({ variant: "text", color: "secondary", theme: e }),
28117
- textError: et({ variant: "text", color: "error", theme: e }),
28118
- textSuccess: et({ variant: "text", color: "success", theme: e }),
28119
- textInfo: et({ variant: "text", color: "info", theme: e }),
28120
- textWarning: et({ variant: "text", color: "warning", theme: e }),
28103
+ containedPrimary: tt({ variant: "contained", color: "primary", theme: e }),
28104
+ containedSecondary: tt({ variant: "contained", color: "secondary", theme: e }),
28105
+ containedError: tt({ variant: "contained", color: "error", theme: e }),
28106
+ containedSuccess: tt({ variant: "contained", color: "success", theme: e }),
28107
+ containedInfo: tt({ variant: "contained", color: "info", theme: e }),
28108
+ containedWarning: tt({ variant: "contained", color: "warning", theme: e }),
28109
+ outlinedPrimary: tt({ variant: "outlined", color: "primary", theme: e }),
28110
+ outlinedSecondary: tt({ variant: "outlined", color: "secondary", theme: e }),
28111
+ outlinedError: tt({ variant: "outlined", color: "error", theme: e }),
28112
+ outlinedSuccess: tt({ variant: "outlined", color: "success", theme: e }),
28113
+ outlinedInfo: tt({ variant: "outlined", color: "info", theme: e }),
28114
+ outlinedWarning: tt({ variant: "outlined", color: "warning", theme: e }),
28115
+ textPrimary: tt({ variant: "text", color: "primary", theme: e }),
28116
+ textSecondary: tt({ variant: "text", color: "secondary", theme: e }),
28117
+ textError: tt({ variant: "text", color: "error", theme: e }),
28118
+ textSuccess: tt({ variant: "text", color: "success", theme: e }),
28119
+ textInfo: tt({ variant: "text", color: "info", theme: e }),
28120
+ textWarning: tt({ variant: "text", color: "warning", theme: e }),
28121
28121
  sizeExtraSmall: {
28122
28122
  minWidth: 56,
28123
28123
  fontSize: "0.625rem",
@@ -29362,8 +29362,8 @@ function BK(e) {
29362
29362
  );
29363
29363
  }
29364
29364
  const $b = ({ themeOverrides: e, children: t }) => {
29365
- const { themeDirection: n, mode: r, presetColor: i, fontFamily: s } = mr(), l = tt(() => xG(r, i), [r, i]), u = tt(() => wG(s), [s]), A = tt(() => tG(l), [l]), f = tt(
29366
- () => Et.merge(
29365
+ const { themeDirection: n, mode: r, presetColor: i, fontFamily: s } = mr(), l = et(() => xG(r, i), [r, i]), u = et(() => wG(s), [s]), A = et(() => tG(l), [l]), f = et(
29366
+ () => Ct.merge(
29367
29367
  {
29368
29368
  breakpoints: {
29369
29369
  values: {
@@ -29401,8 +29401,8 @@ const $b = ({ themeOverrides: e, children: t }) => {
29401
29401
  typeof e == "function" ? e(l) : e
29402
29402
  ),
29403
29403
  [n, l, u, A, e]
29404
- ), g = mg(f), h = Et.cloneDeep(g.components ?? {});
29405
- return g.components = Et.merge(BK(g), h), /* @__PURE__ */ C(cS, { injectFirst: !0, children: /* @__PURE__ */ Z(rB, { theme: g, children: [
29404
+ ), g = mg(f), h = Ct.cloneDeep(g.components ?? {});
29405
+ return g.components = Ct.merge(BK(g), h), /* @__PURE__ */ C(cS, { injectFirst: !0, children: /* @__PURE__ */ Z(rB, { theme: g, children: [
29406
29406
  /* @__PURE__ */ C(uS, {}),
29407
29407
  t
29408
29408
  ] }) });
@@ -29642,14 +29642,14 @@ const xK = ({ apiUrl: e, endpoint: t = "/languages/load", mapper: n = ({ data: r
29642
29642
  });
29643
29643
  }
29644
29644
  });
29645
- const w = tt(() => we.isValidElement(u) ? we.cloneElement(u, {
29645
+ const w = et(() => we.isValidElement(u) ? we.cloneElement(u, {
29646
29646
  // @ts-ignore
29647
29647
  name: f,
29648
29648
  copy: g,
29649
29649
  version: h,
29650
29650
  enableRegistration: y,
29651
29651
  enablePasswordRecover: P
29652
- }) : u, [u, f, h, g, y, P]), T = tt(
29652
+ }) : u, [u, f, h, g, y, P]), T = et(
29653
29653
  () => (O) => /* @__PURE__ */ C(
29654
29654
  vY,
29655
29655
  {