@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1
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/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
- package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
- package/dist/AccountListItem-DX5upmCS.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
- package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
- package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
- package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
- package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
- package/dist/accounts/index.es.js +94 -94
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +251 -250
- package/dist/cashflow/index.es.js +158 -157
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +660 -395
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +440 -440
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
- package/dist/finstrong/index.es.js +118 -118
- package/dist/goals/index.es.js +380 -386
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +7 -7
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +185 -191
- package/dist/notifications/index.es.js +30 -30
- package/dist/recurringtransactions/index.es.js +85 -85
- package/dist/settings/index.es.js +270 -270
- package/dist/spending/index.es.js +44 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +169 -168
- package/dist/trends/index.es.js +318 -317
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +50 -45
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import o from "react";
|
|
3
3
|
import { observer as ce } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import $ from "@mui/material/Box";
|
|
5
5
|
import M from "@mui/material/Button";
|
|
6
6
|
import re from "@mui/material/Card";
|
|
7
7
|
import oe from "@mui/material/CardContent";
|
|
@@ -12,11 +12,11 @@ import Y from "@mui/material/Stack";
|
|
|
12
12
|
import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
13
13
|
import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
14
|
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
|
-
import { L as Ie } from "./Loader-
|
|
16
|
-
import { g as Ee, b as Re, u as ge, a as Ae, W as
|
|
17
|
-
import { u as ie } from "./useScreenSize-
|
|
15
|
+
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
16
|
+
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
|
|
17
|
+
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
18
|
import { addMonths as Q } from "date-fns/addMonths";
|
|
19
|
-
import { addDays as
|
|
19
|
+
import { addDays as ue } from "date-fns/addDays";
|
|
20
20
|
import { addYears as ee } from "date-fns/addYears";
|
|
21
21
|
import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
|
|
22
22
|
import { endOfDay as me } from "date-fns/endOfDay";
|
|
@@ -34,10 +34,10 @@ import fe from "@mui/material/Tab";
|
|
|
34
34
|
import be from "@mui/material/Tabs";
|
|
35
35
|
import we from "@mui/material/ToggleButton";
|
|
36
36
|
import Ke from "@mui/material/ToggleButtonGroup";
|
|
37
|
-
import
|
|
38
|
-
import { f as K, a as G, D as Me } from "./Dialog-
|
|
39
|
-
import { D as We } from "./Drawer-
|
|
40
|
-
import { k as ye, l as xe } from "./ConnectDrawer-
|
|
37
|
+
import Ge from "@mui/material/styles/useTheme";
|
|
38
|
+
import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
|
|
39
|
+
import { D as We } from "./Drawer-BEtCk82g.mjs";
|
|
40
|
+
import { k as ye, l as xe } from "./ConnectDrawer-BIbTqYOH.mjs";
|
|
41
41
|
const ve = {
|
|
42
42
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
43
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -158,7 +158,7 @@ const ve = {
|
|
|
158
158
|
TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
|
|
159
159
|
TRENDS_LOAD_WIDGET: "trends_load_widget",
|
|
160
160
|
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
|
|
161
|
-
},
|
|
161
|
+
}, Ue = ({
|
|
162
162
|
calendarActions: a,
|
|
163
163
|
color: N = "primary",
|
|
164
164
|
copy: _,
|
|
@@ -189,24 +189,24 @@ const ve = {
|
|
|
189
189
|
const e = V(te());
|
|
190
190
|
return [V(j(e, h)), e];
|
|
191
191
|
}, w = (e) => {
|
|
192
|
-
const [i, E] = s,
|
|
193
|
-
let
|
|
192
|
+
const [i, E] = s, S = e === "previous";
|
|
193
|
+
let u;
|
|
194
194
|
if (c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
V(
|
|
195
|
+
u = [
|
|
196
|
+
S ? j(i, 1) : Q(i, 1),
|
|
197
|
+
V(S ? j(E, 1) : Q(E, 1))
|
|
198
198
|
];
|
|
199
199
|
else if (c === _.dateRangePickerCopy.dateRangeYTD || c === _.dateRangePickerCopy.dateRangeLastYear) {
|
|
200
200
|
const R = ke(i), g = Le(i);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
u = [
|
|
202
|
+
S ? _e(R, 1) : ee(R, 1),
|
|
203
|
+
S ? _e(g, 1) : ee(g, 1)
|
|
204
204
|
];
|
|
205
205
|
} else {
|
|
206
|
-
const R = Ne(E, i), g =
|
|
207
|
-
|
|
206
|
+
const R = Ne(E, i), g = S ? he : ue;
|
|
207
|
+
u = [g(i, R), g(E, R)];
|
|
208
208
|
}
|
|
209
|
-
f(
|
|
209
|
+
f(u), a.onRangeChanged(u);
|
|
210
210
|
}, x = () => {
|
|
211
211
|
f(r), y(
|
|
212
212
|
c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
|
|
@@ -218,9 +218,9 @@ const ve = {
|
|
|
218
218
|
}, U = (e) => {
|
|
219
219
|
l(e);
|
|
220
220
|
};
|
|
221
|
-
return /* @__PURE__ */ d(
|
|
221
|
+
return /* @__PURE__ */ d($, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
222
222
|
/* @__PURE__ */ d(
|
|
223
|
-
|
|
223
|
+
$,
|
|
224
224
|
{
|
|
225
225
|
sx: {
|
|
226
226
|
[W.breakpoints.down("sm")]: {
|
|
@@ -322,7 +322,7 @@ const ve = {
|
|
|
322
322
|
children: C.tabs.map((e) => /* @__PURE__ */ t(
|
|
323
323
|
fe,
|
|
324
324
|
{
|
|
325
|
-
label: /* @__PURE__ */ t(X, { bold: !0, variant: "
|
|
325
|
+
label: /* @__PURE__ */ t(X, { bold: !0, variant: "Body", children: e.label }),
|
|
326
326
|
sx: { minWidth: 80 },
|
|
327
327
|
value: e.value
|
|
328
328
|
},
|
|
@@ -387,7 +387,7 @@ const ve = {
|
|
|
387
387
|
}
|
|
388
388
|
)
|
|
389
389
|
] });
|
|
390
|
-
}, Ue = ({
|
|
390
|
+
}, ae = Ue, Pe = ({
|
|
391
391
|
accountOptions: a,
|
|
392
392
|
actions: N = [],
|
|
393
393
|
calendarActions: _,
|
|
@@ -402,12 +402,12 @@ const ve = {
|
|
|
402
402
|
sx: H = {},
|
|
403
403
|
title: r = ""
|
|
404
404
|
}) => {
|
|
405
|
-
const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(),
|
|
405
|
+
const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), S = () => {
|
|
406
406
|
s && (s(), h(ve.WIDGET_BACK_CLICK));
|
|
407
407
|
};
|
|
408
408
|
if (!x)
|
|
409
409
|
return /* @__PURE__ */ t(Ie, {});
|
|
410
|
-
const
|
|
410
|
+
const u = {
|
|
411
411
|
accountFilterOptionsCopy: {
|
|
412
412
|
accountTypeAccounts: e.account_filter.account_type_accounts,
|
|
413
413
|
cancelButton: e.cancel_button,
|
|
@@ -439,7 +439,7 @@ const ve = {
|
|
|
439
439
|
dateRangeEditTitle: e.date_range_picker.edit_title,
|
|
440
440
|
dateRangeNextAria: e.date_range_picker.next_aria,
|
|
441
441
|
dateRangePreviousAria: e.date_range_picker.previous_aria
|
|
442
|
-
}, g = L ? L.start : w.start,
|
|
442
|
+
}, g = L ? L.start : w.start, Z = L ? L.end : w.end, ne = N?.length > 1;
|
|
443
443
|
return /* @__PURE__ */ d(
|
|
444
444
|
re,
|
|
445
445
|
{
|
|
@@ -456,12 +456,12 @@ const ve = {
|
|
|
456
456
|
se,
|
|
457
457
|
{
|
|
458
458
|
action: /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", children: [
|
|
459
|
-
l && _ && /* @__PURE__ */ t(
|
|
459
|
+
l && _ && /* @__PURE__ */ t($, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
|
|
460
460
|
ae,
|
|
461
461
|
{
|
|
462
462
|
calendarActions: _,
|
|
463
463
|
copy: R,
|
|
464
|
-
range: [g,
|
|
464
|
+
range: [g, Z],
|
|
465
465
|
shouldShrinkToIcon: !1,
|
|
466
466
|
variant: n
|
|
467
467
|
}
|
|
@@ -470,7 +470,7 @@ const ve = {
|
|
|
470
470
|
ye,
|
|
471
471
|
{
|
|
472
472
|
accounts: a,
|
|
473
|
-
copy:
|
|
473
|
+
copy: u,
|
|
474
474
|
onConnectAccountClick: E.show_connections_widget_in_master ? () => p(!0) : void 0,
|
|
475
475
|
onFilterClick: (O) => {
|
|
476
476
|
U(O), f?.(O);
|
|
@@ -522,7 +522,7 @@ const ve = {
|
|
|
522
522
|
{
|
|
523
523
|
"aria-label": e.back_to_dashboard,
|
|
524
524
|
color: "primary",
|
|
525
|
-
onClick:
|
|
525
|
+
onClick: S,
|
|
526
526
|
sx: { p: 12, mr: 4 },
|
|
527
527
|
children: /* @__PURE__ */ t(le, { size: 24 })
|
|
528
528
|
}
|
|
@@ -539,7 +539,7 @@ const ve = {
|
|
|
539
539
|
{
|
|
540
540
|
calendarActions: _,
|
|
541
541
|
copy: R,
|
|
542
|
-
range: [g,
|
|
542
|
+
range: [g, Z],
|
|
543
543
|
shouldShrinkToIcon: !1,
|
|
544
544
|
variant: n
|
|
545
545
|
}
|
|
@@ -553,13 +553,13 @@ const ve = {
|
|
|
553
553
|
title: i.mini_title
|
|
554
554
|
}
|
|
555
555
|
),
|
|
556
|
-
/* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(
|
|
556
|
+
/* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(Se, { availableHeight: F, availableWidth: y, children: m }) })
|
|
557
557
|
]
|
|
558
558
|
}
|
|
559
559
|
);
|
|
560
|
-
},
|
|
560
|
+
}, ht = ce(Pe);
|
|
561
561
|
export {
|
|
562
562
|
ve as A,
|
|
563
563
|
ae as D,
|
|
564
|
-
|
|
564
|
+
ht as W
|
|
565
565
|
};
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import { observer as g } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import I from "@mui/material/Stack";
|
|
5
5
|
import { Text as V } from "@mxenabled/mxui";
|
|
6
6
|
import { S as U } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
7
|
-
import
|
|
7
|
+
import D from "@mui/material/Box";
|
|
8
8
|
import y from "@mui/material/Divider";
|
|
9
9
|
import E from "@mui/material/List";
|
|
10
|
-
import
|
|
10
|
+
import N from "@mui/material/ListSubheader";
|
|
11
11
|
import x from "@mui/system/Stack";
|
|
12
12
|
import { useTheme as Q } from "@mui/material/styles";
|
|
13
|
-
import { u as P, A as X } from "../AccountDetailsHeader-
|
|
14
|
-
import { L as e1 } from "../LineChart-
|
|
15
|
-
import { g as t1, a as l1, b as n1 } from "../SpendingData-
|
|
16
|
-
import { m as i1, u as v, b
|
|
17
|
-
import { A as
|
|
18
|
-
import { F as C3, f as
|
|
19
|
-
import { I as
|
|
20
|
-
import { a as
|
|
21
|
-
import { g as s3, b as a3 } from "../AccountFields-
|
|
22
|
-
import { A as T } from "../AccountListItem-
|
|
23
|
-
import { A as s1 } from "../AccountDetailsContent-
|
|
24
|
-
import { u as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { A as
|
|
28
|
-
import { C as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import { M as q } from "../MiniWidgetContainer-
|
|
33
|
-
import { A as h3, a as H3 } from "../AccountStore-
|
|
13
|
+
import { u as P, A as X } from "../AccountDetailsHeader-i3KFhNuo.mjs";
|
|
14
|
+
import { L as e1 } from "../LineChart-bc1D9xBE.mjs";
|
|
15
|
+
import { g as t1, a as l1, b as n1 } from "../SpendingData-BuJ03S9d.mjs";
|
|
16
|
+
import { m as i1, u as v, b, d as F, g as G, a as o1, n as C1 } from "../hooks-C41HAxM5.mjs";
|
|
17
|
+
import { A as O, l as $, m as c1 } from "../ConnectDrawer-BIbTqYOH.mjs";
|
|
18
|
+
import { F as C3, f as c3 } from "../ConnectDrawer-BIbTqYOH.mjs";
|
|
19
|
+
import { I as j, P as Y, S as K } from "../Account-BDXA6PWh.mjs";
|
|
20
|
+
import { a as d1 } from "../AccountFields-QZspYAji.mjs";
|
|
21
|
+
import { g as s3, b as a3 } from "../AccountFields-QZspYAji.mjs";
|
|
22
|
+
import { A as T } from "../AccountListItem-DX5upmCS.mjs";
|
|
23
|
+
import { A as s1 } from "../AccountDetailsContent-CUztd3-b.mjs";
|
|
24
|
+
import { u as L3 } from "../AccountDetailsContent-CUztd3-b.mjs";
|
|
25
|
+
import { f as W } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
26
|
+
import { D as a1 } from "../Drawer-BEtCk82g.mjs";
|
|
27
|
+
import { A as S, W as r1 } from "../WidgetContainer-BhQ1Kx2z.mjs";
|
|
28
|
+
import { C as L1 } from "../ConnectionsDrawer-BFfY3_zB.mjs";
|
|
29
|
+
import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
30
|
+
import { L as B } from "../Loader-DUaFpDGv.mjs";
|
|
31
|
+
import u1 from "@mui/material/ListItem";
|
|
32
|
+
import { M as q } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
33
|
+
import { A as h3, a as H3 } from "../AccountStore-BcnDpyLL.mjs";
|
|
34
34
|
const h1 = (o, C) => {
|
|
35
|
-
const n =
|
|
36
|
-
return [n, l,
|
|
35
|
+
const n = j.includes(C) ? t1(o) : [], l = Y.includes(C) ? l1(o) : [], L = K.includes(C) ? n1(o) : [];
|
|
36
|
+
return [n, l, L].filter((i) => i.length > 0);
|
|
37
37
|
}, H1 = (o, C, n) => {
|
|
38
|
-
const [l,
|
|
39
|
-
if (i &&
|
|
38
|
+
const [l, L] = o, i = l, u = L ?? l, c = [];
|
|
39
|
+
if (i && u && j.includes(C)) {
|
|
40
40
|
const h = i[i.length - 1].y;
|
|
41
|
-
|
|
42
|
-
} else if (
|
|
41
|
+
c.push({ label: n.income_label, amount: h });
|
|
42
|
+
} else if (Y.includes(C)) {
|
|
43
43
|
const h = i[i.length - 1].y;
|
|
44
|
-
|
|
44
|
+
c.push({ label: n.payments_label, amount: h });
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
47
|
-
const h =
|
|
48
|
-
|
|
46
|
+
if (u && K.includes(C)) {
|
|
47
|
+
const h = u[u.length - 1].y;
|
|
48
|
+
c.push({ label: n.spending_label, amount: h });
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return c;
|
|
51
51
|
}, p1 = () => {
|
|
52
|
-
const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(),
|
|
52
|
+
const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(), L = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(n, C.account_type), u = H1(i, C.account_type, l), c = [O.LOAN, O.MORTGAGE].includes(C.account_type);
|
|
53
53
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
54
54
|
e1,
|
|
55
55
|
{
|
|
56
|
-
colors:
|
|
56
|
+
colors: L,
|
|
57
57
|
datasets: i,
|
|
58
58
|
height: 185,
|
|
59
|
-
labels:
|
|
60
|
-
showAverage:
|
|
61
|
-
showBars:
|
|
59
|
+
labels: u,
|
|
60
|
+
showAverage: c,
|
|
61
|
+
showBars: c,
|
|
62
62
|
showLegend: !0,
|
|
63
63
|
valueFormatterString: "0,0"
|
|
64
64
|
}
|
|
65
65
|
) });
|
|
66
66
|
}, f1 = g(p1), m1 = () => {
|
|
67
|
-
const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } =
|
|
67
|
+
const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } = b(), { setSelectedAccount: L, setSelectedMember: i } = P(), { members: u } = F(), { onEvent: c } = G(), h = [...new Set(l.map((t) => t.account_type))], p = l.find((t) => o === t.guid), H = s.useMemo(
|
|
68
68
|
() => l.filter((t) => t.is_hidden),
|
|
69
69
|
[l]
|
|
70
70
|
), f = s.useMemo(
|
|
@@ -73,34 +73,34 @@ const h1 = (o, C) => {
|
|
|
73
73
|
), M = H.reduce(
|
|
74
74
|
(t, a) => (a.available_balance || a.balance || 0) + t,
|
|
75
75
|
0
|
|
76
|
-
), R =
|
|
76
|
+
), R = d1(f, n);
|
|
77
77
|
s.useEffect(() => {
|
|
78
78
|
if (p) {
|
|
79
|
-
|
|
80
|
-
const t =
|
|
79
|
+
L(p);
|
|
80
|
+
const t = u.find((a) => a.guid === p?.member_guid) || {};
|
|
81
81
|
t && i(t);
|
|
82
82
|
}
|
|
83
83
|
}, [p, o]);
|
|
84
84
|
const _ = (t) => {
|
|
85
|
-
C(t.guid),
|
|
85
|
+
C(t.guid), c(S.ACCOUNTS_CLICK_ACCOUNT, {
|
|
86
86
|
account_guid: t.guid,
|
|
87
87
|
account_type: t.account_type
|
|
88
88
|
});
|
|
89
89
|
}, w = (t) => {
|
|
90
|
-
const a = t === "hidden" ? H : f, A = t === "hidden" ? M : R,
|
|
91
|
-
return /* @__PURE__ */ e(
|
|
90
|
+
const a = t === "hidden" ? H : f, A = t === "hidden" ? M : R, d = t === "hidden" ? n.account_hidden : n.account_closed;
|
|
91
|
+
return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
92
92
|
E,
|
|
93
93
|
{
|
|
94
|
-
"aria-label":
|
|
95
|
-
subheader: /* @__PURE__ */ e(
|
|
94
|
+
"aria-label": d,
|
|
95
|
+
subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
96
96
|
x,
|
|
97
97
|
{
|
|
98
98
|
component: "span",
|
|
99
99
|
direction: "row",
|
|
100
100
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
101
101
|
children: [
|
|
102
|
-
/* @__PURE__ */ e(V, { bold: !0, variant: "
|
|
103
|
-
/* @__PURE__ */ e(V, { bold: !0, variant: "
|
|
102
|
+
/* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: d }),
|
|
103
|
+
/* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
) }),
|
|
@@ -137,38 +137,38 @@ const h1 = (o, C) => {
|
|
|
137
137
|
}
|
|
138
138
|
) });
|
|
139
139
|
};
|
|
140
|
-
return /* @__PURE__ */ r(
|
|
140
|
+
return /* @__PURE__ */ r(D, { sx: { pt: 24 }, children: [
|
|
141
141
|
h.map((t) => {
|
|
142
142
|
const a = l.filter(
|
|
143
|
-
(
|
|
143
|
+
(d) => d.account_type === t && !d.is_closed && !d.is_hidden
|
|
144
144
|
), A = a.reduce(
|
|
145
|
-
(
|
|
145
|
+
(d, m) => (m.balance || 0) + d,
|
|
146
146
|
0
|
|
147
147
|
);
|
|
148
148
|
return a.length === 0 ? null : /* @__PURE__ */ e(
|
|
149
149
|
E,
|
|
150
150
|
{
|
|
151
151
|
"aria-label": n.account_type_accounts[a[0]?.account_type],
|
|
152
|
-
subheader: /* @__PURE__ */ e(
|
|
152
|
+
subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
153
153
|
x,
|
|
154
154
|
{
|
|
155
155
|
component: "span",
|
|
156
156
|
direction: "row",
|
|
157
157
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */ e(V, { bold: !0, variant: "
|
|
160
|
-
/* @__PURE__ */ e(V, { bold: !0, variant: "
|
|
159
|
+
/* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: n.account_types[t] }),
|
|
160
|
+
/* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
) }),
|
|
164
|
-
children: /* @__PURE__ */ e(x, { children: a.map((
|
|
165
|
-
const m = l.indexOf(
|
|
164
|
+
children: /* @__PURE__ */ e(x, { children: a.map((d) => {
|
|
165
|
+
const m = l.indexOf(d) === l.length - 1, Z = a.indexOf(d) === a.length - 1;
|
|
166
166
|
return /* @__PURE__ */ r(s.Fragment, { children: [
|
|
167
167
|
/* @__PURE__ */ e(
|
|
168
168
|
T,
|
|
169
169
|
{
|
|
170
|
-
account:
|
|
171
|
-
onRowClick: () => _(
|
|
170
|
+
account: d,
|
|
171
|
+
onRowClick: () => _(d),
|
|
172
172
|
shouldShowConnectionStatus: !0
|
|
173
173
|
}
|
|
174
174
|
),
|
|
@@ -181,7 +181,7 @@ const h1 = (o, C) => {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
)
|
|
184
|
-
] },
|
|
184
|
+
] }, d.guid);
|
|
185
185
|
}) })
|
|
186
186
|
},
|
|
187
187
|
t
|
|
@@ -204,42 +204,42 @@ const h1 = (o, C) => {
|
|
|
204
204
|
)
|
|
205
205
|
] });
|
|
206
206
|
}, V1 = g(m1), g1 = ({ onBackClick: o, sx: C = {} }) => {
|
|
207
|
-
const [n, l] = s.useState(!1), [
|
|
207
|
+
const [n, l] = s.useState(!1), [L, i] = s.useState(!1), { config: u } = o1(), { detailedAccounts: c, isAccountDataLoaded: h, loadAccountData: p } = F(), { accounts: H, connect: f } = v(), { isInitialized: M, selectedAccountGuids: R, setSelectedAccounts: _ } = b(), { isDesktop: w } = z(), { onEvent: t } = G(), { onLoad: a } = C1();
|
|
208
208
|
s.useEffect(() => {
|
|
209
209
|
h || p().finally();
|
|
210
210
|
}, []), s.useEffect(() => {
|
|
211
|
-
_(
|
|
212
|
-
}, [
|
|
211
|
+
_(c);
|
|
212
|
+
}, [c]), s.useEffect(() => {
|
|
213
213
|
h && a?.("AccountsWidget");
|
|
214
214
|
}, [h]);
|
|
215
215
|
const A = () => {
|
|
216
|
-
l(!0), t(
|
|
217
|
-
},
|
|
218
|
-
i(!0), t(
|
|
216
|
+
l(!0), t(S.ACCOUNTS_CLICK_CONNECT);
|
|
217
|
+
}, d = () => {
|
|
218
|
+
i(!0), t(S.ACCOUNTS_CLICK_CONNECT);
|
|
219
219
|
};
|
|
220
220
|
return M ? /* @__PURE__ */ r(
|
|
221
221
|
r1,
|
|
222
222
|
{
|
|
223
|
-
accountOptions:
|
|
224
|
-
actions:
|
|
223
|
+
accountOptions: c,
|
|
224
|
+
actions: u.show_connections_widget_in_master ? [
|
|
225
225
|
{ iconName: "add", label: H.add, onClick: A },
|
|
226
226
|
{
|
|
227
227
|
iconName: "credit_card_gear",
|
|
228
228
|
label: H.manage,
|
|
229
|
-
onClick:
|
|
229
|
+
onClick: d
|
|
230
230
|
}
|
|
231
231
|
] : [],
|
|
232
|
-
onAccountsFilterClick: () => t(
|
|
232
|
+
onAccountsFilterClick: () => t(S.ACCOUNTS_CLICK_FILTER),
|
|
233
233
|
onBackClick: o,
|
|
234
234
|
sx: C,
|
|
235
235
|
title: H.title,
|
|
236
236
|
children: [
|
|
237
|
-
h ? /* @__PURE__ */ r(
|
|
237
|
+
h ? /* @__PURE__ */ r(I, { sx: { px: w ? 24 : 12 }, children: [
|
|
238
238
|
R.length < 1 && /* @__PURE__ */ e(V, { display: "flex", justifyContent: "center", my: 24, children: H.no_accounts }),
|
|
239
239
|
/* @__PURE__ */ e(V1, {})
|
|
240
240
|
] }) : /* @__PURE__ */ e(U, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
|
|
241
241
|
/* @__PURE__ */ e(
|
|
242
|
-
|
|
242
|
+
$,
|
|
243
243
|
{
|
|
244
244
|
onClose: () => l(!1),
|
|
245
245
|
showConnectWidget: n,
|
|
@@ -247,28 +247,28 @@ const h1 = (o, C) => {
|
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
249
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
250
|
+
L1,
|
|
251
251
|
{
|
|
252
252
|
onClose: () => i(!1),
|
|
253
|
-
showConnectionsWidget:
|
|
253
|
+
showConnectionsWidget: L,
|
|
254
254
|
title: H.manage_connections
|
|
255
255
|
}
|
|
256
256
|
)
|
|
257
257
|
]
|
|
258
258
|
}
|
|
259
|
-
) : /* @__PURE__ */ e(
|
|
259
|
+
) : /* @__PURE__ */ e(B, {});
|
|
260
260
|
}, t3 = g(g1), v1 = ({ onPrimaryCtaClick: o, sx: C }) => {
|
|
261
|
-
const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData:
|
|
261
|
+
const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData: L } = F(), { accounts: i } = v(), { isInitialized: u, selectedAccounts: c, setSelectedAccounts: h } = b(), { isDesktop: p } = z();
|
|
262
262
|
s.useEffect(() => {
|
|
263
|
-
l ||
|
|
263
|
+
l || L().finally();
|
|
264
264
|
}, []), s.useEffect(() => {
|
|
265
265
|
h(n);
|
|
266
266
|
}, [n]);
|
|
267
267
|
const H = s.useMemo(
|
|
268
|
-
() =>
|
|
269
|
-
[
|
|
268
|
+
() => c1(c, p ? 5 : 3),
|
|
269
|
+
[c, p]
|
|
270
270
|
);
|
|
271
|
-
return
|
|
271
|
+
return u ? /* @__PURE__ */ e(
|
|
272
272
|
q,
|
|
273
273
|
{
|
|
274
274
|
className: "mx-exp-accounts-miniwidget",
|
|
@@ -277,7 +277,7 @@ const h1 = (o, C) => {
|
|
|
277
277
|
sx: C,
|
|
278
278
|
title: i.mini_title,
|
|
279
279
|
children: l ? /* @__PURE__ */ r(E, { children: [
|
|
280
|
-
|
|
280
|
+
c.length === 0 && /* @__PURE__ */ e(u1, { sx: { justifyContent: "center" }, children: i.no_accounts }),
|
|
281
281
|
H.map((f, M) => {
|
|
282
282
|
const R = H.indexOf(f) === H.length - 1;
|
|
283
283
|
return /* @__PURE__ */ r(s.Fragment, { children: [
|
|
@@ -294,7 +294,7 @@ const h1 = (o, C) => {
|
|
|
294
294
|
})
|
|
295
295
|
] }) : /* @__PURE__ */ e(U, { sx: { px: 12, py: 8 }, variant: "list" })
|
|
296
296
|
}
|
|
297
|
-
) : /* @__PURE__ */ e(
|
|
297
|
+
) : /* @__PURE__ */ e(B, {});
|
|
298
298
|
}, l3 = g(v1), M1 = () => /* @__PURE__ */ r(
|
|
299
299
|
"svg",
|
|
300
300
|
{
|
|
@@ -736,7 +736,7 @@ const h1 = (o, C) => {
|
|
|
736
736
|
}
|
|
737
737
|
), R1 = () => {
|
|
738
738
|
const { connect: o } = v();
|
|
739
|
-
return /* @__PURE__ */ r(
|
|
739
|
+
return /* @__PURE__ */ r(I, { alignItems: "center", direction: "column", m: 24, children: [
|
|
740
740
|
/* @__PURE__ */ e(M1, {}),
|
|
741
741
|
/* @__PURE__ */ e(
|
|
742
742
|
V,
|
|
@@ -746,7 +746,7 @@ const h1 = (o, C) => {
|
|
|
746
746
|
mt: 16,
|
|
747
747
|
textAlign: "center"
|
|
748
748
|
},
|
|
749
|
-
variant: "
|
|
749
|
+
variant: "Paragraph",
|
|
750
750
|
children: o.mini_widget_content
|
|
751
751
|
}
|
|
752
752
|
)
|
|
@@ -756,30 +756,30 @@ const h1 = (o, C) => {
|
|
|
756
756
|
},
|
|
757
757
|
sx: C
|
|
758
758
|
}) => {
|
|
759
|
-
const { isCopyLoaded: n } =
|
|
759
|
+
const { isCopyLoaded: n } = b(), { connect: l } = v(), [L, i] = s.useState(!1), u = () => {
|
|
760
760
|
i(!0), o();
|
|
761
761
|
};
|
|
762
762
|
return n ? /* @__PURE__ */ r(
|
|
763
763
|
q,
|
|
764
764
|
{
|
|
765
765
|
className: "mx-exp-connect-miniwidget",
|
|
766
|
-
onPrimaryCtaClick:
|
|
766
|
+
onPrimaryCtaClick: u,
|
|
767
767
|
primaryCtaLabel: l.primary_cta,
|
|
768
768
|
sx: C,
|
|
769
769
|
title: l.mini_title,
|
|
770
770
|
children: [
|
|
771
771
|
/* @__PURE__ */ e(w1, {}),
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
L && /* @__PURE__ */ e(
|
|
773
|
+
$,
|
|
774
774
|
{
|
|
775
775
|
onClose: () => i(!1),
|
|
776
|
-
showConnectWidget:
|
|
776
|
+
showConnectWidget: L,
|
|
777
777
|
title: l.mini_title
|
|
778
778
|
}
|
|
779
779
|
)
|
|
780
780
|
]
|
|
781
781
|
}
|
|
782
|
-
) : /* @__PURE__ */ e(
|
|
782
|
+
) : /* @__PURE__ */ e(B, {});
|
|
783
783
|
}, n3 = g(A1);
|
|
784
784
|
export {
|
|
785
785
|
h3 as AccountApi,
|
|
@@ -790,9 +790,9 @@ export {
|
|
|
790
790
|
t3 as AccountsWidget,
|
|
791
791
|
n3 as ConnectMiniWidget,
|
|
792
792
|
C3 as FieldType,
|
|
793
|
-
|
|
793
|
+
c3 as MemberConnectionStatus,
|
|
794
794
|
s3 as getAccountBalanceDetails,
|
|
795
795
|
a3 as getAccountDetailFields,
|
|
796
796
|
P as useAccountUiStore,
|
|
797
|
-
|
|
797
|
+
L3 as useGetMergeableAccounts
|
|
798
798
|
};
|