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