@leapdevuk/component-toolbox 0.0.115 → 0.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -3,7 +3,7 @@ var ri = (e, r, t) => r in e ? ti(e, r, { enumerable: !0, configurable: !0, writ
3
3
  var j = (e, r, t) => ri(e, typeof r != "symbol" ? r + "" : r, t);
4
4
  import * as Ze from "react";
5
5
  import Sa, { useState as Re, useRef as Zr, useEffect as Vr, createRef as ni, useCallback as ai, forwardRef as oi } from "react";
6
- import { Accordion as ii, AccordionDetails as si, styled as Gr, AccordionSummary as ci, Typography as et, Box as ka, Checkbox as Oa, Alert as li, Tooltip as Qr, Link as ui, Autocomplete as fi, AvatarGroup as di, Button as He, ButtonGroup as hi, FormControlLabel as mi, Chip as gi, OutlinedInput as Pa, InputAdornment as Ra, SvgIcon as Oe, Dialog as Da, DialogContent as La, DialogTitle as yi, IconButton as ct, DialogActions as _a, TextField as tr, Popper as ja, ClickAwayListener as Ia, Paper as $a, Divider as pi, Drawer as bi, InputLabel as Ci, List as wi, ListItemButton as xi, Backdrop as vi, CircularProgress as Ti, Menu as Ei, MenuItem as Mi, Select as Si, Snackbar as ki, Avatar as Oi, Tab as Pi, Tabs as Ri, TextareaAutosize as Di } from "@mui/material";
6
+ import { Accordion as ii, AccordionDetails as si, styled as Gr, AccordionSummary as ci, Typography as Ge, Box as ka, Checkbox as Oa, Alert as li, Tooltip as Qr, Link as ui, Autocomplete as fi, AvatarGroup as di, Button as He, ButtonGroup as hi, FormControlLabel as mi, Chip as gi, OutlinedInput as Pa, InputAdornment as Ra, SvgIcon as Oe, Dialog as Da, DialogContent as La, DialogTitle as yi, IconButton as ct, DialogActions as _a, TextField as tr, Popper as ja, ClickAwayListener as Ia, Paper as $a, Divider as pi, Drawer as bi, InputLabel as Ci, List as wi, ListItemButton as xi, Backdrop as vi, CircularProgress as Ti, Menu as Ei, MenuItem as Mi, Select as Si, Snackbar as ki, Avatar as Oi, Tab as Pi, Tabs as Ri, TextareaAutosize as Di } from "@mui/material";
7
7
  import Li from "@emotion/styled";
8
8
  import "@emotion/react";
9
9
  import { DataGridPro as _i } from "@mui/x-data-grid-pro";
@@ -1688,7 +1688,7 @@ const ur = {
1688
1688
  }
1689
1689
  })
1690
1690
  };
1691
- function Ge(e, r, t) {
1691
+ function Qe(e, r, t) {
1692
1692
  const n = e.theme || {};
1693
1693
  if (Array.isArray(r)) {
1694
1694
  const o = n.breakpoints || Un;
@@ -1749,7 +1749,7 @@ function ve(e) {
1749
1749
  if (i[r] == null)
1750
1750
  return null;
1751
1751
  const s = i[r], l = i.theme, h = fr(l, n) || {};
1752
- return Ge(i, s, (g) => {
1752
+ return Qe(i, s, (g) => {
1753
1753
  let y = ar(h, a, g);
1754
1754
  return g === y && typeof g == "string" && (y = ar(h, a, `${r}${g === "default" ? "" : Ye(g)}`, g)), t === !1 ? y : {
1755
1755
  [t]: y
@@ -1816,7 +1816,7 @@ function ks(e, r, t, n) {
1816
1816
  if (!r.includes(t))
1817
1817
  return null;
1818
1818
  const a = Es(t), o = Ss(a, n), i = e[t];
1819
- return Ge(e, i, o);
1819
+ return Qe(e, i, o);
1820
1820
  }
1821
1821
  function qa(e, r) {
1822
1822
  const t = Jr(e.theme);
@@ -1854,7 +1854,7 @@ const Os = $e("border", Ie), Ps = $e("borderTop", Ie), Rs = $e("borderRight", Ie
1854
1854
  const r = Ft(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
1855
1855
  borderRadius: Bt(r, n)
1856
1856
  });
1857
- return Ge(e, e.borderRadius, t);
1857
+ return Qe(e, e.borderRadius, t);
1858
1858
  }
1859
1859
  return null;
1860
1860
  };
@@ -1868,7 +1868,7 @@ const yr = (e) => {
1868
1868
  const r = Ft(e.theme, "spacing", 8, "gap"), t = (n) => ({
1869
1869
  gap: Bt(r, n)
1870
1870
  });
1871
- return Ge(e, e.gap, t);
1871
+ return Qe(e, e.gap, t);
1872
1872
  }
1873
1873
  return null;
1874
1874
  };
@@ -1881,7 +1881,7 @@ const pr = (e) => {
1881
1881
  const r = Ft(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
1882
1882
  columnGap: Bt(r, n)
1883
1883
  });
1884
- return Ge(e, e.columnGap, t);
1884
+ return Qe(e, e.columnGap, t);
1885
1885
  }
1886
1886
  return null;
1887
1887
  };
@@ -1894,7 +1894,7 @@ const br = (e) => {
1894
1894
  const r = Ft(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
1895
1895
  rowGap: Bt(r, n)
1896
1896
  });
1897
- return Ge(e, e.rowGap, t);
1897
+ return Qe(e, e.rowGap, t);
1898
1898
  }
1899
1899
  return null;
1900
1900
  };
@@ -1959,7 +1959,7 @@ const Us = ve({
1959
1959
  maxWidth: De(t)
1960
1960
  };
1961
1961
  };
1962
- return Ge(e, e.maxWidth, r);
1962
+ return Qe(e, e.maxWidth, r);
1963
1963
  }
1964
1964
  return null;
1965
1965
  };
@@ -2309,7 +2309,7 @@ function i0() {
2309
2309
  [t]: n
2310
2310
  };
2311
2311
  const y = fr(a, h) || {};
2312
- return g ? g(i) : Ge(i, n, (w) => {
2312
+ return g ? g(i) : Qe(i, n, (w) => {
2313
2313
  let d = ar(y, m, w);
2314
2314
  return w === d && typeof w == "string" && (d = ar(y, m, `${t}${w === "default" ? "" : Ye(w)}`, w)), l === !1 ? d : {
2315
2315
  [l]: d
@@ -2341,7 +2341,7 @@ function i0() {
2341
2341
  if (o[y])
2342
2342
  g = It(g, e(y, x, a, o));
2343
2343
  else {
2344
- const w = Ge({
2344
+ const w = Qe({
2345
2345
  theme: a
2346
2346
  }, x, (d) => ({
2347
2347
  [y]: d
@@ -2481,10 +2481,10 @@ var d0 = /[A-Z]|^ms/g, h0 = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Za = function(r) {
2481
2481
  case "animationName":
2482
2482
  if (typeof t == "string")
2483
2483
  return t.replace(h0, function(n, a, o) {
2484
- return Je = {
2484
+ return et = {
2485
2485
  name: a,
2486
2486
  styles: o,
2487
- next: Je
2487
+ next: et
2488
2488
  }, a;
2489
2489
  });
2490
2490
  }
@@ -2502,20 +2502,20 @@ function or(e, r, t) {
2502
2502
  case "object": {
2503
2503
  var a = t;
2504
2504
  if (a.anim === 1)
2505
- return Je = {
2505
+ return et = {
2506
2506
  name: a.name,
2507
2507
  styles: a.styles,
2508
- next: Je
2508
+ next: et
2509
2509
  }, a.name;
2510
2510
  var o = t;
2511
2511
  if (o.styles !== void 0) {
2512
2512
  var i = o.next;
2513
2513
  if (i !== void 0)
2514
2514
  for (; i !== void 0; )
2515
- Je = {
2515
+ et = {
2516
2516
  name: i.name,
2517
2517
  styles: i.styles,
2518
- next: Je
2518
+ next: et
2519
2519
  }, i = i.next;
2520
2520
  var s = o.styles + ";";
2521
2521
  return s;
@@ -2555,12 +2555,12 @@ function m0(e, r, t) {
2555
2555
  }
2556
2556
  return n;
2557
2557
  }
2558
- var ra = /label:\s*([^\s;{]+)\s*(;|$)/g, Je;
2558
+ var ra = /label:\s*([^\s;{]+)\s*(;|$)/g, et;
2559
2559
  function g0(e, r, t) {
2560
2560
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
2561
2561
  return e[0];
2562
2562
  var n = !0, a = "";
2563
- Je = void 0;
2563
+ et = void 0;
2564
2564
  var o = e[0];
2565
2565
  if (o == null || o.raw === void 0)
2566
2566
  n = !1, a += or(t, r, o);
@@ -2580,7 +2580,7 @@ function g0(e, r, t) {
2580
2580
  return {
2581
2581
  name: g,
2582
2582
  styles: a,
2583
- next: Je
2583
+ next: et
2584
2584
  };
2585
2585
  }
2586
2586
  /**
@@ -4372,7 +4372,7 @@ const Pc = wr(/* @__PURE__ */ c.jsx("path", {
4372
4372
  minHeight: 35,
4373
4373
  maxHeight: 35
4374
4374
  })), lo = ({ disabled: e }) => /* @__PURE__ */ c.jsx(
4375
- Ke,
4375
+ Xe,
4376
4376
  {
4377
4377
  xmlns: "http://www.w3.org/2000/svg",
4378
4378
  viewBox: "0 0 24 24",
@@ -4388,7 +4388,7 @@ const Pc = wr(/* @__PURE__ */ c.jsx("path", {
4388
4388
  );
4389
4389
  function uo() {
4390
4390
  return /* @__PURE__ */ c.jsx(
4391
- Ke,
4391
+ Xe,
4392
4392
  {
4393
4393
  xmlns: "http://www.w3.org/2000/svg",
4394
4394
  style: { backgroundColor: "white", height: 14, width: 14 },
@@ -4429,7 +4429,7 @@ const Rc = wr(/* @__PURE__ */ c.jsx("path", {
4429
4429
  }
4430
4430
  ),
4431
4431
  /* @__PURE__ */ c.jsx("div", { style: { display: "block" }, children: /* @__PURE__ */ c.jsx(
4432
- et,
4432
+ Ge,
4433
4433
  {
4434
4434
  textAlign: e.colDef.headerAlign,
4435
4435
  style: { fontWeight: 500 },
@@ -4683,7 +4683,7 @@ const Rc = wr(/* @__PURE__ */ c.jsx("path", {
4683
4683
  },
4684
4684
  placeholder: a,
4685
4685
  size: i || "small",
4686
- startAdornment: o && /* @__PURE__ */ c.jsx(Ra, { position: "start", children: /* @__PURE__ */ c.jsx(et, { children: o }) }),
4686
+ startAdornment: o && /* @__PURE__ */ c.jsx(Ra, { position: "start", children: /* @__PURE__ */ c.jsx(Ge, { children: o }) }),
4687
4687
  sx: {
4688
4688
  paddingLeft: "8px",
4689
4689
  width: h || 130,
@@ -5233,13 +5233,13 @@ function wl(e, r) {
5233
5233
  const t = F(e, r == null ? void 0 : r.in);
5234
5234
  return Cl(t, po(t)) + 1;
5235
5235
  }
5236
- function Qe(e, r) {
5236
+ function Ke(e, r) {
5237
5237
  var s, l, h, m;
5238
5238
  const t = lt(), n = (r == null ? void 0 : r.weekStartsOn) ?? ((l = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((m = (h = t.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? 0, a = F(e, r == null ? void 0 : r.in), o = a.getDay(), i = (o < n ? 7 : 0) + o - n;
5239
5239
  return a.setDate(a.getDate() - i), a.setHours(0, 0, 0, 0), a;
5240
5240
  }
5241
5241
  function Tt(e, r) {
5242
- return Qe(e, { ...r, weekStartsOn: 1 });
5242
+ return Ke(e, { ...r, weekStartsOn: 1 });
5243
5243
  }
5244
5244
  function bo(e, r) {
5245
5245
  const t = F(e, r == null ? void 0 : r.in), n = t.getFullYear(), a = me(t, 0);
@@ -5261,25 +5261,25 @@ function un(e, r) {
5261
5261
  var m, g, y, x;
5262
5262
  const t = F(e, r == null ? void 0 : r.in), n = t.getFullYear(), a = lt(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((g = (m = r == null ? void 0 : r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((x = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : x.firstWeekContainsDate) ?? 1, i = me((r == null ? void 0 : r.in) || e, 0);
5263
5263
  i.setFullYear(n + 1, 0, o), i.setHours(0, 0, 0, 0);
5264
- const s = Qe(i, r), l = me((r == null ? void 0 : r.in) || e, 0);
5264
+ const s = Ke(i, r), l = me((r == null ? void 0 : r.in) || e, 0);
5265
5265
  l.setFullYear(n, 0, o), l.setHours(0, 0, 0, 0);
5266
- const h = Qe(l, r);
5266
+ const h = Ke(l, r);
5267
5267
  return +t >= +s ? n + 1 : +t >= +h ? n : n - 1;
5268
5268
  }
5269
5269
  function vl(e, r) {
5270
5270
  var s, l, h, m;
5271
5271
  const t = lt(), n = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((l = (s = r == null ? void 0 : r.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? t.firstWeekContainsDate ?? ((m = (h = t.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = un(e, r), o = me((r == null ? void 0 : r.in) || e, 0);
5272
- return o.setFullYear(a, 0, n), o.setHours(0, 0, 0, 0), Qe(o, r);
5272
+ return o.setFullYear(a, 0, n), o.setHours(0, 0, 0, 0), Ke(o, r);
5273
5273
  }
5274
5274
  function fn(e, r) {
5275
- const t = F(e, r == null ? void 0 : r.in), n = +Qe(t, r) - +vl(t, r);
5275
+ const t = F(e, r == null ? void 0 : r.in), n = +Ke(t, r) - +vl(t, r);
5276
5276
  return Math.round(n / fo) + 1;
5277
5277
  }
5278
5278
  function se(e, r) {
5279
5279
  const t = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(r, "0");
5280
5280
  return t + n;
5281
5281
  }
5282
- const Xe = {
5282
+ const Ue = {
5283
5283
  // Year
5284
5284
  y(e, r) {
5285
5285
  const t = e.getFullYear(), n = t > 0 ? t : 1 - t;
@@ -5367,7 +5367,7 @@ const Xe = {
5367
5367
  const n = e.getFullYear(), a = n > 0 ? n : 1 - n;
5368
5368
  return t.ordinalNumber(a, { unit: "year" });
5369
5369
  }
5370
- return Xe.y(e, r);
5370
+ return Ue.y(e, r);
5371
5371
  },
5372
5372
  // Local week-numbering year
5373
5373
  Y: function(e, r, t, n) {
@@ -5470,7 +5470,7 @@ const Xe = {
5470
5470
  switch (r) {
5471
5471
  case "M":
5472
5472
  case "MM":
5473
- return Xe.M(e, r);
5473
+ return Ue.M(e, r);
5474
5474
  // 1st, 2nd, ..., 12th
5475
5475
  case "Mo":
5476
5476
  return t.ordinalNumber(n + 1, { unit: "month" });
@@ -5535,7 +5535,7 @@ const Xe = {
5535
5535
  },
5536
5536
  // Day of the month
5537
5537
  d: function(e, r, t) {
5538
- return r === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : Xe.d(e, r);
5538
+ return r === "do" ? t.ordinalNumber(e.getDate(), { unit: "date" }) : Ue.d(e, r);
5539
5539
  },
5540
5540
  // Day of year
5541
5541
  D: function(e, r, t) {
@@ -5781,11 +5781,11 @@ const Xe = {
5781
5781
  let n = e.getHours() % 12;
5782
5782
  return n === 0 && (n = 12), t.ordinalNumber(n, { unit: "hour" });
5783
5783
  }
5784
- return Xe.h(e, r);
5784
+ return Ue.h(e, r);
5785
5785
  },
5786
5786
  // Hour [0-23]
5787
5787
  H: function(e, r, t) {
5788
- return r === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : Xe.H(e, r);
5788
+ return r === "Ho" ? t.ordinalNumber(e.getHours(), { unit: "hour" }) : Ue.H(e, r);
5789
5789
  },
5790
5790
  // Hour [0-11]
5791
5791
  K: function(e, r, t) {
@@ -5799,15 +5799,15 @@ const Xe = {
5799
5799
  },
5800
5800
  // Minute
5801
5801
  m: function(e, r, t) {
5802
- return r === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Xe.m(e, r);
5802
+ return r === "mo" ? t.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ue.m(e, r);
5803
5803
  },
5804
5804
  // Second
5805
5805
  s: function(e, r, t) {
5806
- return r === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : Xe.s(e, r);
5806
+ return r === "so" ? t.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ue.s(e, r);
5807
5807
  },
5808
5808
  // Fraction of second
5809
5809
  S: function(e, r) {
5810
- return Xe.S(e, r);
5810
+ return Ue.S(e, r);
5811
5811
  },
5812
5812
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
5813
5813
  X: function(e, r, t) {
@@ -6412,10 +6412,10 @@ class ru extends ne {
6412
6412
  l,
6413
6413
  0,
6414
6414
  o.firstWeekContainsDate
6415
- ), t.setHours(0, 0, 0, 0), Qe(t, o);
6415
+ ), t.setHours(0, 0, 0, 0), Ke(t, o);
6416
6416
  }
6417
6417
  const s = !("era" in n) || n.era === 1 ? a.year : 1 - a.year;
6418
- return t.setFullYear(s, 0, o.firstWeekContainsDate), t.setHours(0, 0, 0, 0), Qe(t, o);
6418
+ return t.setFullYear(s, 0, o.firstWeekContainsDate), t.setHours(0, 0, 0, 0), Ke(t, o);
6419
6419
  }
6420
6420
  }
6421
6421
  class nu extends ne {
@@ -6769,7 +6769,7 @@ class uu extends ne {
6769
6769
  return n >= 1 && n <= 53;
6770
6770
  }
6771
6771
  set(t, n, a, o) {
6772
- return Qe(lu(t, a, o), o);
6772
+ return Ke(lu(t, a, o), o);
6773
6773
  }
6774
6774
  }
6775
6775
  function fu(e, r, t) {
@@ -7978,7 +7978,7 @@ class Po extends a1 {
7978
7978
  }), this.isEqual = (n, a) => n === null && a === null ? !0 : n === null || a === null ? !1 : Wl(n, a), this.isSameYear = (n, a) => zl(n, a), this.isSameMonth = (n, a) => ql(n, a), this.isSameDay = (n, a) => Yl(n, a), this.isSameHour = (n, a) => Zl(n, a), this.isAfter = (n, a) => $r(n, a), this.isAfterYear = (n, a) => $r(n, ya(a)), this.isAfterDay = (n, a) => $r(n, ga(a)), this.isBefore = (n, a) => Hr(n, a), this.isBeforeYear = (n, a) => Hr(n, this.startOfYear(a)), this.isBeforeDay = (n, a) => Hr(n, this.startOfDay(a)), this.isWithinRange = (n, [a, o]) => t1(n, {
7979
7979
  start: a,
7980
7980
  end: o
7981
- }), this.startOfYear = (n) => po(n), this.startOfMonth = (n) => Ju(n), this.startOfWeek = (n) => Qe(n, {
7981
+ }), this.startOfYear = (n) => po(n), this.startOfMonth = (n) => Ju(n), this.startOfWeek = (n) => Ke(n, {
7982
7982
  locale: this.locale
7983
7983
  }), this.startOfDay = (n) => Nt(n), this.endOfYear = (n) => ya(n), this.endOfMonth = (n) => e1(n), this.endOfWeek = (n) => Yc(n, {
7984
7984
  locale: this.locale
@@ -8320,7 +8320,7 @@ const Do = ({
8320
8320
  },
8321
8321
  children: [
8322
8322
  /* @__PURE__ */ c.jsx(b1, {}),
8323
- /* @__PURE__ */ c.jsx("div", { style: { flex: 1, paddingLeft: 5 }, children: /* @__PURE__ */ c.jsx(et, { variant: "body1", children: m }) }),
8323
+ /* @__PURE__ */ c.jsx("div", { style: { flex: 1, paddingLeft: 5 }, children: /* @__PURE__ */ c.jsx(Ge, { variant: "body1", children: m }) }),
8324
8324
  /* @__PURE__ */ c.jsx("div", { children: t && /* @__PURE__ */ c.jsx(
8325
8325
  ct,
8326
8326
  {
@@ -8646,7 +8646,7 @@ const Do = ({
8646
8646
  onClose: () => O(null),
8647
8647
  showWarningIcon: !0,
8648
8648
  title: "Warning",
8649
- children: /* @__PURE__ */ c.jsx(et, { children: k == null ? void 0 : k.message })
8649
+ children: /* @__PURE__ */ c.jsx(Ge, { children: k == null ? void 0 : k.message })
8650
8650
  }
8651
8651
  )
8652
8652
  ] });
@@ -8787,7 +8787,7 @@ const Do = ({
8787
8787
  }
8788
8788
  }
8789
8789
  ),
8790
- /* @__PURE__ */ c.jsx("div", { style: { margin: "auto" }, children: /* @__PURE__ */ c.jsx(et, { style: { paddingLeft: 8, paddingRight: 5 }, children: "To" }) }),
8790
+ /* @__PURE__ */ c.jsx("div", { style: { margin: "auto" }, children: /* @__PURE__ */ c.jsx(Ge, { style: { paddingLeft: 8, paddingRight: 5 }, children: "To" }) }),
8791
8791
  /* @__PURE__ */ c.jsx(
8792
8792
  tr,
8793
8793
  {
@@ -9313,7 +9313,7 @@ const Do = ({
9313
9313
  onClose: () => W(null),
9314
9314
  showWarningIcon: !0,
9315
9315
  title: "Warning",
9316
- children: /* @__PURE__ */ c.jsx(et, { children: H == null ? void 0 : H.message })
9316
+ children: /* @__PURE__ */ c.jsx(Ge, { children: H == null ? void 0 : H.message })
9317
9317
  }
9318
9318
  )
9319
9319
  ] });
@@ -9510,7 +9510,7 @@ const Do = ({
9510
9510
  className: "flex1",
9511
9511
  style: { marginRight: ((x = y == null ? void 0 : y.current) == null ? void 0 : x.offsetWidth) || 0 },
9512
9512
  children: /* @__PURE__ */ c.jsx(
9513
- et,
9513
+ Ge,
9514
9514
  {
9515
9515
  variant: "body1",
9516
9516
  textAlign: "center",
@@ -9851,29 +9851,38 @@ const y2 = (e) => /* @__PURE__ */ c.jsx(mn, { ...e, children: e.children }), p2
9851
9851
  color: t,
9852
9852
  displayAsQty: n,
9853
9853
  hideNoValue: a,
9854
- notCurrency: o,
9855
- showNegative: i,
9856
- prefix: s,
9857
- value: l
9858
- }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: a && !l ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsxs(
9859
- et,
9854
+ hideNoValueText: o,
9855
+ notCurrency: i,
9856
+ showNegative: s,
9857
+ prefix: l,
9858
+ value: h
9859
+ }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: a && !h ? /* @__PURE__ */ c.jsx(c.Fragment, { children: o && /* @__PURE__ */ c.jsx(
9860
+ Ge,
9861
+ {
9862
+ align: e,
9863
+ fontWeight: r ? 600 : void 0,
9864
+ color: t || void 0,
9865
+ children: o
9866
+ }
9867
+ ) }) : /* @__PURE__ */ c.jsxs(
9868
+ Ge,
9860
9869
  {
9861
9870
  align: e,
9862
9871
  fontWeight: r ? 600 : void 0,
9863
9872
  color: t || void 0,
9864
9873
  children: [
9865
- i && l !== 0 && "(",
9874
+ s && h !== 0 && "(",
9866
9875
  /* @__PURE__ */ c.jsx(
9867
9876
  Kr,
9868
9877
  {
9869
- value: (l || 0).toFixed(n ? 0 : 2),
9878
+ value: (h || 0).toFixed(n ? 0 : 2),
9870
9879
  displayType: "text",
9871
- thousandSeparator: !o,
9872
- prefix: s || void 0,
9873
- fixedDecimalScale: !o
9880
+ thousandSeparator: !i,
9881
+ prefix: l || void 0,
9882
+ fixedDecimalScale: !i
9874
9883
  }
9875
9884
  ),
9876
- i && l !== 0 && ")"
9885
+ s && h !== 0 && ")"
9877
9886
  ]
9878
9887
  }
9879
9888
  ) }), Lo = oi((e, r) => {
@@ -10007,7 +10016,7 @@ const x2 = ({
10007
10016
  children: ((r = e == null ? void 0 : e.staffInitials) == null ? void 0 : r.toUpperCase()) || "?"
10008
10017
  }
10009
10018
  ) });
10010
- }, Ke = (e) => /* @__PURE__ */ c.jsx(Oe, { ...e, children: e.children }), M2 = (e) => /* @__PURE__ */ c.jsx(Pi, { ...e, children: e.children }), S2 = (e) => /* @__PURE__ */ c.jsx(Ri, { ...e, children: e.children }), k2 = (e) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
10019
+ }, Xe = (e) => /* @__PURE__ */ c.jsx(Oe, { ...e, children: e.children }), M2 = (e) => /* @__PURE__ */ c.jsx(Pi, { ...e, children: e.children }), S2 = (e) => /* @__PURE__ */ c.jsx(Ri, { ...e, children: e.children }), k2 = (e) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
10011
10020
  /* @__PURE__ */ c.jsx("style", { children: `.textareaautosize textarea {
10012
10021
  border: 1px solid rgba(0, 0, 0, 0.23);
10013
10022
  border-radius: 0;
@@ -10102,7 +10111,7 @@ const x2 = ({
10102
10111
  ]
10103
10112
  }
10104
10113
  ), L2 = () => /* @__PURE__ */ c.jsx(
10105
- Ke,
10114
+ Xe,
10106
10115
  {
10107
10116
  xmlns: "http://www.w3.org/2000/svg",
10108
10117
  style: { height: 16 },
@@ -10120,7 +10129,7 @@ const x2 = ({
10120
10129
  }
10121
10130
  );
10122
10131
  function _2() {
10123
- return /* @__PURE__ */ c.jsx(Ke, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-doc-24", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10132
+ return /* @__PURE__ */ c.jsx(Xe, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-doc-24", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10124
10133
  /* @__PURE__ */ c.jsx(
10125
10134
  "path",
10126
10135
  {
@@ -10266,7 +10275,7 @@ function $2() {
10266
10275
  );
10267
10276
  }
10268
10277
  function H2() {
10269
- return /* @__PURE__ */ c.jsx(Ke, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-excel", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10278
+ return /* @__PURE__ */ c.jsx(Xe, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-excel", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10270
10279
  /* @__PURE__ */ c.jsx("path", { fill: "#FFF", d: "M10 2h28l8 8v36H10z" }),
10271
10280
  /* @__PURE__ */ c.jsx(
10272
10281
  "path",
@@ -10295,7 +10304,7 @@ function H2() {
10295
10304
  ] }) });
10296
10305
  }
10297
10306
  const A2 = () => /* @__PURE__ */ c.jsxs(
10298
- Ke,
10307
+ Xe,
10299
10308
  {
10300
10309
  xmlns: "http://www.w3.org/2000/svg",
10301
10310
  width: "16",
@@ -10429,7 +10438,7 @@ const F2 = () => /* @__PURE__ */ c.jsx(
10429
10438
  style: { height: "14px !important", width: "14px !important" },
10430
10439
  children: /* @__PURE__ */ c.jsx("polygon", { points: "78 44.996 85 44.996 85 59.996 78 59.996 78 77.996 22 77.996 22 21.996 40 21.996 40 15 15 15 15 85 85 85 85 15 55 15 55 21.996 73.003 21.996 43 52 48 57 78 26.995" })
10431
10440
  }
10432
- ), B2 = () => /* @__PURE__ */ c.jsx(Ke, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-pdf-24", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10441
+ ), B2 = () => /* @__PURE__ */ c.jsx(Xe, { style: { height: 18 }, viewBox: "0 0 48 48", id: "doctype-pdf-24", children: /* @__PURE__ */ c.jsxs("g", { fill: "none", fillRule: "evenodd", children: [
10433
10442
  /* @__PURE__ */ c.jsx("path", { fill: "#FFF", d: "M46 46H10V2h26l10 10z" }),
10434
10443
  /* @__PURE__ */ c.jsx(
10435
10444
  "path",
@@ -10467,7 +10476,7 @@ const F2 = () => /* @__PURE__ */ c.jsx(
10467
10476
  );
10468
10477
  function Y2() {
10469
10478
  return /* @__PURE__ */ c.jsx(
10470
- Ke,
10479
+ Xe,
10471
10480
  {
10472
10481
  height: "20",
10473
10482
  id: "help-circle-outline",
@@ -10485,7 +10494,7 @@ function Y2() {
10485
10494
  );
10486
10495
  }
10487
10496
  const z2 = ({ disabled: e }) => /* @__PURE__ */ c.jsx(
10488
- Ke,
10497
+ Xe,
10489
10498
  {
10490
10499
  xmlns: "http://www.w3.org/2000/svg",
10491
10500
  width: "100",
@@ -10530,17 +10539,17 @@ function q2() {
10530
10539
  }
10531
10540
  );
10532
10541
  }
10533
- const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e365e", _1 = "#d7ecf6", Z2 = oo({
10542
+ const Jt = 1.4285, Je = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e365e", _1 = "#d7ecf6", Z2 = oo({
10534
10543
  palette: { primary: { main: Nr }, secondary: { main: "#ffffff" } },
10535
10544
  typography: {
10536
10545
  fontFamily: "Segoe UI",
10537
- fontSize: Ue,
10546
+ fontSize: Je,
10538
10547
  body1: { color: Ma }
10539
10548
  },
10540
10549
  components: {
10541
10550
  MuiTypography: {
10542
10551
  variants: [
10543
- { props: { variant: "body1" }, style: { fontSize: Ue } },
10552
+ { props: { variant: "body1" }, style: { fontSize: Je } },
10544
10553
  { props: { variant: "h6" }, style: { fontSize: D1 } }
10545
10554
  ]
10546
10555
  },
@@ -10568,7 +10577,7 @@ const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e3
10568
10577
  borderRadius: 0,
10569
10578
  textTransform: "none",
10570
10579
  fontWeight: L1,
10571
- fontSize: Ue,
10580
+ fontSize: Je,
10572
10581
  lineHeight: Jt,
10573
10582
  ":hover": {
10574
10583
  boxShadow: "none"
@@ -10577,11 +10586,11 @@ const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e3
10577
10586
  }
10578
10587
  },
10579
10588
  MuiIconButton: { styleOverrides: { root: { padding: 4 } } },
10580
- MuiInputLabel: { styleOverrides: { root: { fontSize: Ue } } },
10589
+ MuiInputLabel: { styleOverrides: { root: { fontSize: Je } } },
10581
10590
  MuiMenuItem: {
10582
10591
  styleOverrides: {
10583
10592
  root: {
10584
- fontSize: Ue,
10593
+ fontSize: Je,
10585
10594
  padding: "2px 4px",
10586
10595
  borderRadius: 5,
10587
10596
  "&.Mui-focusVisible": { backgroundColor: "transparent !important" },
@@ -10603,7 +10612,7 @@ const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e3
10603
10612
  MuiInputBase: {
10604
10613
  styleOverrides: {
10605
10614
  root: {
10606
- fontSize: Ue,
10615
+ fontSize: Je,
10607
10616
  height: 25,
10608
10617
  backgroundColor: "#ffffff",
10609
10618
  lineHeight: Jt,
@@ -10623,7 +10632,7 @@ const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e3
10623
10632
  {
10624
10633
  props: { variant: "outlined" },
10625
10634
  style: {
10626
- fontSize: Ue,
10635
+ fontSize: Je,
10627
10636
  lineHeight: Jt
10628
10637
  }
10629
10638
  }
@@ -10643,7 +10652,7 @@ const Jt = 1.4285, Ue = 13, D1 = "0.95rem", L1 = 400, Ma = "#444444", Nr = "#1e3
10643
10652
  },
10644
10653
  MuiDialogTitle: {
10645
10654
  styleOverrides: {
10646
- root: { padding: 5, fontSize: Ue }
10655
+ root: { padding: 5, fontSize: Je }
10647
10656
  }
10648
10657
  },
10649
10658
  MuiDialogContent: {
@@ -10753,7 +10762,7 @@ export {
10753
10762
  v2 as LCTSelect,
10754
10763
  T2 as LCTSnackbar,
10755
10764
  E2 as LCTStaffAvatar,
10756
- Ke as LCTSvgIcon,
10765
+ Xe as LCTSvgIcon,
10757
10766
  M2 as LCTTab,
10758
10767
  S2 as LCTTabs,
10759
10768
  k2 as LCTTextareaAutosize,