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