@australiangreens/ag-internal-components 0.1.21 → 0.1.22

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,27 +1,27 @@
1
- var Et = Object.defineProperty, Ot = Object.defineProperties;
2
- var Ft = Object.getOwnPropertyDescriptors;
1
+ var Et = Object.defineProperty, Ft = Object.defineProperties;
2
+ var Ot = Object.getOwnPropertyDescriptors;
3
3
  var te = Object.getOwnPropertySymbols;
4
- var Ee = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
5
- var he = (e, t, n) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
4
+ var Ee = Object.prototype.hasOwnProperty, Fe = Object.prototype.propertyIsEnumerable;
5
+ var he = (e, t, n) => t in e ? Et(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
  Ee.call(t, n) && he(e, n, t[n]);
8
8
  if (te)
9
9
  for (var n of te(t))
10
- Oe.call(t, n) && he(e, n, t[n]);
10
+ Fe.call(t, n) && he(e, n, t[n]);
11
11
  return e;
12
- }, I = (e, t) => Ot(e, Ft(t));
13
- var Fe = (e, t) => {
12
+ }, I = (e, t) => Ft(e, Ot(t));
13
+ var Oe = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
16
16
  Ee.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
17
  if (e != null && te)
18
18
  for (var i of te(e))
19
- t.indexOf(i) < 0 && Oe.call(e, i) && (n[i] = e[i]);
19
+ t.indexOf(i) < 0 && Fe.call(e, i) && (n[i] = e[i]);
20
20
  return n;
21
21
  };
22
- var Be = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
23
- var P = (e, t, n) => new Promise((i, r) => {
24
- var s = (c) => {
22
+ var Ne = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
23
+ var _ = (e, t, n) => new Promise((i, r) => {
24
+ var a = (c) => {
25
25
  try {
26
26
  l(n.next(c));
27
27
  } catch (u) {
@@ -33,19 +33,19 @@ var P = (e, t, n) => new Promise((i, r) => {
33
33
  } catch (u) {
34
34
  r(u);
35
35
  }
36
- }, l = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, d);
36
+ }, l = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, d);
37
37
  l((n = n.apply(e, t)).next());
38
38
  });
39
- import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
40
- import { useState as B, createContext as Ze, useCallback as re, useContext as je, useEffect as K, createElement as Ce, useMemo as Bt, useRef as ge } from "react";
41
- import { Typography as O, Button as Q, Paper as et, Box as k, Drawer as we, styled as ve, IconButton as J, Container as tt, useTheme as se, useMediaQuery as Nt, Collapse as Pt, Avatar as Ne, Fade as _t, Skeleton as Pe, Toolbar as Lt, Divider as _e, CssBaseline as Mt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Ae, TextField as be, CircularProgress as Se, Chip as Rt, Tooltip as Ht, Stack as Wt, Snackbar as Ut, Alert as zt, FormHelperText as Gt } from "@mui/material";
39
+ import { jsxs as p, Fragment as L, jsx as o } from "react/jsx-runtime";
40
+ import { useState as N, createContext as Ze, useCallback as re, useContext as je, useEffect as K, createElement as Ce, useMemo as Nt, useRef as ge } from "react";
41
+ import { Typography as F, Button as Q, Paper as et, Box as k, Drawer as we, styled as ve, IconButton as J, Container as tt, useTheme as se, useMediaQuery as Bt, Collapse as _t, Avatar as Be, Fade as Lt, Skeleton as _e, Toolbar as Pt, Divider as Le, CssBaseline as Mt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Ae, TextField as be, CircularProgress as Se, Chip as Rt, Tooltip as Ht, Stack as Ut, Snackbar as Wt, Alert as zt, FormHelperText as Gt } from "@mui/material";
42
42
  import Vt from "@mui/material/CssBaseline";
43
- import { styled as W, createTheme as st, alpha as fe } from "@mui/material/styles";
43
+ import { styled as U, createTheme as st, alpha as fe } from "@mui/material/styles";
44
44
  import { createHelper as Ie } from "souvlaki";
45
45
  import { BrowserRouter as qt } from "react-router-dom";
46
46
  import lt from "@mui/material/List";
47
47
  import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as Xt, Cancel as Yt, ArrowDropDown as Kt } from "@mui/icons-material";
48
- import { atom as R, useSetAtom as ut, useAtomValue as Le, useAtom as V } from "jotai";
48
+ import { atom as R, useSetAtom as ut, useAtomValue as Pe, useAtom as V } from "jotai";
49
49
  import { useHydrateAtoms as Qt } from "jotai/utils";
50
50
  import Me from "react-avatar";
51
51
  import Jt from "autosuggest-highlight/match";
@@ -54,11 +54,11 @@ import { useQuery as jt } from "@tanstack/react-query";
54
54
  import { useAuth0 as pt } from "@auth0/auth0-react";
55
55
  import { Buffer as en } from "buffer";
56
56
  import tn from "@mui/material/Skeleton";
57
- function bo({ text: e }) {
58
- const [t, n] = B(0);
59
- return /* @__PURE__ */ p(_, { children: [
60
- /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
61
- /* @__PURE__ */ o(O, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
57
+ function So({ text: e }) {
58
+ const [t, n] = N(0);
59
+ return /* @__PURE__ */ p(L, { children: [
60
+ /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
61
+ /* @__PURE__ */ o(F, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
62
62
  /* @__PURE__ */ o(
63
63
  Q,
64
64
  {
@@ -86,7 +86,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
86
86
  userInfoHolder: `${z}-userInfoHolder`,
87
87
  settings: `${z}-settings`,
88
88
  pieChartIcon: `${z}-pieChartIcon`
89
- }, nn = W(k, {
89
+ }, nn = U(k, {
90
90
  name: "NavBar"
91
91
  })(({ theme: e }) => ({
92
92
  [`&.${q.root}`]: {
@@ -115,13 +115,13 @@ const ht = 330, gt = 73, z = "Navbar", q = {
115
115
  color: "white",
116
116
  backgroundColor: "black"
117
117
  // backgroundColor: '#e8e8e8',
118
- }), on = () => a({
118
+ }), on = () => s({
119
119
  width: ht
120
- }, ft()), rn = () => a({
120
+ }, ft()), rn = () => s({
121
121
  width: gt
122
- }, ft()), an = W(we, {
122
+ }, ft()), an = U(we, {
123
123
  shouldForwardProp: (e) => e !== "open"
124
- })(({ theme: e, open: t }) => a(a({
124
+ })(({ theme: e, open: t }) => s(s({
125
125
  width: t ? ht : gt,
126
126
  flexShrink: 0,
127
127
  whiteSpace: "nowrap",
@@ -134,19 +134,19 @@ const ht = 330, gt = 73, z = "Navbar", q = {
134
134
  }));
135
135
  class ke extends Error {
136
136
  }
137
- Be(ke, "errorName", "ContextError");
137
+ Ne(ke, "errorName", "ContextError");
138
138
  const mt = Ze(null), sn = {}, ln = {}, cn = ({
139
139
  overrideState: e = sn,
140
140
  overrideActions: t = ln,
141
141
  children: n
142
142
  }) => {
143
- const [{ open: i }, r] = B({ open: !0 }), s = re((c) => {
143
+ const [{ open: i }, r] = N({ open: !0 }), a = re((c) => {
144
144
  r({ open: c });
145
145
  }, []), d = re(() => {
146
- r((c) => I(a({}, c), { open: !c.open }));
147
- }, []), l = a(a({
146
+ r((c) => I(s({}, c), { open: !c.open }));
147
+ }, []), l = s(s({
148
148
  open: i,
149
- setOpen: s,
149
+ setOpen: a,
150
150
  toggleOpen: d
151
151
  }, e), t);
152
152
  return /* @__PURE__ */ o(mt.Provider, { value: l, children: n });
@@ -155,11 +155,11 @@ const mt = Ze(null), sn = {}, ln = {}, cn = ({
155
155
  if (e === null)
156
156
  throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
157
157
  return e;
158
- }, un = (e = {}) => a({
158
+ }, un = (e = {}) => s({
159
159
  open: !0
160
- }, e), So = Ie(
160
+ }, e), Io = Ie(
161
161
  (e = un(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(cn, { overrideState: e, overrideActions: t, children: n })
162
- ), Io = Ie(() => ({ children: e }) => /* @__PURE__ */ o(qt, { children: e })), Re = 7, ko = W(lt)(({ theme: e }) => ({
162
+ ), ko = Ie(() => ({ children: e }) => /* @__PURE__ */ o(qt, { children: e })), Re = 7, yo = U(lt)(({ theme: e }) => ({
163
163
  backgroundColor: "black",
164
164
  color: "white",
165
165
  "& .MuiListItem-root": {
@@ -197,7 +197,7 @@ const mt = Ze(null), sn = {}, ln = {}, cn = ({
197
197
  // '&.Mui-selected.Mui-focusVisible:hover': {
198
198
  // },
199
199
  }
200
- })), He = 7, yo = W(lt)(({ theme: e }) => ({
200
+ })), He = 7, $o = U(lt)(({ theme: e }) => ({
201
201
  backgroundColor: "#e8e8e8",
202
202
  color: "inherit",
203
203
  "& .MuiListItem-root": {
@@ -236,7 +236,7 @@ const mt = Ze(null), sn = {}, ln = {}, cn = ({
236
236
  // },
237
237
  }
238
238
  }));
239
- function $o({
239
+ function Do({
240
240
  "data-testid": e,
241
241
  children: t
242
242
  }) {
@@ -255,7 +255,7 @@ function $o({
255
255
  )
256
256
  ] });
257
257
  }
258
- const pn = 24, hn = 64, G = "TopBar", F = {
258
+ const pn = 24, hn = 64, G = "TopBar", O = {
259
259
  topStripe: `${G}-topStripe`,
260
260
  titleBar: `${G}-titleBar`,
261
261
  titleSlider: `${G}-titleSlider`,
@@ -269,18 +269,18 @@ const pn = 24, hn = 64, G = "TopBar", F = {
269
269
  var i, r;
270
270
  return {
271
271
  width: "100%",
272
- [`& .${F.topStripe}`]: {
272
+ [`& .${O.topStripe}`]: {
273
273
  width: "100%",
274
274
  height: `${pn}px`,
275
275
  backgroundColor: e.palette.primary.main
276
276
  },
277
- [`& .${F.titleBar}`]: {
277
+ [`& .${O.titleBar}`]: {
278
278
  backgroundColor: e.palette.primary.light,
279
279
  height: `${hn}px`,
280
280
  padding: e.spacing(0, 3),
281
281
  width: "100%"
282
282
  },
283
- [`& .${F.titleSlider}`]: a(a({
283
+ [`& .${O.titleSlider}`]: s(s({
284
284
  height: "100%",
285
285
  display: "flex",
286
286
  alignItems: "center",
@@ -289,14 +289,14 @@ const pn = 24, hn = 64, G = "TopBar", F = {
289
289
  easing: e.transitions.easing.sharp,
290
290
  duration: e.transitions.duration.leavingScreen
291
291
  }),
292
- [`& .${F.leftPanelButton}`]: {
292
+ [`& .${O.leftPanelButton}`]: {
293
293
  marginRight: e.spacing(2),
294
294
  flexGrow: 0
295
295
  },
296
- [`& .${F.titleText}`]: {
296
+ [`& .${O.titleText}`]: {
297
297
  flexGrow: 1
298
298
  },
299
- [`& .${F.rightPanelButton}`]: {
299
+ [`& .${O.rightPanelButton}`]: {
300
300
  flexGrow: 0
301
301
  }
302
302
  }, (t == null ? void 0 : t.open) && {
@@ -321,12 +321,12 @@ function fn({
321
321
  "data-testid": i
322
322
  }) {
323
323
  return /* @__PURE__ */ p(gn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
324
- /* @__PURE__ */ o("div", { className: F.topStripe }),
325
- /* @__PURE__ */ o("div", { className: F.titleBar, children: /* @__PURE__ */ p(k, { className: F.titleSlider, children: [
324
+ /* @__PURE__ */ o("div", { className: O.topStripe }),
325
+ /* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ p(k, { className: O.titleSlider, children: [
326
326
  t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
327
327
  J,
328
328
  {
329
- className: F.leftPanelButton,
329
+ className: O.leftPanelButton,
330
330
  color: "inherit",
331
331
  "aria-label": "Open left side panel",
332
332
  onClick: t == null ? void 0 : t.onOpen,
@@ -338,11 +338,11 @@ function fn({
338
338
  ]
339
339
  }
340
340
  ),
341
- /* @__PURE__ */ o(O, { className: F.titleText, variant: "h6", noWrap: !0, children: e }),
341
+ /* @__PURE__ */ o(F, { className: O.titleText, variant: "h6", noWrap: !0, children: e }),
342
342
  n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ p(
343
343
  J,
344
344
  {
345
- className: F.rightPanelButton,
345
+ className: O.rightPanelButton,
346
346
  color: "inherit",
347
347
  "aria-label": "Open right side panel",
348
348
  onClick: n == null ? void 0 : n.onOpen,
@@ -371,9 +371,9 @@ const xt = 400, mn = ve(we, {
371
371
  ),
372
372
  name: "SidePanelDrawer"
373
373
  })(
374
- ({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: r, navBarWidthClosed: s }) => ({
374
+ ({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: r, navBarWidthClosed: a }) => ({
375
375
  width: e,
376
- "& .MuiDrawer-paper": a(a({
376
+ "& .MuiDrawer-paper": s(s({
377
377
  position: "absolute",
378
378
  width: e,
379
379
  boxSizing: "border-box",
@@ -381,15 +381,15 @@ const xt = 400, mn = ve(we, {
381
381
  boxShadow: "0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2)"
382
382
  }, t && {
383
383
  opacity: "50%"
384
- }), n === "left" && a({
385
- marginLeft: `${s}px`
384
+ }), n === "left" && s({
385
+ marginLeft: `${a}px`
386
386
  }, i && {
387
387
  marginLeft: `${r}px`
388
388
  }))
389
389
  })
390
390
  ), xn = ve(k, {
391
391
  shouldForwardProp: (e) => !["anchor"].includes(e)
392
- })(({ theme: e, anchor: t }) => I(a({
392
+ })(({ theme: e, anchor: t }) => I(s({
393
393
  display: "flex",
394
394
  alignItems: "center",
395
395
  padding: e.spacing(2)
@@ -407,14 +407,14 @@ const xt = 400, mn = ve(we, {
407
407
  marginRight: t === "right" ? e.spacing(2) : 0
408
408
  }
409
409
  }));
410
- function We({
410
+ function Ue({
411
411
  children: e,
412
412
  anchor: t = "left",
413
413
  open: n,
414
414
  onClose: i = () => {
415
415
  },
416
416
  titleText: r = "",
417
- width: s = xt,
417
+ width: a = xt,
418
418
  showCloseArrow: d = !0,
419
419
  debugOpacity: l = !1,
420
420
  headerBoxProps: c = {},
@@ -435,37 +435,37 @@ function We({
435
435
  variant: "persistent",
436
436
  anchor: t,
437
437
  open: n,
438
- width: s,
438
+ width: a,
439
439
  debugOpacity: l,
440
440
  "data-testid": C,
441
441
  navBarOpen: v,
442
442
  navBarWidthOpen: h,
443
443
  navBarWidthClosed: b,
444
444
  children: [
445
- /* @__PURE__ */ o(xn, I(a({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
446
- /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", children: r }),
445
+ /* @__PURE__ */ o(xn, I(s({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ p(L, { children: [
446
+ /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r }),
447
447
  d && /* @__PURE__ */ p(J, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
448
448
  /* @__PURE__ */ o(dt, { "data-testid": "arrowbackicon" }),
449
449
  " "
450
450
  ] })
451
- ] }) : /* @__PURE__ */ p(_, { children: [
451
+ ] }) : /* @__PURE__ */ p(L, { children: [
452
452
  d && /* @__PURE__ */ p(J, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
453
453
  /* @__PURE__ */ o(ct, {}),
454
454
  " "
455
455
  ] }),
456
- /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", children: r })
456
+ /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r })
457
457
  ] }) })),
458
458
  e
459
459
  ]
460
460
  }
461
461
  );
462
462
  }
463
- const Cn = W(k, {
463
+ const Cn = U(k, {
464
464
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
465
465
  name: "PanelAwareMargins"
466
466
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
467
467
  var i, r;
468
- return a(a({
468
+ return s(s({
469
469
  transition: e.transitions.create("margin", {
470
470
  easing: e.transitions.easing.sharp,
471
471
  duration: e.transitions.duration.leavingScreen
@@ -483,7 +483,7 @@ const Cn = W(k, {
483
483
  }),
484
484
  marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
485
485
  });
486
- }), wn = W(tt, {
486
+ }), wn = U(tt, {
487
487
  name: "PageContainer"
488
488
  })(({ theme: e }) => ({
489
489
  // Horizontal padding comes from the Container's gutter
@@ -498,18 +498,18 @@ const Cn = W(k, {
498
498
  startOpen: !1,
499
499
  open: void 0,
500
500
  onChangeOpen: void 0,
501
- content: /* @__PURE__ */ o(_, {}),
501
+ content: /* @__PURE__ */ o(L, {}),
502
502
  onOpened: void 0,
503
503
  onClosed: void 0,
504
504
  dataTestId: void 0
505
505
  };
506
- function Do({
506
+ function To({
507
507
  children: e,
508
508
  titleText: t = "",
509
509
  leftPanel: n,
510
510
  rightPanel: i,
511
511
  sidePanelsAreMutuallyExclusive: r = !0,
512
- debugOpacity: s = !1,
512
+ debugOpacity: a = !1,
513
513
  pageContainerProps: d,
514
514
  pageContentDataTestId: l,
515
515
  topBarDataTestId: c,
@@ -517,7 +517,7 @@ function Do({
517
517
  navBarWidthOpen: g,
518
518
  navBarWidthClosed: C
519
519
  }) {
520
- const [v, h] = B(me), [b, S] = B(xe), [$, D] = B(me), [E, T] = B(xe), L = n !== void 0, N = i !== void 0, {
520
+ const [v, h] = N(me), [b, S] = N(xe), [$, D] = N(me), [E, T] = N(xe), P = n !== void 0, B = i !== void 0, {
521
521
  titleText: w,
522
522
  content: y,
523
523
  flavour: M,
@@ -529,7 +529,7 @@ function Do({
529
529
  onOpened: Z,
530
530
  onClosed: le,
531
531
  dataTestId: It
532
- } = n ? a(a({}, ne), n) : a({}, ne), {
532
+ } = n ? s(s({}, ne), n) : s({}, ne), {
533
533
  titleText: kt,
534
534
  content: yt,
535
535
  flavour: ye,
@@ -541,20 +541,20 @@ function Do({
541
541
  onOpened: $t,
542
542
  onClosed: Dt,
543
543
  dataTestId: Tt
544
- } = i ? a(a({}, ne), i) : a({}, ne);
544
+ } = i ? s(s({}, ne), i) : s({}, ne);
545
545
  K(() => {
546
546
  H !== me && (h(H), D(H));
547
547
  }, [H]), K(() => {
548
548
  ee !== xe && (S(ee), T(ee));
549
549
  }, [ee]);
550
- const ue = f === void 0 ? v : f, pe = ce === void 0 ? b : ce, De = (U) => {
551
- f === void 0 && (h(U), r && N && (U ? (S(!1), T(b)) : S(E))), m && m(U);
552
- }, Te = (U) => {
553
- ce === void 0 && (S(U), r && L && (U ? (h(!1), D(v)) : h($))), $e && $e(U);
550
+ const ue = f === void 0 ? v : f, pe = ce === void 0 ? b : ce, De = (W) => {
551
+ f === void 0 && (h(W), r && B && (W ? (S(!1), T(b)) : S(E))), m && m(W);
552
+ }, Te = (W) => {
553
+ ce === void 0 && (S(W), r && P && (W ? (h(!1), D(v)) : h($))), $e && $e(W);
554
554
  };
555
555
  return /* @__PURE__ */ p(k, { children: [
556
- L && /* @__PURE__ */ o(
557
- We,
556
+ P && /* @__PURE__ */ o(
557
+ Ue,
558
558
  {
559
559
  "data-testid": It,
560
560
  anchor: "left",
@@ -562,7 +562,7 @@ function Do({
562
562
  onClose: () => De(!1),
563
563
  width: x,
564
564
  titleText: w,
565
- debugOpacity: s,
565
+ debugOpacity: a,
566
566
  showCloseArrow: A === "both" || A === "close",
567
567
  onOpened: Z,
568
568
  onClosed: le,
@@ -572,8 +572,8 @@ function Do({
572
572
  children: y
573
573
  }
574
574
  ),
575
- N && /* @__PURE__ */ o(
576
- We,
575
+ B && /* @__PURE__ */ o(
576
+ Ue,
577
577
  {
578
578
  "data-testid": Tt,
579
579
  anchor: "right",
@@ -581,7 +581,7 @@ function Do({
581
581
  onClose: () => Te(!1),
582
582
  width: de,
583
583
  titleText: kt,
584
- debugOpacity: s,
584
+ debugOpacity: a,
585
585
  showCloseArrow: j === "both" || j === "close",
586
586
  onOpened: $t,
587
587
  onClosed: Dt,
@@ -593,17 +593,17 @@ function Do({
593
593
  ),
594
594
  /* @__PURE__ */ o(
595
595
  fn,
596
- a(a({
596
+ s(s({
597
597
  titleText: t,
598
598
  "data-testid": c
599
- }, L && M === "push" ? {
599
+ }, P && M === "push" ? {
600
600
  leftPanel: {
601
601
  open: ue,
602
602
  width: x,
603
603
  onOpen: () => De(!0),
604
604
  showOpenArrow: A === "both" || A === "open"
605
605
  }
606
- } : {}), N && ye === "push" ? {
606
+ } : {}), B && ye === "push" ? {
607
607
  rightPanel: {
608
608
  open: pe,
609
609
  width: de,
@@ -614,7 +614,7 @@ function Do({
614
614
  ),
615
615
  /* @__PURE__ */ o(
616
616
  Cn,
617
- I(a(a({}, M === "push" ? {
617
+ I(s(s({}, M === "push" ? {
618
618
  leftPanel: {
619
619
  open: ue,
620
620
  width: x
@@ -625,15 +625,15 @@ function Do({
625
625
  width: de
626
626
  }
627
627
  } : {}), {
628
- children: /* @__PURE__ */ o(wn, I(a({ "data-testid": l }, d), { children: e }))
628
+ children: /* @__PURE__ */ o(wn, I(s({ "data-testid": l }, d), { children: e }))
629
629
  })
630
630
  )
631
631
  ] });
632
632
  }
633
633
  const Ct = () => {
634
634
  const e = se();
635
- return Nt(e.breakpoints.down("sm"));
636
- }, vn = 64, An = 72, bn = 256, ae = R(!0), Sn = R(bn), In = R(An), Ue = R(""), kn = R(void 0), yn = R(vn), $n = R(void 0);
635
+ return Bt(e.breakpoints.down("sm"));
636
+ }, vn = 64, An = 72, bn = 256, ae = R(!0), Sn = R(bn), In = R(An), We = R(""), kn = R(void 0), yn = R(vn), $n = R(void 0);
637
637
  function Dn({ links: e }) {
638
638
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
639
639
  }
@@ -645,7 +645,7 @@ const oe = "Navbar", Y = {
645
645
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
646
646
  // settings: `${PREFIX}-settings`,
647
647
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
648
- }, Tn = W(k, { name: "NavBar" })(({ theme: e }) => ({
648
+ }, Tn = U(k, { name: "NavBar" })(({ theme: e }) => ({
649
649
  [`&.${Y.root}`]: {
650
650
  display: "flex"
651
651
  },
@@ -670,8 +670,8 @@ const oe = "Navbar", Y = {
670
670
  }), En = (e) => {
671
671
  const t = se();
672
672
  return /* @__PURE__ */ o(
673
- Pt,
674
- a({
673
+ _t,
674
+ s({
675
675
  easing: t.transitions.easing.sharp,
676
676
  timeout: {
677
677
  enter: t.transitions.duration.enteringScreen,
@@ -687,24 +687,24 @@ const oe = "Navbar", Y = {
687
687
  backgroundColor: (n = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? n : "white"
688
688
  // Provide default so tests don't need to wrap theme provider
689
689
  };
690
- }, ze = (e, t) => a({
690
+ }, ze = (e, t) => s({
691
691
  width: t,
692
692
  transition: X(e, "width", "entering")
693
- }, wt(e)), Ge = (e, t) => a({
693
+ }, wt(e)), Ge = (e, t) => s({
694
694
  width: t,
695
695
  transition: X(e, "width", "leaving")
696
- }, wt(e)), On = W(we, {
696
+ }, wt(e)), Fn = U(we, {
697
697
  shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
698
- })(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => a(a({
698
+ })(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => s(s({
699
699
  flexShrink: 0,
700
700
  whiteSpace: "nowrap",
701
701
  boxSizing: "border-box",
702
702
  display: "flex",
703
703
  flexDirection: "column"
704
- }, t && I(a({}, ze(e, n)), {
704
+ }, t && I(s({}, ze(e, n)), {
705
705
  backgroundColor: "",
706
706
  "& .MuiDrawer-paper": ze(e, n)
707
- })), !t && I(a({}, Ge(e, r ? n : i)), {
707
+ })), !t && I(s({}, Ge(e, r ? n : i)), {
708
708
  backgroundColor: "",
709
709
  "& .MuiDrawer-paper": Ge(e, r ? n : i)
710
710
  }))), ie = {
@@ -714,7 +714,7 @@ const oe = "Navbar", Y = {
714
714
  info: console.info.bind(console),
715
715
  debug: console.debug.bind(console)
716
716
  };
717
- function To(e, t) {
717
+ function Eo(e, t) {
718
718
  console[e] = (...n) => {
719
719
  for (const i of t)
720
720
  if (typeof i == "function") {
@@ -727,14 +727,35 @@ function To(e, t) {
727
727
  ie[e](n);
728
728
  };
729
729
  }
730
- function Eo(e) {
730
+ function Fo(e) {
731
731
  if (e)
732
732
  console[e] = ie[e];
733
733
  else
734
734
  for (const t of Object.keys(ie))
735
735
  console[t] = ie[t];
736
736
  }
737
- function Fn(e) {
737
+ function On(e) {
738
+ return e.replace(
739
+ /(^|-)([a-z])/g,
740
+ (t, n, i) => n === "-" ? " " + i.toUpperCase() : i.toUpperCase()
741
+ );
742
+ }
743
+ function Oo(e, t, n, i) {
744
+ var d;
745
+ if (!e) return "None";
746
+ const a = Object.entries(e).filter(
747
+ ([l, c]) => l.startsWith("https://greens.org.au/roles/") && c.includes(t)
748
+ ).map(
749
+ ([l]) => {
750
+ var c;
751
+ return On((c = l.split("/").at(-1)) != null ? c : "");
752
+ }
753
+ );
754
+ return (d = i.find(
755
+ (l) => n[l].some((c) => a.includes(c))
756
+ )) != null ? d : "None";
757
+ }
758
+ function Nn(e) {
738
759
  let t = 0;
739
760
  for (let n = 0, i = e.length; n < i; n++) {
740
761
  const r = e.charCodeAt(n);
@@ -764,18 +785,18 @@ function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
764
785
  transition: n ? X(r, ["width", "height"], "entering") : X(r, ["width", "height"], "leaving"),
765
786
  aspectRatio: 1
766
787
  },
767
- children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
768
- Ne,
788
+ children: e != null && e.name ? /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
789
+ Be,
769
790
  {
770
791
  src: e == null ? void 0 : e.picture,
771
792
  sx: {
772
793
  width: "100%",
773
794
  height: "100%",
774
- bgcolor: Ve[Math.abs(Fn(e == null ? void 0 : e.name)) % Ve.length]
795
+ bgcolor: Ve[Math.abs(Nn(e == null ? void 0 : e.name)) % Ve.length]
775
796
  },
776
797
  children: qe(e == null ? void 0 : e.name)
777
798
  }
778
- ) }) : /* @__PURE__ */ o(Ne, { sx: { width: "100%", height: "100%" } })
799
+ ) }) : /* @__PURE__ */ o(Be, { sx: { width: "100%", height: "100%" } })
779
800
  }
780
801
  ),
781
802
  i && /* @__PURE__ */ o(
@@ -786,7 +807,7 @@ function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
786
807
  transition: n ? X(r, ["width", "height"], "entering") : X(r, ["width", "height"], "leaving"),
787
808
  aspectRatio: 1
788
809
  },
789
- children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ p(Me, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: n ? "80" : "32", children: [
810
+ children: e != null && e.name ? /* @__PURE__ */ o(L, { children: /* @__PURE__ */ p(Me, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: n ? "80" : "32", children: [
790
811
  " ",
791
812
  qe(e == null ? void 0 : e.name),
792
813
  " ",
@@ -794,21 +815,21 @@ function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
794
815
  ] }) }) : /* @__PURE__ */ o(Me, {})
795
816
  }
796
817
  ),
797
- /* @__PURE__ */ o(En, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(_t, { in: n, children: /* @__PURE__ */ p(k, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
798
- e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
799
- t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
818
+ /* @__PURE__ */ o(En, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Lt, { in: n, children: /* @__PURE__ */ p(k, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
819
+ e != null && e.name ? /* @__PURE__ */ o(F, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(_e, { animation: !1, width: "50%" }),
820
+ t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(_e, { animation: !1, width: "25%" })
800
821
  ] }) }) })
801
822
  ]
802
823
  }
803
824
  );
804
825
  }
805
- function Nn({
826
+ function _n({
806
827
  open: e,
807
828
  widthClosed: t,
808
829
  widthOpen: n,
809
830
  "data-testid": i,
810
831
  top: r,
811
- middle: s,
832
+ middle: a,
812
833
  bottom: d,
813
834
  user: l,
814
835
  domainCode: c,
@@ -816,7 +837,7 @@ function Nn({
816
837
  }) {
817
838
  const g = Ct(), C = ut(ae);
818
839
  return /* @__PURE__ */ o(Tn, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ p(
819
- On,
840
+ Fn,
820
841
  {
821
842
  open: e,
822
843
  widthOpen: n,
@@ -831,22 +852,22 @@ function Nn({
831
852
  },
832
853
  isSmallScreen: g,
833
854
  children: [
834
- !g && /* @__PURE__ */ o(Lt, {}),
855
+ !g && /* @__PURE__ */ o(Pt, {}),
835
856
  r && /* @__PURE__ */ p(k, { flexGrow: "0", children: [
836
857
  r,
837
- /* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } })
858
+ /* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } })
838
859
  ] }),
839
- /* @__PURE__ */ o(k, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o(Dn, { links: s }) : s }),
860
+ /* @__PURE__ */ o(k, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Dn, { links: a }) : a }),
840
861
  /* @__PURE__ */ p(k, { flexGrow: "0", children: [
841
- /* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } }),
862
+ /* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } }),
842
863
  /* @__PURE__ */ o(Bn, { user: l, domainCode: c, open: e, useNewAvatar: u }),
843
- d && /* @__PURE__ */ o(_, { children: d })
864
+ d && /* @__PURE__ */ o(L, { children: d })
844
865
  ] })
845
866
  ]
846
867
  }
847
868
  ) });
848
869
  }
849
- function Pn({
870
+ function Ln({
850
871
  children: e,
851
872
  topBarHeight: t,
852
873
  maxWidth: n = !1,
@@ -873,16 +894,16 @@ function Pn({
873
894
  }
874
895
  );
875
896
  }
876
- const _n = "TopBar", Ln = {
877
- titleText: `${_n}-titleText`
897
+ const Pn = "TopBar", Mn = {
898
+ titleText: `${Pn}-titleText`
878
899
  };
879
- function Mn({
900
+ function Rn({
880
901
  titleText: e = "",
881
902
  height: t,
882
903
  "data-testid": n,
883
904
  middle: i
884
905
  }) {
885
- const r = ut(ae), s = () => r((c) => !c), d = se(), l = Ct();
906
+ const r = ut(ae), a = () => r((c) => !c), d = se(), l = Ct();
886
907
  return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
887
908
  et,
888
909
  {
@@ -907,23 +928,23 @@ function Mn({
907
928
  size: "medium",
908
929
  color: "inherit",
909
930
  sx: { padding: 1.5, marginLeft: "12px" },
910
- onClick: s,
931
+ onClick: a,
911
932
  children: /* @__PURE__ */ o(Xt, { fontSize: "medium" })
912
933
  }
913
934
  ),
914
- /* @__PURE__ */ o(O, { className: Ln.titleText, variant: "h6", component: "h1", children: e }),
935
+ /* @__PURE__ */ o(F, { className: Mn.titleText, variant: "h6", component: "h1", children: e }),
915
936
  i
916
937
  ]
917
938
  }
918
939
  ) });
919
940
  }
920
- function Oo({
941
+ function No({
921
942
  children: e,
922
943
  initialTitleText: t,
923
944
  initialNavBarOpen: n,
924
945
  pageContainerProps: i,
925
946
  pageContentDataTestId: r,
926
- topBarDataTestId: s,
947
+ topBarDataTestId: a,
927
948
  navBarDataTestId: d,
928
949
  navBarMiddle: l,
929
950
  navBarBottom: c,
@@ -933,23 +954,23 @@ function Oo({
933
954
  }) {
934
955
  Qt([
935
956
  [ae, n != null ? n : !0],
936
- [Ue, t != null ? t : ""]
957
+ [We, t != null ? t : ""]
937
958
  ]);
938
- const v = Le(ae), [h] = V(Sn), [b] = V(In), S = Le(Ue), [$] = V(yn), [D] = V(kn), [E] = V($n);
959
+ const v = Pe(ae), [h] = V(Sn), [b] = V(In), S = Pe(We), [$] = V(yn), [D] = V(kn), [E] = V($n);
939
960
  return /* @__PURE__ */ p(k, { children: [
940
961
  /* @__PURE__ */ o(Mt, {}),
941
962
  /* @__PURE__ */ o(
942
- Mn,
963
+ Rn,
943
964
  {
944
965
  titleText: S,
945
- "data-testid": s,
966
+ "data-testid": a,
946
967
  height: $,
947
968
  middle: D
948
969
  }
949
970
  ),
950
971
  /* @__PURE__ */ p(k, { sx: { display: "flex" }, children: [
951
972
  /* @__PURE__ */ o(
952
- Nn,
973
+ _n,
953
974
  {
954
975
  open: v,
955
976
  top: E,
@@ -965,8 +986,8 @@ function Oo({
965
986
  }
966
987
  ),
967
988
  /* @__PURE__ */ o(
968
- Pn,
969
- I(a({
989
+ Ln,
990
+ I(s({
970
991
  "data-testid": r,
971
992
  topBarHeight: $
972
993
  }, i), {
@@ -982,7 +1003,7 @@ const vt = ({
982
1003
  children: n,
983
1004
  maxWidth: i,
984
1005
  primaryButton: r,
985
- secondaryButton: s,
1006
+ secondaryButton: a,
986
1007
  onClose: d,
987
1008
  sx: l,
988
1009
  "data-testid": c,
@@ -990,13 +1011,13 @@ const vt = ({
990
1011
  isLoading: g = !1
991
1012
  }) => {
992
1013
  var h, b;
993
- const [C, v] = B(!1);
1014
+ const [C, v] = N(!1);
994
1015
  return /* @__PURE__ */ p(
995
1016
  nt,
996
1017
  {
997
1018
  open: e,
998
- onClose: (S, $) => P(void 0, null, function* () {
999
- u && ($ === "backdropClick" || $ === "escapeKeyDown") || C || (s != null && s.onClick ? yield s.onClick() : d());
1019
+ onClose: (S, $) => _(void 0, null, function* () {
1020
+ u && ($ === "backdropClick" || $ === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : d());
1000
1021
  }),
1001
1022
  fullWidth: !0,
1002
1023
  maxWidth: i != null ? i : "xs",
@@ -1010,17 +1031,17 @@ const vt = ({
1010
1031
  /* @__PURE__ */ o(
1011
1032
  Q,
1012
1033
  {
1013
- onClick: (h = s == null ? void 0 : s.onClick) != null ? h : d,
1014
- "data-testid": s == null ? void 0 : s.testId,
1015
- disabled: (s == null ? void 0 : s.disabled) || C,
1016
- color: s == null ? void 0 : s.buttonColor,
1017
- children: (b = s == null ? void 0 : s.text) != null ? b : "Cancel"
1034
+ onClick: (h = a == null ? void 0 : a.onClick) != null ? h : d,
1035
+ "data-testid": a == null ? void 0 : a.testId,
1036
+ disabled: (a == null ? void 0 : a.disabled) || C,
1037
+ color: a == null ? void 0 : a.buttonColor,
1038
+ children: (b = a == null ? void 0 : a.text) != null ? b : "Cancel"
1018
1039
  }
1019
1040
  ),
1020
1041
  r && /* @__PURE__ */ o(
1021
1042
  Q,
1022
1043
  {
1023
- onClick: () => P(void 0, null, function* () {
1044
+ onClick: () => _(void 0, null, function* () {
1024
1045
  var S;
1025
1046
  v(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), v(!1);
1026
1047
  }),
@@ -1042,18 +1063,18 @@ const vt = ({
1042
1063
  inputValue: r
1043
1064
  }) => jt({
1044
1065
  queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
1045
- (s) => s.label.toLowerCase().includes(r.toLowerCase())
1066
+ (a) => a.label.toLowerCase().includes(r.toLowerCase())
1046
1067
  ) : n(r),
1047
1068
  queryKey: ["autocomplete", i, r]
1048
1069
  });
1049
- function Fo({
1050
- lookup: e = () => P(this, null, function* () {
1070
+ function Bo({
1071
+ lookup: e = () => _(this, null, function* () {
1051
1072
  }),
1052
1073
  enableHighlighting: t = !0,
1053
1074
  onChange: n,
1054
1075
  minLength: i = 0,
1055
1076
  label: r,
1056
- value: s,
1077
+ value: a,
1057
1078
  "data-testid": d,
1058
1079
  sx: l,
1059
1080
  boxSx: c,
@@ -1068,8 +1089,8 @@ function Fo({
1068
1089
  disablePortal: D = !1,
1069
1090
  disableIconFlip: E = !1
1070
1091
  }) {
1071
- const [T, L] = B(""), N = (f, m) => {
1072
- const x = s.filter((A) => A.id !== m);
1092
+ const [T, P] = N(""), B = (f, m) => {
1093
+ const x = a.filter((A) => A.id !== m);
1073
1094
  n(x, "delete", f);
1074
1095
  }, { data: w, isLoading: y } = At({
1075
1096
  inputValue: T,
@@ -1082,33 +1103,33 @@ function Fo({
1082
1103
  /* @__PURE__ */ o(
1083
1104
  Ae,
1084
1105
  {
1085
- sx: a(a({}, l), E ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
1106
+ sx: s(s({}, l), E ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
1086
1107
  "data-testid": d ? `${d}:Autocomplete` : void 0,
1087
1108
  disablePortal: D,
1088
1109
  multiple: !0,
1089
1110
  getOptionLabel: (f) => typeof f == "string" ? f : f.label,
1090
1111
  loading: M ? y : !1,
1091
- options: [...s, ...w != null ? w : []],
1112
+ options: [...a, ...w != null ? w : []],
1092
1113
  filterSelectedOptions: !0,
1093
1114
  includeInputInList: !0,
1094
- value: s,
1115
+ value: a,
1095
1116
  onChange: (f, m, x) => {
1096
1117
  n(m, x, f);
1097
1118
  },
1098
- onInputChange: (f, m) => L(m),
1119
+ onInputChange: (f, m) => P(m),
1099
1120
  noOptionsText: M ? v : "Start typing to search",
1100
1121
  loadingText: C,
1101
1122
  popupIcon: h,
1102
1123
  renderInput: (f) => /* @__PURE__ */ o(
1103
1124
  be,
1104
- I(a({}, f), {
1125
+ I(s({}, f), {
1105
1126
  label: r,
1106
1127
  fullWidth: !0,
1107
1128
  variant: g,
1108
1129
  error: b,
1109
1130
  helperText: S,
1110
- InputProps: I(a({}, f.InputProps), {
1111
- endAdornment: /* @__PURE__ */ p(_, { children: [
1131
+ InputProps: I(s({}, f.InputProps), {
1132
+ endAdornment: /* @__PURE__ */ p(L, { children: [
1112
1133
  y ? /* @__PURE__ */ o(Se, { color: "inherit", size: 20 }) : null,
1113
1134
  f.InputProps.endAdornment
1114
1135
  ] })
@@ -1130,7 +1151,7 @@ function Fo({
1130
1151
  }), H = Zt(m.label, A);
1131
1152
  return /* @__PURE__ */ Ce(
1132
1153
  "li",
1133
- I(a({}, f), {
1154
+ I(s({}, f), {
1134
1155
  key: m.id,
1135
1156
  "data-testid": d ? `${d}:Autocomplete:option(${m.id.toString()})` : void 0
1136
1157
  }),
@@ -1148,7 +1169,7 @@ function Fo({
1148
1169
  } else
1149
1170
  return /* @__PURE__ */ Ce(
1150
1171
  "li",
1151
- I(a({}, f), {
1172
+ I(s({}, f), {
1152
1173
  key: m.id,
1153
1174
  "data-testid": d ? `${d}:option(${m.id.toString()})` : void 0
1154
1175
  }),
@@ -1157,7 +1178,7 @@ function Fo({
1157
1178
  }
1158
1179
  }
1159
1180
  ),
1160
- s.length > 0 && /* @__PURE__ */ o(k, { sx: c, children: s.map((f) => /* @__PURE__ */ o(
1181
+ a.length > 0 && /* @__PURE__ */ o(k, { sx: c, children: a.map((f) => /* @__PURE__ */ o(
1161
1182
  Rt,
1162
1183
  {
1163
1184
  sx: {
@@ -1180,11 +1201,11 @@ function Fo({
1180
1201
  }
1181
1202
  ]
1182
1203
  },
1183
- children: /* @__PURE__ */ o(O, { style: { whiteSpace: "normal" }, children: f.chipLabel ? f.chipLabel : f.label })
1204
+ children: /* @__PURE__ */ o(F, { style: { whiteSpace: "normal" }, children: f.chipLabel ? f.chipLabel : f.label })
1184
1205
  }
1185
1206
  ),
1186
1207
  "data-testid": d ? `${d}:Chip(${f.id.toString()})` : void 0,
1187
- onDelete: (m) => N(m, f.id),
1208
+ onDelete: (m) => B(m, f.id),
1188
1209
  deleteIcon: /* @__PURE__ */ o(
1189
1210
  Yt,
1190
1211
  {
@@ -1196,14 +1217,14 @@ function Fo({
1196
1217
  )) })
1197
1218
  ] });
1198
1219
  }
1199
- const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1200
- lookup: e = () => P(void 0, null, function* () {
1220
+ const _o = /MUI: The value provided to.*is invalid/i, Lo = ({
1221
+ lookup: e = () => _(void 0, null, function* () {
1201
1222
  }),
1202
1223
  onChange: t,
1203
1224
  label: n,
1204
1225
  value: i,
1205
1226
  sx: r,
1206
- textFieldColor: s,
1227
+ textFieldColor: a,
1207
1228
  textFieldVariant: d = "filled",
1208
1229
  error: l = !1,
1209
1230
  "data-testid": c,
@@ -1216,19 +1237,19 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1216
1237
  popupIcon: S,
1217
1238
  disableIconFlip: $
1218
1239
  }) => {
1219
- const [D, E] = B(""), { data: T, isLoading: L } = At({
1240
+ const [D, E] = N(""), { data: T, isLoading: P } = At({
1220
1241
  inputValue: D,
1221
1242
  label: n,
1222
1243
  lookup: e,
1223
1244
  minLength: g != null ? g : 0,
1224
1245
  preLoadedOptions: v
1225
- }), N = D.length >= g;
1226
- return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(Wt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
1246
+ }), B = D.length >= g;
1247
+ return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(Ut, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
1227
1248
  Ae,
1228
1249
  {
1229
- sx: a(a({}, r), $ ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
1250
+ sx: s(s({}, r), $ ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
1230
1251
  "data-testid": c ? `${c}:Autocomplete` : void 0,
1231
- loading: N ? L : !1,
1252
+ loading: B ? P : !1,
1232
1253
  options: T != null ? T : [],
1233
1254
  onChange: (w, y, M) => {
1234
1255
  t(w, y, M);
@@ -1236,17 +1257,17 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1236
1257
  disablePortal: C,
1237
1258
  filterOptions: (w) => w,
1238
1259
  value: i,
1239
- noOptionsText: N ? u : "Start typing to search",
1260
+ noOptionsText: B ? u : "Start typing to search",
1240
1261
  getOptionLabel: (w) => w.label,
1241
1262
  popupIcon: S,
1242
1263
  renderInput: (w) => /* @__PURE__ */ o(
1243
1264
  be,
1244
- I(a({
1265
+ I(s({
1245
1266
  "data-testid": c ? `${c}:Autocomplete:TextField` : void 0
1246
1267
  }, w), {
1247
1268
  variant: d,
1248
1269
  label: n,
1249
- color: s,
1270
+ color: a,
1250
1271
  error: l,
1251
1272
  helperText: h
1252
1273
  })
@@ -1257,7 +1278,7 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1257
1278
  },
1258
1279
  renderOption: (w, y) => /* @__PURE__ */ Ce(
1259
1280
  "li",
1260
- I(a({}, w), {
1281
+ I(s({}, w), {
1261
1282
  key: y.id,
1262
1283
  "data-testid": c ? `${c}:Autocomplete:option(${y.id.toString()})` : void 0
1263
1284
  }),
@@ -1266,13 +1287,13 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1266
1287
  disabled: b
1267
1288
  }
1268
1289
  ) }) });
1269
- }, Rn = (e) => {
1290
+ }, Hn = (e) => {
1270
1291
  if (!e)
1271
1292
  return -1;
1272
1293
  try {
1273
1294
  const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
1274
- en.from(n, "base64").toString("utf8").split("").map(function(s) {
1275
- return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
1295
+ en.from(n, "base64").toString("utf8").split("").map(function(a) {
1296
+ return "%" + ("00" + a.charCodeAt(0).toString(16)).slice(-2);
1276
1297
  }).join("")
1277
1298
  ), r = JSON.parse(i);
1278
1299
  return r != null && r.exp ? r.exp : -1;
@@ -1284,19 +1305,19 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1284
1305
  closeHandler: t,
1285
1306
  setAuth0ExpiryTime: n
1286
1307
  }) => {
1287
- const { logout: i, getAccessTokenSilently: r } = pt(), [s, d] = B(0), l = () => P(void 0, null, function* () {
1308
+ const { logout: i, getAccessTokenSilently: r } = pt(), [a, d] = N(0), l = () => _(void 0, null, function* () {
1288
1309
  i({ logoutParams: { returnTo: `${window.location.origin}` } });
1289
- }), c = () => P(void 0, null, function* () {
1290
- d(s + 1), t();
1310
+ }), c = () => _(void 0, null, function* () {
1311
+ d(a + 1), t();
1291
1312
  });
1292
1313
  return K(() => {
1293
- P(void 0, null, function* () {
1294
- if (s > 0) {
1295
- const v = yield r({ cacheMode: "off" }), h = Rn(v) * 1e3;
1314
+ _(void 0, null, function* () {
1315
+ if (a > 0) {
1316
+ const v = yield r({ cacheMode: "off" }), h = Hn(v) * 1e3;
1296
1317
  n(h);
1297
1318
  }
1298
1319
  });
1299
- }, [s, r, n]), /* @__PURE__ */ o(
1320
+ }, [a, r, n]), /* @__PURE__ */ o(
1300
1321
  vt,
1301
1322
  {
1302
1323
  isOpen: e,
@@ -1321,7 +1342,7 @@ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1321
1342
  }
1322
1343
  );
1323
1344
  };
1324
- function Hn(e) {
1345
+ function Un(e) {
1325
1346
  return "error" in e;
1326
1347
  }
1327
1348
  function Wn(e) {
@@ -1329,17 +1350,17 @@ function Wn(e) {
1329
1350
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1330
1351
  return t === "access_denied" && n.startsWith("You do not have the required authorization");
1331
1352
  }
1332
- function Un(e) {
1353
+ function zn(e) {
1333
1354
  var i;
1334
1355
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1335
1356
  return t === "access_denied" && n.startsWith("User did not authorize the request");
1336
1357
  }
1337
- function zn(e) {
1358
+ function Gn(e) {
1338
1359
  var i;
1339
1360
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1340
1361
  return t === "access_denied" && n.match(/Script.*time.*exceeded/);
1341
1362
  }
1342
- function _o({
1363
+ function Mo({
1343
1364
  children: e,
1344
1365
  appName: t = "the app",
1345
1366
  throwErrors: n = "none",
@@ -1348,11 +1369,11 @@ function _o({
1348
1369
  }
1349
1370
  }) {
1350
1371
  var C, v;
1351
- const { isAuthenticated: s, isLoading: d, error: l, loginWithRedirect: c, logout: u } = pt();
1372
+ const { isAuthenticated: a, isLoading: d, error: l, loginWithRedirect: c, logout: u } = pt();
1352
1373
  K(() => {
1353
1374
  l && r(l);
1354
1375
  }, [l, r]);
1355
- const g = Bt(
1376
+ const g = Nt(
1356
1377
  () => ({
1357
1378
  appState: {
1358
1379
  returnTo: `${window.location.pathname}${window.location.search}`
@@ -1361,20 +1382,20 @@ function _o({
1361
1382
  []
1362
1383
  );
1363
1384
  if (K(() => {
1364
- d || s || l || c(g);
1365
- }, [d, s, l, c, r, g]), l) {
1385
+ d || a || l || c(g);
1386
+ }, [d, a, l, c, r, g]), l) {
1366
1387
  if (i || console.error(
1367
- `Error detected in AuthGuard [isAuthenticated=${s},isLoading=${d}]`,
1388
+ `Error detected in AuthGuard [isAuthenticated=${a},isLoading=${d}]`,
1368
1389
  l
1369
1390
  ), n === "all")
1370
1391
  throw l;
1371
- if (Hn(l)) {
1392
+ if (Un(l)) {
1372
1393
  let h = "Auth error", b = "An unknown Auth0 error occurred.";
1373
1394
  if (Wn(l))
1374
1395
  h = "Unauthorised", b = `You are not authorised to access ${t}.`;
1375
- else if (Un(l))
1376
- h = "App not authorised", b = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
1377
1396
  else if (zn(l))
1397
+ h = "App not authorised", b = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
1398
+ else if (Gn(l))
1378
1399
  h = "Auth0 script execution time exceeded", b = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute by clicking the RELOAD button below.";
1379
1400
  else if (l.message === "Invalid state") {
1380
1401
  const S = localStorage.getItem("auth0_redirect_count");
@@ -1383,14 +1404,14 @@ function _o({
1383
1404
  return /* @__PURE__ */ p(nt, { open: !0, children: [
1384
1405
  /* @__PURE__ */ o(it, { children: h }),
1385
1406
  /* @__PURE__ */ p(rt, { children: [
1386
- /* @__PURE__ */ o(O, { children: b }),
1407
+ /* @__PURE__ */ o(F, { children: b }),
1387
1408
  /* @__PURE__ */ o("br", {}),
1388
- /* @__PURE__ */ o(O, { variant: "subtitle2", children: "Details from Auth0" }),
1389
- /* @__PURE__ */ p(O, { variant: "body2", children: [
1409
+ /* @__PURE__ */ o(F, { variant: "subtitle2", children: "Details from Auth0" }),
1410
+ /* @__PURE__ */ p(F, { variant: "body2", children: [
1390
1411
  "error: ",
1391
1412
  (C = l == null ? void 0 : l.error) != null ? C : "N/A"
1392
1413
  ] }),
1393
- /* @__PURE__ */ p(O, { variant: "body2", children: [
1414
+ /* @__PURE__ */ p(F, { variant: "body2", children: [
1394
1415
  "description: ",
1395
1416
  (v = l == null ? void 0 : l.error_description) != null ? v : "N/A"
1396
1417
  ] })
@@ -1402,15 +1423,15 @@ function _o({
1402
1423
  ] });
1403
1424
  } else if (n === "unknown") throw l;
1404
1425
  }
1405
- return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(_, { children: e })) : /* @__PURE__ */ o(tn, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1426
+ return a ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(L, { children: e })) : /* @__PURE__ */ o(tn, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1406
1427
  }
1407
- const Gn = {
1428
+ const Vn = {
1408
1429
  autoHideDuration: 6e3,
1409
1430
  anchorOrigin: { vertical: "top", horizontal: "center" },
1410
1431
  // The default is false. If we prefer timer to continue when window loses
1411
1432
  // focus, change to true
1412
1433
  disableWindowBlurListener: !1
1413
- }, Vn = {
1434
+ }, qn = {
1414
1435
  shouldClose: (e, t) => t !== "clickaway"
1415
1436
  }, Xe = {
1416
1437
  message: "",
@@ -1418,48 +1439,48 @@ const Gn = {
1418
1439
  variant: "standard",
1419
1440
  progressIndicator: void 0
1420
1441
  // Can use 'circular' or 'linear'
1421
- }, Ye = 100, Ke = 2e3, qn = 2e3, Xn = /* @__PURE__ */ (() => {
1442
+ }, Ye = 100, Ke = 2e3, Xn = 2e3, Yn = /* @__PURE__ */ (() => {
1422
1443
  let e = 0;
1423
1444
  return () => (e += 1, e);
1424
- })(), Yn = {
1445
+ })(), Kn = {
1425
1446
  borderBottomLeftRadius: "0px",
1426
1447
  borderBottomRightRadius: "0px"
1427
- }, Kn = {}, Qn = {}, bt = Ze(null);
1428
- function Jn(s) {
1429
- var d = s, {
1430
- overrideState: e = Kn,
1431
- overrideActions: t = Qn,
1432
- shouldClose: n = Vn.shouldClose,
1448
+ }, Qn = {}, Jn = {}, bt = Ze(null);
1449
+ function Zn(a) {
1450
+ var d = a, {
1451
+ overrideState: e = Qn,
1452
+ overrideActions: t = Jn,
1453
+ shouldClose: n = qn.shouldClose,
1433
1454
  children: i
1434
- } = d, r = Fe(d, [
1455
+ } = d, r = Oe(d, [
1435
1456
  "overrideState",
1436
1457
  "overrideActions",
1437
1458
  "shouldClose",
1438
1459
  "children"
1439
1460
  ]);
1440
1461
  var m;
1441
- const [{ open: l }, c] = B({ open: !1 }), u = ge([]), g = ge(Date.now()), C = ge(0), v = re((x) => {
1462
+ const [{ open: l }, c] = N({ open: !1 }), u = ge([]), g = ge(Date.now()), C = ge(0), v = re((x) => {
1442
1463
  c({ open: x });
1443
1464
  }, []), h = re((x = {}) => {
1444
1465
  C.current += 1, u.current.length >= Ye && Date.now() - g.current >= Ke && (g.current = Date.now(), console.error(
1445
1466
  `SaladBarProvider: MAX_QUEUE_LENGTH (${Ye}) hit ${C.current} times in last ${Ke}ms)`
1446
1467
  ), C.current = 0);
1447
- const A = a(I(a({}, Xe), {
1448
- key: Xn()
1468
+ const A = s(I(s({}, Xe), {
1469
+ key: Yn()
1449
1470
  }), x);
1450
1471
  return u.current.push(A), u.current.length === 1 && c({ open: !0 }), A.key;
1451
- }, []), b = (x = "", A = {}) => h(a({ message: x, severity: "success" }, A)), S = (x = "", A = {}) => h(a({ message: x, severity: "info" }, A)), $ = (x = "", A = {}) => h(a({ message: x, severity: "warning" }, A)), D = (x = "", A = {}) => h(a({ message: x, severity: "error" }, A)), E = (x) => {
1472
+ }, []), b = (x = "", A = {}) => h(s({ message: x, severity: "success" }, A)), S = (x = "", A = {}) => h(s({ message: x, severity: "info" }, A)), $ = (x = "", A = {}) => h(s({ message: x, severity: "warning" }, A)), D = (x = "", A = {}) => h(s({ message: x, severity: "error" }, A)), E = (x) => {
1452
1473
  const A = u.current.findIndex((H) => H.key === x);
1453
1474
  if (A !== -1)
1454
1475
  return A === 0 ? (c({ open: !1 }), u.current[0]) : u.current.splice(A, 1);
1455
1476
  }, T = (x, A) => {
1456
1477
  n(x, A) && c({ open: !1 });
1457
- }, L = () => {
1458
- }, N = () => {
1478
+ }, P = () => {
1479
+ }, B = () => {
1459
1480
  u.current.shift(), u.current.length > 0 && c({ open: !0 });
1460
- }, w = (m = u.current[0]) != null ? m : a({}, Xe), y = {};
1481
+ }, w = (m = u.current[0]) != null ? m : s({}, Xe), y = {};
1461
1482
  "autoHideDuration" in w && (y.autoHideDuration = w.autoHideDuration);
1462
- const M = a(a({}, Gn), r), f = a(a({
1483
+ const M = s(s({}, Vn), r), f = s(s({
1463
1484
  open: l,
1464
1485
  setOpen: v,
1465
1486
  enqueueNotification: h,
@@ -1472,15 +1493,15 @@ function Jn(s) {
1472
1493
  return /* @__PURE__ */ p(bt.Provider, { value: f, children: [
1473
1494
  i,
1474
1495
  /* @__PURE__ */ o(
1475
- Ut,
1476
- I(a(a({}, M), y), {
1496
+ Wt,
1497
+ I(s(s({}, M), y), {
1477
1498
  open: l,
1478
1499
  onClose: T,
1479
1500
  TransitionProps: {
1480
- onExited: N,
1481
- onExit: L
1501
+ onExited: B,
1502
+ onExit: P
1482
1503
  },
1483
- sx: { zIndex: qn },
1504
+ sx: { zIndex: Xn },
1484
1505
  children: /* @__PURE__ */ p("div", { children: [
1485
1506
  /* @__PURE__ */ o(
1486
1507
  zt,
@@ -1489,7 +1510,7 @@ function Jn(s) {
1489
1510
  severity: w.severity,
1490
1511
  variant: "filled",
1491
1512
  icon: w.progressIndicator === "circular" ? /* @__PURE__ */ o(Se, { size: "1em" }) : void 0,
1492
- style: w.progressIndicator === "linear" ? Yn : void 0,
1513
+ style: w.progressIndicator === "linear" ? Kn : void 0,
1493
1514
  children: w.message
1494
1515
  }
1495
1516
  ),
@@ -1499,24 +1520,24 @@ function Jn(s) {
1499
1520
  )
1500
1521
  ] });
1501
1522
  }
1502
- function Zn() {
1523
+ function jn() {
1503
1524
  const e = je(bt);
1504
1525
  if (e === null)
1505
1526
  throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1506
1527
  return e;
1507
1528
  }
1508
- const Lo = Ie(
1509
- (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Jn, I(a({}, e), { overrideState: t, overrideActions: n, children: i }))
1529
+ const Ro = Ie(
1530
+ (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Zn, I(s({}, e), { overrideState: t, overrideActions: n, children: i }))
1510
1531
  ), St = "domainCode";
1511
1532
  var Je;
1512
1533
  const Qe = R(
1513
1534
  JSON.parse((Je = localStorage.getItem(St)) != null ? Je : '{"domainCode": ""}').domainCode
1514
- ), jn = R(
1535
+ ), eo = R(
1515
1536
  (e) => e(Qe),
1516
1537
  (e, t, n) => {
1517
1538
  t(Qe, n), localStorage.setItem(St, JSON.stringify({ domainCode: n }));
1518
1539
  }
1519
- ), eo = {
1540
+ ), to = {
1520
1541
  act: "ACT",
1521
1542
  nsw: "NSW",
1522
1543
  nt: "NT",
@@ -1528,21 +1549,21 @@ const Qe = R(
1528
1549
  ag: "AG",
1529
1550
  fedmps: "Fedmps",
1530
1551
  "": ""
1531
- }, to = (e) => {
1552
+ }, no = (e) => {
1532
1553
  var t;
1533
- return e === null ? "N/A" : (t = eo[e]) != null ? t : "";
1534
- }, Mo = ({
1554
+ return e === null ? "N/A" : (t = to[e]) != null ? t : "";
1555
+ }, Ho = ({
1535
1556
  isLoading: e,
1536
1557
  isOpen: t,
1537
1558
  onClose: n,
1538
1559
  onDomainChange: i,
1539
1560
  domainOptions: r,
1540
- applicationName: s,
1561
+ applicationName: a,
1541
1562
  handleLogout: d
1542
1563
  }) => {
1543
- const [l, c] = V(jn), [u, g] = B(l), { enqueueSuccessNotification: C } = Zn(), v = r.length === 0, h = !!l && !r.includes(l) && !r.includes(u), b = !l || v || h, S = () => P(void 0, null, function* () {
1564
+ const [l, c] = V(eo), [u, g] = N(l), { enqueueSuccessNotification: C } = jn(), v = r.length === 0, h = !!l && !r.includes(l) && !r.includes(u), b = !l || v || h, S = () => _(void 0, null, function* () {
1544
1565
  u ? (c(u), i == null || i(u), C(`Set organisation to ${u}`), n()) : (c(""), i == null || i(""));
1545
- }), $ = () => P(void 0, null, function* () {
1566
+ }), $ = () => _(void 0, null, function* () {
1546
1567
  l && !v && !h ? (g(l), n()) : b && d();
1547
1568
  });
1548
1569
  let D;
@@ -1564,9 +1585,9 @@ const Qe = R(
1564
1585
  onClose: b ? () => {
1565
1586
  } : n,
1566
1587
  children: [
1567
- /* @__PURE__ */ p(O, { marginBottom: 2, children: [
1588
+ /* @__PURE__ */ p(F, { marginBottom: 2, children: [
1568
1589
  "Select the default organisation that you want to use with the ",
1569
- s,
1590
+ a,
1570
1591
  "."
1571
1592
  ] }),
1572
1593
  /* @__PURE__ */ o(
@@ -1577,15 +1598,15 @@ const Qe = R(
1577
1598
  disableClearable: !1,
1578
1599
  value: u !== "" ? u : null,
1579
1600
  onChange: (E, T) => g(T != null ? T : ""),
1580
- getOptionLabel: to,
1601
+ getOptionLabel: no,
1581
1602
  options: [...r],
1582
1603
  renderInput: (E) => /* @__PURE__ */ o(
1583
1604
  be,
1584
- I(a({}, E), {
1605
+ I(s({}, E), {
1585
1606
  variant: "filled",
1586
1607
  label: "Select organisation",
1587
- InputProps: I(a({}, E.InputProps), {
1588
- endAdornment: /* @__PURE__ */ p(_, { children: [
1608
+ InputProps: I(s({}, E.InputProps), {
1609
+ endAdornment: /* @__PURE__ */ p(L, { children: [
1589
1610
  e ? /* @__PURE__ */ o(Se, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1590
1611
  E.InputProps.endAdornment
1591
1612
  ] })
@@ -1598,7 +1619,7 @@ const Qe = R(
1598
1619
  ]
1599
1620
  }
1600
1621
  );
1601
- }, Ro = st({
1622
+ }, Uo = st({
1602
1623
  palette: {
1603
1624
  primary: {
1604
1625
  dark: "#00A651",
@@ -1649,7 +1670,7 @@ const Qe = R(
1649
1670
  navBar: {
1650
1671
  backgroundColor: "#E8E8E8"
1651
1672
  }
1652
- }), Ho = st({
1673
+ }), Wo = st({
1653
1674
  palette: {
1654
1675
  primary: {
1655
1676
  main: "#007236",
@@ -1746,45 +1767,46 @@ const Qe = R(
1746
1767
  });
1747
1768
  export {
1748
1769
  vt as AgDialog,
1749
- Oo as AppLayout,
1750
- _o as AuthGuard,
1770
+ No as AppLayout,
1771
+ Mo as AuthGuard,
1751
1772
  bt as Context,
1752
1773
  ke as ContextError,
1753
- Mo as DomainCodeDialog,
1754
- bo as ExampleComponent,
1755
- Fo as FetchAutocomplete,
1756
- Bo as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1774
+ Ho as DomainCodeDialog,
1775
+ So as ExampleComponent,
1776
+ Bo as FetchAutocomplete,
1777
+ _o as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1757
1778
  gt as NAVBAR_WIDTH_CLOSED,
1758
1779
  ht as NAVBAR_WIDTH_OPENED,
1759
- $o as NavBar,
1760
- ko as NavBarDarkStyledList,
1761
- yo as NavBarLightStyledList,
1780
+ Do as NavBar,
1781
+ yo as NavBarDarkStyledList,
1782
+ $o as NavBarLightStyledList,
1762
1783
  cn as NavBarProvider,
1763
- Do as PageLayout,
1764
- Jn as SaladBarProvider,
1784
+ To as PageLayout,
1785
+ Zn as SaladBarProvider,
1765
1786
  Po as SessionExpiryDialog,
1766
- No as SingleAutocomplete,
1787
+ Lo as SingleAutocomplete,
1767
1788
  un as buildNavBarState,
1768
- jn as domainCodeAtom,
1769
- Ro as fed21Theme,
1770
- Rn as getAuth0Expiry,
1771
- Ho as internalAgSystemsTheme,
1789
+ Oo as determineUserLevelFromClaims,
1790
+ eo as domainCodeAtom,
1791
+ Uo as fed21Theme,
1792
+ Hn as getAuth0Expiry,
1793
+ Wo as internalAgSystemsTheme,
1772
1794
  q as navBarClasses,
1773
1795
  ae as navBarOpenAtom,
1774
1796
  $n as navBarTopAtom,
1775
1797
  In as navBarWidthClosedAtom,
1776
1798
  Sn as navBarWidthOpenAtom,
1777
- Fn as simpleHashCode,
1778
- To as suppressConsole,
1779
- Ue as titleTextAtom,
1799
+ Nn as simpleHashCode,
1800
+ Eo as suppressConsole,
1801
+ We as titleTextAtom,
1780
1802
  yn as topBarHeightAtom,
1781
1803
  kn as topBarMiddleAtom,
1782
- Eo as unsuppressConsole,
1804
+ Fo as unsuppressConsole,
1783
1805
  At as useAutocompleteOptions,
1784
1806
  dn as useNavBar,
1785
- Zn as useSaladBar,
1786
- Io as withBrowserRouter,
1787
- So as withNavBarProvider,
1788
- Lo as withSaladBarProvider
1807
+ jn as useSaladBar,
1808
+ ko as withBrowserRouter,
1809
+ Io as withNavBarProvider,
1810
+ Ro as withSaladBarProvider
1789
1811
  };
1790
1812
  //# sourceMappingURL=index.js.map