@australiangreens/ag-internal-components 0.0.75 → 0.0.77
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/components/AgDialog/AgDialog.d.ts +2 -1
- package/dist/components/AgDialog/AgDialog.d.ts.map +1 -1
- package/dist/components/SessionExpiryDialog/index.d.ts +10 -0
- package/dist/components/SessionExpiryDialog/index.d.ts.map +1 -0
- package/dist/components/SessionExpiryDialog/index.unit.test.d.ts +2 -0
- package/dist/components/SessionExpiryDialog/index.unit.test.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/esm/index.js +604 -545
- package/dist/esm/index.js.map +1 -1
- package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
- package/dist/testHelpers/testBuilders.d.ts +8 -0
- package/dist/testHelpers/testBuilders.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +6 -3
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
1
|
+
var It = Object.defineProperty, $t = Object.defineProperties;
|
|
2
2
|
var Tt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Z = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var ce = (e, t, n) => t in e ?
|
|
4
|
+
var Ie = Object.prototype.hasOwnProperty, $e = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ce = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Ie.call(t, n) && ce(e, n, t[n]);
|
|
8
8
|
if (Z)
|
|
9
9
|
for (var n of Z(t))
|
|
10
10
|
$e.call(t, n) && ce(e, n, t[n]);
|
|
@@ -13,50 +13,52 @@ var ce = (e, t, n) => t in e ? Ot(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
13
13
|
var Te = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
16
|
-
|
|
16
|
+
Ie.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
17
|
if (e != null && Z)
|
|
18
18
|
for (var i of Z(e))
|
|
19
19
|
t.indexOf(i) < 0 && $e.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var Ee = (e, t, n) => (ce(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
+
var B = (e, t, n) => new Promise((i, r) => {
|
|
24
24
|
var s = (c) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
26
|
+
u(n.next(c));
|
|
27
27
|
} catch (d) {
|
|
28
|
-
|
|
28
|
+
r(d);
|
|
29
29
|
}
|
|
30
30
|
}, l = (c) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
u(n.throw(c));
|
|
33
33
|
} catch (d) {
|
|
34
|
-
|
|
34
|
+
r(d);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, u = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, l);
|
|
37
|
+
u((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { jsxs as
|
|
40
|
-
import { useState as
|
|
41
|
-
import { Typography as F, Button as
|
|
42
|
-
import
|
|
43
|
-
import { styled as H, createTheme as Je, alpha as
|
|
44
|
-
import { AgError as
|
|
39
|
+
import { jsxs as g, Fragment as R, jsx as o } from "react/jsx-runtime";
|
|
40
|
+
import { useState as T, createContext as Xe, useCallback as ne, useContext as Qe, createElement as he, useEffect as fe, useRef as de } from "react";
|
|
41
|
+
import { Typography as F, Button as me, Paper as je, Box as y, Drawer as xe, Dialog as Et, DialogTitle as Bt, DialogContent as Ft, DialogActions as Nt, Autocomplete as ve, TextField as we, CircularProgress as be, Chip as Pt, Tooltip as Lt, Stack as Mt, styled as Se, IconButton as Q, Container as Ke, useTheme as ie, useMediaQuery as _t, Collapse as Rt, Avatar as Be, Fade as Ht, Skeleton as Fe, Toolbar as Wt, Divider as Ne, CssBaseline as zt, Snackbar as Ut, Alert as Gt, LinearProgress as Vt, FormHelperText as qt } from "@mui/material";
|
|
42
|
+
import Xt from "@mui/material/CssBaseline";
|
|
43
|
+
import { styled as H, createTheme as Je, alpha as ue } from "@mui/material/styles";
|
|
44
|
+
import { AgError as Qt } from "@australiangreens/ag-error";
|
|
45
45
|
import { createHelper as K } from "souvlaki";
|
|
46
46
|
import Ye from "@mui/material/List";
|
|
47
|
-
import { Cancel as
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import { useQuery as
|
|
51
|
-
import {
|
|
47
|
+
import { Cancel as jt, ArrowDropDown as Kt, ArrowForward as Ze, ArrowBack as et, ViewHeadline as Jt } from "@mui/icons-material";
|
|
48
|
+
import Yt from "autosuggest-highlight/match";
|
|
49
|
+
import Zt from "autosuggest-highlight/parse";
|
|
50
|
+
import { useQuery as en, QueryClient as tn, QueryClientProvider as nn } from "@tanstack/react-query";
|
|
51
|
+
import { useAuth0 as on } from "@auth0/auth0-react";
|
|
52
|
+
import { Buffer as rn } from "buffer";
|
|
53
|
+
import { atom as L, useSetAtom as tt, useAtomValue as Pe, useAtom as V, getDefaultStore as an, Provider as nt } from "jotai";
|
|
52
54
|
import { useHydrateAtoms as ot } from "jotai/utils";
|
|
53
|
-
function
|
|
54
|
-
const [t, n] =
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
function vo({ text: e }) {
|
|
56
|
+
const [t, n] = T(0);
|
|
57
|
+
return /* @__PURE__ */ g(R, { children: [
|
|
56
58
|
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
57
59
|
/* @__PURE__ */ o(F, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
|
|
58
60
|
/* @__PURE__ */ o(
|
|
59
|
-
|
|
61
|
+
me,
|
|
60
62
|
{
|
|
61
63
|
variant: "outlined",
|
|
62
64
|
onClick: () => n((i) => i + 1),
|
|
@@ -64,25 +66,25 @@ function go({ text: e }) {
|
|
|
64
66
|
children: "Hello I am a button"
|
|
65
67
|
}
|
|
66
68
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ g("p", { children: [
|
|
68
70
|
"This is some text: ",
|
|
69
71
|
/* @__PURE__ */ o("span", { children: e })
|
|
70
72
|
] }),
|
|
71
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ g(je, { children: [
|
|
72
74
|
"This number will incremember when button pressed: ",
|
|
73
75
|
t
|
|
74
76
|
] })
|
|
75
77
|
] });
|
|
76
78
|
}
|
|
77
|
-
const it = 330, rt = 73,
|
|
78
|
-
root: `${
|
|
79
|
-
menuButton: `${
|
|
80
|
-
hide: `${
|
|
81
|
-
content: `${
|
|
82
|
-
userInfoHolder: `${
|
|
83
|
-
settings: `${
|
|
84
|
-
pieChartIcon: `${
|
|
85
|
-
},
|
|
79
|
+
const it = 330, rt = 73, U = "Navbar", q = {
|
|
80
|
+
root: `${U}-root`,
|
|
81
|
+
menuButton: `${U}-menuButton`,
|
|
82
|
+
hide: `${U}-hide`,
|
|
83
|
+
content: `${U}-content`,
|
|
84
|
+
userInfoHolder: `${U}-userInfoHolder`,
|
|
85
|
+
settings: `${U}-settings`,
|
|
86
|
+
pieChartIcon: `${U}-pieChartIcon`
|
|
87
|
+
}, sn = H(y, {
|
|
86
88
|
name: "NavBar"
|
|
87
89
|
})(({ theme: e }) => ({
|
|
88
90
|
[`&.${q.root}`]: {
|
|
@@ -111,51 +113,51 @@ const it = 330, rt = 73, G = "Navbar", q = {
|
|
|
111
113
|
color: "white",
|
|
112
114
|
backgroundColor: "black"
|
|
113
115
|
// backgroundColor: '#e8e8e8',
|
|
114
|
-
}),
|
|
116
|
+
}), ln = () => a({
|
|
115
117
|
width: it
|
|
116
|
-
}, at()),
|
|
118
|
+
}, at()), cn = () => a({
|
|
117
119
|
width: rt
|
|
118
|
-
}, at()),
|
|
120
|
+
}, at()), dn = H(xe, {
|
|
119
121
|
shouldForwardProp: (e) => e !== "open"
|
|
120
|
-
})(({ theme: e, open: t }) =>
|
|
122
|
+
})(({ theme: e, open: t }) => a(a({
|
|
121
123
|
width: t ? it : rt,
|
|
122
124
|
flexShrink: 0,
|
|
123
125
|
whiteSpace: "nowrap",
|
|
124
126
|
boxSizing: "border-box",
|
|
125
127
|
zIndex: e.zIndex.drawer + 100
|
|
126
128
|
}, t && {
|
|
127
|
-
"& .MuiDrawer-paper":
|
|
129
|
+
"& .MuiDrawer-paper": ln()
|
|
128
130
|
}), !t && {
|
|
129
|
-
"& .MuiDrawer-paper":
|
|
131
|
+
"& .MuiDrawer-paper": cn()
|
|
130
132
|
}));
|
|
131
|
-
class Ae extends
|
|
133
|
+
class Ae extends Qt {
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
const st = Xe(null),
|
|
135
|
-
overrideState: e =
|
|
136
|
-
overrideActions: t =
|
|
135
|
+
Ee(Ae, "errorName", "ContextError");
|
|
136
|
+
const st = Xe(null), un = {}, pn = {}, gn = ({
|
|
137
|
+
overrideState: e = un,
|
|
138
|
+
overrideActions: t = pn,
|
|
137
139
|
children: n
|
|
138
140
|
}) => {
|
|
139
|
-
const [{ open: i },
|
|
140
|
-
|
|
141
|
+
const [{ open: i }, r] = T({ open: !0 }), s = ne((c) => {
|
|
142
|
+
r({ open: c });
|
|
141
143
|
}, []), l = ne(() => {
|
|
142
|
-
|
|
143
|
-
}, []),
|
|
144
|
+
r((c) => A(a({}, c), { open: !c.open }));
|
|
145
|
+
}, []), u = a(a({
|
|
144
146
|
open: i,
|
|
145
147
|
setOpen: s,
|
|
146
148
|
toggleOpen: l
|
|
147
149
|
}, e), t);
|
|
148
|
-
return /* @__PURE__ */ o(st.Provider, { value:
|
|
149
|
-
},
|
|
150
|
+
return /* @__PURE__ */ o(st.Provider, { value: u, children: n });
|
|
151
|
+
}, hn = () => {
|
|
150
152
|
const e = Qe(st);
|
|
151
153
|
if (e === null)
|
|
152
154
|
throw new Ae("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
153
155
|
return e;
|
|
154
|
-
},
|
|
156
|
+
}, fn = (e = {}) => a({
|
|
155
157
|
open: !0
|
|
156
|
-
}, e),
|
|
157
|
-
(e =
|
|
158
|
-
), Le = 7,
|
|
158
|
+
}, e), wo = K(
|
|
159
|
+
(e = fn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(gn, { overrideState: e, overrideActions: t, children: n })
|
|
160
|
+
), Le = 7, bo = H(Ye)(({ theme: e }) => ({
|
|
159
161
|
backgroundColor: "black",
|
|
160
162
|
color: "white",
|
|
161
163
|
"& .MuiListItem-root": {
|
|
@@ -193,7 +195,7 @@ const st = Xe(null), ln = {}, cn = {}, dn = ({
|
|
|
193
195
|
// '&.Mui-selected.Mui-focusVisible:hover': {
|
|
194
196
|
// },
|
|
195
197
|
}
|
|
196
|
-
})), Me = 7,
|
|
198
|
+
})), Me = 7, So = H(Ye)(({ theme: e }) => ({
|
|
197
199
|
backgroundColor: "#e8e8e8",
|
|
198
200
|
color: "inherit",
|
|
199
201
|
"& .MuiListItem-root": {
|
|
@@ -232,15 +234,15 @@ const st = Xe(null), ln = {}, cn = {}, dn = ({
|
|
|
232
234
|
// },
|
|
233
235
|
}
|
|
234
236
|
}));
|
|
235
|
-
function
|
|
237
|
+
function Ao({
|
|
236
238
|
"data-testid": e,
|
|
237
239
|
children: t
|
|
238
240
|
}) {
|
|
239
|
-
const { open: n } =
|
|
240
|
-
return /* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */ o(
|
|
241
|
+
const { open: n } = hn();
|
|
242
|
+
return /* @__PURE__ */ g(sn, { className: q.root, "data-testid": e, children: [
|
|
243
|
+
/* @__PURE__ */ o(Xt, {}),
|
|
242
244
|
/* @__PURE__ */ o(
|
|
243
|
-
|
|
245
|
+
dn,
|
|
244
246
|
{
|
|
245
247
|
variant: "permanent",
|
|
246
248
|
anchor: "left",
|
|
@@ -251,183 +253,184 @@ function vo({
|
|
|
251
253
|
)
|
|
252
254
|
] });
|
|
253
255
|
}
|
|
254
|
-
const
|
|
256
|
+
const lt = ({
|
|
255
257
|
isOpen: e,
|
|
256
258
|
dialogTitle: t,
|
|
257
259
|
children: n,
|
|
258
260
|
maxWidth: i,
|
|
259
|
-
primaryButton:
|
|
261
|
+
primaryButton: r,
|
|
260
262
|
secondaryButton: s,
|
|
261
263
|
onClose: l,
|
|
262
|
-
sx:
|
|
263
|
-
"data-testid": c
|
|
264
|
+
sx: u,
|
|
265
|
+
"data-testid": c,
|
|
266
|
+
disableCloseOnBackdropOrEscape: d = !1
|
|
264
267
|
}) => {
|
|
265
|
-
var w,
|
|
266
|
-
const [
|
|
267
|
-
return /* @__PURE__ */
|
|
268
|
-
|
|
268
|
+
var w, h;
|
|
269
|
+
const [C, v] = T(!1);
|
|
270
|
+
return /* @__PURE__ */ g(
|
|
271
|
+
Et,
|
|
269
272
|
{
|
|
270
273
|
open: e,
|
|
271
|
-
onClose: () =>
|
|
272
|
-
d || (s != null && s.onClick ? yield s.onClick() : l());
|
|
274
|
+
onClose: (S, D) => B(void 0, null, function* () {
|
|
275
|
+
d && (D === "backdropClick" || D === "escapeKeyDown") || C || (s != null && s.onClick ? yield s.onClick() : l());
|
|
273
276
|
}),
|
|
274
277
|
fullWidth: !0,
|
|
275
278
|
maxWidth: i != null ? i : "xs",
|
|
276
279
|
"data-testid": c,
|
|
277
|
-
sx:
|
|
280
|
+
sx: u,
|
|
278
281
|
children: [
|
|
279
|
-
/* @__PURE__ */ o(
|
|
282
|
+
/* @__PURE__ */ o(Bt, { children: t }),
|
|
280
283
|
/* @__PURE__ */ o(Ft, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
281
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ g(Nt, { children: [
|
|
282
285
|
/* @__PURE__ */ o(
|
|
283
|
-
|
|
286
|
+
me,
|
|
284
287
|
{
|
|
285
288
|
onClick: (w = s == null ? void 0 : s.onClick) != null ? w : l,
|
|
286
289
|
"data-testid": s == null ? void 0 : s.testId,
|
|
287
|
-
disabled: (s == null ? void 0 : s.disabled) ||
|
|
290
|
+
disabled: (s == null ? void 0 : s.disabled) || C,
|
|
288
291
|
color: s == null ? void 0 : s.buttonColor,
|
|
289
|
-
children: (
|
|
292
|
+
children: (h = s == null ? void 0 : s.text) != null ? h : "Cancel"
|
|
290
293
|
}
|
|
291
294
|
),
|
|
292
|
-
|
|
293
|
-
|
|
295
|
+
r && /* @__PURE__ */ o(
|
|
296
|
+
me,
|
|
294
297
|
{
|
|
295
|
-
onClick: () =>
|
|
296
|
-
var
|
|
297
|
-
|
|
298
|
+
onClick: () => B(void 0, null, function* () {
|
|
299
|
+
var S;
|
|
300
|
+
v(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), v(!1);
|
|
298
301
|
}),
|
|
299
|
-
"data-testid":
|
|
300
|
-
disabled:
|
|
301
|
-
color:
|
|
302
|
-
children:
|
|
302
|
+
"data-testid": r.testId,
|
|
303
|
+
disabled: r.disabled || C,
|
|
304
|
+
color: r == null ? void 0 : r.buttonColor,
|
|
305
|
+
children: r.text
|
|
303
306
|
}
|
|
304
307
|
)
|
|
305
308
|
] })
|
|
306
309
|
]
|
|
307
310
|
}
|
|
308
311
|
);
|
|
309
|
-
},
|
|
312
|
+
}, ct = ({
|
|
310
313
|
minLength: e,
|
|
311
314
|
preLoadedOptions: t,
|
|
312
315
|
lookup: n,
|
|
313
316
|
label: i,
|
|
314
|
-
inputValue:
|
|
315
|
-
}) =>
|
|
316
|
-
queryFn: () => e &&
|
|
317
|
-
(s) => s.label.toLowerCase().includes(
|
|
318
|
-
) : n(
|
|
319
|
-
queryKey: ["autocomplete", i,
|
|
317
|
+
inputValue: r
|
|
318
|
+
}) => en({
|
|
319
|
+
queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
|
|
320
|
+
(s) => s.label.toLowerCase().includes(r.toLowerCase())
|
|
321
|
+
) : n(r),
|
|
322
|
+
queryKey: ["autocomplete", i, r]
|
|
320
323
|
});
|
|
321
|
-
function
|
|
322
|
-
lookup: e = () =>
|
|
324
|
+
function Do({
|
|
325
|
+
lookup: e = () => B(this, null, function* () {
|
|
323
326
|
}),
|
|
324
327
|
enableHighlighting: t = !0,
|
|
325
328
|
onChange: n,
|
|
326
329
|
minLength: i = 0,
|
|
327
|
-
label:
|
|
330
|
+
label: r,
|
|
328
331
|
value: s,
|
|
329
332
|
"data-testid": l,
|
|
330
|
-
sx:
|
|
333
|
+
sx: u,
|
|
331
334
|
textFieldColor: c,
|
|
332
335
|
textFieldVariant: d = "filled",
|
|
333
|
-
loadingText:
|
|
334
|
-
noOptionsText:
|
|
335
|
-
popupIcon:
|
|
336
|
-
error:
|
|
337
|
-
helperText:
|
|
338
|
-
preLoadedOptions:
|
|
336
|
+
loadingText: C = "Loading...",
|
|
337
|
+
noOptionsText: v = "No options",
|
|
338
|
+
popupIcon: w = /* @__PURE__ */ o(Kt, {}),
|
|
339
|
+
error: h = !1,
|
|
340
|
+
helperText: S = "",
|
|
341
|
+
preLoadedOptions: D = void 0,
|
|
339
342
|
disablePortal: O = !1
|
|
340
343
|
}) {
|
|
341
|
-
const [
|
|
342
|
-
const
|
|
343
|
-
n(
|
|
344
|
-
}, { data: N, isLoading:
|
|
345
|
-
inputValue:
|
|
346
|
-
label:
|
|
344
|
+
const [f, k] = T(""), W = (p, m) => {
|
|
345
|
+
const E = s.filter((P) => P.id !== m);
|
|
346
|
+
n(E, "delete", p);
|
|
347
|
+
}, { data: N, isLoading: M } = ct({
|
|
348
|
+
inputValue: f,
|
|
349
|
+
label: r,
|
|
347
350
|
lookup: e,
|
|
348
351
|
minLength: i,
|
|
349
|
-
preLoadedOptions:
|
|
350
|
-
}),
|
|
351
|
-
return /* @__PURE__ */
|
|
352
|
+
preLoadedOptions: D
|
|
353
|
+
}), I = f.length >= i;
|
|
354
|
+
return /* @__PURE__ */ g("div", { "data-testid": l, children: [
|
|
352
355
|
/* @__PURE__ */ o(
|
|
353
356
|
ve,
|
|
354
357
|
{
|
|
355
|
-
sx:
|
|
358
|
+
sx: u,
|
|
356
359
|
"data-testid": l ? `${l}:Autocomplete` : void 0,
|
|
357
360
|
disablePortal: O,
|
|
358
361
|
multiple: !0,
|
|
359
|
-
getOptionLabel: (
|
|
360
|
-
loading:
|
|
362
|
+
getOptionLabel: (p) => typeof p == "string" ? p : p.label,
|
|
363
|
+
loading: I ? M : !1,
|
|
361
364
|
options: [...s, ...N != null ? N : []],
|
|
362
365
|
filterSelectedOptions: !0,
|
|
363
366
|
includeInputInList: !0,
|
|
364
367
|
value: s,
|
|
365
|
-
onChange: (
|
|
366
|
-
n(
|
|
368
|
+
onChange: (p, m, E) => {
|
|
369
|
+
n(m, E, p);
|
|
367
370
|
},
|
|
368
|
-
onInputChange: (
|
|
369
|
-
noOptionsText:
|
|
370
|
-
loadingText:
|
|
371
|
-
popupIcon:
|
|
372
|
-
renderInput: (
|
|
373
|
-
|
|
374
|
-
A(
|
|
375
|
-
label:
|
|
371
|
+
onInputChange: (p, m) => k(m),
|
|
372
|
+
noOptionsText: I ? v : "Start typing to search",
|
|
373
|
+
loadingText: C,
|
|
374
|
+
popupIcon: w,
|
|
375
|
+
renderInput: (p) => /* @__PURE__ */ o(
|
|
376
|
+
we,
|
|
377
|
+
A(a({}, p), {
|
|
378
|
+
label: r,
|
|
376
379
|
fullWidth: !0,
|
|
377
380
|
variant: d,
|
|
378
|
-
error:
|
|
379
|
-
helperText:
|
|
380
|
-
InputProps: A(
|
|
381
|
-
endAdornment: /* @__PURE__ */
|
|
382
|
-
|
|
383
|
-
|
|
381
|
+
error: h,
|
|
382
|
+
helperText: S,
|
|
383
|
+
InputProps: A(a({}, p.InputProps), {
|
|
384
|
+
endAdornment: /* @__PURE__ */ g(R, { children: [
|
|
385
|
+
M ? /* @__PURE__ */ o(be, { color: "inherit", size: 20 }) : null,
|
|
386
|
+
p.InputProps.endAdornment
|
|
384
387
|
] })
|
|
385
388
|
}),
|
|
386
389
|
"data-testid": l ? `${l}:Autocomplete:TextField` : void 0,
|
|
387
|
-
onKeyDown: (
|
|
388
|
-
(
|
|
390
|
+
onKeyDown: (m) => {
|
|
391
|
+
(m.key === "Backspace" || m.key === "Delete") && m.stopPropagation();
|
|
389
392
|
},
|
|
390
393
|
color: c
|
|
391
394
|
})
|
|
392
395
|
),
|
|
393
396
|
renderTags: () => null,
|
|
394
|
-
isOptionEqualToValue: (
|
|
395
|
-
renderOption: (
|
|
397
|
+
isOptionEqualToValue: (p, m) => p.id === m.id,
|
|
398
|
+
renderOption: (p, m, E) => {
|
|
396
399
|
if (t) {
|
|
397
|
-
const P =
|
|
400
|
+
const P = Yt(m.label, E.inputValue, {
|
|
398
401
|
insideWords: !0,
|
|
399
402
|
findAllOccurrences: !0
|
|
400
|
-
}),
|
|
401
|
-
return /* @__PURE__ */
|
|
403
|
+
}), b = Zt(m.label, P);
|
|
404
|
+
return /* @__PURE__ */ he(
|
|
402
405
|
"li",
|
|
403
|
-
A(
|
|
404
|
-
key:
|
|
405
|
-
"data-testid": l ? `${l}:Autocomplete:option(${
|
|
406
|
+
A(a({}, p), {
|
|
407
|
+
key: m.id,
|
|
408
|
+
"data-testid": l ? `${l}:Autocomplete:option(${m.id.toString()})` : void 0
|
|
406
409
|
}),
|
|
407
|
-
/* @__PURE__ */ o("div", { children:
|
|
410
|
+
/* @__PURE__ */ o("div", { children: b.map((x, _) => /* @__PURE__ */ o(
|
|
408
411
|
"span",
|
|
409
412
|
{
|
|
410
413
|
style: {
|
|
411
|
-
fontWeight:
|
|
414
|
+
fontWeight: x.highlight ? 700 : 400
|
|
412
415
|
},
|
|
413
|
-
children:
|
|
416
|
+
children: x.text
|
|
414
417
|
},
|
|
415
|
-
|
|
418
|
+
_
|
|
416
419
|
)) })
|
|
417
420
|
);
|
|
418
421
|
} else
|
|
419
|
-
return /* @__PURE__ */
|
|
422
|
+
return /* @__PURE__ */ he(
|
|
420
423
|
"li",
|
|
421
|
-
A(
|
|
422
|
-
key:
|
|
423
|
-
"data-testid": l ? `${l}:option(${
|
|
424
|
+
A(a({}, p), {
|
|
425
|
+
key: m.id,
|
|
426
|
+
"data-testid": l ? `${l}:option(${m.id.toString()})` : void 0
|
|
424
427
|
}),
|
|
425
|
-
|
|
428
|
+
m.label
|
|
426
429
|
);
|
|
427
430
|
}
|
|
428
431
|
}
|
|
429
432
|
),
|
|
430
|
-
s.length > 0 && /* @__PURE__ */ o(
|
|
433
|
+
s.length > 0 && /* @__PURE__ */ o(y, { children: s.map((p) => /* @__PURE__ */ o(
|
|
431
434
|
Pt,
|
|
432
435
|
{
|
|
433
436
|
sx: {
|
|
@@ -436,9 +439,9 @@ function xo({
|
|
|
436
439
|
height: "auto"
|
|
437
440
|
},
|
|
438
441
|
label: /* @__PURE__ */ o(
|
|
439
|
-
|
|
442
|
+
Lt,
|
|
440
443
|
{
|
|
441
|
-
title:
|
|
444
|
+
title: p.tooltipContent || "",
|
|
442
445
|
placement: "bottom-start",
|
|
443
446
|
PopperProps: {
|
|
444
447
|
modifiers: [
|
|
@@ -450,109 +453,163 @@ function xo({
|
|
|
450
453
|
}
|
|
451
454
|
]
|
|
452
455
|
},
|
|
453
|
-
children: /* @__PURE__ */ o(F, { style: { whiteSpace: "normal" }, children:
|
|
456
|
+
children: /* @__PURE__ */ o(F, { style: { whiteSpace: "normal" }, children: p.chipLabel ? p.chipLabel : p.label })
|
|
454
457
|
}
|
|
455
458
|
),
|
|
456
|
-
"data-testid": l ? `${l}:Chip(${
|
|
457
|
-
onDelete: (
|
|
459
|
+
"data-testid": l ? `${l}:Chip(${p.id.toString()})` : void 0,
|
|
460
|
+
onDelete: (m) => W(m, p.id),
|
|
458
461
|
deleteIcon: /* @__PURE__ */ o(
|
|
459
|
-
|
|
462
|
+
jt,
|
|
460
463
|
{
|
|
461
|
-
"data-testid": l ? `${l}:Chip(${
|
|
464
|
+
"data-testid": l ? `${l}:Chip(${p.id.toString()}):deleteIcon` : void 0
|
|
462
465
|
}
|
|
463
466
|
)
|
|
464
467
|
},
|
|
465
|
-
|
|
468
|
+
p.id
|
|
466
469
|
)) })
|
|
467
470
|
] });
|
|
468
471
|
}
|
|
469
|
-
const
|
|
470
|
-
lookup: e = () =>
|
|
472
|
+
const ko = ({
|
|
473
|
+
lookup: e = () => B(void 0, null, function* () {
|
|
471
474
|
}),
|
|
472
475
|
onChange: t,
|
|
473
476
|
label: n,
|
|
474
477
|
value: i,
|
|
475
|
-
sx:
|
|
478
|
+
sx: r,
|
|
476
479
|
textFieldColor: s,
|
|
477
480
|
textFieldVariant: l = "filled",
|
|
478
|
-
"data-testid":
|
|
481
|
+
"data-testid": u,
|
|
479
482
|
noOptionsText: c = "No options",
|
|
480
483
|
minLength: d = 3,
|
|
481
|
-
disablePortal:
|
|
482
|
-
preLoadedOptions:
|
|
484
|
+
disablePortal: C = !1,
|
|
485
|
+
preLoadedOptions: v
|
|
483
486
|
}) => {
|
|
484
|
-
const [
|
|
485
|
-
inputValue:
|
|
487
|
+
const [w, h] = T(""), { data: S, isLoading: D } = ct({
|
|
488
|
+
inputValue: w,
|
|
486
489
|
label: n,
|
|
487
490
|
lookup: e,
|
|
488
491
|
minLength: d != null ? d : 0,
|
|
489
|
-
preLoadedOptions:
|
|
490
|
-
}), O =
|
|
491
|
-
return /* @__PURE__ */ o("div", { "data-testid":
|
|
492
|
+
preLoadedOptions: v
|
|
493
|
+
}), O = w.length >= d;
|
|
494
|
+
return /* @__PURE__ */ o("div", { "data-testid": u, children: /* @__PURE__ */ o(Mt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
|
|
492
495
|
ve,
|
|
493
496
|
{
|
|
494
|
-
sx:
|
|
495
|
-
"data-testid":
|
|
496
|
-
loading: O ?
|
|
497
|
-
options:
|
|
498
|
-
onChange: (
|
|
499
|
-
t(
|
|
497
|
+
sx: r,
|
|
498
|
+
"data-testid": u ? `${u}:Autocomplete` : void 0,
|
|
499
|
+
loading: O ? D : !1,
|
|
500
|
+
options: S != null ? S : [],
|
|
501
|
+
onChange: (f, k) => {
|
|
502
|
+
t(f, k);
|
|
500
503
|
},
|
|
501
|
-
disablePortal:
|
|
502
|
-
filterOptions: (
|
|
504
|
+
disablePortal: C,
|
|
505
|
+
filterOptions: (f) => f,
|
|
503
506
|
value: i,
|
|
504
507
|
noOptionsText: O ? c : "Start typing to search",
|
|
505
|
-
getOptionLabel: (
|
|
506
|
-
renderInput: (
|
|
507
|
-
|
|
508
|
-
A(
|
|
509
|
-
"data-testid":
|
|
510
|
-
},
|
|
508
|
+
getOptionLabel: (f) => f.label,
|
|
509
|
+
renderInput: (f) => /* @__PURE__ */ o(
|
|
510
|
+
we,
|
|
511
|
+
A(a({
|
|
512
|
+
"data-testid": u ? `${u}:Autocomplete:TextField` : void 0
|
|
513
|
+
}, f), {
|
|
511
514
|
variant: l,
|
|
512
515
|
label: n,
|
|
513
516
|
color: s
|
|
514
517
|
})
|
|
515
518
|
),
|
|
516
|
-
isOptionEqualToValue: (
|
|
517
|
-
onInputChange: (
|
|
518
|
-
|
|
519
|
+
isOptionEqualToValue: (f, k) => f.id === k.id,
|
|
520
|
+
onInputChange: (f, k) => {
|
|
521
|
+
h(k);
|
|
519
522
|
},
|
|
520
|
-
renderOption: (
|
|
523
|
+
renderOption: (f, k) => /* @__PURE__ */ he(
|
|
521
524
|
"li",
|
|
522
|
-
A(
|
|
523
|
-
key:
|
|
524
|
-
"data-testid":
|
|
525
|
+
A(a({}, f), {
|
|
526
|
+
key: k.id,
|
|
527
|
+
"data-testid": u ? `${u}:Autocomplete:option(${k.id.toString()})` : void 0
|
|
525
528
|
}),
|
|
526
|
-
|
|
529
|
+
k.label
|
|
527
530
|
)
|
|
528
531
|
}
|
|
529
532
|
) }) });
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
533
|
+
}, mn = (e) => {
|
|
534
|
+
if (!e)
|
|
535
|
+
return -1;
|
|
536
|
+
try {
|
|
537
|
+
const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
538
|
+
rn.from(n, "base64").toString("utf8").split("").map(function(s) {
|
|
539
|
+
return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
|
|
540
|
+
}).join("")
|
|
541
|
+
), r = JSON.parse(i);
|
|
542
|
+
return r != null && r.exp ? r.exp : -1;
|
|
543
|
+
} catch (t) {
|
|
544
|
+
return -1;
|
|
545
|
+
}
|
|
546
|
+
}, yo = ({
|
|
547
|
+
open: e = !1,
|
|
548
|
+
closeHandler: t,
|
|
549
|
+
setAuth0ExpiryTime: n
|
|
550
|
+
}) => {
|
|
551
|
+
const { logout: i, getAccessTokenSilently: r } = on(), [s, l] = T(0), u = () => B(void 0, null, function* () {
|
|
552
|
+
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
553
|
+
}), c = () => B(void 0, null, function* () {
|
|
554
|
+
l(s + 1), t();
|
|
555
|
+
});
|
|
556
|
+
return fe(() => {
|
|
557
|
+
(() => B(void 0, null, function* () {
|
|
558
|
+
if (s > 0) {
|
|
559
|
+
const w = yield r({ cacheMode: "off" }), h = mn(w) * 1e3;
|
|
560
|
+
n(h);
|
|
561
|
+
}
|
|
562
|
+
}))();
|
|
563
|
+
}, [s, r, n]), /* @__PURE__ */ o(
|
|
564
|
+
lt,
|
|
565
|
+
{
|
|
566
|
+
isOpen: e,
|
|
567
|
+
primaryButton: {
|
|
568
|
+
text: "Continue",
|
|
569
|
+
onClick: c,
|
|
570
|
+
disabled: !1,
|
|
571
|
+
testId: "PreferencesDialog",
|
|
572
|
+
buttonColor: "secondary"
|
|
573
|
+
},
|
|
574
|
+
secondaryButton: {
|
|
575
|
+
text: "Log out",
|
|
576
|
+
onClick: u,
|
|
577
|
+
disabled: !1,
|
|
578
|
+
testId: "PreferencesDialog",
|
|
579
|
+
buttonColor: "secondary"
|
|
580
|
+
},
|
|
581
|
+
onClose: t,
|
|
582
|
+
dialogTitle: "Session expiry",
|
|
583
|
+
disableCloseOnBackdropOrEscape: !0,
|
|
584
|
+
children: /* @__PURE__ */ o("p", { style: { marginBottom: 0 }, children: "Your session is about to time out due to inactivity. Do you want to continue?" })
|
|
585
|
+
}
|
|
586
|
+
);
|
|
587
|
+
}, Cn = 24, xn = 64, G = "TopBar", $ = {
|
|
588
|
+
topStripe: `${G}-topStripe`,
|
|
589
|
+
titleBar: `${G}-titleBar`,
|
|
590
|
+
titleSlider: `${G}-titleSlider`,
|
|
591
|
+
titleText: `${G}-titleText`,
|
|
592
|
+
leftPanelButton: `${G}-leftPanelButton`,
|
|
593
|
+
rightPanelButton: `${G}-leftPanelButton`
|
|
594
|
+
}, vn = Se("div", {
|
|
538
595
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
539
|
-
name:
|
|
596
|
+
name: G
|
|
540
597
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
541
|
-
var i,
|
|
598
|
+
var i, r;
|
|
542
599
|
return {
|
|
543
600
|
width: "100%",
|
|
544
|
-
[`& .${
|
|
601
|
+
[`& .${$.topStripe}`]: {
|
|
545
602
|
width: "100%",
|
|
546
|
-
height: `${
|
|
603
|
+
height: `${Cn}px`,
|
|
547
604
|
backgroundColor: e.palette.primary.main
|
|
548
605
|
},
|
|
549
|
-
[`& .${
|
|
606
|
+
[`& .${$.titleBar}`]: {
|
|
550
607
|
backgroundColor: e.palette.primary.light,
|
|
551
|
-
height: `${
|
|
608
|
+
height: `${xn}px`,
|
|
552
609
|
padding: e.spacing(0, 3),
|
|
553
610
|
width: "100%"
|
|
554
611
|
},
|
|
555
|
-
[`& .${
|
|
612
|
+
[`& .${$.titleSlider}`]: a(a({
|
|
556
613
|
height: "100%",
|
|
557
614
|
display: "flex",
|
|
558
615
|
alignItems: "center",
|
|
@@ -561,14 +618,14 @@ const wo = ({
|
|
|
561
618
|
easing: e.transitions.easing.sharp,
|
|
562
619
|
duration: e.transitions.duration.leavingScreen
|
|
563
620
|
}),
|
|
564
|
-
[`& .${
|
|
621
|
+
[`& .${$.leftPanelButton}`]: {
|
|
565
622
|
marginRight: e.spacing(2),
|
|
566
623
|
flexGrow: 0
|
|
567
624
|
},
|
|
568
|
-
[`& .${
|
|
625
|
+
[`& .${$.titleText}`]: {
|
|
569
626
|
flexGrow: 1
|
|
570
627
|
},
|
|
571
|
-
[`& .${
|
|
628
|
+
[`& .${$.rightPanelButton}`]: {
|
|
572
629
|
flexGrow: 0
|
|
573
630
|
}
|
|
574
631
|
}, (t == null ? void 0 : t.open) && {
|
|
@@ -582,23 +639,23 @@ const wo = ({
|
|
|
582
639
|
easing: e.transitions.easing.easeOut,
|
|
583
640
|
duration: e.transitions.duration.enteringScreen
|
|
584
641
|
}),
|
|
585
|
-
marginRight: `${(
|
|
642
|
+
marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
|
|
586
643
|
})
|
|
587
644
|
};
|
|
588
645
|
});
|
|
589
|
-
function
|
|
646
|
+
function wn({
|
|
590
647
|
titleText: e = "",
|
|
591
648
|
leftPanel: t,
|
|
592
649
|
rightPanel: n,
|
|
593
650
|
"data-testid": i
|
|
594
651
|
}) {
|
|
595
|
-
return /* @__PURE__ */
|
|
596
|
-
/* @__PURE__ */ o("div", { className:
|
|
597
|
-
/* @__PURE__ */ o("div", { className:
|
|
598
|
-
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ g(vn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
|
|
653
|
+
/* @__PURE__ */ o("div", { className: $.topStripe }),
|
|
654
|
+
/* @__PURE__ */ o("div", { className: $.titleBar, children: /* @__PURE__ */ g(y, { className: $.titleSlider, children: [
|
|
655
|
+
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ g(
|
|
599
656
|
Q,
|
|
600
657
|
{
|
|
601
|
-
className:
|
|
658
|
+
className: $.leftPanelButton,
|
|
602
659
|
color: "inherit",
|
|
603
660
|
"aria-label": "Open left side panel",
|
|
604
661
|
onClick: t == null ? void 0 : t.onOpen,
|
|
@@ -610,11 +667,11 @@ function Cn({
|
|
|
610
667
|
]
|
|
611
668
|
}
|
|
612
669
|
),
|
|
613
|
-
/* @__PURE__ */ o(F, { className:
|
|
614
|
-
n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */
|
|
670
|
+
/* @__PURE__ */ o(F, { className: $.titleText, variant: "h6", noWrap: !0, children: e }),
|
|
671
|
+
n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ g(
|
|
615
672
|
Q,
|
|
616
673
|
{
|
|
617
|
-
className:
|
|
674
|
+
className: $.rightPanelButton,
|
|
618
675
|
color: "inherit",
|
|
619
676
|
"aria-label": "Open right side panel",
|
|
620
677
|
onClick: n == null ? void 0 : n.onOpen,
|
|
@@ -629,7 +686,7 @@ function Cn({
|
|
|
629
686
|
] }) })
|
|
630
687
|
] });
|
|
631
688
|
}
|
|
632
|
-
const
|
|
689
|
+
const dt = 400, bn = Se(xe, {
|
|
633
690
|
shouldForwardProp: (e) => (
|
|
634
691
|
// Note we do want anchor to be forwarded to the Drawer component
|
|
635
692
|
![
|
|
@@ -643,9 +700,9 @@ const ct = 400, vn = be(Ce, {
|
|
|
643
700
|
),
|
|
644
701
|
name: "SidePanelDrawer"
|
|
645
702
|
})(
|
|
646
|
-
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen:
|
|
703
|
+
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: r, navBarWidthClosed: s }) => ({
|
|
647
704
|
width: e,
|
|
648
|
-
"& .MuiDrawer-paper":
|
|
705
|
+
"& .MuiDrawer-paper": a(a({
|
|
649
706
|
position: "absolute",
|
|
650
707
|
width: e,
|
|
651
708
|
boxSizing: "border-box",
|
|
@@ -653,15 +710,15 @@ const ct = 400, vn = be(Ce, {
|
|
|
653
710
|
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)"
|
|
654
711
|
}, t && {
|
|
655
712
|
opacity: "50%"
|
|
656
|
-
}), n === "left" &&
|
|
713
|
+
}), n === "left" && a({
|
|
657
714
|
marginLeft: `${s}px`
|
|
658
715
|
}, i && {
|
|
659
|
-
marginLeft: `${
|
|
716
|
+
marginLeft: `${r}px`
|
|
660
717
|
}))
|
|
661
718
|
})
|
|
662
|
-
),
|
|
719
|
+
), Sn = Se(y, {
|
|
663
720
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
664
|
-
})(({ theme: e, anchor: t }) => A(
|
|
721
|
+
})(({ theme: e, anchor: t }) => A(a({
|
|
665
722
|
display: "flex",
|
|
666
723
|
alignItems: "center",
|
|
667
724
|
padding: e.spacing(2)
|
|
@@ -685,59 +742,59 @@ function _e({
|
|
|
685
742
|
open: n,
|
|
686
743
|
onClose: i = () => {
|
|
687
744
|
},
|
|
688
|
-
titleText:
|
|
689
|
-
width: s =
|
|
745
|
+
titleText: r = "",
|
|
746
|
+
width: s = dt,
|
|
690
747
|
showCloseArrow: l = !0,
|
|
691
|
-
debugOpacity:
|
|
748
|
+
debugOpacity: u = !1,
|
|
692
749
|
headerBoxProps: c = {},
|
|
693
750
|
onOpened: d,
|
|
694
|
-
onClosed:
|
|
695
|
-
"data-testid":
|
|
696
|
-
navBarOpen:
|
|
697
|
-
navBarWidthOpen:
|
|
698
|
-
navBarWidthClosed:
|
|
751
|
+
onClosed: C,
|
|
752
|
+
"data-testid": v,
|
|
753
|
+
navBarOpen: w = !1,
|
|
754
|
+
navBarWidthOpen: h = 0,
|
|
755
|
+
navBarWidthClosed: S = 0
|
|
699
756
|
}) {
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
|
|
757
|
+
return /* @__PURE__ */ g(
|
|
758
|
+
bn,
|
|
702
759
|
{
|
|
703
760
|
SlideProps: {
|
|
704
761
|
onEntered: () => d == null ? void 0 : d(),
|
|
705
|
-
onExited: () =>
|
|
762
|
+
onExited: () => C == null ? void 0 : C()
|
|
706
763
|
},
|
|
707
764
|
variant: "persistent",
|
|
708
765
|
anchor: t,
|
|
709
766
|
open: n,
|
|
710
767
|
width: s,
|
|
711
|
-
debugOpacity:
|
|
712
|
-
"data-testid":
|
|
713
|
-
navBarOpen:
|
|
714
|
-
navBarWidthOpen:
|
|
715
|
-
navBarWidthClosed:
|
|
768
|
+
debugOpacity: u,
|
|
769
|
+
"data-testid": v,
|
|
770
|
+
navBarOpen: w,
|
|
771
|
+
navBarWidthOpen: h,
|
|
772
|
+
navBarWidthClosed: S,
|
|
716
773
|
children: [
|
|
717
|
-
/* @__PURE__ */ o(
|
|
718
|
-
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children:
|
|
719
|
-
l && /* @__PURE__ */
|
|
774
|
+
/* @__PURE__ */ o(Sn, A(a({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ g(R, { children: [
|
|
775
|
+
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r }),
|
|
776
|
+
l && /* @__PURE__ */ g(Q, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
|
|
720
777
|
/* @__PURE__ */ o(et, { "data-testid": "arrowbackicon" }),
|
|
721
778
|
" "
|
|
722
779
|
] })
|
|
723
|
-
] }) : /* @__PURE__ */
|
|
724
|
-
l && /* @__PURE__ */
|
|
780
|
+
] }) : /* @__PURE__ */ g(R, { children: [
|
|
781
|
+
l && /* @__PURE__ */ g(Q, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
|
|
725
782
|
/* @__PURE__ */ o(Ze, {}),
|
|
726
783
|
" "
|
|
727
784
|
] }),
|
|
728
|
-
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children:
|
|
785
|
+
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r })
|
|
729
786
|
] }) })),
|
|
730
787
|
e
|
|
731
788
|
]
|
|
732
789
|
}
|
|
733
790
|
);
|
|
734
791
|
}
|
|
735
|
-
const
|
|
792
|
+
const An = H(y, {
|
|
736
793
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
737
794
|
name: "PanelAwareMargins"
|
|
738
795
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
739
|
-
var i,
|
|
740
|
-
return
|
|
796
|
+
var i, r;
|
|
797
|
+
return a(a({
|
|
741
798
|
transition: e.transitions.create("margin", {
|
|
742
799
|
easing: e.transitions.easing.sharp,
|
|
743
800
|
duration: e.transitions.duration.leavingScreen
|
|
@@ -753,160 +810,160 @@ const wn = H(I, {
|
|
|
753
810
|
easing: e.transitions.easing.easeOut,
|
|
754
811
|
duration: e.transitions.duration.enteringScreen
|
|
755
812
|
}),
|
|
756
|
-
marginRight: `${(
|
|
813
|
+
marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
|
|
757
814
|
});
|
|
758
|
-
}),
|
|
815
|
+
}), Dn = H(Ke, {
|
|
759
816
|
name: "PageContainer"
|
|
760
817
|
})(({ theme: e }) => ({
|
|
761
818
|
// Horizontal padding comes from the Container's gutter
|
|
762
819
|
paddingTop: e.spacing(3),
|
|
763
820
|
paddingBottom: e.spacing(3)
|
|
764
821
|
// TODO: Remove max width
|
|
765
|
-
})),
|
|
822
|
+
})), pe = !1, ge = !1, ee = {
|
|
766
823
|
titleText: "",
|
|
767
824
|
flavour: "push",
|
|
768
|
-
width:
|
|
825
|
+
width: dt,
|
|
769
826
|
arrowButtons: "both",
|
|
770
827
|
startOpen: !1,
|
|
771
828
|
open: void 0,
|
|
772
829
|
onChangeOpen: void 0,
|
|
773
|
-
content: /* @__PURE__ */ o(
|
|
830
|
+
content: /* @__PURE__ */ o(R, {}),
|
|
774
831
|
onOpened: void 0,
|
|
775
832
|
onClosed: void 0,
|
|
776
833
|
dataTestId: void 0
|
|
777
834
|
};
|
|
778
|
-
function
|
|
835
|
+
function Oo({
|
|
779
836
|
children: e,
|
|
780
837
|
titleText: t = "",
|
|
781
838
|
leftPanel: n,
|
|
782
839
|
rightPanel: i,
|
|
783
|
-
sidePanelsAreMutuallyExclusive:
|
|
840
|
+
sidePanelsAreMutuallyExclusive: r = !0,
|
|
784
841
|
debugOpacity: s = !1,
|
|
785
842
|
pageContainerProps: l,
|
|
786
|
-
pageContentDataTestId:
|
|
843
|
+
pageContentDataTestId: u,
|
|
787
844
|
topBarDataTestId: c,
|
|
788
845
|
navBarOpen: d,
|
|
789
|
-
navBarWidthOpen:
|
|
790
|
-
navBarWidthClosed:
|
|
846
|
+
navBarWidthOpen: C,
|
|
847
|
+
navBarWidthClosed: v
|
|
791
848
|
}) {
|
|
792
|
-
const [
|
|
793
|
-
titleText:
|
|
794
|
-
content:
|
|
795
|
-
flavour:
|
|
796
|
-
open:
|
|
849
|
+
const [w, h] = T(pe), [S, D] = T(ge), [O, f] = T(pe), [k, W] = T(ge), N = n !== void 0, M = i !== void 0, {
|
|
850
|
+
titleText: I,
|
|
851
|
+
content: p,
|
|
852
|
+
flavour: m,
|
|
853
|
+
open: E,
|
|
797
854
|
onChangeOpen: P,
|
|
798
|
-
width:
|
|
799
|
-
arrowButtons:
|
|
800
|
-
startOpen:
|
|
801
|
-
onOpened:
|
|
802
|
-
onClosed:
|
|
803
|
-
dataTestId:
|
|
804
|
-
} = n ?
|
|
855
|
+
width: b,
|
|
856
|
+
arrowButtons: x,
|
|
857
|
+
startOpen: _,
|
|
858
|
+
onOpened: wt,
|
|
859
|
+
onClosed: bt,
|
|
860
|
+
dataTestId: St
|
|
861
|
+
} = n ? a(a({}, ee), n) : a({}, ee), {
|
|
805
862
|
titleText: At,
|
|
806
|
-
content:
|
|
807
|
-
flavour:
|
|
863
|
+
content: Dt,
|
|
864
|
+
flavour: De,
|
|
808
865
|
open: re,
|
|
809
|
-
onChangeOpen:
|
|
866
|
+
onChangeOpen: ke,
|
|
810
867
|
width: ae,
|
|
811
868
|
arrowButtons: J,
|
|
812
869
|
startOpen: Y,
|
|
813
|
-
onOpened:
|
|
814
|
-
onClosed:
|
|
815
|
-
dataTestId:
|
|
816
|
-
} = i ?
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
}, [
|
|
820
|
-
Y !==
|
|
870
|
+
onOpened: kt,
|
|
871
|
+
onClosed: yt,
|
|
872
|
+
dataTestId: Ot
|
|
873
|
+
} = i ? a(a({}, ee), i) : a({}, ee);
|
|
874
|
+
fe(() => {
|
|
875
|
+
_ !== pe && (h(_), f(_));
|
|
876
|
+
}, [_]), fe(() => {
|
|
877
|
+
Y !== ge && (D(Y), W(Y));
|
|
821
878
|
}, [Y]);
|
|
822
|
-
const se =
|
|
823
|
-
|
|
824
|
-
},
|
|
825
|
-
re === void 0 && (
|
|
879
|
+
const se = E === void 0 ? w : E, le = re === void 0 ? S : re, ye = (z) => {
|
|
880
|
+
E === void 0 && (h(z), r && M && (z ? (D(!1), W(S)) : D(k))), P && P(z);
|
|
881
|
+
}, Oe = (z) => {
|
|
882
|
+
re === void 0 && (D(z), r && N && (z ? (h(!1), f(w)) : h(O))), ke && ke(z);
|
|
826
883
|
};
|
|
827
|
-
return /* @__PURE__ */
|
|
884
|
+
return /* @__PURE__ */ g(y, { children: [
|
|
828
885
|
N && /* @__PURE__ */ o(
|
|
829
886
|
_e,
|
|
830
887
|
{
|
|
831
|
-
"data-testid":
|
|
888
|
+
"data-testid": St,
|
|
832
889
|
anchor: "left",
|
|
833
890
|
open: se,
|
|
834
|
-
onClose: () =>
|
|
835
|
-
width:
|
|
836
|
-
titleText:
|
|
891
|
+
onClose: () => ye(!1),
|
|
892
|
+
width: b,
|
|
893
|
+
titleText: I,
|
|
837
894
|
debugOpacity: s,
|
|
838
|
-
showCloseArrow:
|
|
839
|
-
onOpened:
|
|
840
|
-
onClosed:
|
|
895
|
+
showCloseArrow: x === "both" || x === "close",
|
|
896
|
+
onOpened: wt,
|
|
897
|
+
onClosed: bt,
|
|
841
898
|
navBarOpen: d,
|
|
842
|
-
navBarWidthOpen:
|
|
843
|
-
navBarWidthClosed:
|
|
844
|
-
children:
|
|
899
|
+
navBarWidthOpen: C,
|
|
900
|
+
navBarWidthClosed: v,
|
|
901
|
+
children: p
|
|
845
902
|
}
|
|
846
903
|
),
|
|
847
|
-
|
|
904
|
+
M && /* @__PURE__ */ o(
|
|
848
905
|
_e,
|
|
849
906
|
{
|
|
850
|
-
"data-testid":
|
|
907
|
+
"data-testid": Ot,
|
|
851
908
|
anchor: "right",
|
|
852
909
|
open: le,
|
|
853
|
-
onClose: () =>
|
|
910
|
+
onClose: () => Oe(!1),
|
|
854
911
|
width: ae,
|
|
855
912
|
titleText: At,
|
|
856
913
|
debugOpacity: s,
|
|
857
914
|
showCloseArrow: J === "both" || J === "close",
|
|
858
|
-
onOpened:
|
|
859
|
-
onClosed:
|
|
915
|
+
onOpened: kt,
|
|
916
|
+
onClosed: yt,
|
|
860
917
|
navBarOpen: d,
|
|
861
|
-
navBarWidthOpen:
|
|
862
|
-
navBarWidthClosed:
|
|
863
|
-
children:
|
|
918
|
+
navBarWidthOpen: C,
|
|
919
|
+
navBarWidthClosed: v,
|
|
920
|
+
children: Dt
|
|
864
921
|
}
|
|
865
922
|
),
|
|
866
923
|
/* @__PURE__ */ o(
|
|
867
|
-
|
|
868
|
-
|
|
924
|
+
wn,
|
|
925
|
+
a(a({
|
|
869
926
|
titleText: t,
|
|
870
927
|
"data-testid": c
|
|
871
|
-
}, N &&
|
|
928
|
+
}, N && m === "push" ? {
|
|
872
929
|
leftPanel: {
|
|
873
930
|
open: se,
|
|
874
|
-
width:
|
|
875
|
-
onOpen: () =>
|
|
876
|
-
showOpenArrow:
|
|
931
|
+
width: b,
|
|
932
|
+
onOpen: () => ye(!0),
|
|
933
|
+
showOpenArrow: x === "both" || x === "open"
|
|
877
934
|
}
|
|
878
|
-
} : {}),
|
|
935
|
+
} : {}), M && De === "push" ? {
|
|
879
936
|
rightPanel: {
|
|
880
937
|
open: le,
|
|
881
938
|
width: ae,
|
|
882
|
-
onOpen: () =>
|
|
939
|
+
onOpen: () => Oe(!0),
|
|
883
940
|
showOpenArrow: J === "both" || J === "open"
|
|
884
941
|
}
|
|
885
942
|
} : {})
|
|
886
943
|
),
|
|
887
944
|
/* @__PURE__ */ o(
|
|
888
|
-
|
|
889
|
-
A(
|
|
945
|
+
An,
|
|
946
|
+
A(a(a({}, m === "push" ? {
|
|
890
947
|
leftPanel: {
|
|
891
948
|
open: se,
|
|
892
|
-
width:
|
|
949
|
+
width: b
|
|
893
950
|
}
|
|
894
|
-
} : {}),
|
|
951
|
+
} : {}), De === "push" ? {
|
|
895
952
|
rightPanel: {
|
|
896
953
|
open: le,
|
|
897
954
|
width: ae
|
|
898
955
|
}
|
|
899
956
|
} : {}), {
|
|
900
|
-
children: /* @__PURE__ */ o(
|
|
957
|
+
children: /* @__PURE__ */ o(Dn, A(a({ "data-testid": u }, l), { children: e }))
|
|
901
958
|
})
|
|
902
959
|
)
|
|
903
960
|
] });
|
|
904
961
|
}
|
|
905
|
-
const
|
|
962
|
+
const ut = () => {
|
|
906
963
|
const e = ie();
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
function
|
|
964
|
+
return _t(e.breakpoints.down("sm"));
|
|
965
|
+
}, kn = 64, yn = 64, On = 256, j = L(!0), pt = L(On), gt = L(yn), Ce = L(""), In = L(void 0), ht = L(kn), ft = L(void 0);
|
|
966
|
+
function $n({ links: e }) {
|
|
910
967
|
return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
|
|
911
968
|
}
|
|
912
969
|
const te = "Navbar", X = {
|
|
@@ -917,7 +974,7 @@ const te = "Navbar", X = {
|
|
|
917
974
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
918
975
|
// settings: `${PREFIX}-settings`,
|
|
919
976
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
920
|
-
},
|
|
977
|
+
}, Tn = H(y, { name: "NavBar" })(({ theme: e }) => ({
|
|
921
978
|
[`&.${X.root}`]: {
|
|
922
979
|
display: "flex"
|
|
923
980
|
},
|
|
@@ -939,11 +996,11 @@ const te = "Navbar", X = {
|
|
|
939
996
|
})), oe = (e, t, n) => e.transitions.create(t, {
|
|
940
997
|
easing: e.transitions.easing.sharp,
|
|
941
998
|
duration: n === "leaving" ? e.transitions.duration.leavingScreen : e.transitions.duration.enteringScreen
|
|
942
|
-
}),
|
|
999
|
+
}), En = (e) => {
|
|
943
1000
|
const t = ie();
|
|
944
1001
|
return /* @__PURE__ */ o(
|
|
945
|
-
|
|
946
|
-
|
|
1002
|
+
Rt,
|
|
1003
|
+
a({
|
|
947
1004
|
easing: t.transitions.easing.sharp,
|
|
948
1005
|
timeout: {
|
|
949
1006
|
enter: t.transitions.duration.enteringScreen,
|
|
@@ -951,7 +1008,7 @@ const te = "Navbar", X = {
|
|
|
951
1008
|
}
|
|
952
1009
|
}, e)
|
|
953
1010
|
);
|
|
954
|
-
},
|
|
1011
|
+
}, mt = (e) => {
|
|
955
1012
|
var t, n;
|
|
956
1013
|
return {
|
|
957
1014
|
overflowX: "hidden",
|
|
@@ -959,40 +1016,40 @@ const te = "Navbar", X = {
|
|
|
959
1016
|
backgroundColor: (n = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? n : "white"
|
|
960
1017
|
// Provide default so tests don't need to wrap theme provider
|
|
961
1018
|
};
|
|
962
|
-
},
|
|
1019
|
+
}, Re = (e, t) => a({
|
|
963
1020
|
width: t,
|
|
964
1021
|
transition: oe(e, "width", "entering")
|
|
965
|
-
},
|
|
1022
|
+
}, mt(e)), He = (e, t) => a({
|
|
966
1023
|
width: t,
|
|
967
1024
|
transition: oe(e, "width", "leaving")
|
|
968
|
-
},
|
|
1025
|
+
}, mt(e)), Bn = H(xe, {
|
|
969
1026
|
shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
|
|
970
|
-
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen:
|
|
1027
|
+
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => a(a({
|
|
971
1028
|
flexShrink: 0,
|
|
972
1029
|
whiteSpace: "nowrap",
|
|
973
1030
|
boxSizing: "border-box",
|
|
974
1031
|
display: "flex",
|
|
975
1032
|
flexDirection: "column"
|
|
976
|
-
}, t && A(
|
|
1033
|
+
}, t && A(a({}, Re(e, n)), {
|
|
977
1034
|
backgroundColor: "",
|
|
978
|
-
"& .MuiDrawer-paper":
|
|
979
|
-
})), !t && A(
|
|
1035
|
+
"& .MuiDrawer-paper": Re(e, n)
|
|
1036
|
+
})), !t && A(a({}, He(e, r ? n : i)), {
|
|
980
1037
|
backgroundColor: "",
|
|
981
|
-
"& .MuiDrawer-paper":
|
|
1038
|
+
"& .MuiDrawer-paper": He(e, r ? n : i)
|
|
982
1039
|
})));
|
|
983
|
-
function
|
|
1040
|
+
function Fn(e) {
|
|
984
1041
|
let t = 0;
|
|
985
1042
|
for (let n = 0, i = e.length; n < i; n++) {
|
|
986
|
-
const
|
|
987
|
-
t = (t << 5) - t +
|
|
1043
|
+
const r = e.charCodeAt(n);
|
|
1044
|
+
t = (t << 5) - t + r, t |= 0;
|
|
988
1045
|
}
|
|
989
1046
|
return t;
|
|
990
1047
|
}
|
|
991
|
-
const We = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"],
|
|
992
|
-
function
|
|
1048
|
+
const We = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Nn = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
|
|
1049
|
+
function Pn({ user: e, domainCode: t, open: n }) {
|
|
993
1050
|
const i = ie();
|
|
994
|
-
return /* @__PURE__ */
|
|
995
|
-
|
|
1051
|
+
return /* @__PURE__ */ g(
|
|
1052
|
+
y,
|
|
996
1053
|
{
|
|
997
1054
|
sx: {
|
|
998
1055
|
paddingTop: 3,
|
|
@@ -1003,7 +1060,7 @@ function Fn({ user: e, domainCode: t, open: n }) {
|
|
|
1003
1060
|
},
|
|
1004
1061
|
children: [
|
|
1005
1062
|
/* @__PURE__ */ o(
|
|
1006
|
-
|
|
1063
|
+
y,
|
|
1007
1064
|
{
|
|
1008
1065
|
sx: {
|
|
1009
1066
|
width: n ? "5rem" : "2rem",
|
|
@@ -1011,41 +1068,41 @@ function Fn({ user: e, domainCode: t, open: n }) {
|
|
|
1011
1068
|
aspectRatio: 1
|
|
1012
1069
|
},
|
|
1013
1070
|
children: e != null && e.name ? /* @__PURE__ */ o(
|
|
1014
|
-
|
|
1071
|
+
Be,
|
|
1015
1072
|
{
|
|
1016
1073
|
src: e == null ? void 0 : e.picture,
|
|
1017
1074
|
sx: {
|
|
1018
1075
|
width: "100%",
|
|
1019
1076
|
height: "100%",
|
|
1020
|
-
bgcolor: We[Math.abs(
|
|
1077
|
+
bgcolor: We[Math.abs(Fn(e.name)) % We.length]
|
|
1021
1078
|
},
|
|
1022
|
-
children:
|
|
1079
|
+
children: Nn(e.name)
|
|
1023
1080
|
}
|
|
1024
|
-
) : /* @__PURE__ */ o(
|
|
1081
|
+
) : /* @__PURE__ */ o(Be, { sx: { width: "100%", height: "100%" } })
|
|
1025
1082
|
}
|
|
1026
1083
|
),
|
|
1027
|
-
/* @__PURE__ */ o(
|
|
1028
|
-
e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(
|
|
1029
|
-
t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(
|
|
1084
|
+
/* @__PURE__ */ o(En, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Ht, { in: n, children: /* @__PURE__ */ g(y, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
1085
|
+
e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(Fe, { animation: !1, width: "50%" }),
|
|
1086
|
+
t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Fe, { animation: !1, width: "25%" })
|
|
1030
1087
|
] }) }) })
|
|
1031
1088
|
]
|
|
1032
1089
|
}
|
|
1033
1090
|
);
|
|
1034
1091
|
}
|
|
1035
|
-
function
|
|
1092
|
+
function Ln({
|
|
1036
1093
|
open: e,
|
|
1037
1094
|
widthClosed: t,
|
|
1038
1095
|
widthOpen: n,
|
|
1039
1096
|
"data-testid": i,
|
|
1040
|
-
top:
|
|
1097
|
+
top: r,
|
|
1041
1098
|
middle: s,
|
|
1042
1099
|
bottom: l,
|
|
1043
|
-
user:
|
|
1100
|
+
user: u,
|
|
1044
1101
|
domainCode: c
|
|
1045
1102
|
}) {
|
|
1046
|
-
const d =
|
|
1047
|
-
return /* @__PURE__ */ o(
|
|
1048
|
-
|
|
1103
|
+
const d = ut(), C = tt(j);
|
|
1104
|
+
return /* @__PURE__ */ o(Tn, { className: X.root, "data-testid": i, children: /* @__PURE__ */ g(
|
|
1105
|
+
Bn,
|
|
1049
1106
|
{
|
|
1050
1107
|
open: e,
|
|
1051
1108
|
widthOpen: n,
|
|
@@ -1056,32 +1113,32 @@ function Nn({
|
|
|
1056
1113
|
component: "nav"
|
|
1057
1114
|
},
|
|
1058
1115
|
onClose: () => {
|
|
1059
|
-
|
|
1116
|
+
C(!1);
|
|
1060
1117
|
},
|
|
1061
1118
|
isSmallScreen: d,
|
|
1062
1119
|
children: [
|
|
1063
|
-
!d && /* @__PURE__ */ o(
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
/* @__PURE__ */ o(
|
|
1120
|
+
!d && /* @__PURE__ */ o(Wt, {}),
|
|
1121
|
+
r && /* @__PURE__ */ g(y, { flexGrow: "0", children: [
|
|
1122
|
+
r,
|
|
1123
|
+
/* @__PURE__ */ o(Ne, { variant: "middle" })
|
|
1067
1124
|
] }),
|
|
1068
|
-
/* @__PURE__ */ o(
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */ o(
|
|
1071
|
-
/* @__PURE__ */ o(
|
|
1072
|
-
l && /* @__PURE__ */ o(
|
|
1125
|
+
/* @__PURE__ */ o(y, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o($n, { links: s }) : s }),
|
|
1126
|
+
/* @__PURE__ */ g(y, { flexGrow: "0", children: [
|
|
1127
|
+
/* @__PURE__ */ o(Ne, { variant: "middle" }),
|
|
1128
|
+
/* @__PURE__ */ o(Pn, { user: u, domainCode: c, open: e }),
|
|
1129
|
+
l && /* @__PURE__ */ o(R, { children: l })
|
|
1073
1130
|
] })
|
|
1074
1131
|
]
|
|
1075
1132
|
}
|
|
1076
1133
|
) });
|
|
1077
1134
|
}
|
|
1078
|
-
function
|
|
1135
|
+
function Mn({
|
|
1079
1136
|
children: e,
|
|
1080
1137
|
topBarHeight: t,
|
|
1081
1138
|
maxWidth: n = !1
|
|
1082
1139
|
}) {
|
|
1083
1140
|
return /* @__PURE__ */ o(
|
|
1084
|
-
|
|
1141
|
+
y,
|
|
1085
1142
|
{
|
|
1086
1143
|
sx: {
|
|
1087
1144
|
overflow: "auto",
|
|
@@ -1103,17 +1160,17 @@ function Pn({
|
|
|
1103
1160
|
}
|
|
1104
1161
|
);
|
|
1105
1162
|
}
|
|
1106
|
-
const
|
|
1107
|
-
titleText: `${
|
|
1163
|
+
const _n = "TopBar", Rn = {
|
|
1164
|
+
titleText: `${_n}-titleText`
|
|
1108
1165
|
};
|
|
1109
|
-
function
|
|
1166
|
+
function Hn({
|
|
1110
1167
|
titleText: e = "",
|
|
1111
1168
|
height: t,
|
|
1112
1169
|
"data-testid": n,
|
|
1113
1170
|
middle: i
|
|
1114
1171
|
}) {
|
|
1115
|
-
const
|
|
1116
|
-
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */
|
|
1172
|
+
const r = tt(j), s = () => r((c) => !c), l = ie(), u = ut();
|
|
1173
|
+
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ g(
|
|
1117
1174
|
je,
|
|
1118
1175
|
{
|
|
1119
1176
|
square: !0,
|
|
@@ -1128,66 +1185,66 @@ function Mn({
|
|
|
1128
1185
|
gap: 2,
|
|
1129
1186
|
flexShrink: 0,
|
|
1130
1187
|
height: t,
|
|
1131
|
-
zIndex:
|
|
1188
|
+
zIndex: u ? 0 : l.zIndex.drawer + 1
|
|
1132
1189
|
},
|
|
1133
1190
|
children: [
|
|
1134
|
-
/* @__PURE__ */ o(Q, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: s, children: /* @__PURE__ */ o(
|
|
1135
|
-
/* @__PURE__ */ o(F, { className:
|
|
1191
|
+
/* @__PURE__ */ o(Q, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: s, children: /* @__PURE__ */ o(Jt, { fontSize: "medium" }) }),
|
|
1192
|
+
/* @__PURE__ */ o(F, { className: Rn.titleText, variant: "h6", children: e }),
|
|
1136
1193
|
i
|
|
1137
1194
|
]
|
|
1138
1195
|
}
|
|
1139
1196
|
) });
|
|
1140
1197
|
}
|
|
1141
|
-
function
|
|
1198
|
+
function Io({
|
|
1142
1199
|
children: e,
|
|
1143
1200
|
initialTitleText: t,
|
|
1144
1201
|
initialNavBarOpen: n,
|
|
1145
1202
|
pageContainerProps: i,
|
|
1146
|
-
pageContentDataTestId:
|
|
1203
|
+
pageContentDataTestId: r,
|
|
1147
1204
|
topBarDataTestId: s,
|
|
1148
1205
|
navBarDataTestId: l,
|
|
1149
|
-
navBarMiddle:
|
|
1206
|
+
navBarMiddle: u,
|
|
1150
1207
|
navBarBottom: c,
|
|
1151
1208
|
user: d,
|
|
1152
|
-
domainCode:
|
|
1209
|
+
domainCode: C
|
|
1153
1210
|
}) {
|
|
1154
1211
|
ot([
|
|
1155
1212
|
[j, n != null ? n : !0],
|
|
1156
|
-
[
|
|
1213
|
+
[Ce, t != null ? t : ""]
|
|
1157
1214
|
]);
|
|
1158
|
-
const
|
|
1159
|
-
return /* @__PURE__ */
|
|
1160
|
-
/* @__PURE__ */ o(
|
|
1215
|
+
const v = Pe(j), [w] = V(pt), [h] = V(gt), S = Pe(Ce), [D] = V(ht), [O] = V(In), [f] = V(ft);
|
|
1216
|
+
return /* @__PURE__ */ g(y, { children: [
|
|
1217
|
+
/* @__PURE__ */ o(zt, {}),
|
|
1161
1218
|
/* @__PURE__ */ o(
|
|
1162
|
-
|
|
1219
|
+
Hn,
|
|
1163
1220
|
{
|
|
1164
|
-
titleText:
|
|
1221
|
+
titleText: S,
|
|
1165
1222
|
"data-testid": s,
|
|
1166
|
-
height:
|
|
1223
|
+
height: D,
|
|
1167
1224
|
middle: O
|
|
1168
1225
|
}
|
|
1169
1226
|
),
|
|
1170
|
-
/* @__PURE__ */
|
|
1227
|
+
/* @__PURE__ */ g(y, { sx: { display: "flex" }, children: [
|
|
1171
1228
|
/* @__PURE__ */ o(
|
|
1172
|
-
|
|
1229
|
+
Ln,
|
|
1173
1230
|
{
|
|
1174
|
-
open:
|
|
1175
|
-
top:
|
|
1176
|
-
middle:
|
|
1231
|
+
open: v,
|
|
1232
|
+
top: f,
|
|
1233
|
+
middle: u,
|
|
1177
1234
|
bottom: c,
|
|
1178
1235
|
user: d,
|
|
1179
|
-
domainCode:
|
|
1180
|
-
widthOpen:
|
|
1181
|
-
widthClosed:
|
|
1182
|
-
offsetTop:
|
|
1236
|
+
domainCode: C,
|
|
1237
|
+
widthOpen: w,
|
|
1238
|
+
widthClosed: h,
|
|
1239
|
+
offsetTop: D,
|
|
1183
1240
|
"data-testid": l
|
|
1184
1241
|
}
|
|
1185
1242
|
),
|
|
1186
1243
|
/* @__PURE__ */ o(
|
|
1187
|
-
|
|
1188
|
-
A(
|
|
1189
|
-
"data-testid":
|
|
1190
|
-
topBarHeight:
|
|
1244
|
+
Mn,
|
|
1245
|
+
A(a({
|
|
1246
|
+
"data-testid": r,
|
|
1247
|
+
topBarHeight: D
|
|
1191
1248
|
}, i), {
|
|
1192
1249
|
children: e
|
|
1193
1250
|
})
|
|
@@ -1195,13 +1252,13 @@ function Ao({
|
|
|
1195
1252
|
] })
|
|
1196
1253
|
] });
|
|
1197
1254
|
}
|
|
1198
|
-
const
|
|
1255
|
+
const Wn = {
|
|
1199
1256
|
autoHideDuration: 6e3,
|
|
1200
1257
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
1201
1258
|
// The default is false. If we prefer timer to continue when window loses
|
|
1202
1259
|
// focus, change to true
|
|
1203
1260
|
disableWindowBlurListener: !1
|
|
1204
|
-
},
|
|
1261
|
+
}, zn = {
|
|
1205
1262
|
shouldClose: (e, t) => t !== "clickaway"
|
|
1206
1263
|
}, ze = {
|
|
1207
1264
|
message: "",
|
|
@@ -1209,108 +1266,108 @@ const _n = {
|
|
|
1209
1266
|
variant: "standard",
|
|
1210
1267
|
progressIndicator: void 0
|
|
1211
1268
|
// Can use 'circular' or 'linear'
|
|
1212
|
-
},
|
|
1269
|
+
}, Ue = 100, Ge = 2e3, Un = 2e3, Gn = (() => {
|
|
1213
1270
|
let e = 0;
|
|
1214
1271
|
return () => (e += 1, e);
|
|
1215
|
-
})(),
|
|
1272
|
+
})(), Vn = {
|
|
1216
1273
|
borderBottomLeftRadius: "0px",
|
|
1217
1274
|
borderBottomRightRadius: "0px"
|
|
1218
|
-
},
|
|
1219
|
-
function
|
|
1275
|
+
}, qn = {}, Xn = {}, Ct = Xe(null);
|
|
1276
|
+
function Qn(s) {
|
|
1220
1277
|
var l = s, {
|
|
1221
|
-
overrideState: e =
|
|
1222
|
-
overrideActions: t =
|
|
1223
|
-
shouldClose: n =
|
|
1278
|
+
overrideState: e = qn,
|
|
1279
|
+
overrideActions: t = Xn,
|
|
1280
|
+
shouldClose: n = zn.shouldClose,
|
|
1224
1281
|
children: i
|
|
1225
|
-
} = l,
|
|
1282
|
+
} = l, r = Te(l, [
|
|
1226
1283
|
"overrideState",
|
|
1227
1284
|
"overrideActions",
|
|
1228
1285
|
"shouldClose",
|
|
1229
1286
|
"children"
|
|
1230
1287
|
]);
|
|
1231
1288
|
var P;
|
|
1232
|
-
const [{ open:
|
|
1233
|
-
c({ open:
|
|
1234
|
-
}, []),
|
|
1235
|
-
|
|
1236
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
1237
|
-
),
|
|
1238
|
-
const
|
|
1239
|
-
key:
|
|
1240
|
-
}),
|
|
1241
|
-
return d.current.push(
|
|
1242
|
-
}, []),
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1245
|
-
return
|
|
1246
|
-
},
|
|
1247
|
-
n(
|
|
1289
|
+
const [{ open: u }, c] = T({ open: !1 }), d = de([]), C = de(Date.now()), v = de(0), w = ne((b) => {
|
|
1290
|
+
c({ open: b });
|
|
1291
|
+
}, []), h = ne((b = {}) => {
|
|
1292
|
+
v.current += 1, d.current.length >= Ue && Date.now() - C.current >= Ge && (C.current = Date.now(), console.error(
|
|
1293
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Ue}) hit ${v.current} times in last ${Ge}ms)`
|
|
1294
|
+
), v.current = 0);
|
|
1295
|
+
const x = a(A(a({}, ze), {
|
|
1296
|
+
key: Gn()
|
|
1297
|
+
}), b);
|
|
1298
|
+
return d.current.push(x), d.current.length === 1 && c({ open: !0 }), x.key;
|
|
1299
|
+
}, []), S = (b = "", x = {}) => h(a({ message: b, severity: "success" }, x)), D = (b = "", x = {}) => h(a({ message: b, severity: "info" }, x)), O = (b = "", x = {}) => h(a({ message: b, severity: "warning" }, x)), f = (b = "", x = {}) => h(a({ message: b, severity: "error" }, x)), k = (b) => {
|
|
1300
|
+
const x = d.current.findIndex((_) => _.key === b);
|
|
1301
|
+
if (x !== -1)
|
|
1302
|
+
return x === 0 ? (c({ open: !1 }), d.current[0]) : d.current.splice(x, 1);
|
|
1303
|
+
}, W = (b, x) => {
|
|
1304
|
+
n(b, x) && c({ open: !1 });
|
|
1248
1305
|
}, N = () => {
|
|
1249
|
-
},
|
|
1306
|
+
}, M = () => {
|
|
1250
1307
|
d.current.shift(), d.current.length > 0 && c({ open: !0 });
|
|
1251
|
-
},
|
|
1252
|
-
"autoHideDuration" in
|
|
1253
|
-
const
|
|
1254
|
-
open:
|
|
1255
|
-
setOpen:
|
|
1256
|
-
enqueueNotification:
|
|
1257
|
-
enqueueSuccessNotification:
|
|
1258
|
-
enqueueInfoNotification:
|
|
1308
|
+
}, I = (P = d.current[0]) != null ? P : a({}, ze), p = {};
|
|
1309
|
+
"autoHideDuration" in I && (p.autoHideDuration = I.autoHideDuration);
|
|
1310
|
+
const m = a(a({}, Wn), r), E = a(a({
|
|
1311
|
+
open: u,
|
|
1312
|
+
setOpen: w,
|
|
1313
|
+
enqueueNotification: h,
|
|
1314
|
+
enqueueSuccessNotification: S,
|
|
1315
|
+
enqueueInfoNotification: D,
|
|
1259
1316
|
enqueueWarningNotification: O,
|
|
1260
|
-
enqueueErrorNotification:
|
|
1261
|
-
removeNotification:
|
|
1317
|
+
enqueueErrorNotification: f,
|
|
1318
|
+
removeNotification: k
|
|
1262
1319
|
}, e), t);
|
|
1263
|
-
return /* @__PURE__ */
|
|
1320
|
+
return /* @__PURE__ */ g(Ct.Provider, { value: E, children: [
|
|
1264
1321
|
i,
|
|
1265
1322
|
/* @__PURE__ */ o(
|
|
1266
|
-
|
|
1267
|
-
A(
|
|
1268
|
-
open:
|
|
1269
|
-
onClose:
|
|
1323
|
+
Ut,
|
|
1324
|
+
A(a(a({}, m), p), {
|
|
1325
|
+
open: u,
|
|
1326
|
+
onClose: W,
|
|
1270
1327
|
TransitionProps: {
|
|
1271
|
-
onExited:
|
|
1328
|
+
onExited: M,
|
|
1272
1329
|
onExit: N
|
|
1273
1330
|
},
|
|
1274
|
-
sx: { zIndex:
|
|
1275
|
-
children: /* @__PURE__ */
|
|
1331
|
+
sx: { zIndex: Un },
|
|
1332
|
+
children: /* @__PURE__ */ g("div", { children: [
|
|
1276
1333
|
/* @__PURE__ */ o(
|
|
1277
1334
|
Gt,
|
|
1278
1335
|
{
|
|
1279
|
-
onClose: (
|
|
1280
|
-
severity:
|
|
1336
|
+
onClose: (b) => W(b, "closeAlert"),
|
|
1337
|
+
severity: I.severity,
|
|
1281
1338
|
variant: "filled",
|
|
1282
|
-
icon:
|
|
1283
|
-
style:
|
|
1284
|
-
children:
|
|
1339
|
+
icon: I.progressIndicator === "circular" ? /* @__PURE__ */ o(be, { size: "1em" }) : void 0,
|
|
1340
|
+
style: I.progressIndicator === "linear" ? Vn : void 0,
|
|
1341
|
+
children: I.message
|
|
1285
1342
|
}
|
|
1286
1343
|
),
|
|
1287
|
-
|
|
1344
|
+
I.progressIndicator === "linear" && /* @__PURE__ */ o(Vt, { color: "primary" })
|
|
1288
1345
|
] })
|
|
1289
1346
|
})
|
|
1290
1347
|
)
|
|
1291
1348
|
] });
|
|
1292
1349
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const e = Qe(
|
|
1350
|
+
function jn() {
|
|
1351
|
+
const e = Qe(Ct);
|
|
1295
1352
|
if (e === null)
|
|
1296
1353
|
throw new Ae("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
1297
1354
|
return e;
|
|
1298
1355
|
}
|
|
1299
|
-
const
|
|
1300
|
-
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(
|
|
1301
|
-
),
|
|
1356
|
+
const $o = K(
|
|
1357
|
+
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Qn, A(a({}, e), { overrideState: t, overrideActions: n, children: i }))
|
|
1358
|
+
), Kn = an(), To = ({
|
|
1302
1359
|
children: e,
|
|
1303
1360
|
store: t
|
|
1304
|
-
}) => /* @__PURE__ */ o(nt, { store: t != null ? t :
|
|
1361
|
+
}) => /* @__PURE__ */ o(nt, { store: t != null ? t : Kn, children: e }), xt = "domainCode";
|
|
1305
1362
|
var qe;
|
|
1306
|
-
const
|
|
1307
|
-
JSON.parse((qe = localStorage.getItem(
|
|
1308
|
-
), vt =
|
|
1309
|
-
(e) => e(
|
|
1363
|
+
const Ve = L(
|
|
1364
|
+
JSON.parse((qe = localStorage.getItem(xt)) != null ? qe : '{"domainCode": ""}').domainCode
|
|
1365
|
+
), vt = L(
|
|
1366
|
+
(e) => e(Ve),
|
|
1310
1367
|
(e, t, n) => {
|
|
1311
|
-
t(
|
|
1368
|
+
t(Ve, n), localStorage.setItem(xt, JSON.stringify({ domainCode: n }));
|
|
1312
1369
|
}
|
|
1313
|
-
),
|
|
1370
|
+
), Jn = {
|
|
1314
1371
|
act: "ACT",
|
|
1315
1372
|
nsw: "NSW",
|
|
1316
1373
|
nt: "NT",
|
|
@@ -1322,44 +1379,44 @@ const Ue = B(
|
|
|
1322
1379
|
ag: "AG",
|
|
1323
1380
|
fedmps: "Fedmps",
|
|
1324
1381
|
"": ""
|
|
1325
|
-
},
|
|
1382
|
+
}, Yn = (e) => {
|
|
1326
1383
|
var t;
|
|
1327
|
-
return e === null ? "N/A" : (t =
|
|
1328
|
-
},
|
|
1384
|
+
return e === null ? "N/A" : (t = Jn[e]) != null ? t : "";
|
|
1385
|
+
}, Eo = ({
|
|
1329
1386
|
isLoading: e,
|
|
1330
1387
|
isOpen: t,
|
|
1331
1388
|
onClose: n,
|
|
1332
1389
|
domainOptions: i,
|
|
1333
|
-
applicationName:
|
|
1390
|
+
applicationName: r,
|
|
1334
1391
|
handleLogout: s
|
|
1335
1392
|
}) => {
|
|
1336
|
-
const [l,
|
|
1337
|
-
c ? (
|
|
1338
|
-
}),
|
|
1339
|
-
l && !
|
|
1393
|
+
const [l, u] = V(vt), [c, d] = T(l), { enqueueSuccessNotification: C } = jn(), v = i.length === 0, w = !!l && !i.includes(l) && !i.includes(c), h = !l || v || w, S = () => B(void 0, null, function* () {
|
|
1394
|
+
c ? (u(c), C(`Set domain to ${c}`), n()) : u("");
|
|
1395
|
+
}), D = () => B(void 0, null, function* () {
|
|
1396
|
+
l && !v && !w ? (d(l), n()) : h && s();
|
|
1340
1397
|
});
|
|
1341
1398
|
let O;
|
|
1342
|
-
return
|
|
1343
|
-
|
|
1399
|
+
return v ? O = "Unable to retrieve your active organisations. Try logging in again." : w && (O = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ g(
|
|
1400
|
+
lt,
|
|
1344
1401
|
{
|
|
1345
1402
|
isOpen: t,
|
|
1346
1403
|
dialogTitle: "Select an organisation",
|
|
1347
1404
|
primaryButton: {
|
|
1348
1405
|
text: "Confirm",
|
|
1349
|
-
onClick:
|
|
1350
|
-
disabled: !c ||
|
|
1406
|
+
onClick: S,
|
|
1407
|
+
disabled: !c || v || w,
|
|
1351
1408
|
buttonColor: "primary"
|
|
1352
1409
|
},
|
|
1353
1410
|
secondaryButton: {
|
|
1354
|
-
text:
|
|
1355
|
-
onClick:
|
|
1411
|
+
text: h ? "Logout" : "Cancel",
|
|
1412
|
+
onClick: D
|
|
1356
1413
|
},
|
|
1357
|
-
onClose:
|
|
1414
|
+
onClose: h ? () => {
|
|
1358
1415
|
} : n,
|
|
1359
1416
|
children: [
|
|
1360
|
-
/* @__PURE__ */
|
|
1417
|
+
/* @__PURE__ */ g(F, { marginBottom: 2, children: [
|
|
1361
1418
|
"Select the default organisation that you want to use with the ",
|
|
1362
|
-
|
|
1419
|
+
r,
|
|
1363
1420
|
"."
|
|
1364
1421
|
] }),
|
|
1365
1422
|
/* @__PURE__ */ o(
|
|
@@ -1369,29 +1426,29 @@ const Ue = B(
|
|
|
1369
1426
|
multiple: !1,
|
|
1370
1427
|
disableClearable: !1,
|
|
1371
1428
|
value: c !== "" ? c : null,
|
|
1372
|
-
onChange: (
|
|
1373
|
-
getOptionLabel:
|
|
1429
|
+
onChange: (f, k) => d(k != null ? k : ""),
|
|
1430
|
+
getOptionLabel: Yn,
|
|
1374
1431
|
options: [...i],
|
|
1375
|
-
renderInput: (
|
|
1376
|
-
|
|
1377
|
-
A(
|
|
1432
|
+
renderInput: (f) => /* @__PURE__ */ o(
|
|
1433
|
+
we,
|
|
1434
|
+
A(a({}, f), {
|
|
1378
1435
|
variant: "filled",
|
|
1379
1436
|
label: "Select organisation",
|
|
1380
|
-
InputProps: A(
|
|
1381
|
-
endAdornment: /* @__PURE__ */
|
|
1382
|
-
e ? /* @__PURE__ */ o(
|
|
1383
|
-
|
|
1437
|
+
InputProps: A(a({}, f.InputProps), {
|
|
1438
|
+
endAdornment: /* @__PURE__ */ g(R, { children: [
|
|
1439
|
+
e ? /* @__PURE__ */ o(be, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
1440
|
+
f.InputProps.endAdornment
|
|
1384
1441
|
] })
|
|
1385
1442
|
})
|
|
1386
1443
|
})
|
|
1387
1444
|
)
|
|
1388
1445
|
}
|
|
1389
1446
|
),
|
|
1390
|
-
O && /* @__PURE__ */ o(
|
|
1447
|
+
O && /* @__PURE__ */ o(qt, { error: !0, children: O })
|
|
1391
1448
|
]
|
|
1392
1449
|
}
|
|
1393
1450
|
);
|
|
1394
|
-
},
|
|
1451
|
+
}, Bo = Je({
|
|
1395
1452
|
palette: {
|
|
1396
1453
|
primary: {
|
|
1397
1454
|
dark: "#00A651",
|
|
@@ -1442,7 +1499,7 @@ const Ue = B(
|
|
|
1442
1499
|
navBar: {
|
|
1443
1500
|
backgroundColor: "#E8E8E8"
|
|
1444
1501
|
}
|
|
1445
|
-
}),
|
|
1502
|
+
}), Fo = Je({
|
|
1446
1503
|
palette: {
|
|
1447
1504
|
primary: {
|
|
1448
1505
|
main: "#007236",
|
|
@@ -1496,18 +1553,18 @@ const Ue = B(
|
|
|
1496
1553
|
styleOverrides: {
|
|
1497
1554
|
root: ({ theme: e }) => ({
|
|
1498
1555
|
"&.Mui-selected": {
|
|
1499
|
-
backgroundColor:
|
|
1556
|
+
backgroundColor: ue(
|
|
1500
1557
|
e.palette.secondary.main,
|
|
1501
1558
|
e.palette.action.selectedOpacity
|
|
1502
1559
|
),
|
|
1503
1560
|
"&:hover": {
|
|
1504
|
-
backgroundColor:
|
|
1561
|
+
backgroundColor: ue(
|
|
1505
1562
|
e.palette.secondary.main,
|
|
1506
1563
|
e.palette.action.selectedOpacity
|
|
1507
1564
|
)
|
|
1508
1565
|
},
|
|
1509
1566
|
"&.Mui-focusVisible": {
|
|
1510
|
-
backgroundColor:
|
|
1567
|
+
backgroundColor: ue(
|
|
1511
1568
|
e.palette.secondary.main,
|
|
1512
1569
|
e.palette.action.focusOpacity
|
|
1513
1570
|
)
|
|
@@ -1533,73 +1590,75 @@ const Ue = B(
|
|
|
1533
1590
|
navBar: {
|
|
1534
1591
|
backgroundColor: "#E8E8E8"
|
|
1535
1592
|
}
|
|
1536
|
-
}),
|
|
1593
|
+
}), Zn = {
|
|
1537
1594
|
domainCode: vt,
|
|
1538
1595
|
navBarOpen: j,
|
|
1539
1596
|
navBarWidthOpen: pt,
|
|
1540
|
-
navBarWidthClosed:
|
|
1541
|
-
titleText:
|
|
1597
|
+
navBarWidthClosed: gt,
|
|
1598
|
+
titleText: Ce,
|
|
1542
1599
|
topBarHeight: ht,
|
|
1543
|
-
navBarTop:
|
|
1544
|
-
},
|
|
1600
|
+
navBarTop: ft
|
|
1601
|
+
}, No = K(() => ({ children: e }) => /* @__PURE__ */ o(nt, { children: e })), eo = ({
|
|
1545
1602
|
initialValues: e,
|
|
1546
1603
|
children: t
|
|
1547
|
-
}) => (ot(e), /* @__PURE__ */ o(
|
|
1604
|
+
}) => (ot(e), /* @__PURE__ */ o(R, { children: t })), Po = K(
|
|
1548
1605
|
(e) => ({ children: t }) => /* @__PURE__ */ o(
|
|
1549
|
-
|
|
1606
|
+
eo,
|
|
1550
1607
|
{
|
|
1551
1608
|
initialValues: Object.entries(e).map(
|
|
1552
1609
|
([n, i]) => [
|
|
1553
|
-
|
|
1610
|
+
Zn[n],
|
|
1554
1611
|
i
|
|
1555
1612
|
]
|
|
1556
1613
|
),
|
|
1557
1614
|
children: t
|
|
1558
1615
|
}
|
|
1559
1616
|
)
|
|
1560
|
-
),
|
|
1561
|
-
const t = new
|
|
1562
|
-
return /* @__PURE__ */ o(
|
|
1617
|
+
), Lo = K(() => ({ children: e }) => {
|
|
1618
|
+
const t = new tn();
|
|
1619
|
+
return /* @__PURE__ */ o(nn, { client: t, children: e });
|
|
1563
1620
|
});
|
|
1564
1621
|
export {
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1622
|
+
lt as AgDialog,
|
|
1623
|
+
Io as AppLayout,
|
|
1624
|
+
To as AtomProvider,
|
|
1625
|
+
Ct as Context,
|
|
1569
1626
|
Ae as ContextError,
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1627
|
+
Eo as DomainCodeDialog,
|
|
1628
|
+
vo as ExampleComponent,
|
|
1629
|
+
Do as FetchAutocomplete,
|
|
1630
|
+
eo as HydrateAtoms,
|
|
1574
1631
|
rt as NAVBAR_WIDTH_CLOSED,
|
|
1575
1632
|
it as NAVBAR_WIDTH_OPENED,
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1633
|
+
Ao as NavBar,
|
|
1634
|
+
bo as NavBarDarkStyledList,
|
|
1635
|
+
So as NavBarLightStyledList,
|
|
1636
|
+
gn as NavBarProvider,
|
|
1637
|
+
Oo as PageLayout,
|
|
1638
|
+
Qn as SaladBarProvider,
|
|
1639
|
+
yo as SessionExpiryDialog,
|
|
1640
|
+
ko as SingleAutocomplete,
|
|
1641
|
+
Kn as atomStore,
|
|
1642
|
+
fn as buildNavBarState,
|
|
1585
1643
|
vt as domainCodeAtom,
|
|
1586
|
-
|
|
1587
|
-
|
|
1644
|
+
Bo as fed21Theme,
|
|
1645
|
+
mn as getAuth0Expiry,
|
|
1646
|
+
Fo as internalAgSystemsTheme,
|
|
1588
1647
|
q as navBarClasses,
|
|
1589
1648
|
j as navBarOpenAtom,
|
|
1590
|
-
|
|
1591
|
-
|
|
1649
|
+
ft as navBarTopAtom,
|
|
1650
|
+
gt as navBarWidthClosedAtom,
|
|
1592
1651
|
pt as navBarWidthOpenAtom,
|
|
1593
|
-
|
|
1652
|
+
Ce as titleTextAtom,
|
|
1594
1653
|
ht as topBarHeightAtom,
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1654
|
+
In as topBarMiddleAtom,
|
|
1655
|
+
ct as useAutocompleteOptions,
|
|
1656
|
+
hn as useNavBar,
|
|
1657
|
+
jn as useSaladBar,
|
|
1658
|
+
No as withAtomProvider,
|
|
1659
|
+
wo as withNavBarProvider,
|
|
1660
|
+
Po as withOverrideDefaults,
|
|
1661
|
+
Lo as withQueryClient,
|
|
1662
|
+
$o as withSaladBarProvider
|
|
1604
1663
|
};
|
|
1605
1664
|
//# sourceMappingURL=index.js.map
|