@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms2
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-Cp30A3ad.mjs} +1 -1
- package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
- package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/Loader-BSWSYqvn.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
- package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
- package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
- package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
- package/dist/accounts/index.es.js +45 -45
- package/dist/analytics/index.es.js +22 -22
- package/dist/budgets/index.es.js +266 -265
- package/dist/cashflow/index.es.js +155 -154
- package/dist/categories/index.es.js +1 -1
- 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 +659 -394
- 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 +438 -438
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
- package/dist/finstrong/index.es.js +113 -113
- package/dist/goals/index.es.js +379 -385
- 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 +3 -3
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +16 -16
- 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 +29 -29
- package/dist/recurringtransactions/index.es.js +82 -82
- package/dist/settings/index.es.js +254 -254
- package/dist/spending/index.es.js +43 -43
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +150 -149
- package/dist/trends/index.es.js +297 -296
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.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 +30 -30
- 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/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
|
@@ -1,683 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, Fragment as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import u from "react";
|
|
3
|
-
import { observer as E } from "mobx-react-lite";
|
|
4
|
-
import j from "@mui/material/Tab";
|
|
5
|
-
import nt from "@mui/material/Tabs";
|
|
6
|
-
import $ from "@mui/material/List";
|
|
7
|
-
import Y from "@mui/material/ListSubheader";
|
|
8
|
-
import ot from "@mui/material/Switch";
|
|
9
|
-
import { Text as D, Icon as M } from "@mxenabled/mxui";
|
|
10
|
-
import v from "@mui/material/Divider";
|
|
11
|
-
import I from "@mui/material/ListItem";
|
|
12
|
-
import N from "@mui/material/ListItemButton";
|
|
13
|
-
import w from "@mui/material/ListItemText";
|
|
14
|
-
import { u as y } from "./AccountDetailsHeader-DRjFuyJT.mjs";
|
|
15
|
-
import { d as z, u as S, g as O, h as J } from "./hooks-C41HAxM5.mjs";
|
|
16
|
-
import { A as at } from "./AccountListItem-wgmlex-_.mjs";
|
|
17
|
-
import { D as V, f as B, a as G } from "./Dialog-CDV0kKxj.mjs";
|
|
18
|
-
import { D as X } from "./Drawer-BF40nbsH.mjs";
|
|
19
|
-
import { A as k } from "./WidgetContainer-CDh9fjpR.mjs";
|
|
20
|
-
import { b as h } from "./Localization-2MODESHW.mjs";
|
|
21
|
-
import R from "@mui/material/ListItemAvatar";
|
|
22
|
-
import ct from "@mui/material/Stack";
|
|
23
|
-
import { Language as st, Error as q, CheckCircle as it } from "@mxenabled/mx-icons";
|
|
24
|
-
import { n as p, N as Q, l as Z, F as P } from "./ConnectDrawer-DVp54lUH.mjs";
|
|
25
|
-
import { fromUnixTime as rt } from "date-fns/fromUnixTime";
|
|
26
|
-
import { isToday as lt } from "date-fns/isToday";
|
|
27
|
-
import { isYesterday as dt } from "date-fns/isYesterday";
|
|
28
|
-
import { I as F } from "./IconBacking-DgT8DCeh.mjs";
|
|
29
|
-
import { addMonths as ut } from "date-fns/addMonths";
|
|
30
|
-
import { alpha as _t } from "@mui/material/styles";
|
|
31
|
-
import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
32
|
-
import { DateCalendar as pt } from "@mui/x-date-pickers/DateCalendar";
|
|
33
|
-
import ht from "@mui/material/FormControl";
|
|
34
|
-
import gt from "@mui/material/InputLabel";
|
|
35
|
-
import { LocalizationProvider as Ct } from "@mui/x-date-pickers-pro";
|
|
36
|
-
import H from "@mui/material/MenuItem";
|
|
37
|
-
import ft from "@mui/material/Select";
|
|
38
|
-
import bt from "@mui/material/TextField";
|
|
39
|
-
import { C as At } from "./CurrencyInput-D1cjbdCI.mjs";
|
|
40
|
-
import { b as Dt } from "./AccountFields-Cl4KHoSj.mjs";
|
|
41
|
-
import Tt from "@mui/material/Alert";
|
|
42
|
-
import Et from "@mui/material/AlertTitle";
|
|
43
|
-
import yt from "@mui/material/Link";
|
|
44
|
-
import St from "@mui/material/Paper";
|
|
45
|
-
import { endOfToday as xt, subDays as wt, startOfToday as kt } from "date-fns";
|
|
46
|
-
import { T as Mt, a as vt } from "./TransactionDetails-Bn0qY5Hw.mjs";
|
|
47
|
-
import { T as K } from "./TabContentContainer-CnMXkVqr.mjs";
|
|
48
|
-
const U = ({
|
|
49
|
-
children: n,
|
|
50
|
-
isLast: o = !1,
|
|
51
|
-
onClick: t,
|
|
52
|
-
primaryText: r,
|
|
53
|
-
secondaryText: c
|
|
54
|
-
}) => /* @__PURE__ */ d(g, { children: [
|
|
55
|
-
/* @__PURE__ */ e(I, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { onClick: t, children: [
|
|
56
|
-
/* @__PURE__ */ e(w, { primary: r, secondary: c }),
|
|
57
|
-
n
|
|
58
|
-
] }) }),
|
|
59
|
-
/* @__PURE__ */ e(v, { sx: { ml: o ? 0 : 24 } })
|
|
60
|
-
] }), It = () => {
|
|
61
|
-
const { accounts: n } = z(), { selectedAccount: o, selectedMember: t } = y();
|
|
62
|
-
return n.filter(
|
|
63
|
-
(r) => r.member_guid === t.guid && t.successfully_aggregated_at && r.guid !== o.guid
|
|
64
|
-
);
|
|
65
|
-
}, Lt = () => {
|
|
66
|
-
const [n, o] = u.useState(!1), [t, r] = u.useState(!1), [c, l] = u.useState(!1), [s, _] = u.useState({}), { selectedAccount: i } = y(), { mergeAccounts: f, updateAccount: b } = z(), { accounts: a } = S(), C = It(), { onEvent: T } = O(), { modifyTransactionByAccountGuid: x } = J(), L = async (A) => {
|
|
67
|
-
await b({
|
|
68
|
-
...i,
|
|
69
|
-
...A
|
|
70
|
-
}), "is_closed" in A && A.is_closed !== i.is_closed && x(i.guid, { accountIsClosed: A.is_closed });
|
|
71
|
-
}, m = () => {
|
|
72
|
-
f([i.guid, s.guid]).finally(
|
|
73
|
-
() => r(!1)
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
return /* @__PURE__ */ d(g, { children: [
|
|
77
|
-
/* @__PURE__ */ e(Y, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(D, { bold: !0, component: "h2", variant: "caption", children: a.actions }) }),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
U,
|
|
80
|
-
{
|
|
81
|
-
onClick: () => {
|
|
82
|
-
L({ is_hidden: !i.is_hidden }), T(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: i.guid });
|
|
83
|
-
},
|
|
84
|
-
primaryText: i.is_hidden ? a.unhide_account : a.hide_Account,
|
|
85
|
-
secondaryText: i.is_hidden ? a.include_this_account : a.exclude_this_account,
|
|
86
|
-
children: /* @__PURE__ */ e(ot, { checked: i.is_hidden })
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
/* @__PURE__ */ e(
|
|
90
|
-
U,
|
|
91
|
-
{
|
|
92
|
-
onClick: () => {
|
|
93
|
-
o(!0), T(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
94
|
-
account_guid: i.guid
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
primaryText: i.is_closed ? a.mark_as_open : a.mark_as_closed,
|
|
98
|
-
secondaryText: i.is_closed ? a.this_will_set_the_closed_account : a.this_will_set_the_account_balance_to_0,
|
|
99
|
-
children: /* @__PURE__ */ e(M, { name: "chevron_right" })
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
C.length > 0 && /* @__PURE__ */ e(
|
|
103
|
-
U,
|
|
104
|
-
{
|
|
105
|
-
isLast: !0,
|
|
106
|
-
onClick: () => {
|
|
107
|
-
r(!0), T(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
108
|
-
account_guid: i.guid
|
|
109
|
-
});
|
|
110
|
-
},
|
|
111
|
-
primaryText: a.mark_as_duplicate,
|
|
112
|
-
secondaryText: a.if_a_connected_account_is_showing_up_twice,
|
|
113
|
-
children: /* @__PURE__ */ e(M, { name: "chevron_right" })
|
|
114
|
-
}
|
|
115
|
-
),
|
|
116
|
-
/* @__PURE__ */ e(
|
|
117
|
-
V,
|
|
118
|
-
{
|
|
119
|
-
copy: {
|
|
120
|
-
close_aria: a.close_modal,
|
|
121
|
-
title: i.is_closed ? a.confirm_mark_as_open : a.confirm_mark_closed
|
|
122
|
-
},
|
|
123
|
-
isOpen: n,
|
|
124
|
-
onClose: () => {
|
|
125
|
-
o(!1);
|
|
126
|
-
},
|
|
127
|
-
onPrimaryAction: () => L({ is_closed: !i.is_closed }),
|
|
128
|
-
children: /* @__PURE__ */ e(D, { truncate: !1, children: h(
|
|
129
|
-
i.is_closed ? a.this_will_resume_updating_the_balance : a.this_will_set_the_balance_of_your_account,
|
|
130
|
-
i.name
|
|
131
|
-
) })
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ e(
|
|
135
|
-
X,
|
|
136
|
-
{
|
|
137
|
-
ariaLabelClose: a.close_drawer,
|
|
138
|
-
isOpen: t,
|
|
139
|
-
onClose: () => r(!1),
|
|
140
|
-
title: a.mark_as_duplicate,
|
|
141
|
-
children: /* @__PURE__ */ e($, { children: C.map((A) => {
|
|
142
|
-
const et = C.indexOf(A) === C.length - 1;
|
|
143
|
-
return /* @__PURE__ */ d(u.Fragment, { children: [
|
|
144
|
-
/* @__PURE__ */ e(
|
|
145
|
-
at,
|
|
146
|
-
{
|
|
147
|
-
account: A,
|
|
148
|
-
onRowClick: () => {
|
|
149
|
-
l(!0), _(A);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ e($, { sx: { ml: et ? 0 : 24 } })
|
|
154
|
-
] }, A.guid);
|
|
155
|
-
}) })
|
|
156
|
-
}
|
|
157
|
-
),
|
|
158
|
-
c && /* @__PURE__ */ d(
|
|
159
|
-
V,
|
|
160
|
-
{
|
|
161
|
-
copy: {
|
|
162
|
-
close_aria: a.close_modal,
|
|
163
|
-
title: a.confirm_merge
|
|
164
|
-
},
|
|
165
|
-
isOpen: c,
|
|
166
|
-
onClose: () => l(!1),
|
|
167
|
-
onPrimaryAction: m,
|
|
168
|
-
children: [
|
|
169
|
-
/* @__PURE__ */ e(D, { truncate: !1, children: h(
|
|
170
|
-
a.this_means_accounts_will_be_merged,
|
|
171
|
-
i.name,
|
|
172
|
-
s.name
|
|
173
|
-
) }),
|
|
174
|
-
/* @__PURE__ */ e(D, { color: "error", sx: { mt: 24 }, children: a.this_action_cannot_be_undone })
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
] });
|
|
179
|
-
}, Nt = E(Lt), tt = (n, o) => {
|
|
180
|
-
const { connection_messages: t } = o;
|
|
181
|
-
switch (n.connection_status) {
|
|
182
|
-
case p.CHALLENGED:
|
|
183
|
-
return {
|
|
184
|
-
cta: t.challenged_cta,
|
|
185
|
-
main: h(
|
|
186
|
-
t.challenged_connection_description,
|
|
187
|
-
n.name
|
|
188
|
-
),
|
|
189
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
190
|
-
title: t.challenged_connection_title
|
|
191
|
-
};
|
|
192
|
-
case p.CLOSED:
|
|
193
|
-
return {
|
|
194
|
-
main: t.closed_connection_description,
|
|
195
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
196
|
-
title: t.closed_connection_title
|
|
197
|
-
};
|
|
198
|
-
case p.DEGRADED:
|
|
199
|
-
return {
|
|
200
|
-
main: t.degraded_connection_description,
|
|
201
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
202
|
-
title: t.degraded_connection_title
|
|
203
|
-
};
|
|
204
|
-
case p.DELAYED:
|
|
205
|
-
return {
|
|
206
|
-
main: h(
|
|
207
|
-
t.delayed_connection_description,
|
|
208
|
-
n.name
|
|
209
|
-
),
|
|
210
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
211
|
-
title: t.delayed_connection_title
|
|
212
|
-
};
|
|
213
|
-
case p.DENIED:
|
|
214
|
-
return {
|
|
215
|
-
cta: t.denied_cta,
|
|
216
|
-
main: h(
|
|
217
|
-
t.denied_connection_description,
|
|
218
|
-
n.name
|
|
219
|
-
),
|
|
220
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
221
|
-
title: t.denied_connection_title
|
|
222
|
-
};
|
|
223
|
-
case p.DISABLED:
|
|
224
|
-
return {
|
|
225
|
-
main: t.disabled_connection_description,
|
|
226
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
227
|
-
title: t.disabled_connection_title
|
|
228
|
-
};
|
|
229
|
-
case p.DISCONNECTED:
|
|
230
|
-
return {
|
|
231
|
-
main: h(
|
|
232
|
-
t.disconnected_connection_description,
|
|
233
|
-
n.name
|
|
234
|
-
),
|
|
235
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
236
|
-
title: t.disconnected_connection_title
|
|
237
|
-
};
|
|
238
|
-
case p.DISCONTINUED:
|
|
239
|
-
return {
|
|
240
|
-
main: t.discontinued_connection_description,
|
|
241
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
242
|
-
title: t.discontinued_connection_title
|
|
243
|
-
};
|
|
244
|
-
case p.EXPIRED:
|
|
245
|
-
return {
|
|
246
|
-
cta: t.expired_cta,
|
|
247
|
-
main: t.expired_connection_description,
|
|
248
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
249
|
-
title: t.expired_connection_title
|
|
250
|
-
};
|
|
251
|
-
case p.FAILED:
|
|
252
|
-
return {
|
|
253
|
-
main: h(
|
|
254
|
-
t.failed_connection_description,
|
|
255
|
-
n.name
|
|
256
|
-
),
|
|
257
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
258
|
-
title: t.failed_connection_title
|
|
259
|
-
};
|
|
260
|
-
case p.IMPAIRED:
|
|
261
|
-
return {
|
|
262
|
-
cta: t.impaired_cta,
|
|
263
|
-
main: h(
|
|
264
|
-
t.impaired_connection_description,
|
|
265
|
-
n.name
|
|
266
|
-
),
|
|
267
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
268
|
-
title: t.impaired_connection_title
|
|
269
|
-
};
|
|
270
|
-
case p.IMPEDED:
|
|
271
|
-
return {
|
|
272
|
-
main: h(
|
|
273
|
-
t.impeded_connection_description,
|
|
274
|
-
n.name,
|
|
275
|
-
n.name
|
|
276
|
-
),
|
|
277
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
278
|
-
title: t.impeded_connection_title
|
|
279
|
-
};
|
|
280
|
-
case p.IMPORTED:
|
|
281
|
-
return {
|
|
282
|
-
cta: t.imported_cta,
|
|
283
|
-
main: h(
|
|
284
|
-
t.imported_connection_description,
|
|
285
|
-
n.name
|
|
286
|
-
),
|
|
287
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
288
|
-
title: t.imported_connection_title
|
|
289
|
-
};
|
|
290
|
-
case p.LOCKED:
|
|
291
|
-
return {
|
|
292
|
-
cta: t.locked_cta,
|
|
293
|
-
main: h(
|
|
294
|
-
t.locked_connection_description,
|
|
295
|
-
n.name
|
|
296
|
-
),
|
|
297
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
298
|
-
title: t.locked_connection_title
|
|
299
|
-
};
|
|
300
|
-
case p.PREVENTED:
|
|
301
|
-
return {
|
|
302
|
-
cta: t.prevented_cta,
|
|
303
|
-
main: t.prevented_connection_description,
|
|
304
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
305
|
-
title: t.prevented_connection_title
|
|
306
|
-
};
|
|
307
|
-
case p.REJECTED:
|
|
308
|
-
return {
|
|
309
|
-
cta: t.rejected_cta,
|
|
310
|
-
main: t.rejected_connection_description,
|
|
311
|
-
statusName: o.connection_statuses[n.connection_status],
|
|
312
|
-
title: t.rejected_connection_title
|
|
313
|
-
};
|
|
314
|
-
default: {
|
|
315
|
-
const r = () => {
|
|
316
|
-
const c = n.successfully_aggregated_at ? rt(n.successfully_aggregated_at) : void 0, l = c && B(c, G.TIME_STAMP_HOUR_MINUTE);
|
|
317
|
-
if (l)
|
|
318
|
-
return lt(c) ? h(o.last_updated_at, o.today, l) : dt(c) ? h(o.last_updated_at, o.yesterday, l) : h(
|
|
319
|
-
o.last_updated_at,
|
|
320
|
-
B(c, G.MONTH_DAY_YEAR),
|
|
321
|
-
l
|
|
322
|
-
);
|
|
323
|
-
};
|
|
324
|
-
return {
|
|
325
|
-
statusName: o.connection_statuses[6],
|
|
326
|
-
// Connected
|
|
327
|
-
title: r()
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
}, W = {
|
|
332
|
-
color: "background.default",
|
|
333
|
-
fontSize: 20,
|
|
334
|
-
gridRow: 1,
|
|
335
|
-
gridColumn: 1,
|
|
336
|
-
zIndex: 2
|
|
337
|
-
}, Ot = () => {
|
|
338
|
-
const [n, o] = u.useState(!1), { selectedMember: t } = y(), { accounts: r, connect: c } = S(), l = tt(t, c), s = Q.includes(t.connection_status) ? {
|
|
339
|
-
color: "error.main",
|
|
340
|
-
ctaCopy: l.cta ?? "",
|
|
341
|
-
icon: /* @__PURE__ */ e(q, { filled: !0, sx: { ...W } }),
|
|
342
|
-
mainMessage: l.statusName,
|
|
343
|
-
secondaryMessage: `${l.title}.`
|
|
344
|
-
} : {
|
|
345
|
-
color: "success.main",
|
|
346
|
-
icon: /* @__PURE__ */ e(it, { filled: !0, sx: { ...W } }),
|
|
347
|
-
mainMessage: l.statusName,
|
|
348
|
-
secondaryMessage: l.title
|
|
349
|
-
};
|
|
350
|
-
return /* @__PURE__ */ d(g, { children: [
|
|
351
|
-
/* @__PURE__ */ e(Y, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(D, { bold: !0, component: "h2", variant: "caption", children: r.connection_status }) }),
|
|
352
|
-
/* @__PURE__ */ e(I, { sx: { backgroundColor: "background.paper" }, children: t.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(ct, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
353
|
-
/* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
354
|
-
/* @__PURE__ */ e(w, { primary: s.mainMessage, secondary: s.secondaryMessage })
|
|
355
|
-
] }) : /* @__PURE__ */ d(N, { onClick: () => o(!0), children: [
|
|
356
|
-
/* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
357
|
-
/* @__PURE__ */ e(
|
|
358
|
-
w,
|
|
359
|
-
{
|
|
360
|
-
primary: s.mainMessage,
|
|
361
|
-
secondary: s.secondaryMessage && /* @__PURE__ */ d(g, { children: [
|
|
362
|
-
s.secondaryMessage,
|
|
363
|
-
" ",
|
|
364
|
-
/* @__PURE__ */ e(D, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: s.ctaCopy })
|
|
365
|
-
] })
|
|
366
|
-
}
|
|
367
|
-
),
|
|
368
|
-
/* @__PURE__ */ e(M, { name: "chevron_right" })
|
|
369
|
-
] }) }),
|
|
370
|
-
/* @__PURE__ */ e(v, { sx: { ml: t.is_manual || !t.institution_url ? 0 : 24 } }),
|
|
371
|
-
!t.is_manual && t.institution_url && /* @__PURE__ */ d(g, { children: [
|
|
372
|
-
/* @__PURE__ */ e(I, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { component: "a", href: t.institution_url, target: "_blank", children: [
|
|
373
|
-
/* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(
|
|
374
|
-
F,
|
|
375
|
-
{
|
|
376
|
-
backingSx: {
|
|
377
|
-
bgcolor: "neutral.light",
|
|
378
|
-
borderRadius: 1
|
|
379
|
-
},
|
|
380
|
-
size: 32,
|
|
381
|
-
children: /* @__PURE__ */ e(
|
|
382
|
-
st,
|
|
383
|
-
{
|
|
384
|
-
sx: {
|
|
385
|
-
...W,
|
|
386
|
-
color: "text.primary"
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
)
|
|
390
|
-
}
|
|
391
|
-
) }),
|
|
392
|
-
/* @__PURE__ */ e(w, { primary: t.name, secondary: t.institution_url }),
|
|
393
|
-
/* @__PURE__ */ e(M, { name: "launch" })
|
|
394
|
-
] }) }),
|
|
395
|
-
/* @__PURE__ */ e(v, {})
|
|
396
|
-
] }),
|
|
397
|
-
n && /* @__PURE__ */ e(
|
|
398
|
-
Z,
|
|
399
|
-
{
|
|
400
|
-
loadWidgetProps: { current_member_guid: t.guid },
|
|
401
|
-
onClose: () => o(!1),
|
|
402
|
-
showConnectWidget: n,
|
|
403
|
-
title: r.manage_connection
|
|
404
|
-
}
|
|
405
|
-
)
|
|
406
|
-
] });
|
|
407
|
-
}, Rt = E(Ot), Pt = ({ field: n, isOpen: o, onClose: t }) => {
|
|
408
|
-
const { updateAccount: r } = z(), { selectedAccount: c } = y(), { accounts: l } = S(), [s, _] = u.useState(c[n.name]), [i, f] = u.useState(""), [b, a] = u.useState(!0), C = () => {
|
|
409
|
-
_(""), f(""), t();
|
|
410
|
-
}, T = () => {
|
|
411
|
-
switch (n.type) {
|
|
412
|
-
case P.Select:
|
|
413
|
-
return /* @__PURE__ */ d(ht, { fullWidth: !0, children: [
|
|
414
|
-
/* @__PURE__ */ e(gt, { id: `${n.label}-select-label`, children: n.label }),
|
|
415
|
-
/* @__PURE__ */ d(
|
|
416
|
-
ft,
|
|
417
|
-
{
|
|
418
|
-
id: `${n.label}-select`,
|
|
419
|
-
inputProps: {
|
|
420
|
-
sx: {
|
|
421
|
-
backgroundColor: "background.paper"
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
label: n.label,
|
|
425
|
-
labelId: `${n.label}-select-label`,
|
|
426
|
-
onChange: (m) => _(m.target.value),
|
|
427
|
-
renderValue: (m) => m.length === 0 ? /* @__PURE__ */ e("em", { children: n.placeholder }) : m.join(","),
|
|
428
|
-
value: s,
|
|
429
|
-
children: [
|
|
430
|
-
/* @__PURE__ */ e(H, { disabled: !0, value: "", children: /* @__PURE__ */ e("em", { children: n.placeholder }) }),
|
|
431
|
-
n.options?.map((m) => /* @__PURE__ */ e(H, { value: m.value, children: m.label }, m.value))
|
|
432
|
-
]
|
|
433
|
-
}
|
|
434
|
-
)
|
|
435
|
-
] });
|
|
436
|
-
case P.Currency:
|
|
437
|
-
return /* @__PURE__ */ e(
|
|
438
|
-
At,
|
|
439
|
-
{
|
|
440
|
-
amount: s || "",
|
|
441
|
-
ariaLabel: n.placeholder,
|
|
442
|
-
fullWidth: !0,
|
|
443
|
-
label: n.label,
|
|
444
|
-
placeholder: n.placeholder,
|
|
445
|
-
setAmount: _,
|
|
446
|
-
setHasValidInput: a
|
|
447
|
-
}
|
|
448
|
-
);
|
|
449
|
-
case P.Date:
|
|
450
|
-
return /* @__PURE__ */ e(Ct, { dateAdapter: mt, children: /* @__PURE__ */ e(
|
|
451
|
-
pt,
|
|
452
|
-
{
|
|
453
|
-
maxDate: ut(/* @__PURE__ */ new Date(), 1),
|
|
454
|
-
minDate: /* @__PURE__ */ new Date(),
|
|
455
|
-
onChange: (m) => {
|
|
456
|
-
c[n.name] && Number(c[n.name]) <= 31 ? _(m.getDate()) : _(m);
|
|
457
|
-
},
|
|
458
|
-
sx: {
|
|
459
|
-
"& .MuiPickersDay-today": {
|
|
460
|
-
color: "primary.light"
|
|
461
|
-
},
|
|
462
|
-
"& .MuiPickersArrowSwitcher-button": {
|
|
463
|
-
color: "primary.light",
|
|
464
|
-
"&:hover": {
|
|
465
|
-
backgroundColor: (m) => _t(m.palette.primary.light, 0.1)
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
views: ["day"]
|
|
470
|
-
}
|
|
471
|
-
) });
|
|
472
|
-
default:
|
|
473
|
-
return /* @__PURE__ */ e(
|
|
474
|
-
bt,
|
|
475
|
-
{
|
|
476
|
-
defaultValue: c[n.name],
|
|
477
|
-
error: !!i,
|
|
478
|
-
fullWidth: !0,
|
|
479
|
-
helperText: i,
|
|
480
|
-
inputProps: {
|
|
481
|
-
"aria-label": n.placeholder
|
|
482
|
-
},
|
|
483
|
-
onChange: L,
|
|
484
|
-
placeholder: n.placeholder
|
|
485
|
-
}
|
|
486
|
-
);
|
|
487
|
-
}
|
|
488
|
-
}, x = () => {
|
|
489
|
-
c[n.name] !== s && r({
|
|
490
|
-
...c,
|
|
491
|
-
[n.name]: s
|
|
492
|
-
}), C();
|
|
493
|
-
}, L = (m) => {
|
|
494
|
-
_(m.target.value), n.validation && f(n.validation(m.target.value));
|
|
495
|
-
};
|
|
496
|
-
return /* @__PURE__ */ e(
|
|
497
|
-
V,
|
|
498
|
-
{
|
|
499
|
-
copy: {
|
|
500
|
-
close_aria: l.close_aria,
|
|
501
|
-
title: h(l.edit_field, n.label)
|
|
502
|
-
},
|
|
503
|
-
disablePrimaryButton: !!i || !b,
|
|
504
|
-
isOpen: o,
|
|
505
|
-
onClose: C,
|
|
506
|
-
onPrimaryAction: x,
|
|
507
|
-
primaryText: l.save,
|
|
508
|
-
children: T()
|
|
509
|
-
}
|
|
510
|
-
);
|
|
511
|
-
}, Ft = E(Pt), Ut = () => {
|
|
512
|
-
const n = window.app?.config, { onEvent: o } = O(), { selectedAccount: t } = y(), { accounts: r } = S(), c = Dt(t, r), l = t.member_is_managed_by_user || !t.member_is_managed_by_user && n.enable_renaming_home_accounts, [s, _] = u.useState(!1), [i, f] = u.useState(c[0]), b = c.filter(
|
|
513
|
-
(a) => l || t[a.name] || t[a.name] === 0
|
|
514
|
-
);
|
|
515
|
-
return /* @__PURE__ */ d(g, { children: [
|
|
516
|
-
b.map((a) => {
|
|
517
|
-
const C = t[a.name] || t[a.name] === 0, T = b.indexOf(a) === b.length - 1, x = /* @__PURE__ */ e(
|
|
518
|
-
w,
|
|
519
|
-
{
|
|
520
|
-
disableTypography: !0,
|
|
521
|
-
primary: /* @__PURE__ */ e(D, { sx: { fontSize: 11 }, children: a.label }),
|
|
522
|
-
secondary: /* @__PURE__ */ e(D, { bold: !0, sx: { fontSize: 15 }, children: C ? a.valueFormatter(t[a.name]) : a.placeholder })
|
|
523
|
-
}
|
|
524
|
-
);
|
|
525
|
-
return /* @__PURE__ */ e(u.Fragment, { children: l ? /* @__PURE__ */ d(g, { children: [
|
|
526
|
-
/* @__PURE__ */ e(I, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
|
|
527
|
-
N,
|
|
528
|
-
{
|
|
529
|
-
onClick: () => {
|
|
530
|
-
f(a), _(!0), a?.event && o(a.event, { account_guid: t.guid });
|
|
531
|
-
},
|
|
532
|
-
children: [
|
|
533
|
-
x,
|
|
534
|
-
/* @__PURE__ */ e(M, { name: "chevron_right" })
|
|
535
|
-
]
|
|
536
|
-
}
|
|
537
|
-
) }),
|
|
538
|
-
/* @__PURE__ */ e(v, { sx: { ml: T ? 0 : 24 } })
|
|
539
|
-
] }) : C && /* @__PURE__ */ d(g, { children: [
|
|
540
|
-
/* @__PURE__ */ e(I, { sx: { backgroundColor: "background.paper", px: 24 }, children: x }),
|
|
541
|
-
/* @__PURE__ */ e(v, { sx: { ml: T ? 0 : 24 } })
|
|
542
|
-
] }) }, a.name);
|
|
543
|
-
}),
|
|
544
|
-
s && i && /* @__PURE__ */ e(
|
|
545
|
-
Ft,
|
|
546
|
-
{
|
|
547
|
-
field: i,
|
|
548
|
-
isOpen: s,
|
|
549
|
-
onClose: () => _(!1)
|
|
550
|
-
}
|
|
551
|
-
)
|
|
552
|
-
] });
|
|
553
|
-
}, Wt = E(Ut), $t = () => {
|
|
554
|
-
const { onEvent: n } = O();
|
|
555
|
-
return u.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d($, { children: [
|
|
556
|
-
/* @__PURE__ */ e(Wt, {}),
|
|
557
|
-
/* @__PURE__ */ e(Rt, {}),
|
|
558
|
-
/* @__PURE__ */ e(Nt, {})
|
|
559
|
-
] });
|
|
560
|
-
}, Vt = E($t), zt = ({ setTabValue: n }) => {
|
|
561
|
-
const [o, t] = u.useState(!1), { selectedMember: r } = y(), { accounts: c, connect: l } = S(), s = r.connection_status && Q.includes(r.connection_status);
|
|
562
|
-
if (u.useEffect(() => {
|
|
563
|
-
s && n(1);
|
|
564
|
-
}, [s]), !s) return;
|
|
565
|
-
const _ = tt(r, l);
|
|
566
|
-
return /* @__PURE__ */ d(g, { children: [
|
|
567
|
-
/* @__PURE__ */ e(
|
|
568
|
-
St,
|
|
569
|
-
{
|
|
570
|
-
sx: {
|
|
571
|
-
mb: 16,
|
|
572
|
-
mt: 24,
|
|
573
|
-
mx: 24
|
|
574
|
-
},
|
|
575
|
-
children: /* @__PURE__ */ d(
|
|
576
|
-
Tt,
|
|
577
|
-
{
|
|
578
|
-
icon: /* @__PURE__ */ e(q, { filled: !0 }),
|
|
579
|
-
severity: "error",
|
|
580
|
-
sx: {
|
|
581
|
-
borderLeft: 5,
|
|
582
|
-
borderTopLeftRadius: 6,
|
|
583
|
-
borderBottomLeftRadius: 6,
|
|
584
|
-
borderColor: "error.main",
|
|
585
|
-
color: "text.primary",
|
|
586
|
-
"&.MuiPaper-root": {
|
|
587
|
-
backgroundColor: "background.paper"
|
|
588
|
-
}
|
|
589
|
-
},
|
|
590
|
-
children: [
|
|
591
|
-
_.title && /* @__PURE__ */ e(Et, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: _.title }),
|
|
592
|
-
/* @__PURE__ */ e(D, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: _.main }),
|
|
593
|
-
_.cta && /* @__PURE__ */ e(
|
|
594
|
-
yt,
|
|
595
|
-
{
|
|
596
|
-
onClick: () => t(!0),
|
|
597
|
-
sx: { fontSize: 15, fontWeight: 600, ml: 0 },
|
|
598
|
-
children: _.cta
|
|
599
|
-
}
|
|
600
|
-
)
|
|
601
|
-
]
|
|
602
|
-
}
|
|
603
|
-
)
|
|
604
|
-
}
|
|
605
|
-
),
|
|
606
|
-
o && /* @__PURE__ */ e(
|
|
607
|
-
Z,
|
|
608
|
-
{
|
|
609
|
-
loadWidgetProps: { current_member_guid: r.guid },
|
|
610
|
-
onClose: () => t(!1),
|
|
611
|
-
showConnectWidget: o,
|
|
612
|
-
title: c.manage_connection
|
|
613
|
-
}
|
|
614
|
-
)
|
|
615
|
-
] });
|
|
616
|
-
}, jt = E(zt), Bt = () => {
|
|
617
|
-
const [n, o] = u.useState(""), { onEvent: t } = O(), { selectedAccount: r } = y(), { accounts: c } = S(), { isTransactionDataLoaded: l, loadTransactionData: s, setFilter: _, sortedTransactions: i } = J();
|
|
618
|
-
u.useEffect(() => {
|
|
619
|
-
l || s().finally();
|
|
620
|
-
}, []);
|
|
621
|
-
const f = u.useMemo(
|
|
622
|
-
() => i.find((b) => b.guid === n),
|
|
623
|
-
[n, i]
|
|
624
|
-
);
|
|
625
|
-
return u.useEffect(() => {
|
|
626
|
-
_({
|
|
627
|
-
dateRange: { start: wt(kt(), 90), end: xt() },
|
|
628
|
-
accounts: [r.guid]
|
|
629
|
-
});
|
|
630
|
-
}, [r]), u.useEffect(() => t(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(g, { children: [
|
|
631
|
-
/* @__PURE__ */ e(Mt, { onClick: o }),
|
|
632
|
-
f && /* @__PURE__ */ e(
|
|
633
|
-
X,
|
|
634
|
-
{
|
|
635
|
-
ariaLabelClose: c.close_drawer,
|
|
636
|
-
isOpen: !!n,
|
|
637
|
-
onClose: () => o(""),
|
|
638
|
-
title: c.transaction_drawer_title,
|
|
639
|
-
children: /* @__PURE__ */ e(vt, { transaction: f })
|
|
640
|
-
}
|
|
641
|
-
)
|
|
642
|
-
] });
|
|
643
|
-
}, Gt = E(Bt), Ht = () => {
|
|
644
|
-
const [n, o] = u.useState(0), { accounts: t } = S();
|
|
645
|
-
return /* @__PURE__ */ d(g, { children: [
|
|
646
|
-
/* @__PURE__ */ e(jt, { setTabValue: o }),
|
|
647
|
-
/* @__PURE__ */ d(
|
|
648
|
-
nt,
|
|
649
|
-
{
|
|
650
|
-
"aria-label": t.transactions_and_details_aria,
|
|
651
|
-
centered: !0,
|
|
652
|
-
onChange: (r, c) => o(c),
|
|
653
|
-
textColor: "primary",
|
|
654
|
-
value: n,
|
|
655
|
-
variant: "fullWidth",
|
|
656
|
-
children: [
|
|
657
|
-
/* @__PURE__ */ e(
|
|
658
|
-
j,
|
|
659
|
-
{
|
|
660
|
-
"aria-controls": "transaction-details-tabpanel-0",
|
|
661
|
-
id: "transaction-details-tab-0",
|
|
662
|
-
label: t.transactions
|
|
663
|
-
}
|
|
664
|
-
),
|
|
665
|
-
/* @__PURE__ */ e(
|
|
666
|
-
j,
|
|
667
|
-
{
|
|
668
|
-
"aria-controls": "account-details-tabpanel-1",
|
|
669
|
-
id: "account-details-tab-1",
|
|
670
|
-
label: t.account_details
|
|
671
|
-
}
|
|
672
|
-
)
|
|
673
|
-
]
|
|
674
|
-
}
|
|
675
|
-
),
|
|
676
|
-
/* @__PURE__ */ e(K, { index: 0, name: "transaction-details", value: n, children: /* @__PURE__ */ e(Gt, {}) }),
|
|
677
|
-
/* @__PURE__ */ e(K, { index: 1, name: "account-details", value: n, children: /* @__PURE__ */ e(Vt, {}) })
|
|
678
|
-
] });
|
|
679
|
-
}, $e = E(Ht);
|
|
680
|
-
export {
|
|
681
|
-
$e as A,
|
|
682
|
-
It as u
|
|
683
|
-
};
|