@australiangreens/ag-internal-components 0.0.47 → 0.0.51

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.
Files changed (123) hide show
  1. package/README.md +7 -0
  2. package/dist/DevApp.d.ts +3 -0
  3. package/dist/DevApp.d.ts.map +1 -0
  4. package/dist/DevDemo/DevDemo.d.ts +3 -0
  5. package/dist/DevDemo/DevDemo.d.ts.map +1 -0
  6. package/dist/DevDemo/DomainCodeDemo.d.ts +3 -0
  7. package/dist/DevDemo/DomainCodeDemo.d.ts.map +1 -0
  8. package/dist/DevDemo/ExampleComponentDemo.d.ts +3 -0
  9. package/dist/DevDemo/ExampleComponentDemo.d.ts.map +1 -0
  10. package/dist/DevDemo/NavBarContent.d.ts +3 -0
  11. package/dist/DevDemo/NavBarContent.d.ts.map +1 -0
  12. package/dist/DevDemo/SaladBarDemo.d.ts +3 -0
  13. package/dist/DevDemo/SaladBarDemo.d.ts.map +1 -0
  14. package/dist/DevDemo/SomeRandomDemo.d.ts +3 -0
  15. package/dist/DevDemo/SomeRandomDemo.d.ts.map +1 -0
  16. package/dist/DevDemo/SpecialPageDemo.d.ts +3 -0
  17. package/dist/DevDemo/SpecialPageDemo.d.ts.map +1 -0
  18. package/dist/DevDemo/index.d.ts +2 -0
  19. package/dist/DevDemo/index.d.ts.map +1 -0
  20. package/dist/cjs/index.cjs +1 -1
  21. package/dist/cjs/index.cjs.map +1 -1
  22. package/dist/components/AgDialog/AgDialog.d.ts +24 -0
  23. package/dist/components/AgDialog/AgDialog.d.ts.map +1 -0
  24. package/dist/components/AgDialog/index.d.ts +2 -23
  25. package/dist/components/AgDialog/index.d.ts.map +1 -1
  26. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts +2 -0
  27. package/dist/components/ExampleComponent/ExampleComponent.comp.test.d.ts.map +1 -0
  28. package/dist/components/ExampleComponent/ExampleComponent.d.ts +7 -0
  29. package/dist/components/ExampleComponent/ExampleComponent.d.ts.map +1 -0
  30. package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts +11 -0
  31. package/dist/components/ExampleComponent/ExampleComponent.stories.d.ts.map +1 -0
  32. package/dist/components/ExampleComponent/index.d.ts +2 -5
  33. package/dist/components/ExampleComponent/index.d.ts.map +1 -1
  34. package/dist/components/NavBar/NavBar.comp.test.d.ts +2 -0
  35. package/dist/components/NavBar/NavBar.comp.test.d.ts.map +1 -0
  36. package/dist/components/NavBar/NavBar.d.ts +22 -0
  37. package/dist/components/NavBar/NavBar.d.ts.map +1 -0
  38. package/dist/components/NavBar/NavBarContext.d.ts.map +1 -1
  39. package/dist/components/NavBar/NavBarDarkStyledList.d.ts.map +1 -1
  40. package/dist/components/NavBar/NavBarLightStyledList.d.ts.map +1 -1
  41. package/dist/components/NavBar/index.d.ts +2 -16
  42. package/dist/components/NavBar/index.d.ts.map +1 -1
  43. package/dist/components/NavBar/testWrappers.d.ts.map +1 -1
  44. package/dist/components/index.d.ts.map +1 -1
  45. package/dist/devMain.d.ts +1 -0
  46. package/dist/devMain.d.ts.map +1 -0
  47. package/dist/domainCode/DomainCodeDialog.comp.test.d.ts +2 -0
  48. package/dist/domainCode/DomainCodeDialog.comp.test.d.ts.map +1 -0
  49. package/dist/domainCode/DomainCodeDialog.d.ts.map +1 -1
  50. package/dist/domainCode/hooks.d.ts.map +1 -1
  51. package/dist/domainCode/index.d.ts.map +1 -1
  52. package/dist/errors/ContextError.d.ts.map +1 -1
  53. package/dist/errors/ContextError.unit.test.d.ts +2 -0
  54. package/dist/errors/ContextError.unit.test.d.ts.map +1 -0
  55. package/dist/errors/index.d.ts.map +1 -1
  56. package/dist/esm/index.js +655 -667
  57. package/dist/esm/index.js.map +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/layouts/AppLayout/AppLayout.comp.test.d.ts +2 -0
  60. package/dist/layouts/AppLayout/AppLayout.comp.test.d.ts.map +1 -0
  61. package/dist/layouts/AppLayout/AppLayout.d.ts +3 -1
  62. package/dist/layouts/AppLayout/AppLayout.d.ts.map +1 -1
  63. package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts +1 -0
  64. package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts.map +1 -1
  65. package/dist/layouts/AppLayout/NavBar/NavBar.comp.test.d.ts +2 -0
  66. package/dist/layouts/AppLayout/NavBar/NavBar.comp.test.d.ts.map +1 -0
  67. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +4 -2
  68. package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
  69. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts +2 -5
  70. package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
  71. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts +9 -2
  72. package/dist/layouts/AppLayout/NavBar/UserInfo.d.ts.map +1 -1
  73. package/dist/layouts/AppLayout/NavBar/index.d.ts.map +1 -1
  74. package/dist/layouts/AppLayout/NavBar/types.d.ts.map +1 -1
  75. package/dist/layouts/AppLayout/PageContainer.d.ts.map +1 -1
  76. package/dist/layouts/AppLayout/TopBar.comp.test.d.ts +2 -0
  77. package/dist/layouts/AppLayout/TopBar.comp.test.d.ts.map +1 -0
  78. package/dist/layouts/AppLayout/TopBar.d.ts +1 -0
  79. package/dist/layouts/AppLayout/TopBar.d.ts.map +1 -1
  80. package/dist/layouts/AppLayout/defaults.d.ts.map +1 -1
  81. package/dist/layouts/AppLayout/index.d.ts.map +1 -1
  82. package/dist/layouts/AppLayout/stateAtoms.d.ts.map +1 -1
  83. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts +2 -0
  84. package/dist/layouts/PageLayout/PageLayout.comp.test.d.ts.map +1 -0
  85. package/dist/layouts/PageLayout/PageLayout.d.ts +60 -0
  86. package/dist/layouts/PageLayout/PageLayout.d.ts.map +1 -0
  87. package/dist/layouts/PageLayout/SidePanel.comp.test.d.ts +2 -0
  88. package/dist/layouts/PageLayout/SidePanel.comp.test.d.ts.map +1 -0
  89. package/dist/layouts/PageLayout/SidePanel.d.ts.map +1 -1
  90. package/dist/layouts/PageLayout/TopBar.comp.test.d.ts +2 -0
  91. package/dist/layouts/PageLayout/TopBar.comp.test.d.ts.map +1 -0
  92. package/dist/layouts/PageLayout/TopBar.d.ts +1 -0
  93. package/dist/layouts/PageLayout/TopBar.d.ts.map +1 -1
  94. package/dist/layouts/PageLayout/index.d.ts +2 -59
  95. package/dist/layouts/PageLayout/index.d.ts.map +1 -1
  96. package/dist/layouts/index.d.ts.map +1 -1
  97. package/dist/providers/Atom/AtomProvider.d.ts.map +1 -1
  98. package/dist/providers/Atom/index.d.ts.map +1 -1
  99. package/dist/providers/SaladBar/SaladBarContext.d.ts.map +1 -1
  100. package/dist/providers/SaladBar/defaults.d.ts.map +1 -1
  101. package/dist/providers/SaladBar/index.d.ts.map +1 -1
  102. package/dist/providers/SaladBar/testWrappers.d.ts.map +1 -1
  103. package/dist/providers/SaladBar/types.d.ts.map +1 -1
  104. package/dist/providers/SaladBar/useSaladBar.d.ts.map +1 -1
  105. package/dist/providers/index.d.ts.map +1 -1
  106. package/dist/testing/index.d.ts.map +1 -1
  107. package/dist/testing/wrappers.d.ts.map +1 -1
  108. package/dist/themes/fed21Theme.d.ts.map +1 -1
  109. package/dist/themes/index.d.ts.map +1 -1
  110. package/dist/themes/internalAgSystemsTheme.d.ts.map +1 -1
  111. package/dist/themes/types.d.ts.map +1 -1
  112. package/dist/utils/index.d.ts.map +1 -1
  113. package/dist/utils/simpleHashCode.d.ts.map +1 -1
  114. package/package.json +23 -22
  115. package/dist/.gitignore +0 -0
  116. package/dist/components/NavBar/Styling.d.ts +0 -15
  117. package/dist/components/NavBar/Styling.d.ts.map +0 -1
  118. package/dist/layouts/AppLayout/NavBar/Styling.d.ts +0 -18
  119. package/dist/layouts/AppLayout/NavBar/Styling.d.ts.map +0 -1
  120. package/dist/layouts/PageLayout/PageContainer.d.ts +0 -14
  121. package/dist/layouts/PageLayout/PageContainer.d.ts.map +0 -1
  122. package/dist/layouts/PageLayout/PanelAwareMargins.d.ts +0 -19
  123. package/dist/layouts/PageLayout/PanelAwareMargins.d.ts.map +0 -1
package/dist/esm/index.js CHANGED
@@ -1,110 +1,116 @@
1
- var It = Object.defineProperty, Ot = Object.defineProperties;
2
- var Tt = Object.getOwnPropertyDescriptors;
3
- var Z = Object.getOwnPropertySymbols;
4
- var Te = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
5
- var ue = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, r = (e, t) => {
6
- for (var n in t || (t = {}))
7
- Te.call(t, n) && ue(e, n, t[n]);
8
- if (Z)
9
- for (var n of Z(t))
10
- De.call(t, n) && ue(e, n, t[n]);
11
- return e;
12
- }, v = (e, t) => Ot(e, Tt(t));
13
- var Be = (e, t) => {
1
+ var he = Object.defineProperty, ge = Object.defineProperties;
2
+ var fe = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var Ct = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
5
+ var ct = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, i = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ Ct.call(e, n) && ct(t, n, e[n]);
8
+ if (J)
9
+ for (var n of J(e))
10
+ wt.call(e, n) && ct(t, n, e[n]);
11
+ return t;
12
+ }, C = (t, e) => ge(t, fe(e));
13
+ var At = (t, e) => {
14
14
  var n = {};
15
- for (var i in e)
16
- Te.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
- if (e != null && Z)
18
- for (var i of Z(e))
19
- t.indexOf(i) < 0 && De.call(e, i) && (n[i] = e[i]);
15
+ for (var r in t)
16
+ Ct.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
17
+ if (t != null && J)
18
+ for (var r of J(t))
19
+ e.indexOf(r) < 0 && wt.call(t, r) && (n[r] = t[r]);
20
20
  return n;
21
21
  };
22
- var $e = (e, t, n) => (ue(e, typeof t != "symbol" ? t + "" : t, n), n);
23
- var ee = (e, t, n) => new Promise((i, a) => {
22
+ var bt = (t, e, n) => (ct(t, typeof e != "symbol" ? e + "" : e, n), n);
23
+ var K = (t, e, n) => new Promise((r, a) => {
24
24
  var l = (s) => {
25
25
  try {
26
26
  u(n.next(s));
27
- } catch (c) {
28
- a(c);
27
+ } catch (d) {
28
+ a(d);
29
29
  }
30
30
  }, p = (s) => {
31
31
  try {
32
32
  u(n.throw(s));
33
- } catch (c) {
34
- a(c);
33
+ } catch (d) {
34
+ a(d);
35
35
  }
36
- }, u = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(l, p);
37
- u((n = n.apply(e, t)).next());
36
+ }, u = (s) => s.done ? r(s.value) : Promise.resolve(s.value).then(l, p);
37
+ u((n = n.apply(t, e)).next());
38
38
  });
39
- import { jsxs as d, Fragment as P, jsx as o } from "react/jsx-runtime";
40
- import { useState as T, createContext as qe, useCallback as re, useContext as je, useEffect as ae, useRef as he } from "react";
41
- import { Typography as B, Button as Dt, Paper as Qe, styled as j, Box as w, IconButton as q, Drawer as Bt, Container as Ye, Avatar as te, Skeleton as ke, List as Ee, ListItemButton as M, ListItemIcon as ge, ListItemText as _, Collapse as $t, Divider as Ne, CssBaseline as kt, Snackbar as Et, Alert as Nt, CircularProgress as Je, LinearProgress as Lt, Autocomplete as Ft, TextField as Pt, FormHelperText as yt } from "@mui/material";
42
- import Mt from "@mui/material/CssBaseline";
43
- import { styled as R, createTheme as Ke, alpha as fe } from "@mui/material/styles";
44
- import Ze from "@mui/material/Drawer";
45
- import { AgError as _t } from "@australiangreens/ag-error";
46
- import { createHelper as se } from "souvlaki";
47
- import et from "@mui/material/List";
48
- import Le from "@mui/material/Button";
49
- import Ht from "@mui/material/Dialog";
50
- import Rt from "@mui/material/DialogActions";
51
- import Wt from "@mui/material/DialogContent";
52
- import zt from "@mui/material/DialogTitle";
53
- import { ArrowForward as tt, ArrowBack as nt, Dashboard as Ut, ExpandLess as Gt, ExpandMore as Vt, Settings as Xt, Logout as qt, ViewHeadline as jt } from "@mui/icons-material";
54
- import { useAtomValue as Fe, atom as $, useSetAtom as Qt, useAtom as L, getDefaultStore as Yt, Provider as ot } from "jotai";
55
- import { useHydrateAtoms as Jt } from "jotai/utils";
56
- function lo({ text: e }) {
57
- const [t, n] = T(0);
58
- return /* @__PURE__ */ d(P, { children: [
59
- /* @__PURE__ */ o(B, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
60
- /* @__PURE__ */ o(B, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
39
+ import { jsxs as c, Fragment as k, jsx as o } from "react/jsx-runtime";
40
+ import { useState as D, createContext as _t, useCallback as ot, useContext as Ht, useEffect as rt, useRef as pt } from "react";
41
+ import { Typography as I, Button as me, Paper as Rt, styled as X, Box as A, IconButton as V, Drawer as ve, Container as Wt, Avatar as Z, Skeleton as St, Divider as Tt, CssBaseline as xe, Snackbar as Ce, Alert as we, CircularProgress as zt, LinearProgress as Ae, Autocomplete as be, TextField as Se, FormHelperText as Te } from "@mui/material";
42
+ import Be from "@mui/material/CssBaseline";
43
+ import { styled as _, createTheme as Ut, alpha as ut } from "@mui/material/styles";
44
+ import Gt from "@mui/material/Drawer";
45
+ import { ContextError as Vt } from "errors";
46
+ import { createHelper as it } from "souvlaki";
47
+ import Xt from "@mui/material/List";
48
+ import Bt from "@mui/material/Button";
49
+ import Oe from "@mui/material/Dialog";
50
+ import $e from "@mui/material/DialogActions";
51
+ import De from "@mui/material/DialogContent";
52
+ import Ie from "@mui/material/DialogTitle";
53
+ import { ArrowForward as qt, ArrowBack as jt, ViewHeadline as ke } from "@mui/icons-material";
54
+ import { atom as E, useSetAtom as Ee, useAtom as P, getDefaultStore as Ne, Provider as Qt } from "jotai";
55
+ import { simpleHashCode as Ot } from "utils";
56
+ import { AgError as Fe } from "@australiangreens/ag-error";
57
+ import { useSaladBar as Pe } from "providers";
58
+ import { AgDialog as Le } from "components";
59
+ import { useHydrateAtoms as ye } from "jotai/utils";
60
+ import { domainCodeAtom as Me } from "domainCode";
61
+ import { navBarOpenAtom as _e, navBarWidthOpenAtom as He, navBarWidthClosedAtom as Re, titleTextAtom as We, topBarHeightAtom as ze, navBarTopAtom as Ue } from "layouts";
62
+ function po({ text: t }) {
63
+ const [e, n] = D(0);
64
+ return /* @__PURE__ */ c(k, { children: [
65
+ /* @__PURE__ */ o(I, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
66
+ /* @__PURE__ */ o(I, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
61
67
  /* @__PURE__ */ o(
62
- Dt,
68
+ me,
63
69
  {
64
70
  variant: "outlined",
65
- onClick: () => n((i) => i + 1),
71
+ onClick: () => n((r) => r + 1),
66
72
  "aria-label": "Increment",
67
73
  children: "Hello I am a button"
68
74
  }
69
75
  ),
70
- /* @__PURE__ */ d("p", { children: [
76
+ /* @__PURE__ */ c("p", { children: [
71
77
  "This is some text: ",
72
- /* @__PURE__ */ o("span", { children: e })
78
+ /* @__PURE__ */ o("span", { children: t })
73
79
  ] }),
74
- /* @__PURE__ */ d(Qe, { children: [
80
+ /* @__PURE__ */ c(Rt, { children: [
75
81
  "This number will incremember when button pressed: ",
76
- t
82
+ e
77
83
  ] })
78
84
  ] });
79
85
  }
80
- const it = 330, rt = 73, N = "Navbar", H = {
81
- root: `${N}-root`,
82
- menuButton: `${N}-menuButton`,
83
- hide: `${N}-hide`,
84
- content: `${N}-content`,
85
- userInfoHolder: `${N}-userInfoHolder`,
86
- settings: `${N}-settings`,
87
- pieChartIcon: `${N}-pieChartIcon`
88
- }, Kt = R("div", { name: "NavBar" })(({ theme: e }) => ({
89
- [`&.${H.root}`]: {
86
+ const Yt = 330, Jt = 73, F = "Navbar", M = {
87
+ root: `${F}-root`,
88
+ menuButton: `${F}-menuButton`,
89
+ hide: `${F}-hide`,
90
+ content: `${F}-content`,
91
+ userInfoHolder: `${F}-userInfoHolder`,
92
+ settings: `${F}-settings`,
93
+ pieChartIcon: `${F}-pieChartIcon`
94
+ }, Ge = _("div", { name: "NavBar" })(({ theme: t }) => ({
95
+ [`&.${M.root}`]: {
90
96
  display: "flex"
91
97
  },
92
- [`& .${H.menuButton}`]: {
98
+ [`& .${M.menuButton}`]: {
93
99
  marginRight: 36
94
100
  },
95
- [`& .${H.hide}`]: {
101
+ [`& .${M.hide}`]: {
96
102
  display: "none"
97
103
  },
98
- [`& .${H.content}`]: {
104
+ [`& .${M.content}`]: {
99
105
  flexGrow: 1,
100
- padding: e.spacing(3)
106
+ padding: t.spacing(3)
101
107
  },
102
- [`& .${H.userInfoHolder}`]: {
108
+ [`& .${M.userInfoHolder}`]: {
103
109
  height: "148px",
104
110
  marginTop: "64px",
105
111
  marginBottom: "16px"
106
112
  }
107
- })), at = () => ({
113
+ })), Kt = () => ({
108
114
  position: "absolute",
109
115
  height: "100%",
110
116
  overflowX: "hidden",
@@ -112,51 +118,47 @@ const it = 330, rt = 73, N = "Navbar", H = {
112
118
  color: "white",
113
119
  backgroundColor: "black"
114
120
  // backgroundColor: '#e8e8e8',
115
- }), Zt = () => r({
116
- width: it
117
- }, at()), en = () => r({
118
- width: rt
119
- }, at()), tn = R(Ze, {
120
- shouldForwardProp: (e) => e !== "open"
121
- })(({ theme: e, open: t }) => r(r({
122
- width: t ? it : rt,
121
+ }), Ve = () => i({
122
+ width: Yt
123
+ }, Kt()), Xe = () => i({
124
+ width: Jt
125
+ }, Kt()), qe = _(Gt, {
126
+ shouldForwardProp: (t) => t !== "open"
127
+ })(({ theme: t, open: e }) => i(i({
128
+ width: e ? Yt : Jt,
123
129
  flexShrink: 0,
124
130
  whiteSpace: "nowrap",
125
131
  boxSizing: "border-box",
126
- zIndex: e.zIndex.drawer + 100
127
- }, t && {
128
- "& .MuiDrawer-paper": Zt()
129
- }), !t && {
130
- "& .MuiDrawer-paper": en()
131
- }));
132
- class ve extends _t {
133
- }
134
- $e(ve, "errorName", "ContextError");
135
- const st = qe(null), nn = {}, on = {}, rn = ({
136
- overrideState: e = nn,
137
- overrideActions: t = on,
132
+ zIndex: t.zIndex.drawer + 100
133
+ }, e && {
134
+ "& .MuiDrawer-paper": Ve()
135
+ }), !e && {
136
+ "& .MuiDrawer-paper": Xe()
137
+ })), Zt = _t(null), je = {}, Qe = {}, Ye = ({
138
+ overrideState: t = je,
139
+ overrideActions: e = Qe,
138
140
  children: n
139
141
  }) => {
140
- const [{ open: i }, a] = T({ open: !0 }), l = re((s) => {
142
+ const [{ open: r }, a] = D({ open: !0 }), l = ot((s) => {
141
143
  a({ open: s });
142
- }, []), p = re(() => {
143
- a((s) => v(r({}, s), { open: !s.open }));
144
- }, []), u = r(r({
145
- open: i,
144
+ }, []), p = ot(() => {
145
+ a((s) => C(i({}, s), { open: !s.open }));
146
+ }, []), u = i(i({
147
+ open: r,
146
148
  setOpen: l,
147
149
  toggleOpen: p
148
- }, e), t);
149
- return /* @__PURE__ */ o(st.Provider, { value: u, children: n });
150
- }, an = () => {
151
- const e = je(st);
152
- if (e === null)
153
- throw new ve("Error: Tried to useNavBar outside of a <NavBarProvider>");
154
- return e;
155
- }, sn = (e = {}) => r({
150
+ }, t), e);
151
+ return /* @__PURE__ */ o(Zt.Provider, { value: u, children: n });
152
+ }, Je = () => {
153
+ const t = Ht(Zt);
154
+ if (t === null)
155
+ throw new Vt("Error: Tried to useNavBar outside of a <NavBarProvider>");
156
+ return t;
157
+ }, Ke = (t = {}) => i({
156
158
  open: !0
157
- }, e), co = se(
158
- (e = sn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(rn, { overrideState: e, overrideActions: t, children: n })
159
- ), Pe = 7, po = R(et)(({ theme: e }) => ({
159
+ }, t), uo = it(
160
+ (t = Ke(), e = {}) => ({ children: n }) => /* @__PURE__ */ o(Ye, { overrideState: t, overrideActions: e, children: n })
161
+ ), $t = 7, ho = _(Xt)(({ theme: t }) => ({
160
162
  backgroundColor: "black",
161
163
  color: "white",
162
164
  "& .MuiListItem-root": {
@@ -165,36 +167,36 @@ const st = qe(null), nn = {}, on = {}, rn = ({
165
167
  "& .MuiListItemButton-root": {
166
168
  " .MuiListItemIcon-root": {
167
169
  color: "white",
168
- padding: `${Pe}px`
170
+ padding: `${$t}px`
169
171
  },
170
172
  // Focus state
171
173
  "&.Mui-focusVisible": {
172
- backgroundColor: e.palette.grey[700]
174
+ backgroundColor: t.palette.grey[700]
173
175
  },
174
176
  // Selected state
175
177
  "&.Mui-selected": {
176
178
  borderLeftStyle: "solid",
177
179
  borderLeftWidth: "7px",
178
- borderLeftColor: e.palette.primary.main,
179
- paddingLeft: `calc(${e.spacing(2)} - ${Pe}px)`
180
+ borderLeftColor: t.palette.primary.main,
181
+ paddingLeft: `calc(${t.spacing(2)} - ${$t}px)`
180
182
  },
181
183
  // Hover state
182
184
  "&:hover": {
183
- backgroundColor: e.palette.primary.dark
185
+ backgroundColor: t.palette.primary.dark
184
186
  },
185
187
  // Focus+Selected state
186
188
  "&.Mui-selected.Mui-focusVisible": {
187
- backgroundColor: e.palette.grey[700]
189
+ backgroundColor: t.palette.grey[700]
188
190
  },
189
191
  // Hover+Selected state
190
192
  "&.Mui-selected:hover": {
191
- backgroundColor: e.palette.primary.dark
193
+ backgroundColor: t.palette.primary.dark
192
194
  }
193
195
  // Focus+Hover+Selected state doesn't need to be specified
194
196
  // '&.Mui-selected.Mui-focusVisible:hover': {
195
197
  // },
196
198
  }
197
- })), ye = 7, uo = R(et)(({ theme: e }) => ({
199
+ })), Dt = 7, go = _(Xt)(({ theme: t }) => ({
198
200
  backgroundColor: "#e8e8e8",
199
201
  color: "inherit",
200
202
  "& .MuiListItem-root": {
@@ -203,93 +205,93 @@ const st = qe(null), nn = {}, on = {}, rn = ({
203
205
  "& .MuiListItemButton-root": {
204
206
  " .MuiListItemIcon-root": {
205
207
  color: "inherit",
206
- padding: `${ye}px`
208
+ padding: `${Dt}px`
207
209
  },
208
210
  // Focus state
209
211
  "&.Mui-focusVisible": {
210
- backgroundColor: e.palette.grey[700]
212
+ backgroundColor: t.palette.grey[700]
211
213
  },
212
214
  // Selected state
213
215
  "&.Mui-selected": {
214
216
  borderLeftStyle: "solid",
215
217
  borderLeftWidth: "7px",
216
- borderLeftColor: e.palette.primary.main,
217
- paddingLeft: `calc(${e.spacing(2)} - ${ye}px)`
218
+ borderLeftColor: t.palette.primary.main,
219
+ paddingLeft: `calc(${t.spacing(2)} - ${Dt}px)`
218
220
  },
219
221
  // Hover state
220
222
  "&:hover": {
221
- backgroundColor: e.palette.primary.dark
223
+ backgroundColor: t.palette.primary.dark
222
224
  },
223
225
  // Focus+Selected state
224
226
  "&.Mui-selected.Mui-focusVisible": {
225
- backgroundColor: e.palette.grey[700]
227
+ backgroundColor: t.palette.grey[700]
226
228
  },
227
229
  // Hover+Selected state
228
230
  "&.Mui-selected:hover": {
229
- backgroundColor: e.palette.primary.dark
231
+ backgroundColor: t.palette.primary.dark
230
232
  }
231
233
  // Focus+Hover+Selected state doesn't need to be specified
232
234
  // '&.Mui-selected.Mui-focusVisible:hover': {
233
235
  // },
234
236
  }
235
237
  }));
236
- function ho({
237
- "data-testid": e,
238
- children: t
238
+ function fo({
239
+ "data-testid": t,
240
+ children: e
239
241
  }) {
240
- const { open: n } = an();
241
- return /* @__PURE__ */ d(Kt, { className: H.root, "data-testid": e, children: [
242
- /* @__PURE__ */ o(Mt, {}),
242
+ const { open: n } = Je();
243
+ return /* @__PURE__ */ c(Ge, { className: M.root, "data-testid": t, children: [
244
+ /* @__PURE__ */ o(Be, {}),
243
245
  /* @__PURE__ */ o(
244
- tn,
246
+ qe,
245
247
  {
246
248
  variant: "permanent",
247
249
  anchor: "left",
248
250
  transitionDuration: null,
249
251
  open: n,
250
- children: t
252
+ children: e
251
253
  }
252
254
  )
253
255
  ] });
254
256
  }
255
- const ln = ({
256
- isOpen: e,
257
- dialogTitle: t,
257
+ const mo = ({
258
+ isOpen: t,
259
+ dialogTitle: e,
258
260
  children: n,
259
- maxWidth: i,
261
+ maxWidth: r,
260
262
  primaryButton: a,
261
263
  secondaryButton: l,
262
264
  onClose: p
263
265
  }) => {
264
- var c, x;
265
- const [u, s] = T(!1);
266
- return /* @__PURE__ */ d(
267
- Ht,
266
+ var d, v;
267
+ const [u, s] = D(!1);
268
+ return /* @__PURE__ */ c(
269
+ Oe,
268
270
  {
269
- open: e,
271
+ open: t,
270
272
  onClose: () => {
271
273
  u || p();
272
274
  },
273
275
  fullWidth: !0,
274
- maxWidth: i != null ? i : "xs",
276
+ maxWidth: r != null ? r : "xs",
275
277
  children: [
276
- /* @__PURE__ */ o(zt, { children: t }),
277
- /* @__PURE__ */ o(Wt, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
278
- /* @__PURE__ */ d(Rt, { children: [
278
+ /* @__PURE__ */ o(Ie, { children: e }),
279
+ /* @__PURE__ */ o(De, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
280
+ /* @__PURE__ */ c($e, { children: [
279
281
  /* @__PURE__ */ o(
280
- Le,
282
+ Bt,
281
283
  {
282
- onClick: (c = l == null ? void 0 : l.onClick) != null ? c : p,
284
+ onClick: (d = l == null ? void 0 : l.onClick) != null ? d : p,
283
285
  "data-testid": l == null ? void 0 : l.testId,
284
286
  disabled: (l == null ? void 0 : l.disabled) || u,
285
287
  color: l == null ? void 0 : l.buttonColor,
286
- children: (x = l == null ? void 0 : l.text) != null ? x : "Cancel"
288
+ children: (v = l == null ? void 0 : l.text) != null ? v : "Cancel"
287
289
  }
288
290
  ),
289
291
  a && /* @__PURE__ */ o(
290
- Le,
292
+ Bt,
291
293
  {
292
- onClick: () => ee(void 0, null, function* () {
294
+ onClick: () => K(void 0, null, function* () {
293
295
  var f;
294
296
  s(!0), yield (f = a.onClick) == null ? void 0 : f.call(a), s(!1);
295
297
  }),
@@ -303,94 +305,94 @@ const ln = ({
303
305
  ]
304
306
  }
305
307
  );
306
- }, dn = 24, cn = 64, F = "TopBar", A = {
307
- topStripe: `${F}-topStripe`,
308
- titleBar: `${F}-titleBar`,
309
- titleSlider: `${F}-titleSlider`,
310
- titleText: `${F}-titleText`,
311
- leftPanelButton: `${F}-leftPanelButton`,
312
- rightPanelButton: `${F}-leftPanelButton`
313
- }, pn = j("div", {
314
- shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
315
- name: F
316
- })(({ theme: e, leftPanel: t, rightPanel: n }) => {
317
- var i, a;
308
+ }, Ze = 24, tn = 64, L = "TopBar", b = {
309
+ topStripe: `${L}-topStripe`,
310
+ titleBar: `${L}-titleBar`,
311
+ titleSlider: `${L}-titleSlider`,
312
+ titleText: `${L}-titleText`,
313
+ leftPanelButton: `${L}-leftPanelButton`,
314
+ rightPanelButton: `${L}-leftPanelButton`
315
+ }, en = X("div", {
316
+ shouldForwardProp: (t) => !["leftPanel", "rightPanel"].includes(t),
317
+ name: L
318
+ })(({ theme: t, leftPanel: e, rightPanel: n }) => {
319
+ var r, a;
318
320
  return {
319
321
  width: "100%",
320
- [`& .${A.topStripe}`]: {
322
+ [`& .${b.topStripe}`]: {
321
323
  width: "100%",
322
- height: `${dn}px`,
323
- backgroundColor: e.palette.primary.main
324
+ height: `${Ze}px`,
325
+ backgroundColor: t.palette.primary.main
324
326
  },
325
- [`& .${A.titleBar}`]: {
326
- backgroundColor: e.palette.primary.light,
327
- height: `${cn}px`,
328
- padding: e.spacing(0, 3),
327
+ [`& .${b.titleBar}`]: {
328
+ backgroundColor: t.palette.primary.light,
329
+ height: `${tn}px`,
330
+ padding: t.spacing(0, 3),
329
331
  width: "100%"
330
332
  },
331
- [`& .${A.titleSlider}`]: r(r({
333
+ [`& .${b.titleSlider}`]: i(i({
332
334
  height: "100%",
333
335
  display: "flex",
334
336
  alignItems: "center",
335
337
  color: "white",
336
- transition: e.transitions.create("margin", {
337
- easing: e.transitions.easing.sharp,
338
- duration: e.transitions.duration.leavingScreen
338
+ transition: t.transitions.create("margin", {
339
+ easing: t.transitions.easing.sharp,
340
+ duration: t.transitions.duration.leavingScreen
339
341
  }),
340
- [`& .${A.leftPanelButton}`]: {
341
- marginRight: e.spacing(2),
342
+ [`& .${b.leftPanelButton}`]: {
343
+ marginRight: t.spacing(2),
342
344
  flexGrow: 0
343
345
  },
344
- [`& .${A.titleText}`]: {
346
+ [`& .${b.titleText}`]: {
345
347
  flexGrow: 1
346
348
  },
347
- [`& .${A.rightPanelButton}`]: {
349
+ [`& .${b.rightPanelButton}`]: {
348
350
  flexGrow: 0
349
351
  }
350
- }, (t == null ? void 0 : t.open) && {
351
- transition: e.transitions.create("margin", {
352
- easing: e.transitions.easing.easeOut,
353
- duration: e.transitions.duration.enteringScreen
352
+ }, (e == null ? void 0 : e.open) && {
353
+ transition: t.transitions.create("margin", {
354
+ easing: t.transitions.easing.easeOut,
355
+ duration: t.transitions.duration.enteringScreen
354
356
  }),
355
- marginLeft: `${(i = t == null ? void 0 : t.width) != null ? i : 0}px`
357
+ marginLeft: `${(r = e == null ? void 0 : e.width) != null ? r : 0}px`
356
358
  }), (n == null ? void 0 : n.open) && {
357
- transition: e.transitions.create("margin", {
358
- easing: e.transitions.easing.easeOut,
359
- duration: e.transitions.duration.enteringScreen
359
+ transition: t.transitions.create("margin", {
360
+ easing: t.transitions.easing.easeOut,
361
+ duration: t.transitions.duration.enteringScreen
360
362
  }),
361
363
  marginRight: `${(a = n == null ? void 0 : n.width) != null ? a : 0}px`
362
364
  })
363
365
  };
364
366
  });
365
- function un({
366
- titleText: e = "",
367
- leftPanel: t,
367
+ function nn({
368
+ titleText: t = "",
369
+ leftPanel: e,
368
370
  rightPanel: n,
369
- "data-testid": i
371
+ "data-testid": r
370
372
  }) {
371
- return /* @__PURE__ */ d(pn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
372
- /* @__PURE__ */ o("div", { className: A.topStripe }),
373
- /* @__PURE__ */ o("div", { className: A.titleBar, children: /* @__PURE__ */ d(w, { className: A.titleSlider, children: [
374
- t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ d(
375
- q,
373
+ return /* @__PURE__ */ c(en, { leftPanel: e, rightPanel: n, "data-testid": r, children: [
374
+ /* @__PURE__ */ o("div", { className: b.topStripe }),
375
+ /* @__PURE__ */ o("div", { className: b.titleBar, children: /* @__PURE__ */ c(A, { className: b.titleSlider, children: [
376
+ e !== void 0 && !e.open && e.showOpenArrow && /* @__PURE__ */ c(
377
+ V,
376
378
  {
377
- className: A.leftPanelButton,
379
+ className: b.leftPanelButton,
378
380
  color: "inherit",
379
381
  "aria-label": "Open left side panel",
380
- onClick: t == null ? void 0 : t.onOpen,
382
+ onClick: e == null ? void 0 : e.onOpen,
381
383
  edge: "start",
382
384
  size: "large",
383
385
  children: [
384
386
  " ",
385
- /* @__PURE__ */ o(tt, {})
387
+ /* @__PURE__ */ o(qt, {})
386
388
  ]
387
389
  }
388
390
  ),
389
- /* @__PURE__ */ o(B, { className: A.titleText, variant: "h6", noWrap: !0, children: e }),
390
- n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ d(
391
- q,
391
+ /* @__PURE__ */ o(I, { className: b.titleText, variant: "h6", noWrap: !0, children: t }),
392
+ n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ c(
393
+ V,
392
394
  {
393
- className: A.rightPanelButton,
395
+ className: b.rightPanelButton,
394
396
  color: "inherit",
395
397
  "aria-label": "Open right side panel",
396
398
  onClick: n == null ? void 0 : n.onOpen,
@@ -398,15 +400,15 @@ function un({
398
400
  size: "large",
399
401
  children: [
400
402
  " ",
401
- /* @__PURE__ */ o(nt, {})
403
+ /* @__PURE__ */ o(jt, {})
402
404
  ]
403
405
  }
404
406
  )
405
407
  ] }) })
406
408
  ] });
407
409
  }
408
- const lt = 400, hn = j(Bt, {
409
- shouldForwardProp: (e) => (
410
+ const te = 400, on = X(ve, {
411
+ shouldForwardProp: (t) => (
410
412
  // Note we do want anchor to be forwarded to the Drawer component
411
413
  ![
412
414
  "width",
@@ -415,35 +417,35 @@ const lt = 400, hn = j(Bt, {
415
417
  "navBarOpen",
416
418
  "navBarWidthOpen",
417
419
  "navBarWidthClosed"
418
- ].includes(e)
420
+ ].includes(t)
419
421
  ),
420
422
  name: "SidePanelDrawer"
421
423
  })(
422
- ({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: a, navBarWidthClosed: l }) => ({
423
- width: e,
424
- "& .MuiDrawer-paper": r(r({
424
+ ({ width: t, debugOpacity: e = !1, anchor: n, navBarOpen: r, navBarWidthOpen: a, navBarWidthClosed: l }) => ({
425
+ width: t,
426
+ "& .MuiDrawer-paper": i(i({
425
427
  position: "absolute",
426
- width: e,
428
+ width: t,
427
429
  boxSizing: "border-box",
428
430
  border: "unset",
429
431
  boxShadow: "0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2)"
430
- }, t && {
432
+ }, e && {
431
433
  opacity: "50%"
432
- }), n === "left" && r({
434
+ }), n === "left" && i({
433
435
  marginLeft: `${l}px`
434
- }, i && {
436
+ }, r && {
435
437
  marginLeft: `${a}px`
436
438
  }))
437
439
  })
438
- ), gn = j(w, {
439
- shouldForwardProp: (e) => !["anchor"].includes(e)
440
- })(({ theme: e, anchor: t }) => v(r({
440
+ ), rn = X(A, {
441
+ shouldForwardProp: (t) => !["anchor"].includes(t)
442
+ })(({ theme: t, anchor: e }) => C(i({
441
443
  display: "flex",
442
444
  alignItems: "center",
443
- padding: e.spacing(2)
444
- }, e.mixins.toolbar), {
445
- justifyContent: t === "left" ? "space-between" : "flex-start",
446
- backgroundColor: e.palette.primary.light,
445
+ padding: t.spacing(2)
446
+ }, t.mixins.toolbar), {
447
+ justifyContent: e === "left" ? "space-between" : "flex-start",
448
+ backgroundColor: t.palette.primary.light,
447
449
  height: "88px",
448
450
  "&,*": {
449
451
  color: "white"
@@ -452,452 +454,432 @@ const lt = 400, hn = j(Bt, {
452
454
  fontSize: "22px"
453
455
  },
454
456
  " .MuiButtonBase-root": {
455
- marginRight: t === "right" ? e.spacing(2) : 0
457
+ marginRight: e === "right" ? t.spacing(2) : 0
456
458
  }
457
459
  }));
458
- function Me({
459
- children: e,
460
- anchor: t = "left",
460
+ function It({
461
+ children: t,
462
+ anchor: e = "left",
461
463
  open: n,
462
- onClose: i = () => {
464
+ onClose: r = () => {
463
465
  },
464
466
  titleText: a = "",
465
- width: l = lt,
467
+ width: l = te,
466
468
  showCloseArrow: p = !0,
467
469
  debugOpacity: u = !1,
468
470
  headerBoxProps: s = {},
469
- onOpened: c,
470
- onClosed: x,
471
+ onOpened: d,
472
+ onClosed: v,
471
473
  "data-testid": f,
472
- navBarOpen: C = !1,
474
+ navBarOpen: x = !1,
473
475
  navBarWidthOpen: m = 0,
474
- navBarWidthClosed: O = 0
476
+ navBarWidthClosed: T = 0
475
477
  }) {
476
- return /* @__PURE__ */ d(
477
- hn,
478
+ return /* @__PURE__ */ c(
479
+ on,
478
480
  {
479
481
  SlideProps: {
480
- onEntered: () => c == null ? void 0 : c(),
481
- onExited: () => x == null ? void 0 : x()
482
+ onEntered: () => d == null ? void 0 : d(),
483
+ onExited: () => v == null ? void 0 : v()
482
484
  },
483
485
  variant: "persistent",
484
- anchor: t,
486
+ anchor: e,
485
487
  open: n,
486
488
  width: l,
487
489
  debugOpacity: u,
488
490
  "data-testid": f,
489
- navBarOpen: C,
491
+ navBarOpen: x,
490
492
  navBarWidthOpen: m,
491
- navBarWidthClosed: O,
493
+ navBarWidthClosed: T,
492
494
  children: [
493
- /* @__PURE__ */ o(gn, v(r({ anchor: t }, s), { children: t === "left" ? /* @__PURE__ */ d(P, { children: [
494
- /* @__PURE__ */ o(B, { variant: "h6", color: "inherit", component: "div", children: a }),
495
- p && /* @__PURE__ */ d(q, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
496
- /* @__PURE__ */ o(nt, { "data-testid": "arrowbackicon" }),
495
+ /* @__PURE__ */ o(rn, C(i({ anchor: e }, s), { children: e === "left" ? /* @__PURE__ */ c(k, { children: [
496
+ /* @__PURE__ */ o(I, { variant: "h6", color: "inherit", component: "div", children: a }),
497
+ p && /* @__PURE__ */ c(V, { onClick: r, size: "large", "aria-label": "Close left side panel", children: [
498
+ /* @__PURE__ */ o(jt, { "data-testid": "arrowbackicon" }),
497
499
  " "
498
500
  ] })
499
- ] }) : /* @__PURE__ */ d(P, { children: [
500
- p && /* @__PURE__ */ d(q, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
501
- /* @__PURE__ */ o(tt, {}),
501
+ ] }) : /* @__PURE__ */ c(k, { children: [
502
+ p && /* @__PURE__ */ c(V, { onClick: r, size: "large", "aria-label": "Close right side panel", children: [
503
+ /* @__PURE__ */ o(qt, {}),
502
504
  " "
503
505
  ] }),
504
- /* @__PURE__ */ o(B, { variant: "h6", color: "inherit", component: "div", children: a })
506
+ /* @__PURE__ */ o(I, { variant: "h6", color: "inherit", component: "div", children: a })
505
507
  ] }) })),
506
- e
508
+ t
507
509
  ]
508
510
  }
509
511
  );
510
512
  }
511
- const fn = j("div", {
512
- shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
513
+ const an = X("div", {
514
+ shouldForwardProp: (t) => !["leftPanel", "rightPanel"].includes(t),
513
515
  name: "PanelAwareMargins"
514
- })(({ theme: e, leftPanel: t, rightPanel: n }) => {
515
- var i, a;
516
- return r(r({
517
- transition: e.transitions.create("margin", {
518
- easing: e.transitions.easing.sharp,
519
- duration: e.transitions.duration.leavingScreen
516
+ })(({ theme: t, leftPanel: e, rightPanel: n }) => {
517
+ var r, a;
518
+ return i(i({
519
+ transition: t.transitions.create("margin", {
520
+ easing: t.transitions.easing.sharp,
521
+ duration: t.transitions.duration.leavingScreen
520
522
  })
521
- }, (t == null ? void 0 : t.open) && {
522
- transition: e.transitions.create("margin", {
523
- easing: e.transitions.easing.easeOut,
524
- duration: e.transitions.duration.enteringScreen
523
+ }, (e == null ? void 0 : e.open) && {
524
+ transition: t.transitions.create("margin", {
525
+ easing: t.transitions.easing.easeOut,
526
+ duration: t.transitions.duration.enteringScreen
525
527
  }),
526
- marginLeft: `${(i = t == null ? void 0 : t.width) != null ? i : 0}px`
528
+ marginLeft: `${(r = e == null ? void 0 : e.width) != null ? r : 0}px`
527
529
  }), (n == null ? void 0 : n.open) && {
528
- transition: e.transitions.create("margin", {
529
- easing: e.transitions.easing.easeOut,
530
- duration: e.transitions.duration.enteringScreen
530
+ transition: t.transitions.create("margin", {
531
+ easing: t.transitions.easing.easeOut,
532
+ duration: t.transitions.duration.enteringScreen
531
533
  }),
532
534
  marginRight: `${(a = n == null ? void 0 : n.width) != null ? a : 0}px`
533
535
  });
534
- }), mn = j(Ye, {
536
+ }), sn = X(Wt, {
535
537
  name: "PageContainer"
536
- })(({ theme: e }) => ({
538
+ })(({ theme: t }) => ({
537
539
  // Horizontal padding comes from the Container's gutter
538
- paddingTop: e.spacing(3),
539
- paddingBottom: e.spacing(3)
540
- })), me = !1, xe = !1, ne = {
540
+ paddingTop: t.spacing(3),
541
+ paddingBottom: t.spacing(3)
542
+ })), ht = !1, gt = !1, tt = {
541
543
  titleText: "",
542
544
  flavour: "push",
543
- width: lt,
545
+ width: te,
544
546
  arrowButtons: "both",
545
547
  startOpen: !1,
546
548
  open: void 0,
547
549
  onChangeOpen: void 0,
548
- content: /* @__PURE__ */ o(P, {}),
550
+ content: /* @__PURE__ */ o(k, {}),
549
551
  onOpened: void 0,
550
552
  onClosed: void 0,
551
553
  dataTestId: void 0
552
554
  };
553
- function go({
554
- children: e,
555
- titleText: t = "",
555
+ function vo({
556
+ children: t,
557
+ titleText: e = "",
556
558
  leftPanel: n,
557
- rightPanel: i,
559
+ rightPanel: r,
558
560
  sidePanelsAreMutuallyExclusive: a = !0,
559
561
  debugOpacity: l = !1,
560
562
  pageContainerProps: p,
561
563
  pageContentDataTestId: u,
562
564
  topBarDataTestId: s,
563
- navBarOpen: c,
564
- navBarWidthOpen: x,
565
+ navBarOpen: d,
566
+ navBarWidthOpen: v,
565
567
  navBarWidthClosed: f
566
568
  }) {
567
- const [C, m] = T(me), [O, S] = T(xe), [b, I] = T(me), [k, W] = T(xe), z = n !== void 0, U = i !== void 0, {
568
- titleText: D,
569
- content: Q,
570
- flavour: Y,
571
- open: G,
572
- onChangeOpen: V,
569
+ const [x, m] = D(ht), [T, B] = D(gt), [S, w] = D(ht), [O, H] = D(gt), R = n !== void 0, W = r !== void 0, {
570
+ titleText: $,
571
+ content: q,
572
+ flavour: j,
573
+ open: z,
574
+ onChangeOpen: U,
573
575
  width: h,
574
576
  arrowButtons: g,
575
577
  startOpen: y,
576
- onOpened: mt,
577
- onClosed: xt,
578
- dataTestId: vt
579
- } = n ? r(r({}, ne), n) : r({}, ne), {
580
- titleText: Ct,
581
- content: wt,
582
- flavour: Ae,
583
- open: le,
584
- onChangeOpen: Se,
585
- width: de,
586
- arrowButtons: J,
587
- startOpen: K,
588
- onOpened: bt,
589
- onClosed: At,
590
- dataTestId: St
591
- } = i ? r(r({}, ne), i) : r({}, ne);
592
- ae(() => {
593
- y !== me && (m(y), I(y));
594
- }, [y]), ae(() => {
595
- K !== xe && (S(K), W(K));
596
- }, [K]);
597
- const ce = G === void 0 ? C : G, pe = le === void 0 ? O : le, Ie = (E) => {
598
- G === void 0 && (m(E), a && U && (E ? (S(!1), W(O)) : S(k))), V && V(E);
599
- }, Oe = (E) => {
600
- le === void 0 && (S(E), a && z && (E ? (m(!1), I(C)) : m(b))), Se && Se(E);
578
+ onOpened: ie,
579
+ onClosed: ae,
580
+ dataTestId: se
581
+ } = n ? i(i({}, tt), n) : i({}, tt), {
582
+ titleText: le,
583
+ content: de,
584
+ flavour: ft,
585
+ open: at,
586
+ onChangeOpen: mt,
587
+ width: st,
588
+ arrowButtons: Q,
589
+ startOpen: Y,
590
+ onOpened: ce,
591
+ onClosed: pe,
592
+ dataTestId: ue
593
+ } = r ? i(i({}, tt), r) : i({}, tt);
594
+ rt(() => {
595
+ y !== ht && (m(y), w(y));
596
+ }, [y]), rt(() => {
597
+ Y !== gt && (B(Y), H(Y));
598
+ }, [Y]);
599
+ const lt = z === void 0 ? x : z, dt = at === void 0 ? T : at, vt = (N) => {
600
+ z === void 0 && (m(N), a && W && (N ? (B(!1), H(T)) : B(O))), U && U(N);
601
+ }, xt = (N) => {
602
+ at === void 0 && (B(N), a && R && (N ? (m(!1), w(x)) : m(S))), mt && mt(N);
601
603
  };
602
- return /* @__PURE__ */ d(w, { children: [
603
- z && /* @__PURE__ */ o(
604
- Me,
604
+ return /* @__PURE__ */ c(A, { children: [
605
+ R && /* @__PURE__ */ o(
606
+ It,
605
607
  {
606
- "data-testid": vt,
608
+ "data-testid": se,
607
609
  anchor: "left",
608
- open: ce,
609
- onClose: () => Ie(!1),
610
+ open: lt,
611
+ onClose: () => vt(!1),
610
612
  width: h,
611
- titleText: D,
613
+ titleText: $,
612
614
  debugOpacity: l,
613
615
  showCloseArrow: g === "both" || g === "close",
614
- onOpened: mt,
615
- onClosed: xt,
616
- navBarOpen: c,
617
- navBarWidthOpen: x,
616
+ onOpened: ie,
617
+ onClosed: ae,
618
+ navBarOpen: d,
619
+ navBarWidthOpen: v,
618
620
  navBarWidthClosed: f,
619
- children: Q
621
+ children: q
620
622
  }
621
623
  ),
622
- U && /* @__PURE__ */ o(
623
- Me,
624
+ W && /* @__PURE__ */ o(
625
+ It,
624
626
  {
625
- "data-testid": St,
627
+ "data-testid": ue,
626
628
  anchor: "right",
627
- open: pe,
628
- onClose: () => Oe(!1),
629
- width: de,
630
- titleText: Ct,
629
+ open: dt,
630
+ onClose: () => xt(!1),
631
+ width: st,
632
+ titleText: le,
631
633
  debugOpacity: l,
632
- showCloseArrow: J === "both" || J === "close",
633
- onOpened: bt,
634
- onClosed: At,
635
- navBarOpen: c,
636
- navBarWidthOpen: x,
634
+ showCloseArrow: Q === "both" || Q === "close",
635
+ onOpened: ce,
636
+ onClosed: pe,
637
+ navBarOpen: d,
638
+ navBarWidthOpen: v,
637
639
  navBarWidthClosed: f,
638
- children: wt
640
+ children: de
639
641
  }
640
642
  ),
641
643
  /* @__PURE__ */ o(
642
- un,
643
- r(r({
644
- titleText: t,
644
+ nn,
645
+ i(i({
646
+ titleText: e,
645
647
  "data-testid": s
646
- }, z && Y === "push" ? {
648
+ }, R && j === "push" ? {
647
649
  leftPanel: {
648
- open: ce,
650
+ open: lt,
649
651
  width: h,
650
- onOpen: () => Ie(!0),
652
+ onOpen: () => vt(!0),
651
653
  showOpenArrow: g === "both" || g === "open"
652
654
  }
653
- } : {}), U && Ae === "push" ? {
655
+ } : {}), W && ft === "push" ? {
654
656
  rightPanel: {
655
- open: pe,
656
- width: de,
657
- onOpen: () => Oe(!0),
658
- showOpenArrow: J === "both" || J === "open"
657
+ open: dt,
658
+ width: st,
659
+ onOpen: () => xt(!0),
660
+ showOpenArrow: Q === "both" || Q === "open"
659
661
  }
660
662
  } : {})
661
663
  ),
662
664
  /* @__PURE__ */ o(
663
- fn,
664
- v(r(r({}, Y === "push" ? {
665
+ an,
666
+ C(i(i({}, j === "push" ? {
665
667
  leftPanel: {
666
- open: ce,
668
+ open: lt,
667
669
  width: h
668
670
  }
669
- } : {}), Ae === "push" ? {
671
+ } : {}), ft === "push" ? {
670
672
  rightPanel: {
671
- open: pe,
672
- width: de
673
+ open: dt,
674
+ width: st
673
675
  }
674
676
  } : {}), {
675
- children: /* @__PURE__ */ o(mn, v(r({ "data-testid": u }, p), { children: e }))
677
+ children: /* @__PURE__ */ o(sn, C(i({ "data-testid": u }, p), { children: t }))
676
678
  })
677
679
  )
678
680
  ] });
679
681
  }
680
- const oe = "Navbar", X = {
681
- root: `${oe}-root`,
682
- menuButton: `${oe}-menuButton`,
683
- hide: `${oe}-hide`,
684
- content: `${oe}-content`
682
+ const et = "Navbar", G = {
683
+ root: `${et}-root`,
684
+ menuButton: `${et}-menuButton`,
685
+ hide: `${et}-hide`,
686
+ content: `${et}-content`
685
687
  // userInfoHolder: `${PREFIX}-userInfoHolder`,
686
688
  // settings: `${PREFIX}-settings`,
687
689
  // pieChartIcon: `${PREFIX}-pieChartIcon`,
688
- }, xn = R("div", { name: "NavBar" })(({ theme: e }) => ({
689
- [`&.${X.root}`]: {
690
+ }, ln = _("div", { name: "NavBar" })(({ theme: t }) => ({
691
+ [`&.${G.root}`]: {
690
692
  display: "flex"
691
693
  },
692
- [`& .${X.menuButton}`]: {
694
+ [`& .${G.menuButton}`]: {
693
695
  marginRight: 36
694
696
  },
695
- [`& .${X.hide}`]: {
697
+ [`& .${G.hide}`]: {
696
698
  display: "none"
697
699
  },
698
- [`& .${X.content}`]: {
700
+ [`& .${G.content}`]: {
699
701
  flexGrow: 1,
700
- padding: e.spacing(3)
702
+ padding: t.spacing(3)
701
703
  }
702
704
  // [`& .${classes.userInfoHolder}`]: {
703
705
  // height: '148px',
704
706
  // marginTop: '64px',
705
707
  // marginBottom: '16px',
706
708
  // },
707
- })), dt = (e, t) => {
708
- var n, i;
709
+ })), ee = (t, e) => {
710
+ var n, r;
709
711
  return {
710
- height: `calc(100vh - ${t}px)`,
711
- top: t,
712
+ height: `calc(100vh - ${e}px)`,
713
+ top: e,
712
714
  overflowX: "hidden",
713
715
  overflowY: "hidden",
714
716
  color: "inherit",
715
- backgroundColor: (i = (n = e == null ? void 0 : e.navBar) == null ? void 0 : n.backgroundColor) != null ? i : "white"
717
+ backgroundColor: (r = (n = t == null ? void 0 : t.navBar) == null ? void 0 : n.backgroundColor) != null ? r : "white"
716
718
  // Provide default so tests don't need to wrap theme provider
717
719
  };
718
- }, _e = (e, t, n) => r({
719
- width: t,
720
- transition: e.transitions.create("width", {
721
- easing: e.transitions.easing.sharp,
722
- duration: e.transitions.duration.enteringScreen
720
+ }, kt = (t, e, n) => i({
721
+ width: e,
722
+ transition: t.transitions.create("width", {
723
+ easing: t.transitions.easing.sharp,
724
+ duration: t.transitions.duration.enteringScreen
723
725
  })
724
- }, dt(e, n)), He = (e, t, n) => r({
725
- width: t,
726
- transition: e.transitions.create("width", {
727
- easing: e.transitions.easing.sharp,
728
- duration: e.transitions.duration.leavingScreen
726
+ }, ee(t, n)), Et = (t, e, n) => i({
727
+ width: e,
728
+ transition: t.transitions.create("width", {
729
+ easing: t.transitions.easing.sharp,
730
+ duration: t.transitions.duration.leavingScreen
729
731
  }),
730
732
  overflowX: "hidden"
731
- }, dt(e, n)), vn = R(Ze, {
732
- shouldForwardProp: (e) => !["open", "widthOpen", "widthClosed", "offsetTop"].includes(e)
733
- })(({ theme: e, open: t, widthOpen: n, widthClosed: i, offsetTop: a }) => r(r({
733
+ }, ee(t, n)), dn = _(Gt, {
734
+ shouldForwardProp: (t) => !["open", "widthOpen", "widthClosed", "offsetTop"].includes(t)
735
+ })(({ theme: t, open: e, widthOpen: n, widthClosed: r, offsetTop: a }) => i(i({
734
736
  flexShrink: 0,
735
737
  whiteSpace: "nowrap",
736
738
  boxSizing: "border-box",
737
739
  display: "flex",
738
740
  flexDirection: "column"
739
- }, t && v(r({}, _e(e, n, a)), {
740
- "& .MuiDrawer-paper": _e(e, n, a)
741
- })), !t && v(r({}, He(e, i, a)), {
742
- "& .MuiDrawer-paper": He(e, i, a)
741
+ }, e && C(i({}, kt(t, n, a)), {
742
+ "& .MuiDrawer-paper": kt(t, n, a)
743
+ })), !e && C(i({}, Et(t, r, a)), {
744
+ "& .MuiDrawer-paper": Et(t, r, a)
743
745
  })));
744
- function Cn({ links: e }) {
746
+ function cn({ links: t }) {
745
747
  return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
746
748
  }
747
- function Re(e) {
748
- let t = 0;
749
- for (let n = 0, i = e.length; n < i; n++) {
750
- const a = e.charCodeAt(n);
751
- t = (t << 5) - t + a, t |= 0;
752
- }
753
- return t;
754
- }
755
- const ie = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], We = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
756
- function wn({ user: e, domainCode: t, open: n }) {
757
- const i = Fe(be), a = Fe(we);
758
- return /* @__PURE__ */ o(w, { sx: { paddingTop: 3 }, children: /* @__PURE__ */ o(
759
- w,
749
+ const nt = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Nt = (t) => t.split(/\s/).map((e) => e.substring(0, 1).toUpperCase()).filter((e) => !!e).slice(0, 2).join("").toUpperCase();
750
+ function pn({
751
+ user: t,
752
+ domainCode: e,
753
+ open: n,
754
+ navBarWidthClosed: r,
755
+ navBarWidthOpen: a
756
+ }) {
757
+ return /* @__PURE__ */ o(A, { sx: { paddingTop: 3 }, children: /* @__PURE__ */ o(
758
+ A,
760
759
  {
761
760
  sx: {
762
761
  display: "flex",
763
762
  alignItems: "center",
764
763
  flexDirection: "column"
765
764
  },
766
- children: n ? /* @__PURE__ */ d(P, { children: [
765
+ children: n ? /* @__PURE__ */ c(k, { children: [
767
766
  /* @__PURE__ */ o(
768
- w,
767
+ A,
769
768
  {
770
769
  sx: {
771
770
  width: `${a * 0.33}px`,
772
771
  aspectRatio: 1,
773
772
  marginBottom: 1
774
773
  },
775
- children: e != null && e.name ? /* @__PURE__ */ o(
776
- te,
774
+ children: t != null && t.name ? /* @__PURE__ */ o(
775
+ Z,
777
776
  {
778
- src: e == null ? void 0 : e.picture,
777
+ src: t == null ? void 0 : t.picture,
779
778
  sx: {
780
779
  width: "100%",
781
780
  height: "100%",
782
- bgcolor: ie[Math.abs(Re(e.name)) % ie.length]
781
+ bgcolor: nt[Math.abs(Ot(t.name)) % nt.length]
783
782
  },
784
- children: We(e.name)
783
+ children: Nt(t.name)
785
784
  }
786
- ) : /* @__PURE__ */ o(te, { sx: { width: "100%", height: "100%" } })
785
+ ) : /* @__PURE__ */ o(Z, { sx: { width: "100%", height: "100%" } })
787
786
  }
788
787
  ),
789
- e != null && e.name ? /* @__PURE__ */ o(B, { children: e.name }) : /* @__PURE__ */ o(ke, { animation: !1, width: "50%" }),
790
- t ? /* @__PURE__ */ o(B, { children: t.toUpperCase() }) : /* @__PURE__ */ o(ke, { animation: !1, width: "25%" })
791
- ] }) : /* @__PURE__ */ o(w, { sx: { width: `${i * 0.5}px`, aspectRatio: 1, marginBottom: 1 }, children: e != null && e.name ? /* @__PURE__ */ o(
792
- te,
788
+ t != null && t.name ? /* @__PURE__ */ o(I, { children: t.name }) : /* @__PURE__ */ o(St, { animation: !1, width: "50%" }),
789
+ e ? /* @__PURE__ */ o(I, { children: e.toUpperCase() }) : /* @__PURE__ */ o(St, { animation: !1, width: "25%" })
790
+ ] }) : /* @__PURE__ */ o(A, { sx: { width: `${r * 0.5}px`, aspectRatio: 1, marginBottom: 1 }, children: t != null && t.name ? /* @__PURE__ */ o(
791
+ Z,
793
792
  {
794
- src: e == null ? void 0 : e.picture,
793
+ src: t == null ? void 0 : t.picture,
795
794
  sx: {
796
795
  width: "100%",
797
796
  height: "100%",
798
- bgcolor: ie[Math.abs(Re(e.name)) % ie.length]
797
+ bgcolor: nt[Math.abs(Ot(t.name)) % nt.length]
799
798
  },
800
- children: We(e.name)
799
+ children: Nt(t.name)
801
800
  }
802
- ) : /* @__PURE__ */ o(te, { sx: { width: "100%", height: "100%" } }) })
801
+ ) : /* @__PURE__ */ o(Z, { sx: { width: "100%", height: "100%" } }) })
803
802
  }
804
803
  ) });
805
804
  }
806
- function bn({ navBarOpen: e }) {
807
- const [t, n] = T(!1);
808
- return /* @__PURE__ */ d(Ee, { children: [
809
- /* @__PURE__ */ d(M, { onClick: () => n((i) => !i), children: [
810
- /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(Ut, {}) }),
811
- /* @__PURE__ */ o(_, { primary: "Switch to ..." }),
812
- t && e ? /* @__PURE__ */ o(Gt, {}) : /* @__PURE__ */ o(Vt, {})
813
- ] }),
814
- /* @__PURE__ */ o($t, { in: t && e, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ d(Ee, { component: "div", disablePadding: !0, children: [
815
- /* @__PURE__ */ o(M, { sx: { pl: 2 }, children: /* @__PURE__ */ o(_, { primary: "1. Something", inset: !0 }) }),
816
- /* @__PURE__ */ o(M, { sx: { pl: 2 }, children: /* @__PURE__ */ o(_, { primary: "2. Something else", inset: !0 }) }),
817
- /* @__PURE__ */ o(M, { sx: { pl: 2 }, children: /* @__PURE__ */ o(_, { primary: "3. Puppies!", inset: !0 }) })
818
- ] }) }),
819
- /* @__PURE__ */ d(M, { children: [
820
- /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(Xt, {}) }),
821
- /* @__PURE__ */ o(_, { primary: "Settings" })
822
- ] }),
823
- /* @__PURE__ */ d(M, { children: [
824
- /* @__PURE__ */ o(ge, { children: /* @__PURE__ */ o(qt, {}) }),
825
- /* @__PURE__ */ o(_, { primary: "Log out" })
826
- ] })
827
- ] });
828
- }
829
- function An({
830
- open: e,
831
- offsetTop: t = 0,
805
+ function un({
806
+ open: t,
807
+ offsetTop: e = 0,
832
808
  widthOpen: n,
833
- widthClosed: i,
809
+ widthClosed: r,
834
810
  "data-testid": a,
835
811
  top: l,
836
812
  middle: p,
837
- user: u,
838
- domainCode: s
813
+ bottom: u,
814
+ user: s,
815
+ domainCode: d
839
816
  }) {
840
- return /* @__PURE__ */ o(xn, { className: X.root, "data-testid": a, children: /* @__PURE__ */ d(
841
- vn,
817
+ return /* @__PURE__ */ o(ln, { className: G.root, "data-testid": a, children: /* @__PURE__ */ c(
818
+ dn,
842
819
  {
843
820
  variant: "permanent",
844
821
  anchor: "left",
845
- open: e,
822
+ open: t,
846
823
  widthOpen: n,
847
- widthClosed: i,
848
- offsetTop: t,
824
+ widthClosed: r,
825
+ offsetTop: e,
849
826
  PaperProps: {
850
- // https://github.com/mui/material-ui/issues/27703
851
- // This isn't fixed in the version we are using at time of writing
852
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
853
- // @ts-ignore
854
827
  component: "nav"
855
828
  },
856
829
  children: [
857
- l && /* @__PURE__ */ d(w, { sx: { flex: "0 0 auto" }, children: [
830
+ l && /* @__PURE__ */ c(A, { sx: { flex: "0 0 auto" }, children: [
858
831
  l,
859
- /* @__PURE__ */ o(Ne, { variant: "middle" })
832
+ /* @__PURE__ */ o(Tt, { variant: "middle" })
860
833
  ] }),
861
- /* @__PURE__ */ o(w, { sx: { flex: "1 0 auto" }, children: Array.isArray(p) ? /* @__PURE__ */ o(Cn, { links: p }) : p }),
862
- /* @__PURE__ */ d(w, { sx: { flex: "0 0 auto" }, children: [
863
- /* @__PURE__ */ o(Ne, { variant: "middle" }),
864
- /* @__PURE__ */ o(wn, { user: u, domainCode: s, open: e }),
865
- /* @__PURE__ */ o(bn, { navBarOpen: e })
834
+ /* @__PURE__ */ o(A, { sx: { flex: "1 0 auto" }, children: Array.isArray(p) ? /* @__PURE__ */ o(cn, { links: p }) : p }),
835
+ /* @__PURE__ */ c(A, { sx: { flex: "0 0 auto" }, children: [
836
+ /* @__PURE__ */ o(Tt, { variant: "middle" }),
837
+ /* @__PURE__ */ o(
838
+ pn,
839
+ {
840
+ user: s,
841
+ domainCode: d,
842
+ open: t,
843
+ navBarWidthClosed: r,
844
+ navBarWidthOpen: n
845
+ }
846
+ ),
847
+ u && /* @__PURE__ */ o(k, { children: u })
866
848
  ] })
867
849
  ]
868
850
  }
869
851
  ) });
870
852
  }
871
- function Sn({ children: e, topBarHeight: t }) {
853
+ function hn({ children: t, topBarHeight: e }) {
872
854
  return /* @__PURE__ */ o(
873
- w,
855
+ A,
874
856
  {
875
857
  sx: {
876
858
  overflow: "auto",
877
- height: `calc(100vh - ${t}px)`,
859
+ height: `calc(100vh - ${e}px)`,
878
860
  scrollbarGutter: "stable",
879
861
  // scrollbarGutter: 'stable both-edges',
880
862
  flexGrow: 1
881
863
  },
882
864
  children: /* @__PURE__ */ o(
883
- Ye,
865
+ Wt,
884
866
  {
885
867
  component: "main",
886
868
  id: "main-content",
887
869
  sx: { paddingTop: 3, paddingBottom: 3, flexGrow: 1 },
888
- children: e
870
+ children: t
889
871
  }
890
872
  )
891
873
  }
892
874
  );
893
875
  }
894
- const In = 64, On = 64, Tn = 256, Ce = $(!0), we = $(Tn), be = $(On), ct = $(""), pt = $(In), ut = $(void 0), Dn = "TopBar", Bn = {
895
- titleText: `${Dn}-titleText`
876
+ const gn = 64, fn = 64, mn = 256, ne = E(!0), vn = E(mn), xn = E(fn), Cn = E(""), wn = E(gn), An = E(void 0), bn = "TopBar", Sn = {
877
+ titleText: `${bn}-titleText`
896
878
  };
897
- function $n({ titleText: e = "", height: t, "data-testid": n }) {
898
- const i = Qt(Ce);
899
- return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ d(
900
- Qe,
879
+ function Tn({ titleText: t = "", height: e, "data-testid": n }) {
880
+ const r = Ee(ne);
881
+ return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ c(
882
+ Rt,
901
883
  {
902
884
  square: !0,
903
885
  elevation: 0,
@@ -910,178 +892,184 @@ function $n({ titleText: e = "", height: t, "data-testid": n }) {
910
892
  alignItems: "center",
911
893
  gap: 2,
912
894
  flexShrink: 0,
913
- height: t
895
+ height: e
914
896
  },
915
897
  children: [
916
- /* @__PURE__ */ o(q, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: () => i((l) => !l), children: /* @__PURE__ */ o(jt, { fontSize: "medium" }) }),
917
- /* @__PURE__ */ o(B, { className: Bn.titleText, variant: "h6", children: e })
898
+ /* @__PURE__ */ o(V, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: () => r((l) => !l), children: /* @__PURE__ */ o(ke, { fontSize: "medium" }) }),
899
+ /* @__PURE__ */ o(I, { className: Sn.titleText, variant: "h6", children: t })
918
900
  ]
919
901
  }
920
902
  ) });
921
903
  }
922
- function fo({
923
- children: e,
924
- initialTitleText: t,
904
+ function xo({
905
+ children: t,
906
+ initialTitleText: e,
925
907
  initialNavBarOpen: n,
926
- pageContainerProps: i,
908
+ pageContainerProps: r,
927
909
  pageContentDataTestId: a,
928
910
  topBarDataTestId: l,
929
911
  navBarDataTestId: p,
930
912
  navBarMiddle: u,
931
- user: s,
932
- domainCode: c
913
+ navBarBottom: s,
914
+ user: d,
915
+ domainCode: v
933
916
  }) {
934
- const [x, f] = L(Ce), [C] = L(we), [m] = L(be), [O, S] = L(ct), [b] = L(pt), [I] = L(ut);
935
- return ae(() => {
936
- t !== void 0 && S(t);
937
- }, [t, S]), ae(() => {
938
- n !== void 0 && f(n);
939
- }, [n, f]), /* @__PURE__ */ d(w, { children: [
940
- /* @__PURE__ */ o(kt, {}),
941
- /* @__PURE__ */ o($n, { titleText: O, "data-testid": l, height: b }),
942
- /* @__PURE__ */ d(w, { sx: { display: "flex" }, children: [
917
+ const [f, x] = P(ne), [m] = P(vn), [T] = P(xn), [B, S] = P(Cn), [w] = P(wn), [O] = P(An);
918
+ return rt(() => {
919
+ e !== void 0 && S(e);
920
+ }, [e, S]), rt(() => {
921
+ n !== void 0 && x(n);
922
+ }, [n, x]), /* @__PURE__ */ c(A, { children: [
923
+ /* @__PURE__ */ o(xe, {}),
924
+ /* @__PURE__ */ o(Tn, { titleText: B, "data-testid": l, height: w }),
925
+ /* @__PURE__ */ c(A, { sx: { display: "flex" }, children: [
943
926
  /* @__PURE__ */ o(
944
- An,
927
+ un,
945
928
  {
946
- open: x,
947
- top: I,
929
+ open: f,
930
+ top: O,
948
931
  middle: u,
949
- user: s,
950
- domainCode: c,
951
- widthOpen: C,
952
- widthClosed: m,
953
- offsetTop: b,
932
+ bottom: s,
933
+ user: d,
934
+ domainCode: v,
935
+ widthOpen: m,
936
+ widthClosed: T,
937
+ offsetTop: w,
954
938
  "data-testid": p
955
939
  }
956
940
  ),
957
941
  /* @__PURE__ */ o(
958
- Sn,
959
- v(r({
942
+ hn,
943
+ C(i({
960
944
  "data-testid": a,
961
- topBarHeight: b
962
- }, i), {
963
- children: e
945
+ topBarHeight: w
946
+ }, r), {
947
+ children: t
964
948
  })
965
949
  )
966
950
  ] })
967
951
  ] });
968
952
  }
969
- const kn = {
953
+ const Bn = {
970
954
  autoHideDuration: 6e3,
971
955
  anchorOrigin: { vertical: "top", horizontal: "center" },
972
956
  // The default is false. If we prefer timer to continue when window loses
973
957
  // focus, change to true
974
958
  disableWindowBlurListener: !1
975
- }, En = {
976
- shouldClose: (e, t) => t !== "clickaway"
977
- }, ze = {
959
+ }, On = {
960
+ shouldClose: (t, e) => e !== "clickaway"
961
+ }, Ft = {
978
962
  message: "",
979
963
  severity: "info",
980
964
  variant: "standard",
981
965
  progressIndicator: void 0
982
966
  // Can use 'circular' or 'linear'
983
- }, Ue = 100, Ge = 2e3, Nn = 2e3, Ln = (() => {
984
- let e = 0;
985
- return () => (e += 1, e);
986
- })(), Fn = {
967
+ }, Pt = 100, Lt = 2e3, $n = 2e3, Dn = (() => {
968
+ let t = 0;
969
+ return () => (t += 1, t);
970
+ })(), In = {
987
971
  borderBottomLeftRadius: "0px",
988
972
  borderBottomRightRadius: "0px"
989
- }, Pn = {}, yn = {}, ht = qe(null);
990
- function Mn(l) {
973
+ }, kn = {}, En = {}, oe = _t(null);
974
+ function Nn(l) {
991
975
  var p = l, {
992
- overrideState: e = Pn,
993
- overrideActions: t = yn,
994
- shouldClose: n = En.shouldClose,
995
- children: i
996
- } = p, a = Be(p, [
976
+ overrideState: t = kn,
977
+ overrideActions: e = En,
978
+ shouldClose: n = On.shouldClose,
979
+ children: r
980
+ } = p, a = At(p, [
997
981
  "overrideState",
998
982
  "overrideActions",
999
983
  "shouldClose",
1000
984
  "children"
1001
985
  ]);
1002
- var V;
1003
- const [{ open: u }, s] = T({ open: !1 }), c = he([]), x = he(Date.now()), f = he(0), C = re((h) => {
986
+ var U;
987
+ const [{ open: u }, s] = D({ open: !1 }), d = pt([]), v = pt(Date.now()), f = pt(0), x = ot((h) => {
1004
988
  s({ open: h });
1005
- }, []), m = re((h = {}) => {
1006
- f.current += 1, c.current.length >= Ue && Date.now() - x.current >= Ge && (x.current = Date.now(), console.error(
1007
- `SaladBarProvider: MAX_QUEUE_LENGTH (${Ue}) hit ${f.current} times in last ${Ge}ms)`
989
+ }, []), m = ot((h = {}) => {
990
+ f.current += 1, d.current.length >= Pt && Date.now() - v.current >= Lt && (v.current = Date.now(), console.error(
991
+ `SaladBarProvider: MAX_QUEUE_LENGTH (${Pt}) hit ${f.current} times in last ${Lt}ms)`
1008
992
  ), f.current = 0);
1009
- const g = r(v(r({}, ze), {
1010
- key: Ln()
993
+ const g = i(C(i({}, Ft), {
994
+ key: Dn()
1011
995
  }), h);
1012
- return c.current.push(g), c.current.length === 1 && s({ open: !0 }), g.key;
1013
- }, []), O = (h = "", g = {}) => m(r({ message: h, severity: "success" }, g)), S = (h = "", g = {}) => m(r({ message: h, severity: "info" }, g)), b = (h = "", g = {}) => m(r({ message: h, severity: "warning" }, g)), I = (h = "", g = {}) => m(r({ message: h, severity: "error" }, g)), k = (h) => {
1014
- const g = c.current.findIndex((y) => y.key === h);
996
+ return d.current.push(g), d.current.length === 1 && s({ open: !0 }), g.key;
997
+ }, []), T = (h = "", g = {}) => m(i({ message: h, severity: "success" }, g)), B = (h = "", g = {}) => m(i({ message: h, severity: "info" }, g)), S = (h = "", g = {}) => m(i({ message: h, severity: "warning" }, g)), w = (h = "", g = {}) => m(i({ message: h, severity: "error" }, g)), O = (h) => {
998
+ const g = d.current.findIndex((y) => y.key === h);
1015
999
  if (g !== -1)
1016
- return g === 0 ? (s({ open: !1 }), c.current[0]) : c.current.splice(g, 1);
1017
- }, W = (h, g) => {
1000
+ return g === 0 ? (s({ open: !1 }), d.current[0]) : d.current.splice(g, 1);
1001
+ }, H = (h, g) => {
1018
1002
  n(h, g) && s({ open: !1 });
1019
- }, z = () => {
1020
- }, U = () => {
1021
- c.current.shift(), c.current.length > 0 && s({ open: !0 });
1022
- }, D = (V = c.current[0]) != null ? V : r({}, ze), Q = {};
1023
- "autoHideDuration" in D && (Q.autoHideDuration = D.autoHideDuration);
1024
- const Y = r(r({}, kn), a), G = r(r({
1003
+ }, R = () => {
1004
+ }, W = () => {
1005
+ d.current.shift(), d.current.length > 0 && s({ open: !0 });
1006
+ }, $ = (U = d.current[0]) != null ? U : i({}, Ft), q = {};
1007
+ "autoHideDuration" in $ && (q.autoHideDuration = $.autoHideDuration);
1008
+ const j = i(i({}, Bn), a), z = i(i({
1025
1009
  open: u,
1026
- setOpen: C,
1010
+ setOpen: x,
1027
1011
  enqueueNotification: m,
1028
- enqueueSuccessNotification: O,
1029
- enqueueInfoNotification: S,
1030
- enqueueWarningNotification: b,
1031
- enqueueErrorNotification: I,
1032
- removeNotification: k
1033
- }, e), t);
1034
- return /* @__PURE__ */ d(ht.Provider, { value: G, children: [
1035
- i,
1012
+ enqueueSuccessNotification: T,
1013
+ enqueueInfoNotification: B,
1014
+ enqueueWarningNotification: S,
1015
+ enqueueErrorNotification: w,
1016
+ removeNotification: O
1017
+ }, t), e);
1018
+ return /* @__PURE__ */ c(oe.Provider, { value: z, children: [
1019
+ r,
1036
1020
  /* @__PURE__ */ o(
1037
- Et,
1038
- v(r(r({}, Y), Q), {
1021
+ Ce,
1022
+ C(i(i({}, j), q), {
1039
1023
  open: u,
1040
- onClose: W,
1024
+ onClose: H,
1041
1025
  TransitionProps: {
1042
- onExited: U,
1043
- onExit: z
1026
+ onExited: W,
1027
+ onExit: R
1044
1028
  },
1045
- sx: { zIndex: Nn },
1046
- children: /* @__PURE__ */ d("div", { children: [
1029
+ sx: { zIndex: $n },
1030
+ children: /* @__PURE__ */ c("div", { children: [
1047
1031
  /* @__PURE__ */ o(
1048
- Nt,
1032
+ we,
1049
1033
  {
1050
- onClose: (h) => W(h, "closeAlert"),
1051
- severity: D.severity,
1034
+ onClose: (h) => H(h, "closeAlert"),
1035
+ severity: $.severity,
1052
1036
  variant: "filled",
1053
- icon: D.progressIndicator === "circular" ? /* @__PURE__ */ o(Je, { size: "1em" }) : void 0,
1054
- style: D.progressIndicator === "linear" ? Fn : void 0,
1055
- children: D.message
1037
+ icon: $.progressIndicator === "circular" ? /* @__PURE__ */ o(zt, { size: "1em" }) : void 0,
1038
+ style: $.progressIndicator === "linear" ? In : void 0,
1039
+ children: $.message
1056
1040
  }
1057
1041
  ),
1058
- D.progressIndicator === "linear" && /* @__PURE__ */ o(Lt, { color: "primary" })
1042
+ $.progressIndicator === "linear" && /* @__PURE__ */ o(Ae, { color: "primary" })
1059
1043
  ] })
1060
1044
  })
1061
1045
  )
1062
1046
  ] });
1063
1047
  }
1064
- function _n() {
1065
- const e = je(ht);
1066
- if (e === null)
1067
- throw new ve("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1068
- return e;
1048
+ function Co() {
1049
+ const t = Ht(oe);
1050
+ if (t === null)
1051
+ throw new Vt("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
1052
+ return t;
1053
+ }
1054
+ const wo = it(
1055
+ (t = { autoHideDuration: 1 }, e = {}, n = {}) => ({ children: r }) => /* @__PURE__ */ o(Nn, C(i({}, t), { overrideState: e, overrideActions: n, children: r }))
1056
+ ), Fn = Ne(), Ao = ({
1057
+ children: t,
1058
+ store: e
1059
+ }) => /* @__PURE__ */ o(Qt, { store: e != null ? e : Fn, children: t });
1060
+ class Pn extends Fe {
1069
1061
  }
1070
- const mo = se(
1071
- (e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Mn, v(r({}, e), { overrideState: t, overrideActions: n, children: i }))
1072
- ), Hn = Yt(), xo = ({
1073
- children: e,
1074
- store: t
1075
- }) => /* @__PURE__ */ o(ot, { store: t != null ? t : Hn, children: e }), gt = "domainCode";
1076
- var Xe;
1077
- const Ve = $(
1078
- JSON.parse((Xe = localStorage.getItem(gt)) != null ? Xe : '{"domainCode": ""}').domainCode
1079
- ), ft = $(
1080
- (e) => e(Ve),
1081
- (e, t, n) => {
1082
- t(Ve, n), localStorage.setItem(gt, JSON.stringify({ domainCode: n }));
1062
+ bt(Pn, "errorName", "ContextError");
1063
+ const re = "domainCode";
1064
+ var Mt;
1065
+ const yt = E(
1066
+ JSON.parse((Mt = localStorage.getItem(re)) != null ? Mt : '{"domainCode": ""}').domainCode
1067
+ ), Ln = E(
1068
+ (t) => t(yt),
1069
+ (t, e, n) => {
1070
+ e(yt, n), localStorage.setItem(re, JSON.stringify({ domainCode: n }));
1083
1071
  }
1084
- ), Rn = {
1072
+ ), yn = {
1085
1073
  act: "ACT",
1086
1074
  nsw: "NSW",
1087
1075
  nt: "NT",
@@ -1093,76 +1081,76 @@ const Ve = $(
1093
1081
  ag: "AG",
1094
1082
  fedmps: "Fedmps",
1095
1083
  "": ""
1096
- }, Wn = (e) => {
1097
- var t;
1098
- return e === null ? "N/A" : (t = Rn[e]) != null ? t : "";
1099
- }, vo = ({
1100
- isLoading: e,
1101
- isOpen: t,
1084
+ }, Mn = (t) => {
1085
+ var e;
1086
+ return t === null ? "N/A" : (e = yn[t]) != null ? e : "";
1087
+ }, bo = ({
1088
+ isLoading: t,
1089
+ isOpen: e,
1102
1090
  onClose: n,
1103
- domainOptions: i,
1091
+ domainOptions: r,
1104
1092
  applicationName: a,
1105
1093
  handleLogout: l
1106
1094
  }) => {
1107
- const [p, u] = L(ft), [s, c] = T(p), { enqueueSuccessNotification: x } = _n(), f = i.length === 0, C = !!p && !i.includes(p) && !i.includes(s), m = !p || f || C, O = () => ee(void 0, null, function* () {
1108
- s ? (u(s), x(`Set domain to ${s}`), n()) : u("");
1109
- }), S = () => ee(void 0, null, function* () {
1110
- p && !f && !C ? (c(p), n()) : m && l();
1095
+ const [p, u] = P(Ln), [s, d] = D(p), { enqueueSuccessNotification: v } = Pe(), f = r.length === 0, x = !!p && !r.includes(p) && !r.includes(s), m = !p || f || x, T = () => K(void 0, null, function* () {
1096
+ s ? (u(s), v(`Set domain to ${s}`), n()) : u("");
1097
+ }), B = () => K(void 0, null, function* () {
1098
+ p && !f && !x ? (d(p), n()) : m && l();
1111
1099
  });
1112
- let b;
1113
- return f ? b = "Unable to retrieve your active organisations. Try logging in again." : C && (b = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ d(
1114
- ln,
1100
+ let S;
1101
+ return f ? S = "Unable to retrieve your active organisations. Try logging in again." : x && (S = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ c(
1102
+ Le,
1115
1103
  {
1116
- isOpen: t,
1104
+ isOpen: e,
1117
1105
  dialogTitle: "Select an organisation",
1118
1106
  primaryButton: {
1119
1107
  text: "Confirm",
1120
- onClick: O,
1121
- disabled: !s || f || C,
1108
+ onClick: T,
1109
+ disabled: !s || f || x,
1122
1110
  buttonColor: "primary"
1123
1111
  },
1124
1112
  secondaryButton: {
1125
1113
  text: m ? "Logout" : "Cancel",
1126
- onClick: S
1114
+ onClick: B
1127
1115
  },
1128
1116
  onClose: m ? () => {
1129
1117
  } : n,
1130
1118
  children: [
1131
- /* @__PURE__ */ d(B, { marginBottom: 2, children: [
1119
+ /* @__PURE__ */ c(I, { marginBottom: 2, children: [
1132
1120
  "Select the default organisation that you want to use with the ",
1133
1121
  a,
1134
1122
  "."
1135
1123
  ] }),
1136
1124
  /* @__PURE__ */ o(
1137
- Ft,
1125
+ be,
1138
1126
  {
1139
- loading: e,
1127
+ loading: t,
1140
1128
  multiple: !1,
1141
1129
  disableClearable: !1,
1142
1130
  value: s !== "" ? s : null,
1143
- onChange: (I, k) => c(k != null ? k : ""),
1144
- getOptionLabel: Wn,
1145
- options: [...i],
1146
- renderInput: (I) => /* @__PURE__ */ o(
1147
- Pt,
1148
- v(r({}, I), {
1131
+ onChange: (w, O) => d(O != null ? O : ""),
1132
+ getOptionLabel: Mn,
1133
+ options: [...r],
1134
+ renderInput: (w) => /* @__PURE__ */ o(
1135
+ Se,
1136
+ C(i({}, w), {
1149
1137
  variant: "filled",
1150
1138
  label: "Select organisation",
1151
- InputProps: v(r({}, I.InputProps), {
1152
- endAdornment: /* @__PURE__ */ d(P, { children: [
1153
- e ? /* @__PURE__ */ o(Je, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1154
- I.InputProps.endAdornment
1139
+ InputProps: C(i({}, w.InputProps), {
1140
+ endAdornment: /* @__PURE__ */ c(k, { children: [
1141
+ t ? /* @__PURE__ */ o(zt, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
1142
+ w.InputProps.endAdornment
1155
1143
  ] })
1156
1144
  })
1157
1145
  })
1158
1146
  )
1159
1147
  }
1160
1148
  ),
1161
- b && /* @__PURE__ */ o(yt, { error: !0, children: b })
1149
+ S && /* @__PURE__ */ o(Te, { error: !0, children: S })
1162
1150
  ]
1163
1151
  }
1164
1152
  );
1165
- }, Co = Ke({
1153
+ }, So = Ut({
1166
1154
  palette: {
1167
1155
  primary: {
1168
1156
  dark: "#00A651",
@@ -1213,7 +1201,7 @@ const Ve = $(
1213
1201
  navBar: {
1214
1202
  backgroundColor: "#E8E8E8"
1215
1203
  }
1216
- }), wo = Ke({
1204
+ }), To = Ut({
1217
1205
  palette: {
1218
1206
  primary: {
1219
1207
  main: "#007236",
@@ -1265,22 +1253,22 @@ const Ve = $(
1265
1253
  MuiMenuItem: {
1266
1254
  // Setting defaultProps for color on MenuItem does not work, so update manually
1267
1255
  styleOverrides: {
1268
- root: ({ theme: e }) => ({
1256
+ root: ({ theme: t }) => ({
1269
1257
  "&.Mui-selected": {
1270
- backgroundColor: fe(
1271
- e.palette.secondary.main,
1272
- e.palette.action.selectedOpacity
1258
+ backgroundColor: ut(
1259
+ t.palette.secondary.main,
1260
+ t.palette.action.selectedOpacity
1273
1261
  ),
1274
1262
  "&:hover": {
1275
- backgroundColor: fe(
1276
- e.palette.secondary.main,
1277
- e.palette.action.selectedOpacity
1263
+ backgroundColor: ut(
1264
+ t.palette.secondary.main,
1265
+ t.palette.action.selectedOpacity
1278
1266
  )
1279
1267
  },
1280
1268
  "&.Mui-focusVisible": {
1281
- backgroundColor: fe(
1282
- e.palette.secondary.main,
1283
- e.palette.action.focusOpacity
1269
+ backgroundColor: ut(
1270
+ t.palette.secondary.main,
1271
+ t.palette.action.focusOpacity
1284
1272
  )
1285
1273
  }
1286
1274
  }
@@ -1304,65 +1292,65 @@ const Ve = $(
1304
1292
  navBar: {
1305
1293
  backgroundColor: "#E8E8E8"
1306
1294
  }
1307
- }), zn = {
1308
- domainCode: ft,
1309
- navBarOpen: Ce,
1310
- navBarWidthOpen: we,
1311
- navBarWidthClosed: be,
1312
- titleText: ct,
1313
- topBarHeight: pt,
1314
- navBarTop: ut
1315
- }, bo = se(() => ({ children: e }) => /* @__PURE__ */ o(ot, { children: e })), Un = ({
1316
- initialValues: e,
1317
- children: t
1318
- }) => (Jt(e), /* @__PURE__ */ o(P, { children: t })), Ao = se(
1319
- (e) => ({ children: t }) => /* @__PURE__ */ o(
1320
- Un,
1295
+ }), _n = {
1296
+ domainCode: Me,
1297
+ navBarOpen: _e,
1298
+ navBarWidthOpen: He,
1299
+ navBarWidthClosed: Re,
1300
+ titleText: We,
1301
+ topBarHeight: ze,
1302
+ navBarTop: Ue
1303
+ }, Bo = it(() => ({ children: t }) => /* @__PURE__ */ o(Qt, { children: t })), Hn = ({
1304
+ initialValues: t,
1305
+ children: e
1306
+ }) => (ye(t), /* @__PURE__ */ o(k, { children: e })), Oo = it(
1307
+ (t) => ({ children: e }) => /* @__PURE__ */ o(
1308
+ Hn,
1321
1309
  {
1322
- initialValues: Object.entries(e).map(
1323
- ([n, i]) => [
1324
- zn[n],
1325
- i
1310
+ initialValues: Object.entries(t).map(
1311
+ ([n, r]) => [
1312
+ _n[n],
1313
+ r
1326
1314
  ]
1327
1315
  ),
1328
- children: t
1316
+ children: e
1329
1317
  }
1330
1318
  )
1331
1319
  );
1332
1320
  export {
1333
- ln as AgDialog,
1334
- fo as AppLayout,
1335
- xo as AtomProvider,
1336
- ht as Context,
1337
- ve as ContextError,
1338
- vo as DomainCodeDialog,
1339
- lo as ExampleComponent,
1340
- Un as HydrateAtoms,
1341
- rt as NAVBAR_WIDTH_CLOSED,
1342
- it as NAVBAR_WIDTH_OPENED,
1343
- ho as NavBar,
1344
- po as NavBarDarkStyledList,
1345
- uo as NavBarLightStyledList,
1346
- rn as NavBarProvider,
1347
- go as PageLayout,
1348
- Mn as SaladBarProvider,
1349
- Hn as atomStore,
1350
- sn as buildNavBarState,
1351
- ft as domainCodeAtom,
1352
- Co as fed21Theme,
1353
- wo as internalAgSystemsTheme,
1354
- H as navBarClasses,
1355
- Ce as navBarOpenAtom,
1356
- ut as navBarTopAtom,
1357
- be as navBarWidthClosedAtom,
1358
- we as navBarWidthOpenAtom,
1359
- ct as titleTextAtom,
1360
- pt as topBarHeightAtom,
1361
- an as useNavBar,
1362
- _n as useSaladBar,
1363
- bo as withAtomProvider,
1364
- co as withNavBarProvider,
1365
- Ao as withOverrideDefaults,
1366
- mo as withSaladBarProvider
1321
+ mo as AgDialog,
1322
+ xo as AppLayout,
1323
+ Ao as AtomProvider,
1324
+ oe as Context,
1325
+ Pn as ContextError,
1326
+ bo as DomainCodeDialog,
1327
+ po as ExampleComponent,
1328
+ Hn as HydrateAtoms,
1329
+ Jt as NAVBAR_WIDTH_CLOSED,
1330
+ Yt as NAVBAR_WIDTH_OPENED,
1331
+ fo as NavBar,
1332
+ ho as NavBarDarkStyledList,
1333
+ go as NavBarLightStyledList,
1334
+ Ye as NavBarProvider,
1335
+ vo as PageLayout,
1336
+ Nn as SaladBarProvider,
1337
+ Fn as atomStore,
1338
+ Ke as buildNavBarState,
1339
+ Ln as domainCodeAtom,
1340
+ So as fed21Theme,
1341
+ To as internalAgSystemsTheme,
1342
+ M as navBarClasses,
1343
+ ne as navBarOpenAtom,
1344
+ An as navBarTopAtom,
1345
+ xn as navBarWidthClosedAtom,
1346
+ vn as navBarWidthOpenAtom,
1347
+ Cn as titleTextAtom,
1348
+ wn as topBarHeightAtom,
1349
+ Je as useNavBar,
1350
+ Co as useSaladBar,
1351
+ Bo as withAtomProvider,
1352
+ uo as withNavBarProvider,
1353
+ Oo as withOverrideDefaults,
1354
+ wo as withSaladBarProvider
1367
1355
  };
1368
1356
  //# sourceMappingURL=index.js.map