@australiangreens/ag-internal-components 0.0.30 → 0.0.31
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.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/components/AgDialog/index.d.ts +23 -0
- package/dist/components/AgDialog/index.d.ts.map +1 -0
- package/dist/components/NavBar/Styling.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/domainCode/DomainCodeDialog.d.ts +24 -0
- package/dist/domainCode/DomainCodeDialog.d.ts.map +1 -0
- package/dist/domainCode/hooks.d.ts +5 -0
- package/dist/domainCode/hooks.d.ts.map +1 -0
- package/dist/domainCode/index.d.ts +4 -0
- package/dist/domainCode/index.d.ts.map +1 -0
- package/dist/esm/index.js +540 -395
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layouts/AppLayout/NavBar/Styling.d.ts +1 -1
- package/dist/layouts/PageLayout/PageContainer.d.ts +2 -2
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,42 +1,66 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ie = (e, t, n) => t in e ?
|
|
1
|
+
var nt = Object.defineProperty, rt = Object.defineProperties;
|
|
2
|
+
var ot = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var q = Object.getOwnPropertySymbols;
|
|
4
|
+
var we = Object.prototype.hasOwnProperty, me = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ie = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, r = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
we.call(t, n) && ie(e, n, t[n]);
|
|
8
|
+
if (q)
|
|
9
|
+
for (var n of q(t))
|
|
10
|
+
me.call(t, n) && ie(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, v = (e, t) => rt(e, ot(t));
|
|
13
|
+
var Ce = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var i of
|
|
19
|
-
t.indexOf(i) < 0 &&
|
|
16
|
+
we.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
17
|
+
if (e != null && q)
|
|
18
|
+
for (var i of q(e))
|
|
19
|
+
t.indexOf(i) < 0 && me.call(e, i) && (n[i] = e[i]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
var Te = (e, t, n) => (ie(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
|
+
var ae = (e, t, n) => new Promise((i, a) => {
|
|
24
|
+
var l = (d) => {
|
|
25
|
+
try {
|
|
26
|
+
u(n.next(d));
|
|
27
|
+
} catch (s) {
|
|
28
|
+
a(s);
|
|
29
|
+
}
|
|
30
|
+
}, p = (d) => {
|
|
31
|
+
try {
|
|
32
|
+
u(n.throw(d));
|
|
33
|
+
} catch (s) {
|
|
34
|
+
a(s);
|
|
35
|
+
}
|
|
36
|
+
}, u = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(l, p);
|
|
37
|
+
u((n = n.apply(e, t)).next());
|
|
38
|
+
});
|
|
39
|
+
import { jsxs as c, Fragment as M, jsx as o } from "react/jsx-runtime";
|
|
40
|
+
import { useState as B, createContext as ce, useCallback as Y, useContext as pe, useEffect as K, useReducer as it, useMemo as at, useRef as se } from "react";
|
|
41
|
+
import { Typography as D, Button as st, Paper as ue, styled as F, Box as T, IconButton as W, Drawer as dt, Container as ye, Divider as Oe, CssBaseline as lt, Snackbar as ct, Alert as pt, CircularProgress as Ee, LinearProgress as ut, Autocomplete as gt, TextField as ht } from "@mui/material";
|
|
42
|
+
import ft from "@mui/material/CssBaseline";
|
|
43
|
+
import { styled as y } from "@mui/material/styles";
|
|
44
|
+
import Pe from "@mui/material/Drawer";
|
|
45
|
+
import { AgError as vt } from "@australiangreens/ag-error";
|
|
46
|
+
import { createHelper as ke } from "souvlaki";
|
|
47
|
+
import _e from "@mui/material/List";
|
|
48
|
+
import Be from "@mui/material/Button";
|
|
49
|
+
import xt from "@mui/material/Dialog";
|
|
50
|
+
import wt from "@mui/material/DialogActions";
|
|
51
|
+
import mt from "@mui/material/DialogContent";
|
|
52
|
+
import Ct from "@mui/material/DialogTitle";
|
|
53
|
+
import { ArrowForward as Re, ArrowBack as He, ViewHeadline as Tt } from "@mui/icons-material";
|
|
54
|
+
import Ot from "src/components/AgDialog";
|
|
55
|
+
import { useAtom as Bt, useAtomValue as bt, useSetAtom as It } from "jotai";
|
|
56
|
+
import { atomWithStorage as Nt, RESET as St } from "jotai/utils";
|
|
57
|
+
function Mn({ text: e }) {
|
|
58
|
+
const [t, n] = B(0);
|
|
59
|
+
return /* @__PURE__ */ c(M, { children: [
|
|
60
|
+
/* @__PURE__ */ o(D, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
61
|
+
/* @__PURE__ */ o(D, { variant: "caption", display: "block", children: /* @__PURE__ */ o("span", { children: "Just ensuring MUI is working as planned as a peer dependency. v0.0.11" }) }),
|
|
38
62
|
/* @__PURE__ */ o(
|
|
39
|
-
|
|
63
|
+
st,
|
|
40
64
|
{
|
|
41
65
|
variant: "outlined",
|
|
42
66
|
onClick: () => n((i) => i + 1),
|
|
@@ -44,25 +68,25 @@ function hn({ text: e }) {
|
|
|
44
68
|
children: "Hello I am a button"
|
|
45
69
|
}
|
|
46
70
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ c("p", { children: [
|
|
48
72
|
"This is some text: ",
|
|
49
73
|
/* @__PURE__ */ o("span", { children: e })
|
|
50
74
|
] }),
|
|
51
|
-
/* @__PURE__ */
|
|
75
|
+
/* @__PURE__ */ c(ue, { children: [
|
|
52
76
|
"This number will incremember when button pressed: ",
|
|
53
77
|
t
|
|
54
78
|
] })
|
|
55
79
|
] });
|
|
56
80
|
}
|
|
57
|
-
const
|
|
58
|
-
root: `${
|
|
59
|
-
menuButton: `${
|
|
60
|
-
hide: `${
|
|
61
|
-
content: `${
|
|
62
|
-
userInfoHolder: `${
|
|
63
|
-
settings: `${
|
|
64
|
-
pieChartIcon: `${
|
|
65
|
-
},
|
|
81
|
+
const Me = 330, We = 73, S = "Navbar", L = {
|
|
82
|
+
root: `${S}-root`,
|
|
83
|
+
menuButton: `${S}-menuButton`,
|
|
84
|
+
hide: `${S}-hide`,
|
|
85
|
+
content: `${S}-content`,
|
|
86
|
+
userInfoHolder: `${S}-userInfoHolder`,
|
|
87
|
+
settings: `${S}-settings`,
|
|
88
|
+
pieChartIcon: `${S}-pieChartIcon`
|
|
89
|
+
}, At = y("div", { name: "NavBar" })(({ theme: e }) => ({
|
|
66
90
|
[`&.${L.root}`]: {
|
|
67
91
|
display: "flex"
|
|
68
92
|
},
|
|
@@ -81,7 +105,7 @@ const De = 330, _e = 73, I = "Navbar", L = {
|
|
|
81
105
|
marginTop: "64px",
|
|
82
106
|
marginBottom: "16px"
|
|
83
107
|
}
|
|
84
|
-
})),
|
|
108
|
+
})), Fe = () => ({
|
|
85
109
|
position: "absolute",
|
|
86
110
|
height: "100%",
|
|
87
111
|
overflowX: "hidden",
|
|
@@ -89,51 +113,51 @@ const De = 330, _e = 73, I = "Navbar", L = {
|
|
|
89
113
|
color: "white",
|
|
90
114
|
backgroundColor: "black"
|
|
91
115
|
// backgroundColor: '#e8e8e8',
|
|
92
|
-
}),
|
|
93
|
-
width:
|
|
94
|
-
},
|
|
95
|
-
width:
|
|
96
|
-
},
|
|
116
|
+
}), $t = () => r({
|
|
117
|
+
width: Me
|
|
118
|
+
}, Fe()), Lt = () => r({
|
|
119
|
+
width: We
|
|
120
|
+
}, Fe()), Dt = y(Pe, {
|
|
97
121
|
shouldForwardProp: (e) => e !== "open"
|
|
98
122
|
})(({ theme: e, open: t }) => r(r({
|
|
99
|
-
width: t ?
|
|
123
|
+
width: t ? Me : We,
|
|
100
124
|
flexShrink: 0,
|
|
101
125
|
whiteSpace: "nowrap",
|
|
102
126
|
boxSizing: "border-box",
|
|
103
127
|
zIndex: e.zIndex.drawer + 100
|
|
104
128
|
}, t && {
|
|
105
|
-
"& .MuiDrawer-paper":
|
|
129
|
+
"& .MuiDrawer-paper": $t()
|
|
106
130
|
}), !t && {
|
|
107
|
-
"& .MuiDrawer-paper":
|
|
131
|
+
"& .MuiDrawer-paper": Lt()
|
|
108
132
|
}));
|
|
109
|
-
class J extends
|
|
133
|
+
class J extends vt {
|
|
110
134
|
}
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
overrideState: e =
|
|
114
|
-
overrideActions: t =
|
|
135
|
+
Te(J, "errorName", "ContextError");
|
|
136
|
+
const ze = ce(null), yt = {}, Et = {}, Pt = ({
|
|
137
|
+
overrideState: e = yt,
|
|
138
|
+
overrideActions: t = Et,
|
|
115
139
|
children: n
|
|
116
140
|
}) => {
|
|
117
|
-
const [{ open: i }, a] =
|
|
118
|
-
a({ open:
|
|
119
|
-
}, []),
|
|
120
|
-
a((
|
|
121
|
-
}, []),
|
|
141
|
+
const [{ open: i }, a] = B({ open: !0 }), l = Y((d) => {
|
|
142
|
+
a({ open: d });
|
|
143
|
+
}, []), p = Y(() => {
|
|
144
|
+
a((d) => v(r({}, d), { open: !d.open }));
|
|
145
|
+
}, []), u = r(r({
|
|
122
146
|
open: i,
|
|
123
|
-
setOpen:
|
|
124
|
-
toggleOpen:
|
|
147
|
+
setOpen: l,
|
|
148
|
+
toggleOpen: p
|
|
125
149
|
}, e), t);
|
|
126
|
-
return /* @__PURE__ */ o(
|
|
127
|
-
},
|
|
128
|
-
const e =
|
|
150
|
+
return /* @__PURE__ */ o(ze.Provider, { value: u, children: n });
|
|
151
|
+
}, kt = () => {
|
|
152
|
+
const e = pe(ze);
|
|
129
153
|
if (e === null)
|
|
130
154
|
throw new J("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
131
155
|
return e;
|
|
132
|
-
},
|
|
156
|
+
}, _t = (e = {}) => r({
|
|
133
157
|
open: !0
|
|
134
|
-
}, e),
|
|
135
|
-
(e =
|
|
136
|
-
),
|
|
158
|
+
}, e), Wn = ke(
|
|
159
|
+
(e = _t(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(Pt, { overrideState: e, overrideActions: t, children: n })
|
|
160
|
+
), be = 7, Fn = y(_e)(({ theme: e }) => ({
|
|
137
161
|
backgroundColor: "black",
|
|
138
162
|
color: "white",
|
|
139
163
|
"& .MuiListItem-root": {
|
|
@@ -142,7 +166,7 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
142
166
|
"& .MuiListItemButton-root": {
|
|
143
167
|
" .MuiListItemIcon-root": {
|
|
144
168
|
color: "white",
|
|
145
|
-
padding: `${
|
|
169
|
+
padding: `${be}px`
|
|
146
170
|
},
|
|
147
171
|
// Focus state
|
|
148
172
|
"&.Mui-focusVisible": {
|
|
@@ -153,7 +177,7 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
153
177
|
borderLeftStyle: "solid",
|
|
154
178
|
borderLeftWidth: "7px",
|
|
155
179
|
borderLeftColor: e.palette.primary.main,
|
|
156
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
180
|
+
paddingLeft: `calc(${e.spacing(2)} - ${be}px)`
|
|
157
181
|
},
|
|
158
182
|
// Hover state
|
|
159
183
|
"&:hover": {
|
|
@@ -171,7 +195,7 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
171
195
|
// '&.Mui-selected.Mui-focusVisible:hover': {
|
|
172
196
|
// },
|
|
173
197
|
}
|
|
174
|
-
})),
|
|
198
|
+
})), Ie = 7, zn = y(_e)(({ theme: e }) => ({
|
|
175
199
|
backgroundColor: "#e8e8e8",
|
|
176
200
|
color: "inherit",
|
|
177
201
|
"& .MuiListItem-root": {
|
|
@@ -180,7 +204,7 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
180
204
|
"& .MuiListItemButton-root": {
|
|
181
205
|
" .MuiListItemIcon-root": {
|
|
182
206
|
color: "inherit",
|
|
183
|
-
padding: `${
|
|
207
|
+
padding: `${Ie}px`
|
|
184
208
|
},
|
|
185
209
|
// Focus state
|
|
186
210
|
"&.Mui-focusVisible": {
|
|
@@ -191,7 +215,7 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
191
215
|
borderLeftStyle: "solid",
|
|
192
216
|
borderLeftWidth: "7px",
|
|
193
217
|
borderLeftColor: e.palette.primary.main,
|
|
194
|
-
paddingLeft: `calc(${e.spacing(2)} - ${
|
|
218
|
+
paddingLeft: `calc(${e.spacing(2)} - ${Ie}px)`
|
|
195
219
|
},
|
|
196
220
|
// Hover state
|
|
197
221
|
"&:hover": {
|
|
@@ -210,15 +234,15 @@ const Re = le(null), xt = {}, Bt = {}, wt = ({
|
|
|
210
234
|
// },
|
|
211
235
|
}
|
|
212
236
|
}));
|
|
213
|
-
function
|
|
237
|
+
function Gn({
|
|
214
238
|
"data-testid": e,
|
|
215
239
|
children: t
|
|
216
240
|
}) {
|
|
217
|
-
const { open: n } =
|
|
218
|
-
return /* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */ o(
|
|
241
|
+
const { open: n } = kt();
|
|
242
|
+
return /* @__PURE__ */ c(At, { className: L.root, "data-testid": e, children: [
|
|
243
|
+
/* @__PURE__ */ o(ft, {}),
|
|
220
244
|
/* @__PURE__ */ o(
|
|
221
|
-
|
|
245
|
+
Dt,
|
|
222
246
|
{
|
|
223
247
|
variant: "permanent",
|
|
224
248
|
anchor: "left",
|
|
@@ -229,32 +253,81 @@ function xn({
|
|
|
229
253
|
)
|
|
230
254
|
] });
|
|
231
255
|
}
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
256
|
+
const Un = ({
|
|
257
|
+
isOpen: e,
|
|
258
|
+
dialogTitle: t,
|
|
259
|
+
children: n,
|
|
260
|
+
maxWidth: i,
|
|
261
|
+
primaryButton: a,
|
|
262
|
+
secondaryButton: l,
|
|
263
|
+
onClose: p
|
|
264
|
+
}) => {
|
|
265
|
+
var s, x;
|
|
266
|
+
const [u, d] = B(!1);
|
|
267
|
+
return /* @__PURE__ */ c(
|
|
268
|
+
xt,
|
|
269
|
+
{
|
|
270
|
+
open: e,
|
|
271
|
+
onClose: () => {
|
|
272
|
+
u || p();
|
|
273
|
+
},
|
|
274
|
+
fullWidth: !0,
|
|
275
|
+
maxWidth: i != null ? i : "xs",
|
|
276
|
+
children: [
|
|
277
|
+
/* @__PURE__ */ o(Ct, { children: t }),
|
|
278
|
+
/* @__PURE__ */ o(mt, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
279
|
+
/* @__PURE__ */ c(wt, { children: [
|
|
280
|
+
/* @__PURE__ */ o(
|
|
281
|
+
Be,
|
|
282
|
+
{
|
|
283
|
+
onClick: (s = l == null ? void 0 : l.onClick) != null ? s : p,
|
|
284
|
+
"data-testid": l == null ? void 0 : l.testId,
|
|
285
|
+
disabled: (l == null ? void 0 : l.disabled) || u,
|
|
286
|
+
children: (x = l == null ? void 0 : l.text) != null ? x : "Cancel"
|
|
287
|
+
}
|
|
288
|
+
),
|
|
289
|
+
a && /* @__PURE__ */ o(
|
|
290
|
+
Be,
|
|
291
|
+
{
|
|
292
|
+
onClick: () => ae(void 0, null, function* () {
|
|
293
|
+
var w;
|
|
294
|
+
d(!0), yield (w = a.onClick) == null ? void 0 : w.call(a), d(!1);
|
|
295
|
+
}),
|
|
296
|
+
"data-testid": a.testId,
|
|
297
|
+
disabled: a.disabled || u,
|
|
298
|
+
children: a.text
|
|
299
|
+
}
|
|
300
|
+
)
|
|
301
|
+
] })
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
);
|
|
305
|
+
}, Rt = 24, Ht = 64, A = "TopBar", C = {
|
|
306
|
+
topStripe: `${A}-topStripe`,
|
|
307
|
+
titleBar: `${A}-titleBar`,
|
|
308
|
+
titleSlider: `${A}-titleSlider`,
|
|
309
|
+
titleText: `${A}-titleText`,
|
|
310
|
+
leftPanelButton: `${A}-leftPanelButton`,
|
|
311
|
+
rightPanelButton: `${A}-leftPanelButton`
|
|
312
|
+
}, Mt = F("div", {
|
|
240
313
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
241
|
-
name:
|
|
314
|
+
name: A
|
|
242
315
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
243
316
|
var i, a;
|
|
244
317
|
return {
|
|
245
318
|
width: "100%",
|
|
246
|
-
[`& .${
|
|
319
|
+
[`& .${C.topStripe}`]: {
|
|
247
320
|
width: "100%",
|
|
248
|
-
height: `${
|
|
321
|
+
height: `${Rt}px`,
|
|
249
322
|
backgroundColor: e.palette.primary.main
|
|
250
323
|
},
|
|
251
|
-
[`& .${
|
|
324
|
+
[`& .${C.titleBar}`]: {
|
|
252
325
|
backgroundColor: e.palette.primary.light,
|
|
253
|
-
height: `${
|
|
326
|
+
height: `${Ht}px`,
|
|
254
327
|
padding: e.spacing(0, 3),
|
|
255
328
|
width: "100%"
|
|
256
329
|
},
|
|
257
|
-
[`& .${
|
|
330
|
+
[`& .${C.titleSlider}`]: r(r({
|
|
258
331
|
height: "100%",
|
|
259
332
|
display: "flex",
|
|
260
333
|
alignItems: "center",
|
|
@@ -263,14 +336,14 @@ const yt = 24, Ct = 64, N = "TopBar", T = {
|
|
|
263
336
|
easing: e.transitions.easing.sharp,
|
|
264
337
|
duration: e.transitions.duration.leavingScreen
|
|
265
338
|
}),
|
|
266
|
-
[`& .${
|
|
339
|
+
[`& .${C.leftPanelButton}`]: {
|
|
267
340
|
marginRight: e.spacing(2),
|
|
268
341
|
flexGrow: 0
|
|
269
342
|
},
|
|
270
|
-
[`& .${
|
|
343
|
+
[`& .${C.titleText}`]: {
|
|
271
344
|
flexGrow: 1
|
|
272
345
|
},
|
|
273
|
-
[`& .${
|
|
346
|
+
[`& .${C.rightPanelButton}`]: {
|
|
274
347
|
flexGrow: 0
|
|
275
348
|
}
|
|
276
349
|
}, (t == null ? void 0 : t.open) && {
|
|
@@ -288,19 +361,19 @@ const yt = 24, Ct = 64, N = "TopBar", T = {
|
|
|
288
361
|
})
|
|
289
362
|
};
|
|
290
363
|
});
|
|
291
|
-
function
|
|
364
|
+
function Wt({
|
|
292
365
|
titleText: e = "",
|
|
293
366
|
leftPanel: t,
|
|
294
367
|
rightPanel: n,
|
|
295
368
|
"data-testid": i
|
|
296
369
|
}) {
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ o("div", { className:
|
|
299
|
-
/* @__PURE__ */ o("div", { className:
|
|
300
|
-
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */
|
|
301
|
-
|
|
370
|
+
return /* @__PURE__ */ c(Mt, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
|
|
371
|
+
/* @__PURE__ */ o("div", { className: C.topStripe }),
|
|
372
|
+
/* @__PURE__ */ o("div", { className: C.titleBar, children: /* @__PURE__ */ c(T, { className: C.titleSlider, children: [
|
|
373
|
+
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ c(
|
|
374
|
+
W,
|
|
302
375
|
{
|
|
303
|
-
className:
|
|
376
|
+
className: C.leftPanelButton,
|
|
304
377
|
color: "inherit",
|
|
305
378
|
"aria-label": "Open left side panel",
|
|
306
379
|
onClick: t == null ? void 0 : t.onOpen,
|
|
@@ -308,15 +381,15 @@ function bt({
|
|
|
308
381
|
size: "large",
|
|
309
382
|
children: [
|
|
310
383
|
" ",
|
|
311
|
-
/* @__PURE__ */ o(
|
|
384
|
+
/* @__PURE__ */ o(Re, {})
|
|
312
385
|
]
|
|
313
386
|
}
|
|
314
387
|
),
|
|
315
|
-
/* @__PURE__ */ o(
|
|
316
|
-
n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */
|
|
317
|
-
|
|
388
|
+
/* @__PURE__ */ o(D, { className: C.titleText, variant: "h6", noWrap: !0, children: e }),
|
|
389
|
+
n !== void 0 && !n.open && n.showOpenArrow && /* @__PURE__ */ c(
|
|
390
|
+
W,
|
|
318
391
|
{
|
|
319
|
-
className:
|
|
392
|
+
className: C.rightPanelButton,
|
|
320
393
|
color: "inherit",
|
|
321
394
|
"aria-label": "Open right side panel",
|
|
322
395
|
onClick: n == null ? void 0 : n.onOpen,
|
|
@@ -324,14 +397,14 @@ function bt({
|
|
|
324
397
|
size: "large",
|
|
325
398
|
children: [
|
|
326
399
|
" ",
|
|
327
|
-
/* @__PURE__ */ o(
|
|
400
|
+
/* @__PURE__ */ o(He, {})
|
|
328
401
|
]
|
|
329
402
|
}
|
|
330
403
|
)
|
|
331
404
|
] }) })
|
|
332
405
|
] });
|
|
333
406
|
}
|
|
334
|
-
const
|
|
407
|
+
const Ge = 400, Ft = F(dt, {
|
|
335
408
|
shouldForwardProp: (e) => (
|
|
336
409
|
// Note we do want anchor to be forwarded to the Drawer component
|
|
337
410
|
![
|
|
@@ -345,7 +418,7 @@ const Me = 400, It = W(ot, {
|
|
|
345
418
|
),
|
|
346
419
|
name: "SidePanelDrawer"
|
|
347
420
|
})(
|
|
348
|
-
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: a, navBarWidthClosed:
|
|
421
|
+
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: a, navBarWidthClosed: l }) => ({
|
|
349
422
|
width: e,
|
|
350
423
|
"& .MuiDrawer-paper": r(r({
|
|
351
424
|
position: "absolute",
|
|
@@ -356,14 +429,14 @@ const Me = 400, It = W(ot, {
|
|
|
356
429
|
}, t && {
|
|
357
430
|
opacity: "50%"
|
|
358
431
|
}), n === "left" && r({
|
|
359
|
-
marginLeft: `${
|
|
432
|
+
marginLeft: `${l}px`
|
|
360
433
|
}, i && {
|
|
361
434
|
marginLeft: `${a}px`
|
|
362
435
|
}))
|
|
363
436
|
})
|
|
364
|
-
),
|
|
437
|
+
), zt = F(T, {
|
|
365
438
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
366
|
-
})(({ theme: e, anchor: t }) =>
|
|
439
|
+
})(({ theme: e, anchor: t }) => v(r({
|
|
367
440
|
display: "flex",
|
|
368
441
|
alignItems: "center",
|
|
369
442
|
padding: e.spacing(2)
|
|
@@ -381,60 +454,60 @@ const Me = 400, It = W(ot, {
|
|
|
381
454
|
marginRight: t === "right" ? e.spacing(2) : 0
|
|
382
455
|
}
|
|
383
456
|
}));
|
|
384
|
-
function
|
|
457
|
+
function Ne({
|
|
385
458
|
children: e,
|
|
386
459
|
anchor: t = "left",
|
|
387
460
|
open: n,
|
|
388
461
|
onClose: i = () => {
|
|
389
462
|
},
|
|
390
463
|
titleText: a = "",
|
|
391
|
-
width:
|
|
392
|
-
showCloseArrow:
|
|
393
|
-
debugOpacity:
|
|
394
|
-
headerBoxProps:
|
|
464
|
+
width: l = Ge,
|
|
465
|
+
showCloseArrow: p = !0,
|
|
466
|
+
debugOpacity: u = !1,
|
|
467
|
+
headerBoxProps: d = {},
|
|
395
468
|
onOpened: s,
|
|
396
|
-
onClosed:
|
|
469
|
+
onClosed: x,
|
|
397
470
|
"data-testid": w,
|
|
398
|
-
navBarOpen:
|
|
399
|
-
navBarWidthOpen:
|
|
400
|
-
navBarWidthClosed:
|
|
471
|
+
navBarOpen: g = !1,
|
|
472
|
+
navBarWidthOpen: m = 0,
|
|
473
|
+
navBarWidthClosed: b = 0
|
|
401
474
|
}) {
|
|
402
|
-
return /* @__PURE__ */
|
|
403
|
-
|
|
475
|
+
return /* @__PURE__ */ c(
|
|
476
|
+
Ft,
|
|
404
477
|
{
|
|
405
478
|
SlideProps: {
|
|
406
479
|
onEntered: () => s == null ? void 0 : s(),
|
|
407
|
-
onExited: () =>
|
|
480
|
+
onExited: () => x == null ? void 0 : x()
|
|
408
481
|
},
|
|
409
482
|
variant: "persistent",
|
|
410
483
|
anchor: t,
|
|
411
484
|
open: n,
|
|
412
|
-
width:
|
|
413
|
-
debugOpacity:
|
|
485
|
+
width: l,
|
|
486
|
+
debugOpacity: u,
|
|
414
487
|
"data-testid": w,
|
|
415
|
-
navBarOpen:
|
|
416
|
-
navBarWidthOpen:
|
|
417
|
-
navBarWidthClosed:
|
|
488
|
+
navBarOpen: g,
|
|
489
|
+
navBarWidthOpen: m,
|
|
490
|
+
navBarWidthClosed: b,
|
|
418
491
|
children: [
|
|
419
|
-
/* @__PURE__ */ o(
|
|
420
|
-
/* @__PURE__ */ o(
|
|
421
|
-
|
|
422
|
-
/* @__PURE__ */ o(
|
|
492
|
+
/* @__PURE__ */ o(zt, v(r({ anchor: t }, d), { children: t === "left" ? /* @__PURE__ */ c(M, { children: [
|
|
493
|
+
/* @__PURE__ */ o(D, { variant: "h6", color: "inherit", component: "div", children: a }),
|
|
494
|
+
p && /* @__PURE__ */ c(W, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
|
|
495
|
+
/* @__PURE__ */ o(He, { "data-testid": "arrowbackicon" }),
|
|
423
496
|
" "
|
|
424
497
|
] })
|
|
425
|
-
] }) : /* @__PURE__ */
|
|
426
|
-
|
|
427
|
-
/* @__PURE__ */ o(
|
|
498
|
+
] }) : /* @__PURE__ */ c(M, { children: [
|
|
499
|
+
p && /* @__PURE__ */ c(W, { onClick: i, size: "large", "aria-label": "Close right side panel", children: [
|
|
500
|
+
/* @__PURE__ */ o(Re, {}),
|
|
428
501
|
" "
|
|
429
502
|
] }),
|
|
430
|
-
/* @__PURE__ */ o(
|
|
503
|
+
/* @__PURE__ */ o(D, { variant: "h6", color: "inherit", component: "div", children: a })
|
|
431
504
|
] }) })),
|
|
432
505
|
e
|
|
433
506
|
]
|
|
434
507
|
}
|
|
435
508
|
);
|
|
436
509
|
}
|
|
437
|
-
const
|
|
510
|
+
const Gt = F("div", {
|
|
438
511
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
439
512
|
name: "PanelAwareMargins"
|
|
440
513
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
@@ -457,231 +530,231 @@ const $t = W("div", {
|
|
|
457
530
|
}),
|
|
458
531
|
marginRight: `${(a = n == null ? void 0 : n.width) != null ? a : 0}px`
|
|
459
532
|
});
|
|
460
|
-
}),
|
|
533
|
+
}), Ut = F(ye, {
|
|
461
534
|
name: "PageContainer"
|
|
462
535
|
})(({ theme: e }) => ({
|
|
463
536
|
// Horizontal padding comes from the Container's gutter
|
|
464
537
|
paddingTop: e.spacing(3),
|
|
465
538
|
paddingBottom: e.spacing(3)
|
|
466
|
-
})),
|
|
539
|
+
})), de = !1, le = !1, Q = {
|
|
467
540
|
titleText: "",
|
|
468
541
|
flavour: "push",
|
|
469
|
-
width:
|
|
542
|
+
width: Ge,
|
|
470
543
|
arrowButtons: "both",
|
|
471
544
|
startOpen: !1,
|
|
472
545
|
open: void 0,
|
|
473
546
|
onChangeOpen: void 0,
|
|
474
|
-
content: /* @__PURE__ */ o(
|
|
547
|
+
content: /* @__PURE__ */ o(M, {}),
|
|
475
548
|
onOpened: void 0,
|
|
476
549
|
onClosed: void 0,
|
|
477
550
|
dataTestId: void 0
|
|
478
551
|
};
|
|
479
|
-
function
|
|
552
|
+
function Vn({
|
|
480
553
|
children: e,
|
|
481
554
|
titleText: t = "",
|
|
482
555
|
leftPanel: n,
|
|
483
556
|
rightPanel: i,
|
|
484
557
|
sidePanelsAreMutuallyExclusive: a = !0,
|
|
485
|
-
debugOpacity:
|
|
486
|
-
pageContainerProps:
|
|
487
|
-
pageContentDataTestId:
|
|
488
|
-
topBarDataTestId:
|
|
558
|
+
debugOpacity: l = !1,
|
|
559
|
+
pageContainerProps: p,
|
|
560
|
+
pageContentDataTestId: u,
|
|
561
|
+
topBarDataTestId: d,
|
|
489
562
|
navBarOpen: s,
|
|
490
|
-
navBarWidthOpen:
|
|
563
|
+
navBarWidthOpen: x,
|
|
491
564
|
navBarWidthClosed: w
|
|
492
565
|
}) {
|
|
493
|
-
const [
|
|
494
|
-
titleText:
|
|
495
|
-
content:
|
|
496
|
-
flavour:
|
|
566
|
+
const [g, m] = B(de), [b, I] = B(le), [Z, z] = B(de), [ee, E] = B(le), P = n !== void 0, k = i !== void 0, {
|
|
567
|
+
titleText: O,
|
|
568
|
+
content: G,
|
|
569
|
+
flavour: U,
|
|
497
570
|
open: _,
|
|
498
|
-
onChangeOpen:
|
|
499
|
-
width:
|
|
500
|
-
arrowButtons:
|
|
501
|
-
startOpen:
|
|
502
|
-
onOpened:
|
|
503
|
-
onClosed:
|
|
504
|
-
dataTestId:
|
|
505
|
-
} = n ? r(r({},
|
|
506
|
-
titleText:
|
|
507
|
-
content:
|
|
508
|
-
flavour:
|
|
571
|
+
onChangeOpen: R,
|
|
572
|
+
width: h,
|
|
573
|
+
arrowButtons: f,
|
|
574
|
+
startOpen: $,
|
|
575
|
+
onOpened: Qe,
|
|
576
|
+
onClosed: je,
|
|
577
|
+
dataTestId: Ye
|
|
578
|
+
} = n ? r(r({}, Q), n) : r({}, Q), {
|
|
579
|
+
titleText: Ke,
|
|
580
|
+
content: Je,
|
|
581
|
+
flavour: he,
|
|
509
582
|
open: te,
|
|
510
|
-
onChangeOpen:
|
|
583
|
+
onChangeOpen: fe,
|
|
511
584
|
width: ne,
|
|
512
|
-
arrowButtons:
|
|
585
|
+
arrowButtons: V,
|
|
513
586
|
startOpen: X,
|
|
514
|
-
onOpened:
|
|
515
|
-
onClosed:
|
|
516
|
-
dataTestId:
|
|
517
|
-
} = i ? r(r({},
|
|
587
|
+
onOpened: Ze,
|
|
588
|
+
onClosed: et,
|
|
589
|
+
dataTestId: tt
|
|
590
|
+
} = i ? r(r({}, Q), i) : r({}, Q);
|
|
518
591
|
K(() => {
|
|
519
|
-
|
|
520
|
-
}, [
|
|
521
|
-
X !==
|
|
592
|
+
$ !== de && (m($), z($));
|
|
593
|
+
}, [$]), K(() => {
|
|
594
|
+
X !== le && (I(X), E(X));
|
|
522
595
|
}, [X]);
|
|
523
|
-
const re = _ === void 0 ?
|
|
524
|
-
_ === void 0 && (
|
|
525
|
-
},
|
|
526
|
-
te === void 0 && (
|
|
596
|
+
const re = _ === void 0 ? g : _, oe = te === void 0 ? b : te, ve = (N) => {
|
|
597
|
+
_ === void 0 && (m(N), a && k && (N ? (I(!1), E(b)) : I(ee))), R && R(N);
|
|
598
|
+
}, xe = (N) => {
|
|
599
|
+
te === void 0 && (I(N), a && P && (N ? (m(!1), z(g)) : m(Z))), fe && fe(N);
|
|
527
600
|
};
|
|
528
|
-
return /* @__PURE__ */
|
|
529
|
-
|
|
530
|
-
|
|
601
|
+
return /* @__PURE__ */ c(T, { children: [
|
|
602
|
+
P && /* @__PURE__ */ o(
|
|
603
|
+
Ne,
|
|
531
604
|
{
|
|
532
|
-
"data-testid":
|
|
605
|
+
"data-testid": Ye,
|
|
533
606
|
anchor: "left",
|
|
534
607
|
open: re,
|
|
535
|
-
onClose: () =>
|
|
536
|
-
width:
|
|
537
|
-
titleText:
|
|
538
|
-
debugOpacity:
|
|
539
|
-
showCloseArrow:
|
|
540
|
-
onOpened:
|
|
541
|
-
onClosed:
|
|
608
|
+
onClose: () => ve(!1),
|
|
609
|
+
width: h,
|
|
610
|
+
titleText: O,
|
|
611
|
+
debugOpacity: l,
|
|
612
|
+
showCloseArrow: f === "both" || f === "close",
|
|
613
|
+
onOpened: Qe,
|
|
614
|
+
onClosed: je,
|
|
542
615
|
navBarOpen: s,
|
|
543
|
-
navBarWidthOpen:
|
|
616
|
+
navBarWidthOpen: x,
|
|
544
617
|
navBarWidthClosed: w,
|
|
545
|
-
children:
|
|
618
|
+
children: G
|
|
546
619
|
}
|
|
547
620
|
),
|
|
548
|
-
|
|
549
|
-
|
|
621
|
+
k && /* @__PURE__ */ o(
|
|
622
|
+
Ne,
|
|
550
623
|
{
|
|
551
|
-
"data-testid":
|
|
624
|
+
"data-testid": tt,
|
|
552
625
|
anchor: "right",
|
|
553
626
|
open: oe,
|
|
554
|
-
onClose: () =>
|
|
627
|
+
onClose: () => xe(!1),
|
|
555
628
|
width: ne,
|
|
556
|
-
titleText:
|
|
557
|
-
debugOpacity:
|
|
558
|
-
showCloseArrow:
|
|
559
|
-
onOpened:
|
|
560
|
-
onClosed:
|
|
629
|
+
titleText: Ke,
|
|
630
|
+
debugOpacity: l,
|
|
631
|
+
showCloseArrow: V === "both" || V === "close",
|
|
632
|
+
onOpened: Ze,
|
|
633
|
+
onClosed: et,
|
|
561
634
|
navBarOpen: s,
|
|
562
|
-
navBarWidthOpen:
|
|
635
|
+
navBarWidthOpen: x,
|
|
563
636
|
navBarWidthClosed: w,
|
|
564
|
-
children:
|
|
637
|
+
children: Je
|
|
565
638
|
}
|
|
566
639
|
),
|
|
567
640
|
/* @__PURE__ */ o(
|
|
568
|
-
|
|
641
|
+
Wt,
|
|
569
642
|
r(r({
|
|
570
643
|
titleText: t,
|
|
571
|
-
"data-testid":
|
|
572
|
-
},
|
|
644
|
+
"data-testid": d
|
|
645
|
+
}, P && U === "push" ? {
|
|
573
646
|
leftPanel: {
|
|
574
647
|
open: re,
|
|
575
|
-
width:
|
|
576
|
-
onOpen: () =>
|
|
577
|
-
showOpenArrow:
|
|
648
|
+
width: h,
|
|
649
|
+
onOpen: () => ve(!0),
|
|
650
|
+
showOpenArrow: f === "both" || f === "open"
|
|
578
651
|
}
|
|
579
|
-
} : {}),
|
|
652
|
+
} : {}), k && he === "push" ? {
|
|
580
653
|
rightPanel: {
|
|
581
654
|
open: oe,
|
|
582
655
|
width: ne,
|
|
583
|
-
onOpen: () =>
|
|
584
|
-
showOpenArrow:
|
|
656
|
+
onOpen: () => xe(!0),
|
|
657
|
+
showOpenArrow: V === "both" || V === "open"
|
|
585
658
|
}
|
|
586
659
|
} : {})
|
|
587
660
|
),
|
|
588
661
|
/* @__PURE__ */ o(
|
|
589
|
-
|
|
590
|
-
|
|
662
|
+
Gt,
|
|
663
|
+
v(r(r({}, U === "push" ? {
|
|
591
664
|
leftPanel: {
|
|
592
665
|
open: re,
|
|
593
|
-
width:
|
|
666
|
+
width: h
|
|
594
667
|
}
|
|
595
|
-
} : {}),
|
|
668
|
+
} : {}), he === "push" ? {
|
|
596
669
|
rightPanel: {
|
|
597
670
|
open: oe,
|
|
598
671
|
width: ne
|
|
599
672
|
}
|
|
600
673
|
} : {}), {
|
|
601
|
-
children: /* @__PURE__ */ o(
|
|
674
|
+
children: /* @__PURE__ */ o(Ut, v(r({ "data-testid": u }, p), { children: e }))
|
|
602
675
|
})
|
|
603
676
|
)
|
|
604
677
|
] });
|
|
605
678
|
}
|
|
606
|
-
const
|
|
679
|
+
const Vt = 64, Xt = 64, qt = 256, Qt = {
|
|
607
680
|
navBarOpen: !0,
|
|
608
681
|
titleText: "",
|
|
609
|
-
navBarWidthOpen:
|
|
610
|
-
navBarWidthClosed:
|
|
611
|
-
topBarHeight:
|
|
682
|
+
navBarWidthOpen: qt,
|
|
683
|
+
navBarWidthClosed: Xt,
|
|
684
|
+
topBarHeight: Vt,
|
|
612
685
|
navBarTop: void 0
|
|
613
686
|
};
|
|
614
|
-
function
|
|
687
|
+
function jt(e, t) {
|
|
615
688
|
switch (t.type) {
|
|
616
689
|
case "toggleNavBarOpen":
|
|
617
|
-
return
|
|
690
|
+
return v(r({}, e), {
|
|
618
691
|
navBarOpen: !e.navBarOpen
|
|
619
692
|
});
|
|
620
693
|
case "setNavBarOpen":
|
|
621
|
-
return
|
|
694
|
+
return v(r({}, e), {
|
|
622
695
|
navBarOpen: t.payload
|
|
623
696
|
});
|
|
624
697
|
case "setTitleText":
|
|
625
|
-
return
|
|
698
|
+
return v(r({}, e), {
|
|
626
699
|
titleText: t.payload
|
|
627
700
|
});
|
|
628
701
|
case "setNavBarWidthOpen":
|
|
629
|
-
return
|
|
702
|
+
return v(r({}, e), {
|
|
630
703
|
navBarWidthOpen: t.payload
|
|
631
704
|
});
|
|
632
705
|
case "setTopBarHeight":
|
|
633
|
-
return
|
|
706
|
+
return v(r({}, e), {
|
|
634
707
|
topBarHeight: t.payload
|
|
635
708
|
});
|
|
636
709
|
case "setNavBarTop":
|
|
637
|
-
return
|
|
710
|
+
return v(r({}, e), {
|
|
638
711
|
navBarTop: t.payload
|
|
639
712
|
});
|
|
640
713
|
default:
|
|
641
714
|
throw new Error("Invalid action.type");
|
|
642
715
|
}
|
|
643
716
|
}
|
|
644
|
-
const
|
|
645
|
-
overrideState: e =
|
|
646
|
-
overrideActions: t =
|
|
717
|
+
const Ue = ce(null), Yt = {}, Kt = {}, Jt = ({
|
|
718
|
+
overrideState: e = Yt,
|
|
719
|
+
overrideActions: t = Kt,
|
|
647
720
|
children: n
|
|
648
721
|
}) => {
|
|
649
722
|
const [
|
|
650
|
-
{ titleText: i, topBarHeight: a, navBarOpen:
|
|
723
|
+
{ titleText: i, topBarHeight: a, navBarOpen: l, navBarWidthOpen: p, navBarWidthClosed: u, navBarTop: d },
|
|
651
724
|
s
|
|
652
|
-
] =
|
|
725
|
+
] = it(jt, Qt), x = at(
|
|
653
726
|
() => ({
|
|
654
727
|
toggleNavBarOpen: () => s({ type: "toggleNavBarOpen" }),
|
|
655
|
-
setNavBarOpen: (
|
|
656
|
-
setNavBarWidthOpen: (
|
|
657
|
-
setNavBarWidthClosed: (
|
|
658
|
-
setTitleText: (
|
|
659
|
-
setTopBarHeight: (
|
|
660
|
-
setNavBarTop: (
|
|
728
|
+
setNavBarOpen: (g) => s({ type: "setNavBarOpen", payload: g }),
|
|
729
|
+
setNavBarWidthOpen: (g) => s({ type: "setNavBarWidthOpen", payload: g }),
|
|
730
|
+
setNavBarWidthClosed: (g) => s({ type: "setNavBarWidthClosed", payload: g }),
|
|
731
|
+
setTitleText: (g) => s({ type: "setTitleText", payload: g }),
|
|
732
|
+
setTopBarHeight: (g) => s({ type: "setTopBarHeight", payload: g }),
|
|
733
|
+
setNavBarTop: (g) => s({ type: "setNavBarTop", payload: g }),
|
|
661
734
|
clearNavBarTop: () => s({ type: "setNavBarTop", payload: void 0 })
|
|
662
735
|
}),
|
|
663
736
|
[]
|
|
664
737
|
), w = r(r(r({
|
|
665
|
-
navBarOpen:
|
|
666
|
-
navBarWidthOpen:
|
|
667
|
-
navBarWidthClosed:
|
|
738
|
+
navBarOpen: l,
|
|
739
|
+
navBarWidthOpen: p,
|
|
740
|
+
navBarWidthClosed: u,
|
|
668
741
|
titleText: i,
|
|
669
742
|
topBarHeight: a,
|
|
670
|
-
navBarTop:
|
|
671
|
-
},
|
|
672
|
-
return /* @__PURE__ */ o(
|
|
673
|
-
},
|
|
674
|
-
const e =
|
|
743
|
+
navBarTop: d
|
|
744
|
+
}, x), e), t);
|
|
745
|
+
return /* @__PURE__ */ o(Ue.Provider, { value: w, children: n });
|
|
746
|
+
}, Ve = () => {
|
|
747
|
+
const e = pe(Ue);
|
|
675
748
|
if (e === null)
|
|
676
749
|
throw new J("Error: Tried to call useAppLayout() outside of a <AppLayoutProvider>");
|
|
677
750
|
return e;
|
|
678
|
-
},
|
|
679
|
-
titleText: `${
|
|
751
|
+
}, Zt = "TopBar", en = {
|
|
752
|
+
titleText: `${Zt}-titleText`
|
|
680
753
|
};
|
|
681
|
-
function
|
|
682
|
-
const { toggleNavBarOpen: i } =
|
|
683
|
-
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */
|
|
684
|
-
|
|
754
|
+
function tn({ titleText: e = "", height: t, "data-testid": n }) {
|
|
755
|
+
const { toggleNavBarOpen: i } = Ve();
|
|
756
|
+
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ c(
|
|
757
|
+
ue,
|
|
685
758
|
{
|
|
686
759
|
square: !0,
|
|
687
760
|
elevation: 0,
|
|
@@ -697,13 +770,13 @@ function Wt({ titleText: e = "", height: t, "data-testid": n }) {
|
|
|
697
770
|
height: t
|
|
698
771
|
},
|
|
699
772
|
children: [
|
|
700
|
-
/* @__PURE__ */ o(
|
|
701
|
-
/* @__PURE__ */ o(
|
|
773
|
+
/* @__PURE__ */ o(W, { size: "medium", color: "inherit", sx: { padding: 1.5 }, onClick: i, children: /* @__PURE__ */ o(Tt, { fontSize: "medium" }) }),
|
|
774
|
+
/* @__PURE__ */ o(D, { className: en.titleText, variant: "h6", children: e })
|
|
702
775
|
]
|
|
703
776
|
}
|
|
704
777
|
) });
|
|
705
778
|
}
|
|
706
|
-
const j = "Navbar",
|
|
779
|
+
const j = "Navbar", H = {
|
|
707
780
|
root: `${j}-root`,
|
|
708
781
|
menuButton: `${j}-menuButton`,
|
|
709
782
|
hide: `${j}-hide`,
|
|
@@ -711,17 +784,17 @@ const j = "Navbar", R = {
|
|
|
711
784
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
712
785
|
// settings: `${PREFIX}-settings`,
|
|
713
786
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
714
|
-
},
|
|
715
|
-
[`&.${
|
|
787
|
+
}, nn = y("div", { name: "NavBar" })(({ theme: e }) => ({
|
|
788
|
+
[`&.${H.root}`]: {
|
|
716
789
|
display: "flex"
|
|
717
790
|
},
|
|
718
|
-
[`& .${
|
|
791
|
+
[`& .${H.menuButton}`]: {
|
|
719
792
|
marginRight: 36
|
|
720
793
|
},
|
|
721
|
-
[`& .${
|
|
794
|
+
[`& .${H.hide}`]: {
|
|
722
795
|
display: "none"
|
|
723
796
|
},
|
|
724
|
-
[`& .${
|
|
797
|
+
[`& .${H.content}`]: {
|
|
725
798
|
flexGrow: 1,
|
|
726
799
|
padding: e.spacing(3)
|
|
727
800
|
}
|
|
@@ -730,7 +803,7 @@ const j = "Navbar", R = {
|
|
|
730
803
|
// marginTop: '64px',
|
|
731
804
|
// marginBottom: '16px',
|
|
732
805
|
// },
|
|
733
|
-
})),
|
|
806
|
+
})), Xe = (e, t) => {
|
|
734
807
|
var n, i;
|
|
735
808
|
return {
|
|
736
809
|
height: `calc(100vh - ${t})`,
|
|
@@ -741,45 +814,45 @@ const j = "Navbar", R = {
|
|
|
741
814
|
backgroundColor: (i = (n = e == null ? void 0 : e.navBar) == null ? void 0 : n.backgroundColor) != null ? i : "white"
|
|
742
815
|
// Provide default so tests don't need to wrap theme provider
|
|
743
816
|
};
|
|
744
|
-
},
|
|
817
|
+
}, Se = (e, t, n) => r({
|
|
745
818
|
width: t,
|
|
746
819
|
transition: e.transitions.create("width", {
|
|
747
820
|
easing: e.transitions.easing.sharp,
|
|
748
821
|
duration: e.transitions.duration.enteringScreen
|
|
749
822
|
})
|
|
750
|
-
},
|
|
823
|
+
}, Xe(e, n)), Ae = (e, t, n) => r({
|
|
751
824
|
width: t,
|
|
752
825
|
transition: e.transitions.create("width", {
|
|
753
826
|
easing: e.transitions.easing.sharp,
|
|
754
827
|
duration: e.transitions.duration.leavingScreen
|
|
755
828
|
}),
|
|
756
829
|
overflowX: "hidden"
|
|
757
|
-
},
|
|
830
|
+
}, Xe(e, n)), rn = y(Pe, {
|
|
758
831
|
shouldForwardProp: (e) => !["open", "widthOpen", "widthClosed", "offsetTop"].includes(e)
|
|
759
832
|
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, offsetTop: a }) => r(r({
|
|
760
833
|
flexShrink: 0,
|
|
761
834
|
whiteSpace: "nowrap",
|
|
762
835
|
boxSizing: "border-box"
|
|
763
|
-
}, t &&
|
|
764
|
-
"& .MuiDrawer-paper":
|
|
765
|
-
})), !t &&
|
|
766
|
-
"& .MuiDrawer-paper":
|
|
836
|
+
}, t && v(r({}, Se(e, n, a)), {
|
|
837
|
+
"& .MuiDrawer-paper": Se(e, n, a)
|
|
838
|
+
})), !t && v(r({}, Ae(e, i, a)), {
|
|
839
|
+
"& .MuiDrawer-paper": Ae(e, i, a)
|
|
767
840
|
})));
|
|
768
|
-
function
|
|
841
|
+
function on({ links: e }) {
|
|
769
842
|
return /* @__PURE__ */ o("div", { children: "LinksMenu not implemented yet" });
|
|
770
843
|
}
|
|
771
|
-
function
|
|
844
|
+
function an({
|
|
772
845
|
open: e,
|
|
773
846
|
offsetTop: t = 0,
|
|
774
847
|
widthOpen: n,
|
|
775
848
|
widthClosed: i,
|
|
776
849
|
"data-testid": a,
|
|
777
|
-
top:
|
|
778
|
-
middle:
|
|
779
|
-
bottom:
|
|
850
|
+
top: l,
|
|
851
|
+
middle: p,
|
|
852
|
+
bottom: u
|
|
780
853
|
}) {
|
|
781
|
-
return /* @__PURE__ */ o(
|
|
782
|
-
|
|
854
|
+
return /* @__PURE__ */ o(nn, { className: H.root, "data-testid": a, children: /* @__PURE__ */ o(
|
|
855
|
+
rn,
|
|
783
856
|
{
|
|
784
857
|
variant: "permanent",
|
|
785
858
|
anchor: "left",
|
|
@@ -787,23 +860,23 @@ function Ut({
|
|
|
787
860
|
widthOpen: n,
|
|
788
861
|
widthClosed: i,
|
|
789
862
|
offsetTop: t,
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
/* @__PURE__ */ o(
|
|
863
|
+
children: /* @__PURE__ */ c(T, { component: "nav", sx: {}, children: [
|
|
864
|
+
l && /* @__PURE__ */ c(T, { sx: { flexGrow: 1 }, children: [
|
|
865
|
+
l,
|
|
866
|
+
/* @__PURE__ */ o(Oe, { variant: "middle" })
|
|
794
867
|
] }),
|
|
795
|
-
Array.isArray(
|
|
796
|
-
|
|
797
|
-
/* @__PURE__ */ o(
|
|
798
|
-
|
|
868
|
+
Array.isArray(p) ? /* @__PURE__ */ o(on, { links: p }) : p,
|
|
869
|
+
u && /* @__PURE__ */ c(T, { sx: {}, children: [
|
|
870
|
+
/* @__PURE__ */ o(Oe, { variant: "middle" }),
|
|
871
|
+
u
|
|
799
872
|
] })
|
|
800
873
|
] })
|
|
801
874
|
}
|
|
802
875
|
) });
|
|
803
876
|
}
|
|
804
|
-
function
|
|
877
|
+
function sn({ children: e, topBarHeight: t }) {
|
|
805
878
|
return /* @__PURE__ */ o(
|
|
806
|
-
|
|
879
|
+
T,
|
|
807
880
|
{
|
|
808
881
|
sx: {
|
|
809
882
|
overflow: "auto",
|
|
@@ -813,7 +886,7 @@ function Xt({ children: e, topBarHeight: t }) {
|
|
|
813
886
|
flexGrow: 1
|
|
814
887
|
},
|
|
815
888
|
children: /* @__PURE__ */ o(
|
|
816
|
-
|
|
889
|
+
ye,
|
|
817
890
|
{
|
|
818
891
|
component: "main",
|
|
819
892
|
id: "main-content",
|
|
@@ -824,52 +897,52 @@ function Xt({ children: e, topBarHeight: t }) {
|
|
|
824
897
|
}
|
|
825
898
|
);
|
|
826
899
|
}
|
|
827
|
-
function
|
|
900
|
+
function dn({
|
|
828
901
|
children: e,
|
|
829
902
|
initialTitleText: t,
|
|
830
903
|
initialNavBarOpen: n,
|
|
831
904
|
pageContainerProps: i,
|
|
832
905
|
pageContentDataTestId: a,
|
|
833
|
-
topBarDataTestId:
|
|
834
|
-
navBarDataTestId:
|
|
835
|
-
navBarMiddle:
|
|
906
|
+
topBarDataTestId: l,
|
|
907
|
+
navBarDataTestId: p,
|
|
908
|
+
navBarMiddle: u
|
|
836
909
|
}) {
|
|
837
910
|
const {
|
|
838
|
-
navBarOpen:
|
|
911
|
+
navBarOpen: d,
|
|
839
912
|
setNavBarOpen: s,
|
|
840
|
-
titleText:
|
|
913
|
+
titleText: x,
|
|
841
914
|
setTitleText: w,
|
|
842
|
-
topBarHeight:
|
|
843
|
-
navBarWidthOpen:
|
|
844
|
-
navBarWidthClosed:
|
|
845
|
-
navBarTop:
|
|
846
|
-
} =
|
|
915
|
+
topBarHeight: g,
|
|
916
|
+
navBarWidthOpen: m,
|
|
917
|
+
navBarWidthClosed: b,
|
|
918
|
+
navBarTop: I
|
|
919
|
+
} = Ve();
|
|
847
920
|
return K(() => {
|
|
848
921
|
t !== void 0 && w(t);
|
|
849
922
|
}, [t, w]), K(() => {
|
|
850
923
|
console.log(n), n !== void 0 && s(n);
|
|
851
|
-
}, [n, s]), /* @__PURE__ */
|
|
852
|
-
/* @__PURE__ */ o(
|
|
853
|
-
/* @__PURE__ */ o(
|
|
854
|
-
/* @__PURE__ */
|
|
924
|
+
}, [n, s]), /* @__PURE__ */ c(T, { children: [
|
|
925
|
+
/* @__PURE__ */ o(lt, {}),
|
|
926
|
+
/* @__PURE__ */ o(tn, { titleText: x, "data-testid": l, height: g }),
|
|
927
|
+
/* @__PURE__ */ c(T, { sx: { display: "flex" }, children: [
|
|
855
928
|
/* @__PURE__ */ o(
|
|
856
|
-
|
|
929
|
+
an,
|
|
857
930
|
{
|
|
858
|
-
open:
|
|
859
|
-
top:
|
|
860
|
-
middle:
|
|
861
|
-
bottom: /* @__PURE__ */ o(
|
|
862
|
-
widthOpen:
|
|
863
|
-
widthClosed:
|
|
864
|
-
offsetTop:
|
|
865
|
-
"data-testid":
|
|
931
|
+
open: d,
|
|
932
|
+
top: I,
|
|
933
|
+
middle: u,
|
|
934
|
+
bottom: /* @__PURE__ */ o(T, { sx: { padding: 2 }, children: /* @__PURE__ */ o(ue, { sx: { padding: 2, textWrap: "initial" }, variant: "outlined", children: "Placeholder for standard user settings, domain selector etc. It should be at the very bottom, but WIP" }) }),
|
|
935
|
+
widthOpen: m,
|
|
936
|
+
widthClosed: b,
|
|
937
|
+
offsetTop: g,
|
|
938
|
+
"data-testid": p
|
|
866
939
|
}
|
|
867
940
|
),
|
|
868
941
|
/* @__PURE__ */ o(
|
|
869
|
-
|
|
870
|
-
|
|
942
|
+
sn,
|
|
943
|
+
v(r({
|
|
871
944
|
"data-testid": a,
|
|
872
|
-
topBarHeight:
|
|
945
|
+
topBarHeight: g
|
|
873
946
|
}, i), {
|
|
874
947
|
children: e
|
|
875
948
|
})
|
|
@@ -877,133 +950,205 @@ function Vt({
|
|
|
877
950
|
] })
|
|
878
951
|
] });
|
|
879
952
|
}
|
|
880
|
-
function
|
|
881
|
-
return /* @__PURE__ */ o(
|
|
953
|
+
function Xn(e) {
|
|
954
|
+
return /* @__PURE__ */ o(Jt, { children: /* @__PURE__ */ o(dn, r({}, e)) });
|
|
882
955
|
}
|
|
883
|
-
const
|
|
956
|
+
const ln = {
|
|
884
957
|
autoHideDuration: 6e3,
|
|
885
958
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
886
959
|
// The default is false. If we prefer timer to continue when window loses
|
|
887
960
|
// focus, change to true
|
|
888
961
|
disableWindowBlurListener: !1
|
|
889
|
-
},
|
|
962
|
+
}, cn = {
|
|
890
963
|
shouldClose: (e, t) => t !== "clickaway"
|
|
891
|
-
},
|
|
964
|
+
}, $e = {
|
|
892
965
|
message: "",
|
|
893
966
|
severity: "info",
|
|
894
967
|
variant: "standard",
|
|
895
968
|
progressIndicator: void 0
|
|
896
969
|
// Can use 'circular' or 'linear'
|
|
897
|
-
},
|
|
970
|
+
}, Le = 100, De = 2e3, pn = 2e3, un = (() => {
|
|
898
971
|
let e = 0;
|
|
899
972
|
return () => (e += 1, e);
|
|
900
|
-
})(),
|
|
973
|
+
})(), gn = {
|
|
901
974
|
borderBottomLeftRadius: "0px",
|
|
902
975
|
borderBottomRightRadius: "0px"
|
|
903
|
-
},
|
|
904
|
-
function
|
|
905
|
-
var
|
|
906
|
-
overrideState: e =
|
|
907
|
-
overrideActions: t =
|
|
908
|
-
shouldClose: n =
|
|
976
|
+
}, hn = {}, fn = {}, qe = ce(null);
|
|
977
|
+
function vn(l) {
|
|
978
|
+
var p = l, {
|
|
979
|
+
overrideState: e = hn,
|
|
980
|
+
overrideActions: t = fn,
|
|
981
|
+
shouldClose: n = cn.shouldClose,
|
|
909
982
|
children: i
|
|
910
|
-
} =
|
|
983
|
+
} = p, a = Ce(p, [
|
|
911
984
|
"overrideState",
|
|
912
985
|
"overrideActions",
|
|
913
986
|
"shouldClose",
|
|
914
987
|
"children"
|
|
915
988
|
]);
|
|
916
|
-
var
|
|
917
|
-
const [{ open:
|
|
918
|
-
|
|
919
|
-
}, []),
|
|
920
|
-
w.current += 1, s.current.length >=
|
|
921
|
-
`SaladBarProvider: MAX_QUEUE_LENGTH (${
|
|
989
|
+
var R;
|
|
990
|
+
const [{ open: u }, d] = B({ open: !1 }), s = se([]), x = se(Date.now()), w = se(0), g = Y((h) => {
|
|
991
|
+
d({ open: h });
|
|
992
|
+
}, []), m = Y((h = {}) => {
|
|
993
|
+
w.current += 1, s.current.length >= Le && Date.now() - x.current >= De && (x.current = Date.now(), console.error(
|
|
994
|
+
`SaladBarProvider: MAX_QUEUE_LENGTH (${Le}) hit ${w.current} times in last ${De}ms)`
|
|
922
995
|
), w.current = 0);
|
|
923
|
-
const
|
|
924
|
-
key:
|
|
925
|
-
}),
|
|
926
|
-
return s.current.push(
|
|
927
|
-
}, []),
|
|
928
|
-
const
|
|
929
|
-
if (
|
|
930
|
-
return
|
|
931
|
-
},
|
|
932
|
-
n(
|
|
996
|
+
const f = r(v(r({}, $e), {
|
|
997
|
+
key: un()
|
|
998
|
+
}), h);
|
|
999
|
+
return s.current.push(f), s.current.length === 1 && d({ open: !0 }), f.key;
|
|
1000
|
+
}, []), b = (h = "", f = {}) => m(r({ message: h, severity: "success" }, f)), I = (h = "", f = {}) => m(r({ message: h, severity: "info" }, f)), Z = (h = "", f = {}) => m(r({ message: h, severity: "warning" }, f)), z = (h = "", f = {}) => m(r({ message: h, severity: "error" }, f)), ee = (h) => {
|
|
1001
|
+
const f = s.current.findIndex(($) => $.key === h);
|
|
1002
|
+
if (f !== -1)
|
|
1003
|
+
return f === 0 ? (d({ open: !1 }), s.current[0]) : s.current.splice(f, 1);
|
|
1004
|
+
}, E = (h, f) => {
|
|
1005
|
+
n(h, f) && d({ open: !1 });
|
|
1006
|
+
}, P = () => {
|
|
933
1007
|
}, k = () => {
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
enqueueInfoNotification: m,
|
|
1008
|
+
s.current.shift(), s.current.length > 0 && d({ open: !0 });
|
|
1009
|
+
}, O = (R = s.current[0]) != null ? R : r({}, $e), G = {};
|
|
1010
|
+
"autoHideDuration" in O && (G.autoHideDuration = O.autoHideDuration);
|
|
1011
|
+
const U = r(r({}, ln), a), _ = r(r({
|
|
1012
|
+
open: u,
|
|
1013
|
+
setOpen: g,
|
|
1014
|
+
enqueueNotification: m,
|
|
1015
|
+
enqueueSuccessNotification: b,
|
|
1016
|
+
enqueueInfoNotification: I,
|
|
944
1017
|
enqueueWarningNotification: Z,
|
|
945
|
-
enqueueErrorNotification:
|
|
1018
|
+
enqueueErrorNotification: z,
|
|
946
1019
|
removeNotification: ee
|
|
947
1020
|
}, e), t);
|
|
948
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ c(qe.Provider, { value: _, children: [
|
|
949
1022
|
i,
|
|
950
1023
|
/* @__PURE__ */ o(
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
open:
|
|
954
|
-
onClose:
|
|
1024
|
+
ct,
|
|
1025
|
+
v(r(r({}, U), G), {
|
|
1026
|
+
open: u,
|
|
1027
|
+
onClose: E,
|
|
955
1028
|
TransitionProps: {
|
|
956
|
-
onExited:
|
|
957
|
-
onExit:
|
|
1029
|
+
onExited: k,
|
|
1030
|
+
onExit: P
|
|
958
1031
|
},
|
|
959
|
-
sx: { zIndex:
|
|
960
|
-
children: /* @__PURE__ */
|
|
1032
|
+
sx: { zIndex: pn },
|
|
1033
|
+
children: /* @__PURE__ */ c("div", { children: [
|
|
961
1034
|
/* @__PURE__ */ o(
|
|
962
|
-
|
|
1035
|
+
pt,
|
|
963
1036
|
{
|
|
964
|
-
onClose: (
|
|
965
|
-
severity:
|
|
1037
|
+
onClose: (h) => E(h, "closeAlert"),
|
|
1038
|
+
severity: O.severity,
|
|
966
1039
|
variant: "filled",
|
|
967
|
-
icon:
|
|
968
|
-
style:
|
|
969
|
-
children:
|
|
1040
|
+
icon: O.progressIndicator === "circular" ? /* @__PURE__ */ o(Ee, { size: "1em" }) : void 0,
|
|
1041
|
+
style: O.progressIndicator === "linear" ? gn : void 0,
|
|
1042
|
+
children: O.message
|
|
970
1043
|
}
|
|
971
1044
|
),
|
|
972
|
-
|
|
1045
|
+
O.progressIndicator === "linear" && /* @__PURE__ */ o(ut, { color: "primary" })
|
|
973
1046
|
] })
|
|
974
1047
|
})
|
|
975
1048
|
)
|
|
976
1049
|
] });
|
|
977
1050
|
}
|
|
978
|
-
function
|
|
979
|
-
const e =
|
|
1051
|
+
function qn() {
|
|
1052
|
+
const e = pe(qe);
|
|
980
1053
|
if (e === null)
|
|
981
1054
|
throw new J("Error: Tried to useSaladBar outside of a <SaladBarProvider>");
|
|
982
1055
|
return e;
|
|
983
1056
|
}
|
|
984
|
-
const
|
|
985
|
-
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(
|
|
986
|
-
)
|
|
1057
|
+
const Qn = ke(
|
|
1058
|
+
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(vn, v(r({}, e), { overrideState: t, overrideActions: n, children: i }))
|
|
1059
|
+
), ge = Nt("domainCode", "ag"), xn = () => {
|
|
1060
|
+
const [e, t] = Bt(ge);
|
|
1061
|
+
return [e, t, () => t(St)];
|
|
1062
|
+
}, jn = () => bt(ge), Yn = () => It(ge), wn = {
|
|
1063
|
+
act: "ACT",
|
|
1064
|
+
nsw: "NSW",
|
|
1065
|
+
nt: "NT",
|
|
1066
|
+
qld: "QLD",
|
|
1067
|
+
sa: "SA",
|
|
1068
|
+
tas: "TAS",
|
|
1069
|
+
vic: "VIC",
|
|
1070
|
+
wa: "WA",
|
|
1071
|
+
ag: "AG",
|
|
1072
|
+
fedmps: "Fedmps",
|
|
1073
|
+
"": ""
|
|
1074
|
+
}, mn = (e) => {
|
|
1075
|
+
var t;
|
|
1076
|
+
return e === null ? "N/A" : (t = wn[e]) != null ? t : "";
|
|
1077
|
+
}, Kn = ({
|
|
1078
|
+
isLoading: e,
|
|
1079
|
+
isOpen: t,
|
|
1080
|
+
onClose: n,
|
|
1081
|
+
domainOptions: i
|
|
1082
|
+
}) => {
|
|
1083
|
+
const [a, l] = xn(), [p, u] = B(a);
|
|
1084
|
+
return /* @__PURE__ */ c(
|
|
1085
|
+
Ot,
|
|
1086
|
+
{
|
|
1087
|
+
isOpen: t,
|
|
1088
|
+
dialogTitle: "Select an organisation",
|
|
1089
|
+
primaryButton: {
|
|
1090
|
+
text: "Confirm",
|
|
1091
|
+
onClick: () => ae(void 0, null, function* () {
|
|
1092
|
+
l(p), n();
|
|
1093
|
+
})
|
|
1094
|
+
},
|
|
1095
|
+
onClose: n,
|
|
1096
|
+
children: [
|
|
1097
|
+
/* @__PURE__ */ o("p", { children: "Select the default organisation that you want to use with the List Manager." }),
|
|
1098
|
+
/* @__PURE__ */ o(
|
|
1099
|
+
gt,
|
|
1100
|
+
{
|
|
1101
|
+
loading: e,
|
|
1102
|
+
multiple: !1,
|
|
1103
|
+
disableClearable: !1,
|
|
1104
|
+
value: p,
|
|
1105
|
+
onChange: (d, s) => u(s != null ? s : ""),
|
|
1106
|
+
getOptionLabel: mn,
|
|
1107
|
+
options: i,
|
|
1108
|
+
renderInput: (d) => /* @__PURE__ */ o(
|
|
1109
|
+
ht,
|
|
1110
|
+
v(r({}, d), {
|
|
1111
|
+
variant: "filled",
|
|
1112
|
+
label: "Select organisation",
|
|
1113
|
+
InputProps: v(r({}, d.InputProps), {
|
|
1114
|
+
endAdornment: /* @__PURE__ */ c(M, { children: [
|
|
1115
|
+
e ? /* @__PURE__ */ o(Ee, { color: "inherit", size: 20 }) : null,
|
|
1116
|
+
d.InputProps.endAdornment
|
|
1117
|
+
] })
|
|
1118
|
+
})
|
|
1119
|
+
})
|
|
1120
|
+
)
|
|
1121
|
+
}
|
|
1122
|
+
)
|
|
1123
|
+
]
|
|
1124
|
+
}
|
|
1125
|
+
);
|
|
1126
|
+
};
|
|
987
1127
|
export {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
1128
|
+
Un as AgDialog,
|
|
1129
|
+
Xn as AppLayout,
|
|
1130
|
+
Jt as AppLayoutProvider,
|
|
1131
|
+
qe as Context,
|
|
991
1132
|
J as ContextError,
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1133
|
+
Kn as DomainCodeDialog,
|
|
1134
|
+
Mn as ExampleComponent,
|
|
1135
|
+
We as NAVBAR_WIDTH_CLOSED,
|
|
1136
|
+
Me as NAVBAR_WIDTH_OPENED,
|
|
1137
|
+
Gn as NavBar,
|
|
1138
|
+
Fn as NavBarDarkStyledList,
|
|
1139
|
+
zn as NavBarLightStyledList,
|
|
1140
|
+
Pt as NavBarProvider,
|
|
1141
|
+
Vn as PageLayout,
|
|
1142
|
+
vn as SaladBarProvider,
|
|
1143
|
+
_t as buildNavBarState,
|
|
1002
1144
|
L as navBarClasses,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1145
|
+
Ve as useAppLayout,
|
|
1146
|
+
xn as useDomainCode,
|
|
1147
|
+
jn as useDomainCodeValue,
|
|
1148
|
+
kt as useNavBar,
|
|
1149
|
+
qn as useSaladBar,
|
|
1150
|
+
Yn as useSetDomainCode,
|
|
1151
|
+
Wn as withNavBarProvider,
|
|
1152
|
+
Qn as withSaladBarProvider
|
|
1008
1153
|
};
|
|
1009
1154
|
//# sourceMappingURL=index.js.map
|