@mx-cartographer/experiences 7.0.44-alpha.mega1 → 7.0.45
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 +7 -3
- package/dist/{Account-CYkoSG86.mjs → Account-DNtjr75t.mjs} +1 -1
- package/dist/{AccountDetailsContent-BuXTLptM.mjs → AccountDetailsContent-eODMVIVq.mjs} +16 -16
- package/dist/{AccountDetailsHeader-BWl2e21n.mjs → AccountDetailsHeader-C0qgTju7.mjs} +38 -37
- package/dist/{AccountFields-x4A7Loe5.mjs → AccountFields-DDHk35Ou.mjs} +2 -2
- package/dist/AccountListItem-BxmUd4j3.mjs +90 -0
- package/dist/{AccountStore-WQAkYgx1.mjs → AccountStore-CpjCeykS.mjs} +2 -2
- package/dist/{Accounts-CeeJag5-.mjs → Accounts-nXcS0QUR.mjs} +1 -1
- package/dist/{BudgetUtil-n3gEKIub.mjs → BudgetUtil-2EncZLBQ.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-993LpETZ.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
- package/dist/ConnectDrawer-YIWwEzuN.mjs +521 -0
- package/dist/{ConnectionsDrawer-CcBzf4l5.mjs → ConnectionsDrawer-Bf2DNDCF.mjs} +2 -2
- package/dist/{CurrencyInput-pHmLzc_c.mjs → CurrencyInput-CRtdzs3o.mjs} +1 -1
- package/dist/{DebtsStore-EZh5aBxe.mjs → DebtsStore-Dy3YG1fX.mjs} +1 -1
- package/dist/{ExportCsvAction-BKxnEFRu.mjs → ExportCsvAction-CebIvl-V.mjs} +3 -3
- package/dist/{GoalStore-B9lVADw5.mjs → GoalStore-voP4QA5C.mjs} +3 -3
- package/dist/{Help-PP2i0N9Y.mjs → Help-CzBAsKA2.mjs} +1 -1
- package/dist/{LineChart-CHTf3RcN.mjs → LineChart-B2Y7zwMu.mjs} +1 -1
- package/dist/{ListItemAction-DXyHyJn0.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
- package/dist/{ManageIncome-D1XoZlqY.mjs → ManageIncome-kMsgLN3T.mjs} +38 -38
- package/dist/{MicroWidgetContainer-Dpu8VDSP.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BhHaL8eb.mjs → MiniWidgetContainer-DSG6mwaW.mjs} +1 -1
- package/dist/{NetWorthStore-N5esR-KJ.mjs → NetWorthStore-C5RMjsMS.mjs} +2 -2
- package/dist/{NotificationSettings-CWZR6ki-.mjs → NotificationSettings-BCtanw2c.mjs} +4 -4
- package/dist/{OriginalBalanceAction-DSA8sk5b.mjs → OriginalBalanceAction-CEuIYsc_.mjs} +3 -3
- package/dist/{RecurringSettings-DA6qT8ai.mjs → RecurringSettings-CETLT79T.mjs} +8 -8
- package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-Dc34Tzx8.mjs} +1 -1
- package/dist/{TransactionDetails-DO_YihKP.mjs → TransactionDetails-B-rdHE3_.mjs} +5 -5
- package/dist/{TransactionStore-B2Vq95Fg.mjs → TransactionStore-CfQBEIsK.mjs} +2 -2
- package/dist/{TrendsStore-DWVFqEC-.mjs → TrendsStore-BKBnNQba.mjs} +1 -1
- package/dist/{User-Bfnq7dd4.mjs → User-8itAR7lR.mjs} +22 -21
- package/dist/{WidgetContainer-DfyV39Ru.mjs → WidgetContainer-p7NIdiNJ.mjs} +2 -2
- package/dist/accounts/index.es.js +123 -128
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +26 -26
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +3 -0
- package/dist/common/index.es.js +84 -80
- package/dist/common/types/AppData.d.ts +2 -0
- package/dist/common/utils/AccountDisplayName.d.ts +6 -0
- package/dist/common/utils/AccountFilter.d.ts +2 -6
- package/dist/dashboard/index.es.js +14 -14
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-BgWQsGWy.mjs → exportTransactionsToCSV-CfylirZA.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +529 -524
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BAAimqdq.mjs → hooks-CE2TKk4a.mjs} +12 -12
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +10 -10
- package/dist/recurringtransactions/index.es.js +11 -11
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +11 -11
- package/dist/useAccountDisplayName-DC1Lqjag.mjs +15 -0
- package/dist/{useInsightsEnabled-BwLaOKWW.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/AccountListItem-D9mpJkCP.mjs +0 -89
- package/dist/ConnectDrawer-CNdzwKdX.mjs +0 -528
- package/dist/{ToggleListItem-r0Kx56wF.mjs → Notification-aGCHxikw.mjs} +1 -1
- package/dist/{RecurringTransactions-DTUx9VN1.mjs → RepeatingTransaction-BW4J-jeJ.mjs} +1 -1
|
@@ -9,21 +9,21 @@ import D from "@mui/material/Divider";
|
|
|
9
9
|
import r from "@mui/material/Stack";
|
|
10
10
|
import ie from "@mui/material/styles/useTheme";
|
|
11
11
|
import { Text as d, P as k, Icon as F, InstitutionLogo as xe, H1 as le, H2 as Xe } from "@mxenabled/mxui";
|
|
12
|
-
import { G as Ye, t as de, u as O, p as re,
|
|
12
|
+
import { G as Ye, t as de, u as O, p as re, d as Oe, b as Y, o as me, j as q, g as Ne, h as ke } from "../hooks-CE2TKk4a.mjs";
|
|
13
13
|
import { C as L } from "../CurrencyText-YUhH2caW.mjs";
|
|
14
14
|
import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
15
15
|
import { L as se } from "../Loader-DUaFpDGv.mjs";
|
|
16
16
|
import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
18
18
|
import { b as X } from "../Localization-2MODESHW.mjs";
|
|
19
|
-
import { M as Qe } from "../MiniWidgetContainer-
|
|
20
|
-
import { R as Ve } from "../RecurringSettings-
|
|
19
|
+
import { M as Qe } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
20
|
+
import { R as Ve } from "../RecurringSettings-CETLT79T.mjs";
|
|
21
21
|
import Ke from "@mui/material/Tabs";
|
|
22
22
|
import ye from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import te from "@mui/material/ListItem";
|
|
26
|
-
import { A as Je } from "../AccountListItem-
|
|
26
|
+
import { A as Je } from "../AccountListItem-BxmUd4j3.mjs";
|
|
27
27
|
import { f as Q, D as V } from "../Dialog-CWW597AF.mjs";
|
|
28
28
|
import Ze from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
@@ -34,17 +34,17 @@ import { addDays as Ce } from "date-fns/addDays";
|
|
|
34
34
|
import { alpha as et, keyframes as tt } from "@mui/material/styles";
|
|
35
35
|
import { DataGridPro as nt } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
|
-
import { M as ot, S as at, i as it, d as _e, c as rt } from "../ManageIncome-
|
|
37
|
+
import { M as ot, S as at, i as it, d as _e, c as rt } from "../ManageIncome-kMsgLN3T.mjs";
|
|
38
38
|
import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
39
39
|
import { formatISO as st } from "date-fns/formatISO";
|
|
40
40
|
import { fromUnixTime as we } from "date-fns/fromUnixTime";
|
|
41
41
|
import { startOfMonth as ct } from "date-fns/startOfMonth";
|
|
42
42
|
import { subDays as Me } from "date-fns/subDays";
|
|
43
|
-
import { S as lt, b as dt } from "../TransactionDetails-
|
|
44
|
-
import { F as mt, R as Ie, e as De } from "../
|
|
43
|
+
import { S as lt, b as dt } from "../TransactionDetails-B-rdHE3_.mjs";
|
|
44
|
+
import { F as mt, R as Ie, e as De } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
45
45
|
import { h as ut } from "../DateUtil-BcuH7ErC.mjs";
|
|
46
46
|
import { endOfToday as ht } from "date-fns/endOfToday";
|
|
47
|
-
import { W as ve, A as Ae } from "../WidgetContainer-
|
|
47
|
+
import { W as ve, A as Ae } from "../WidgetContainer-p7NIdiNJ.mjs";
|
|
48
48
|
import { F as pt, A as B } from "../Fetch-87LIQbEA.mjs";
|
|
49
49
|
const K = () => {
|
|
50
50
|
if (!u.useContext(Ye))
|
|
@@ -75,7 +75,7 @@ const K = () => {
|
|
|
75
75
|
setNextIncome: S,
|
|
76
76
|
setSelectedCashAccounts: v,
|
|
77
77
|
setUpcomingExpenses: p
|
|
78
|
-
} = K(), { isDataLoaded: N, nextIncomeRecurrence: _, upcomingExpenses:
|
|
78
|
+
} = K(), { isDataLoaded: N, nextIncomeRecurrence: _, upcomingExpenses: j } = q();
|
|
79
79
|
u.useEffect(() => {
|
|
80
80
|
y(c);
|
|
81
81
|
}, [c]), u.useEffect(() => {
|
|
@@ -83,15 +83,15 @@ const K = () => {
|
|
|
83
83
|
c.filter((R) => b.includes(R.guid))
|
|
84
84
|
);
|
|
85
85
|
}, [c, m]), u.useEffect(() => {
|
|
86
|
-
_ && S(_), p(
|
|
87
|
-
}, [_,
|
|
86
|
+
_ && S(_), p(j);
|
|
87
|
+
}, [_, j]);
|
|
88
88
|
const G = u.useMemo(
|
|
89
89
|
() => c.filter((R) => b.includes(R.guid)).reduce((R, w) => R + (w?.balance || 0), 0),
|
|
90
|
-
[b,
|
|
90
|
+
[b, j]
|
|
91
91
|
), W = u.useMemo(
|
|
92
92
|
() => h.filter((R) => b.includes(R.accountGuid || "")).reduce((R, w) => R + w.amount, 0),
|
|
93
93
|
[b, h]
|
|
94
|
-
),
|
|
94
|
+
), z = u.useMemo(
|
|
95
95
|
() => G - W,
|
|
96
96
|
[G, W]
|
|
97
97
|
), A = g?.has_completed_cash_flow_onboarding && !!a;
|
|
@@ -118,7 +118,7 @@ const K = () => {
|
|
|
118
118
|
] }),
|
|
119
119
|
/* @__PURE__ */ e(r, { pt: 18, children: /* @__PURE__ */ e(F, { name: "equal" }) }),
|
|
120
120
|
/* @__PURE__ */ o(r, { pb: 14, pr: 24, pt: 12, children: [
|
|
121
|
-
/* @__PURE__ */ e(L, { amount:
|
|
121
|
+
/* @__PURE__ */ e(L, { amount: z, variant: "H2" }),
|
|
122
122
|
/* @__PURE__ */ o(r, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
123
123
|
/* @__PURE__ */ e(k, { variant: "XSmall", whiteSpace: "nowrap", children: i.available_to_spend }),
|
|
124
124
|
/* @__PURE__ */ e(he, { body: i.tooltip_body, title: i.tooltip_title })
|
|
@@ -163,7 +163,7 @@ const K = () => {
|
|
|
163
163
|
justifyContent: "space-between",
|
|
164
164
|
px: 16,
|
|
165
165
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
166
|
-
children: /* @__PURE__ */ e(pe, { remaining:
|
|
166
|
+
children: /* @__PURE__ */ e(pe, { remaining: z })
|
|
167
167
|
}
|
|
168
168
|
),
|
|
169
169
|
/* @__PURE__ */ e(D, {}),
|
|
@@ -829,10 +829,10 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
829
829
|
transform: rotate(360deg);
|
|
830
830
|
}
|
|
831
831
|
`, Ht = () => {
|
|
832
|
-
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: s } = O(), { completeOnboarding: c } = de(), { isDirty: f } = K(), { isMobile: m } = ue(), { isCopyLoaded: b, setDisplayedDate: y } = Y(), { filter: i, setFilter: g, transactions: l } = ke(), h = ie(), [C, S] = J(!0), [v, p] = u.useState(mt.EveryMonth), [N, _] = u.useState(1), [
|
|
832
|
+
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: s } = O(), { completeOnboarding: c } = de(), { isDirty: f } = K(), { isMobile: m } = ue(), { isCopyLoaded: b, setDisplayedDate: y } = Y(), { filter: i, setFilter: g, transactions: l } = ke(), h = ie(), [C, S] = J(!0), [v, p] = u.useState(mt.EveryMonth), [N, _] = u.useState(1), [j, G] = u.useState(15), [W, z] = J(!1), [A, R] = J(1), [w, je] = J([]), [fe, ce] = J(""), $ = u.useMemo(
|
|
833
833
|
() => l.find((x) => x.guid === fe),
|
|
834
834
|
[fe, l]
|
|
835
|
-
),
|
|
835
|
+
), ze = !!n.filter(
|
|
836
836
|
(x) => x.repeating_transaction_type === Ie.Income
|
|
837
837
|
).length, ge = async () => {
|
|
838
838
|
R(2), y(
|
|
@@ -842,7 +842,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
842
842
|
), g({ ...i, custom: _e }), R(3);
|
|
843
843
|
}, Be = async () => {
|
|
844
844
|
if (!(w.length < 1)) {
|
|
845
|
-
|
|
845
|
+
z(!0);
|
|
846
846
|
for (let x = 0; x < w.length; x++) {
|
|
847
847
|
const E = w[x], be = De(v, we(E.date)), Pe = {
|
|
848
848
|
account_guid: E.account_guid,
|
|
@@ -934,7 +934,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
),
|
|
937
|
-
!
|
|
937
|
+
!ze && f && /* @__PURE__ */ e(k, { color: "error", mt: 16, children: t.confirm_error }),
|
|
938
938
|
$ && /* @__PURE__ */ o(P, { children: [
|
|
939
939
|
/* @__PURE__ */ e(
|
|
940
940
|
rt,
|
|
@@ -945,7 +945,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
945
945
|
onFirstDayChange: _,
|
|
946
946
|
onFrequencyChange: p,
|
|
947
947
|
onSecondDayChange: G,
|
|
948
|
-
secondDay:
|
|
948
|
+
secondDay: j,
|
|
949
949
|
transaction: $
|
|
950
950
|
}
|
|
951
951
|
),
|
|
@@ -960,7 +960,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
960
960
|
...$,
|
|
961
961
|
nextDate: De(v, we($.date)),
|
|
962
962
|
frequency: v
|
|
963
|
-
}),
|
|
963
|
+
}), je(x), ce("");
|
|
964
964
|
},
|
|
965
965
|
variant: "contained",
|
|
966
966
|
children: s.confirm_button
|
|
@@ -1012,18 +1012,18 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1012
1012
|
setSelectedAccounts: c,
|
|
1013
1013
|
shouldDisableNextDate: f,
|
|
1014
1014
|
shouldDisablePrevDate: m
|
|
1015
|
-
} = Y(), { onEvent: b } = Ne(), { visibleCashAccounts: y } = Oe(), { setFilter: i } = ke(), { userProfile: g } = me(), { dateRange: l, setSelectedCashAccounts: h } = K(), { loadRepeatingTransactions: C, setDateRange: S } = q(), { cashflow: v, recurring: p } = O(), { isCopyLoaded: N, isInitialized: _ } = Y(), [
|
|
1015
|
+
} = Y(), { onEvent: b } = Ne(), { visibleCashAccounts: y } = Oe(), { setFilter: i } = ke(), { userProfile: g } = me(), { dateRange: l, setSelectedCashAccounts: h } = K(), { loadRepeatingTransactions: C, setDateRange: S } = q(), { cashflow: v, recurring: p } = O(), { isCopyLoaded: N, isInitialized: _ } = Y(), [j, G] = u.useState(!1);
|
|
1016
1016
|
return u.useEffect(() => {
|
|
1017
1017
|
_ && (S(l), C().finally());
|
|
1018
1018
|
}, [_]), u.useEffect(() => {
|
|
1019
1019
|
c(y);
|
|
1020
1020
|
}, [y]), u.useEffect(() => {
|
|
1021
|
-
const W = y.map((A) => A.guid),
|
|
1021
|
+
const W = y.map((A) => A.guid), z = t.filter(
|
|
1022
1022
|
(A) => s.includes(A.guid) && W.includes(A.guid)
|
|
1023
1023
|
);
|
|
1024
|
-
h(
|
|
1024
|
+
h(z), i({
|
|
1025
1025
|
dateRange: { start: Me(M(), 90), end: ht() },
|
|
1026
|
-
accounts:
|
|
1026
|
+
accounts: z.map((A) => A.guid)
|
|
1027
1027
|
});
|
|
1028
1028
|
}, [y, t]), !N || !_ ? /* @__PURE__ */ e(se, {}) : g?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ o(
|
|
1029
1029
|
ve,
|
|
@@ -1058,7 +1058,7 @@ const Ct = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1058
1058
|
$e,
|
|
1059
1059
|
{
|
|
1060
1060
|
ariaLabelClose: v.close_settings_aria,
|
|
1061
|
-
isOpen:
|
|
1061
|
+
isOpen: j,
|
|
1062
1062
|
onClose: () => G(!1),
|
|
1063
1063
|
shouldShowHeaderBorders: !1,
|
|
1064
1064
|
title: p.action_title,
|
package/dist/common/index.es.js
CHANGED
|
@@ -6,72 +6,73 @@ import { C as et } from "../CategoryStore-BCcpI3oJ.mjs";
|
|
|
6
6
|
import { a as ds } from "../CategoryStore-BCcpI3oJ.mjs";
|
|
7
7
|
import { N as st } from "../NotificationStore-C6PH6MKm.mjs";
|
|
8
8
|
import { a as us } from "../NotificationStore-C6PH6MKm.mjs";
|
|
9
|
-
import { T as rt } from "../User-
|
|
10
|
-
import { C as gs, b as ps, L as ms, a as _s } from "../User-
|
|
9
|
+
import { T as rt } from "../User-8itAR7lR.mjs";
|
|
10
|
+
import { C as gs, b as ps, L as ms, a as _s } from "../User-8itAR7lR.mjs";
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as ys } from "../Help-DhcC-C05.mjs";
|
|
13
|
-
import { M as bs } from "../MicroWidgetContainer-
|
|
14
|
-
import { M as xs } from "../MiniWidgetContainer-
|
|
15
|
-
import { A as vs, D as Ds, W as
|
|
16
|
-
import {
|
|
17
|
-
import { C as Ys } from "../CurrencyInput-
|
|
13
|
+
import { M as bs } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
14
|
+
import { M as xs } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
15
|
+
import { A as vs, D as Ds, W as As } from "../WidgetContainer-p7NIdiNJ.mjs";
|
|
16
|
+
import { j as Ts, a as Bs, e as Is, m as Ns, A as Ms, f as ks, k as $s, d as Rs, l as Ps, E as Os, i as Us, N as Ls, h as Gs, P as Hs, n as Fs, S as Ws } from "../ConnectDrawer-YIWwEzuN.mjs";
|
|
17
|
+
import { C as Ys } from "../CurrencyInput-CRtdzs3o.mjs";
|
|
18
18
|
import { L as zs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as Js } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-CfQBEIsK.mjs";
|
|
22
|
+
import { S as Js } from "../TransactionStore-CfQBEIsK.mjs";
|
|
23
23
|
import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
|
-
import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../
|
|
25
|
+
import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
27
|
import { I as hr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-
|
|
28
|
+
import { d as it } from "../GoalStore-voP4QA5C.mjs";
|
|
29
|
+
import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-voP4QA5C.mjs";
|
|
30
30
|
import { C as Sr } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
31
|
import { E as wr } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
|
-
import { L as Cr } from "../ListItemAction-
|
|
33
|
-
import { T as ct } from "../TrendsStore-
|
|
34
|
-
import { L as Dr, S as
|
|
35
|
-
import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../
|
|
32
|
+
import { L as Cr } from "../ListItemAction-DSrYDGAP.mjs";
|
|
33
|
+
import { T as ct } from "../TrendsStore-BKBnNQba.mjs";
|
|
34
|
+
import { L as Dr, S as Ar } from "../TrendsStore-BKBnNQba.mjs";
|
|
35
|
+
import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../Notification-aGCHxikw.mjs";
|
|
36
36
|
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
37
37
|
import dt, { useRef as lt, useEffect as ut } from "react";
|
|
38
38
|
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
39
|
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
40
40
|
import { D as Rr } from "../Donut-1UMNcG67.mjs";
|
|
41
|
-
import { L as Or } from "../LineChart-
|
|
41
|
+
import { L as Or } from "../LineChart-B2Y7zwMu.mjs";
|
|
42
42
|
import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
43
|
import { D as Hr, a as Fr, O as Wr, b as qr, f as Yr } from "../Dialog-CWW597AF.mjs";
|
|
44
44
|
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
45
|
import { S as zr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
46
|
import { D as jr } from "../Drawer-kEE73B87.mjs";
|
|
47
|
-
import { I as Vr, P as Zr, S as Jr } from "../Account-
|
|
48
|
-
import { b as
|
|
47
|
+
import { I as Vr, P as Zr, S as Jr } from "../Account-DNtjr75t.mjs";
|
|
48
|
+
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
49
|
import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
|
|
50
50
|
import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
|
-
import { R as mt } from "../RecurringTransactionsStore-
|
|
52
|
-
import { S as po, T as mo } from "../RecurringTransactionsStore-
|
|
53
|
-
import { G as fo, B as yo, C as So, W as bo,
|
|
54
|
-
import { u as zo } from "../
|
|
55
|
-
import { u as jo } from "../
|
|
51
|
+
import { R as mt } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
52
|
+
import { S as po, T as mo } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
53
|
+
import { G as fo, B as yo, C as So, W as bo, d as wo, a as xo, i as Co, t as vo, m as Do, x as Ao, y as Eo, g as To, w as Bo, u as Io, f as No, b as Mo, l as ko, z as $o, s as Ro, c as Po, q as Oo, n as Uo, A as Lo, j as Go, r as Ho, h as Fo, v as Wo, o as qo, p as Yo } from "../hooks-CE2TKk4a.mjs";
|
|
54
|
+
import { u as zo } from "../useAccountDisplayName-DC1Lqjag.mjs";
|
|
55
|
+
import { u as jo } from "../useInsightsEnabled-DSnpkUq0.mjs";
|
|
56
|
+
import { u as Vo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
56
57
|
import { makeAutoObservable as _, runInAction as m, reaction as _t } from "mobx";
|
|
57
|
-
import { a as ft } from "../AccountStore-
|
|
58
|
+
import { a as ft } from "../AccountStore-CpjCeykS.mjs";
|
|
58
59
|
import yt from "posthog-js";
|
|
59
60
|
import { B as St } from "../BeatStore-IBnXd4YK.mjs";
|
|
60
61
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
61
62
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
62
63
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
63
|
-
import { f as bt, a as wt, b as L } from "../BudgetUtil-
|
|
64
|
-
import { g as
|
|
65
|
-
import { a as xt } from "../DebtsStore-
|
|
64
|
+
import { f as bt, a as wt, b as L } from "../BudgetUtil-2EncZLBQ.mjs";
|
|
65
|
+
import { g as Jo, e as ta, c as ea, d as sa, i as ra } from "../BudgetUtil-2EncZLBQ.mjs";
|
|
66
|
+
import { a as xt } from "../DebtsStore-Dy3YG1fX.mjs";
|
|
66
67
|
import { a as Ct } from "../FinstrongStore-F2c607dj.mjs";
|
|
67
|
-
import { A as vt, m as Dt, a as
|
|
68
|
+
import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
68
69
|
import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
69
|
-
import { N as Bt } from "../NetWorthStore-
|
|
70
|
-
import { a as It } from "../SettingsStore-
|
|
70
|
+
import { N as Bt } from "../NetWorthStore-C5RMjsMS.mjs";
|
|
71
|
+
import { a as It } from "../SettingsStore-Dc34Tzx8.mjs";
|
|
71
72
|
import { addMonths as Nt } from "date-fns/addMonths";
|
|
72
73
|
import { getMonth as T } from "date-fns/getMonth";
|
|
73
|
-
import { i as
|
|
74
|
-
import { b as
|
|
74
|
+
import { i as aa } from "../DateUtil-BcuH7ErC.mjs";
|
|
75
|
+
import { b as ia, a as ca, g as da } from "../Localization-2MODESHW.mjs";
|
|
75
76
|
import { alpha as Mt, lighten as G, darken as H } from "@mui/material";
|
|
76
77
|
var kt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(kt || {});
|
|
77
78
|
const Ye = [
|
|
@@ -241,14 +242,13 @@ class W {
|
|
|
241
242
|
}
|
|
242
243
|
requestWidgetUrl = async (t) => this.fetchInstance.post(u.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
243
244
|
}
|
|
244
|
-
var Ut = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Ut || {}), Lt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Lt || {}), Gt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Gt || {}), Ht = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Ht || {});
|
|
245
245
|
const Ke = (s) => {
|
|
246
246
|
const t = lt();
|
|
247
247
|
return ut(() => {
|
|
248
248
|
t.current = s;
|
|
249
249
|
}, [s]), t.current;
|
|
250
|
-
},
|
|
251
|
-
const r = x(), o =
|
|
250
|
+
}, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
251
|
+
const r = x(), o = Lt(r, s);
|
|
252
252
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
|
|
253
253
|
/* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
254
254
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
|
|
@@ -259,7 +259,7 @@ const Ke = (s) => {
|
|
|
259
259
|
] }),
|
|
260
260
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: t })
|
|
261
261
|
] });
|
|
262
|
-
},
|
|
262
|
+
}, Lt = (s, t) => w({
|
|
263
263
|
alignItems: "center",
|
|
264
264
|
display: "flex",
|
|
265
265
|
gap: s.Spacing.XSmall,
|
|
@@ -295,7 +295,7 @@ const Ke = (s) => {
|
|
|
295
295
|
selectedIndex: l,
|
|
296
296
|
value: c
|
|
297
297
|
}) => {
|
|
298
|
-
const i = x(), h =
|
|
298
|
+
const i = x(), h = Gt(i, t, e), p = (S) => {
|
|
299
299
|
a && (S.key === " " || S.key === "Enter") && a(r);
|
|
300
300
|
}, d = l === void 0 || l === r ? "primary" : "secondary", g = () => /* @__PURE__ */ n(
|
|
301
301
|
B,
|
|
@@ -324,7 +324,7 @@ const Ke = (s) => {
|
|
|
324
324
|
),
|
|
325
325
|
c < 0 && /* @__PURE__ */ n(g, {})
|
|
326
326
|
] });
|
|
327
|
-
},
|
|
327
|
+
}, Gt = (s, t, e) => {
|
|
328
328
|
const r = `expandBar-${Math.round(e)}`, o = ht(r, { from: { height: 0 }, to: { height: e } });
|
|
329
329
|
return w({
|
|
330
330
|
display: "flex",
|
|
@@ -372,7 +372,7 @@ const Ke = (s) => {
|
|
|
372
372
|
width: d,
|
|
373
373
|
xAxisLabel: g = ""
|
|
374
374
|
}) => {
|
|
375
|
-
const S = x(), C =
|
|
375
|
+
const S = x(), C = Ht(S, d), v = h / l * i, D = Math.abs(h) / l * e, A = c === void 0 || c === o ? "primary" : "secondary";
|
|
376
376
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
377
377
|
/* @__PURE__ */ n("div", { style: { height: i }, children: h >= 0 && /* @__PURE__ */ n(
|
|
378
378
|
q,
|
|
@@ -406,11 +406,11 @@ const Ke = (s) => {
|
|
|
406
406
|
{
|
|
407
407
|
className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
|
|
408
408
|
onClick: a ? () => a(o) : void 0,
|
|
409
|
-
children: /* @__PURE__ */ n(B, { bold: c === o, color:
|
|
409
|
+
children: /* @__PURE__ */ n(B, { bold: c === o, color: A, variant: "Small", children: g })
|
|
410
410
|
}
|
|
411
411
|
)
|
|
412
412
|
] });
|
|
413
|
-
},
|
|
413
|
+
}, Ht = (s, t) => w({
|
|
414
414
|
display: "flex",
|
|
415
415
|
flexDirection: "column",
|
|
416
416
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -435,10 +435,10 @@ const Ke = (s) => {
|
|
|
435
435
|
"& .mx-cmn-clickable": {
|
|
436
436
|
cursor: "pointer"
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), Ft = (s, t) => s + t, Wt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, qt = (s, t) => [...s, t.value], Q = (s, t, e) => {
|
|
439
439
|
const r = s && t ? e / 2 : e;
|
|
440
440
|
return s ? r : 0;
|
|
441
|
-
},
|
|
441
|
+
}, Yt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Qt = ({
|
|
442
442
|
average: s,
|
|
443
443
|
barWidth: t = "8%",
|
|
444
444
|
color: e,
|
|
@@ -450,7 +450,7 @@ const Ke = (s) => {
|
|
|
450
450
|
selectedIndex: i,
|
|
451
451
|
valueFormatter: h = (p) => `${p}`
|
|
452
452
|
}) => {
|
|
453
|
-
const p = x(), d =
|
|
453
|
+
const p = x(), d = zt(p), g = r.reduce(qt, []), S = s !== void 0 ? s : g.reduce(Ft, 0) / g.length, C = Math.max(...g), v = Math.min(...g), D = g.reduce(Wt, 0), A = C >= 0, R = v < 0, I = Q(A, R, o), N = Q(R, A, o), P = Yt(S, C, v, I || N), tt = (b) => i === void 0 || b === i ? e : `${e}80`, O = () => /* @__PURE__ */ n(
|
|
454
454
|
Y,
|
|
455
455
|
{
|
|
456
456
|
averageLineHeight: P,
|
|
@@ -487,9 +487,9 @@ const Ke = (s) => {
|
|
|
487
487
|
/* @__PURE__ */ n(O, {})
|
|
488
488
|
] }, `column-${M}`))
|
|
489
489
|
] }),
|
|
490
|
-
/* @__PURE__ */ n(
|
|
490
|
+
/* @__PURE__ */ n(Ut, { color: e, labelAverage: a, labelMain: l })
|
|
491
491
|
] });
|
|
492
|
-
},
|
|
492
|
+
}, zt = (s) => w({
|
|
493
493
|
"& .mx-cmn-chart-container": {
|
|
494
494
|
alignItems: "flex-end",
|
|
495
495
|
display: "flex",
|
|
@@ -497,14 +497,14 @@ const Ke = (s) => {
|
|
|
497
497
|
marginTop: s.Spacing.Large,
|
|
498
498
|
marginBottom: s.Spacing.Medium
|
|
499
499
|
}
|
|
500
|
-
}), Ve =
|
|
500
|
+
}), Ve = Qt, Xt = ({
|
|
501
501
|
hasGap: s = !1,
|
|
502
502
|
segments: t,
|
|
503
503
|
size: e = gt,
|
|
504
504
|
strokeWidth: r = pt,
|
|
505
505
|
children: o
|
|
506
506
|
}) => {
|
|
507
|
-
const a = x(), l =
|
|
507
|
+
const a = x(), l = jt(a, e), c = (e - r) / 2, i = e / 2;
|
|
508
508
|
let h = -90 - (s ? 1 : 0), p = 0;
|
|
509
509
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
|
|
510
510
|
/* @__PURE__ */ f("svg", { height: e, width: e, children: [
|
|
@@ -537,7 +537,7 @@ const Ke = (s) => {
|
|
|
537
537
|
] }),
|
|
538
538
|
/* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
|
|
539
539
|
] });
|
|
540
|
-
},
|
|
540
|
+
}, jt = (s, t) => w({
|
|
541
541
|
height: t,
|
|
542
542
|
marginTop: `-${s.Spacing.XSmall}px`,
|
|
543
543
|
position: "relative",
|
|
@@ -549,8 +549,8 @@ const Ke = (s) => {
|
|
|
549
549
|
top: "50%",
|
|
550
550
|
transform: "translate(-50%, -50%)"
|
|
551
551
|
}
|
|
552
|
-
}), Ze =
|
|
553
|
-
class
|
|
552
|
+
}), Ze = Xt;
|
|
553
|
+
class Kt {
|
|
554
554
|
globalStore;
|
|
555
555
|
api = new k("/", "");
|
|
556
556
|
copy = {};
|
|
@@ -584,7 +584,7 @@ class te {
|
|
|
584
584
|
}
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
class
|
|
587
|
+
class Vt {
|
|
588
588
|
globalStore;
|
|
589
589
|
survey = null;
|
|
590
590
|
currentQuestionIndex = 0;
|
|
@@ -654,7 +654,7 @@ class z {
|
|
|
654
654
|
throw e;
|
|
655
655
|
});
|
|
656
656
|
}
|
|
657
|
-
class
|
|
657
|
+
class Zt {
|
|
658
658
|
api = new z("/", "");
|
|
659
659
|
globalStore;
|
|
660
660
|
alert = "";
|
|
@@ -687,7 +687,7 @@ class se {
|
|
|
687
687
|
get detailedBudgets() {
|
|
688
688
|
return L(
|
|
689
689
|
this.budgets.filter(
|
|
690
|
-
(t) => t.category_guid !==
|
|
690
|
+
(t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
|
|
691
691
|
),
|
|
692
692
|
this.globalStore.categoryStore.detailedCategories,
|
|
693
693
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -701,7 +701,7 @@ class se {
|
|
|
701
701
|
this.globalStore.copyStore.copy.budgets,
|
|
702
702
|
this.theme
|
|
703
703
|
).reduce(
|
|
704
|
-
(r, o) => o.category_guid !==
|
|
704
|
+
(r, o) => o.category_guid !== E.INCOME ? r : !r || o.percentage > r.percentage ? o : r,
|
|
705
705
|
void 0
|
|
706
706
|
)?.amount;
|
|
707
707
|
}
|
|
@@ -783,6 +783,7 @@ class se {
|
|
|
783
783
|
}
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
+
var Jt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Jt || {}), te = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(te || {}), ee = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(ee || {}), se = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(se || {});
|
|
786
787
|
class X {
|
|
787
788
|
fetchInstance;
|
|
788
789
|
constructor(t, e, r) {
|
|
@@ -862,10 +863,10 @@ class ne {
|
|
|
862
863
|
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
863
864
|
}
|
|
864
865
|
get analysisChartData() {
|
|
865
|
-
return Dt(
|
|
866
|
+
return Dt(At(this.visibleHoldings), this.analysisType);
|
|
866
867
|
}
|
|
867
868
|
get analysisDetails() {
|
|
868
|
-
return
|
|
869
|
+
return Et(this.visibleHoldings)[this.analysisType] || {};
|
|
869
870
|
}
|
|
870
871
|
get visibleHoldings() {
|
|
871
872
|
return this.holdings.filter(
|
|
@@ -924,6 +925,8 @@ const K = {
|
|
|
924
925
|
dashboard_insights_location: 1,
|
|
925
926
|
dashboard_spending_index: 1,
|
|
926
927
|
dashboard_spending_location: 1,
|
|
928
|
+
dashboard_survey_index: 8,
|
|
929
|
+
dashboard_survey_location: 1,
|
|
927
930
|
dashboard_trends_index: 4,
|
|
928
931
|
dashboard_trends_location: 0,
|
|
929
932
|
display_account_number_in_accounts: !0,
|
|
@@ -1196,7 +1199,7 @@ class Je {
|
|
|
1196
1199
|
// UI Stores
|
|
1197
1200
|
globalUiStore;
|
|
1198
1201
|
constructor(t = K, e = "/", r) {
|
|
1199
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new
|
|
1202
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new Vt(this), this.beatStore = new St(this), this.budgetsStore = new Zt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new Kt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), _(this);
|
|
1200
1203
|
}
|
|
1201
1204
|
get isInitialized() {
|
|
1202
1205
|
return this.globalUiStore.isInitialized;
|
|
@@ -1247,7 +1250,7 @@ export {
|
|
|
1247
1250
|
ds as CategoryApi,
|
|
1248
1251
|
eo as CategoryColors,
|
|
1249
1252
|
so as CategoryGuidToName,
|
|
1250
|
-
|
|
1253
|
+
E as CategoryGuids,
|
|
1251
1254
|
ro as CategoryIcon,
|
|
1252
1255
|
pr as ConnectCard,
|
|
1253
1256
|
$s as ConnectDrawer,
|
|
@@ -1267,11 +1270,11 @@ export {
|
|
|
1267
1270
|
wr as EmptyState,
|
|
1268
1271
|
ys as ErrorBoundary,
|
|
1269
1272
|
Os as ErrorStatuses,
|
|
1270
|
-
|
|
1273
|
+
te as ExpenseStatus,
|
|
1271
1274
|
y as Fetch,
|
|
1272
1275
|
nr as Frequency,
|
|
1273
1276
|
k as GlobalCopyApi,
|
|
1274
|
-
|
|
1277
|
+
Kt as GlobalCopyStore,
|
|
1275
1278
|
fo as GlobalDataContext,
|
|
1276
1279
|
yo as GlobalDataProvider,
|
|
1277
1280
|
Je as GlobalStore,
|
|
@@ -1311,15 +1314,15 @@ export {
|
|
|
1311
1314
|
dr as RepeatingType,
|
|
1312
1315
|
js as ResponsiveButton,
|
|
1313
1316
|
Jr as SPENDING_ACCOUNT_TYPES,
|
|
1314
|
-
|
|
1317
|
+
ee as ScheduledPaymentTypes,
|
|
1315
1318
|
je as ScheduledPaymentsApi,
|
|
1316
|
-
|
|
1319
|
+
se as ScreenSize,
|
|
1317
1320
|
Vs as SearchBox,
|
|
1318
1321
|
lr as Select,
|
|
1319
1322
|
Js as SelectionBox,
|
|
1320
1323
|
zr as SingleSegmentDonut,
|
|
1321
1324
|
po as Sizes,
|
|
1322
|
-
|
|
1325
|
+
Ar as StackedLineChart,
|
|
1323
1326
|
Lr as StatusBar,
|
|
1324
1327
|
Ws as StatusName,
|
|
1325
1328
|
mo as TOUCH_TARGET,
|
|
@@ -1331,28 +1334,29 @@ export {
|
|
|
1331
1334
|
rt as TransactionType,
|
|
1332
1335
|
$ as UserApi,
|
|
1333
1336
|
le as UserStore,
|
|
1334
|
-
|
|
1337
|
+
Jt as UserVerification,
|
|
1335
1338
|
W as WidgetApi,
|
|
1336
|
-
|
|
1339
|
+
As as WidgetContainer,
|
|
1337
1340
|
So as WidgetContainerContext,
|
|
1338
1341
|
bo as WidgetContainerProvider,
|
|
1339
1342
|
rs as analyticsSession,
|
|
1340
|
-
|
|
1341
|
-
|
|
1343
|
+
ia as buildDynamicCopy,
|
|
1344
|
+
ca as buildPluralCopy,
|
|
1342
1345
|
io as formatCurrency,
|
|
1343
1346
|
Yr as formatDate,
|
|
1344
1347
|
co as formatOrdinal,
|
|
1345
1348
|
lo as formatPercentage,
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
+
aa as fromTimestampToMonthYear,
|
|
1350
|
+
Jo as getCategory,
|
|
1351
|
+
ta as getCategoryTotalsByParent,
|
|
1349
1352
|
ze as getClientTheme,
|
|
1350
1353
|
uo as getCurrencyCodes,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1354
|
+
ea as getDetailedCategory,
|
|
1355
|
+
sa as getDetailedSubCategory,
|
|
1356
|
+
da as getLocale,
|
|
1357
|
+
ra as isIncome,
|
|
1355
1358
|
ho as isValidNumber,
|
|
1359
|
+
zo as useAccountDisplayName,
|
|
1356
1360
|
wo as useAccountStore,
|
|
1357
1361
|
xo as useAppConfig,
|
|
1358
1362
|
Co as useBudgetsStore,
|
|
@@ -1360,8 +1364,8 @@ export {
|
|
|
1360
1364
|
Do as useCategoryStore,
|
|
1361
1365
|
os as useCombineEvents,
|
|
1362
1366
|
as as useCombinePageviews,
|
|
1363
|
-
|
|
1364
|
-
|
|
1367
|
+
Ao as useDebtStore,
|
|
1368
|
+
Eo as useError,
|
|
1365
1369
|
To as useEvent,
|
|
1366
1370
|
Bo as useFinstrongStore,
|
|
1367
1371
|
Io as useGlobalCopyStore,
|
|
@@ -1370,14 +1374,14 @@ export {
|
|
|
1370
1374
|
ko as useGoalStore,
|
|
1371
1375
|
$o as useHelpStore,
|
|
1372
1376
|
Ro as useHoldingStore,
|
|
1373
|
-
|
|
1377
|
+
jo as useInsightsEnabled,
|
|
1374
1378
|
Po as useMerchantStore,
|
|
1375
1379
|
Oo as useNetWorthStore,
|
|
1376
1380
|
Uo as useNotificationStore,
|
|
1377
1381
|
Lo as usePageView,
|
|
1378
1382
|
Ke as usePrevious,
|
|
1379
1383
|
Go as useRecurringTransactionsStore,
|
|
1380
|
-
|
|
1384
|
+
Vo as useScreenSize,
|
|
1381
1385
|
Ho as useSettingsStore,
|
|
1382
1386
|
Fo as useTransactionStore,
|
|
1383
1387
|
Wo as useTrendsStore,
|
|
@@ -66,6 +66,8 @@ export interface Config {
|
|
|
66
66
|
dashboard_insights_location: number;
|
|
67
67
|
dashboard_spending_index: number;
|
|
68
68
|
dashboard_spending_location: number;
|
|
69
|
+
dashboard_survey_index: number;
|
|
70
|
+
dashboard_survey_location: number;
|
|
69
71
|
dashboard_trends_index: number;
|
|
70
72
|
dashboard_trends_location: number;
|
|
71
73
|
display_account_number_in_accounts: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Account } from '../types/Account';
|
|
2
|
+
export interface AccountDisplayNameOptions {
|
|
3
|
+
allowNickname?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function getAccountDisplayName(account: Account, options?: AccountDisplayNameOptions): string;
|
|
6
|
+
export default getAccountDisplayName;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GlobalStore } from '../stores/GlobalStore';
|
|
1
2
|
import { Account } from '../types';
|
|
2
3
|
export interface MappedAccounts {
|
|
3
4
|
[key: string]: MappedAccount[];
|
|
@@ -11,9 +12,4 @@ export interface MappedOptions {
|
|
|
11
12
|
[key: string]: boolean;
|
|
12
13
|
}
|
|
13
14
|
export declare const setupMappedSelectedOptions: (accounts: Account[], selectedAccountGuids: string[]) => MappedOptions;
|
|
14
|
-
export declare const setupMappedAccounts: (accounts: Account[], closeContentCopy: string) => MappedAccounts;
|
|
15
|
-
export declare function categorizeAccounts(accounts: Account[]): {
|
|
16
|
-
heldAccounts: Account[];
|
|
17
|
-
externalAccounts: Account[];
|
|
18
|
-
};
|
|
19
|
-
export declare function getDisplayAccounts(accounts: Account[], maxAccounts: number): Account[];
|
|
15
|
+
export declare const setupMappedAccounts: (accounts: Account[], closeContentCopy: string, globalStore?: GlobalStore) => MappedAccounts;
|