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