@australiangreens/ag-internal-components 0.0.36 → 0.0.37
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/esm/index.js +195 -189
- package/dist/esm/index.js.map +1 -1
- package/dist/testing/wrappers.d.ts +18 -0
- package/dist/testing/wrappers.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var gt = Object.defineProperty, ht = Object.defineProperties;
|
|
2
|
+
var ft = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var J = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var de = (e, t, n) => t in e ?
|
|
4
|
+
var we = Object.prototype.hasOwnProperty, be = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var de = (e, t, n) => t in e ? gt(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
|
-
|
|
7
|
+
we.call(t, n) && de(e, n, t[n]);
|
|
8
8
|
if (J)
|
|
9
9
|
for (var n of J(t))
|
|
10
|
-
|
|
10
|
+
be.call(t, n) && de(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, x = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, x = (e, t) => ht(e, ft(t));
|
|
13
|
+
var Ae = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
16
|
+
we.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
17
17
|
if (e != null && J)
|
|
18
18
|
for (var r of J(e))
|
|
19
|
-
t.indexOf(r) < 0 &&
|
|
19
|
+
t.indexOf(r) < 0 && be.call(e, r) && (n[r] = e[r]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Se = (e, t, n) => (de(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
23
|
var K = (e, t, n) => new Promise((r, a) => {
|
|
24
24
|
var l = (s) => {
|
|
25
25
|
try {
|
|
@@ -37,29 +37,29 @@ var K = (e, t, n) => new Promise((r, a) => {
|
|
|
37
37
|
u((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
39
|
import { jsxs as p, Fragment as _, jsx as o } from "react/jsx-runtime";
|
|
40
|
-
import { useState as O, createContext as
|
|
41
|
-
import { Typography as y, Button as
|
|
42
|
-
import
|
|
43
|
-
import { styled as M, createTheme as
|
|
44
|
-
import
|
|
45
|
-
import { AgError as
|
|
40
|
+
import { useState as O, createContext as Le, useCallback as te, useContext as _e, useEffect as ne, useRef as ce } from "react";
|
|
41
|
+
import { Typography as y, Button as mt, Paper as oe, styled as X, Box as A, IconButton as V, Drawer as vt, Container as Me, Divider as Te, CssBaseline as xt, Snackbar as Ct, Alert as wt, CircularProgress as He, LinearProgress as bt, Autocomplete as At, TextField as St, FormHelperText as Tt } from "@mui/material";
|
|
42
|
+
import It from "@mui/material/CssBaseline";
|
|
43
|
+
import { styled as M, createTheme as Re, alpha as pe } from "@mui/material/styles";
|
|
44
|
+
import We from "@mui/material/Drawer";
|
|
45
|
+
import { AgError as Ot } from "@australiangreens/ag-error";
|
|
46
46
|
import { createHelper as re } from "souvlaki";
|
|
47
|
-
import
|
|
47
|
+
import ze from "@mui/material/List";
|
|
48
48
|
import Ie from "@mui/material/Button";
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import { ArrowForward as
|
|
54
|
-
import { atom as
|
|
55
|
-
import { useHydrateAtoms as
|
|
49
|
+
import Bt from "@mui/material/Dialog";
|
|
50
|
+
import Dt from "@mui/material/DialogActions";
|
|
51
|
+
import $t from "@mui/material/DialogContent";
|
|
52
|
+
import kt from "@mui/material/DialogTitle";
|
|
53
|
+
import { ArrowForward as Ge, ArrowBack as Ue, ViewHeadline as Nt } from "@mui/icons-material";
|
|
54
|
+
import { atom as D, useSetAtom as Et, useAtom as E, Provider as Ft } from "jotai";
|
|
55
|
+
import { useHydrateAtoms as yt } from "jotai/utils";
|
|
56
56
|
function zn({ text: e }) {
|
|
57
57
|
const [t, n] = O(0);
|
|
58
58
|
return /* @__PURE__ */ p(_, { children: [
|
|
59
59
|
/* @__PURE__ */ o(y, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
60
60
|
/* @__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" }) }),
|
|
61
61
|
/* @__PURE__ */ o(
|
|
62
|
-
|
|
62
|
+
mt,
|
|
63
63
|
{
|
|
64
64
|
variant: "outlined",
|
|
65
65
|
onClick: () => n((r) => r + 1),
|
|
@@ -77,7 +77,7 @@ function zn({ text: e }) {
|
|
|
77
77
|
] })
|
|
78
78
|
] });
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const Ve = 330, Xe = 73, N = "Navbar", L = {
|
|
81
81
|
root: `${N}-root`,
|
|
82
82
|
menuButton: `${N}-menuButton`,
|
|
83
83
|
hide: `${N}-hide`,
|
|
@@ -85,7 +85,7 @@ const Ue = 330, Ve = 73, N = "Navbar", L = {
|
|
|
85
85
|
userInfoHolder: `${N}-userInfoHolder`,
|
|
86
86
|
settings: `${N}-settings`,
|
|
87
87
|
pieChartIcon: `${N}-pieChartIcon`
|
|
88
|
-
},
|
|
88
|
+
}, Pt = M("div", { name: "NavBar" })(({ theme: e }) => ({
|
|
89
89
|
[`&.${L.root}`]: {
|
|
90
90
|
display: "flex"
|
|
91
91
|
},
|
|
@@ -104,7 +104,7 @@ const Ue = 330, Ve = 73, N = "Navbar", L = {
|
|
|
104
104
|
marginTop: "64px",
|
|
105
105
|
marginBottom: "16px"
|
|
106
106
|
}
|
|
107
|
-
})),
|
|
107
|
+
})), qe = () => ({
|
|
108
108
|
position: "absolute",
|
|
109
109
|
height: "100%",
|
|
110
110
|
overflowX: "hidden",
|
|
@@ -112,29 +112,29 @@ const Ue = 330, Ve = 73, N = "Navbar", L = {
|
|
|
112
112
|
color: "white",
|
|
113
113
|
backgroundColor: "black"
|
|
114
114
|
// backgroundColor: '#e8e8e8',
|
|
115
|
-
}),
|
|
116
|
-
width: Ue
|
|
117
|
-
}, Xe()), Et = () => i({
|
|
115
|
+
}), Lt = () => i({
|
|
118
116
|
width: Ve
|
|
119
|
-
},
|
|
117
|
+
}, qe()), _t = () => i({
|
|
118
|
+
width: Xe
|
|
119
|
+
}, qe()), Mt = M(We, {
|
|
120
120
|
shouldForwardProp: (e) => e !== "open"
|
|
121
121
|
})(({ theme: e, open: t }) => i(i({
|
|
122
|
-
width: t ?
|
|
122
|
+
width: t ? Ve : Xe,
|
|
123
123
|
flexShrink: 0,
|
|
124
124
|
whiteSpace: "nowrap",
|
|
125
125
|
boxSizing: "border-box",
|
|
126
126
|
zIndex: e.zIndex.drawer + 100
|
|
127
127
|
}, t && {
|
|
128
|
-
"& .MuiDrawer-paper":
|
|
128
|
+
"& .MuiDrawer-paper": Lt()
|
|
129
129
|
}), !t && {
|
|
130
|
-
"& .MuiDrawer-paper":
|
|
130
|
+
"& .MuiDrawer-paper": _t()
|
|
131
131
|
}));
|
|
132
|
-
class he extends
|
|
132
|
+
class he extends Ot {
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
overrideState: e =
|
|
137
|
-
overrideActions: t =
|
|
134
|
+
Se(he, "errorName", "ContextError");
|
|
135
|
+
const je = Le(null), Ht = {}, Rt = {}, Wt = ({
|
|
136
|
+
overrideState: e = Ht,
|
|
137
|
+
overrideActions: t = Rt,
|
|
138
138
|
children: n
|
|
139
139
|
}) => {
|
|
140
140
|
const [{ open: r }, a] = O({ open: !0 }), l = te((s) => {
|
|
@@ -146,17 +146,17 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
146
146
|
setOpen: l,
|
|
147
147
|
toggleOpen: c
|
|
148
148
|
}, e), t);
|
|
149
|
-
return /* @__PURE__ */ o(
|
|
150
|
-
},
|
|
151
|
-
const e =
|
|
149
|
+
return /* @__PURE__ */ o(je.Provider, { value: u, children: n });
|
|
150
|
+
}, zt = () => {
|
|
151
|
+
const e = _e(je);
|
|
152
152
|
if (e === null)
|
|
153
153
|
throw new he("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
154
154
|
return e;
|
|
155
|
-
},
|
|
155
|
+
}, Gt = (e = {}) => i({
|
|
156
156
|
open: !0
|
|
157
157
|
}, e), Gn = re(
|
|
158
|
-
(e =
|
|
159
|
-
),
|
|
158
|
+
(e = Gt(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(Wt, { overrideState: e, overrideActions: t, children: n })
|
|
159
|
+
), Oe = 7, Un = M(ze)(({ theme: e }) => ({
|
|
160
160
|
backgroundColor: "black",
|
|
161
161
|
color: "white",
|
|
162
162
|
"& .MuiListItem-root": {
|
|
@@ -165,7 +165,7 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
165
165
|
"& .MuiListItemButton-root": {
|
|
166
166
|
" .MuiListItemIcon-root": {
|
|
167
167
|
color: "white",
|
|
168
|
-
padding: `${
|
|
168
|
+
padding: `${Oe}px`
|
|
169
169
|
},
|
|
170
170
|
// Focus state
|
|
171
171
|
"&.Mui-focusVisible": {
|
|
@@ -176,7 +176,7 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
176
176
|
borderLeftStyle: "solid",
|
|
177
177
|
borderLeftWidth: "7px",
|
|
178
178
|
borderLeftColor: e.palette.primary.main,
|
|
179
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
179
|
+
paddingLeft: `calc(${e.spacing(2)} - ${Oe}px)`
|
|
180
180
|
},
|
|
181
181
|
// Hover state
|
|
182
182
|
"&:hover": {
|
|
@@ -194,7 +194,7 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
194
194
|
// '&.Mui-selected.Mui-focusVisible:hover': {
|
|
195
195
|
// },
|
|
196
196
|
}
|
|
197
|
-
})),
|
|
197
|
+
})), Be = 7, Vn = M(ze)(({ theme: e }) => ({
|
|
198
198
|
backgroundColor: "#e8e8e8",
|
|
199
199
|
color: "inherit",
|
|
200
200
|
"& .MuiListItem-root": {
|
|
@@ -203,7 +203,7 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
203
203
|
"& .MuiListItemButton-root": {
|
|
204
204
|
" .MuiListItemIcon-root": {
|
|
205
205
|
color: "inherit",
|
|
206
|
-
padding: `${
|
|
206
|
+
padding: `${Be}px`
|
|
207
207
|
},
|
|
208
208
|
// Focus state
|
|
209
209
|
"&.Mui-focusVisible": {
|
|
@@ -214,7 +214,7 @@ const qe = Pe(null), yt = {}, Pt = {}, Lt = ({
|
|
|
214
214
|
borderLeftStyle: "solid",
|
|
215
215
|
borderLeftWidth: "7px",
|
|
216
216
|
borderLeftColor: e.palette.primary.main,
|
|
217
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
217
|
+
paddingLeft: `calc(${e.spacing(2)} - ${Be}px)`
|
|
218
218
|
},
|
|
219
219
|
// Hover state
|
|
220
220
|
"&:hover": {
|
|
@@ -237,11 +237,11 @@ function Xn({
|
|
|
237
237
|
"data-testid": e,
|
|
238
238
|
children: t
|
|
239
239
|
}) {
|
|
240
|
-
const { open: n } =
|
|
241
|
-
return /* @__PURE__ */ p(
|
|
242
|
-
/* @__PURE__ */ o(
|
|
240
|
+
const { open: n } = zt();
|
|
241
|
+
return /* @__PURE__ */ p(Pt, { className: L.root, "data-testid": e, children: [
|
|
242
|
+
/* @__PURE__ */ o(It, {}),
|
|
243
243
|
/* @__PURE__ */ o(
|
|
244
|
-
|
|
244
|
+
Mt,
|
|
245
245
|
{
|
|
246
246
|
variant: "permanent",
|
|
247
247
|
anchor: "left",
|
|
@@ -252,7 +252,7 @@ function Xn({
|
|
|
252
252
|
)
|
|
253
253
|
] });
|
|
254
254
|
}
|
|
255
|
-
const
|
|
255
|
+
const Ut = ({
|
|
256
256
|
isOpen: e,
|
|
257
257
|
dialogTitle: t,
|
|
258
258
|
children: n,
|
|
@@ -264,7 +264,7 @@ const Ht = ({
|
|
|
264
264
|
var d, v;
|
|
265
265
|
const [u, s] = O(!1);
|
|
266
266
|
return /* @__PURE__ */ p(
|
|
267
|
-
|
|
267
|
+
Bt,
|
|
268
268
|
{
|
|
269
269
|
open: e,
|
|
270
270
|
onClose: () => {
|
|
@@ -273,9 +273,9 @@ const Ht = ({
|
|
|
273
273
|
fullWidth: !0,
|
|
274
274
|
maxWidth: r != null ? r : "xs",
|
|
275
275
|
children: [
|
|
276
|
-
/* @__PURE__ */ o(
|
|
277
|
-
/* @__PURE__ */ o(
|
|
278
|
-
/* @__PURE__ */ p(
|
|
276
|
+
/* @__PURE__ */ o(kt, { children: t }),
|
|
277
|
+
/* @__PURE__ */ o($t, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
278
|
+
/* @__PURE__ */ p(Dt, { children: [
|
|
279
279
|
/* @__PURE__ */ o(
|
|
280
280
|
Ie,
|
|
281
281
|
{
|
|
@@ -301,14 +301,14 @@ const Ht = ({
|
|
|
301
301
|
]
|
|
302
302
|
}
|
|
303
303
|
);
|
|
304
|
-
},
|
|
304
|
+
}, Vt = 24, Xt = 64, F = "TopBar", b = {
|
|
305
305
|
topStripe: `${F}-topStripe`,
|
|
306
306
|
titleBar: `${F}-titleBar`,
|
|
307
307
|
titleSlider: `${F}-titleSlider`,
|
|
308
308
|
titleText: `${F}-titleText`,
|
|
309
309
|
leftPanelButton: `${F}-leftPanelButton`,
|
|
310
310
|
rightPanelButton: `${F}-leftPanelButton`
|
|
311
|
-
},
|
|
311
|
+
}, qt = X("div", {
|
|
312
312
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
313
313
|
name: F
|
|
314
314
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -317,12 +317,12 @@ const Ht = ({
|
|
|
317
317
|
width: "100%",
|
|
318
318
|
[`& .${b.topStripe}`]: {
|
|
319
319
|
width: "100%",
|
|
320
|
-
height: `${
|
|
320
|
+
height: `${Vt}px`,
|
|
321
321
|
backgroundColor: e.palette.primary.main
|
|
322
322
|
},
|
|
323
323
|
[`& .${b.titleBar}`]: {
|
|
324
324
|
backgroundColor: e.palette.primary.light,
|
|
325
|
-
height: `${
|
|
325
|
+
height: `${Xt}px`,
|
|
326
326
|
padding: e.spacing(0, 3),
|
|
327
327
|
width: "100%"
|
|
328
328
|
},
|
|
@@ -360,13 +360,13 @@ const Ht = ({
|
|
|
360
360
|
})
|
|
361
361
|
};
|
|
362
362
|
});
|
|
363
|
-
function
|
|
363
|
+
function jt({
|
|
364
364
|
titleText: e = "",
|
|
365
365
|
leftPanel: t,
|
|
366
366
|
rightPanel: n,
|
|
367
367
|
"data-testid": r
|
|
368
368
|
}) {
|
|
369
|
-
return /* @__PURE__ */ p(
|
|
369
|
+
return /* @__PURE__ */ p(qt, { leftPanel: t, rightPanel: n, "data-testid": r, children: [
|
|
370
370
|
/* @__PURE__ */ o("div", { className: b.topStripe }),
|
|
371
371
|
/* @__PURE__ */ o("div", { className: b.titleBar, children: /* @__PURE__ */ p(A, { className: b.titleSlider, children: [
|
|
372
372
|
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ p(
|
|
@@ -380,7 +380,7 @@ function Gt({
|
|
|
380
380
|
size: "large",
|
|
381
381
|
children: [
|
|
382
382
|
" ",
|
|
383
|
-
/* @__PURE__ */ o(
|
|
383
|
+
/* @__PURE__ */ o(Ge, {})
|
|
384
384
|
]
|
|
385
385
|
}
|
|
386
386
|
),
|
|
@@ -396,14 +396,14 @@ function Gt({
|
|
|
396
396
|
size: "large",
|
|
397
397
|
children: [
|
|
398
398
|
" ",
|
|
399
|
-
/* @__PURE__ */ o(
|
|
399
|
+
/* @__PURE__ */ o(Ue, {})
|
|
400
400
|
]
|
|
401
401
|
}
|
|
402
402
|
)
|
|
403
403
|
] }) })
|
|
404
404
|
] });
|
|
405
405
|
}
|
|
406
|
-
const
|
|
406
|
+
const Qe = 400, Qt = X(vt, {
|
|
407
407
|
shouldForwardProp: (e) => (
|
|
408
408
|
// Note we do want anchor to be forwarded to the Drawer component
|
|
409
409
|
![
|
|
@@ -433,7 +433,7 @@ const je = 400, Ut = X(ut, {
|
|
|
433
433
|
marginLeft: `${a}px`
|
|
434
434
|
}))
|
|
435
435
|
})
|
|
436
|
-
),
|
|
436
|
+
), Yt = X(A, {
|
|
437
437
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
438
438
|
})(({ theme: e, anchor: t }) => x(i({
|
|
439
439
|
display: "flex",
|
|
@@ -460,7 +460,7 @@ function De({
|
|
|
460
460
|
onClose: r = () => {
|
|
461
461
|
},
|
|
462
462
|
titleText: a = "",
|
|
463
|
-
width: l =
|
|
463
|
+
width: l = Qe,
|
|
464
464
|
showCloseArrow: c = !0,
|
|
465
465
|
debugOpacity: u = !1,
|
|
466
466
|
headerBoxProps: s = {},
|
|
@@ -472,7 +472,7 @@ function De({
|
|
|
472
472
|
navBarWidthClosed: w = 0
|
|
473
473
|
}) {
|
|
474
474
|
return /* @__PURE__ */ p(
|
|
475
|
-
|
|
475
|
+
Qt,
|
|
476
476
|
{
|
|
477
477
|
SlideProps: {
|
|
478
478
|
onEntered: () => d == null ? void 0 : d(),
|
|
@@ -488,15 +488,15 @@ function De({
|
|
|
488
488
|
navBarWidthOpen: m,
|
|
489
489
|
navBarWidthClosed: w,
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */ o(
|
|
491
|
+
/* @__PURE__ */ o(Yt, x(i({ anchor: t }, s), { children: t === "left" ? /* @__PURE__ */ p(_, { children: [
|
|
492
492
|
/* @__PURE__ */ o(y, { variant: "h6", color: "inherit", component: "div", children: a }),
|
|
493
493
|
c && /* @__PURE__ */ p(V, { onClick: r, size: "large", "aria-label": "Close left side panel", children: [
|
|
494
|
-
/* @__PURE__ */ o(
|
|
494
|
+
/* @__PURE__ */ o(Ue, { "data-testid": "arrowbackicon" }),
|
|
495
495
|
" "
|
|
496
496
|
] })
|
|
497
497
|
] }) : /* @__PURE__ */ p(_, { children: [
|
|
498
498
|
c && /* @__PURE__ */ p(V, { onClick: r, size: "large", "aria-label": "Close right side panel", children: [
|
|
499
|
-
/* @__PURE__ */ o(
|
|
499
|
+
/* @__PURE__ */ o(Ge, {}),
|
|
500
500
|
" "
|
|
501
501
|
] }),
|
|
502
502
|
/* @__PURE__ */ o(y, { variant: "h6", color: "inherit", component: "div", children: a })
|
|
@@ -506,7 +506,7 @@ function De({
|
|
|
506
506
|
}
|
|
507
507
|
);
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const Jt = X("div", {
|
|
510
510
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
511
511
|
name: "PanelAwareMargins"
|
|
512
512
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -529,7 +529,7 @@ const Xt = X("div", {
|
|
|
529
529
|
}),
|
|
530
530
|
marginRight: `${(a = n == null ? void 0 : n.width) != null ? a : 0}px`
|
|
531
531
|
});
|
|
532
|
-
}),
|
|
532
|
+
}), Kt = X(Me, {
|
|
533
533
|
name: "PageContainer"
|
|
534
534
|
})(({ theme: e }) => ({
|
|
535
535
|
// Horizontal padding comes from the Container's gutter
|
|
@@ -538,7 +538,7 @@ const Xt = X("div", {
|
|
|
538
538
|
})), ue = !1, ge = !1, Z = {
|
|
539
539
|
titleText: "",
|
|
540
540
|
flavour: "push",
|
|
541
|
-
width:
|
|
541
|
+
width: Qe,
|
|
542
542
|
arrowButtons: "both",
|
|
543
543
|
startOpen: !1,
|
|
544
544
|
open: void 0,
|
|
@@ -562,8 +562,8 @@ function qn({
|
|
|
562
562
|
navBarWidthOpen: v,
|
|
563
563
|
navBarWidthClosed: f
|
|
564
564
|
}) {
|
|
565
|
-
const [C, m] = O(ue), [w, S] = O(ge), [
|
|
566
|
-
titleText:
|
|
565
|
+
const [C, m] = O(ue), [w, S] = O(ge), [B, T] = O(ue), [$, H] = O(ge), R = n !== void 0, W = r !== void 0, {
|
|
566
|
+
titleText: I,
|
|
567
567
|
content: q,
|
|
568
568
|
flavour: j,
|
|
569
569
|
open: z,
|
|
@@ -571,46 +571,46 @@ function qn({
|
|
|
571
571
|
width: g,
|
|
572
572
|
arrowButtons: h,
|
|
573
573
|
startOpen: P,
|
|
574
|
-
onOpened:
|
|
575
|
-
onClosed:
|
|
576
|
-
dataTestId:
|
|
574
|
+
onOpened: it,
|
|
575
|
+
onClosed: at,
|
|
576
|
+
dataTestId: st
|
|
577
577
|
} = n ? i(i({}, Z), n) : i({}, Z), {
|
|
578
|
-
titleText:
|
|
579
|
-
content:
|
|
580
|
-
flavour:
|
|
578
|
+
titleText: lt,
|
|
579
|
+
content: dt,
|
|
580
|
+
flavour: me,
|
|
581
581
|
open: ie,
|
|
582
|
-
onChangeOpen:
|
|
582
|
+
onChangeOpen: ve,
|
|
583
583
|
width: ae,
|
|
584
584
|
arrowButtons: Q,
|
|
585
585
|
startOpen: Y,
|
|
586
|
-
onOpened:
|
|
587
|
-
onClosed:
|
|
588
|
-
dataTestId:
|
|
586
|
+
onOpened: ct,
|
|
587
|
+
onClosed: pt,
|
|
588
|
+
dataTestId: ut
|
|
589
589
|
} = r ? i(i({}, Z), r) : i({}, Z);
|
|
590
590
|
ne(() => {
|
|
591
|
-
P !== ue && (m(P),
|
|
591
|
+
P !== ue && (m(P), T(P));
|
|
592
592
|
}, [P]), ne(() => {
|
|
593
593
|
Y !== ge && (S(Y), H(Y));
|
|
594
594
|
}, [Y]);
|
|
595
|
-
const se = z === void 0 ? C : z, le = ie === void 0 ? w : ie,
|
|
595
|
+
const se = z === void 0 ? C : z, le = ie === void 0 ? w : ie, xe = (k) => {
|
|
596
596
|
z === void 0 && (m(k), a && W && (k ? (S(!1), H(w)) : S($))), G && G(k);
|
|
597
|
-
},
|
|
598
|
-
ie === void 0 && (S(k), a && R && (k ? (m(!1),
|
|
597
|
+
}, Ce = (k) => {
|
|
598
|
+
ie === void 0 && (S(k), a && R && (k ? (m(!1), T(C)) : m(B))), ve && ve(k);
|
|
599
599
|
};
|
|
600
600
|
return /* @__PURE__ */ p(A, { children: [
|
|
601
601
|
R && /* @__PURE__ */ o(
|
|
602
602
|
De,
|
|
603
603
|
{
|
|
604
|
-
"data-testid":
|
|
604
|
+
"data-testid": st,
|
|
605
605
|
anchor: "left",
|
|
606
606
|
open: se,
|
|
607
|
-
onClose: () =>
|
|
607
|
+
onClose: () => xe(!1),
|
|
608
608
|
width: g,
|
|
609
|
-
titleText:
|
|
609
|
+
titleText: I,
|
|
610
610
|
debugOpacity: l,
|
|
611
611
|
showCloseArrow: h === "both" || h === "close",
|
|
612
|
-
onOpened:
|
|
613
|
-
onClosed:
|
|
612
|
+
onOpened: it,
|
|
613
|
+
onClosed: at,
|
|
614
614
|
navBarOpen: d,
|
|
615
615
|
navBarWidthOpen: v,
|
|
616
616
|
navBarWidthClosed: f,
|
|
@@ -620,24 +620,24 @@ function qn({
|
|
|
620
620
|
W && /* @__PURE__ */ o(
|
|
621
621
|
De,
|
|
622
622
|
{
|
|
623
|
-
"data-testid":
|
|
623
|
+
"data-testid": ut,
|
|
624
624
|
anchor: "right",
|
|
625
625
|
open: le,
|
|
626
|
-
onClose: () =>
|
|
626
|
+
onClose: () => Ce(!1),
|
|
627
627
|
width: ae,
|
|
628
|
-
titleText:
|
|
628
|
+
titleText: lt,
|
|
629
629
|
debugOpacity: l,
|
|
630
630
|
showCloseArrow: Q === "both" || Q === "close",
|
|
631
|
-
onOpened:
|
|
632
|
-
onClosed:
|
|
631
|
+
onOpened: ct,
|
|
632
|
+
onClosed: pt,
|
|
633
633
|
navBarOpen: d,
|
|
634
634
|
navBarWidthOpen: v,
|
|
635
635
|
navBarWidthClosed: f,
|
|
636
|
-
children:
|
|
636
|
+
children: dt
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ o(
|
|
640
|
-
|
|
640
|
+
jt,
|
|
641
641
|
i(i({
|
|
642
642
|
titleText: t,
|
|
643
643
|
"data-testid": s
|
|
@@ -645,41 +645,41 @@ function qn({
|
|
|
645
645
|
leftPanel: {
|
|
646
646
|
open: se,
|
|
647
647
|
width: g,
|
|
648
|
-
onOpen: () =>
|
|
648
|
+
onOpen: () => xe(!0),
|
|
649
649
|
showOpenArrow: h === "both" || h === "open"
|
|
650
650
|
}
|
|
651
|
-
} : {}), W &&
|
|
651
|
+
} : {}), W && me === "push" ? {
|
|
652
652
|
rightPanel: {
|
|
653
653
|
open: le,
|
|
654
654
|
width: ae,
|
|
655
|
-
onOpen: () =>
|
|
655
|
+
onOpen: () => Ce(!0),
|
|
656
656
|
showOpenArrow: Q === "both" || Q === "open"
|
|
657
657
|
}
|
|
658
658
|
} : {})
|
|
659
659
|
),
|
|
660
660
|
/* @__PURE__ */ o(
|
|
661
|
-
|
|
661
|
+
Jt,
|
|
662
662
|
x(i(i({}, j === "push" ? {
|
|
663
663
|
leftPanel: {
|
|
664
664
|
open: se,
|
|
665
665
|
width: g
|
|
666
666
|
}
|
|
667
|
-
} : {}),
|
|
667
|
+
} : {}), me === "push" ? {
|
|
668
668
|
rightPanel: {
|
|
669
669
|
open: le,
|
|
670
670
|
width: ae
|
|
671
671
|
}
|
|
672
672
|
} : {}), {
|
|
673
|
-
children: /* @__PURE__ */ o(
|
|
673
|
+
children: /* @__PURE__ */ o(Kt, x(i({ "data-testid": u }, c), { children: e }))
|
|
674
674
|
})
|
|
675
675
|
)
|
|
676
676
|
] });
|
|
677
677
|
}
|
|
678
|
-
const
|
|
678
|
+
const Zt = 64, en = 64, tn = 256, fe = D(!0), Ye = D(tn), Je = D(en), Ke = D(""), Ze = D(Zt), et = D(void 0), nn = "TopBar", on = {
|
|
679
679
|
titleText: `${nn}-titleText`
|
|
680
680
|
};
|
|
681
681
|
function rn({ titleText: e = "", height: t, "data-testid": n }) {
|
|
682
|
-
const r =
|
|
682
|
+
const r = Et(fe);
|
|
683
683
|
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ p(
|
|
684
684
|
oe,
|
|
685
685
|
{
|
|
@@ -697,7 +697,7 @@ function rn({ titleText: e = "", height: t, "data-testid": n }) {
|
|
|
697
697
|
height: t
|
|
698
698
|
},
|
|
699
699
|
children: [
|
|
700
|
-
/* @__PURE__ */ o(V, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: () => r((l) => !l), children: /* @__PURE__ */ o(
|
|
700
|
+
/* @__PURE__ */ o(V, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: () => r((l) => !l), children: /* @__PURE__ */ o(Nt, { fontSize: "medium" }) }),
|
|
701
701
|
/* @__PURE__ */ o(y, { className: on.titleText, variant: "h6", children: e })
|
|
702
702
|
]
|
|
703
703
|
}
|
|
@@ -730,7 +730,7 @@ const ee = "Navbar", U = {
|
|
|
730
730
|
// marginTop: '64px',
|
|
731
731
|
// marginBottom: '16px',
|
|
732
732
|
// },
|
|
733
|
-
})),
|
|
733
|
+
})), tt = (e, t) => {
|
|
734
734
|
var n, r;
|
|
735
735
|
return {
|
|
736
736
|
height: `calc(100vh - ${t})`,
|
|
@@ -741,29 +741,29 @@ const ee = "Navbar", U = {
|
|
|
741
741
|
backgroundColor: (r = (n = e == null ? void 0 : e.navBar) == null ? void 0 : n.backgroundColor) != null ? r : "white"
|
|
742
742
|
// Provide default so tests don't need to wrap theme provider
|
|
743
743
|
};
|
|
744
|
-
},
|
|
744
|
+
}, $e = (e, t, n) => i({
|
|
745
745
|
width: t,
|
|
746
746
|
transition: e.transitions.create("width", {
|
|
747
747
|
easing: e.transitions.easing.sharp,
|
|
748
748
|
duration: e.transitions.duration.enteringScreen
|
|
749
749
|
})
|
|
750
|
-
},
|
|
750
|
+
}, tt(e, n)), ke = (e, t, n) => i({
|
|
751
751
|
width: t,
|
|
752
752
|
transition: e.transitions.create("width", {
|
|
753
753
|
easing: e.transitions.easing.sharp,
|
|
754
754
|
duration: e.transitions.duration.leavingScreen
|
|
755
755
|
}),
|
|
756
756
|
overflowX: "hidden"
|
|
757
|
-
},
|
|
757
|
+
}, tt(e, n)), sn = M(We, {
|
|
758
758
|
shouldForwardProp: (e) => !["open", "widthOpen", "widthClosed", "offsetTop"].includes(e)
|
|
759
759
|
})(({ theme: e, open: t, widthOpen: n, widthClosed: r, offsetTop: a }) => i(i({
|
|
760
760
|
flexShrink: 0,
|
|
761
761
|
whiteSpace: "nowrap",
|
|
762
762
|
boxSizing: "border-box"
|
|
763
|
-
}, t && x(i({},
|
|
764
|
-
"& .MuiDrawer-paper":
|
|
765
|
-
})), !t && x(i({},
|
|
766
|
-
"& .MuiDrawer-paper":
|
|
763
|
+
}, t && x(i({}, $e(e, n, a)), {
|
|
764
|
+
"& .MuiDrawer-paper": $e(e, n, a)
|
|
765
|
+
})), !t && x(i({}, ke(e, r, a)), {
|
|
766
|
+
"& .MuiDrawer-paper": ke(e, r, a)
|
|
767
767
|
})));
|
|
768
768
|
function ln({ links: e }) {
|
|
769
769
|
return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
|
|
@@ -790,11 +790,11 @@ function dn({
|
|
|
790
790
|
children: /* @__PURE__ */ p(A, { component: "nav", sx: {}, children: [
|
|
791
791
|
l && /* @__PURE__ */ p(A, { sx: { flexGrow: 1 }, children: [
|
|
792
792
|
l,
|
|
793
|
-
/* @__PURE__ */ o(
|
|
793
|
+
/* @__PURE__ */ o(Te, { variant: "middle" })
|
|
794
794
|
] }),
|
|
795
795
|
Array.isArray(c) ? /* @__PURE__ */ o(ln, { links: c }) : c,
|
|
796
796
|
u && /* @__PURE__ */ p(A, { sx: {}, children: [
|
|
797
|
-
/* @__PURE__ */ o(
|
|
797
|
+
/* @__PURE__ */ o(Te, { variant: "middle" }),
|
|
798
798
|
u
|
|
799
799
|
] })
|
|
800
800
|
] })
|
|
@@ -813,7 +813,7 @@ function cn({ children: e, topBarHeight: t }) {
|
|
|
813
813
|
flexGrow: 1
|
|
814
814
|
},
|
|
815
815
|
children: /* @__PURE__ */ o(
|
|
816
|
-
|
|
816
|
+
Me,
|
|
817
817
|
{
|
|
818
818
|
component: "main",
|
|
819
819
|
id: "main-content",
|
|
@@ -834,13 +834,13 @@ function jn({
|
|
|
834
834
|
navBarDataTestId: c,
|
|
835
835
|
navBarMiddle: u
|
|
836
836
|
}) {
|
|
837
|
-
const [s, d] = E(
|
|
837
|
+
const [s, d] = E(fe), [v] = E(Ye), [f] = E(Je), [C, m] = E(Ke), [w] = E(Ze), [S] = E(et);
|
|
838
838
|
return ne(() => {
|
|
839
839
|
t !== void 0 && m(t);
|
|
840
840
|
}, [t, m]), ne(() => {
|
|
841
841
|
n !== void 0 && d(n);
|
|
842
842
|
}, [n, d]), /* @__PURE__ */ p(A, { children: [
|
|
843
|
-
/* @__PURE__ */ o(
|
|
843
|
+
/* @__PURE__ */ o(xt, {}),
|
|
844
844
|
/* @__PURE__ */ o(rn, { titleText: C, "data-testid": l, height: w }),
|
|
845
845
|
/* @__PURE__ */ p(A, { sx: { display: "flex" }, children: [
|
|
846
846
|
/* @__PURE__ */ o(
|
|
@@ -876,26 +876,26 @@ const pn = {
|
|
|
876
876
|
disableWindowBlurListener: !1
|
|
877
877
|
}, un = {
|
|
878
878
|
shouldClose: (e, t) => t !== "clickaway"
|
|
879
|
-
},
|
|
879
|
+
}, Ne = {
|
|
880
880
|
message: "",
|
|
881
881
|
severity: "info",
|
|
882
882
|
variant: "standard",
|
|
883
883
|
progressIndicator: void 0
|
|
884
884
|
// Can use 'circular' or 'linear'
|
|
885
|
-
},
|
|
885
|
+
}, Ee = 100, Fe = 2e3, gn = 2e3, hn = (() => {
|
|
886
886
|
let e = 0;
|
|
887
887
|
return () => (e += 1, e);
|
|
888
888
|
})(), fn = {
|
|
889
889
|
borderBottomLeftRadius: "0px",
|
|
890
890
|
borderBottomRightRadius: "0px"
|
|
891
|
-
}, mn = {}, vn = {},
|
|
891
|
+
}, mn = {}, vn = {}, nt = Le(null);
|
|
892
892
|
function xn(l) {
|
|
893
893
|
var c = l, {
|
|
894
894
|
overrideState: e = mn,
|
|
895
895
|
overrideActions: t = vn,
|
|
896
896
|
shouldClose: n = un.shouldClose,
|
|
897
897
|
children: r
|
|
898
|
-
} = c, a =
|
|
898
|
+
} = c, a = Ae(c, [
|
|
899
899
|
"overrideState",
|
|
900
900
|
"overrideActions",
|
|
901
901
|
"shouldClose",
|
|
@@ -905,14 +905,14 @@ function xn(l) {
|
|
|
905
905
|
const [{ open: u }, s] = O({ open: !1 }), d = ce([]), v = ce(Date.now()), f = ce(0), C = te((g) => {
|
|
906
906
|
s({ open: g });
|
|
907
907
|
}, []), m = te((g = {}) => {
|
|
908
|
-
f.current += 1, d.current.length >=
|
|
909
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
908
|
+
f.current += 1, d.current.length >= Ee && Date.now() - v.current >= Fe && (v.current = Date.now(), console.error(
|
|
909
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Ee}) hit ${f.current} times in last ${Fe}ms)`
|
|
910
910
|
), f.current = 0);
|
|
911
|
-
const h = i(x(i({},
|
|
911
|
+
const h = i(x(i({}, Ne), {
|
|
912
912
|
key: hn()
|
|
913
913
|
}), g);
|
|
914
914
|
return d.current.push(h), d.current.length === 1 && s({ open: !0 }), h.key;
|
|
915
|
-
}, []), w = (g = "", h = {}) => m(i({ message: g, severity: "success" }, h)), S = (g = "", h = {}) => m(i({ message: g, severity: "info" }, h)),
|
|
915
|
+
}, []), w = (g = "", h = {}) => m(i({ message: g, severity: "success" }, h)), S = (g = "", h = {}) => m(i({ message: g, severity: "info" }, h)), B = (g = "", h = {}) => m(i({ message: g, severity: "warning" }, h)), T = (g = "", h = {}) => m(i({ message: g, severity: "error" }, h)), $ = (g) => {
|
|
916
916
|
const h = d.current.findIndex((P) => P.key === g);
|
|
917
917
|
if (h !== -1)
|
|
918
918
|
return h === 0 ? (s({ open: !1 }), d.current[0]) : d.current.splice(h, 1);
|
|
@@ -921,22 +921,22 @@ function xn(l) {
|
|
|
921
921
|
}, R = () => {
|
|
922
922
|
}, W = () => {
|
|
923
923
|
d.current.shift(), d.current.length > 0 && s({ open: !0 });
|
|
924
|
-
},
|
|
925
|
-
"autoHideDuration" in
|
|
924
|
+
}, I = (G = d.current[0]) != null ? G : i({}, Ne), q = {};
|
|
925
|
+
"autoHideDuration" in I && (q.autoHideDuration = I.autoHideDuration);
|
|
926
926
|
const j = i(i({}, pn), a), z = i(i({
|
|
927
927
|
open: u,
|
|
928
928
|
setOpen: C,
|
|
929
929
|
enqueueNotification: m,
|
|
930
930
|
enqueueSuccessNotification: w,
|
|
931
931
|
enqueueInfoNotification: S,
|
|
932
|
-
enqueueWarningNotification:
|
|
933
|
-
enqueueErrorNotification:
|
|
932
|
+
enqueueWarningNotification: B,
|
|
933
|
+
enqueueErrorNotification: T,
|
|
934
934
|
removeNotification: $
|
|
935
935
|
}, e), t);
|
|
936
|
-
return /* @__PURE__ */ p(
|
|
936
|
+
return /* @__PURE__ */ p(nt.Provider, { value: z, children: [
|
|
937
937
|
r,
|
|
938
938
|
/* @__PURE__ */ o(
|
|
939
|
-
|
|
939
|
+
Ct,
|
|
940
940
|
x(i(i({}, j), q), {
|
|
941
941
|
open: u,
|
|
942
942
|
onClose: H,
|
|
@@ -947,38 +947,38 @@ function xn(l) {
|
|
|
947
947
|
sx: { zIndex: gn },
|
|
948
948
|
children: /* @__PURE__ */ p("div", { children: [
|
|
949
949
|
/* @__PURE__ */ o(
|
|
950
|
-
|
|
950
|
+
wt,
|
|
951
951
|
{
|
|
952
952
|
onClose: (g) => H(g, "closeAlert"),
|
|
953
|
-
severity:
|
|
953
|
+
severity: I.severity,
|
|
954
954
|
variant: "filled",
|
|
955
|
-
icon:
|
|
956
|
-
style:
|
|
957
|
-
children:
|
|
955
|
+
icon: I.progressIndicator === "circular" ? /* @__PURE__ */ o(He, { size: "1em" }) : void 0,
|
|
956
|
+
style: I.progressIndicator === "linear" ? fn : void 0,
|
|
957
|
+
children: I.message
|
|
958
958
|
}
|
|
959
959
|
),
|
|
960
|
-
|
|
960
|
+
I.progressIndicator === "linear" && /* @__PURE__ */ o(bt, { color: "primary" })
|
|
961
961
|
] })
|
|
962
962
|
})
|
|
963
963
|
)
|
|
964
964
|
] });
|
|
965
965
|
}
|
|
966
966
|
function Cn() {
|
|
967
|
-
const e =
|
|
967
|
+
const e = _e(nt);
|
|
968
968
|
if (e === null)
|
|
969
969
|
throw new he("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
970
970
|
return e;
|
|
971
971
|
}
|
|
972
972
|
const Qn = re(
|
|
973
973
|
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: r }) => /* @__PURE__ */ o(xn, x(i({}, e), { overrideState: t, overrideActions: n, children: r }))
|
|
974
|
-
),
|
|
975
|
-
var
|
|
976
|
-
const
|
|
977
|
-
JSON.parse((
|
|
978
|
-
),
|
|
979
|
-
(e) => e(
|
|
974
|
+
), ot = "domainCode";
|
|
975
|
+
var Pe;
|
|
976
|
+
const ye = D(
|
|
977
|
+
JSON.parse((Pe = localStorage.getItem(ot)) != null ? Pe : "{}").domainCode
|
|
978
|
+
), rt = D(
|
|
979
|
+
(e) => e(ye),
|
|
980
980
|
(e, t, n) => {
|
|
981
|
-
t(
|
|
981
|
+
t(ye, n), localStorage.setItem(ot, JSON.stringify({ domainCode: n }));
|
|
982
982
|
}
|
|
983
983
|
), wn = {
|
|
984
984
|
act: "ACT",
|
|
@@ -1003,14 +1003,14 @@ const Fe = B(
|
|
|
1003
1003
|
applicationName: a,
|
|
1004
1004
|
handleLogout: l
|
|
1005
1005
|
}) => {
|
|
1006
|
-
const [c, u] = E(
|
|
1006
|
+
const [c, u] = E(rt), [s, d] = O(c), { enqueueSuccessNotification: v } = Cn(), f = r.length === 0, C = !!c && !r.includes(c) && !r.includes(s), m = !c || f || C, w = () => K(void 0, null, function* () {
|
|
1007
1007
|
s ? (u(s), v(`Set domain to ${s}`), n()) : u("");
|
|
1008
1008
|
}), S = () => K(void 0, null, function* () {
|
|
1009
1009
|
c && !f && !C ? (d(c), n()) : m && l();
|
|
1010
1010
|
});
|
|
1011
|
-
let
|
|
1012
|
-
return f ?
|
|
1013
|
-
|
|
1011
|
+
let B;
|
|
1012
|
+
return f ? B = "Unable to retrieve your active organisations. Try logging in again." : C && (B = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ p(
|
|
1013
|
+
Ut,
|
|
1014
1014
|
{
|
|
1015
1015
|
isOpen: t,
|
|
1016
1016
|
dialogTitle: "Select an organisation",
|
|
@@ -1031,35 +1031,35 @@ const Fe = B(
|
|
|
1031
1031
|
"."
|
|
1032
1032
|
] }),
|
|
1033
1033
|
/* @__PURE__ */ o(
|
|
1034
|
-
|
|
1034
|
+
At,
|
|
1035
1035
|
{
|
|
1036
1036
|
loading: e,
|
|
1037
1037
|
multiple: !1,
|
|
1038
1038
|
disableClearable: !1,
|
|
1039
1039
|
value: s != null ? s : null,
|
|
1040
|
-
onChange: (
|
|
1040
|
+
onChange: (T, $) => d($ != null ? $ : ""),
|
|
1041
1041
|
getOptionLabel: bn,
|
|
1042
1042
|
options: [...r],
|
|
1043
|
-
renderInput: (
|
|
1044
|
-
|
|
1045
|
-
x(i({},
|
|
1043
|
+
renderInput: (T) => /* @__PURE__ */ o(
|
|
1044
|
+
St,
|
|
1045
|
+
x(i({}, T), {
|
|
1046
1046
|
variant: "filled",
|
|
1047
1047
|
label: "Select organisation",
|
|
1048
|
-
InputProps: x(i({},
|
|
1048
|
+
InputProps: x(i({}, T.InputProps), {
|
|
1049
1049
|
endAdornment: /* @__PURE__ */ p(_, { children: [
|
|
1050
|
-
e ? /* @__PURE__ */ o(
|
|
1051
|
-
|
|
1050
|
+
e ? /* @__PURE__ */ o(He, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
1051
|
+
T.InputProps.endAdornment
|
|
1052
1052
|
] })
|
|
1053
1053
|
})
|
|
1054
1054
|
})
|
|
1055
1055
|
)
|
|
1056
1056
|
}
|
|
1057
1057
|
),
|
|
1058
|
-
|
|
1058
|
+
B && /* @__PURE__ */ o(Tt, { error: !0, children: B })
|
|
1059
1059
|
]
|
|
1060
1060
|
}
|
|
1061
1061
|
);
|
|
1062
|
-
}, Jn =
|
|
1062
|
+
}, Jn = Re({
|
|
1063
1063
|
palette: {
|
|
1064
1064
|
primary: {
|
|
1065
1065
|
dark: "#00A651",
|
|
@@ -1110,7 +1110,7 @@ const Fe = B(
|
|
|
1110
1110
|
navBar: {
|
|
1111
1111
|
backgroundColor: "#E8E8E8"
|
|
1112
1112
|
}
|
|
1113
|
-
}), Kn =
|
|
1113
|
+
}), Kn = Re({
|
|
1114
1114
|
palette: {
|
|
1115
1115
|
primary: {
|
|
1116
1116
|
main: "#007236",
|
|
@@ -1202,11 +1202,17 @@ const Fe = B(
|
|
|
1202
1202
|
backgroundColor: "#E8E8E8"
|
|
1203
1203
|
}
|
|
1204
1204
|
}), An = {
|
|
1205
|
-
domainCode:
|
|
1206
|
-
|
|
1205
|
+
domainCode: rt,
|
|
1206
|
+
navBarOpen: fe,
|
|
1207
|
+
navBarWidthOpen: Ye,
|
|
1208
|
+
navBarWidthClosed: Je,
|
|
1209
|
+
titleText: Ke,
|
|
1210
|
+
topBarHeight: Ze,
|
|
1211
|
+
navBarTop: et
|
|
1212
|
+
}, Zn = re(() => ({ children: e }) => /* @__PURE__ */ o(Ft, { children: e })), Sn = ({
|
|
1207
1213
|
initialValues: e,
|
|
1208
1214
|
children: t
|
|
1209
|
-
}) => (
|
|
1215
|
+
}) => (yt(e), /* @__PURE__ */ o(_, { children: t })), eo = re(
|
|
1210
1216
|
(e) => ({ children: t }) => /* @__PURE__ */ o(
|
|
1211
1217
|
Sn,
|
|
1212
1218
|
{
|
|
@@ -1221,33 +1227,33 @@ const Fe = B(
|
|
|
1221
1227
|
)
|
|
1222
1228
|
);
|
|
1223
1229
|
export {
|
|
1224
|
-
|
|
1230
|
+
Ut as AgDialog,
|
|
1225
1231
|
jn as AppLayout,
|
|
1226
|
-
|
|
1232
|
+
nt as Context,
|
|
1227
1233
|
he as ContextError,
|
|
1228
1234
|
Yn as DomainCodeDialog,
|
|
1229
1235
|
zn as ExampleComponent,
|
|
1230
1236
|
Sn as HydrateAtoms,
|
|
1231
|
-
|
|
1232
|
-
|
|
1237
|
+
Xe as NAVBAR_WIDTH_CLOSED,
|
|
1238
|
+
Ve as NAVBAR_WIDTH_OPENED,
|
|
1233
1239
|
Xn as NavBar,
|
|
1234
1240
|
Un as NavBarDarkStyledList,
|
|
1235
1241
|
Vn as NavBarLightStyledList,
|
|
1236
|
-
|
|
1242
|
+
Wt as NavBarProvider,
|
|
1237
1243
|
qn as PageLayout,
|
|
1238
1244
|
xn as SaladBarProvider,
|
|
1239
|
-
|
|
1240
|
-
|
|
1245
|
+
Gt as buildNavBarState,
|
|
1246
|
+
rt as domainCodeAtom,
|
|
1241
1247
|
Jn as fed21Theme,
|
|
1242
1248
|
Kn as internalAgSystemsTheme,
|
|
1243
1249
|
L as navBarClasses,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1250
|
+
fe as navBarOpenAtom,
|
|
1251
|
+
et as navBarTopAtom,
|
|
1252
|
+
Je as navBarWidthClosedAtom,
|
|
1253
|
+
Ye as navBarWidthOpenAtom,
|
|
1254
|
+
Ke as titleTextAtom,
|
|
1255
|
+
Ze as topBarHeightAtom,
|
|
1256
|
+
zt as useNavBar,
|
|
1251
1257
|
Cn as useSaladBar,
|
|
1252
1258
|
Zn as withAtomProvider,
|
|
1253
1259
|
Gn as withNavBarProvider,
|