@mx-cartographer/experiences 7.2.11 → 7.2.12-alpha-ram1-finstrong-testing
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 +4 -0
- package/dist/{Account-B-CuHOYf.mjs → Account-CBQnFO6w.mjs} +1 -1
- package/dist/{AccountDetailsContent-DfzPOeMI.mjs → AccountDetailsContent-BkurfGCr.mjs} +48 -44
- package/dist/{AccountDetailsHeader-vcy67tuH.mjs → AccountDetailsHeader-CaIoP_2Q.mjs} +8 -8
- package/dist/{AccountFields-cUP-9Hm6.mjs → AccountFields-CLbLAhLf.mjs} +5 -5
- package/dist/{AccountListItem-DChcf3SN.mjs → AccountListItem-CPm3572e.mjs} +4 -4
- package/dist/{AccountStore-D6KiXA1B.mjs → AccountStore-DttEGFeu.mjs} +40 -29
- package/dist/{Accounts-IeEtQjzA.mjs → Accounts-B5Yr0e_o.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-ZO9N26Kx.mjs} +3 -3
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-DaFRU5st.mjs → ConnectDrawer-FyY0AWYQ.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DHJ7qdWL.mjs → ConnectionsDrawer-Cd_rztVC.mjs} +3 -3
- package/dist/CurrencyInput-xH-hqry9.mjs +85 -0
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-z3VARSO6.mjs → DebtsStore-DB5U2WMC.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DlGZfm4y.mjs} +3 -3
- package/dist/FinstrongStore-CJBV4K5Y.mjs +432 -0
- package/dist/{GoalStore-TD0BfzWX.mjs → GoalStore-deVLYr7n.mjs} +3 -3
- package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-Ct9DNmhS.mjs} +209 -181
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-D3n1EWxe.mjs → ManageIncome-CqNstpx_.mjs} +63 -61
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-B_1oulrt.mjs → NetWorthStore-CUz0bwVm.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-BKKuULAd.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
- package/dist/{RecurringSettings-C28GrQcP.mjs → RecurringSettings-DfAMEAuh.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-squvjEhu.mjs +170 -0
- package/dist/{TransactionDetails-BWffqew4.mjs → TransactionDetails-CabNHK_I.mjs} +12 -12
- package/dist/{TransactionStore-DxPLdF3B.mjs → TransactionStore-DvOEbOzL.mjs} +3 -3
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-BVNxGsE4.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{WidgetContainer-C88Ecu2W.mjs → WidgetContainer-GoNq8wwm.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +44 -44
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +8 -2
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +50 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +58 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-hrNpJ77n.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +11 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/TransactionList.d.ts +15 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +3119 -1044
- package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +222 -373
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-BcRqfar8.mjs → useAccountDisplayName-B5O6hQ1B.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/CurrencyInput-CsCy7uaS.mjs +0 -83
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
|
@@ -6,10 +6,10 @@ import C from "@mui/material/ListItemButton";
|
|
|
6
6
|
import I from "@mui/material/ListItemText";
|
|
7
7
|
import L from "@mui/material/Stack";
|
|
8
8
|
import { ChevronRight as g } from "@mxenabled/mx-icons";
|
|
9
|
-
import { Text as
|
|
10
|
-
import {
|
|
11
|
-
import { u as P } from "./hooks-
|
|
12
|
-
const
|
|
9
|
+
import { Text as a } from "@mxenabled/mxui";
|
|
10
|
+
import { D as j } from "./Dialog-BPTr3qHE.mjs";
|
|
11
|
+
import { u as P } from "./hooks-C41HAxM5.mjs";
|
|
12
|
+
const q = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
15
15
|
isDisabled: i = !1,
|
|
@@ -21,7 +21,7 @@ const D = v(
|
|
|
21
21
|
secondaryText: y,
|
|
22
22
|
zeroStateText: o
|
|
23
23
|
}) => {
|
|
24
|
-
const { common:
|
|
24
|
+
const { common: m } = P(), [d, t] = b.useState(!1), h = () => {
|
|
25
25
|
t(!1), c?.();
|
|
26
26
|
}, u = () => {
|
|
27
27
|
t(!1), l();
|
|
@@ -32,9 +32,9 @@ const D = v(
|
|
|
32
32
|
I,
|
|
33
33
|
{
|
|
34
34
|
primary: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
35
|
-
/* @__PURE__ */ r(
|
|
35
|
+
/* @__PURE__ */ r(a, { variant: "body1", children: f }),
|
|
36
36
|
/* @__PURE__ */ r(
|
|
37
|
-
|
|
37
|
+
a,
|
|
38
38
|
{
|
|
39
39
|
bold: !0,
|
|
40
40
|
color: o ? "primary.main" : "text.primary",
|
|
@@ -52,12 +52,12 @@ const D = v(
|
|
|
52
52
|
/* @__PURE__ */ r(
|
|
53
53
|
j,
|
|
54
54
|
{
|
|
55
|
-
copy: { title: p, close_aria:
|
|
55
|
+
copy: { title: p, close_aria: m.close_aria },
|
|
56
56
|
disablePrimaryButton: s,
|
|
57
57
|
isOpen: d,
|
|
58
58
|
onClose: h,
|
|
59
59
|
onPrimaryAction: u,
|
|
60
|
-
primaryText:
|
|
60
|
+
primaryText: m.save_button,
|
|
61
61
|
children: n
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -65,5 +65,5 @@ const D = v(
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
q as L
|
|
69
69
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as L } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { observer as A } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import M from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
6
|
import K from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import p from "@mui/material/Stack";
|
|
8
8
|
import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
|
|
9
9
|
import ie from "@mui/material/ListItem";
|
|
10
10
|
import se from "@mui/material/ListItemAvatar";
|
|
11
11
|
import ce from "@mui/material/ListItemButton";
|
|
12
12
|
import le from "@mui/material/ListItemText";
|
|
13
|
-
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-
|
|
13
|
+
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-CngsRZ3K.mjs";
|
|
14
14
|
import { subDays as ue } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
17
|
import $ from "@mui/material/Button";
|
|
18
|
-
import { Delete as me, Add as
|
|
19
|
-
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-
|
|
18
|
+
import { Delete as me, Add as he, ReceiptLong as pe } from "@mxenabled/mx-icons";
|
|
19
|
+
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-CabNHK_I.mjs";
|
|
20
20
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
21
21
|
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
22
22
|
import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
23
23
|
import { DatePicker as ve } from "@mui/x-date-pickers";
|
|
24
24
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
25
|
-
import { u as w, j as
|
|
25
|
+
import { u as w, j as F, g as G, b as Ae, h as Z, p as De } from "./hooks-C41HAxM5.mjs";
|
|
26
26
|
import { b as Ie, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
27
|
-
import { D as O } from "./Drawer-
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
29
|
-
import { f as Ee,
|
|
27
|
+
import { D as O } from "./Drawer-BEtCk82g.mjs";
|
|
28
|
+
import { A as R } from "./WidgetContainer-GoNq8wwm.mjs";
|
|
29
|
+
import { f as Ee, a as Re, D as Te } from "./Dialog-BPTr3qHE.mjs";
|
|
30
30
|
import { formatISO as Le } from "date-fns/formatISO";
|
|
31
31
|
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
32
32
|
import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
|
|
33
|
-
import { h as Ne } from "./DateUtil-
|
|
33
|
+
import { h as Ne } from "./DateUtil-CBdcsyuk.mjs";
|
|
34
34
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
35
|
-
import { T as V } from "./User-
|
|
35
|
+
import { T as V } from "./User-wXzDI4M8.mjs";
|
|
36
36
|
const ee = ({
|
|
37
37
|
frequency: n,
|
|
38
38
|
firstDay: t,
|
|
@@ -61,15 +61,15 @@ const ee = ({
|
|
|
61
61
|
{ id: 4, label: o.weekday_thursday },
|
|
62
62
|
{ id: 5, label: o.weekday_friday },
|
|
63
63
|
{ id: 6, label: o.weekday_saturday }
|
|
64
|
-
], y = [...Array(31).keys()].map((
|
|
65
|
-
id:
|
|
66
|
-
label: Ie(
|
|
64
|
+
], y = [...Array(31).keys()].map((h) => ({
|
|
65
|
+
id: h + 1,
|
|
66
|
+
label: Ie(h + 1)
|
|
67
67
|
}));
|
|
68
68
|
y[30].label += ` (${o.last_day_of_month})`;
|
|
69
|
-
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (
|
|
70
|
-
|
|
69
|
+
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (h) => {
|
|
70
|
+
h && s(be(h));
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */ c(
|
|
72
|
+
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
N,
|
|
75
75
|
{
|
|
@@ -117,7 +117,7 @@ const ee = ({
|
|
|
117
117
|
) })
|
|
118
118
|
] });
|
|
119
119
|
}, Me = A(({ repeatingTransaction: n }) => {
|
|
120
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: r } =
|
|
120
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: r } = F(), { onEvent: i } = G(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
|
|
121
121
|
await r({
|
|
122
122
|
...n,
|
|
123
123
|
recurrence_type: o,
|
|
@@ -161,7 +161,7 @@ const ee = ({
|
|
|
161
161
|
] });
|
|
162
162
|
}), Fe = A(
|
|
163
163
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } =
|
|
164
|
+
const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
|
|
165
165
|
u.useEffect(() => {
|
|
166
166
|
o({
|
|
167
167
|
accounts: i,
|
|
@@ -172,13 +172,13 @@ const ee = ({
|
|
|
172
172
|
const f = u.useMemo(
|
|
173
173
|
() => a.find((_) => _.guid === g),
|
|
174
174
|
[g, a]
|
|
175
|
-
),
|
|
175
|
+
), h = t.repeating_transaction_type === E.Income, k = async () => {
|
|
176
176
|
await l(t.guid), n();
|
|
177
|
-
},
|
|
177
|
+
}, P = () => {
|
|
178
178
|
b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
179
179
|
};
|
|
180
|
-
return /* @__PURE__ */ c(
|
|
181
|
-
/* @__PURE__ */ c(
|
|
180
|
+
return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
181
|
+
/* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
183
|
H,
|
|
184
184
|
{
|
|
@@ -189,8 +189,8 @@ const ee = ({
|
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
|
|
192
|
-
/* @__PURE__ */ c(re, { color:
|
|
193
|
-
|
|
192
|
+
/* @__PURE__ */ c(re, { color: h ? "success.main" : "text.primary", sx: { my: 4 }, children: [
|
|
193
|
+
h ? "+" : "",
|
|
194
194
|
J(m, "0,0.00")
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
|
|
@@ -228,11 +228,11 @@ const ee = ({
|
|
|
228
228
|
$,
|
|
229
229
|
{
|
|
230
230
|
color: "error",
|
|
231
|
-
onClick:
|
|
231
|
+
onClick: P,
|
|
232
232
|
startIcon: /* @__PURE__ */ e(me, {}),
|
|
233
233
|
sx: { mx: 24, my: 16 },
|
|
234
234
|
variant: "text",
|
|
235
|
-
children:
|
|
235
|
+
children: h ? r.delete_income_title : r.delete_expense_title
|
|
236
236
|
}
|
|
237
237
|
),
|
|
238
238
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
|
|
@@ -251,13 +251,13 @@ const ee = ({
|
|
|
251
251
|
Te,
|
|
252
252
|
{
|
|
253
253
|
copy: {
|
|
254
|
-
title:
|
|
254
|
+
title: h ? r.delete_income_title : r.delete_expense_title,
|
|
255
255
|
close_aria: r.close_drawer_aria
|
|
256
256
|
},
|
|
257
257
|
isOpen: v,
|
|
258
258
|
onClose: () => b(!1),
|
|
259
259
|
onPrimaryAction: k,
|
|
260
|
-
children: /* @__PURE__ */ e(S, { children:
|
|
260
|
+
children: /* @__PURE__ */ e(S, { children: h ? r.delete_income_description : r.delete_expense_description })
|
|
261
261
|
}
|
|
262
262
|
)
|
|
263
263
|
] });
|
|
@@ -280,10 +280,10 @@ const ee = ({
|
|
|
280
280
|
merchantGuid: t.merchant_guid
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
|
-
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(
|
|
284
|
-
/* @__PURE__ */ c(
|
|
283
|
+
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(p, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
284
|
+
/* @__PURE__ */ c(p, { direction: "column", sx: { width: "50%" }, children: [
|
|
285
285
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
286
|
-
/* @__PURE__ */ c(
|
|
286
|
+
/* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
287
287
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
288
288
|
ae,
|
|
289
289
|
{
|
|
@@ -295,7 +295,7 @@ const ee = ({
|
|
|
295
295
|
/* @__PURE__ */ e(S, { variant: "caption", children: o })
|
|
296
296
|
] })
|
|
297
297
|
] }),
|
|
298
|
-
/* @__PURE__ */ c(
|
|
298
|
+
/* @__PURE__ */ c(p, { alignItems: "flex-end", sx: { width: "50%" }, children: [
|
|
299
299
|
/* @__PURE__ */ c(
|
|
300
300
|
S,
|
|
301
301
|
{
|
|
@@ -309,7 +309,7 @@ const ee = ({
|
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
/* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
p,
|
|
313
313
|
{
|
|
314
314
|
direction: "row",
|
|
315
315
|
sx: {
|
|
@@ -351,7 +351,7 @@ const ee = ({
|
|
|
351
351
|
onSelected: i
|
|
352
352
|
}) => {
|
|
353
353
|
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
|
|
354
|
-
return /* @__PURE__ */ c(
|
|
354
|
+
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
355
355
|
t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
|
|
356
356
|
/* @__PURE__ */ e(
|
|
357
357
|
ke,
|
|
@@ -389,23 +389,25 @@ const ee = ({
|
|
|
389
389
|
transaction: a
|
|
390
390
|
}) => {
|
|
391
391
|
const { recurring: m } = w();
|
|
392
|
-
return /* @__PURE__ */ c(
|
|
393
|
-
/* @__PURE__ */ c(
|
|
392
|
+
return /* @__PURE__ */ c(p, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
393
|
+
/* @__PURE__ */ c(p, { children: [
|
|
394
394
|
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
|
|
395
395
|
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
396
396
|
] }),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
397
|
+
/* @__PURE__ */ c(M, { children: [
|
|
398
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
399
|
+
/* @__PURE__ */ e(
|
|
400
|
+
ee,
|
|
401
|
+
{
|
|
402
|
+
firstDay: t,
|
|
403
|
+
frequency: i,
|
|
404
|
+
onFirstDayChange: l,
|
|
405
|
+
onFrequencyChange: s,
|
|
406
|
+
onSecondDayChange: o,
|
|
407
|
+
secondDay: r
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
] })
|
|
409
411
|
] });
|
|
410
412
|
}
|
|
411
413
|
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, Ye = (n, t) => q(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === B.INCOME || n.top_level_category_guid === B.TRANSFER && n.transaction_type === V.CREDIT, ze = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
|
|
@@ -414,7 +416,7 @@ const ee = ({
|
|
|
414
416
|
label: t,
|
|
415
417
|
onAddRecurringTransaction: r = () => null
|
|
416
418
|
}) => {
|
|
417
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } =
|
|
419
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, h] = u.useState(1), [k, P] = u.useState(15), _ = u.useMemo(
|
|
418
420
|
() => o.find((x) => x.guid === v),
|
|
419
421
|
[v, o]
|
|
420
422
|
), ne = () => {
|
|
@@ -445,7 +447,7 @@ const ee = ({
|
|
|
445
447
|
b(""), C(!1);
|
|
446
448
|
};
|
|
447
449
|
return /* @__PURE__ */ c(L, { children: [
|
|
448
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
450
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
449
451
|
/* @__PURE__ */ e(
|
|
450
452
|
O,
|
|
451
453
|
{
|
|
@@ -481,9 +483,9 @@ const ee = ({
|
|
|
481
483
|
{
|
|
482
484
|
firstDay: f,
|
|
483
485
|
frequency: g,
|
|
484
|
-
onFirstDayChange:
|
|
486
|
+
onFirstDayChange: h,
|
|
485
487
|
onFrequencyChange: D,
|
|
486
|
-
onSecondDayChange:
|
|
488
|
+
onSecondDayChange: P,
|
|
487
489
|
secondDay: k,
|
|
488
490
|
transaction: _
|
|
489
491
|
}
|
|
@@ -494,9 +496,9 @@ const ee = ({
|
|
|
494
496
|
}
|
|
495
497
|
), Be = A(
|
|
496
498
|
({ zeroStateFor: n }) => {
|
|
497
|
-
const { recurring: t } = w(), { onEvent: r } =
|
|
498
|
-
return /* @__PURE__ */ c(
|
|
499
|
-
/* @__PURE__ */ e(
|
|
499
|
+
const { recurring: t } = w(), { onEvent: r } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = i ? t.add_income : t.add_expense;
|
|
500
|
+
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
501
|
+
/* @__PURE__ */ e(pe, { size: 48 }),
|
|
500
502
|
/* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
501
503
|
/* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
502
504
|
/* @__PURE__ */ e(
|
|
@@ -514,7 +516,7 @@ const ee = ({
|
|
|
514
516
|
] });
|
|
515
517
|
}
|
|
516
518
|
), wt = A(({ forOverview: n = !1 }) => {
|
|
517
|
-
const { recurring: t } = w(), { repeatingTransactions: r } =
|
|
519
|
+
const { recurring: t } = w(), { repeatingTransactions: r } = F(), { onEvent: i } = G(), s = (a) => {
|
|
518
520
|
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
519
521
|
repeating_transaction_guid: a.guid
|
|
520
522
|
});
|
|
@@ -524,7 +526,7 @@ const ee = ({
|
|
|
524
526
|
(a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
|
|
525
527
|
);
|
|
526
528
|
return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
|
|
527
|
-
|
|
529
|
+
p,
|
|
528
530
|
{
|
|
529
531
|
sx: {
|
|
530
532
|
height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
|
|
@@ -532,7 +534,7 @@ const ee = ({
|
|
|
532
534
|
},
|
|
533
535
|
children: [
|
|
534
536
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
535
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
|
|
536
538
|
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
|
|
537
539
|
/* @__PURE__ */ e(
|
|
538
540
|
T,
|
|
@@ -541,10 +543,10 @@ const ee = ({
|
|
|
541
543
|
}
|
|
542
544
|
)
|
|
543
545
|
] }, a.guid)) }) }),
|
|
544
|
-
/* @__PURE__ */ c(
|
|
546
|
+
/* @__PURE__ */ c(M, { children: [
|
|
545
547
|
/* @__PURE__ */ e(T, {}),
|
|
546
548
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
549
|
+
M,
|
|
548
550
|
{
|
|
549
551
|
sx: {
|
|
550
552
|
alignContent: "center",
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-C41HAxM5.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import W from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
10
|
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-
|
|
11
|
+
import { W as j } from "./hooks-C41HAxM5.mjs";
|
|
12
12
|
const w = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import { e as N, a as M, f as v } from "./ConnectDrawer-
|
|
6
|
+
import { a as b } from "./Accounts-B5Yr0e_o.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-FyY0AWYQ.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|
|
@@ -15,13 +15,13 @@ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as oe, T as F, a as P, N as y } from "./ToggleListItem-r0Kx56wF.mjs";
|
|
18
|
-
import { u as D, s as T, p as A, d as se, g as ae, a as W, b as le } from "./hooks-
|
|
18
|
+
import { u as D, s as T, p as A, d as se, g as ae, a as W, b as le } from "./hooks-C41HAxM5.mjs";
|
|
19
19
|
import { b as ce } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { b as re, f as de } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { C as me } from "./CurrencyInput-
|
|
21
|
+
import { D as M } from "./Dialog-BPTr3qHE.mjs";
|
|
22
|
+
import { C as me } from "./CurrencyInput-xH-hqry9.mjs";
|
|
23
23
|
import { u as he } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
-
import { D as J } from "./Drawer-
|
|
24
|
+
import { D as J } from "./Drawer-BEtCk82g.mjs";
|
|
25
25
|
import _e from "@mui/material/Collapse";
|
|
26
26
|
import ue from "@mui/material/Card";
|
|
27
27
|
import pe from "@mui/material/CardContent";
|
|
@@ -30,7 +30,7 @@ import R from "@mui/material/Button";
|
|
|
30
30
|
import L from "@mui/material/TextField";
|
|
31
31
|
import { u as fe } from "./useDimensions-27p2evRx.mjs";
|
|
32
32
|
import X from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as ge } from "./useInsightsEnabled-
|
|
33
|
+
import { u as ge } from "./useInsightsEnabled-CNjP5cfR.mjs";
|
|
34
34
|
import { L as ye } from "./Loader-DUaFpDGv.mjs";
|
|
35
35
|
const be = C(() => {
|
|
36
36
|
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: c } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h, l as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-uobBrm_a.mjs";
|
|
6
|
+
import { u as h, l as b } from "./hooks-C41HAxM5.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-xH-hqry9.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, j as A, g as f } from "./hooks-
|
|
12
|
-
import { R as y, F as N } from "./RecurringTransactions-
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-CqNstpx_.mjs";
|
|
11
|
+
import { u as _, j as A, g as f } from "./hooks-C41HAxM5.mjs";
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactions-CngsRZ3K.mjs";
|
|
13
|
+
import { A as m } from "./WidgetContainer-GoNq8wwm.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
16
16
|
o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|