@australiangreens/ag-internal-components 0.1.26 → 0.2.0

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 nt = Object.defineProperty, it = Object.defineProperties;
2
- var rt = Object.getOwnPropertyDescriptors;
1
+ var rt = Object.defineProperty, at = Object.defineProperties;
2
+ var st = Object.getOwnPropertyDescriptors;
3
3
  var G = Object.getOwnPropertySymbols;
4
4
  var ue = Object.prototype.hasOwnProperty, pe = Object.prototype.propertyIsEnumerable;
5
- var j = (e, t, o) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, d = (e, t) => {
5
+ var j = (e, t, o) => t in e ? rt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, d = (e, t) => {
6
6
  for (var o in t || (t = {}))
7
7
  ue.call(t, o) && j(e, o, t[o]);
8
8
  if (G)
9
9
  for (var o of G(t))
10
10
  pe.call(t, o) && j(e, o, t[o]);
11
11
  return e;
12
- }, D = (e, t) => it(e, rt(t));
12
+ }, D = (e, t) => at(e, st(t));
13
13
  var he = (e, t) => {
14
14
  var o = {};
15
15
  for (var i in e)
@@ -36,27 +36,28 @@ var N = (e, t, o) => new Promise((i, r) => {
36
36
  }, s = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(a, c);
37
37
  s((o = o.apply(e, t)).next());
38
38
  });
39
- import { jsxs as m, Fragment as L, jsx as n } from "react/jsx-runtime";
40
- import { useState as T, createContext as _e, useCallback as K, useContext as Me, createElement as oe, useEffect as ne, useMemo as at, useRef as ee } from "react";
41
- import { Typography as _, Button as W, Paper as Te, Box as F, Drawer as Be, useTheme as J, useMediaQuery as st, Collapse as lt, Avatar as me, Fade as ct, Skeleton as ge, Toolbar as dt, Divider as xe, Container as ut, IconButton as pt, CssBaseline as ht, Dialog as Le, LinearProgress as Pe, DialogTitle as Re, DialogContent as Oe, DialogActions as He, Autocomplete as ie, TextField as re, CircularProgress as ae, Chip as ft, Tooltip as mt, Stack as gt, Snackbar as xt, Alert as vt, FormHelperText as Ct } from "@mui/material";
42
- import At from "@mui/material/CssBaseline";
43
- import { styled as z, createTheme as Ue, alpha as te } from "@mui/material/styles";
39
+ import { jsxs as m, Fragment as T, jsx as n } from "react/jsx-runtime";
40
+ import { useState as L, createContext as Me, useCallback as K, useContext as Te, createElement as oe, useEffect as ne, useMemo as lt, useRef as ee } from "react";
41
+ import { Typography as _, Button as W, Paper as Le, Box as E, Drawer as Be, useTheme as J, useMediaQuery as ct, Collapse as dt, Avatar as me, Fade as ut, Skeleton as ge, Toolbar as pt, Divider as xe, Container as ht, IconButton as ft, Dialog as Pe, LinearProgress as Re, DialogTitle as Oe, DialogContent as He, DialogActions as Ue, Autocomplete as ie, TextField as re, CircularProgress as ae, Chip as mt, Tooltip as gt, Stack as xt, Snackbar as vt, Alert as Ct, FormHelperText as At } from "@mui/material";
42
+ import We from "@mui/material/CssBaseline";
43
+ import { styled as z, createTheme as ze, alpha as te } from "@mui/material/styles";
44
44
  import { createHelper as se } from "souvlaki";
45
45
  import { BrowserRouter as wt } from "react-router-dom";
46
- import We from "@mui/material/List";
46
+ import Ve from "@mui/material/List";
47
47
  import { ViewHeadline as St, Cancel as bt, ArrowDropDown as kt } from "@mui/icons-material";
48
- import { atom as M, useSetAtom as ze, useAtomValue as ve, useAtom as O } from "jotai";
48
+ import { atom as M, useSetAtom as qe, useAtomValue as ve, useAtom as O } from "jotai";
49
+ import Ce from "@mui/material/Box";
49
50
  import { useHydrateAtoms as yt } from "jotai/utils";
50
- import Ce from "react-avatar";
51
+ import Ae from "react-avatar";
51
52
  import { useAuth0 as le } from "@auth0/auth0-react";
52
- import { useQuery as Ve } from "@tanstack/react-query";
53
+ import { useQuery as Ge } from "@tanstack/react-query";
53
54
  import Dt from "autosuggest-highlight/match";
54
55
  import It from "autosuggest-highlight/parse";
55
56
  import { Buffer as $t } from "buffer";
56
57
  import Ft from "@mui/material/Skeleton";
57
- function Uo({ text: e }) {
58
- const [t, o] = T(0);
59
- return /* @__PURE__ */ m(L, { children: [
58
+ function Wo({ text: e }) {
59
+ const [t, o] = L(0);
60
+ return /* @__PURE__ */ m(T, { children: [
60
61
  /* @__PURE__ */ n(_, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
61
62
  /* @__PURE__ */ n(_, { variant: "caption", display: "block", children: /* @__PURE__ */ n("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
62
63
  /* @__PURE__ */ n(
@@ -72,13 +73,13 @@ function Uo({ text: e }) {
72
73
  "This is some text: ",
73
74
  /* @__PURE__ */ n("span", { children: e })
74
75
  ] }),
75
- /* @__PURE__ */ m(Te, { children: [
76
+ /* @__PURE__ */ m(Le, { children: [
76
77
  "This number will incremember when button pressed: ",
77
78
  t
78
79
  ] })
79
80
  ] });
80
81
  }
81
- const qe = 330, Ge = 73, B = "Navbar", H = {
82
+ const Xe = 330, Ye = 73, B = "Navbar", H = {
82
83
  root: `${B}-root`,
83
84
  menuButton: `${B}-menuButton`,
84
85
  hide: `${B}-hide`,
@@ -86,7 +87,7 @@ const qe = 330, Ge = 73, B = "Navbar", H = {
86
87
  userInfoHolder: `${B}-userInfoHolder`,
87
88
  settings: `${B}-settings`,
88
89
  pieChartIcon: `${B}-pieChartIcon`
89
- }, Et = z(F, {
90
+ }, Et = z(E, {
90
91
  name: "NavBar"
91
92
  })(({ theme: e }) => ({
92
93
  [`&.${H.root}`]: {
@@ -107,7 +108,7 @@ const qe = 330, Ge = 73, B = "Navbar", H = {
107
108
  marginTop: "64px",
108
109
  marginBottom: "16px"
109
110
  }
110
- })), Xe = () => ({
111
+ })), Ke = () => ({
111
112
  position: "absolute",
112
113
  height: "100%",
113
114
  overflowX: "hidden",
@@ -116,13 +117,13 @@ const qe = 330, Ge = 73, B = "Navbar", H = {
116
117
  backgroundColor: "black"
117
118
  // backgroundColor: '#e8e8e8',
118
119
  }), Nt = () => d({
119
- width: qe
120
- }, Xe()), _t = () => d({
121
- width: Ge
122
- }, Xe()), Mt = z(Be, {
120
+ width: Xe
121
+ }, Ke()), _t = () => d({
122
+ width: Ye
123
+ }, Ke()), Mt = z(Be, {
123
124
  shouldForwardProp: (e) => e !== "open"
124
125
  })(({ theme: e, open: t }) => d(d({
125
- width: t ? qe : Ge,
126
+ width: t ? Xe : Ye,
126
127
  flexShrink: 0,
127
128
  whiteSpace: "nowrap",
128
129
  boxSizing: "border-box",
@@ -135,12 +136,12 @@ const qe = 330, Ge = 73, B = "Navbar", H = {
135
136
  class ce extends Error {
136
137
  }
137
138
  fe(ce, "errorName", "ContextError");
138
- const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
139
+ const Qe = Me(null), Tt = {}, Lt = {}, Bt = ({
139
140
  overrideState: e = Tt,
140
- overrideActions: t = Bt,
141
+ overrideActions: t = Lt,
141
142
  children: o
142
143
  }) => {
143
- const [{ open: i }, r] = T({ open: !0 }), a = K((l) => {
144
+ const [{ open: i }, r] = L({ open: !0 }), a = K((l) => {
144
145
  r({ open: l });
145
146
  }, []), c = K(() => {
146
147
  r((l) => D(d({}, l), { open: !l.open }));
@@ -149,17 +150,17 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
149
150
  setOpen: a,
150
151
  toggleOpen: c
151
152
  }, e), t);
152
- return /* @__PURE__ */ n(Ye.Provider, { value: s, children: o });
153
+ return /* @__PURE__ */ n(Qe.Provider, { value: s, children: o });
153
154
  }, Pt = () => {
154
- const e = Me(Ye);
155
+ const e = Te(Qe);
155
156
  if (e === null)
156
157
  throw new ce("Error: Tried to useNavBar outside of a <NavBarProvider>");
157
158
  return e;
158
159
  }, Rt = (e = {}) => d({
159
160
  open: !0
160
- }, e), Wo = se(
161
- (e = Rt(), t = {}) => ({ children: o }) => /* @__PURE__ */ n(Lt, { overrideState: e, overrideActions: t, children: o })
162
- ), zo = se(() => ({ children: e }) => /* @__PURE__ */ n(wt, { children: e })), Ae = 7, Vo = z(We)(({ theme: e }) => ({
161
+ }, e), zo = se(
162
+ (e = Rt(), t = {}) => ({ children: o }) => /* @__PURE__ */ n(Bt, { overrideState: e, overrideActions: t, children: o })
163
+ ), Vo = se(() => ({ children: e }) => /* @__PURE__ */ n(wt, { children: e })), we = 7, qo = z(Ve)(({ theme: e }) => ({
163
164
  backgroundColor: "black",
164
165
  color: "white",
165
166
  "& .MuiListItem-root": {
@@ -168,7 +169,7 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
168
169
  "& .MuiListItemButton-root": {
169
170
  " .MuiListItemIcon-root": {
170
171
  color: "white",
171
- padding: `${Ae}px`
172
+ padding: `${we}px`
172
173
  },
173
174
  // Focus state
174
175
  "&.Mui-focusVisible": {
@@ -179,7 +180,7 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
179
180
  borderLeftStyle: "solid",
180
181
  borderLeftWidth: "7px",
181
182
  borderLeftColor: e.palette.primary.main,
182
- paddingLeft: `calc(${e.spacing(2)} - ${Ae}px)`
183
+ paddingLeft: `calc(${e.spacing(2)} - ${we}px)`
183
184
  },
184
185
  // Hover state
185
186
  "&:hover": {
@@ -197,7 +198,7 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
197
198
  // '&.Mui-selected.Mui-focusVisible:hover': {
198
199
  // },
199
200
  }
200
- })), we = 7, qo = z(We)(({ theme: e }) => ({
201
+ })), Se = 7, Go = z(Ve)(({ theme: e }) => ({
201
202
  backgroundColor: "#e8e8e8",
202
203
  color: "inherit",
203
204
  "& .MuiListItem-root": {
@@ -206,7 +207,7 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
206
207
  "& .MuiListItemButton-root": {
207
208
  " .MuiListItemIcon-root": {
208
209
  color: "inherit",
209
- padding: `${we}px`
210
+ padding: `${Se}px`
210
211
  },
211
212
  // Focus state
212
213
  "&.Mui-focusVisible": {
@@ -217,7 +218,7 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
217
218
  borderLeftStyle: "solid",
218
219
  borderLeftWidth: "7px",
219
220
  borderLeftColor: e.palette.primary.main,
220
- paddingLeft: `calc(${e.spacing(2)} - ${we}px)`
221
+ paddingLeft: `calc(${e.spacing(2)} - ${Se}px)`
221
222
  },
222
223
  // Hover state
223
224
  "&:hover": {
@@ -236,13 +237,13 @@ const Ye = _e(null), Tt = {}, Bt = {}, Lt = ({
236
237
  // },
237
238
  }
238
239
  }));
239
- function Go({
240
+ function Xo({
240
241
  "data-testid": e,
241
242
  children: t
242
243
  }) {
243
244
  const { open: o } = Pt();
244
245
  return /* @__PURE__ */ m(Et, { className: H.root, "data-testid": e, children: [
245
- /* @__PURE__ */ n(At, {}),
246
+ /* @__PURE__ */ n(We, {}),
246
247
  /* @__PURE__ */ n(
247
248
  Mt,
248
249
  {
@@ -255,10 +256,10 @@ function Go({
255
256
  )
256
257
  ] });
257
258
  }
258
- const Ke = () => {
259
+ const Je = () => {
259
260
  const e = J();
260
- return st(e.breakpoints.down("sm"));
261
- }, Ot = 64, Ht = 72, Ut = 256, Q = M(!0), Wt = M(Ut), zt = M(Ht), Se = M(""), Vt = M(void 0), qt = M(Ot), Gt = M(void 0);
261
+ return ct(e.breakpoints.down("sm"));
262
+ }, Ot = 64, Ht = 72, Ut = 256, Q = M(!0), Wt = M(Ut), zt = M(Ht), be = M(""), Vt = M(void 0), qt = M(Ot), Gt = M(void 0);
262
263
  function Xt({ links: e }) {
263
264
  return /* @__PURE__ */ n("div", { children: "LinksMenu not implemented yet" });
264
265
  }
@@ -270,7 +271,7 @@ const X = "Navbar", q = {
270
271
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
271
272
  // settings: `${PREFIX}-settings`,
272
273
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
273
- }, Yt = z(F, { name: "NavBar" })(({ theme: e }) => ({
274
+ }, Yt = z(E, { name: "NavBar" })(({ theme: e }) => ({
274
275
  [`&.${q.root}`]: {
275
276
  display: "flex"
276
277
  },
@@ -295,7 +296,7 @@ const X = "Navbar", q = {
295
296
  }), Kt = (e) => {
296
297
  const t = J();
297
298
  return /* @__PURE__ */ n(
298
- lt,
299
+ dt,
299
300
  d({
300
301
  easing: t.transitions.easing.sharp,
301
302
  timeout: {
@@ -304,7 +305,7 @@ const X = "Navbar", q = {
304
305
  }
305
306
  }, e)
306
307
  );
307
- }, Qe = (e) => {
308
+ }, Ze = (e) => {
308
309
  var t, o;
309
310
  return {
310
311
  overflowX: "hidden",
@@ -312,13 +313,13 @@ const X = "Navbar", q = {
312
313
  backgroundColor: (o = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? o : "white"
313
314
  // Provide default so tests don't need to wrap theme provider
314
315
  };
315
- }, be = (e, t) => d({
316
+ }, ke = (e, t) => d({
316
317
  width: t,
317
318
  transition: U(e, "width", "entering")
318
- }, Qe(e)), ke = (e, t) => d({
319
+ }, Ze(e)), ye = (e, t) => d({
319
320
  width: t,
320
321
  transition: U(e, "width", "leaving")
321
- }, Qe(e)), Qt = z(Be, {
322
+ }, Ze(e)), Qt = z(Be, {
322
323
  shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
323
324
  })(({ theme: e, open: t, widthOpen: o, widthClosed: i, isSmallScreen: r }) => d(d({
324
325
  flexShrink: 0,
@@ -326,20 +327,20 @@ const X = "Navbar", q = {
326
327
  boxSizing: "border-box",
327
328
  display: "flex",
328
329
  flexDirection: "column"
329
- }, t && D(d({}, be(e, o)), {
330
+ }, t && D(d({}, ke(e, o)), {
330
331
  backgroundColor: "",
331
- "& .MuiDrawer-paper": be(e, o)
332
- })), !t && D(d({}, ke(e, r ? o : i)), {
332
+ "& .MuiDrawer-paper": ke(e, o)
333
+ })), !t && D(d({}, ye(e, r ? o : i)), {
333
334
  backgroundColor: "",
334
- "& .MuiDrawer-paper": ke(e, r ? o : i)
335
+ "& .MuiDrawer-paper": ye(e, r ? o : i)
335
336
  })));
336
- function Je(e) {
337
+ function je(e) {
337
338
  return e.replace(
338
339
  /(^|-)([a-z])/g,
339
340
  (t, o, i) => o === "-" ? " " + i.toUpperCase() : i.toUpperCase()
340
341
  );
341
342
  }
342
- function Xo(e, t, o, i) {
343
+ function Yo(e, t, o, i) {
343
344
  var c;
344
345
  if (!e) return "None";
345
346
  const a = Object.entries(e).filter(
@@ -347,27 +348,27 @@ function Xo(e, t, o, i) {
347
348
  ).map(
348
349
  ([s]) => {
349
350
  var l;
350
- return Je((l = s.split("/").at(-1)) != null ? l : "");
351
+ return je((l = s.split("/").at(-1)) != null ? l : "");
351
352
  }
352
353
  );
353
354
  return (c = i.find(
354
355
  (s) => o[s].some((l) => a.includes(l))
355
356
  )) != null ? c : "None";
356
357
  }
357
- const Yo = (e) => {
358
+ const Ko = (e) => {
358
359
  const { getIdTokenClaims: t, user: o } = le();
359
- return Ve({
360
+ return Ge({
360
361
  queryKey: ["availableDomains", o == null ? void 0 : o.sub],
361
- queryFn: () => N(void 0, null, function* () {
362
+ queryFn: () => N(null, null, function* () {
362
363
  const i = yield t();
363
364
  return i ? Object.entries(i).reduce((r, [a, c]) => {
364
365
  var u;
365
- const s = Je((u = a.split("/").at(-1)) != null ? u : ""), l = a.startsWith("https://greens.org.au/roles/") && e.includes(s) ? c : [];
366
+ const s = je((u = a.split("/").at(-1)) != null ? u : ""), l = a.startsWith("https://greens.org.au/roles/") && e.includes(s) ? c : [];
366
367
  return [.../* @__PURE__ */ new Set([...r, ...l])];
367
368
  }, []) : [];
368
369
  })
369
370
  });
370
- }, Ko = (e) => Object.values(e).reduce(
371
+ }, Qo = (e) => Object.values(e).reduce(
371
372
  (t, o) => [.../* @__PURE__ */ new Set([...t, ...o])],
372
373
  []
373
374
  ), Y = {
@@ -377,7 +378,7 @@ const Yo = (e) => {
377
378
  info: console.info.bind(console),
378
379
  debug: console.debug.bind(console)
379
380
  };
380
- function Qo(e, t) {
381
+ function Jo(e, t) {
381
382
  console[e] = (...o) => {
382
383
  for (const i of t)
383
384
  if (typeof i == "function") {
@@ -390,7 +391,7 @@ function Qo(e, t) {
390
391
  Y[e](o);
391
392
  };
392
393
  }
393
- function Jo(e) {
394
+ function Zo(e) {
394
395
  if (e)
395
396
  console[e] = Y[e];
396
397
  else
@@ -405,11 +406,11 @@ function Jt(e) {
405
406
  }
406
407
  return t;
407
408
  }
408
- const ye = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], De = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
409
+ const De = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Ie = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
409
410
  function Zt({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
410
411
  const r = J();
411
412
  return /* @__PURE__ */ m(
412
- F,
413
+ E,
413
414
  {
414
415
  sx: {
415
416
  paddingTop: 3,
@@ -420,44 +421,44 @@ function Zt({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
420
421
  },
421
422
  children: [
422
423
  !i && /* @__PURE__ */ n(
423
- F,
424
+ E,
424
425
  {
425
426
  sx: {
426
427
  width: o ? "5rem" : "2rem",
427
428
  transition: o ? U(r, ["width", "height"], "entering") : U(r, ["width", "height"], "leaving"),
428
429
  aspectRatio: 1
429
430
  },
430
- children: e != null && e.name ? /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(
431
+ children: e != null && e.name ? /* @__PURE__ */ n(T, { children: /* @__PURE__ */ n(
431
432
  me,
432
433
  {
433
434
  src: e == null ? void 0 : e.picture,
434
435
  sx: {
435
436
  width: "100%",
436
437
  height: "100%",
437
- bgcolor: ye[Math.abs(Jt(e == null ? void 0 : e.name)) % ye.length]
438
+ bgcolor: De[Math.abs(Jt(e == null ? void 0 : e.name)) % De.length]
438
439
  },
439
- children: De(e == null ? void 0 : e.name)
440
+ children: Ie(e == null ? void 0 : e.name)
440
441
  }
441
442
  ) }) : /* @__PURE__ */ n(me, { sx: { width: "100%", height: "100%" } })
442
443
  }
443
444
  ),
444
445
  i && /* @__PURE__ */ n(
445
- F,
446
+ E,
446
447
  {
447
448
  sx: {
448
449
  width: o ? "5rem" : "2rem",
449
450
  transition: o ? U(r, ["width", "height"], "entering") : U(r, ["width", "height"], "leaving"),
450
451
  aspectRatio: 1
451
452
  },
452
- children: e != null && e.name ? /* @__PURE__ */ n(L, { children: /* @__PURE__ */ m(Ce, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: o ? "80" : "32", children: [
453
+ children: e != null && e.name ? /* @__PURE__ */ n(T, { children: /* @__PURE__ */ m(Ae, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: o ? "80" : "32", children: [
453
454
  " ",
454
- De(e == null ? void 0 : e.name),
455
+ Ie(e == null ? void 0 : e.name),
455
456
  " ",
456
457
  "ab"
457
- ] }) }) : /* @__PURE__ */ n(Ce, {})
458
+ ] }) }) : /* @__PURE__ */ n(Ae, {})
458
459
  }
459
460
  ),
460
- /* @__PURE__ */ n(Kt, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ n(ct, { in: o, children: /* @__PURE__ */ m(F, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
461
+ /* @__PURE__ */ n(Kt, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ n(ut, { in: o, children: /* @__PURE__ */ m(E, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
461
462
  e != null && e.name ? /* @__PURE__ */ n(_, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ n(ge, { animation: !1, width: "50%" }),
462
463
  t ? /* @__PURE__ */ n(_, { children: t.toUpperCase() }) : /* @__PURE__ */ n(ge, { animation: !1, width: "25%" })
463
464
  ] }) }) })
@@ -477,7 +478,7 @@ function jt({
477
478
  domainCode: l,
478
479
  useNewAvatar: u = !1
479
480
  }) {
480
- const g = Ke(), S = ze(Q);
481
+ const g = Je(), S = qe(Q);
481
482
  return /* @__PURE__ */ n(Yt, { className: q.root, "data-testid": i, children: /* @__PURE__ */ m(
482
483
  Qt,
483
484
  {
@@ -494,16 +495,16 @@ function jt({
494
495
  },
495
496
  isSmallScreen: g,
496
497
  children: [
497
- !g && /* @__PURE__ */ n(dt, {}),
498
- r && /* @__PURE__ */ m(F, { flexGrow: "0", children: [
498
+ !g && /* @__PURE__ */ n(pt, {}),
499
+ r && /* @__PURE__ */ m(E, { flexGrow: "0", children: [
499
500
  r,
500
501
  /* @__PURE__ */ n(xe, { variant: "middle", sx: { marginY: "0.5rem" } })
501
502
  ] }),
502
- /* @__PURE__ */ n(F, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ n(Xt, { links: a }) : a }),
503
- /* @__PURE__ */ m(F, { flexGrow: "0", children: [
503
+ /* @__PURE__ */ n(E, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ n(Xt, { links: a }) : a }),
504
+ /* @__PURE__ */ m(E, { flexGrow: "0", children: [
504
505
  /* @__PURE__ */ n(xe, { variant: "middle", sx: { marginY: "0.5rem" } }),
505
506
  /* @__PURE__ */ n(Zt, { user: s, domainCode: l, open: e, useNewAvatar: u }),
506
- c && /* @__PURE__ */ n(L, { children: c })
507
+ c && /* @__PURE__ */ n(T, { children: c })
507
508
  ] })
508
509
  ]
509
510
  }
@@ -516,15 +517,15 @@ function eo({
516
517
  noPadding: i
517
518
  }) {
518
519
  return /* @__PURE__ */ n(
519
- F,
520
+ E,
520
521
  {
521
522
  sx: {
522
523
  overflow: "auto",
523
524
  height: `calc(100vh - ${t}px)`,
524
525
  flexGrow: 1
525
526
  },
526
- children: i ? /* @__PURE__ */ n(F, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ n(
527
- ut,
527
+ children: i ? /* @__PURE__ */ n(E, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ n(
528
+ ht,
528
529
  {
529
530
  component: "main",
530
531
  id: "main-content",
@@ -545,9 +546,9 @@ function no({
545
546
  "data-testid": o,
546
547
  middle: i
547
548
  }) {
548
- const r = ze(Q), a = () => r((l) => !l), c = J(), s = Ke();
549
+ const r = qe(Q), a = () => r((l) => !l), c = J(), s = Je();
549
550
  return /* @__PURE__ */ n("header", { "data-testid": o, children: /* @__PURE__ */ m(
550
- Te,
551
+ Le,
551
552
  {
552
553
  square: !0,
553
554
  elevation: 0,
@@ -565,7 +566,7 @@ function no({
565
566
  },
566
567
  children: [
567
568
  /* @__PURE__ */ n(
568
- pt,
569
+ ft,
569
570
  {
570
571
  size: "medium",
571
572
  color: "inherit",
@@ -580,7 +581,7 @@ function no({
580
581
  }
581
582
  ) });
582
583
  }
583
- function Zo({
584
+ function jo({
584
585
  children: e,
585
586
  initialTitleText: t,
586
587
  initialNavBarOpen: o,
@@ -596,11 +597,11 @@ function Zo({
596
597
  }) {
597
598
  yt([
598
599
  [Q, o != null ? o : !0],
599
- [Se, t != null ? t : ""]
600
+ [be, t != null ? t : ""]
600
601
  ]);
601
- const A = ve(Q), [f] = O(Wt), [b] = O(zt), y = ve(Se), [p] = O(qt), [k] = O(Vt), [I] = O(Gt);
602
- return /* @__PURE__ */ m(F, { children: [
603
- /* @__PURE__ */ n(ht, {}),
602
+ const A = ve(Q), [f] = O(Wt), [b] = O(zt), y = ve(be), [p] = O(qt), [k] = O(Vt), [I] = O(Gt);
603
+ return /* @__PURE__ */ m(Ce, { children: [
604
+ /* @__PURE__ */ n(We, {}),
604
605
  /* @__PURE__ */ n(
605
606
  no,
606
607
  {
@@ -610,7 +611,7 @@ function Zo({
610
611
  middle: k
611
612
  }
612
613
  ),
613
- /* @__PURE__ */ m(F, { sx: { display: "flex" }, children: [
614
+ /* @__PURE__ */ m(Ce, { sx: { display: "flex" }, children: [
614
615
  /* @__PURE__ */ n(
615
616
  jt,
616
617
  {
@@ -639,7 +640,7 @@ function Zo({
639
640
  ] })
640
641
  ] });
641
642
  }
642
- const Ze = ({
643
+ const et = ({
643
644
  isOpen: e,
644
645
  dialogTitle: t,
645
646
  children: o,
@@ -654,12 +655,12 @@ const Ze = ({
654
655
  isLoading: S = !1
655
656
  }) => {
656
657
  var b, y;
657
- const [A, f] = T(!1);
658
+ const [A, f] = L(!1);
658
659
  return /* @__PURE__ */ m(
659
- Le,
660
+ Pe,
660
661
  {
661
662
  open: e,
662
- onClose: (p, k) => N(void 0, null, function* () {
663
+ onClose: (p, k) => N(null, null, function* () {
663
664
  g && (k === "backdropClick" || k === "escapeKeyDown") || A || (a != null && a.onClick ? yield a.onClick() : s());
664
665
  }),
665
666
  fullWidth: !0,
@@ -667,10 +668,10 @@ const Ze = ({
667
668
  "data-testid": u,
668
669
  sx: l,
669
670
  children: [
670
- S && /* @__PURE__ */ n(Pe, { sx: { height: "4px", marginBottom: "-4px" } }),
671
- /* @__PURE__ */ n(Re, { children: t }),
672
- /* @__PURE__ */ n(Oe, { sx: { "& > :last-child": { marginBottom: 0 } }, children: o }),
673
- /* @__PURE__ */ m(He, { children: [
671
+ S && /* @__PURE__ */ n(Re, { sx: { height: "4px", marginBottom: "-4px" } }),
672
+ /* @__PURE__ */ n(Oe, { children: t }),
673
+ /* @__PURE__ */ n(He, { sx: { "& > :last-child": { marginBottom: 0 } }, children: o }),
674
+ /* @__PURE__ */ m(Ue, { children: [
674
675
  /* @__PURE__ */ n(
675
676
  W,
676
677
  {
@@ -698,7 +699,7 @@ const Ze = ({
698
699
  r && /* @__PURE__ */ n(
699
700
  W,
700
701
  {
701
- onClick: () => N(void 0, null, function* () {
702
+ onClick: () => N(null, null, function* () {
702
703
  var p;
703
704
  f(!0), yield (p = r.onClick) == null ? void 0 : p.call(r), f(!1);
704
705
  }),
@@ -712,20 +713,20 @@ const Ze = ({
712
713
  ]
713
714
  }
714
715
  );
715
- }, je = ({
716
+ }, tt = ({
716
717
  minLength: e,
717
718
  preLoadedOptions: t,
718
719
  lookup: o,
719
720
  label: i,
720
721
  inputValue: r
721
- }) => Ve({
722
+ }) => Ge({
722
723
  queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
723
724
  (a) => a.label.toLowerCase().includes(r.toLowerCase())
724
725
  ) : o(r),
725
726
  queryKey: ["autocomplete", i, r]
726
727
  });
727
- function jo({
728
- lookup: e = () => N(this, null, function* () {
728
+ function en({
729
+ lookup: e = () => N(null, null, function* () {
729
730
  }),
730
731
  enableHighlighting: t = !0,
731
732
  onChange: o,
@@ -746,16 +747,16 @@ function jo({
746
747
  disablePortal: k = !1,
747
748
  disableIconFlip: I = !1
748
749
  }) {
749
- const [E, V] = T(""), P = (h, v) => {
750
+ const [F, V] = L(""), P = (h, v) => {
750
751
  const C = a.filter((w) => w.id !== v);
751
752
  o(C, "delete", h);
752
- }, { data: x, isLoading: $ } = je({
753
- inputValue: E,
753
+ }, { data: x, isLoading: $ } = tt({
754
+ inputValue: F,
754
755
  label: r,
755
756
  lookup: e,
756
757
  minLength: i,
757
758
  preLoadedOptions: p
758
- }), R = E.length >= i;
759
+ }), R = F.length >= i;
759
760
  return /* @__PURE__ */ m("div", { "data-testid": c, children: [
760
761
  /* @__PURE__ */ n(
761
762
  ie,
@@ -786,7 +787,7 @@ function jo({
786
787
  error: b,
787
788
  helperText: y,
788
789
  InputProps: D(d({}, h.InputProps), {
789
- endAdornment: /* @__PURE__ */ m(L, { children: [
790
+ endAdornment: /* @__PURE__ */ m(T, { children: [
790
791
  $ ? /* @__PURE__ */ n(ae, { color: "inherit", size: 20 }) : null,
791
792
  h.InputProps.endAdornment
792
793
  ] })
@@ -812,7 +813,7 @@ function jo({
812
813
  key: v.id,
813
814
  "data-testid": c ? `${c}:Autocomplete:option(${v.id.toString()})` : void 0
814
815
  }),
815
- /* @__PURE__ */ n("div", { children: Z.map((de, ot) => /* @__PURE__ */ n(
816
+ /* @__PURE__ */ n("div", { children: Z.map((de, it) => /* @__PURE__ */ n(
816
817
  "span",
817
818
  {
818
819
  style: {
@@ -820,7 +821,7 @@ function jo({
820
821
  },
821
822
  children: de.text
822
823
  },
823
- ot
824
+ it
824
825
  )) })
825
826
  );
826
827
  } else
@@ -835,8 +836,8 @@ function jo({
835
836
  }
836
837
  }
837
838
  ),
838
- a.length > 0 && /* @__PURE__ */ n(F, { sx: l, children: a.map((h) => /* @__PURE__ */ n(
839
- ft,
839
+ a.length > 0 && /* @__PURE__ */ n(E, { sx: l, children: a.map((h) => /* @__PURE__ */ n(
840
+ mt,
840
841
  {
841
842
  sx: {
842
843
  marginTop: 1,
@@ -844,7 +845,7 @@ function jo({
844
845
  height: "auto"
845
846
  },
846
847
  label: /* @__PURE__ */ n(
847
- mt,
848
+ gt,
848
849
  {
849
850
  title: h.tooltipContent || "",
850
851
  placement: "bottom-start",
@@ -874,8 +875,8 @@ function jo({
874
875
  )) })
875
876
  ] });
876
877
  }
877
- const en = /MUI: The value provided to.*is invalid/i, tn = ({
878
- lookup: e = () => N(void 0, null, function* () {
878
+ const tn = /MUI: The value provided to.*is invalid/i, on = ({
879
+ lookup: e = () => N(null, null, function* () {
879
880
  }),
880
881
  onChange: t,
881
882
  label: o,
@@ -894,20 +895,20 @@ const en = /MUI: The value provided to.*is invalid/i, tn = ({
894
895
  popupIcon: y,
895
896
  disableIconFlip: p
896
897
  }) => {
897
- const [k, I] = T(""), { data: E, isLoading: V } = je({
898
+ const [k, I] = L(""), { data: F, isLoading: V } = tt({
898
899
  inputValue: k,
899
900
  label: o,
900
901
  lookup: e,
901
902
  minLength: g != null ? g : 0,
902
903
  preLoadedOptions: A
903
904
  }), P = k.length >= g;
904
- return /* @__PURE__ */ n("div", { "data-testid": l, children: /* @__PURE__ */ n(gt, { direction: "row", spacing: 1, children: /* @__PURE__ */ n(
905
+ return /* @__PURE__ */ n("div", { "data-testid": l, children: /* @__PURE__ */ n(xt, { direction: "row", spacing: 1, children: /* @__PURE__ */ n(
905
906
  ie,
906
907
  {
907
908
  sx: d(d({}, r), p ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
908
909
  "data-testid": l ? `${l}:Autocomplete` : void 0,
909
910
  loading: P ? V : !1,
910
- options: E != null ? E : [],
911
+ options: F != null ? F : [],
911
912
  onChange: (x, $, R) => {
912
913
  t(x, $, R);
913
914
  },
@@ -957,25 +958,25 @@ const en = /MUI: The value provided to.*is invalid/i, tn = ({
957
958
  } catch (t) {
958
959
  return -1;
959
960
  }
960
- }, on = ({
961
+ }, nn = ({
961
962
  open: e = !1,
962
963
  closeHandler: t,
963
964
  setAuth0ExpiryTime: o
964
965
  }) => {
965
- const { logout: i, getAccessTokenSilently: r } = le(), [a, c] = T(0), s = () => N(void 0, null, function* () {
966
+ const { logout: i, getAccessTokenSilently: r } = le(), [a, c] = L(0), s = () => N(null, null, function* () {
966
967
  i({ logoutParams: { returnTo: `${window.location.origin}` } });
967
- }), l = () => N(void 0, null, function* () {
968
+ }), l = () => N(null, null, function* () {
968
969
  c(a + 1), t();
969
970
  });
970
971
  return ne(() => {
971
- N(void 0, null, function* () {
972
+ N(null, null, function* () {
972
973
  if (a > 0) {
973
974
  const A = yield r({ cacheMode: "off" }), f = io(A) * 1e3;
974
975
  o(f);
975
976
  }
976
977
  });
977
978
  }, [a, r, o]), /* @__PURE__ */ n(
978
- Ze,
979
+ et,
979
980
  {
980
981
  isOpen: e,
981
982
  primaryButton: {
@@ -1017,7 +1018,7 @@ function lo(e) {
1017
1018
  const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1018
1019
  return t === "access_denied" && o.match(/Script.*time.*exceeded/);
1019
1020
  }
1020
- function nn({
1021
+ function rn({
1021
1022
  children: e,
1022
1023
  appName: t = "the app",
1023
1024
  throwErrors: o = "none",
@@ -1030,7 +1031,7 @@ function nn({
1030
1031
  ne(() => {
1031
1032
  s && r(s);
1032
1033
  }, [s, r]);
1033
- const g = at(
1034
+ const g = lt(
1034
1035
  () => ({
1035
1036
  appState: {
1036
1037
  returnTo: `${window.location.pathname}${window.location.search}`
@@ -1058,9 +1059,9 @@ function nn({
1058
1059
  const y = localStorage.getItem("auth0_redirect_count");
1059
1060
  y ? y && parseInt(y) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(y) + 1)), l(g)) : (localStorage.setItem("auth0_redirect_count", "1"), l(g));
1060
1061
  } else if (o === "unknown") throw s;
1061
- return /* @__PURE__ */ m(Le, { open: !0, children: [
1062
- /* @__PURE__ */ n(Re, { children: f }),
1063
- /* @__PURE__ */ m(Oe, { children: [
1062
+ return /* @__PURE__ */ m(Pe, { open: !0, children: [
1063
+ /* @__PURE__ */ n(Oe, { children: f }),
1064
+ /* @__PURE__ */ m(He, { children: [
1064
1065
  /* @__PURE__ */ n(_, { children: b }),
1065
1066
  /* @__PURE__ */ n("br", {}),
1066
1067
  /* @__PURE__ */ n(_, { variant: "subtitle2", children: "Details from Auth0" }),
@@ -1073,14 +1074,14 @@ function nn({
1073
1074
  (A = s == null ? void 0 : s.error_description) != null ? A : "N/A"
1074
1075
  ] })
1075
1076
  ] }),
1076
- /* @__PURE__ */ m(He, { children: [
1077
+ /* @__PURE__ */ m(Ue, { children: [
1077
1078
  f === "Auth0 script execution time exceeded" && /* @__PURE__ */ n(W, { href: window.location.origin + window.location.pathname, children: "Reload" }),
1078
1079
  /* @__PURE__ */ n(W, { onClick: () => u({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
1079
1080
  ] })
1080
1081
  ] });
1081
1082
  } else if (o === "unknown") throw s;
1082
1083
  }
1083
- return a ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ n(L, { children: e })) : /* @__PURE__ */ n(Ft, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1084
+ return a ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ n(T, { children: e })) : /* @__PURE__ */ n(Ft, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1084
1085
  }
1085
1086
  const co = {
1086
1087
  autoHideDuration: 6e3,
@@ -1090,19 +1091,19 @@ const co = {
1090
1091
  disableWindowBlurListener: !1
1091
1092
  }, uo = {
1092
1093
  shouldClose: (e, t) => t !== "clickaway"
1093
- }, Ie = {
1094
+ }, $e = {
1094
1095
  message: "",
1095
1096
  severity: "info",
1096
1097
  variant: "standard",
1097
1098
  progressIndicator: void 0
1098
1099
  // Can use 'circular' or 'linear'
1099
- }, $e = 100, Fe = 2e3, po = 2e3, ho = /* @__PURE__ */ (() => {
1100
+ }, Fe = 100, Ee = 2e3, po = 2e3, ho = /* @__PURE__ */ (() => {
1100
1101
  let e = 0;
1101
1102
  return () => (e += 1, e);
1102
1103
  })(), fo = {
1103
1104
  borderBottomLeftRadius: "0px",
1104
1105
  borderBottomRightRadius: "0px"
1105
- }, mo = {}, go = {}, et = _e(null);
1106
+ }, mo = {}, go = {}, ot = Me(null);
1106
1107
  function xo(a) {
1107
1108
  var c = a, {
1108
1109
  overrideState: e = mo,
@@ -1116,13 +1117,13 @@ function xo(a) {
1116
1117
  "children"
1117
1118
  ]);
1118
1119
  var v;
1119
- const [{ open: s }, l] = T({ open: !1 }), u = ee([]), g = ee(Date.now()), S = ee(0), A = K((C) => {
1120
+ const [{ open: s }, l] = L({ open: !1 }), u = ee([]), g = ee(Date.now()), S = ee(0), A = K((C) => {
1120
1121
  l({ open: C });
1121
1122
  }, []), f = K((C = {}) => {
1122
- S.current += 1, u.current.length >= $e && Date.now() - g.current >= Fe && (g.current = Date.now(), console.error(
1123
- `SaladBarProvider: MAX_QUEUE_LENGTH (${$e}) hit ${S.current} times in last ${Fe}ms)`
1123
+ S.current += 1, u.current.length >= Fe && Date.now() - g.current >= Ee && (g.current = Date.now(), console.error(
1124
+ `SaladBarProvider: MAX_QUEUE_LENGTH (${Fe}) hit ${S.current} times in last ${Ee}ms)`
1124
1125
  ), S.current = 0);
1125
- const w = d(D(d({}, Ie), {
1126
+ const w = d(D(d({}, $e), {
1126
1127
  key: ho()
1127
1128
  }), C);
1128
1129
  return u.current.push(w), u.current.length === 1 && l({ open: !0 }), w.key;
@@ -1130,12 +1131,12 @@ function xo(a) {
1130
1131
  const w = u.current.findIndex((Z) => Z.key === C);
1131
1132
  if (w !== -1)
1132
1133
  return w === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(w, 1);
1133
- }, E = (C, w) => {
1134
+ }, F = (C, w) => {
1134
1135
  o(C, w) && l({ open: !1 });
1135
1136
  }, V = () => {
1136
1137
  }, P = () => {
1137
1138
  u.current.shift(), u.current.length > 0 && l({ open: !0 });
1138
- }, x = (v = u.current[0]) != null ? v : d({}, Ie), $ = {};
1139
+ }, x = (v = u.current[0]) != null ? v : d({}, $e), $ = {};
1139
1140
  "autoHideDuration" in x && ($.autoHideDuration = x.autoHideDuration);
1140
1141
  const R = d(d({}, co), r), h = d(d({
1141
1142
  open: s,
@@ -1147,13 +1148,13 @@ function xo(a) {
1147
1148
  enqueueErrorNotification: k,
1148
1149
  removeNotification: I
1149
1150
  }, e), t);
1150
- return /* @__PURE__ */ m(et.Provider, { value: h, children: [
1151
+ return /* @__PURE__ */ m(ot.Provider, { value: h, children: [
1151
1152
  i,
1152
1153
  /* @__PURE__ */ n(
1153
- xt,
1154
+ vt,
1154
1155
  D(d(d({}, R), $), {
1155
1156
  open: s,
1156
- onClose: E,
1157
+ onClose: F,
1157
1158
  TransitionProps: {
1158
1159
  onExited: P,
1159
1160
  onExit: V
@@ -1161,9 +1162,9 @@ function xo(a) {
1161
1162
  sx: { zIndex: po },
1162
1163
  children: /* @__PURE__ */ m("div", { children: [
1163
1164
  /* @__PURE__ */ n(
1164
- vt,
1165
+ Ct,
1165
1166
  {
1166
- onClose: (C) => E(C, "closeAlert"),
1167
+ onClose: (C) => F(C, "closeAlert"),
1167
1168
  severity: x.severity,
1168
1169
  variant: "filled",
1169
1170
  icon: x.progressIndicator === "circular" ? /* @__PURE__ */ n(ae, { size: "1em" }) : void 0,
@@ -1171,28 +1172,28 @@ function xo(a) {
1171
1172
  children: x.message
1172
1173
  }
1173
1174
  ),
1174
- x.progressIndicator === "linear" && /* @__PURE__ */ n(Pe, { color: "primary" })
1175
+ x.progressIndicator === "linear" && /* @__PURE__ */ n(Re, { color: "primary" })
1175
1176
  ] })
1176
1177
  })
1177
1178
  )
1178
1179
  ] });
1179
1180
  }
1180
1181
  function vo() {
1181
- const e = Me(et);
1182
+ const e = Te(ot);
1182
1183
  if (e === null)
1183
1184
  throw new ce("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1184
1185
  return e;
1185
1186
  }
1186
- const rn = se(
1187
- (e = { autoHideDuration: 1 }, t = {}, o = {}) => ({ children: i }) => /* @__PURE__ */ n(xo, D(d({}, e), { overrideState: t, overrideActions: o, children: i }))
1188
- ), tt = "domainCode";
1189
- var Ne;
1190
- const Ee = M(
1191
- JSON.parse((Ne = localStorage.getItem(tt)) != null ? Ne : '{"domainCode": ""}').domainCode
1187
+ const an = se(
1188
+ (e = { autoHideDuration: 1 }, t = {}, o = {}) => ({ children: i }) => /* @__PURE__ */ n(xo, D(d({}, e), { overrideState: t, overrideActions: o, children: /* @__PURE__ */ n(T, { children: i }) }))
1189
+ ), nt = "domainCode";
1190
+ var _e;
1191
+ const Ne = M(
1192
+ JSON.parse((_e = localStorage.getItem(nt)) != null ? _e : '{"domainCode": ""}').domainCode
1192
1193
  ), Co = M(
1193
- (e) => e(Ee),
1194
+ (e) => e(Ne),
1194
1195
  (e, t, o) => {
1195
- t(Ee, o), localStorage.setItem(tt, JSON.stringify({ domainCode: o }));
1196
+ t(Ne, o), localStorage.setItem(nt, JSON.stringify({ domainCode: o }));
1196
1197
  }
1197
1198
  ), Ao = {
1198
1199
  act: "ACT",
@@ -1209,7 +1210,7 @@ const Ee = M(
1209
1210
  }, wo = (e) => {
1210
1211
  var t;
1211
1212
  return e === null ? "N/A" : (t = Ao[e]) != null ? t : "";
1212
- }, an = ({
1213
+ }, sn = ({
1213
1214
  isLoading: e,
1214
1215
  isOpen: t,
1215
1216
  onClose: o,
@@ -1218,14 +1219,14 @@ const Ee = M(
1218
1219
  applicationName: a,
1219
1220
  handleLogout: c
1220
1221
  }) => {
1221
- const [s, l] = O(Co), [u, g] = T(s), { enqueueSuccessNotification: S } = vo(), A = r.length === 0, f = !!s && !r.includes(s) && !r.includes(u), b = !s || A || f, y = () => N(void 0, null, function* () {
1222
+ const [s, l] = O(Co), [u, g] = L(s), { enqueueSuccessNotification: S } = vo(), A = r.length === 0, f = !!s && !r.includes(s) && !r.includes(u), b = !s || A || f, y = () => N(null, null, function* () {
1222
1223
  u ? (l(u), i == null || i(u), S(`Set organisation to ${u}`), o()) : (l(""), i == null || i(""));
1223
- }), p = () => N(void 0, null, function* () {
1224
+ }), p = () => N(null, null, function* () {
1224
1225
  s && !A && !f ? (g(s), o()) : b && c();
1225
1226
  });
1226
1227
  let k;
1227
1228
  return A ? k = "Unable to retrieve your active organisations. Try logging in again." : f && (k = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ m(
1228
- Ze,
1229
+ et,
1229
1230
  {
1230
1231
  isOpen: t,
1231
1232
  dialogTitle: "Select an organisation",
@@ -1254,7 +1255,7 @@ const Ee = M(
1254
1255
  multiple: !1,
1255
1256
  disableClearable: !1,
1256
1257
  value: u !== "" ? u : null,
1257
- onChange: (I, E) => g(E != null ? E : ""),
1258
+ onChange: (I, F) => g(F != null ? F : ""),
1258
1259
  getOptionLabel: wo,
1259
1260
  options: [...r],
1260
1261
  renderInput: (I) => /* @__PURE__ */ n(
@@ -1263,7 +1264,7 @@ const Ee = M(
1263
1264
  variant: "filled",
1264
1265
  label: "Select organisation",
1265
1266
  InputProps: D(d({}, I.InputProps), {
1266
- endAdornment: /* @__PURE__ */ m(L, { children: [
1267
+ endAdornment: /* @__PURE__ */ m(T, { children: [
1267
1268
  e ? /* @__PURE__ */ n(ae, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1268
1269
  I.InputProps.endAdornment
1269
1270
  ] })
@@ -1272,11 +1273,11 @@ const Ee = M(
1272
1273
  )
1273
1274
  }
1274
1275
  ),
1275
- k && /* @__PURE__ */ n(Ct, { error: !0, children: k })
1276
+ k && /* @__PURE__ */ n(At, { error: !0, children: k })
1276
1277
  ]
1277
1278
  }
1278
1279
  );
1279
- }, sn = Ue({
1280
+ }, ln = ze({
1280
1281
  palette: {
1281
1282
  primary: {
1282
1283
  dark: "#00A651",
@@ -1327,7 +1328,7 @@ const Ee = M(
1327
1328
  navBar: {
1328
1329
  backgroundColor: "#E8E8E8"
1329
1330
  }
1330
- }), ln = Ue({
1331
+ }), cn = ze({
1331
1332
  palette: {
1332
1333
  primary: {
1333
1334
  main: "#007236",
@@ -1423,48 +1424,48 @@ const Ee = M(
1423
1424
  }
1424
1425
  });
1425
1426
  export {
1426
- Ze as AgDialog,
1427
- Zo as AppLayout,
1428
- nn as AuthGuard,
1429
- et as Context,
1427
+ et as AgDialog,
1428
+ jo as AppLayout,
1429
+ rn as AuthGuard,
1430
+ ot as Context,
1430
1431
  ce as ContextError,
1431
- an as DomainCodeDialog,
1432
- Uo as ExampleComponent,
1433
- jo as FetchAutocomplete,
1434
- en as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1435
- Ge as NAVBAR_WIDTH_CLOSED,
1436
- qe as NAVBAR_WIDTH_OPENED,
1437
- Go as NavBar,
1438
- Vo as NavBarDarkStyledList,
1439
- qo as NavBarLightStyledList,
1440
- Lt as NavBarProvider,
1432
+ sn as DomainCodeDialog,
1433
+ Wo as ExampleComponent,
1434
+ en as FetchAutocomplete,
1435
+ tn as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1436
+ Ye as NAVBAR_WIDTH_CLOSED,
1437
+ Xe as NAVBAR_WIDTH_OPENED,
1438
+ Xo as NavBar,
1439
+ qo as NavBarDarkStyledList,
1440
+ Go as NavBarLightStyledList,
1441
+ Bt as NavBarProvider,
1441
1442
  xo as SaladBarProvider,
1442
- on as SessionExpiryDialog,
1443
- tn as SingleAutocomplete,
1443
+ nn as SessionExpiryDialog,
1444
+ on as SingleAutocomplete,
1444
1445
  Rt as buildNavBarState,
1445
- Xo as determineUserLevelFromClaims,
1446
+ Yo as determineUserLevelFromClaims,
1446
1447
  Co as domainCodeAtom,
1447
- sn as fed21Theme,
1448
+ ln as fed21Theme,
1448
1449
  io as getAuth0Expiry,
1449
- Ko as getValidBusinessRoles,
1450
- ln as internalAgSystemsTheme,
1450
+ Qo as getValidBusinessRoles,
1451
+ cn as internalAgSystemsTheme,
1451
1452
  H as navBarClasses,
1452
1453
  Q as navBarOpenAtom,
1453
1454
  Gt as navBarTopAtom,
1454
1455
  zt as navBarWidthClosedAtom,
1455
1456
  Wt as navBarWidthOpenAtom,
1456
1457
  Jt as simpleHashCode,
1457
- Qo as suppressConsole,
1458
- Se as titleTextAtom,
1458
+ Jo as suppressConsole,
1459
+ be as titleTextAtom,
1459
1460
  qt as topBarHeightAtom,
1460
1461
  Vt as topBarMiddleAtom,
1461
- Jo as unsuppressConsole,
1462
- je as useAutocompleteOptions,
1462
+ Zo as unsuppressConsole,
1463
+ tt as useAutocompleteOptions,
1463
1464
  Pt as useNavBar,
1464
1465
  vo as useSaladBar,
1465
- Yo as useValidDomains,
1466
- zo as withBrowserRouter,
1467
- Wo as withNavBarProvider,
1468
- rn as withSaladBarProvider
1466
+ Ko as useValidDomains,
1467
+ Vo as withBrowserRouter,
1468
+ zo as withNavBarProvider,
1469
+ an as withSaladBarProvider
1469
1470
  };
1470
1471
  //# sourceMappingURL=index.js.map