@australiangreens/ag-internal-components 0.0.55 → 0.0.57

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