@mx-cartographer/experiences 9.0.2 → 9.0.4-alpha.mm0
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 +11 -0
- package/dist/{Account-BaJmiJAG.mjs → Account-DR7Plrqy.mjs} +10 -10
- package/dist/AccountDetailsDrawer-C8oJP3J4.mjs +921 -0
- package/dist/AccountDetailsHeader-ByGNPZpO.mjs +228 -0
- package/dist/{AccountUtils-T5_Odvos.mjs → AccountUtils-B8ZzWI-d.mjs} +3 -3
- package/dist/{Analytics-CzGzz_sE.mjs → Analytics-WeZYytR0.mjs} +3 -0
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs +26 -0
- package/dist/{CategorySelectorDrawer-8soGrhB8.mjs → CategorySelectorDrawer-BArJC27L.mjs} +1 -1
- package/dist/Connect-BH0Pt6zc.mjs +42 -0
- package/dist/{ConnectCard-CCep7Zqe.mjs → ConnectCard-Dwfgv24k.mjs} +1 -1
- package/dist/{ConnectDrawer-Cnjr3Ddg.mjs → ConnectDrawer-DytyIhaF.mjs} +8 -9
- package/dist/{ConnectionsDrawer-CtfPXk0M.mjs → ConnectionsDrawer-BHJPKXYF.mjs} +8 -9
- package/dist/{CurrencyInput-adTIRtL3.mjs → CurrencyInput-DaGEQaLW.mjs} +1 -1
- package/dist/DateUtil-CzBmbjmA.mjs +74 -0
- package/dist/{DebtUtils-DD3186U-.mjs → DebtUtils-i4pI2Uoe.mjs} +6 -6
- package/dist/{EmbeddedCard-DPwJjqMH.mjs → EmbeddedCard-CQpbZrmP.mjs} +4 -4
- package/dist/{Error-Dogaw2jO.mjs → Error-Dtw6yxkf.mjs} +1 -1
- package/dist/{ExportCsvAction-Bw02ZJEj.mjs → ExportCsvAction-bovG-NJr.mjs} +2 -2
- package/dist/{GlobalAccountFilter-7Cg2-9A5.mjs → GlobalAccountFilter-CYqzqmAd.mjs} +10 -10
- package/dist/{Help-DJ8PrVHX.mjs → Help-5klKVqkX.mjs} +2 -2
- package/dist/{LineChart-CejWS_rh.mjs → LineChart-CUfiH86G.mjs} +1 -1
- package/dist/{ListItemAction-CzZ8s39Z.mjs → ListItemAction-BqUCLj_w.mjs} +1 -1
- package/dist/{ListItemWrapper-B5r-YQQ_.mjs → ListItemWrapper-BHIbqx7E.mjs} +3 -3
- package/dist/ManageIncome-Cz6hvpdA.mjs +902 -0
- package/dist/{MicroWidgetContainer-CfKdQfhi.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BdPiUU-u.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +1 -1
- package/dist/{NetWorthUtils-DilGN1nW.mjs → NetWorthUtils-DfSH3z70.mjs} +2 -2
- package/dist/{NotificationSettings-B4JA5IKE.mjs → NotificationSettings-Ci89BBRI.mjs} +4 -4
- package/dist/{OriginalBalanceAction-BybTXDtO.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +3 -3
- package/dist/{RecurringSettings-D2xbNb67.mjs → RecurringSettings-ClYjsmPz.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-zOxq5pzY.mjs +298 -0
- package/dist/Select-CSpkK5cR.mjs +61 -0
- package/dist/SpendingData-Fii_xATx.mjs +53 -0
- package/dist/{SpendingLegend-5Ct_FZ8o.mjs → SpendingLegend-Bn3DzGyK.mjs} +1 -1
- package/dist/TabContentContainer-B0eYJP5p.mjs +48 -0
- package/dist/{TransactionDetails-DctXr07p.mjs → TransactionDetails-DRN0GIaZ.mjs} +6 -6
- package/dist/{UserStore-CRpKQjpP.mjs → UserStore-DzWku3t0.mjs} +81 -40
- package/dist/{ViewMoreMicroCard-BD_MNc2z.mjs → ViewMoreMicroCard-Dxghxphh.mjs} +211 -231
- package/dist/{WidgetContainer-CmbU4CBH.mjs → WidgetContainer-D-LzIKFb.mjs} +3 -3
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
- package/dist/accounts/index.d.ts +1 -0
- package/dist/accounts/index.es.js +220 -1035
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +11 -11
- package/dist/cashflow/index.es.js +41 -41
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/DataRow.d.ts +1 -0
- package/dist/common/constants/Analytics.d.ts +3 -0
- package/dist/common/index.es.js +82 -83
- package/dist/core/index.es.js +8 -8
- package/dist/core/stores/RecurringTransactionsStore.d.ts +27 -1
- package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
- package/dist/core/utils/DateUtil.d.ts +2 -0
- package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +73 -73
- package/dist/finstrong/index.es.js +17 -17
- package/dist/goals/index.es.js +22 -23
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-BaO_gOI6.mjs → hooks-97sNJ_lf.mjs} +9 -9
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +6 -6
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +12 -11
- package/dist/networth/index.es.js +9 -9
- package/dist/notifications/index.es.js +9 -9
- package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
- package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
- package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +6 -0
- package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
- package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
- package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
- package/dist/recurringtransactions/index.es.js +402 -376
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +12 -12
- package/dist/trends/index.es.js +14 -14
- package/dist/useAccountDisplayName-BsiXA0qf.mjs +23 -0
- package/dist/{useInsightsEnabled-DaNLPmUU.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-CJb-RELP.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SpendingData-PKlh8caU.mjs +0 -53
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
package/dist/core/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as
|
|
2
|
-
import {
|
|
1
|
+
import { A as g, a as m, b as C, c as N, d as h, B as f, e as E, f as D, g as b, C as I, h as M, i as R, j as B, D as L, F as G, k as _, G as H, l as P, m as U, n as x, o as O, H as F, p as k, q as v, r as w, M as W, s as Y, N as $, t as q, u as K, R as j, v as z, S as J, w as Q, T as X, x as Z, y as V, U as tt, z as at, W as st } from "../UserStore-DzWku3t0.mjs";
|
|
2
|
+
import { b as ot, a as nt, d as rt, c as it, A as ct, C as pt, e as At, E as St, M as ut, N as lt, P as Tt, f as yt, g as dt, S as gt } from "../Account-DR7Plrqy.mjs";
|
|
3
3
|
import { A as Ct, B as Nt, I as ht, N as ft } from "../Notification-DTNYSd8P.mjs";
|
|
4
4
|
import { F as n } from "../GlobalCopyApi-wcnDUzMV.mjs";
|
|
5
|
-
import { A as Dt, B as
|
|
6
|
-
import { F as Rt, a as Bt, b as Lt, R as Gt } from "../RecurringTransactionsUtil-
|
|
5
|
+
import { A as Dt, B as bt, G as It } from "../GlobalCopyApi-wcnDUzMV.mjs";
|
|
6
|
+
import { F as Rt, a as Bt, b as Lt, R as Gt } from "../RecurringTransactionsUtil-zOxq5pzY.mjs";
|
|
7
7
|
import { G as Ht, M as Pt, T as Ut } from "../GoalsUtil-C9EnLWvC.mjs";
|
|
8
8
|
import { L as Ot, V as Ft, b as kt, g as vt } from "../Localization-DnoVyBNK.mjs";
|
|
9
9
|
import { A as e } from "../ApiEndpoints-DXwIYNUV.mjs";
|
|
@@ -38,12 +38,12 @@ export {
|
|
|
38
38
|
N as AppDataApi,
|
|
39
39
|
h as AppDataStore,
|
|
40
40
|
f as BannerApi,
|
|
41
|
-
|
|
41
|
+
bt as BeatApi,
|
|
42
42
|
E as BeatStore,
|
|
43
43
|
Nt as BudgetNotificationTypes,
|
|
44
44
|
D as BudgetsApi,
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
b as BudgetsStore,
|
|
46
|
+
I as CashflowStore,
|
|
47
47
|
M as CategoryApi,
|
|
48
48
|
R as CategoryStore,
|
|
49
49
|
B as ConnectStore,
|
|
@@ -56,7 +56,7 @@ export {
|
|
|
56
56
|
G as FinstrongApi,
|
|
57
57
|
_ as FinstrongStore,
|
|
58
58
|
Rt as Frequency,
|
|
59
|
-
|
|
59
|
+
It as GlobalCopyApi,
|
|
60
60
|
H as GlobalCopyStore,
|
|
61
61
|
P as GlobalStore,
|
|
62
62
|
U as GlobalUiStore,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { AlertProps } from '@mui/material';
|
|
1
2
|
import { RepeatingTransactionsApi } from '../api';
|
|
2
|
-
import { Recurrence, RepeatingTransaction, Transaction, DateRange } from '../types';
|
|
3
|
+
import { Recurrence, RecurringCopy, RepeatingTransaction, Transaction, DateRange } from '../types';
|
|
3
4
|
import { GlobalStore } from './GlobalStore';
|
|
5
|
+
interface RecurringAlertProps {
|
|
6
|
+
message: string;
|
|
7
|
+
severity: AlertProps['severity'];
|
|
8
|
+
}
|
|
4
9
|
export declare class RecurringTransactionsStore {
|
|
5
10
|
globalStore: GlobalStore;
|
|
6
11
|
api: RepeatingTransactionsApi;
|
|
@@ -8,7 +13,10 @@ export declare class RecurringTransactionsStore {
|
|
|
8
13
|
isDataLoaded: boolean;
|
|
9
14
|
selectedDay: Date | undefined;
|
|
10
15
|
dateRange: DateRange;
|
|
16
|
+
selectedRepeatingTransactionGuid: string | null;
|
|
17
|
+
alert: RecurringAlertProps;
|
|
11
18
|
constructor(globalStore: GlobalStore);
|
|
19
|
+
get copy(): RecurringCopy;
|
|
12
20
|
get detailedRepeatingTransactions(): RepeatingTransaction[];
|
|
13
21
|
/**
|
|
14
22
|
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
@@ -80,6 +88,8 @@ export declare class RecurringTransactionsStore {
|
|
|
80
88
|
* Get the recurrences for the currently selected day.
|
|
81
89
|
*/
|
|
82
90
|
get selectedDayRecurrences(): Recurrence[] | undefined;
|
|
91
|
+
get selectedRepeatingTransaction(): RepeatingTransaction | undefined;
|
|
92
|
+
setSelectedRepeatingTransactionGuid: (guid: string | null) => string | null;
|
|
83
93
|
setRepeatingTransactions: (repeating: RepeatingTransaction[]) => void;
|
|
84
94
|
/**
|
|
85
95
|
* Set the date range for filtering recurrences.
|
|
@@ -112,4 +122,20 @@ export declare class RecurringTransactionsStore {
|
|
|
112
122
|
* @param transaction - The repeating transaction to update.
|
|
113
123
|
*/
|
|
114
124
|
updateRepeatingTransaction: (transaction: RepeatingTransaction) => Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Mark a recurrence as paid by linking a transaction to the repeating transaction.
|
|
127
|
+
* @param repeatingTransactionGuid - The GUID of the repeating transaction.
|
|
128
|
+
* @param transaction - The transaction to link.
|
|
129
|
+
*/
|
|
130
|
+
markRecurrenceAsPaid: (repeatingTransactionGuid: string, transaction: Transaction) => Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Mark a recurrence as unpaid by unlinking the associated transaction from the repeating transaction.
|
|
133
|
+
* @param transaction - The transaction to unlink.
|
|
134
|
+
*/
|
|
135
|
+
markRecurrenceAsUnpaid: (transaction: Transaction) => Promise<void>;
|
|
136
|
+
setAlert: (message: string, severity?: RecurringAlertProps["severity"]) => {
|
|
137
|
+
message: string;
|
|
138
|
+
severity: import('@mui/types').OverridableStringUnion<import('@mui/material').AlertColor, import('@mui/material').AlertPropsColorOverrides> | undefined;
|
|
139
|
+
};
|
|
115
140
|
}
|
|
141
|
+
export {};
|
|
@@ -50,8 +50,17 @@ export interface RecurringCopy {
|
|
|
50
50
|
income_details: string;
|
|
51
51
|
income_schedule: string;
|
|
52
52
|
last_day_of_month: string;
|
|
53
|
+
link_transaction_button: string;
|
|
54
|
+
link_transaction_description: string;
|
|
55
|
+
link_transaction_error: string;
|
|
56
|
+
link_transaction_success: string;
|
|
53
57
|
manage_expenses: string;
|
|
58
|
+
more_menu_aria: string;
|
|
54
59
|
manage_income: string;
|
|
60
|
+
mark_as_paid_cta: string;
|
|
61
|
+
mark_as_paid_dialog_title: string;
|
|
62
|
+
mark_as_unpaid_cta: string;
|
|
63
|
+
mark_as_unpaid_dialog_title: string;
|
|
55
64
|
mini_title: string;
|
|
56
65
|
missed: string;
|
|
57
66
|
missed_on: string;
|
|
@@ -63,8 +72,8 @@ export interface RecurringCopy {
|
|
|
63
72
|
paid: string;
|
|
64
73
|
paid_activity: string;
|
|
65
74
|
paid_on: string;
|
|
66
|
-
paid_transactions: string;
|
|
67
75
|
past: string;
|
|
76
|
+
past_activity: string;
|
|
68
77
|
past_transactions: string;
|
|
69
78
|
payment_schedule: string;
|
|
70
79
|
primary_cta: string;
|
|
@@ -93,6 +102,10 @@ export interface RecurringCopy {
|
|
|
93
102
|
twice_a_month_ordinal: string;
|
|
94
103
|
transaction_details_drawer_title: string;
|
|
95
104
|
upcoming: string;
|
|
105
|
+
unlink_transaction_button: string;
|
|
106
|
+
unlink_transaction_description: string;
|
|
107
|
+
unlink_transaction_error: string;
|
|
108
|
+
unlink_transaction_success: string;
|
|
96
109
|
upcoming_activity: string;
|
|
97
110
|
upcoming_on: string;
|
|
98
111
|
unknown: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const getNextWeeklyDate: (date: Date) => Date;
|
|
2
2
|
export declare const getNextBiWeeklyDate: (date: Date) => Date;
|
|
3
|
+
export declare const getTwiceMonthlyDates: (day1: number, day2: number) => Date[];
|
|
4
|
+
export declare const getNextTwiceMonthlyDate: (day1: number, day2: number) => Date;
|
|
3
5
|
export declare const getNextMonthlyDate: (date: Date) => Date;
|
|
4
6
|
export declare const getNextBiMonthlyDate: (date: Date) => Date;
|
|
5
7
|
export declare const getNextQuarterlyDate: (date: Date) => Date;
|
|
@@ -9,4 +9,5 @@ export declare const buildAllRecurrences: (repeatingTransactions: RepeatingTrans
|
|
|
9
9
|
export declare const augmentRepeatingTransactions: (accounts: Account[], repeatingTransactions: RepeatingTransaction[], transactions: Transaction[]) => RepeatingTransaction[];
|
|
10
10
|
export declare const groupRecurrencesByDate: (recurrences: Recurrence[]) => GroupedRecurrence[];
|
|
11
11
|
export declare const getFrequencyLabel: (copy: RecurringCopy, repeatingTransaction: RepeatingTransaction, showOrdinal: boolean) => string;
|
|
12
|
-
export declare const getNextPaymentDate: (frequency: Frequency, date: Date, recurrenceDay?: number) => Date;
|
|
12
|
+
export declare const getNextPaymentDate: (frequency: Frequency, date: Date, recurrenceDay?: number, secondRecurrenceDay?: number) => Date;
|
|
13
|
+
export declare const getNextUpcomingDate: (recurringTransaction: RepeatingTransaction, recurrences: Recurrence[]) => Date;
|
|
@@ -5,7 +5,7 @@ import u from "@mui/material/Grid";
|
|
|
5
5
|
import m from "@mui/material/Skeleton";
|
|
6
6
|
import s from "@mui/material/Stack";
|
|
7
7
|
import { useTheme as S } from "@mui/material/styles";
|
|
8
|
-
import {
|
|
8
|
+
import { e as w, u as b, i as v } from "../hooks-97sNJ_lf.mjs";
|
|
9
9
|
import C from "@mui/material/Paper";
|
|
10
10
|
import { Icon as _, H2 as M, P as D } from "@mxenabled/mxui";
|
|
11
11
|
import { useMediaQuery as G } from "@mui/system";
|
|
@@ -14,10 +14,10 @@ import W from "@mui/material/Button";
|
|
|
14
14
|
import k from "@mui/material/IconButton";
|
|
15
15
|
import A from "@mui/material/Tooltip";
|
|
16
16
|
import I from "@mui/material/useMediaQuery";
|
|
17
|
-
import { G as B } from "../GlobalAccountFilter-
|
|
17
|
+
import { G as B } from "../GlobalAccountFilter-CYqzqmAd.mjs";
|
|
18
18
|
import { u as y } from "../useScreenSize-mWpmnh5w.mjs";
|
|
19
|
-
import { C as F } from "../ConnectDrawer-
|
|
20
|
-
import { u as R } from "../useWidgetLoadTimer-
|
|
19
|
+
import { C as F } from "../ConnectDrawer-DytyIhaF.mjs";
|
|
20
|
+
import { u as R } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
21
21
|
const T = p(() => {
|
|
22
22
|
const t = S(), {
|
|
23
23
|
appDataStore: { banner: r, loadBanner: i, user: a }
|
package/dist/debts/index.es.js
CHANGED
|
@@ -5,55 +5,55 @@ import y from "@mui/material/Stack";
|
|
|
5
5
|
import { useTheme as j, Card as ge, Stack as u, Box as W } from "@mui/material";
|
|
6
6
|
import { Text as i, P as xe, H3 as Be, InstitutionLogo as Pe, Icon as ne } from "@mxenabled/mxui";
|
|
7
7
|
import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
|
|
8
|
-
import { s as Fe, D as F, t as $e, b as Oe } from "../DebtUtils-
|
|
8
|
+
import { s as Fe, D as F, t as $e, b as Oe } from "../DebtUtils-i4pI2Uoe.mjs";
|
|
9
9
|
import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
|
|
10
10
|
import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
|
|
11
|
-
import { G as Ge, q as ee, u as w, k as V,
|
|
11
|
+
import { G as Ge, q as ee, u as w, k as V, f as k, c as te, i as He, a as ze } from "../hooks-97sNJ_lf.mjs";
|
|
12
12
|
import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
|
|
13
13
|
import { b as T } from "../Localization-DnoVyBNK.mjs";
|
|
14
14
|
import { D as ie } from "../Drawer-BXqqBMxg.mjs";
|
|
15
|
-
import { A as je, u as Ve } from "../AccountDetailsHeader-
|
|
15
|
+
import { A as je, u as Ve } from "../AccountDetailsHeader-ByGNPZpO.mjs";
|
|
16
16
|
import Ye from "@mui/material/Card";
|
|
17
17
|
import Ke from "@mui/material/CardContent";
|
|
18
18
|
import Ue from "@mui/material/CardHeader";
|
|
19
19
|
import le from "@mui/material/Box";
|
|
20
20
|
import { useTheme as qe } from "@mui/material/styles";
|
|
21
21
|
import { LineChart as Xe } from "@mui/x-charts/LineChart";
|
|
22
|
-
import { A as S } from "../Analytics-
|
|
23
|
-
import
|
|
22
|
+
import { A as S } from "../Analytics-WeZYytR0.mjs";
|
|
23
|
+
import me from "@mui/material/Tab";
|
|
24
24
|
import Ze from "@mui/material/Tabs";
|
|
25
25
|
import we from "@mui/material/List";
|
|
26
26
|
import G from "@mui/material/Divider";
|
|
27
|
-
import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-
|
|
27
|
+
import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-YrvxBYAl.mjs";
|
|
28
28
|
import tt from "@mui/material/TextField";
|
|
29
|
-
import { L as re } from "../ListItemAction-
|
|
30
|
-
import { C as se } from "../CurrencyInput-
|
|
31
|
-
import
|
|
29
|
+
import { L as re } from "../ListItemAction-BqUCLj_w.mjs";
|
|
30
|
+
import { C as se } from "../CurrencyInput-DaGEQaLW.mjs";
|
|
31
|
+
import be from "@mui/material/Alert";
|
|
32
32
|
import _e from "@mui/material/AlertTitle";
|
|
33
33
|
import ye from "@mui/material/Paper";
|
|
34
34
|
import { Error as rt, CheckCircle as Ce } from "@mxenabled/mx-icons";
|
|
35
|
-
import { T as fe } from "../TabContentContainer-
|
|
35
|
+
import { T as fe } from "../TabContentContainer-B0eYJP5p.mjs";
|
|
36
36
|
import { DataGridPro as ot } from "@mui/x-data-grid-pro";
|
|
37
37
|
import { H } from "../HeaderCell-P8w6CmfO.mjs";
|
|
38
|
-
import {
|
|
38
|
+
import { A as nt, c as z } from "../Account-DR7Plrqy.mjs";
|
|
39
39
|
import ve from "@mui/material/Button";
|
|
40
40
|
import at from "@mui/material/IconButton";
|
|
41
41
|
import it from "@mui/material/ListItem";
|
|
42
42
|
import lt from "@mui/material/Popover";
|
|
43
|
-
import { u as st } from "../useWidgetLoadTimer-
|
|
43
|
+
import { u as st } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
44
44
|
import { L as ct } from "../Loader-CxeBwuPG.mjs";
|
|
45
|
-
import { W as dt } from "../WidgetContainer-
|
|
45
|
+
import { W as dt } from "../WidgetContainer-D-LzIKFb.mjs";
|
|
46
46
|
import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
|
|
47
|
-
import { C as ut } from "../ConnectDrawer-
|
|
47
|
+
import { C as ut } from "../ConnectDrawer-DytyIhaF.mjs";
|
|
48
48
|
function ht(r, n, o = 0) {
|
|
49
|
-
const t = r.map((
|
|
50
|
-
(
|
|
49
|
+
const t = r.map((m) => ({ ...m })).filter(
|
|
50
|
+
(m) => m.interest_rate !== void 0 && m.monthly_payment !== void 0 && !m.is_paid_off
|
|
51
51
|
);
|
|
52
52
|
Fe(t, n);
|
|
53
53
|
let a = 0, s = 0;
|
|
54
54
|
const d = /* @__PURE__ */ new Date(), c = /* @__PURE__ */ new Date();
|
|
55
|
-
for (; t.some((
|
|
56
|
-
let
|
|
55
|
+
for (; t.some((m) => m.balance >= 0.01 && !m.is_impossible); ) {
|
|
56
|
+
let m = !1;
|
|
57
57
|
for (const [v, x] of t.entries()) {
|
|
58
58
|
if (x.balance <= 0.01 || x.is_impossible) continue;
|
|
59
59
|
const L = (x.interest_rate ?? 0) / 100 / 12, N = x.balance * L;
|
|
@@ -64,23 +64,23 @@ function ht(r, n, o = 0) {
|
|
|
64
64
|
x.is_impossible = !0;
|
|
65
65
|
continue;
|
|
66
66
|
}
|
|
67
|
-
x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (
|
|
67
|
+
x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (m = !0);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
m && c.setMonth(c.getMonth() + 1);
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const b = t.some((m) => m.is_impossible && m.balance > 0), h = Re({ start: d, end: c });
|
|
72
72
|
return {
|
|
73
|
-
payoffSavings:
|
|
74
|
-
payoffDate:
|
|
75
|
-
payoffDuration:
|
|
73
|
+
payoffSavings: b ? "N/A" : I(a, "0,0.00"),
|
|
74
|
+
payoffDate: b ? "Never" : J(c, Q.MONTH_YEAR),
|
|
75
|
+
payoffDuration: b ? "Stagnant" : Le(h, { format: ["years", "months"] }) || "0 months"
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
const P = () => {
|
|
79
79
|
if (!f.useContext(Ge))
|
|
80
80
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
|
81
81
|
return ee().uiStore;
|
|
82
|
-
},
|
|
83
|
-
const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate:
|
|
82
|
+
}, mt = ({ debts: r, onClickCta: n, sx: o }) => {
|
|
83
|
+
const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate: b, payoffSavings: h, payoffDuration: m } = f.useMemo(() => {
|
|
84
84
|
const v = c?.extra_payment ?? 0;
|
|
85
85
|
return ht(r, d, v);
|
|
86
86
|
}, [r, d, c]);
|
|
@@ -105,7 +105,7 @@ const P = () => {
|
|
|
105
105
|
},
|
|
106
106
|
children: [
|
|
107
107
|
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_date_description }),
|
|
108
|
-
/* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children:
|
|
108
|
+
/* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children: b })
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
111
|
),
|
|
@@ -114,7 +114,7 @@ const P = () => {
|
|
|
114
114
|
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_amount_description })
|
|
115
115
|
] }),
|
|
116
116
|
/* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
|
|
117
|
-
/* @__PURE__ */ e(i, { bold: !0, variant: "body2", children:
|
|
117
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: m }),
|
|
118
118
|
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_duration_description })
|
|
119
119
|
] }),
|
|
120
120
|
/* @__PURE__ */ e(
|
|
@@ -131,7 +131,7 @@ const P = () => {
|
|
|
131
131
|
] })
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
|
-
},
|
|
134
|
+
}, bt = C(mt), _t = ({ isOpen: r, onClose: n }) => {
|
|
135
135
|
const o = j(), { debts: t } = w(), [a, s] = f.useState(!1);
|
|
136
136
|
return /* @__PURE__ */ e(
|
|
137
137
|
ie,
|
|
@@ -510,14 +510,14 @@ const De = ({
|
|
|
510
510
|
onClickArea: s,
|
|
511
511
|
onHoverArea: d
|
|
512
512
|
}) => {
|
|
513
|
-
const c = qe(), { onEvent:
|
|
513
|
+
const c = qe(), { onEvent: b } = k(), h = t.filter((p) => !p.is_impossible), m = [
|
|
514
514
|
...new Set(
|
|
515
515
|
h.flatMap((p) => p.dataset.map((g) => new Date(g.x).getTime()))
|
|
516
516
|
)
|
|
517
517
|
].sort((p, g) => p - g).map((p) => new Date(p)), v = h.map((p) => {
|
|
518
518
|
const g = new Map(p.dataset.map((B) => [new Date(B.x).getTime(), B.y]));
|
|
519
|
-
let D = g.get(
|
|
520
|
-
const M =
|
|
519
|
+
let D = g.get(m[0].getTime()) ?? 0;
|
|
520
|
+
const M = m.map((B) => {
|
|
521
521
|
const K = g.get(B.getTime()) ?? D;
|
|
522
522
|
return D = K, { x: B, y: K };
|
|
523
523
|
});
|
|
@@ -525,10 +525,10 @@ const De = ({
|
|
|
525
525
|
}), x = v.reduce(
|
|
526
526
|
(p, g) => p + (g.dataset[0]?.y ?? 0),
|
|
527
527
|
0
|
|
528
|
-
), $ =
|
|
529
|
-
const D = g / (
|
|
528
|
+
), $ = m.map((p, g) => {
|
|
529
|
+
const D = g / (m.length - 1), M = x * (1 - D);
|
|
530
530
|
return { x: p, y: M };
|
|
531
|
-
}), L = Math.ceil(x / 100) * 100, N =
|
|
531
|
+
}), L = Math.ceil(x / 100) * 100, N = m, A = v.map((p, g) => {
|
|
532
532
|
const D = 1 - g / v.length * 0.5, M = gt(ft, D);
|
|
533
533
|
return {
|
|
534
534
|
id: `debt-${g}`,
|
|
@@ -581,7 +581,7 @@ const De = ({
|
|
|
581
581
|
onAreaClick: (p, g) => {
|
|
582
582
|
s?.();
|
|
583
583
|
const D = A.find((M) => M.id === g.seriesId);
|
|
584
|
-
|
|
584
|
+
b(S.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
|
|
585
585
|
},
|
|
586
586
|
onHighlightChange: (p) => {
|
|
587
587
|
const g = A.find((D) => D.id === p?.seriesId)?.guid;
|
|
@@ -623,7 +623,7 @@ const De = ({
|
|
|
623
623
|
{
|
|
624
624
|
data: N,
|
|
625
625
|
disableTicks: !0,
|
|
626
|
-
min:
|
|
626
|
+
min: m[0],
|
|
627
627
|
scaleType: "time",
|
|
628
628
|
tickLabelMinGap: 24,
|
|
629
629
|
valueFormatter: (p) => J(p, Q.MONTH_SHORT_YEAR)
|
|
@@ -684,7 +684,7 @@ const De = ({
|
|
|
684
684
|
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_month_heading }),
|
|
685
685
|
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_amount_heading })
|
|
686
686
|
] }),
|
|
687
|
-
t.dataset.slice(1).map(({ x: d, y: c, payment:
|
|
687
|
+
t.dataset.slice(1).map(({ x: d, y: c, payment: b }) => /* @__PURE__ */ e(y, { bgcolor: r.palette.background.paper, children: /* @__PURE__ */ e(y, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ l(
|
|
688
688
|
y,
|
|
689
689
|
{
|
|
690
690
|
sx: {
|
|
@@ -708,7 +708,7 @@ const De = ({
|
|
|
708
708
|
color: r.palette.success.main,
|
|
709
709
|
textAlign: "end",
|
|
710
710
|
variant: "tiny",
|
|
711
|
-
children: `+${I(
|
|
711
|
+
children: `+${I(b, "0,0")}`
|
|
712
712
|
}
|
|
713
713
|
)
|
|
714
714
|
] })
|
|
@@ -735,7 +735,7 @@ const De = ({
|
|
|
735
735
|
}, vt = C(Ct), Dt = C(({ debt: r }) => {
|
|
736
736
|
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.interest_rate ?? 0), d = a < 0, c = async () => {
|
|
737
737
|
await o({ ...r.account, interest_rate: a }), r.interest_rate = a, t(S.DEBTS_SAVE_RATE_ACTION, { account_guid: r.guid });
|
|
738
|
-
},
|
|
738
|
+
}, b = () => {
|
|
739
739
|
setTimeout(() => {
|
|
740
740
|
s(r.interest_rate ?? 0);
|
|
741
741
|
}, 250);
|
|
@@ -745,7 +745,7 @@ const De = ({
|
|
|
745
745
|
{
|
|
746
746
|
isSaveDisabled: d,
|
|
747
747
|
label: `${n.details_interest_rate} (%)`,
|
|
748
|
-
onCancel:
|
|
748
|
+
onCancel: b,
|
|
749
749
|
onSave: c,
|
|
750
750
|
primaryText: n.details_interest_rate,
|
|
751
751
|
secondaryText: We(Number(r.interest_rate) / 100),
|
|
@@ -765,7 +765,7 @@ const De = ({
|
|
|
765
765
|
}), St = C(({ debt: r }) => {
|
|
766
766
|
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.monthly_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
|
|
767
767
|
await o({ ...r.account, minimum_payment: a }), r.monthly_payment = a, t(S.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: r.guid });
|
|
768
|
-
},
|
|
768
|
+
}, b = () => {
|
|
769
769
|
setTimeout(() => {
|
|
770
770
|
s(r.monthly_payment ?? 0);
|
|
771
771
|
}, 250);
|
|
@@ -775,7 +775,7 @@ const De = ({
|
|
|
775
775
|
{
|
|
776
776
|
isSaveDisabled: d,
|
|
777
777
|
label: n.details_monthly_payment,
|
|
778
|
-
onCancel:
|
|
778
|
+
onCancel: b,
|
|
779
779
|
onSave: c,
|
|
780
780
|
primaryText: n.details_monthly_payment,
|
|
781
781
|
secondaryText: I(r.monthly_payment, "0,0"),
|
|
@@ -797,7 +797,7 @@ const De = ({
|
|
|
797
797
|
}), At = C(({ debt: r }) => {
|
|
798
798
|
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.original_balance ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
|
|
799
799
|
await o({ ...r.account, original_balance: a }), r.original_balance = a, t(S.DEBTS_SAVE_BALANCE_ACTION, { account_guid: r.guid });
|
|
800
|
-
},
|
|
800
|
+
}, b = () => {
|
|
801
801
|
setTimeout(() => {
|
|
802
802
|
s(r.original_balance ?? 0);
|
|
803
803
|
}, 250);
|
|
@@ -807,7 +807,7 @@ const De = ({
|
|
|
807
807
|
{
|
|
808
808
|
isSaveDisabled: d,
|
|
809
809
|
label: n.details_original_balance,
|
|
810
|
-
onCancel:
|
|
810
|
+
onCancel: b,
|
|
811
811
|
onSave: c,
|
|
812
812
|
primaryText: n.details_original_balance,
|
|
813
813
|
secondaryText: I(r.original_balance, "0,0"),
|
|
@@ -852,7 +852,7 @@ const De = ({
|
|
|
852
852
|
t && r(1);
|
|
853
853
|
}, [t]), !t && !a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ l(y, { gap: 16, children: [
|
|
854
854
|
/* @__PURE__ */ e(ye, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
855
|
-
|
|
855
|
+
be,
|
|
856
856
|
{
|
|
857
857
|
icon: t ? /* @__PURE__ */ e(rt, { filled: !0 }) : /* @__PURE__ */ e(Ce, { color: "success", filled: !0 }),
|
|
858
858
|
severity: "error",
|
|
@@ -873,7 +873,7 @@ const De = ({
|
|
|
873
873
|
}
|
|
874
874
|
) }),
|
|
875
875
|
t && /* @__PURE__ */ e(ye, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
876
|
-
|
|
876
|
+
be,
|
|
877
877
|
{
|
|
878
878
|
icon: /* @__PURE__ */ e(R, {}),
|
|
879
879
|
severity: "error",
|
|
@@ -906,7 +906,7 @@ const De = ({
|
|
|
906
906
|
variant: "fullWidth",
|
|
907
907
|
children: [
|
|
908
908
|
/* @__PURE__ */ e(
|
|
909
|
-
|
|
909
|
+
me,
|
|
910
910
|
{
|
|
911
911
|
"aria-controls": "debt-schedule-tabpanel-0",
|
|
912
912
|
id: "debt-schedule-tab-0",
|
|
@@ -914,7 +914,7 @@ const De = ({
|
|
|
914
914
|
}
|
|
915
915
|
),
|
|
916
916
|
/* @__PURE__ */ e(
|
|
917
|
-
|
|
917
|
+
me,
|
|
918
918
|
{
|
|
919
919
|
"aria-controls": "debt-details-tabpanel-1",
|
|
920
920
|
id: "debt-details-tab-1",
|
|
@@ -947,7 +947,7 @@ const De = ({
|
|
|
947
947
|
n && (await o({ ...n, extra_payment: a }), n.extra_payment = a, t(S.DEBTS_SAVE_PAYDOWN_ACTION, {
|
|
948
948
|
user_guid: n?.user_guid
|
|
949
949
|
}));
|
|
950
|
-
},
|
|
950
|
+
}, b = () => {
|
|
951
951
|
setTimeout(() => {
|
|
952
952
|
s(n?.extra_payment ?? 0);
|
|
953
953
|
}, 250);
|
|
@@ -957,7 +957,7 @@ const De = ({
|
|
|
957
957
|
{
|
|
958
958
|
isSaveDisabled: d,
|
|
959
959
|
label: r.paydown_drawer_extra_payment,
|
|
960
|
-
onCancel:
|
|
960
|
+
onCancel: b,
|
|
961
961
|
onSave: c,
|
|
962
962
|
primaryText: r.paydown_drawer_extra_payment,
|
|
963
963
|
secondaryText: I(n?.extra_payment, "0,0"),
|
|
@@ -1067,12 +1067,12 @@ const Wt = (r) => {
|
|
|
1067
1067
|
onHoverRow: t,
|
|
1068
1068
|
onClickRow: a
|
|
1069
1069
|
}) => {
|
|
1070
|
-
const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts:
|
|
1070
|
+
const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts: b, common: h } = w(), [m, v] = f.useState([
|
|
1071
1071
|
{ field: "priority", sort: "asc" }
|
|
1072
1072
|
]), x = [
|
|
1073
1073
|
{
|
|
1074
1074
|
field: "priority",
|
|
1075
|
-
headerName:
|
|
1075
|
+
headerName: b.table_column_priority,
|
|
1076
1076
|
renderHeader: H,
|
|
1077
1077
|
renderCell: Gt,
|
|
1078
1078
|
sortComparator: $t,
|
|
@@ -1086,7 +1086,7 @@ const Wt = (r) => {
|
|
|
1086
1086
|
},
|
|
1087
1087
|
{
|
|
1088
1088
|
field: "account",
|
|
1089
|
-
headerName:
|
|
1089
|
+
headerName: b.table_column_account,
|
|
1090
1090
|
renderHeader: H,
|
|
1091
1091
|
renderCell: Ht,
|
|
1092
1092
|
sortable: !1,
|
|
@@ -1098,7 +1098,7 @@ const Wt = (r) => {
|
|
|
1098
1098
|
},
|
|
1099
1099
|
{
|
|
1100
1100
|
field: "balance",
|
|
1101
|
-
headerName:
|
|
1101
|
+
headerName: b.table_column_balance,
|
|
1102
1102
|
renderHeader: H,
|
|
1103
1103
|
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: I(_.value, "0,0") }),
|
|
1104
1104
|
sortable: !0,
|
|
@@ -1111,7 +1111,7 @@ const Wt = (r) => {
|
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
field: "interest_rate",
|
|
1114
|
-
headerName:
|
|
1114
|
+
headerName: b.table_column_interest_rate,
|
|
1115
1115
|
renderHeader: H,
|
|
1116
1116
|
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: isNaN(_.value) ? "---" : `${Number(_.value).toFixed(2)}%` }),
|
|
1117
1117
|
sortable: !0,
|
|
@@ -1124,7 +1124,7 @@ const Wt = (r) => {
|
|
|
1124
1124
|
},
|
|
1125
1125
|
{
|
|
1126
1126
|
field: "projected_payoff_date",
|
|
1127
|
-
headerName:
|
|
1127
|
+
headerName: b.table_column_payoff_date,
|
|
1128
1128
|
renderHeader: H,
|
|
1129
1129
|
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: _.value ? J(_.value, Q.MONTH_SHORT_YEAR) : "---" }),
|
|
1130
1130
|
sortable: !0,
|
|
@@ -1137,7 +1137,7 @@ const Wt = (r) => {
|
|
|
1137
1137
|
},
|
|
1138
1138
|
{
|
|
1139
1139
|
field: "monthly_payment",
|
|
1140
|
-
headerName:
|
|
1140
|
+
headerName: b.table_column_amount_due,
|
|
1141
1141
|
renderHeader: H,
|
|
1142
1142
|
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: typeof _.value == "number" ? I(_.value, "0,0") : "---" }),
|
|
1143
1143
|
sortable: !0,
|
|
@@ -1193,7 +1193,7 @@ const Wt = (r) => {
|
|
|
1193
1193
|
disableColumnFilter: !0,
|
|
1194
1194
|
disableColumnMenu: !0,
|
|
1195
1195
|
hideFooter: !0,
|
|
1196
|
-
initialState: { sorting: { sortModel:
|
|
1196
|
+
initialState: { sorting: { sortModel: m } },
|
|
1197
1197
|
onRowClick: (_) => {
|
|
1198
1198
|
a(), d(S.DEBTS_CLICK_TABLE_ROW, { account_guid: _.row.guid });
|
|
1199
1199
|
},
|
|
@@ -1210,7 +1210,7 @@ const Wt = (r) => {
|
|
|
1210
1210
|
onClick: c ? E : void 0
|
|
1211
1211
|
}
|
|
1212
1212
|
},
|
|
1213
|
-
sortModel:
|
|
1213
|
+
sortModel: m,
|
|
1214
1214
|
sortingOrder: ["asc", "desc"],
|
|
1215
1215
|
sx: {
|
|
1216
1216
|
"& .chevron-header": { display: "none" },
|
|
@@ -1274,7 +1274,7 @@ const Wt = (r) => {
|
|
|
1274
1274
|
priority: F.HIGHEST_BALANCE,
|
|
1275
1275
|
text: t.priority_sort_highest_balance
|
|
1276
1276
|
}
|
|
1277
|
-
],
|
|
1277
|
+
], b = (h) => {
|
|
1278
1278
|
s(h), o(S.DEBTS_CLICK_PRIORITY, { debts_priority: h });
|
|
1279
1279
|
};
|
|
1280
1280
|
return /* @__PURE__ */ e(
|
|
@@ -1292,10 +1292,10 @@ const Wt = (r) => {
|
|
|
1292
1292
|
vertical: "top",
|
|
1293
1293
|
horizontal: "left"
|
|
1294
1294
|
},
|
|
1295
|
-
children: /* @__PURE__ */ e(we, { children: c.map(({ priority: h, text:
|
|
1295
|
+
children: /* @__PURE__ */ e(we, { children: c.map(({ priority: h, text: m }) => /* @__PURE__ */ l(
|
|
1296
1296
|
it,
|
|
1297
1297
|
{
|
|
1298
|
-
onClick: () =>
|
|
1298
|
+
onClick: () => b(h),
|
|
1299
1299
|
sx: {
|
|
1300
1300
|
bgcolor: a === h ? "primary.main" : void 0,
|
|
1301
1301
|
color: a === h ? "#fff" : void 0,
|
|
@@ -1311,7 +1311,7 @@ const Wt = (r) => {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
},
|
|
1313
1313
|
children: [
|
|
1314
|
-
/* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children:
|
|
1314
|
+
/* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children: m }),
|
|
1315
1315
|
a === h && /* @__PURE__ */ e(Ce, { color: "inherit", filled: !0, fontSize: "small" })
|
|
1316
1316
|
]
|
|
1317
1317
|
},
|
|
@@ -1322,9 +1322,9 @@ const Wt = (r) => {
|
|
|
1322
1322
|
}), Yt = C(({ disabled: r, isDesktop: n }) => {
|
|
1323
1323
|
const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a } = P(), [s, d] = f.useState(null), c = (v) => {
|
|
1324
1324
|
d(v.currentTarget), o(S.DEBTS_CLICK_PRIORITIZE);
|
|
1325
|
-
},
|
|
1325
|
+
}, b = () => {
|
|
1326
1326
|
d(null);
|
|
1327
|
-
}, h = !!s,
|
|
1327
|
+
}, h = !!s, m = f.useMemo(() => ({
|
|
1328
1328
|
[F.FASTEST_PAYOFF_FIRST]: t.priority_sort_fastest_payoff,
|
|
1329
1329
|
[F.HIGHEST_INTEREST]: t.priority_sort_highest_interest,
|
|
1330
1330
|
[F.HIGHEST_BALANCE]: t.priority_sort_highest_balance,
|
|
@@ -1334,14 +1334,14 @@ const Wt = (r) => {
|
|
|
1334
1334
|
/* @__PURE__ */ e(
|
|
1335
1335
|
jt,
|
|
1336
1336
|
{
|
|
1337
|
-
buttonText:
|
|
1337
|
+
buttonText: m,
|
|
1338
1338
|
disabled: r,
|
|
1339
1339
|
isDesktop: n,
|
|
1340
1340
|
isOpen: h,
|
|
1341
1341
|
onClick: c
|
|
1342
1342
|
}
|
|
1343
1343
|
),
|
|
1344
|
-
/* @__PURE__ */ e(Vt, { buttonEl: s, onClose:
|
|
1344
|
+
/* @__PURE__ */ e(Vt, { buttonEl: s, onClose: b })
|
|
1345
1345
|
] });
|
|
1346
1346
|
}), Kt = C(({ disabled: r, onClick: n }) => {
|
|
1347
1347
|
const { debts: o } = w(), { totalMonthlyPayments: t } = ee(), { monthlyCashFlowProfile: a } = V(), s = t + Number(a?.extra_payment), d = o.paydown_button_long;
|
|
@@ -1360,8 +1360,8 @@ const Wt = (r) => {
|
|
|
1360
1360
|
) });
|
|
1361
1361
|
}), Ut = ({ onBackClick: r, onMenuClick: n, sx: o }) => {
|
|
1362
1362
|
const { isDesktop: t, isMobile: a } = ae(), { connect: s, debts: d } = w(), { onEvent: c } = k(), {
|
|
1363
|
-
config: { show_connections_widget_in_master:
|
|
1364
|
-
} = He(), { isInitialized: h } = ze(), { setSelectedAccount:
|
|
1363
|
+
config: { show_connections_widget_in_master: b }
|
|
1364
|
+
} = He(), { isInitialized: h } = ze(), { setSelectedAccount: m } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
|
|
1365
1365
|
isAccountDataLoaded: $,
|
|
1366
1366
|
loadAccountData: L,
|
|
1367
1367
|
detailedAccounts: N,
|
|
@@ -1382,7 +1382,7 @@ const Wt = (r) => {
|
|
|
1382
1382
|
}, [h]);
|
|
1383
1383
|
const pe = (O) => Se(O), ue = () => {
|
|
1384
1384
|
const O = A.find((oe) => oe.guid === U), he = q.find((oe) => oe.guid === U);
|
|
1385
|
-
O &&
|
|
1385
|
+
O && m(O), he && x(he), D(!0);
|
|
1386
1386
|
}, Te = () => c(S.DEBTS_CLICK_FILTER), Ee = () => {
|
|
1387
1387
|
ce(!0), c(S.DEBTS_CLICK_SNOWBALL_CTA);
|
|
1388
1388
|
}, Ie = () => {
|
|
@@ -1392,7 +1392,7 @@ const Wt = (r) => {
|
|
|
1392
1392
|
return /* @__PURE__ */ e(ct, {});
|
|
1393
1393
|
const Me = N.length === 0, ke = A.length === 0, Ne = p.length === 0, X = Me || ke || Ne, Z = Oe(
|
|
1394
1394
|
d,
|
|
1395
|
-
|
|
1395
|
+
b,
|
|
1396
1396
|
() => de(!0)
|
|
1397
1397
|
);
|
|
1398
1398
|
return /* @__PURE__ */ l(
|
|
@@ -1448,7 +1448,7 @@ const Wt = (r) => {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
),
|
|
1450
1450
|
/* @__PURE__ */ e(
|
|
1451
|
-
|
|
1451
|
+
bt,
|
|
1452
1452
|
{
|
|
1453
1453
|
debts: q,
|
|
1454
1454
|
onClickCta: Ee,
|