@australiangreens/ag-internal-components 0.1.1 → 0.1.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/esm/index.js
CHANGED
|
@@ -2,14 +2,14 @@ var Lt = Object.defineProperty, _t = Object.defineProperties;
|
|
|
2
2
|
var Mt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ne = Object.getOwnPropertySymbols;
|
|
4
4
|
var Be = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var he = (e, t, n) => t in e ? Lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5
|
+
var he = (e, t, n) => t in e ? Lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, s = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
Be.call(t, n) && he(e, n, t[n]);
|
|
8
8
|
if (ne)
|
|
9
9
|
for (var n of ne(t))
|
|
10
10
|
Oe.call(t, n) && he(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, y = (e, t) => _t(e, Mt(t));
|
|
13
13
|
var Ee = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var i in e)
|
|
@@ -21,24 +21,24 @@ var Ee = (e, t) => {
|
|
|
21
21
|
};
|
|
22
22
|
var Fe = (e, t, n) => (he(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
23
23
|
var L = (e, t, n) => new Promise((i, r) => {
|
|
24
|
-
var
|
|
24
|
+
var l = (a) => {
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
} catch (
|
|
28
|
-
r(
|
|
26
|
+
p(n.next(a));
|
|
27
|
+
} catch (d) {
|
|
28
|
+
r(d);
|
|
29
29
|
}
|
|
30
|
-
}, c = (
|
|
30
|
+
}, c = (a) => {
|
|
31
31
|
try {
|
|
32
|
-
|
|
33
|
-
} catch (
|
|
34
|
-
r(
|
|
32
|
+
p(n.throw(a));
|
|
33
|
+
} catch (d) {
|
|
34
|
+
r(d);
|
|
35
35
|
}
|
|
36
|
-
},
|
|
37
|
-
|
|
36
|
+
}, p = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(l, c);
|
|
37
|
+
p((n = n.apply(e, t)).next());
|
|
38
38
|
});
|
|
39
39
|
import { jsxs as u, Fragment as F, jsx as o } from "react/jsx-runtime";
|
|
40
40
|
import { useState as E, createContext as Je, useCallback as re, useContext as Ze, useEffect as K, createElement as xe, useRef as ge } from "react";
|
|
41
|
-
import { Typography as B, Button as ae, Paper as je, Box as
|
|
41
|
+
import { Typography as B, Button as ae, Paper as je, Box as $, Drawer as we, styled as Ae, IconButton as J, Container as et, useTheme as se, useMediaQuery as Rt, Collapse as Ht, Avatar as Pe, Fade as Wt, Skeleton as Ne, Toolbar as zt, Divider as Le, CssBaseline as Ut, Dialog as tt, LinearProgress as nt, DialogTitle as ot, DialogContent as it, DialogActions as rt, Autocomplete as Se, TextField as be, CircularProgress as De, Chip as Gt, Tooltip as Vt, Stack as qt, Snackbar as Xt, Alert as Qt, FormHelperText as Yt } from "@mui/material";
|
|
42
42
|
import Kt from "@mui/material/CssBaseline";
|
|
43
43
|
import { styled as R, createTheme as at, alpha as fe } from "@mui/material/styles";
|
|
44
44
|
import { AgError as Jt } from "@australiangreens/ag-error";
|
|
@@ -87,7 +87,7 @@ const gt = 330, ft = 73, U = "Navbar", q = {
|
|
|
87
87
|
userInfoHolder: `${U}-userInfoHolder`,
|
|
88
88
|
settings: `${U}-settings`,
|
|
89
89
|
pieChartIcon: `${U}-pieChartIcon`
|
|
90
|
-
}, pn = R(
|
|
90
|
+
}, pn = R($, {
|
|
91
91
|
name: "NavBar"
|
|
92
92
|
})(({ theme: e }) => ({
|
|
93
93
|
[`&.${q.root}`]: {
|
|
@@ -116,13 +116,13 @@ const gt = 330, ft = 73, U = "Navbar", q = {
|
|
|
116
116
|
color: "white",
|
|
117
117
|
backgroundColor: "black"
|
|
118
118
|
// backgroundColor: '#e8e8e8',
|
|
119
|
-
}), un = () =>
|
|
119
|
+
}), un = () => s({
|
|
120
120
|
width: gt
|
|
121
|
-
}, mt()), hn = () =>
|
|
121
|
+
}, mt()), hn = () => s({
|
|
122
122
|
width: ft
|
|
123
123
|
}, mt()), gn = R(we, {
|
|
124
124
|
shouldForwardProp: (e) => e !== "open"
|
|
125
|
-
})(({ theme: e, open: t }) =>
|
|
125
|
+
})(({ theme: e, open: t }) => s(s({
|
|
126
126
|
width: t ? gt : ft,
|
|
127
127
|
flexShrink: 0,
|
|
128
128
|
whiteSpace: "nowrap",
|
|
@@ -141,22 +141,22 @@ const Ct = Je(null), fn = {}, mn = {}, Cn = ({
|
|
|
141
141
|
overrideActions: t = mn,
|
|
142
142
|
children: n
|
|
143
143
|
}) => {
|
|
144
|
-
const [{ open: i }, r] = E({ open: !0 }),
|
|
145
|
-
r({ open:
|
|
144
|
+
const [{ open: i }, r] = E({ open: !0 }), l = re((a) => {
|
|
145
|
+
r({ open: a });
|
|
146
146
|
}, []), c = re(() => {
|
|
147
|
-
r((
|
|
148
|
-
}, []),
|
|
147
|
+
r((a) => y(s({}, a), { open: !a.open }));
|
|
148
|
+
}, []), p = s(s({
|
|
149
149
|
open: i,
|
|
150
|
-
setOpen:
|
|
150
|
+
setOpen: l,
|
|
151
151
|
toggleOpen: c
|
|
152
152
|
}, e), t);
|
|
153
|
-
return /* @__PURE__ */ o(Ct.Provider, { value:
|
|
153
|
+
return /* @__PURE__ */ o(Ct.Provider, { value: p, children: n });
|
|
154
154
|
}, xn = () => {
|
|
155
155
|
const e = Ze(Ct);
|
|
156
156
|
if (e === null)
|
|
157
157
|
throw new ke("Error: Tried to useNavBar outside of a <NavBarProvider>");
|
|
158
158
|
return e;
|
|
159
|
-
}, vn = (e = {}) =>
|
|
159
|
+
}, vn = (e = {}) => s({
|
|
160
160
|
open: !0
|
|
161
161
|
}, e), Bo = Q(
|
|
162
162
|
(e = vn(), t = {}) => ({ children: n }) => /* @__PURE__ */ o(Cn, { overrideState: e, overrideActions: t, children: n })
|
|
@@ -281,7 +281,7 @@ const wn = 24, An = 64, G = "TopBar", O = {
|
|
|
281
281
|
padding: e.spacing(0, 3),
|
|
282
282
|
width: "100%"
|
|
283
283
|
},
|
|
284
|
-
[`& .${O.titleSlider}`]:
|
|
284
|
+
[`& .${O.titleSlider}`]: s(s({
|
|
285
285
|
height: "100%",
|
|
286
286
|
display: "flex",
|
|
287
287
|
alignItems: "center",
|
|
@@ -323,7 +323,7 @@ function bn({
|
|
|
323
323
|
}) {
|
|
324
324
|
return /* @__PURE__ */ u(Sn, { leftPanel: t, rightPanel: n, "data-testid": i, children: [
|
|
325
325
|
/* @__PURE__ */ o("div", { className: O.topStripe }),
|
|
326
|
-
/* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ u(
|
|
326
|
+
/* @__PURE__ */ o("div", { className: O.titleBar, children: /* @__PURE__ */ u($, { className: O.titleSlider, children: [
|
|
327
327
|
t !== void 0 && !t.open && t.showOpenArrow && /* @__PURE__ */ u(
|
|
328
328
|
J,
|
|
329
329
|
{
|
|
@@ -372,9 +372,9 @@ const xt = 400, Dn = Ae(we, {
|
|
|
372
372
|
),
|
|
373
373
|
name: "SidePanelDrawer"
|
|
374
374
|
})(
|
|
375
|
-
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: r, navBarWidthClosed:
|
|
375
|
+
({ width: e, debugOpacity: t = !1, anchor: n, navBarOpen: i, navBarWidthOpen: r, navBarWidthClosed: l }) => ({
|
|
376
376
|
width: e,
|
|
377
|
-
"& .MuiDrawer-paper":
|
|
377
|
+
"& .MuiDrawer-paper": s(s({
|
|
378
378
|
position: "absolute",
|
|
379
379
|
width: e,
|
|
380
380
|
boxSizing: "border-box",
|
|
@@ -382,15 +382,15 @@ const xt = 400, Dn = Ae(we, {
|
|
|
382
382
|
boxShadow: "0px 4px 5px rgba(0, 0, 0, 0.14), 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.2)"
|
|
383
383
|
}, t && {
|
|
384
384
|
opacity: "50%"
|
|
385
|
-
}), n === "left" &&
|
|
386
|
-
marginLeft: `${
|
|
385
|
+
}), n === "left" && s({
|
|
386
|
+
marginLeft: `${l}px`
|
|
387
387
|
}, i && {
|
|
388
388
|
marginLeft: `${r}px`
|
|
389
389
|
}))
|
|
390
390
|
})
|
|
391
|
-
), kn = Ae(
|
|
391
|
+
), kn = Ae($, {
|
|
392
392
|
shouldForwardProp: (e) => !["anchor"].includes(e)
|
|
393
|
-
})(({ theme: e, anchor: t }) =>
|
|
393
|
+
})(({ theme: e, anchor: t }) => y(s({
|
|
394
394
|
display: "flex",
|
|
395
395
|
alignItems: "center",
|
|
396
396
|
padding: e.spacing(2)
|
|
@@ -415,35 +415,35 @@ function We({
|
|
|
415
415
|
onClose: i = () => {
|
|
416
416
|
},
|
|
417
417
|
titleText: r = "",
|
|
418
|
-
width:
|
|
418
|
+
width: l = xt,
|
|
419
419
|
showCloseArrow: c = !0,
|
|
420
|
-
debugOpacity:
|
|
421
|
-
headerBoxProps:
|
|
422
|
-
onOpened:
|
|
423
|
-
onClosed:
|
|
420
|
+
debugOpacity: p = !1,
|
|
421
|
+
headerBoxProps: a = {},
|
|
422
|
+
onOpened: d,
|
|
423
|
+
onClosed: m,
|
|
424
424
|
"data-testid": f,
|
|
425
|
-
navBarOpen:
|
|
426
|
-
navBarWidthOpen:
|
|
427
|
-
navBarWidthClosed:
|
|
425
|
+
navBarOpen: v = !1,
|
|
426
|
+
navBarWidthOpen: g = 0,
|
|
427
|
+
navBarWidthClosed: A = 0
|
|
428
428
|
}) {
|
|
429
429
|
return /* @__PURE__ */ u(
|
|
430
430
|
Dn,
|
|
431
431
|
{
|
|
432
432
|
SlideProps: {
|
|
433
|
-
onEntered: () =>
|
|
434
|
-
onExited: () =>
|
|
433
|
+
onEntered: () => d == null ? void 0 : d(),
|
|
434
|
+
onExited: () => m == null ? void 0 : m()
|
|
435
435
|
},
|
|
436
436
|
variant: "persistent",
|
|
437
437
|
anchor: t,
|
|
438
438
|
open: n,
|
|
439
|
-
width:
|
|
440
|
-
debugOpacity:
|
|
439
|
+
width: l,
|
|
440
|
+
debugOpacity: p,
|
|
441
441
|
"data-testid": f,
|
|
442
|
-
navBarOpen:
|
|
443
|
-
navBarWidthOpen:
|
|
444
|
-
navBarWidthClosed:
|
|
442
|
+
navBarOpen: v,
|
|
443
|
+
navBarWidthOpen: g,
|
|
444
|
+
navBarWidthClosed: A,
|
|
445
445
|
children: [
|
|
446
|
-
/* @__PURE__ */ o(kn,
|
|
446
|
+
/* @__PURE__ */ o(kn, y(s({ anchor: t }, a), { children: t === "left" ? /* @__PURE__ */ u(F, { children: [
|
|
447
447
|
/* @__PURE__ */ o(B, { variant: "h6", color: "inherit", component: "div", children: r }),
|
|
448
448
|
c && /* @__PURE__ */ u(J, { onClick: i, size: "large", "aria-label": "Close left side panel", children: [
|
|
449
449
|
/* @__PURE__ */ o(ct, { "data-testid": "arrowbackicon" }),
|
|
@@ -461,12 +461,12 @@ function We({
|
|
|
461
461
|
}
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const yn = R(
|
|
464
|
+
const yn = R($, {
|
|
465
465
|
shouldForwardProp: (e) => !["leftPanel", "rightPanel"].includes(e),
|
|
466
466
|
name: "PanelAwareMargins"
|
|
467
467
|
})(({ theme: e, leftPanel: t, rightPanel: n }) => {
|
|
468
468
|
var i, r;
|
|
469
|
-
return
|
|
469
|
+
return s(s({
|
|
470
470
|
transition: e.transitions.create("margin", {
|
|
471
471
|
easing: e.transitions.easing.sharp,
|
|
472
472
|
duration: e.transitions.duration.leavingScreen
|
|
@@ -510,27 +510,27 @@ function No({
|
|
|
510
510
|
leftPanel: n,
|
|
511
511
|
rightPanel: i,
|
|
512
512
|
sidePanelsAreMutuallyExclusive: r = !0,
|
|
513
|
-
debugOpacity:
|
|
513
|
+
debugOpacity: l = !1,
|
|
514
514
|
pageContainerProps: c,
|
|
515
|
-
pageContentDataTestId:
|
|
516
|
-
topBarDataTestId:
|
|
517
|
-
navBarOpen:
|
|
518
|
-
navBarWidthOpen:
|
|
515
|
+
pageContentDataTestId: p,
|
|
516
|
+
topBarDataTestId: a,
|
|
517
|
+
navBarOpen: d,
|
|
518
|
+
navBarWidthOpen: m,
|
|
519
519
|
navBarWidthClosed: f
|
|
520
520
|
}) {
|
|
521
|
-
const [
|
|
522
|
-
titleText:
|
|
521
|
+
const [v, g] = E(me), [A, S] = E(Ce), [D, I] = E(me), [T, P] = E(Ce), N = n !== void 0, k = i !== void 0, {
|
|
522
|
+
titleText: b,
|
|
523
523
|
content: H,
|
|
524
524
|
flavour: W,
|
|
525
|
-
open:
|
|
526
|
-
onChangeOpen:
|
|
527
|
-
width:
|
|
525
|
+
open: h,
|
|
526
|
+
onChangeOpen: C,
|
|
527
|
+
width: x,
|
|
528
528
|
arrowButtons: w,
|
|
529
529
|
startOpen: M,
|
|
530
530
|
onOpened: j,
|
|
531
531
|
onClosed: le,
|
|
532
532
|
dataTestId: Bt
|
|
533
|
-
} = n ?
|
|
533
|
+
} = n ? s(s({}, oe), n) : s({}, oe), {
|
|
534
534
|
titleText: Ot,
|
|
535
535
|
content: Et,
|
|
536
536
|
flavour: ye,
|
|
@@ -542,18 +542,18 @@ function No({
|
|
|
542
542
|
onOpened: Ft,
|
|
543
543
|
onClosed: Pt,
|
|
544
544
|
dataTestId: Nt
|
|
545
|
-
} = i ?
|
|
545
|
+
} = i ? s(s({}, oe), i) : s({}, oe);
|
|
546
546
|
K(() => {
|
|
547
|
-
M !== me && (
|
|
547
|
+
M !== me && (g(M), I(M));
|
|
548
548
|
}, [M]), K(() => {
|
|
549
|
-
te !== Ce && (
|
|
549
|
+
te !== Ce && (S(te), P(te));
|
|
550
550
|
}, [te]);
|
|
551
|
-
const pe =
|
|
552
|
-
|
|
551
|
+
const pe = h === void 0 ? v : h, ue = ce === void 0 ? A : ce, Ie = (z) => {
|
|
552
|
+
h === void 0 && (g(z), r && k && (z ? (S(!1), P(A)) : S(T))), C && C(z);
|
|
553
553
|
}, Te = (z) => {
|
|
554
|
-
ce === void 0 && (
|
|
554
|
+
ce === void 0 && (S(z), r && N && (z ? (g(!1), I(v)) : g(D))), $e && $e(z);
|
|
555
555
|
};
|
|
556
|
-
return /* @__PURE__ */ u(
|
|
556
|
+
return /* @__PURE__ */ u($, { children: [
|
|
557
557
|
N && /* @__PURE__ */ o(
|
|
558
558
|
We,
|
|
559
559
|
{
|
|
@@ -561,19 +561,19 @@ function No({
|
|
|
561
561
|
anchor: "left",
|
|
562
562
|
open: pe,
|
|
563
563
|
onClose: () => Ie(!1),
|
|
564
|
-
width:
|
|
565
|
-
titleText:
|
|
566
|
-
debugOpacity:
|
|
564
|
+
width: x,
|
|
565
|
+
titleText: b,
|
|
566
|
+
debugOpacity: l,
|
|
567
567
|
showCloseArrow: w === "both" || w === "close",
|
|
568
568
|
onOpened: j,
|
|
569
569
|
onClosed: le,
|
|
570
|
-
navBarOpen:
|
|
571
|
-
navBarWidthOpen:
|
|
570
|
+
navBarOpen: d,
|
|
571
|
+
navBarWidthOpen: m,
|
|
572
572
|
navBarWidthClosed: f,
|
|
573
573
|
children: H
|
|
574
574
|
}
|
|
575
575
|
),
|
|
576
|
-
|
|
576
|
+
k && /* @__PURE__ */ o(
|
|
577
577
|
We,
|
|
578
578
|
{
|
|
579
579
|
"data-testid": Nt,
|
|
@@ -582,29 +582,29 @@ function No({
|
|
|
582
582
|
onClose: () => Te(!1),
|
|
583
583
|
width: de,
|
|
584
584
|
titleText: Ot,
|
|
585
|
-
debugOpacity:
|
|
585
|
+
debugOpacity: l,
|
|
586
586
|
showCloseArrow: ee === "both" || ee === "close",
|
|
587
587
|
onOpened: Ft,
|
|
588
588
|
onClosed: Pt,
|
|
589
|
-
navBarOpen:
|
|
590
|
-
navBarWidthOpen:
|
|
589
|
+
navBarOpen: d,
|
|
590
|
+
navBarWidthOpen: m,
|
|
591
591
|
navBarWidthClosed: f,
|
|
592
592
|
children: Et
|
|
593
593
|
}
|
|
594
594
|
),
|
|
595
595
|
/* @__PURE__ */ o(
|
|
596
596
|
bn,
|
|
597
|
-
|
|
597
|
+
s(s({
|
|
598
598
|
titleText: t,
|
|
599
|
-
"data-testid":
|
|
599
|
+
"data-testid": a
|
|
600
600
|
}, N && W === "push" ? {
|
|
601
601
|
leftPanel: {
|
|
602
602
|
open: pe,
|
|
603
|
-
width:
|
|
603
|
+
width: x,
|
|
604
604
|
onOpen: () => Ie(!0),
|
|
605
605
|
showOpenArrow: w === "both" || w === "open"
|
|
606
606
|
}
|
|
607
|
-
} : {}),
|
|
607
|
+
} : {}), k && ye === "push" ? {
|
|
608
608
|
rightPanel: {
|
|
609
609
|
open: ue,
|
|
610
610
|
width: de,
|
|
@@ -615,10 +615,10 @@ function No({
|
|
|
615
615
|
),
|
|
616
616
|
/* @__PURE__ */ o(
|
|
617
617
|
yn,
|
|
618
|
-
|
|
618
|
+
y(s(s({}, W === "push" ? {
|
|
619
619
|
leftPanel: {
|
|
620
620
|
open: pe,
|
|
621
|
-
width:
|
|
621
|
+
width: x
|
|
622
622
|
}
|
|
623
623
|
} : {}), ye === "push" ? {
|
|
624
624
|
rightPanel: {
|
|
@@ -626,7 +626,7 @@ function No({
|
|
|
626
626
|
width: de
|
|
627
627
|
}
|
|
628
628
|
} : {}), {
|
|
629
|
-
children: /* @__PURE__ */ o($n,
|
|
629
|
+
children: /* @__PURE__ */ o($n, y(s({ "data-testid": p }, c), { children: e }))
|
|
630
630
|
})
|
|
631
631
|
)
|
|
632
632
|
] });
|
|
@@ -646,7 +646,7 @@ const ie = "Navbar", Y = {
|
|
|
646
646
|
// userInfoHolder: `${PREFIX}-userInfoHolder`,
|
|
647
647
|
// settings: `${PREFIX}-settings`,
|
|
648
648
|
// pieChartIcon: `${PREFIX}-pieChartIcon`,
|
|
649
|
-
}, Fn = R(
|
|
649
|
+
}, Fn = R($, { name: "NavBar" })(({ theme: e }) => ({
|
|
650
650
|
[`&.${Y.root}`]: {
|
|
651
651
|
display: "flex"
|
|
652
652
|
},
|
|
@@ -672,7 +672,7 @@ const ie = "Navbar", Y = {
|
|
|
672
672
|
const t = se();
|
|
673
673
|
return /* @__PURE__ */ o(
|
|
674
674
|
Ht,
|
|
675
|
-
|
|
675
|
+
s({
|
|
676
676
|
easing: t.transitions.easing.sharp,
|
|
677
677
|
timeout: {
|
|
678
678
|
enter: t.transitions.duration.enteringScreen,
|
|
@@ -688,24 +688,24 @@ const ie = "Navbar", Y = {
|
|
|
688
688
|
backgroundColor: (n = (t = e == null ? void 0 : e.navBar) == null ? void 0 : t.backgroundColor) != null ? n : "white"
|
|
689
689
|
// Provide default so tests don't need to wrap theme provider
|
|
690
690
|
};
|
|
691
|
-
}, ze = (e, t) =>
|
|
691
|
+
}, ze = (e, t) => s({
|
|
692
692
|
width: t,
|
|
693
693
|
transition: X(e, "width", "entering")
|
|
694
|
-
}, Dt(e)), Ue = (e, t) =>
|
|
694
|
+
}, Dt(e)), Ue = (e, t) => s({
|
|
695
695
|
width: t,
|
|
696
696
|
transition: X(e, "width", "leaving")
|
|
697
697
|
}, Dt(e)), Nn = R(we, {
|
|
698
698
|
shouldForwardProp: (e) => !["widthOpen", "widthClosed", "isSmallScreen"].includes(e)
|
|
699
|
-
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) =>
|
|
699
|
+
})(({ theme: e, open: t, widthOpen: n, widthClosed: i, isSmallScreen: r }) => s(s({
|
|
700
700
|
flexShrink: 0,
|
|
701
701
|
whiteSpace: "nowrap",
|
|
702
702
|
boxSizing: "border-box",
|
|
703
703
|
display: "flex",
|
|
704
704
|
flexDirection: "column"
|
|
705
|
-
}, t &&
|
|
705
|
+
}, t && y(s({}, ze(e, n)), {
|
|
706
706
|
backgroundColor: "",
|
|
707
707
|
"& .MuiDrawer-paper": ze(e, n)
|
|
708
|
-
})), !t &&
|
|
708
|
+
})), !t && y(s({}, Ue(e, r ? n : i)), {
|
|
709
709
|
backgroundColor: "",
|
|
710
710
|
"& .MuiDrawer-paper": Ue(e, r ? n : i)
|
|
711
711
|
})));
|
|
@@ -721,7 +721,7 @@ const Ge = ["#A62A21", "#7e3794", "#0B51C1", "#3A6024", "#A81563", "#B3003C"], V
|
|
|
721
721
|
function _n({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
722
722
|
const r = se();
|
|
723
723
|
return /* @__PURE__ */ u(
|
|
724
|
-
|
|
724
|
+
$,
|
|
725
725
|
{
|
|
726
726
|
sx: {
|
|
727
727
|
paddingTop: 3,
|
|
@@ -732,7 +732,7 @@ function _n({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
|
732
732
|
},
|
|
733
733
|
children: [
|
|
734
734
|
!i && /* @__PURE__ */ o(
|
|
735
|
-
|
|
735
|
+
$,
|
|
736
736
|
{
|
|
737
737
|
sx: {
|
|
738
738
|
width: n ? "5rem" : "2rem",
|
|
@@ -754,7 +754,7 @@ function _n({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
756
|
i && /* @__PURE__ */ o(
|
|
757
|
-
|
|
757
|
+
$,
|
|
758
758
|
{
|
|
759
759
|
sx: {
|
|
760
760
|
width: n ? "5rem" : "2rem",
|
|
@@ -769,7 +769,7 @@ function _n({ user: e, domainCode: t, open: n, useNewAvatar: i = !1 }) {
|
|
|
769
769
|
] }) }) : /* @__PURE__ */ o(Me, {})
|
|
770
770
|
}
|
|
771
771
|
),
|
|
772
|
-
/* @__PURE__ */ o(Pn, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Wt, { in: n, children: /* @__PURE__ */ u(
|
|
772
|
+
/* @__PURE__ */ o(Pn, { sx: { width: "100%" }, in: n, children: /* @__PURE__ */ o(Wt, { in: n, children: /* @__PURE__ */ u($, { width: "100%", display: "flex", flexDirection: "column", alignItems: "center", children: [
|
|
773
773
|
e != null && e.name ? /* @__PURE__ */ o(B, { children: e == null ? void 0 : e.name }) : /* @__PURE__ */ o(Ne, { animation: !1, width: "50%" }),
|
|
774
774
|
t ? /* @__PURE__ */ o(B, { children: t.toUpperCase() }) : /* @__PURE__ */ o(Ne, { animation: !1, width: "25%" })
|
|
775
775
|
] }) }) })
|
|
@@ -783,13 +783,13 @@ function Mn({
|
|
|
783
783
|
widthOpen: n,
|
|
784
784
|
"data-testid": i,
|
|
785
785
|
top: r,
|
|
786
|
-
middle:
|
|
786
|
+
middle: l,
|
|
787
787
|
bottom: c,
|
|
788
|
-
user:
|
|
789
|
-
domainCode:
|
|
790
|
-
useNewAvatar:
|
|
788
|
+
user: p,
|
|
789
|
+
domainCode: a,
|
|
790
|
+
useNewAvatar: d = !1
|
|
791
791
|
}) {
|
|
792
|
-
const
|
|
792
|
+
const m = vt(), f = dt(Z);
|
|
793
793
|
return /* @__PURE__ */ o(Fn, { className: Y.root, "data-testid": i, children: /* @__PURE__ */ u(
|
|
794
794
|
Nn,
|
|
795
795
|
{
|
|
@@ -797,24 +797,24 @@ function Mn({
|
|
|
797
797
|
widthOpen: n,
|
|
798
798
|
widthClosed: t,
|
|
799
799
|
anchor: "left",
|
|
800
|
-
variant:
|
|
800
|
+
variant: m ? "temporary" : "permanent",
|
|
801
801
|
PaperProps: {
|
|
802
802
|
component: "nav"
|
|
803
803
|
},
|
|
804
804
|
onClose: () => {
|
|
805
805
|
f(!1);
|
|
806
806
|
},
|
|
807
|
-
isSmallScreen:
|
|
807
|
+
isSmallScreen: m,
|
|
808
808
|
children: [
|
|
809
|
-
!
|
|
810
|
-
r && /* @__PURE__ */ u(
|
|
809
|
+
!m && /* @__PURE__ */ o(zt, {}),
|
|
810
|
+
r && /* @__PURE__ */ u($, { flexGrow: "0", children: [
|
|
811
811
|
r,
|
|
812
812
|
/* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } })
|
|
813
813
|
] }),
|
|
814
|
-
/* @__PURE__ */ o(
|
|
815
|
-
/* @__PURE__ */ u(
|
|
814
|
+
/* @__PURE__ */ o($, { flexGrow: "1", children: Array.isArray(l) ? /* @__PURE__ */ o(En, { links: l }) : l }),
|
|
815
|
+
/* @__PURE__ */ u($, { flexGrow: "0", children: [
|
|
816
816
|
/* @__PURE__ */ o(Le, { variant: "middle", sx: { marginY: "0.5rem" } }),
|
|
817
|
-
/* @__PURE__ */ o(_n, { user:
|
|
817
|
+
/* @__PURE__ */ o(_n, { user: p, domainCode: a, open: e, useNewAvatar: d }),
|
|
818
818
|
c && /* @__PURE__ */ o(F, { children: c })
|
|
819
819
|
] })
|
|
820
820
|
]
|
|
@@ -828,14 +828,14 @@ function Rn({
|
|
|
828
828
|
noPadding: i
|
|
829
829
|
}) {
|
|
830
830
|
return /* @__PURE__ */ o(
|
|
831
|
-
|
|
831
|
+
$,
|
|
832
832
|
{
|
|
833
833
|
sx: {
|
|
834
834
|
overflow: "auto",
|
|
835
835
|
height: `calc(100vh - ${t}px)`,
|
|
836
836
|
flexGrow: 1
|
|
837
837
|
},
|
|
838
|
-
children: i ? /* @__PURE__ */ o(
|
|
838
|
+
children: i ? /* @__PURE__ */ o($, { component: "main", id: "main-content", height: "inherit", children: e }) : /* @__PURE__ */ o(
|
|
839
839
|
et,
|
|
840
840
|
{
|
|
841
841
|
component: "main",
|
|
@@ -857,7 +857,7 @@ function zn({
|
|
|
857
857
|
"data-testid": n,
|
|
858
858
|
middle: i
|
|
859
859
|
}) {
|
|
860
|
-
const r = dt(Z),
|
|
860
|
+
const r = dt(Z), l = () => r((a) => !a), c = se(), p = vt();
|
|
861
861
|
return /* @__PURE__ */ o("header", { "data-testid": n, children: /* @__PURE__ */ u(
|
|
862
862
|
je,
|
|
863
863
|
{
|
|
@@ -873,7 +873,7 @@ function zn({
|
|
|
873
873
|
gap: 2,
|
|
874
874
|
flexShrink: 0,
|
|
875
875
|
height: t,
|
|
876
|
-
zIndex:
|
|
876
|
+
zIndex: p ? 0 : c.zIndex.drawer + 1
|
|
877
877
|
},
|
|
878
878
|
children: [
|
|
879
879
|
/* @__PURE__ */ o(
|
|
@@ -882,7 +882,7 @@ function zn({
|
|
|
882
882
|
size: "medium",
|
|
883
883
|
color: "inherit",
|
|
884
884
|
sx: { padding: 1.5, marginLeft: "12px" },
|
|
885
|
-
onClick:
|
|
885
|
+
onClick: l,
|
|
886
886
|
children: /* @__PURE__ */ o(jt, { fontSize: "medium" })
|
|
887
887
|
}
|
|
888
888
|
),
|
|
@@ -898,52 +898,52 @@ function Lo({
|
|
|
898
898
|
initialNavBarOpen: n,
|
|
899
899
|
pageContainerProps: i,
|
|
900
900
|
pageContentDataTestId: r,
|
|
901
|
-
topBarDataTestId:
|
|
901
|
+
topBarDataTestId: l,
|
|
902
902
|
navBarDataTestId: c,
|
|
903
|
-
navBarMiddle:
|
|
904
|
-
navBarBottom:
|
|
905
|
-
user:
|
|
906
|
-
domainCode:
|
|
903
|
+
navBarMiddle: p,
|
|
904
|
+
navBarBottom: a,
|
|
905
|
+
user: d,
|
|
906
|
+
domainCode: m,
|
|
907
907
|
useNewAvatar: f = !1
|
|
908
908
|
}) {
|
|
909
909
|
ut([
|
|
910
910
|
[Z, n != null ? n : !0],
|
|
911
911
|
[ve, t != null ? t : ""]
|
|
912
912
|
]);
|
|
913
|
-
const
|
|
914
|
-
return /* @__PURE__ */ u(
|
|
913
|
+
const v = _e(Z), [g] = V(wt), [A] = V(At), S = _e(ve), [D] = V(St), [I] = V(On), [T] = V(bt);
|
|
914
|
+
return /* @__PURE__ */ u($, { children: [
|
|
915
915
|
/* @__PURE__ */ o(Ut, {}),
|
|
916
916
|
/* @__PURE__ */ o(
|
|
917
917
|
zn,
|
|
918
918
|
{
|
|
919
|
-
titleText:
|
|
920
|
-
"data-testid":
|
|
921
|
-
height:
|
|
919
|
+
titleText: S,
|
|
920
|
+
"data-testid": l,
|
|
921
|
+
height: D,
|
|
922
922
|
middle: I
|
|
923
923
|
}
|
|
924
924
|
),
|
|
925
|
-
/* @__PURE__ */ u(
|
|
925
|
+
/* @__PURE__ */ u($, { sx: { display: "flex" }, children: [
|
|
926
926
|
/* @__PURE__ */ o(
|
|
927
927
|
Mn,
|
|
928
928
|
{
|
|
929
|
-
open:
|
|
929
|
+
open: v,
|
|
930
930
|
top: T,
|
|
931
|
-
middle:
|
|
932
|
-
bottom:
|
|
933
|
-
user:
|
|
934
|
-
domainCode:
|
|
935
|
-
widthOpen:
|
|
936
|
-
widthClosed:
|
|
937
|
-
offsetTop:
|
|
931
|
+
middle: p,
|
|
932
|
+
bottom: a,
|
|
933
|
+
user: d,
|
|
934
|
+
domainCode: m,
|
|
935
|
+
widthOpen: g,
|
|
936
|
+
widthClosed: A,
|
|
937
|
+
offsetTop: D,
|
|
938
938
|
"data-testid": c,
|
|
939
939
|
useNewAvatar: f
|
|
940
940
|
}
|
|
941
941
|
),
|
|
942
942
|
/* @__PURE__ */ o(
|
|
943
943
|
Rn,
|
|
944
|
-
|
|
944
|
+
y(s({
|
|
945
945
|
"data-testid": r,
|
|
946
|
-
topBarHeight:
|
|
946
|
+
topBarHeight: D
|
|
947
947
|
}, i), {
|
|
948
948
|
children: e
|
|
949
949
|
})
|
|
@@ -957,47 +957,47 @@ const kt = ({
|
|
|
957
957
|
children: n,
|
|
958
958
|
maxWidth: i,
|
|
959
959
|
primaryButton: r,
|
|
960
|
-
secondaryButton:
|
|
960
|
+
secondaryButton: l,
|
|
961
961
|
onClose: c,
|
|
962
|
-
sx:
|
|
963
|
-
"data-testid":
|
|
964
|
-
disableCloseOnBackdropOrEscape:
|
|
965
|
-
isLoading:
|
|
962
|
+
sx: p,
|
|
963
|
+
"data-testid": a,
|
|
964
|
+
disableCloseOnBackdropOrEscape: d = !1,
|
|
965
|
+
isLoading: m = !1
|
|
966
966
|
}) => {
|
|
967
|
-
var
|
|
968
|
-
const [f,
|
|
967
|
+
var g, A;
|
|
968
|
+
const [f, v] = E(!1);
|
|
969
969
|
return /* @__PURE__ */ u(
|
|
970
970
|
tt,
|
|
971
971
|
{
|
|
972
972
|
open: e,
|
|
973
|
-
onClose: (
|
|
974
|
-
|
|
973
|
+
onClose: (S, D) => L(void 0, null, function* () {
|
|
974
|
+
d && (D === "backdropClick" || D === "escapeKeyDown") || f || (l != null && l.onClick ? yield l.onClick() : c());
|
|
975
975
|
}),
|
|
976
976
|
fullWidth: !0,
|
|
977
977
|
maxWidth: i != null ? i : "xs",
|
|
978
|
-
"data-testid":
|
|
979
|
-
sx:
|
|
978
|
+
"data-testid": a,
|
|
979
|
+
sx: p,
|
|
980
980
|
children: [
|
|
981
|
-
|
|
981
|
+
m && /* @__PURE__ */ o(nt, { sx: { height: "4px", marginBottom: "-4px" } }),
|
|
982
982
|
/* @__PURE__ */ o(ot, { children: t }),
|
|
983
983
|
/* @__PURE__ */ o(it, { sx: { "& > :last-child": { marginBottom: 0 } }, children: n }),
|
|
984
984
|
/* @__PURE__ */ u(rt, { children: [
|
|
985
985
|
/* @__PURE__ */ o(
|
|
986
986
|
ae,
|
|
987
987
|
{
|
|
988
|
-
onClick: (
|
|
989
|
-
"data-testid":
|
|
990
|
-
disabled: (
|
|
991
|
-
color:
|
|
992
|
-
children: (
|
|
988
|
+
onClick: (g = l == null ? void 0 : l.onClick) != null ? g : c,
|
|
989
|
+
"data-testid": l == null ? void 0 : l.testId,
|
|
990
|
+
disabled: (l == null ? void 0 : l.disabled) || f,
|
|
991
|
+
color: l == null ? void 0 : l.buttonColor,
|
|
992
|
+
children: (A = l == null ? void 0 : l.text) != null ? A : "Cancel"
|
|
993
993
|
}
|
|
994
994
|
),
|
|
995
995
|
r && /* @__PURE__ */ o(
|
|
996
996
|
ae,
|
|
997
997
|
{
|
|
998
998
|
onClick: () => L(void 0, null, function* () {
|
|
999
|
-
var
|
|
1000
|
-
|
|
999
|
+
var S;
|
|
1000
|
+
v(!0), yield (S = r.onClick) == null ? void 0 : S.call(r), v(!1);
|
|
1001
1001
|
}),
|
|
1002
1002
|
"data-testid": r.testId,
|
|
1003
1003
|
disabled: r.disabled || f,
|
|
@@ -1017,7 +1017,7 @@ const kt = ({
|
|
|
1017
1017
|
inputValue: r
|
|
1018
1018
|
}) => an({
|
|
1019
1019
|
queryFn: () => e && r.length < e ? t != null ? t : [] : t ? t.filter(
|
|
1020
|
-
(
|
|
1020
|
+
(l) => l.label.toLowerCase().includes(r.toLowerCase())
|
|
1021
1021
|
) : n(r),
|
|
1022
1022
|
queryKey: ["autocomplete", i, r]
|
|
1023
1023
|
});
|
|
@@ -1028,86 +1028,86 @@ function _o({
|
|
|
1028
1028
|
onChange: n,
|
|
1029
1029
|
minLength: i = 0,
|
|
1030
1030
|
label: r,
|
|
1031
|
-
value:
|
|
1031
|
+
value: l,
|
|
1032
1032
|
"data-testid": c,
|
|
1033
|
-
sx:
|
|
1034
|
-
boxSx:
|
|
1035
|
-
textFieldColor:
|
|
1036
|
-
textFieldVariant:
|
|
1033
|
+
sx: p,
|
|
1034
|
+
boxSx: a,
|
|
1035
|
+
textFieldColor: d,
|
|
1036
|
+
textFieldVariant: m = "filled",
|
|
1037
1037
|
loadingText: f = "Loading...",
|
|
1038
|
-
noOptionsText:
|
|
1039
|
-
popupIcon:
|
|
1040
|
-
error:
|
|
1041
|
-
helperText:
|
|
1042
|
-
preLoadedOptions:
|
|
1038
|
+
noOptionsText: v = "No options",
|
|
1039
|
+
popupIcon: g = /* @__PURE__ */ o(tn, {}),
|
|
1040
|
+
error: A = !1,
|
|
1041
|
+
helperText: S = "",
|
|
1042
|
+
preLoadedOptions: D = void 0,
|
|
1043
1043
|
disablePortal: I = !1,
|
|
1044
1044
|
disableIconFlip: T = !1
|
|
1045
1045
|
}) {
|
|
1046
|
-
const [P, N] = E(""),
|
|
1047
|
-
const
|
|
1048
|
-
n(
|
|
1049
|
-
}, { data:
|
|
1046
|
+
const [P, N] = E(""), k = (h, C) => {
|
|
1047
|
+
const x = l.filter((w) => w.id !== C);
|
|
1048
|
+
n(x, "delete", h);
|
|
1049
|
+
}, { data: b, isLoading: H } = yt({
|
|
1050
1050
|
inputValue: P,
|
|
1051
1051
|
label: r,
|
|
1052
1052
|
lookup: e,
|
|
1053
1053
|
minLength: i,
|
|
1054
|
-
preLoadedOptions:
|
|
1054
|
+
preLoadedOptions: D
|
|
1055
1055
|
}), W = P.length >= i;
|
|
1056
1056
|
return /* @__PURE__ */ u("div", { "data-testid": c, children: [
|
|
1057
1057
|
/* @__PURE__ */ o(
|
|
1058
1058
|
Se,
|
|
1059
1059
|
{
|
|
1060
|
-
sx:
|
|
1060
|
+
sx: s(s({}, p), T ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
1061
1061
|
"data-testid": c ? `${c}:Autocomplete` : void 0,
|
|
1062
1062
|
disablePortal: I,
|
|
1063
1063
|
multiple: !0,
|
|
1064
|
-
getOptionLabel: (
|
|
1064
|
+
getOptionLabel: (h) => typeof h == "string" ? h : h.label,
|
|
1065
1065
|
loading: W ? H : !1,
|
|
1066
|
-
options: [...
|
|
1066
|
+
options: [...l, ...b != null ? b : []],
|
|
1067
1067
|
filterSelectedOptions: !0,
|
|
1068
1068
|
includeInputInList: !0,
|
|
1069
|
-
value:
|
|
1070
|
-
onChange: (
|
|
1071
|
-
n(
|
|
1069
|
+
value: l,
|
|
1070
|
+
onChange: (h, C, x) => {
|
|
1071
|
+
n(C, x, h);
|
|
1072
1072
|
},
|
|
1073
|
-
onInputChange: (
|
|
1074
|
-
noOptionsText: W ?
|
|
1073
|
+
onInputChange: (h, C) => N(C),
|
|
1074
|
+
noOptionsText: W ? v : "Start typing to search",
|
|
1075
1075
|
loadingText: f,
|
|
1076
|
-
popupIcon:
|
|
1077
|
-
renderInput: (
|
|
1076
|
+
popupIcon: g,
|
|
1077
|
+
renderInput: (h) => /* @__PURE__ */ o(
|
|
1078
1078
|
be,
|
|
1079
|
-
|
|
1079
|
+
y(s({}, h), {
|
|
1080
1080
|
label: r,
|
|
1081
1081
|
fullWidth: !0,
|
|
1082
|
-
variant:
|
|
1083
|
-
error:
|
|
1084
|
-
helperText:
|
|
1085
|
-
InputProps:
|
|
1082
|
+
variant: m,
|
|
1083
|
+
error: A,
|
|
1084
|
+
helperText: S,
|
|
1085
|
+
InputProps: y(s({}, h.InputProps), {
|
|
1086
1086
|
endAdornment: /* @__PURE__ */ u(F, { children: [
|
|
1087
1087
|
H ? /* @__PURE__ */ o(De, { color: "inherit", size: 20 }) : null,
|
|
1088
|
-
|
|
1088
|
+
h.InputProps.endAdornment
|
|
1089
1089
|
] })
|
|
1090
1090
|
}),
|
|
1091
1091
|
"data-testid": c ? `${c}:Autocomplete:TextField` : void 0,
|
|
1092
|
-
onKeyDown: (
|
|
1093
|
-
(
|
|
1092
|
+
onKeyDown: (C) => {
|
|
1093
|
+
(C.key === "Backspace" || C.key === "Delete") && C.stopPropagation();
|
|
1094
1094
|
},
|
|
1095
|
-
color:
|
|
1095
|
+
color: d
|
|
1096
1096
|
})
|
|
1097
1097
|
),
|
|
1098
1098
|
renderTags: () => null,
|
|
1099
|
-
isOptionEqualToValue: (
|
|
1100
|
-
renderOption: (
|
|
1099
|
+
isOptionEqualToValue: (h, C) => h.id === C.id,
|
|
1100
|
+
renderOption: (h, C, x) => {
|
|
1101
1101
|
if (t) {
|
|
1102
|
-
const w = on(
|
|
1102
|
+
const w = on(C.label, x.inputValue, {
|
|
1103
1103
|
insideWords: !0,
|
|
1104
1104
|
findAllOccurrences: !0
|
|
1105
|
-
}), M = rn(
|
|
1105
|
+
}), M = rn(C.label, w);
|
|
1106
1106
|
return /* @__PURE__ */ xe(
|
|
1107
1107
|
"li",
|
|
1108
|
-
|
|
1109
|
-
key:
|
|
1110
|
-
"data-testid": c ? `${c}:Autocomplete:option(${
|
|
1108
|
+
y(s({}, h), {
|
|
1109
|
+
key: C.id,
|
|
1110
|
+
"data-testid": c ? `${c}:Autocomplete:option(${C.id.toString()})` : void 0
|
|
1111
1111
|
}),
|
|
1112
1112
|
/* @__PURE__ */ o("div", { children: M.map((j, le) => /* @__PURE__ */ o(
|
|
1113
1113
|
"span",
|
|
@@ -1123,16 +1123,16 @@ function _o({
|
|
|
1123
1123
|
} else
|
|
1124
1124
|
return /* @__PURE__ */ xe(
|
|
1125
1125
|
"li",
|
|
1126
|
-
|
|
1127
|
-
key:
|
|
1128
|
-
"data-testid": c ? `${c}:option(${
|
|
1126
|
+
y(s({}, h), {
|
|
1127
|
+
key: C.id,
|
|
1128
|
+
"data-testid": c ? `${c}:option(${C.id.toString()})` : void 0
|
|
1129
1129
|
}),
|
|
1130
|
-
|
|
1130
|
+
C.label
|
|
1131
1131
|
);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
|
-
|
|
1135
|
+
l.length > 0 && /* @__PURE__ */ o($, { sx: a, children: l.map((h) => /* @__PURE__ */ o(
|
|
1136
1136
|
Gt,
|
|
1137
1137
|
{
|
|
1138
1138
|
sx: {
|
|
@@ -1143,7 +1143,7 @@ function _o({
|
|
|
1143
1143
|
label: /* @__PURE__ */ o(
|
|
1144
1144
|
Vt,
|
|
1145
1145
|
{
|
|
1146
|
-
title:
|
|
1146
|
+
title: h.tooltipContent || "",
|
|
1147
1147
|
placement: "bottom-start",
|
|
1148
1148
|
PopperProps: {
|
|
1149
1149
|
modifiers: [
|
|
@@ -1155,19 +1155,19 @@ function _o({
|
|
|
1155
1155
|
}
|
|
1156
1156
|
]
|
|
1157
1157
|
},
|
|
1158
|
-
children: /* @__PURE__ */ o(B, { style: { whiteSpace: "normal" }, children:
|
|
1158
|
+
children: /* @__PURE__ */ o(B, { style: { whiteSpace: "normal" }, children: h.chipLabel ? h.chipLabel : h.label })
|
|
1159
1159
|
}
|
|
1160
1160
|
),
|
|
1161
|
-
"data-testid": c ? `${c}:Chip(${
|
|
1162
|
-
onDelete: (
|
|
1161
|
+
"data-testid": c ? `${c}:Chip(${h.id.toString()})` : void 0,
|
|
1162
|
+
onDelete: (C) => k(C, h.id),
|
|
1163
1163
|
deleteIcon: /* @__PURE__ */ o(
|
|
1164
1164
|
en,
|
|
1165
1165
|
{
|
|
1166
|
-
"data-testid": c ? `${c}:Chip(${
|
|
1166
|
+
"data-testid": c ? `${c}:Chip(${h.id.toString()}):deleteIcon` : void 0
|
|
1167
1167
|
}
|
|
1168
1168
|
)
|
|
1169
1169
|
},
|
|
1170
|
-
|
|
1170
|
+
h.id
|
|
1171
1171
|
)) })
|
|
1172
1172
|
] });
|
|
1173
1173
|
}
|
|
@@ -1178,65 +1178,65 @@ const Mo = ({
|
|
|
1178
1178
|
label: n,
|
|
1179
1179
|
value: i,
|
|
1180
1180
|
sx: r,
|
|
1181
|
-
textFieldColor:
|
|
1181
|
+
textFieldColor: l,
|
|
1182
1182
|
textFieldVariant: c = "filled",
|
|
1183
|
-
"data-testid":
|
|
1184
|
-
noOptionsText:
|
|
1185
|
-
minLength:
|
|
1186
|
-
disablePortal:
|
|
1183
|
+
"data-testid": p,
|
|
1184
|
+
noOptionsText: a = "No options",
|
|
1185
|
+
minLength: d = 3,
|
|
1186
|
+
disablePortal: m = !1,
|
|
1187
1187
|
preLoadedOptions: f,
|
|
1188
|
-
helperText:
|
|
1189
|
-
disabled:
|
|
1190
|
-
popupIcon:
|
|
1191
|
-
disableIconFlip:
|
|
1188
|
+
helperText: v = "",
|
|
1189
|
+
disabled: g,
|
|
1190
|
+
popupIcon: A,
|
|
1191
|
+
disableIconFlip: S
|
|
1192
1192
|
}) => {
|
|
1193
|
-
const [
|
|
1194
|
-
inputValue:
|
|
1193
|
+
const [D, I] = E(""), { data: T, isLoading: P } = yt({
|
|
1194
|
+
inputValue: D,
|
|
1195
1195
|
label: n,
|
|
1196
1196
|
lookup: e,
|
|
1197
|
-
minLength:
|
|
1197
|
+
minLength: d != null ? d : 0,
|
|
1198
1198
|
preLoadedOptions: f
|
|
1199
|
-
}), N =
|
|
1200
|
-
return /* @__PURE__ */ o("div", { "data-testid":
|
|
1199
|
+
}), N = D.length >= d;
|
|
1200
|
+
return /* @__PURE__ */ o("div", { "data-testid": p, children: /* @__PURE__ */ o(qt, { direction: "row", spacing: 1, children: /* @__PURE__ */ o(
|
|
1201
1201
|
Se,
|
|
1202
1202
|
{
|
|
1203
|
-
sx:
|
|
1204
|
-
"data-testid":
|
|
1203
|
+
sx: s(s({}, r), S ? { ".MuiAutocomplete-popupIndicatorOpen": { transform: "rotate(0deg)" } } : {}),
|
|
1204
|
+
"data-testid": p ? `${p}:Autocomplete` : void 0,
|
|
1205
1205
|
loading: N ? P : !1,
|
|
1206
1206
|
options: T != null ? T : [],
|
|
1207
|
-
onChange: (
|
|
1208
|
-
t(
|
|
1207
|
+
onChange: (k, b) => {
|
|
1208
|
+
t(k, b);
|
|
1209
1209
|
},
|
|
1210
|
-
disablePortal:
|
|
1211
|
-
filterOptions: (
|
|
1210
|
+
disablePortal: m,
|
|
1211
|
+
filterOptions: (k) => k,
|
|
1212
1212
|
value: i,
|
|
1213
|
-
noOptionsText: N ?
|
|
1214
|
-
getOptionLabel: (
|
|
1215
|
-
popupIcon:
|
|
1216
|
-
renderInput: (
|
|
1213
|
+
noOptionsText: N ? a : "Start typing to search",
|
|
1214
|
+
getOptionLabel: (k) => k.label,
|
|
1215
|
+
popupIcon: A,
|
|
1216
|
+
renderInput: (k) => /* @__PURE__ */ o(
|
|
1217
1217
|
be,
|
|
1218
|
-
|
|
1219
|
-
"data-testid":
|
|
1220
|
-
},
|
|
1218
|
+
y(s({
|
|
1219
|
+
"data-testid": p ? `${p}:Autocomplete:TextField` : void 0
|
|
1220
|
+
}, k), {
|
|
1221
1221
|
variant: c,
|
|
1222
1222
|
label: n,
|
|
1223
|
-
color:
|
|
1224
|
-
helperText:
|
|
1223
|
+
color: l,
|
|
1224
|
+
helperText: v
|
|
1225
1225
|
})
|
|
1226
1226
|
),
|
|
1227
|
-
isOptionEqualToValue: (
|
|
1228
|
-
onInputChange: (
|
|
1229
|
-
I(
|
|
1227
|
+
isOptionEqualToValue: (k, b) => k.id === b.id,
|
|
1228
|
+
onInputChange: (k, b) => {
|
|
1229
|
+
I(b);
|
|
1230
1230
|
},
|
|
1231
|
-
renderOption: (
|
|
1231
|
+
renderOption: (k, b) => /* @__PURE__ */ xe(
|
|
1232
1232
|
"li",
|
|
1233
|
-
|
|
1234
|
-
key:
|
|
1235
|
-
"data-testid":
|
|
1233
|
+
y(s({}, k), {
|
|
1234
|
+
key: b.id,
|
|
1235
|
+
"data-testid": p ? `${p}:Autocomplete:option(${b.id.toString()})` : void 0
|
|
1236
1236
|
}),
|
|
1237
|
-
|
|
1237
|
+
b.label
|
|
1238
1238
|
),
|
|
1239
|
-
disabled:
|
|
1239
|
+
disabled: g
|
|
1240
1240
|
}
|
|
1241
1241
|
) }) });
|
|
1242
1242
|
}, Un = (e) => {
|
|
@@ -1244,8 +1244,8 @@ const Mo = ({
|
|
|
1244
1244
|
return -1;
|
|
1245
1245
|
try {
|
|
1246
1246
|
const n = e.split(".")[1].replace(/-/g, "+").replace(/_/g, "/"), i = decodeURIComponent(
|
|
1247
|
-
cn.from(n, "base64").toString("utf8").split("").map(function(
|
|
1248
|
-
return "%" + ("00" +
|
|
1247
|
+
cn.from(n, "base64").toString("utf8").split("").map(function(l) {
|
|
1248
|
+
return "%" + ("00" + l.charCodeAt(0).toString(16)).slice(-2);
|
|
1249
1249
|
}).join("")
|
|
1250
1250
|
), r = JSON.parse(i);
|
|
1251
1251
|
return r != null && r.exp ? r.exp : -1;
|
|
@@ -1257,32 +1257,32 @@ const Mo = ({
|
|
|
1257
1257
|
closeHandler: t,
|
|
1258
1258
|
setAuth0ExpiryTime: n
|
|
1259
1259
|
}) => {
|
|
1260
|
-
const { logout: i, getAccessTokenSilently: r } = ht(), [
|
|
1260
|
+
const { logout: i, getAccessTokenSilently: r } = ht(), [l, c] = E(0), p = () => L(void 0, null, function* () {
|
|
1261
1261
|
i({ logoutParams: { returnTo: `${window.location.origin}` } });
|
|
1262
|
-
}),
|
|
1263
|
-
c(
|
|
1262
|
+
}), a = () => L(void 0, null, function* () {
|
|
1263
|
+
c(l + 1), t();
|
|
1264
1264
|
});
|
|
1265
1265
|
return K(() => {
|
|
1266
1266
|
(() => L(void 0, null, function* () {
|
|
1267
|
-
if (
|
|
1268
|
-
const
|
|
1269
|
-
n(
|
|
1267
|
+
if (l > 0) {
|
|
1268
|
+
const v = yield r({ cacheMode: "off" }), g = Un(v) * 1e3;
|
|
1269
|
+
n(g);
|
|
1270
1270
|
}
|
|
1271
1271
|
}))();
|
|
1272
|
-
}, [
|
|
1272
|
+
}, [l, r, n]), /* @__PURE__ */ o(
|
|
1273
1273
|
kt,
|
|
1274
1274
|
{
|
|
1275
1275
|
isOpen: e,
|
|
1276
1276
|
primaryButton: {
|
|
1277
1277
|
text: "Continue",
|
|
1278
|
-
onClick:
|
|
1278
|
+
onClick: a,
|
|
1279
1279
|
disabled: !1,
|
|
1280
1280
|
testId: "PreferencesDialog",
|
|
1281
1281
|
buttonColor: "secondary"
|
|
1282
1282
|
},
|
|
1283
1283
|
secondaryButton: {
|
|
1284
1284
|
text: "Log out",
|
|
1285
|
-
onClick:
|
|
1285
|
+
onClick: p,
|
|
1286
1286
|
disabled: !1,
|
|
1287
1287
|
testId: "PreferencesDialog",
|
|
1288
1288
|
buttonColor: "secondary"
|
|
@@ -1318,58 +1318,59 @@ function Ho({
|
|
|
1318
1318
|
throwErrors: n = "none",
|
|
1319
1319
|
disableConsoleLogging: i = !1,
|
|
1320
1320
|
onError: r = () => {
|
|
1321
|
-
}
|
|
1321
|
+
},
|
|
1322
|
+
withPopup: l = !1
|
|
1322
1323
|
}) {
|
|
1323
|
-
var
|
|
1324
|
-
const { isAuthenticated:
|
|
1324
|
+
var v, g;
|
|
1325
|
+
const { isAuthenticated: c, isLoading: p, error: a, loginWithRedirect: d, loginWithPopup: m, logout: f } = ht();
|
|
1325
1326
|
if (K(() => {
|
|
1326
|
-
|
|
1327
|
-
}, [
|
|
1328
|
-
if (
|
|
1327
|
+
a && r(a);
|
|
1328
|
+
}, [a, r]), K(() => {
|
|
1329
|
+
if (p || c || a)
|
|
1329
1330
|
return;
|
|
1330
|
-
const
|
|
1331
|
+
const A = {
|
|
1331
1332
|
appState: {
|
|
1332
1333
|
returnTo: `${window.location.pathname}${window.location.search}`
|
|
1333
1334
|
}
|
|
1334
1335
|
};
|
|
1335
|
-
d(
|
|
1336
|
-
}, [
|
|
1336
|
+
l ? m() : d(A);
|
|
1337
|
+
}, [p, c, a, d, r, l, m]), a) {
|
|
1337
1338
|
if (i || console.error(
|
|
1338
|
-
`Error detected in AuthGuard [isAuthenticated=${
|
|
1339
|
-
|
|
1339
|
+
`Error detected in AuthGuard [isAuthenticated=${c},isLoading=${p}]`,
|
|
1340
|
+
a
|
|
1340
1341
|
), n === "all")
|
|
1341
|
-
throw
|
|
1342
|
-
if (Gn(
|
|
1343
|
-
let
|
|
1344
|
-
if (Vn(
|
|
1345
|
-
|
|
1346
|
-
else if (qn(
|
|
1347
|
-
|
|
1348
|
-
else if (Xn(
|
|
1349
|
-
|
|
1342
|
+
throw a;
|
|
1343
|
+
if (Gn(a)) {
|
|
1344
|
+
let A = "Auth error", S = "An unknown Auth0 error occurred.";
|
|
1345
|
+
if (Vn(a))
|
|
1346
|
+
A = "Unauthorised", S = `You are not authorised to access ${t}.`;
|
|
1347
|
+
else if (qn(a))
|
|
1348
|
+
A = "App not authorised", S = `You have not authorised ${t} to access your user profile. This is necessary to use ${t}.`;
|
|
1349
|
+
else if (Xn(a))
|
|
1350
|
+
A = "Auth0 script execution time exceeded", S = "The Auth0 login flow exceeded the time limit (20s). Try again in a minute.";
|
|
1350
1351
|
else if (n === "unknown")
|
|
1351
|
-
throw
|
|
1352
|
+
throw a;
|
|
1352
1353
|
return /* @__PURE__ */ u(tt, { open: !0, children: [
|
|
1353
|
-
/* @__PURE__ */ o(ot, { children:
|
|
1354
|
+
/* @__PURE__ */ o(ot, { children: A }),
|
|
1354
1355
|
/* @__PURE__ */ u(it, { children: [
|
|
1355
|
-
/* @__PURE__ */ o(B, { children:
|
|
1356
|
+
/* @__PURE__ */ o(B, { children: S }),
|
|
1356
1357
|
/* @__PURE__ */ o("br", {}),
|
|
1357
1358
|
/* @__PURE__ */ o(B, { variant: "subtitle2", children: "Details from Auth0" }),
|
|
1358
1359
|
/* @__PURE__ */ u(B, { variant: "body2", children: [
|
|
1359
1360
|
"error: ",
|
|
1360
|
-
(
|
|
1361
|
+
(v = a == null ? void 0 : a.error) != null ? v : "N/A"
|
|
1361
1362
|
] }),
|
|
1362
1363
|
/* @__PURE__ */ u(B, { variant: "body2", children: [
|
|
1363
1364
|
"description: ",
|
|
1364
|
-
(
|
|
1365
|
+
(g = a == null ? void 0 : a.error_description) != null ? g : "N/A"
|
|
1365
1366
|
] })
|
|
1366
1367
|
] }),
|
|
1367
|
-
/* @__PURE__ */ o(rt, { children: /* @__PURE__ */ o(ae, { onClick: () =>
|
|
1368
|
+
/* @__PURE__ */ o(rt, { children: /* @__PURE__ */ o(ae, { onClick: () => f({ logoutParams: { returnTo: window.location.origin } }), children: "Logout" }) })
|
|
1368
1369
|
] });
|
|
1369
1370
|
} else if (n === "unknown")
|
|
1370
|
-
throw
|
|
1371
|
+
throw a;
|
|
1371
1372
|
}
|
|
1372
|
-
return
|
|
1373
|
+
return c ? /* @__PURE__ */ o(F, { children: e }) : /* @__PURE__ */ o(dn, { variant: "rectangular", animation: "pulse", height: "100vh", width: "100vw" });
|
|
1373
1374
|
}
|
|
1374
1375
|
const Qn = {
|
|
1375
1376
|
autoHideDuration: 6e3,
|
|
@@ -1392,8 +1393,8 @@ const Qn = {
|
|
|
1392
1393
|
borderBottomLeftRadius: "0px",
|
|
1393
1394
|
borderBottomRightRadius: "0px"
|
|
1394
1395
|
}, jn = {}, eo = {}, $t = Je(null);
|
|
1395
|
-
function to(
|
|
1396
|
-
var c =
|
|
1396
|
+
function to(l) {
|
|
1397
|
+
var c = l, {
|
|
1397
1398
|
overrideState: e = jn,
|
|
1398
1399
|
overrideActions: t = eo,
|
|
1399
1400
|
shouldClose: n = Yn.shouldClose,
|
|
@@ -1404,47 +1405,47 @@ function to(s) {
|
|
|
1404
1405
|
"shouldClose",
|
|
1405
1406
|
"children"
|
|
1406
1407
|
]);
|
|
1407
|
-
var
|
|
1408
|
-
const [{ open:
|
|
1409
|
-
|
|
1410
|
-
}, []),
|
|
1411
|
-
f.current += 1,
|
|
1408
|
+
var C;
|
|
1409
|
+
const [{ open: p }, a] = E({ open: !1 }), d = ge([]), m = ge(Date.now()), f = ge(0), v = re((x) => {
|
|
1410
|
+
a({ open: x });
|
|
1411
|
+
}, []), g = re((x = {}) => {
|
|
1412
|
+
f.current += 1, d.current.length >= Xe && Date.now() - m.current >= Qe && (m.current = Date.now(), console.error(
|
|
1412
1413
|
`SaladBarProvider: MAX_QUEUE_LENGTH (${Xe}) hit ${f.current} times in last ${Qe}ms)`
|
|
1413
1414
|
), f.current = 0);
|
|
1414
|
-
const w =
|
|
1415
|
+
const w = s(y(s({}, qe), {
|
|
1415
1416
|
key: Jn()
|
|
1416
|
-
}),
|
|
1417
|
-
return
|
|
1418
|
-
}, []),
|
|
1419
|
-
const w =
|
|
1417
|
+
}), x);
|
|
1418
|
+
return d.current.push(w), d.current.length === 1 && a({ open: !0 }), w.key;
|
|
1419
|
+
}, []), A = (x = "", w = {}) => g(s({ message: x, severity: "success" }, w)), S = (x = "", w = {}) => g(s({ message: x, severity: "info" }, w)), D = (x = "", w = {}) => g(s({ message: x, severity: "warning" }, w)), I = (x = "", w = {}) => g(s({ message: x, severity: "error" }, w)), T = (x) => {
|
|
1420
|
+
const w = d.current.findIndex((M) => M.key === x);
|
|
1420
1421
|
if (w !== -1)
|
|
1421
|
-
return w === 0 ? (
|
|
1422
|
-
}, P = (
|
|
1423
|
-
n(
|
|
1422
|
+
return w === 0 ? (a({ open: !1 }), d.current[0]) : d.current.splice(w, 1);
|
|
1423
|
+
}, P = (x, w) => {
|
|
1424
|
+
n(x, w) && a({ open: !1 });
|
|
1424
1425
|
}, N = () => {
|
|
1425
|
-
},
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1428
|
-
"autoHideDuration" in
|
|
1429
|
-
const W =
|
|
1430
|
-
open:
|
|
1431
|
-
setOpen:
|
|
1432
|
-
enqueueNotification:
|
|
1433
|
-
enqueueSuccessNotification:
|
|
1434
|
-
enqueueInfoNotification:
|
|
1435
|
-
enqueueWarningNotification:
|
|
1426
|
+
}, k = () => {
|
|
1427
|
+
d.current.shift(), d.current.length > 0 && a({ open: !0 });
|
|
1428
|
+
}, b = (C = d.current[0]) != null ? C : s({}, qe), H = {};
|
|
1429
|
+
"autoHideDuration" in b && (H.autoHideDuration = b.autoHideDuration);
|
|
1430
|
+
const W = s(s({}, Qn), r), h = s(s({
|
|
1431
|
+
open: p,
|
|
1432
|
+
setOpen: v,
|
|
1433
|
+
enqueueNotification: g,
|
|
1434
|
+
enqueueSuccessNotification: A,
|
|
1435
|
+
enqueueInfoNotification: S,
|
|
1436
|
+
enqueueWarningNotification: D,
|
|
1436
1437
|
enqueueErrorNotification: I,
|
|
1437
1438
|
removeNotification: T
|
|
1438
1439
|
}, e), t);
|
|
1439
|
-
return /* @__PURE__ */ u($t.Provider, { value:
|
|
1440
|
+
return /* @__PURE__ */ u($t.Provider, { value: h, children: [
|
|
1440
1441
|
i,
|
|
1441
1442
|
/* @__PURE__ */ o(
|
|
1442
1443
|
Xt,
|
|
1443
|
-
|
|
1444
|
-
open:
|
|
1444
|
+
y(s(s({}, W), H), {
|
|
1445
|
+
open: p,
|
|
1445
1446
|
onClose: P,
|
|
1446
1447
|
TransitionProps: {
|
|
1447
|
-
onExited:
|
|
1448
|
+
onExited: k,
|
|
1448
1449
|
onExit: N
|
|
1449
1450
|
},
|
|
1450
1451
|
sx: { zIndex: Kn },
|
|
@@ -1452,15 +1453,15 @@ function to(s) {
|
|
|
1452
1453
|
/* @__PURE__ */ o(
|
|
1453
1454
|
Qt,
|
|
1454
1455
|
{
|
|
1455
|
-
onClose: (
|
|
1456
|
-
severity:
|
|
1456
|
+
onClose: (x) => P(x, "closeAlert"),
|
|
1457
|
+
severity: b.severity,
|
|
1457
1458
|
variant: "filled",
|
|
1458
|
-
icon:
|
|
1459
|
-
style:
|
|
1460
|
-
children:
|
|
1459
|
+
icon: b.progressIndicator === "circular" ? /* @__PURE__ */ o(De, { size: "1em" }) : void 0,
|
|
1460
|
+
style: b.progressIndicator === "linear" ? Zn : void 0,
|
|
1461
|
+
children: b.message
|
|
1461
1462
|
}
|
|
1462
1463
|
),
|
|
1463
|
-
|
|
1464
|
+
b.progressIndicator === "linear" && /* @__PURE__ */ o(nt, { color: "primary" })
|
|
1464
1465
|
] })
|
|
1465
1466
|
})
|
|
1466
1467
|
)
|
|
@@ -1473,7 +1474,7 @@ function no() {
|
|
|
1473
1474
|
return e;
|
|
1474
1475
|
}
|
|
1475
1476
|
const Wo = Q(
|
|
1476
|
-
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(to,
|
|
1477
|
+
(e = { autoHideDuration: 1 }, t = {}, n = {}) => ({ children: i }) => /* @__PURE__ */ o(to, y(s({}, e), { overrideState: t, overrideActions: n, children: i }))
|
|
1477
1478
|
), oo = nn(), zo = ({
|
|
1478
1479
|
children: e,
|
|
1479
1480
|
store: t
|
|
@@ -1507,30 +1508,30 @@ const Ye = _(
|
|
|
1507
1508
|
onClose: n,
|
|
1508
1509
|
domainOptions: i,
|
|
1509
1510
|
applicationName: r,
|
|
1510
|
-
handleLogout:
|
|
1511
|
+
handleLogout: l
|
|
1511
1512
|
}) => {
|
|
1512
|
-
const [c,
|
|
1513
|
-
|
|
1514
|
-
}),
|
|
1515
|
-
c && !f && !
|
|
1513
|
+
const [c, p] = V(Tt), [a, d] = E(c), { enqueueSuccessNotification: m } = no(), f = i.length === 0, v = !!c && !i.includes(c) && !i.includes(a), g = !c || f || v, A = () => L(void 0, null, function* () {
|
|
1514
|
+
a ? (p(a), m(`Set organisation to ${a}`), n()) : p("");
|
|
1515
|
+
}), S = () => L(void 0, null, function* () {
|
|
1516
|
+
c && !f && !v ? (d(c), n()) : g && l();
|
|
1516
1517
|
});
|
|
1517
|
-
let
|
|
1518
|
-
return f ?
|
|
1518
|
+
let D;
|
|
1519
|
+
return f ? D = "Unable to retrieve your active organisations. Try logging in again." : v && (D = "You no longer have any roles in your chosen organisation. Please choose another."), /* @__PURE__ */ u(
|
|
1519
1520
|
kt,
|
|
1520
1521
|
{
|
|
1521
1522
|
isOpen: t,
|
|
1522
1523
|
dialogTitle: "Select an organisation",
|
|
1523
1524
|
primaryButton: {
|
|
1524
1525
|
text: "Confirm",
|
|
1525
|
-
onClick:
|
|
1526
|
-
disabled: !
|
|
1526
|
+
onClick: A,
|
|
1527
|
+
disabled: !a || f || v,
|
|
1527
1528
|
buttonColor: "primary"
|
|
1528
1529
|
},
|
|
1529
1530
|
secondaryButton: {
|
|
1530
|
-
text:
|
|
1531
|
-
onClick:
|
|
1531
|
+
text: g ? "Logout" : "Cancel",
|
|
1532
|
+
onClick: S
|
|
1532
1533
|
},
|
|
1533
|
-
onClose:
|
|
1534
|
+
onClose: g ? () => {
|
|
1534
1535
|
} : n,
|
|
1535
1536
|
children: [
|
|
1536
1537
|
/* @__PURE__ */ u(B, { marginBottom: 2, children: [
|
|
@@ -1544,16 +1545,16 @@ const Ye = _(
|
|
|
1544
1545
|
loading: e,
|
|
1545
1546
|
multiple: !1,
|
|
1546
1547
|
disableClearable: !1,
|
|
1547
|
-
value:
|
|
1548
|
-
onChange: (I, T) =>
|
|
1548
|
+
value: a !== "" ? a : null,
|
|
1549
|
+
onChange: (I, T) => d(T != null ? T : ""),
|
|
1549
1550
|
getOptionLabel: ro,
|
|
1550
1551
|
options: [...i],
|
|
1551
1552
|
renderInput: (I) => /* @__PURE__ */ o(
|
|
1552
1553
|
be,
|
|
1553
|
-
|
|
1554
|
+
y(s({}, I), {
|
|
1554
1555
|
variant: "filled",
|
|
1555
1556
|
label: "Select organisation",
|
|
1556
|
-
InputProps:
|
|
1557
|
+
InputProps: y(s({}, I.InputProps), {
|
|
1557
1558
|
endAdornment: /* @__PURE__ */ u(F, { children: [
|
|
1558
1559
|
e ? /* @__PURE__ */ o(De, { color: "inherit", size: 20, sx: { marginTop: "-20px" } }) : null,
|
|
1559
1560
|
I.InputProps.endAdornment
|
|
@@ -1563,7 +1564,7 @@ const Ye = _(
|
|
|
1563
1564
|
)
|
|
1564
1565
|
}
|
|
1565
1566
|
),
|
|
1566
|
-
|
|
1567
|
+
D && /* @__PURE__ */ o(Yt, { error: !0, children: D })
|
|
1567
1568
|
]
|
|
1568
1569
|
}
|
|
1569
1570
|
);
|