@australiangreens/ag-internal-components 0.0.83 → 0.0.84
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/FetchAutocomplete/FetchAutocomplete.d.ts +2 -1
- package/dist/components/FetchAutocomplete/FetchAutocomplete.d.ts.map +1 -1
- package/dist/esm/index.js +299 -298
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var Ft = Object.defineProperty, Pt = Object.defineProperties;
|
|
2
2
|
var Nt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var j = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var Te = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var pe = (e, t, n) => t in e ? Ft(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, s = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
Te.call(t, n) && pe(e, n, t[n]);
|
|
8
8
|
if (j)
|
|
9
9
|
for (var n of j(t))
|
|
10
|
-
|
|
10
|
+
Oe.call(t, n) && pe(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, S = (e, t) => Pt(e, Nt(t));
|
|
13
|
-
var
|
|
13
|
+
var Ee = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
16
|
-
|
|
16
|
+
Te.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
17
|
if (e != null && j)
|
|
18
18
|
for (var i of j(e))
|
|
19
|
-
t.indexOf(i) < 0 &&
|
|
19
|
+
t.indexOf(i) < 0 && Oe.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Be = (e, t, n) => (pe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
23
|
var P = (e, t, n) => new Promise((i, r) => {
|
|
24
24
|
var a = (l) => {
|
|
25
25
|
try {
|
|
@@ -37,22 +37,22 @@ var P = (e, t, n) => new Promise((i, r) => {
|
|
|
37
37
|
d((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
39
|
import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
|
|
40
|
-
import { useState as E, createContext as
|
|
41
|
-
import { Typography as F, Button as ie, Paper as
|
|
40
|
+
import { useState as E, createContext as Qe, useCallback as ne, useContext as Ye, createElement as Ce, useEffect as oe, useRef as he } from "react";
|
|
41
|
+
import { Typography as F, Button as ie, Paper as Ke, Box as $, Drawer as ve, Dialog as Je, DialogTitle as Ze, DialogContent as je, DialogActions as et, Autocomplete as we, TextField as Ae, CircularProgress as be, Chip as Lt, Tooltip as _t, Stack as Mt, styled as Se, IconButton as Q, Container as tt, useTheme as ae, useMediaQuery as Rt, Collapse as Ht, Avatar as Fe, Fade as Wt, Skeleton as Pe, Toolbar as zt, Divider as Ne, CssBaseline as Ut, Snackbar as Gt, Alert as Vt, LinearProgress as qt, FormHelperText as Xt } from "@mui/material";
|
|
42
42
|
import Qt from "@mui/material/CssBaseline";
|
|
43
|
-
import { styled as
|
|
43
|
+
import { styled as R, createTheme as nt, alpha as ge } from "@mui/material/styles";
|
|
44
44
|
import { AgError as Yt } from "@australiangreens/ag-error";
|
|
45
45
|
import { createHelper as K } from "souvlaki";
|
|
46
|
-
import
|
|
47
|
-
import { Cancel as Kt, ArrowDropDown as Jt, ArrowForward as
|
|
46
|
+
import ot from "@mui/material/List";
|
|
47
|
+
import { Cancel as Kt, ArrowDropDown as Jt, ArrowForward as it, ArrowBack as rt, ViewHeadline as Zt } from "@mui/icons-material";
|
|
48
48
|
import jt from "autosuggest-highlight/match";
|
|
49
49
|
import en from "autosuggest-highlight/parse";
|
|
50
50
|
import { useQuery as tn, QueryClient as nn, QueryClientProvider as on } from "@tanstack/react-query";
|
|
51
|
-
import { useAuth0 as
|
|
51
|
+
import { useAuth0 as at } from "@auth0/auth0-react";
|
|
52
52
|
import { Buffer as rn } from "buffer";
|
|
53
53
|
import an from "@mui/material/Skeleton";
|
|
54
|
-
import { atom as M, useSetAtom as
|
|
55
|
-
import { useHydrateAtoms as
|
|
54
|
+
import { atom as M, useSetAtom as st, useAtomValue as Le, useAtom as V, getDefaultStore as sn, Provider as lt } from "jotai";
|
|
55
|
+
import { useHydrateAtoms as ct } from "jotai/utils";
|
|
56
56
|
function Do({ text: e }) {
|
|
57
57
|
const [t, n] = E(0);
|
|
58
58
|
return /* @__PURE__ */ p(_, { children: [
|
|
@@ -71,13 +71,13 @@ function Do({ text: e }) {
|
|
|
71
71
|
"This is some text: ",
|
|
72
72
|
/* @__PURE__ */ o("span", { children: e })
|
|
73
73
|
] }),
|
|
74
|
-
/* @__PURE__ */ p(
|
|
74
|
+
/* @__PURE__ */ p(Ke, { children: [
|
|
75
75
|
"This number will incremember when button pressed: ",
|
|
76
76
|
t
|
|
77
77
|
] })
|
|
78
78
|
] });
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const dt = 330, ut = 73, U = "Navbar", q = {
|
|
81
81
|
root: `${U}-root`,
|
|
82
82
|
menuButton: `${U}-menuButton`,
|
|
83
83
|
hide: `${U}-hide`,
|
|
@@ -85,7 +85,7 @@ const ct = 330, dt = 73, U = "Navbar", q = {
|
|
|
85
85
|
userInfoHolder: `${U}-userInfoHolder`,
|
|
86
86
|
settings: `${U}-settings`,
|
|
87
87
|
pieChartIcon: `${U}-pieChartIcon`
|
|
88
|
-
}, ln =
|
|
88
|
+
}, ln = R($, {
|
|
89
89
|
name: "NavBar"
|
|
90
90
|
})(({ theme: e }) => ({
|
|
91
91
|
[`&.${q.root}`]: {
|
|
@@ -106,7 +106,7 @@ const ct = 330, dt = 73, U = "Navbar", q = {
|
|
|
106
106
|
marginTop: "64px",
|
|
107
107
|
marginBottom: "16px"
|
|
108
108
|
}
|
|
109
|
-
})),
|
|
109
|
+
})), pt = () => ({
|
|
110
110
|
position: "absolute",
|
|
111
111
|
height: "100%",
|
|
112
112
|
overflowX: "hidden",
|
|
@@ -115,13 +115,13 @@ const ct = 330, dt = 73, U = "Navbar", q = {
|
|
|
115
115
|
backgroundColor: "black"
|
|
116
116
|
// backgroundColor: '#e8e8e8',
|
|
117
117
|
}), cn = () => s({
|
|
118
|
-
width: ct
|
|
119
|
-
}, ut()), dn = () => s({
|
|
120
118
|
width: dt
|
|
121
|
-
},
|
|
119
|
+
}, pt()), dn = () => s({
|
|
120
|
+
width: ut
|
|
121
|
+
}, pt()), un = R(ve, {
|
|
122
122
|
shouldForwardProp: (e) => e !== "open"
|
|
123
123
|
})(({ theme: e, open: t }) => s(s({
|
|
124
|
-
width: t ?
|
|
124
|
+
width: t ? dt : ut,
|
|
125
125
|
flexShrink: 0,
|
|
126
126
|
whiteSpace: "nowrap",
|
|
127
127
|
boxSizing: "border-box",
|
|
@@ -131,10 +131,10 @@ const ct = 330, dt = 73, U = "Navbar", q = {
|
|
|
131
131
|
}), !t && {
|
|
132
132
|
"& .MuiDrawer-paper": dn()
|
|
133
133
|
}));
|
|
134
|
-
class
|
|
134
|
+
class ke extends Yt {
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
const
|
|
136
|
+
Be(ke, "errorName", "ContextError");
|
|
137
|
+
const ht = Qe(null), pn = {}, hn = {}, gn = ({
|
|
138
138
|
overrideState: e = pn,
|
|
139
139
|
overrideActions: t = hn,
|
|
140
140
|
children: n
|
|
@@ -148,17 +148,17 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
148
148
|
setOpen: a,
|
|
149
149
|
toggleOpen: c
|
|
150
150
|
}, e), t);
|
|
151
|
-
return /* @__PURE__ */ o(
|
|
151
|
+
return /* @__PURE__ */ o(ht.Provider, { value: d, children: n });
|
|
152
152
|
}, fn = () => {
|
|
153
|
-
const e =
|
|
153
|
+
const e = Ye(ht);
|
|
154
154
|
if (e === null)
|
|
155
|
-
throw new
|
|
155
|
+
throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
156
156
|
return e;
|
|
157
157
|
}, mn = (e = {}) => s({
|
|
158
158
|
open: !0
|
|
159
159
|
}, e), yo = K(
|
|
160
160
|
(e = mn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(gn, { overrideState: e, overrideActions: t, children: n })
|
|
161
|
-
),
|
|
161
|
+
), _e = 7, $o = R(ot)(({ theme: e }) => ({
|
|
162
162
|
backgroundColor: "black",
|
|
163
163
|
color: "white",
|
|
164
164
|
"& .MuiListItem-root": {
|
|
@@ -167,7 +167,7 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
167
167
|
"& .MuiListItemButton-root": {
|
|
168
168
|
" .MuiListItemIcon-root": {
|
|
169
169
|
color: "white",
|
|
170
|
-
padding: `${
|
|
170
|
+
padding: `${_e}px`
|
|
171
171
|
},
|
|
172
172
|
// Focus state
|
|
173
173
|
"&.Mui-focusVisible": {
|
|
@@ -178,7 +178,7 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
178
178
|
borderLeftStyle: "solid",
|
|
179
179
|
borderLeftWidth: "7px",
|
|
180
180
|
borderLeftColor: e.palette.primary.main,
|
|
181
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
181
|
+
paddingLeft: `calc(${e.spacing(2)} - ${_e}px)`
|
|
182
182
|
},
|
|
183
183
|
// Hover state
|
|
184
184
|
"&:hover": {
|
|
@@ -196,7 +196,7 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
196
196
|
// '&.Mui-selected.Mui-focusVisible:hover': {
|
|
197
197
|
// },
|
|
198
198
|
}
|
|
199
|
-
})),
|
|
199
|
+
})), Me = 7, Io = R(ot)(({ theme: e }) => ({
|
|
200
200
|
backgroundColor: "#e8e8e8",
|
|
201
201
|
color: "inherit",
|
|
202
202
|
"& .MuiListItem-root": {
|
|
@@ -205,7 +205,7 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
205
205
|
"& .MuiListItemButton-root": {
|
|
206
206
|
" .MuiListItemIcon-root": {
|
|
207
207
|
color: "inherit",
|
|
208
|
-
padding: `${
|
|
208
|
+
padding: `${Me}px`
|
|
209
209
|
},
|
|
210
210
|
// Focus state
|
|
211
211
|
"&.Mui-focusVisible": {
|
|
@@ -216,7 +216,7 @@ const pt = Xe(null), pn = {}, hn = {}, gn = ({
|
|
|
216
216
|
borderLeftStyle: "solid",
|
|
217
217
|
borderLeftWidth: "7px",
|
|
218
218
|
borderLeftColor: e.palette.primary.main,
|
|
219
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
219
|
+
paddingLeft: `calc(${e.spacing(2)} - ${Me}px)`
|
|
220
220
|
},
|
|
221
221
|
// Hover state
|
|
222
222
|
"&:hover": {
|
|
@@ -254,7 +254,7 @@ function To({
|
|
|
254
254
|
)
|
|
255
255
|
] });
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const gt = ({
|
|
258
258
|
isOpen: e,
|
|
259
259
|
dialogTitle: t,
|
|
260
260
|
children: n,
|
|
@@ -266,29 +266,29 @@ const ht = ({
|
|
|
266
266
|
"data-testid": l,
|
|
267
267
|
disableCloseOnBackdropOrEscape: u = !1
|
|
268
268
|
}) => {
|
|
269
|
-
var
|
|
270
|
-
const [
|
|
269
|
+
var A, g;
|
|
270
|
+
const [C, x] = E(!1);
|
|
271
271
|
return /* @__PURE__ */ p(
|
|
272
|
-
|
|
272
|
+
Je,
|
|
273
273
|
{
|
|
274
274
|
open: e,
|
|
275
275
|
onClose: (k, b) => P(void 0, null, function* () {
|
|
276
|
-
u && (b === "backdropClick" || b === "escapeKeyDown") ||
|
|
276
|
+
u && (b === "backdropClick" || b === "escapeKeyDown") || C || (a != null && a.onClick ? yield a.onClick() : c());
|
|
277
277
|
}),
|
|
278
278
|
fullWidth: !0,
|
|
279
279
|
maxWidth: i != null ? i : "xs",
|
|
280
280
|
"data-testid": l,
|
|
281
281
|
sx: d,
|
|
282
282
|
children: [
|
|
283
|
-
/* @__PURE__ */ o(
|
|
284
|
-
/* @__PURE__ */ o(
|
|
285
|
-
/* @__PURE__ */ p(
|
|
283
|
+
/* @__PURE__ */ o(Ze, { children: t }),
|
|
284
|
+
/* @__PURE__ */ o(je, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
285
|
+
/* @__PURE__ */ p(et, { children: [
|
|
286
286
|
/* @__PURE__ */ o(
|
|
287
287
|
ie,
|
|
288
288
|
{
|
|
289
|
-
onClick: (
|
|
289
|
+
onClick: (A = a == null ? void 0 : a.onClick) != null ? A : c,
|
|
290
290
|
"data-testid": a == null ? void 0 : a.testId,
|
|
291
|
-
disabled: (a == null ? void 0 : a.disabled) ||
|
|
291
|
+
disabled: (a == null ? void 0 : a.disabled) || C,
|
|
292
292
|
color: a == null ? void 0 : a.buttonColor,
|
|
293
293
|
children: (g = a == null ? void 0 : a.text) != null ? g : "Cancel"
|
|
294
294
|
}
|
|
@@ -301,7 +301,7 @@ const ht = ({
|
|
|
301
301
|
x(!0), yield (k = r.onClick) == null ? void 0 : k.call(r), x(!1);
|
|
302
302
|
}),
|
|
303
303
|
"data-testid": r.testId,
|
|
304
|
-
disabled: r.disabled ||
|
|
304
|
+
disabled: r.disabled || C,
|
|
305
305
|
color: r == null ? void 0 : r.buttonColor,
|
|
306
306
|
children: r.text
|
|
307
307
|
}
|
|
@@ -310,7 +310,7 @@ const ht = ({
|
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
|
-
},
|
|
313
|
+
}, ft = ({
|
|
314
314
|
minLength: e,
|
|
315
315
|
preLoadedOptions: t,
|
|
316
316
|
lookup: n,
|
|
@@ -332,36 +332,37 @@ function Oo({
|
|
|
332
332
|
value: a,
|
|
333
333
|
"data-testid": c,
|
|
334
334
|
sx: d,
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
335
|
+
boxSx: l,
|
|
336
|
+
textFieldColor: u,
|
|
337
|
+
textFieldVariant: C = "filled",
|
|
338
|
+
loadingText: x = "Loading...",
|
|
339
|
+
noOptionsText: A = "No options",
|
|
340
|
+
popupIcon: g = /* @__PURE__ */ o(Jt, {}),
|
|
341
|
+
error: k = !1,
|
|
342
|
+
helperText: b = "",
|
|
343
|
+
preLoadedOptions: I = void 0,
|
|
344
|
+
disablePortal: y = !1
|
|
344
345
|
}) {
|
|
345
|
-
const [
|
|
346
|
-
const B = a.filter((
|
|
346
|
+
const [v, D] = E(""), H = (h, f) => {
|
|
347
|
+
const B = a.filter((m) => m.id !== f);
|
|
347
348
|
n(B, "delete", h);
|
|
348
|
-
}, { data: N, isLoading:
|
|
349
|
-
inputValue:
|
|
349
|
+
}, { data: N, isLoading: T } = ft({
|
|
350
|
+
inputValue: v,
|
|
350
351
|
label: r,
|
|
351
352
|
lookup: e,
|
|
352
353
|
minLength: i,
|
|
353
|
-
preLoadedOptions:
|
|
354
|
-
}),
|
|
354
|
+
preLoadedOptions: I
|
|
355
|
+
}), W = v.length >= i;
|
|
355
356
|
return /* @__PURE__ */ p("div", { "data-testid": c, children: [
|
|
356
357
|
/* @__PURE__ */ o(
|
|
357
|
-
|
|
358
|
+
we,
|
|
358
359
|
{
|
|
359
360
|
sx: d,
|
|
360
361
|
"data-testid": c ? `${c}:Autocomplete` : void 0,
|
|
361
|
-
disablePortal:
|
|
362
|
+
disablePortal: y,
|
|
362
363
|
multiple: !0,
|
|
363
364
|
getOptionLabel: (h) => typeof h == "string" ? h : h.label,
|
|
364
|
-
loading:
|
|
365
|
+
loading: W ? T : !1,
|
|
365
366
|
options: [...a, ...N != null ? N : []],
|
|
366
367
|
filterSelectedOptions: !0,
|
|
367
368
|
includeInputInList: !0,
|
|
@@ -369,21 +370,21 @@ function Oo({
|
|
|
369
370
|
onChange: (h, f, B) => {
|
|
370
371
|
n(f, B, h);
|
|
371
372
|
},
|
|
372
|
-
onInputChange: (h, f) =>
|
|
373
|
-
noOptionsText:
|
|
374
|
-
loadingText:
|
|
375
|
-
popupIcon:
|
|
373
|
+
onInputChange: (h, f) => D(f),
|
|
374
|
+
noOptionsText: W ? A : "Start typing to search",
|
|
375
|
+
loadingText: x,
|
|
376
|
+
popupIcon: g,
|
|
376
377
|
renderInput: (h) => /* @__PURE__ */ o(
|
|
377
|
-
|
|
378
|
+
Ae,
|
|
378
379
|
S(s({}, h), {
|
|
379
380
|
label: r,
|
|
380
381
|
fullWidth: !0,
|
|
381
|
-
variant:
|
|
382
|
-
error:
|
|
383
|
-
helperText:
|
|
382
|
+
variant: C,
|
|
383
|
+
error: k,
|
|
384
|
+
helperText: b,
|
|
384
385
|
InputProps: S(s({}, h.InputProps), {
|
|
385
386
|
endAdornment: /* @__PURE__ */ p(_, { children: [
|
|
386
|
-
|
|
387
|
+
T ? /* @__PURE__ */ o(be, { color: "inherit", size: 20 }) : null,
|
|
387
388
|
h.InputProps.endAdornment
|
|
388
389
|
] })
|
|
389
390
|
}),
|
|
@@ -391,36 +392,36 @@ function Oo({
|
|
|
391
392
|
onKeyDown: (f) => {
|
|
392
393
|
(f.key === "Backspace" || f.key === "Delete") && f.stopPropagation();
|
|
393
394
|
},
|
|
394
|
-
color:
|
|
395
|
+
color: u
|
|
395
396
|
})
|
|
396
397
|
),
|
|
397
398
|
renderTags: () => null,
|
|
398
399
|
isOptionEqualToValue: (h, f) => h.id === f.id,
|
|
399
400
|
renderOption: (h, f, B) => {
|
|
400
401
|
if (t) {
|
|
401
|
-
const
|
|
402
|
+
const m = jt(f.label, B.inputValue, {
|
|
402
403
|
insideWords: !0,
|
|
403
404
|
findAllOccurrences: !0
|
|
404
|
-
}),
|
|
405
|
-
return /* @__PURE__ */
|
|
405
|
+
}), w = en(f.label, m);
|
|
406
|
+
return /* @__PURE__ */ Ce(
|
|
406
407
|
"li",
|
|
407
408
|
S(s({}, h), {
|
|
408
409
|
key: f.id,
|
|
409
410
|
"data-testid": c ? `${c}:Autocomplete:option(${f.id.toString()})` : void 0
|
|
410
411
|
}),
|
|
411
|
-
/* @__PURE__ */ o("div", { children:
|
|
412
|
+
/* @__PURE__ */ o("div", { children: w.map((L, se) => /* @__PURE__ */ o(
|
|
412
413
|
"span",
|
|
413
414
|
{
|
|
414
415
|
style: {
|
|
415
|
-
fontWeight:
|
|
416
|
+
fontWeight: L.highlight ? 700 : 400
|
|
416
417
|
},
|
|
417
|
-
children:
|
|
418
|
+
children: L.text
|
|
418
419
|
},
|
|
419
|
-
|
|
420
|
+
se
|
|
420
421
|
)) })
|
|
421
422
|
);
|
|
422
423
|
} else
|
|
423
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ Ce(
|
|
424
425
|
"li",
|
|
425
426
|
S(s({}, h), {
|
|
426
427
|
key: f.id,
|
|
@@ -431,7 +432,7 @@ function Oo({
|
|
|
431
432
|
}
|
|
432
433
|
}
|
|
433
434
|
),
|
|
434
|
-
a.length > 0 && /* @__PURE__ */ o($, { children: a.map((h) => /* @__PURE__ */ o(
|
|
435
|
+
a.length > 0 && /* @__PURE__ */ o($, { sx: l, children: a.map((h) => /* @__PURE__ */ o(
|
|
435
436
|
Lt,
|
|
436
437
|
{
|
|
437
438
|
sx: {
|
|
@@ -458,7 +459,7 @@ function Oo({
|
|
|
458
459
|
}
|
|
459
460
|
),
|
|
460
461
|
"data-testid": c ? `${c}:Chip(${h.id.toString()})` : void 0,
|
|
461
|
-
onDelete: (f) =>
|
|
462
|
+
onDelete: (f) => H(f, h.id),
|
|
462
463
|
deleteIcon: /* @__PURE__ */ o(
|
|
463
464
|
Kt,
|
|
464
465
|
{
|
|
@@ -482,54 +483,54 @@ const Eo = ({
|
|
|
482
483
|
"data-testid": d,
|
|
483
484
|
noOptionsText: l = "No options",
|
|
484
485
|
minLength: u = 3,
|
|
485
|
-
disablePortal:
|
|
486
|
+
disablePortal: C = !1,
|
|
486
487
|
preLoadedOptions: x,
|
|
487
|
-
helperText:
|
|
488
|
+
helperText: A = ""
|
|
488
489
|
}) => {
|
|
489
|
-
const [g, k] = E(""), { data: b, isLoading: I } =
|
|
490
|
+
const [g, k] = E(""), { data: b, isLoading: I } = ft({
|
|
490
491
|
inputValue: g,
|
|
491
492
|
label: n,
|
|
492
493
|
lookup: e,
|
|
493
494
|
minLength: u != null ? u : 0,
|
|
494
495
|
preLoadedOptions: x
|
|
495
|
-
}),
|
|
496
|
+
}), y = g.length >= u;
|
|
496
497
|
return /* @__PURE__ */ o("div", { "data-testid": d, children: /* @__PURE__ */ o(Mt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
|
|
497
|
-
|
|
498
|
+
we,
|
|
498
499
|
{
|
|
499
500
|
sx: r,
|
|
500
501
|
"data-testid": d ? `${d}:Autocomplete` : void 0,
|
|
501
|
-
loading:
|
|
502
|
+
loading: y ? I : !1,
|
|
502
503
|
options: b != null ? b : [],
|
|
503
|
-
onChange: (
|
|
504
|
-
t(
|
|
504
|
+
onChange: (v, D) => {
|
|
505
|
+
t(v, D);
|
|
505
506
|
},
|
|
506
|
-
disablePortal:
|
|
507
|
-
filterOptions: (
|
|
507
|
+
disablePortal: C,
|
|
508
|
+
filterOptions: (v) => v,
|
|
508
509
|
value: i,
|
|
509
|
-
noOptionsText:
|
|
510
|
-
getOptionLabel: (
|
|
511
|
-
renderInput: (
|
|
512
|
-
|
|
510
|
+
noOptionsText: y ? l : "Start typing to search",
|
|
511
|
+
getOptionLabel: (v) => v.label,
|
|
512
|
+
renderInput: (v) => /* @__PURE__ */ o(
|
|
513
|
+
Ae,
|
|
513
514
|
S(s({
|
|
514
515
|
"data-testid": d ? `${d}:Autocomplete:TextField` : void 0
|
|
515
|
-
},
|
|
516
|
+
}, v), {
|
|
516
517
|
variant: c,
|
|
517
518
|
label: n,
|
|
518
519
|
color: a,
|
|
519
|
-
helperText:
|
|
520
|
+
helperText: A
|
|
520
521
|
})
|
|
521
522
|
),
|
|
522
|
-
isOptionEqualToValue: (
|
|
523
|
-
onInputChange: (
|
|
524
|
-
k(
|
|
523
|
+
isOptionEqualToValue: (v, D) => v.id === D.id,
|
|
524
|
+
onInputChange: (v, D) => {
|
|
525
|
+
k(D);
|
|
525
526
|
},
|
|
526
|
-
renderOption: (
|
|
527
|
+
renderOption: (v, D) => /* @__PURE__ */ Ce(
|
|
527
528
|
"li",
|
|
528
|
-
S(s({},
|
|
529
|
-
key:
|
|
530
|
-
"data-testid": d ? `${d}:Autocomplete:option(${
|
|
529
|
+
S(s({}, v), {
|
|
530
|
+
key: D.id,
|
|
531
|
+
"data-testid": d ? `${d}:Autocomplete:option(${D.id.toString()})` : void 0
|
|
531
532
|
}),
|
|
532
|
-
|
|
533
|
+
D.label
|
|
533
534
|
)
|
|
534
535
|
}
|
|
535
536
|
) }) });
|
|
@@ -551,7 +552,7 @@ const Eo = ({
|
|
|
551
552
|
closeHandler: t,
|
|
552
553
|
setAuth0ExpiryTime: n
|
|
553
554
|
}) => {
|
|
554
|
-
const { logout: i, getAccessTokenSilently: r } =
|
|
555
|
+
const { logout: i, getAccessTokenSilently: r } = at(), [a, c] = E(0), d = () => P(void 0, null, function* () {
|
|
555
556
|
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
556
557
|
}), l = () => P(void 0, null, function* () {
|
|
557
558
|
c(a + 1), t();
|
|
@@ -559,12 +560,12 @@ const Eo = ({
|
|
|
559
560
|
return oe(() => {
|
|
560
561
|
(() => P(void 0, null, function* () {
|
|
561
562
|
if (a > 0) {
|
|
562
|
-
const
|
|
563
|
+
const A = yield r({ cacheMode: "off" }), g = Cn(A) * 1e3;
|
|
563
564
|
n(g);
|
|
564
565
|
}
|
|
565
566
|
}))();
|
|
566
567
|
}, [a, r, n]), /* @__PURE__ */ o(
|
|
567
|
-
|
|
568
|
+
gt,
|
|
568
569
|
{
|
|
569
570
|
isOpen: e,
|
|
570
571
|
primaryButton: {
|
|
@@ -608,7 +609,7 @@ function Fo({
|
|
|
608
609
|
children: e,
|
|
609
610
|
appName: t = "the app"
|
|
610
611
|
}) {
|
|
611
|
-
const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } =
|
|
612
|
+
const { isAuthenticated: n, isLoading: i, error: r, loginWithRedirect: a, logout: c } = at();
|
|
612
613
|
if (oe(() => {
|
|
613
614
|
if (i || n || r)
|
|
614
615
|
return;
|
|
@@ -620,10 +621,10 @@ function Fo({
|
|
|
620
621
|
a(d);
|
|
621
622
|
}, [i, n, r, a]), r && xn(r)) {
|
|
622
623
|
let d = "Auth error", l = "An unknown Auth0 error occurred.";
|
|
623
|
-
return wn(r) ? (d = "Unauthorised", l = `You are not authorised to access ${t}.`) : An(r) ? (d = "App not authorised", l = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`) : vn(r) && (d = "Unauthorised", l = "Authorisation with auth0 failed for an unknown reason."), /* @__PURE__ */ p(
|
|
624
|
-
/* @__PURE__ */ o(
|
|
625
|
-
/* @__PURE__ */ o(
|
|
626
|
-
/* @__PURE__ */ o(
|
|
624
|
+
return wn(r) ? (d = "Unauthorised", l = `You are not authorised to access ${t}.`) : An(r) ? (d = "App not authorised", l = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`) : vn(r) && (d = "Unauthorised", l = "Authorisation with auth0 failed for an unknown reason."), /* @__PURE__ */ p(Je, { open: !0, children: [
|
|
625
|
+
/* @__PURE__ */ o(Ze, { children: d }),
|
|
626
|
+
/* @__PURE__ */ o(je, { children: /* @__PURE__ */ o(F, { children: l }) }),
|
|
627
|
+
/* @__PURE__ */ o(et, { children: /* @__PURE__ */ o(ie, { onClick: () => c({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" }) })
|
|
627
628
|
] });
|
|
628
629
|
}
|
|
629
630
|
return n ? /* @__PURE__ */ o(_, { children: e }) : /* @__PURE__ */ o(an, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
|
|
@@ -635,7 +636,7 @@ const bn = 24, Sn = 64, G = "TopBar", O = {
|
|
|
635
636
|
titleText: `${G}-titleText`,
|
|
636
637
|
leftPanelButton: `${G}-leftPanelButton`,
|
|
637
638
|
rightPanelButton: `${G}-leftPanelButton`
|
|
638
|
-
}, kn =
|
|
639
|
+
}, kn = Se("div", {
|
|
639
640
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
640
641
|
name: G
|
|
641
642
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -707,7 +708,7 @@ function Dn({
|
|
|
707
708
|
size: "large",
|
|
708
709
|
children: [
|
|
709
710
|
" ",
|
|
710
|
-
/* @__PURE__ */ o(
|
|
711
|
+
/* @__PURE__ */ o(it, {})
|
|
711
712
|
]
|
|
712
713
|
}
|
|
713
714
|
),
|
|
@@ -723,14 +724,14 @@ function Dn({
|
|
|
723
724
|
size: "large",
|
|
724
725
|
children: [
|
|
725
726
|
" ",
|
|
726
|
-
/* @__PURE__ */ o(
|
|
727
|
+
/* @__PURE__ */ o(rt, {})
|
|
727
728
|
]
|
|
728
729
|
}
|
|
729
730
|
)
|
|
730
731
|
] }) })
|
|
731
732
|
] });
|
|
732
733
|
}
|
|
733
|
-
const
|
|
734
|
+
const mt = 400, yn = Se(ve, {
|
|
734
735
|
shouldForwardProp: (e) => (
|
|
735
736
|
// Note we do want anchor to be forwarded to the Drawer component
|
|
736
737
|
![
|
|
@@ -760,7 +761,7 @@ const ft = 400, yn = be(xe, {
|
|
|
760
761
|
marginLeft: `${r}px`
|
|
761
762
|
}))
|
|
762
763
|
})
|
|
763
|
-
), $n =
|
|
764
|
+
), $n = Se($, {
|
|
764
765
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
765
766
|
})(({ theme: e, anchor: t }) => S(s({
|
|
766
767
|
display: "flex",
|
|
@@ -780,21 +781,21 @@ const ft = 400, yn = be(xe, {
|
|
|
780
781
|
marginRight: t === "right" ? e.spacing(2) : 0
|
|
781
782
|
}
|
|
782
783
|
}));
|
|
783
|
-
function
|
|
784
|
+
function Re({
|
|
784
785
|
children: e,
|
|
785
786
|
anchor: t = "left",
|
|
786
787
|
open: n,
|
|
787
788
|
onClose: i = () => {
|
|
788
789
|
},
|
|
789
790
|
titleText: r = "",
|
|
790
|
-
width: a =
|
|
791
|
+
width: a = mt,
|
|
791
792
|
showCloseArrow: c = !0,
|
|
792
793
|
debugOpacity: d = !1,
|
|
793
794
|
headerBoxProps: l = {},
|
|
794
795
|
onOpened: u,
|
|
795
|
-
onClosed:
|
|
796
|
+
onClosed: C,
|
|
796
797
|
"data-testid": x,
|
|
797
|
-
navBarOpen:
|
|
798
|
+
navBarOpen: A = !1,
|
|
798
799
|
navBarWidthOpen: g = 0,
|
|
799
800
|
navBarWidthClosed: k = 0
|
|
800
801
|
}) {
|
|
@@ -803,7 +804,7 @@ function Me({
|
|
|
803
804
|
{
|
|
804
805
|
SlideProps: {
|
|
805
806
|
onEntered: () => u == null ? void 0 : u(),
|
|
806
|
-
onExited: () =>
|
|
807
|
+
onExited: () => C == null ? void 0 : C()
|
|
807
808
|
},
|
|
808
809
|
variant: "persistent",
|
|
809
810
|
anchor: t,
|
|
@@ -811,19 +812,19 @@ function Me({
|
|
|
811
812
|
width: a,
|
|
812
813
|
debugOpacity: d,
|
|
813
814
|
"data-testid": x,
|
|
814
|
-
navBarOpen:
|
|
815
|
+
navBarOpen: A,
|
|
815
816
|
navBarWidthOpen: g,
|
|
816
817
|
navBarWidthClosed: k,
|
|
817
818
|
children: [
|
|
818
819
|
/* @__PURE__ */ o($n, S(s({ anchor: t }, l), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
|
|
819
820
|
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r }),
|
|
820
821
|
c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
|
|
821
|
-
/* @__PURE__ */ o(
|
|
822
|
+
/* @__PURE__ */ o(rt, { "data-testid": "arrowbackicon" }),
|
|
822
823
|
" "
|
|
823
824
|
] })
|
|
824
825
|
] }) : /* @__PURE__ */ p(_, { children: [
|
|
825
826
|
c && /* @__PURE__ */ p(Q, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
|
|
826
|
-
/* @__PURE__ */ o(
|
|
827
|
+
/* @__PURE__ */ o(it, {}),
|
|
827
828
|
" "
|
|
828
829
|
] }),
|
|
829
830
|
/* @__PURE__ */ o(F, { variant: "h6", color: "inherit", component: "div", children: r })
|
|
@@ -833,7 +834,7 @@ function Me({
|
|
|
833
834
|
}
|
|
834
835
|
);
|
|
835
836
|
}
|
|
836
|
-
const In =
|
|
837
|
+
const In = R($, {
|
|
837
838
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
838
839
|
name: "PanelAwareMargins"
|
|
839
840
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -856,17 +857,17 @@ const In = W($, {
|
|
|
856
857
|
}),
|
|
857
858
|
marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
|
|
858
859
|
});
|
|
859
|
-
}), Tn =
|
|
860
|
+
}), Tn = R(tt, {
|
|
860
861
|
name: "PageContainer"
|
|
861
862
|
})(({ theme: e }) => ({
|
|
862
863
|
// Horizontal padding comes from the Container's gutter
|
|
863
864
|
paddingTop: e.spacing(3),
|
|
864
865
|
paddingBottom: e.spacing(3)
|
|
865
866
|
// TODO: Remove max width
|
|
866
|
-
})),
|
|
867
|
+
})), fe = !1, me = !1, ee = {
|
|
867
868
|
titleText: "",
|
|
868
869
|
flavour: "push",
|
|
869
|
-
width:
|
|
870
|
+
width: mt,
|
|
870
871
|
arrowButtons: "both",
|
|
871
872
|
startOpen: !1,
|
|
872
873
|
open: void 0,
|
|
@@ -887,28 +888,28 @@ function Po({
|
|
|
887
888
|
pageContentDataTestId: d,
|
|
888
889
|
topBarDataTestId: l,
|
|
889
890
|
navBarOpen: u,
|
|
890
|
-
navBarWidthOpen:
|
|
891
|
+
navBarWidthOpen: C,
|
|
891
892
|
navBarWidthClosed: x
|
|
892
893
|
}) {
|
|
893
|
-
const [
|
|
894
|
+
const [A, g] = E(fe), [k, b] = E(me), [I, y] = E(fe), [v, D] = E(me), H = n !== void 0, N = i !== void 0, {
|
|
894
895
|
titleText: T,
|
|
895
|
-
content:
|
|
896
|
-
flavour:
|
|
897
|
-
open:
|
|
898
|
-
onChangeOpen:
|
|
899
|
-
width:
|
|
900
|
-
arrowButtons:
|
|
901
|
-
startOpen:
|
|
902
|
-
onOpened:
|
|
896
|
+
content: W,
|
|
897
|
+
flavour: h,
|
|
898
|
+
open: f,
|
|
899
|
+
onChangeOpen: B,
|
|
900
|
+
width: m,
|
|
901
|
+
arrowButtons: w,
|
|
902
|
+
startOpen: L,
|
|
903
|
+
onOpened: se,
|
|
903
904
|
onClosed: yt,
|
|
904
905
|
dataTestId: $t
|
|
905
906
|
} = n ? s(s({}, ee), n) : s({}, ee), {
|
|
906
907
|
titleText: It,
|
|
907
908
|
content: Tt,
|
|
908
|
-
flavour:
|
|
909
|
-
open:
|
|
910
|
-
onChangeOpen:
|
|
911
|
-
width:
|
|
909
|
+
flavour: De,
|
|
910
|
+
open: le,
|
|
911
|
+
onChangeOpen: ye,
|
|
912
|
+
width: ce,
|
|
912
913
|
arrowButtons: J,
|
|
913
914
|
startOpen: Z,
|
|
914
915
|
onOpened: Ot,
|
|
@@ -916,50 +917,50 @@ function Po({
|
|
|
916
917
|
dataTestId: Bt
|
|
917
918
|
} = i ? s(s({}, ee), i) : s({}, ee);
|
|
918
919
|
oe(() => {
|
|
919
|
-
|
|
920
|
-
}, [
|
|
921
|
-
Z !==
|
|
920
|
+
L !== fe && (g(L), y(L));
|
|
921
|
+
}, [L]), oe(() => {
|
|
922
|
+
Z !== me && (b(Z), D(Z));
|
|
922
923
|
}, [Z]);
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
},
|
|
926
|
-
|
|
924
|
+
const de = f === void 0 ? A : f, ue = le === void 0 ? k : le, $e = (z) => {
|
|
925
|
+
f === void 0 && (g(z), r && N && (z ? (b(!1), D(k)) : b(v))), B && B(z);
|
|
926
|
+
}, Ie = (z) => {
|
|
927
|
+
le === void 0 && (b(z), r && H && (z ? (g(!1), y(A)) : g(I))), ye && ye(z);
|
|
927
928
|
};
|
|
928
929
|
return /* @__PURE__ */ p($, { children: [
|
|
929
|
-
|
|
930
|
-
|
|
930
|
+
H && /* @__PURE__ */ o(
|
|
931
|
+
Re,
|
|
931
932
|
{
|
|
932
933
|
"data-testid": $t,
|
|
933
934
|
anchor: "left",
|
|
934
|
-
open:
|
|
935
|
-
onClose: () =>
|
|
936
|
-
width:
|
|
935
|
+
open: de,
|
|
936
|
+
onClose: () => $e(!1),
|
|
937
|
+
width: m,
|
|
937
938
|
titleText: T,
|
|
938
939
|
debugOpacity: a,
|
|
939
|
-
showCloseArrow:
|
|
940
|
-
onOpened:
|
|
940
|
+
showCloseArrow: w === "both" || w === "close",
|
|
941
|
+
onOpened: se,
|
|
941
942
|
onClosed: yt,
|
|
942
943
|
navBarOpen: u,
|
|
943
|
-
navBarWidthOpen:
|
|
944
|
+
navBarWidthOpen: C,
|
|
944
945
|
navBarWidthClosed: x,
|
|
945
|
-
children:
|
|
946
|
+
children: W
|
|
946
947
|
}
|
|
947
948
|
),
|
|
948
|
-
|
|
949
|
-
|
|
949
|
+
N && /* @__PURE__ */ o(
|
|
950
|
+
Re,
|
|
950
951
|
{
|
|
951
952
|
"data-testid": Bt,
|
|
952
953
|
anchor: "right",
|
|
953
|
-
open:
|
|
954
|
-
onClose: () =>
|
|
955
|
-
width:
|
|
954
|
+
open: ue,
|
|
955
|
+
onClose: () => Ie(!1),
|
|
956
|
+
width: ce,
|
|
956
957
|
titleText: It,
|
|
957
958
|
debugOpacity: a,
|
|
958
959
|
showCloseArrow: J === "both" || J === "close",
|
|
959
960
|
onOpened: Ot,
|
|
960
961
|
onClosed: Et,
|
|
961
962
|
navBarOpen: u,
|
|
962
|
-
navBarWidthOpen:
|
|
963
|
+
navBarWidthOpen: C,
|
|
963
964
|
navBarWidthClosed: x,
|
|
964
965
|
children: Tt
|
|
965
966
|
}
|
|
@@ -969,33 +970,33 @@ function Po({
|
|
|
969
970
|
s(s({
|
|
970
971
|
titleText: t,
|
|
971
972
|
"data-testid": l
|
|
972
|
-
},
|
|
973
|
+
}, H && h === "push" ? {
|
|
973
974
|
leftPanel: {
|
|
974
|
-
open: ce,
|
|
975
|
-
width: v,
|
|
976
|
-
onOpen: () => ye(!0),
|
|
977
|
-
showOpenArrow: C === "both" || C === "open"
|
|
978
|
-
}
|
|
979
|
-
} : {}), R && ke === "push" ? {
|
|
980
|
-
rightPanel: {
|
|
981
975
|
open: de,
|
|
982
|
-
width:
|
|
976
|
+
width: m,
|
|
983
977
|
onOpen: () => $e(!0),
|
|
978
|
+
showOpenArrow: w === "both" || w === "open"
|
|
979
|
+
}
|
|
980
|
+
} : {}), N && De === "push" ? {
|
|
981
|
+
rightPanel: {
|
|
982
|
+
open: ue,
|
|
983
|
+
width: ce,
|
|
984
|
+
onOpen: () => Ie(!0),
|
|
984
985
|
showOpenArrow: J === "both" || J === "open"
|
|
985
986
|
}
|
|
986
987
|
} : {})
|
|
987
988
|
),
|
|
988
989
|
/* @__PURE__ */ o(
|
|
989
990
|
In,
|
|
990
|
-
S(s(s({},
|
|
991
|
+
S(s(s({}, h === "push" ? {
|
|
991
992
|
leftPanel: {
|
|
992
|
-
open:
|
|
993
|
-
width:
|
|
993
|
+
open: de,
|
|
994
|
+
width: m
|
|
994
995
|
}
|
|
995
|
-
} : {}),
|
|
996
|
+
} : {}), De === "push" ? {
|
|
996
997
|
rightPanel: {
|
|
997
|
-
open:
|
|
998
|
-
width:
|
|
998
|
+
open: ue,
|
|
999
|
+
width: ce
|
|
999
1000
|
}
|
|
1000
1001
|
} : {}), {
|
|
1001
1002
|
children: /* @__PURE__ */ o(Tn, S(s({ "data-testid": d }, c), { children: e }))
|
|
@@ -1003,10 +1004,10 @@ function Po({
|
|
|
1003
1004
|
)
|
|
1004
1005
|
] });
|
|
1005
1006
|
}
|
|
1006
|
-
const
|
|
1007
|
+
const Ct = () => {
|
|
1007
1008
|
const e = ae();
|
|
1008
1009
|
return Rt(e.breakpoints.down("sm"));
|
|
1009
|
-
}, On = 64, En = 72, Bn = 256, Y = M(!0),
|
|
1010
|
+
}, On = 64, En = 72, Bn = 256, Y = M(!0), xt = M(Bn), vt = M(En), xe = M(""), Fn = M(void 0), wt = M(On), At = M(void 0);
|
|
1010
1011
|
function Pn({ links: e }) {
|
|
1011
1012
|
return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
|
|
1012
1013
|
}
|
|
@@ -1018,7 +1019,7 @@ const te = "Navbar", X = {
|
|
|
1018
1019
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
1019
1020
|
// settings: `${PREFIX}-settings`,
|
|
1020
1021
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
1021
|
-
}, Nn =
|
|
1022
|
+
}, Nn = R($, { name: "NavBar" })(({ theme: e }) => ({
|
|
1022
1023
|
[`&.${X.root}`]: {
|
|
1023
1024
|
display: "flex"
|
|
1024
1025
|
},
|
|
@@ -1052,7 +1053,7 @@ const te = "Navbar", X = {
|
|
|
1052
1053
|
}
|
|
1053
1054
|
}, e)
|
|
1054
1055
|
);
|
|
1055
|
-
},
|
|
1056
|
+
}, bt = (e) => {
|
|
1056
1057
|
var t, n;
|
|
1057
1058
|
return {
|
|
1058
1059
|
overflowX: "hidden",
|
|
@@ -1060,13 +1061,13 @@ const te = "Navbar", X = {
|
|
|
1060
1061
|
backgroundColor: (n = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? n : "white"
|
|
1061
1062
|
// Provide default so tests don't need to wrap theme provider
|
|
1062
1063
|
};
|
|
1063
|
-
},
|
|
1064
|
+
}, He = (e, t) => s({
|
|
1064
1065
|
width: t,
|
|
1065
1066
|
transition: re(e, "width", "entering")
|
|
1066
|
-
},
|
|
1067
|
+
}, bt(e)), We = (e, t) => s({
|
|
1067
1068
|
width: t,
|
|
1068
1069
|
transition: re(e, "width", "leaving")
|
|
1069
|
-
},
|
|
1070
|
+
}, bt(e)), _n = R(ve, {
|
|
1070
1071
|
shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
|
|
1071
1072
|
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => s(s({
|
|
1072
1073
|
flexShrink: 0,
|
|
@@ -1074,12 +1075,12 @@ const te = "Navbar", X = {
|
|
|
1074
1075
|
boxSizing: "border-box",
|
|
1075
1076
|
display: "flex",
|
|
1076
1077
|
flexDirection: "column"
|
|
1077
|
-
}, t && S(s({},
|
|
1078
|
+
}, t && S(s({}, He(e, n)), {
|
|
1078
1079
|
backgroundColor: "",
|
|
1079
|
-
"& .MuiDrawer-paper":
|
|
1080
|
-
})), !t && S(s({},
|
|
1080
|
+
"& .MuiDrawer-paper": He(e, n)
|
|
1081
|
+
})), !t && S(s({}, We(e, r ? n : i)), {
|
|
1081
1082
|
backgroundColor: "",
|
|
1082
|
-
"& .MuiDrawer-paper":
|
|
1083
|
+
"& .MuiDrawer-paper": We(e, r ? n : i)
|
|
1083
1084
|
})));
|
|
1084
1085
|
function Mn(e) {
|
|
1085
1086
|
let t = 0;
|
|
@@ -1089,7 +1090,7 @@ function Mn(e) {
|
|
|
1089
1090
|
}
|
|
1090
1091
|
return t;
|
|
1091
1092
|
}
|
|
1092
|
-
const
|
|
1093
|
+
const ze = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Rn = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
|
|
1093
1094
|
function Hn({ user: e, domainCode: t, open: n }) {
|
|
1094
1095
|
const i = ae();
|
|
1095
1096
|
return /* @__PURE__ */ p(
|
|
@@ -1112,22 +1113,22 @@ function Hn({ user: e, domainCode: t, open: n }) {
|
|
|
1112
1113
|
aspectRatio: 1
|
|
1113
1114
|
},
|
|
1114
1115
|
children: e != null && e.name ? /* @__PURE__ */ o(
|
|
1115
|
-
|
|
1116
|
+
Fe,
|
|
1116
1117
|
{
|
|
1117
1118
|
src: e == null ? void 0 : e.picture,
|
|
1118
1119
|
sx: {
|
|
1119
1120
|
width: "100%",
|
|
1120
1121
|
height: "100%",
|
|
1121
|
-
bgcolor:
|
|
1122
|
+
bgcolor: ze[Math.abs(Mn(e.name)) % ze.length]
|
|
1122
1123
|
},
|
|
1123
1124
|
children: Rn(e.name)
|
|
1124
1125
|
}
|
|
1125
|
-
) : /* @__PURE__ */ o(
|
|
1126
|
+
) : /* @__PURE__ */ o(Fe, { sx: { width: "100%", height: "100%" } })
|
|
1126
1127
|
}
|
|
1127
1128
|
),
|
|
1128
1129
|
/* @__PURE__ */ o(Ln, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Wt, { in: n, children: /* @__PURE__ */ p($, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
1129
|
-
e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(
|
|
1130
|
-
t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(
|
|
1130
|
+
e != null && e.name ? /* @__PURE__ */ o(F, { children: e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
|
|
1131
|
+
t ? /* @__PURE__ */ o(F, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
|
|
1131
1132
|
] }) }) })
|
|
1132
1133
|
]
|
|
1133
1134
|
}
|
|
@@ -1144,7 +1145,7 @@ function Wn({
|
|
|
1144
1145
|
user: d,
|
|
1145
1146
|
domainCode: l
|
|
1146
1147
|
}) {
|
|
1147
|
-
const u =
|
|
1148
|
+
const u = Ct(), C = st(Y);
|
|
1148
1149
|
return /* @__PURE__ */ o(Nn, { className: X.root, "data-testid": i, children: /* @__PURE__ */ p(
|
|
1149
1150
|
_n,
|
|
1150
1151
|
{
|
|
@@ -1157,18 +1158,18 @@ function Wn({
|
|
|
1157
1158
|
component: "nav"
|
|
1158
1159
|
},
|
|
1159
1160
|
onClose: () => {
|
|
1160
|
-
|
|
1161
|
+
C(!1);
|
|
1161
1162
|
},
|
|
1162
1163
|
isSmallScreen: u,
|
|
1163
1164
|
children: [
|
|
1164
1165
|
!u && /* @__PURE__ */ o(zt, {}),
|
|
1165
1166
|
r && /* @__PURE__ */ p($, { flexGrow: "0", children: [
|
|
1166
1167
|
r,
|
|
1167
|
-
/* @__PURE__ */ o(
|
|
1168
|
+
/* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } })
|
|
1168
1169
|
] }),
|
|
1169
1170
|
/* @__PURE__ */ o($, { flexGrow: "1", children: Array.isArray(a) ? /* @__PURE__ */ o(Pn, { links: a }) : a }),
|
|
1170
1171
|
/* @__PURE__ */ p($, { flexGrow: "0", children: [
|
|
1171
|
-
/* @__PURE__ */ o(
|
|
1172
|
+
/* @__PURE__ */ o(Ne, { variant: "middle", sx: { marginY: "0.5rem" } }),
|
|
1172
1173
|
/* @__PURE__ */ o(Hn, { user: d, domainCode: l, open: e }),
|
|
1173
1174
|
c && /* @__PURE__ */ o(_, { children: c })
|
|
1174
1175
|
] })
|
|
@@ -1192,7 +1193,7 @@ function zn({
|
|
|
1192
1193
|
flexGrow: 1
|
|
1193
1194
|
},
|
|
1194
1195
|
children: /* @__PURE__ */ o(
|
|
1195
|
-
|
|
1196
|
+
tt,
|
|
1196
1197
|
{
|
|
1197
1198
|
component: "main",
|
|
1198
1199
|
id: "main-content",
|
|
@@ -1213,9 +1214,9 @@ function Vn({
|
|
|
1213
1214
|
"data-testid": n,
|
|
1214
1215
|
middle: i
|
|
1215
1216
|
}) {
|
|
1216
|
-
const r =
|
|
1217
|
+
const r = st(Y), a = () => r((l) => !l), c = ae(), d = Ct();
|
|
1217
1218
|
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
|
|
1218
|
-
|
|
1219
|
+
Ke,
|
|
1219
1220
|
{
|
|
1220
1221
|
square: !0,
|
|
1221
1222
|
elevation: 0,
|
|
@@ -1259,13 +1260,13 @@ function No({
|
|
|
1259
1260
|
navBarMiddle: d,
|
|
1260
1261
|
navBarBottom: l,
|
|
1261
1262
|
user: u,
|
|
1262
|
-
domainCode:
|
|
1263
|
+
domainCode: C
|
|
1263
1264
|
}) {
|
|
1264
|
-
|
|
1265
|
+
ct([
|
|
1265
1266
|
[Y, n != null ? n : !0],
|
|
1266
|
-
[
|
|
1267
|
+
[xe, t != null ? t : ""]
|
|
1267
1268
|
]);
|
|
1268
|
-
const x =
|
|
1269
|
+
const x = Le(Y), [A] = V(xt), [g] = V(vt), k = Le(xe), [b] = V(wt), [I] = V(Fn), [y] = V(At);
|
|
1269
1270
|
return /* @__PURE__ */ p($, { children: [
|
|
1270
1271
|
/* @__PURE__ */ o(Ut, {}),
|
|
1271
1272
|
/* @__PURE__ */ o(
|
|
@@ -1282,12 +1283,12 @@ function No({
|
|
|
1282
1283
|
Wn,
|
|
1283
1284
|
{
|
|
1284
1285
|
open: x,
|
|
1285
|
-
top:
|
|
1286
|
+
top: y,
|
|
1286
1287
|
middle: d,
|
|
1287
1288
|
bottom: l,
|
|
1288
1289
|
user: u,
|
|
1289
|
-
domainCode:
|
|
1290
|
-
widthOpen:
|
|
1290
|
+
domainCode: C,
|
|
1291
|
+
widthOpen: A,
|
|
1291
1292
|
widthClosed: g,
|
|
1292
1293
|
offsetTop: b,
|
|
1293
1294
|
"data-testid": c
|
|
@@ -1313,83 +1314,83 @@ const qn = {
|
|
|
1313
1314
|
disableWindowBlurListener: !1
|
|
1314
1315
|
}, Xn = {
|
|
1315
1316
|
shouldClose: (e, t) => t !== "clickaway"
|
|
1316
|
-
},
|
|
1317
|
+
}, Ue = {
|
|
1317
1318
|
message: "",
|
|
1318
1319
|
severity: "info",
|
|
1319
1320
|
variant: "standard",
|
|
1320
1321
|
progressIndicator: void 0
|
|
1321
1322
|
// Can use 'circular' or 'linear'
|
|
1322
|
-
},
|
|
1323
|
+
}, Ge = 100, Ve = 2e3, Qn = 2e3, Yn = (() => {
|
|
1323
1324
|
let e = 0;
|
|
1324
1325
|
return () => (e += 1, e);
|
|
1325
1326
|
})(), Kn = {
|
|
1326
1327
|
borderBottomLeftRadius: "0px",
|
|
1327
1328
|
borderBottomRightRadius: "0px"
|
|
1328
|
-
}, Jn = {}, Zn = {},
|
|
1329
|
+
}, Jn = {}, Zn = {}, St = Qe(null);
|
|
1329
1330
|
function jn(a) {
|
|
1330
1331
|
var c = a, {
|
|
1331
1332
|
overrideState: e = Jn,
|
|
1332
1333
|
overrideActions: t = Zn,
|
|
1333
1334
|
shouldClose: n = Xn.shouldClose,
|
|
1334
1335
|
children: i
|
|
1335
|
-
} = c, r =
|
|
1336
|
+
} = c, r = Ee(c, [
|
|
1336
1337
|
"overrideState",
|
|
1337
1338
|
"overrideActions",
|
|
1338
1339
|
"shouldClose",
|
|
1339
1340
|
"children"
|
|
1340
1341
|
]);
|
|
1341
|
-
var
|
|
1342
|
-
const [{ open: d }, l] = E({ open: !1 }), u =
|
|
1343
|
-
l({ open:
|
|
1344
|
-
}, []), g = ne((
|
|
1345
|
-
x.current += 1, u.current.length >=
|
|
1346
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
1342
|
+
var B;
|
|
1343
|
+
const [{ open: d }, l] = E({ open: !1 }), u = he([]), C = he(Date.now()), x = he(0), A = ne((m) => {
|
|
1344
|
+
l({ open: m });
|
|
1345
|
+
}, []), g = ne((m = {}) => {
|
|
1346
|
+
x.current += 1, u.current.length >= Ge && Date.now() - C.current >= Ve && (C.current = Date.now(), console.error(
|
|
1347
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Ge}) hit ${x.current} times in last ${Ve}ms)`
|
|
1347
1348
|
), x.current = 0);
|
|
1348
|
-
const
|
|
1349
|
+
const w = s(S(s({}, Ue), {
|
|
1349
1350
|
key: Yn()
|
|
1350
|
-
}),
|
|
1351
|
-
return u.current.push(
|
|
1352
|
-
}, []), k = (
|
|
1353
|
-
const
|
|
1354
|
-
if (
|
|
1355
|
-
return
|
|
1356
|
-
},
|
|
1357
|
-
n(
|
|
1351
|
+
}), m);
|
|
1352
|
+
return u.current.push(w), u.current.length === 1 && l({ open: !0 }), w.key;
|
|
1353
|
+
}, []), k = (m = "", w = {}) => g(s({ message: m, severity: "success" }, w)), b = (m = "", w = {}) => g(s({ message: m, severity: "info" }, w)), I = (m = "", w = {}) => g(s({ message: m, severity: "warning" }, w)), y = (m = "", w = {}) => g(s({ message: m, severity: "error" }, w)), v = (m) => {
|
|
1354
|
+
const w = u.current.findIndex((L) => L.key === m);
|
|
1355
|
+
if (w !== -1)
|
|
1356
|
+
return w === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(w, 1);
|
|
1357
|
+
}, D = (m, w) => {
|
|
1358
|
+
n(m, w) && l({ open: !1 });
|
|
1359
|
+
}, H = () => {
|
|
1358
1360
|
}, N = () => {
|
|
1359
|
-
}, R = () => {
|
|
1360
1361
|
u.current.shift(), u.current.length > 0 && l({ open: !0 });
|
|
1361
|
-
}, T = (
|
|
1362
|
-
"autoHideDuration" in T && (
|
|
1363
|
-
const
|
|
1362
|
+
}, T = (B = u.current[0]) != null ? B : s({}, Ue), W = {};
|
|
1363
|
+
"autoHideDuration" in T && (W.autoHideDuration = T.autoHideDuration);
|
|
1364
|
+
const h = s(s({}, qn), r), f = s(s({
|
|
1364
1365
|
open: d,
|
|
1365
|
-
setOpen:
|
|
1366
|
+
setOpen: A,
|
|
1366
1367
|
enqueueNotification: g,
|
|
1367
1368
|
enqueueSuccessNotification: k,
|
|
1368
1369
|
enqueueInfoNotification: b,
|
|
1369
1370
|
enqueueWarningNotification: I,
|
|
1370
|
-
enqueueErrorNotification:
|
|
1371
|
-
removeNotification:
|
|
1371
|
+
enqueueErrorNotification: y,
|
|
1372
|
+
removeNotification: v
|
|
1372
1373
|
}, e), t);
|
|
1373
|
-
return /* @__PURE__ */ p(
|
|
1374
|
+
return /* @__PURE__ */ p(St.Provider, { value: f, children: [
|
|
1374
1375
|
i,
|
|
1375
1376
|
/* @__PURE__ */ o(
|
|
1376
1377
|
Gt,
|
|
1377
|
-
S(s(s({},
|
|
1378
|
+
S(s(s({}, h), W), {
|
|
1378
1379
|
open: d,
|
|
1379
|
-
onClose:
|
|
1380
|
+
onClose: D,
|
|
1380
1381
|
TransitionProps: {
|
|
1381
|
-
onExited:
|
|
1382
|
-
onExit:
|
|
1382
|
+
onExited: N,
|
|
1383
|
+
onExit: H
|
|
1383
1384
|
},
|
|
1384
1385
|
sx: { zIndex: Qn },
|
|
1385
1386
|
children: /* @__PURE__ */ p("div", { children: [
|
|
1386
1387
|
/* @__PURE__ */ o(
|
|
1387
1388
|
Vt,
|
|
1388
1389
|
{
|
|
1389
|
-
onClose: (
|
|
1390
|
+
onClose: (m) => D(m, "closeAlert"),
|
|
1390
1391
|
severity: T.severity,
|
|
1391
1392
|
variant: "filled",
|
|
1392
|
-
icon: T.progressIndicator === "circular" ? /* @__PURE__ */ o(
|
|
1393
|
+
icon: T.progressIndicator === "circular" ? /* @__PURE__ */ o(be, { size: "1em" }) : void 0,
|
|
1393
1394
|
style: T.progressIndicator === "linear" ? Kn : void 0,
|
|
1394
1395
|
children: T.message
|
|
1395
1396
|
}
|
|
@@ -1401,9 +1402,9 @@ function jn(a) {
|
|
|
1401
1402
|
] });
|
|
1402
1403
|
}
|
|
1403
1404
|
function eo() {
|
|
1404
|
-
const e =
|
|
1405
|
+
const e = Ye(St);
|
|
1405
1406
|
if (e === null)
|
|
1406
|
-
throw new
|
|
1407
|
+
throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
1407
1408
|
return e;
|
|
1408
1409
|
}
|
|
1409
1410
|
const Lo = K(
|
|
@@ -1411,14 +1412,14 @@ const Lo = K(
|
|
|
1411
1412
|
), to = sn(), _o = ({
|
|
1412
1413
|
children: e,
|
|
1413
1414
|
store: t
|
|
1414
|
-
}) => /* @__PURE__ */ o(
|
|
1415
|
-
var
|
|
1416
|
-
const
|
|
1417
|
-
JSON.parse((
|
|
1418
|
-
),
|
|
1419
|
-
(e) => e(
|
|
1415
|
+
}) => /* @__PURE__ */ o(lt, { store: t != null ? t : to, children: e }), kt = "domainCode";
|
|
1416
|
+
var Xe;
|
|
1417
|
+
const qe = M(
|
|
1418
|
+
JSON.parse((Xe = localStorage.getItem(kt)) != null ? Xe : '{"domainCode": ""}').domainCode
|
|
1419
|
+
), Dt = M(
|
|
1420
|
+
(e) => e(qe),
|
|
1420
1421
|
(e, t, n) => {
|
|
1421
|
-
t(
|
|
1422
|
+
t(qe, n), localStorage.setItem(kt, JSON.stringify({ domainCode: n }));
|
|
1422
1423
|
}
|
|
1423
1424
|
), no = {
|
|
1424
1425
|
act: "ACT",
|
|
@@ -1443,21 +1444,21 @@ const Ve = M(
|
|
|
1443
1444
|
applicationName: r,
|
|
1444
1445
|
handleLogout: a
|
|
1445
1446
|
}) => {
|
|
1446
|
-
const [c, d] = V(
|
|
1447
|
-
l ? (d(l),
|
|
1447
|
+
const [c, d] = V(Dt), [l, u] = E(c), { enqueueSuccessNotification: C } = eo(), x = i.length === 0, A = !!c && !i.includes(c) && !i.includes(l), g = !c || x || A, k = () => P(void 0, null, function* () {
|
|
1448
|
+
l ? (d(l), C(`Set domain to ${l}`), n()) : d("");
|
|
1448
1449
|
}), b = () => P(void 0, null, function* () {
|
|
1449
|
-
c && !x && !
|
|
1450
|
+
c && !x && !A ? (u(c), n()) : g && a();
|
|
1450
1451
|
});
|
|
1451
1452
|
let I;
|
|
1452
|
-
return x ? I = "Unable to retrieve your active organisations. Try logging in again." :
|
|
1453
|
-
|
|
1453
|
+
return x ? I = "Unable to retrieve your active organisations. Try logging in again." : A && (I = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
|
|
1454
|
+
gt,
|
|
1454
1455
|
{
|
|
1455
1456
|
isOpen: t,
|
|
1456
1457
|
dialogTitle: "Select an organisation",
|
|
1457
1458
|
primaryButton: {
|
|
1458
1459
|
text: "Confirm",
|
|
1459
1460
|
onClick: k,
|
|
1460
|
-
disabled: !l || x ||
|
|
1461
|
+
disabled: !l || x || A,
|
|
1461
1462
|
buttonColor: "primary"
|
|
1462
1463
|
},
|
|
1463
1464
|
secondaryButton: {
|
|
@@ -1473,24 +1474,24 @@ const Ve = M(
|
|
|
1473
1474
|
"."
|
|
1474
1475
|
] }),
|
|
1475
1476
|
/* @__PURE__ */ o(
|
|
1476
|
-
|
|
1477
|
+
we,
|
|
1477
1478
|
{
|
|
1478
1479
|
loading: e,
|
|
1479
1480
|
multiple: !1,
|
|
1480
1481
|
disableClearable: !1,
|
|
1481
1482
|
value: l !== "" ? l : null,
|
|
1482
|
-
onChange: (
|
|
1483
|
+
onChange: (y, v) => u(v != null ? v : ""),
|
|
1483
1484
|
getOptionLabel: oo,
|
|
1484
1485
|
options: [...i],
|
|
1485
|
-
renderInput: (
|
|
1486
|
-
|
|
1487
|
-
S(s({},
|
|
1486
|
+
renderInput: (y) => /* @__PURE__ */ o(
|
|
1487
|
+
Ae,
|
|
1488
|
+
S(s({}, y), {
|
|
1488
1489
|
variant: "filled",
|
|
1489
1490
|
label: "Select organisation",
|
|
1490
|
-
InputProps: S(s({},
|
|
1491
|
+
InputProps: S(s({}, y.InputProps), {
|
|
1491
1492
|
endAdornment: /* @__PURE__ */ p(_, { children: [
|
|
1492
|
-
e ? /* @__PURE__ */ o(
|
|
1493
|
-
|
|
1493
|
+
e ? /* @__PURE__ */ o(be, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
1494
|
+
y.InputProps.endAdornment
|
|
1494
1495
|
] })
|
|
1495
1496
|
})
|
|
1496
1497
|
})
|
|
@@ -1501,7 +1502,7 @@ const Ve = M(
|
|
|
1501
1502
|
]
|
|
1502
1503
|
}
|
|
1503
1504
|
);
|
|
1504
|
-
}, Ro =
|
|
1505
|
+
}, Ro = nt({
|
|
1505
1506
|
palette: {
|
|
1506
1507
|
primary: {
|
|
1507
1508
|
dark: "#00A651",
|
|
@@ -1552,7 +1553,7 @@ const Ve = M(
|
|
|
1552
1553
|
navBar: {
|
|
1553
1554
|
backgroundColor: "#E8E8E8"
|
|
1554
1555
|
}
|
|
1555
|
-
}), Ho =
|
|
1556
|
+
}), Ho = nt({
|
|
1556
1557
|
palette: {
|
|
1557
1558
|
primary: {
|
|
1558
1559
|
main: "#007236",
|
|
@@ -1606,18 +1607,18 @@ const Ve = M(
|
|
|
1606
1607
|
styleOverrides: {
|
|
1607
1608
|
root: ({ theme: e }) => ({
|
|
1608
1609
|
"&.Mui-selected": {
|
|
1609
|
-
backgroundColor:
|
|
1610
|
+
backgroundColor: ge(
|
|
1610
1611
|
e.palette.secondary.main,
|
|
1611
1612
|
e.palette.action.selectedOpacity
|
|
1612
1613
|
),
|
|
1613
1614
|
"&:hover": {
|
|
1614
|
-
backgroundColor:
|
|
1615
|
+
backgroundColor: ge(
|
|
1615
1616
|
e.palette.secondary.main,
|
|
1616
1617
|
e.palette.action.selectedOpacity
|
|
1617
1618
|
)
|
|
1618
1619
|
},
|
|
1619
1620
|
"&.Mui-focusVisible": {
|
|
1620
|
-
backgroundColor:
|
|
1621
|
+
backgroundColor: ge(
|
|
1621
1622
|
e.palette.secondary.main,
|
|
1622
1623
|
e.palette.action.focusOpacity
|
|
1623
1624
|
)
|
|
@@ -1644,17 +1645,17 @@ const Ve = M(
|
|
|
1644
1645
|
backgroundColor: "#E8E8E8"
|
|
1645
1646
|
}
|
|
1646
1647
|
}), io = {
|
|
1647
|
-
domainCode:
|
|
1648
|
+
domainCode: Dt,
|
|
1648
1649
|
navBarOpen: Y,
|
|
1649
|
-
navBarWidthOpen:
|
|
1650
|
-
navBarWidthClosed:
|
|
1651
|
-
titleText:
|
|
1652
|
-
topBarHeight:
|
|
1653
|
-
navBarTop:
|
|
1654
|
-
}, Wo = K(() => ({ children: e }) => /* @__PURE__ */ o(
|
|
1650
|
+
navBarWidthOpen: xt,
|
|
1651
|
+
navBarWidthClosed: vt,
|
|
1652
|
+
titleText: xe,
|
|
1653
|
+
topBarHeight: wt,
|
|
1654
|
+
navBarTop: At
|
|
1655
|
+
}, Wo = K(() => ({ children: e }) => /* @__PURE__ */ o(lt, { children: e })), ro = ({
|
|
1655
1656
|
initialValues: e,
|
|
1656
1657
|
children: t
|
|
1657
|
-
}) => (
|
|
1658
|
+
}) => (ct(e), /* @__PURE__ */ o(_, { children: t })), zo = K(
|
|
1658
1659
|
(e) => ({ children: t }) => /* @__PURE__ */ o(
|
|
1659
1660
|
ro,
|
|
1660
1661
|
{
|
|
@@ -1672,18 +1673,18 @@ const Ve = M(
|
|
|
1672
1673
|
return /* @__PURE__ */ o(on, { client: t, children: e });
|
|
1673
1674
|
});
|
|
1674
1675
|
export {
|
|
1675
|
-
|
|
1676
|
+
gt as AgDialog,
|
|
1676
1677
|
No as AppLayout,
|
|
1677
1678
|
_o as AtomProvider,
|
|
1678
1679
|
Fo as AuthGuard,
|
|
1679
|
-
|
|
1680
|
-
|
|
1680
|
+
St as Context,
|
|
1681
|
+
ke as ContextError,
|
|
1681
1682
|
Mo as DomainCodeDialog,
|
|
1682
1683
|
Do as ExampleComponent,
|
|
1683
1684
|
Oo as FetchAutocomplete,
|
|
1684
1685
|
ro as HydrateAtoms,
|
|
1685
|
-
|
|
1686
|
-
|
|
1686
|
+
ut as NAVBAR_WIDTH_CLOSED,
|
|
1687
|
+
dt as NAVBAR_WIDTH_OPENED,
|
|
1687
1688
|
To as NavBar,
|
|
1688
1689
|
$o as NavBarDarkStyledList,
|
|
1689
1690
|
Io as NavBarLightStyledList,
|
|
@@ -1694,19 +1695,19 @@ export {
|
|
|
1694
1695
|
Eo as SingleAutocomplete,
|
|
1695
1696
|
to as atomStore,
|
|
1696
1697
|
mn as buildNavBarState,
|
|
1697
|
-
|
|
1698
|
+
Dt as domainCodeAtom,
|
|
1698
1699
|
Ro as fed21Theme,
|
|
1699
1700
|
Cn as getAuth0Expiry,
|
|
1700
1701
|
Ho as internalAgSystemsTheme,
|
|
1701
1702
|
q as navBarClasses,
|
|
1702
1703
|
Y as navBarOpenAtom,
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1704
|
+
At as navBarTopAtom,
|
|
1705
|
+
vt as navBarWidthClosedAtom,
|
|
1706
|
+
xt as navBarWidthOpenAtom,
|
|
1707
|
+
xe as titleTextAtom,
|
|
1708
|
+
wt as topBarHeightAtom,
|
|
1708
1709
|
Fn as topBarMiddleAtom,
|
|
1709
|
-
|
|
1710
|
+
ft as useAutocompleteOptions,
|
|
1710
1711
|
fn as useNavBar,
|
|
1711
1712
|
eo as useSaladBar,
|
|
1712
1713
|
Wo as withAtomProvider,
|