@australiangreens/ag-internal-components 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/components/FetchAutocomplete/FetchAutocomplete.d.ts.map +1 -1
- package/dist/components/SingleAutocomplete/index.d.ts.map +1 -1
- package/dist/esm/index.js +112 -106
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchAutocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/FetchAutocomplete/FetchAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,OAAO,EAEP,KAAK,EAEL,YAAY,EAEb,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,SAAS,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAG5D,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,sBAAsB,GAAI,UAAU,SAAS,yBAAyB,EAAE,6DAMlF;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAC3C,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,EAAE,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,kGAYA,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,yBAAyB,IAAI;IACjF;;;;OAIG;IACH,QAAQ,EAAE,CACR,QAAQ,EAAE,UAAU,EAAE,EACtB,MAAM,EAAE,6BAA6B,EACrC,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAClC,OAAO,CAAC;IAEb,6CAA6C;IA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ACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,UAAU,SAAS,yBAAyB,EAAE,EACtF,MAAuB,EACvB,kBAAyB,EACzB,QAAQ,EACR,SAAa,EACb,KAAK,EACL,KAAK,EACL,aAAa,EAAE,UAAU,EACzB,EAAE,EACF,KAAK,EACL,cAAc,EACd,gBAA2B,EAC3B,WAA0B,EAC1B,aAA4B,EAC5B,SAAgC,EAChC,KAAa,EACb,UAAe,EACf,gBAA4B,EAC5B,aAAqB,EACrB,eAAuB,EACvB,oBAAuD,EACvD,aAAqB,EACrB,eAA2B,EAC3B,YAAuB,EACvB,iCAAyC,GAC1C,EAAE,sBAAsB,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"FetchAutocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/FetchAutocomplete/FetchAutocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,OAAO,EAEP,KAAK,EAEL,YAAY,EAEb,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,SAAS,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAG5D,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,sBAAsB,GAAI,UAAU,SAAS,yBAAyB,EAAE,6DAMlF;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IAC3C,MAAM,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,EAAE,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,kGAYA,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,UAAU,SAAS,yBAAyB,IAAI;IACjF;;;;OAIG;IACH,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O,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAEjD;;;;;;;;;OASG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,UAAU,SAAS,yBAAyB,EAAE,EACtF,MAAuB,EACvB,kBAAyB,EACzB,QAAQ,EACR,SAAa,EACb,KAAK,EACL,KAAK,EACL,aAAa,EAAE,UAAU,EACzB,EAAE,EACF,KAAK,EACL,cAAc,EACd,gBAA2B,EAC3B,WAA0B,EAC1B,aAA4B,EAC5B,SAAgC,EAChC,KAAa,EACb,UAAe,EACf,gBAA4B,EAC5B,aAAqB,EACrB,eAAuB,EACvB,oBAAuD,EACvD,aAAqB,EACrB,eAA2B,EAC3B,YAAuB,EACvB,iCAAyC,GAC1C,EAAE,sBAAsB,CAAC,UAAU,CAAC,2CAsMpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SingleAutocomplete/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAExB,OAAO,EAEP,KAAK,EACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,QAA4C,CAAC;AAE9F,KAAK,KAAK,CAAC,UAAU,SAAS,yBAAyB,IAAI;IACzD;;;;;OAKG;IACH,QAAQ,EAAE,CACR,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EACrC,QAAQ,EAAE,UAAU,GAAG,IAAI,EAC3B,MAAM,EAAE,wBAAwB,KAC7B,O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AAC,EAAE,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;IACtD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACjD,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,kBAAkB,GAAI,UAAU,SAAS,yBAAyB,EAAE,2SAsBvE,KAAK,CAAC,UAAU,CAAC,4CAsGnB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var de = (e, t) => {
|
|
|
20
20
|
return o;
|
|
21
21
|
};
|
|
22
22
|
var ue = (e, t, o) => j(e, typeof t != "symbol" ? t + "" : t, o);
|
|
23
|
-
var
|
|
23
|
+
var M = (e, t, o) => new Promise((i, r) => {
|
|
24
24
|
var s = (l) => {
|
|
25
25
|
try {
|
|
26
26
|
a(o.next(l));
|
|
@@ -38,22 +38,22 @@ var T = (e, t, o) => new Promise((i, r) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { jsxs as x, Fragment as N, jsx as n } from "react/jsx-runtime";
|
|
40
40
|
import { useState as V, createElement as oe, useEffect as pe, useMemo as ot, createContext as nt, useRef as ee, useCallback as he, useContext as it } from "react";
|
|
41
|
-
import { Typography as E, Button as z, Paper as
|
|
41
|
+
import { Typography as E, Button as z, Paper as _e, Dialog as Me, LinearProgress as Te, DialogTitle as Pe, DialogContent as Ne, DialogActions as $e, Autocomplete as ne, TextField as ie, CircularProgress as re, Box as I, Chip as rt, Tooltip as at, Stack as st, Snackbar as lt, Alert as ct, FormHelperText as dt, useTheme as J, useMediaQuery as ut, Drawer as pt, Collapse as ht, Avatar as fe, Fade as ft, Skeleton as me, Toolbar as mt, Divider as ge, Container as gt, IconButton as xt } from "@mui/material";
|
|
42
42
|
import { Cancel as At, ArrowDropDown as Ct, ViewHeadline as St } from "@mui/icons-material";
|
|
43
43
|
import vt from "autosuggest-highlight/match";
|
|
44
44
|
import wt from "autosuggest-highlight/parse";
|
|
45
45
|
import { useQuery as Le } from "@tanstack/react-query";
|
|
46
46
|
import { useAuth0 as ae } from "@auth0/auth0-react";
|
|
47
|
-
import { Buffer as
|
|
48
|
-
import
|
|
49
|
-
import { atom as
|
|
47
|
+
import { Buffer as kt } from "buffer";
|
|
48
|
+
import Dt from "@mui/material/Skeleton";
|
|
49
|
+
import { atom as P, useAtom as W, useSetAtom as Oe, useAtomValue as xe } from "jotai";
|
|
50
50
|
import { createHelper as yt } from "souvlaki";
|
|
51
51
|
import bt from "@mui/material/CssBaseline";
|
|
52
52
|
import Ae from "@mui/material/Box";
|
|
53
53
|
import { useHydrateAtoms as Ft } from "jotai/utils";
|
|
54
54
|
import { styled as Re, createTheme as Ue, alpha as te } from "@mui/material/styles";
|
|
55
55
|
import Ce from "react-avatar";
|
|
56
|
-
function
|
|
56
|
+
function Io({ text: e }) {
|
|
57
57
|
const [t, o] = V(0);
|
|
58
58
|
return /* @__PURE__ */ x(N, { children: [
|
|
59
59
|
/* @__PURE__ */ n(E, { variant: "h6", color: "inherit", component: "div", sx: { fontSize: "22px" }, children: "Hello world" }),
|
|
@@ -71,7 +71,7 @@ function _o({ text: e }) {
|
|
|
71
71
|
"This is some text: ",
|
|
72
72
|
/* @__PURE__ */ n("span", { children: e })
|
|
73
73
|
] }),
|
|
74
|
-
/* @__PURE__ */ x(
|
|
74
|
+
/* @__PURE__ */ x(_e, { children: [
|
|
75
75
|
"This number will incremember when button pressed: ",
|
|
76
76
|
t
|
|
77
77
|
] })
|
|
@@ -91,22 +91,22 @@ const Be = ({
|
|
|
91
91
|
disableCloseOnBackdropOrEscape: g = !1,
|
|
92
92
|
isLoading: w = !1
|
|
93
93
|
}) => {
|
|
94
|
-
var v,
|
|
94
|
+
var v, D;
|
|
95
95
|
const [S, A] = V(!1);
|
|
96
96
|
return /* @__PURE__ */ x(
|
|
97
|
-
|
|
97
|
+
Me,
|
|
98
98
|
{
|
|
99
99
|
open: e,
|
|
100
|
-
onClose: (f,
|
|
101
|
-
g && (
|
|
100
|
+
onClose: (f, k) => M(null, null, function* () {
|
|
101
|
+
g && (k === "backdropClick" || k === "escapeKeyDown") || S || (s != null && s.onClick ? yield s.onClick() : a());
|
|
102
102
|
}),
|
|
103
103
|
fullWidth: !0,
|
|
104
104
|
maxWidth: i != null ? i : "xs",
|
|
105
105
|
"data-testid": u,
|
|
106
106
|
sx: l,
|
|
107
107
|
children: [
|
|
108
|
-
w && /* @__PURE__ */ n(
|
|
109
|
-
/* @__PURE__ */ n(
|
|
108
|
+
w && /* @__PURE__ */ n(Te, { sx: { height: "4px", marginBottom: "-4px" } }),
|
|
109
|
+
/* @__PURE__ */ n(Pe, { children: t }),
|
|
110
110
|
/* @__PURE__ */ n(Ne, { sx: { "& > :last-child": { marginBottom: 0 } }, children: o }),
|
|
111
111
|
/* @__PURE__ */ x($e, { children: [
|
|
112
112
|
/* @__PURE__ */ n(
|
|
@@ -116,10 +116,10 @@ const Be = ({
|
|
|
116
116
|
"data-testid": s == null ? void 0 : s.testId,
|
|
117
117
|
disabled: (s == null ? void 0 : s.disabled) || S,
|
|
118
118
|
color: s == null ? void 0 : s.buttonColor,
|
|
119
|
-
children: (
|
|
119
|
+
children: (D = s == null ? void 0 : s.text) != null ? D : "Cancel"
|
|
120
120
|
}
|
|
121
121
|
),
|
|
122
|
-
c && c.map((f,
|
|
122
|
+
c && c.map((f, k) => {
|
|
123
123
|
var y;
|
|
124
124
|
return /* @__PURE__ */ n(
|
|
125
125
|
z,
|
|
@@ -128,15 +128,15 @@ const Be = ({
|
|
|
128
128
|
"data-testid": f == null ? void 0 : f.testId,
|
|
129
129
|
disabled: (f == null ? void 0 : f.disabled) || S,
|
|
130
130
|
color: f == null ? void 0 : f.buttonColor,
|
|
131
|
-
children: (y = f.text) != null ? y : `Button ${
|
|
131
|
+
children: (y = f.text) != null ? y : `Button ${k}`
|
|
132
132
|
},
|
|
133
|
-
|
|
133
|
+
k
|
|
134
134
|
);
|
|
135
135
|
}),
|
|
136
136
|
r && /* @__PURE__ */ n(
|
|
137
137
|
z,
|
|
138
138
|
{
|
|
139
|
-
onClick: () =>
|
|
139
|
+
onClick: () => M(null, null, function* () {
|
|
140
140
|
var f;
|
|
141
141
|
A(!0), yield (f = r.onClick) == null ? void 0 : f.call(r), A(!1);
|
|
142
142
|
}),
|
|
@@ -175,8 +175,8 @@ const Be = ({
|
|
|
175
175
|
) : o(r),
|
|
176
176
|
queryKey: ["autocomplete", i, r]
|
|
177
177
|
});
|
|
178
|
-
function
|
|
179
|
-
lookup: e = () =>
|
|
178
|
+
function _o({
|
|
179
|
+
lookup: e = () => M(null, null, function* () {
|
|
180
180
|
}),
|
|
181
181
|
enableHighlighting: t = !0,
|
|
182
182
|
onChange: o,
|
|
@@ -192,16 +192,16 @@ function Io({
|
|
|
192
192
|
noOptionsText: S = "No options",
|
|
193
193
|
popupIcon: A = /* @__PURE__ */ n(Ct, {}),
|
|
194
194
|
error: v = !1,
|
|
195
|
-
helperText:
|
|
195
|
+
helperText: D = "",
|
|
196
196
|
preLoadedOptions: f = void 0,
|
|
197
|
-
disablePortal:
|
|
197
|
+
disablePortal: k = !1,
|
|
198
198
|
disableIconFlip: y = !1,
|
|
199
|
-
chipToolTipSlotProps:
|
|
199
|
+
chipToolTipSlotProps: _ = Et,
|
|
200
200
|
isPlaceholder: L = !1,
|
|
201
201
|
placeHolderText: O = void 0,
|
|
202
202
|
onRightClick: F = () => {
|
|
203
203
|
},
|
|
204
|
-
disableDefaultRightClickBehaviour:
|
|
204
|
+
disableDefaultRightClickBehaviour: T = !1
|
|
205
205
|
}) {
|
|
206
206
|
const [R, U] = V(""), B = (h, C) => {
|
|
207
207
|
const $ = s.filter((Z) => Z.id !== C);
|
|
@@ -216,6 +216,9 @@ function Io({
|
|
|
216
216
|
sx: {
|
|
217
217
|
"& .MuiFilledInput-root.Mui-focused": {
|
|
218
218
|
backgroundColor: "hsla(201, 98%, 41%, 0.08)"
|
|
219
|
+
},
|
|
220
|
+
"& .MuiOutlinedInput-root.Mui-focused": {
|
|
221
|
+
backgroundColor: "hsla(201, 98%, 41%, 0.08)"
|
|
219
222
|
}
|
|
220
223
|
},
|
|
221
224
|
focused: !0
|
|
@@ -226,7 +229,7 @@ function Io({
|
|
|
226
229
|
{
|
|
227
230
|
sx: p(p({}, a), y ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
228
231
|
"data-testid": c ? `${c}:Autocomplete` : void 0,
|
|
229
|
-
disablePortal:
|
|
232
|
+
disablePortal: k,
|
|
230
233
|
multiple: !0,
|
|
231
234
|
getOptionLabel: (h) => typeof h == "string" ? h : h.label,
|
|
232
235
|
loading: H ? m : !1,
|
|
@@ -248,7 +251,7 @@ function Io({
|
|
|
248
251
|
fullWidth: !0,
|
|
249
252
|
variant: g,
|
|
250
253
|
error: v,
|
|
251
|
-
helperText:
|
|
254
|
+
helperText: D,
|
|
252
255
|
slotProps: {
|
|
253
256
|
input: b(p({}, h.InputProps), {
|
|
254
257
|
endAdornment: /* @__PURE__ */ x(N, { children: [
|
|
@@ -302,14 +305,14 @@ function Io({
|
|
|
302
305
|
},
|
|
303
306
|
onContextMenu: F,
|
|
304
307
|
onMouseDownCapture: (h) => {
|
|
305
|
-
h.button === He.right &&
|
|
308
|
+
h.button === He.right && T && (h.preventDefault(), h.stopPropagation());
|
|
306
309
|
},
|
|
307
310
|
onContextMenuCapture: (h) => {
|
|
308
|
-
|
|
311
|
+
T && (h.preventDefault(), h.stopPropagation());
|
|
309
312
|
}
|
|
310
313
|
}
|
|
311
314
|
),
|
|
312
|
-
s.length > 0 && /* @__PURE__ */ n(
|
|
315
|
+
s.length > 0 && /* @__PURE__ */ n(I, { sx: l, children: s.map((h) => {
|
|
313
316
|
var C;
|
|
314
317
|
return /* @__PURE__ */ n(
|
|
315
318
|
rt,
|
|
@@ -324,7 +327,7 @@ function Io({
|
|
|
324
327
|
{
|
|
325
328
|
title: (C = h.tooltipContent) != null ? C : "",
|
|
326
329
|
placement: "bottom-start",
|
|
327
|
-
slotProps:
|
|
330
|
+
slotProps: _,
|
|
328
331
|
children: /* @__PURE__ */ n(E, { style: { whiteSpace: "normal" }, children: h.chipLabel ? h.chipLabel : h.label })
|
|
329
332
|
}
|
|
330
333
|
),
|
|
@@ -342,8 +345,8 @@ function Io({
|
|
|
342
345
|
}) })
|
|
343
346
|
] });
|
|
344
347
|
}
|
|
345
|
-
const
|
|
346
|
-
lookup: e = () =>
|
|
348
|
+
const Mo = /MUI: The value provided to.*is invalid/i, To = ({
|
|
349
|
+
lookup: e = () => M(null, null, function* () {
|
|
347
350
|
}),
|
|
348
351
|
onChange: t,
|
|
349
352
|
label: o,
|
|
@@ -359,24 +362,27 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
359
362
|
preLoadedOptions: S,
|
|
360
363
|
helperText: A = "",
|
|
361
364
|
disabled: v,
|
|
362
|
-
popupIcon:
|
|
365
|
+
popupIcon: D,
|
|
363
366
|
disableIconFlip: f,
|
|
364
|
-
isPlaceholder:
|
|
367
|
+
isPlaceholder: k = !1,
|
|
365
368
|
placeHolderText: y = void 0,
|
|
366
|
-
onRightClick:
|
|
369
|
+
onRightClick: _ = () => {
|
|
367
370
|
},
|
|
368
371
|
disableDefaultRightClickBehaviour: L = !1
|
|
369
372
|
}) => {
|
|
370
|
-
const [O, F] = V(""), { data:
|
|
373
|
+
const [O, F] = V(""), { data: T, isLoading: R } = We({
|
|
371
374
|
inputValue: O,
|
|
372
375
|
label: o,
|
|
373
376
|
lookup: e,
|
|
374
377
|
minLength: g != null ? g : 0,
|
|
375
378
|
preLoadedOptions: S
|
|
376
|
-
}), U = O.length >= g, B =
|
|
379
|
+
}), U = O.length >= g, B = k ? {
|
|
377
380
|
sx: {
|
|
378
381
|
"& .MuiFilledInput-root.Mui-focused": {
|
|
379
382
|
backgroundColor: "hsla(201, 98%, 41%, 0.08)"
|
|
383
|
+
},
|
|
384
|
+
"& .MuiOutlinedInput-root.Mui-focused": {
|
|
385
|
+
backgroundColor: "hsla(201, 98%, 41%, 0.08)"
|
|
380
386
|
}
|
|
381
387
|
},
|
|
382
388
|
focused: !0
|
|
@@ -386,7 +392,7 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
386
392
|
{
|
|
387
393
|
direction: "row",
|
|
388
394
|
spacing: 1,
|
|
389
|
-
onContextMenu:
|
|
395
|
+
onContextMenu: _,
|
|
390
396
|
onMouseDownCapture: (d) => {
|
|
391
397
|
d.button === He.right && L && (d.preventDefault(), d.stopPropagation());
|
|
392
398
|
},
|
|
@@ -399,7 +405,7 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
399
405
|
sx: p(p({}, r), f ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
400
406
|
"data-testid": l ? `${l}:Autocomplete` : void 0,
|
|
401
407
|
loading: U ? R : !1,
|
|
402
|
-
options:
|
|
408
|
+
options: T != null ? T : [],
|
|
403
409
|
onChange: (d, m, H) => {
|
|
404
410
|
t(d, m, H);
|
|
405
411
|
},
|
|
@@ -408,7 +414,7 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
408
414
|
value: i,
|
|
409
415
|
noOptionsText: U ? u : "Start typing to search",
|
|
410
416
|
getOptionLabel: (d) => d.label,
|
|
411
|
-
popupIcon:
|
|
417
|
+
popupIcon: D,
|
|
412
418
|
renderInput: (d) => /* @__PURE__ */ n(
|
|
413
419
|
ie,
|
|
414
420
|
p(b(p({
|
|
@@ -439,12 +445,12 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
439
445
|
)
|
|
440
446
|
}
|
|
441
447
|
) });
|
|
442
|
-
},
|
|
448
|
+
}, It = (e) => {
|
|
443
449
|
if (!e)
|
|
444
450
|
return -1;
|
|
445
451
|
try {
|
|
446
452
|
const o = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
447
|
-
|
|
453
|
+
kt.from(o, "base64").toString("utf8").split("").map(function(s) {
|
|
448
454
|
return "%" + ("00" + s.charCodeAt(0).toString(16)).slice(-2);
|
|
449
455
|
}).join("")
|
|
450
456
|
), r = JSON.parse(i);
|
|
@@ -452,7 +458,7 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
452
458
|
} catch (t) {
|
|
453
459
|
return -1;
|
|
454
460
|
}
|
|
455
|
-
},
|
|
461
|
+
}, Po = ({
|
|
456
462
|
open: e = !1,
|
|
457
463
|
closeHandler: t,
|
|
458
464
|
setAuth0ExpiryTime: o
|
|
@@ -464,8 +470,8 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
464
470
|
isOpen: e,
|
|
465
471
|
primaryButton: {
|
|
466
472
|
text: "Continue",
|
|
467
|
-
onClick: () =>
|
|
468
|
-
const u = yield r({ cacheMode: "off" }), g =
|
|
473
|
+
onClick: () => M(null, null, function* () {
|
|
474
|
+
const u = yield r({ cacheMode: "off" }), g = It(u) * 1e3;
|
|
469
475
|
o(g), t();
|
|
470
476
|
}),
|
|
471
477
|
disabled: !1,
|
|
@@ -474,7 +480,7 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
474
480
|
},
|
|
475
481
|
secondaryButton: {
|
|
476
482
|
text: "Log out",
|
|
477
|
-
onClick: () =>
|
|
483
|
+
onClick: () => M(null, null, function* () {
|
|
478
484
|
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
479
485
|
}),
|
|
480
486
|
disabled: !1,
|
|
@@ -488,20 +494,20 @@ const To = /MUI: The value provided to.*is invalid/i, Po = ({
|
|
|
488
494
|
}
|
|
489
495
|
);
|
|
490
496
|
};
|
|
491
|
-
function
|
|
497
|
+
function _t(e) {
|
|
492
498
|
return "error" in e;
|
|
493
499
|
}
|
|
494
|
-
function
|
|
500
|
+
function Mt(e) {
|
|
495
501
|
var i;
|
|
496
502
|
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
497
503
|
return t === "access_denied" && o.startsWith("You do not have the required authorization");
|
|
498
504
|
}
|
|
499
|
-
function
|
|
505
|
+
function Tt(e) {
|
|
500
506
|
var i;
|
|
501
507
|
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
502
508
|
return t === "access_denied" && o.startsWith("User did not authorize the request");
|
|
503
509
|
}
|
|
504
|
-
function
|
|
510
|
+
function Pt(e) {
|
|
505
511
|
var i;
|
|
506
512
|
const t = e.error, o = (i = e == null ? void 0 : e.error_description) != null ? i : "";
|
|
507
513
|
return t === "access_denied" && o.match(/Script.*time.*exceeded/);
|
|
@@ -535,20 +541,20 @@ function No({
|
|
|
535
541
|
a
|
|
536
542
|
), o === "all")
|
|
537
543
|
throw a;
|
|
538
|
-
if (
|
|
544
|
+
if (_t(a)) {
|
|
539
545
|
let A = "Auth error", v = "An unknown Auth0 error occurred.";
|
|
540
|
-
if (
|
|
546
|
+
if (Mt(a))
|
|
541
547
|
A = "Unauthorised", v = `You are not authorised to access ${t}.`;
|
|
542
|
-
else if (
|
|
548
|
+
else if (Tt(a))
|
|
543
549
|
A = "App not authorised", v = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
|
|
544
|
-
else if (
|
|
550
|
+
else if (Pt(a))
|
|
545
551
|
A = "Auth0 script execution time exceeded", v = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute by clicking the RELOAD button below.";
|
|
546
552
|
else if (a.message === "Invalid state") {
|
|
547
|
-
const
|
|
548
|
-
|
|
553
|
+
const D = localStorage.getItem("auth0_redirect_count");
|
|
554
|
+
D ? D && parseInt(D) < 2 && (localStorage.setItem("auth0_redirect_count", String(parseInt(D) + 1)), l(g)) : (localStorage.setItem("auth0_redirect_count", "1"), l(g));
|
|
549
555
|
} else if (o === "unknown") throw a;
|
|
550
|
-
return /* @__PURE__ */ x(
|
|
551
|
-
/* @__PURE__ */ n(
|
|
556
|
+
return /* @__PURE__ */ x(Me, { open: !0, children: [
|
|
557
|
+
/* @__PURE__ */ n(Pe, { children: A }),
|
|
552
558
|
/* @__PURE__ */ x(Ne, { children: [
|
|
553
559
|
/* @__PURE__ */ n(E, { children: v }),
|
|
554
560
|
/* @__PURE__ */ n("br", {}),
|
|
@@ -569,7 +575,7 @@ function No({
|
|
|
569
575
|
] });
|
|
570
576
|
} else if (o === "unknown") throw a;
|
|
571
577
|
}
|
|
572
|
-
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ n(N, { children: e })) : /* @__PURE__ */ n(
|
|
578
|
+
return s ? (localStorage.removeItem("auth0_redirect_count"), /* @__PURE__ */ n(N, { children: e })) : /* @__PURE__ */ n(Dt, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
|
|
573
579
|
}
|
|
574
580
|
const Nt = {
|
|
575
581
|
autoHideDuration: 6e3,
|
|
@@ -615,34 +621,34 @@ function Ht(s) {
|
|
|
615
621
|
key: Ot()
|
|
616
622
|
}), d);
|
|
617
623
|
return u.current.push(m), u.current.length === 1 && l({ open: !0 }), m.key;
|
|
618
|
-
}, []), v = (d = "", m = {}) => A(p({ message: d, severity: "success" }, m)),
|
|
624
|
+
}, []), v = (d = "", m = {}) => A(p({ message: d, severity: "success" }, m)), D = (d = "", m = {}) => A(p({ message: d, severity: "info" }, m)), f = (d = "", m = {}) => A(p({ message: d, severity: "warning" }, m)), k = (d = "", m = {}) => A(p({ message: d, severity: "error" }, m)), y = (d) => {
|
|
619
625
|
const m = u.current.findIndex((H) => H.key === d);
|
|
620
626
|
if (m !== -1)
|
|
621
627
|
return m === 0 ? (l({ open: !1 }), u.current[0]) : u.current.splice(m, 1);
|
|
622
|
-
},
|
|
628
|
+
}, _ = (d, m) => {
|
|
623
629
|
o(d, m) && l({ open: !1 });
|
|
624
630
|
}, L = () => {
|
|
625
631
|
}, O = () => {
|
|
626
632
|
u.current.shift(), u.current.length > 0 && l({ open: !0 });
|
|
627
|
-
}, F = (B = u.current[0]) != null ? B : p({}, Se),
|
|
628
|
-
"autoHideDuration" in F && (
|
|
633
|
+
}, F = (B = u.current[0]) != null ? B : p({}, Se), T = {};
|
|
634
|
+
"autoHideDuration" in F && (T.autoHideDuration = F.autoHideDuration);
|
|
629
635
|
const R = p(p({}, Nt), r), U = p(p({
|
|
630
636
|
open: a,
|
|
631
637
|
setOpen: S,
|
|
632
638
|
enqueueNotification: A,
|
|
633
639
|
enqueueSuccessNotification: v,
|
|
634
|
-
enqueueInfoNotification:
|
|
640
|
+
enqueueInfoNotification: D,
|
|
635
641
|
enqueueWarningNotification: f,
|
|
636
|
-
enqueueErrorNotification:
|
|
642
|
+
enqueueErrorNotification: k,
|
|
637
643
|
removeNotification: y
|
|
638
644
|
}, e), t);
|
|
639
645
|
return /* @__PURE__ */ x(qe.Provider, { value: U, children: [
|
|
640
646
|
i,
|
|
641
647
|
/* @__PURE__ */ n(
|
|
642
648
|
lt,
|
|
643
|
-
b(p(p({}, R),
|
|
649
|
+
b(p(p({}, R), T), {
|
|
644
650
|
open: a,
|
|
645
|
-
onClose:
|
|
651
|
+
onClose: _,
|
|
646
652
|
TransitionProps: {
|
|
647
653
|
onExited: O,
|
|
648
654
|
onExit: L
|
|
@@ -652,7 +658,7 @@ function Ht(s) {
|
|
|
652
658
|
/* @__PURE__ */ n(
|
|
653
659
|
ct,
|
|
654
660
|
{
|
|
655
|
-
onClose: (d) =>
|
|
661
|
+
onClose: (d) => _(d, "closeAlert"),
|
|
656
662
|
severity: F.severity,
|
|
657
663
|
variant: "filled",
|
|
658
664
|
icon: F.progressIndicator === "circular" ? /* @__PURE__ */ n(re, { size: "1em" }) : void 0,
|
|
@@ -660,7 +666,7 @@ function Ht(s) {
|
|
|
660
666
|
children: F.message
|
|
661
667
|
}
|
|
662
668
|
),
|
|
663
|
-
F.progressIndicator === "linear" && /* @__PURE__ */ n(
|
|
669
|
+
F.progressIndicator === "linear" && /* @__PURE__ */ n(Te, { color: "primary" })
|
|
664
670
|
] })
|
|
665
671
|
})
|
|
666
672
|
)
|
|
@@ -678,13 +684,13 @@ function Wt() {
|
|
|
678
684
|
const $o = yt(
|
|
679
685
|
(e = { autoHideDuration: 1 }, t = {}, o = {}) => ({ children: i }) => /* @__PURE__ */ n(Ht, b(p({}, e), { overrideState: t, overrideActions: o, children: /* @__PURE__ */ n(N, { children: i }) }))
|
|
680
686
|
), Ve = "domainCode";
|
|
681
|
-
var
|
|
682
|
-
const
|
|
683
|
-
JSON.parse((
|
|
684
|
-
), qt =
|
|
685
|
-
(e) => e(
|
|
687
|
+
var Ie;
|
|
688
|
+
const ke = P(
|
|
689
|
+
JSON.parse((Ie = localStorage.getItem(Ve)) != null ? Ie : '{"domainCode": ""}').domainCode
|
|
690
|
+
), qt = P(
|
|
691
|
+
(e) => e(ke),
|
|
686
692
|
(e, t, o) => {
|
|
687
|
-
t(
|
|
693
|
+
t(ke, o), localStorage.setItem(Ve, JSON.stringify({ domainCode: o }));
|
|
688
694
|
}
|
|
689
695
|
), zt = {
|
|
690
696
|
act: "ACT",
|
|
@@ -710,20 +716,20 @@ const De = M(
|
|
|
710
716
|
applicationName: s,
|
|
711
717
|
handleLogout: c
|
|
712
718
|
}) => {
|
|
713
|
-
const [a, l] = W(qt), [u, g] = V(a), { enqueueSuccessNotification: w } = Wt(), S = r.length === 0, A = !!a && !r.includes(a) && !r.includes(u), v = !a || S || A,
|
|
719
|
+
const [a, l] = W(qt), [u, g] = V(a), { enqueueSuccessNotification: w } = Wt(), S = r.length === 0, A = !!a && !r.includes(a) && !r.includes(u), v = !a || S || A, D = () => M(null, null, function* () {
|
|
714
720
|
u ? (l(u), i == null || i(u), w(`Set organisation to ${u}`), o()) : (l(""), i == null || i(""));
|
|
715
|
-
}), f = () =>
|
|
721
|
+
}), f = () => M(null, null, function* () {
|
|
716
722
|
a && !S && !A ? (g(a), o()) : v && c();
|
|
717
723
|
});
|
|
718
|
-
let
|
|
719
|
-
return S ?
|
|
724
|
+
let k;
|
|
725
|
+
return S ? k = "Unable to retrieve your active organisations. Try logging in again." : A && (k = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ x(
|
|
720
726
|
Be,
|
|
721
727
|
{
|
|
722
728
|
isOpen: t,
|
|
723
729
|
dialogTitle: "Select an organisation",
|
|
724
730
|
primaryButton: {
|
|
725
731
|
text: "Confirm",
|
|
726
|
-
onClick:
|
|
732
|
+
onClick: D,
|
|
727
733
|
disabled: !u || S || A,
|
|
728
734
|
buttonColor: "primary"
|
|
729
735
|
},
|
|
@@ -746,7 +752,7 @@ const De = M(
|
|
|
746
752
|
multiple: !1,
|
|
747
753
|
disableClearable: !1,
|
|
748
754
|
value: u !== "" ? u : null,
|
|
749
|
-
onChange: (y,
|
|
755
|
+
onChange: (y, _) => g(_ != null ? _ : ""),
|
|
750
756
|
getOptionLabel: Ge,
|
|
751
757
|
options: [...r.toSorted()],
|
|
752
758
|
renderInput: (y) => /* @__PURE__ */ n(
|
|
@@ -764,14 +770,14 @@ const De = M(
|
|
|
764
770
|
)
|
|
765
771
|
}
|
|
766
772
|
),
|
|
767
|
-
|
|
773
|
+
k && /* @__PURE__ */ n(dt, { error: !0, children: k })
|
|
768
774
|
]
|
|
769
775
|
}
|
|
770
776
|
);
|
|
771
777
|
}, Ke = () => {
|
|
772
778
|
const e = J();
|
|
773
779
|
return ut(e.breakpoints.down("sm"));
|
|
774
|
-
}, Vt = 64, Gt = 72, Kt = 256, Q =
|
|
780
|
+
}, Vt = 64, Gt = 72, Kt = 256, Q = P(!0), Xt = P(Kt), Yt = P(Gt), De = P(""), Qt = P(void 0), Jt = P(Vt), Zt = P(void 0);
|
|
775
781
|
function jt({ links: e }) {
|
|
776
782
|
return /* @__PURE__ */ n("div", { children: "LinksMenu not implemented yet" });
|
|
777
783
|
}
|
|
@@ -783,7 +789,7 @@ const X = "Navbar", G = {
|
|
|
783
789
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
784
790
|
// settings: `${PREFIX}-settings`,
|
|
785
791
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
786
|
-
}, eo = Re(
|
|
792
|
+
}, eo = Re(I, { name: "NavBar" })(({ theme: e }) => ({
|
|
787
793
|
[`&.${G.root}`]: {
|
|
788
794
|
display: "flex"
|
|
789
795
|
},
|
|
@@ -871,7 +877,7 @@ const Ro = (e) => {
|
|
|
871
877
|
const { getIdTokenClaims: t, user: o } = ae();
|
|
872
878
|
return Le({
|
|
873
879
|
queryKey: ["availableDomains", o == null ? void 0 : o.sub],
|
|
874
|
-
queryFn: () =>
|
|
880
|
+
queryFn: () => M(null, null, function* () {
|
|
875
881
|
const i = yield t();
|
|
876
882
|
return i ? Object.entries(i).reduce((r, [s, c]) => {
|
|
877
883
|
var u;
|
|
@@ -922,7 +928,7 @@ const Fe = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], E
|
|
|
922
928
|
function io({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
|
|
923
929
|
const r = J();
|
|
924
930
|
return /* @__PURE__ */ x(
|
|
925
|
-
|
|
931
|
+
I,
|
|
926
932
|
{
|
|
927
933
|
sx: {
|
|
928
934
|
paddingTop: 3,
|
|
@@ -933,7 +939,7 @@ function io({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
|
|
|
933
939
|
},
|
|
934
940
|
children: [
|
|
935
941
|
!i && /* @__PURE__ */ n(
|
|
936
|
-
|
|
942
|
+
I,
|
|
937
943
|
{
|
|
938
944
|
sx: {
|
|
939
945
|
width: o ? "5rem" : "2rem",
|
|
@@ -955,7 +961,7 @@ function io({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
|
|
|
955
961
|
}
|
|
956
962
|
),
|
|
957
963
|
i && /* @__PURE__ */ n(
|
|
958
|
-
|
|
964
|
+
I,
|
|
959
965
|
{
|
|
960
966
|
sx: {
|
|
961
967
|
width: o ? "5rem" : "2rem",
|
|
@@ -970,7 +976,7 @@ function io({ user: e, domainCode: t, open: o, useNewAvatar: i = !1 }) {
|
|
|
970
976
|
] }) }) : /* @__PURE__ */ n(Ce, {})
|
|
971
977
|
}
|
|
972
978
|
),
|
|
973
|
-
/* @__PURE__ */ n(to, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ n(ft, { in: o, children: /* @__PURE__ */ x(
|
|
979
|
+
/* @__PURE__ */ n(to, { sx: { width: "100%" }, in: o, children: /* @__PURE__ */ n(ft, { in: o, children: /* @__PURE__ */ x(I, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
974
980
|
e != null && e.name ? /* @__PURE__ */ n(E, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ n(me, { animation: !1, width: "50%" }),
|
|
975
981
|
t ? /* @__PURE__ */ n(E, { children: Ge(t) }) : /* @__PURE__ */ n(me, { animation: !1, width: "25%" })
|
|
976
982
|
] }) }) })
|
|
@@ -1008,12 +1014,12 @@ function ro({
|
|
|
1008
1014
|
isSmallScreen: g,
|
|
1009
1015
|
children: [
|
|
1010
1016
|
!g && /* @__PURE__ */ n(mt, {}),
|
|
1011
|
-
r && /* @__PURE__ */ x(
|
|
1017
|
+
r && /* @__PURE__ */ x(I, { flexGrow: "0", children: [
|
|
1012
1018
|
r,
|
|
1013
1019
|
/* @__PURE__ */ n(ge, { variant: "middle", sx: { marginY: "0.5rem" } })
|
|
1014
1020
|
] }),
|
|
1015
|
-
/* @__PURE__ */ n(
|
|
1016
|
-
/* @__PURE__ */ x(
|
|
1021
|
+
/* @__PURE__ */ n(I, { flexGrow: "1", children: Array.isArray(s) ? /* @__PURE__ */ n(jt, { links: s }) : s }),
|
|
1022
|
+
/* @__PURE__ */ x(I, { flexGrow: "0", children: [
|
|
1017
1023
|
/* @__PURE__ */ n(ge, { variant: "middle", sx: { marginY: "0.5rem" } }),
|
|
1018
1024
|
/* @__PURE__ */ n(io, { user: a, domainCode: l, open: e, useNewAvatar: u }),
|
|
1019
1025
|
c && /* @__PURE__ */ n(N, { children: c })
|
|
@@ -1029,14 +1035,14 @@ function ao({
|
|
|
1029
1035
|
noPadding: i
|
|
1030
1036
|
}) {
|
|
1031
1037
|
return /* @__PURE__ */ n(
|
|
1032
|
-
|
|
1038
|
+
I,
|
|
1033
1039
|
{
|
|
1034
1040
|
sx: {
|
|
1035
1041
|
overflow: "auto",
|
|
1036
1042
|
height: `calc(100vh - ${t}px)`,
|
|
1037
1043
|
flexGrow: 1
|
|
1038
1044
|
},
|
|
1039
|
-
children: i ? /* @__PURE__ */ n(
|
|
1045
|
+
children: i ? /* @__PURE__ */ n(I, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ n(
|
|
1040
1046
|
gt,
|
|
1041
1047
|
{
|
|
1042
1048
|
component: "main",
|
|
@@ -1060,7 +1066,7 @@ function co({
|
|
|
1060
1066
|
}) {
|
|
1061
1067
|
const r = Oe(Q), s = () => r((l) => !l), c = J(), a = Ke();
|
|
1062
1068
|
return /* @__PURE__ */ n("header", { "data-testid": o, children: /* @__PURE__ */ x(
|
|
1063
|
-
|
|
1069
|
+
_e,
|
|
1064
1070
|
{
|
|
1065
1071
|
square: !0,
|
|
1066
1072
|
elevation: 0,
|
|
@@ -1109,18 +1115,18 @@ function Wo({
|
|
|
1109
1115
|
}) {
|
|
1110
1116
|
Ft([
|
|
1111
1117
|
[Q, o != null ? o : !0],
|
|
1112
|
-
[
|
|
1118
|
+
[De, t != null ? t : ""]
|
|
1113
1119
|
]);
|
|
1114
|
-
const S = xe(Q), [A] = W(Xt), [v] = W(Yt),
|
|
1120
|
+
const S = xe(Q), [A] = W(Xt), [v] = W(Yt), D = xe(De), [f] = W(Jt), [k] = W(Qt), [y] = W(Zt);
|
|
1115
1121
|
return /* @__PURE__ */ x(Ae, { children: [
|
|
1116
1122
|
/* @__PURE__ */ n(bt, {}),
|
|
1117
1123
|
/* @__PURE__ */ n(
|
|
1118
1124
|
co,
|
|
1119
1125
|
{
|
|
1120
|
-
titleText:
|
|
1126
|
+
titleText: D,
|
|
1121
1127
|
"data-testid": s,
|
|
1122
1128
|
height: f,
|
|
1123
|
-
middle:
|
|
1129
|
+
middle: k
|
|
1124
1130
|
}
|
|
1125
1131
|
),
|
|
1126
1132
|
/* @__PURE__ */ x(Ae, { sx: { display: "flex" }, children: [
|
|
@@ -1306,16 +1312,16 @@ export {
|
|
|
1306
1312
|
ze as ContextError,
|
|
1307
1313
|
zt as DOMAIN_CODE_LABELS,
|
|
1308
1314
|
Lo as DomainCodeDialog,
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1315
|
+
Io as ExampleComponent,
|
|
1316
|
+
_o as FetchAutocomplete,
|
|
1317
|
+
Mo as MUI_AUTOCOMPLETE_VALUE_WARNING_REGEX,
|
|
1312
1318
|
Ht as SaladBarProvider,
|
|
1313
|
-
|
|
1314
|
-
|
|
1319
|
+
Po as SessionExpiryDialog,
|
|
1320
|
+
To as SingleAutocomplete,
|
|
1315
1321
|
Oo as determineUserLevelFromClaims,
|
|
1316
1322
|
qt as domainCodeAtom,
|
|
1317
1323
|
qo as fed21Theme,
|
|
1318
|
-
|
|
1324
|
+
It as getAuth0Expiry,
|
|
1319
1325
|
Ge as getDomainOptionLabel,
|
|
1320
1326
|
Uo as getValidBusinessRoles,
|
|
1321
1327
|
zo as internalAgSystemsTheme,
|
|
@@ -1325,7 +1331,7 @@ export {
|
|
|
1325
1331
|
Xt as navBarWidthOpenAtom,
|
|
1326
1332
|
no as simpleHashCode,
|
|
1327
1333
|
Bo as suppressConsole,
|
|
1328
|
-
|
|
1334
|
+
De as titleTextAtom,
|
|
1329
1335
|
Jt as topBarHeightAtom,
|
|
1330
1336
|
Qt as topBarMiddleAtom,
|
|
1331
1337
|
Ho as unsuppressConsole,
|