@mx-cartographer/experiences 7.11.1 → 7.11.2
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/CHANGELOG.md +5 -0
- package/dist/{AccountDetailsHeader-Bf3yJZ-O.mjs → AccountDetailsHeader-hDo7gojQ.mjs} +1 -1
- package/dist/{AccountFields-Dnc0q9ee.mjs → AccountFields-C-sby5mF.mjs} +1 -1
- package/dist/{AccountListItem-BH5hrQCD.mjs → AccountListItem-CjeAlrPC.mjs} +1 -1
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Connect-Dg9HlAWv.mjs +39 -0
- package/dist/ConnectDrawer-BLwcW0Oe.mjs +58 -0
- package/dist/{ConnectionsDrawer-VoUA-VzG.mjs → ConnectionsDrawer-UQTh9UEc.mjs} +8 -7
- package/dist/GlobalAccountFilter-C8mpfudV.mjs +215 -0
- package/dist/{GoalStore-LzW4e18a.mjs → GoalStore-DzOZ0je_.mjs} +1 -1
- package/dist/{WidgetContainer-lNbK1wCG.mjs → WidgetContainer-B5jzz8M1.mjs} +1 -1
- package/dist/accounts/index.es.js +29 -28
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +2 -2
- package/dist/common/index.es.js +154 -153
- package/dist/dashboard/index.es.js +35 -34
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +159 -143
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +1 -1
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +2 -2
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/GlobalAccountFilter-DnhoRX8C.mjs +0 -318
|
@@ -15,8 +15,8 @@ import h, { useState as Fn, useRef as Bn, useCallback as rt, useEffect as at } f
|
|
|
15
15
|
import P from "@mui/material/Button";
|
|
16
16
|
import Y from "@mui/material/Card";
|
|
17
17
|
import { L as Xe } from "../LineChart-Dlp9RAJz.mjs";
|
|
18
|
-
import { C as St } from "../ConnectionsDrawer-
|
|
19
|
-
import {
|
|
18
|
+
import { C as St } from "../ConnectionsDrawer-UQTh9UEc.mjs";
|
|
19
|
+
import { C as ae } from "../ConnectDrawer-BLwcW0Oe.mjs";
|
|
20
20
|
import le from "@mui/material/Tab";
|
|
21
21
|
import Ye from "@mui/material/Tabs";
|
|
22
22
|
import Re from "@mui/material/TextField";
|
|
@@ -31,7 +31,7 @@ import be from "@mui/material/ListItem";
|
|
|
31
31
|
import vt from "@mui/material/ListItemAvatar";
|
|
32
32
|
import fe from "@mui/material/ListItemText";
|
|
33
33
|
import { g as wt } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
34
|
-
import { g as kt } from "../AccountFields-
|
|
34
|
+
import { g as kt } from "../AccountFields-C-sby5mF.mjs";
|
|
35
35
|
import Ge from "@mui/material/List";
|
|
36
36
|
import $n from "@mui/material/ListItemButton";
|
|
37
37
|
import En from "@mui/material/ListSubheader";
|
|
@@ -72,7 +72,7 @@ import vo from "@mui/material/Accordion";
|
|
|
72
72
|
import wo from "@mui/material/AccordionDetails";
|
|
73
73
|
import ko from "@mui/material/AccordionSummary";
|
|
74
74
|
import { u as Mo } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
75
|
-
import { W as Do } from "../WidgetContainer-
|
|
75
|
+
import { W as Do } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
76
76
|
const Io = ({
|
|
77
77
|
dialScoreData: t,
|
|
78
78
|
dataIndex: o,
|
package/dist/goals/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as de, T as i, G as ce, a as Ve, M as Y, C as Te, b as Pe } from "../GoalStore-
|
|
2
|
-
import { c as Hn, d as Un } from "../GoalStore-
|
|
1
|
+
import { g as de, T as i, G as ce, a as Ve, M as Y, C as Te, b as Pe } from "../GoalStore-DzOZ0je_.mjs";
|
|
2
|
+
import { c as Hn, d as Un } from "../GoalStore-DzOZ0je_.mjs";
|
|
3
3
|
import { jsxs as c, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import T from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -51,7 +51,7 @@ import { D as _t } from "../Dialog-BqUCsQvo.mjs";
|
|
|
51
51
|
import { u as Ke } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
52
52
|
import { A as X } from "../Analytics-i5h6BxR1.mjs";
|
|
53
53
|
import { L as Me } from "../Loader-D3rjKx72.mjs";
|
|
54
|
-
import { W as ut } from "../WidgetContainer-
|
|
54
|
+
import { W as ut } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
55
55
|
import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
|
|
56
56
|
import ht from "@mui/material/Stack/Stack";
|
|
57
57
|
import bt from "@mui/material/Box";
|
package/dist/help/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { H as m } from "../Help-HjHBZzI9.mjs";
|
|
|
4
4
|
import { b as s } from "../hooks-0kWPTHNb.mjs";
|
|
5
5
|
import { u as a } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
6
6
|
import { L as p } from "../Loader-D3rjKx72.mjs";
|
|
7
|
-
import { W as d } from "../WidgetContainer-
|
|
7
|
+
import { W as d } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
8
8
|
const H = t(({ onBackClick: e, sx: i }) => {
|
|
9
9
|
const { isInitialized: o } = s();
|
|
10
10
|
return a({
|
|
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
|
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Fe from "@mui/material/Tab";
|
|
6
6
|
import Ee from "@mui/material/Tabs";
|
|
7
|
-
import { C as pe } from "../ConnectionsDrawer-
|
|
7
|
+
import { C as pe } from "../ConnectionsDrawer-UQTh9UEc.mjs";
|
|
8
8
|
import xe from "@mui/material/useMediaQuery";
|
|
9
9
|
import Ne from "@mui/material/Box";
|
|
10
10
|
import Me from "@mui/material/Collapse";
|
|
@@ -39,7 +39,7 @@ import { DataGridPro as Xe } from "@mui/x-data-grid-pro";
|
|
|
39
39
|
import { Stack as $e } from "@mui/material";
|
|
40
40
|
import { L as Se } from "../Loader-D3rjKx72.mjs";
|
|
41
41
|
import { u as qe } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
42
|
-
import { W as Ke } from "../WidgetContainer-
|
|
42
|
+
import { W as Ke } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
43
43
|
import { A as Ye } from "../Account-BiB1F8lL.mjs";
|
|
44
44
|
import { E as Qe } from "../EmptyState-DHAkGsjk.mjs";
|
|
45
45
|
const me = ({ sx: t = {} }) => {
|
|
@@ -34,8 +34,8 @@ import { f as U } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
|
34
34
|
import { u as ne } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
35
35
|
import { L as re } from "../Loader-D3rjKx72.mjs";
|
|
36
36
|
import { M as ge } from "../MicroWidgetContainer-jvYZ5bb6.mjs";
|
|
37
|
-
import { C as ye } from "../ConnectionsDrawer-
|
|
38
|
-
import { W as Ce } from "../WidgetContainer-
|
|
37
|
+
import { C as ye } from "../ConnectionsDrawer-UQTh9UEc.mjs";
|
|
38
|
+
import { W as Ce } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
39
39
|
import { E as _e } from "../EmptyState-DHAkGsjk.mjs";
|
|
40
40
|
const Se = () => {
|
|
41
41
|
const { isMobile: t } = q(), { availableWidth: a } = se(), i = j(), {
|
|
@@ -52,7 +52,7 @@ import { u as re } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
|
52
52
|
import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
53
53
|
import { u as oe } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
54
54
|
import { L as ae } from "../Loader-D3rjKx72.mjs";
|
|
55
|
-
import { W as st } from "../WidgetContainer-
|
|
55
|
+
import { W as st } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
56
56
|
import { M as ct } from "../MiniWidgetContainer-B4gbUTJ2.mjs";
|
|
57
57
|
import { u as lt } from "../useDimensions-CeDR9V8N.mjs";
|
|
58
58
|
import { M as dt } from "../MicroWidgetContainer-jvYZ5bb6.mjs";
|
|
@@ -43,7 +43,7 @@ import Le from "@mui/material/ListItemText";
|
|
|
43
43
|
import { D as He } from "../Drawer-DV4NTsFg.mjs";
|
|
44
44
|
import { u as ne } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
45
45
|
import { H as Oe } from "../Help-HjHBZzI9.mjs";
|
|
46
|
-
import { W as X } from "../WidgetContainer-
|
|
46
|
+
import { W as X } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
47
47
|
const Fe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
48
48
|
const o = xe(), { common: i, settings: n } = D(), { isDesktop: d, isMobile: l, isSmallMobile: r, isTablet: s } = O(t), { config: b } = $(), { updateUser: _ } = A(), { user: m } = Se(), [h, S] = p.useState({
|
|
49
49
|
first_name: m.first_name,
|
|
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-DV4NTsFg.mjs";
|
|
|
31
31
|
import { b as w } from "../Category-CevNQ03n.mjs";
|
|
32
32
|
import { parseISO as et } from "date-fns/parseISO";
|
|
33
33
|
import { A as nt } from "../Analytics-i5h6BxR1.mjs";
|
|
34
|
-
import { W as It } from "../WidgetContainer-
|
|
34
|
+
import { W as It } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
35
35
|
const O = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ c(C, { direction: "column", children: [
|
|
36
36
|
/* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: d }),
|
|
37
37
|
/* @__PURE__ */ t(T, { variant: "XSmall", children: R(n, o === "mini" ? "0,0" : "0,0.00") })
|
|
@@ -29,7 +29,7 @@ import { getUnixTime as et } from "date-fns/getUnixTime";
|
|
|
29
29
|
import { startOfMonth as tt } from "date-fns/startOfMonth";
|
|
30
30
|
import { startOfToday as F } from "date-fns/startOfToday";
|
|
31
31
|
import at from "@mui/material/styles/useTheme";
|
|
32
|
-
import {
|
|
32
|
+
import { C as nt } from "../ConnectDrawer-BLwcW0Oe.mjs";
|
|
33
33
|
import ot from "@mui/material/Divider";
|
|
34
34
|
import rt from "@mui/material/MenuItem";
|
|
35
35
|
import it from "@mui/material/RadioGroup";
|
|
@@ -41,7 +41,7 @@ import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
|
|
|
41
41
|
import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
42
42
|
import { u as _t } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
43
43
|
import { u as pt } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
44
|
-
import { W as gt } from "../WidgetContainer-
|
|
44
|
+
import { W as gt } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
45
45
|
import { A } from "../Analytics-i5h6BxR1.mjs";
|
|
46
46
|
import { S as ht } from "../SearchBox-B7km148n.mjs";
|
|
47
47
|
import { D as te } from "../Drawer-DV4NTsFg.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -40,7 +40,7 @@ import { T as ct } from "../TransactionDetails-DGLtjFZF.mjs";
|
|
|
40
40
|
import { D as We } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { u as Le } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
42
42
|
import { L as Ee } from "../Loader-D3rjKx72.mjs";
|
|
43
|
-
import { W as dt } from "../WidgetContainer-
|
|
43
|
+
import { W as dt } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
44
44
|
import { L as Be } from "../LineChart-Dlp9RAJz.mjs";
|
|
45
45
|
import { M as Xt } from "../MiniWidgetContainer-B4gbUTJ2.mjs";
|
|
46
46
|
import { subMonths as Zt } from "date-fns";
|
|
@@ -59,7 +59,7 @@ import { b as go } from "../CategoryUtil-Cufq3fxg.mjs";
|
|
|
59
59
|
import { E as ho } from "../ExportCsvAction-B5Ra5duE.mjs";
|
|
60
60
|
import { u as po } from "../useInsightsEnabled-bDCTNOJS.mjs";
|
|
61
61
|
import { E as fo } from "../EmptyState-DHAkGsjk.mjs";
|
|
62
|
-
import {
|
|
62
|
+
import { C as yo } from "../ConnectDrawer-BLwcW0Oe.mjs";
|
|
63
63
|
const mt = ({ categoryGuid: t, topLevelCategoryGuid: r }) => {
|
|
64
64
|
const { categories: n } = A(), { getCategoryName: o } = J(), s = o(t);
|
|
65
65
|
return /* @__PURE__ */ C(x, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
package/package.json
CHANGED
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import b from "react";
|
|
3
|
-
import { observer as A } from "mobx-react-lite";
|
|
4
|
-
import M from "@mui/material/Box";
|
|
5
|
-
import I from "@mui/material/Button";
|
|
6
|
-
import N from "@mui/material/Divider";
|
|
7
|
-
import T from "@mui/material/IconButton";
|
|
8
|
-
import U from "@mui/material/Popover";
|
|
9
|
-
import k from "@mui/material/Stack";
|
|
10
|
-
import Y from "@mui/material/Tooltip";
|
|
11
|
-
import { FilterAlt as D, AccountBalance as Z } from "@mxenabled/mx-icons";
|
|
12
|
-
import { Text as q, P as W } from "@mxenabled/mxui";
|
|
13
|
-
import B from "@mui/material/Checkbox";
|
|
14
|
-
import F from "@mui/material/List";
|
|
15
|
-
import w from "@mui/material/ListItem";
|
|
16
|
-
import E from "@mui/material/ListItemButton";
|
|
17
|
-
import J from "@mui/material/ListItemIcon";
|
|
18
|
-
import z from "@mui/material/ListItemText";
|
|
19
|
-
import { b as j, u as L, d as G, e as K, a as Q } from "./hooks-0kWPTHNb.mjs";
|
|
20
|
-
import V from "@mui/material/styles/useTheme";
|
|
21
|
-
import { ConnectWidget as X } from "@mxenabled/web-widget-sdk";
|
|
22
|
-
import tt from "@mui/material/CircularProgress";
|
|
23
|
-
import { D as et } from "./Drawer-DV4NTsFg.mjs";
|
|
24
|
-
import { u as ot } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
25
|
-
const rt = A(
|
|
26
|
-
({ allowedAccountTypes: o }) => {
|
|
27
|
-
const { accountFilterMap: i, updateAccountFilterMap: d } = j(), { accounts: C, common: f } = L(), { account_filter: x } = f, { accountsByTypeMap: r } = G(), _ = b.useMemo(
|
|
28
|
-
() => Array.from(r.keys()).reduce((e, n) => {
|
|
29
|
-
if (!o || o && o.includes(n)) {
|
|
30
|
-
const a = r.get(n);
|
|
31
|
-
a && e.push(...a);
|
|
32
|
-
}
|
|
33
|
-
return e;
|
|
34
|
-
}, []),
|
|
35
|
-
[r, o]
|
|
36
|
-
), m = new Map(
|
|
37
|
-
Array.from(i.entries()).filter(([e]) => _.some((n) => n.guid === e))
|
|
38
|
-
), s = Array.from(m.values()).every((e) => e), S = Array.from(m.values()).some((e) => e), p = () => {
|
|
39
|
-
for (const e of m.keys())
|
|
40
|
-
d(e, !s);
|
|
41
|
-
}, g = (e) => {
|
|
42
|
-
const n = r.get(e);
|
|
43
|
-
if (!n) return;
|
|
44
|
-
const a = n.some((u) => i.get(u.guid));
|
|
45
|
-
for (const u of n)
|
|
46
|
-
d(u.guid, !a);
|
|
47
|
-
};
|
|
48
|
-
return /* @__PURE__ */ l(
|
|
49
|
-
F,
|
|
50
|
-
{
|
|
51
|
-
dense: !0,
|
|
52
|
-
id: "filter_accounts",
|
|
53
|
-
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ t(w, { disableGutters: !0, disablePadding: !0, sx: { py: 16 }, children: /* @__PURE__ */ l(E, { disableGutters: !0, onClick: p, sx: { p: 0, px: 8 }, children: [
|
|
56
|
-
/* @__PURE__ */ t(
|
|
57
|
-
B,
|
|
58
|
-
{
|
|
59
|
-
checked: s,
|
|
60
|
-
disableRipple: !0,
|
|
61
|
-
indeterminate: !s && S,
|
|
62
|
-
inputProps: { "aria-labelledby": "label-select-all" },
|
|
63
|
-
size: "small",
|
|
64
|
-
tabIndex: -1
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ t(
|
|
68
|
-
z,
|
|
69
|
-
{
|
|
70
|
-
id: "label-select-all",
|
|
71
|
-
primary: x.select_all_accounts,
|
|
72
|
-
primaryTypographyProps: { variant: "body1" }
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }) }),
|
|
76
|
-
Array.from(r.keys()).map((e) => {
|
|
77
|
-
const n = r.get(e), a = o ? !o.includes(e) : !1, u = C.account_type_accounts[e];
|
|
78
|
-
return (
|
|
79
|
-
// Account Type Header
|
|
80
|
-
/* @__PURE__ */ t(w, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(k, { sx: { pb: 8, width: "100%" }, children: [
|
|
81
|
-
/* @__PURE__ */ t(N, {}),
|
|
82
|
-
/* @__PURE__ */ t(
|
|
83
|
-
F,
|
|
84
|
-
{
|
|
85
|
-
dense: !0,
|
|
86
|
-
subheader: /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
|
|
87
|
-
E,
|
|
88
|
-
{
|
|
89
|
-
disableGutters: !0,
|
|
90
|
-
disabled: a,
|
|
91
|
-
onClick: () => g(e),
|
|
92
|
-
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
93
|
-
children: /* @__PURE__ */ t(
|
|
94
|
-
z,
|
|
95
|
-
{
|
|
96
|
-
primary: u,
|
|
97
|
-
primaryTypographyProps: { variant: "body1", fontWeight: "bold" }
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
) }),
|
|
102
|
-
children: n?.map((c) => (
|
|
103
|
-
// Account Checkbox
|
|
104
|
-
/* @__PURE__ */ t(w, { children: /* @__PURE__ */ l(
|
|
105
|
-
E,
|
|
106
|
-
{
|
|
107
|
-
disableGutters: !0,
|
|
108
|
-
disabled: a,
|
|
109
|
-
onClick: () => d(c.guid, !i.get(c.guid)),
|
|
110
|
-
sx: { p: 0, minHeight: 40 },
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(
|
|
113
|
-
B,
|
|
114
|
-
{
|
|
115
|
-
checked: i.get(c.guid),
|
|
116
|
-
disableRipple: !0,
|
|
117
|
-
inputProps: { "aria-labelledby": `label-${c.guid}` },
|
|
118
|
-
size: "small",
|
|
119
|
-
tabIndex: -1
|
|
120
|
-
}
|
|
121
|
-
) }),
|
|
122
|
-
/* @__PURE__ */ t(
|
|
123
|
-
z,
|
|
124
|
-
{
|
|
125
|
-
id: `label-${c.guid}`,
|
|
126
|
-
primary: c.displayName,
|
|
127
|
-
primaryTypographyProps: { variant: "body1" }
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
) }, c.guid)
|
|
133
|
-
))
|
|
134
|
-
}
|
|
135
|
-
)
|
|
136
|
-
] }) }, e)
|
|
137
|
-
);
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
), nt = ({ status: o = y.Loading }) => {
|
|
144
|
-
const { connect: i } = L();
|
|
145
|
-
return /* @__PURE__ */ t(
|
|
146
|
-
M,
|
|
147
|
-
{
|
|
148
|
-
sx: {
|
|
149
|
-
height: "calc(100% - 62px)",
|
|
150
|
-
position: "absolute",
|
|
151
|
-
width: "100%"
|
|
152
|
-
},
|
|
153
|
-
children: /* @__PURE__ */ l(k, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
154
|
-
o === y.Loading && /* @__PURE__ */ t(tt, { color: "primary", size: 48 }),
|
|
155
|
-
/* @__PURE__ */ t(
|
|
156
|
-
q,
|
|
157
|
-
{
|
|
158
|
-
sx: {
|
|
159
|
-
color: "grey.600",
|
|
160
|
-
marginTop: "16px"
|
|
161
|
-
},
|
|
162
|
-
children: o === y.Error ? i.oops : i.loading
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] })
|
|
166
|
-
}
|
|
167
|
-
);
|
|
168
|
-
}, P = A(nt);
|
|
169
|
-
var y = /* @__PURE__ */ ((o) => (o.Loading = "loading", o.Error = "error", o))(y || {}), it = /* @__PURE__ */ ((o) => (o.Currency = "currency", o.Date = "date", o.Input = "input", o.Select = "select", o))(it || {});
|
|
170
|
-
const O = "connect_widget", Dt = "connections_widget", st = ({
|
|
171
|
-
loadWidgetProps: o,
|
|
172
|
-
onClose: i,
|
|
173
|
-
showConnectWidget: d,
|
|
174
|
-
title: C
|
|
175
|
-
}) => {
|
|
176
|
-
let f;
|
|
177
|
-
const { refreshAccounts: x } = G(), { loadWidget: r } = K(), { connect: _ } = L(), [m, s] = b.useState(!1), [S, p] = b.useState(!1), {
|
|
178
|
-
palette: { mode: g }
|
|
179
|
-
} = V();
|
|
180
|
-
return b.useEffect(() => (d ? (s(!0), r({ mode: g, ...o }).then((e) => {
|
|
181
|
-
f = new X({
|
|
182
|
-
container: `#${O}`,
|
|
183
|
-
style: {
|
|
184
|
-
border: "none",
|
|
185
|
-
height: "calc(100% - 62px)",
|
|
186
|
-
maxWidth: "450px",
|
|
187
|
-
position: "absolute",
|
|
188
|
-
width: "100%"
|
|
189
|
-
},
|
|
190
|
-
url: e.url,
|
|
191
|
-
onSsoUrlLoadError: () => {
|
|
192
|
-
s(!1), p(!0);
|
|
193
|
-
},
|
|
194
|
-
onLoad: () => {
|
|
195
|
-
s(!1), p(!1);
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
})) : (s(!1), p(!1)), () => {
|
|
199
|
-
f?.unmount();
|
|
200
|
-
}), [d]), /* @__PURE__ */ t(
|
|
201
|
-
et,
|
|
202
|
-
{
|
|
203
|
-
ariaLabelClose: _.close_manage_connection_aria,
|
|
204
|
-
isOpen: d,
|
|
205
|
-
onClose: () => {
|
|
206
|
-
i(), x();
|
|
207
|
-
},
|
|
208
|
-
title: C,
|
|
209
|
-
children: /* @__PURE__ */ l("div", { id: O, children: [
|
|
210
|
-
S && /* @__PURE__ */ t(P, { status: y.Error }),
|
|
211
|
-
m && /* @__PURE__ */ t(P, { status: y.Loading })
|
|
212
|
-
] })
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
}, at = A(st), Wt = A(
|
|
216
|
-
({
|
|
217
|
-
allowedAccountTypes: o,
|
|
218
|
-
onAccountFilterClick: i,
|
|
219
|
-
sx: d = {},
|
|
220
|
-
variant: C = "text"
|
|
221
|
-
}) => {
|
|
222
|
-
const { isDesktop: f } = ot(), {
|
|
223
|
-
config: { show_connections_widget_in_master: x }
|
|
224
|
-
} = Q(), { common: r, connect: _ } = L(), { accountFilterMap: m, resetAccountFilterMap: s } = j(), { detailedAccounts: S, updateAccountFilter: p } = G(), [g, e] = b.useState(null), [n, a] = b.useState(!1), u = (R) => {
|
|
225
|
-
s(), e(R.currentTarget), i?.();
|
|
226
|
-
}, c = () => {
|
|
227
|
-
e(null);
|
|
228
|
-
}, $ = async () => {
|
|
229
|
-
await p(m), e(null);
|
|
230
|
-
}, h = r.account_filter, H = S.length === 0, v = !!g;
|
|
231
|
-
return /* @__PURE__ */ l(M, { m: 4, sx: { ...d }, children: [
|
|
232
|
-
f ? /* @__PURE__ */ t(
|
|
233
|
-
I,
|
|
234
|
-
{
|
|
235
|
-
"aria-controls": v ? "filter_accounts" : void 0,
|
|
236
|
-
"aria-expanded": v,
|
|
237
|
-
"aria-haspopup": !0,
|
|
238
|
-
"aria-label": h.title,
|
|
239
|
-
onClick: u,
|
|
240
|
-
startIcon: /* @__PURE__ */ t(D, { size: 24 }),
|
|
241
|
-
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
242
|
-
variant: C,
|
|
243
|
-
children: r.filter_button
|
|
244
|
-
}
|
|
245
|
-
) : /* @__PURE__ */ t(Y, { id: "filter-accounts", placement: "bottom", title: h.title, children: /* @__PURE__ */ t(
|
|
246
|
-
T,
|
|
247
|
-
{
|
|
248
|
-
"aria-controls": v ? "filter_accounts" : void 0,
|
|
249
|
-
"aria-describedby": "filter-accounts",
|
|
250
|
-
"aria-expanded": v,
|
|
251
|
-
"aria-haspopup": !0,
|
|
252
|
-
"aria-label": h.title,
|
|
253
|
-
color: "primary",
|
|
254
|
-
onClick: u,
|
|
255
|
-
sx: { p: 8 },
|
|
256
|
-
children: /* @__PURE__ */ t(D, { size: 24 })
|
|
257
|
-
}
|
|
258
|
-
) }),
|
|
259
|
-
/* @__PURE__ */ t(
|
|
260
|
-
U,
|
|
261
|
-
{
|
|
262
|
-
anchorEl: g,
|
|
263
|
-
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
264
|
-
onClose: c,
|
|
265
|
-
open: v,
|
|
266
|
-
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
267
|
-
children: H ? /* @__PURE__ */ l(
|
|
268
|
-
k,
|
|
269
|
-
{
|
|
270
|
-
alignItems: "center",
|
|
271
|
-
direction: "column",
|
|
272
|
-
sx: { p: 16, width: 320, maxWidth: "100%" },
|
|
273
|
-
children: [
|
|
274
|
-
/* @__PURE__ */ t(Z, { size: 32 }),
|
|
275
|
-
/* @__PURE__ */ t(W, { bold: !0, mt: 12, children: h.zero_state_title }),
|
|
276
|
-
/* @__PURE__ */ t(W, { mt: 12, children: h.zero_state_description }),
|
|
277
|
-
x && /* @__PURE__ */ t(I, { onClick: () => a(!0), children: h.zero_state_button })
|
|
278
|
-
]
|
|
279
|
-
}
|
|
280
|
-
) : /* @__PURE__ */ l(k, { children: [
|
|
281
|
-
/* @__PURE__ */ t(rt, { allowedAccountTypes: o }),
|
|
282
|
-
/* @__PURE__ */ t(N, {}),
|
|
283
|
-
/* @__PURE__ */ l(k, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
284
|
-
/* @__PURE__ */ t(I, { fullWidth: !0, onClick: c, variant: "text", children: r.cancel_button }),
|
|
285
|
-
/* @__PURE__ */ t(
|
|
286
|
-
I,
|
|
287
|
-
{
|
|
288
|
-
"aria-label": h.filter_button_aria,
|
|
289
|
-
color: "primary",
|
|
290
|
-
fullWidth: !0,
|
|
291
|
-
onClick: $,
|
|
292
|
-
variant: "contained",
|
|
293
|
-
children: r.filter_button
|
|
294
|
-
}
|
|
295
|
-
)
|
|
296
|
-
] })
|
|
297
|
-
] })
|
|
298
|
-
}
|
|
299
|
-
),
|
|
300
|
-
n && /* @__PURE__ */ t(
|
|
301
|
-
at,
|
|
302
|
-
{
|
|
303
|
-
onClose: () => a(!1),
|
|
304
|
-
showConnectWidget: n,
|
|
305
|
-
title: _.mini_title
|
|
306
|
-
}
|
|
307
|
-
)
|
|
308
|
-
] });
|
|
309
|
-
}
|
|
310
|
-
);
|
|
311
|
-
export {
|
|
312
|
-
Dt as C,
|
|
313
|
-
it as F,
|
|
314
|
-
Wt as G,
|
|
315
|
-
y as M,
|
|
316
|
-
P as a,
|
|
317
|
-
at as b
|
|
318
|
-
};
|