@australiangreens/ag-internal-components 0.3.19 → 0.4.0
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/NavBarLink/NavBarLink.d.ts +22 -0
- package/dist/components/NavBarLink/NavBarLink.d.ts.map +1 -0
- package/dist/components/NavBarLink/index.d.ts +3 -0
- package/dist/components/NavBarLink/index.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 +687 -605
- package/dist/esm/index.js.map +1 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts +3 -1
- package/dist/layouts/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts +2 -2
- package/dist/layouts/AppLayout/NavBar/LinksMenu.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts +2 -2
- package/dist/layouts/AppLayout/NavBar/NavBar.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/SettingsEtcPlaceholder.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/types.d.ts +1 -1
- package/dist/layouts/AppLayout/NavBar/types.d.ts.map +1 -1
- package/dist/layouts/AppLayout/PageContainer.d.ts.map +1 -1
- package/dist/layouts/AppLayout/TopBar.d.ts +3 -1
- package/dist/layouts/AppLayout/TopBar.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,147 +1,148 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ie = (e, t, o) => t in e ?
|
|
1
|
+
var lt = Object.defineProperty, ct = Object.defineProperties;
|
|
2
|
+
var dt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Z = Object.getOwnPropertySymbols;
|
|
4
|
+
var fe = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ie = (e, t, o) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, d = (e, t) => {
|
|
6
6
|
for (var o in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var o of
|
|
10
|
-
|
|
7
|
+
fe.call(t, o) && ie(e, o, t[o]);
|
|
8
|
+
if (Z)
|
|
9
|
+
for (var o of Z(t))
|
|
10
|
+
me.call(t, o) && ie(e, o, t[o]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, F = (e, t) => ct(e, dt(t));
|
|
13
|
+
var re = (e, t) => {
|
|
14
14
|
var o = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var
|
|
19
|
-
t.indexOf(
|
|
15
|
+
for (var i in e)
|
|
16
|
+
fe.call(e, i) && t.indexOf(i) < 0 && (o[i] = e[i]);
|
|
17
|
+
if (e != null && Z)
|
|
18
|
+
for (var i of Z(e))
|
|
19
|
+
t.indexOf(i) < 0 && me.call(e, i) && (o[i] = e[i]);
|
|
20
20
|
return o;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var s = (
|
|
22
|
+
var ge = (e, t, o) => ie(e, typeof t != "symbol" ? t + "" : t, o);
|
|
23
|
+
var L = (e, t, o) => new Promise((i, r) => {
|
|
24
|
+
var s = (c) => {
|
|
25
25
|
try {
|
|
26
|
-
a(o.next(
|
|
27
|
-
} catch (
|
|
28
|
-
r(
|
|
26
|
+
a(o.next(c));
|
|
27
|
+
} catch (l) {
|
|
28
|
+
r(l);
|
|
29
29
|
}
|
|
30
|
-
}, u = (
|
|
30
|
+
}, u = (c) => {
|
|
31
31
|
try {
|
|
32
|
-
a(o.throw(
|
|
33
|
-
} catch (
|
|
34
|
-
r(
|
|
32
|
+
a(o.throw(c));
|
|
33
|
+
} catch (l) {
|
|
34
|
+
r(l);
|
|
35
35
|
}
|
|
36
|
-
}, a = (
|
|
36
|
+
}, a = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, u);
|
|
37
37
|
a((o = o.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { jsxs as
|
|
40
|
-
import { useState as
|
|
41
|
-
import { Typography as I, Button as
|
|
42
|
-
import { Cancel as
|
|
43
|
-
import { useQuery as
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import { useAuth0 as
|
|
47
|
-
import { Buffer as
|
|
48
|
-
import
|
|
49
|
-
import { atom as
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
39
|
+
import { jsxs as f, Fragment as $, jsx as n } from "react/jsx-runtime";
|
|
40
|
+
import { useState as H, createElement as le, useEffect as xe, useMemo as ut, createContext as pt, useRef as ae, useCallback as Ae, useContext as ht } from "react";
|
|
41
|
+
import { Typography as I, Button as K, Paper as Be, Dialog as Re, LinearProgress as Ue, DialogTitle as He, DialogContent as We, DialogActions as qe, Autocomplete as ce, TextField as de, CircularProgress as te, Box as T, Chip as ft, Tooltip as ze, Stack as mt, useTheme as oe, useMediaQuery as gt, ListItemButton as Ce, ListItemIcon as xt, Fade as Ge, ListItemText as Se, ListItemSecondaryAction as At, Collapse as Ve, List as Ct, Snackbar as St, Alert as vt, FormHelperText as wt, Drawer as yt, Avatar as ve, Skeleton as we, Toolbar as kt, Divider as ye, Container as Dt, IconButton as bt } from "@mui/material";
|
|
42
|
+
import { Cancel as Et, ArrowDropDown as Ft, ExpandLess as _t, ExpandMore as Pt, ViewHeadline as Tt } from "@mui/icons-material";
|
|
43
|
+
import { useQuery as Ke } from "@tanstack/react-query";
|
|
44
|
+
import Nt from "autosuggest-highlight/match";
|
|
45
|
+
import It from "autosuggest-highlight/parse";
|
|
46
|
+
import { useAuth0 as ue } from "@auth0/auth0-react";
|
|
47
|
+
import { Buffer as Lt } from "buffer";
|
|
48
|
+
import $t from "@mui/material/Skeleton";
|
|
49
|
+
import { atom as O, useAtom as U, useSetAtom as Xe, useAtomValue as ke } from "jotai";
|
|
50
|
+
import { useLocation as Mt, Link as De } from "react-router";
|
|
51
|
+
import { createHelper as Ot } from "souvlaki";
|
|
52
|
+
import Bt from "@mui/material/CssBaseline";
|
|
53
|
+
import be from "@mui/material/Box";
|
|
54
|
+
import { useHydrateAtoms as Rt } from "jotai/utils";
|
|
55
|
+
import { styled as Ye, createTheme as Qe, alpha as se } from "@mui/material/styles";
|
|
56
|
+
import Ee from "react-avatar";
|
|
57
|
+
function Go({ text: e }) {
|
|
58
|
+
const [t, o] = H(0);
|
|
59
|
+
return /* @__PURE__ */ f($, { children: [
|
|
60
|
+
/* @__PURE__ */ n(I, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
61
|
+
/* @__PURE__ */ n(I, { variant: "caption", display: "block", children: /* @__PURE__ */ n("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
|
|
62
|
+
/* @__PURE__ */ n(
|
|
63
|
+
K,
|
|
63
64
|
{
|
|
64
65
|
variant: "outlined",
|
|
65
|
-
onClick: () => o((
|
|
66
|
+
onClick: () => o((i) => i + 1),
|
|
66
67
|
"aria-label": "Increment",
|
|
67
68
|
children: "Hello I am a button"
|
|
68
69
|
}
|
|
69
70
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ f("p", { children: [
|
|
71
72
|
"This is some text: ",
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ n("span", { children: e })
|
|
73
74
|
] }),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ f(Be, { children: [
|
|
75
76
|
"This number will incremember when button pressed: ",
|
|
76
77
|
t
|
|
77
78
|
] })
|
|
78
79
|
] });
|
|
79
80
|
}
|
|
80
|
-
const
|
|
81
|
+
const Je = ({
|
|
81
82
|
isOpen: e,
|
|
82
83
|
dialogTitle: t,
|
|
83
84
|
children: o,
|
|
84
|
-
maxWidth:
|
|
85
|
+
maxWidth: i,
|
|
85
86
|
primaryButton: r,
|
|
86
87
|
secondaryButton: s,
|
|
87
88
|
additionalButtons: u,
|
|
88
89
|
onClose: a,
|
|
89
|
-
sx:
|
|
90
|
-
"data-testid":
|
|
91
|
-
disableCloseOnBackdropOrEscape:
|
|
92
|
-
isLoading:
|
|
90
|
+
sx: c,
|
|
91
|
+
"data-testid": l,
|
|
92
|
+
disableCloseOnBackdropOrEscape: g = !1,
|
|
93
|
+
isLoading: x = !1
|
|
93
94
|
}) => {
|
|
94
|
-
var
|
|
95
|
-
const [
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
|
|
95
|
+
var C, S;
|
|
96
|
+
const [v, m] = H(!1);
|
|
97
|
+
return /* @__PURE__ */ f(
|
|
98
|
+
Re,
|
|
98
99
|
{
|
|
99
100
|
open: e,
|
|
100
|
-
onClose: (h,
|
|
101
|
-
|
|
101
|
+
onClose: (h, w) => L(null, null, function* () {
|
|
102
|
+
g && (w === "backdropClick" || w === "escapeKeyDown") || v || (s != null && s.onClick ? yield s.onClick() : a());
|
|
102
103
|
}),
|
|
103
104
|
fullWidth: !0,
|
|
104
|
-
maxWidth:
|
|
105
|
-
"data-testid":
|
|
106
|
-
sx:
|
|
105
|
+
maxWidth: i != null ? i : "xs",
|
|
106
|
+
"data-testid": l,
|
|
107
|
+
sx: c,
|
|
107
108
|
children: [
|
|
108
|
-
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
109
|
+
x && /* @__PURE__ */ n(Ue, { sx: { height: "4px", marginBottom: "-4px" } }),
|
|
110
|
+
/* @__PURE__ */ n(He, { children: t }),
|
|
111
|
+
/* @__PURE__ */ n(We, { sx: { "& > :last-child": { marginBottom: 0 } }, children: o }),
|
|
112
|
+
/* @__PURE__ */ f(qe, { children: [
|
|
113
|
+
/* @__PURE__ */ n(
|
|
114
|
+
K,
|
|
114
115
|
{
|
|
115
|
-
onClick: (
|
|
116
|
+
onClick: (C = s == null ? void 0 : s.onClick) != null ? C : a,
|
|
116
117
|
"data-testid": s == null ? void 0 : s.testId,
|
|
117
|
-
disabled: (s == null ? void 0 : s.disabled) ||
|
|
118
|
+
disabled: (s == null ? void 0 : s.disabled) || v,
|
|
118
119
|
color: s == null ? void 0 : s.buttonColor,
|
|
119
|
-
children: (
|
|
120
|
+
children: (S = s == null ? void 0 : s.text) != null ? S : "Cancel"
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
|
-
u && u.map((h,
|
|
123
|
-
var
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
123
|
+
u && u.map((h, w) => {
|
|
124
|
+
var E;
|
|
125
|
+
return /* @__PURE__ */ n(
|
|
126
|
+
K,
|
|
126
127
|
{
|
|
127
128
|
onClick: h == null ? void 0 : h.onClick,
|
|
128
129
|
"data-testid": h == null ? void 0 : h.testId,
|
|
129
|
-
disabled: (h == null ? void 0 : h.disabled) ||
|
|
130
|
+
disabled: (h == null ? void 0 : h.disabled) || v,
|
|
130
131
|
color: h == null ? void 0 : h.buttonColor,
|
|
131
|
-
children: (
|
|
132
|
+
children: (E = h.text) != null ? E : `Button ${w}`
|
|
132
133
|
},
|
|
133
|
-
|
|
134
|
+
w
|
|
134
135
|
);
|
|
135
136
|
}),
|
|
136
|
-
r && /* @__PURE__ */
|
|
137
|
-
|
|
137
|
+
r && /* @__PURE__ */ n(
|
|
138
|
+
K,
|
|
138
139
|
{
|
|
139
|
-
onClick: () =>
|
|
140
|
+
onClick: () => L(null, null, function* () {
|
|
140
141
|
var h;
|
|
141
|
-
|
|
142
|
+
m(!0), yield (h = r.onClick) == null ? void 0 : h.call(r), m(!1);
|
|
142
143
|
}),
|
|
143
144
|
"data-testid": r.testId,
|
|
144
|
-
disabled: r.disabled ||
|
|
145
|
+
disabled: r.disabled || v,
|
|
145
146
|
color: r == null ? void 0 : r.buttonColor,
|
|
146
147
|
children: r.text
|
|
147
148
|
}
|
|
@@ -150,7 +151,7 @@ const We = ({
|
|
|
150
151
|
]
|
|
151
152
|
}
|
|
152
153
|
);
|
|
153
|
-
},
|
|
154
|
+
}, Ut = {
|
|
154
155
|
popper: {
|
|
155
156
|
modifiers: [
|
|
156
157
|
{
|
|
@@ -161,179 +162,179 @@ const We = ({
|
|
|
161
162
|
}
|
|
162
163
|
]
|
|
163
164
|
}
|
|
164
|
-
},
|
|
165
|
+
}, Ze = {
|
|
165
166
|
right: 2
|
|
166
|
-
},
|
|
167
|
+
}, je = ({
|
|
167
168
|
minLength: e,
|
|
168
169
|
preLoadedOptions: t,
|
|
169
170
|
lookup: o,
|
|
170
|
-
label:
|
|
171
|
+
label: i,
|
|
171
172
|
inputValue: r
|
|
172
|
-
}) =>
|
|
173
|
+
}) => Ke({
|
|
173
174
|
queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
|
|
174
175
|
(s) => s.label.toLowerCase().includes(r.toLowerCase())
|
|
175
176
|
) : o(r),
|
|
176
|
-
queryKey: ["autocomplete",
|
|
177
|
+
queryKey: ["autocomplete", i, r]
|
|
177
178
|
});
|
|
178
|
-
function
|
|
179
|
-
lookup: e = () =>
|
|
179
|
+
function Vo({
|
|
180
|
+
lookup: e = () => L(null, null, function* () {
|
|
180
181
|
}),
|
|
181
182
|
enableHighlighting: t = !0,
|
|
182
183
|
onChange: o,
|
|
183
|
-
onInputChange:
|
|
184
|
+
onInputChange: i,
|
|
184
185
|
minLength: r = 0,
|
|
185
186
|
label: s,
|
|
186
187
|
value: u,
|
|
187
188
|
"data-testid": a,
|
|
188
|
-
sx:
|
|
189
|
-
boxSx:
|
|
190
|
-
textFieldColor:
|
|
191
|
-
textFieldVariant:
|
|
192
|
-
textFieldFocused:
|
|
193
|
-
textFieldSx:
|
|
194
|
-
loadingText:
|
|
195
|
-
noOptionsText:
|
|
196
|
-
popupIcon: h = /* @__PURE__ */
|
|
197
|
-
error:
|
|
198
|
-
helperText:
|
|
199
|
-
preLoadedOptions:
|
|
200
|
-
disablePortal:
|
|
201
|
-
disableIconFlip:
|
|
202
|
-
chipToolTipSlotProps:
|
|
203
|
-
placeholderText:
|
|
189
|
+
sx: c,
|
|
190
|
+
boxSx: l,
|
|
191
|
+
textFieldColor: g,
|
|
192
|
+
textFieldVariant: x = "filled",
|
|
193
|
+
textFieldFocused: v,
|
|
194
|
+
textFieldSx: m,
|
|
195
|
+
loadingText: C = "Loading...",
|
|
196
|
+
noOptionsText: S = "No options",
|
|
197
|
+
popupIcon: h = /* @__PURE__ */ n(Ft, {}),
|
|
198
|
+
error: w = !1,
|
|
199
|
+
helperText: E = "",
|
|
200
|
+
preLoadedOptions: _ = void 0,
|
|
201
|
+
disablePortal: W = !1,
|
|
202
|
+
disableIconFlip: D = !1,
|
|
203
|
+
chipToolTipSlotProps: N = Ut,
|
|
204
|
+
placeholderText: B = void 0,
|
|
204
205
|
onRightClick: X = () => {
|
|
205
206
|
},
|
|
206
|
-
disableDefaultRightClickBehaviour:
|
|
207
|
+
disableDefaultRightClickBehaviour: q = !1,
|
|
207
208
|
readOnly: R,
|
|
208
|
-
hideInputEndAdornment:
|
|
209
|
+
hideInputEndAdornment: b
|
|
209
210
|
}) {
|
|
210
|
-
const [
|
|
211
|
-
const
|
|
212
|
-
o(
|
|
213
|
-
}, { data:
|
|
214
|
-
inputValue:
|
|
211
|
+
const [y, z] = H(""), J = (p, k) => {
|
|
212
|
+
const M = u.filter((ne) => ne.id !== k);
|
|
213
|
+
o(M, "delete", p);
|
|
214
|
+
}, { data: A, isLoading: P } = je({
|
|
215
|
+
inputValue: y,
|
|
215
216
|
label: s,
|
|
216
217
|
lookup: e,
|
|
217
218
|
minLength: r,
|
|
218
|
-
preLoadedOptions:
|
|
219
|
-
}),
|
|
220
|
-
return /* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
219
|
+
preLoadedOptions: _
|
|
220
|
+
}), G = y.length >= r;
|
|
221
|
+
return /* @__PURE__ */ f("div", { "data-testid": a, children: [
|
|
222
|
+
/* @__PURE__ */ n(
|
|
223
|
+
ce,
|
|
223
224
|
{
|
|
224
|
-
sx: d(d({},
|
|
225
|
+
sx: d(d({}, c), D ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
225
226
|
"data-testid": a ? `${a}:Autocomplete` : void 0,
|
|
226
|
-
disablePortal:
|
|
227
|
+
disablePortal: W,
|
|
227
228
|
multiple: !0,
|
|
228
229
|
getOptionLabel: (p) => typeof p == "string" ? p : p.label,
|
|
229
|
-
loading:
|
|
230
|
-
options: [...u, ...
|
|
230
|
+
loading: G ? P : !1,
|
|
231
|
+
options: [...u, ...A != null ? A : []],
|
|
231
232
|
filterSelectedOptions: !0,
|
|
232
233
|
includeInputInList: !0,
|
|
233
234
|
value: u,
|
|
234
|
-
onChange: (p,
|
|
235
|
-
o(
|
|
235
|
+
onChange: (p, k, M) => {
|
|
236
|
+
o(k, M, p);
|
|
236
237
|
},
|
|
237
|
-
onInputChange: (p,
|
|
238
|
-
|
|
238
|
+
onInputChange: (p, k, M) => {
|
|
239
|
+
z(k), i && i(u, M, p);
|
|
239
240
|
},
|
|
240
|
-
noOptionsText:
|
|
241
|
-
loadingText:
|
|
241
|
+
noOptionsText: G ? S : "Start typing to search",
|
|
242
|
+
loadingText: C,
|
|
242
243
|
popupIcon: h,
|
|
243
|
-
renderInput: (p) => /* @__PURE__ */
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
renderInput: (p) => /* @__PURE__ */ n(
|
|
245
|
+
de,
|
|
246
|
+
F(d({}, p), {
|
|
246
247
|
label: s,
|
|
247
248
|
fullWidth: !0,
|
|
248
|
-
variant:
|
|
249
|
-
error:
|
|
250
|
-
helperText:
|
|
249
|
+
variant: x,
|
|
250
|
+
error: w,
|
|
251
|
+
helperText: E,
|
|
251
252
|
autoComplete: "off",
|
|
252
253
|
slotProps: {
|
|
253
|
-
input:
|
|
254
|
-
endAdornment:
|
|
255
|
-
|
|
254
|
+
input: F(d({}, p.InputProps), {
|
|
255
|
+
endAdornment: b ? void 0 : /* @__PURE__ */ f($, { children: [
|
|
256
|
+
P ? /* @__PURE__ */ n(te, { color: "inherit", size: 20 }) : null,
|
|
256
257
|
p.InputProps.endAdornment
|
|
257
258
|
] })
|
|
258
259
|
})
|
|
259
260
|
},
|
|
260
261
|
"data-testid": a ? `${a}:Autocomplete:TextField` : void 0,
|
|
261
|
-
onKeyDown: (
|
|
262
|
-
(
|
|
262
|
+
onKeyDown: (k) => {
|
|
263
|
+
(k.key === "Backspace" || k.key === "Delete") && k.stopPropagation();
|
|
263
264
|
},
|
|
264
|
-
color:
|
|
265
|
-
placeholder:
|
|
266
|
-
sx:
|
|
267
|
-
focused:
|
|
265
|
+
color: g,
|
|
266
|
+
placeholder: B,
|
|
267
|
+
sx: m,
|
|
268
|
+
focused: v
|
|
268
269
|
})
|
|
269
270
|
),
|
|
270
271
|
renderValue: () => null,
|
|
271
|
-
isOptionEqualToValue: (p,
|
|
272
|
-
renderOption: (p,
|
|
272
|
+
isOptionEqualToValue: (p, k) => p.id === k.id,
|
|
273
|
+
renderOption: (p, k, M) => {
|
|
273
274
|
if (t) {
|
|
274
|
-
const ne =
|
|
275
|
+
const ne = Nt(k.label, M.inputValue, {
|
|
275
276
|
insideWords: !0,
|
|
276
277
|
findAllOccurrences: !0
|
|
277
|
-
}),
|
|
278
|
-
return /* @__PURE__ */
|
|
278
|
+
}), at = It(k.label, ne);
|
|
279
|
+
return /* @__PURE__ */ le(
|
|
279
280
|
"li",
|
|
280
|
-
|
|
281
|
-
key:
|
|
282
|
-
"data-testid": a ? `${a}:Autocomplete:option(${
|
|
281
|
+
F(d({}, p), {
|
|
282
|
+
key: k.id,
|
|
283
|
+
"data-testid": a ? `${a}:Autocomplete:option(${k.id.toString()})` : void 0
|
|
283
284
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ n("div", { children: at.map((he, st) => /* @__PURE__ */ n(
|
|
285
286
|
"span",
|
|
286
287
|
{
|
|
287
288
|
style: {
|
|
288
|
-
fontWeight:
|
|
289
|
+
fontWeight: he.highlight ? 700 : 400
|
|
289
290
|
},
|
|
290
|
-
children:
|
|
291
|
+
children: he.text
|
|
291
292
|
},
|
|
292
|
-
|
|
293
|
+
st
|
|
293
294
|
)) })
|
|
294
295
|
);
|
|
295
296
|
} else
|
|
296
|
-
return /* @__PURE__ */
|
|
297
|
+
return /* @__PURE__ */ le(
|
|
297
298
|
"li",
|
|
298
|
-
|
|
299
|
-
key:
|
|
300
|
-
"data-testid": a ? `${a}:option(${
|
|
299
|
+
F(d({}, p), {
|
|
300
|
+
key: k.id,
|
|
301
|
+
"data-testid": a ? `${a}:option(${k.id.toString()})` : void 0
|
|
301
302
|
}),
|
|
302
|
-
|
|
303
|
+
k.label
|
|
303
304
|
);
|
|
304
305
|
},
|
|
305
306
|
onMouseDownCapture: (p) => {
|
|
306
|
-
p.button ===
|
|
307
|
+
p.button === Ze.right && q && (p.preventDefault(), p.stopPropagation());
|
|
307
308
|
},
|
|
308
309
|
onContextMenuCapture: (p) => {
|
|
309
|
-
|
|
310
|
+
q && (p.preventDefault(), p.stopPropagation()), X(p);
|
|
310
311
|
},
|
|
311
312
|
readOnly: R
|
|
312
313
|
}
|
|
313
314
|
),
|
|
314
|
-
u.length > 0 && /* @__PURE__ */
|
|
315
|
-
var
|
|
316
|
-
return /* @__PURE__ */
|
|
317
|
-
|
|
315
|
+
u.length > 0 && /* @__PURE__ */ n(T, { sx: l, children: u.map((p) => {
|
|
316
|
+
var k;
|
|
317
|
+
return /* @__PURE__ */ n(
|
|
318
|
+
ft,
|
|
318
319
|
{
|
|
319
320
|
sx: {
|
|
320
321
|
marginTop: 1,
|
|
321
322
|
marginRight: 1,
|
|
322
323
|
height: "auto"
|
|
323
324
|
},
|
|
324
|
-
label: /* @__PURE__ */
|
|
325
|
-
|
|
325
|
+
label: /* @__PURE__ */ n(
|
|
326
|
+
ze,
|
|
326
327
|
{
|
|
327
|
-
title: (
|
|
328
|
+
title: (k = p.tooltipContent) != null ? k : "",
|
|
328
329
|
placement: "bottom-start",
|
|
329
|
-
slotProps:
|
|
330
|
-
children: /* @__PURE__ */
|
|
330
|
+
slotProps: N,
|
|
331
|
+
children: /* @__PURE__ */ n(I, { style: { whiteSpace: "normal" }, children: p.chipLabel ? p.chipLabel : p.label })
|
|
331
332
|
}
|
|
332
333
|
),
|
|
333
334
|
"data-testid": a ? `${a}:Chip(${p.id.toString()})` : void 0,
|
|
334
|
-
onDelete: (
|
|
335
|
-
deleteIcon: /* @__PURE__ */
|
|
336
|
-
|
|
335
|
+
onDelete: (M) => J(M, p.id),
|
|
336
|
+
deleteIcon: /* @__PURE__ */ n(
|
|
337
|
+
Et,
|
|
337
338
|
{
|
|
338
339
|
"data-testid": a ? `${a}:Chip(${p.id.toString()}):deleteIcon` : void 0
|
|
339
340
|
}
|
|
@@ -344,141 +345,141 @@ function Mo({
|
|
|
344
345
|
}) })
|
|
345
346
|
] });
|
|
346
347
|
}
|
|
347
|
-
const
|
|
348
|
-
lookup: e = () =>
|
|
348
|
+
const Ko = /MUI: The value provided to.*is invalid/i, Xo = ({
|
|
349
|
+
lookup: e = () => L(null, null, function* () {
|
|
349
350
|
}),
|
|
350
351
|
onChange: t,
|
|
351
352
|
onInputChange: o,
|
|
352
|
-
label:
|
|
353
|
+
label: i,
|
|
353
354
|
value: r,
|
|
354
355
|
sx: s,
|
|
355
356
|
textFieldColor: u,
|
|
356
357
|
textFieldVariant: a = "filled",
|
|
357
|
-
textFieldFocused:
|
|
358
|
-
textFieldSx:
|
|
359
|
-
error:
|
|
360
|
-
"data-testid":
|
|
361
|
-
loadingText:
|
|
362
|
-
noOptionsText:
|
|
363
|
-
minLength:
|
|
364
|
-
disablePortal:
|
|
358
|
+
textFieldFocused: c,
|
|
359
|
+
textFieldSx: l,
|
|
360
|
+
error: g = !1,
|
|
361
|
+
"data-testid": x,
|
|
362
|
+
loadingText: v = "Loading...",
|
|
363
|
+
noOptionsText: m = "No options",
|
|
364
|
+
minLength: C = 3,
|
|
365
|
+
disablePortal: S = !1,
|
|
365
366
|
preLoadedOptions: h,
|
|
366
|
-
helperText:
|
|
367
|
-
disabled:
|
|
368
|
-
popupIcon:
|
|
369
|
-
disableIconFlip:
|
|
370
|
-
placeholderText:
|
|
371
|
-
onRightClick:
|
|
367
|
+
helperText: w = "",
|
|
368
|
+
disabled: E,
|
|
369
|
+
popupIcon: _,
|
|
370
|
+
disableIconFlip: W,
|
|
371
|
+
placeholderText: D = void 0,
|
|
372
|
+
onRightClick: N = () => {
|
|
372
373
|
},
|
|
373
|
-
disableDefaultRightClickBehaviour:
|
|
374
|
+
disableDefaultRightClickBehaviour: B = !1,
|
|
374
375
|
readOnly: X,
|
|
375
|
-
hideInputEndAdornment:
|
|
376
|
+
hideInputEndAdornment: q
|
|
376
377
|
}) => {
|
|
377
|
-
const [R,
|
|
378
|
+
const [R, b] = H(""), { data: y, isLoading: z } = je({
|
|
378
379
|
inputValue: R,
|
|
379
|
-
label:
|
|
380
|
+
label: i,
|
|
380
381
|
lookup: e,
|
|
381
|
-
minLength:
|
|
382
|
+
minLength: C != null ? C : 0,
|
|
382
383
|
preLoadedOptions: h
|
|
383
|
-
}),
|
|
384
|
-
return /* @__PURE__ */
|
|
385
|
-
|
|
384
|
+
}), J = R.length >= C;
|
|
385
|
+
return /* @__PURE__ */ n("div", { "data-testid": x, children: /* @__PURE__ */ n(
|
|
386
|
+
mt,
|
|
386
387
|
{
|
|
387
388
|
direction: "row",
|
|
388
389
|
spacing: 1,
|
|
389
|
-
onMouseDownCapture: (
|
|
390
|
-
|
|
390
|
+
onMouseDownCapture: (A) => {
|
|
391
|
+
A.button === Ze.right && B && (A.preventDefault(), A.stopPropagation());
|
|
391
392
|
},
|
|
392
|
-
onContextMenuCapture: (
|
|
393
|
-
|
|
393
|
+
onContextMenuCapture: (A) => {
|
|
394
|
+
B && (A.preventDefault(), A.stopPropagation()), N(A);
|
|
394
395
|
},
|
|
395
|
-
children: /* @__PURE__ */
|
|
396
|
-
|
|
396
|
+
children: /* @__PURE__ */ n(
|
|
397
|
+
ce,
|
|
397
398
|
{
|
|
398
|
-
sx: d(d({}, s),
|
|
399
|
-
"data-testid":
|
|
400
|
-
loading:
|
|
401
|
-
options:
|
|
402
|
-
onChange: (
|
|
403
|
-
t(
|
|
399
|
+
sx: d(d({}, s), W ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
400
|
+
"data-testid": x ? `${x}:Autocomplete` : void 0,
|
|
401
|
+
loading: J ? z : !1,
|
|
402
|
+
options: y != null ? y : [],
|
|
403
|
+
onChange: (A, P, G) => {
|
|
404
|
+
t(A, P, G);
|
|
404
405
|
},
|
|
405
|
-
disablePortal:
|
|
406
|
-
filterOptions: (
|
|
406
|
+
disablePortal: S,
|
|
407
|
+
filterOptions: (A) => A,
|
|
407
408
|
value: r,
|
|
408
|
-
noOptionsText:
|
|
409
|
-
loadingText:
|
|
410
|
-
getOptionLabel: (
|
|
411
|
-
popupIcon:
|
|
412
|
-
renderInput: (
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
"data-testid":
|
|
416
|
-
},
|
|
409
|
+
noOptionsText: J ? m : "Start typing to search",
|
|
410
|
+
loadingText: v,
|
|
411
|
+
getOptionLabel: (A) => A.label,
|
|
412
|
+
popupIcon: _,
|
|
413
|
+
renderInput: (A) => /* @__PURE__ */ n(
|
|
414
|
+
de,
|
|
415
|
+
F(d({
|
|
416
|
+
"data-testid": x ? `${x}:Autocomplete:TextField` : void 0
|
|
417
|
+
}, A), {
|
|
417
418
|
variant: a,
|
|
418
|
-
label:
|
|
419
|
+
label: i,
|
|
419
420
|
color: u,
|
|
420
|
-
error:
|
|
421
|
-
helperText:
|
|
421
|
+
error: g,
|
|
422
|
+
helperText: w,
|
|
422
423
|
autoComplete: "off",
|
|
423
424
|
slotProps: {
|
|
424
|
-
input:
|
|
425
|
-
endAdornment:
|
|
426
|
-
|
|
427
|
-
|
|
425
|
+
input: F(d({}, A.InputProps), {
|
|
426
|
+
endAdornment: q ? void 0 : /* @__PURE__ */ f($, { children: [
|
|
427
|
+
z ? /* @__PURE__ */ n(te, { color: "inherit", size: 20 }) : null,
|
|
428
|
+
A.InputProps.endAdornment
|
|
428
429
|
] })
|
|
429
430
|
})
|
|
430
431
|
},
|
|
431
|
-
placeholder:
|
|
432
|
-
sx:
|
|
433
|
-
focused:
|
|
432
|
+
placeholder: D,
|
|
433
|
+
sx: l,
|
|
434
|
+
focused: c
|
|
434
435
|
})
|
|
435
436
|
),
|
|
436
|
-
isOptionEqualToValue: (
|
|
437
|
-
onInputChange: (
|
|
438
|
-
|
|
437
|
+
isOptionEqualToValue: (A, P) => A.id === P.id,
|
|
438
|
+
onInputChange: (A, P, G) => {
|
|
439
|
+
b(P), o && o(P, G, A);
|
|
439
440
|
},
|
|
440
|
-
renderOption: (
|
|
441
|
+
renderOption: (A, P) => /* @__PURE__ */ le(
|
|
441
442
|
"li",
|
|
442
|
-
|
|
443
|
-
key:
|
|
444
|
-
"data-testid":
|
|
443
|
+
F(d({}, A), {
|
|
444
|
+
key: P.id,
|
|
445
|
+
"data-testid": x ? `${x}:Autocomplete:option(${P.id.toString()})` : void 0
|
|
445
446
|
}),
|
|
446
|
-
|
|
447
|
+
P.label
|
|
447
448
|
),
|
|
448
|
-
disabled:
|
|
449
|
+
disabled: E,
|
|
449
450
|
readOnly: X
|
|
450
451
|
}
|
|
451
452
|
)
|
|
452
453
|
}
|
|
453
454
|
) });
|
|
454
|
-
},
|
|
455
|
+
}, Ht = (e) => {
|
|
455
456
|
if (!e)
|
|
456
457
|
return -1;
|
|
457
458
|
try {
|
|
458
|
-
const o = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"),
|
|
459
|
-
|
|
459
|
+
const o = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
460
|
+
Lt.from(o, "base64").toString("utf8").split("").map(function(s) {
|
|
460
461
|
return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
|
|
461
462
|
}).join("")
|
|
462
|
-
), r = JSON.parse(
|
|
463
|
+
), r = JSON.parse(i);
|
|
463
464
|
return r != null && r.exp ? r.exp : -1;
|
|
464
465
|
} catch (t) {
|
|
465
466
|
return -1;
|
|
466
467
|
}
|
|
467
|
-
},
|
|
468
|
+
}, Yo = ({
|
|
468
469
|
open: e = !1,
|
|
469
470
|
closeHandler: t,
|
|
470
471
|
setAuth0ExpiryTime: o
|
|
471
472
|
}) => {
|
|
472
|
-
const { logout:
|
|
473
|
-
return /* @__PURE__ */
|
|
474
|
-
|
|
473
|
+
const { logout: i, getAccessTokenSilently: r } = ue();
|
|
474
|
+
return /* @__PURE__ */ n(
|
|
475
|
+
Je,
|
|
475
476
|
{
|
|
476
477
|
isOpen: e,
|
|
477
478
|
primaryButton: {
|
|
478
479
|
text: "Continue",
|
|
479
|
-
onClick: () =>
|
|
480
|
-
const
|
|
481
|
-
o(
|
|
480
|
+
onClick: () => L(null, null, function* () {
|
|
481
|
+
const l = yield r({ cacheMode: "off" }), g = Ht(l) * 1e3;
|
|
482
|
+
o(g), t();
|
|
482
483
|
}),
|
|
483
484
|
disabled: !1,
|
|
484
485
|
testId: "PreferencesDialog",
|
|
@@ -486,8 +487,8 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
|
|
|
486
487
|
},
|
|
487
488
|
secondaryButton: {
|
|
488
489
|
text: "Log out",
|
|
489
|
-
onClick: () =>
|
|
490
|
-
|
|
490
|
+
onClick: () => L(null, null, function* () {
|
|
491
|
+
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
491
492
|
}),
|
|
492
493
|
disabled: !1,
|
|
493
494
|
testId: "PreferencesDialog",
|
|
@@ -496,42 +497,42 @@ const Lo = /MUI: The value provided to.*is invalid/i, Oo = ({
|
|
|
496
497
|
onClose: t,
|
|
497
498
|
dialogTitle: "Session expiry",
|
|
498
499
|
disableCloseOnBackdropOrEscape: !0,
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
+
children: /* @__PURE__ */ n("p", { style: { marginBottom: 0 }, children: "Your session is about to time out due to inactivity. Do you want to continue?" })
|
|
500
501
|
}
|
|
501
502
|
);
|
|
502
503
|
};
|
|
503
|
-
function
|
|
504
|
+
function Wt(e) {
|
|
504
505
|
return "error" in e;
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
-
var
|
|
508
|
-
const t = e.error, o = (
|
|
507
|
+
function qt(e) {
|
|
508
|
+
var i;
|
|
509
|
+
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
509
510
|
return t === "access_denied" && o.startsWith("You do not have the required authorization");
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
-
var
|
|
513
|
-
const t = e.error, o = (
|
|
512
|
+
function zt(e) {
|
|
513
|
+
var i;
|
|
514
|
+
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
514
515
|
return t === "access_denied" && o.startsWith("User did not authorize the request");
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
-
var
|
|
518
|
-
const t = e.error, o = (
|
|
517
|
+
function Gt(e) {
|
|
518
|
+
var i;
|
|
519
|
+
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
519
520
|
return t === "access_denied" && o.match(/Script.*time.*exceeded/);
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function Qo({
|
|
522
523
|
children: e,
|
|
523
524
|
appName: t = "the app",
|
|
524
525
|
throwErrors: o = "none",
|
|
525
|
-
disableConsoleLogging:
|
|
526
|
+
disableConsoleLogging: i = !1,
|
|
526
527
|
onError: r = () => {
|
|
527
528
|
}
|
|
528
529
|
}) {
|
|
529
|
-
var
|
|
530
|
-
const { isAuthenticated: s, isLoading: u, error: a, loginWithRedirect:
|
|
531
|
-
|
|
530
|
+
var x, v;
|
|
531
|
+
const { isAuthenticated: s, isLoading: u, error: a, loginWithRedirect: c, logout: l } = ue();
|
|
532
|
+
xe(() => {
|
|
532
533
|
a && r(a);
|
|
533
534
|
}, [a, r]);
|
|
534
|
-
const
|
|
535
|
+
const g = ut(
|
|
535
536
|
() => ({
|
|
536
537
|
appState: {
|
|
537
538
|
returnTo: `${window.location.pathname}${window.location.search}`
|
|
@@ -539,166 +540,243 @@ function Uo({
|
|
|
539
540
|
}),
|
|
540
541
|
[]
|
|
541
542
|
);
|
|
542
|
-
if (
|
|
543
|
-
u || s || a ||
|
|
544
|
-
}, [u, s, a,
|
|
545
|
-
if (
|
|
543
|
+
if (xe(() => {
|
|
544
|
+
u || s || a || c(g);
|
|
545
|
+
}, [u, s, a, c, r, g]), a) {
|
|
546
|
+
if (i || console.error(
|
|
546
547
|
`Error detected in AuthGuard [isAuthenticated=${s},isLoading=${u}]`,
|
|
547
548
|
a
|
|
548
549
|
), o === "all")
|
|
549
550
|
throw a;
|
|
550
|
-
if (
|
|
551
|
-
let
|
|
552
|
-
if (
|
|
553
|
-
|
|
554
|
-
else if (
|
|
555
|
-
|
|
556
|
-
else if (
|
|
557
|
-
|
|
551
|
+
if (Wt(a)) {
|
|
552
|
+
let m = "Auth error", C = "An unknown Auth0 error occurred.";
|
|
553
|
+
if (qt(a))
|
|
554
|
+
m = "Unauthorised", C = `You are not authorised to access ${t}.`;
|
|
555
|
+
else if (zt(a))
|
|
556
|
+
m = "App not authorised", C = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
|
|
557
|
+
else if (Gt(a))
|
|
558
|
+
m = "Auth0 script execution time exceeded", C = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute by clicking the RELOAD button below.";
|
|
558
559
|
else if (a.message === "Invalid state") {
|
|
559
|
-
const
|
|
560
|
-
|
|
560
|
+
const S = localStorage.getItem("auth0_redirect_count");
|
|
561
|
+
S ? S && parseInt(S) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(S) + 1)), c(g)) : (localStorage.setItem("auth0_redirect_count", "1"), c(g));
|
|
561
562
|
} else if (o === "unknown") throw a;
|
|
562
|
-
return /* @__PURE__ */
|
|
563
|
-
/* @__PURE__ */
|
|
564
|
-
/* @__PURE__ */
|
|
565
|
-
/* @__PURE__ */
|
|
566
|
-
/* @__PURE__ */
|
|
567
|
-
/* @__PURE__ */
|
|
568
|
-
/* @__PURE__ */
|
|
563
|
+
return /* @__PURE__ */ f(Re, { open: !0, children: [
|
|
564
|
+
/* @__PURE__ */ n(He, { children: m }),
|
|
565
|
+
/* @__PURE__ */ f(We, { children: [
|
|
566
|
+
/* @__PURE__ */ n(I, { children: C }),
|
|
567
|
+
/* @__PURE__ */ n("br", {}),
|
|
568
|
+
/* @__PURE__ */ n(I, { variant: "subtitle2", children: "Details from Auth0" }),
|
|
569
|
+
/* @__PURE__ */ f(I, { variant: "body2", children: [
|
|
569
570
|
"error: ",
|
|
570
|
-
(
|
|
571
|
+
(x = a == null ? void 0 : a.error) != null ? x : "N/A"
|
|
571
572
|
] }),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ f(I, { variant: "body2", children: [
|
|
573
574
|
"description: ",
|
|
574
|
-
(
|
|
575
|
+
(v = a == null ? void 0 : a.error_description) != null ? v : "N/A"
|
|
575
576
|
] })
|
|
576
577
|
] }),
|
|
577
|
-
/* @__PURE__ */
|
|
578
|
-
|
|
579
|
-
/* @__PURE__ */
|
|
578
|
+
/* @__PURE__ */ f(qe, { children: [
|
|
579
|
+
m === "Auth0 script execution time exceeded" && /* @__PURE__ */ n(K, { href: window.location.origin + window.location.pathname, children: "Reload" }),
|
|
580
|
+
/* @__PURE__ */ n(K, { onClick: () => l({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
|
|
580
581
|
] })
|
|
581
582
|
] });
|
|
582
583
|
} else if (o === "unknown") throw a;
|
|
583
584
|
}
|
|
584
|
-
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */
|
|
585
|
+
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ n($, { children: e })) : /* @__PURE__ */ n($t, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
|
|
585
586
|
}
|
|
586
|
-
const
|
|
587
|
+
const pe = () => {
|
|
588
|
+
const e = oe();
|
|
589
|
+
return gt(e.breakpoints.down("sm"));
|
|
590
|
+
}, Vt = 64, Kt = 72, Xt = 256, Q = O(!0), Yt = O(Xt), Qt = O(Kt), Fe = O(""), Jt = O(void 0), Zt = O(Vt), jt = O(void 0), eo = ({
|
|
591
|
+
label: e,
|
|
592
|
+
to: t,
|
|
593
|
+
icon: o,
|
|
594
|
+
subMenu: i,
|
|
595
|
+
subMenuInitialOpen: r,
|
|
596
|
+
onClick: s,
|
|
597
|
+
closeOnSmallScreen: u,
|
|
598
|
+
disabled: a = !1,
|
|
599
|
+
openInNewWindow: c = !1,
|
|
600
|
+
extraSubIndentSpace: l = 0,
|
|
601
|
+
tooltip: g = "",
|
|
602
|
+
tooltipMenuOpen: x = "",
|
|
603
|
+
tooltipMenuClosed: v = ""
|
|
604
|
+
}) => {
|
|
605
|
+
const [m, C] = H(r), [S, h] = U(Q), { pathname: w } = Mt(), E = pe(), _ = " ".repeat(l);
|
|
606
|
+
return /* @__PURE__ */ f($, { children: [
|
|
607
|
+
/* @__PURE__ */ n(
|
|
608
|
+
ze,
|
|
609
|
+
{
|
|
610
|
+
title: g || (x && S ? x : v && !S ? v : ""),
|
|
611
|
+
arrow: !0,
|
|
612
|
+
placement: "right",
|
|
613
|
+
children: /* @__PURE__ */ f(
|
|
614
|
+
Ce,
|
|
615
|
+
F(d({
|
|
616
|
+
component: t ? De : "button",
|
|
617
|
+
sx: { width: "100%" },
|
|
618
|
+
to: t,
|
|
619
|
+
onClick: () => {
|
|
620
|
+
s == null || s(), S ? (C((D) => !D), u && E && h(!1)) : i && (C(!0), h(!0));
|
|
621
|
+
},
|
|
622
|
+
"aria-label": e,
|
|
623
|
+
selected: w === t,
|
|
624
|
+
disabled: a
|
|
625
|
+
}, c ? { rel: "noopener noreferrer", target: "_blank" } : {}), {
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ n(xt, { sx: { padding: "8px" }, children: o }),
|
|
628
|
+
/* @__PURE__ */ n(Ge, { in: S, unmountOnExit: !0, children: /* @__PURE__ */ f(T, { children: [
|
|
629
|
+
/* @__PURE__ */ n(Se, { primary: e }),
|
|
630
|
+
i && /* @__PURE__ */ n(At, { children: m ? /* @__PURE__ */ n(_t, {}) : /* @__PURE__ */ n(Pt, {}) })
|
|
631
|
+
] }) })
|
|
632
|
+
]
|
|
633
|
+
})
|
|
634
|
+
)
|
|
635
|
+
}
|
|
636
|
+
),
|
|
637
|
+
i && /* @__PURE__ */ n(Ve, { in: m && S, timeout: "auto", unmountOnExit: !0, children: /* @__PURE__ */ n(Ct, { component: "div", disablePadding: !0, children: i.map((D) => /* @__PURE__ */ n(
|
|
638
|
+
Ce,
|
|
639
|
+
{
|
|
640
|
+
onClick: () => {
|
|
641
|
+
D.onClick && (D == null || D.onClick()), S && D != null && D.closeOnSmallScreen && E && h(!1);
|
|
642
|
+
},
|
|
643
|
+
to: D.to,
|
|
644
|
+
component: D.to ? De : "button",
|
|
645
|
+
sx: { width: "100%" },
|
|
646
|
+
selected: w === D.to,
|
|
647
|
+
disabled: D.disabled,
|
|
648
|
+
children: /* @__PURE__ */ n(
|
|
649
|
+
Se,
|
|
650
|
+
{
|
|
651
|
+
primary: _ + D.label,
|
|
652
|
+
inset: !0,
|
|
653
|
+
slotProps: { primary: { variant: "body2" } }
|
|
654
|
+
}
|
|
655
|
+
)
|
|
656
|
+
},
|
|
657
|
+
D.label
|
|
658
|
+
)) }) })
|
|
659
|
+
] });
|
|
660
|
+
}, Jo = (o) => {
|
|
661
|
+
var i = o, { subMenuInitialOpen: e } = i, t = re(i, ["subMenuInitialOpen"]);
|
|
662
|
+
const r = e === void 0 ? "initial-undefined" : String(e);
|
|
663
|
+
return /* @__PURE__ */ n(eo, d({ subMenuInitialOpen: e }, t), r);
|
|
664
|
+
}, to = {
|
|
587
665
|
autoHideDuration: 6e3,
|
|
588
666
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
589
667
|
// The default is false. If we prefer timer to continue when window loses
|
|
590
668
|
// focus, change to true
|
|
591
669
|
disableWindowBlurListener: !1
|
|
592
|
-
},
|
|
670
|
+
}, oo = {
|
|
593
671
|
shouldClose: (e, t) => t !== "clickaway"
|
|
594
|
-
},
|
|
672
|
+
}, _e = {
|
|
595
673
|
message: "",
|
|
596
674
|
severity: "info",
|
|
597
675
|
variant: "standard",
|
|
598
676
|
progressIndicator: void 0
|
|
599
677
|
// Can use 'circular' or 'linear'
|
|
600
|
-
},
|
|
678
|
+
}, Pe = 100, Te = 2e3, no = 2e3, io = /* @__PURE__ */ (() => {
|
|
601
679
|
let e = 0;
|
|
602
680
|
return () => (e += 1, e);
|
|
603
|
-
})(),
|
|
681
|
+
})(), ro = {
|
|
604
682
|
borderBottomLeftRadius: "0px",
|
|
605
683
|
borderBottomRightRadius: "0px"
|
|
606
|
-
},
|
|
607
|
-
function
|
|
684
|
+
}, ao = {}, so = {}, et = pt(null);
|
|
685
|
+
function lo(s) {
|
|
608
686
|
var u = s, {
|
|
609
|
-
overrideState: e =
|
|
610
|
-
overrideActions: t =
|
|
611
|
-
shouldClose: o =
|
|
612
|
-
children:
|
|
613
|
-
} = u, r =
|
|
687
|
+
overrideState: e = ao,
|
|
688
|
+
overrideActions: t = so,
|
|
689
|
+
shouldClose: o = oo.shouldClose,
|
|
690
|
+
children: i
|
|
691
|
+
} = u, r = re(u, [
|
|
614
692
|
"overrideState",
|
|
615
693
|
"overrideActions",
|
|
616
694
|
"shouldClose",
|
|
617
695
|
"children"
|
|
618
696
|
]);
|
|
619
697
|
var R;
|
|
620
|
-
const [{ open: a },
|
|
621
|
-
|
|
622
|
-
}, []),
|
|
623
|
-
|
|
624
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
625
|
-
),
|
|
626
|
-
const
|
|
627
|
-
key:
|
|
628
|
-
}),
|
|
629
|
-
return
|
|
630
|
-
}, []),
|
|
631
|
-
const
|
|
632
|
-
if (
|
|
633
|
-
return
|
|
634
|
-
},
|
|
635
|
-
o(
|
|
636
|
-
},
|
|
637
|
-
},
|
|
638
|
-
|
|
639
|
-
},
|
|
640
|
-
"autoHideDuration" in
|
|
641
|
-
const X = d(d({},
|
|
698
|
+
const [{ open: a }, c] = H({ open: !1 }), l = ae([]), g = ae(Date.now()), x = ae(0), v = Ae((b) => {
|
|
699
|
+
c({ open: b });
|
|
700
|
+
}, []), m = Ae((b = {}) => {
|
|
701
|
+
x.current += 1, l.current.length >= Pe && Date.now() - g.current >= Te && (g.current = Date.now(), console.error(
|
|
702
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Pe}) hit ${x.current} times in last ${Te}ms)`
|
|
703
|
+
), x.current = 0);
|
|
704
|
+
const y = d(F(d({}, _e), {
|
|
705
|
+
key: io()
|
|
706
|
+
}), b);
|
|
707
|
+
return l.current.push(y), l.current.length === 1 && c({ open: !0 }), y.key;
|
|
708
|
+
}, []), C = (b = "", y = {}) => m(d({ message: b, severity: "success" }, y)), S = (b = "", y = {}) => m(d({ message: b, severity: "info" }, y)), h = (b = "", y = {}) => m(d({ message: b, severity: "warning" }, y)), w = (b = "", y = {}) => m(d({ message: b, severity: "error" }, y)), E = (b) => {
|
|
709
|
+
const y = l.current.findIndex((z) => z.key === b);
|
|
710
|
+
if (y !== -1)
|
|
711
|
+
return y === 0 ? (c({ open: !1 }), l.current[0]) : l.current.splice(y, 1);
|
|
712
|
+
}, _ = (b, y) => {
|
|
713
|
+
o(b, y) && c({ open: !1 });
|
|
714
|
+
}, W = () => {
|
|
715
|
+
}, D = () => {
|
|
716
|
+
l.current.shift(), l.current.length > 0 && c({ open: !0 });
|
|
717
|
+
}, N = (R = l.current[0]) != null ? R : d({}, _e), B = {};
|
|
718
|
+
"autoHideDuration" in N && (B.autoHideDuration = N.autoHideDuration);
|
|
719
|
+
const X = d(d({}, to), r), q = d(d({
|
|
642
720
|
open: a,
|
|
643
|
-
setOpen:
|
|
644
|
-
enqueueNotification:
|
|
645
|
-
enqueueSuccessNotification:
|
|
646
|
-
enqueueInfoNotification:
|
|
721
|
+
setOpen: v,
|
|
722
|
+
enqueueNotification: m,
|
|
723
|
+
enqueueSuccessNotification: C,
|
|
724
|
+
enqueueInfoNotification: S,
|
|
647
725
|
enqueueWarningNotification: h,
|
|
648
|
-
enqueueErrorNotification:
|
|
649
|
-
removeNotification:
|
|
726
|
+
enqueueErrorNotification: w,
|
|
727
|
+
removeNotification: E
|
|
650
728
|
}, e), t);
|
|
651
|
-
return /* @__PURE__ */
|
|
652
|
-
|
|
653
|
-
/* @__PURE__ */
|
|
654
|
-
|
|
655
|
-
|
|
729
|
+
return /* @__PURE__ */ f(et.Provider, { value: q, children: [
|
|
730
|
+
i,
|
|
731
|
+
/* @__PURE__ */ n(
|
|
732
|
+
St,
|
|
733
|
+
F(d(d({}, X), B), {
|
|
656
734
|
open: a,
|
|
657
|
-
onClose:
|
|
735
|
+
onClose: _,
|
|
658
736
|
TransitionProps: {
|
|
659
|
-
onExited:
|
|
660
|
-
onExit:
|
|
737
|
+
onExited: D,
|
|
738
|
+
onExit: W
|
|
661
739
|
},
|
|
662
|
-
sx: { zIndex:
|
|
663
|
-
children: /* @__PURE__ */
|
|
664
|
-
/* @__PURE__ */
|
|
665
|
-
|
|
740
|
+
sx: { zIndex: no },
|
|
741
|
+
children: /* @__PURE__ */ f("div", { children: [
|
|
742
|
+
/* @__PURE__ */ n(
|
|
743
|
+
vt,
|
|
666
744
|
{
|
|
667
|
-
onClose: (
|
|
668
|
-
severity:
|
|
745
|
+
onClose: (b) => _(b, "closeAlert"),
|
|
746
|
+
severity: N.severity,
|
|
669
747
|
variant: "filled",
|
|
670
|
-
icon:
|
|
671
|
-
style:
|
|
672
|
-
children:
|
|
748
|
+
icon: N.progressIndicator === "circular" ? /* @__PURE__ */ n(te, { size: "1em" }) : void 0,
|
|
749
|
+
style: N.progressIndicator === "linear" ? ro : void 0,
|
|
750
|
+
children: N.message
|
|
673
751
|
}
|
|
674
752
|
),
|
|
675
|
-
|
|
753
|
+
N.progressIndicator === "linear" && /* @__PURE__ */ n(Ue, { color: "primary" })
|
|
676
754
|
] })
|
|
677
755
|
})
|
|
678
756
|
)
|
|
679
757
|
] });
|
|
680
758
|
}
|
|
681
|
-
class
|
|
759
|
+
class tt extends Error {
|
|
682
760
|
}
|
|
683
|
-
|
|
684
|
-
function
|
|
685
|
-
const e =
|
|
761
|
+
ge(tt, "errorName", "ContextError");
|
|
762
|
+
function co() {
|
|
763
|
+
const e = ht(et);
|
|
686
764
|
if (e === null)
|
|
687
|
-
throw new
|
|
765
|
+
throw new tt("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
688
766
|
return e;
|
|
689
767
|
}
|
|
690
|
-
const
|
|
691
|
-
(e = { autoHideDuration: 1 }, t = {}, o = {}) => ({ children:
|
|
692
|
-
),
|
|
693
|
-
var
|
|
694
|
-
const
|
|
695
|
-
JSON.parse((
|
|
696
|
-
),
|
|
697
|
-
(e) => e(
|
|
768
|
+
const Zo = Ot(
|
|
769
|
+
(e = { autoHideDuration: 1 }, t = {}, o = {}) => ({ children: i }) => /* @__PURE__ */ n(lo, F(d({}, e), { overrideState: t, overrideActions: o, children: /* @__PURE__ */ n($, { children: i }) }))
|
|
770
|
+
), ot = "domainCode";
|
|
771
|
+
var Oe;
|
|
772
|
+
const Ne = O(
|
|
773
|
+
JSON.parse((Oe = localStorage.getItem(ot)) != null ? Oe : '{"domainCode": ""}').domainCode
|
|
774
|
+
), uo = O(
|
|
775
|
+
(e) => e(Ne),
|
|
698
776
|
(e, t, o) => {
|
|
699
|
-
t(
|
|
777
|
+
t(Ne, o), localStorage.setItem(ot, JSON.stringify({ domainCode: o }));
|
|
700
778
|
}
|
|
701
|
-
),
|
|
779
|
+
), po = {
|
|
702
780
|
act: "ACT",
|
|
703
781
|
nsw: "NSW",
|
|
704
782
|
nt: "NT",
|
|
@@ -710,92 +788,89 @@ const Fe = L(
|
|
|
710
788
|
ag: "AG",
|
|
711
789
|
fedmps: "FedMPs",
|
|
712
790
|
"": ""
|
|
713
|
-
},
|
|
791
|
+
}, nt = (e) => {
|
|
714
792
|
var t;
|
|
715
|
-
return e === null ? "N/A" : (t =
|
|
716
|
-
},
|
|
793
|
+
return e === null ? "N/A" : (t = po[e]) != null ? t : "";
|
|
794
|
+
}, jo = ({
|
|
717
795
|
isLoading: e,
|
|
718
796
|
isOpen: t,
|
|
719
797
|
onClose: o,
|
|
720
|
-
onDomainChange:
|
|
798
|
+
onDomainChange: i,
|
|
721
799
|
domainOptions: r,
|
|
722
800
|
applicationName: s,
|
|
723
801
|
handleLogout: u
|
|
724
802
|
}) => {
|
|
725
|
-
const [a,
|
|
726
|
-
|
|
727
|
-
}), h = () =>
|
|
728
|
-
a && !
|
|
803
|
+
const [a, c] = U(uo), [l, g] = H(a), { enqueueSuccessNotification: x } = co(), v = r.length === 0, m = !!a && !r.includes(a) && !r.includes(l), C = !a || v || m, S = () => L(null, null, function* () {
|
|
804
|
+
l ? (c(l), i == null || i(l), x(`Set organisation to ${l}`), o()) : (c(""), i == null || i(""));
|
|
805
|
+
}), h = () => L(null, null, function* () {
|
|
806
|
+
a && !v && !m ? (g(a), o()) : C && u();
|
|
729
807
|
});
|
|
730
|
-
let
|
|
731
|
-
return
|
|
732
|
-
|
|
808
|
+
let w;
|
|
809
|
+
return v ? w = "Unable to retrieve your active organisations. Try logging in again." : m && (w = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ f(
|
|
810
|
+
Je,
|
|
733
811
|
{
|
|
734
812
|
isOpen: t,
|
|
735
813
|
dialogTitle: "Select an organisation",
|
|
736
814
|
primaryButton: {
|
|
737
815
|
text: "Confirm",
|
|
738
|
-
onClick:
|
|
739
|
-
disabled: !
|
|
816
|
+
onClick: S,
|
|
817
|
+
disabled: !l || v || m,
|
|
740
818
|
buttonColor: "primary"
|
|
741
819
|
},
|
|
742
820
|
secondaryButton: {
|
|
743
|
-
text:
|
|
821
|
+
text: C ? "Logout" : "Cancel",
|
|
744
822
|
onClick: h
|
|
745
823
|
},
|
|
746
|
-
onClose:
|
|
824
|
+
onClose: C ? () => {
|
|
747
825
|
} : o,
|
|
748
826
|
children: [
|
|
749
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ f(I, { marginBottom: 2, children: [
|
|
750
828
|
"Select the default organisation that you want to use with the ",
|
|
751
829
|
s,
|
|
752
830
|
"."
|
|
753
831
|
] }),
|
|
754
|
-
/* @__PURE__ */
|
|
755
|
-
|
|
832
|
+
/* @__PURE__ */ n(
|
|
833
|
+
ce,
|
|
756
834
|
{
|
|
757
835
|
loading: e,
|
|
758
836
|
multiple: !1,
|
|
759
837
|
disableClearable: !1,
|
|
760
|
-
value:
|
|
761
|
-
onChange: (
|
|
762
|
-
getOptionLabel:
|
|
838
|
+
value: l !== "" ? l : null,
|
|
839
|
+
onChange: (E, _) => g(_ != null ? _ : ""),
|
|
840
|
+
getOptionLabel: nt,
|
|
763
841
|
options: [...r.toSorted()],
|
|
764
|
-
renderInput: (
|
|
765
|
-
|
|
766
|
-
|
|
842
|
+
renderInput: (E) => /* @__PURE__ */ n(
|
|
843
|
+
de,
|
|
844
|
+
F(d({}, E), {
|
|
767
845
|
variant: "filled",
|
|
768
846
|
label: "Select organisation",
|
|
769
|
-
InputProps:
|
|
770
|
-
endAdornment: /* @__PURE__ */
|
|
771
|
-
e ? /* @__PURE__ */
|
|
772
|
-
|
|
847
|
+
InputProps: F(d({}, E.InputProps), {
|
|
848
|
+
endAdornment: /* @__PURE__ */ f($, { children: [
|
|
849
|
+
e ? /* @__PURE__ */ n(te, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
850
|
+
E.InputProps.endAdornment
|
|
773
851
|
] })
|
|
774
852
|
})
|
|
775
853
|
})
|
|
776
854
|
)
|
|
777
855
|
}
|
|
778
856
|
),
|
|
779
|
-
|
|
857
|
+
w && /* @__PURE__ */ n(wt, { error: !0, children: w })
|
|
780
858
|
]
|
|
781
859
|
}
|
|
782
860
|
);
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
return
|
|
786
|
-
}, Xt = 64, Yt = 72, Qt = 256, ee = L(!0), Jt = L(Qt), Zt = L(Yt), Ee = L(""), jt = L(void 0), eo = L(Xt), to = L(void 0);
|
|
787
|
-
function oo({ links: e }) {
|
|
788
|
-
return /* @__PURE__ */ i("div", { children: "LinksMenu not implemented yet" });
|
|
861
|
+
};
|
|
862
|
+
function ho({ links: e }) {
|
|
863
|
+
return /* @__PURE__ */ n("div", { children: "LinksMenu not implemented yet" });
|
|
789
864
|
}
|
|
790
|
-
const
|
|
791
|
-
root: `${
|
|
792
|
-
menuButton: `${
|
|
793
|
-
hide: `${
|
|
794
|
-
content: `${
|
|
865
|
+
const j = "Navbar", Y = {
|
|
866
|
+
root: `${j}-root`,
|
|
867
|
+
menuButton: `${j}-menuButton`,
|
|
868
|
+
hide: `${j}-hide`,
|
|
869
|
+
content: `${j}-content`
|
|
795
870
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
796
871
|
// settings: `${PREFIX}-settings`,
|
|
797
872
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
798
|
-
},
|
|
873
|
+
}, fo = Ye(T, { name: "NavBar" })(({ theme: e }) => ({
|
|
799
874
|
[`&.${Y.root}`]: {
|
|
800
875
|
display: "flex"
|
|
801
876
|
},
|
|
@@ -814,13 +889,13 @@ const Z = "Navbar", Y = {
|
|
|
814
889
|
// marginTop: '64px',
|
|
815
890
|
// marginBottom: '16px',
|
|
816
891
|
// },
|
|
817
|
-
})),
|
|
892
|
+
})), V = (e, t, o) => e.transitions.create(t, {
|
|
818
893
|
easing: e.transitions.easing.sharp,
|
|
819
894
|
duration: o === "leaving" ? e.transitions.duration.leavingScreen : e.transitions.duration.enteringScreen
|
|
820
|
-
}),
|
|
895
|
+
}), mo = (e) => {
|
|
821
896
|
const t = oe();
|
|
822
|
-
return /* @__PURE__ */
|
|
823
|
-
|
|
897
|
+
return /* @__PURE__ */ n(
|
|
898
|
+
Ve,
|
|
824
899
|
d({
|
|
825
900
|
easing: t.transitions.easing.sharp,
|
|
826
901
|
timeout: {
|
|
@@ -829,7 +904,7 @@ const Z = "Navbar", Y = {
|
|
|
829
904
|
}
|
|
830
905
|
}, e)
|
|
831
906
|
);
|
|
832
|
-
},
|
|
907
|
+
}, it = (e) => {
|
|
833
908
|
var t, o;
|
|
834
909
|
return {
|
|
835
910
|
overflowX: "hidden",
|
|
@@ -837,110 +912,110 @@ const Z = "Navbar", Y = {
|
|
|
837
912
|
backgroundColor: (o = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? o : "white"
|
|
838
913
|
// Provide default so tests don't need to wrap theme provider
|
|
839
914
|
};
|
|
840
|
-
},
|
|
915
|
+
}, Ie = (e, t) => d({
|
|
841
916
|
width: t,
|
|
842
|
-
transition:
|
|
843
|
-
},
|
|
917
|
+
transition: V(e, "width", "entering")
|
|
918
|
+
}, it(e)), Le = (e, t) => d({
|
|
844
919
|
width: t,
|
|
845
|
-
transition:
|
|
846
|
-
},
|
|
920
|
+
transition: V(e, "width", "leaving")
|
|
921
|
+
}, it(e)), go = Ye(yt, {
|
|
847
922
|
shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
|
|
848
|
-
})(({ theme: e, open: t, widthOpen: o, widthClosed:
|
|
923
|
+
})(({ theme: e, open: t, widthOpen: o, widthClosed: i, isSmallScreen: r }) => d(d({
|
|
849
924
|
flexShrink: 0,
|
|
850
925
|
whiteSpace: "nowrap",
|
|
851
926
|
boxSizing: "border-box",
|
|
852
927
|
display: "flex",
|
|
853
928
|
flexDirection: "column"
|
|
854
|
-
}, t &&
|
|
929
|
+
}, t && F(d({}, Ie(e, o)), {
|
|
855
930
|
backgroundColor: "",
|
|
856
|
-
"& .MuiDrawer-paper":
|
|
857
|
-
})), !t &&
|
|
931
|
+
"& .MuiDrawer-paper": Ie(e, o)
|
|
932
|
+
})), !t && F(d({}, Le(e, r ? o : i)), {
|
|
858
933
|
backgroundColor: "",
|
|
859
|
-
"& .MuiDrawer-paper":
|
|
934
|
+
"& .MuiDrawer-paper": Le(e, r ? o : i)
|
|
860
935
|
})));
|
|
861
|
-
function
|
|
936
|
+
function rt(e) {
|
|
862
937
|
return e.replace(
|
|
863
938
|
/(^|-)([a-z])/g,
|
|
864
|
-
(t, o,
|
|
939
|
+
(t, o, i) => o === "-" ? " " + i.toUpperCase() : i.toUpperCase()
|
|
865
940
|
);
|
|
866
941
|
}
|
|
867
|
-
function
|
|
942
|
+
function en(e, t, o, i) {
|
|
868
943
|
var u;
|
|
869
944
|
if (!e) return "None";
|
|
870
945
|
const r = e["https://greens.org.au/roles"];
|
|
871
946
|
if (!r) return "None";
|
|
872
|
-
const s = Object.entries(r).filter(([, a]) => a.includes(t)).map(([a]) =>
|
|
873
|
-
return (u =
|
|
874
|
-
(a) => o[a].some((
|
|
947
|
+
const s = Object.entries(r).filter(([, a]) => a.includes(t)).map(([a]) => rt(a));
|
|
948
|
+
return (u = i.find(
|
|
949
|
+
(a) => o[a].some((c) => s.includes(c))
|
|
875
950
|
)) != null ? u : "None";
|
|
876
951
|
}
|
|
877
|
-
function
|
|
878
|
-
return Object.entries(e).reduce((o, [
|
|
879
|
-
const s =
|
|
952
|
+
function xo(e, t) {
|
|
953
|
+
return Object.entries(e).reduce((o, [i, r]) => {
|
|
954
|
+
const s = rt(i), u = t.includes(s) ? r : [];
|
|
880
955
|
return [.../* @__PURE__ */ new Set([...o, ...u])];
|
|
881
956
|
}, []);
|
|
882
957
|
}
|
|
883
|
-
const
|
|
884
|
-
const { getIdTokenClaims: t, user: o } =
|
|
885
|
-
return
|
|
958
|
+
const tn = (e) => {
|
|
959
|
+
const { getIdTokenClaims: t, user: o } = ue();
|
|
960
|
+
return Ke({
|
|
886
961
|
queryKey: ["availableDomains", o == null ? void 0 : o.sub],
|
|
887
|
-
queryFn: () =>
|
|
888
|
-
const
|
|
889
|
-
if (!
|
|
890
|
-
const r =
|
|
891
|
-
return r ?
|
|
962
|
+
queryFn: () => L(null, null, function* () {
|
|
963
|
+
const i = yield t();
|
|
964
|
+
if (!i) return [];
|
|
965
|
+
const r = i["https://greens.org.au/roles"];
|
|
966
|
+
return r ? xo(r, e) : [];
|
|
892
967
|
})
|
|
893
968
|
});
|
|
894
|
-
},
|
|
969
|
+
}, on = (e) => Object.values(e).reduce(
|
|
895
970
|
(t, o) => [.../* @__PURE__ */ new Set([...t, ...o])],
|
|
896
971
|
[]
|
|
897
|
-
),
|
|
972
|
+
), ee = {
|
|
898
973
|
log: console.warn.bind(console),
|
|
899
974
|
error: console.error.bind(console),
|
|
900
975
|
warn: console.warn.bind(console),
|
|
901
976
|
info: console.info.bind(console),
|
|
902
977
|
debug: console.debug.bind(console)
|
|
903
978
|
};
|
|
904
|
-
function
|
|
979
|
+
function nn(e, t) {
|
|
905
980
|
console[e] = (...o) => {
|
|
906
|
-
for (const
|
|
907
|
-
if (typeof
|
|
908
|
-
if (
|
|
909
|
-
} else if (
|
|
981
|
+
for (const i of t)
|
|
982
|
+
if (typeof i == "function") {
|
|
983
|
+
if (i(...o)) return;
|
|
984
|
+
} else if (i instanceof RegExp && o.length > 0) {
|
|
910
985
|
for (const r of o)
|
|
911
|
-
if (typeof r == "string" &&
|
|
986
|
+
if (typeof r == "string" && i.test(r))
|
|
912
987
|
return;
|
|
913
988
|
}
|
|
914
|
-
|
|
989
|
+
ee[e](o);
|
|
915
990
|
};
|
|
916
991
|
}
|
|
917
|
-
function
|
|
992
|
+
function rn(e) {
|
|
918
993
|
if (e)
|
|
919
|
-
console[e] =
|
|
994
|
+
console[e] = ee[e];
|
|
920
995
|
else
|
|
921
|
-
for (const t of Object.keys(
|
|
922
|
-
console[t] =
|
|
996
|
+
for (const t of Object.keys(ee))
|
|
997
|
+
console[t] = ee[t];
|
|
923
998
|
}
|
|
924
|
-
function
|
|
999
|
+
function Ao(e, t) {
|
|
925
1000
|
return e != null && typeof e == "object" && "error" in e && e.error === t;
|
|
926
1001
|
}
|
|
927
|
-
function
|
|
1002
|
+
function an(e, t) {
|
|
928
1003
|
const o = t == null ? void 0 : t.originalException;
|
|
929
|
-
return
|
|
1004
|
+
return Ao(o, "login_required") ? null : e;
|
|
930
1005
|
}
|
|
931
|
-
function
|
|
1006
|
+
function Co(e) {
|
|
932
1007
|
let t = 0;
|
|
933
|
-
for (let o = 0,
|
|
1008
|
+
for (let o = 0, i = e.length; o < i; o++) {
|
|
934
1009
|
const r = e.charCodeAt(o);
|
|
935
1010
|
t = (t << 5) - t + r, t |= 0;
|
|
936
1011
|
}
|
|
937
1012
|
return t;
|
|
938
1013
|
}
|
|
939
|
-
const
|
|
940
|
-
function
|
|
1014
|
+
const $e = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], Me = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
|
|
1015
|
+
function So({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
|
|
941
1016
|
const r = oe();
|
|
942
|
-
return /* @__PURE__ */
|
|
943
|
-
|
|
1017
|
+
return /* @__PURE__ */ f(
|
|
1018
|
+
T,
|
|
944
1019
|
{
|
|
945
1020
|
sx: {
|
|
946
1021
|
paddingTop: 3,
|
|
@@ -950,126 +1025,128 @@ function co({ user: e, domainCode: t, open: o, useNewAvatar: n = !1 }) {
|
|
|
950
1025
|
gap: "0.5rem"
|
|
951
1026
|
},
|
|
952
1027
|
children: [
|
|
953
|
-
!
|
|
954
|
-
|
|
1028
|
+
!i && /* @__PURE__ */ n(
|
|
1029
|
+
T,
|
|
955
1030
|
{
|
|
956
1031
|
sx: {
|
|
957
1032
|
width: o ? "5rem" : "2rem",
|
|
958
|
-
transition: o ?
|
|
1033
|
+
transition: o ? V(r, ["width", "height"], "entering") : V(r, ["width", "height"], "leaving"),
|
|
959
1034
|
aspectRatio: 1
|
|
960
1035
|
},
|
|
961
|
-
children: e != null && e.name ? /* @__PURE__ */
|
|
962
|
-
|
|
1036
|
+
children: e != null && e.name ? /* @__PURE__ */ n($, { children: /* @__PURE__ */ n(
|
|
1037
|
+
ve,
|
|
963
1038
|
{
|
|
964
1039
|
src: e == null ? void 0 : e.picture,
|
|
965
1040
|
sx: {
|
|
966
1041
|
width: "100%",
|
|
967
1042
|
height: "100%",
|
|
968
|
-
bgcolor:
|
|
1043
|
+
bgcolor: $e[Math.abs(Co(e == null ? void 0 : e.name)) % $e.length]
|
|
969
1044
|
},
|
|
970
|
-
children:
|
|
1045
|
+
children: Me(e == null ? void 0 : e.name)
|
|
971
1046
|
}
|
|
972
|
-
) }) : /* @__PURE__ */
|
|
1047
|
+
) }) : /* @__PURE__ */ n(ve, { sx: { width: "100%", height: "100%" } })
|
|
973
1048
|
}
|
|
974
1049
|
),
|
|
975
|
-
|
|
976
|
-
|
|
1050
|
+
i && /* @__PURE__ */ n(
|
|
1051
|
+
T,
|
|
977
1052
|
{
|
|
978
1053
|
sx: {
|
|
979
1054
|
width: o ? "5rem" : "2rem",
|
|
980
|
-
transition: o ?
|
|
1055
|
+
transition: o ? V(r, ["width", "height"], "entering") : V(r, ["width", "height"], "leaving"),
|
|
981
1056
|
aspectRatio: 1
|
|
982
1057
|
},
|
|
983
|
-
children: e != null && e.name ? /* @__PURE__ */
|
|
1058
|
+
children: e != null && e.name ? /* @__PURE__ */ n($, { children: /* @__PURE__ */ f(Ee, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: o ? "80" : "32", children: [
|
|
984
1059
|
" ",
|
|
985
|
-
|
|
1060
|
+
Me(e == null ? void 0 : e.name),
|
|
986
1061
|
" ",
|
|
987
1062
|
"ab"
|
|
988
|
-
] }) }) : /* @__PURE__ */
|
|
1063
|
+
] }) }) : /* @__PURE__ */ n(Ee, {})
|
|
989
1064
|
}
|
|
990
1065
|
),
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
e != null && e.name ? /* @__PURE__ */
|
|
993
|
-
t ? /* @__PURE__ */
|
|
1066
|
+
/* @__PURE__ */ n(mo, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ n(Ge, { in: o, children: /* @__PURE__ */ f(T, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
1067
|
+
e != null && e.name ? /* @__PURE__ */ n(I, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ n(we, { animation: !1, width: "50%" }),
|
|
1068
|
+
t ? /* @__PURE__ */ n(I, { children: nt(t) }) : /* @__PURE__ */ n(we, { animation: !1, width: "25%" })
|
|
994
1069
|
] }) }) })
|
|
995
1070
|
]
|
|
996
1071
|
}
|
|
997
1072
|
);
|
|
998
1073
|
}
|
|
999
|
-
function
|
|
1074
|
+
function vo({
|
|
1000
1075
|
open: e,
|
|
1001
1076
|
widthClosed: t,
|
|
1002
1077
|
widthOpen: o,
|
|
1003
|
-
"data-testid":
|
|
1078
|
+
"data-testid": i,
|
|
1004
1079
|
top: r,
|
|
1005
1080
|
middle: s,
|
|
1006
1081
|
bottom: u,
|
|
1007
1082
|
user: a,
|
|
1008
|
-
domainCode:
|
|
1009
|
-
useNewAvatar:
|
|
1083
|
+
domainCode: c,
|
|
1084
|
+
useNewAvatar: l = !1
|
|
1010
1085
|
}) {
|
|
1011
|
-
const
|
|
1012
|
-
return /* @__PURE__ */
|
|
1013
|
-
|
|
1086
|
+
const g = pe(), x = Xe(Q);
|
|
1087
|
+
return /* @__PURE__ */ n(fo, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ f(
|
|
1088
|
+
go,
|
|
1014
1089
|
{
|
|
1015
1090
|
open: e,
|
|
1016
1091
|
widthOpen: o,
|
|
1017
1092
|
widthClosed: t,
|
|
1018
1093
|
anchor: "left",
|
|
1019
|
-
variant:
|
|
1094
|
+
variant: g ? "temporary" : "permanent",
|
|
1020
1095
|
PaperProps: {
|
|
1021
1096
|
component: "nav"
|
|
1022
1097
|
},
|
|
1023
1098
|
onClose: () => {
|
|
1024
|
-
|
|
1099
|
+
x(!1);
|
|
1025
1100
|
},
|
|
1026
|
-
isSmallScreen:
|
|
1101
|
+
isSmallScreen: g,
|
|
1027
1102
|
children: [
|
|
1028
|
-
!
|
|
1029
|
-
r && /* @__PURE__ */
|
|
1103
|
+
!g && /* @__PURE__ */ n(kt, {}),
|
|
1104
|
+
r && /* @__PURE__ */ f(T, { flexGrow: "0", children: [
|
|
1030
1105
|
r,
|
|
1031
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ n(ye, { variant: "middle", sx: { marginY: "0.5rem" } })
|
|
1032
1107
|
] }),
|
|
1033
|
-
/* @__PURE__ */
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
u && /* @__PURE__ */
|
|
1108
|
+
/* @__PURE__ */ n(T, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ n(ho, { links: s }) : s }),
|
|
1109
|
+
/* @__PURE__ */ f(T, { flexGrow: "0", children: [
|
|
1110
|
+
/* @__PURE__ */ n(ye, { variant: "middle", sx: { marginY: "0.5rem" } }),
|
|
1111
|
+
/* @__PURE__ */ n(So, { user: a, domainCode: c, open: e, useNewAvatar: l }),
|
|
1112
|
+
u && /* @__PURE__ */ n($, { children: u })
|
|
1038
1113
|
] })
|
|
1039
1114
|
]
|
|
1040
1115
|
}
|
|
1041
1116
|
) });
|
|
1042
1117
|
}
|
|
1043
|
-
function
|
|
1118
|
+
function wo({
|
|
1044
1119
|
children: e,
|
|
1045
1120
|
topBarHeight: t,
|
|
1046
1121
|
maxWidth: o = !1,
|
|
1047
|
-
noPadding:
|
|
1122
|
+
noPadding: i
|
|
1048
1123
|
}) {
|
|
1049
|
-
return /* @__PURE__ */
|
|
1050
|
-
|
|
1124
|
+
return /* @__PURE__ */ n(
|
|
1125
|
+
T,
|
|
1051
1126
|
{
|
|
1127
|
+
tabIndex: 0,
|
|
1052
1128
|
sx: {
|
|
1053
1129
|
overflow: "auto",
|
|
1054
1130
|
height: `calc(100vh - ${t}px)`,
|
|
1055
1131
|
flexGrow: 1
|
|
1056
1132
|
},
|
|
1057
|
-
children:
|
|
1133
|
+
children: i ? /* @__PURE__ */ n(T, { height: "inherit", children: e }) : /* @__PURE__ */ n(Dt, { maxWidth: o, sx: { paddingTop: 3, paddingBottom: 3, flexGrow: 1 }, children: e })
|
|
1058
1134
|
}
|
|
1059
1135
|
);
|
|
1060
1136
|
}
|
|
1061
|
-
const
|
|
1062
|
-
titleText: `${
|
|
1137
|
+
const yo = "TopBar", ko = {
|
|
1138
|
+
titleText: `${yo}-titleText`
|
|
1063
1139
|
};
|
|
1064
|
-
function
|
|
1140
|
+
function Do({
|
|
1065
1141
|
titleText: e = "",
|
|
1066
1142
|
height: t,
|
|
1067
1143
|
"data-testid": o,
|
|
1068
|
-
middle:
|
|
1144
|
+
middle: i,
|
|
1145
|
+
menuButtonAriaLabel: r = "Open navigation menu"
|
|
1069
1146
|
}) {
|
|
1070
|
-
const
|
|
1071
|
-
return /* @__PURE__ */
|
|
1072
|
-
|
|
1147
|
+
const s = Xe(Q), u = () => s((l) => !l), a = oe(), c = pe();
|
|
1148
|
+
return /* @__PURE__ */ n("header", { "data-testid": o, children: /* @__PURE__ */ f(
|
|
1149
|
+
Be,
|
|
1073
1150
|
{
|
|
1074
1151
|
square: !0,
|
|
1075
1152
|
elevation: 0,
|
|
@@ -1083,85 +1160,88 @@ function mo({
|
|
|
1083
1160
|
gap: 2,
|
|
1084
1161
|
flexShrink: 0,
|
|
1085
1162
|
height: t,
|
|
1086
|
-
zIndex:
|
|
1163
|
+
zIndex: c ? 0 : a.zIndex.drawer + 99
|
|
1087
1164
|
},
|
|
1088
1165
|
children: [
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
|
|
1166
|
+
/* @__PURE__ */ n(
|
|
1167
|
+
bt,
|
|
1091
1168
|
{
|
|
1092
1169
|
size: "medium",
|
|
1093
1170
|
color: "inherit",
|
|
1094
1171
|
sx: { padding: 1.5, marginLeft: "12px" },
|
|
1095
|
-
onClick:
|
|
1096
|
-
|
|
1172
|
+
onClick: u,
|
|
1173
|
+
"aria-label": r,
|
|
1174
|
+
children: /* @__PURE__ */ n(Tt, { fontSize: "medium" })
|
|
1097
1175
|
}
|
|
1098
1176
|
),
|
|
1099
|
-
/* @__PURE__ */
|
|
1100
|
-
|
|
1177
|
+
/* @__PURE__ */ n(I, { className: ko.titleText, variant: "h6", component: "h1", children: e }),
|
|
1178
|
+
i
|
|
1101
1179
|
]
|
|
1102
1180
|
}
|
|
1103
1181
|
) });
|
|
1104
1182
|
}
|
|
1105
|
-
function
|
|
1183
|
+
function sn({
|
|
1106
1184
|
children: e,
|
|
1107
1185
|
initialTitleText: t,
|
|
1108
1186
|
initialNavBarOpen: o,
|
|
1109
|
-
pageContainerProps:
|
|
1187
|
+
pageContainerProps: i,
|
|
1110
1188
|
pageContentDataTestId: r,
|
|
1111
1189
|
topBarDataTestId: s,
|
|
1112
|
-
|
|
1113
|
-
|
|
1190
|
+
menuButtonAriaLabel: u,
|
|
1191
|
+
navBarDataTestId: a,
|
|
1192
|
+
navBarMiddle: c,
|
|
1114
1193
|
navBarBottom: l,
|
|
1115
|
-
user:
|
|
1194
|
+
user: g,
|
|
1116
1195
|
domainCode: x,
|
|
1117
|
-
useNewAvatar:
|
|
1196
|
+
useNewAvatar: v = !1
|
|
1118
1197
|
}) {
|
|
1119
|
-
|
|
1120
|
-
[
|
|
1121
|
-
[
|
|
1198
|
+
Rt([
|
|
1199
|
+
[Q, o != null ? o : !0],
|
|
1200
|
+
[Fe, t != null ? t : ""]
|
|
1122
1201
|
]);
|
|
1123
|
-
const
|
|
1124
|
-
return /* @__PURE__ */
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
/* @__PURE__ */
|
|
1127
|
-
|
|
1202
|
+
const m = ke(Q), [C] = U(Yt), [S] = U(Qt), h = ke(Fe), [w] = U(Zt), [E] = U(Jt), [_] = U(jt);
|
|
1203
|
+
return /* @__PURE__ */ f(be, { children: [
|
|
1204
|
+
/* @__PURE__ */ n(Bt, {}),
|
|
1205
|
+
/* @__PURE__ */ n(
|
|
1206
|
+
Do,
|
|
1128
1207
|
{
|
|
1129
|
-
titleText:
|
|
1208
|
+
titleText: h,
|
|
1130
1209
|
"data-testid": s,
|
|
1131
|
-
height:
|
|
1132
|
-
middle:
|
|
1210
|
+
height: w,
|
|
1211
|
+
middle: E,
|
|
1212
|
+
menuButtonAriaLabel: u
|
|
1133
1213
|
}
|
|
1134
1214
|
),
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
|
|
1215
|
+
/* @__PURE__ */ f(be, { sx: { display: "flex" }, children: [
|
|
1216
|
+
/* @__PURE__ */ n(
|
|
1217
|
+
vo,
|
|
1138
1218
|
{
|
|
1139
|
-
open:
|
|
1140
|
-
top:
|
|
1141
|
-
middle:
|
|
1219
|
+
open: m,
|
|
1220
|
+
top: _,
|
|
1221
|
+
middle: c,
|
|
1142
1222
|
bottom: l,
|
|
1143
|
-
user:
|
|
1223
|
+
user: g,
|
|
1144
1224
|
domainCode: x,
|
|
1145
|
-
widthOpen:
|
|
1225
|
+
widthOpen: C,
|
|
1146
1226
|
widthClosed: S,
|
|
1147
|
-
offsetTop:
|
|
1148
|
-
"data-testid":
|
|
1149
|
-
useNewAvatar:
|
|
1227
|
+
offsetTop: w,
|
|
1228
|
+
"data-testid": a,
|
|
1229
|
+
useNewAvatar: v
|
|
1150
1230
|
}
|
|
1151
1231
|
),
|
|
1152
|
-
/* @__PURE__ */
|
|
1153
|
-
|
|
1154
|
-
|
|
1232
|
+
/* @__PURE__ */ n(
|
|
1233
|
+
wo,
|
|
1234
|
+
F(d({
|
|
1155
1235
|
"data-testid": r,
|
|
1156
|
-
topBarHeight:
|
|
1157
|
-
},
|
|
1236
|
+
topBarHeight: w
|
|
1237
|
+
}, i), {
|
|
1158
1238
|
children: e
|
|
1159
1239
|
})
|
|
1160
1240
|
)
|
|
1161
1241
|
] })
|
|
1162
1242
|
] });
|
|
1163
1243
|
}
|
|
1164
|
-
const
|
|
1244
|
+
const ln = Qe({
|
|
1165
1245
|
palette: {
|
|
1166
1246
|
primary: {
|
|
1167
1247
|
dark: "#00A651",
|
|
@@ -1212,7 +1292,7 @@ const Yo = ze({
|
|
|
1212
1292
|
navBar: {
|
|
1213
1293
|
backgroundColor: "#E8E8E8"
|
|
1214
1294
|
}
|
|
1215
|
-
}),
|
|
1295
|
+
}), cn = Qe({
|
|
1216
1296
|
palette: {
|
|
1217
1297
|
primary: {
|
|
1218
1298
|
main: "#007236",
|
|
@@ -1266,18 +1346,18 @@ const Yo = ze({
|
|
|
1266
1346
|
styleOverrides: {
|
|
1267
1347
|
root: ({ theme: e }) => ({
|
|
1268
1348
|
"&.Mui-selected": {
|
|
1269
|
-
backgroundColor:
|
|
1349
|
+
backgroundColor: se(
|
|
1270
1350
|
e.palette.secondary.main,
|
|
1271
1351
|
e.palette.action.selectedOpacity
|
|
1272
1352
|
),
|
|
1273
1353
|
"&:hover": {
|
|
1274
|
-
backgroundColor:
|
|
1354
|
+
backgroundColor: se(
|
|
1275
1355
|
e.palette.secondary.main,
|
|
1276
1356
|
e.palette.action.selectedOpacity
|
|
1277
1357
|
)
|
|
1278
1358
|
},
|
|
1279
1359
|
"&.Mui-focusVisible": {
|
|
1280
|
-
backgroundColor:
|
|
1360
|
+
backgroundColor: se(
|
|
1281
1361
|
e.palette.secondary.main,
|
|
1282
1362
|
e.palette.action.focusOpacity
|
|
1283
1363
|
)
|
|
@@ -1308,41 +1388,43 @@ const Yo = ze({
|
|
|
1308
1388
|
}
|
|
1309
1389
|
});
|
|
1310
1390
|
export {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1391
|
+
Je as AgDialog,
|
|
1392
|
+
sn as AppLayout,
|
|
1393
|
+
Qo as AuthGuard,
|
|
1394
|
+
et as Context,
|
|
1395
|
+
tt as ContextError,
|
|
1396
|
+
po as DOMAIN_CODE_LABELS,
|
|
1397
|
+
jo as DomainCodeDialog,
|
|
1398
|
+
Go as ExampleComponent,
|
|
1399
|
+
Vo as FetchAutocomplete,
|
|
1400
|
+
Ko as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
|
|
1401
|
+
Jo as NavBarLink,
|
|
1402
|
+
eo as NavBarLinkInner,
|
|
1403
|
+
lo as SaladBarProvider,
|
|
1404
|
+
Yo as SessionExpiryDialog,
|
|
1405
|
+
Xo as SingleAutocomplete,
|
|
1406
|
+
en as determineUserLevelFromClaims,
|
|
1407
|
+
uo as domainCodeAtom,
|
|
1408
|
+
ln as fed21Theme,
|
|
1409
|
+
Ht as getAuth0Expiry,
|
|
1410
|
+
nt as getDomainOptionLabel,
|
|
1411
|
+
xo as getDomainsFromRolesClaim,
|
|
1412
|
+
on as getValidBusinessRoles,
|
|
1413
|
+
cn as internalAgSystemsTheme,
|
|
1414
|
+
Q as navBarOpenAtom,
|
|
1415
|
+
jt as navBarTopAtom,
|
|
1416
|
+
Qt as navBarWidthClosedAtom,
|
|
1417
|
+
Yt as navBarWidthOpenAtom,
|
|
1418
|
+
an as sentryBeforeSend,
|
|
1419
|
+
Co as simpleHashCode,
|
|
1420
|
+
nn as suppressConsole,
|
|
1421
|
+
Fe as titleTextAtom,
|
|
1422
|
+
Zt as topBarHeightAtom,
|
|
1423
|
+
Jt as topBarMiddleAtom,
|
|
1424
|
+
rn as unsuppressConsole,
|
|
1425
|
+
je as useAutocompleteOptions,
|
|
1426
|
+
co as useSaladBar,
|
|
1427
|
+
tn as useValidDomains,
|
|
1428
|
+
Zo as withSaladBarProvider
|
|
1347
1429
|
};
|
|
1348
1430
|
//# sourceMappingURL=index.js.map
|