@mx-cartographer/experiences 7.0.44 → 7.0.46
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 +9 -1
- package/dist/{Account-DNtjr75t.mjs → Account-tfHe44mM.mjs} +1 -1
- package/dist/{AccountDetailsContent-eODMVIVq.mjs → AccountDetailsContent-j_fz0aRX.mjs} +6 -6
- package/dist/{AccountDetailsHeader-C0qgTju7.mjs → AccountDetailsHeader-eh13XhXN.mjs} +4 -4
- package/dist/{AccountFields-DDHk35Ou.mjs → AccountFields-pka2XWfO.mjs} +2 -2
- package/dist/{AccountListItem-BxmUd4j3.mjs → AccountListItem-C7NVvdVt.mjs} +3 -3
- package/dist/{AccountStore-CpjCeykS.mjs → AccountStore-XZqHTKm3.mjs} +2 -2
- package/dist/{Accounts-nXcS0QUR.mjs → Accounts-Bu-b-Wc_.mjs} +1 -1
- package/dist/ConnectDrawer-SHjB2fpB.mjs +546 -0
- package/dist/{ConnectionsDrawer-Bf2DNDCF.mjs → ConnectionsDrawer-BprLSCBH.mjs} +1 -1
- package/dist/{DebtsStore-Dy3YG1fX.mjs → DebtsStore-nxnF_bZi.mjs} +1 -1
- package/dist/{ExportCsvAction-CebIvl-V.mjs → ExportCsvAction-CBJAfyAw.mjs} +2 -2
- package/dist/{GoalStore-voP4QA5C.mjs → GoalStore-8dI95nSW.mjs} +2 -2
- package/dist/{ManageIncome-kMsgLN3T.mjs → ManageIncome-B1JxKBDO.mjs} +4 -4
- package/dist/{NetWorthStore-C5RMjsMS.mjs → NetWorthStore-cweTamnD.mjs} +2 -2
- package/dist/{NotificationSettings-BCtanw2c.mjs → NotificationSettings-C215AwS0.mjs} +1 -1
- package/dist/{RecurringSettings-CETLT79T.mjs → RecurringSettings-BzkGK0YX.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-Djo9IeDd.mjs} +1 -1
- package/dist/{SettingsStore-Dc34Tzx8.mjs → SettingsStore-BcgS_Ohv.mjs} +1 -1
- package/dist/{TransactionDetails-B-rdHE3_.mjs → TransactionDetails-DESqmjVR.mjs} +2 -2
- package/dist/{TransactionStore-CfQBEIsK.mjs → TransactionStore-B-Tq_YFE.mjs} +2 -2
- package/dist/{User-8itAR7lR.mjs → User-DaJAQ09j.mjs} +20 -21
- package/dist/{WidgetContainer-p7NIdiNJ.mjs → WidgetContainer-C_JdLQij.mjs} +1 -1
- package/dist/accounts/index.es.js +128 -123
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/index.es.js +60 -58
- package/dist/common/types/AppData.d.ts +2 -0
- package/dist/common/utils/AccountFilter.d.ts +5 -0
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +5 -5
- package/dist/{exportTransactionsToCSV-CfylirZA.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +7 -7
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +4 -4
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +4 -4
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +10 -10
- package/dist/trends/index.es.js +4 -4
- package/dist/{useAccountDisplayName-DC1Lqjag.mjs → useAccountDisplayName-Dwa7UkEU.mjs} +1 -1
- package/package.json +1 -1
- package/dist/ConnectDrawer-YIWwEzuN.mjs +0 -521
- package/dist/{RepeatingTransaction-BW4J-jeJ.mjs → RecurringTransactions-DTUx9VN1.mjs} +1 -1
- package/dist/{Notification-aGCHxikw.mjs → ToggleListItem-r0Kx56wF.mjs} +1 -1
|
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import p from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1JxKBDO.mjs";
|
|
11
11
|
import { u as h, j as A, g as _ } from "./hooks-CE2TKk4a.mjs";
|
|
12
|
-
import { R as y, F as N } from "./
|
|
13
|
-
import { A as d } from "./WidgetContainer-
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
|
|
13
|
+
import { A as d } from "./WidgetContainer-C_JdLQij.mjs";
|
|
14
14
|
const I = u(() => {
|
|
15
15
|
const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = _(), a = (r) => {
|
|
16
16
|
o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-Djo9IeDd.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as S } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as c } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as y } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-87LIQbEA.mjs";
|
|
11
|
-
import { b as E, a, c as d, d as u } from "./
|
|
11
|
+
import { b as E, a, c as d, d as u } from "./RecurringTransactions-DTUx9VN1.mjs";
|
|
12
12
|
var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
|
|
13
13
|
const U = 44;
|
|
14
14
|
class h {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
|
2
2
|
import { F as D, A as r } from "./Fetch-87LIQbEA.mjs";
|
|
3
|
-
import { B as f, A as n, I as i } from "./
|
|
3
|
+
import { B as f, A as n, I as i } from "./ToggleListItem-r0Kx56wF.mjs";
|
|
4
4
|
import { T as m } from "./TransactionApi-B3Tksf7L.mjs";
|
|
5
5
|
class y {
|
|
6
6
|
fetchInstance;
|
|
@@ -9,7 +9,7 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
|
|
|
9
9
|
import B from "@mui/material/ListItemAvatar";
|
|
10
10
|
import M from "@mui/material/ListItemText";
|
|
11
11
|
import f from "@mui/material/Stack";
|
|
12
|
-
import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-
|
|
12
|
+
import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-DaJAQ09j.mjs";
|
|
13
13
|
import { G as Be, h as v, u as A, g as L, m as xe, b as Fe, o as He } from "./hooks-CE2TKk4a.mjs";
|
|
14
14
|
import { f as te } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
15
15
|
import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
|
|
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
|
17
17
|
import { isSameDay as Ne } from "date-fns/isSameDay";
|
|
18
18
|
import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
|
|
19
19
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-C_JdLQij.mjs";
|
|
21
21
|
import ne from "@mui/material/Paper";
|
|
22
22
|
import ce from "@mui/material/Button";
|
|
23
23
|
import je from "@mui/material/FormGroup";
|
|
@@ -13,10 +13,10 @@ import { isBefore as B } from "date-fns/isBefore";
|
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as G } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as Y } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as b, T as F } from "./User-
|
|
16
|
+
import { O as n, a as b, T as F } from "./User-DaJAQ09j.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-D8TTNrrE.mjs";
|
|
20
20
|
import { format as k } from "date-fns/format";
|
|
21
21
|
import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
|
|
22
22
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
@@ -23,8 +23,9 @@ import nn from "@mui/material/styles/useTheme";
|
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
25
|
import { g as tn } from "./hooks-CE2TKk4a.mjs";
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
|
|
27
|
+
const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
28
|
+
const c = v(), l = cn(c);
|
|
28
29
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
|
|
29
30
|
/* @__PURE__ */ e(z, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(a, J.MONTH_YEAR) }),
|
|
30
31
|
/* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
@@ -32,7 +33,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
|
32
33
|
/* @__PURE__ */ e(E, { "aria-label": n.nextAria, onClick: o, children: /* @__PURE__ */ e(Z, { size: 24 }) })
|
|
33
34
|
] })
|
|
34
35
|
] });
|
|
35
|
-
},
|
|
36
|
+
}, cn = (n) => p({
|
|
36
37
|
alignItems: "center",
|
|
37
38
|
display: "flex",
|
|
38
39
|
marginBottom: n.Spacing.Medium,
|
|
@@ -45,8 +46,8 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
|
45
46
|
display: "flex",
|
|
46
47
|
gap: 4
|
|
47
48
|
}
|
|
48
|
-
}),
|
|
49
|
-
const l = nn(), S =
|
|
49
|
+
}), sn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
|
|
50
|
+
const l = nn(), S = Tn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
|
|
50
51
|
return /* @__PURE__ */ e(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
@@ -82,7 +83,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
|
82
83
|
)
|
|
83
84
|
}
|
|
84
85
|
);
|
|
85
|
-
},
|
|
86
|
+
}, Tn = (n) => p({
|
|
86
87
|
height: I,
|
|
87
88
|
width: I,
|
|
88
89
|
display: "flex",
|
|
@@ -127,9 +128,9 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
|
127
128
|
paddingBottom: 5
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
}),
|
|
131
|
-
var
|
|
132
|
-
const
|
|
131
|
+
}), ln = 340, I = 44;
|
|
132
|
+
var Cn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Cn || {});
|
|
133
|
+
const Nn = ({
|
|
133
134
|
copy: n,
|
|
134
135
|
beginDate: a = void 0,
|
|
135
136
|
endDate: o = void 0,
|
|
@@ -138,7 +139,7 @@ const ln = ({
|
|
|
138
139
|
selectionType: l = "Single"
|
|
139
140
|
/* Single */
|
|
140
141
|
}) => {
|
|
141
|
-
const S = v(), g =
|
|
142
|
+
const S = v(), g = mn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
|
|
142
143
|
A.useEffect(() => {
|
|
143
144
|
C(a), _(o), a && N(a);
|
|
144
145
|
}, [a, o]);
|
|
@@ -169,7 +170,7 @@ const ln = ({
|
|
|
169
170
|
};
|
|
170
171
|
return /* @__PURE__ */ e("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(Y, { sx: { boxShadow: "none" }, children: [
|
|
171
172
|
/* @__PURE__ */ e(
|
|
172
|
-
|
|
173
|
+
rn,
|
|
173
174
|
{
|
|
174
175
|
copy: n,
|
|
175
176
|
date: s,
|
|
@@ -179,7 +180,7 @@ const ln = ({
|
|
|
179
180
|
),
|
|
180
181
|
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
|
|
181
182
|
D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
|
|
182
|
-
|
|
183
|
+
sn,
|
|
183
184
|
{
|
|
184
185
|
beginDate: i,
|
|
185
186
|
date: d,
|
|
@@ -191,8 +192,8 @@ const ln = ({
|
|
|
191
192
|
)) }, `w-${m}`)),
|
|
192
193
|
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
|
|
193
194
|
] }) });
|
|
194
|
-
},
|
|
195
|
-
width:
|
|
195
|
+
}, mn = (n) => p({
|
|
196
|
+
width: ln,
|
|
196
197
|
"& .MuiPaper-root": {
|
|
197
198
|
paddingLeft: 24,
|
|
198
199
|
paddingRight: 24,
|
|
@@ -232,7 +233,7 @@ const ln = ({
|
|
|
232
233
|
marginRight: "auto"
|
|
233
234
|
}
|
|
234
235
|
}
|
|
235
|
-
}), Bn =
|
|
236
|
+
}), Bn = Nn, Pn = ({
|
|
236
237
|
children: n,
|
|
237
238
|
clickEventName: a,
|
|
238
239
|
onClick: o,
|
|
@@ -300,15 +301,13 @@ const ln = ({
|
|
|
300
301
|
ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
|
|
301
302
|
ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
|
|
302
303
|
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
303
|
-
};
|
|
304
|
-
var Nn = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(Nn || {}), mn = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(mn || {});
|
|
305
|
-
const Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
|
|
304
|
+
}, Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
|
|
306
305
|
export {
|
|
307
306
|
Bn as C,
|
|
308
307
|
Pn as L,
|
|
309
308
|
$n as O,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
on as T,
|
|
310
|
+
en as a,
|
|
311
|
+
Cn as b,
|
|
313
312
|
Un as i
|
|
314
313
|
};
|
|
@@ -36,7 +36,7 @@ import we from "@mui/material/ToggleButtonGroup";
|
|
|
36
36
|
import Ke from "@mui/material/styles/useTheme";
|
|
37
37
|
import { f as K, D as G, a as Ge } from "./Dialog-CWW597AF.mjs";
|
|
38
38
|
import { D as Me } from "./Drawer-kEE73B87.mjs";
|
|
39
|
-
import { j as We, k as ye } from "./ConnectDrawer-
|
|
39
|
+
import { j as We, k as ye } from "./ConnectDrawer-SHjB2fpB.mjs";
|
|
40
40
|
const xe = {
|
|
41
41
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
42
42
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as g } from "mobx-react-lite";
|
|
4
4
|
import B from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import A from "@mui/material/Divider";
|
|
6
6
|
import E from "@mui/material/List";
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import _ from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { a as
|
|
15
|
-
import { g as
|
|
16
|
-
import { u as
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-j_fz0aRX.mjs";
|
|
11
|
+
import { u as D1 } from "../AccountDetailsContent-j_fz0aRX.mjs";
|
|
12
|
+
import { u as z, A as P } from "../AccountDetailsHeader-eh13XhXN.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-C7NVvdVt.mjs";
|
|
14
|
+
import { a as Y } from "../AccountFields-pka2XWfO.mjs";
|
|
15
|
+
import { g as U1, b as $1 } from "../AccountFields-pka2XWfO.mjs";
|
|
16
|
+
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-CE2TKk4a.mjs";
|
|
17
17
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
18
|
-
import { D as
|
|
19
|
-
import { A, W as
|
|
20
|
-
import { C as
|
|
21
|
-
import { u as
|
|
18
|
+
import { D as J } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A as y, W as Q } from "../WidgetContainer-C_JdLQij.mjs";
|
|
20
|
+
import { C as X } from "../ConnectionsDrawer-BprLSCBH.mjs";
|
|
21
|
+
import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
22
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
-
import { k as
|
|
24
|
-
import { F as
|
|
25
|
-
import
|
|
26
|
-
import { M as
|
|
27
|
-
import
|
|
28
|
-
import { A as
|
|
29
|
-
const
|
|
30
|
-
const [c,
|
|
23
|
+
import { k as U, l as e1 } from "../ConnectDrawer-SHjB2fpB.mjs";
|
|
24
|
+
import { F as G1, M as K1 } from "../ConnectDrawer-SHjB2fpB.mjs";
|
|
25
|
+
import t1 from "@mui/material/ListItem";
|
|
26
|
+
import { M as $ } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
27
|
+
import l1 from "@mui/material/Stack";
|
|
28
|
+
import { A as P1, a as Y1 } from "../AccountStore-XZqHTKm3.mjs";
|
|
29
|
+
const i1 = () => {
|
|
30
|
+
const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
32
32
|
[l]
|
|
33
|
-
),
|
|
33
|
+
), p = d.useMemo(
|
|
34
34
|
() => l.filter((t) => t.is_closed),
|
|
35
35
|
[l]
|
|
36
|
-
),
|
|
36
|
+
), M = u.reduce(
|
|
37
37
|
(t, i) => (i.available_balance || i.balance || 0) + t,
|
|
38
38
|
0
|
|
39
|
-
), b =
|
|
39
|
+
), b = Y(p, C);
|
|
40
40
|
d.useEffect(() => {
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
const t =
|
|
41
|
+
if (a) {
|
|
42
|
+
h(a);
|
|
43
|
+
const t = L.find((i) => i.guid === a?.member_guid) || {};
|
|
44
44
|
t && r(t);
|
|
45
45
|
}
|
|
46
|
-
}, [
|
|
47
|
-
const
|
|
48
|
-
|
|
46
|
+
}, [a, c]);
|
|
47
|
+
const Z = (t) => {
|
|
48
|
+
H(t.guid), f(y.ACCOUNTS_CLICK_ACCOUNT, {
|
|
49
49
|
account_guid: t.guid,
|
|
50
50
|
account_type: t.account_type
|
|
51
51
|
});
|
|
52
52
|
}, m = (t) => {
|
|
53
|
-
const i = t === "hidden" ?
|
|
53
|
+
const i = t === "hidden" ? u : p, k = t === "hidden" ? M : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
|
|
54
54
|
return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
55
55
|
E,
|
|
56
56
|
{
|
|
57
57
|
"aria-label": o,
|
|
58
58
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
59
|
-
|
|
59
|
+
_,
|
|
60
60
|
{
|
|
61
61
|
component: "span",
|
|
62
62
|
direction: "row",
|
|
@@ -67,19 +67,19 @@ const l1 = () => {
|
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
71
|
-
const F =
|
|
70
|
+
children: /* @__PURE__ */ e(_, { children: i.map((V, x, j) => {
|
|
71
|
+
const F = x === j.length - 1;
|
|
72
72
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
W,
|
|
75
75
|
{
|
|
76
|
-
account:
|
|
77
|
-
onRowClick: () =>
|
|
76
|
+
account: V,
|
|
77
|
+
onRowClick: () => Z(V),
|
|
78
78
|
shouldShowConnectionStatus: !0
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
t === "hidden" ? /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
A,
|
|
83
83
|
{
|
|
84
84
|
sx: {
|
|
85
85
|
mb: F ? 24 : 4,
|
|
@@ -87,7 +87,7 @@ const l1 = () => {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
) : !F && /* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
A,
|
|
91
91
|
{
|
|
92
92
|
sx: {
|
|
93
93
|
mb: 4,
|
|
@@ -95,17 +95,17 @@ const l1 = () => {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
)
|
|
98
|
-
] },
|
|
98
|
+
] }, V.guid);
|
|
99
99
|
}) })
|
|
100
100
|
}
|
|
101
101
|
) });
|
|
102
102
|
};
|
|
103
103
|
return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
|
|
104
|
-
|
|
104
|
+
s.map((t) => {
|
|
105
105
|
const i = l.filter(
|
|
106
106
|
(o) => o.account_type === t && !o.is_closed && !o.is_hidden
|
|
107
107
|
), k = i.reduce(
|
|
108
|
-
(o,
|
|
108
|
+
(o, V) => (V.balance || 0) + o,
|
|
109
109
|
0
|
|
110
110
|
);
|
|
111
111
|
return i.length === 0 ? null : /* @__PURE__ */ e(
|
|
@@ -113,7 +113,7 @@ const l1 = () => {
|
|
|
113
113
|
{
|
|
114
114
|
"aria-label": C.account_type_accounts[i[0]?.account_type],
|
|
115
115
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
116
|
-
|
|
116
|
+
_,
|
|
117
117
|
{
|
|
118
118
|
component: "span",
|
|
119
119
|
direction: "row",
|
|
@@ -124,23 +124,23 @@ const l1 = () => {
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
) }),
|
|
127
|
-
children: /* @__PURE__ */ e(
|
|
128
|
-
const
|
|
127
|
+
children: /* @__PURE__ */ e(_, { children: i.map((o) => {
|
|
128
|
+
const V = l.indexOf(o) === l.length - 1, x = i.indexOf(o) === i.length - 1;
|
|
129
129
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
W,
|
|
132
132
|
{
|
|
133
133
|
account: o,
|
|
134
|
-
onRowClick: () =>
|
|
134
|
+
onRowClick: () => Z(o),
|
|
135
135
|
shouldShowConnectionStatus: !0
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
(!
|
|
139
|
-
|
|
138
|
+
(!V || p.length > 0 || u.length > 0) && /* @__PURE__ */ e(
|
|
139
|
+
A,
|
|
140
140
|
{
|
|
141
141
|
sx: {
|
|
142
|
-
mb:
|
|
143
|
-
ml:
|
|
142
|
+
mb: x ? 24 : 4,
|
|
143
|
+
ml: x ? 24 : 68
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
)
|
|
@@ -150,104 +150,109 @@ const l1 = () => {
|
|
|
150
150
|
t
|
|
151
151
|
);
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
u.length > 0 && m("hidden"),
|
|
154
|
+
p.length > 0 && m("closed"),
|
|
155
155
|
/* @__PURE__ */ n(
|
|
156
|
-
|
|
156
|
+
J,
|
|
157
157
|
{
|
|
158
158
|
ariaLabelClose: C.close_account_details_aria,
|
|
159
159
|
isOpen: !!c,
|
|
160
|
-
onClose: () =>
|
|
160
|
+
onClose: () => H(""),
|
|
161
161
|
title: C.account_details,
|
|
162
162
|
children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
/* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ e(P, {}),
|
|
164
|
+
/* @__PURE__ */ e(K, {})
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
)
|
|
168
168
|
] });
|
|
169
|
-
},
|
|
170
|
-
const [C, l] = d.useState(!1), [
|
|
169
|
+
}, n1 = g(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
|
|
170
|
+
const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: M, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
|
|
171
171
|
d.useEffect(() => {
|
|
172
|
-
|
|
173
|
-
}, [
|
|
172
|
+
M(f);
|
|
173
|
+
}, [f]);
|
|
174
174
|
const t = () => {
|
|
175
|
-
l(!0), m(
|
|
175
|
+
l(!0), m(y.ACCOUNTS_CLICK_CONNECT);
|
|
176
176
|
}, i = () => {
|
|
177
|
-
r(!0), m(
|
|
177
|
+
r(!0), m(y.ACCOUNTS_CLICK_CONNECT);
|
|
178
178
|
};
|
|
179
|
-
return
|
|
180
|
-
|
|
179
|
+
return u ? /* @__PURE__ */ e(
|
|
180
|
+
Q,
|
|
181
181
|
{
|
|
182
|
-
accountOptions:
|
|
183
|
-
actions:
|
|
184
|
-
{ iconName: "add", label:
|
|
182
|
+
accountOptions: f,
|
|
183
|
+
actions: L.show_connections_widget_in_master ? [
|
|
184
|
+
{ iconName: "add", label: s.add, onClick: t },
|
|
185
185
|
{
|
|
186
186
|
iconName: "credit_card_gear",
|
|
187
|
-
label:
|
|
187
|
+
label: s.manage,
|
|
188
188
|
onClick: i
|
|
189
189
|
}
|
|
190
190
|
] : [],
|
|
191
|
-
onAccountsFilterClick: () => m(
|
|
191
|
+
onAccountsFilterClick: () => m(y.ACCOUNTS_CLICK_FILTER),
|
|
192
192
|
onBackClick: c,
|
|
193
|
-
sx:
|
|
194
|
-
title:
|
|
195
|
-
children:
|
|
196
|
-
/* @__PURE__ */ n(B, { sx: { px:
|
|
197
|
-
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children:
|
|
198
|
-
/* @__PURE__ */ e(
|
|
193
|
+
sx: H,
|
|
194
|
+
title: s.title,
|
|
195
|
+
children: p ? /* @__PURE__ */ n(G, { children: [
|
|
196
|
+
/* @__PURE__ */ n(B, { sx: { px: Z ? 24 : 12 }, children: [
|
|
197
|
+
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: s.no_accounts }),
|
|
198
|
+
/* @__PURE__ */ e(n1, {})
|
|
199
199
|
] }),
|
|
200
200
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
201
|
+
U,
|
|
202
202
|
{
|
|
203
203
|
onClose: () => l(!1),
|
|
204
204
|
showConnectWidget: C,
|
|
205
|
-
title:
|
|
205
|
+
title: a.mini_title
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
208
|
/* @__PURE__ */ e(
|
|
209
|
-
|
|
209
|
+
X,
|
|
210
210
|
{
|
|
211
211
|
onClose: () => r(!1),
|
|
212
|
-
showConnectionsWidget:
|
|
213
|
-
title:
|
|
212
|
+
showConnectionsWidget: h,
|
|
213
|
+
title: s.manage_connections
|
|
214
214
|
}
|
|
215
215
|
)
|
|
216
216
|
] }) : /* @__PURE__ */ e(R, {})
|
|
217
217
|
}
|
|
218
218
|
) : /* @__PURE__ */ e(R, {});
|
|
219
|
-
},
|
|
220
|
-
const { visibleAccounts: C } = T(), { accounts: l } =
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}, [C])
|
|
224
|
-
|
|
219
|
+
}, E1 = g(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
|
|
220
|
+
const { visibleAccounts: C } = T(), { accounts: l } = w(), { isCopyLoaded: h, isInitialized: r, selectedAccounts: L, setSelectedAccounts: f } = S(), { isDesktop: s } = N();
|
|
221
|
+
d.useEffect(() => {
|
|
222
|
+
f(C);
|
|
223
|
+
}, [C]);
|
|
224
|
+
const a = d.useMemo(
|
|
225
|
+
() => e1(L, s ? 5 : 3),
|
|
226
|
+
[L, s]
|
|
227
|
+
);
|
|
228
|
+
return h ? /* @__PURE__ */ e(
|
|
229
|
+
$,
|
|
225
230
|
{
|
|
226
231
|
className: "mx-exp-accounts-miniwidget",
|
|
227
232
|
onPrimaryCtaClick: c,
|
|
228
233
|
primaryCtaLabel: l.primary_cta,
|
|
229
|
-
sx:
|
|
234
|
+
sx: H,
|
|
230
235
|
title: l.mini_title,
|
|
231
236
|
children: r ? /* @__PURE__ */ n(E, { children: [
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
const
|
|
237
|
+
L.length === 0 && /* @__PURE__ */ e(t1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
238
|
+
a.map((u, p) => {
|
|
239
|
+
const M = a.indexOf(u) === a.length - 1;
|
|
235
240
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
236
241
|
/* @__PURE__ */ e(
|
|
237
242
|
W,
|
|
238
243
|
{
|
|
239
|
-
account:
|
|
244
|
+
account: u,
|
|
240
245
|
listItemProps: { sx: { px: 24 } },
|
|
241
246
|
shouldShowConnectionStatus: !0
|
|
242
247
|
}
|
|
243
248
|
),
|
|
244
|
-
!
|
|
245
|
-
] }, `account-item${
|
|
249
|
+
!M && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
|
|
250
|
+
] }, `account-item${p}`);
|
|
246
251
|
})
|
|
247
252
|
] }) : /* @__PURE__ */ e(R, {})
|
|
248
253
|
}
|
|
249
254
|
) : /* @__PURE__ */ e(R, {});
|
|
250
|
-
},
|
|
255
|
+
}, W1 = g(o1), d1 = () => /* @__PURE__ */ n(
|
|
251
256
|
"svg",
|
|
252
257
|
{
|
|
253
258
|
fill: "none",
|
|
@@ -686,10 +691,10 @@ const l1 = () => {
|
|
|
686
691
|
)
|
|
687
692
|
]
|
|
688
693
|
}
|
|
689
|
-
),
|
|
690
|
-
const { connect: c } =
|
|
691
|
-
return /* @__PURE__ */ n(
|
|
692
|
-
/* @__PURE__ */ e(
|
|
694
|
+
), c1 = () => {
|
|
695
|
+
const { connect: c } = w();
|
|
696
|
+
return /* @__PURE__ */ n(l1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
697
|
+
/* @__PURE__ */ e(d1, {}),
|
|
693
698
|
/* @__PURE__ */ e(
|
|
694
699
|
v,
|
|
695
700
|
{
|
|
@@ -703,48 +708,48 @@ const l1 = () => {
|
|
|
703
708
|
}
|
|
704
709
|
)
|
|
705
710
|
] });
|
|
706
|
-
},
|
|
711
|
+
}, s1 = g(c1), a1 = ({
|
|
707
712
|
onPrimaryCtaClick: c = () => {
|
|
708
713
|
},
|
|
709
|
-
sx:
|
|
714
|
+
sx: H
|
|
710
715
|
}) => {
|
|
711
|
-
const { isCopyLoaded: C } =
|
|
716
|
+
const { isCopyLoaded: C } = S(), { connect: l } = w(), [h, r] = d.useState(!1), L = () => {
|
|
712
717
|
r(!0), c();
|
|
713
718
|
};
|
|
714
719
|
return C ? /* @__PURE__ */ n(
|
|
715
|
-
|
|
720
|
+
$,
|
|
716
721
|
{
|
|
717
722
|
className: "mx-exp-connect-miniwidget",
|
|
718
|
-
onPrimaryCtaClick:
|
|
723
|
+
onPrimaryCtaClick: L,
|
|
719
724
|
primaryCtaLabel: l.primary_cta,
|
|
720
|
-
sx:
|
|
725
|
+
sx: H,
|
|
721
726
|
title: l.mini_title,
|
|
722
727
|
children: [
|
|
723
|
-
/* @__PURE__ */ e(
|
|
724
|
-
|
|
725
|
-
|
|
728
|
+
/* @__PURE__ */ e(s1, {}),
|
|
729
|
+
h && /* @__PURE__ */ e(
|
|
730
|
+
U,
|
|
726
731
|
{
|
|
727
732
|
onClose: () => r(!1),
|
|
728
|
-
showConnectWidget:
|
|
733
|
+
showConnectWidget: h,
|
|
729
734
|
title: l.mini_title
|
|
730
735
|
}
|
|
731
736
|
)
|
|
732
737
|
]
|
|
733
738
|
}
|
|
734
739
|
) : /* @__PURE__ */ e(R, {});
|
|
735
|
-
},
|
|
740
|
+
}, T1 = g(a1);
|
|
736
741
|
export {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
742
|
+
P1 as AccountApi,
|
|
743
|
+
K as AccountDetailsContent,
|
|
744
|
+
P as AccountDetailsHeader,
|
|
745
|
+
Y1 as AccountStore,
|
|
746
|
+
W1 as AccountsMiniWidget,
|
|
747
|
+
E1 as AccountsWidget,
|
|
748
|
+
T1 as ConnectMiniWidget,
|
|
749
|
+
G1 as FieldType,
|
|
750
|
+
K1 as MemberConnectionStatus,
|
|
751
|
+
U1 as getAccountBalanceDetails,
|
|
752
|
+
$1 as getAccountDetailFields,
|
|
753
|
+
z as useAccountUiStore,
|
|
754
|
+
D1 as useGetMergeableAccounts
|
|
750
755
|
};
|