@australiangreens/ag-internal-components 0.3.19 → 0.3.21

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
@@ -21,24 +21,24 @@ var fe = (e, t) => {
21
21
  };
22
22
  var me = (e, t, o) => ie(e, typeof t != "symbol" ? t + "" : t, o);
23
23
  var N = (e, t, o) => new Promise((n, r) => {
24
- var s = (l) => {
24
+ var s = (c) => {
25
25
  try {
26
- a(o.next(l));
27
- } catch (c) {
28
- r(c);
26
+ a(o.next(c));
27
+ } catch (l) {
28
+ r(l);
29
29
  }
30
- }, u = (l) => {
30
+ }, u = (c) => {
31
31
  try {
32
- a(o.throw(l));
33
- } catch (c) {
34
- r(c);
32
+ a(o.throw(c));
33
+ } catch (l) {
34
+ r(l);
35
35
  }
36
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, u);
36
+ }, a = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(s, u);
37
37
  a((o = o.apply(e, t)).next());
38
38
  });
39
39
  import { jsxs as m, Fragment as M, jsx as i } from "react/jsx-runtime";
40
40
  import { useState as G, createElement as se, useEffect as ge, useMemo as rt, createContext as at, useRef as re, useCallback as xe, useContext as st } from "react";
41
- import { Typography as I, Button as W, Paper as $e, Dialog as Me, LinearProgress as Le, DialogTitle as Oe, DialogContent as Re, DialogActions as Ue, Autocomplete as le, TextField as ce, CircularProgress as te, Box as P, Chip as lt, Tooltip as ct, Stack as dt, Snackbar as ut, Alert as pt, FormHelperText as ht, useTheme as oe, useMediaQuery as ft, Drawer as mt, Collapse as gt, Avatar as Ae, Fade as xt, Skeleton as Ce, Toolbar as At, Divider as Se, Container as Ct, IconButton as St } from "@mui/material";
41
+ import { Typography as P, Button as W, Paper as $e, Dialog as Me, LinearProgress as Le, DialogTitle as Oe, DialogContent as Re, DialogActions as Ue, Autocomplete as le, TextField as ce, CircularProgress as te, Box as T, Chip as lt, Tooltip as ct, Stack as dt, Snackbar as ut, Alert as pt, FormHelperText as ht, useTheme as oe, useMediaQuery as ft, Drawer as mt, Collapse as gt, Avatar as Ae, Fade as xt, Skeleton as Ce, Toolbar as At, Divider as Se, Container as Ct, IconButton as St } from "@mui/material";
42
42
  import { Cancel as vt, ArrowDropDown as wt, ViewHeadline as Dt } from "@mui/icons-material";
43
43
  import { useQuery as Be } from "@tanstack/react-query";
44
44
  import kt from "autosuggest-highlight/match";
@@ -56,8 +56,8 @@ import De from "react-avatar";
56
56
  function $o({ text: e }) {
57
57
  const [t, o] = G(0);
58
58
  return /* @__PURE__ */ m(M, { children: [
59
- /* @__PURE__ */ i(I, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
60
- /* @__PURE__ */ i(I, { variant: "caption", display: "block", children: /* @__PURE__ */ i("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
59
+ /* @__PURE__ */ i(P, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
60
+ /* @__PURE__ */ i(P, { variant: "caption", display: "block", children: /* @__PURE__ */ i("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
61
61
  /* @__PURE__ */ i(
62
62
  W,
63
63
  {
@@ -86,8 +86,8 @@ const We = ({
86
86
  secondaryButton: s,
87
87
  additionalButtons: u,
88
88
  onClose: a,
89
- sx: l,
90
- "data-testid": c,
89
+ sx: c,
90
+ "data-testid": l,
91
91
  disableCloseOnBackdropOrEscape: x = !1,
92
92
  isLoading: A = !1
93
93
  }) => {
@@ -102,8 +102,8 @@ const We = ({
102
102
  }),
103
103
  fullWidth: !0,
104
104
  maxWidth: n != null ? n : "xs",
105
- "data-testid": c,
106
- sx: l,
105
+ "data-testid": l,
106
+ sx: c,
107
107
  children: [
108
108
  A && /* @__PURE__ */ i(Le, { sx: { height: "4px", marginBottom: "-4px" } }),
109
109
  /* @__PURE__ */ i(Oe, { children: t }),
@@ -185,8 +185,8 @@ function Mo({
185
185
  label: s,
186
186
  value: u,
187
187
  "data-testid": a,
188
- sx: l,
189
- boxSx: c,
188
+ sx: c,
189
+ boxSx: l,
190
190
  textFieldColor: x,
191
191
  textFieldVariant: A = "filled",
192
192
  textFieldFocused: D,
@@ -196,10 +196,10 @@ function Mo({
196
196
  popupIcon: h = /* @__PURE__ */ i(wt, {}),
197
197
  error: k = !1,
198
198
  helperText: F = "",
199
- preLoadedOptions: T = void 0,
199
+ preLoadedOptions: _ = void 0,
200
200
  disablePortal: V = !1,
201
201
  disableIconFlip: K = !1,
202
- chipToolTipSlotProps: _ = Pt,
202
+ chipToolTipSlotProps: I = Pt,
203
203
  placeholderText: O = void 0,
204
204
  onRightClick: X = () => {
205
205
  },
@@ -215,13 +215,13 @@ function Mo({
215
215
  label: s,
216
216
  lookup: e,
217
217
  minLength: r,
218
- preLoadedOptions: T
218
+ preLoadedOptions: _
219
219
  }), H = C.length >= r;
220
220
  return /* @__PURE__ */ m("div", { "data-testid": a, children: [
221
221
  /* @__PURE__ */ i(
222
222
  le,
223
223
  {
224
- sx: d(d({}, l), K ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
224
+ sx: d(d({}, c), K ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
225
225
  "data-testid": a ? `${a}:Autocomplete` : void 0,
226
226
  disablePortal: V,
227
227
  multiple: !0,
@@ -311,7 +311,7 @@ function Mo({
311
311
  readOnly: R
312
312
  }
313
313
  ),
314
- u.length > 0 && /* @__PURE__ */ i(P, { sx: c, children: u.map((p) => {
314
+ u.length > 0 && /* @__PURE__ */ i(T, { sx: l, children: u.map((p) => {
315
315
  var v;
316
316
  return /* @__PURE__ */ i(
317
317
  lt,
@@ -326,8 +326,8 @@ function Mo({
326
326
  {
327
327
  title: (v = p.tooltipContent) != null ? v : "",
328
328
  placement: "bottom-start",
329
- slotProps: _,
330
- children: /* @__PURE__ */ i(I, { style: { whiteSpace: "normal" }, children: p.chipLabel ? p.chipLabel : p.label })
329
+ slotProps: I,
330
+ children: /* @__PURE__ */ i(P, { style: { whiteSpace: "normal" }, children: p.chipLabel ? p.chipLabel : p.label })
331
331
  }
332
332
  ),
333
333
  "data-testid": a ? `${a}:Chip(${p.id.toString()})` : void 0,
@@ -354,8 +354,8 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
354
354
  sx: s,
355
355
  textFieldColor: u,
356
356
  textFieldVariant: a = "filled",
357
- textFieldFocused: l,
358
- textFieldSx: c,
357
+ textFieldFocused: c,
358
+ textFieldSx: l,
359
359
  error: x = !1,
360
360
  "data-testid": A,
361
361
  loadingText: D = "Loading...",
@@ -365,10 +365,10 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
365
365
  preLoadedOptions: h,
366
366
  helperText: k = "",
367
367
  disabled: F,
368
- popupIcon: T,
368
+ popupIcon: _,
369
369
  disableIconFlip: V,
370
370
  placeholderText: K = void 0,
371
- onRightClick: _ = () => {
371
+ onRightClick: I = () => {
372
372
  },
373
373
  disableDefaultRightClickBehaviour: O = !1,
374
374
  readOnly: X,
@@ -390,7 +390,7 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
390
390
  f.button === Ge.right && O && (f.preventDefault(), f.stopPropagation());
391
391
  },
392
392
  onContextMenuCapture: (f) => {
393
- O && (f.preventDefault(), f.stopPropagation()), _(f);
393
+ O && (f.preventDefault(), f.stopPropagation()), I(f);
394
394
  },
395
395
  children: /* @__PURE__ */ i(
396
396
  le,
@@ -408,7 +408,7 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
408
408
  noOptionsText: Q ? g : "Start typing to search",
409
409
  loadingText: D,
410
410
  getOptionLabel: (f) => f.label,
411
- popupIcon: T,
411
+ popupIcon: _,
412
412
  renderInput: (f) => /* @__PURE__ */ i(
413
413
  ce,
414
414
  b(d({
@@ -429,8 +429,8 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
429
429
  })
430
430
  },
431
431
  placeholder: K,
432
- sx: c,
433
- focused: l
432
+ sx: l,
433
+ focused: c
434
434
  })
435
435
  ),
436
436
  isOptionEqualToValue: (f, E) => f.id === E.id,
@@ -477,7 +477,7 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
477
477
  primaryButton: {
478
478
  text: "Continue",
479
479
  onClick: () => N(null, null, function* () {
480
- const c = yield r({ cacheMode: "off" }), x = Tt(c) * 1e3;
480
+ const l = yield r({ cacheMode: "off" }), x = Tt(l) * 1e3;
481
481
  o(x), t();
482
482
  }),
483
483
  disabled: !1,
@@ -527,7 +527,7 @@ function Uo({
527
527
  }
528
528
  }) {
529
529
  var A, D;
530
- const { isAuthenticated: s, isLoading: u, error: a, loginWithRedirect: l, logout: c } = de();
530
+ const { isAuthenticated: s, isLoading: u, error: a, loginWithRedirect: c, logout: l } = de();
531
531
  ge(() => {
532
532
  a && r(a);
533
533
  }, [a, r]);
@@ -540,8 +540,8 @@ function Uo({
540
540
  []
541
541
  );
542
542
  if (ge(() => {
543
- u || s || a || l(x);
544
- }, [u, s, a, l, r, x]), a) {
543
+ u || s || a || c(x);
544
+ }, [u, s, a, c, r, x]), a) {
545
545
  if (n || console.error(
546
546
  `Error detected in AuthGuard [isAuthenticated=${s},isLoading=${u}]`,
547
547
  a
@@ -557,26 +557,26 @@ function Uo({
557
557
  g = "Auth0 script execution time exceeded", S = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute by clicking the RELOAD button below.";
558
558
  else if (a.message === "Invalid state") {
559
559
  const y = localStorage.getItem("auth0_redirect_count");
560
- y ? y && parseInt(y) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(y) + 1)), l(x)) : (localStorage.setItem("auth0_redirect_count", "1"), l(x));
560
+ y ? y && parseInt(y) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(y) + 1)), c(x)) : (localStorage.setItem("auth0_redirect_count", "1"), c(x));
561
561
  } else if (o === "unknown") throw a;
562
562
  return /* @__PURE__ */ m(Me, { open: !0, children: [
563
563
  /* @__PURE__ */ i(Oe, { children: g }),
564
564
  /* @__PURE__ */ m(Re, { children: [
565
- /* @__PURE__ */ i(I, { children: S }),
565
+ /* @__PURE__ */ i(P, { children: S }),
566
566
  /* @__PURE__ */ i("br", {}),
567
- /* @__PURE__ */ i(I, { variant: "subtitle2", children: "Details from Auth0" }),
568
- /* @__PURE__ */ m(I, { variant: "body2", children: [
567
+ /* @__PURE__ */ i(P, { variant: "subtitle2", children: "Details from Auth0" }),
568
+ /* @__PURE__ */ m(P, { variant: "body2", children: [
569
569
  "error: ",
570
570
  (A = a == null ? void 0 : a.error) != null ? A : "N/A"
571
571
  ] }),
572
- /* @__PURE__ */ m(I, { variant: "body2", children: [
572
+ /* @__PURE__ */ m(P, { variant: "body2", children: [
573
573
  "description: ",
574
574
  (D = a == null ? void 0 : a.error_description) != null ? D : "N/A"
575
575
  ] })
576
576
  ] }),
577
577
  /* @__PURE__ */ m(Ue, { children: [
578
578
  g === "Auth0 script execution time exceeded" && /* @__PURE__ */ i(W, { href: window.location.origin + window.location.pathname, children: "Reload" }),
579
- /* @__PURE__ */ i(W, { onClick: () => c({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
579
+ /* @__PURE__ */ i(W, { onClick: () => l({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
580
580
  ] })
581
581
  ] });
582
582
  } else if (o === "unknown") throw a;
@@ -617,27 +617,27 @@ function Wt(s) {
617
617
  "children"
618
618
  ]);
619
619
  var R;
620
- const [{ open: a }, l] = G({ open: !1 }), c = re([]), x = re(Date.now()), A = re(0), D = xe((w) => {
621
- l({ open: w });
620
+ const [{ open: a }, c] = G({ open: !1 }), l = re([]), x = re(Date.now()), A = re(0), D = xe((w) => {
621
+ c({ open: w });
622
622
  }, []), g = xe((w = {}) => {
623
- A.current += 1, c.current.length >= ye && Date.now() - x.current >= be && (x.current = Date.now(), console.error(
623
+ A.current += 1, l.current.length >= ye && Date.now() - x.current >= be && (x.current = Date.now(), console.error(
624
624
  `SaladBarProvider: MAX_QUEUE_LENGTH (${ye}) hit ${A.current} times in last ${be}ms)`
625
625
  ), A.current = 0);
626
626
  const C = d(b(d({}, ke), {
627
627
  key: Bt()
628
628
  }), w);
629
- return c.current.push(C), c.current.length === 1 && l({ open: !0 }), C.key;
629
+ return l.current.push(C), l.current.length === 1 && c({ open: !0 }), C.key;
630
630
  }, []), S = (w = "", C = {}) => g(d({ message: w, severity: "success" }, C)), y = (w = "", C = {}) => g(d({ message: w, severity: "info" }, C)), h = (w = "", C = {}) => g(d({ message: w, severity: "warning" }, C)), k = (w = "", C = {}) => g(d({ message: w, severity: "error" }, C)), F = (w) => {
631
- const C = c.current.findIndex((B) => B.key === w);
631
+ const C = l.current.findIndex((B) => B.key === w);
632
632
  if (C !== -1)
633
- return C === 0 ? (l({ open: !1 }), c.current[0]) : c.current.splice(C, 1);
634
- }, T = (w, C) => {
635
- o(w, C) && l({ open: !1 });
633
+ return C === 0 ? (c({ open: !1 }), l.current[0]) : l.current.splice(C, 1);
634
+ }, _ = (w, C) => {
635
+ o(w, C) && c({ open: !1 });
636
636
  }, V = () => {
637
637
  }, K = () => {
638
- c.current.shift(), c.current.length > 0 && l({ open: !0 });
639
- }, _ = (R = c.current[0]) != null ? R : d({}, ke), O = {};
640
- "autoHideDuration" in _ && (O.autoHideDuration = _.autoHideDuration);
638
+ l.current.shift(), l.current.length > 0 && c({ open: !0 });
639
+ }, I = (R = l.current[0]) != null ? R : d({}, ke), O = {};
640
+ "autoHideDuration" in I && (O.autoHideDuration = I.autoHideDuration);
641
641
  const X = d(d({}, Ot), r), U = d(d({
642
642
  open: a,
643
643
  setOpen: D,
@@ -654,7 +654,7 @@ function Wt(s) {
654
654
  ut,
655
655
  b(d(d({}, X), O), {
656
656
  open: a,
657
- onClose: T,
657
+ onClose: _,
658
658
  TransitionProps: {
659
659
  onExited: K,
660
660
  onExit: V
@@ -664,15 +664,15 @@ function Wt(s) {
664
664
  /* @__PURE__ */ i(
665
665
  pt,
666
666
  {
667
- onClose: (w) => T(w, "closeAlert"),
668
- severity: _.severity,
667
+ onClose: (w) => _(w, "closeAlert"),
668
+ severity: I.severity,
669
669
  variant: "filled",
670
- icon: _.progressIndicator === "circular" ? /* @__PURE__ */ i(te, { size: "1em" }) : void 0,
671
- style: _.progressIndicator === "linear" ? Ht : void 0,
672
- children: _.message
670
+ icon: I.progressIndicator === "circular" ? /* @__PURE__ */ i(te, { size: "1em" }) : void 0,
671
+ style: I.progressIndicator === "linear" ? Ht : void 0,
672
+ children: I.message
673
673
  }
674
674
  ),
675
- _.progressIndicator === "linear" && /* @__PURE__ */ i(Le, { color: "primary" })
675
+ I.progressIndicator === "linear" && /* @__PURE__ */ i(Le, { color: "primary" })
676
676
  ] })
677
677
  })
678
678
  )
@@ -722,8 +722,8 @@ const Fe = L(
722
722
  applicationName: s,
723
723
  handleLogout: u
724
724
  }) => {
725
- const [a, l] = q(Vt), [c, x] = G(a), { enqueueSuccessNotification: A } = Gt(), D = r.length === 0, g = !!a && !r.includes(a) && !r.includes(c), S = !a || D || g, y = () => N(null, null, function* () {
726
- c ? (l(c), n == null || n(c), A(`Set organisation to ${c}`), o()) : (l(""), n == null || n(""));
725
+ const [a, c] = q(Vt), [l, x] = G(a), { enqueueSuccessNotification: A } = Gt(), D = r.length === 0, g = !!a && !r.includes(a) && !r.includes(l), S = !a || D || g, y = () => N(null, null, function* () {
726
+ l ? (c(l), n == null || n(l), A(`Set organisation to ${l}`), o()) : (c(""), n == null || n(""));
727
727
  }), h = () => N(null, null, function* () {
728
728
  a && !D && !g ? (x(a), o()) : S && u();
729
729
  });
@@ -736,7 +736,7 @@ const Fe = L(
736
736
  primaryButton: {
737
737
  text: "Confirm",
738
738
  onClick: y,
739
- disabled: !c || D || g,
739
+ disabled: !l || D || g,
740
740
  buttonColor: "primary"
741
741
  },
742
742
  secondaryButton: {
@@ -746,7 +746,7 @@ const Fe = L(
746
746
  onClose: S ? () => {
747
747
  } : o,
748
748
  children: [
749
- /* @__PURE__ */ m(I, { marginBottom: 2, children: [
749
+ /* @__PURE__ */ m(P, { marginBottom: 2, children: [
750
750
  "Select the default organisation that you want to use with the ",
751
751
  s,
752
752
  "."
@@ -757,8 +757,8 @@ const Fe = L(
757
757
  loading: e,
758
758
  multiple: !1,
759
759
  disableClearable: !1,
760
- value: c !== "" ? c : null,
761
- onChange: (F, T) => x(T != null ? T : ""),
760
+ value: l !== "" ? l : null,
761
+ onChange: (F, _) => x(_ != null ? _ : ""),
762
762
  getOptionLabel: Qe,
763
763
  options: [...r.toSorted()],
764
764
  renderInput: (F) => /* @__PURE__ */ i(
@@ -795,7 +795,7 @@ const Z = "Navbar", Y = {
795
795
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
796
796
  // settings: `${PREFIX}-settings`,
797
797
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
798
- }, no = qe(P, { name: "NavBar" })(({ theme: e }) => ({
798
+ }, no = qe(T, { name: "NavBar" })(({ theme: e }) => ({
799
799
  [`&.${Y.root}`]: {
800
800
  display: "flex"
801
801
  },
@@ -871,7 +871,7 @@ function qo(e, t, o, n) {
871
871
  if (!r) return "None";
872
872
  const s = Object.entries(r).filter(([, a]) => a.includes(t)).map(([a]) => je(a));
873
873
  return (u = n.find(
874
- (a) => o[a].some((l) => s.includes(l))
874
+ (a) => o[a].some((c) => s.includes(c))
875
875
  )) != null ? u : "None";
876
876
  }
877
877
  function ao(e, t) {
@@ -940,7 +940,7 @@ const Pe = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], T
940
940
  function co({ user: e, domainCode: t, open: o, useNewAvatar: n = !1 }) {
941
941
  const r = oe();
942
942
  return /* @__PURE__ */ m(
943
- P,
943
+ T,
944
944
  {
945
945
  sx: {
946
946
  paddingTop: 3,
@@ -951,7 +951,7 @@ function co({ user: e, domainCode: t, open: o, useNewAvatar: n = !1 }) {
951
951
  },
952
952
  children: [
953
953
  !n && /* @__PURE__ */ i(
954
- P,
954
+ T,
955
955
  {
956
956
  sx: {
957
957
  width: o ? "5rem" : "2rem",
@@ -973,7 +973,7 @@ function co({ user: e, domainCode: t, open: o, useNewAvatar: n = !1 }) {
973
973
  }
974
974
  ),
975
975
  n && /* @__PURE__ */ i(
976
- P,
976
+ T,
977
977
  {
978
978
  sx: {
979
979
  width: o ? "5rem" : "2rem",
@@ -988,9 +988,9 @@ function co({ user: e, domainCode: t, open: o, useNewAvatar: n = !1 }) {
988
988
  ] }) }) : /* @__PURE__ */ i(De, {})
989
989
  }
990
990
  ),
991
- /* @__PURE__ */ i(io, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ i(xt, { in: o, children: /* @__PURE__ */ m(P, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
992
- e != null && e.name ? /* @__PURE__ */ i(I, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ i(Ce, { animation: !1, width: "50%" }),
993
- t ? /* @__PURE__ */ i(I, { children: Qe(t) }) : /* @__PURE__ */ i(Ce, { animation: !1, width: "25%" })
991
+ /* @__PURE__ */ i(io, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ i(xt, { in: o, children: /* @__PURE__ */ m(T, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
992
+ e != null && e.name ? /* @__PURE__ */ i(P, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ i(Ce, { animation: !1, width: "50%" }),
993
+ t ? /* @__PURE__ */ i(P, { children: Qe(t) }) : /* @__PURE__ */ i(Ce, { animation: !1, width: "25%" })
994
994
  ] }) }) })
995
995
  ]
996
996
  }
@@ -1005,8 +1005,8 @@ function uo({
1005
1005
  middle: s,
1006
1006
  bottom: u,
1007
1007
  user: a,
1008
- domainCode: l,
1009
- useNewAvatar: c = !1
1008
+ domainCode: c,
1009
+ useNewAvatar: l = !1
1010
1010
  }) {
1011
1011
  const x = Je(), A = He(ee);
1012
1012
  return /* @__PURE__ */ i(no, { className: Y.root, "data-testid": n, children: /* @__PURE__ */ m(
@@ -1026,14 +1026,14 @@ function uo({
1026
1026
  isSmallScreen: x,
1027
1027
  children: [
1028
1028
  !x && /* @__PURE__ */ i(At, {}),
1029
- r && /* @__PURE__ */ m(P, { flexGrow: "0", children: [
1029
+ r && /* @__PURE__ */ m(T, { flexGrow: "0", children: [
1030
1030
  r,
1031
1031
  /* @__PURE__ */ i(Se, { variant: "middle", sx: { marginY: "0.5rem" } })
1032
1032
  ] }),
1033
- /* @__PURE__ */ i(P, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ i(oo, { links: s }) : s }),
1034
- /* @__PURE__ */ m(P, { flexGrow: "0", children: [
1033
+ /* @__PURE__ */ i(T, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ i(oo, { links: s }) : s }),
1034
+ /* @__PURE__ */ m(T, { flexGrow: "0", children: [
1035
1035
  /* @__PURE__ */ i(Se, { variant: "middle", sx: { marginY: "0.5rem" } }),
1036
- /* @__PURE__ */ i(co, { user: a, domainCode: l, open: e, useNewAvatar: c }),
1036
+ /* @__PURE__ */ i(co, { user: a, domainCode: c, open: e, useNewAvatar: l }),
1037
1037
  u && /* @__PURE__ */ i(M, { children: u })
1038
1038
  ] })
1039
1039
  ]
@@ -1047,14 +1047,14 @@ function po({
1047
1047
  noPadding: n
1048
1048
  }) {
1049
1049
  return /* @__PURE__ */ i(
1050
- P,
1050
+ T,
1051
1051
  {
1052
1052
  sx: {
1053
1053
  overflow: "auto",
1054
1054
  height: `calc(100vh - ${t}px)`,
1055
1055
  flexGrow: 1
1056
1056
  },
1057
- children: n ? /* @__PURE__ */ i(P, { height: "inherit", children: e }) : /* @__PURE__ */ i(Ct, { maxWidth: o, sx: { paddingTop: 3, paddingBottom: 3, flexGrow: 1 }, children: e })
1057
+ children: n ? /* @__PURE__ */ i(T, { height: "inherit", children: e }) : /* @__PURE__ */ i(Ct, { maxWidth: o, sx: { paddingTop: 3, paddingBottom: 3, flexGrow: 1 }, children: e })
1058
1058
  }
1059
1059
  );
1060
1060
  }
@@ -1065,9 +1065,10 @@ function mo({
1065
1065
  titleText: e = "",
1066
1066
  height: t,
1067
1067
  "data-testid": o,
1068
- middle: n
1068
+ middle: n,
1069
+ menuButtonAriaLabel: r = "Open navigation menu"
1069
1070
  }) {
1070
- const r = He(ee), s = () => r((l) => !l), u = oe(), a = Je();
1071
+ const s = He(ee), u = () => s((l) => !l), a = oe(), c = Je();
1071
1072
  return /* @__PURE__ */ i("header", { "data-testid": o, children: /* @__PURE__ */ m(
1072
1073
  $e,
1073
1074
  {
@@ -1083,7 +1084,7 @@ function mo({
1083
1084
  gap: 2,
1084
1085
  flexShrink: 0,
1085
1086
  height: t,
1086
- zIndex: a ? 0 : u.zIndex.drawer + 99
1087
+ zIndex: c ? 0 : a.zIndex.drawer + 99
1087
1088
  },
1088
1089
  children: [
1089
1090
  /* @__PURE__ */ i(
@@ -1092,11 +1093,12 @@ function mo({
1092
1093
  size: "medium",
1093
1094
  color: "inherit",
1094
1095
  sx: { padding: 1.5, marginLeft: "12px" },
1095
- onClick: s,
1096
+ onClick: u,
1097
+ "aria-label": r,
1096
1098
  children: /* @__PURE__ */ i(Dt, { fontSize: "medium" })
1097
1099
  }
1098
1100
  ),
1099
- /* @__PURE__ */ i(I, { className: fo.titleText, variant: "h6", component: "h1", children: e }),
1101
+ /* @__PURE__ */ i(P, { className: fo.titleText, variant: "h6", component: "h1", children: e }),
1100
1102
  n
1101
1103
  ]
1102
1104
  }
@@ -1109,51 +1111,53 @@ function Xo({
1109
1111
  pageContainerProps: n,
1110
1112
  pageContentDataTestId: r,
1111
1113
  topBarDataTestId: s,
1112
- navBarDataTestId: u,
1113
- navBarMiddle: a,
1114
+ menuButtonAriaLabel: u,
1115
+ navBarDataTestId: a,
1116
+ navBarMiddle: c,
1114
1117
  navBarBottom: l,
1115
- user: c,
1116
- domainCode: x,
1117
- useNewAvatar: A = !1
1118
+ user: x,
1119
+ domainCode: A,
1120
+ useNewAvatar: D = !1
1118
1121
  }) {
1119
1122
  It([
1120
1123
  [ee, o != null ? o : !0],
1121
1124
  [Ee, t != null ? t : ""]
1122
1125
  ]);
1123
- const D = ve(ee), [g] = q(Jt), [S] = q(Zt), y = ve(Ee), [h] = q(eo), [k] = q(jt), [F] = q(to);
1126
+ const g = ve(ee), [S] = q(Jt), [y] = q(Zt), h = ve(Ee), [k] = q(eo), [F] = q(jt), [_] = q(to);
1124
1127
  return /* @__PURE__ */ m(we, { children: [
1125
1128
  /* @__PURE__ */ i(_t, {}),
1126
1129
  /* @__PURE__ */ i(
1127
1130
  mo,
1128
1131
  {
1129
- titleText: y,
1132
+ titleText: h,
1130
1133
  "data-testid": s,
1131
- height: h,
1132
- middle: k
1134
+ height: k,
1135
+ middle: F,
1136
+ menuButtonAriaLabel: u
1133
1137
  }
1134
1138
  ),
1135
1139
  /* @__PURE__ */ m(we, { sx: { display: "flex" }, children: [
1136
1140
  /* @__PURE__ */ i(
1137
1141
  uo,
1138
1142
  {
1139
- open: D,
1140
- top: F,
1141
- middle: a,
1143
+ open: g,
1144
+ top: _,
1145
+ middle: c,
1142
1146
  bottom: l,
1143
- user: c,
1144
- domainCode: x,
1145
- widthOpen: g,
1146
- widthClosed: S,
1147
- offsetTop: h,
1148
- "data-testid": u,
1149
- useNewAvatar: A
1147
+ user: x,
1148
+ domainCode: A,
1149
+ widthOpen: S,
1150
+ widthClosed: y,
1151
+ offsetTop: k,
1152
+ "data-testid": a,
1153
+ useNewAvatar: D
1150
1154
  }
1151
1155
  ),
1152
1156
  /* @__PURE__ */ i(
1153
1157
  po,
1154
1158
  b(d({
1155
1159
  "data-testid": r,
1156
- topBarHeight: h
1160
+ topBarHeight: k
1157
1161
  }, n), {
1158
1162
  children: e
1159
1163
  })