@australiangreens/ag-internal-components 0.0.84 → 0.0.85

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/esm/index.js CHANGED
@@ -1,15 +1,15 @@
1
- var Ft = Object.defineProperty, Pt = Object.defineProperties;
2
- var Nt = Object.getOwnPropertyDescriptors;
1
+ var Pt = Object.defineProperty, Nt = Object.defineProperties;
2
+ var Lt = Object.getOwnPropertyDescriptors;
3
3
  var j = Object.getOwnPropertySymbols;
4
4
  var Te = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
5
- var pe = (e, t, n) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, s = (e, t) => {
5
+ var pe = (e, t, n) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, s = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  Te.call(t, n) && pe(e, n, t[n]);
8
8
  if (j)
9
9
  for (var n of j(t))
10
10
  Oe.call(t, n) && pe(e, n, t[n]);
11
11
  return e;
12
- }, S = (e, t) => Pt(e, Nt(t));
12
+ }, S = (e, t) => Nt(e, Lt(t));
13
13
  var Ee = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
@@ -38,21 +38,21 @@ var P = (e, t, n) => new Promise((i, r) => {
38
38
  });
39
39
  import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
40
40
  import { useState as E, createContext as Qe, useCallback as ne, useContext as Ye, createElement as Ce, useEffect as oe, useRef as he } from "react";
41
- import { Typography as F, Button as ie, Paper as Ke, Box as $, Drawer as ve, Dialog as Je, DialogTitle as Ze, DialogContent as je, DialogActions as et, Autocomplete as we, TextField as Ae, CircularProgress as be, Chip as Lt, Tooltip as _t, Stack as Mt, styled as Se, IconButton as Q, Container as tt, useTheme as ae, useMediaQuery as Rt, Collapse as Ht, Avatar as Fe, Fade as Wt, Skeleton as Pe, Toolbar as zt, Divider as Ne, CssBaseline as Ut, Snackbar as Gt, Alert as Vt, LinearProgress as qt, FormHelperText as Xt } from "@mui/material";
41
+ import { Typography as F, Button as ie, Paper as Ke, Box as I, Drawer as ve, Dialog as Je, LinearProgress as Ze, DialogTitle as je, DialogContent as et, DialogActions as tt, Autocomplete as we, TextField as Ae, CircularProgress as be, Chip as _t, Tooltip as Mt, Stack as Rt, styled as Se, IconButton as Q, Container as nt, useTheme as ae, useMediaQuery as Ht, Collapse as Wt, Avatar as Fe, Fade as zt, Skeleton as Pe, Toolbar as Ut, Divider as Ne, CssBaseline as Gt, Snackbar as Vt, Alert as qt, FormHelperText as Xt } from "@mui/material";
42
42
  import Qt from "@mui/material/CssBaseline";
43
- import { styled as R, createTheme as nt, alpha as ge } from "@mui/material/styles";
43
+ import { styled as R, createTheme as ot, alpha as ge } from "@mui/material/styles";
44
44
  import { AgError as Yt } from "@australiangreens/ag-error";
45
45
  import { createHelper as K } from "souvlaki";
46
- import ot from "@mui/material/List";
47
- import { Cancel as Kt, ArrowDropDown as Jt, ArrowForward as it, ArrowBack as rt, ViewHeadline as Zt } from "@mui/icons-material";
46
+ import it from "@mui/material/List";
47
+ import { Cancel as Kt, ArrowDropDown as Jt, ArrowForward as rt, ArrowBack as at, ViewHeadline as Zt } from "@mui/icons-material";
48
48
  import jt from "autosuggest-highlight/match";
49
49
  import en from "autosuggest-highlight/parse";
50
50
  import { useQuery as tn, QueryClient as nn, QueryClientProvider as on } from "@tanstack/react-query";
51
- import { useAuth0 as at } from "@auth0/auth0-react";
51
+ import { useAuth0 as st } from "@auth0/auth0-react";
52
52
  import { Buffer as rn } from "buffer";
53
53
  import an from "@mui/material/Skeleton";
54
- import { atom as M, useSetAtom as st, useAtomValue as Le, useAtom as V, getDefaultStore as sn, Provider as lt } from "jotai";
55
- import { useHydrateAtoms as ct } from "jotai/utils";
54
+ import { atom as M, useSetAtom as lt, useAtomValue as Le, useAtom as V, getDefaultStore as sn, Provider as ct } from "jotai";
55
+ import { useHydrateAtoms as dt } from "jotai/utils";
56
56
  function Do({ text: e }) {
57
57
  const [t, n] = E(0);
58
58
  return /* @__PURE__ */ p(_, { children: [
@@ -77,7 +77,7 @@ function Do({ text: e }) {
77
77
  ] })
78
78
  ] });
79
79
  }
80
- const dt = 330, ut = 73, U = "Navbar", q = {
80
+ const ut = 330, pt = 73, U = "Navbar", q = {
81
81
  root: `${U}-root`,
82
82
  menuButton: `${U}-menuButton`,
83
83
  hide: `${U}-hide`,
@@ -85,7 +85,7 @@ const dt = 330, ut = 73, U = "Navbar", q = {
85
85
  userInfoHolder: `${U}-userInfoHolder`,
86
86
  settings: `${U}-settings`,
87
87
  pieChartIcon: `${U}-pieChartIcon`
88
- }, ln = R($, {
88
+ }, ln = R(I, {
89
89
  name: "NavBar"
90
90
  })(({ theme: e }) => ({
91
91
  [`&.${q.root}`]: {
@@ -106,7 +106,7 @@ const dt = 330, ut = 73, U = "Navbar", q = {
106
106
  marginTop: "64px",
107
107
  marginBottom: "16px"
108
108
  }
109
- })), pt = () => ({
109
+ })), ht = () => ({
110
110
  position: "absolute",
111
111
  height: "100%",
112
112
  overflowX: "hidden",
@@ -115,13 +115,13 @@ const dt = 330, ut = 73, U = "Navbar", q = {
115
115
  backgroundColor: "black"
116
116
  // backgroundColor: '#e8e8e8',
117
117
  }), cn = () => s({
118
- width: dt
119
- }, pt()), dn = () => s({
120
118
  width: ut
121
- }, pt()), un = R(ve, {
119
+ }, ht()), dn = () => s({
120
+ width: pt
121
+ }, ht()), un = R(ve, {
122
122
  shouldForwardProp: (e) => e !== "open"
123
123
  })(({ theme: e, open: t }) => s(s({
124
- width: t ? dt : ut,
124
+ width: t ? ut : pt,
125
125
  flexShrink: 0,
126
126
  whiteSpace: "nowrap",
127
127
  boxSizing: "border-box",
@@ -134,7 +134,7 @@ const dt = 330, ut = 73, U = "Navbar", q = {
134
134
  class ke extends Yt {
135
135
  }
136
136
  Be(ke, "errorName", "ContextError");
137
- const ht = Qe(null), pn = {}, hn = {}, gn = ({
137
+ const gt = Qe(null), pn = {}, hn = {}, gn = ({
138
138
  overrideState: e = pn,
139
139
  overrideActions: t = hn,
140
140
  children: n
@@ -148,9 +148,9 @@ const ht = Qe(null), pn = {}, hn = {}, gn = ({
148
148
  setOpen: a,
149
149
  toggleOpen: c
150
150
  }, e), t);
151
- return /* @__PURE__ */ o(ht.Provider, { value: d, children: n });
151
+ return /* @__PURE__ */ o(gt.Provider, { value: d, children: n });
152
152
  }, fn = () => {
153
- const e = Ye(ht);
153
+ const e = Ye(gt);
154
154
  if (e === null)
155
155
  throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
156
156
  return e;
@@ -158,7 +158,7 @@ const ht = Qe(null), pn = {}, hn = {}, gn = ({
158
158
  open: !0
159
159
  }, e), yo = K(
160
160
  (e = mn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(gn, { overrideState: e, overrideActions: t, children: n })
161
- ), _e = 7, $o = R(ot)(({ theme: e }) => ({
161
+ ), _e = 7, $o = R(it)(({ theme: e }) => ({
162
162
  backgroundColor: "black",
163
163
  color: "white",
164
164
  "& .MuiListItem-root": {
@@ -196,7 +196,7 @@ const ht = Qe(null), pn = {}, hn = {}, gn = ({
196
196
  // '&.Mui-selected.Mui-focusVisible:hover': {
197
197
  // },
198
198
  }
199
- })), Me = 7, Io = R(ot)(({ theme: e }) => ({
199
+ })), Me = 7, Io = R(it)(({ theme: e }) => ({
200
200
  backgroundColor: "#e8e8e8",
201
201
  color: "inherit",
202
202
  "& .MuiListItem-root": {
@@ -254,7 +254,7 @@ function To({
254
254
  )
255
255
  ] });
256
256
  }
257
- const gt = ({
257
+ const ft = ({
258
258
  isOpen: e,
259
259
  dialogTitle: t,
260
260
  children: n,
@@ -264,41 +264,43 @@ const gt = ({
264
264
  onClose: c,
265
265
  sx: d,
266
266
  "data-testid": l,
267
- disableCloseOnBackdropOrEscape: u = !1
267
+ disableCloseOnBackdropOrEscape: u = !1,
268
+ isLoading: w = !1
268
269
  }) => {
269
- var A, g;
270
- const [C, x] = E(!1);
270
+ var g, k;
271
+ const [C, A] = E(!1);
271
272
  return /* @__PURE__ */ p(
272
273
  Je,
273
274
  {
274
275
  open: e,
275
- onClose: (k, b) => P(void 0, null, function* () {
276
- u && (b === "backdropClick" || b === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : c());
276
+ onClose: (b, D) => P(void 0, null, function* () {
277
+ u && (D === "backdropClick" || D === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : c());
277
278
  }),
278
279
  fullWidth: !0,
279
280
  maxWidth: i != null ? i : "xs",
280
281
  "data-testid": l,
281
282
  sx: d,
282
283
  children: [
283
- /* @__PURE__ */ o(Ze, { children: t }),
284
- /* @__PURE__ */ o(je, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
285
- /* @__PURE__ */ p(et, { children: [
284
+ w && /* @__PURE__ */ o(Ze, { sx: { height: "4px", marginBottom: "-4px" } }),
285
+ /* @__PURE__ */ o(je, { children: t }),
286
+ /* @__PURE__ */ o(et, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
287
+ /* @__PURE__ */ p(tt, { children: [
286
288
  /* @__PURE__ */ o(
287
289
  ie,
288
290
  {
289
- onClick: (A = a == null ? void 0 : a.onClick) != null ? A : c,
291
+ onClick: (g = a == null ? void 0 : a.onClick) != null ? g : c,
290
292
  "data-testid": a == null ? void 0 : a.testId,
291
293
  disabled: (a == null ? void 0 : a.disabled) || C,
292
294
  color: a == null ? void 0 : a.buttonColor,
293
- children: (g = a == null ? void 0 : a.text) != null ? g : "Cancel"
295
+ children: (k = a == null ? void 0 : a.text) != null ? k : "Cancel"
294
296
  }
295
297
  ),
296
298
  r && /* @__PURE__ */ o(
297
299
  ie,
298
300
  {
299
301
  onClick: () => P(void 0, null, function* () {
300
- var k;
301
- x(!0), yield (k = r.onClick) == null ? void 0 : k.call(r), x(!1);
302
+ var b;
303
+ A(!0), yield (b = r.onClick) == null ? void 0 : b.call(r), A(!1);
302
304
  }),
303
305
  "data-testid": r.testId,
304
306
  disabled: r.disabled || C,
@@ -310,7 +312,7 @@ const gt = ({
310
312
  ]
311
313
  }
312
314
  );
313
- }, ft = ({
315
+ }, mt = ({
314
316
  minLength: e,
315
317
  preLoadedOptions: t,
316
318
  lookup: n,
@@ -334,32 +336,32 @@ function Oo({
334
336
  sx: d,
335
337
  boxSx: l,
336
338
  textFieldColor: u,
337
- textFieldVariant: C = "filled",
338
- loadingText: x = "Loading...",
339
+ textFieldVariant: w = "filled",
340
+ loadingText: C = "Loading...",
339
341
  noOptionsText: A = "No options",
340
342
  popupIcon: g = /* @__PURE__ */ o(Jt, {}),
341
343
  error: k = !1,
342
344
  helperText: b = "",
343
- preLoadedOptions: I = void 0,
344
- disablePortal: y = !1
345
+ preLoadedOptions: D = void 0,
346
+ disablePortal: $ = !1
345
347
  }) {
346
- const [v, D] = E(""), H = (h, f) => {
348
+ const [x, y] = E(""), H = (h, f) => {
347
349
  const B = a.filter((m) => m.id !== f);
348
350
  n(B, "delete", h);
349
- }, { data: N, isLoading: T } = ft({
350
- inputValue: v,
351
+ }, { data: N, isLoading: T } = mt({
352
+ inputValue: x,
351
353
  label: r,
352
354
  lookup: e,
353
355
  minLength: i,
354
- preLoadedOptions: I
355
- }), W = v.length >= i;
356
+ preLoadedOptions: D
357
+ }), W = x.length >= i;
356
358
  return /* @__PURE__ */ p("div", { "data-testid": c, children: [
357
359
  /* @__PURE__ */ o(
358
360
  we,
359
361
  {
360
362
  sx: d,
361
363
  "data-testid": c ? `${c}:Autocomplete` : void 0,
362
- disablePortal: y,
364
+ disablePortal: $,
363
365
  multiple: !0,
364
366
  getOptionLabel: (h) => typeof h == "string" ? h : h.label,
365
367
  loading: W ? T : !1,
@@ -370,16 +372,16 @@ function Oo({
370
372
  onChange: (h, f, B) => {
371
373
  n(f, B, h);
372
374
  },
373
- onInputChange: (h, f) => D(f),
375
+ onInputChange: (h, f) => y(f),
374
376
  noOptionsText: W ? A : "Start typing to search",
375
- loadingText: x,
377
+ loadingText: C,
376
378
  popupIcon: g,
377
379
  renderInput: (h) => /* @__PURE__ */ o(
378
380
  Ae,
379
381
  S(s({}, h), {
380
382
  label: r,
381
383
  fullWidth: !0,
382
- variant: C,
384
+ variant: w,
383
385
  error: k,
384
386
  helperText: b,
385
387
  InputProps: S(s({}, h.InputProps), {
@@ -402,14 +404,14 @@ function Oo({
402
404
  const m = jt(f.label, B.inputValue, {
403
405
  insideWords: !0,
404
406
  findAllOccurrences: !0
405
- }), w = en(f.label, m);
407
+ }), v = en(f.label, m);
406
408
  return /* @__PURE__ */ Ce(
407
409
  "li",
408
410
  S(s({}, h), {
409
411
  key: f.id,
410
412
  "data-testid": c ? `${c}:Autocomplete:option(${f.id.toString()})` : void 0
411
413
  }),
412
- /* @__PURE__ */ o("div", { children: w.map((L, se) => /* @__PURE__ */ o(
414
+ /* @__PURE__ */ o("div", { children: v.map((L, se) => /* @__PURE__ */ o(
413
415
  "span",
414
416
  {
415
417
  style: {
@@ -432,8 +434,8 @@ function Oo({
432
434
  }
433
435
  }
434
436
  ),
435
- a.length > 0 && /* @__PURE__ */ o($, { sx: l, children: a.map((h) => /* @__PURE__ */ o(
436
- Lt,
437
+ a.length > 0 && /* @__PURE__ */ o(I, { sx: l, children: a.map((h) => /* @__PURE__ */ o(
438
+ _t,
437
439
  {
438
440
  sx: {
439
441
  marginTop: 1,
@@ -441,7 +443,7 @@ function Oo({
441
443
  height: "auto"
442
444
  },
443
445
  label: /* @__PURE__ */ o(
444
- _t,
446
+ Mt,
445
447
  {
446
448
  title: h.tooltipContent || "",
447
449
  placement: "bottom-start",
@@ -483,54 +485,54 @@ const Eo = ({
483
485
  "data-testid": d,
484
486
  noOptionsText: l = "No options",
485
487
  minLength: u = 3,
486
- disablePortal: C = !1,
487
- preLoadedOptions: x,
488
+ disablePortal: w = !1,
489
+ preLoadedOptions: C,
488
490
  helperText: A = ""
489
491
  }) => {
490
- const [g, k] = E(""), { data: b, isLoading: I } = ft({
492
+ const [g, k] = E(""), { data: b, isLoading: D } = mt({
491
493
  inputValue: g,
492
494
  label: n,
493
495
  lookup: e,
494
496
  minLength: u != null ? u : 0,
495
- preLoadedOptions: x
496
- }), y = g.length >= u;
497
- return /* @__PURE__ */ o("div", { "data-testid": d, children: /* @__PURE__ */ o(Mt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
497
+ preLoadedOptions: C
498
+ }), $ = g.length >= u;
499
+ return /* @__PURE__ */ o("div", { "data-testid": d, children: /* @__PURE__ */ o(Rt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
498
500
  we,
499
501
  {
500
502
  sx: r,
501
503
  "data-testid": d ? `${d}:Autocomplete` : void 0,
502
- loading: y ? I : !1,
504
+ loading: $ ? D : !1,
503
505
  options: b != null ? b : [],
504
- onChange: (v, D) => {
505
- t(v, D);
506
+ onChange: (x, y) => {
507
+ t(x, y);
506
508
  },
507
- disablePortal: C,
508
- filterOptions: (v) => v,
509
+ disablePortal: w,
510
+ filterOptions: (x) => x,
509
511
  value: i,
510
- noOptionsText: y ? l : "Start typing to search",
511
- getOptionLabel: (v) => v.label,
512
- renderInput: (v) => /* @__PURE__ */ o(
512
+ noOptionsText: $ ? l : "Start typing to search",
513
+ getOptionLabel: (x) => x.label,
514
+ renderInput: (x) => /* @__PURE__ */ o(
513
515
  Ae,
514
516
  S(s({
515
517
  "data-testid": d ? `${d}:Autocomplete:TextField` : void 0
516
- }, v), {
518
+ }, x), {
517
519
  variant: c,
518
520
  label: n,
519
521
  color: a,
520
522
  helperText: A
521
523
  })
522
524
  ),
523
- isOptionEqualToValue: (v, D) => v.id === D.id,
524
- onInputChange: (v, D) => {
525
- k(D);
525
+ isOptionEqualToValue: (x, y) => x.id === y.id,
526
+ onInputChange: (x, y) => {
527
+ k(y);
526
528
  },
527
- renderOption: (v, D) => /* @__PURE__ */ Ce(
529
+ renderOption: (x, y) => /* @__PURE__ */ Ce(
528
530
  "li",
529
- S(s({}, v), {
530
- key: D.id,
531
- "data-testid": d ? `${d}:Autocomplete:option(${D.id.toString()})` : void 0
531
+ S(s({}, x), {
532
+ key: y.id,
533
+ "data-testid": d ? `${d}:Autocomplete:option(${y.id.toString()})` : void 0
532
534
  }),
533
- D.label
535
+ y.label
534
536
  )
535
537
  }
536
538
  ) }) });
@@ -552,7 +554,7 @@ const Eo = ({
552
554
  closeHandler: t,
553
555
  setAuth0ExpiryTime: n
554
556
  }) => {
555
- const { logout: i, getAccessTokenSilently: r } = at(), [a, c] = E(0), d = () => P(void 0, null, function* () {
557
+ const { logout: i, getAccessTokenSilently: r } = st(), [a, c] = E(0), d = () => P(void 0, null, function* () {
556
558
  i({ logoutParams: { returnTo: `${window.location.origin}` } });
557
559
  }), l = () => P(void 0, null, function* () {
558
560
  c(a + 1), t();
@@ -565,7 +567,7 @@ const Eo = ({
565
567
  }
566
568
  }))();
567
569
  }, [a, r, n]), /* @__PURE__ */ o(
568
- gt,
570
+ ft,
569
571
  {
570
572
  isOpen: e,
571
573
  primaryButton: {
@@ -609,7 +611,7 @@ function Fo({
609
611
  children: e,
610
612
  appName: t = "the app"
611
613
  }) {
612
- const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } = at();
614
+ const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } = st();
613
615
  if (oe(() => {
614
616
  if (i || n || r)
615
617
  return;
@@ -622,9 +624,9 @@ function Fo({
622
624
  }, [i, n, r, a]), r && xn(r)) {
623
625
  let d = "Auth error", l = "An unknown Auth0 error occurred.";
624
626
  return wn(r) ? (d = "Unauthorised", l = `You are not authorised to access ${t}.`) : An(r) ? (d = "App not authorised", l = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`) : vn(r) && (d = "Unauthorised", l = "Authorisation with auth0 failed for an unknown reason."), /* @__PURE__ */ p(Je, { open: !0, children: [
625
- /* @__PURE__ */ o(Ze, { children: d }),
626
- /* @__PURE__ */ o(je, { children: /* @__PURE__ */ o(F, { children: l }) }),
627
- /* @__PURE__ */ o(et, { children: /* @__PURE__ */ o(ie, { onClick: () => c({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" }) })
627
+ /* @__PURE__ */ o(je, { children: d }),
628
+ /* @__PURE__ */ o(et, { children: /* @__PURE__ */ o(F, { children: l }) }),
629
+ /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ o(ie, { onClick: () => c({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" }) })
628
630
  ] });
629
631
  }
630
632
  return n ? /* @__PURE__ */ o(_, { children: e }) : /* @__PURE__ */ o(an, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
@@ -696,7 +698,7 @@ function Dn({
696
698
  }) {
697
699
  return /* @__PURE__ */ p(kn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
698
700
  /* @__PURE__ */ o("div", { className: O.topStripe }),
699
- /* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ p($, { className: O.titleSlider, children: [
701
+ /* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ p(I, { className: O.titleSlider, children: [
700
702
  t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
701
703
  Q,
702
704
  {
@@ -708,7 +710,7 @@ function Dn({
708
710
  size: "large",
709
711
  children: [
710
712
  " ",
711
- /* @__PURE__ */ o(it, {})
713
+ /* @__PURE__ */ o(rt, {})
712
714
  ]
713
715
  }
714
716
  ),
@@ -724,14 +726,14 @@ function Dn({
724
726
  size: "large",
725
727
  children: [
726
728
  " ",
727
- /* @__PURE__ */ o(rt, {})
729
+ /* @__PURE__ */ o(at, {})
728
730
  ]
729
731
  }
730
732
  )
731
733
  ] }) })
732
734
  ] });
733
735
  }
734
- const mt = 400, yn = Se(ve, {
736
+ const Ct = 400, yn = Se(ve, {
735
737
  shouldForwardProp: (e) => (
736
738
  // Note we do want anchor to be forwarded to the Drawer component
737
739
  ![
@@ -761,7 +763,7 @@ const mt = 400, yn = Se(ve, {
761
763
  marginLeft: `${r}px`
762
764
  }))
763
765
  })
764
- ), $n = Se($, {
766
+ ), $n = Se(I, {
765
767
  shouldForwardProp: (e) => !["anchor"].includes(e)
766
768
  })(({ theme: e, anchor: t }) => S(s({
767
769
  display: "flex",
@@ -788,13 +790,13 @@ function Re({
788
790
  onClose: i = () => {
789
791
  },
790
792
  titleText: r = "",
791
- width: a = mt,
793
+ width: a = Ct,
792
794
  showCloseArrow: c = !0,
793
795
  debugOpacity: d = !1,
794
796
  headerBoxProps: l = {},
795
797
  onOpened: u,
796
- onClosed: C,
797
- "data-testid": x,
798
+ onClosed: w,
799
+ "data-testid": C,
798
800
  navBarOpen: A = !1,
799
801
  navBarWidthOpen: g = 0,
800
802
  navBarWidthClosed: k = 0
@@ -804,14 +806,14 @@ function Re({
804
806
  {
805
807
  SlideProps: {
806
808
  onEntered: () => u == null ? void 0 : u(),
807
- onExited: () => C == null ? void 0 : C()
809
+ onExited: () => w == null ? void 0 : w()
808
810
  },
809
811
  variant: "persistent",
810
812
  anchor: t,
811
813
  open: n,
812
814
  width: a,
813
815
  debugOpacity: d,
814
- "data-testid": x,
816
+ "data-testid": C,
815
817
  navBarOpen: A,
816
818
  navBarWidthOpen: g,
817
819
  navBarWidthClosed: k,
@@ -819,12 +821,12 @@ function Re({
819
821
  /* @__PURE__ */ o($n, S(s({ anchor: t }, l), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
820
822
  /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r }),
821
823
  c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
822
- /* @__PURE__ */ o(rt, { "data-testid": "arrowbackicon" }),
824
+ /* @__PURE__ */ o(at, { "data-testid": "arrowbackicon" }),
823
825
  " "
824
826
  ] })
825
827
  ] }) : /* @__PURE__ */ p(_, { children: [
826
828
  c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
827
- /* @__PURE__ */ o(it, {}),
829
+ /* @__PURE__ */ o(rt, {}),
828
830
  " "
829
831
  ] }),
830
832
  /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r })
@@ -834,7 +836,7 @@ function Re({
834
836
  }
835
837
  );
836
838
  }
837
- const In = R($, {
839
+ const In = R(I, {
838
840
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
839
841
  name: "PanelAwareMargins"
840
842
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
@@ -857,7 +859,7 @@ const In = R($, {
857
859
  }),
858
860
  marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
859
861
  });
860
- }), Tn = R(tt, {
862
+ }), Tn = R(nt, {
861
863
  name: "PageContainer"
862
864
  })(({ theme: e }) => ({
863
865
  // Horizontal padding comes from the Container's gutter
@@ -867,7 +869,7 @@ const In = R($, {
867
869
  })), fe = !1, me = !1, ee = {
868
870
  titleText: "",
869
871
  flavour: "push",
870
- width: mt,
872
+ width: Ct,
871
873
  arrowButtons: "both",
872
874
  startOpen: !1,
873
875
  open: void 0,
@@ -888,81 +890,81 @@ function Po({
888
890
  pageContentDataTestId: d,
889
891
  topBarDataTestId: l,
890
892
  navBarOpen: u,
891
- navBarWidthOpen: C,
892
- navBarWidthClosed: x
893
+ navBarWidthOpen: w,
894
+ navBarWidthClosed: C
893
895
  }) {
894
- const [A, g] = E(fe), [k, b] = E(me), [I, y] = E(fe), [v, D] = E(me), H = n !== void 0, N = i !== void 0, {
896
+ const [A, g] = E(fe), [k, b] = E(me), [D, $] = E(fe), [x, y] = E(me), H = n !== void 0, N = i !== void 0, {
895
897
  titleText: T,
896
898
  content: W,
897
899
  flavour: h,
898
900
  open: f,
899
901
  onChangeOpen: B,
900
902
  width: m,
901
- arrowButtons: w,
903
+ arrowButtons: v,
902
904
  startOpen: L,
903
905
  onOpened: se,
904
- onClosed: yt,
905
- dataTestId: $t
906
+ onClosed: $t,
907
+ dataTestId: It
906
908
  } = n ? s(s({}, ee), n) : s({}, ee), {
907
- titleText: It,
908
- content: Tt,
909
+ titleText: Tt,
910
+ content: Ot,
909
911
  flavour: De,
910
912
  open: le,
911
913
  onChangeOpen: ye,
912
914
  width: ce,
913
915
  arrowButtons: J,
914
916
  startOpen: Z,
915
- onOpened: Ot,
916
- onClosed: Et,
917
- dataTestId: Bt
917
+ onOpened: Et,
918
+ onClosed: Bt,
919
+ dataTestId: Ft
918
920
  } = i ? s(s({}, ee), i) : s({}, ee);
919
921
  oe(() => {
920
- L !== fe && (g(L), y(L));
922
+ L !== fe && (g(L), $(L));
921
923
  }, [L]), oe(() => {
922
- Z !== me && (b(Z), D(Z));
924
+ Z !== me && (b(Z), y(Z));
923
925
  }, [Z]);
924
926
  const de = f === void 0 ? A : f, ue = le === void 0 ? k : le, $e = (z) => {
925
- f === void 0 && (g(z), r && N && (z ? (b(!1), D(k)) : b(v))), B && B(z);
927
+ f === void 0 && (g(z), r && N && (z ? (b(!1), y(k)) : b(x))), B && B(z);
926
928
  }, Ie = (z) => {
927
- le === void 0 && (b(z), r && H && (z ? (g(!1), y(A)) : g(I))), ye && ye(z);
929
+ le === void 0 && (b(z), r && H && (z ? (g(!1), $(A)) : g(D))), ye && ye(z);
928
930
  };
929
- return /* @__PURE__ */ p($, { children: [
931
+ return /* @__PURE__ */ p(I, { children: [
930
932
  H && /* @__PURE__ */ o(
931
933
  Re,
932
934
  {
933
- "data-testid": $t,
935
+ "data-testid": It,
934
936
  anchor: "left",
935
937
  open: de,
936
938
  onClose: () => $e(!1),
937
939
  width: m,
938
940
  titleText: T,
939
941
  debugOpacity: a,
940
- showCloseArrow: w === "both" || w === "close",
942
+ showCloseArrow: v === "both" || v === "close",
941
943
  onOpened: se,
942
- onClosed: yt,
944
+ onClosed: $t,
943
945
  navBarOpen: u,
944
- navBarWidthOpen: C,
945
- navBarWidthClosed: x,
946
+ navBarWidthOpen: w,
947
+ navBarWidthClosed: C,
946
948
  children: W
947
949
  }
948
950
  ),
949
951
  N && /* @__PURE__ */ o(
950
952
  Re,
951
953
  {
952
- "data-testid": Bt,
954
+ "data-testid": Ft,
953
955
  anchor: "right",
954
956
  open: ue,
955
957
  onClose: () => Ie(!1),
956
958
  width: ce,
957
- titleText: It,
959
+ titleText: Tt,
958
960
  debugOpacity: a,
959
961
  showCloseArrow: J === "both" || J === "close",
960
- onOpened: Ot,
961
- onClosed: Et,
962
+ onOpened: Et,
963
+ onClosed: Bt,
962
964
  navBarOpen: u,
963
- navBarWidthOpen: C,
964
- navBarWidthClosed: x,
965
- children: Tt
965
+ navBarWidthOpen: w,
966
+ navBarWidthClosed: C,
967
+ children: Ot
966
968
  }
967
969
  ),
968
970
  /* @__PURE__ */ o(
@@ -975,7 +977,7 @@ function Po({
975
977
  open: de,
976
978
  width: m,
977
979
  onOpen: () => $e(!0),
978
- showOpenArrow: w === "both" || w === "open"
980
+ showOpenArrow: v === "both" || v === "open"
979
981
  }
980
982
  } : {}), N && De === "push" ? {
981
983
  rightPanel: {
@@ -1004,10 +1006,10 @@ function Po({
1004
1006
  )
1005
1007
  ] });
1006
1008
  }
1007
- const Ct = () => {
1009
+ const xt = () => {
1008
1010
  const e = ae();
1009
- return Rt(e.breakpoints.down("sm"));
1010
- }, On = 64, En = 72, Bn = 256, Y = M(!0), xt = M(Bn), vt = M(En), xe = M(""), Fn = M(void 0), wt = M(On), At = M(void 0);
1011
+ return Ht(e.breakpoints.down("sm"));
1012
+ }, On = 64, En = 72, Bn = 256, Y = M(!0), vt = M(Bn), wt = M(En), xe = M(""), Fn = M(void 0), At = M(On), bt = M(void 0);
1011
1013
  function Pn({ links: e }) {
1012
1014
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
1013
1015
  }
@@ -1019,7 +1021,7 @@ const te = "Navbar", X = {
1019
1021
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
1020
1022
  // settings: `${PREFIX}-settings`,
1021
1023
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
1022
- }, Nn = R($, { name: "NavBar" })(({ theme: e }) => ({
1024
+ }, Nn = R(I, { name: "NavBar" })(({ theme: e }) => ({
1023
1025
  [`&.${X.root}`]: {
1024
1026
  display: "flex"
1025
1027
  },
@@ -1044,7 +1046,7 @@ const te = "Navbar", X = {
1044
1046
  }), Ln = (e) => {
1045
1047
  const t = ae();
1046
1048
  return /* @__PURE__ */ o(
1047
- Ht,
1049
+ Wt,
1048
1050
  s({
1049
1051
  easing: t.transitions.easing.sharp,
1050
1052
  timeout: {
@@ -1053,7 +1055,7 @@ const te = "Navbar", X = {
1053
1055
  }
1054
1056
  }, e)
1055
1057
  );
1056
- }, bt = (e) => {
1058
+ }, St = (e) => {
1057
1059
  var t, n;
1058
1060
  return {
1059
1061
  overflowX: "hidden",
@@ -1064,10 +1066,10 @@ const te = "Navbar", X = {
1064
1066
  }, He = (e, t) => s({
1065
1067
  width: t,
1066
1068
  transition: re(e, "width", "entering")
1067
- }, bt(e)), We = (e, t) => s({
1069
+ }, St(e)), We = (e, t) => s({
1068
1070
  width: t,
1069
1071
  transition: re(e, "width", "leaving")
1070
- }, bt(e)), _n = R(ve, {
1072
+ }, St(e)), _n = R(ve, {
1071
1073
  shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
1072
1074
  })(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => s(s({
1073
1075
  flexShrink: 0,
@@ -1094,7 +1096,7 @@ const ze = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], R
1094
1096
  function Hn({ user: e, domainCode: t, open: n }) {
1095
1097
  const i = ae();
1096
1098
  return /* @__PURE__ */ p(
1097
- $,
1099
+ I,
1098
1100
  {
1099
1101
  sx: {
1100
1102
  paddingTop: 3,
@@ -1105,7 +1107,7 @@ function Hn({ user: e, domainCode: t, open: n }) {
1105
1107
  },
1106
1108
  children: [
1107
1109
  /* @__PURE__ */ o(
1108
- $,
1110
+ I,
1109
1111
  {
1110
1112
  sx: {
1111
1113
  width: n ? "5rem" : "2rem",
@@ -1126,7 +1128,7 @@ function Hn({ user: e, domainCode: t, open: n }) {
1126
1128
  ) : /* @__PURE__ */ o(Fe, { sx: { width: "100%", height: "100%" } })
1127
1129
  }
1128
1130
  ),
1129
- /* @__PURE__ */ o(Ln, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Wt, { in: n, children: /* @__PURE__ */ p($, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
1131
+ /* @__PURE__ */ o(Ln, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(zt, { in: n, children: /* @__PURE__ */ p(I, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
1130
1132
  e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
1131
1133
  t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
1132
1134
  ] }) }) })
@@ -1145,7 +1147,7 @@ function Wn({
1145
1147
  user: d,
1146
1148
  domainCode: l
1147
1149
  }) {
1148
- const u = Ct(), C = st(Y);
1150
+ const u = xt(), w = lt(Y);
1149
1151
  return /* @__PURE__ */ o(Nn, { className: X.root, "data-testid": i, children: /* @__PURE__ */ p(
1150
1152
  _n,
1151
1153
  {
@@ -1158,17 +1160,17 @@ function Wn({
1158
1160
  component: "nav"
1159
1161
  },
1160
1162
  onClose: () => {
1161
- C(!1);
1163
+ w(!1);
1162
1164
  },
1163
1165
  isSmallScreen: u,
1164
1166
  children: [
1165
- !u && /* @__PURE__ */ o(zt, {}),
1166
- r && /* @__PURE__ */ p($, { flexGrow: "0", children: [
1167
+ !u && /* @__PURE__ */ o(Ut, {}),
1168
+ r && /* @__PURE__ */ p(I, { flexGrow: "0", children: [
1167
1169
  r,
1168
1170
  /* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } })
1169
1171
  ] }),
1170
- /* @__PURE__ */ o($, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Pn, { links: a }) : a }),
1171
- /* @__PURE__ */ p($, { flexGrow: "0", children: [
1172
+ /* @__PURE__ */ o(I, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Pn, { links: a }) : a }),
1173
+ /* @__PURE__ */ p(I, { flexGrow: "0", children: [
1172
1174
  /* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } }),
1173
1175
  /* @__PURE__ */ o(Hn, { user: d, domainCode: l, open: e }),
1174
1176
  c && /* @__PURE__ */ o(_, { children: c })
@@ -1183,7 +1185,7 @@ function zn({
1183
1185
  maxWidth: n = !1
1184
1186
  }) {
1185
1187
  return /* @__PURE__ */ o(
1186
- $,
1188
+ I,
1187
1189
  {
1188
1190
  sx: {
1189
1191
  overflow: "auto",
@@ -1193,7 +1195,7 @@ function zn({
1193
1195
  flexGrow: 1
1194
1196
  },
1195
1197
  children: /* @__PURE__ */ o(
1196
- tt,
1198
+ nt,
1197
1199
  {
1198
1200
  component: "main",
1199
1201
  id: "main-content",
@@ -1214,7 +1216,7 @@ function Vn({
1214
1216
  "data-testid": n,
1215
1217
  middle: i
1216
1218
  }) {
1217
- const r = st(Y), a = () => r((l) => !l), c = ae(), d = Ct();
1219
+ const r = lt(Y), a = () => r((l) => !l), c = ae(), d = xt();
1218
1220
  return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
1219
1221
  Ke,
1220
1222
  {
@@ -1260,34 +1262,34 @@ function No({
1260
1262
  navBarMiddle: d,
1261
1263
  navBarBottom: l,
1262
1264
  user: u,
1263
- domainCode: C
1265
+ domainCode: w
1264
1266
  }) {
1265
- ct([
1267
+ dt([
1266
1268
  [Y, n != null ? n : !0],
1267
1269
  [xe, t != null ? t : ""]
1268
1270
  ]);
1269
- const x = Le(Y), [A] = V(xt), [g] = V(vt), k = Le(xe), [b] = V(wt), [I] = V(Fn), [y] = V(At);
1270
- return /* @__PURE__ */ p($, { children: [
1271
- /* @__PURE__ */ o(Ut, {}),
1271
+ const C = Le(Y), [A] = V(vt), [g] = V(wt), k = Le(xe), [b] = V(At), [D] = V(Fn), [$] = V(bt);
1272
+ return /* @__PURE__ */ p(I, { children: [
1273
+ /* @__PURE__ */ o(Gt, {}),
1272
1274
  /* @__PURE__ */ o(
1273
1275
  Vn,
1274
1276
  {
1275
1277
  titleText: k,
1276
1278
  "data-testid": a,
1277
1279
  height: b,
1278
- middle: I
1280
+ middle: D
1279
1281
  }
1280
1282
  ),
1281
- /* @__PURE__ */ p($, { sx: { display: "flex" }, children: [
1283
+ /* @__PURE__ */ p(I, { sx: { display: "flex" }, children: [
1282
1284
  /* @__PURE__ */ o(
1283
1285
  Wn,
1284
1286
  {
1285
- open: x,
1286
- top: y,
1287
+ open: C,
1288
+ top: $,
1287
1289
  middle: d,
1288
1290
  bottom: l,
1289
1291
  user: u,
1290
- domainCode: C,
1292
+ domainCode: w,
1291
1293
  widthOpen: A,
1292
1294
  widthClosed: g,
1293
1295
  offsetTop: b,
@@ -1326,7 +1328,7 @@ const qn = {
1326
1328
  })(), Kn = {
1327
1329
  borderBottomLeftRadius: "0px",
1328
1330
  borderBottomRightRadius: "0px"
1329
- }, Jn = {}, Zn = {}, St = Qe(null);
1331
+ }, Jn = {}, Zn = {}, kt = Qe(null);
1330
1332
  function jn(a) {
1331
1333
  var c = a, {
1332
1334
  overrideState: e = Jn,
@@ -1340,22 +1342,22 @@ function jn(a) {
1340
1342
  "children"
1341
1343
  ]);
1342
1344
  var B;
1343
- const [{ open: d }, l] = E({ open: !1 }), u = he([]), C = he(Date.now()), x = he(0), A = ne((m) => {
1345
+ const [{ open: d }, l] = E({ open: !1 }), u = he([]), w = he(Date.now()), C = he(0), A = ne((m) => {
1344
1346
  l({ open: m });
1345
1347
  }, []), g = ne((m = {}) => {
1346
- x.current += 1, u.current.length >= Ge && Date.now() - C.current >= Ve && (C.current = Date.now(), console.error(
1347
- `SaladBarProvider: MAX_QUEUE_LENGTH (${Ge}) hit ${x.current} times in last ${Ve}ms)`
1348
- ), x.current = 0);
1349
- const w = s(S(s({}, Ue), {
1348
+ C.current += 1, u.current.length >= Ge && Date.now() - w.current >= Ve && (w.current = Date.now(), console.error(
1349
+ `SaladBarProvider: MAX_QUEUE_LENGTH (${Ge}) hit ${C.current} times in last ${Ve}ms)`
1350
+ ), C.current = 0);
1351
+ const v = s(S(s({}, Ue), {
1350
1352
  key: Yn()
1351
1353
  }), m);
1352
- return u.current.push(w), u.current.length === 1 && l({ open: !0 }), w.key;
1353
- }, []), k = (m = "", w = {}) => g(s({ message: m, severity: "success" }, w)), b = (m = "", w = {}) => g(s({ message: m, severity: "info" }, w)), I = (m = "", w = {}) => g(s({ message: m, severity: "warning" }, w)), y = (m = "", w = {}) => g(s({ message: m, severity: "error" }, w)), v = (m) => {
1354
- const w = u.current.findIndex((L) => L.key === m);
1355
- if (w !== -1)
1356
- return w === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(w, 1);
1357
- }, D = (m, w) => {
1358
- n(m, w) && l({ open: !1 });
1354
+ return u.current.push(v), u.current.length === 1 && l({ open: !0 }), v.key;
1355
+ }, []), k = (m = "", v = {}) => g(s({ message: m, severity: "success" }, v)), b = (m = "", v = {}) => g(s({ message: m, severity: "info" }, v)), D = (m = "", v = {}) => g(s({ message: m, severity: "warning" }, v)), $ = (m = "", v = {}) => g(s({ message: m, severity: "error" }, v)), x = (m) => {
1356
+ const v = u.current.findIndex((L) => L.key === m);
1357
+ if (v !== -1)
1358
+ return v === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(v, 1);
1359
+ }, y = (m, v) => {
1360
+ n(m, v) && l({ open: !1 });
1359
1361
  }, H = () => {
1360
1362
  }, N = () => {
1361
1363
  u.current.shift(), u.current.length > 0 && l({ open: !0 });
@@ -1367,17 +1369,17 @@ function jn(a) {
1367
1369
  enqueueNotification: g,
1368
1370
  enqueueSuccessNotification: k,
1369
1371
  enqueueInfoNotification: b,
1370
- enqueueWarningNotification: I,
1371
- enqueueErrorNotification: y,
1372
- removeNotification: v
1372
+ enqueueWarningNotification: D,
1373
+ enqueueErrorNotification: $,
1374
+ removeNotification: x
1373
1375
  }, e), t);
1374
- return /* @__PURE__ */ p(St.Provider, { value: f, children: [
1376
+ return /* @__PURE__ */ p(kt.Provider, { value: f, children: [
1375
1377
  i,
1376
1378
  /* @__PURE__ */ o(
1377
- Gt,
1379
+ Vt,
1378
1380
  S(s(s({}, h), W), {
1379
1381
  open: d,
1380
- onClose: D,
1382
+ onClose: y,
1381
1383
  TransitionProps: {
1382
1384
  onExited: N,
1383
1385
  onExit: H
@@ -1385,9 +1387,9 @@ function jn(a) {
1385
1387
  sx: { zIndex: Qn },
1386
1388
  children: /* @__PURE__ */ p("div", { children: [
1387
1389
  /* @__PURE__ */ o(
1388
- Vt,
1390
+ qt,
1389
1391
  {
1390
- onClose: (m) => D(m, "closeAlert"),
1392
+ onClose: (m) => y(m, "closeAlert"),
1391
1393
  severity: T.severity,
1392
1394
  variant: "filled",
1393
1395
  icon: T.progressIndicator === "circular" ? /* @__PURE__ */ o(be, { size: "1em" }) : void 0,
@@ -1395,14 +1397,14 @@ function jn(a) {
1395
1397
  children: T.message
1396
1398
  }
1397
1399
  ),
1398
- T.progressIndicator === "linear" && /* @__PURE__ */ o(qt, { color: "primary" })
1400
+ T.progressIndicator === "linear" && /* @__PURE__ */ o(Ze, { color: "primary" })
1399
1401
  ] })
1400
1402
  })
1401
1403
  )
1402
1404
  ] });
1403
1405
  }
1404
1406
  function eo() {
1405
- const e = Ye(St);
1407
+ const e = Ye(kt);
1406
1408
  if (e === null)
1407
1409
  throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1408
1410
  return e;
@@ -1412,14 +1414,14 @@ const Lo = K(
1412
1414
  ), to = sn(), _o = ({
1413
1415
  children: e,
1414
1416
  store: t
1415
- }) => /* @__PURE__ */ o(lt, { store: t != null ? t : to, children: e }), kt = "domainCode";
1417
+ }) => /* @__PURE__ */ o(ct, { store: t != null ? t : to, children: e }), Dt = "domainCode";
1416
1418
  var Xe;
1417
1419
  const qe = M(
1418
- JSON.parse((Xe = localStorage.getItem(kt)) != null ? Xe : '{"domainCode": ""}').domainCode
1419
- ), Dt = M(
1420
+ JSON.parse((Xe = localStorage.getItem(Dt)) != null ? Xe : '{"domainCode": ""}').domainCode
1421
+ ), yt = M(
1420
1422
  (e) => e(qe),
1421
1423
  (e, t, n) => {
1422
- t(qe, n), localStorage.setItem(kt, JSON.stringify({ domainCode: n }));
1424
+ t(qe, n), localStorage.setItem(Dt, JSON.stringify({ domainCode: n }));
1423
1425
  }
1424
1426
  ), no = {
1425
1427
  act: "ACT",
@@ -1444,21 +1446,21 @@ const qe = M(
1444
1446
  applicationName: r,
1445
1447
  handleLogout: a
1446
1448
  }) => {
1447
- const [c, d] = V(Dt), [l, u] = E(c), { enqueueSuccessNotification: C } = eo(), x = i.length === 0, A = !!c && !i.includes(c) && !i.includes(l), g = !c || x || A, k = () => P(void 0, null, function* () {
1448
- l ? (d(l), C(`Set domain to ${l}`), n()) : d("");
1449
+ const [c, d] = V(yt), [l, u] = E(c), { enqueueSuccessNotification: w } = eo(), C = i.length === 0, A = !!c && !i.includes(c) && !i.includes(l), g = !c || C || A, k = () => P(void 0, null, function* () {
1450
+ l ? (d(l), w(`Set domain to ${l}`), n()) : d("");
1449
1451
  }), b = () => P(void 0, null, function* () {
1450
- c && !x && !A ? (u(c), n()) : g && a();
1452
+ c && !C && !A ? (u(c), n()) : g && a();
1451
1453
  });
1452
- let I;
1453
- return x ? I = "Unable to retrieve your active organisations. Try logging in again." : A && (I = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1454
- gt,
1454
+ let D;
1455
+ return C ? D = "Unable to retrieve your active organisations. Try logging in again." : A && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1456
+ ft,
1455
1457
  {
1456
1458
  isOpen: t,
1457
1459
  dialogTitle: "Select an organisation",
1458
1460
  primaryButton: {
1459
1461
  text: "Confirm",
1460
1462
  onClick: k,
1461
- disabled: !l || x || A,
1463
+ disabled: !l || C || A,
1462
1464
  buttonColor: "primary"
1463
1465
  },
1464
1466
  secondaryButton: {
@@ -1480,29 +1482,29 @@ const qe = M(
1480
1482
  multiple: !1,
1481
1483
  disableClearable: !1,
1482
1484
  value: l !== "" ? l : null,
1483
- onChange: (y, v) => u(v != null ? v : ""),
1485
+ onChange: ($, x) => u(x != null ? x : ""),
1484
1486
  getOptionLabel: oo,
1485
1487
  options: [...i],
1486
- renderInput: (y) => /* @__PURE__ */ o(
1488
+ renderInput: ($) => /* @__PURE__ */ o(
1487
1489
  Ae,
1488
- S(s({}, y), {
1490
+ S(s({}, $), {
1489
1491
  variant: "filled",
1490
1492
  label: "Select organisation",
1491
- InputProps: S(s({}, y.InputProps), {
1493
+ InputProps: S(s({}, $.InputProps), {
1492
1494
  endAdornment: /* @__PURE__ */ p(_, { children: [
1493
1495
  e ? /* @__PURE__ */ o(be, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1494
- y.InputProps.endAdornment
1496
+ $.InputProps.endAdornment
1495
1497
  ] })
1496
1498
  })
1497
1499
  })
1498
1500
  )
1499
1501
  }
1500
1502
  ),
1501
- I && /* @__PURE__ */ o(Xt, { error: !0, children: I })
1503
+ D && /* @__PURE__ */ o(Xt, { error: !0, children: D })
1502
1504
  ]
1503
1505
  }
1504
1506
  );
1505
- }, Ro = nt({
1507
+ }, Ro = ot({
1506
1508
  palette: {
1507
1509
  primary: {
1508
1510
  dark: "#00A651",
@@ -1553,7 +1555,7 @@ const qe = M(
1553
1555
  navBar: {
1554
1556
  backgroundColor: "#E8E8E8"
1555
1557
  }
1556
- }), Ho = nt({
1558
+ }), Ho = ot({
1557
1559
  palette: {
1558
1560
  primary: {
1559
1561
  main: "#007236",
@@ -1645,17 +1647,17 @@ const qe = M(
1645
1647
  backgroundColor: "#E8E8E8"
1646
1648
  }
1647
1649
  }), io = {
1648
- domainCode: Dt,
1650
+ domainCode: yt,
1649
1651
  navBarOpen: Y,
1650
- navBarWidthOpen: xt,
1651
- navBarWidthClosed: vt,
1652
+ navBarWidthOpen: vt,
1653
+ navBarWidthClosed: wt,
1652
1654
  titleText: xe,
1653
- topBarHeight: wt,
1654
- navBarTop: At
1655
- }, Wo = K(() => ({ children: e }) => /* @__PURE__ */ o(lt, { children: e })), ro = ({
1655
+ topBarHeight: At,
1656
+ navBarTop: bt
1657
+ }, Wo = K(() => ({ children: e }) => /* @__PURE__ */ o(ct, { children: e })), ro = ({
1656
1658
  initialValues: e,
1657
1659
  children: t
1658
- }) => (ct(e), /* @__PURE__ */ o(_, { children: t })), zo = K(
1660
+ }) => (dt(e), /* @__PURE__ */ o(_, { children: t })), zo = K(
1659
1661
  (e) => ({ children: t }) => /* @__PURE__ */ o(
1660
1662
  ro,
1661
1663
  {
@@ -1673,18 +1675,18 @@ const qe = M(
1673
1675
  return /* @__PURE__ */ o(on, { client: t, children: e });
1674
1676
  });
1675
1677
  export {
1676
- gt as AgDialog,
1678
+ ft as AgDialog,
1677
1679
  No as AppLayout,
1678
1680
  _o as AtomProvider,
1679
1681
  Fo as AuthGuard,
1680
- St as Context,
1682
+ kt as Context,
1681
1683
  ke as ContextError,
1682
1684
  Mo as DomainCodeDialog,
1683
1685
  Do as ExampleComponent,
1684
1686
  Oo as FetchAutocomplete,
1685
1687
  ro as HydrateAtoms,
1686
- ut as NAVBAR_WIDTH_CLOSED,
1687
- dt as NAVBAR_WIDTH_OPENED,
1688
+ pt as NAVBAR_WIDTH_CLOSED,
1689
+ ut as NAVBAR_WIDTH_OPENED,
1688
1690
  To as NavBar,
1689
1691
  $o as NavBarDarkStyledList,
1690
1692
  Io as NavBarLightStyledList,
@@ -1695,19 +1697,19 @@ export {
1695
1697
  Eo as SingleAutocomplete,
1696
1698
  to as atomStore,
1697
1699
  mn as buildNavBarState,
1698
- Dt as domainCodeAtom,
1700
+ yt as domainCodeAtom,
1699
1701
  Ro as fed21Theme,
1700
1702
  Cn as getAuth0Expiry,
1701
1703
  Ho as internalAgSystemsTheme,
1702
1704
  q as navBarClasses,
1703
1705
  Y as navBarOpenAtom,
1704
- At as navBarTopAtom,
1705
- vt as navBarWidthClosedAtom,
1706
- xt as navBarWidthOpenAtom,
1706
+ bt as navBarTopAtom,
1707
+ wt as navBarWidthClosedAtom,
1708
+ vt as navBarWidthOpenAtom,
1707
1709
  xe as titleTextAtom,
1708
- wt as topBarHeightAtom,
1710
+ At as topBarHeightAtom,
1709
1711
  Fn as topBarMiddleAtom,
1710
- ft as useAutocompleteOptions,
1712
+ mt as useAutocompleteOptions,
1711
1713
  fn as useNavBar,
1712
1714
  eo as useSaladBar,
1713
1715
  Wo as withAtomProvider,