@australiangreens/ag-internal-components 0.1.15 → 0.1.17

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 Lt = Object.defineProperty, Mt = Object.defineProperties;
2
- var Rt = Object.getOwnPropertyDescriptors;
1
+ var _t = Object.defineProperty, Lt = Object.defineProperties;
2
+ var Mt = Object.getOwnPropertyDescriptors;
3
3
  var oe = Object.getOwnPropertySymbols;
4
4
  var Oe = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
5
- var ge = (e, t, n) => t in e ? Lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
5
+ var ge = (e, t, n) => t in e ? _t(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
7
  Oe.call(t, n) && ge(e, n, t[n]);
8
8
  if (oe)
9
9
  for (var n of oe(t))
10
10
  Be.call(t, n) && ge(e, n, t[n]);
11
11
  return e;
12
- }, y = (e, t) => Mt(e, Rt(t));
12
+ }, y = (e, t) => Lt(e, Mt(t));
13
13
  var Fe = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
@@ -37,25 +37,25 @@ var _ = (e, t, n) => new Promise((i, r) => {
37
37
  l((n = n.apply(e, t)).next());
38
38
  });
39
39
  import { jsxs as p, Fragment as N, jsx as o } from "react/jsx-runtime";
40
- import { useState as F, createContext as Ze, useCallback as se, useContext as je, useEffect as K, createElement as ve, useMemo as Ht, useRef as fe } from "react";
41
- import { Typography as O, Button as J, Paper as et, Box as I, Drawer as Ae, styled as be, IconButton as Z, Container as tt, useTheme as le, useMediaQuery as Wt, Collapse as Ut, Avatar as Pe, Fade as zt, Skeleton as _e, Toolbar as Gt, Divider as Le, CssBaseline as Vt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Se, TextField as ye, CircularProgress as Ie, Chip as qt, Tooltip as Xt, Stack as Qt, Snackbar as Yt, Alert as Kt, FormHelperText as Jt } from "@mui/material";
42
- import Zt from "@mui/material/CssBaseline";
40
+ import { useState as F, createContext as Ze, useCallback as se, useContext as je, useEffect as K, createElement as we, useMemo as Rt, useRef as fe } from "react";
41
+ import { Typography as O, Button as J, Paper as et, Box as I, Drawer as Ae, styled as be, IconButton as Z, Container as tt, useTheme as le, useMediaQuery as Ht, Collapse as Wt, Avatar as Pe, Fade as Ut, Skeleton as _e, Toolbar as zt, Divider as Le, CssBaseline as Gt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Se, TextField as ye, CircularProgress as Ie, Chip as Vt, Tooltip as qt, Stack as Xt, Snackbar as Qt, Alert as Yt, FormHelperText as Kt } from "@mui/material";
42
+ import Jt from "@mui/material/CssBaseline";
43
43
  import { styled as W, createTheme as st, alpha as me } from "@mui/material/styles";
44
- import { AgError as jt } from "@australiangreens/ag-error";
44
+ import { AgError as Zt } from "@australiangreens/ag-error";
45
45
  import { createHelper as Q } from "souvlaki";
46
- import { BrowserRouter as en } from "react-router-dom";
46
+ import { BrowserRouter as jt } from "react-router-dom";
47
47
  import lt from "@mui/material/List";
48
- import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as tn, Cancel as nn, ArrowDropDown as on } from "@mui/icons-material";
49
- import { atom as R, useSetAtom as ut, useAtomValue as Me, useAtom as V, getDefaultStore as rn, Provider as pt } from "jotai";
50
- import { useHydrateAtoms as ht } from "jotai/utils";
48
+ import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as en, Cancel as tn, ArrowDropDown as nn } from "@mui/icons-material";
49
+ import { atom as R, useSetAtom as ut, useAtomValue as Me, useAtom as V, Provider as on } from "jotai";
50
+ import { useHydrateAtoms as pt } from "jotai/utils";
51
51
  import Re from "react-avatar";
52
- import an from "autosuggest-highlight/match";
53
- import sn from "autosuggest-highlight/parse";
54
- import { useQuery as ln, QueryClient as cn, QueryClientProvider as dn } from "@tanstack/react-query";
55
- import { useAuth0 as gt } from "@auth0/auth0-react";
56
- import { Buffer as un } from "buffer";
57
- import pn from "@mui/material/Skeleton";
58
- function Oo({ text: e }) {
52
+ import rn from "autosuggest-highlight/match";
53
+ import an from "autosuggest-highlight/parse";
54
+ import { useQuery as sn, QueryClient as ln, QueryClientProvider as cn } from "@tanstack/react-query";
55
+ import { useAuth0 as ht } from "@auth0/auth0-react";
56
+ import { Buffer as dn } from "buffer";
57
+ import un from "@mui/material/Skeleton";
58
+ function To({ text: e }) {
59
59
  const [t, n] = F(0);
60
60
  return /* @__PURE__ */ p(N, { children: [
61
61
  /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
@@ -79,7 +79,7 @@ function Oo({ text: e }) {
79
79
  ] })
80
80
  ] });
81
81
  }
82
- const ft = 330, mt = 73, z = "Navbar", q = {
82
+ const gt = 330, ft = 73, z = "Navbar", q = {
83
83
  root: `${z}-root`,
84
84
  menuButton: `${z}-menuButton`,
85
85
  hide: `${z}-hide`,
@@ -87,7 +87,7 @@ const ft = 330, mt = 73, z = "Navbar", q = {
87
87
  userInfoHolder: `${z}-userInfoHolder`,
88
88
  settings: `${z}-settings`,
89
89
  pieChartIcon: `${z}-pieChartIcon`
90
- }, hn = W(I, {
90
+ }, pn = W(I, {
91
91
  name: "NavBar"
92
92
  })(({ theme: e }) => ({
93
93
  [`&.${q.root}`]: {
@@ -108,7 +108,7 @@ const ft = 330, mt = 73, z = "Navbar", q = {
108
108
  marginTop: "64px",
109
109
  marginBottom: "16px"
110
110
  }
111
- })), xt = () => ({
111
+ })), mt = () => ({
112
112
  position: "absolute",
113
113
  height: "100%",
114
114
  overflowX: "hidden",
@@ -116,29 +116,29 @@ const ft = 330, mt = 73, z = "Navbar", q = {
116
116
  color: "white",
117
117
  backgroundColor: "black"
118
118
  // backgroundColor: '#e8e8e8',
119
- }), gn = () => a({
119
+ }), hn = () => a({
120
+ width: gt
121
+ }, mt()), gn = () => a({
120
122
  width: ft
121
- }, xt()), fn = () => a({
122
- width: mt
123
- }, xt()), mn = W(Ae, {
123
+ }, mt()), fn = W(Ae, {
124
124
  shouldForwardProp: (e) => e !== "open"
125
125
  })(({ theme: e, open: t }) => a(a({
126
- width: t ? ft : mt,
126
+ width: t ? gt : ft,
127
127
  flexShrink: 0,
128
128
  whiteSpace: "nowrap",
129
129
  boxSizing: "border-box",
130
130
  zIndex: e.zIndex.drawer + 100
131
131
  }, t && {
132
- "& .MuiDrawer-paper": gn()
132
+ "& .MuiDrawer-paper": hn()
133
133
  }), !t && {
134
- "& .MuiDrawer-paper": fn()
134
+ "& .MuiDrawer-paper": gn()
135
135
  }));
136
- class ke extends jt {
136
+ class ke extends Zt {
137
137
  }
138
138
  Ne(ke, "errorName", "ContextError");
139
- const Ct = Ze(null), xn = {}, Cn = {}, vn = ({
140
- overrideState: e = xn,
141
- overrideActions: t = Cn,
139
+ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
140
+ overrideState: e = mn,
141
+ overrideActions: t = xn,
142
142
  children: n
143
143
  }) => {
144
144
  const [{ open: i }, r] = F({ open: !0 }), s = se((c) => {
@@ -150,17 +150,17 @@ const Ct = Ze(null), xn = {}, Cn = {}, vn = ({
150
150
  setOpen: s,
151
151
  toggleOpen: d
152
152
  }, e), t);
153
- return /* @__PURE__ */ o(Ct.Provider, { value: l, children: n });
153
+ return /* @__PURE__ */ o(xt.Provider, { value: l, children: n });
154
154
  }, wn = () => {
155
- const e = je(Ct);
155
+ const e = je(xt);
156
156
  if (e === null)
157
157
  throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
158
158
  return e;
159
- }, An = (e = {}) => a({
159
+ }, vn = (e = {}) => a({
160
160
  open: !0
161
- }, e), Bo = Q(
162
- (e = An(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(vn, { overrideState: e, overrideActions: t, children: n })
163
- ), Fo = Q(() => ({ children: e }) => /* @__PURE__ */ o(en, { children: e })), He = 7, No = W(lt)(({ theme: e }) => ({
161
+ }, e), Eo = Q(
162
+ (e = vn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(Cn, { overrideState: e, overrideActions: t, children: n })
163
+ ), Oo = Q(() => ({ children: e }) => /* @__PURE__ */ o(jt, { children: e })), He = 7, Bo = W(lt)(({ theme: e }) => ({
164
164
  backgroundColor: "black",
165
165
  color: "white",
166
166
  "& .MuiListItem-root": {
@@ -198,7 +198,7 @@ const Ct = Ze(null), xn = {}, Cn = {}, vn = ({
198
198
  // '&.Mui-selected.Mui-focusVisible:hover': {
199
199
  // },
200
200
  }
201
- })), We = 7, Po = W(lt)(({ theme: e }) => ({
201
+ })), We = 7, Fo = W(lt)(({ theme: e }) => ({
202
202
  backgroundColor: "#e8e8e8",
203
203
  color: "inherit",
204
204
  "& .MuiListItem-root": {
@@ -237,15 +237,15 @@ const Ct = Ze(null), xn = {}, Cn = {}, vn = ({
237
237
  // },
238
238
  }
239
239
  }));
240
- function _o({
240
+ function No({
241
241
  "data-testid": e,
242
242
  children: t
243
243
  }) {
244
244
  const { open: n } = wn();
245
- return /* @__PURE__ */ p(hn, { className: q.root, "data-testid": e, children: [
246
- /* @__PURE__ */ o(Zt, {}),
245
+ return /* @__PURE__ */ p(pn, { className: q.root, "data-testid": e, children: [
246
+ /* @__PURE__ */ o(Jt, {}),
247
247
  /* @__PURE__ */ o(
248
- mn,
248
+ fn,
249
249
  {
250
250
  variant: "permanent",
251
251
  anchor: "left",
@@ -256,14 +256,14 @@ function _o({
256
256
  )
257
257
  ] });
258
258
  }
259
- const bn = 24, Sn = 64, G = "TopBar", B = {
259
+ const An = 24, bn = 64, G = "TopBar", B = {
260
260
  topStripe: `${G}-topStripe`,
261
261
  titleBar: `${G}-titleBar`,
262
262
  titleSlider: `${G}-titleSlider`,
263
263
  titleText: `${G}-titleText`,
264
264
  leftPanelButton: `${G}-leftPanelButton`,
265
265
  rightPanelButton: `${G}-leftPanelButton`
266
- }, yn = be("div", {
266
+ }, Sn = be("div", {
267
267
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
268
268
  name: G
269
269
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
@@ -272,12 +272,12 @@ const bn = 24, Sn = 64, G = "TopBar", B = {
272
272
  width: "100%",
273
273
  [`& .${B.topStripe}`]: {
274
274
  width: "100%",
275
- height: `${bn}px`,
275
+ height: `${An}px`,
276
276
  backgroundColor: e.palette.primary.main
277
277
  },
278
278
  [`& .${B.titleBar}`]: {
279
279
  backgroundColor: e.palette.primary.light,
280
- height: `${Sn}px`,
280
+ height: `${bn}px`,
281
281
  padding: e.spacing(0, 3),
282
282
  width: "100%"
283
283
  },
@@ -315,13 +315,13 @@ const bn = 24, Sn = 64, G = "TopBar", B = {
315
315
  })
316
316
  };
317
317
  });
318
- function In({
318
+ function yn({
319
319
  titleText: e = "",
320
320
  leftPanel: t,
321
321
  rightPanel: n,
322
322
  "data-testid": i
323
323
  }) {
324
- return /* @__PURE__ */ p(yn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
324
+ return /* @__PURE__ */ p(Sn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
325
325
  /* @__PURE__ */ o("div", { className: B.topStripe }),
326
326
  /* @__PURE__ */ o("div", { className: B.titleBar, children: /* @__PURE__ */ p(I, { className: B.titleSlider, children: [
327
327
  t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
@@ -358,7 +358,7 @@ function In({
358
358
  ] }) })
359
359
  ] });
360
360
  }
361
- const vt = 400, kn = be(Ae, {
361
+ const Ct = 400, In = be(Ae, {
362
362
  shouldForwardProp: (e) => (
363
363
  // Note we do want anchor to be forwarded to the Drawer component
364
364
  ![
@@ -388,7 +388,7 @@ const vt = 400, kn = be(Ae, {
388
388
  marginLeft: `${r}px`
389
389
  }))
390
390
  })
391
- ), $n = be(I, {
391
+ ), kn = be(I, {
392
392
  shouldForwardProp: (e) => !["anchor"].includes(e)
393
393
  })(({ theme: e, anchor: t }) => y(a({
394
394
  display: "flex",
@@ -415,19 +415,19 @@ function Ue({
415
415
  onClose: i = () => {
416
416
  },
417
417
  titleText: r = "",
418
- width: s = vt,
418
+ width: s = Ct,
419
419
  showCloseArrow: d = !0,
420
420
  debugOpacity: l = !1,
421
421
  headerBoxProps: c = {},
422
422
  onOpened: u,
423
423
  onClosed: g,
424
424
  "data-testid": C,
425
- navBarOpen: w = !1,
425
+ navBarOpen: v = !1,
426
426
  navBarWidthOpen: h = 0,
427
427
  navBarWidthClosed: b = 0
428
428
  }) {
429
429
  return /* @__PURE__ */ p(
430
- kn,
430
+ In,
431
431
  {
432
432
  SlideProps: {
433
433
  onEntered: () => u == null ? void 0 : u(),
@@ -439,11 +439,11 @@ function Ue({
439
439
  width: s,
440
440
  debugOpacity: l,
441
441
  "data-testid": C,
442
- navBarOpen: w,
442
+ navBarOpen: v,
443
443
  navBarWidthOpen: h,
444
444
  navBarWidthClosed: b,
445
445
  children: [
446
- /* @__PURE__ */ o($n, y(a({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ p(N, { children: [
446
+ /* @__PURE__ */ o(kn, y(a({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ p(N, { children: [
447
447
  /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", children: r }),
448
448
  d && /* @__PURE__ */ p(Z, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
449
449
  /* @__PURE__ */ o(dt, { "data-testid": "arrowbackicon" }),
@@ -461,7 +461,7 @@ function Ue({
461
461
  }
462
462
  );
463
463
  }
464
- const Dn = W(I, {
464
+ const $n = W(I, {
465
465
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
466
466
  name: "PanelAwareMargins"
467
467
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
@@ -484,7 +484,7 @@ const Dn = W(I, {
484
484
  }),
485
485
  marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
486
486
  });
487
- }), Tn = W(tt, {
487
+ }), Dn = W(tt, {
488
488
  name: "PageContainer"
489
489
  })(({ theme: e }) => ({
490
490
  // Horizontal padding comes from the Container's gutter
@@ -494,7 +494,7 @@ const Dn = W(I, {
494
494
  })), xe = !1, Ce = !1, ie = {
495
495
  titleText: "",
496
496
  flavour: "push",
497
- width: vt,
497
+ width: Ct,
498
498
  arrowButtons: "both",
499
499
  startOpen: !1,
500
500
  open: void 0,
@@ -504,7 +504,7 @@ const Dn = W(I, {
504
504
  onClosed: void 0,
505
505
  dataTestId: void 0
506
506
  };
507
- function Lo({
507
+ function Po({
508
508
  children: e,
509
509
  titleText: t = "",
510
510
  leftPanel: n,
@@ -518,8 +518,8 @@ function Lo({
518
518
  navBarWidthOpen: g,
519
519
  navBarWidthClosed: C
520
520
  }) {
521
- const [w, h] = F(xe), [b, S] = F(Ce), [$, D] = F(xe), [E, T] = F(Ce), L = n !== void 0, P = i !== void 0, {
522
- titleText: v,
521
+ const [v, h] = F(xe), [b, S] = F(Ce), [$, D] = F(xe), [E, T] = F(Ce), L = n !== void 0, P = i !== void 0, {
522
+ titleText: w,
523
523
  content: k,
524
524
  flavour: M,
525
525
  open: f,
@@ -529,40 +529,40 @@ function Lo({
529
529
  startOpen: H,
530
530
  onOpened: ee,
531
531
  onClosed: ce,
532
- dataTestId: Ot
532
+ dataTestId: Et
533
533
  } = n ? a(a({}, ie), n) : a({}, ie), {
534
- titleText: Bt,
535
- content: Ft,
534
+ titleText: Ot,
535
+ content: Bt,
536
536
  flavour: $e,
537
537
  open: de,
538
538
  onChangeOpen: De,
539
539
  width: ue,
540
540
  arrowButtons: te,
541
541
  startOpen: ne,
542
- onOpened: Nt,
543
- onClosed: Pt,
544
- dataTestId: _t
542
+ onOpened: Ft,
543
+ onClosed: Nt,
544
+ dataTestId: Pt
545
545
  } = i ? a(a({}, ie), i) : a({}, ie);
546
546
  K(() => {
547
547
  H !== xe && (h(H), D(H));
548
548
  }, [H]), K(() => {
549
549
  ne !== Ce && (S(ne), T(ne));
550
550
  }, [ne]);
551
- const pe = f === void 0 ? w : f, he = de === void 0 ? b : de, Te = (U) => {
551
+ const pe = f === void 0 ? v : f, he = de === void 0 ? b : de, Te = (U) => {
552
552
  f === void 0 && (h(U), r && P && (U ? (S(!1), T(b)) : S(E))), m && m(U);
553
553
  }, Ee = (U) => {
554
- de === void 0 && (S(U), r && L && (U ? (h(!1), D(w)) : h($))), De && De(U);
554
+ de === void 0 && (S(U), r && L && (U ? (h(!1), D(v)) : h($))), De && De(U);
555
555
  };
556
556
  return /* @__PURE__ */ p(I, { children: [
557
557
  L && /* @__PURE__ */ o(
558
558
  Ue,
559
559
  {
560
- "data-testid": Ot,
560
+ "data-testid": Et,
561
561
  anchor: "left",
562
562
  open: pe,
563
563
  onClose: () => Te(!1),
564
564
  width: x,
565
- titleText: v,
565
+ titleText: w,
566
566
  debugOpacity: s,
567
567
  showCloseArrow: A === "both" || A === "close",
568
568
  onOpened: ee,
@@ -576,24 +576,24 @@ function Lo({
576
576
  P && /* @__PURE__ */ o(
577
577
  Ue,
578
578
  {
579
- "data-testid": _t,
579
+ "data-testid": Pt,
580
580
  anchor: "right",
581
581
  open: he,
582
582
  onClose: () => Ee(!1),
583
583
  width: ue,
584
- titleText: Bt,
584
+ titleText: Ot,
585
585
  debugOpacity: s,
586
586
  showCloseArrow: te === "both" || te === "close",
587
- onOpened: Nt,
588
- onClosed: Pt,
587
+ onOpened: Ft,
588
+ onClosed: Nt,
589
589
  navBarOpen: u,
590
590
  navBarWidthOpen: g,
591
591
  navBarWidthClosed: C,
592
- children: Ft
592
+ children: Bt
593
593
  }
594
594
  ),
595
595
  /* @__PURE__ */ o(
596
- In,
596
+ yn,
597
597
  a(a({
598
598
  titleText: t,
599
599
  "data-testid": c
@@ -614,7 +614,7 @@ function Lo({
614
614
  } : {})
615
615
  ),
616
616
  /* @__PURE__ */ o(
617
- Dn,
617
+ $n,
618
618
  y(a(a({}, M === "push" ? {
619
619
  leftPanel: {
620
620
  open: pe,
@@ -626,16 +626,16 @@ function Lo({
626
626
  width: ue
627
627
  }
628
628
  } : {}), {
629
- children: /* @__PURE__ */ o(Tn, y(a({ "data-testid": l }, d), { children: e }))
629
+ children: /* @__PURE__ */ o(Dn, y(a({ "data-testid": l }, d), { children: e }))
630
630
  })
631
631
  )
632
632
  ] });
633
633
  }
634
634
  const wt = () => {
635
635
  const e = le();
636
- return Wt(e.breakpoints.down("sm"));
637
- }, En = 64, On = 72, Bn = 256, j = R(!0), At = R(Bn), bt = R(On), we = R(""), Fn = R(void 0), St = R(En), yt = R(void 0);
638
- function Nn({ links: e }) {
636
+ return Ht(e.breakpoints.down("sm"));
637
+ }, Tn = 64, En = 72, On = 256, j = R(!0), vt = R(On), At = R(En), ve = R(""), Bn = R(void 0), bt = R(Tn), St = R(void 0);
638
+ function Fn({ links: e }) {
639
639
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
640
640
  }
641
641
  const re = "Navbar", Y = {
@@ -646,7 +646,7 @@ const re = "Navbar", Y = {
646
646
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
647
647
  // settings: `${PREFIX}-settings`,
648
648
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
649
- }, Pn = W(I, { name: "NavBar" })(({ theme: e }) => ({
649
+ }, Nn = W(I, { name: "NavBar" })(({ theme: e }) => ({
650
650
  [`&.${Y.root}`]: {
651
651
  display: "flex"
652
652
  },
@@ -668,10 +668,10 @@ const re = "Navbar", Y = {
668
668
  })), X = (e, t, n) => e.transitions.create(t, {
669
669
  easing: e.transitions.easing.sharp,
670
670
  duration: n === "leaving" ? e.transitions.duration.leavingScreen : e.transitions.duration.enteringScreen
671
- }), _n = (e) => {
671
+ }), Pn = (e) => {
672
672
  const t = le();
673
673
  return /* @__PURE__ */ o(
674
- Ut,
674
+ Wt,
675
675
  a({
676
676
  easing: t.transitions.easing.sharp,
677
677
  timeout: {
@@ -680,7 +680,7 @@ const re = "Navbar", Y = {
680
680
  }
681
681
  }, e)
682
682
  );
683
- }, It = (e) => {
683
+ }, yt = (e) => {
684
684
  var t, n;
685
685
  return {
686
686
  overflowX: "hidden",
@@ -691,10 +691,10 @@ const re = "Navbar", Y = {
691
691
  }, ze = (e, t) => a({
692
692
  width: t,
693
693
  transition: X(e, "width", "entering")
694
- }, It(e)), Ge = (e, t) => a({
694
+ }, yt(e)), Ge = (e, t) => a({
695
695
  width: t,
696
696
  transition: X(e, "width", "leaving")
697
- }, It(e)), Ln = W(Ae, {
697
+ }, yt(e)), _n = W(Ae, {
698
698
  shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
699
699
  })(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => a(a({
700
700
  flexShrink: 0,
@@ -715,7 +715,7 @@ const re = "Navbar", Y = {
715
715
  info: console.info.bind(console),
716
716
  debug: console.debug.bind(console)
717
717
  };
718
- function Mo(e, t) {
718
+ function _o(e, t) {
719
719
  console[e] = (...n) => {
720
720
  for (const i of t)
721
721
  if (typeof i == "function") {
@@ -728,14 +728,14 @@ function Mo(e, t) {
728
728
  ae[e](n);
729
729
  };
730
730
  }
731
- function Ro(e) {
731
+ function Lo(e) {
732
732
  if (e)
733
733
  console[e] = ae[e];
734
734
  else
735
735
  for (const t of Object.keys(ae))
736
736
  console[t] = ae[t];
737
737
  }
738
- function Mn(e) {
738
+ function Ln(e) {
739
739
  let t = 0;
740
740
  for (let n = 0, i = e.length; n < i; n++) {
741
741
  const r = e.charCodeAt(n);
@@ -744,7 +744,7 @@ function Mn(e) {
744
744
  return t;
745
745
  }
746
746
  const Ve = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], qe = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
747
- function Rn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
747
+ function Mn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
748
748
  const r = le();
749
749
  return /* @__PURE__ */ p(
750
750
  I,
@@ -772,7 +772,7 @@ function Rn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
772
772
  sx: {
773
773
  width: "100%",
774
774
  height: "100%",
775
- bgcolor: Ve[Math.abs(Mn(e == null ? void 0 : e.name)) % Ve.length]
775
+ bgcolor: Ve[Math.abs(Ln(e == null ? void 0 : e.name)) % Ve.length]
776
776
  },
777
777
  children: qe(e == null ? void 0 : e.name)
778
778
  }
@@ -795,7 +795,7 @@ function Rn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
795
795
  ] }) }) : /* @__PURE__ */ o(Re, {})
796
796
  }
797
797
  ),
798
- /* @__PURE__ */ o(_n, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(zt, { in: n, children: /* @__PURE__ */ p(I, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
798
+ /* @__PURE__ */ o(Pn, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Ut, { in: n, children: /* @__PURE__ */ p(I, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
799
799
  e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(_e, { animation: !1, width: "50%" }),
800
800
  t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(_e, { animation: !1, width: "25%" })
801
801
  ] }) }) })
@@ -803,7 +803,7 @@ function Rn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
803
803
  }
804
804
  );
805
805
  }
806
- function Hn({
806
+ function Rn({
807
807
  open: e,
808
808
  widthClosed: t,
809
809
  widthOpen: n,
@@ -816,8 +816,8 @@ function Hn({
816
816
  useNewAvatar: u = !1
817
817
  }) {
818
818
  const g = wt(), C = ut(j);
819
- return /* @__PURE__ */ o(Pn, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ p(
820
- Ln,
819
+ return /* @__PURE__ */ o(Nn, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ p(
820
+ _n,
821
821
  {
822
822
  open: e,
823
823
  widthOpen: n,
@@ -832,22 +832,22 @@ function Hn({
832
832
  },
833
833
  isSmallScreen: g,
834
834
  children: [
835
- !g && /* @__PURE__ */ o(Gt, {}),
835
+ !g && /* @__PURE__ */ o(zt, {}),
836
836
  r && /* @__PURE__ */ p(I, { flexGrow: "0", children: [
837
837
  r,
838
838
  /* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } })
839
839
  ] }),
840
- /* @__PURE__ */ o(I, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o(Nn, { links: s }) : s }),
840
+ /* @__PURE__ */ o(I, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o(Fn, { links: s }) : s }),
841
841
  /* @__PURE__ */ p(I, { flexGrow: "0", children: [
842
842
  /* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } }),
843
- /* @__PURE__ */ o(Rn, { user: l, domainCode: c, open: e, useNewAvatar: u }),
843
+ /* @__PURE__ */ o(Mn, { user: l, domainCode: c, open: e, useNewAvatar: u }),
844
844
  d && /* @__PURE__ */ o(N, { children: d })
845
845
  ] })
846
846
  ]
847
847
  }
848
848
  ) });
849
849
  }
850
- function Wn({
850
+ function Hn({
851
851
  children: e,
852
852
  topBarHeight: t,
853
853
  maxWidth: n = !1,
@@ -874,10 +874,10 @@ function Wn({
874
874
  }
875
875
  );
876
876
  }
877
- const Un = "TopBar", zn = {
878
- titleText: `${Un}-titleText`
877
+ const Wn = "TopBar", Un = {
878
+ titleText: `${Wn}-titleText`
879
879
  };
880
- function Gn({
880
+ function zn({
881
881
  titleText: e = "",
882
882
  height: t,
883
883
  "data-testid": n,
@@ -909,16 +909,16 @@ function Gn({
909
909
  color: "inherit",
910
910
  sx: { padding: 1.5, marginLeft: "12px" },
911
911
  onClick: s,
912
- children: /* @__PURE__ */ o(tn, { fontSize: "medium" })
912
+ children: /* @__PURE__ */ o(en, { fontSize: "medium" })
913
913
  }
914
914
  ),
915
- /* @__PURE__ */ o(O, { className: zn.titleText, variant: "h6", component: "h1", children: e }),
915
+ /* @__PURE__ */ o(O, { className: Un.titleText, variant: "h6", component: "h1", children: e }),
916
916
  i
917
917
  ]
918
918
  }
919
919
  ) });
920
920
  }
921
- function Ho({
921
+ function Mo({
922
922
  children: e,
923
923
  initialTitleText: t,
924
924
  initialNavBarOpen: n,
@@ -932,15 +932,15 @@ function Ho({
932
932
  domainCode: g,
933
933
  useNewAvatar: C = !1
934
934
  }) {
935
- ht([
935
+ pt([
936
936
  [j, n != null ? n : !0],
937
- [we, t != null ? t : ""]
937
+ [ve, t != null ? t : ""]
938
938
  ]);
939
- const w = Me(j), [h] = V(At), [b] = V(bt), S = Me(we), [$] = V(St), [D] = V(Fn), [E] = V(yt);
939
+ const v = Me(j), [h] = V(vt), [b] = V(At), S = Me(ve), [$] = V(bt), [D] = V(Bn), [E] = V(St);
940
940
  return /* @__PURE__ */ p(I, { children: [
941
- /* @__PURE__ */ o(Vt, {}),
941
+ /* @__PURE__ */ o(Gt, {}),
942
942
  /* @__PURE__ */ o(
943
- Gn,
943
+ zn,
944
944
  {
945
945
  titleText: S,
946
946
  "data-testid": s,
@@ -950,9 +950,9 @@ function Ho({
950
950
  ),
951
951
  /* @__PURE__ */ p(I, { sx: { display: "flex" }, children: [
952
952
  /* @__PURE__ */ o(
953
- Hn,
953
+ Rn,
954
954
  {
955
- open: w,
955
+ open: v,
956
956
  top: E,
957
957
  middle: l,
958
958
  bottom: c,
@@ -966,7 +966,7 @@ function Ho({
966
966
  }
967
967
  ),
968
968
  /* @__PURE__ */ o(
969
- Wn,
969
+ Hn,
970
970
  y(a({
971
971
  "data-testid": r,
972
972
  topBarHeight: $
@@ -977,7 +977,7 @@ function Ho({
977
977
  ] })
978
978
  ] });
979
979
  }
980
- const kt = ({
980
+ const It = ({
981
981
  isOpen: e,
982
982
  dialogTitle: t,
983
983
  children: n,
@@ -991,7 +991,7 @@ const kt = ({
991
991
  isLoading: g = !1
992
992
  }) => {
993
993
  var h, b;
994
- const [C, w] = F(!1);
994
+ const [C, v] = F(!1);
995
995
  return /* @__PURE__ */ p(
996
996
  nt,
997
997
  {
@@ -1023,7 +1023,7 @@ const kt = ({
1023
1023
  {
1024
1024
  onClick: () => _(void 0, null, function* () {
1025
1025
  var S;
1026
- w(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), w(!1);
1026
+ v(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), v(!1);
1027
1027
  }),
1028
1028
  "data-testid": r.testId,
1029
1029
  disabled: r.disabled || C,
@@ -1035,19 +1035,19 @@ const kt = ({
1035
1035
  ]
1036
1036
  }
1037
1037
  );
1038
- }, $t = ({
1038
+ }, kt = ({
1039
1039
  minLength: e,
1040
1040
  preLoadedOptions: t,
1041
1041
  lookup: n,
1042
1042
  label: i,
1043
1043
  inputValue: r
1044
- }) => ln({
1044
+ }) => sn({
1045
1045
  queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
1046
1046
  (s) => s.label.toLowerCase().includes(r.toLowerCase())
1047
1047
  ) : n(r),
1048
1048
  queryKey: ["autocomplete", i, r]
1049
1049
  });
1050
- function Wo({
1050
+ function Ro({
1051
1051
  lookup: e = () => _(this, null, function* () {
1052
1052
  }),
1053
1053
  enableHighlighting: t = !0,
@@ -1061,8 +1061,8 @@ function Wo({
1061
1061
  textFieldColor: u,
1062
1062
  textFieldVariant: g = "filled",
1063
1063
  loadingText: C = "Loading...",
1064
- noOptionsText: w = "No options",
1065
- popupIcon: h = /* @__PURE__ */ o(on, {}),
1064
+ noOptionsText: v = "No options",
1065
+ popupIcon: h = /* @__PURE__ */ o(nn, {}),
1066
1066
  error: b = !1,
1067
1067
  helperText: S = "",
1068
1068
  preLoadedOptions: $ = void 0,
@@ -1072,7 +1072,7 @@ function Wo({
1072
1072
  const [T, L] = F(""), P = (f, m) => {
1073
1073
  const x = s.filter((A) => A.id !== m);
1074
1074
  n(x, "delete", f);
1075
- }, { data: v, isLoading: k } = $t({
1075
+ }, { data: w, isLoading: k } = kt({
1076
1076
  inputValue: T,
1077
1077
  label: r,
1078
1078
  lookup: e,
@@ -1089,7 +1089,7 @@ function Wo({
1089
1089
  multiple: !0,
1090
1090
  getOptionLabel: (f) => typeof f == "string" ? f : f.label,
1091
1091
  loading: M ? k : !1,
1092
- options: [...s, ...v != null ? v : []],
1092
+ options: [...s, ...w != null ? w : []],
1093
1093
  filterSelectedOptions: !0,
1094
1094
  includeInputInList: !0,
1095
1095
  value: s,
@@ -1097,7 +1097,7 @@ function Wo({
1097
1097
  n(m, x, f);
1098
1098
  },
1099
1099
  onInputChange: (f, m) => L(m),
1100
- noOptionsText: M ? w : "Start typing to search",
1100
+ noOptionsText: M ? v : "Start typing to search",
1101
1101
  loadingText: C,
1102
1102
  popupIcon: h,
1103
1103
  renderInput: (f) => /* @__PURE__ */ o(
@@ -1125,11 +1125,11 @@ function Wo({
1125
1125
  isOptionEqualToValue: (f, m) => f.id === m.id,
1126
1126
  renderOption: (f, m, x) => {
1127
1127
  if (t) {
1128
- const A = an(m.label, x.inputValue, {
1128
+ const A = rn(m.label, x.inputValue, {
1129
1129
  insideWords: !0,
1130
1130
  findAllOccurrences: !0
1131
- }), H = sn(m.label, A);
1132
- return /* @__PURE__ */ ve(
1131
+ }), H = an(m.label, A);
1132
+ return /* @__PURE__ */ we(
1133
1133
  "li",
1134
1134
  y(a({}, f), {
1135
1135
  key: m.id,
@@ -1147,7 +1147,7 @@ function Wo({
1147
1147
  )) })
1148
1148
  );
1149
1149
  } else
1150
- return /* @__PURE__ */ ve(
1150
+ return /* @__PURE__ */ we(
1151
1151
  "li",
1152
1152
  y(a({}, f), {
1153
1153
  key: m.id,
@@ -1159,7 +1159,7 @@ function Wo({
1159
1159
  }
1160
1160
  ),
1161
1161
  s.length > 0 && /* @__PURE__ */ o(I, { sx: c, children: s.map((f) => /* @__PURE__ */ o(
1162
- qt,
1162
+ Vt,
1163
1163
  {
1164
1164
  sx: {
1165
1165
  marginTop: 1,
@@ -1167,7 +1167,7 @@ function Wo({
1167
1167
  height: "auto"
1168
1168
  },
1169
1169
  label: /* @__PURE__ */ o(
1170
- Xt,
1170
+ qt,
1171
1171
  {
1172
1172
  title: f.tooltipContent || "",
1173
1173
  placement: "bottom-start",
@@ -1187,7 +1187,7 @@ function Wo({
1187
1187
  "data-testid": d ? `${d}:Chip(${f.id.toString()})` : void 0,
1188
1188
  onDelete: (m) => P(m, f.id),
1189
1189
  deleteIcon: /* @__PURE__ */ o(
1190
- nn,
1190
+ tn,
1191
1191
  {
1192
1192
  "data-testid": d ? `${d}:Chip(${f.id.toString()}):deleteIcon` : void 0
1193
1193
  }
@@ -1197,7 +1197,7 @@ function Wo({
1197
1197
  )) })
1198
1198
  ] });
1199
1199
  }
1200
- const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1200
+ const Ho = /MUI: The value provided to.*is invalid/i, Wo = ({
1201
1201
  lookup: e = () => _(void 0, null, function* () {
1202
1202
  }),
1203
1203
  onChange: t,
@@ -1211,40 +1211,40 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1211
1211
  noOptionsText: u = "No options",
1212
1212
  minLength: g = 3,
1213
1213
  disablePortal: C = !1,
1214
- preLoadedOptions: w,
1214
+ preLoadedOptions: v,
1215
1215
  helperText: h = "",
1216
1216
  disabled: b,
1217
1217
  popupIcon: S,
1218
1218
  disableIconFlip: $
1219
1219
  }) => {
1220
- const [D, E] = F(""), { data: T, isLoading: L } = $t({
1220
+ const [D, E] = F(""), { data: T, isLoading: L } = kt({
1221
1221
  inputValue: D,
1222
1222
  label: n,
1223
1223
  lookup: e,
1224
1224
  minLength: g != null ? g : 0,
1225
- preLoadedOptions: w
1225
+ preLoadedOptions: v
1226
1226
  }), P = D.length >= g;
1227
- return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(Qt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
1227
+ return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(Xt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
1228
1228
  Se,
1229
1229
  {
1230
1230
  sx: a(a({}, r), $ ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
1231
1231
  "data-testid": c ? `${c}:Autocomplete` : void 0,
1232
1232
  loading: P ? L : !1,
1233
1233
  options: T != null ? T : [],
1234
- onChange: (v, k, M) => {
1235
- t(v, k, M);
1234
+ onChange: (w, k, M) => {
1235
+ t(w, k, M);
1236
1236
  },
1237
1237
  disablePortal: C,
1238
- filterOptions: (v) => v,
1238
+ filterOptions: (w) => w,
1239
1239
  value: i,
1240
1240
  noOptionsText: P ? u : "Start typing to search",
1241
- getOptionLabel: (v) => v.label,
1241
+ getOptionLabel: (w) => w.label,
1242
1242
  popupIcon: S,
1243
- renderInput: (v) => /* @__PURE__ */ o(
1243
+ renderInput: (w) => /* @__PURE__ */ o(
1244
1244
  ye,
1245
1245
  y(a({
1246
1246
  "data-testid": c ? `${c}:Autocomplete:TextField` : void 0
1247
- }, v), {
1247
+ }, w), {
1248
1248
  variant: d,
1249
1249
  label: n,
1250
1250
  color: s,
@@ -1252,13 +1252,13 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1252
1252
  helperText: h
1253
1253
  })
1254
1254
  ),
1255
- isOptionEqualToValue: (v, k) => v.id === k.id,
1256
- onInputChange: (v, k) => {
1255
+ isOptionEqualToValue: (w, k) => w.id === k.id,
1256
+ onInputChange: (w, k) => {
1257
1257
  E(k);
1258
1258
  },
1259
- renderOption: (v, k) => /* @__PURE__ */ ve(
1259
+ renderOption: (w, k) => /* @__PURE__ */ we(
1260
1260
  "li",
1261
- y(a({}, v), {
1261
+ y(a({}, w), {
1262
1262
  key: k.id,
1263
1263
  "data-testid": c ? `${c}:Autocomplete:option(${k.id.toString()})` : void 0
1264
1264
  }),
@@ -1267,12 +1267,12 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1267
1267
  disabled: b
1268
1268
  }
1269
1269
  ) }) });
1270
- }, Vn = (e) => {
1270
+ }, Gn = (e) => {
1271
1271
  if (!e)
1272
1272
  return -1;
1273
1273
  try {
1274
1274
  const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
1275
- un.from(n, "base64").toString("utf8").split("").map(function(s) {
1275
+ dn.from(n, "base64").toString("utf8").split("").map(function(s) {
1276
1276
  return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
1277
1277
  }).join("")
1278
1278
  ), r = JSON.parse(i);
@@ -1280,12 +1280,12 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1280
1280
  } catch (t) {
1281
1281
  return -1;
1282
1282
  }
1283
- }, Go = ({
1283
+ }, Uo = ({
1284
1284
  open: e = !1,
1285
1285
  closeHandler: t,
1286
1286
  setAuth0ExpiryTime: n
1287
1287
  }) => {
1288
- const { logout: i, getAccessTokenSilently: r } = gt(), [s, d] = F(0), l = () => _(void 0, null, function* () {
1288
+ const { logout: i, getAccessTokenSilently: r } = ht(), [s, d] = F(0), l = () => _(void 0, null, function* () {
1289
1289
  i({ logoutParams: { returnTo: `${window.location.origin}` } });
1290
1290
  }), c = () => _(void 0, null, function* () {
1291
1291
  d(s + 1), t();
@@ -1293,12 +1293,12 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1293
1293
  return K(() => {
1294
1294
  _(void 0, null, function* () {
1295
1295
  if (s > 0) {
1296
- const w = yield r({ cacheMode: "off" }), h = Vn(w) * 1e3;
1296
+ const v = yield r({ cacheMode: "off" }), h = Gn(v) * 1e3;
1297
1297
  n(h);
1298
1298
  }
1299
1299
  });
1300
1300
  }, [s, r, n]), /* @__PURE__ */ o(
1301
- kt,
1301
+ It,
1302
1302
  {
1303
1303
  isOpen: e,
1304
1304
  primaryButton: {
@@ -1322,25 +1322,25 @@ const Uo = /MUI: The value provided to.*is invalid/i, zo = ({
1322
1322
  }
1323
1323
  );
1324
1324
  };
1325
- function qn(e) {
1325
+ function Vn(e) {
1326
1326
  return "error" in e;
1327
1327
  }
1328
- function Xn(e) {
1328
+ function qn(e) {
1329
1329
  var i;
1330
1330
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1331
1331
  return t === "access_denied" && n.startsWith("You do not have the required authorization");
1332
1332
  }
1333
- function Qn(e) {
1333
+ function Xn(e) {
1334
1334
  var i;
1335
1335
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1336
1336
  return t === "access_denied" && n.startsWith("User did not authorize the request");
1337
1337
  }
1338
- function Yn(e) {
1338
+ function Qn(e) {
1339
1339
  var i;
1340
1340
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1341
1341
  return t === "access_denied" && n.match(/Script.*time.*exceeded/);
1342
1342
  }
1343
- function Vo({
1343
+ function zo({
1344
1344
  children: e,
1345
1345
  appName: t = "the app",
1346
1346
  throwErrors: n = "none",
@@ -1348,12 +1348,12 @@ function Vo({
1348
1348
  onError: r = () => {
1349
1349
  }
1350
1350
  }) {
1351
- var C, w;
1352
- const { isAuthenticated: s, isLoading: d, error: l, loginWithRedirect: c, logout: u } = gt();
1351
+ var C, v;
1352
+ const { isAuthenticated: s, isLoading: d, error: l, loginWithRedirect: c, logout: u } = ht();
1353
1353
  K(() => {
1354
1354
  l && r(l);
1355
1355
  }, [l, r]);
1356
- const g = Ht(
1356
+ const g = Rt(
1357
1357
  () => ({
1358
1358
  appState: {
1359
1359
  returnTo: `${window.location.pathname}${window.location.search}`
@@ -1369,13 +1369,13 @@ function Vo({
1369
1369
  l
1370
1370
  ), n === "all")
1371
1371
  throw l;
1372
- if (qn(l)) {
1372
+ if (Vn(l)) {
1373
1373
  let h = "Auth error", b = "An unknown Auth0 error occurred.";
1374
- if (Xn(l))
1374
+ if (qn(l))
1375
1375
  h = "Unauthorised", b = `You are not authorised to access ${t}.`;
1376
- else if (Qn(l))
1376
+ else if (Xn(l))
1377
1377
  h = "App not authorised", b = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
1378
- else if (Yn(l))
1378
+ else if (Qn(l))
1379
1379
  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.";
1380
1380
  else if (l.message === "Invalid state") {
1381
1381
  const S = localStorage.getItem("auth0_redirect_count");
@@ -1393,7 +1393,7 @@ function Vo({
1393
1393
  ] }),
1394
1394
  /* @__PURE__ */ p(O, { variant: "body2", children: [
1395
1395
  "description: ",
1396
- (w = l == null ? void 0 : l.error_description) != null ? w : "N/A"
1396
+ (v = l == null ? void 0 : l.error_description) != null ? v : "N/A"
1397
1397
  ] })
1398
1398
  ] }),
1399
1399
  /* @__PURE__ */ p(at, { children: [
@@ -1403,15 +1403,15 @@ function Vo({
1403
1403
  ] });
1404
1404
  } else if (n === "unknown") throw l;
1405
1405
  }
1406
- return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(N, { children: e })) : /* @__PURE__ */ o(pn, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1406
+ return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(N, { children: e })) : /* @__PURE__ */ o(un, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
1407
1407
  }
1408
- const Kn = {
1408
+ const Yn = {
1409
1409
  autoHideDuration: 6e3,
1410
1410
  anchorOrigin: { vertical: "top", horizontal: "center" },
1411
1411
  // The default is false. If we prefer timer to continue when window loses
1412
1412
  // focus, change to true
1413
1413
  disableWindowBlurListener: !1
1414
- }, Jn = {
1414
+ }, Kn = {
1415
1415
  shouldClose: (e, t) => t !== "clickaway"
1416
1416
  }, Xe = {
1417
1417
  message: "",
@@ -1419,18 +1419,18 @@ const Kn = {
1419
1419
  variant: "standard",
1420
1420
  progressIndicator: void 0
1421
1421
  // Can use 'circular' or 'linear'
1422
- }, Qe = 100, Ye = 2e3, Zn = 2e3, jn = /* @__PURE__ */ (() => {
1422
+ }, Qe = 100, Ye = 2e3, Jn = 2e3, Zn = /* @__PURE__ */ (() => {
1423
1423
  let e = 0;
1424
1424
  return () => (e += 1, e);
1425
- })(), eo = {
1425
+ })(), jn = {
1426
1426
  borderBottomLeftRadius: "0px",
1427
1427
  borderBottomRightRadius: "0px"
1428
- }, to = {}, no = {}, Dt = Ze(null);
1429
- function oo(s) {
1428
+ }, eo = {}, to = {}, $t = Ze(null);
1429
+ function no(s) {
1430
1430
  var d = s, {
1431
- overrideState: e = to,
1432
- overrideActions: t = no,
1433
- shouldClose: n = Jn.shouldClose,
1431
+ overrideState: e = eo,
1432
+ overrideActions: t = to,
1433
+ shouldClose: n = Kn.shouldClose,
1434
1434
  children: i
1435
1435
  } = d, r = Fe(d, [
1436
1436
  "overrideState",
@@ -1439,14 +1439,14 @@ function oo(s) {
1439
1439
  "children"
1440
1440
  ]);
1441
1441
  var m;
1442
- const [{ open: l }, c] = F({ open: !1 }), u = fe([]), g = fe(Date.now()), C = fe(0), w = se((x) => {
1442
+ const [{ open: l }, c] = F({ open: !1 }), u = fe([]), g = fe(Date.now()), C = fe(0), v = se((x) => {
1443
1443
  c({ open: x });
1444
1444
  }, []), h = se((x = {}) => {
1445
1445
  C.current += 1, u.current.length >= Qe && Date.now() - g.current >= Ye && (g.current = Date.now(), console.error(
1446
1446
  `SaladBarProvider: MAX_QUEUE_LENGTH (${Qe}) hit ${C.current} times in last ${Ye}ms)`
1447
1447
  ), C.current = 0);
1448
1448
  const A = a(y(a({}, Xe), {
1449
- key: jn()
1449
+ key: Zn()
1450
1450
  }), x);
1451
1451
  return u.current.push(A), u.current.length === 1 && c({ open: !0 }), A.key;
1452
1452
  }, []), 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) => {
@@ -1458,11 +1458,11 @@ function oo(s) {
1458
1458
  }, L = () => {
1459
1459
  }, P = () => {
1460
1460
  u.current.shift(), u.current.length > 0 && c({ open: !0 });
1461
- }, v = (m = u.current[0]) != null ? m : a({}, Xe), k = {};
1462
- "autoHideDuration" in v && (k.autoHideDuration = v.autoHideDuration);
1463
- const M = a(a({}, Kn), r), f = a(a({
1461
+ }, w = (m = u.current[0]) != null ? m : a({}, Xe), k = {};
1462
+ "autoHideDuration" in w && (k.autoHideDuration = w.autoHideDuration);
1463
+ const M = a(a({}, Yn), r), f = a(a({
1464
1464
  open: l,
1465
- setOpen: w,
1465
+ setOpen: v,
1466
1466
  enqueueNotification: h,
1467
1467
  enqueueSuccessNotification: b,
1468
1468
  enqueueInfoNotification: S,
@@ -1470,10 +1470,10 @@ function oo(s) {
1470
1470
  enqueueErrorNotification: D,
1471
1471
  removeNotification: E
1472
1472
  }, e), t);
1473
- return /* @__PURE__ */ p(Dt.Provider, { value: f, children: [
1473
+ return /* @__PURE__ */ p($t.Provider, { value: f, children: [
1474
1474
  i,
1475
1475
  /* @__PURE__ */ o(
1476
- Yt,
1476
+ Qt,
1477
1477
  y(a(a({}, M), k), {
1478
1478
  open: l,
1479
1479
  onClose: T,
@@ -1481,46 +1481,43 @@ function oo(s) {
1481
1481
  onExited: P,
1482
1482
  onExit: L
1483
1483
  },
1484
- sx: { zIndex: Zn },
1484
+ sx: { zIndex: Jn },
1485
1485
  children: /* @__PURE__ */ p("div", { children: [
1486
1486
  /* @__PURE__ */ o(
1487
- Kt,
1487
+ Yt,
1488
1488
  {
1489
1489
  onClose: (x) => T(x, "closeAlert"),
1490
- severity: v.severity,
1490
+ severity: w.severity,
1491
1491
  variant: "filled",
1492
- icon: v.progressIndicator === "circular" ? /* @__PURE__ */ o(Ie, { size: "1em" }) : void 0,
1493
- style: v.progressIndicator === "linear" ? eo : void 0,
1494
- children: v.message
1492
+ icon: w.progressIndicator === "circular" ? /* @__PURE__ */ o(Ie, { size: "1em" }) : void 0,
1493
+ style: w.progressIndicator === "linear" ? jn : void 0,
1494
+ children: w.message
1495
1495
  }
1496
1496
  ),
1497
- v.progressIndicator === "linear" && /* @__PURE__ */ o(ot, { color: "primary" })
1497
+ w.progressIndicator === "linear" && /* @__PURE__ */ o(ot, { color: "primary" })
1498
1498
  ] })
1499
1499
  })
1500
1500
  )
1501
1501
  ] });
1502
1502
  }
1503
- function io() {
1504
- const e = je(Dt);
1503
+ function oo() {
1504
+ const e = je($t);
1505
1505
  if (e === null)
1506
1506
  throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1507
1507
  return e;
1508
1508
  }
1509
- const qo = Q(
1510
- (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(oo, y(a({}, e), { overrideState: t, overrideActions: n, children: i }))
1511
- ), ro = rn(), Xo = ({
1512
- children: e,
1513
- store: t
1514
- }) => /* @__PURE__ */ o(pt, { store: t != null ? t : ro, children: e }), Tt = "domainCode";
1509
+ const Go = Q(
1510
+ (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(no, y(a({}, e), { overrideState: t, overrideActions: n, children: i }))
1511
+ ), Dt = "domainCode";
1515
1512
  var Je;
1516
1513
  const Ke = R(
1517
- JSON.parse((Je = localStorage.getItem(Tt)) != null ? Je : '{"domainCode": ""}').domainCode
1518
- ), Et = R(
1514
+ JSON.parse((Je = localStorage.getItem(Dt)) != null ? Je : '{"domainCode": ""}').domainCode
1515
+ ), Tt = R(
1519
1516
  (e) => e(Ke),
1520
1517
  (e, t, n) => {
1521
- t(Ke, n), localStorage.setItem(Tt, JSON.stringify({ domainCode: n }));
1518
+ t(Ke, n), localStorage.setItem(Dt, JSON.stringify({ domainCode: n }));
1522
1519
  }
1523
- ), ao = {
1520
+ ), io = {
1524
1521
  act: "ACT",
1525
1522
  nsw: "NSW",
1526
1523
  nt: "NT",
@@ -1532,10 +1529,10 @@ const Ke = R(
1532
1529
  ag: "AG",
1533
1530
  fedmps: "Fedmps",
1534
1531
  "": ""
1535
- }, so = (e) => {
1532
+ }, ro = (e) => {
1536
1533
  var t;
1537
- return e === null ? "N/A" : (t = ao[e]) != null ? t : "";
1538
- }, Qo = ({
1534
+ return e === null ? "N/A" : (t = io[e]) != null ? t : "";
1535
+ }, Vo = ({
1539
1536
  isLoading: e,
1540
1537
  isOpen: t,
1541
1538
  onClose: n,
@@ -1544,21 +1541,21 @@ const Ke = R(
1544
1541
  applicationName: s,
1545
1542
  handleLogout: d
1546
1543
  }) => {
1547
- const [l, c] = V(Et), [u, g] = F(l), { enqueueSuccessNotification: C } = io(), w = r.length === 0, h = !!l && !r.includes(l) && !r.includes(u), b = !l || w || h, S = () => _(void 0, null, function* () {
1544
+ const [l, c] = V(Tt), [u, g] = F(l), { enqueueSuccessNotification: C } = oo(), v = r.length === 0, h = !!l && !r.includes(l) && !r.includes(u), b = !l || v || h, S = () => _(void 0, null, function* () {
1548
1545
  u ? (c(u), i == null || i(u), C(`Set organisation to ${u}`), n()) : (c(""), i == null || i(""));
1549
1546
  }), $ = () => _(void 0, null, function* () {
1550
- l && !w && !h ? (g(l), n()) : b && d();
1547
+ l && !v && !h ? (g(l), n()) : b && d();
1551
1548
  });
1552
1549
  let D;
1553
- return w ? D = "Unable to retrieve your active organisations. Try logging in again." : h && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1554
- kt,
1550
+ return v ? D = "Unable to retrieve your active organisations. Try logging in again." : h && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1551
+ It,
1555
1552
  {
1556
1553
  isOpen: t,
1557
1554
  dialogTitle: "Select an organisation",
1558
1555
  primaryButton: {
1559
1556
  text: "Confirm",
1560
1557
  onClick: S,
1561
- disabled: !u || w || h,
1558
+ disabled: !u || v || h,
1562
1559
  buttonColor: "primary"
1563
1560
  },
1564
1561
  secondaryButton: {
@@ -1581,7 +1578,7 @@ const Ke = R(
1581
1578
  disableClearable: !1,
1582
1579
  value: u !== "" ? u : null,
1583
1580
  onChange: (E, T) => g(T != null ? T : ""),
1584
- getOptionLabel: so,
1581
+ getOptionLabel: ro,
1585
1582
  options: [...r],
1586
1583
  renderInput: (E) => /* @__PURE__ */ o(
1587
1584
  ye,
@@ -1598,38 +1595,38 @@ const Ke = R(
1598
1595
  )
1599
1596
  }
1600
1597
  ),
1601
- D && /* @__PURE__ */ o(Jt, { error: !0, children: D })
1598
+ D && /* @__PURE__ */ o(Kt, { error: !0, children: D })
1602
1599
  ]
1603
1600
  }
1604
1601
  );
1605
- }, lo = {
1606
- domainCode: Et,
1602
+ }, ao = {
1603
+ domainCode: Tt,
1607
1604
  navBarOpen: j,
1608
- navBarWidthOpen: At,
1609
- navBarWidthClosed: bt,
1610
- titleText: we,
1611
- topBarHeight: St,
1612
- navBarTop: yt
1613
- }, Yo = Q(() => ({ children: e }) => /* @__PURE__ */ o(pt, { children: e })), co = ({
1605
+ navBarWidthOpen: vt,
1606
+ navBarWidthClosed: At,
1607
+ titleText: ve,
1608
+ topBarHeight: bt,
1609
+ navBarTop: St
1610
+ }, qo = Q(() => ({ children: e }) => /* @__PURE__ */ o(on, { children: e })), so = ({
1614
1611
  initialValues: e,
1615
1612
  children: t
1616
- }) => (ht(e), /* @__PURE__ */ o(N, { children: t })), Ko = Q(
1613
+ }) => (pt(e), /* @__PURE__ */ o(N, { children: t })), Xo = Q(
1617
1614
  (e) => ({ children: t }) => /* @__PURE__ */ o(
1618
- co,
1615
+ so,
1619
1616
  {
1620
1617
  initialValues: Object.entries(e).map(
1621
1618
  ([n, i]) => [
1622
- lo[n],
1619
+ ao[n],
1623
1620
  i
1624
1621
  ]
1625
1622
  ),
1626
1623
  children: t
1627
1624
  }
1628
1625
  )
1629
- ), Jo = Q(() => ({ children: e }) => {
1630
- const t = new cn();
1631
- return /* @__PURE__ */ o(dn, { client: t, children: e });
1632
- }), Zo = st({
1626
+ ), Qo = Q(() => ({ children: e }) => {
1627
+ const t = new ln();
1628
+ return /* @__PURE__ */ o(cn, { client: t, children: e });
1629
+ }), Yo = st({
1633
1630
  palette: {
1634
1631
  primary: {
1635
1632
  dark: "#00A651",
@@ -1680,7 +1677,7 @@ const Ke = R(
1680
1677
  navBar: {
1681
1678
  backgroundColor: "#E8E8E8"
1682
1679
  }
1683
- }), jo = st({
1680
+ }), Ko = st({
1684
1681
  palette: {
1685
1682
  primary: {
1686
1683
  main: "#007236",
@@ -1776,52 +1773,50 @@ const Ke = R(
1776
1773
  }
1777
1774
  });
1778
1775
  export {
1779
- kt as AgDialog,
1780
- Ho as AppLayout,
1781
- Xo as AtomProvider,
1782
- Vo as AuthGuard,
1783
- Dt as Context,
1776
+ It as AgDialog,
1777
+ Mo as AppLayout,
1778
+ zo as AuthGuard,
1779
+ $t as Context,
1784
1780
  ke as ContextError,
1785
- Qo as DomainCodeDialog,
1786
- Oo as ExampleComponent,
1787
- Wo as FetchAutocomplete,
1788
- co as HydrateAtoms,
1789
- Uo as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1790
- mt as NAVBAR_WIDTH_CLOSED,
1791
- ft as NAVBAR_WIDTH_OPENED,
1792
- _o as NavBar,
1793
- No as NavBarDarkStyledList,
1794
- Po as NavBarLightStyledList,
1795
- vn as NavBarProvider,
1796
- Lo as PageLayout,
1797
- oo as SaladBarProvider,
1798
- Go as SessionExpiryDialog,
1799
- zo as SingleAutocomplete,
1800
- ro as atomStore,
1801
- An as buildNavBarState,
1802
- Et as domainCodeAtom,
1803
- Zo as fed21Theme,
1804
- Vn as getAuth0Expiry,
1805
- jo as internalAgSystemsTheme,
1781
+ Vo as DomainCodeDialog,
1782
+ To as ExampleComponent,
1783
+ Ro as FetchAutocomplete,
1784
+ so as HydrateAtoms,
1785
+ Ho as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1786
+ ft as NAVBAR_WIDTH_CLOSED,
1787
+ gt as NAVBAR_WIDTH_OPENED,
1788
+ No as NavBar,
1789
+ Bo as NavBarDarkStyledList,
1790
+ Fo as NavBarLightStyledList,
1791
+ Cn as NavBarProvider,
1792
+ Po as PageLayout,
1793
+ no as SaladBarProvider,
1794
+ Uo as SessionExpiryDialog,
1795
+ Wo as SingleAutocomplete,
1796
+ vn as buildNavBarState,
1797
+ Tt as domainCodeAtom,
1798
+ Yo as fed21Theme,
1799
+ Gn as getAuth0Expiry,
1800
+ Ko as internalAgSystemsTheme,
1806
1801
  q as navBarClasses,
1807
1802
  j as navBarOpenAtom,
1808
- yt as navBarTopAtom,
1809
- bt as navBarWidthClosedAtom,
1810
- At as navBarWidthOpenAtom,
1811
- Mn as simpleHashCode,
1812
- Mo as suppressConsole,
1813
- we as titleTextAtom,
1814
- St as topBarHeightAtom,
1815
- Fn as topBarMiddleAtom,
1816
- Ro as unsuppressConsole,
1817
- $t as useAutocompleteOptions,
1803
+ St as navBarTopAtom,
1804
+ At as navBarWidthClosedAtom,
1805
+ vt as navBarWidthOpenAtom,
1806
+ Ln as simpleHashCode,
1807
+ _o as suppressConsole,
1808
+ ve as titleTextAtom,
1809
+ bt as topBarHeightAtom,
1810
+ Bn as topBarMiddleAtom,
1811
+ Lo as unsuppressConsole,
1812
+ kt as useAutocompleteOptions,
1818
1813
  wn as useNavBar,
1819
- io as useSaladBar,
1820
- Yo as withAtomProvider,
1821
- Fo as withBrowserRouter,
1822
- Bo as withNavBarProvider,
1823
- Ko as withOverrideDefaults,
1824
- Jo as withQueryClient,
1825
- qo as withSaladBarProvider
1814
+ oo as useSaladBar,
1815
+ qo as withAtomProvider,
1816
+ Oo as withBrowserRouter,
1817
+ Eo as withNavBarProvider,
1818
+ Xo as withOverrideDefaults,
1819
+ Qo as withQueryClient,
1820
+ Go as withSaladBarProvider
1826
1821
  };
1827
1822
  //# sourceMappingURL=index.js.map