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