@tracktor/design-system 3.11.3 → 3.11.4

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/CHANGELOG.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # [Versions](https://github.com/Tracktor/design-system/releases)
2
2
 
3
- ## v3.11.3
3
+ ## v3.11.4
4
4
  ### Fix
5
- - Fixed an issue in ArticleImage component where the browser's broken image icon would briefly appear before the custom placeholder was displayed
6
- - Improved image error handling by hiding the image until it's either successfully loaded or an error is detected
7
- - Simplified the placeholder display logic for better reliability
8
- - Added visibility control to prevent flash of broken image icon during loading failures
5
+ - Default theme provider
package/dist/main.cjs CHANGED
@@ -76,7 +76,7 @@ React keys must be passed directly to JSX without using spread:
76
76
  #root {
77
77
  height: 100%;
78
78
  }
79
- `}),Ti=({children:e,enableColorScheme:r,includeCssBaseline:t=!0,includeScrollBarStyle:i=!0,fullHeight:a=!0,theme:s,language:c="en",font:d=yr})=>{var x,R;const p={...yr,...d},f=(p==null?void 0:p.googleFontName)||((x=_1.typography.fontFamily)==null?void 0:x.split(",")[0]),h=(R=p==null?void 0:p.fontWeight)==null?void 0:R.join(";"),b=y.useMemo(()=>({language:c}),[c]),m=()=>{var E,T;const v=typeof s=="object"?s:{},g={...c==="fr"&&vi};return s==="dark"||typeof s=="object"&&"palette"in s&&((E=s==null?void 0:s.palette)==null?void 0:E.mode)==="dark"?o.createTheme(Yr,v,g):s==="light"||typeof s=="object"&&"palette"in s&&((T=s==null?void 0:s.palette)==null?void 0:T.mode)==="light"?o.createTheme(jr,v,g):o.createTheme(_1,v,g)};return n(z1.Provider,{value:b,children:S(o.ThemeProvider,{theme:m(),children:[n(o.GlobalStyles,{styles:o.css`
79
+ `}),Ti=({children:e,enableColorScheme:r,includeCssBaseline:t=!0,includeScrollBarStyle:i=!0,fullHeight:a=!0,theme:s,language:c="en",font:d=yr})=>{var x,R;const p={...yr,...d},f=(p==null?void 0:p.googleFontName)||((x=_1.typography.fontFamily)==null?void 0:x.split(",")[0]),h=(R=p==null?void 0:p.fontWeight)==null?void 0:R.join(";"),b=y.useMemo(()=>({language:c}),[c]),m=y.useMemo(()=>{var E,T;const v=typeof s=="object"?s:{},g={...c==="fr"&&vi};return s==="dark"||typeof s=="object"&&"palette"in s&&((E=s==null?void 0:s.palette)==null?void 0:E.mode)==="dark"?o.createTheme(Yr,v,g):!s||s==="light"||typeof s=="object"&&"palette"in s&&((T=s==null?void 0:s.palette)==null?void 0:T.mode)==="light"?o.createTheme(jr,v,g):o.createTheme(_1,v,g)},[s,c]);return n(z1.Provider,{value:b,children:S(o.ThemeProvider,{theme:m,children:[n(o.GlobalStyles,{styles:o.css`
80
80
  ::-webkit-calendar-picker-indicator {
81
81
  filter: invert(${s==="dark"?1:0});
82
82
  }
package/dist/main.js CHANGED
@@ -1,14 +1,14 @@
1
- import { useTheme as we, Box as H, Skeleton as Ce, Tab as Qt, Card as lr, GlobalStyles as i1, TextareaAutosize as en, InputAdornment as a1, IconButton as Ae, SvgIcon as ve, TextField as R1, Toolbar as rn, Stack as j, AppBar as G1, Typography as X, List as v1, ListItem as Le, Chip as o1, useMediaQuery as s1, SwipeableDrawer as tn, Alert as cr, alpha as Ee, Button as dr, CircularProgress as tt, Modal as nn, Fade as an, Avatar as He, Divider as nt, Collapse as Fr, Tooltip as Hr, CardContent as on, Menu as sn, MenuItem as ln, ListItemIcon as cn, ListItemText as Be, Backdrop as it, responsiveFontSizes as pr, createTheme as Ze, getOverlayAlpha as X1, css as w1, CssBaseline as dn, ThemeProvider as pn, InputLabel as un, ListItemButton as q1, Checkbox as K1, ListItemAvatar as fn, Autocomplete as hn, Badge as gn, Paper as ur, Slide as Cn, Popper as xn, DialogContent as bn, DialogActions as yn, Dialog as mn, DialogContentText as vn, Snackbar as wn } from "@mui/material";
1
+ import { useTheme as we, Box as H, Skeleton as Ce, Tab as Qt, Card as lr, GlobalStyles as i1, TextareaAutosize as en, InputAdornment as a1, IconButton as Ae, SvgIcon as ve, TextField as T1, Toolbar as rn, Stack as j, AppBar as G1, Typography as X, List as w1, ListItem as Le, Chip as o1, useMediaQuery as s1, SwipeableDrawer as tn, Alert as cr, alpha as Ee, Button as dr, CircularProgress as tt, Modal as nn, Fade as an, Avatar as He, Divider as nt, Collapse as Fr, Tooltip as Hr, CardContent as on, Menu as sn, MenuItem as ln, ListItemIcon as cn, ListItemText as Be, Backdrop as it, responsiveFontSizes as pr, createTheme as Ze, getOverlayAlpha as X1, css as E1, CssBaseline as dn, ThemeProvider as pn, InputLabel as un, ListItemButton as q1, Checkbox as K1, ListItemAvatar as fn, Autocomplete as hn, Badge as gn, Paper as ur, Slide as Cn, Popper as xn, DialogContent as bn, DialogActions as yn, Dialog as mn, DialogContentText as vn, Snackbar as wn } from "@mui/material";
2
2
  export * from "@mui/material";
3
3
  import * as Te from "react";
4
- import at, { createContext as T1, useContext as _e, useCallback as pe, forwardRef as ue, useState as ae, useEffect as A1, cloneElement as fr, isValidElement as _1, memo as ot, useMemo as L1, useRef as E1, Children as En, useImperativeHandle as Mn } from "react";
4
+ import at, { createContext as A1, useContext as _e, useCallback as pe, forwardRef as ue, useState as ae, useEffect as _1, cloneElement as fr, isValidElement as L1, memo as ot, useMemo as l1, useRef as M1, Children as En, useImperativeHandle as Mn } from "react";
5
5
  import { createElement as Sn } from "@emotion/react";
6
6
  const kn = {
7
7
  disabledPermissions: void 0,
8
8
  permissions: void 0,
9
9
  setPermissions: () => {
10
10
  }
11
- }, st = T1(kn), J1 = "or", j1 = (e, r) => e === "" || !r.length ? !1 : r.some((t) => e === t), Rn = () => {
11
+ }, st = A1(kn), J1 = "or", j1 = (e, r) => e === "" || !r.length ? !1 : r.some((t) => e === t), Rn = () => {
12
12
  const { permissions: e, setPermissions: r, disabledPermissions: t } = _e(st), i = pe(
13
13
  (o, l, c = J1) => {
14
14
  const u = [...l || [], ...e || []].filter((f) => !(t != null && t.includes(f)));
@@ -353,7 +353,7 @@ function An() {
353
353
  return "";
354
354
  }
355
355
  var qe = Object.prototype.hasOwnProperty, mr = {}, vr = w.ReactDebugCurrentFrame;
356
- function f1(s) {
356
+ function h1(s) {
357
357
  if (s) {
358
358
  var C = s._owner, E = Ie(s.type, s._source, C ? C.type : null);
359
359
  vr.setExtraStackFrame(E);
@@ -375,7 +375,7 @@ function An() {
375
375
  } catch (Q) {
376
376
  O = Q;
377
377
  }
378
- O && !(O instanceof Error) && (f1(z), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", E, V, typeof O), f1(null)), O instanceof Error && !(O.message in mr) && (mr[O.message] = !0, f1(z), S("Failed %s type: %s", E, O.message), f1(null));
378
+ O && !(O instanceof Error) && (h1(z), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", E, V, typeof O), h1(null)), O instanceof Error && !(O.message in mr) && (mr[O.message] = !0, h1(z), S("Failed %s type: %s", E, O.message), h1(null));
379
379
  }
380
380
  }
381
381
  }
@@ -667,7 +667,7 @@ React keys must be passed directly to JSX without using spread:
667
667
  }()), Qe;
668
668
  }
669
669
  process.env.NODE_ENV === "production" ? Q1.exports = Tn() : Q1.exports = An();
670
- var l1 = Q1.exports, _n = !1;
670
+ var c1 = Q1.exports, _n = !1;
671
671
  function Ln(e) {
672
672
  if (e.sheet)
673
673
  return e.sheet;
@@ -708,7 +708,7 @@ var Fn = /* @__PURE__ */ function() {
708
708
  return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
709
709
  }), this.tags = [], this.ctr = 0;
710
710
  }, e;
711
- }(), le = "-ms-", M1 = "-moz-", P = "-webkit-", lt = "comm", hr = "rule", gr = "decl", Hn = "@import", ct = "@keyframes", On = "@layer", Vn = Math.abs, I1 = String.fromCharCode, Dn = Object.assign;
711
+ }(), le = "-ms-", S1 = "-moz-", P = "-webkit-", lt = "comm", hr = "rule", gr = "decl", Hn = "@import", ct = "@keyframes", On = "@layer", Vn = Math.abs, I1 = String.fromCharCode, Dn = Object.assign;
712
712
  function $n(e, r) {
713
713
  return oe(e, 0) ^ 45 ? (((r << 2 ^ oe(e, 0)) << 2 ^ oe(e, 1)) << 2 ^ oe(e, 2)) << 2 ^ oe(e, 3) : 0;
714
714
  }
@@ -727,7 +727,7 @@ function er(e, r) {
727
727
  function oe(e, r) {
728
728
  return e.charCodeAt(r) | 0;
729
729
  }
730
- function c1(e, r, t) {
730
+ function d1(e, r, t) {
731
731
  return e.slice(r, t);
732
732
  }
733
733
  function Me(e) {
@@ -736,7 +736,7 @@ function Me(e) {
736
736
  function Cr(e) {
737
737
  return e.length;
738
738
  }
739
- function h1(e, r) {
739
+ function g1(e, r) {
740
740
  return r.push(e), e;
741
741
  }
742
742
  function Bn(e, r) {
@@ -761,13 +761,13 @@ function xe() {
761
761
  function ke() {
762
762
  return oe(We, ge);
763
763
  }
764
- function x1() {
764
+ function b1() {
765
765
  return ge;
766
766
  }
767
- function u1(e, r) {
768
- return c1(We, e, r);
767
+ function f1(e, r) {
768
+ return d1(We, e, r);
769
769
  }
770
- function d1(e) {
770
+ function p1(e) {
771
771
  switch (e) {
772
772
  case 0:
773
773
  case 9:
@@ -805,18 +805,18 @@ function ut(e) {
805
805
  function ft(e) {
806
806
  return We = "", e;
807
807
  }
808
- function b1(e) {
809
- return dt(u1(ge - 1, rr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
808
+ function y1(e) {
809
+ return dt(f1(ge - 1, rr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
810
810
  }
811
811
  function Nn(e) {
812
812
  for (; (re = ke()) && re < 33; )
813
813
  xe();
814
- return d1(e) > 2 || d1(re) > 3 ? "" : " ";
814
+ return p1(e) > 2 || p1(re) > 3 ? "" : " ";
815
815
  }
816
816
  function Wn(e, r) {
817
817
  for (; --r && xe() && !(re < 48 || re > 102 || re > 57 && re < 65 || re > 70 && re < 97); )
818
818
  ;
819
- return u1(e, x1() + (r < 6 && ke() == 32 && xe() == 32));
819
+ return f1(e, b1() + (r < 6 && ke() == 32 && xe() == 32));
820
820
  }
821
821
  function rr(e) {
822
822
  for (; xe(); )
@@ -840,28 +840,28 @@ function jn(e, r) {
840
840
  for (; xe() && e + re !== 57; )
841
841
  if (e + re === 84 && ke() === 47)
842
842
  break;
843
- return "/*" + u1(r, ge - 1) + "*" + I1(e === 47 ? e : xe());
843
+ return "/*" + f1(r, ge - 1) + "*" + I1(e === 47 ? e : xe());
844
844
  }
845
845
  function Yn(e) {
846
- for (; !d1(ke()); )
846
+ for (; !p1(ke()); )
847
847
  xe();
848
- return u1(e, ge);
848
+ return f1(e, ge);
849
849
  }
850
850
  function Un(e) {
851
- return ft(y1("", null, null, null, [""], e = ut(e), 0, [0], e));
851
+ return ft(m1("", null, null, null, [""], e = ut(e), 0, [0], e));
852
852
  }
853
- function y1(e, r, t, i, a, o, l, c, d) {
853
+ function m1(e, r, t, i, a, o, l, c, d) {
854
854
  for (var u = 0, f = 0, x = l, b = 0, g = 0, k = 0, y = 1, h = 1, w = 1, S = 0, m = "", M = a, p = o, _ = i, T = m; h; )
855
855
  switch (k = S, S = xe()) {
856
856
  case 40:
857
857
  if (k != 108 && oe(T, x - 1) == 58) {
858
- er(T += B(b1(S), "&", "&\f"), "&\f") != -1 && (w = -1);
858
+ er(T += B(y1(S), "&", "&\f"), "&\f") != -1 && (w = -1);
859
859
  break;
860
860
  }
861
861
  case 34:
862
862
  case 39:
863
863
  case 91:
864
- T += b1(S);
864
+ T += y1(S);
865
865
  break;
866
866
  case 9:
867
867
  case 10:
@@ -870,13 +870,13 @@ function y1(e, r, t, i, a, o, l, c, d) {
870
870
  T += Nn(k);
871
871
  break;
872
872
  case 92:
873
- T += Wn(x1() - 1, 7);
873
+ T += Wn(b1() - 1, 7);
874
874
  continue;
875
875
  case 47:
876
876
  switch (ke()) {
877
877
  case 42:
878
878
  case 47:
879
- h1(Gn(jn(xe(), x1()), r, t), d);
879
+ g1(Gn(jn(xe(), b1()), r, t), d);
880
880
  break;
881
881
  default:
882
882
  T += "/";
@@ -892,24 +892,24 @@ function y1(e, r, t, i, a, o, l, c, d) {
892
892
  case 125:
893
893
  h = 0;
894
894
  case 59 + f:
895
- w == -1 && (T = B(T, /\f/g, "")), g > 0 && Me(T) - x && h1(g > 32 ? $r(T + ";", i, t, x - 1) : $r(B(T, " ", "") + ";", i, t, x - 2), d);
895
+ w == -1 && (T = B(T, /\f/g, "")), g > 0 && Me(T) - x && g1(g > 32 ? $r(T + ";", i, t, x - 1) : $r(B(T, " ", "") + ";", i, t, x - 2), d);
896
896
  break;
897
897
  case 59:
898
898
  T += ";";
899
899
  default:
900
- if (h1(_ = Dr(T, r, t, u, f, a, c, m, M = [], p = [], x), o), S === 123)
900
+ if (g1(_ = Dr(T, r, t, u, f, a, c, m, M = [], p = [], x), o), S === 123)
901
901
  if (f === 0)
902
- y1(T, r, _, _, M, o, x, c, p);
902
+ m1(T, r, _, _, M, o, x, c, p);
903
903
  else
904
904
  switch (b === 99 && oe(T, 3) === 110 ? 100 : b) {
905
905
  case 100:
906
906
  case 108:
907
907
  case 109:
908
908
  case 115:
909
- y1(e, _, _, i && h1(Dr(e, _, _, 0, 0, a, c, m, a, M = [], x), p), a, p, x, c, i ? M : p);
909
+ m1(e, _, _, i && g1(Dr(e, _, _, 0, 0, a, c, m, a, M = [], x), p), a, p, x, c, i ? M : p);
910
910
  break;
911
911
  default:
912
- y1(T, _, _, _, [""], p, 0, c, p);
912
+ m1(T, _, _, _, [""], p, 0, c, p);
913
913
  }
914
914
  }
915
915
  u = f = g = 0, y = w = 1, m = T = "", x = l;
@@ -931,7 +931,7 @@ function y1(e, r, t, i, a, o, l, c, d) {
931
931
  c[u++] = (Me(T) - 1) * w, w = 1;
932
932
  break;
933
933
  case 64:
934
- ke() === 45 && (T += b1(xe())), b = ke(), f = x = Me(m = T += Yn(x1())), S++;
934
+ ke() === 45 && (T += y1(xe())), b = ke(), f = x = Me(m = T += Yn(b1())), S++;
935
935
  break;
936
936
  case 45:
937
937
  k === 45 && Me(T) == 2 && (y = 0);
@@ -941,15 +941,15 @@ function y1(e, r, t, i, a, o, l, c, d) {
941
941
  }
942
942
  function Dr(e, r, t, i, a, o, l, c, d, u, f) {
943
943
  for (var x = a - 1, b = a === 0 ? o : [""], g = Cr(b), k = 0, y = 0, h = 0; k < i; ++k)
944
- for (var w = 0, S = c1(e, x + 1, x = Vn(y = l[k])), m = e; w < g; ++w)
944
+ for (var w = 0, S = d1(e, x + 1, x = Vn(y = l[k])), m = e; w < g; ++w)
945
945
  (m = dt(y > 0 ? b[w] + " " + S : B(S, /&\f/g, b[w]))) && (d[h++] = m);
946
946
  return H1(e, r, t, a === 0 ? hr : c, d, u, f);
947
947
  }
948
948
  function Gn(e, r, t) {
949
- return H1(e, r, t, lt, I1(Zn()), c1(e, 2, -2), 0);
949
+ return H1(e, r, t, lt, I1(Zn()), d1(e, 2, -2), 0);
950
950
  }
951
951
  function $r(e, r, t, i) {
952
- return H1(e, r, t, gr, c1(e, 0, i), c1(e, i + 1, -1), i);
952
+ return H1(e, r, t, gr, d1(e, 0, i), d1(e, i + 1, -1), i);
953
953
  }
954
954
  function ze(e, r) {
955
955
  for (var t = "", i = Cr(e), a = 0; a < i; a++)
@@ -992,18 +992,18 @@ function Jn(e) {
992
992
  };
993
993
  }
994
994
  var Qn = function(r, t, i) {
995
- for (var a = 0, o = 0; a = o, o = ke(), a === 38 && o === 12 && (t[i] = 1), !d1(o); )
995
+ for (var a = 0, o = 0; a = o, o = ke(), a === 38 && o === 12 && (t[i] = 1), !p1(o); )
996
996
  xe();
997
- return u1(r, ge);
997
+ return f1(r, ge);
998
998
  }, ei = function(r, t) {
999
999
  var i = -1, a = 44;
1000
1000
  do
1001
- switch (d1(a)) {
1001
+ switch (p1(a)) {
1002
1002
  case 0:
1003
1003
  a === 38 && ke() === 12 && (t[i] = 1), r[i] += Qn(ge - 1, t, i);
1004
1004
  break;
1005
1005
  case 2:
1006
- r[i] += b1(a);
1006
+ r[i] += y1(a);
1007
1007
  break;
1008
1008
  case 4:
1009
1009
  if (a === 44) {
@@ -1073,7 +1073,7 @@ function ht(e, r) {
1073
1073
  case 4810:
1074
1074
  case 6968:
1075
1075
  case 2756:
1076
- return P + e + M1 + e + le + e + e;
1076
+ return P + e + S1 + e + le + e + e;
1077
1077
  case 6828:
1078
1078
  case 4268:
1079
1079
  return P + e + le + e + e;
@@ -1121,7 +1121,7 @@ function ht(e, r) {
1121
1121
  case 109:
1122
1122
  if (oe(e, r + 4) !== 45) break;
1123
1123
  case 102:
1124
- return B(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + M1 + (oe(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1124
+ return B(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + S1 + (oe(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
1125
1125
  case 115:
1126
1126
  return ~er(e, "stretch") ? ht(B(e, "stretch", "fill-available"), r) + e : e;
1127
1127
  }
@@ -1164,13 +1164,13 @@ var ii = function(r, t, i, a) {
1164
1164
  case ":read-only":
1165
1165
  case ":read-write":
1166
1166
  return ze([e1(r, {
1167
- props: [B(o, /:(read-\w+)/, ":" + M1 + "$1")]
1167
+ props: [B(o, /:(read-\w+)/, ":" + S1 + "$1")]
1168
1168
  })], a);
1169
1169
  case "::placeholder":
1170
1170
  return ze([e1(r, {
1171
1171
  props: [B(o, /:(plac\w+)/, ":" + P + "input-$1")]
1172
1172
  }), e1(r, {
1173
- props: [B(o, /:(plac\w+)/, ":" + M1 + "$1")]
1173
+ props: [B(o, /:(plac\w+)/, ":" + S1 + "$1")]
1174
1174
  }), e1(r, {
1175
1175
  props: [B(o, /:(plac\w+)/, le + "input-$1")]
1176
1176
  })], a);
@@ -1527,7 +1527,7 @@ var Ci = {
1527
1527
  }
1528
1528
  return Ci[r] !== 1 && !bt(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1529
1529
  }, mi = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1530
- function p1(e, r, t) {
1530
+ function u1(e, r, t) {
1531
1531
  if (t == null)
1532
1532
  return "";
1533
1533
  var i = t;
@@ -1562,7 +1562,7 @@ function p1(e, r, t) {
1562
1562
  case "function": {
1563
1563
  if (e !== void 0) {
1564
1564
  var d = Se, u = t(e);
1565
- return Se = d, p1(e, r, u);
1565
+ return Se = d, u1(e, r, u);
1566
1566
  }
1567
1567
  break;
1568
1568
  }
@@ -1574,7 +1574,7 @@ function vi(e, r, t) {
1574
1574
  var i = "";
1575
1575
  if (Array.isArray(t))
1576
1576
  for (var a = 0; a < t.length; a++)
1577
- i += p1(e, r, t[a]) + ";";
1577
+ i += u1(e, r, t[a]) + ";";
1578
1578
  else
1579
1579
  for (var o in t) {
1580
1580
  var l = t[o];
@@ -1588,7 +1588,7 @@ function vi(e, r, t) {
1588
1588
  for (var d = 0; d < l.length; d++)
1589
1589
  zr(l[d]) && (i += Y1(o) + ":" + Nr(o, l[d]) + ";");
1590
1590
  else {
1591
- var u = p1(e, r, l);
1591
+ var u = u1(e, r, l);
1592
1592
  switch (o) {
1593
1593
  case "animation":
1594
1594
  case "animationName": {
@@ -1611,13 +1611,13 @@ function wi(e, r, t) {
1611
1611
  Se = void 0;
1612
1612
  var o = e[0];
1613
1613
  if (o == null || o.raw === void 0)
1614
- i = !1, a += p1(t, r, o);
1614
+ i = !1, a += u1(t, r, o);
1615
1615
  else {
1616
1616
  var l = o;
1617
1617
  a += l[0];
1618
1618
  }
1619
1619
  for (var c = 1; c < e.length; c++)
1620
- if (a += p1(t, r, e[c]), i) {
1620
+ if (a += u1(t, r, e[c]), i) {
1621
1621
  var d = o;
1622
1622
  a += d[c];
1623
1623
  }
@@ -1678,12 +1678,12 @@ var Ri = function(r) {
1678
1678
  isStringTag: typeof a == "string"
1679
1679
  }), /* @__PURE__ */ Te.createElement(a, d));
1680
1680
  }
1681
- ), vt = _i, Re = l1.Fragment;
1681
+ ), vt = _i, Re = c1.Fragment;
1682
1682
  function n(e, r, t) {
1683
- return O1.call(r, "css") ? l1.jsx(vt, mt(e, r), t) : l1.jsx(e, r, t);
1683
+ return O1.call(r, "css") ? c1.jsx(vt, mt(e, r), t) : c1.jsx(e, r, t);
1684
1684
  }
1685
1685
  function v(e, r, t) {
1686
- return O1.call(r, "css") ? l1.jsxs(vt, mt(e, r), t) : l1.jsxs(e, r, t);
1686
+ return O1.call(r, "css") ? c1.jsxs(vt, mt(e, r), t) : c1.jsxs(e, r, t);
1687
1687
  }
1688
1688
  const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = () => {
1689
1689
  const { palette: e } = we(), r = pe(
@@ -1736,7 +1736,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
1736
1736
  };
1737
1737
  }, $i = ({ colorShape: e, shapeBackgroundColor: r, color: t, height: i, width: a, withoutText: o, mode: l, sx: c, variant: d = "default", component: u = "img" }, f) => {
1738
1738
  const [x, b] = ae(""), { palette: g } = we(), { getTextColor: k, getImageModule: y, getSize: h, getShapeColor: w, getShapeBackgroundColor: S } = Di(), { height: m, width: M } = h({ height: i, variant: d, width: a, withoutText: o }), p = k(t), _ = w(e), T = S(r);
1739
- if (A1(() => {
1739
+ if (_1(() => {
1740
1740
  u !== "svg" && (async () => {
1741
1741
  const D = await y(d, l || g.mode, o);
1742
1742
  b(D.default);
@@ -2158,7 +2158,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2158
2158
  )
2159
2159
  ] });
2160
2160
  }, Wa = ue(Zi), ja = ({ fullWidth: e, value: r, setValue: t, min: i = 1, max: a = 50, ...o }) => /* @__PURE__ */ n(
2161
- R1,
2161
+ T1,
2162
2162
  {
2163
2163
  onChange: (x) => {
2164
2164
  const { target: b } = x, g = +b.value;
@@ -2383,11 +2383,11 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2383
2383
  }
2384
2384
  }, Ur = ({ items: e, ...r }) => {
2385
2385
  const { NavLink: t = r.NavLink, isMobile: i } = _e(je);
2386
- return /* @__PURE__ */ n(H, { px: 2, component: "nav", children: /* @__PURE__ */ n(v1, { sx: { ...Ni.list }, children: e == null ? void 0 : e.filter((a) => {
2386
+ return /* @__PURE__ */ n(H, { px: 2, component: "nav", children: /* @__PURE__ */ n(w1, { sx: { ...Ni.list }, children: e == null ? void 0 : e.filter((a) => {
2387
2387
  const o = !(a && typeof a == "object" && "hideOnMobile" in a && i && a.hideOnMobile), l = !(a && typeof a == "object" && "hasAccess" in a && !a.hasAccess);
2388
2388
  return o && l;
2389
2389
  }).map((a, o) => {
2390
- if (_1(a))
2390
+ if (L1(a))
2391
2391
  return a;
2392
2392
  if (a && typeof a == "object" && "label" in a) {
2393
2393
  const { count: l, url: c, label: d, icon: u, active: f, disabled: x } = a, b = `${c}-${d}-${o}`;
@@ -2409,7 +2409,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2409
2409
  isTablet: !1,
2410
2410
  openDrawerMenu: () => {
2411
2411
  }
2412
- }, je = T1(Et), Wi = () => {
2412
+ }, je = A1(Et), Wi = () => {
2413
2413
  const { items: e, disableResponsive: r, isMobile: t, isTablet: i, isDrawerOpen: a, closeDrawerMenu: o, sideBarWidth: l, openDrawerMenu: c } = _e(je);
2414
2414
  return (t || i) && !r ? /* @__PURE__ */ v(Re, { children: [
2415
2415
  /* @__PURE__ */ n(zi, {}),
@@ -2432,7 +2432,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2432
2432
  y(!1);
2433
2433
  }, []), w = pe(() => {
2434
2434
  y(!0);
2435
- }, []), S = L1(
2435
+ }, []), S = l1(
2436
2436
  () => ({
2437
2437
  AppBar: e,
2438
2438
  bottomLink: u,
@@ -2519,11 +2519,11 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2519
2519
  ]
2520
2520
  }
2521
2521
  );
2522
- }, m1 = ue(Ji), Qi = {
2522
+ }, v1 = ue(Ji), Qi = {
2523
2523
  large: 17,
2524
2524
  medium: 16,
2525
2525
  small: 15
2526
- }, S1 = ({ size: e, loadingPosition: r, position: t = "absolute" }) => /* @__PURE__ */ n(
2526
+ }, k1 = ({ size: e, loadingPosition: r, position: t = "absolute" }) => /* @__PURE__ */ n(
2527
2527
  H,
2528
2528
  {
2529
2529
  position: t,
@@ -2555,10 +2555,10 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2555
2555
  }) => {
2556
2556
  const c = o || l;
2557
2557
  return r && i ? /* @__PURE__ */ v(j, { direction: i === "start" ? "row" : "row-reverse", alignItems: "center", children: [
2558
- /* @__PURE__ */ n(S1, { size: a, position: "relative", loadingPosition: i }),
2558
+ /* @__PURE__ */ n(k1, { size: a, position: "relative", loadingPosition: i }),
2559
2559
  /* @__PURE__ */ n(H, { component: "span", children: e })
2560
2560
  ] }) : r && !t && !c ? /* @__PURE__ */ v(Re, { children: [
2561
- r && !t && /* @__PURE__ */ n(S1, { size: a }),
2561
+ r && !t && /* @__PURE__ */ n(k1, { size: a }),
2562
2562
  /* @__PURE__ */ n(H, { component: "span", sx: { opacity: 0 }, children: e })
2563
2563
  ] }) : r && t ? /* @__PURE__ */ v(Re, { children: [
2564
2564
  " ",
@@ -2587,8 +2587,8 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2587
2587
  size: d,
2588
2588
  variant: u,
2589
2589
  disableRipple: a || u === "link",
2590
- startIcon: o && f ? /* @__PURE__ */ n(S1, { position: "relative", size: d }) : f,
2591
- endIcon: o && x ? /* @__PURE__ */ n(S1, { position: "relative", size: d }) : x,
2590
+ startIcon: o && f ? /* @__PURE__ */ n(k1, { position: "relative", size: d }) : f,
2591
+ endIcon: o && x ? /* @__PURE__ */ n(k1, { position: "relative", size: d }) : x,
2592
2592
  ...b,
2593
2593
  children: /* @__PURE__ */ n(
2594
2594
  ea,
@@ -2696,7 +2696,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2696
2696
  primary: 24,
2697
2697
  secondary: 16
2698
2698
  }
2699
- }, ir = (e) => e !== void 0 && typeof e == "object" && !Array.isArray(e), k1 = (e) => {
2699
+ }, ir = (e) => e !== void 0 && typeof e == "object" && !Array.isArray(e), R1 = (e) => {
2700
2700
  if (e === void 0) return ie.medium.primary;
2701
2701
  if (typeof e == "number")
2702
2702
  return e;
@@ -2711,8 +2711,8 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2711
2711
  if (ir(e)) {
2712
2712
  const { height: t, width: i } = e;
2713
2713
  return {
2714
- height: Math.max(k1(t) - (ie.medium.primary - ie.medium.secondary), ie.small.secondary),
2715
- width: Math.max(k1(i) - (ie.medium.primary - ie.medium.secondary), ie.small.secondary)
2714
+ height: Math.max(R1(t) - (ie.medium.primary - ie.medium.secondary), ie.small.secondary),
2715
+ width: Math.max(R1(i) - (ie.medium.primary - ie.medium.secondary), ie.small.secondary)
2716
2716
  };
2717
2717
  }
2718
2718
  return {
@@ -2722,7 +2722,7 @@ const jr = 32, Li = 24, Ii = 105, Fi = 24, Hi = 195, Oi = 44, Vi = 147, Di = ()
2722
2722
  }, St = ue(
2723
2723
  ({ secondarySrc: e, secondaryAvatarProps: r, size: t, ...i }, a) => {
2724
2724
  if (e || r) {
2725
- const o = t ? ie[t].primary : k1(ir(i.sx) ? i.sx.width : void 0), l = t ? ie[t].primary : k1(ir(i.sx) ? i.sx.height : void 0), c = ia(i == null ? void 0 : i.sx, t), d = c.width / 3, u = c.height / 3;
2725
+ const o = t ? ie[t].primary : R1(ir(i.sx) ? i.sx.width : void 0), l = t ? ie[t].primary : R1(ir(i.sx) ? i.sx.height : void 0), c = ia(i == null ? void 0 : i.sx, t), d = c.width / 3, u = c.height / 3;
2726
2726
  return /* @__PURE__ */ v(
2727
2727
  H,
2728
2728
  {
@@ -2862,7 +2862,7 @@ const aa = (e, r) => {
2862
2862
  ]
2863
2863
  }
2864
2864
  );
2865
- }, sa = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20data-name='Vrstva%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201982.09%201982.09'%3e%3cpath%20d='m1966.86,15.24c-20.32-20.32-53.25-20.32-73.57,0L15.24,1893.29c-20.32,20.32-20.32,53.25,0,73.57,20.32,20.32,53.25,20.32,73.57,0L1966.86,88.81c20.32-20.32,20.32-53.25,0-73.57Z'%20fill='currentColor'/%3e%3cpath%20d='m186.78,1603.82h47.21l164.08-164.08h-158.05l441.04-437.77,77.39,77.39,701.08-701.08H186.78c-62.61,0-113.37,50.76-113.37,113.38v998.78c0,62.62,50.76,113.38,113.37,113.38Zm304.43-1013.81c70.67,0,127.97,57.29,127.97,127.96s-57.3,127.96-127.97,127.96-127.95-57.29-127.95-127.96,57.28-127.96,127.95-127.96Z'%20fill='currentColor'/%3e%3cpath%20d='m1795.31,378.28h-47.21l-533.75,533.75,527.72,527.71H686.63l-164.08,164.08h1272.76c62.62,0,113.37-50.76,113.37-113.38V491.66c0-62.62-50.75-113.38-113.37-113.38Z'%20fill='currentColor'/%3e%3c/svg%3e", g1 = {
2865
+ }, sa = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20data-name='Vrstva%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201982.09%201982.09'%3e%3cpath%20d='m1966.86,15.24c-20.32-20.32-53.25-20.32-73.57,0L15.24,1893.29c-20.32,20.32-20.32,53.25,0,73.57,20.32,20.32,53.25,20.32,73.57,0L1966.86,88.81c20.32-20.32,20.32-53.25,0-73.57Z'%20fill='currentColor'/%3e%3cpath%20d='m186.78,1603.82h47.21l164.08-164.08h-158.05l441.04-437.77,77.39,77.39,701.08-701.08H186.78c-62.61,0-113.37,50.76-113.37,113.38v998.78c0,62.62,50.76,113.38,113.37,113.38Zm304.43-1013.81c70.67,0,127.97,57.29,127.97,127.96s-57.3,127.96-127.97,127.96-127.95-57.29-127.95-127.96,57.28-127.96,127.95-127.96Z'%20fill='currentColor'/%3e%3cpath%20d='m1795.31,378.28h-47.21l-533.75,533.75,527.72,527.71H686.63l-164.08,164.08h1272.76c62.62,0,113.37-50.76,113.37-113.38V491.66c0-62.62-50.75-113.38-113.37-113.38Z'%20fill='currentColor'/%3e%3c/svg%3e", C1 = {
2866
2866
  container: {
2867
2867
  alignSelf: "center",
2868
2868
  backgroundColor: ({ palette: e }) => e.background.paper,
@@ -2918,14 +2918,14 @@ const aa = (e, r) => {
2918
2918
  onClickThumb: k,
2919
2919
  variant: y
2920
2920
  }) => {
2921
- const [h, w] = ae(!1), [S, m] = ae(!1), M = e == null ? void 0 : e.toLowerCase(), p = !(M != null && M.endsWith(".pdf")) && !(M != null && M.startsWith("blob:")) && !(M != null && M.endsWith(".eml")), _ = M == null ? void 0 : M.endsWith(".pdf"), T = E1(null), D = S ? sa : r || e, I = f ? 1 : 0.8, K = () => {
2921
+ const [h, w] = ae(!1), [S, m] = ae(!1), M = e == null ? void 0 : e.toLowerCase(), p = !(M != null && M.endsWith(".pdf")) && !(M != null && M.startsWith("blob:")) && !(M != null && M.endsWith(".eml")), _ = M == null ? void 0 : M.endsWith(".pdf"), T = M1(null), D = S ? sa : r || e, I = f ? 1 : 0.8, K = () => {
2922
2922
  !p && !_ || w((Y) => !Y);
2923
2923
  }, se = () => {
2924
2924
  w(!1), g == null || g();
2925
2925
  }, ne = pe(() => {
2926
2926
  m(!0);
2927
2927
  }, []);
2928
- return A1(() => {
2928
+ return _1(() => {
2929
2929
  const Y = T.current;
2930
2930
  return Y == null || Y.addEventListener("error", ne), () => {
2931
2931
  Y == null || Y.removeEventListener("error", ne);
@@ -2941,7 +2941,7 @@ const aa = (e, r) => {
2941
2941
  k == null || k(), K();
2942
2942
  },
2943
2943
  sx: {
2944
- ...g1.container,
2944
+ ...C1.container,
2945
2945
  ":hover": { opacity: I },
2946
2946
  borderRadius: y === "rounded" ? 1 : "0",
2947
2947
  cursor: f ? "default" : "pointer",
@@ -2958,7 +2958,7 @@ const aa = (e, r) => {
2958
2958
  width: "100%",
2959
2959
  src: D || void 0,
2960
2960
  ref: T,
2961
- sx: g1.thumb
2961
+ sx: C1.thumb
2962
2962
  },
2963
2963
  D
2964
2964
  )
@@ -2972,7 +2972,7 @@ const aa = (e, r) => {
2972
2972
  width: c,
2973
2973
  height: d,
2974
2974
  sx: {
2975
- ..._ ? g1.viewFile : g1.viewImage,
2975
+ ..._ ? C1.viewFile : C1.viewImage,
2976
2976
  ...u
2977
2977
  }
2978
2978
  }
@@ -2989,7 +2989,7 @@ const aa = (e, r) => {
2989
2989
  }
2990
2990
  )
2991
2991
  ] });
2992
- }, la = ({ sx: e, fontSize: r, color: t = "currentColor" }) => /* @__PURE__ */ n(ve, { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: e, fontSize: r, children: /* @__PURE__ */ n("path", { d: "M6 2L5.295 2.705L8.085 5.5L2 5.5L2 6.5L8.085 6.5L5.295 9.295L6 10L10 6L6 2Z", fill: t, fillOpacity: "0.54" }) }), ca = ({ sx: e, color: r = "currentColor" }) => /* @__PURE__ */ n(ve, { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: e, children: /* @__PURE__ */ n("path", { d: "M12 6.47003L11.06 5.53003L8 8.58336L4.94 5.53003L4 6.47003L8 10.47L12 6.47003Z", fill: r, fillOpacity: "0.54" }) }), C1 = 64, qr = 1e3, da = ({
2992
+ }, la = ({ sx: e, fontSize: r, color: t = "currentColor" }) => /* @__PURE__ */ n(ve, { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: e, fontSize: r, children: /* @__PURE__ */ n("path", { d: "M6 2L5.295 2.705L8.085 5.5L2 5.5L2 6.5L8.085 6.5L5.295 9.295L6 10L10 6L6 2Z", fill: t, fillOpacity: "0.54" }) }), ca = ({ sx: e, color: r = "currentColor" }) => /* @__PURE__ */ n(ve, { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", sx: e, children: /* @__PURE__ */ n("path", { d: "M12 6.47003L11.06 5.53003L8 8.58336L4.94 5.53003L4 6.47003L8 10.47L12 6.47003Z", fill: r, fillOpacity: "0.54" }) }), x1 = 64, qr = 1e3, da = ({
2993
2993
  title: e,
2994
2994
  subtitle: r,
2995
2995
  isLastElement: t,
@@ -3005,11 +3005,11 @@ const aa = (e, r) => {
3005
3005
  Collapse: b
3006
3006
  }) => {
3007
3007
  const [g, k] = ae(!1), y = b || !!(c != null && c.length);
3008
- return A1(() => {
3008
+ return _1(() => {
3009
3009
  d && k(!0);
3010
3010
  }, [d]), /* @__PURE__ */ v(j, { direction: "row", alignItems: "stretch", spacing: 0, mt: 0.5, children: [
3011
3011
  /* @__PURE__ */ n(H, { mt: 1.5, textAlign: "center", children: /* @__PURE__ */ n(j, { spacing: 1, alignItems: "center", sx: { height: "100%", width: 32 }, children: /* @__PURE__ */ v(Re, { children: [
3012
- f || /* @__PURE__ */ n(m1, { color: i ? "secondary" : "primary" }),
3012
+ f || /* @__PURE__ */ n(v1, { color: i ? "secondary" : "primary" }),
3013
3013
  /* @__PURE__ */ n(H, { sx: { flex: 1 }, children: !t && /* @__PURE__ */ n(
3014
3014
  nt,
3015
3015
  {
@@ -3147,8 +3147,8 @@ const aa = (e, r) => {
3147
3147
  sx: {
3148
3148
  borderRadius: 0.5,
3149
3149
  cursor: "pointer",
3150
- height: C1,
3151
- width: C1
3150
+ height: x1,
3151
+ width: x1
3152
3152
  }
3153
3153
  }
3154
3154
  ),
@@ -3160,9 +3160,9 @@ const aa = (e, r) => {
3160
3160
  backgroundColor: ({ palette: D }) => D.grey[100],
3161
3161
  borderRadius: 0.5,
3162
3162
  display: "flex",
3163
- height: C1,
3163
+ height: x1,
3164
3164
  justifyContent: "center",
3165
- width: C1
3165
+ width: x1
3166
3166
  },
3167
3167
  children: `${(((T = h == null ? void 0 : h.file) == null ? void 0 : T.length) || 0) - 1}+`
3168
3168
  }
@@ -3203,21 +3203,21 @@ const aa = (e, r) => {
3203
3203
  const [c, d] = ae("");
3204
3204
  return r ? /* @__PURE__ */ n(U1, { sx: i, "data-test": o, "data-testid": l, children: /* @__PURE__ */ v(j, { spacing: 3, children: [
3205
3205
  /* @__PURE__ */ v(j, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
3206
- /* @__PURE__ */ n(m1, {}),
3206
+ /* @__PURE__ */ n(v1, {}),
3207
3207
  /* @__PURE__ */ v(j, { children: [
3208
3208
  /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 100 }) }),
3209
3209
  /* @__PURE__ */ n(X, { variant: "body2", children: /* @__PURE__ */ n(Ce, { width: 130 }) })
3210
3210
  ] })
3211
3211
  ] }),
3212
3212
  /* @__PURE__ */ v(j, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
3213
- /* @__PURE__ */ n(m1, {}),
3213
+ /* @__PURE__ */ n(v1, {}),
3214
3214
  /* @__PURE__ */ v(j, { children: [
3215
3215
  /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 150 }) }),
3216
3216
  /* @__PURE__ */ n(X, { variant: "body2", children: /* @__PURE__ */ n(Ce, { width: 100, height: 20 }) })
3217
3217
  ] })
3218
3218
  ] }),
3219
3219
  /* @__PURE__ */ v(j, { spacing: 2, pt: 1, pl: 0.5, direction: "row", children: [
3220
- /* @__PURE__ */ n(m1, {}),
3220
+ /* @__PURE__ */ n(v1, {}),
3221
3221
  /* @__PURE__ */ v(j, { children: [
3222
3222
  /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 80 }) }),
3223
3223
  /* @__PURE__ */ n(X, { variant: "body2", children: /* @__PURE__ */ n(Ce, { width: 110, height: 20 }) })
@@ -3251,7 +3251,7 @@ const aa = (e, r) => {
3251
3251
  /* @__PURE__ */ n(Mt, { open: !!c, onClose: () => d(""), src: c })
3252
3252
  ] });
3253
3253
  }, Ja = ({ Main: e, Sidebar: r, AppBar: t }) => {
3254
- const { breakpoints: i } = we(), a = E1(null), o = s1(i.down("md")), l = r && fr(r, { AppBar: t });
3254
+ const { breakpoints: i } = we(), a = M1(null), o = s1(i.down("md")), l = r && fr(r, { AppBar: t });
3255
3255
  return /* @__PURE__ */ v(j, { height: "100%", children: [
3256
3256
  !o && t,
3257
3257
  /* @__PURE__ */ v(j, { height: "100%", direction: o ? "column" : "row", minHeight: 0, children: [
@@ -3569,7 +3569,7 @@ const aa = (e, r) => {
3569
3569
  }, fa = ue(({ sx: e, slotProps: r, type: t = "search", ...i }, a) => {
3570
3570
  var o, l, c, d, u, f, x, b, g, k;
3571
3571
  return /* @__PURE__ */ n(
3572
- R1,
3572
+ T1,
3573
3573
  {
3574
3574
  fullWidth: !0,
3575
3575
  size: "xSmall",
@@ -3725,7 +3725,7 @@ const aa = (e, r) => {
3725
3725
  }
3726
3726
  },
3727
3727
  children: m == null ? void 0 : m.map((I, K) => {
3728
- if (_1(I)) {
3728
+ if (L1(I)) {
3729
3729
  if (I.key)
3730
3730
  return I;
3731
3731
  const se = `${m}-${K}`;
@@ -3838,7 +3838,7 @@ const aa = (e, r) => {
3838
3838
  }, Jr = {
3839
3839
  root: ({ theme: e, ownerState: r }) => {
3840
3840
  const t = En.toArray(r.children), i = t[t.length - 1];
3841
- if (_1(i)) {
3841
+ if (L1(i)) {
3842
3842
  if (i.props.variant === "contained" || i.props.variant === "outlined")
3843
3843
  return {
3844
3844
  padding: e.spacing(3)
@@ -4733,12 +4733,12 @@ const aa = (e, r) => {
4733
4733
  }, Qr = {
4734
4734
  fontWeight: ma,
4735
4735
  import: !0
4736
- }, Tt = T1({
4736
+ }, Tt = A1({
4737
4737
  language: "en"
4738
4738
  }), wa = ({ theme: e }) => /* @__PURE__ */ n(
4739
4739
  i1,
4740
4740
  {
4741
- styles: w1`
4741
+ styles: E1`
4742
4742
  * {
4743
4743
  scrollbar-color: ${e === "dark" ? "rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)" : "rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05)"};
4744
4744
  scrollbar-width: thin;
@@ -4772,7 +4772,7 @@ const aa = (e, r) => {
4772
4772
  ), Ea = () => /* @__PURE__ */ n(
4773
4773
  i1,
4774
4774
  {
4775
- styles: w1`
4775
+ styles: E1`
4776
4776
  html,
4777
4777
  body,
4778
4778
  #root {
@@ -4791,18 +4791,18 @@ const aa = (e, r) => {
4791
4791
  font: c = Qr
4792
4792
  }) => {
4793
4793
  var g, k;
4794
- const d = { ...Qr, ...c }, u = (d == null ? void 0 : d.googleFontName) || ((g = or.typography.fontFamily) == null ? void 0 : g.split(",")[0]), f = (k = d == null ? void 0 : d.fontWeight) == null ? void 0 : k.join(";"), x = L1(() => ({ language: l }), [l]), b = () => {
4794
+ const d = { ...Qr, ...c }, u = (d == null ? void 0 : d.googleFontName) || ((g = or.typography.fontFamily) == null ? void 0 : g.split(",")[0]), f = (k = d == null ? void 0 : d.fontWeight) == null ? void 0 : k.join(";"), x = l1(() => ({ language: l }), [l]), b = l1(() => {
4795
4795
  var w, S;
4796
4796
  const y = typeof o == "object" ? o : {}, h = {
4797
4797
  ...l === "fr" && ya
4798
4798
  };
4799
- return o === "dark" || typeof o == "object" && "palette" in o && ((w = o == null ? void 0 : o.palette) == null ? void 0 : w.mode) === "dark" ? Ze(Rt, y, h) : o === "light" || typeof o == "object" && "palette" in o && ((S = o == null ? void 0 : o.palette) == null ? void 0 : S.mode) === "light" ? Ze(kt, y, h) : Ze(or, y, h);
4800
- };
4801
- return /* @__PURE__ */ n(Tt.Provider, { value: x, children: /* @__PURE__ */ v(pn, { theme: b(), children: [
4799
+ return o === "dark" || typeof o == "object" && "palette" in o && ((w = o == null ? void 0 : o.palette) == null ? void 0 : w.mode) === "dark" ? Ze(Rt, y, h) : !o || o === "light" || typeof o == "object" && "palette" in o && ((S = o == null ? void 0 : o.palette) == null ? void 0 : S.mode) === "light" ? Ze(kt, y, h) : Ze(or, y, h);
4800
+ }, [o, l]);
4801
+ return /* @__PURE__ */ n(Tt.Provider, { value: x, children: /* @__PURE__ */ v(pn, { theme: b, children: [
4802
4802
  /* @__PURE__ */ n(
4803
4803
  i1,
4804
4804
  {
4805
- styles: w1`
4805
+ styles: E1`
4806
4806
  ::-webkit-calendar-picker-indicator {
4807
4807
  filter: invert(${o === "dark" ? 1 : 0});
4808
4808
  }
@@ -4812,7 +4812,7 @@ const aa = (e, r) => {
4812
4812
  d.import && /* @__PURE__ */ n(
4813
4813
  i1,
4814
4814
  {
4815
- styles: w1`
4815
+ styles: E1`
4816
4816
  @import url("https://fonts.googleapis.com/css2?family=${u}:wght@${f}&display=swap");
4817
4817
  `
4818
4818
  }
@@ -4871,7 +4871,7 @@ const aa = (e, r) => {
4871
4871
  title: y,
4872
4872
  variant: h = "vertical"
4873
4873
  }, w) => {
4874
- const { t: S } = At(), { palette: m } = we(), M = h === "vertical", p = c || r, _ = E1(null), T = E1(null), [D, I] = ae(null), K = Ta(D);
4874
+ const { t: S } = At(), { palette: m } = we(), M = h === "vertical", p = c || r, _ = M1(null), T = M1(null), [D, I] = ae(null), K = Ta(D);
4875
4875
  Mn(w, () => T.current);
4876
4876
  const se = (Z) => {
4877
4877
  b == null || b(Z), I(Z.target.files);
@@ -4997,7 +4997,7 @@ const aa = (e, r) => {
4997
4997
  var x;
4998
4998
  const [u, f] = ae("");
4999
4999
  return !(t != null && t.length) && !l && !r ? e || null : l ? /* @__PURE__ */ n(
5000
- v1,
5000
+ w1,
5001
5001
  {
5002
5002
  sx: {
5003
5003
  ...n1.list,
@@ -5016,7 +5016,7 @@ const aa = (e, r) => {
5016
5016
  ] }, b))
5017
5017
  }
5018
5018
  ) : /* @__PURE__ */ v(
5019
- v1,
5019
+ w1,
5020
5020
  {
5021
5021
  sx: {
5022
5022
  ...n1.list,
@@ -5160,7 +5160,7 @@ const aa = (e, r) => {
5160
5160
  const { t: f } = At(), x = Array.isArray(c) ? (c == null ? void 0 : c.length) === (l == null ? void 0 : l.length) : !1, b = l == null ? void 0 : l.filter((g) => g == null ? void 0 : g.isHeader);
5161
5161
  return /* @__PURE__ */ v(ur, { ...u, children: [
5162
5162
  d && !o && (!r || !!(b != null && b.length)) && /* @__PURE__ */ v(Re, { children: [
5163
- /* @__PURE__ */ v(v1, { role: "listbox", children: [
5163
+ /* @__PURE__ */ v(w1, { role: "listbox", children: [
5164
5164
  !r && /* @__PURE__ */ n(
5165
5165
  Le,
5166
5166
  {
@@ -5331,9 +5331,9 @@ const aa = (e, r) => {
5331
5331
  const A = () => {
5332
5332
  if (!(!I && (Array.isArray(l) && l.length || !Array.isArray(l) && l)))
5333
5333
  return t;
5334
- }, U = _1((te = $.InputProps) == null ? void 0 : te.endAdornment) ? (ce = $.InputProps) == null ? void 0 : ce.endAdornment : null;
5334
+ }, U = L1((te = $.InputProps) == null ? void 0 : te.endAdornment) ? (ce = $.InputProps) == null ? void 0 : ce.endAdornment : null;
5335
5335
  return /* @__PURE__ */ n(
5336
- R1,
5336
+ T1,
5337
5337
  {
5338
5338
  sx: {
5339
5339
  ".MuiInputBase-root .MuiInputBase-input": {
@@ -5437,7 +5437,7 @@ const aa = (e, r) => {
5437
5437
  c.preventDefault();
5438
5438
  };
5439
5439
  return /* @__PURE__ */ n(
5440
- R1,
5440
+ T1,
5441
5441
  {
5442
5442
  type: t ? "text" : "password",
5443
5443
  slotProps: {
@@ -5594,7 +5594,7 @@ const aa = (e, r) => {
5594
5594
  ]
5595
5595
  }
5596
5596
  ), po = ({ children: e, permissions: r, disabledPermissions: t }) => {
5597
- const [i, a] = ae(), o = L1(
5597
+ const [i, a] = ae(), o = l1(
5598
5598
  () => ({
5599
5599
  disabledPermissions: t,
5600
5600
  permissions: i,
@@ -5602,7 +5602,7 @@ const aa = (e, r) => {
5602
5602
  }),
5603
5603
  [t, i]
5604
5604
  );
5605
- return A1(() => {
5605
+ return _1(() => {
5606
5606
  a(r);
5607
5607
  }, [r]), /* @__PURE__ */ n(st.Provider, { value: o, children: e });
5608
5608
  }, Da = {
@@ -5611,7 +5611,7 @@ const aa = (e, r) => {
5611
5611
  message: "",
5612
5612
  severity: "success",
5613
5613
  variant: "standard"
5614
- }, _t = T1({
5614
+ }, _t = A1({
5615
5615
  closeSnackbar: () => {
5616
5616
  },
5617
5617
  isOpen: !1,
@@ -5632,7 +5632,7 @@ const aa = (e, r) => {
5632
5632
  });
5633
5633
  }, []), l = pe((d, u) => {
5634
5634
  u !== "clickaway" && a((f) => ({ ...f, isOpen: !1 }));
5635
- }, []), c = L1(
5635
+ }, []), c = l1(
5636
5636
  () => ({
5637
5637
  closeSnackbar: l,
5638
5638
  isOpen: i.isOpen,
@@ -5703,7 +5703,7 @@ export {
5703
5703
  ja as QuantityField,
5704
5704
  _t as SnackbarContext,
5705
5705
  uo as SnackbarProvider,
5706
- m1 as StatusIcon,
5706
+ v1 as StatusIcon,
5707
5707
  Ga as TabPanel,
5708
5708
  Wa as TextArea,
5709
5709
  fa as TextFieldAppBar,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tracktor/design-system",
3
3
  "description": "Tracktor Design System",
4
4
  "sideEffects": false,
5
- "version": "3.11.3",
5
+ "version": "3.11.4",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",