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