@australiangreens/ag-internal-components 0.1.19 → 0.1.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
@@ -1,25 +1,25 @@
1
1
  var Et = Object.defineProperty, Ot = Object.defineProperties;
2
2
  var Ft = Object.getOwnPropertyDescriptors;
3
3
  var te = Object.getOwnPropertySymbols;
4
- var Te = Object.prototype.hasOwnProperty, Ee = Object.prototype.propertyIsEnumerable;
4
+ var Ee = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
5
5
  var he = (e, t, n) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- Te.call(t, n) && he(e, n, t[n]);
7
+ Ee.call(t, n) && he(e, n, t[n]);
8
8
  if (te)
9
9
  for (var n of te(t))
10
- Ee.call(t, n) && he(e, n, t[n]);
10
+ Oe.call(t, n) && he(e, n, t[n]);
11
11
  return e;
12
12
  }, I = (e, t) => Ot(e, Ft(t));
13
- var Oe = (e, t) => {
13
+ var Fe = (e, t) => {
14
14
  var n = {};
15
15
  for (var i in e)
16
- Te.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
16
+ Ee.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
17
  if (e != null && te)
18
18
  for (var i of te(e))
19
- t.indexOf(i) < 0 && Ee.call(e, i) && (n[i] = e[i]);
19
+ t.indexOf(i) < 0 && Oe.call(e, i) && (n[i] = e[i]);
20
20
  return n;
21
21
  };
22
- var Fe = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
22
+ var Be = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
23
23
  var P = (e, t, n) => new Promise((i, r) => {
24
24
  var s = (c) => {
25
25
  try {
@@ -37,25 +37,24 @@ var P = (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 _, jsx as o } from "react/jsx-runtime";
40
- import { useState as B, createContext as Je, useCallback as re, useContext as Ze, useEffect as K, createElement as Ce, useMemo as Bt, useRef as ge } from "react";
41
- import { Typography as O, Button as Q, Paper as je, Box as k, Drawer as we, styled as ve, IconButton as J, Container as et, useTheme as se, useMediaQuery as Nt, Collapse as Pt, Avatar as Be, Fade as _t, Skeleton as Ne, Toolbar as Lt, Divider as Pe, CssBaseline as Mt, Dialog as tt, LinearProgress as nt, DialogTitle as ot, DialogContent as it, DialogActions as rt, Autocomplete as Ae, TextField as be, CircularProgress as Se, Chip as Rt, Tooltip as Ht, Stack as Wt, Snackbar as Ut, Alert as zt, FormHelperText as Gt } from "@mui/material";
40
+ import { useState as B, createContext as Ze, useCallback as re, useContext as je, useEffect as K, createElement as Ce, useMemo as Bt, useRef as ge } from "react";
41
+ import { Typography as O, Button as Q, Paper as et, Box as k, Drawer as we, styled as ve, IconButton as J, Container as tt, useTheme as se, useMediaQuery as Nt, Collapse as Pt, Avatar as Ne, Fade as _t, Skeleton as Pe, Toolbar as Lt, Divider as _e, CssBaseline as Mt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Ae, TextField as be, CircularProgress as Se, Chip as Rt, Tooltip as Ht, Stack as Wt, Snackbar as Ut, Alert as zt, FormHelperText as Gt } from "@mui/material";
42
42
  import Vt from "@mui/material/CssBaseline";
43
- import { styled as W, createTheme as at, alpha as fe } from "@mui/material/styles";
44
- import { ContextError as st } from "src/errors";
43
+ import { styled as W, createTheme as st, alpha as fe } from "@mui/material/styles";
45
44
  import { createHelper as Ie } from "souvlaki";
46
45
  import { BrowserRouter as qt } from "react-router-dom";
47
46
  import lt from "@mui/material/List";
48
47
  import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as Xt, Cancel as Yt, ArrowDropDown as Kt } from "@mui/icons-material";
49
- import { atom as R, useSetAtom as ut, useAtomValue as _e, useAtom as V } from "jotai";
48
+ import { atom as R, useSetAtom as ut, useAtomValue as Le, useAtom as V } from "jotai";
50
49
  import { useHydrateAtoms as Qt } from "jotai/utils";
51
- import Le from "react-avatar";
50
+ import Me from "react-avatar";
52
51
  import Jt from "autosuggest-highlight/match";
53
52
  import Zt from "autosuggest-highlight/parse";
54
53
  import { useQuery as jt } from "@tanstack/react-query";
55
54
  import { useAuth0 as pt } from "@auth0/auth0-react";
56
55
  import { Buffer as en } from "buffer";
57
56
  import tn from "@mui/material/Skeleton";
58
- function Io({ text: e }) {
57
+ function bo({ text: e }) {
59
58
  const [t, n] = B(0);
60
59
  return /* @__PURE__ */ p(_, { children: [
61
60
  /* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
@@ -73,7 +72,7 @@ function Io({ text: e }) {
73
72
  "This is some text: ",
74
73
  /* @__PURE__ */ o("span", { children: e })
75
74
  ] }),
76
- /* @__PURE__ */ p(je, { children: [
75
+ /* @__PURE__ */ p(et, { children: [
77
76
  "This number will incremember when button pressed: ",
78
77
  t
79
78
  ] })
@@ -132,7 +131,11 @@ const ht = 330, gt = 73, z = "Navbar", q = {
132
131
  "& .MuiDrawer-paper": on()
133
132
  }), !t && {
134
133
  "& .MuiDrawer-paper": rn()
135
- })), mt = Je(null), sn = {}, ln = {}, cn = ({
134
+ }));
135
+ class ke extends Error {
136
+ }
137
+ Be(ke, "errorName", "ContextError");
138
+ const mt = Ze(null), sn = {}, ln = {}, cn = ({
136
139
  overrideState: e = sn,
137
140
  overrideActions: t = ln,
138
141
  children: n
@@ -148,15 +151,15 @@ const ht = 330, gt = 73, z = "Navbar", q = {
148
151
  }, e), t);
149
152
  return /* @__PURE__ */ o(mt.Provider, { value: l, children: n });
150
153
  }, dn = () => {
151
- const e = Ze(mt);
154
+ const e = je(mt);
152
155
  if (e === null)
153
- throw new st("Error: Tried to useNavBar outside of a <NavBarProvider>");
156
+ throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
154
157
  return e;
155
158
  }, un = (e = {}) => a({
156
159
  open: !0
157
- }, e), ko = Ie(
160
+ }, e), So = Ie(
158
161
  (e = un(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(cn, { overrideState: e, overrideActions: t, children: n })
159
- ), yo = Ie(() => ({ children: e }) => /* @__PURE__ */ o(qt, { children: e })), Me = 7, $o = W(lt)(({ theme: e }) => ({
162
+ ), Io = Ie(() => ({ children: e }) => /* @__PURE__ */ o(qt, { children: e })), Re = 7, ko = W(lt)(({ theme: e }) => ({
160
163
  backgroundColor: "black",
161
164
  color: "white",
162
165
  "& .MuiListItem-root": {
@@ -165,7 +168,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
165
168
  "& .MuiListItemButton-root": {
166
169
  " .MuiListItemIcon-root": {
167
170
  color: "white",
168
- padding: `${Me}px`
171
+ padding: `${Re}px`
169
172
  },
170
173
  // Focus state
171
174
  "&.Mui-focusVisible": {
@@ -176,7 +179,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
176
179
  borderLeftStyle: "solid",
177
180
  borderLeftWidth: "7px",
178
181
  borderLeftColor: e.palette.primary.main,
179
- paddingLeft: `calc(${e.spacing(2)} - ${Me}px)`
182
+ paddingLeft: `calc(${e.spacing(2)} - ${Re}px)`
180
183
  },
181
184
  // Hover state
182
185
  "&:hover": {
@@ -194,7 +197,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
194
197
  // '&.Mui-selected.Mui-focusVisible:hover': {
195
198
  // },
196
199
  }
197
- })), Re = 7, Do = W(lt)(({ theme: e }) => ({
200
+ })), He = 7, yo = W(lt)(({ theme: e }) => ({
198
201
  backgroundColor: "#e8e8e8",
199
202
  color: "inherit",
200
203
  "& .MuiListItem-root": {
@@ -203,7 +206,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
203
206
  "& .MuiListItemButton-root": {
204
207
  " .MuiListItemIcon-root": {
205
208
  color: "inherit",
206
- padding: `${Re}px`
209
+ padding: `${He}px`
207
210
  },
208
211
  // Focus state
209
212
  "&.Mui-focusVisible": {
@@ -214,7 +217,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
214
217
  borderLeftStyle: "solid",
215
218
  borderLeftWidth: "7px",
216
219
  borderLeftColor: e.palette.primary.main,
217
- paddingLeft: `calc(${e.spacing(2)} - ${Re}px)`
220
+ paddingLeft: `calc(${e.spacing(2)} - ${He}px)`
218
221
  },
219
222
  // Hover state
220
223
  "&:hover": {
@@ -233,7 +236,7 @@ const ht = 330, gt = 73, z = "Navbar", q = {
233
236
  // },
234
237
  }
235
238
  }));
236
- function To({
239
+ function $o({
237
240
  "data-testid": e,
238
241
  children: t
239
242
  }) {
@@ -404,7 +407,7 @@ const xt = 400, mn = ve(we, {
404
407
  marginRight: t === "right" ? e.spacing(2) : 0
405
408
  }
406
409
  }));
407
- function He({
410
+ function We({
408
411
  children: e,
409
412
  anchor: t = "left",
410
413
  open: n,
@@ -480,7 +483,7 @@ const Cn = W(k, {
480
483
  }),
481
484
  marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
482
485
  });
483
- }), wn = W(et, {
486
+ }), wn = W(tt, {
484
487
  name: "PageContainer"
485
488
  })(({ theme: e }) => ({
486
489
  // Horizontal padding comes from the Container's gutter
@@ -500,7 +503,7 @@ const Cn = W(k, {
500
503
  onClosed: void 0,
501
504
  dataTestId: void 0
502
505
  };
503
- function Eo({
506
+ function Do({
504
507
  children: e,
505
508
  titleText: t = "",
506
509
  leftPanel: n,
@@ -529,9 +532,9 @@ function Eo({
529
532
  } = n ? a(a({}, ne), n) : a({}, ne), {
530
533
  titleText: kt,
531
534
  content: yt,
532
- flavour: ke,
535
+ flavour: ye,
533
536
  open: ce,
534
- onChangeOpen: ye,
537
+ onChangeOpen: $e,
535
538
  width: de,
536
539
  arrowButtons: j,
537
540
  startOpen: ee,
@@ -544,19 +547,19 @@ function Eo({
544
547
  }, [H]), K(() => {
545
548
  ee !== xe && (S(ee), T(ee));
546
549
  }, [ee]);
547
- const ue = f === void 0 ? v : f, pe = ce === void 0 ? b : ce, $e = (U) => {
550
+ const ue = f === void 0 ? v : f, pe = ce === void 0 ? b : ce, De = (U) => {
548
551
  f === void 0 && (h(U), r && N && (U ? (S(!1), T(b)) : S(E))), m && m(U);
549
- }, De = (U) => {
550
- ce === void 0 && (S(U), r && L && (U ? (h(!1), D(v)) : h($))), ye && ye(U);
552
+ }, Te = (U) => {
553
+ ce === void 0 && (S(U), r && L && (U ? (h(!1), D(v)) : h($))), $e && $e(U);
551
554
  };
552
555
  return /* @__PURE__ */ p(k, { children: [
553
556
  L && /* @__PURE__ */ o(
554
- He,
557
+ We,
555
558
  {
556
559
  "data-testid": It,
557
560
  anchor: "left",
558
561
  open: ue,
559
- onClose: () => $e(!1),
562
+ onClose: () => De(!1),
560
563
  width: x,
561
564
  titleText: w,
562
565
  debugOpacity: s,
@@ -570,12 +573,12 @@ function Eo({
570
573
  }
571
574
  ),
572
575
  N && /* @__PURE__ */ o(
573
- He,
576
+ We,
574
577
  {
575
578
  "data-testid": Tt,
576
579
  anchor: "right",
577
580
  open: pe,
578
- onClose: () => De(!1),
581
+ onClose: () => Te(!1),
579
582
  width: de,
580
583
  titleText: kt,
581
584
  debugOpacity: s,
@@ -597,14 +600,14 @@ function Eo({
597
600
  leftPanel: {
598
601
  open: ue,
599
602
  width: x,
600
- onOpen: () => $e(!0),
603
+ onOpen: () => De(!0),
601
604
  showOpenArrow: A === "both" || A === "open"
602
605
  }
603
- } : {}), N && ke === "push" ? {
606
+ } : {}), N && ye === "push" ? {
604
607
  rightPanel: {
605
608
  open: pe,
606
609
  width: de,
607
- onOpen: () => De(!0),
610
+ onOpen: () => Te(!0),
608
611
  showOpenArrow: j === "both" || j === "open"
609
612
  }
610
613
  } : {})
@@ -616,7 +619,7 @@ function Eo({
616
619
  open: ue,
617
620
  width: x
618
621
  }
619
- } : {}), ke === "push" ? {
622
+ } : {}), ye === "push" ? {
620
623
  rightPanel: {
621
624
  open: pe,
622
625
  width: de
@@ -630,7 +633,7 @@ function Eo({
630
633
  const Ct = () => {
631
634
  const e = se();
632
635
  return Nt(e.breakpoints.down("sm"));
633
- }, vn = 64, An = 72, bn = 256, ae = R(!0), Sn = R(bn), In = R(An), We = R(""), kn = R(void 0), yn = R(vn), $n = R(void 0);
636
+ }, vn = 64, An = 72, bn = 256, ae = R(!0), Sn = R(bn), In = R(An), Ue = R(""), kn = R(void 0), yn = R(vn), $n = R(void 0);
634
637
  function Dn({ links: e }) {
635
638
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
636
639
  }
@@ -684,10 +687,10 @@ const oe = "Navbar", Y = {
684
687
  backgroundColor: (n = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? n : "white"
685
688
  // Provide default so tests don't need to wrap theme provider
686
689
  };
687
- }, Ue = (e, t) => a({
690
+ }, ze = (e, t) => a({
688
691
  width: t,
689
692
  transition: X(e, "width", "entering")
690
- }, wt(e)), ze = (e, t) => a({
693
+ }, wt(e)), Ge = (e, t) => a({
691
694
  width: t,
692
695
  transition: X(e, "width", "leaving")
693
696
  }, wt(e)), On = W(we, {
@@ -698,12 +701,12 @@ const oe = "Navbar", Y = {
698
701
  boxSizing: "border-box",
699
702
  display: "flex",
700
703
  flexDirection: "column"
701
- }, t && I(a({}, Ue(e, n)), {
704
+ }, t && I(a({}, ze(e, n)), {
702
705
  backgroundColor: "",
703
- "& .MuiDrawer-paper": Ue(e, n)
704
- })), !t && I(a({}, ze(e, r ? n : i)), {
706
+ "& .MuiDrawer-paper": ze(e, n)
707
+ })), !t && I(a({}, Ge(e, r ? n : i)), {
705
708
  backgroundColor: "",
706
- "& .MuiDrawer-paper": ze(e, r ? n : i)
709
+ "& .MuiDrawer-paper": Ge(e, r ? n : i)
707
710
  }))), ie = {
708
711
  log: console.warn.bind(console),
709
712
  error: console.error.bind(console),
@@ -711,7 +714,7 @@ const oe = "Navbar", Y = {
711
714
  info: console.info.bind(console),
712
715
  debug: console.debug.bind(console)
713
716
  };
714
- function Oo(e, t) {
717
+ function To(e, t) {
715
718
  console[e] = (...n) => {
716
719
  for (const i of t)
717
720
  if (typeof i == "function") {
@@ -724,7 +727,7 @@ function Oo(e, t) {
724
727
  ie[e](n);
725
728
  };
726
729
  }
727
- function Fo(e) {
730
+ function Eo(e) {
728
731
  if (e)
729
732
  console[e] = ie[e];
730
733
  else
@@ -739,7 +742,7 @@ function Fn(e) {
739
742
  }
740
743
  return t;
741
744
  }
742
- const Ge = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Ve = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
745
+ 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();
743
746
  function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
744
747
  const r = se();
745
748
  return /* @__PURE__ */ p(
@@ -762,17 +765,17 @@ function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
762
765
  aspectRatio: 1
763
766
  },
764
767
  children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
765
- Be,
768
+ Ne,
766
769
  {
767
770
  src: e == null ? void 0 : e.picture,
768
771
  sx: {
769
772
  width: "100%",
770
773
  height: "100%",
771
- bgcolor: Ge[Math.abs(Fn(e == null ? void 0 : e.name)) % Ge.length]
774
+ bgcolor: Ve[Math.abs(Fn(e == null ? void 0 : e.name)) % Ve.length]
772
775
  },
773
- children: Ve(e == null ? void 0 : e.name)
776
+ children: qe(e == null ? void 0 : e.name)
774
777
  }
775
- ) }) : /* @__PURE__ */ o(Be, { sx: { width: "100%", height: "100%" } })
778
+ ) }) : /* @__PURE__ */ o(Ne, { sx: { width: "100%", height: "100%" } })
776
779
  }
777
780
  ),
778
781
  i && /* @__PURE__ */ o(
@@ -783,17 +786,17 @@ function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
783
786
  transition: n ? X(r, ["width", "height"], "entering") : X(r, ["width", "height"], "leaving"),
784
787
  aspectRatio: 1
785
788
  },
786
- children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ p(Le, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: n ? "80" : "32", children: [
789
+ children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ p(Me, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: n ? "80" : "32", children: [
787
790
  " ",
788
- Ve(e == null ? void 0 : e.name),
791
+ qe(e == null ? void 0 : e.name),
789
792
  " ",
790
793
  "ab"
791
- ] }) }) : /* @__PURE__ */ o(Le, {})
794
+ ] }) }) : /* @__PURE__ */ o(Me, {})
792
795
  }
793
796
  ),
794
797
  /* @__PURE__ */ o(En, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(_t, { in: n, children: /* @__PURE__ */ p(k, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
795
- e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(Ne, { animation: !1, width: "50%" }),
796
- t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Ne, { animation: !1, width: "25%" })
798
+ e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
799
+ t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
797
800
  ] }) }) })
798
801
  ]
799
802
  }
@@ -831,11 +834,11 @@ function Nn({
831
834
  !g && /* @__PURE__ */ o(Lt, {}),
832
835
  r && /* @__PURE__ */ p(k, { flexGrow: "0", children: [
833
836
  r,
834
- /* @__PURE__ */ o(Pe, { variant: "middle", sx: { marginY: "0.5rem" } })
837
+ /* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } })
835
838
  ] }),
836
839
  /* @__PURE__ */ o(k, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o(Dn, { links: s }) : s }),
837
840
  /* @__PURE__ */ p(k, { flexGrow: "0", children: [
838
- /* @__PURE__ */ o(Pe, { variant: "middle", sx: { marginY: "0.5rem" } }),
841
+ /* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } }),
839
842
  /* @__PURE__ */ o(Bn, { user: l, domainCode: c, open: e, useNewAvatar: u }),
840
843
  d && /* @__PURE__ */ o(_, { children: d })
841
844
  ] })
@@ -858,7 +861,7 @@ function Pn({
858
861
  flexGrow: 1
859
862
  },
860
863
  children: i ? /* @__PURE__ */ o(k, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ o(
861
- et,
864
+ tt,
862
865
  {
863
866
  component: "main",
864
867
  id: "main-content",
@@ -881,7 +884,7 @@ function Mn({
881
884
  }) {
882
885
  const r = ut(ae), s = () => r((c) => !c), d = se(), l = Ct();
883
886
  return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
884
- je,
887
+ et,
885
888
  {
886
889
  square: !0,
887
890
  elevation: 0,
@@ -914,7 +917,7 @@ function Mn({
914
917
  }
915
918
  ) });
916
919
  }
917
- function Bo({
920
+ function Oo({
918
921
  children: e,
919
922
  initialTitleText: t,
920
923
  initialNavBarOpen: n,
@@ -930,9 +933,9 @@ function Bo({
930
933
  }) {
931
934
  Qt([
932
935
  [ae, n != null ? n : !0],
933
- [We, t != null ? t : ""]
936
+ [Ue, t != null ? t : ""]
934
937
  ]);
935
- const v = _e(ae), [h] = V(Sn), [b] = V(In), S = _e(We), [$] = V(yn), [D] = V(kn), [E] = V($n);
938
+ const v = Le(ae), [h] = V(Sn), [b] = V(In), S = Le(Ue), [$] = V(yn), [D] = V(kn), [E] = V($n);
936
939
  return /* @__PURE__ */ p(k, { children: [
937
940
  /* @__PURE__ */ o(Mt, {}),
938
941
  /* @__PURE__ */ o(
@@ -989,7 +992,7 @@ const vt = ({
989
992
  var h, b;
990
993
  const [C, v] = B(!1);
991
994
  return /* @__PURE__ */ p(
992
- tt,
995
+ nt,
993
996
  {
994
997
  open: e,
995
998
  onClose: (S, $) => P(void 0, null, function* () {
@@ -1000,10 +1003,10 @@ const vt = ({
1000
1003
  "data-testid": c,
1001
1004
  sx: l,
1002
1005
  children: [
1003
- g && /* @__PURE__ */ o(nt, { sx: { height: "4px", marginBottom: "-4px" } }),
1004
- /* @__PURE__ */ o(ot, { children: t }),
1005
- /* @__PURE__ */ o(it, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
1006
- /* @__PURE__ */ p(rt, { children: [
1006
+ g && /* @__PURE__ */ o(ot, { sx: { height: "4px", marginBottom: "-4px" } }),
1007
+ /* @__PURE__ */ o(it, { children: t }),
1008
+ /* @__PURE__ */ o(rt, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
1009
+ /* @__PURE__ */ p(at, { children: [
1007
1010
  /* @__PURE__ */ o(
1008
1011
  Q,
1009
1012
  {
@@ -1043,7 +1046,7 @@ const vt = ({
1043
1046
  ) : n(r),
1044
1047
  queryKey: ["autocomplete", i, r]
1045
1048
  });
1046
- function No({
1049
+ function Fo({
1047
1050
  lookup: e = () => P(this, null, function* () {
1048
1051
  }),
1049
1052
  enableHighlighting: t = !0,
@@ -1193,7 +1196,7 @@ function No({
1193
1196
  )) })
1194
1197
  ] });
1195
1198
  }
1196
- const Po = /MUI: The value provided to.*is invalid/i, _o = ({
1199
+ const Bo = /MUI: The value provided to.*is invalid/i, No = ({
1197
1200
  lookup: e = () => P(void 0, null, function* () {
1198
1201
  }),
1199
1202
  onChange: t,
@@ -1276,7 +1279,7 @@ const Po = /MUI: The value provided to.*is invalid/i, _o = ({
1276
1279
  } catch (t) {
1277
1280
  return -1;
1278
1281
  }
1279
- }, Lo = ({
1282
+ }, Po = ({
1280
1283
  open: e = !1,
1281
1284
  closeHandler: t,
1282
1285
  setAuth0ExpiryTime: n
@@ -1336,7 +1339,7 @@ function zn(e) {
1336
1339
  const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
1337
1340
  return t === "access_denied" && n.match(/Script.*time.*exceeded/);
1338
1341
  }
1339
- function Mo({
1342
+ function _o({
1340
1343
  children: e,
1341
1344
  appName: t = "the app",
1342
1345
  throwErrors: n = "none",
@@ -1377,9 +1380,9 @@ function Mo({
1377
1380
  const S = localStorage.getItem("auth0_redirect_count");
1378
1381
  S ? S && parseInt(S) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(S) + 1)), c(g)) : (localStorage.setItem("auth0_redirect_count", "1"), c(g));
1379
1382
  } else if (n === "unknown") throw l;
1380
- return /* @__PURE__ */ p(tt, { open: !0, children: [
1381
- /* @__PURE__ */ o(ot, { children: h }),
1382
- /* @__PURE__ */ p(it, { children: [
1383
+ return /* @__PURE__ */ p(nt, { open: !0, children: [
1384
+ /* @__PURE__ */ o(it, { children: h }),
1385
+ /* @__PURE__ */ p(rt, { children: [
1383
1386
  /* @__PURE__ */ o(O, { children: b }),
1384
1387
  /* @__PURE__ */ o("br", {}),
1385
1388
  /* @__PURE__ */ o(O, { variant: "subtitle2", children: "Details from Auth0" }),
@@ -1392,7 +1395,7 @@ function Mo({
1392
1395
  (v = l == null ? void 0 : l.error_description) != null ? v : "N/A"
1393
1396
  ] })
1394
1397
  ] }),
1395
- /* @__PURE__ */ p(rt, { children: [
1398
+ /* @__PURE__ */ p(at, { children: [
1396
1399
  h === "Auth0 script execution time exceeded" && /* @__PURE__ */ o(Q, { href: window.location.origin + window.location.pathname, children: "Reload" }),
1397
1400
  /* @__PURE__ */ o(Q, { onClick: () => u({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
1398
1401
  ] })
@@ -1409,26 +1412,26 @@ const Gn = {
1409
1412
  disableWindowBlurListener: !1
1410
1413
  }, Vn = {
1411
1414
  shouldClose: (e, t) => t !== "clickaway"
1412
- }, qe = {
1415
+ }, Xe = {
1413
1416
  message: "",
1414
1417
  severity: "info",
1415
1418
  variant: "standard",
1416
1419
  progressIndicator: void 0
1417
1420
  // Can use 'circular' or 'linear'
1418
- }, Xe = 100, Ye = 2e3, qn = 2e3, Xn = /* @__PURE__ */ (() => {
1421
+ }, Ye = 100, Ke = 2e3, qn = 2e3, Xn = /* @__PURE__ */ (() => {
1419
1422
  let e = 0;
1420
1423
  return () => (e += 1, e);
1421
1424
  })(), Yn = {
1422
1425
  borderBottomLeftRadius: "0px",
1423
1426
  borderBottomRightRadius: "0px"
1424
- }, Kn = {}, Qn = {}, bt = Je(null);
1427
+ }, Kn = {}, Qn = {}, bt = Ze(null);
1425
1428
  function Jn(s) {
1426
1429
  var d = s, {
1427
1430
  overrideState: e = Kn,
1428
1431
  overrideActions: t = Qn,
1429
1432
  shouldClose: n = Vn.shouldClose,
1430
1433
  children: i
1431
- } = d, r = Oe(d, [
1434
+ } = d, r = Fe(d, [
1432
1435
  "overrideState",
1433
1436
  "overrideActions",
1434
1437
  "shouldClose",
@@ -1438,10 +1441,10 @@ function Jn(s) {
1438
1441
  const [{ open: l }, c] = B({ open: !1 }), u = ge([]), g = ge(Date.now()), C = ge(0), v = re((x) => {
1439
1442
  c({ open: x });
1440
1443
  }, []), h = re((x = {}) => {
1441
- C.current += 1, u.current.length >= Xe && Date.now() - g.current >= Ye && (g.current = Date.now(), console.error(
1442
- `SaladBarProvider: MAX_QUEUE_LENGTH (${Xe}) hit ${C.current} times in last ${Ye}ms)`
1444
+ C.current += 1, u.current.length >= Ye && Date.now() - g.current >= Ke && (g.current = Date.now(), console.error(
1445
+ `SaladBarProvider: MAX_QUEUE_LENGTH (${Ye}) hit ${C.current} times in last ${Ke}ms)`
1443
1446
  ), C.current = 0);
1444
- const A = a(I(a({}, qe), {
1447
+ const A = a(I(a({}, Xe), {
1445
1448
  key: Xn()
1446
1449
  }), x);
1447
1450
  return u.current.push(A), u.current.length === 1 && c({ open: !0 }), A.key;
@@ -1454,7 +1457,7 @@ function Jn(s) {
1454
1457
  }, L = () => {
1455
1458
  }, N = () => {
1456
1459
  u.current.shift(), u.current.length > 0 && c({ open: !0 });
1457
- }, w = (m = u.current[0]) != null ? m : a({}, qe), y = {};
1460
+ }, w = (m = u.current[0]) != null ? m : a({}, Xe), y = {};
1458
1461
  "autoHideDuration" in w && (y.autoHideDuration = w.autoHideDuration);
1459
1462
  const M = a(a({}, Gn), r), f = a(a({
1460
1463
  open: l,
@@ -1490,28 +1493,28 @@ function Jn(s) {
1490
1493
  children: w.message
1491
1494
  }
1492
1495
  ),
1493
- w.progressIndicator === "linear" && /* @__PURE__ */ o(nt, { color: "primary" })
1496
+ w.progressIndicator === "linear" && /* @__PURE__ */ o(ot, { color: "primary" })
1494
1497
  ] })
1495
1498
  })
1496
1499
  )
1497
1500
  ] });
1498
1501
  }
1499
1502
  function Zn() {
1500
- const e = Ze(bt);
1503
+ const e = je(bt);
1501
1504
  if (e === null)
1502
- throw new st("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1505
+ throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1503
1506
  return e;
1504
1507
  }
1505
- const Ro = Ie(
1508
+ const Lo = Ie(
1506
1509
  (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Jn, I(a({}, e), { overrideState: t, overrideActions: n, children: i }))
1507
1510
  ), St = "domainCode";
1508
- var Qe;
1509
- const Ke = R(
1510
- JSON.parse((Qe = localStorage.getItem(St)) != null ? Qe : '{"domainCode": ""}').domainCode
1511
+ var Je;
1512
+ const Qe = R(
1513
+ JSON.parse((Je = localStorage.getItem(St)) != null ? Je : '{"domainCode": ""}').domainCode
1511
1514
  ), jn = R(
1512
- (e) => e(Ke),
1515
+ (e) => e(Qe),
1513
1516
  (e, t, n) => {
1514
- t(Ke, n), localStorage.setItem(St, JSON.stringify({ domainCode: n }));
1517
+ t(Qe, n), localStorage.setItem(St, JSON.stringify({ domainCode: n }));
1515
1518
  }
1516
1519
  ), eo = {
1517
1520
  act: "ACT",
@@ -1528,7 +1531,7 @@ const Ke = R(
1528
1531
  }, to = (e) => {
1529
1532
  var t;
1530
1533
  return e === null ? "N/A" : (t = eo[e]) != null ? t : "";
1531
- }, Ho = ({
1534
+ }, Mo = ({
1532
1535
  isLoading: e,
1533
1536
  isOpen: t,
1534
1537
  onClose: n,
@@ -1595,11 +1598,7 @@ const Ke = R(
1595
1598
  ]
1596
1599
  }
1597
1600
  );
1598
- };
1599
- class no extends Error {
1600
- }
1601
- Fe(no, "errorName", "ContextError");
1602
- const Wo = at({
1601
+ }, Ro = st({
1603
1602
  palette: {
1604
1603
  primary: {
1605
1604
  dark: "#00A651",
@@ -1650,7 +1649,7 @@ const Wo = at({
1650
1649
  navBar: {
1651
1650
  backgroundColor: "#E8E8E8"
1652
1651
  }
1653
- }), Uo = at({
1652
+ }), Ho = st({
1654
1653
  palette: {
1655
1654
  primary: {
1656
1655
  main: "#007236",
@@ -1747,45 +1746,45 @@ const Wo = at({
1747
1746
  });
1748
1747
  export {
1749
1748
  vt as AgDialog,
1750
- Bo as AppLayout,
1751
- Mo as AuthGuard,
1749
+ Oo as AppLayout,
1750
+ _o as AuthGuard,
1752
1751
  bt as Context,
1753
- no as ContextError,
1754
- Ho as DomainCodeDialog,
1755
- Io as ExampleComponent,
1756
- No as FetchAutocomplete,
1757
- Po as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1752
+ ke as ContextError,
1753
+ Mo as DomainCodeDialog,
1754
+ bo as ExampleComponent,
1755
+ Fo as FetchAutocomplete,
1756
+ Bo as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
1758
1757
  gt as NAVBAR_WIDTH_CLOSED,
1759
1758
  ht as NAVBAR_WIDTH_OPENED,
1760
- To as NavBar,
1761
- $o as NavBarDarkStyledList,
1762
- Do as NavBarLightStyledList,
1759
+ $o as NavBar,
1760
+ ko as NavBarDarkStyledList,
1761
+ yo as NavBarLightStyledList,
1763
1762
  cn as NavBarProvider,
1764
- Eo as PageLayout,
1763
+ Do as PageLayout,
1765
1764
  Jn as SaladBarProvider,
1766
- Lo as SessionExpiryDialog,
1767
- _o as SingleAutocomplete,
1765
+ Po as SessionExpiryDialog,
1766
+ No as SingleAutocomplete,
1768
1767
  un as buildNavBarState,
1769
1768
  jn as domainCodeAtom,
1770
- Wo as fed21Theme,
1769
+ Ro as fed21Theme,
1771
1770
  Rn as getAuth0Expiry,
1772
- Uo as internalAgSystemsTheme,
1771
+ Ho as internalAgSystemsTheme,
1773
1772
  q as navBarClasses,
1774
1773
  ae as navBarOpenAtom,
1775
1774
  $n as navBarTopAtom,
1776
1775
  In as navBarWidthClosedAtom,
1777
1776
  Sn as navBarWidthOpenAtom,
1778
1777
  Fn as simpleHashCode,
1779
- Oo as suppressConsole,
1780
- We as titleTextAtom,
1778
+ To as suppressConsole,
1779
+ Ue as titleTextAtom,
1781
1780
  yn as topBarHeightAtom,
1782
1781
  kn as topBarMiddleAtom,
1783
- Fo as unsuppressConsole,
1782
+ Eo as unsuppressConsole,
1784
1783
  At as useAutocompleteOptions,
1785
1784
  dn as useNavBar,
1786
1785
  Zn as useSaladBar,
1787
- yo as withBrowserRouter,
1788
- ko as withNavBarProvider,
1789
- Ro as withSaladBarProvider
1786
+ Io as withBrowserRouter,
1787
+ So as withNavBarProvider,
1788
+ Lo as withSaladBarProvider
1790
1789
  };
1791
1790
  //# sourceMappingURL=index.js.map