@australiangreens/ag-internal-components 0.1.18 → 0.1.20
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 +1 -1
- package/dist/components/FetchAutocomplete/FetchAutocomplete.d.ts.map +1 -1
- package/dist/components/NavBar/NavBarContext.d.ts.map +1 -1
- package/dist/errors/ContextError.d.ts +1 -2
- package/dist/errors/ContextError.d.ts.map +1 -1
- package/dist/esm/index.js +414 -446
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/testing/index.d.ts +0 -1
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/wrappers.d.ts.map +1 -1
- package/package.json +8 -11
- package/dist/errors/ContextError.unit.test.d.ts +0 -2
- package/dist/errors/ContextError.unit.test.d.ts.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Et = Object.defineProperty, Ot = Object.defineProperties;
|
|
2
|
+
var Ft = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var te = Object.getOwnPropertySymbols;
|
|
4
|
+
var Ee = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var he = (e, t, n) => t in e ? Et(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, a = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Ee.call(t, n) && he(e, n, t[n]);
|
|
8
|
+
if (te)
|
|
9
|
+
for (var n of te(t))
|
|
10
|
+
Oe.call(t, n) && he(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, I = (e, t) => Ot(e, Ft(t));
|
|
13
13
|
var Fe = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var i of
|
|
19
|
-
t.indexOf(i) < 0 &&
|
|
16
|
+
Ee.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
|
+
if (e != null && te)
|
|
18
|
+
for (var i of te(e))
|
|
19
|
+
t.indexOf(i) < 0 && Oe.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var Be = (e, t, n) => he(e, typeof t != "symbol" ? t + "" : t, n);
|
|
23
|
+
var P = (e, t, n) => new Promise((i, r) => {
|
|
24
24
|
var s = (c) => {
|
|
25
25
|
try {
|
|
26
26
|
l(n.next(c));
|
|
@@ -36,32 +36,31 @@ var _ = (e, t, n) => new Promise((i, r) => {
|
|
|
36
36
|
}, l = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(s, d);
|
|
37
37
|
l((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
|
-
import { jsxs as p, Fragment as
|
|
40
|
-
import { useState as
|
|
41
|
-
import { Typography as O, Button as
|
|
42
|
-
import
|
|
43
|
-
import { styled as W, createTheme as st, alpha as
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import { BrowserRouter as jt } from "react-router-dom";
|
|
39
|
+
import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
|
|
40
|
+
import { useState as B, createContext as Ze, useCallback as re, useContext as je, useEffect as K, createElement as Ce, useMemo as Bt, useRef as ge } from "react";
|
|
41
|
+
import { Typography as O, Button as Q, Paper as et, Box as k, Drawer as we, styled as ve, IconButton as J, Container as tt, useTheme as se, useMediaQuery as Nt, Collapse as Pt, Avatar as Ne, Fade as _t, Skeleton as Pe, Toolbar as Lt, Divider as _e, CssBaseline as Mt, Dialog as nt, LinearProgress as ot, DialogTitle as it, DialogContent as rt, DialogActions as at, Autocomplete as Ae, TextField as be, CircularProgress as Se, Chip as Rt, Tooltip as Ht, Stack as Wt, Snackbar as Ut, Alert as zt, FormHelperText as Gt } from "@mui/material";
|
|
42
|
+
import Vt from "@mui/material/CssBaseline";
|
|
43
|
+
import { styled as W, createTheme as st, alpha as fe } from "@mui/material/styles";
|
|
44
|
+
import { createHelper as Ie } from "souvlaki";
|
|
45
|
+
import { BrowserRouter as qt } from "react-router-dom";
|
|
47
46
|
import lt from "@mui/material/List";
|
|
48
|
-
import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as
|
|
49
|
-
import { atom as R, useSetAtom as ut, useAtomValue as
|
|
50
|
-
import { useHydrateAtoms as
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import { useQuery as
|
|
55
|
-
import { useAuth0 as
|
|
56
|
-
import { Buffer as
|
|
57
|
-
import
|
|
58
|
-
function
|
|
59
|
-
const [t, n] =
|
|
60
|
-
return /* @__PURE__ */ p(
|
|
47
|
+
import { ArrowForward as ct, ArrowBack as dt, ViewHeadline as Xt, Cancel as Yt, ArrowDropDown as Kt } from "@mui/icons-material";
|
|
48
|
+
import { atom as R, useSetAtom as ut, useAtomValue as Le, useAtom as V } from "jotai";
|
|
49
|
+
import { useHydrateAtoms as Qt } from "jotai/utils";
|
|
50
|
+
import Me from "react-avatar";
|
|
51
|
+
import Jt from "autosuggest-highlight/match";
|
|
52
|
+
import Zt from "autosuggest-highlight/parse";
|
|
53
|
+
import { useQuery as jt } from "@tanstack/react-query";
|
|
54
|
+
import { useAuth0 as pt } from "@auth0/auth0-react";
|
|
55
|
+
import { Buffer as en } from "buffer";
|
|
56
|
+
import tn from "@mui/material/Skeleton";
|
|
57
|
+
function bo({ text: e }) {
|
|
58
|
+
const [t, n] = B(0);
|
|
59
|
+
return /* @__PURE__ */ p(_, { children: [
|
|
61
60
|
/* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
62
61
|
/* @__PURE__ */ o(O, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
|
|
63
62
|
/* @__PURE__ */ o(
|
|
64
|
-
|
|
63
|
+
Q,
|
|
65
64
|
{
|
|
66
65
|
variant: "outlined",
|
|
67
66
|
onClick: () => n((i) => i + 1),
|
|
@@ -79,7 +78,7 @@ function To({ text: e }) {
|
|
|
79
78
|
] })
|
|
80
79
|
] });
|
|
81
80
|
}
|
|
82
|
-
const
|
|
81
|
+
const ht = 330, gt = 73, z = "Navbar", q = {
|
|
83
82
|
root: `${z}-root`,
|
|
84
83
|
menuButton: `${z}-menuButton`,
|
|
85
84
|
hide: `${z}-hide`,
|
|
@@ -87,7 +86,7 @@ const gt = 330, ft = 73, z = "Navbar", q = {
|
|
|
87
86
|
userInfoHolder: `${z}-userInfoHolder`,
|
|
88
87
|
settings: `${z}-settings`,
|
|
89
88
|
pieChartIcon: `${z}-pieChartIcon`
|
|
90
|
-
},
|
|
89
|
+
}, nn = W(k, {
|
|
91
90
|
name: "NavBar"
|
|
92
91
|
})(({ theme: e }) => ({
|
|
93
92
|
[`&.${q.root}`]: {
|
|
@@ -108,7 +107,7 @@ const gt = 330, ft = 73, z = "Navbar", q = {
|
|
|
108
107
|
marginTop: "64px",
|
|
109
108
|
marginBottom: "16px"
|
|
110
109
|
}
|
|
111
|
-
})),
|
|
110
|
+
})), ft = () => ({
|
|
112
111
|
position: "absolute",
|
|
113
112
|
height: "100%",
|
|
114
113
|
overflowX: "hidden",
|
|
@@ -116,51 +115,51 @@ const gt = 330, ft = 73, z = "Navbar", q = {
|
|
|
116
115
|
color: "white",
|
|
117
116
|
backgroundColor: "black"
|
|
118
117
|
// backgroundColor: '#e8e8e8',
|
|
119
|
-
}),
|
|
118
|
+
}), on = () => a({
|
|
119
|
+
width: ht
|
|
120
|
+
}, ft()), rn = () => a({
|
|
120
121
|
width: gt
|
|
121
|
-
},
|
|
122
|
-
width: ft
|
|
123
|
-
}, mt()), fn = W(Ae, {
|
|
122
|
+
}, ft()), an = W(we, {
|
|
124
123
|
shouldForwardProp: (e) => e !== "open"
|
|
125
124
|
})(({ theme: e, open: t }) => a(a({
|
|
126
|
-
width: t ?
|
|
125
|
+
width: t ? ht : gt,
|
|
127
126
|
flexShrink: 0,
|
|
128
127
|
whiteSpace: "nowrap",
|
|
129
128
|
boxSizing: "border-box",
|
|
130
129
|
zIndex: e.zIndex.drawer + 100
|
|
131
130
|
}, t && {
|
|
132
|
-
"& .MuiDrawer-paper":
|
|
131
|
+
"& .MuiDrawer-paper": on()
|
|
133
132
|
}), !t && {
|
|
134
|
-
"& .MuiDrawer-paper":
|
|
133
|
+
"& .MuiDrawer-paper": rn()
|
|
135
134
|
}));
|
|
136
|
-
class ke extends
|
|
135
|
+
class ke extends Error {
|
|
137
136
|
}
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
overrideState: e =
|
|
141
|
-
overrideActions: t =
|
|
137
|
+
Be(ke, "errorName", "ContextError");
|
|
138
|
+
const mt = Ze(null), sn = {}, ln = {}, cn = ({
|
|
139
|
+
overrideState: e = sn,
|
|
140
|
+
overrideActions: t = ln,
|
|
142
141
|
children: n
|
|
143
142
|
}) => {
|
|
144
|
-
const [{ open: i }, r] =
|
|
143
|
+
const [{ open: i }, r] = B({ open: !0 }), s = re((c) => {
|
|
145
144
|
r({ open: c });
|
|
146
|
-
}, []), d =
|
|
147
|
-
r((c) =>
|
|
145
|
+
}, []), d = re(() => {
|
|
146
|
+
r((c) => I(a({}, c), { open: !c.open }));
|
|
148
147
|
}, []), l = a(a({
|
|
149
148
|
open: i,
|
|
150
149
|
setOpen: s,
|
|
151
150
|
toggleOpen: d
|
|
152
151
|
}, e), t);
|
|
153
|
-
return /* @__PURE__ */ o(
|
|
154
|
-
},
|
|
155
|
-
const e = je(
|
|
152
|
+
return /* @__PURE__ */ o(mt.Provider, { value: l, children: n });
|
|
153
|
+
}, dn = () => {
|
|
154
|
+
const e = je(mt);
|
|
156
155
|
if (e === null)
|
|
157
156
|
throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
158
157
|
return e;
|
|
159
|
-
},
|
|
158
|
+
}, un = (e = {}) => a({
|
|
160
159
|
open: !0
|
|
161
|
-
}, e),
|
|
162
|
-
(e =
|
|
163
|
-
),
|
|
160
|
+
}, e), So = Ie(
|
|
161
|
+
(e = un(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(cn, { overrideState: e, overrideActions: t, children: n })
|
|
162
|
+
), Io = Ie(() => ({ children: e }) => /* @__PURE__ */ o(qt, { children: e })), Re = 7, ko = W(lt)(({ theme: e }) => ({
|
|
164
163
|
backgroundColor: "black",
|
|
165
164
|
color: "white",
|
|
166
165
|
"& .MuiListItem-root": {
|
|
@@ -169,7 +168,7 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
169
168
|
"& .MuiListItemButton-root": {
|
|
170
169
|
" .MuiListItemIcon-root": {
|
|
171
170
|
color: "white",
|
|
172
|
-
padding: `${
|
|
171
|
+
padding: `${Re}px`
|
|
173
172
|
},
|
|
174
173
|
// Focus state
|
|
175
174
|
"&.Mui-focusVisible": {
|
|
@@ -180,7 +179,7 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
180
179
|
borderLeftStyle: "solid",
|
|
181
180
|
borderLeftWidth: "7px",
|
|
182
181
|
borderLeftColor: e.palette.primary.main,
|
|
183
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
182
|
+
paddingLeft: `calc(${e.spacing(2)} - ${Re}px)`
|
|
184
183
|
},
|
|
185
184
|
// Hover state
|
|
186
185
|
"&:hover": {
|
|
@@ -198,7 +197,7 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
198
197
|
// '&.Mui-selected.Mui-focusVisible:hover': {
|
|
199
198
|
// },
|
|
200
199
|
}
|
|
201
|
-
})),
|
|
200
|
+
})), He = 7, yo = W(lt)(({ theme: e }) => ({
|
|
202
201
|
backgroundColor: "#e8e8e8",
|
|
203
202
|
color: "inherit",
|
|
204
203
|
"& .MuiListItem-root": {
|
|
@@ -207,7 +206,7 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
207
206
|
"& .MuiListItemButton-root": {
|
|
208
207
|
" .MuiListItemIcon-root": {
|
|
209
208
|
color: "inherit",
|
|
210
|
-
padding: `${
|
|
209
|
+
padding: `${He}px`
|
|
211
210
|
},
|
|
212
211
|
// Focus state
|
|
213
212
|
"&.Mui-focusVisible": {
|
|
@@ -218,7 +217,7 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
218
217
|
borderLeftStyle: "solid",
|
|
219
218
|
borderLeftWidth: "7px",
|
|
220
219
|
borderLeftColor: e.palette.primary.main,
|
|
221
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
220
|
+
paddingLeft: `calc(${e.spacing(2)} - ${He}px)`
|
|
222
221
|
},
|
|
223
222
|
// Hover state
|
|
224
223
|
"&:hover": {
|
|
@@ -237,15 +236,15 @@ const xt = Ze(null), mn = {}, xn = {}, Cn = ({
|
|
|
237
236
|
// },
|
|
238
237
|
}
|
|
239
238
|
}));
|
|
240
|
-
function
|
|
239
|
+
function $o({
|
|
241
240
|
"data-testid": e,
|
|
242
241
|
children: t
|
|
243
242
|
}) {
|
|
244
|
-
const { open: n } =
|
|
245
|
-
return /* @__PURE__ */ p(
|
|
246
|
-
/* @__PURE__ */ o(
|
|
243
|
+
const { open: n } = dn();
|
|
244
|
+
return /* @__PURE__ */ p(nn, { className: q.root, "data-testid": e, children: [
|
|
245
|
+
/* @__PURE__ */ o(Vt, {}),
|
|
247
246
|
/* @__PURE__ */ o(
|
|
248
|
-
|
|
247
|
+
an,
|
|
249
248
|
{
|
|
250
249
|
variant: "permanent",
|
|
251
250
|
anchor: "left",
|
|
@@ -256,32 +255,32 @@ function No({
|
|
|
256
255
|
)
|
|
257
256
|
] });
|
|
258
257
|
}
|
|
259
|
-
const
|
|
258
|
+
const pn = 24, hn = 64, G = "TopBar", F = {
|
|
260
259
|
topStripe: `${G}-topStripe`,
|
|
261
260
|
titleBar: `${G}-titleBar`,
|
|
262
261
|
titleSlider: `${G}-titleSlider`,
|
|
263
262
|
titleText: `${G}-titleText`,
|
|
264
263
|
leftPanelButton: `${G}-leftPanelButton`,
|
|
265
264
|
rightPanelButton: `${G}-leftPanelButton`
|
|
266
|
-
},
|
|
265
|
+
}, gn = ve("div", {
|
|
267
266
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
268
267
|
name: G
|
|
269
268
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
270
269
|
var i, r;
|
|
271
270
|
return {
|
|
272
271
|
width: "100%",
|
|
273
|
-
[`& .${
|
|
272
|
+
[`& .${F.topStripe}`]: {
|
|
274
273
|
width: "100%",
|
|
275
|
-
height: `${
|
|
274
|
+
height: `${pn}px`,
|
|
276
275
|
backgroundColor: e.palette.primary.main
|
|
277
276
|
},
|
|
278
|
-
[`& .${
|
|
277
|
+
[`& .${F.titleBar}`]: {
|
|
279
278
|
backgroundColor: e.palette.primary.light,
|
|
280
|
-
height: `${
|
|
279
|
+
height: `${hn}px`,
|
|
281
280
|
padding: e.spacing(0, 3),
|
|
282
281
|
width: "100%"
|
|
283
282
|
},
|
|
284
|
-
[`& .${
|
|
283
|
+
[`& .${F.titleSlider}`]: a(a({
|
|
285
284
|
height: "100%",
|
|
286
285
|
display: "flex",
|
|
287
286
|
alignItems: "center",
|
|
@@ -290,14 +289,14 @@ const An = 24, bn = 64, G = "TopBar", B = {
|
|
|
290
289
|
easing: e.transitions.easing.sharp,
|
|
291
290
|
duration: e.transitions.duration.leavingScreen
|
|
292
291
|
}),
|
|
293
|
-
[`& .${
|
|
292
|
+
[`& .${F.leftPanelButton}`]: {
|
|
294
293
|
marginRight: e.spacing(2),
|
|
295
294
|
flexGrow: 0
|
|
296
295
|
},
|
|
297
|
-
[`& .${
|
|
296
|
+
[`& .${F.titleText}`]: {
|
|
298
297
|
flexGrow: 1
|
|
299
298
|
},
|
|
300
|
-
[`& .${
|
|
299
|
+
[`& .${F.rightPanelButton}`]: {
|
|
301
300
|
flexGrow: 0
|
|
302
301
|
}
|
|
303
302
|
}, (t == null ? void 0 : t.open) && {
|
|
@@ -315,19 +314,19 @@ const An = 24, bn = 64, G = "TopBar", B = {
|
|
|
315
314
|
})
|
|
316
315
|
};
|
|
317
316
|
});
|
|
318
|
-
function
|
|
317
|
+
function fn({
|
|
319
318
|
titleText: e = "",
|
|
320
319
|
leftPanel: t,
|
|
321
320
|
rightPanel: n,
|
|
322
321
|
"data-testid": i
|
|
323
322
|
}) {
|
|
324
|
-
return /* @__PURE__ */ p(
|
|
325
|
-
/* @__PURE__ */ o("div", { className:
|
|
326
|
-
/* @__PURE__ */ o("div", { className:
|
|
323
|
+
return /* @__PURE__ */ p(gn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
|
|
324
|
+
/* @__PURE__ */ o("div", { className: F.topStripe }),
|
|
325
|
+
/* @__PURE__ */ o("div", { className: F.titleBar, children: /* @__PURE__ */ p(k, { className: F.titleSlider, children: [
|
|
327
326
|
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
|
|
328
|
-
|
|
327
|
+
J,
|
|
329
328
|
{
|
|
330
|
-
className:
|
|
329
|
+
className: F.leftPanelButton,
|
|
331
330
|
color: "inherit",
|
|
332
331
|
"aria-label": "Open left side panel",
|
|
333
332
|
onClick: t == null ? void 0 : t.onOpen,
|
|
@@ -339,11 +338,11 @@ function yn({
|
|
|
339
338
|
]
|
|
340
339
|
}
|
|
341
340
|
),
|
|
342
|
-
/* @__PURE__ */ o(O, { className:
|
|
341
|
+
/* @__PURE__ */ o(O, { className: F.titleText, variant: "h6", noWrap: !0, children: e }),
|
|
343
342
|
n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ p(
|
|
344
|
-
|
|
343
|
+
J,
|
|
345
344
|
{
|
|
346
|
-
className:
|
|
345
|
+
className: F.rightPanelButton,
|
|
347
346
|
color: "inherit",
|
|
348
347
|
"aria-label": "Open right side panel",
|
|
349
348
|
onClick: n == null ? void 0 : n.onOpen,
|
|
@@ -358,7 +357,7 @@ function yn({
|
|
|
358
357
|
] }) })
|
|
359
358
|
] });
|
|
360
359
|
}
|
|
361
|
-
const
|
|
360
|
+
const xt = 400, mn = ve(we, {
|
|
362
361
|
shouldForwardProp: (e) => (
|
|
363
362
|
// Note we do want anchor to be forwarded to the Drawer component
|
|
364
363
|
![
|
|
@@ -388,9 +387,9 @@ const Ct = 400, In = be(Ae, {
|
|
|
388
387
|
marginLeft: `${r}px`
|
|
389
388
|
}))
|
|
390
389
|
})
|
|
391
|
-
),
|
|
390
|
+
), xn = ve(k, {
|
|
392
391
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
393
|
-
})(({ theme: e, anchor: t }) =>
|
|
392
|
+
})(({ theme: e, anchor: t }) => I(a({
|
|
394
393
|
display: "flex",
|
|
395
394
|
alignItems: "center",
|
|
396
395
|
padding: e.spacing(2)
|
|
@@ -408,14 +407,14 @@ const Ct = 400, In = be(Ae, {
|
|
|
408
407
|
marginRight: t === "right" ? e.spacing(2) : 0
|
|
409
408
|
}
|
|
410
409
|
}));
|
|
411
|
-
function
|
|
410
|
+
function We({
|
|
412
411
|
children: e,
|
|
413
412
|
anchor: t = "left",
|
|
414
413
|
open: n,
|
|
415
414
|
onClose: i = () => {
|
|
416
415
|
},
|
|
417
416
|
titleText: r = "",
|
|
418
|
-
width: s =
|
|
417
|
+
width: s = xt,
|
|
419
418
|
showCloseArrow: d = !0,
|
|
420
419
|
debugOpacity: l = !1,
|
|
421
420
|
headerBoxProps: c = {},
|
|
@@ -427,7 +426,7 @@ function Ue({
|
|
|
427
426
|
navBarWidthClosed: b = 0
|
|
428
427
|
}) {
|
|
429
428
|
return /* @__PURE__ */ p(
|
|
430
|
-
|
|
429
|
+
mn,
|
|
431
430
|
{
|
|
432
431
|
SlideProps: {
|
|
433
432
|
onEntered: () => u == null ? void 0 : u(),
|
|
@@ -443,14 +442,14 @@ function Ue({
|
|
|
443
442
|
navBarWidthOpen: h,
|
|
444
443
|
navBarWidthClosed: b,
|
|
445
444
|
children: [
|
|
446
|
-
/* @__PURE__ */ o(
|
|
445
|
+
/* @__PURE__ */ o(xn, I(a({ anchor: t }, c), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
|
|
447
446
|
/* @__PURE__ */ o(O, { variant: "h6", color: "inherit", component: "div", children: r }),
|
|
448
|
-
d && /* @__PURE__ */ p(
|
|
447
|
+
d && /* @__PURE__ */ p(J, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
|
|
449
448
|
/* @__PURE__ */ o(dt, { "data-testid": "arrowbackicon" }),
|
|
450
449
|
" "
|
|
451
450
|
] })
|
|
452
|
-
] }) : /* @__PURE__ */ p(
|
|
453
|
-
d && /* @__PURE__ */ p(
|
|
451
|
+
] }) : /* @__PURE__ */ p(_, { children: [
|
|
452
|
+
d && /* @__PURE__ */ p(J, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
|
|
454
453
|
/* @__PURE__ */ o(ct, {}),
|
|
455
454
|
" "
|
|
456
455
|
] }),
|
|
@@ -461,7 +460,7 @@ function Ue({
|
|
|
461
460
|
}
|
|
462
461
|
);
|
|
463
462
|
}
|
|
464
|
-
const
|
|
463
|
+
const Cn = W(k, {
|
|
465
464
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
466
465
|
name: "PanelAwareMargins"
|
|
467
466
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -484,27 +483,27 @@ const $n = W(I, {
|
|
|
484
483
|
}),
|
|
485
484
|
marginRight: `${(r = n == null ? void 0 : n.width) != null ? r : 0}px`
|
|
486
485
|
});
|
|
487
|
-
}),
|
|
486
|
+
}), wn = W(tt, {
|
|
488
487
|
name: "PageContainer"
|
|
489
488
|
})(({ theme: e }) => ({
|
|
490
489
|
// Horizontal padding comes from the Container's gutter
|
|
491
490
|
paddingTop: e.spacing(3),
|
|
492
491
|
paddingBottom: e.spacing(3)
|
|
493
492
|
// TODO: Remove max width
|
|
494
|
-
})),
|
|
493
|
+
})), me = !1, xe = !1, ne = {
|
|
495
494
|
titleText: "",
|
|
496
495
|
flavour: "push",
|
|
497
|
-
width:
|
|
496
|
+
width: xt,
|
|
498
497
|
arrowButtons: "both",
|
|
499
498
|
startOpen: !1,
|
|
500
499
|
open: void 0,
|
|
501
500
|
onChangeOpen: void 0,
|
|
502
|
-
content: /* @__PURE__ */ o(
|
|
501
|
+
content: /* @__PURE__ */ o(_, {}),
|
|
503
502
|
onOpened: void 0,
|
|
504
503
|
onClosed: void 0,
|
|
505
504
|
dataTestId: void 0
|
|
506
505
|
};
|
|
507
|
-
function
|
|
506
|
+
function Do({
|
|
508
507
|
children: e,
|
|
509
508
|
titleText: t = "",
|
|
510
509
|
leftPanel: n,
|
|
@@ -518,135 +517,135 @@ function Po({
|
|
|
518
517
|
navBarWidthOpen: g,
|
|
519
518
|
navBarWidthClosed: C
|
|
520
519
|
}) {
|
|
521
|
-
const [v, h] =
|
|
520
|
+
const [v, h] = B(me), [b, S] = B(xe), [$, D] = B(me), [E, T] = B(xe), L = n !== void 0, N = i !== void 0, {
|
|
522
521
|
titleText: w,
|
|
523
|
-
content:
|
|
522
|
+
content: y,
|
|
524
523
|
flavour: M,
|
|
525
524
|
open: f,
|
|
526
525
|
onChangeOpen: m,
|
|
527
526
|
width: x,
|
|
528
527
|
arrowButtons: A,
|
|
529
528
|
startOpen: H,
|
|
530
|
-
onOpened:
|
|
531
|
-
onClosed:
|
|
532
|
-
dataTestId:
|
|
533
|
-
} = n ? a(a({},
|
|
534
|
-
titleText:
|
|
535
|
-
content:
|
|
536
|
-
flavour:
|
|
537
|
-
open:
|
|
538
|
-
onChangeOpen:
|
|
539
|
-
width:
|
|
540
|
-
arrowButtons:
|
|
541
|
-
startOpen:
|
|
542
|
-
onOpened:
|
|
543
|
-
onClosed:
|
|
544
|
-
dataTestId:
|
|
545
|
-
} = i ? a(a({},
|
|
529
|
+
onOpened: Z,
|
|
530
|
+
onClosed: le,
|
|
531
|
+
dataTestId: It
|
|
532
|
+
} = n ? a(a({}, ne), n) : a({}, ne), {
|
|
533
|
+
titleText: kt,
|
|
534
|
+
content: yt,
|
|
535
|
+
flavour: ye,
|
|
536
|
+
open: ce,
|
|
537
|
+
onChangeOpen: $e,
|
|
538
|
+
width: de,
|
|
539
|
+
arrowButtons: j,
|
|
540
|
+
startOpen: ee,
|
|
541
|
+
onOpened: $t,
|
|
542
|
+
onClosed: Dt,
|
|
543
|
+
dataTestId: Tt
|
|
544
|
+
} = i ? a(a({}, ne), i) : a({}, ne);
|
|
546
545
|
K(() => {
|
|
547
|
-
H !==
|
|
546
|
+
H !== me && (h(H), D(H));
|
|
548
547
|
}, [H]), K(() => {
|
|
549
|
-
|
|
550
|
-
}, [
|
|
551
|
-
const
|
|
552
|
-
f === void 0 && (h(U), r &&
|
|
553
|
-
},
|
|
554
|
-
|
|
548
|
+
ee !== xe && (S(ee), T(ee));
|
|
549
|
+
}, [ee]);
|
|
550
|
+
const ue = f === void 0 ? v : f, pe = ce === void 0 ? b : ce, De = (U) => {
|
|
551
|
+
f === void 0 && (h(U), r && N && (U ? (S(!1), T(b)) : S(E))), m && m(U);
|
|
552
|
+
}, Te = (U) => {
|
|
553
|
+
ce === void 0 && (S(U), r && L && (U ? (h(!1), D(v)) : h($))), $e && $e(U);
|
|
555
554
|
};
|
|
556
|
-
return /* @__PURE__ */ p(
|
|
555
|
+
return /* @__PURE__ */ p(k, { children: [
|
|
557
556
|
L && /* @__PURE__ */ o(
|
|
558
|
-
|
|
557
|
+
We,
|
|
559
558
|
{
|
|
560
|
-
"data-testid":
|
|
559
|
+
"data-testid": It,
|
|
561
560
|
anchor: "left",
|
|
562
|
-
open:
|
|
563
|
-
onClose: () =>
|
|
561
|
+
open: ue,
|
|
562
|
+
onClose: () => De(!1),
|
|
564
563
|
width: x,
|
|
565
564
|
titleText: w,
|
|
566
565
|
debugOpacity: s,
|
|
567
566
|
showCloseArrow: A === "both" || A === "close",
|
|
568
|
-
onOpened:
|
|
569
|
-
onClosed:
|
|
567
|
+
onOpened: Z,
|
|
568
|
+
onClosed: le,
|
|
570
569
|
navBarOpen: u,
|
|
571
570
|
navBarWidthOpen: g,
|
|
572
571
|
navBarWidthClosed: C,
|
|
573
|
-
children:
|
|
572
|
+
children: y
|
|
574
573
|
}
|
|
575
574
|
),
|
|
576
|
-
|
|
577
|
-
|
|
575
|
+
N && /* @__PURE__ */ o(
|
|
576
|
+
We,
|
|
578
577
|
{
|
|
579
|
-
"data-testid":
|
|
578
|
+
"data-testid": Tt,
|
|
580
579
|
anchor: "right",
|
|
581
|
-
open:
|
|
582
|
-
onClose: () =>
|
|
583
|
-
width:
|
|
584
|
-
titleText:
|
|
580
|
+
open: pe,
|
|
581
|
+
onClose: () => Te(!1),
|
|
582
|
+
width: de,
|
|
583
|
+
titleText: kt,
|
|
585
584
|
debugOpacity: s,
|
|
586
|
-
showCloseArrow:
|
|
587
|
-
onOpened:
|
|
588
|
-
onClosed:
|
|
585
|
+
showCloseArrow: j === "both" || j === "close",
|
|
586
|
+
onOpened: $t,
|
|
587
|
+
onClosed: Dt,
|
|
589
588
|
navBarOpen: u,
|
|
590
589
|
navBarWidthOpen: g,
|
|
591
590
|
navBarWidthClosed: C,
|
|
592
|
-
children:
|
|
591
|
+
children: yt
|
|
593
592
|
}
|
|
594
593
|
),
|
|
595
594
|
/* @__PURE__ */ o(
|
|
596
|
-
|
|
595
|
+
fn,
|
|
597
596
|
a(a({
|
|
598
597
|
titleText: t,
|
|
599
598
|
"data-testid": c
|
|
600
599
|
}, L && M === "push" ? {
|
|
601
600
|
leftPanel: {
|
|
602
|
-
open:
|
|
601
|
+
open: ue,
|
|
603
602
|
width: x,
|
|
604
|
-
onOpen: () =>
|
|
603
|
+
onOpen: () => De(!0),
|
|
605
604
|
showOpenArrow: A === "both" || A === "open"
|
|
606
605
|
}
|
|
607
|
-
} : {}),
|
|
606
|
+
} : {}), N && ye === "push" ? {
|
|
608
607
|
rightPanel: {
|
|
609
|
-
open:
|
|
610
|
-
width:
|
|
611
|
-
onOpen: () =>
|
|
612
|
-
showOpenArrow:
|
|
608
|
+
open: pe,
|
|
609
|
+
width: de,
|
|
610
|
+
onOpen: () => Te(!0),
|
|
611
|
+
showOpenArrow: j === "both" || j === "open"
|
|
613
612
|
}
|
|
614
613
|
} : {})
|
|
615
614
|
),
|
|
616
615
|
/* @__PURE__ */ o(
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
Cn,
|
|
617
|
+
I(a(a({}, M === "push" ? {
|
|
619
618
|
leftPanel: {
|
|
620
|
-
open:
|
|
619
|
+
open: ue,
|
|
621
620
|
width: x
|
|
622
621
|
}
|
|
623
|
-
} : {}),
|
|
622
|
+
} : {}), ye === "push" ? {
|
|
624
623
|
rightPanel: {
|
|
625
|
-
open:
|
|
626
|
-
width:
|
|
624
|
+
open: pe,
|
|
625
|
+
width: de
|
|
627
626
|
}
|
|
628
627
|
} : {}), {
|
|
629
|
-
children: /* @__PURE__ */ o(
|
|
628
|
+
children: /* @__PURE__ */ o(wn, I(a({ "data-testid": l }, d), { children: e }))
|
|
630
629
|
})
|
|
631
630
|
)
|
|
632
631
|
] });
|
|
633
632
|
}
|
|
634
|
-
const
|
|
635
|
-
const e =
|
|
636
|
-
return
|
|
637
|
-
},
|
|
638
|
-
function
|
|
633
|
+
const Ct = () => {
|
|
634
|
+
const e = se();
|
|
635
|
+
return Nt(e.breakpoints.down("sm"));
|
|
636
|
+
}, vn = 64, An = 72, bn = 256, ae = R(!0), Sn = R(bn), In = R(An), Ue = R(""), kn = R(void 0), yn = R(vn), $n = R(void 0);
|
|
637
|
+
function Dn({ links: e }) {
|
|
639
638
|
return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
|
|
640
639
|
}
|
|
641
|
-
const
|
|
642
|
-
root: `${
|
|
643
|
-
menuButton: `${
|
|
644
|
-
hide: `${
|
|
645
|
-
content: `${
|
|
640
|
+
const oe = "Navbar", Y = {
|
|
641
|
+
root: `${oe}-root`,
|
|
642
|
+
menuButton: `${oe}-menuButton`,
|
|
643
|
+
hide: `${oe}-hide`,
|
|
644
|
+
content: `${oe}-content`
|
|
646
645
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
647
646
|
// settings: `${PREFIX}-settings`,
|
|
648
647
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
649
|
-
},
|
|
648
|
+
}, Tn = W(k, { name: "NavBar" })(({ theme: e }) => ({
|
|
650
649
|
[`&.${Y.root}`]: {
|
|
651
650
|
display: "flex"
|
|
652
651
|
},
|
|
@@ -668,10 +667,10 @@ const re = "Navbar", Y = {
|
|
|
668
667
|
})), X = (e, t, n) => e.transitions.create(t, {
|
|
669
668
|
easing: e.transitions.easing.sharp,
|
|
670
669
|
duration: n === "leaving" ? e.transitions.duration.leavingScreen : e.transitions.duration.enteringScreen
|
|
671
|
-
}),
|
|
672
|
-
const t =
|
|
670
|
+
}), En = (e) => {
|
|
671
|
+
const t = se();
|
|
673
672
|
return /* @__PURE__ */ o(
|
|
674
|
-
|
|
673
|
+
Pt,
|
|
675
674
|
a({
|
|
676
675
|
easing: t.transitions.easing.sharp,
|
|
677
676
|
timeout: {
|
|
@@ -680,7 +679,7 @@ const re = "Navbar", Y = {
|
|
|
680
679
|
}
|
|
681
680
|
}, e)
|
|
682
681
|
);
|
|
683
|
-
},
|
|
682
|
+
}, wt = (e) => {
|
|
684
683
|
var t, n;
|
|
685
684
|
return {
|
|
686
685
|
overflowX: "hidden",
|
|
@@ -691,10 +690,10 @@ const re = "Navbar", Y = {
|
|
|
691
690
|
}, ze = (e, t) => a({
|
|
692
691
|
width: t,
|
|
693
692
|
transition: X(e, "width", "entering")
|
|
694
|
-
},
|
|
693
|
+
}, wt(e)), Ge = (e, t) => a({
|
|
695
694
|
width: t,
|
|
696
695
|
transition: X(e, "width", "leaving")
|
|
697
|
-
},
|
|
696
|
+
}, wt(e)), On = W(we, {
|
|
698
697
|
shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
|
|
699
698
|
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => a(a({
|
|
700
699
|
flexShrink: 0,
|
|
@@ -702,20 +701,20 @@ const re = "Navbar", Y = {
|
|
|
702
701
|
boxSizing: "border-box",
|
|
703
702
|
display: "flex",
|
|
704
703
|
flexDirection: "column"
|
|
705
|
-
}, t &&
|
|
704
|
+
}, t && I(a({}, ze(e, n)), {
|
|
706
705
|
backgroundColor: "",
|
|
707
706
|
"& .MuiDrawer-paper": ze(e, n)
|
|
708
|
-
})), !t &&
|
|
707
|
+
})), !t && I(a({}, Ge(e, r ? n : i)), {
|
|
709
708
|
backgroundColor: "",
|
|
710
709
|
"& .MuiDrawer-paper": Ge(e, r ? n : i)
|
|
711
|
-
}))),
|
|
710
|
+
}))), ie = {
|
|
712
711
|
log: console.warn.bind(console),
|
|
713
712
|
error: console.error.bind(console),
|
|
714
713
|
warn: console.warn.bind(console),
|
|
715
714
|
info: console.info.bind(console),
|
|
716
715
|
debug: console.debug.bind(console)
|
|
717
716
|
};
|
|
718
|
-
function
|
|
717
|
+
function To(e, t) {
|
|
719
718
|
console[e] = (...n) => {
|
|
720
719
|
for (const i of t)
|
|
721
720
|
if (typeof i == "function") {
|
|
@@ -725,17 +724,17 @@ function _o(e, t) {
|
|
|
725
724
|
if (typeof r == "string" && i.test(r))
|
|
726
725
|
return;
|
|
727
726
|
}
|
|
728
|
-
|
|
727
|
+
ie[e](n);
|
|
729
728
|
};
|
|
730
729
|
}
|
|
731
|
-
function
|
|
730
|
+
function Eo(e) {
|
|
732
731
|
if (e)
|
|
733
|
-
console[e] =
|
|
732
|
+
console[e] = ie[e];
|
|
734
733
|
else
|
|
735
|
-
for (const t of Object.keys(
|
|
736
|
-
console[t] =
|
|
734
|
+
for (const t of Object.keys(ie))
|
|
735
|
+
console[t] = ie[t];
|
|
737
736
|
}
|
|
738
|
-
function
|
|
737
|
+
function Fn(e) {
|
|
739
738
|
let t = 0;
|
|
740
739
|
for (let n = 0, i = e.length; n < i; n++) {
|
|
741
740
|
const r = e.charCodeAt(n);
|
|
@@ -744,10 +743,10 @@ function Ln(e) {
|
|
|
744
743
|
return t;
|
|
745
744
|
}
|
|
746
745
|
const Ve = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], qe = (e) => e.split(/\s/).map((t) => t.substring(0, 1).toUpperCase()).filter((t) => !!t).slice(0, 2).join("").toUpperCase();
|
|
747
|
-
function
|
|
748
|
-
const r =
|
|
746
|
+
function Bn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
747
|
+
const r = se();
|
|
749
748
|
return /* @__PURE__ */ p(
|
|
750
|
-
|
|
749
|
+
k,
|
|
751
750
|
{
|
|
752
751
|
sx: {
|
|
753
752
|
paddingTop: 3,
|
|
@@ -758,52 +757,52 @@ function Mn({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
|
758
757
|
},
|
|
759
758
|
children: [
|
|
760
759
|
!i && /* @__PURE__ */ o(
|
|
761
|
-
|
|
760
|
+
k,
|
|
762
761
|
{
|
|
763
762
|
sx: {
|
|
764
763
|
width: n ? "5rem" : "2rem",
|
|
765
764
|
transition: n ? X(r, ["width", "height"], "entering") : X(r, ["width", "height"], "leaving"),
|
|
766
765
|
aspectRatio: 1
|
|
767
766
|
},
|
|
768
|
-
children: e != null && e.name ? /* @__PURE__ */ o(
|
|
769
|
-
|
|
767
|
+
children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
|
|
768
|
+
Ne,
|
|
770
769
|
{
|
|
771
770
|
src: e == null ? void 0 : e.picture,
|
|
772
771
|
sx: {
|
|
773
772
|
width: "100%",
|
|
774
773
|
height: "100%",
|
|
775
|
-
bgcolor: Ve[Math.abs(
|
|
774
|
+
bgcolor: Ve[Math.abs(Fn(e == null ? void 0 : e.name)) % Ve.length]
|
|
776
775
|
},
|
|
777
776
|
children: qe(e == null ? void 0 : e.name)
|
|
778
777
|
}
|
|
779
|
-
) }) : /* @__PURE__ */ o(
|
|
778
|
+
) }) : /* @__PURE__ */ o(Ne, { sx: { width: "100%", height: "100%" } })
|
|
780
779
|
}
|
|
781
780
|
),
|
|
782
781
|
i && /* @__PURE__ */ o(
|
|
783
|
-
|
|
782
|
+
k,
|
|
784
783
|
{
|
|
785
784
|
sx: {
|
|
786
785
|
width: n ? "5rem" : "2rem",
|
|
787
786
|
transition: n ? X(r, ["width", "height"], "entering") : X(r, ["width", "height"], "leaving"),
|
|
788
787
|
aspectRatio: 1
|
|
789
788
|
},
|
|
790
|
-
children: e != null && e.name ? /* @__PURE__ */ o(
|
|
789
|
+
children: e != null && e.name ? /* @__PURE__ */ o(_, { children: /* @__PURE__ */ p(Me, { src: e == null ? void 0 : e.picture, name: e == null ? void 0 : e.name, round: !0, size: n ? "80" : "32", children: [
|
|
791
790
|
" ",
|
|
792
791
|
qe(e == null ? void 0 : e.name),
|
|
793
792
|
" ",
|
|
794
793
|
"ab"
|
|
795
|
-
] }) }) : /* @__PURE__ */ o(
|
|
794
|
+
] }) }) : /* @__PURE__ */ o(Me, {})
|
|
796
795
|
}
|
|
797
796
|
),
|
|
798
|
-
/* @__PURE__ */ o(
|
|
799
|
-
e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(
|
|
800
|
-
t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(
|
|
797
|
+
/* @__PURE__ */ o(En, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(_t, { in: n, children: /* @__PURE__ */ p(k, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
798
|
+
e != null && e.name ? /* @__PURE__ */ o(O, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "50%" }),
|
|
799
|
+
t ? /* @__PURE__ */ o(O, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Pe, { animation: !1, width: "25%" })
|
|
801
800
|
] }) }) })
|
|
802
801
|
]
|
|
803
802
|
}
|
|
804
803
|
);
|
|
805
804
|
}
|
|
806
|
-
function
|
|
805
|
+
function Nn({
|
|
807
806
|
open: e,
|
|
808
807
|
widthClosed: t,
|
|
809
808
|
widthOpen: n,
|
|
@@ -815,9 +814,9 @@ function Rn({
|
|
|
815
814
|
domainCode: c,
|
|
816
815
|
useNewAvatar: u = !1
|
|
817
816
|
}) {
|
|
818
|
-
const g =
|
|
819
|
-
return /* @__PURE__ */ o(
|
|
820
|
-
|
|
817
|
+
const g = Ct(), C = ut(ae);
|
|
818
|
+
return /* @__PURE__ */ o(Tn, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ p(
|
|
819
|
+
On,
|
|
821
820
|
{
|
|
822
821
|
open: e,
|
|
823
822
|
widthOpen: n,
|
|
@@ -832,36 +831,36 @@ function Rn({
|
|
|
832
831
|
},
|
|
833
832
|
isSmallScreen: g,
|
|
834
833
|
children: [
|
|
835
|
-
!g && /* @__PURE__ */ o(
|
|
836
|
-
r && /* @__PURE__ */ p(
|
|
834
|
+
!g && /* @__PURE__ */ o(Lt, {}),
|
|
835
|
+
r && /* @__PURE__ */ p(k, { flexGrow: "0", children: [
|
|
837
836
|
r,
|
|
838
|
-
/* @__PURE__ */ o(
|
|
837
|
+
/* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } })
|
|
839
838
|
] }),
|
|
840
|
-
/* @__PURE__ */ o(
|
|
841
|
-
/* @__PURE__ */ p(
|
|
842
|
-
/* @__PURE__ */ o(
|
|
843
|
-
/* @__PURE__ */ o(
|
|
844
|
-
d && /* @__PURE__ */ o(
|
|
839
|
+
/* @__PURE__ */ o(k, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ o(Dn, { links: s }) : s }),
|
|
840
|
+
/* @__PURE__ */ p(k, { flexGrow: "0", children: [
|
|
841
|
+
/* @__PURE__ */ o(_e, { variant: "middle", sx: { marginY: "0.5rem" } }),
|
|
842
|
+
/* @__PURE__ */ o(Bn, { user: l, domainCode: c, open: e, useNewAvatar: u }),
|
|
843
|
+
d && /* @__PURE__ */ o(_, { children: d })
|
|
845
844
|
] })
|
|
846
845
|
]
|
|
847
846
|
}
|
|
848
847
|
) });
|
|
849
848
|
}
|
|
850
|
-
function
|
|
849
|
+
function Pn({
|
|
851
850
|
children: e,
|
|
852
851
|
topBarHeight: t,
|
|
853
852
|
maxWidth: n = !1,
|
|
854
853
|
noPadding: i
|
|
855
854
|
}) {
|
|
856
855
|
return /* @__PURE__ */ o(
|
|
857
|
-
|
|
856
|
+
k,
|
|
858
857
|
{
|
|
859
858
|
sx: {
|
|
860
859
|
overflow: "auto",
|
|
861
860
|
height: `calc(100vh - ${t}px)`,
|
|
862
861
|
flexGrow: 1
|
|
863
862
|
},
|
|
864
|
-
children: i ? /* @__PURE__ */ o(
|
|
863
|
+
children: i ? /* @__PURE__ */ o(k, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ o(
|
|
865
864
|
tt,
|
|
866
865
|
{
|
|
867
866
|
component: "main",
|
|
@@ -874,16 +873,16 @@ function Hn({
|
|
|
874
873
|
}
|
|
875
874
|
);
|
|
876
875
|
}
|
|
877
|
-
const
|
|
878
|
-
titleText: `${
|
|
876
|
+
const _n = "TopBar", Ln = {
|
|
877
|
+
titleText: `${_n}-titleText`
|
|
879
878
|
};
|
|
880
|
-
function
|
|
879
|
+
function Mn({
|
|
881
880
|
titleText: e = "",
|
|
882
881
|
height: t,
|
|
883
882
|
"data-testid": n,
|
|
884
883
|
middle: i
|
|
885
884
|
}) {
|
|
886
|
-
const r = ut(
|
|
885
|
+
const r = ut(ae), s = () => r((c) => !c), d = se(), l = Ct();
|
|
887
886
|
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
|
|
888
887
|
et,
|
|
889
888
|
{
|
|
@@ -903,22 +902,22 @@ function zn({
|
|
|
903
902
|
},
|
|
904
903
|
children: [
|
|
905
904
|
/* @__PURE__ */ o(
|
|
906
|
-
|
|
905
|
+
J,
|
|
907
906
|
{
|
|
908
907
|
size: "medium",
|
|
909
908
|
color: "inherit",
|
|
910
909
|
sx: { padding: 1.5, marginLeft: "12px" },
|
|
911
910
|
onClick: s,
|
|
912
|
-
children: /* @__PURE__ */ o(
|
|
911
|
+
children: /* @__PURE__ */ o(Xt, { fontSize: "medium" })
|
|
913
912
|
}
|
|
914
913
|
),
|
|
915
|
-
/* @__PURE__ */ o(O, { className:
|
|
914
|
+
/* @__PURE__ */ o(O, { className: Ln.titleText, variant: "h6", component: "h1", children: e }),
|
|
916
915
|
i
|
|
917
916
|
]
|
|
918
917
|
}
|
|
919
918
|
) });
|
|
920
919
|
}
|
|
921
|
-
function
|
|
920
|
+
function Oo({
|
|
922
921
|
children: e,
|
|
923
922
|
initialTitleText: t,
|
|
924
923
|
initialNavBarOpen: n,
|
|
@@ -932,15 +931,15 @@ function Mo({
|
|
|
932
931
|
domainCode: g,
|
|
933
932
|
useNewAvatar: C = !1
|
|
934
933
|
}) {
|
|
935
|
-
|
|
936
|
-
[
|
|
937
|
-
[
|
|
934
|
+
Qt([
|
|
935
|
+
[ae, n != null ? n : !0],
|
|
936
|
+
[Ue, t != null ? t : ""]
|
|
938
937
|
]);
|
|
939
|
-
const v =
|
|
940
|
-
return /* @__PURE__ */ p(
|
|
941
|
-
/* @__PURE__ */ o(
|
|
938
|
+
const v = Le(ae), [h] = V(Sn), [b] = V(In), S = Le(Ue), [$] = V(yn), [D] = V(kn), [E] = V($n);
|
|
939
|
+
return /* @__PURE__ */ p(k, { children: [
|
|
940
|
+
/* @__PURE__ */ o(Mt, {}),
|
|
942
941
|
/* @__PURE__ */ o(
|
|
943
|
-
|
|
942
|
+
Mn,
|
|
944
943
|
{
|
|
945
944
|
titleText: S,
|
|
946
945
|
"data-testid": s,
|
|
@@ -948,9 +947,9 @@ function Mo({
|
|
|
948
947
|
middle: D
|
|
949
948
|
}
|
|
950
949
|
),
|
|
951
|
-
/* @__PURE__ */ p(
|
|
950
|
+
/* @__PURE__ */ p(k, { sx: { display: "flex" }, children: [
|
|
952
951
|
/* @__PURE__ */ o(
|
|
953
|
-
|
|
952
|
+
Nn,
|
|
954
953
|
{
|
|
955
954
|
open: v,
|
|
956
955
|
top: E,
|
|
@@ -966,8 +965,8 @@ function Mo({
|
|
|
966
965
|
}
|
|
967
966
|
),
|
|
968
967
|
/* @__PURE__ */ o(
|
|
969
|
-
|
|
970
|
-
|
|
968
|
+
Pn,
|
|
969
|
+
I(a({
|
|
971
970
|
"data-testid": r,
|
|
972
971
|
topBarHeight: $
|
|
973
972
|
}, i), {
|
|
@@ -977,7 +976,7 @@ function Mo({
|
|
|
977
976
|
] })
|
|
978
977
|
] });
|
|
979
978
|
}
|
|
980
|
-
const
|
|
979
|
+
const vt = ({
|
|
981
980
|
isOpen: e,
|
|
982
981
|
dialogTitle: t,
|
|
983
982
|
children: n,
|
|
@@ -991,12 +990,12 @@ const It = ({
|
|
|
991
990
|
isLoading: g = !1
|
|
992
991
|
}) => {
|
|
993
992
|
var h, b;
|
|
994
|
-
const [C, v] =
|
|
993
|
+
const [C, v] = B(!1);
|
|
995
994
|
return /* @__PURE__ */ p(
|
|
996
995
|
nt,
|
|
997
996
|
{
|
|
998
997
|
open: e,
|
|
999
|
-
onClose: (S, $) =>
|
|
998
|
+
onClose: (S, $) => P(void 0, null, function* () {
|
|
1000
999
|
u && ($ === "backdropClick" || $ === "escapeKeyDown") || C || (s != null && s.onClick ? yield s.onClick() : d());
|
|
1001
1000
|
}),
|
|
1002
1001
|
fullWidth: !0,
|
|
@@ -1009,7 +1008,7 @@ const It = ({
|
|
|
1009
1008
|
/* @__PURE__ */ o(rt, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
1010
1009
|
/* @__PURE__ */ p(at, { children: [
|
|
1011
1010
|
/* @__PURE__ */ o(
|
|
1012
|
-
|
|
1011
|
+
Q,
|
|
1013
1012
|
{
|
|
1014
1013
|
onClick: (h = s == null ? void 0 : s.onClick) != null ? h : d,
|
|
1015
1014
|
"data-testid": s == null ? void 0 : s.testId,
|
|
@@ -1019,9 +1018,9 @@ const It = ({
|
|
|
1019
1018
|
}
|
|
1020
1019
|
),
|
|
1021
1020
|
r && /* @__PURE__ */ o(
|
|
1022
|
-
|
|
1021
|
+
Q,
|
|
1023
1022
|
{
|
|
1024
|
-
onClick: () =>
|
|
1023
|
+
onClick: () => P(void 0, null, function* () {
|
|
1025
1024
|
var S;
|
|
1026
1025
|
v(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), v(!1);
|
|
1027
1026
|
}),
|
|
@@ -1035,20 +1034,20 @@ const It = ({
|
|
|
1035
1034
|
]
|
|
1036
1035
|
}
|
|
1037
1036
|
);
|
|
1038
|
-
},
|
|
1037
|
+
}, At = ({
|
|
1039
1038
|
minLength: e,
|
|
1040
1039
|
preLoadedOptions: t,
|
|
1041
1040
|
lookup: n,
|
|
1042
1041
|
label: i,
|
|
1043
1042
|
inputValue: r
|
|
1044
|
-
}) =>
|
|
1043
|
+
}) => jt({
|
|
1045
1044
|
queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
|
|
1046
1045
|
(s) => s.label.toLowerCase().includes(r.toLowerCase())
|
|
1047
1046
|
) : n(r),
|
|
1048
1047
|
queryKey: ["autocomplete", i, r]
|
|
1049
1048
|
});
|
|
1050
|
-
function
|
|
1051
|
-
lookup: e = () =>
|
|
1049
|
+
function Fo({
|
|
1050
|
+
lookup: e = () => P(this, null, function* () {
|
|
1052
1051
|
}),
|
|
1053
1052
|
enableHighlighting: t = !0,
|
|
1054
1053
|
onChange: n,
|
|
@@ -1062,17 +1061,17 @@ function Ro({
|
|
|
1062
1061
|
textFieldVariant: g = "filled",
|
|
1063
1062
|
loadingText: C = "Loading...",
|
|
1064
1063
|
noOptionsText: v = "No options",
|
|
1065
|
-
popupIcon: h = /* @__PURE__ */ o(
|
|
1064
|
+
popupIcon: h = /* @__PURE__ */ o(Kt, {}),
|
|
1066
1065
|
error: b = !1,
|
|
1067
1066
|
helperText: S = "",
|
|
1068
1067
|
preLoadedOptions: $ = void 0,
|
|
1069
1068
|
disablePortal: D = !1,
|
|
1070
1069
|
disableIconFlip: E = !1
|
|
1071
1070
|
}) {
|
|
1072
|
-
const [T, L] =
|
|
1071
|
+
const [T, L] = B(""), N = (f, m) => {
|
|
1073
1072
|
const x = s.filter((A) => A.id !== m);
|
|
1074
1073
|
n(x, "delete", f);
|
|
1075
|
-
}, { data: w, isLoading:
|
|
1074
|
+
}, { data: w, isLoading: y } = At({
|
|
1076
1075
|
inputValue: T,
|
|
1077
1076
|
label: r,
|
|
1078
1077
|
lookup: e,
|
|
@@ -1081,14 +1080,14 @@ function Ro({
|
|
|
1081
1080
|
}), M = T.length >= i;
|
|
1082
1081
|
return /* @__PURE__ */ p("div", { "data-testid": d, children: [
|
|
1083
1082
|
/* @__PURE__ */ o(
|
|
1084
|
-
|
|
1083
|
+
Ae,
|
|
1085
1084
|
{
|
|
1086
1085
|
sx: a(a({}, l), E ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
1087
1086
|
"data-testid": d ? `${d}:Autocomplete` : void 0,
|
|
1088
1087
|
disablePortal: D,
|
|
1089
1088
|
multiple: !0,
|
|
1090
1089
|
getOptionLabel: (f) => typeof f == "string" ? f : f.label,
|
|
1091
|
-
loading: M ?
|
|
1090
|
+
loading: M ? y : !1,
|
|
1092
1091
|
options: [...s, ...w != null ? w : []],
|
|
1093
1092
|
filterSelectedOptions: !0,
|
|
1094
1093
|
includeInputInList: !0,
|
|
@@ -1101,16 +1100,16 @@ function Ro({
|
|
|
1101
1100
|
loadingText: C,
|
|
1102
1101
|
popupIcon: h,
|
|
1103
1102
|
renderInput: (f) => /* @__PURE__ */ o(
|
|
1104
|
-
|
|
1105
|
-
|
|
1103
|
+
be,
|
|
1104
|
+
I(a({}, f), {
|
|
1106
1105
|
label: r,
|
|
1107
1106
|
fullWidth: !0,
|
|
1108
1107
|
variant: g,
|
|
1109
1108
|
error: b,
|
|
1110
1109
|
helperText: S,
|
|
1111
|
-
InputProps:
|
|
1112
|
-
endAdornment: /* @__PURE__ */ p(
|
|
1113
|
-
|
|
1110
|
+
InputProps: I(a({}, f.InputProps), {
|
|
1111
|
+
endAdornment: /* @__PURE__ */ p(_, { children: [
|
|
1112
|
+
y ? /* @__PURE__ */ o(Se, { color: "inherit", size: 20 }) : null,
|
|
1114
1113
|
f.InputProps.endAdornment
|
|
1115
1114
|
] })
|
|
1116
1115
|
}),
|
|
@@ -1125,31 +1124,31 @@ function Ro({
|
|
|
1125
1124
|
isOptionEqualToValue: (f, m) => f.id === m.id,
|
|
1126
1125
|
renderOption: (f, m, x) => {
|
|
1127
1126
|
if (t) {
|
|
1128
|
-
const A =
|
|
1127
|
+
const A = Jt(m.label, x.inputValue, {
|
|
1129
1128
|
insideWords: !0,
|
|
1130
1129
|
findAllOccurrences: !0
|
|
1131
|
-
}), H =
|
|
1132
|
-
return /* @__PURE__ */
|
|
1130
|
+
}), H = Zt(m.label, A);
|
|
1131
|
+
return /* @__PURE__ */ Ce(
|
|
1133
1132
|
"li",
|
|
1134
|
-
|
|
1133
|
+
I(a({}, f), {
|
|
1135
1134
|
key: m.id,
|
|
1136
1135
|
"data-testid": d ? `${d}:Autocomplete:option(${m.id.toString()})` : void 0
|
|
1137
1136
|
}),
|
|
1138
|
-
/* @__PURE__ */ o("div", { children: H.map((
|
|
1137
|
+
/* @__PURE__ */ o("div", { children: H.map((Z, le) => /* @__PURE__ */ o(
|
|
1139
1138
|
"span",
|
|
1140
1139
|
{
|
|
1141
1140
|
style: {
|
|
1142
|
-
fontWeight:
|
|
1141
|
+
fontWeight: Z.highlight ? 700 : 400
|
|
1143
1142
|
},
|
|
1144
|
-
children:
|
|
1143
|
+
children: Z.text
|
|
1145
1144
|
},
|
|
1146
|
-
|
|
1145
|
+
le
|
|
1147
1146
|
)) })
|
|
1148
1147
|
);
|
|
1149
1148
|
} else
|
|
1150
|
-
return /* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ Ce(
|
|
1151
1150
|
"li",
|
|
1152
|
-
|
|
1151
|
+
I(a({}, f), {
|
|
1153
1152
|
key: m.id,
|
|
1154
1153
|
"data-testid": d ? `${d}:option(${m.id.toString()})` : void 0
|
|
1155
1154
|
}),
|
|
@@ -1158,8 +1157,8 @@ function Ro({
|
|
|
1158
1157
|
}
|
|
1159
1158
|
}
|
|
1160
1159
|
),
|
|
1161
|
-
s.length > 0 && /* @__PURE__ */ o(
|
|
1162
|
-
|
|
1160
|
+
s.length > 0 && /* @__PURE__ */ o(k, { sx: c, children: s.map((f) => /* @__PURE__ */ o(
|
|
1161
|
+
Rt,
|
|
1163
1162
|
{
|
|
1164
1163
|
sx: {
|
|
1165
1164
|
marginTop: 1,
|
|
@@ -1167,7 +1166,7 @@ function Ro({
|
|
|
1167
1166
|
height: "auto"
|
|
1168
1167
|
},
|
|
1169
1168
|
label: /* @__PURE__ */ o(
|
|
1170
|
-
|
|
1169
|
+
Ht,
|
|
1171
1170
|
{
|
|
1172
1171
|
title: f.tooltipContent || "",
|
|
1173
1172
|
placement: "bottom-start",
|
|
@@ -1185,9 +1184,9 @@ function Ro({
|
|
|
1185
1184
|
}
|
|
1186
1185
|
),
|
|
1187
1186
|
"data-testid": d ? `${d}:Chip(${f.id.toString()})` : void 0,
|
|
1188
|
-
onDelete: (m) =>
|
|
1187
|
+
onDelete: (m) => N(m, f.id),
|
|
1189
1188
|
deleteIcon: /* @__PURE__ */ o(
|
|
1190
|
-
|
|
1189
|
+
Yt,
|
|
1191
1190
|
{
|
|
1192
1191
|
"data-testid": d ? `${d}:Chip(${f.id.toString()}):deleteIcon` : void 0
|
|
1193
1192
|
}
|
|
@@ -1197,8 +1196,8 @@ function Ro({
|
|
|
1197
1196
|
)) })
|
|
1198
1197
|
] });
|
|
1199
1198
|
}
|
|
1200
|
-
const
|
|
1201
|
-
lookup: e = () =>
|
|
1199
|
+
const Bo = /MUI: The value provided to.*is invalid/i, No = ({
|
|
1200
|
+
lookup: e = () => P(void 0, null, function* () {
|
|
1202
1201
|
}),
|
|
1203
1202
|
onChange: t,
|
|
1204
1203
|
label: n,
|
|
@@ -1217,32 +1216,32 @@ const Ho = /MUI: The value provided to.*is invalid/i, Wo = ({
|
|
|
1217
1216
|
popupIcon: S,
|
|
1218
1217
|
disableIconFlip: $
|
|
1219
1218
|
}) => {
|
|
1220
|
-
const [D, E] =
|
|
1219
|
+
const [D, E] = B(""), { data: T, isLoading: L } = At({
|
|
1221
1220
|
inputValue: D,
|
|
1222
1221
|
label: n,
|
|
1223
1222
|
lookup: e,
|
|
1224
1223
|
minLength: g != null ? g : 0,
|
|
1225
1224
|
preLoadedOptions: v
|
|
1226
|
-
}),
|
|
1227
|
-
return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(
|
|
1228
|
-
|
|
1225
|
+
}), N = D.length >= g;
|
|
1226
|
+
return /* @__PURE__ */ o("div", { "data-testid": c, children: /* @__PURE__ */ o(Wt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
|
|
1227
|
+
Ae,
|
|
1229
1228
|
{
|
|
1230
1229
|
sx: a(a({}, r), $ ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
1231
1230
|
"data-testid": c ? `${c}:Autocomplete` : void 0,
|
|
1232
|
-
loading:
|
|
1231
|
+
loading: N ? L : !1,
|
|
1233
1232
|
options: T != null ? T : [],
|
|
1234
|
-
onChange: (w,
|
|
1235
|
-
t(w,
|
|
1233
|
+
onChange: (w, y, M) => {
|
|
1234
|
+
t(w, y, M);
|
|
1236
1235
|
},
|
|
1237
1236
|
disablePortal: C,
|
|
1238
1237
|
filterOptions: (w) => w,
|
|
1239
1238
|
value: i,
|
|
1240
|
-
noOptionsText:
|
|
1239
|
+
noOptionsText: N ? u : "Start typing to search",
|
|
1241
1240
|
getOptionLabel: (w) => w.label,
|
|
1242
1241
|
popupIcon: S,
|
|
1243
1242
|
renderInput: (w) => /* @__PURE__ */ o(
|
|
1244
|
-
|
|
1245
|
-
|
|
1243
|
+
be,
|
|
1244
|
+
I(a({
|
|
1246
1245
|
"data-testid": c ? `${c}:Autocomplete:TextField` : void 0
|
|
1247
1246
|
}, w), {
|
|
1248
1247
|
variant: d,
|
|
@@ -1252,27 +1251,27 @@ const Ho = /MUI: The value provided to.*is invalid/i, Wo = ({
|
|
|
1252
1251
|
helperText: h
|
|
1253
1252
|
})
|
|
1254
1253
|
),
|
|
1255
|
-
isOptionEqualToValue: (w,
|
|
1256
|
-
onInputChange: (w,
|
|
1257
|
-
E(
|
|
1254
|
+
isOptionEqualToValue: (w, y) => w.id === y.id,
|
|
1255
|
+
onInputChange: (w, y) => {
|
|
1256
|
+
E(y);
|
|
1258
1257
|
},
|
|
1259
|
-
renderOption: (w,
|
|
1258
|
+
renderOption: (w, y) => /* @__PURE__ */ Ce(
|
|
1260
1259
|
"li",
|
|
1261
|
-
|
|
1262
|
-
key:
|
|
1263
|
-
"data-testid": c ? `${c}:Autocomplete:option(${
|
|
1260
|
+
I(a({}, w), {
|
|
1261
|
+
key: y.id,
|
|
1262
|
+
"data-testid": c ? `${c}:Autocomplete:option(${y.id.toString()})` : void 0
|
|
1264
1263
|
}),
|
|
1265
|
-
|
|
1264
|
+
y.label
|
|
1266
1265
|
),
|
|
1267
1266
|
disabled: b
|
|
1268
1267
|
}
|
|
1269
1268
|
) }) });
|
|
1270
|
-
},
|
|
1269
|
+
}, Rn = (e) => {
|
|
1271
1270
|
if (!e)
|
|
1272
1271
|
return -1;
|
|
1273
1272
|
try {
|
|
1274
1273
|
const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
1275
|
-
|
|
1274
|
+
en.from(n, "base64").toString("utf8").split("").map(function(s) {
|
|
1276
1275
|
return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
|
|
1277
1276
|
}).join("")
|
|
1278
1277
|
), r = JSON.parse(i);
|
|
@@ -1280,25 +1279,25 @@ const Ho = /MUI: The value provided to.*is invalid/i, Wo = ({
|
|
|
1280
1279
|
} catch (t) {
|
|
1281
1280
|
return -1;
|
|
1282
1281
|
}
|
|
1283
|
-
},
|
|
1282
|
+
}, Po = ({
|
|
1284
1283
|
open: e = !1,
|
|
1285
1284
|
closeHandler: t,
|
|
1286
1285
|
setAuth0ExpiryTime: n
|
|
1287
1286
|
}) => {
|
|
1288
|
-
const { logout: i, getAccessTokenSilently: r } =
|
|
1287
|
+
const { logout: i, getAccessTokenSilently: r } = pt(), [s, d] = B(0), l = () => P(void 0, null, function* () {
|
|
1289
1288
|
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
1290
|
-
}), c = () =>
|
|
1289
|
+
}), c = () => P(void 0, null, function* () {
|
|
1291
1290
|
d(s + 1), t();
|
|
1292
1291
|
});
|
|
1293
1292
|
return K(() => {
|
|
1294
|
-
|
|
1293
|
+
P(void 0, null, function* () {
|
|
1295
1294
|
if (s > 0) {
|
|
1296
|
-
const v = yield r({ cacheMode: "off" }), h =
|
|
1295
|
+
const v = yield r({ cacheMode: "off" }), h = Rn(v) * 1e3;
|
|
1297
1296
|
n(h);
|
|
1298
1297
|
}
|
|
1299
1298
|
});
|
|
1300
1299
|
}, [s, r, n]), /* @__PURE__ */ o(
|
|
1301
|
-
|
|
1300
|
+
vt,
|
|
1302
1301
|
{
|
|
1303
1302
|
isOpen: e,
|
|
1304
1303
|
primaryButton: {
|
|
@@ -1322,25 +1321,25 @@ const Ho = /MUI: The value provided to.*is invalid/i, Wo = ({
|
|
|
1322
1321
|
}
|
|
1323
1322
|
);
|
|
1324
1323
|
};
|
|
1325
|
-
function
|
|
1324
|
+
function Hn(e) {
|
|
1326
1325
|
return "error" in e;
|
|
1327
1326
|
}
|
|
1328
|
-
function
|
|
1327
|
+
function Wn(e) {
|
|
1329
1328
|
var i;
|
|
1330
1329
|
const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
1331
1330
|
return t === "access_denied" && n.startsWith("You do not have the required authorization");
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1332
|
+
function Un(e) {
|
|
1334
1333
|
var i;
|
|
1335
1334
|
const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
1336
1335
|
return t === "access_denied" && n.startsWith("User did not authorize the request");
|
|
1337
1336
|
}
|
|
1338
|
-
function
|
|
1337
|
+
function zn(e) {
|
|
1339
1338
|
var i;
|
|
1340
1339
|
const t = e.error, n = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
1341
1340
|
return t === "access_denied" && n.match(/Script.*time.*exceeded/);
|
|
1342
1341
|
}
|
|
1343
|
-
function
|
|
1342
|
+
function _o({
|
|
1344
1343
|
children: e,
|
|
1345
1344
|
appName: t = "the app",
|
|
1346
1345
|
throwErrors: n = "none",
|
|
@@ -1349,11 +1348,11 @@ function zo({
|
|
|
1349
1348
|
}
|
|
1350
1349
|
}) {
|
|
1351
1350
|
var C, v;
|
|
1352
|
-
const { isAuthenticated: s, isLoading: d, error: l, loginWithRedirect: c, logout: u } =
|
|
1351
|
+
const { isAuthenticated: s, isLoading: d, error: l, loginWithRedirect: c, logout: u } = pt();
|
|
1353
1352
|
K(() => {
|
|
1354
1353
|
l && r(l);
|
|
1355
1354
|
}, [l, r]);
|
|
1356
|
-
const g =
|
|
1355
|
+
const g = Bt(
|
|
1357
1356
|
() => ({
|
|
1358
1357
|
appState: {
|
|
1359
1358
|
returnTo: `${window.location.pathname}${window.location.search}`
|
|
@@ -1369,13 +1368,13 @@ function zo({
|
|
|
1369
1368
|
l
|
|
1370
1369
|
), n === "all")
|
|
1371
1370
|
throw l;
|
|
1372
|
-
if (
|
|
1371
|
+
if (Hn(l)) {
|
|
1373
1372
|
let h = "Auth error", b = "An unknown Auth0 error occurred.";
|
|
1374
|
-
if (
|
|
1373
|
+
if (Wn(l))
|
|
1375
1374
|
h = "Unauthorised", b = `You are not authorised to access ${t}.`;
|
|
1376
|
-
else if (
|
|
1375
|
+
else if (Un(l))
|
|
1377
1376
|
h = "App not authorised", b = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
|
|
1378
|
-
else if (
|
|
1377
|
+
else if (zn(l))
|
|
1379
1378
|
h = "Auth0 script execution time exceeded", b = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute by clicking the RELOAD button below.";
|
|
1380
1379
|
else if (l.message === "Invalid state") {
|
|
1381
1380
|
const S = localStorage.getItem("auth0_redirect_count");
|
|
@@ -1397,21 +1396,21 @@ function zo({
|
|
|
1397
1396
|
] })
|
|
1398
1397
|
] }),
|
|
1399
1398
|
/* @__PURE__ */ p(at, { children: [
|
|
1400
|
-
h === "Auth0 script execution time exceeded" && /* @__PURE__ */ o(
|
|
1401
|
-
/* @__PURE__ */ o(
|
|
1399
|
+
h === "Auth0 script execution time exceeded" && /* @__PURE__ */ o(Q, { href: window.location.origin + window.location.pathname, children: "Reload" }),
|
|
1400
|
+
/* @__PURE__ */ o(Q, { onClick: () => u({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" })
|
|
1402
1401
|
] })
|
|
1403
1402
|
] });
|
|
1404
1403
|
} else if (n === "unknown") throw l;
|
|
1405
1404
|
}
|
|
1406
|
-
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(
|
|
1405
|
+
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ o(_, { children: e })) : /* @__PURE__ */ o(tn, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
|
|
1407
1406
|
}
|
|
1408
|
-
const
|
|
1407
|
+
const Gn = {
|
|
1409
1408
|
autoHideDuration: 6e3,
|
|
1410
1409
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
1411
1410
|
// The default is false. If we prefer timer to continue when window loses
|
|
1412
1411
|
// focus, change to true
|
|
1413
1412
|
disableWindowBlurListener: !1
|
|
1414
|
-
},
|
|
1413
|
+
}, Vn = {
|
|
1415
1414
|
shouldClose: (e, t) => t !== "clickaway"
|
|
1416
1415
|
}, Xe = {
|
|
1417
1416
|
message: "",
|
|
@@ -1419,18 +1418,18 @@ const Yn = {
|
|
|
1419
1418
|
variant: "standard",
|
|
1420
1419
|
progressIndicator: void 0
|
|
1421
1420
|
// Can use 'circular' or 'linear'
|
|
1422
|
-
},
|
|
1421
|
+
}, Ye = 100, Ke = 2e3, qn = 2e3, Xn = /* @__PURE__ */ (() => {
|
|
1423
1422
|
let e = 0;
|
|
1424
1423
|
return () => (e += 1, e);
|
|
1425
|
-
})(),
|
|
1424
|
+
})(), Yn = {
|
|
1426
1425
|
borderBottomLeftRadius: "0px",
|
|
1427
1426
|
borderBottomRightRadius: "0px"
|
|
1428
|
-
},
|
|
1429
|
-
function
|
|
1427
|
+
}, Kn = {}, Qn = {}, bt = Ze(null);
|
|
1428
|
+
function Jn(s) {
|
|
1430
1429
|
var d = s, {
|
|
1431
|
-
overrideState: e =
|
|
1432
|
-
overrideActions: t =
|
|
1433
|
-
shouldClose: n =
|
|
1430
|
+
overrideState: e = Kn,
|
|
1431
|
+
overrideActions: t = Qn,
|
|
1432
|
+
shouldClose: n = Vn.shouldClose,
|
|
1434
1433
|
children: i
|
|
1435
1434
|
} = d, r = Fe(d, [
|
|
1436
1435
|
"overrideState",
|
|
@@ -1439,14 +1438,14 @@ function no(s) {
|
|
|
1439
1438
|
"children"
|
|
1440
1439
|
]);
|
|
1441
1440
|
var m;
|
|
1442
|
-
const [{ open: l }, c] =
|
|
1441
|
+
const [{ open: l }, c] = B({ open: !1 }), u = ge([]), g = ge(Date.now()), C = ge(0), v = re((x) => {
|
|
1443
1442
|
c({ open: x });
|
|
1444
|
-
}, []), h =
|
|
1445
|
-
C.current += 1, u.current.length >=
|
|
1446
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
1443
|
+
}, []), h = re((x = {}) => {
|
|
1444
|
+
C.current += 1, u.current.length >= Ye && Date.now() - g.current >= Ke && (g.current = Date.now(), console.error(
|
|
1445
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Ye}) hit ${C.current} times in last ${Ke}ms)`
|
|
1447
1446
|
), C.current = 0);
|
|
1448
|
-
const A = a(
|
|
1449
|
-
key:
|
|
1447
|
+
const A = a(I(a({}, Xe), {
|
|
1448
|
+
key: Xn()
|
|
1450
1449
|
}), x);
|
|
1451
1450
|
return u.current.push(A), u.current.length === 1 && c({ open: !0 }), A.key;
|
|
1452
1451
|
}, []), b = (x = "", A = {}) => h(a({ message: x, severity: "success" }, A)), S = (x = "", A = {}) => h(a({ message: x, severity: "info" }, A)), $ = (x = "", A = {}) => h(a({ message: x, severity: "warning" }, A)), D = (x = "", A = {}) => h(a({ message: x, severity: "error" }, A)), E = (x) => {
|
|
@@ -1456,11 +1455,11 @@ function no(s) {
|
|
|
1456
1455
|
}, T = (x, A) => {
|
|
1457
1456
|
n(x, A) && c({ open: !1 });
|
|
1458
1457
|
}, L = () => {
|
|
1459
|
-
},
|
|
1458
|
+
}, N = () => {
|
|
1460
1459
|
u.current.shift(), u.current.length > 0 && c({ open: !0 });
|
|
1461
|
-
}, w = (m = u.current[0]) != null ? m : a({}, Xe),
|
|
1462
|
-
"autoHideDuration" in w && (
|
|
1463
|
-
const M = a(a({},
|
|
1460
|
+
}, w = (m = u.current[0]) != null ? m : a({}, Xe), y = {};
|
|
1461
|
+
"autoHideDuration" in w && (y.autoHideDuration = w.autoHideDuration);
|
|
1462
|
+
const M = a(a({}, Gn), r), f = a(a({
|
|
1464
1463
|
open: l,
|
|
1465
1464
|
setOpen: v,
|
|
1466
1465
|
enqueueNotification: h,
|
|
@@ -1470,27 +1469,27 @@ function no(s) {
|
|
|
1470
1469
|
enqueueErrorNotification: D,
|
|
1471
1470
|
removeNotification: E
|
|
1472
1471
|
}, e), t);
|
|
1473
|
-
return /* @__PURE__ */ p(
|
|
1472
|
+
return /* @__PURE__ */ p(bt.Provider, { value: f, children: [
|
|
1474
1473
|
i,
|
|
1475
1474
|
/* @__PURE__ */ o(
|
|
1476
|
-
|
|
1477
|
-
|
|
1475
|
+
Ut,
|
|
1476
|
+
I(a(a({}, M), y), {
|
|
1478
1477
|
open: l,
|
|
1479
1478
|
onClose: T,
|
|
1480
1479
|
TransitionProps: {
|
|
1481
|
-
onExited:
|
|
1480
|
+
onExited: N,
|
|
1482
1481
|
onExit: L
|
|
1483
1482
|
},
|
|
1484
|
-
sx: { zIndex:
|
|
1483
|
+
sx: { zIndex: qn },
|
|
1485
1484
|
children: /* @__PURE__ */ p("div", { children: [
|
|
1486
1485
|
/* @__PURE__ */ o(
|
|
1487
|
-
|
|
1486
|
+
zt,
|
|
1488
1487
|
{
|
|
1489
1488
|
onClose: (x) => T(x, "closeAlert"),
|
|
1490
1489
|
severity: w.severity,
|
|
1491
1490
|
variant: "filled",
|
|
1492
|
-
icon: w.progressIndicator === "circular" ? /* @__PURE__ */ o(
|
|
1493
|
-
style: w.progressIndicator === "linear" ?
|
|
1491
|
+
icon: w.progressIndicator === "circular" ? /* @__PURE__ */ o(Se, { size: "1em" }) : void 0,
|
|
1492
|
+
style: w.progressIndicator === "linear" ? Yn : void 0,
|
|
1494
1493
|
children: w.message
|
|
1495
1494
|
}
|
|
1496
1495
|
),
|
|
@@ -1500,24 +1499,24 @@ function no(s) {
|
|
|
1500
1499
|
)
|
|
1501
1500
|
] });
|
|
1502
1501
|
}
|
|
1503
|
-
function
|
|
1504
|
-
const e = je(
|
|
1502
|
+
function Zn() {
|
|
1503
|
+
const e = je(bt);
|
|
1505
1504
|
if (e === null)
|
|
1506
1505
|
throw new ke("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
1507
1506
|
return e;
|
|
1508
1507
|
}
|
|
1509
|
-
const
|
|
1510
|
-
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(
|
|
1511
|
-
),
|
|
1508
|
+
const Lo = Ie(
|
|
1509
|
+
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(Jn, I(a({}, e), { overrideState: t, overrideActions: n, children: i }))
|
|
1510
|
+
), St = "domainCode";
|
|
1512
1511
|
var Je;
|
|
1513
|
-
const
|
|
1514
|
-
JSON.parse((Je = localStorage.getItem(
|
|
1515
|
-
),
|
|
1516
|
-
(e) => e(
|
|
1512
|
+
const Qe = R(
|
|
1513
|
+
JSON.parse((Je = localStorage.getItem(St)) != null ? Je : '{"domainCode": ""}').domainCode
|
|
1514
|
+
), jn = R(
|
|
1515
|
+
(e) => e(Qe),
|
|
1517
1516
|
(e, t, n) => {
|
|
1518
|
-
t(
|
|
1517
|
+
t(Qe, n), localStorage.setItem(St, JSON.stringify({ domainCode: n }));
|
|
1519
1518
|
}
|
|
1520
|
-
),
|
|
1519
|
+
), eo = {
|
|
1521
1520
|
act: "ACT",
|
|
1522
1521
|
nsw: "NSW",
|
|
1523
1522
|
nt: "NT",
|
|
@@ -1529,10 +1528,10 @@ const Ke = R(
|
|
|
1529
1528
|
ag: "AG",
|
|
1530
1529
|
fedmps: "Fedmps",
|
|
1531
1530
|
"": ""
|
|
1532
|
-
},
|
|
1531
|
+
}, to = (e) => {
|
|
1533
1532
|
var t;
|
|
1534
|
-
return e === null ? "N/A" : (t =
|
|
1535
|
-
},
|
|
1533
|
+
return e === null ? "N/A" : (t = eo[e]) != null ? t : "";
|
|
1534
|
+
}, Mo = ({
|
|
1536
1535
|
isLoading: e,
|
|
1537
1536
|
isOpen: t,
|
|
1538
1537
|
onClose: n,
|
|
@@ -1541,14 +1540,14 @@ const Ke = R(
|
|
|
1541
1540
|
applicationName: s,
|
|
1542
1541
|
handleLogout: d
|
|
1543
1542
|
}) => {
|
|
1544
|
-
const [l, c] = V(
|
|
1543
|
+
const [l, c] = V(jn), [u, g] = B(l), { enqueueSuccessNotification: C } = Zn(), v = r.length === 0, h = !!l && !r.includes(l) && !r.includes(u), b = !l || v || h, S = () => P(void 0, null, function* () {
|
|
1545
1544
|
u ? (c(u), i == null || i(u), C(`Set organisation to ${u}`), n()) : (c(""), i == null || i(""));
|
|
1546
|
-
}), $ = () =>
|
|
1545
|
+
}), $ = () => P(void 0, null, function* () {
|
|
1547
1546
|
l && !v && !h ? (g(l), n()) : b && d();
|
|
1548
1547
|
});
|
|
1549
1548
|
let D;
|
|
1550
1549
|
return v ? D = "Unable to retrieve your active organisations. Try logging in again." : h && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
|
|
1551
|
-
|
|
1550
|
+
vt,
|
|
1552
1551
|
{
|
|
1553
1552
|
isOpen: t,
|
|
1554
1553
|
dialogTitle: "Select an organisation",
|
|
@@ -1571,23 +1570,23 @@ const Ke = R(
|
|
|
1571
1570
|
"."
|
|
1572
1571
|
] }),
|
|
1573
1572
|
/* @__PURE__ */ o(
|
|
1574
|
-
|
|
1573
|
+
Ae,
|
|
1575
1574
|
{
|
|
1576
1575
|
loading: e,
|
|
1577
1576
|
multiple: !1,
|
|
1578
1577
|
disableClearable: !1,
|
|
1579
1578
|
value: u !== "" ? u : null,
|
|
1580
1579
|
onChange: (E, T) => g(T != null ? T : ""),
|
|
1581
|
-
getOptionLabel:
|
|
1580
|
+
getOptionLabel: to,
|
|
1582
1581
|
options: [...r],
|
|
1583
1582
|
renderInput: (E) => /* @__PURE__ */ o(
|
|
1584
|
-
|
|
1585
|
-
|
|
1583
|
+
be,
|
|
1584
|
+
I(a({}, E), {
|
|
1586
1585
|
variant: "filled",
|
|
1587
1586
|
label: "Select organisation",
|
|
1588
|
-
InputProps:
|
|
1589
|
-
endAdornment: /* @__PURE__ */ p(
|
|
1590
|
-
e ? /* @__PURE__ */ o(
|
|
1587
|
+
InputProps: I(a({}, E.InputProps), {
|
|
1588
|
+
endAdornment: /* @__PURE__ */ p(_, { children: [
|
|
1589
|
+
e ? /* @__PURE__ */ o(Se, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
1591
1590
|
E.InputProps.endAdornment
|
|
1592
1591
|
] })
|
|
1593
1592
|
})
|
|
@@ -1595,38 +1594,11 @@ const Ke = R(
|
|
|
1595
1594
|
)
|
|
1596
1595
|
}
|
|
1597
1596
|
),
|
|
1598
|
-
D && /* @__PURE__ */ o(
|
|
1597
|
+
D && /* @__PURE__ */ o(Gt, { error: !0, children: D })
|
|
1599
1598
|
]
|
|
1600
1599
|
}
|
|
1601
1600
|
);
|
|
1602
|
-
},
|
|
1603
|
-
domainCode: Tt,
|
|
1604
|
-
navBarOpen: j,
|
|
1605
|
-
navBarWidthOpen: vt,
|
|
1606
|
-
navBarWidthClosed: At,
|
|
1607
|
-
titleText: ve,
|
|
1608
|
-
topBarHeight: bt,
|
|
1609
|
-
navBarTop: St
|
|
1610
|
-
}, qo = Q(() => ({ children: e }) => /* @__PURE__ */ o(on, { children: e })), so = ({
|
|
1611
|
-
initialValues: e,
|
|
1612
|
-
children: t
|
|
1613
|
-
}) => (pt(e), /* @__PURE__ */ o(N, { children: t })), Xo = Q(
|
|
1614
|
-
(e) => ({ children: t }) => /* @__PURE__ */ o(
|
|
1615
|
-
so,
|
|
1616
|
-
{
|
|
1617
|
-
initialValues: Object.entries(e).map(
|
|
1618
|
-
([n, i]) => [
|
|
1619
|
-
ao[n],
|
|
1620
|
-
i
|
|
1621
|
-
]
|
|
1622
|
-
),
|
|
1623
|
-
children: t
|
|
1624
|
-
}
|
|
1625
|
-
)
|
|
1626
|
-
), Qo = Q(() => ({ children: e }) => {
|
|
1627
|
-
const t = new ln();
|
|
1628
|
-
return /* @__PURE__ */ o(cn, { client: t, children: e });
|
|
1629
|
-
}), Yo = st({
|
|
1601
|
+
}, Ro = st({
|
|
1630
1602
|
palette: {
|
|
1631
1603
|
primary: {
|
|
1632
1604
|
dark: "#00A651",
|
|
@@ -1677,7 +1649,7 @@ const Ke = R(
|
|
|
1677
1649
|
navBar: {
|
|
1678
1650
|
backgroundColor: "#E8E8E8"
|
|
1679
1651
|
}
|
|
1680
|
-
}),
|
|
1652
|
+
}), Ho = st({
|
|
1681
1653
|
palette: {
|
|
1682
1654
|
primary: {
|
|
1683
1655
|
main: "#007236",
|
|
@@ -1731,18 +1703,18 @@ const Ke = R(
|
|
|
1731
1703
|
styleOverrides: {
|
|
1732
1704
|
root: ({ theme: e }) => ({
|
|
1733
1705
|
"&.Mui-selected": {
|
|
1734
|
-
backgroundColor:
|
|
1706
|
+
backgroundColor: fe(
|
|
1735
1707
|
e.palette.secondary.main,
|
|
1736
1708
|
e.palette.action.selectedOpacity
|
|
1737
1709
|
),
|
|
1738
1710
|
"&:hover": {
|
|
1739
|
-
backgroundColor:
|
|
1711
|
+
backgroundColor: fe(
|
|
1740
1712
|
e.palette.secondary.main,
|
|
1741
1713
|
e.palette.action.selectedOpacity
|
|
1742
1714
|
)
|
|
1743
1715
|
},
|
|
1744
1716
|
"&.Mui-focusVisible": {
|
|
1745
|
-
backgroundColor:
|
|
1717
|
+
backgroundColor: fe(
|
|
1746
1718
|
e.palette.secondary.main,
|
|
1747
1719
|
e.palette.action.focusOpacity
|
|
1748
1720
|
)
|
|
@@ -1773,50 +1745,46 @@ const Ke = R(
|
|
|
1773
1745
|
}
|
|
1774
1746
|
});
|
|
1775
1747
|
export {
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1748
|
+
vt as AgDialog,
|
|
1749
|
+
Oo as AppLayout,
|
|
1750
|
+
_o as AuthGuard,
|
|
1751
|
+
bt as Context,
|
|
1780
1752
|
ke as ContextError,
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
Ko as internalAgSystemsTheme,
|
|
1753
|
+
Mo as DomainCodeDialog,
|
|
1754
|
+
bo as ExampleComponent,
|
|
1755
|
+
Fo as FetchAutocomplete,
|
|
1756
|
+
Bo as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
|
|
1757
|
+
gt as NAVBAR_WIDTH_CLOSED,
|
|
1758
|
+
ht as NAVBAR_WIDTH_OPENED,
|
|
1759
|
+
$o as NavBar,
|
|
1760
|
+
ko as NavBarDarkStyledList,
|
|
1761
|
+
yo as NavBarLightStyledList,
|
|
1762
|
+
cn as NavBarProvider,
|
|
1763
|
+
Do as PageLayout,
|
|
1764
|
+
Jn as SaladBarProvider,
|
|
1765
|
+
Po as SessionExpiryDialog,
|
|
1766
|
+
No as SingleAutocomplete,
|
|
1767
|
+
un as buildNavBarState,
|
|
1768
|
+
jn as domainCodeAtom,
|
|
1769
|
+
Ro as fed21Theme,
|
|
1770
|
+
Rn as getAuth0Expiry,
|
|
1771
|
+
Ho as internalAgSystemsTheme,
|
|
1801
1772
|
q as navBarClasses,
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
Xo as withOverrideDefaults,
|
|
1819
|
-
Qo as withQueryClient,
|
|
1820
|
-
Go as withSaladBarProvider
|
|
1773
|
+
ae as navBarOpenAtom,
|
|
1774
|
+
$n as navBarTopAtom,
|
|
1775
|
+
In as navBarWidthClosedAtom,
|
|
1776
|
+
Sn as navBarWidthOpenAtom,
|
|
1777
|
+
Fn as simpleHashCode,
|
|
1778
|
+
To as suppressConsole,
|
|
1779
|
+
Ue as titleTextAtom,
|
|
1780
|
+
yn as topBarHeightAtom,
|
|
1781
|
+
kn as topBarMiddleAtom,
|
|
1782
|
+
Eo as unsuppressConsole,
|
|
1783
|
+
At as useAutocompleteOptions,
|
|
1784
|
+
dn as useNavBar,
|
|
1785
|
+
Zn as useSaladBar,
|
|
1786
|
+
Io as withBrowserRouter,
|
|
1787
|
+
So as withNavBarProvider,
|
|
1788
|
+
Lo as withSaladBarProvider
|
|
1821
1789
|
};
|
|
1822
1790
|
//# sourceMappingURL=index.js.map
|