@australiangreens/ag-internal-components 0.0.87 → 0.0.88

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
@@ -10,7 +10,7 @@ var pe = (e, t, n) => t in e ? Pt(e, t, { enumerable: !0, configurable: !0, writ
10
10
  Oe.call(t, n) && pe(e, n, t[n]);
11
11
  return e;
12
12
  }, S = (e, t) => Nt(e, Lt(t));
13
- var Ee = (e, t) => {
13
+ var Be = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
16
16
  Te.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
@@ -19,8 +19,8 @@ var Ee = (e, t) => {
19
19
  t.indexOf(i) < 0 && Oe.call(e, i) && (n[i] = e[i]);
20
20
  return n;
21
21
  };
22
- var Be = (e, t, n) => (pe(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- var P = (e, t, n) => new Promise((i, r) => {
22
+ var Ee = (e, t, n) => (pe(e, typeof t != "symbol" ? t + "" : t, n), n);
23
+ var N = (e, t, n) => new Promise((i, r) => {
24
24
  var a = (l) => {
25
25
  try {
26
26
  d(n.next(l));
@@ -36,28 +36,30 @@ var P = (e, t, n) => new Promise((i, r) => {
36
36
  }, d = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(a, c);
37
37
  d((n = n.apply(e, t)).next());
38
38
  });
39
- import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
39
+ import { jsxs as p, Fragment as M, jsx as o } from "react/jsx-runtime";
40
40
  import { useState as E, createContext as Qe, useCallback as ne, useContext as Ye, createElement as Ce, useEffect as oe, useRef as he } from "react";
41
- import { Typography as F, Button as ie, Paper as Ke, Box as $, Drawer as ve, Dialog as Je, LinearProgress as Ze, DialogTitle as je, DialogContent as et, DialogActions as tt, Autocomplete as we, TextField as Ae, CircularProgress as be, Chip as _t, Tooltip as Mt, Stack as Rt, styled as Se, IconButton as Q, Container as nt, useTheme as ae, useMediaQuery as Ht, Collapse as Wt, Avatar as Fe, Fade as zt, Skeleton as Pe, Toolbar as Ut, Divider as Ne, CssBaseline as Gt, Snackbar as Vt, Alert as qt, FormHelperText as Xt } from "@mui/material";
41
+ import { Typography as P, Button as ie, Paper as Ke, Box as $, Drawer as ve, Dialog as Je, LinearProgress as Ze, DialogTitle as je, DialogContent as et, DialogActions as tt, Autocomplete as we, TextField as Ae, CircularProgress as be, Chip as _t, Tooltip as Mt, Stack as Rt, styled as Se, IconButton as Y, Container as nt, useTheme as ae, useMediaQuery as Ht, Collapse as Wt, Avatar as Fe, Fade as zt, Skeleton as Pe, Toolbar as Ut, Divider as Ne, CssBaseline as Gt, Snackbar as Vt, Alert as qt, FormHelperText as Xt } from "@mui/material";
42
42
  import Qt from "@mui/material/CssBaseline";
43
- import { styled as R, createTheme as ot, alpha as ge } from "@mui/material/styles";
43
+ import { styled as H, createTheme as ot, alpha as ge } from "@mui/material/styles";
44
44
  import { AgError as Yt } from "@australiangreens/ag-error";
45
- import { createHelper as K } from "souvlaki";
45
+ import { createHelper as X } from "souvlaki";
46
+ import { BrowserRouter as Kt } from "react-router-dom";
46
47
  import it from "@mui/material/List";
47
- import { Cancel as Kt, ArrowDropDown as Jt, ArrowForward as rt, ArrowBack as at, ViewHeadline as Zt } from "@mui/icons-material";
48
- import jt from "autosuggest-highlight/match";
49
- import en from "autosuggest-highlight/parse";
50
- import { useQuery as tn, QueryClient as nn, QueryClientProvider as on } from "@tanstack/react-query";
51
- import { useAuth0 as st } from "@auth0/auth0-react";
52
- import { Buffer as rn } from "buffer";
53
- import an from "@mui/material/Skeleton";
54
- import { atom as M, useSetAtom as lt, useAtomValue as Le, useAtom as V, getDefaultStore as sn, Provider as ct } from "jotai";
48
+ import { Cancel as Jt, ArrowDropDown as Zt, ArrowForward as rt, ArrowBack as at, ViewHeadline as jt } from "@mui/icons-material";
49
+ import { atom as R, useSetAtom as st, useAtomValue as Le, useAtom as V, getDefaultStore as en, Provider as lt } from "jotai";
50
+ import "src/layouts";
51
+ import tn from "autosuggest-highlight/match";
52
+ import nn from "autosuggest-highlight/parse";
53
+ import { useQuery as on, QueryClient as rn, QueryClientProvider as an } from "@tanstack/react-query";
54
+ import { useAuth0 as ct } from "@auth0/auth0-react";
55
+ import { Buffer as sn } from "buffer";
56
+ import ln from "@mui/material/Skeleton";
55
57
  import { useHydrateAtoms as dt } from "jotai/utils";
56
- function Do({ text: e }) {
58
+ function Io({ text: e }) {
57
59
  const [t, n] = E(0);
58
- return /* @__PURE__ */ p(_, { children: [
59
- /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
60
- /* @__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" }) }),
60
+ return /* @__PURE__ */ p(M, { children: [
61
+ /* @__PURE__ */ o(P, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
62
+ /* @__PURE__ */ o(P, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
61
63
  /* @__PURE__ */ o(
62
64
  ie,
63
65
  {
@@ -85,7 +87,7 @@ const ut = 330, pt = 73, U = "Navbar", q = {
85
87
  userInfoHolder: `${U}-userInfoHolder`,
86
88
  settings: `${U}-settings`,
87
89
  pieChartIcon: `${U}-pieChartIcon`
88
- }, ln = R($, {
90
+ }, cn = H($, {
89
91
  name: "NavBar"
90
92
  })(({ theme: e }) => ({
91
93
  [`&.${q.root}`]: {
@@ -114,11 +116,11 @@ const ut = 330, pt = 73, U = "Navbar", q = {
114
116
  color: "white",
115
117
  backgroundColor: "black"
116
118
  // backgroundColor: '#e8e8e8',
117
- }), cn = () => s({
119
+ }), dn = () => s({
118
120
  width: ut
119
- }, ht()), dn = () => s({
121
+ }, ht()), un = () => s({
120
122
  width: pt
121
- }, ht()), un = R(ve, {
123
+ }, ht()), pn = H(ve, {
122
124
  shouldForwardProp: (e) => e !== "open"
123
125
  })(({ theme: e, open: t }) => s(s({
124
126
  width: t ? ut : pt,
@@ -127,16 +129,16 @@ const ut = 330, pt = 73, U = "Navbar", q = {
127
129
  boxSizing: "border-box",
128
130
  zIndex: e.zIndex.drawer + 100
129
131
  }, t && {
130
- "& .MuiDrawer-paper": cn()
131
- }), !t && {
132
132
  "& .MuiDrawer-paper": dn()
133
+ }), !t && {
134
+ "& .MuiDrawer-paper": un()
133
135
  }));
134
136
  class ke extends Yt {
135
137
  }
136
- Be(ke, "errorName", "ContextError");
137
- const gt = Qe(null), pn = {}, hn = {}, gn = ({
138
- overrideState: e = pn,
139
- overrideActions: t = hn,
138
+ Ee(ke, "errorName", "ContextError");
139
+ const gt = Qe(null), hn = {}, gn = {}, fn = ({
140
+ overrideState: e = hn,
141
+ overrideActions: t = gn,
140
142
  children: n
141
143
  }) => {
142
144
  const [{ open: i }, r] = E({ open: !0 }), a = ne((l) => {
@@ -149,16 +151,16 @@ const gt = Qe(null), pn = {}, hn = {}, gn = ({
149
151
  toggleOpen: c
150
152
  }, e), t);
151
153
  return /* @__PURE__ */ o(gt.Provider, { value: d, children: n });
152
- }, fn = () => {
154
+ }, mn = () => {
153
155
  const e = Ye(gt);
154
156
  if (e === null)
155
157
  throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
156
158
  return e;
157
- }, mn = (e = {}) => s({
159
+ }, Cn = (e = {}) => s({
158
160
  open: !0
159
- }, e), yo = K(
160
- (e = mn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(gn, { overrideState: e, overrideActions: t, children: n })
161
- ), _e = 7, $o = R(it)(({ theme: e }) => ({
161
+ }, e), To = X(
162
+ (e = Cn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(fn, { overrideState: e, overrideActions: t, children: n })
163
+ ), Oo = X(() => ({ children: e }) => /* @__PURE__ */ o(Kt, { children: e })), _e = 7, Bo = H(it)(({ theme: e }) => ({
162
164
  backgroundColor: "black",
163
165
  color: "white",
164
166
  "& .MuiListItem-root": {
@@ -196,7 +198,7 @@ const gt = Qe(null), pn = {}, hn = {}, gn = ({
196
198
  // '&.Mui-selected.Mui-focusVisible:hover': {
197
199
  // },
198
200
  }
199
- })), Me = 7, Io = R(it)(({ theme: e }) => ({
201
+ })), Me = 7, Eo = H(it)(({ theme: e }) => ({
200
202
  backgroundColor: "#e8e8e8",
201
203
  color: "inherit",
202
204
  "& .MuiListItem-root": {
@@ -235,15 +237,15 @@ const gt = Qe(null), pn = {}, hn = {}, gn = ({
235
237
  // },
236
238
  }
237
239
  }));
238
- function To({
240
+ function Fo({
239
241
  "data-testid": e,
240
242
  children: t
241
243
  }) {
242
- const { open: n } = fn();
243
- return /* @__PURE__ */ p(ln, { className: q.root, "data-testid": e, children: [
244
+ const { open: n } = mn();
245
+ return /* @__PURE__ */ p(cn, { className: q.root, "data-testid": e, children: [
244
246
  /* @__PURE__ */ o(Qt, {}),
245
247
  /* @__PURE__ */ o(
246
- un,
248
+ pn,
247
249
  {
248
250
  variant: "permanent",
249
251
  anchor: "left",
@@ -265,23 +267,23 @@ const ft = ({
265
267
  sx: d,
266
268
  "data-testid": l,
267
269
  disableCloseOnBackdropOrEscape: u = !1,
268
- isLoading: w = !1
270
+ isLoading: v = !1
269
271
  }) => {
270
- var g, k;
271
- const [C, A] = E(!1);
272
+ var g, D;
273
+ const [C, w] = E(!1);
272
274
  return /* @__PURE__ */ p(
273
275
  Je,
274
276
  {
275
277
  open: e,
276
- onClose: (b, D) => P(void 0, null, function* () {
277
- u && (D === "backdropClick" || D === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : c());
278
+ onClose: (A, k) => N(void 0, null, function* () {
279
+ u && (k === "backdropClick" || k === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : c());
278
280
  }),
279
281
  fullWidth: !0,
280
282
  maxWidth: i != null ? i : "xs",
281
283
  "data-testid": l,
282
284
  sx: d,
283
285
  children: [
284
- w && /* @__PURE__ */ o(Ze, { sx: { height: "4px", marginBottom: "-4px" } }),
286
+ v && /* @__PURE__ */ o(Ze, { sx: { height: "4px", marginBottom: "-4px" } }),
285
287
  /* @__PURE__ */ o(je, { children: t }),
286
288
  /* @__PURE__ */ o(et, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
287
289
  /* @__PURE__ */ p(tt, { children: [
@@ -292,15 +294,15 @@ const ft = ({
292
294
  "data-testid": a == null ? void 0 : a.testId,
293
295
  disabled: (a == null ? void 0 : a.disabled) || C,
294
296
  color: a == null ? void 0 : a.buttonColor,
295
- children: (k = a == null ? void 0 : a.text) != null ? k : "Cancel"
297
+ children: (D = a == null ? void 0 : a.text) != null ? D : "Cancel"
296
298
  }
297
299
  ),
298
300
  r && /* @__PURE__ */ o(
299
301
  ie,
300
302
  {
301
- onClick: () => P(void 0, null, function* () {
302
- var b;
303
- A(!0), yield (b = r.onClick) == null ? void 0 : b.call(r), A(!1);
303
+ onClick: () => N(void 0, null, function* () {
304
+ var A;
305
+ w(!0), yield (A = r.onClick) == null ? void 0 : A.call(r), w(!1);
304
306
  }),
305
307
  "data-testid": r.testId,
306
308
  disabled: r.disabled || C,
@@ -318,14 +320,14 @@ const ft = ({
318
320
  lookup: n,
319
321
  label: i,
320
322
  inputValue: r
321
- }) => tn({
323
+ }) => on({
322
324
  queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
323
325
  (a) => a.label.toLowerCase().includes(r.toLowerCase())
324
326
  ) : n(r),
325
327
  queryKey: ["autocomplete", i, r]
326
328
  });
327
- function Oo({
328
- lookup: e = () => P(this, null, function* () {
329
+ function Po({
330
+ lookup: e = () => N(this, null, function* () {
329
331
  }),
330
332
  enableHighlighting: t = !0,
331
333
  onChange: n,
@@ -336,25 +338,25 @@ function Oo({
336
338
  sx: d,
337
339
  boxSx: l,
338
340
  textFieldColor: u,
339
- textFieldVariant: w = "filled",
341
+ textFieldVariant: v = "filled",
340
342
  loadingText: C = "Loading...",
341
- noOptionsText: A = "No options",
342
- popupIcon: g = /* @__PURE__ */ o(Jt, {}),
343
- error: k = !1,
344
- helperText: b = "",
345
- preLoadedOptions: D = void 0,
343
+ noOptionsText: w = "No options",
344
+ popupIcon: g = /* @__PURE__ */ o(Zt, {}),
345
+ error: D = !1,
346
+ helperText: A = "",
347
+ preLoadedOptions: k = void 0,
346
348
  disablePortal: I = !1
347
349
  }) {
348
- const [x, y] = E(""), H = (h, f) => {
349
- const B = a.filter((m) => m.id !== f);
350
- n(B, "delete", h);
351
- }, { data: N, isLoading: T } = mt({
352
- inputValue: x,
350
+ const [T, b] = E(""), y = (h, f) => {
351
+ const F = a.filter((m) => m.id !== f);
352
+ n(F, "delete", h);
353
+ }, { data: L, isLoading: O } = mt({
354
+ inputValue: T,
353
355
  label: r,
354
356
  lookup: e,
355
357
  minLength: i,
356
- preLoadedOptions: D
357
- }), W = x.length >= i;
358
+ preLoadedOptions: k
359
+ }), W = T.length >= i;
358
360
  return /* @__PURE__ */ p("div", { "data-testid": c, children: [
359
361
  /* @__PURE__ */ o(
360
362
  we,
@@ -364,16 +366,16 @@ function Oo({
364
366
  disablePortal: I,
365
367
  multiple: !0,
366
368
  getOptionLabel: (h) => typeof h == "string" ? h : h.label,
367
- loading: W ? T : !1,
368
- options: [...a, ...N != null ? N : []],
369
+ loading: W ? O : !1,
370
+ options: [...a, ...L != null ? L : []],
369
371
  filterSelectedOptions: !0,
370
372
  includeInputInList: !0,
371
373
  value: a,
372
- onChange: (h, f, B) => {
373
- n(f, B, h);
374
+ onChange: (h, f, F) => {
375
+ n(f, F, h);
374
376
  },
375
- onInputChange: (h, f) => y(f),
376
- noOptionsText: W ? A : "Start typing to search",
377
+ onInputChange: (h, f) => b(f),
378
+ noOptionsText: W ? w : "Start typing to search",
377
379
  loadingText: C,
378
380
  popupIcon: g,
379
381
  renderInput: (h) => /* @__PURE__ */ o(
@@ -381,12 +383,12 @@ function Oo({
381
383
  S(s({}, h), {
382
384
  label: r,
383
385
  fullWidth: !0,
384
- variant: w,
385
- error: k,
386
- helperText: b,
386
+ variant: v,
387
+ error: D,
388
+ helperText: A,
387
389
  InputProps: S(s({}, h.InputProps), {
388
- endAdornment: /* @__PURE__ */ p(_, { children: [
389
- T ? /* @__PURE__ */ o(be, { color: "inherit", size: 20 }) : null,
390
+ endAdornment: /* @__PURE__ */ p(M, { children: [
391
+ O ? /* @__PURE__ */ o(be, { color: "inherit", size: 20 }) : null,
390
392
  h.InputProps.endAdornment
391
393
  ] })
392
394
  }),
@@ -399,25 +401,25 @@ function Oo({
399
401
  ),
400
402
  renderTags: () => null,
401
403
  isOptionEqualToValue: (h, f) => h.id === f.id,
402
- renderOption: (h, f, B) => {
404
+ renderOption: (h, f, F) => {
403
405
  if (t) {
404
- const m = jt(f.label, B.inputValue, {
406
+ const m = tn(f.label, F.inputValue, {
405
407
  insideWords: !0,
406
408
  findAllOccurrences: !0
407
- }), v = en(f.label, m);
409
+ }), x = nn(f.label, m);
408
410
  return /* @__PURE__ */ Ce(
409
411
  "li",
410
412
  S(s({}, h), {
411
413
  key: f.id,
412
414
  "data-testid": c ? `${c}:Autocomplete:option(${f.id.toString()})` : void 0
413
415
  }),
414
- /* @__PURE__ */ o("div", { children: v.map((L, se) => /* @__PURE__ */ o(
416
+ /* @__PURE__ */ o("div", { children: x.map((_, se) => /* @__PURE__ */ o(
415
417
  "span",
416
418
  {
417
419
  style: {
418
- fontWeight: L.highlight ? 700 : 400
420
+ fontWeight: _.highlight ? 700 : 400
419
421
  },
420
- children: L.text
422
+ children: _.text
421
423
  },
422
424
  se
423
425
  )) })
@@ -457,13 +459,13 @@ function Oo({
457
459
  }
458
460
  ]
459
461
  },
460
- children: /* @__PURE__ */ o(F, { style: { whiteSpace: "normal" }, children: h.chipLabel ? h.chipLabel : h.label })
462
+ children: /* @__PURE__ */ o(P, { style: { whiteSpace: "normal" }, children: h.chipLabel ? h.chipLabel : h.label })
461
463
  }
462
464
  ),
463
465
  "data-testid": c ? `${c}:Chip(${h.id.toString()})` : void 0,
464
- onDelete: (f) => H(f, h.id),
466
+ onDelete: (f) => y(f, h.id),
465
467
  deleteIcon: /* @__PURE__ */ o(
466
- Kt,
468
+ Jt,
467
469
  {
468
470
  "data-testid": c ? `${c}:Chip(${h.id.toString()}):deleteIcon` : void 0
469
471
  }
@@ -473,8 +475,8 @@ function Oo({
473
475
  )) })
474
476
  ] });
475
477
  }
476
- const Eo = ({
477
- lookup: e = () => P(void 0, null, function* () {
478
+ const No = ({
479
+ lookup: e = () => N(void 0, null, function* () {
478
480
  }),
479
481
  onChange: t,
480
482
  label: n,
@@ -485,63 +487,65 @@ const Eo = ({
485
487
  "data-testid": d,
486
488
  noOptionsText: l = "No options",
487
489
  minLength: u = 3,
488
- disablePortal: w = !1,
490
+ disablePortal: v = !1,
489
491
  preLoadedOptions: C,
490
- helperText: A = ""
492
+ helperText: w = "",
493
+ disabled: g
491
494
  }) => {
492
- const [g, k] = E(""), { data: b, isLoading: D } = mt({
493
- inputValue: g,
495
+ const [D, A] = E(""), { data: k, isLoading: I } = mt({
496
+ inputValue: D,
494
497
  label: n,
495
498
  lookup: e,
496
499
  minLength: u != null ? u : 0,
497
500
  preLoadedOptions: C
498
- }), I = g.length >= u;
501
+ }), T = D.length >= u;
499
502
  return /* @__PURE__ */ o("div", { "data-testid": d, children: /* @__PURE__ */ o(Rt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
500
503
  we,
501
504
  {
502
505
  sx: r,
503
506
  "data-testid": d ? `${d}:Autocomplete` : void 0,
504
- loading: I ? D : !1,
505
- options: b != null ? b : [],
506
- onChange: (x, y) => {
507
- t(x, y);
507
+ loading: T ? I : !1,
508
+ options: k != null ? k : [],
509
+ onChange: (b, y) => {
510
+ t(b, y);
508
511
  },
509
- disablePortal: w,
510
- filterOptions: (x) => x,
512
+ disablePortal: v,
513
+ filterOptions: (b) => b,
511
514
  value: i,
512
- noOptionsText: I ? l : "Start typing to search",
513
- getOptionLabel: (x) => x.label,
514
- renderInput: (x) => /* @__PURE__ */ o(
515
+ noOptionsText: T ? l : "Start typing to search",
516
+ getOptionLabel: (b) => b.label,
517
+ renderInput: (b) => /* @__PURE__ */ o(
515
518
  Ae,
516
519
  S(s({
517
520
  "data-testid": d ? `${d}:Autocomplete:TextField` : void 0
518
- }, x), {
521
+ }, b), {
519
522
  variant: c,
520
523
  label: n,
521
524
  color: a,
522
- helperText: A
525
+ helperText: w
523
526
  })
524
527
  ),
525
- isOptionEqualToValue: (x, y) => x.id === y.id,
526
- onInputChange: (x, y) => {
527
- k(y);
528
+ isOptionEqualToValue: (b, y) => b.id === y.id,
529
+ onInputChange: (b, y) => {
530
+ A(y);
528
531
  },
529
- renderOption: (x, y) => /* @__PURE__ */ Ce(
532
+ renderOption: (b, y) => /* @__PURE__ */ Ce(
530
533
  "li",
531
- S(s({}, x), {
534
+ S(s({}, b), {
532
535
  key: y.id,
533
536
  "data-testid": d ? `${d}:Autocomplete:option(${y.id.toString()})` : void 0
534
537
  }),
535
538
  y.label
536
- )
539
+ ),
540
+ disabled: g
537
541
  }
538
542
  ) }) });
539
- }, Cn = (e) => {
543
+ }, xn = (e) => {
540
544
  if (!e)
541
545
  return -1;
542
546
  try {
543
547
  const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
544
- rn.from(n, "base64").toString("utf8").split("").map(function(a) {
548
+ sn.from(n, "base64").toString("utf8").split("").map(function(a) {
545
549
  return "%" + ("00" + a.charCodeAt(0).toString(16)).slice(-2);
546
550
  }).join("")
547
551
  ), r = JSON.parse(i);
@@ -549,20 +553,20 @@ const Eo = ({
549
553
  } catch (t) {
550
554
  return -1;
551
555
  }
552
- }, Bo = ({
556
+ }, Lo = ({
553
557
  open: e = !1,
554
558
  closeHandler: t,
555
559
  setAuth0ExpiryTime: n
556
560
  }) => {
557
- const { logout: i, getAccessTokenSilently: r } = st(), [a, c] = E(0), d = () => P(void 0, null, function* () {
561
+ const { logout: i, getAccessTokenSilently: r } = ct(), [a, c] = E(0), d = () => N(void 0, null, function* () {
558
562
  i({ logoutParams: { returnTo: `${window.location.origin}` } });
559
- }), l = () => P(void 0, null, function* () {
563
+ }), l = () => N(void 0, null, function* () {
560
564
  c(a + 1), t();
561
565
  });
562
566
  return oe(() => {
563
- (() => P(void 0, null, function* () {
567
+ (() => N(void 0, null, function* () {
564
568
  if (a > 0) {
565
- const A = yield r({ cacheMode: "off" }), g = Cn(A) * 1e3;
569
+ const w = yield r({ cacheMode: "off" }), g = xn(w) * 1e3;
566
570
  n(g);
567
571
  }
568
572
  }))();
@@ -591,27 +595,27 @@ const Eo = ({
591
595
  }
592
596
  );
593
597
  };
594
- function xn(e) {
598
+ function vn(e) {
595
599
  return "error" in e;
596
600
  }
597
- function vn(e) {
601
+ function wn(e) {
598
602
  return e.error === "access_denied";
599
603
  }
600
- function wn(e) {
604
+ function An(e) {
601
605
  var i;
602
606
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
603
607
  return t === "access_denied" && n.startsWith("You do not have the required authorization");
604
608
  }
605
- function An(e) {
609
+ function bn(e) {
606
610
  var i;
607
611
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
608
612
  return t === "access_denied" && n.startsWith("User did not authorize the request");
609
613
  }
610
- function Fo({
614
+ function _o({
611
615
  children: e,
612
616
  appName: t = "the app"
613
617
  }) {
614
- const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } = st();
618
+ const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } = ct();
615
619
  if (oe(() => {
616
620
  if (i || n || r)
617
621
  return;
@@ -621,42 +625,42 @@ function Fo({
621
625
  }
622
626
  };
623
627
  a(d);
624
- }, [i, n, r, a]), r && xn(r)) {
628
+ }, [i, n, r, a]), r && vn(r)) {
625
629
  let d = "Auth error", l = "An unknown Auth0 error occurred.";
626
- return wn(r) ? (d = "Unauthorised", l = `You are not authorised to access ${t}.`) : An(r) ? (d = "App not authorised", l = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`) : vn(r) && (d = "Unauthorised", l = "Authorisation with auth0 failed for an unknown reason."), /* @__PURE__ */ p(Je, { open: !0, children: [
630
+ return An(r) ? (d = "Unauthorised", l = `You are not authorised to access ${t}.`) : bn(r) ? (d = "App not authorised", l = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`) : wn(r) && (d = "Unauthorised", l = "Authorisation with auth0 failed for an unknown reason."), /* @__PURE__ */ p(Je, { open: !0, children: [
627
631
  /* @__PURE__ */ o(je, { children: d }),
628
- /* @__PURE__ */ o(et, { children: /* @__PURE__ */ o(F, { children: l }) }),
632
+ /* @__PURE__ */ o(et, { children: /* @__PURE__ */ o(P, { children: l }) }),
629
633
  /* @__PURE__ */ o(tt, { children: /* @__PURE__ */ o(ie, { onClick: () => c({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" }) })
630
634
  ] });
631
635
  }
632
- return n ? /* @__PURE__ */ o(_, { children: e }) : /* @__PURE__ */ o(an, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
636
+ return n ? /* @__PURE__ */ o(M, { children: e }) : /* @__PURE__ */ o(ln, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
633
637
  }
634
- const bn = 24, Sn = 64, G = "TopBar", O = {
638
+ const Sn = 24, kn = 64, G = "TopBar", B = {
635
639
  topStripe: `${G}-topStripe`,
636
640
  titleBar: `${G}-titleBar`,
637
641
  titleSlider: `${G}-titleSlider`,
638
642
  titleText: `${G}-titleText`,
639
643
  leftPanelButton: `${G}-leftPanelButton`,
640
644
  rightPanelButton: `${G}-leftPanelButton`
641
- }, kn = Se("div", {
645
+ }, Dn = Se("div", {
642
646
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
643
647
  name: G
644
648
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
645
649
  var i, r;
646
650
  return {
647
651
  width: "100%",
648
- [`& .${O.topStripe}`]: {
652
+ [`& .${B.topStripe}`]: {
649
653
  width: "100%",
650
- height: `${bn}px`,
654
+ height: `${Sn}px`,
651
655
  backgroundColor: e.palette.primary.main
652
656
  },
653
- [`& .${O.titleBar}`]: {
657
+ [`& .${B.titleBar}`]: {
654
658
  backgroundColor: e.palette.primary.light,
655
- height: `${Sn}px`,
659
+ height: `${kn}px`,
656
660
  padding: e.spacing(0, 3),
657
661
  width: "100%"
658
662
  },
659
- [`& .${O.titleSlider}`]: s(s({
663
+ [`& .${B.titleSlider}`]: s(s({
660
664
  height: "100%",
661
665
  display: "flex",
662
666
  alignItems: "center",
@@ -665,14 +669,14 @@ const bn = 24, Sn = 64, G = "TopBar", O = {
665
669
  easing: e.transitions.easing.sharp,
666
670
  duration: e.transitions.duration.leavingScreen
667
671
  }),
668
- [`& .${O.leftPanelButton}`]: {
672
+ [`& .${B.leftPanelButton}`]: {
669
673
  marginRight: e.spacing(2),
670
674
  flexGrow: 0
671
675
  },
672
- [`& .${O.titleText}`]: {
676
+ [`& .${B.titleText}`]: {
673
677
  flexGrow: 1
674
678
  },
675
- [`& .${O.rightPanelButton}`]: {
679
+ [`& .${B.rightPanelButton}`]: {
676
680
  flexGrow: 0
677
681
  }
678
682
  }, (t == null ? void 0 : t.open) && {
@@ -690,19 +694,19 @@ const bn = 24, Sn = 64, G = "TopBar", O = {
690
694
  })
691
695
  };
692
696
  });
693
- function Dn({
697
+ function yn({
694
698
  titleText: e = "",
695
699
  leftPanel: t,
696
700
  rightPanel: n,
697
701
  "data-testid": i
698
702
  }) {
699
- return /* @__PURE__ */ p(kn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
700
- /* @__PURE__ */ o("div", { className: O.topStripe }),
701
- /* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ p($, { className: O.titleSlider, children: [
703
+ return /* @__PURE__ */ p(Dn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
704
+ /* @__PURE__ */ o("div", { className: B.topStripe }),
705
+ /* @__PURE__ */ o("div", { className: B.titleBar, children: /* @__PURE__ */ p($, { className: B.titleSlider, children: [
702
706
  t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
703
- Q,
707
+ Y,
704
708
  {
705
- className: O.leftPanelButton,
709
+ className: B.leftPanelButton,
706
710
  color: "inherit",
707
711
  "aria-label": "Open left side panel",
708
712
  onClick: t == null ? void 0 : t.onOpen,
@@ -714,11 +718,11 @@ function Dn({
714
718
  ]
715
719
  }
716
720
  ),
717
- /* @__PURE__ */ o(F, { className: O.titleText, variant: "h6", noWrap: !0, children: e }),
721
+ /* @__PURE__ */ o(P, { className: B.titleText, variant: "h6", noWrap: !0, children: e }),
718
722
  n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ p(
719
- Q,
723
+ Y,
720
724
  {
721
- className: O.rightPanelButton,
725
+ className: B.rightPanelButton,
722
726
  color: "inherit",
723
727
  "aria-label": "Open right side panel",
724
728
  onClick: n == null ? void 0 : n.onOpen,
@@ -733,7 +737,7 @@ function Dn({
733
737
  ] }) })
734
738
  ] });
735
739
  }
736
- const Ct = 400, yn = Se(ve, {
740
+ const Ct = 400, $n = Se(ve, {
737
741
  shouldForwardProp: (e) => (
738
742
  // Note we do want anchor to be forwarded to the Drawer component
739
743
  ![
@@ -763,7 +767,7 @@ const Ct = 400, yn = Se(ve, {
763
767
  marginLeft: `${r}px`
764
768
  }))
765
769
  })
766
- ), $n = Se($, {
770
+ ), In = Se($, {
767
771
  shouldForwardProp: (e) => !["anchor"].includes(e)
768
772
  })(({ theme: e, anchor: t }) => S(s({
769
773
  display: "flex",
@@ -795,18 +799,18 @@ function Re({
795
799
  debugOpacity: d = !1,
796
800
  headerBoxProps: l = {},
797
801
  onOpened: u,
798
- onClosed: w,
802
+ onClosed: v,
799
803
  "data-testid": C,
800
- navBarOpen: A = !1,
804
+ navBarOpen: w = !1,
801
805
  navBarWidthOpen: g = 0,
802
- navBarWidthClosed: k = 0
806
+ navBarWidthClosed: D = 0
803
807
  }) {
804
808
  return /* @__PURE__ */ p(
805
- yn,
809
+ $n,
806
810
  {
807
811
  SlideProps: {
808
812
  onEntered: () => u == null ? void 0 : u(),
809
- onExited: () => w == null ? void 0 : w()
813
+ onExited: () => v == null ? void 0 : v()
810
814
  },
811
815
  variant: "persistent",
812
816
  anchor: t,
@@ -814,29 +818,29 @@ function Re({
814
818
  width: a,
815
819
  debugOpacity: d,
816
820
  "data-testid": C,
817
- navBarOpen: A,
821
+ navBarOpen: w,
818
822
  navBarWidthOpen: g,
819
- navBarWidthClosed: k,
823
+ navBarWidthClosed: D,
820
824
  children: [
821
- /* @__PURE__ */ o($n, S(s({ anchor: t }, l), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
822
- /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r }),
823
- c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
825
+ /* @__PURE__ */ o(In, S(s({ anchor: t }, l), { children: t === "left" ? /* @__PURE__ */ p(M, { children: [
826
+ /* @__PURE__ */ o(P, { variant: "h6", color: "inherit", component: "div", children: r }),
827
+ c && /* @__PURE__ */ p(Y, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
824
828
  /* @__PURE__ */ o(at, { "data-testid": "arrowbackicon" }),
825
829
  " "
826
830
  ] })
827
- ] }) : /* @__PURE__ */ p(_, { children: [
828
- c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
831
+ ] }) : /* @__PURE__ */ p(M, { children: [
832
+ c && /* @__PURE__ */ p(Y, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
829
833
  /* @__PURE__ */ o(rt, {}),
830
834
  " "
831
835
  ] }),
832
- /* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r })
836
+ /* @__PURE__ */ o(P, { variant: "h6", color: "inherit", component: "div", children: r })
833
837
  ] }) })),
834
838
  e
835
839
  ]
836
840
  }
837
841
  );
838
842
  }
839
- const In = R($, {
843
+ const Tn = H($, {
840
844
  shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
841
845
  name: "PanelAwareMargins"
842
846
  })(({ theme: e, leftPanel: t, rightPanel: n }) => {
@@ -859,7 +863,7 @@ const In = R($, {
859
863
  }),
860
864
  marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
861
865
  });
862
- }), Tn = R(nt, {
866
+ }), On = H(nt, {
863
867
  name: "PageContainer"
864
868
  })(({ theme: e }) => ({
865
869
  // Horizontal padding comes from the Container's gutter
@@ -874,12 +878,12 @@ const In = R($, {
874
878
  startOpen: !1,
875
879
  open: void 0,
876
880
  onChangeOpen: void 0,
877
- content: /* @__PURE__ */ o(_, {}),
881
+ content: /* @__PURE__ */ o(M, {}),
878
882
  onOpened: void 0,
879
883
  onClosed: void 0,
880
884
  dataTestId: void 0
881
885
  };
882
- function Po({
886
+ function Mo({
883
887
  children: e,
884
888
  titleText: t = "",
885
889
  leftPanel: n,
@@ -890,18 +894,18 @@ function Po({
890
894
  pageContentDataTestId: d,
891
895
  topBarDataTestId: l,
892
896
  navBarOpen: u,
893
- navBarWidthOpen: w,
897
+ navBarWidthOpen: v,
894
898
  navBarWidthClosed: C
895
899
  }) {
896
- const [A, g] = E(fe), [k, b] = E(me), [D, I] = E(fe), [x, y] = E(me), H = n !== void 0, N = i !== void 0, {
897
- titleText: T,
900
+ const [w, g] = E(fe), [D, A] = E(me), [k, I] = E(fe), [T, b] = E(me), y = n !== void 0, L = i !== void 0, {
901
+ titleText: O,
898
902
  content: W,
899
903
  flavour: h,
900
904
  open: f,
901
- onChangeOpen: B,
905
+ onChangeOpen: F,
902
906
  width: m,
903
- arrowButtons: v,
904
- startOpen: L,
907
+ arrowButtons: x,
908
+ startOpen: _,
905
909
  onOpened: se,
906
910
  onClosed: $t,
907
911
  dataTestId: It
@@ -914,22 +918,22 @@ function Po({
914
918
  width: ce,
915
919
  arrowButtons: J,
916
920
  startOpen: Z,
917
- onOpened: Et,
918
- onClosed: Bt,
921
+ onOpened: Bt,
922
+ onClosed: Et,
919
923
  dataTestId: Ft
920
924
  } = i ? s(s({}, ee), i) : s({}, ee);
921
925
  oe(() => {
922
- L !== fe && (g(L), I(L));
923
- }, [L]), oe(() => {
924
- Z !== me && (b(Z), y(Z));
926
+ _ !== fe && (g(_), I(_));
927
+ }, [_]), oe(() => {
928
+ Z !== me && (A(Z), b(Z));
925
929
  }, [Z]);
926
- const de = f === void 0 ? A : f, ue = le === void 0 ? k : le, $e = (z) => {
927
- f === void 0 && (g(z), r && N && (z ? (b(!1), y(k)) : b(x))), B && B(z);
930
+ const de = f === void 0 ? w : f, ue = le === void 0 ? D : le, $e = (z) => {
931
+ f === void 0 && (g(z), r && L && (z ? (A(!1), b(D)) : A(T))), F && F(z);
928
932
  }, Ie = (z) => {
929
- le === void 0 && (b(z), r && H && (z ? (g(!1), I(A)) : g(D))), ye && ye(z);
933
+ le === void 0 && (A(z), r && y && (z ? (g(!1), I(w)) : g(k))), ye && ye(z);
930
934
  };
931
935
  return /* @__PURE__ */ p($, { children: [
932
- H && /* @__PURE__ */ o(
936
+ y && /* @__PURE__ */ o(
933
937
  Re,
934
938
  {
935
939
  "data-testid": It,
@@ -937,18 +941,18 @@ function Po({
937
941
  open: de,
938
942
  onClose: () => $e(!1),
939
943
  width: m,
940
- titleText: T,
944
+ titleText: O,
941
945
  debugOpacity: a,
942
- showCloseArrow: v === "both" || v === "close",
946
+ showCloseArrow: x === "both" || x === "close",
943
947
  onOpened: se,
944
948
  onClosed: $t,
945
949
  navBarOpen: u,
946
- navBarWidthOpen: w,
950
+ navBarWidthOpen: v,
947
951
  navBarWidthClosed: C,
948
952
  children: W
949
953
  }
950
954
  ),
951
- N && /* @__PURE__ */ o(
955
+ L && /* @__PURE__ */ o(
952
956
  Re,
953
957
  {
954
958
  "data-testid": Ft,
@@ -959,27 +963,27 @@ function Po({
959
963
  titleText: Tt,
960
964
  debugOpacity: a,
961
965
  showCloseArrow: J === "both" || J === "close",
962
- onOpened: Et,
963
- onClosed: Bt,
966
+ onOpened: Bt,
967
+ onClosed: Et,
964
968
  navBarOpen: u,
965
- navBarWidthOpen: w,
969
+ navBarWidthOpen: v,
966
970
  navBarWidthClosed: C,
967
971
  children: Ot
968
972
  }
969
973
  ),
970
974
  /* @__PURE__ */ o(
971
- Dn,
975
+ yn,
972
976
  s(s({
973
977
  titleText: t,
974
978
  "data-testid": l
975
- }, H && h === "push" ? {
979
+ }, y && h === "push" ? {
976
980
  leftPanel: {
977
981
  open: de,
978
982
  width: m,
979
983
  onOpen: () => $e(!0),
980
- showOpenArrow: v === "both" || v === "open"
984
+ showOpenArrow: x === "both" || x === "open"
981
985
  }
982
- } : {}), N && De === "push" ? {
986
+ } : {}), L && De === "push" ? {
983
987
  rightPanel: {
984
988
  open: ue,
985
989
  width: ce,
@@ -989,7 +993,7 @@ function Po({
989
993
  } : {})
990
994
  ),
991
995
  /* @__PURE__ */ o(
992
- In,
996
+ Tn,
993
997
  S(s(s({}, h === "push" ? {
994
998
  leftPanel: {
995
999
  open: de,
@@ -1001,7 +1005,7 @@ function Po({
1001
1005
  width: ce
1002
1006
  }
1003
1007
  } : {}), {
1004
- children: /* @__PURE__ */ o(Tn, S(s({ "data-testid": d }, c), { children: e }))
1008
+ children: /* @__PURE__ */ o(On, S(s({ "data-testid": d }, c), { children: e }))
1005
1009
  })
1006
1010
  )
1007
1011
  ] });
@@ -1009,11 +1013,11 @@ function Po({
1009
1013
  const xt = () => {
1010
1014
  const e = ae();
1011
1015
  return Ht(e.breakpoints.down("sm"));
1012
- }, On = 64, En = 72, Bn = 256, Y = M(!0), vt = M(Bn), wt = M(En), xe = M(""), Fn = M(void 0), At = M(On), bt = M(void 0);
1013
- function Pn({ links: e }) {
1016
+ }, Bn = 64, En = 72, Fn = 256, K = R(!0), vt = R(Fn), wt = R(En), xe = R(""), Pn = R(void 0), At = R(Bn), bt = R(void 0);
1017
+ function Nn({ links: e }) {
1014
1018
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
1015
1019
  }
1016
- const te = "Navbar", X = {
1020
+ const te = "Navbar", Q = {
1017
1021
  root: `${te}-root`,
1018
1022
  menuButton: `${te}-menuButton`,
1019
1023
  hide: `${te}-hide`,
@@ -1021,17 +1025,17 @@ const te = "Navbar", X = {
1021
1025
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
1022
1026
  // settings: `${PREFIX}-settings`,
1023
1027
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
1024
- }, Nn = R($, { name: "NavBar" })(({ theme: e }) => ({
1025
- [`&.${X.root}`]: {
1028
+ }, Ln = H($, { name: "NavBar" })(({ theme: e }) => ({
1029
+ [`&.${Q.root}`]: {
1026
1030
  display: "flex"
1027
1031
  },
1028
- [`& .${X.menuButton}`]: {
1032
+ [`& .${Q.menuButton}`]: {
1029
1033
  marginRight: 36
1030
1034
  },
1031
- [`& .${X.hide}`]: {
1035
+ [`& .${Q.hide}`]: {
1032
1036
  display: "none"
1033
1037
  },
1034
- [`& .${X.content}`]: {
1038
+ [`& .${Q.content}`]: {
1035
1039
  flexGrow: 1,
1036
1040
  padding: e.spacing(3)
1037
1041
  }
@@ -1043,7 +1047,7 @@ const te = "Navbar", X = {
1043
1047
  })), re = (e, t, n) => e.transitions.create(t, {
1044
1048
  easing: e.transitions.easing.sharp,
1045
1049
  duration: n === "leaving" ? e.transitions.duration.leavingScreen : e.transitions.duration.enteringScreen
1046
- }), Ln = (e) => {
1050
+ }), _n = (e) => {
1047
1051
  const t = ae();
1048
1052
  return /* @__PURE__ */ o(
1049
1053
  Wt,
@@ -1069,7 +1073,7 @@ const te = "Navbar", X = {
1069
1073
  }, St(e)), We = (e, t) => s({
1070
1074
  width: t,
1071
1075
  transition: re(e, "width", "leaving")
1072
- }, St(e)), _n = R(ve, {
1076
+ }, St(e)), Mn = H(ve, {
1073
1077
  shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
1074
1078
  })(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => s(s({
1075
1079
  flexShrink: 0,
@@ -1084,7 +1088,7 @@ const te = "Navbar", X = {
1084
1088
  backgroundColor: "",
1085
1089
  "& .MuiDrawer-paper": We(e, r ? n : i)
1086
1090
  })));
1087
- function Mn(e) {
1091
+ function Rn(e) {
1088
1092
  let t = 0;
1089
1093
  for (let n = 0, i = e.length; n < i; n++) {
1090
1094
  const r = e.charCodeAt(n);
@@ -1092,8 +1096,8 @@ function Mn(e) {
1092
1096
  }
1093
1097
  return t;
1094
1098
  }
1095
- const ze = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Rn = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
1096
- function Hn({ user: e, domainCode: t, open: n }) {
1099
+ const ze = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Hn = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
1100
+ function Wn({ user: e, domainCode: t, open: n }) {
1097
1101
  const i = ae();
1098
1102
  return /* @__PURE__ */ p(
1099
1103
  $,
@@ -1121,22 +1125,22 @@ function Hn({ user: e, domainCode: t, open: n }) {
1121
1125
  sx: {
1122
1126
  width: "100%",
1123
1127
  height: "100%",
1124
- bgcolor: ze[Math.abs(Mn(e.name)) % ze.length]
1128
+ bgcolor: ze[Math.abs(Rn(e.name)) % ze.length]
1125
1129
  },
1126
- children: Rn(e.name)
1130
+ children: Hn(e.name)
1127
1131
  }
1128
1132
  ) : /* @__PURE__ */ o(Fe, { sx: { width: "100%", height: "100%" } })
1129
1133
  }
1130
1134
  ),
1131
- /* @__PURE__ */ o(Ln, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(zt, { in: n, children: /* @__PURE__ */ p($, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
1132
- e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
1133
- t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
1135
+ /* @__PURE__ */ o(_n, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(zt, { in: n, children: /* @__PURE__ */ p($, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
1136
+ e != null && e.name ? /* @__PURE__ */ o(P, { children: e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
1137
+ t ? /* @__PURE__ */ o(P, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
1134
1138
  ] }) }) })
1135
1139
  ]
1136
1140
  }
1137
1141
  );
1138
1142
  }
1139
- function Wn({
1143
+ function zn({
1140
1144
  open: e,
1141
1145
  widthClosed: t,
1142
1146
  widthOpen: n,
@@ -1147,9 +1151,9 @@ function Wn({
1147
1151
  user: d,
1148
1152
  domainCode: l
1149
1153
  }) {
1150
- const u = xt(), w = lt(Y);
1151
- return /* @__PURE__ */ o(Nn, { className: X.root, "data-testid": i, children: /* @__PURE__ */ p(
1152
- _n,
1154
+ const u = xt(), v = st(K);
1155
+ return /* @__PURE__ */ o(Ln, { className: Q.root, "data-testid": i, children: /* @__PURE__ */ p(
1156
+ Mn,
1153
1157
  {
1154
1158
  open: e,
1155
1159
  widthOpen: n,
@@ -1160,7 +1164,7 @@ function Wn({
1160
1164
  component: "nav"
1161
1165
  },
1162
1166
  onClose: () => {
1163
- w(!1);
1167
+ v(!1);
1164
1168
  },
1165
1169
  isSmallScreen: u,
1166
1170
  children: [
@@ -1169,17 +1173,17 @@ function Wn({
1169
1173
  r,
1170
1174
  /* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } })
1171
1175
  ] }),
1172
- /* @__PURE__ */ o($, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Pn, { links: a }) : a }),
1176
+ /* @__PURE__ */ o($, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Nn, { links: a }) : a }),
1173
1177
  /* @__PURE__ */ p($, { flexGrow: "0", children: [
1174
1178
  /* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } }),
1175
- /* @__PURE__ */ o(Hn, { user: d, domainCode: l, open: e }),
1176
- c && /* @__PURE__ */ o(_, { children: c })
1179
+ /* @__PURE__ */ o(Wn, { user: d, domainCode: l, open: e }),
1180
+ c && /* @__PURE__ */ o(M, { children: c })
1177
1181
  ] })
1178
1182
  ]
1179
1183
  }
1180
1184
  ) });
1181
1185
  }
1182
- function zn({
1186
+ function Un({
1183
1187
  children: e,
1184
1188
  topBarHeight: t,
1185
1189
  maxWidth: n = !1,
@@ -1208,16 +1212,16 @@ function zn({
1208
1212
  }
1209
1213
  );
1210
1214
  }
1211
- const Un = "TopBar", Gn = {
1212
- titleText: `${Un}-titleText`
1215
+ const Gn = "TopBar", Vn = {
1216
+ titleText: `${Gn}-titleText`
1213
1217
  };
1214
- function Vn({
1218
+ function qn({
1215
1219
  titleText: e = "",
1216
1220
  height: t,
1217
1221
  "data-testid": n,
1218
1222
  middle: i
1219
1223
  }) {
1220
- const r = lt(Y), a = () => r((l) => !l), c = ae(), d = xt();
1224
+ const r = st(K), a = () => r((l) => !l), c = ae(), d = xt();
1221
1225
  return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
1222
1226
  Ke,
1223
1227
  {
@@ -1237,22 +1241,22 @@ function Vn({
1237
1241
  },
1238
1242
  children: [
1239
1243
  /* @__PURE__ */ o(
1240
- Q,
1244
+ Y,
1241
1245
  {
1242
1246
  size: "medium",
1243
1247
  color: "inherit",
1244
1248
  sx: { padding: 1.5, marginLeft: "12px" },
1245
1249
  onClick: a,
1246
- children: /* @__PURE__ */ o(Zt, { fontSize: "medium" })
1250
+ children: /* @__PURE__ */ o(jt, { fontSize: "medium" })
1247
1251
  }
1248
1252
  ),
1249
- /* @__PURE__ */ o(F, { className: Gn.titleText, variant: "h6", children: e }),
1253
+ /* @__PURE__ */ o(P, { className: Vn.titleText, variant: "h6", children: e }),
1250
1254
  i
1251
1255
  ]
1252
1256
  }
1253
1257
  ) });
1254
1258
  }
1255
- function No({
1259
+ function Ro({
1256
1260
  children: e,
1257
1261
  initialTitleText: t,
1258
1262
  initialNavBarOpen: n,
@@ -1263,45 +1267,45 @@ function No({
1263
1267
  navBarMiddle: d,
1264
1268
  navBarBottom: l,
1265
1269
  user: u,
1266
- domainCode: w
1270
+ domainCode: v
1267
1271
  }) {
1268
1272
  dt([
1269
- [Y, n != null ? n : !0],
1273
+ [K, n != null ? n : !0],
1270
1274
  [xe, t != null ? t : ""]
1271
1275
  ]);
1272
- const C = Le(Y), [A] = V(vt), [g] = V(wt), k = Le(xe), [b] = V(At), [D] = V(Fn), [I] = V(bt);
1276
+ const C = Le(K), [w] = V(vt), [g] = V(wt), D = Le(xe), [A] = V(At), [k] = V(Pn), [I] = V(bt);
1273
1277
  return /* @__PURE__ */ p($, { children: [
1274
1278
  /* @__PURE__ */ o(Gt, {}),
1275
1279
  /* @__PURE__ */ o(
1276
- Vn,
1280
+ qn,
1277
1281
  {
1278
- titleText: k,
1282
+ titleText: D,
1279
1283
  "data-testid": a,
1280
- height: b,
1281
- middle: D
1284
+ height: A,
1285
+ middle: k
1282
1286
  }
1283
1287
  ),
1284
1288
  /* @__PURE__ */ p($, { sx: { display: "flex" }, children: [
1285
1289
  /* @__PURE__ */ o(
1286
- Wn,
1290
+ zn,
1287
1291
  {
1288
1292
  open: C,
1289
1293
  top: I,
1290
1294
  middle: d,
1291
1295
  bottom: l,
1292
1296
  user: u,
1293
- domainCode: w,
1294
- widthOpen: A,
1297
+ domainCode: v,
1298
+ widthOpen: w,
1295
1299
  widthClosed: g,
1296
- offsetTop: b,
1300
+ offsetTop: A,
1297
1301
  "data-testid": c
1298
1302
  }
1299
1303
  ),
1300
1304
  /* @__PURE__ */ o(
1301
- zn,
1305
+ Un,
1302
1306
  S(s({
1303
1307
  "data-testid": r,
1304
- topBarHeight: b
1308
+ topBarHeight: A
1305
1309
  }, i), {
1306
1310
  children: e
1307
1311
  })
@@ -1309,13 +1313,13 @@ function No({
1309
1313
  ] })
1310
1314
  ] });
1311
1315
  }
1312
- const qn = {
1316
+ const Xn = {
1313
1317
  autoHideDuration: 6e3,
1314
1318
  anchorOrigin: { vertical: "top", horizontal: "center" },
1315
1319
  // The default is false. If we prefer timer to continue when window loses
1316
1320
  // focus, change to true
1317
1321
  disableWindowBlurListener: !1
1318
- }, Xn = {
1322
+ }, Qn = {
1319
1323
  shouldClose: (e, t) => t !== "clickaway"
1320
1324
  }, Ue = {
1321
1325
  message: "",
@@ -1323,56 +1327,56 @@ const qn = {
1323
1327
  variant: "standard",
1324
1328
  progressIndicator: void 0
1325
1329
  // Can use 'circular' or 'linear'
1326
- }, Ge = 100, Ve = 2e3, Qn = 2e3, Yn = (() => {
1330
+ }, Ge = 100, Ve = 2e3, Yn = 2e3, Kn = (() => {
1327
1331
  let e = 0;
1328
1332
  return () => (e += 1, e);
1329
- })(), Kn = {
1333
+ })(), Jn = {
1330
1334
  borderBottomLeftRadius: "0px",
1331
1335
  borderBottomRightRadius: "0px"
1332
- }, Jn = {}, Zn = {}, kt = Qe(null);
1333
- function jn(a) {
1336
+ }, Zn = {}, jn = {}, kt = Qe(null);
1337
+ function eo(a) {
1334
1338
  var c = a, {
1335
- overrideState: e = Jn,
1336
- overrideActions: t = Zn,
1337
- shouldClose: n = Xn.shouldClose,
1339
+ overrideState: e = Zn,
1340
+ overrideActions: t = jn,
1341
+ shouldClose: n = Qn.shouldClose,
1338
1342
  children: i
1339
- } = c, r = Ee(c, [
1343
+ } = c, r = Be(c, [
1340
1344
  "overrideState",
1341
1345
  "overrideActions",
1342
1346
  "shouldClose",
1343
1347
  "children"
1344
1348
  ]);
1345
- var B;
1346
- const [{ open: d }, l] = E({ open: !1 }), u = he([]), w = he(Date.now()), C = he(0), A = ne((m) => {
1349
+ var F;
1350
+ const [{ open: d }, l] = E({ open: !1 }), u = he([]), v = he(Date.now()), C = he(0), w = ne((m) => {
1347
1351
  l({ open: m });
1348
1352
  }, []), g = ne((m = {}) => {
1349
- C.current += 1, u.current.length >= Ge && Date.now() - w.current >= Ve && (w.current = Date.now(), console.error(
1353
+ C.current += 1, u.current.length >= Ge && Date.now() - v.current >= Ve && (v.current = Date.now(), console.error(
1350
1354
  `SaladBarProvider: MAX_QUEUE_LENGTH (${Ge}) hit ${C.current} times in last ${Ve}ms)`
1351
1355
  ), C.current = 0);
1352
- const v = s(S(s({}, Ue), {
1353
- key: Yn()
1356
+ const x = s(S(s({}, Ue), {
1357
+ key: Kn()
1354
1358
  }), m);
1355
- return u.current.push(v), u.current.length === 1 && l({ open: !0 }), v.key;
1356
- }, []), k = (m = "", v = {}) => g(s({ message: m, severity: "success" }, v)), b = (m = "", v = {}) => g(s({ message: m, severity: "info" }, v)), D = (m = "", v = {}) => g(s({ message: m, severity: "warning" }, v)), I = (m = "", v = {}) => g(s({ message: m, severity: "error" }, v)), x = (m) => {
1357
- const v = u.current.findIndex((L) => L.key === m);
1358
- if (v !== -1)
1359
- return v === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(v, 1);
1360
- }, y = (m, v) => {
1361
- n(m, v) && l({ open: !1 });
1362
- }, H = () => {
1363
- }, N = () => {
1359
+ return u.current.push(x), u.current.length === 1 && l({ open: !0 }), x.key;
1360
+ }, []), D = (m = "", x = {}) => g(s({ message: m, severity: "success" }, x)), A = (m = "", x = {}) => g(s({ message: m, severity: "info" }, x)), k = (m = "", x = {}) => g(s({ message: m, severity: "warning" }, x)), I = (m = "", x = {}) => g(s({ message: m, severity: "error" }, x)), T = (m) => {
1361
+ const x = u.current.findIndex((_) => _.key === m);
1362
+ if (x !== -1)
1363
+ return x === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(x, 1);
1364
+ }, b = (m, x) => {
1365
+ n(m, x) && l({ open: !1 });
1366
+ }, y = () => {
1367
+ }, L = () => {
1364
1368
  u.current.shift(), u.current.length > 0 && l({ open: !0 });
1365
- }, T = (B = u.current[0]) != null ? B : s({}, Ue), W = {};
1366
- "autoHideDuration" in T && (W.autoHideDuration = T.autoHideDuration);
1367
- const h = s(s({}, qn), r), f = s(s({
1369
+ }, O = (F = u.current[0]) != null ? F : s({}, Ue), W = {};
1370
+ "autoHideDuration" in O && (W.autoHideDuration = O.autoHideDuration);
1371
+ const h = s(s({}, Xn), r), f = s(s({
1368
1372
  open: d,
1369
- setOpen: A,
1373
+ setOpen: w,
1370
1374
  enqueueNotification: g,
1371
- enqueueSuccessNotification: k,
1372
- enqueueInfoNotification: b,
1373
- enqueueWarningNotification: D,
1375
+ enqueueSuccessNotification: D,
1376
+ enqueueInfoNotification: A,
1377
+ enqueueWarningNotification: k,
1374
1378
  enqueueErrorNotification: I,
1375
- removeNotification: x
1379
+ removeNotification: T
1376
1380
  }, e), t);
1377
1381
  return /* @__PURE__ */ p(kt.Provider, { value: f, children: [
1378
1382
  i,
@@ -1380,51 +1384,51 @@ function jn(a) {
1380
1384
  Vt,
1381
1385
  S(s(s({}, h), W), {
1382
1386
  open: d,
1383
- onClose: y,
1387
+ onClose: b,
1384
1388
  TransitionProps: {
1385
- onExited: N,
1386
- onExit: H
1389
+ onExited: L,
1390
+ onExit: y
1387
1391
  },
1388
- sx: { zIndex: Qn },
1392
+ sx: { zIndex: Yn },
1389
1393
  children: /* @__PURE__ */ p("div", { children: [
1390
1394
  /* @__PURE__ */ o(
1391
1395
  qt,
1392
1396
  {
1393
- onClose: (m) => y(m, "closeAlert"),
1394
- severity: T.severity,
1397
+ onClose: (m) => b(m, "closeAlert"),
1398
+ severity: O.severity,
1395
1399
  variant: "filled",
1396
- icon: T.progressIndicator === "circular" ? /* @__PURE__ */ o(be, { size: "1em" }) : void 0,
1397
- style: T.progressIndicator === "linear" ? Kn : void 0,
1398
- children: T.message
1400
+ icon: O.progressIndicator === "circular" ? /* @__PURE__ */ o(be, { size: "1em" }) : void 0,
1401
+ style: O.progressIndicator === "linear" ? Jn : void 0,
1402
+ children: O.message
1399
1403
  }
1400
1404
  ),
1401
- T.progressIndicator === "linear" && /* @__PURE__ */ o(Ze, { color: "primary" })
1405
+ O.progressIndicator === "linear" && /* @__PURE__ */ o(Ze, { color: "primary" })
1402
1406
  ] })
1403
1407
  })
1404
1408
  )
1405
1409
  ] });
1406
1410
  }
1407
- function eo() {
1411
+ function to() {
1408
1412
  const e = Ye(kt);
1409
1413
  if (e === null)
1410
1414
  throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1411
1415
  return e;
1412
1416
  }
1413
- const Lo = K(
1414
- (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(jn, S(s({}, e), { overrideState: t, overrideActions: n, children: i }))
1415
- ), to = sn(), _o = ({
1417
+ const Ho = X(
1418
+ (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(eo, S(s({}, e), { overrideState: t, overrideActions: n, children: i }))
1419
+ ), no = en(), Wo = ({
1416
1420
  children: e,
1417
1421
  store: t
1418
- }) => /* @__PURE__ */ o(ct, { store: t != null ? t : to, children: e }), Dt = "domainCode";
1422
+ }) => /* @__PURE__ */ o(lt, { store: t != null ? t : no, children: e }), Dt = "domainCode";
1419
1423
  var Xe;
1420
- const qe = M(
1424
+ const qe = R(
1421
1425
  JSON.parse((Xe = localStorage.getItem(Dt)) != null ? Xe : '{"domainCode": ""}').domainCode
1422
- ), yt = M(
1426
+ ), yt = R(
1423
1427
  (e) => e(qe),
1424
1428
  (e, t, n) => {
1425
1429
  t(qe, n), localStorage.setItem(Dt, JSON.stringify({ domainCode: n }));
1426
1430
  }
1427
- ), no = {
1431
+ ), oo = {
1428
1432
  act: "ACT",
1429
1433
  nsw: "NSW",
1430
1434
  nt: "NT",
@@ -1436,10 +1440,10 @@ const qe = M(
1436
1440
  ag: "AG",
1437
1441
  fedmps: "Fedmps",
1438
1442
  "": ""
1439
- }, oo = (e) => {
1443
+ }, io = (e) => {
1440
1444
  var t;
1441
- return e === null ? "N/A" : (t = no[e]) != null ? t : "";
1442
- }, Mo = ({
1445
+ return e === null ? "N/A" : (t = oo[e]) != null ? t : "";
1446
+ }, zo = ({
1443
1447
  isLoading: e,
1444
1448
  isOpen: t,
1445
1449
  onClose: n,
@@ -1447,31 +1451,31 @@ const qe = M(
1447
1451
  applicationName: r,
1448
1452
  handleLogout: a
1449
1453
  }) => {
1450
- const [c, d] = V(yt), [l, u] = E(c), { enqueueSuccessNotification: w } = eo(), C = i.length === 0, A = !!c && !i.includes(c) && !i.includes(l), g = !c || C || A, k = () => P(void 0, null, function* () {
1451
- l ? (d(l), w(`Set domain to ${l}`), n()) : d("");
1452
- }), b = () => P(void 0, null, function* () {
1453
- c && !C && !A ? (u(c), n()) : g && a();
1454
+ const [c, d] = V(yt), [l, u] = E(c), { enqueueSuccessNotification: v } = to(), C = i.length === 0, w = !!c && !i.includes(c) && !i.includes(l), g = !c || C || w, D = () => N(void 0, null, function* () {
1455
+ l ? (d(l), v(`Set domain to ${l}`), n()) : d("");
1456
+ }), A = () => N(void 0, null, function* () {
1457
+ c && !C && !w ? (u(c), n()) : g && a();
1454
1458
  });
1455
- let D;
1456
- return C ? D = "Unable to retrieve your active organisations. Try logging in again." : A && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1459
+ let k;
1460
+ return C ? k = "Unable to retrieve your active organisations. Try logging in again." : w && (k = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
1457
1461
  ft,
1458
1462
  {
1459
1463
  isOpen: t,
1460
1464
  dialogTitle: "Select an organisation",
1461
1465
  primaryButton: {
1462
1466
  text: "Confirm",
1463
- onClick: k,
1464
- disabled: !l || C || A,
1467
+ onClick: D,
1468
+ disabled: !l || C || w,
1465
1469
  buttonColor: "primary"
1466
1470
  },
1467
1471
  secondaryButton: {
1468
1472
  text: g ? "Logout" : "Cancel",
1469
- onClick: b
1473
+ onClick: A
1470
1474
  },
1471
1475
  onClose: g ? () => {
1472
1476
  } : n,
1473
1477
  children: [
1474
- /* @__PURE__ */ p(F, { marginBottom: 2, children: [
1478
+ /* @__PURE__ */ p(P, { marginBottom: 2, children: [
1475
1479
  "Select the default organisation that you want to use with the ",
1476
1480
  r,
1477
1481
  "."
@@ -1483,8 +1487,8 @@ const qe = M(
1483
1487
  multiple: !1,
1484
1488
  disableClearable: !1,
1485
1489
  value: l !== "" ? l : null,
1486
- onChange: (I, x) => u(x != null ? x : ""),
1487
- getOptionLabel: oo,
1490
+ onChange: (I, T) => u(T != null ? T : ""),
1491
+ getOptionLabel: io,
1488
1492
  options: [...i],
1489
1493
  renderInput: (I) => /* @__PURE__ */ o(
1490
1494
  Ae,
@@ -1492,7 +1496,7 @@ const qe = M(
1492
1496
  variant: "filled",
1493
1497
  label: "Select organisation",
1494
1498
  InputProps: S(s({}, I.InputProps), {
1495
- endAdornment: /* @__PURE__ */ p(_, { children: [
1499
+ endAdornment: /* @__PURE__ */ p(M, { children: [
1496
1500
  e ? /* @__PURE__ */ o(be, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1497
1501
  I.InputProps.endAdornment
1498
1502
  ] })
@@ -1501,11 +1505,11 @@ const qe = M(
1501
1505
  )
1502
1506
  }
1503
1507
  ),
1504
- D && /* @__PURE__ */ o(Xt, { error: !0, children: D })
1508
+ k && /* @__PURE__ */ o(Xt, { error: !0, children: k })
1505
1509
  ]
1506
1510
  }
1507
1511
  );
1508
- }, Ro = ot({
1512
+ }, Uo = ot({
1509
1513
  palette: {
1510
1514
  primary: {
1511
1515
  dark: "#00A651",
@@ -1556,7 +1560,7 @@ const qe = M(
1556
1560
  navBar: {
1557
1561
  backgroundColor: "#E8E8E8"
1558
1562
  }
1559
- }), Ho = ot({
1563
+ }), Go = ot({
1560
1564
  palette: {
1561
1565
  primary: {
1562
1566
  main: "#007236",
@@ -1647,76 +1651,77 @@ const qe = M(
1647
1651
  navBar: {
1648
1652
  backgroundColor: "#E8E8E8"
1649
1653
  }
1650
- }), io = {
1654
+ }), ro = {
1651
1655
  domainCode: yt,
1652
- navBarOpen: Y,
1656
+ navBarOpen: K,
1653
1657
  navBarWidthOpen: vt,
1654
1658
  navBarWidthClosed: wt,
1655
1659
  titleText: xe,
1656
1660
  topBarHeight: At,
1657
1661
  navBarTop: bt
1658
- }, Wo = K(() => ({ children: e }) => /* @__PURE__ */ o(ct, { children: e })), ro = ({
1662
+ }, Vo = X(() => ({ children: e }) => /* @__PURE__ */ o(lt, { children: e })), ao = ({
1659
1663
  initialValues: e,
1660
1664
  children: t
1661
- }) => (dt(e), /* @__PURE__ */ o(_, { children: t })), zo = K(
1665
+ }) => (dt(e), /* @__PURE__ */ o(M, { children: t })), qo = X(
1662
1666
  (e) => ({ children: t }) => /* @__PURE__ */ o(
1663
- ro,
1667
+ ao,
1664
1668
  {
1665
1669
  initialValues: Object.entries(e).map(
1666
1670
  ([n, i]) => [
1667
- io[n],
1671
+ ro[n],
1668
1672
  i
1669
1673
  ]
1670
1674
  ),
1671
1675
  children: t
1672
1676
  }
1673
1677
  )
1674
- ), Uo = K(() => ({ children: e }) => {
1675
- const t = new nn();
1676
- return /* @__PURE__ */ o(on, { client: t, children: e });
1678
+ ), Xo = X(() => ({ children: e }) => {
1679
+ const t = new rn();
1680
+ return /* @__PURE__ */ o(an, { client: t, children: e });
1677
1681
  });
1678
1682
  export {
1679
1683
  ft as AgDialog,
1680
- No as AppLayout,
1681
- _o as AtomProvider,
1682
- Fo as AuthGuard,
1684
+ Ro as AppLayout,
1685
+ Wo as AtomProvider,
1686
+ _o as AuthGuard,
1683
1687
  kt as Context,
1684
1688
  ke as ContextError,
1685
- Mo as DomainCodeDialog,
1686
- Do as ExampleComponent,
1687
- Oo as FetchAutocomplete,
1688
- ro as HydrateAtoms,
1689
+ zo as DomainCodeDialog,
1690
+ Io as ExampleComponent,
1691
+ Po as FetchAutocomplete,
1692
+ ao as HydrateAtoms,
1689
1693
  pt as NAVBAR_WIDTH_CLOSED,
1690
1694
  ut as NAVBAR_WIDTH_OPENED,
1691
- To as NavBar,
1692
- $o as NavBarDarkStyledList,
1693
- Io as NavBarLightStyledList,
1694
- gn as NavBarProvider,
1695
- Po as PageLayout,
1696
- jn as SaladBarProvider,
1697
- Bo as SessionExpiryDialog,
1698
- Eo as SingleAutocomplete,
1699
- to as atomStore,
1700
- mn as buildNavBarState,
1695
+ Fo as NavBar,
1696
+ Bo as NavBarDarkStyledList,
1697
+ Eo as NavBarLightStyledList,
1698
+ fn as NavBarProvider,
1699
+ Mo as PageLayout,
1700
+ eo as SaladBarProvider,
1701
+ Lo as SessionExpiryDialog,
1702
+ No as SingleAutocomplete,
1703
+ no as atomStore,
1704
+ Cn as buildNavBarState,
1701
1705
  yt as domainCodeAtom,
1702
- Ro as fed21Theme,
1703
- Cn as getAuth0Expiry,
1704
- Ho as internalAgSystemsTheme,
1706
+ Uo as fed21Theme,
1707
+ xn as getAuth0Expiry,
1708
+ Go as internalAgSystemsTheme,
1705
1709
  q as navBarClasses,
1706
- Y as navBarOpenAtom,
1710
+ K as navBarOpenAtom,
1707
1711
  bt as navBarTopAtom,
1708
1712
  wt as navBarWidthClosedAtom,
1709
1713
  vt as navBarWidthOpenAtom,
1710
1714
  xe as titleTextAtom,
1711
1715
  At as topBarHeightAtom,
1712
- Fn as topBarMiddleAtom,
1716
+ Pn as topBarMiddleAtom,
1713
1717
  mt as useAutocompleteOptions,
1714
- fn as useNavBar,
1715
- eo as useSaladBar,
1716
- Wo as withAtomProvider,
1717
- yo as withNavBarProvider,
1718
- zo as withOverrideDefaults,
1719
- Uo as withQueryClient,
1720
- Lo as withSaladBarProvider
1718
+ mn as useNavBar,
1719
+ to as useSaladBar,
1720
+ Vo as withAtomProvider,
1721
+ Oo as withBrowserRouter,
1722
+ To as withNavBarProvider,
1723
+ qo as withOverrideDefaults,
1724
+ Xo as withQueryClient,
1725
+ Ho as withSaladBarProvider
1721
1726
  };
1722
1727
  //# sourceMappingURL=index.js.map