@mx-cartographer/experiences 4.1.2-alpha.mega24 → 4.1.2-alpha.mega26
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 +1 -1
- package/dist/common/api/UserApi.d.ts +1 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/stores/UserStore.d.ts +3 -1
- package/dist/common/types/GlobalCopy.d.ts +2 -1
- package/dist/common/types/Help.d.ts +4 -1
- package/dist/common/types/User.d.ts +10 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/SettingsCopy.d.ts +20 -0
- package/dist/common/types/localization/index.d.ts +1 -0
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/{Help.d.ts → HelpWidget.d.ts} +2 -0
- package/dist/help/index.d.ts +1 -1
- package/dist/help/store/HelpStore.d.ts +1 -1
- package/dist/help/utils/index.d.ts +1 -5
- package/dist/index.es.js +384 -367
- package/dist/index.es.js.map +1 -1
- package/dist/settings/components/profile/ProfileDetails.d.ts +4 -0
- package/package.json +8 -8
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as l, Fragment as
|
|
1
|
+
import { jsx as t, jsxs as l, Fragment as W } from "react/jsx-runtime";
|
|
2
2
|
import g, { useMemo as zo, useRef as ri, useEffect as xA, useState as EA, createContext as Ko, useContext as qo } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import N from "@mui/material/Box";
|
|
@@ -18,7 +18,7 @@ import Fe from "@mui/material/IconButton";
|
|
|
18
18
|
import Qn from "@mui/material/FormControlLabel";
|
|
19
19
|
import j from "@mui/material/ListItem";
|
|
20
20
|
import ae from "@mui/material/ListItemButton";
|
|
21
|
-
import
|
|
21
|
+
import Z from "@mui/material/ListItemText";
|
|
22
22
|
import Yo from "@mui/material/Popover";
|
|
23
23
|
import y from "@mui/material/Stack";
|
|
24
24
|
import zt from "@mui/material/Checkbox";
|
|
@@ -80,7 +80,7 @@ import vA from "@mui/material/Avatar";
|
|
|
80
80
|
import be from "@mui/material/ListItemAvatar";
|
|
81
81
|
import nA from "@mui/material/ListItemIcon";
|
|
82
82
|
import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, CheckCircle as _s, Icon as Wa, ExpandLess as Ns, ExpandMore as Ps, AccountBalance as Ms, AddBox as li } from "@mxenabled/mx-icons";
|
|
83
|
-
import { makeAutoObservable as De, runInAction as
|
|
83
|
+
import { makeAutoObservable as De, runInAction as Q, reaction as Rs, observable as Hs } from "mobx";
|
|
84
84
|
import { differenceInDays as Bs } from "date-fns/differenceInDays";
|
|
85
85
|
import pn from "@mui/icons-material/ChevronRight";
|
|
86
86
|
import oa from "@mui/icons-material/ExpandMore";
|
|
@@ -214,6 +214,7 @@ const Tc = async (e, A, n = "1.0.0", a = "Experiences") => {
|
|
|
214
214
|
TRANSACTION_RULES: "transaction_rules",
|
|
215
215
|
TRANSACTIONS: "transactions",
|
|
216
216
|
USER: "user",
|
|
217
|
+
USER_FEATURES: "user_features",
|
|
217
218
|
USER_PROFILES: "user_profiles",
|
|
218
219
|
WIDGET_URLS: "widget_urls"
|
|
219
220
|
}, G = {
|
|
@@ -285,7 +286,7 @@ const Tc = async (e, A, n = "1.0.0", a = "Experiences") => {
|
|
|
285
286
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
|
286
287
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
|
287
288
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
|
288
|
-
}, Ic = "do", u8 = "MMM do, yyyy",
|
|
289
|
+
}, Ic = "do", u8 = "MMM do, yyyy", $ = {
|
|
289
290
|
TIME_STAMP_HOUR_MINUTE: {
|
|
290
291
|
hour: "numeric",
|
|
291
292
|
minute: "numeric"
|
|
@@ -342,7 +343,7 @@ const Tc = async (e, A, n = "1.0.0", a = "Experiences") => {
|
|
|
342
343
|
year: "numeric"
|
|
343
344
|
}
|
|
344
345
|
}, ne = (e, A) => Wo(new Date(e), Object.assign(A), { locale: ZA() });
|
|
345
|
-
var
|
|
346
|
+
var Y = /* @__PURE__ */ ((e) => (e[e.ANY = 0] = "ANY", e[e.CHECKING = 1] = "CHECKING", e[e.SAVINGS = 2] = "SAVINGS", e[e.LOAN = 3] = "LOAN", e[e.CREDIT_CARD = 4] = "CREDIT_CARD", e[e.INVESTMENT = 5] = "INVESTMENT", e[e.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", e[e.MORTGAGE = 7] = "MORTGAGE", e[e.PROPERTY = 8] = "PROPERTY", e[e.CASH = 9] = "CASH", e[e.INSURANCE = 10] = "INSURANCE", e[e.PREPAID = 11] = "PREPAID", e[e.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", e[e.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", e))(Y || {}), Lc = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.MONEY_MARKET = 1] = "MONEY_MARKET", e[e.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", e[e.AUTO = 3] = "AUTO", e[e.STUDENT = 4] = "STUDENT", e[e.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", e[e.PERSONAL = 6] = "PERSONAL", e[e.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", e[e.HOME_EQUITY = 8] = "HOME_EQUITY", e[e.PLAN_401_K = 9] = "PLAN_401_K", e[e.PLAN_403_B = 10] = "PLAN_403_B", e[e.PLAN_529 = 11] = "PLAN_529", e[e.IRA = 12] = "IRA", e[e.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", e[e.ROTH_IRA = 14] = "ROTH_IRA", e[e.TAXABLE = 15] = "TAXABLE", e[e.NON_TAXABLE = 16] = "NON_TAXABLE", e[e.BROKERAGE = 17] = "BROKERAGE", e[e.TRUST = 18] = "TRUST", e[e.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", e[e.PLAN_457 = 20] = "PLAN_457", e[e.PENSION = 21] = "PENSION", e[e.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", e[e.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", e[e.SIMPLE_IRA = 24] = "SIMPLE_IRA", e[e.BOAT = 25] = "BOAT", e[e.POWERSPORTS = 26] = "POWERSPORTS", e[e.RV = 27] = "RV", e[e.HELOC = 28] = "HELOC", e[e.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", e[e.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", e[e.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", e[e.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", e[e.DISABILITY = 33] = "DISABILITY", e[e.HEALTH = 34] = "HEALTH", e[e.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", e[e.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", e[e.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", e[e.TERM_LIFE = 38] = "TERM_LIFE", e[e.WHOLE_LIFE = 39] = "WHOLE_LIFE", e[e.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", e[e.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", e[e.HSA = 42] = "HSA", e[e.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", e[e.INDIVIDUAL = 44] = "INDIVIDUAL", e[e.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", e[e.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", e[e.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", e[e.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", e[e.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", e[e.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", e[e.PLAN_401_A = 51] = "PLAN_401_A", e[e.SARSEP_IRA = 52] = "SARSEP_IRA", e[e.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", e[e.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", e[e.SEPP_IRA = 55] = "SEPP_IRA", e[e.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", e[e.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", e[e.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", e[e.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", e[e.COVERDELL = 60] = "COVERDELL", e[e.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", e[e.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", e[e.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", e[e.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", e[e.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", e[e.CUSTODIAL = 66] = "CUSTODIAL", e[e.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", e[e.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", e[e.EDUCATIONAL = 69] = "EDUCATIONAL", e[e.ESTATE = 70] = "ESTATE", e[e.EXECUTOR = 71] = "EXECUTOR", e[e.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", e[e.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", e[e.HRA = 74] = "HRA", e[e.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", e[e.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", e[e.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", e[e.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", e[e.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", e[e.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", e[e.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", e[e.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", e[e.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", e[e.LIVING_TRUST = 84] = "LIVING_TRUST", e[e.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", e[e.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", e[e.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", e[e.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", e[e.PARTNERSHIP = 89] = "PARTNERSHIP", e[e.PLAN_409_A = 90] = "PLAN_409_A", e[e.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", e[e.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", e[e.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", e[e.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", e[e.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", e[e.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", e[e.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", e[e.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", e[e.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", e[e.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", e[e.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", e[e.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", e[e.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", e[e.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", e[e.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", e[e.HSA_SAVINGS = 106] = "HSA_SAVINGS", e[e.HSA_CHECKING = 107] = "HSA_CHECKING", e))(Lc || {}), yi = /* @__PURE__ */ ((e) => (e[e.REAL_ESTATE = 0] = "REAL_ESTATE", e[e.VEHICLE = 1] = "VEHICLE", e[e.ART = 2] = "ART", e[e.JEWELRY = 3] = "JEWELRY", e[e.FURNITURE = 4] = "FURNITURE", e[e.APPLIANCES = 5] = "APPLIANCES", e[e.COMPUTER = 6] = "COMPUTER", e[e.ELECTRONICS = 7] = "ELECTRONICS", e[e.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", e[e.MISCELLANEOUS = 9] = "MISCELLANEOUS", e))(yi || {}), je = /* @__PURE__ */ ((e) => (e[e.CREATED = 0] = "CREATED", e[e.PREVENTED = 1] = "PREVENTED", e[e.DENIED = 2] = "DENIED", e[e.CHALLENGED = 3] = "CHALLENGED", e[e.REJECTED = 4] = "REJECTED", e[e.LOCKED = 5] = "LOCKED", e[e.CONNECTED = 6] = "CONNECTED", e[e.IMPEDED = 7] = "IMPEDED", e[e.RECONNECTED = 8] = "RECONNECTED", e[e.DEGRADED = 9] = "DEGRADED", e[e.DISCONNECTED = 10] = "DISCONNECTED", e[e.DISCONTINUED = 11] = "DISCONTINUED", e[e.CLOSED = 12] = "CLOSED", e[e.DELAYED = 13] = "DELAYED", e[e.FAILED = 14] = "FAILED", e[e.UPDATED = 15] = "UPDATED", e[e.DISABLED = 16] = "DISABLED", e[e.IMPORTED = 17] = "IMPORTED", e[e.RESUMED = 18] = "RESUMED", e[e.EXPIRED = 19] = "EXPIRED", e[e.IMPAIRED = 20] = "IMPAIRED", e[e.PENDING = 21] = "PENDING", e))(je || {});
|
|
346
347
|
const Dc = [
|
|
347
348
|
0,
|
|
348
349
|
15,
|
|
@@ -443,28 +444,28 @@ const h8 = {
|
|
|
443
444
|
8: "sports_baseball",
|
|
444
445
|
9: "monetization_on"
|
|
445
446
|
}, Ca = [
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
447
|
+
Y.ANY,
|
|
448
|
+
Y.CASH,
|
|
449
|
+
Y.CHECKING,
|
|
450
|
+
Y.DIGITAL_WALLET,
|
|
451
|
+
Y.PREPAID,
|
|
452
|
+
Y.SAVINGS
|
|
452
453
|
], pa = [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
454
|
+
Y.CHECKING_LINE_OF_CREDIT,
|
|
455
|
+
Y.CREDIT_CARD,
|
|
456
|
+
Y.LINE_OF_CREDIT,
|
|
457
|
+
Y.LOAN,
|
|
458
|
+
Y.MORTGAGE
|
|
458
459
|
], fa = [
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
460
|
+
Y.ANY,
|
|
461
|
+
Y.CASH,
|
|
462
|
+
Y.CHECKING,
|
|
463
|
+
Y.CHECKING_LINE_OF_CREDIT,
|
|
464
|
+
Y.CREDIT_CARD,
|
|
465
|
+
Y.DIGITAL_WALLET,
|
|
466
|
+
Y.LINE_OF_CREDIT,
|
|
467
|
+
Y.PREPAID,
|
|
468
|
+
Y.SAVINGS
|
|
468
469
|
], b = {
|
|
469
470
|
// Top-level categories
|
|
470
471
|
AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
|
|
@@ -942,7 +943,7 @@ const R = (e, A, n) => {
|
|
|
942
943
|
}, jc = (e) => Kt(e, 1), Ht = (e) => {
|
|
943
944
|
const A = Le(e);
|
|
944
945
|
return new Date(A.getUTCFullYear(), A.getUTCMonth(), A.getUTCDate());
|
|
945
|
-
}, wn = (e) => ne(Le(e),
|
|
946
|
+
}, wn = (e) => ne(Le(e), $.DAY_OF_WEEK_MONTH_DAY), Di = (e) => e ? ne(Le(e), $.MONTH_YEAR) : "";
|
|
946
947
|
class Uc {
|
|
947
948
|
fetchInstance;
|
|
948
949
|
constructor(A, n) {
|
|
@@ -1052,6 +1053,7 @@ class or {
|
|
|
1052
1053
|
constructor(A, n) {
|
|
1053
1054
|
this.fetchInstance = new Ye(A, n);
|
|
1054
1055
|
}
|
|
1056
|
+
getUserFeatures = async () => this.fetchInstance.get(M.USER_FEATURES).then((A) => A.user_features).catch((A) => A);
|
|
1055
1057
|
updateUser = async (A) => this.fetchInstance.put(M.USER, A).then((n) => n.user);
|
|
1056
1058
|
updateUserProfile = async (A) => this.fetchInstance.put(`${M.USER_PROFILES}/${A.guid}`, A).then((n) => n.user_profile);
|
|
1057
1059
|
}
|
|
@@ -1199,7 +1201,7 @@ const Bn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}
|
|
|
1199
1201
|
justifyContent: "left"
|
|
1200
1202
|
},
|
|
1201
1203
|
children: /* @__PURE__ */ t(
|
|
1202
|
-
|
|
1204
|
+
Z,
|
|
1203
1205
|
{
|
|
1204
1206
|
primary: E,
|
|
1205
1207
|
primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
|
|
@@ -1624,7 +1626,7 @@ const Wc = (e, A) => {
|
|
|
1624
1626
|
}), rl = ({ copy: e, date: A, onNextClick: n, onPreviousClick: a }) => {
|
|
1625
1627
|
const r = qe(), i = il(r);
|
|
1626
1628
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-calendar-header ${i}`, children: [
|
|
1627
|
-
/* @__PURE__ */ t(Ut, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ne(A,
|
|
1629
|
+
/* @__PURE__ */ t(Ut, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ne(A, $.MONTH_YEAR) }),
|
|
1628
1630
|
/* @__PURE__ */ l("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
1629
1631
|
/* @__PURE__ */ t(oe, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(es, {}) }),
|
|
1630
1632
|
/* @__PURE__ */ t(oe, { "aria-label": e.nextAria, onClick: n, children: /* @__PURE__ */ t(As, {}) })
|
|
@@ -1876,7 +1878,7 @@ const ll = ({
|
|
|
1876
1878
|
] });
|
|
1877
1879
|
}, Cl = (e) => {
|
|
1878
1880
|
const A = cA(), n = e.showLabel, a = e.style, r = Number(e.x), i = Number(e.y), o = e.handlers?.onMarkClick, s = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave;
|
|
1879
|
-
return /* @__PURE__ */ l(
|
|
1881
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
1880
1882
|
n && /* @__PURE__ */ t(
|
|
1881
1883
|
"text",
|
|
1882
1884
|
{
|
|
@@ -1914,7 +1916,7 @@ const ll = ({
|
|
|
1914
1916
|
}
|
|
1915
1917
|
)
|
|
1916
1918
|
] });
|
|
1917
|
-
}, pl = (e) => /* @__PURE__ */ l(
|
|
1919
|
+
}, pl = (e) => /* @__PURE__ */ l(W, { children: [
|
|
1918
1920
|
/* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
|
|
1919
1921
|
/* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
|
|
1920
1922
|
"path",
|
|
@@ -2124,7 +2126,7 @@ const ll = ({
|
|
|
2124
2126
|
if (!A)
|
|
2125
2127
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
2126
2128
|
return A;
|
|
2127
|
-
}, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore, Ea = () => Ge("useCashflowStore").globalStore.cashflowStore, _e = () => Ge("useCategoryStore").globalStore.categoryStore, Ri = () => Ge("useConnectStore").globalStore.connectStore, Hi = () => Ge("useDebtsStore").globalStore.debtsStore, Sn = () => Ge("useGlobalStore").globalStore, ye = () => Ge("useGlobalUiStore").globalStore.globalUiStore, L = () => Ge("globalCopyStore").globalStore.copyStore.copy, Ue = () => Ge("useGoalStore").globalStore.goalStore, yl = () => Ge("useHelpStore").globalStore.helpStore, El = () => Ge("useMerchantStore").globalStore.merchantStore, bl = () => Ge("useNetWorthStore").globalStore.netWorthStore, Bi = () => Ge("useNotificationStore").globalStore.notificationStore, ke = () => Ge("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => Ge("useTransactionStore").globalStore.transactionStore, St = () => Ge("useUserStore").globalStore.userStore,
|
|
2129
|
+
}, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore, Ea = () => Ge("useCashflowStore").globalStore.cashflowStore, _e = () => Ge("useCategoryStore").globalStore.categoryStore, Ri = () => Ge("useConnectStore").globalStore.connectStore, Hi = () => Ge("useDebtsStore").globalStore.debtsStore, Sn = () => Ge("useGlobalStore").globalStore, ye = () => Ge("useGlobalUiStore").globalStore.globalUiStore, L = () => Ge("globalCopyStore").globalStore.copyStore.copy, Ue = () => Ge("useGoalStore").globalStore.goalStore, yl = () => Ge("useHelpStore").globalStore.helpStore, El = () => Ge("useMerchantStore").globalStore.merchantStore, bl = () => Ge("useNetWorthStore").globalStore.netWorthStore, Bi = () => Ge("useNotificationStore").globalStore.notificationStore, ke = () => Ge("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => Ge("useTransactionStore").globalStore.transactionStore, St = () => Ge("useUserStore").globalStore.userStore, ee = () => ({ onEvent: Ge().onEvent }), w8 = () => ({ onPageView: Ge().onPageView }), wl = (e = "useWidgetContainerContext") => {
|
|
2128
2130
|
const A = g.useContext(Pi);
|
|
2129
2131
|
if (!A)
|
|
2130
2132
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -2218,7 +2220,7 @@ const ll = ({
|
|
|
2218
2220
|
const i = GA(), o = a.data[n], s = r[n];
|
|
2219
2221
|
return o === void 0 || !s ? null : /* @__PURE__ */ t(Cn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Cs, { children: /* @__PURE__ */ l(yA, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2220
2222
|
/* @__PURE__ */ t(zi, { categoryGuid: e, topLevelCategoryGuid: A }),
|
|
2221
|
-
/* @__PURE__ */ t(p, { color: i.palette.text.secondary, variant: "Small", children: ne(s,
|
|
2223
|
+
/* @__PURE__ */ t(p, { color: i.palette.text.secondary, variant: "Small", children: ne(s, $.MONTH_SHORT_YEAR) }),
|
|
2222
2224
|
/* @__PURE__ */ t(Ie, { amount: String(o), bold: !0, formatString: "0,0", variant: "Body" })
|
|
2223
2225
|
] }) }) });
|
|
2224
2226
|
}, Ll = ({
|
|
@@ -2429,7 +2431,7 @@ const ll = ({
|
|
|
2429
2431
|
{
|
|
2430
2432
|
data: x,
|
|
2431
2433
|
scaleType: "time",
|
|
2432
|
-
valueFormatter: (U) => ne(U,
|
|
2434
|
+
valueFormatter: (U) => ne(U, $.MONTH_SHORT_YEAR),
|
|
2433
2435
|
tickNumber: O
|
|
2434
2436
|
// How many ticks to show on the x-axis
|
|
2435
2437
|
}
|
|
@@ -2460,7 +2462,7 @@ const ll = ({
|
|
|
2460
2462
|
cursorPosition: S,
|
|
2461
2463
|
hoveredAreaData: E.map((U) => ({
|
|
2462
2464
|
...U,
|
|
2463
|
-
x: ne(U.x,
|
|
2465
|
+
x: ne(U.x, $.MONTH_SHORT_YEAR)
|
|
2464
2466
|
}))
|
|
2465
2467
|
}
|
|
2466
2468
|
)
|
|
@@ -2732,9 +2734,9 @@ const ll = ({
|
|
|
2732
2734
|
children: [
|
|
2733
2735
|
o === "readonly" && /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
2734
2736
|
/* @__PURE__ */ t(B, { name: "calendar_month", size: 24 }),
|
|
2735
|
-
/* @__PURE__ */ t(p, { bold: !0, children: ne(v[0],
|
|
2737
|
+
/* @__PURE__ */ t(p, { bold: !0, children: ne(v[0], $.MONTH_DAY) }),
|
|
2736
2738
|
/* @__PURE__ */ t(B, { name: "remove" }),
|
|
2737
|
-
/* @__PURE__ */ t(p, { bold: !0, children: ne(v[1],
|
|
2739
|
+
/* @__PURE__ */ t(p, { bold: !0, children: ne(v[1], $.MONTH_DAY_YEAR) })
|
|
2738
2740
|
] }),
|
|
2739
2741
|
o !== "readonly" && o !== "timeframebuttons" && o !== "timeframetabs" && /* @__PURE__ */ l(
|
|
2740
2742
|
Es,
|
|
@@ -2769,11 +2771,11 @@ const ll = ({
|
|
|
2769
2771
|
p: u ? 0 : 8,
|
|
2770
2772
|
width: d ? 280 : 232
|
|
2771
2773
|
},
|
|
2772
|
-
children: w ? ne(h[0],
|
|
2773
|
-
ne(h[0],
|
|
2774
|
+
children: w ? ne(h[0], $.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
|
|
2775
|
+
ne(h[0], $.MONTH_DAY_YEAR),
|
|
2774
2776
|
" -",
|
|
2775
2777
|
" ",
|
|
2776
|
-
ne(h[1],
|
|
2778
|
+
ne(h[1], $.MONTH_DAY_YEAR)
|
|
2777
2779
|
] })
|
|
2778
2780
|
}
|
|
2779
2781
|
),
|
|
@@ -3099,7 +3101,7 @@ const lt = ({
|
|
|
3099
3101
|
sx: h = {},
|
|
3100
3102
|
title: m = ""
|
|
3101
3103
|
}) => {
|
|
3102
|
-
const [C, { height: f, width: v }] = qi(), { onEvent: E } =
|
|
3104
|
+
const [C, { height: f, width: v }] = qi(), { onEvent: E } = ee(), { isDesktop: I, isMobile: S, isTablet: w } = Be(), { displayedDateRange: D, selectedAccountGuids: _, setSelectedAccountGuids: O } = ye(), { common: x } = L(), z = () => {
|
|
3103
3105
|
c && (c(), E(G.WIDGET_BACK_CLICK));
|
|
3104
3106
|
}, K = {
|
|
3105
3107
|
accountFilterOptionsCopy: {
|
|
@@ -3544,10 +3546,10 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3544
3546
|
]
|
|
3545
3547
|
}
|
|
3546
3548
|
), dn = ({ iconName: e, label: A, onClick: n, value: a }) => {
|
|
3547
|
-
const r = /* @__PURE__ */ l(
|
|
3549
|
+
const r = /* @__PURE__ */ l(W, { children: [
|
|
3548
3550
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: e, sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
3549
3551
|
/* @__PURE__ */ t(
|
|
3550
|
-
|
|
3552
|
+
Z,
|
|
3551
3553
|
{
|
|
3552
3554
|
primary: A,
|
|
3553
3555
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -3612,7 +3614,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3612
3614
|
return /* @__PURE__ */ l(j, { children: [
|
|
3613
3615
|
/* @__PURE__ */ l(ae, { onClick: () => h(!A), children: [
|
|
3614
3616
|
/* @__PURE__ */ t(
|
|
3615
|
-
|
|
3617
|
+
Z,
|
|
3616
3618
|
{
|
|
3617
3619
|
primary: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
3618
3620
|
/* @__PURE__ */ t(p, { variant: "Body", children: o }),
|
|
@@ -3652,7 +3654,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3652
3654
|
onClick: n,
|
|
3653
3655
|
sx: a = {}
|
|
3654
3656
|
}) => {
|
|
3655
|
-
const { onEvent: r } =
|
|
3657
|
+
const { onEvent: r } = ee();
|
|
3656
3658
|
return n ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
|
3657
3659
|
ae,
|
|
3658
3660
|
{
|
|
@@ -3680,14 +3682,14 @@ class zl {
|
|
|
3680
3682
|
De(this);
|
|
3681
3683
|
}
|
|
3682
3684
|
initialize = async (A, n) => {
|
|
3683
|
-
this.api = new cn(A, n), await this.getCopy(this.featureNamespace),
|
|
3685
|
+
this.api = new cn(A, n), await this.getCopy(this.featureNamespace), Q(() => {
|
|
3684
3686
|
this.isInitialized = !0;
|
|
3685
3687
|
});
|
|
3686
3688
|
};
|
|
3687
3689
|
getCopy = async (A, n = "") => {
|
|
3688
3690
|
try {
|
|
3689
3691
|
const a = await this.api.getGlobalCopy(A, n);
|
|
3690
|
-
|
|
3692
|
+
Q(() => {
|
|
3691
3693
|
this.copy = a[A];
|
|
3692
3694
|
});
|
|
3693
3695
|
} catch (a) {
|
|
@@ -3720,7 +3722,7 @@ class Kl {
|
|
|
3720
3722
|
loadAppData = async () => {
|
|
3721
3723
|
try {
|
|
3722
3724
|
const A = await this.api.getAppData();
|
|
3723
|
-
|
|
3725
|
+
Q(() => {
|
|
3724
3726
|
this.appData = A;
|
|
3725
3727
|
});
|
|
3726
3728
|
} catch (A) {
|
|
@@ -3741,7 +3743,7 @@ class ql {
|
|
|
3741
3743
|
};
|
|
3742
3744
|
loadBeats = async () => {
|
|
3743
3745
|
const A = await this.api.getBeats();
|
|
3744
|
-
|
|
3746
|
+
Q(() => {
|
|
3745
3747
|
this.beats = A;
|
|
3746
3748
|
});
|
|
3747
3749
|
};
|
|
@@ -3871,7 +3873,7 @@ class Xl {
|
|
|
3871
3873
|
addBudget = async (A, n, a = null) => {
|
|
3872
3874
|
try {
|
|
3873
3875
|
const r = await this.api.addBudget(A, n, a);
|
|
3874
|
-
|
|
3876
|
+
Q(() => {
|
|
3875
3877
|
this.budgets.push(r);
|
|
3876
3878
|
});
|
|
3877
3879
|
} catch (r) {
|
|
@@ -3880,7 +3882,7 @@ class Xl {
|
|
|
3880
3882
|
};
|
|
3881
3883
|
deleteBudget = async (A) => {
|
|
3882
3884
|
try {
|
|
3883
|
-
await this.api.deleteBudget(A),
|
|
3885
|
+
await this.api.deleteBudget(A), Q(() => {
|
|
3884
3886
|
const n = this.budgets.findIndex((a) => a.guid === A);
|
|
3885
3887
|
n >= 0 && this.budgets.splice(n, 1);
|
|
3886
3888
|
});
|
|
@@ -3891,7 +3893,7 @@ class Xl {
|
|
|
3891
3893
|
loadBudgets = async () => {
|
|
3892
3894
|
try {
|
|
3893
3895
|
const A = await this.api.getBudgets();
|
|
3894
|
-
|
|
3896
|
+
Q(() => {
|
|
3895
3897
|
this.budgets = A;
|
|
3896
3898
|
});
|
|
3897
3899
|
} catch (A) {
|
|
@@ -3922,7 +3924,7 @@ class Xl {
|
|
|
3922
3924
|
updateBudget = async (A) => {
|
|
3923
3925
|
try {
|
|
3924
3926
|
const n = await this.api.updateBudget(A);
|
|
3925
|
-
|
|
3927
|
+
Q(() => {
|
|
3926
3928
|
const a = this.budgets.findIndex((r) => r.guid === A.guid);
|
|
3927
3929
|
a >= 0 && (this.budgets[a] = n);
|
|
3928
3930
|
});
|
|
@@ -3937,7 +3939,7 @@ const Tt = () => {
|
|
|
3937
3939
|
return Ea().uiStore;
|
|
3938
3940
|
}, jl = ({ remaining: e }) => {
|
|
3939
3941
|
const { cashflow: A } = L();
|
|
3940
|
-
return /* @__PURE__ */ l(
|
|
3942
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
3941
3943
|
/* @__PURE__ */ t(
|
|
3942
3944
|
N,
|
|
3943
3945
|
{
|
|
@@ -4007,7 +4009,7 @@ const Tt = () => {
|
|
|
4007
4009
|
/* @__PURE__ */ t(un, { body: o.tooltip_body, title: o.tooltip_title })
|
|
4008
4010
|
] })
|
|
4009
4011
|
] }),
|
|
4010
|
-
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${A.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(
|
|
4012
|
+
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${A.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(W, { children: [
|
|
4011
4013
|
/* @__PURE__ */ t(p, { variant: "H2", children: P(o.days, c) }),
|
|
4012
4014
|
/* @__PURE__ */ t(Me, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
|
|
4013
4015
|
] }) : /* @__PURE__ */ t(
|
|
@@ -4549,7 +4551,7 @@ const Yl = [
|
|
|
4549
4551
|
const d = s.tags.some(
|
|
4550
4552
|
(h) => dA(o, A.find((m) => m.guid === h)?.name)
|
|
4551
4553
|
), u = Le(s.date);
|
|
4552
|
-
return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u,
|
|
4554
|
+
return dA(o, s.payee) || dA(o, s.feed_description) || dA(o, s.category) || dA(o, ne(u, $.MONTH)) || dA(o, ne(u, $.DAY)) || dA(o, ne(u, $.FULL_MONTH_DAY)) || dA(o, ne(u, $.MONTH_DAY_YEAR)) || dA(o, Ve(u, Ic)) || dA(o, s.account) || dA(o, `${s.amount}`) || dA(o, s.memo) || d;
|
|
4553
4555
|
});
|
|
4554
4556
|
}, td = (e, A, n) => [...e].sort((a, r) => {
|
|
4555
4557
|
const i = A, o = (a[i] || "") > (r[i] || "");
|
|
@@ -4559,7 +4561,7 @@ const Yl = [
|
|
|
4559
4561
|
const n = e.toLowerCase().split(" "), a = A?.toString().toLowerCase() ?? "";
|
|
4560
4562
|
return n.every((r) => a.indexOf(r) > -1);
|
|
4561
4563
|
};
|
|
4562
|
-
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}),
|
|
4564
|
+
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}), J = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(J || {}), ea = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(ea || {}), eA = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(eA || {}), AA = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(AA || {}), wa = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(wa || {}), id = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(id || {});
|
|
4563
4565
|
const Gi = {
|
|
4564
4566
|
account_guid: "",
|
|
4565
4567
|
amount: 0,
|
|
@@ -4691,7 +4693,7 @@ class sd {
|
|
|
4691
4693
|
};
|
|
4692
4694
|
addTransaction = async (A) => {
|
|
4693
4695
|
const n = await this.api.addTransaction(A);
|
|
4694
|
-
n &&
|
|
4696
|
+
n && Q(
|
|
4695
4697
|
() => this.transactions = this.augmentTransactions([n, ...this.transactions])
|
|
4696
4698
|
);
|
|
4697
4699
|
};
|
|
@@ -4703,19 +4705,19 @@ class sd {
|
|
|
4703
4705
|
);
|
|
4704
4706
|
loadAssociatedBeats = async (A) => {
|
|
4705
4707
|
const n = A ? ca(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
|
|
4706
|
-
|
|
4708
|
+
Q(() => this.associatedBeats = a);
|
|
4707
4709
|
};
|
|
4708
4710
|
loadTags = async () => {
|
|
4709
4711
|
const A = await this.api.getTags();
|
|
4710
|
-
|
|
4712
|
+
Q(() => this.tags = A);
|
|
4711
4713
|
};
|
|
4712
4714
|
loadTaggings = async () => {
|
|
4713
4715
|
const A = await this.api.getTaggings();
|
|
4714
|
-
|
|
4716
|
+
Q(() => this.taggings = A);
|
|
4715
4717
|
};
|
|
4716
4718
|
loadTransactionRules = async () => {
|
|
4717
4719
|
const A = await this.api.getTransactionRules();
|
|
4718
|
-
|
|
4720
|
+
Q(() => this.transactionRules = A);
|
|
4719
4721
|
};
|
|
4720
4722
|
loadTransactions = async (A = this.cachedStartDate, n = ot()) => {
|
|
4721
4723
|
this.setIsLoading(!0), this.transactions = [];
|
|
@@ -4724,7 +4726,7 @@ class sd {
|
|
|
4724
4726
|
pe(A),
|
|
4725
4727
|
pe(n)
|
|
4726
4728
|
);
|
|
4727
|
-
|
|
4729
|
+
Q(() => {
|
|
4728
4730
|
this.transactions = this.augmentTransactions(a);
|
|
4729
4731
|
});
|
|
4730
4732
|
} catch (a) {
|
|
@@ -4750,7 +4752,7 @@ class sd {
|
|
|
4750
4752
|
const n = this.transactions.findIndex((a) => a.guid === A);
|
|
4751
4753
|
if (n >= 0) {
|
|
4752
4754
|
const a = [...this.transactions];
|
|
4753
|
-
a.splice(n, 1),
|
|
4755
|
+
a.splice(n, 1), Q(() => this.transactions = a);
|
|
4754
4756
|
}
|
|
4755
4757
|
};
|
|
4756
4758
|
setFilter = (A) => {
|
|
@@ -4769,7 +4771,7 @@ class sd {
|
|
|
4769
4771
|
r.push(s);
|
|
4770
4772
|
}
|
|
4771
4773
|
const i = this.transactions.findIndex((o) => o.guid === A.guid);
|
|
4772
|
-
i >= 0 &&
|
|
4774
|
+
i >= 0 && Q(
|
|
4773
4775
|
() => this.transactions = this.augmentTransactions([
|
|
4774
4776
|
...this.transactions.slice(0, i),
|
|
4775
4777
|
a,
|
|
@@ -4787,7 +4789,7 @@ class sd {
|
|
|
4787
4789
|
s >= 0 && a.splice(s, 1);
|
|
4788
4790
|
});
|
|
4789
4791
|
const r = a.findIndex((o) => o.guid === A), i = a[r];
|
|
4790
|
-
i.has_been_split = !1, r >= 0 &&
|
|
4792
|
+
i.has_been_split = !1, r >= 0 && Q(
|
|
4791
4793
|
() => this.transactions = [
|
|
4792
4794
|
...a.slice(0, r),
|
|
4793
4795
|
i,
|
|
@@ -4811,7 +4813,7 @@ class sd {
|
|
|
4811
4813
|
};
|
|
4812
4814
|
updateTransaction = async (A) => {
|
|
4813
4815
|
const n = await this.api.updateTransaction(A), a = this.transactions.findIndex((r) => r.guid === A.guid);
|
|
4814
|
-
a >= 0 &&
|
|
4816
|
+
a >= 0 && Q(
|
|
4815
4817
|
() => this.transactions = this.augmentTransactions([
|
|
4816
4818
|
...this.transactions.slice(0, a),
|
|
4817
4819
|
n,
|
|
@@ -4862,7 +4864,7 @@ const rA = () => {
|
|
|
4862
4864
|
}
|
|
4863
4865
|
) }),
|
|
4864
4866
|
/* @__PURE__ */ t(
|
|
4865
|
-
|
|
4867
|
+
Z,
|
|
4866
4868
|
{
|
|
4867
4869
|
disableTypography: !0,
|
|
4868
4870
|
secondary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -4915,7 +4917,7 @@ const rA = () => {
|
|
|
4915
4917
|
width: o = "100%",
|
|
4916
4918
|
zeroState: s = /* @__PURE__ */ t(md, {})
|
|
4917
4919
|
}) => {
|
|
4918
|
-
const { isLoading: c, sortedTransactions: d } = ge(), { setShowInsights: u, toggleSplit: h } = rA(), { onEvent: m } =
|
|
4920
|
+
const { isLoading: c, sortedTransactions: d } = ge(), { setShowInsights: u, toggleSplit: h } = rA(), { onEvent: m } = ee(), C = (E) => {
|
|
4919
4921
|
const I = d.find((S) => S.guid === E);
|
|
4920
4922
|
if (I?.has_been_split) {
|
|
4921
4923
|
h(I.guid);
|
|
@@ -4997,7 +4999,7 @@ const rA = () => {
|
|
|
4997
4999
|
]
|
|
4998
5000
|
}
|
|
4999
5001
|
);
|
|
5000
|
-
}, Ed = T(yd), bd = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Le(e.row.date),
|
|
5002
|
+
}, Ed = T(yd), bd = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Le(e.row.date), $.MONTH_DAY) }), wd = (e) => {
|
|
5001
5003
|
const A = cA(), { transactions: n } = L(), { is_flagged: a, is_hidden: r, has_been_viewed: i, parent_guid: o } = e.row, c = !i && !!!o;
|
|
5002
5004
|
return /* @__PURE__ */ l(
|
|
5003
5005
|
N,
|
|
@@ -5186,7 +5188,7 @@ const Dd = ({
|
|
|
5186
5188
|
}
|
|
5187
5189
|
);
|
|
5188
5190
|
}, Ia = T(Dd), xd = ({ parentCategory: e }) => {
|
|
5189
|
-
const [A, n] = g.useState(!1), { addCategory: a } = _e(), { categories: r } = L(), { onEvent: i } =
|
|
5191
|
+
const [A, n] = g.useState(!1), { addCategory: a } = _e(), { categories: r } = L(), { onEvent: i } = ee(), { setShouldDisableDrawerScroll: o } = nt(), s = async (u) => {
|
|
5190
5192
|
await a(u.trim(), e.guid), i(mA.ON_SUBCATEGORY_ADDED), n(!1);
|
|
5191
5193
|
}, c = async () => {
|
|
5192
5194
|
i(mA.ON_SUBCATEGORY_ADD_CLICK), o(!0), n(!0);
|
|
@@ -5195,7 +5197,7 @@ const Dd = ({
|
|
|
5195
5197
|
};
|
|
5196
5198
|
return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
5197
5199
|
/* @__PURE__ */ t(ae, { onClick: c, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
|
5198
|
-
|
|
5200
|
+
Z,
|
|
5199
5201
|
{
|
|
5200
5202
|
primary: r.add_subcategory_button,
|
|
5201
5203
|
primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "Body" }
|
|
@@ -5216,7 +5218,7 @@ const Dd = ({
|
|
|
5216
5218
|
subCategory: A,
|
|
5217
5219
|
showRename: n
|
|
5218
5220
|
}) => {
|
|
5219
|
-
const { updateCategory: a } = _e(), { onEvent: r } =
|
|
5221
|
+
const { updateCategory: a } = _e(), { onEvent: r } = ee(), i = async (s) => {
|
|
5220
5222
|
await a({ ...A, name: s }), r(mA.ON_SUBCATEGORY_SAVED), e(!1);
|
|
5221
5223
|
}, o = () => {
|
|
5222
5224
|
e(!1), r(mA.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
|
@@ -5237,7 +5239,7 @@ const Dd = ({
|
|
|
5237
5239
|
setShowDelete: n,
|
|
5238
5240
|
subCategory: a
|
|
5239
5241
|
}) => {
|
|
5240
|
-
const { onEvent: r } =
|
|
5242
|
+
const { onEvent: r } = ee(), { removeCategory: i } = _e(), o = () => {
|
|
5241
5243
|
n(!1), r(mA.ON_SUBCATEGORY_DELETE_CLICK);
|
|
5242
5244
|
}, s = async () => {
|
|
5243
5245
|
r(mA.ON_SUBCATEGORY_DELETED), await i(a.guid), n(!1);
|
|
@@ -5261,7 +5263,7 @@ const Dd = ({
|
|
|
5261
5263
|
showSelected: o,
|
|
5262
5264
|
unselectable: s,
|
|
5263
5265
|
unselectableText: c
|
|
5264
|
-
} = nt(), { categories: d } = L(), { onEvent: u } =
|
|
5266
|
+
} = nt(), { categories: d } = L(), { onEvent: u } = ee(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), v = !!A.revision, E = A.guid === a, I = !s.some((w) => w === A.guid);
|
|
5265
5267
|
return /* @__PURE__ */ l(
|
|
5266
5268
|
j,
|
|
5267
5269
|
{
|
|
@@ -5281,7 +5283,7 @@ const Dd = ({
|
|
|
5281
5283
|
sx: { height: 44 },
|
|
5282
5284
|
children: [
|
|
5283
5285
|
/* @__PURE__ */ t(
|
|
5284
|
-
|
|
5286
|
+
Z,
|
|
5285
5287
|
{
|
|
5286
5288
|
primary: A.name,
|
|
5287
5289
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
|
@@ -5362,7 +5364,7 @@ const Dd = ({
|
|
|
5362
5364
|
}
|
|
5363
5365
|
);
|
|
5364
5366
|
}, zd = T(Bd), Kd = ({ category: e, subCategories: A }) => {
|
|
5365
|
-
const { expandedGuid: n, searchValue: a, setExpandedGuid: r } = nt(), { onEvent: i } =
|
|
5367
|
+
const { expandedGuid: n, searchValue: a, setExpandedGuid: r } = nt(), { onEvent: i } = ee(), o = e.guid === n, s = () => {
|
|
5366
5368
|
const c = e.guid !== n ? e.guid : null;
|
|
5367
5369
|
r(c), i(c ? mA.ON_CATEGORY_EXPANDED : mA.ON_CATEGORY_COLLAPSED);
|
|
5368
5370
|
};
|
|
@@ -5378,7 +5380,7 @@ const Dd = ({
|
|
|
5378
5380
|
children: [
|
|
5379
5381
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(sA, { categoryGuid: e.guid }) }),
|
|
5380
5382
|
/* @__PURE__ */ t(
|
|
5381
|
-
|
|
5383
|
+
Z,
|
|
5382
5384
|
{
|
|
5383
5385
|
primary: e.name,
|
|
5384
5386
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
|
@@ -5527,7 +5529,7 @@ const Dd = ({
|
|
|
5527
5529
|
A.push({
|
|
5528
5530
|
amount: o,
|
|
5529
5531
|
isoDate: Ve(r, "yyyy-MM-dd"),
|
|
5530
|
-
label: ne(r,
|
|
5532
|
+
label: ne(r, $.MONTH_YEAR)
|
|
5531
5533
|
});
|
|
5532
5534
|
}
|
|
5533
5535
|
return A;
|
|
@@ -5598,7 +5600,7 @@ class Yd {
|
|
|
5598
5600
|
loadCategories = async () => {
|
|
5599
5601
|
try {
|
|
5600
5602
|
const A = await this.api.getCategories(), { default_categories: n } = this.globalStore.copyStore.copy.categories;
|
|
5601
|
-
|
|
5603
|
+
Q(() => {
|
|
5602
5604
|
this.categories = A.map((a) => ({
|
|
5603
5605
|
...a,
|
|
5604
5606
|
name: n[a.guid] ? n[a.guid].replace(/&/g, "&") : a.name
|
|
@@ -5616,7 +5618,7 @@ class Yd {
|
|
|
5616
5618
|
pe(a),
|
|
5617
5619
|
A
|
|
5618
5620
|
);
|
|
5619
|
-
|
|
5621
|
+
Q(() => {
|
|
5620
5622
|
this.dateRangeCategoryTotals = r, this.setIsLoadingCategoryTotals(!1);
|
|
5621
5623
|
});
|
|
5622
5624
|
} catch (r) {
|
|
@@ -5627,7 +5629,7 @@ class Yd {
|
|
|
5627
5629
|
const r = pe(xe(n ?? bA(/* @__PURE__ */ new Date(), 11))), i = pe(Re(a ?? /* @__PURE__ */ new Date()));
|
|
5628
5630
|
try {
|
|
5629
5631
|
const o = await this.api.getMonthlyCategoryTotals(r, i, A);
|
|
5630
|
-
|
|
5632
|
+
Q(() => {
|
|
5631
5633
|
this.monthlyCategoryTotals = o;
|
|
5632
5634
|
});
|
|
5633
5635
|
} catch (o) {
|
|
@@ -5646,7 +5648,7 @@ class Yd {
|
|
|
5646
5648
|
pe(Re(a)),
|
|
5647
5649
|
A
|
|
5648
5650
|
);
|
|
5649
|
-
|
|
5651
|
+
Q(() => {
|
|
5650
5652
|
this.dateRangeCategoryTotals = r, this.monthlyCategoryTotals = i, this.setIsLoadingCategoryTotals(!1);
|
|
5651
5653
|
});
|
|
5652
5654
|
} catch (r) {
|
|
@@ -5674,7 +5676,7 @@ class Yd {
|
|
|
5674
5676
|
getCategoryName = (A) => this.categories.find((a) => a.guid === A)?.name ?? En[A];
|
|
5675
5677
|
}
|
|
5676
5678
|
const Ui = ({ transaction: e }) => {
|
|
5677
|
-
const { addOrUpdateTransactionRule: A, updateTransaction: n } = ge(), { categories: a } = _e(), { onEvent: r } =
|
|
5679
|
+
const { addOrUpdateTransactionRule: A, updateTransaction: n } = ge(), { categories: a } = _e(), { onEvent: r } = ee(), { setShouldDisableDrawerScroll: i, updateManualTransaction: o } = rA(), { transactions: s } = L(), [c, d] = g.useState(!1), [u, h] = g.useState(""), m = async (E) => {
|
|
5678
5680
|
await n({ ...e, category_guid: u }), E && await A(u, e), h(""), r(G.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5679
5681
|
transaction_guid: e.guid
|
|
5680
5682
|
});
|
|
@@ -5714,7 +5716,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5714
5716
|
}
|
|
5715
5717
|
) }) }),
|
|
5716
5718
|
/* @__PURE__ */ t(
|
|
5717
|
-
|
|
5719
|
+
Z,
|
|
5718
5720
|
{
|
|
5719
5721
|
primary: "Category",
|
|
5720
5722
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -5759,7 +5761,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5759
5761
|
)
|
|
5760
5762
|
] });
|
|
5761
5763
|
}, Qi = ({ transaction: e }) => {
|
|
5762
|
-
const A = qe(), { onEvent: n } =
|
|
5764
|
+
const A = qe(), { onEvent: n } = ee(), { updateTransaction: a } = ge(), { updateManualTransaction: r } = rA(), { common: i, transactions: o } = L(), [s, c] = g.useState(!1), [d, u] = g.useState(e.date), h = (C) => {
|
|
5763
5765
|
u(pe(C));
|
|
5764
5766
|
}, m = async () => {
|
|
5765
5767
|
if (e.is_manual && !e.guid) {
|
|
@@ -5778,11 +5780,11 @@ const Ui = ({ transaction: e }) => {
|
|
|
5778
5780
|
children: [
|
|
5779
5781
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "calendar_month", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
5780
5782
|
/* @__PURE__ */ t(
|
|
5781
|
-
|
|
5783
|
+
Z,
|
|
5782
5784
|
{
|
|
5783
5785
|
primary: o.date_title,
|
|
5784
5786
|
primaryTypographyProps: { variant: "XSmall" },
|
|
5785
|
-
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Le(e.date),
|
|
5787
|
+
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Le(e.date), $.YEAR_MONTH_DAY) })
|
|
5786
5788
|
}
|
|
5787
5789
|
),
|
|
5788
5790
|
/* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: Qe.Dark }) })
|
|
@@ -5816,7 +5818,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5816
5818
|
)
|
|
5817
5819
|
] });
|
|
5818
5820
|
}, Vd = ({ transaction: e }) => {
|
|
5819
|
-
const { onEvent: A } =
|
|
5821
|
+
const { onEvent: A } = ee(), { removeTransaction: n } = ge(), { setShouldDisableDrawerScroll: a } = rA(), { common: r, transactions: i } = L(), [o, s] = g.useState(!1), c = async () => {
|
|
5820
5822
|
await n(e.guid), A(k.ON_TRANSACTION_DELETE_DELETED);
|
|
5821
5823
|
};
|
|
5822
5824
|
return /* @__PURE__ */ l(N, { className: "mx-txn-delete", children: [
|
|
@@ -5829,7 +5831,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5829
5831
|
children: [
|
|
5830
5832
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { variant: "rounded", children: /* @__PURE__ */ t(Gt, { color: "secondary", fontSize: "small" }) }) }),
|
|
5831
5833
|
/* @__PURE__ */ t(
|
|
5832
|
-
|
|
5834
|
+
Z,
|
|
5833
5835
|
{
|
|
5834
5836
|
primary: i.manual_transaction_delete_title,
|
|
5835
5837
|
secondary: i.manual_transaction_delete_subtitle
|
|
@@ -5856,7 +5858,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5856
5858
|
)
|
|
5857
5859
|
] });
|
|
5858
5860
|
}, Jd = T(Vd), Zd = ({ transaction: e }) => {
|
|
5859
|
-
const { onEvent: A } =
|
|
5861
|
+
const { onEvent: A } = ee(), { updateTransaction: n } = ge(), { setShouldDisableDrawerScroll: a } = rA(), { common: r, transactions: i } = L(), [o, s] = g.useState(!1), c = async () => {
|
|
5860
5862
|
await n({ ...e, merchant_guid: "" }), A(G.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
5861
5863
|
transaction_guid: e.guid
|
|
5862
5864
|
});
|
|
@@ -5870,7 +5872,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5870
5872
|
},
|
|
5871
5873
|
children: [
|
|
5872
5874
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "delete", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
5873
|
-
/* @__PURE__ */ t(
|
|
5875
|
+
/* @__PURE__ */ t(Z, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
|
|
5874
5876
|
/* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: Qe.Dark }) })
|
|
5875
5877
|
]
|
|
5876
5878
|
}
|
|
@@ -5896,7 +5898,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5896
5898
|
)
|
|
5897
5899
|
] });
|
|
5898
5900
|
}, $d = T(Zd), eu = ({ transaction: e }) => {
|
|
5899
|
-
const { onEvent: A } =
|
|
5901
|
+
const { onEvent: A } = ee(), { updateTransaction: n } = ge(), { setShouldDisableDrawerScroll: a } = rA(), { common: r, transactions: i } = L(), [o, s] = g.useState(!1), c = e.is_hidden, d = async () => {
|
|
5900
5902
|
await n({ ...e, is_hidden: !e.is_hidden }), A(
|
|
5901
5903
|
c ? k.ON_TRANSACTION_UNHIDDEN : k.ON_TRANSACTION_HIDDEN
|
|
5902
5904
|
);
|
|
@@ -5927,7 +5929,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5927
5929
|
}
|
|
5928
5930
|
) : /* @__PURE__ */ t(B, { name: "visibility", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
5929
5931
|
/* @__PURE__ */ t(
|
|
5930
|
-
|
|
5932
|
+
Z,
|
|
5931
5933
|
{
|
|
5932
5934
|
primary: c ? i.hide_trnx_subtitle_unhide_trnx : i.hide_trnx_subtitle_hide_trnx,
|
|
5933
5935
|
secondary: c ? i.hide_trnx_desc_unhiding : i.hide_trnx_desc_hiding
|
|
@@ -5985,7 +5987,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5985
5987
|
] })
|
|
5986
5988
|
] });
|
|
5987
5989
|
}, tu = ({ transaction: e }) => {
|
|
5988
|
-
const { onEvent: A } =
|
|
5990
|
+
const { onEvent: A } = ee(), { updateTransaction: n } = ge(), { updateManualTransaction: a } = rA(), { common: r, transactions: i } = L(), [o, s] = g.useState(!1), [c, d] = g.useState("");
|
|
5989
5991
|
g.useEffect(() => {
|
|
5990
5992
|
o && d(e.memo ? e.memo : "");
|
|
5991
5993
|
}, [o]);
|
|
@@ -6006,7 +6008,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6006
6008
|
children: [
|
|
6007
6009
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "article", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6008
6010
|
/* @__PURE__ */ t(
|
|
6009
|
-
|
|
6011
|
+
Z,
|
|
6010
6012
|
{
|
|
6011
6013
|
primary: i.memo_title,
|
|
6012
6014
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -6060,7 +6062,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6060
6062
|
onUpdateAmount: a,
|
|
6061
6063
|
split: r
|
|
6062
6064
|
}) => {
|
|
6063
|
-
const i = qe(), { onEvent: o } =
|
|
6065
|
+
const i = qe(), { onEvent: o } = ee(), { transactions: s } = L(), [c, d] = g.useState(`${r.amount}`), [u, h] = g.useState(!1), m = e === 0, C = (f) => {
|
|
6064
6066
|
isNaN(Number(f)) || (d(f), a(e, Number(f)));
|
|
6065
6067
|
};
|
|
6066
6068
|
return /* @__PURE__ */ l(
|
|
@@ -6162,7 +6164,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6162
6164
|
splits: r,
|
|
6163
6165
|
transaction: i
|
|
6164
6166
|
}) => {
|
|
6165
|
-
const o = qe(), { transactions: s } = L(), { onEvent: c } =
|
|
6167
|
+
const o = qe(), { transactions: s } = L(), { onEvent: c } = ee(), [d, u] = g.useState("");
|
|
6166
6168
|
return g.useEffect(() => {
|
|
6167
6169
|
u(r.length <= 1 ? s.split_transaction_errors_min_splits : ""), u(
|
|
6168
6170
|
r[0].amount < 0 ? P(
|
|
@@ -6207,7 +6209,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6207
6209
|
) })
|
|
6208
6210
|
] });
|
|
6209
6211
|
}, iu = T(ru), ou = ({ transaction: e }) => {
|
|
6210
|
-
const { onEvent: A } =
|
|
6212
|
+
const { onEvent: A } = ee(), { splitTransaction: n, unSplitTransaction: a } = ge(), { common: r, transactions: i } = L(), { setShouldDisableDrawerScroll: o } = rA(), { categories: s } = _e(), c = {
|
|
6211
6213
|
...e,
|
|
6212
6214
|
amount: e.amount - 1,
|
|
6213
6215
|
guid: "",
|
|
@@ -6270,7 +6272,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6270
6272
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ae, { onClick: D, children: [
|
|
6271
6273
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "call_split", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6272
6274
|
/* @__PURE__ */ t(
|
|
6273
|
-
|
|
6275
|
+
Z,
|
|
6274
6276
|
{
|
|
6275
6277
|
primary: e.has_been_split || e.parent_guid ? i.split_transaction_unsplit_title : i.split_transaction_title,
|
|
6276
6278
|
secondary: e.has_been_split || e.parent_guid ? i.split_transaction_unsplit_subtitle : i.split_transaction_desc
|
|
@@ -6327,7 +6329,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6327
6329
|
)
|
|
6328
6330
|
] });
|
|
6329
6331
|
}, su = T(ou), cu = () => {
|
|
6330
|
-
const e = fe(), { onEvent: A } =
|
|
6332
|
+
const e = fe(), { onEvent: A } = ee(), { addTag: n } = ge(), { transactions: a } = L(), [r, i] = g.useState(!1), [o, s] = g.useState(""), [c, d] = g.useState(""), u = g.useRef(null);
|
|
6331
6333
|
g.useEffect(() => {
|
|
6332
6334
|
r && u?.current?.focus();
|
|
6333
6335
|
}, [r]);
|
|
@@ -6414,7 +6416,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6414
6416
|
}
|
|
6415
6417
|
) });
|
|
6416
6418
|
}, uu = T(du), hu = ({ onTagChecked: e, selectedTags: A, tag: n }) => {
|
|
6417
|
-
const { onEvent: a } =
|
|
6419
|
+
const { onEvent: a } = ee(), { removeTag: r, updateTag: i } = ge(), { common: o, transactions: s } = L(), [c, d] = g.useState(!1), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, v] = g.useState(""), E = async () => {
|
|
6418
6420
|
a(k.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), n && await i({ ...n, name: m }), d(!1);
|
|
6419
6421
|
}, I = async () => {
|
|
6420
6422
|
a(k.ON_TRANSACTION_TAGS_TAG_DELETED), await r(n.guid), h(!1);
|
|
@@ -6462,7 +6464,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6462
6464
|
role: "checkbox",
|
|
6463
6465
|
children: [
|
|
6464
6466
|
/* @__PURE__ */ t(nA, { sx: { ml: 0 }, children: /* @__PURE__ */ t(zt, { checked: A.includes(n.guid), edge: "start", tabIndex: -1 }) }),
|
|
6465
|
-
/* @__PURE__ */ t(
|
|
6467
|
+
/* @__PURE__ */ t(Z, { children: n.name })
|
|
6466
6468
|
]
|
|
6467
6469
|
}
|
|
6468
6470
|
),
|
|
@@ -6526,7 +6528,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6526
6528
|
] }, o.guid)) }) })
|
|
6527
6529
|
] });
|
|
6528
6530
|
}, Cu = T(mu), pu = ({ transaction: e }) => {
|
|
6529
|
-
const { onEvent: A } =
|
|
6531
|
+
const { onEvent: A } = ee(), { tags: n, updateTaggings: a, updateTransaction: r } = ge(), { common: i, transactions: o } = L(), { updateManualTransaction: s } = rA(), [c, d] = g.useState(!1), [u, h] = g.useState(e.tags);
|
|
6530
6532
|
g.useEffect(() => {
|
|
6531
6533
|
h(e.tags);
|
|
6532
6534
|
}, [c, e]);
|
|
@@ -6555,7 +6557,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6555
6557
|
children: [
|
|
6556
6558
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "local_offer", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6557
6559
|
/* @__PURE__ */ t(
|
|
6558
|
-
|
|
6560
|
+
Z,
|
|
6559
6561
|
{
|
|
6560
6562
|
primary: o.tags_title,
|
|
6561
6563
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -6581,7 +6583,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6581
6583
|
)
|
|
6582
6584
|
] });
|
|
6583
6585
|
}, Vi = T(pu), fu = ({ transaction: e }) => {
|
|
6584
|
-
const { updateTransaction: A } = ge(), { common: n, transactions: a } = L(), { onEvent: r } =
|
|
6586
|
+
const { updateTransaction: A } = ge(), { common: n, transactions: a } = L(), { onEvent: r } = ee(), [i, o] = g.useState(!1), [s, c] = g.useState(""), d = g.useRef(null);
|
|
6585
6587
|
g.useEffect(() => {
|
|
6586
6588
|
i && (c(e.description), d?.current?.focus());
|
|
6587
6589
|
}, [i]);
|
|
@@ -6632,7 +6634,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6632
6634
|
)
|
|
6633
6635
|
] }) });
|
|
6634
6636
|
}, vu = T(fu), yu = ({ transaction: e }) => {
|
|
6635
|
-
const { updateTransaction: A } = ge(), { transactions: n } = L(), { onEvent: a } =
|
|
6637
|
+
const { updateTransaction: A } = ge(), { transactions: n } = L(), { onEvent: a } = ee(), r = fe(), i = async () => {
|
|
6636
6638
|
a(G.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await A({ ...e, is_flagged: !e.is_flagged });
|
|
6637
6639
|
};
|
|
6638
6640
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
|
@@ -6668,7 +6670,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6668
6670
|
topActions: A = Yl,
|
|
6669
6671
|
transaction: n
|
|
6670
6672
|
}) => {
|
|
6671
|
-
const a = qe(), r = n?.number && n.number.length > 4, { onEvent: i } =
|
|
6673
|
+
const a = qe(), r = n?.number && n.number.length > 4, { onEvent: i } = ee();
|
|
6672
6674
|
return g.useEffect(
|
|
6673
6675
|
() => i(G.TRANSACTION_DETAILS_VIEW, { transaction_guid: n.guid }),
|
|
6674
6676
|
[]
|
|
@@ -6902,7 +6904,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6902
6904
|
tags: I,
|
|
6903
6905
|
transactions: S,
|
|
6904
6906
|
updateTransaction: w
|
|
6905
|
-
} = ge(), { common: D, transactions: _ } = L(), { userProfile: O } = St(), { onEvent: x } =
|
|
6907
|
+
} = ge(), { common: D, transactions: _ } = L(), { userProfile: O } = St(), { onEvent: x } = ee(), {
|
|
6906
6908
|
displayedDateRange: z,
|
|
6907
6909
|
isInitialized: K,
|
|
6908
6910
|
selectedAccountGuids: q,
|
|
@@ -7123,7 +7125,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7123
7125
|
occurs_on: ca(e.expectedDate, { representation: "date" }),
|
|
7124
7126
|
recurrence_type: e.recurrenceType
|
|
7125
7127
|
}), Ou = ({ activity: e }) => {
|
|
7126
|
-
const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } =
|
|
7128
|
+
const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } = ee(), [s, c] = g.useState(!1), d = e.activityType === Ne.Income, u = [
|
|
7127
7129
|
{ id: X.EveryWeek, label: A.frequency_every_week },
|
|
7128
7130
|
{ id: X.EveryOtherWeek, label: A.frequency_every_other_week },
|
|
7129
7131
|
{ id: X.EveryMonth, label: A.frequency_every_month },
|
|
@@ -7149,7 +7151,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7149
7151
|
}
|
|
7150
7152
|
);
|
|
7151
7153
|
}, C = u.find((f) => f.id === e.recurrenceType);
|
|
7152
|
-
return /* @__PURE__ */ l(
|
|
7154
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
7153
7155
|
/* @__PURE__ */ t(
|
|
7154
7156
|
dn,
|
|
7155
7157
|
{
|
|
@@ -7175,7 +7177,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7175
7177
|
).map((f) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7176
7178
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ae, { onClick: () => h(f.id), children: [
|
|
7177
7179
|
/* @__PURE__ */ t(
|
|
7178
|
-
|
|
7180
|
+
Z,
|
|
7179
7181
|
{
|
|
7180
7182
|
primary: f.label,
|
|
7181
7183
|
primaryTypographyProps: { fontWeight: 400 }
|
|
@@ -7189,7 +7191,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7189
7191
|
)
|
|
7190
7192
|
] });
|
|
7191
7193
|
}, _u = T(Ou), Nu = ({ activity: e }) => {
|
|
7192
|
-
const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } =
|
|
7194
|
+
const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } = ee(), [s, c] = g.useState(!1), [d, u] = g.useState(e.expectedDate), h = e.activityType === Ne.Income, m = () => {
|
|
7193
7195
|
u(e.expectedDate), c(!0), o(
|
|
7194
7196
|
h ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
|
7195
7197
|
{
|
|
@@ -7207,14 +7209,14 @@ const Ui = ({ transaction: e }) => {
|
|
|
7207
7209
|
}
|
|
7208
7210
|
c(!1);
|
|
7209
7211
|
};
|
|
7210
|
-
return /* @__PURE__ */ l(
|
|
7212
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
7211
7213
|
/* @__PURE__ */ t(
|
|
7212
7214
|
dn,
|
|
7213
7215
|
{
|
|
7214
7216
|
iconName: "calendar_month",
|
|
7215
7217
|
label: A.activity_payment_date,
|
|
7216
7218
|
onClick: m,
|
|
7217
|
-
value: ne(e.expectedDate,
|
|
7219
|
+
value: ne(e.expectedDate, $.MONTH_DAY_YEAR)
|
|
7218
7220
|
}
|
|
7219
7221
|
),
|
|
7220
7222
|
/* @__PURE__ */ t(
|
|
@@ -7237,7 +7239,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7237
7239
|
)
|
|
7238
7240
|
] });
|
|
7239
7241
|
}, Pu = T(Nu), Mu = ({ activity: e, onDeleted: A }) => {
|
|
7240
|
-
const { recurring: n } = L(), { categories: a } = _e(), { deleteCashflowSequence: r, deleteScheduledPayment: i, paidActivities: o } = ke(), { filter: s, setFilter: c, transactions: d } = ge(), { selectedAccountGuids: u } = ye(), { onEvent: h } =
|
|
7242
|
+
const { recurring: n } = L(), { categories: a } = _e(), { deleteCashflowSequence: r, deleteScheduledPayment: i, paidActivities: o } = ke(), { filter: s, setFilter: c, transactions: d } = ge(), { selectedAccountGuids: u } = ye(), { onEvent: h } = ee(), [m, C] = g.useState(!1), [f, v] = g.useState(""), E = a.find((_) => _.guid === e.categoryGuid), I = e.activityType === Ne.Income, S = g.useMemo(
|
|
7241
7243
|
() => d.find((_) => _.guid === f),
|
|
7242
7244
|
[f]
|
|
7243
7245
|
);
|
|
@@ -7285,7 +7287,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7285
7287
|
] })
|
|
7286
7288
|
] }),
|
|
7287
7289
|
/* @__PURE__ */ l(Ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
7288
|
-
e.institution && /* @__PURE__ */ l(
|
|
7290
|
+
e.institution && /* @__PURE__ */ l(W, { children: [
|
|
7289
7291
|
/* @__PURE__ */ t(
|
|
7290
7292
|
dn,
|
|
7291
7293
|
{
|
|
@@ -7296,7 +7298,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7296
7298
|
),
|
|
7297
7299
|
/* @__PURE__ */ t(H, { color: "secondary", variant: "inset" })
|
|
7298
7300
|
] }),
|
|
7299
|
-
E && /* @__PURE__ */ l(
|
|
7301
|
+
E && /* @__PURE__ */ l(W, { children: [
|
|
7300
7302
|
/* @__PURE__ */ t(
|
|
7301
7303
|
dn,
|
|
7302
7304
|
{
|
|
@@ -7381,17 +7383,17 @@ const Ui = ({ transaction: e }) => {
|
|
|
7381
7383
|
case He.Paid:
|
|
7382
7384
|
return e.occurredOnDate ? P(
|
|
7383
7385
|
A.paid_on,
|
|
7384
|
-
ne(e.occurredOnDate,
|
|
7386
|
+
ne(e.occurredOnDate, $.MONTH_DAY)
|
|
7385
7387
|
) : A.paid;
|
|
7386
7388
|
case He.Missed:
|
|
7387
7389
|
return P(
|
|
7388
7390
|
A.missed_on,
|
|
7389
|
-
ne(e.expectedDate,
|
|
7391
|
+
ne(e.expectedDate, $.MONTH_DAY)
|
|
7390
7392
|
);
|
|
7391
7393
|
case He.Upcoming:
|
|
7392
7394
|
return P(
|
|
7393
7395
|
A.upcoming_on,
|
|
7394
|
-
ne(e.expectedDate,
|
|
7396
|
+
ne(e.expectedDate, $.MONTH_DAY)
|
|
7395
7397
|
);
|
|
7396
7398
|
default:
|
|
7397
7399
|
return A.unknown;
|
|
@@ -7431,13 +7433,13 @@ const Ui = ({ transaction: e }) => {
|
|
|
7431
7433
|
merchantGuid: e.merchantGuid || ""
|
|
7432
7434
|
}
|
|
7433
7435
|
) }),
|
|
7434
|
-
/* @__PURE__ */ t(
|
|
7436
|
+
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(y, { direction: "row", sx: { textOverflow: "ellipsis", textWrap: "nowrap" }, children: [
|
|
7435
7437
|
/* @__PURE__ */ l(y, { direction: "column", maxWidth: "60%", children: [
|
|
7436
7438
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
7437
7439
|
/* @__PURE__ */ t(y, { alignItems: "center", direction: "row", gap: 6, children: A ? /* @__PURE__ */ l(y, { direction: "row", gap: 4, children: [
|
|
7438
7440
|
Bu(e),
|
|
7439
7441
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: Hu(e, r) })
|
|
7440
|
-
] }) : /* @__PURE__ */ l(
|
|
7442
|
+
] }) : /* @__PURE__ */ l(W, { children: [
|
|
7441
7443
|
e.institutionGuid && /* @__PURE__ */ t(
|
|
7442
7444
|
CA,
|
|
7443
7445
|
{
|
|
@@ -7687,7 +7689,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7687
7689
|
C(""), h(!1);
|
|
7688
7690
|
};
|
|
7689
7691
|
return /* @__PURE__ */ l(N, { children: [
|
|
7690
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ae, { onClick: w, children: /* @__PURE__ */ t(
|
|
7692
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ae, { onClick: w, children: /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
7691
7693
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
7692
7694
|
/* @__PURE__ */ t(B, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
7693
7695
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: A })
|
|
@@ -7756,7 +7758,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7756
7758
|
scheduledPaymentGuid: a.guid
|
|
7757
7759
|
};
|
|
7758
7760
|
}), ju = () => {
|
|
7759
|
-
const { recurring: e } = L(), { scheduledPayments: A } = ke(), { transactions: n } = ge(), { selectedAccounts: a } = ye(), { onEvent: r } =
|
|
7761
|
+
const { recurring: e } = L(), { scheduledPayments: A } = ke(), { transactions: n } = ge(), { selectedAccounts: a } = ye(), { onEvent: r } = ee(), i = Xu(a, A, n), o = (c) => {
|
|
7760
7762
|
r(G.RECURRING_ACTIVITY_CLICK_EXPENSE, {
|
|
7761
7763
|
transaction_guid: c.transactionGuid
|
|
7762
7764
|
});
|
|
@@ -7951,7 +7953,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7951
7953
|
sequenceGuid: i.guid
|
|
7952
7954
|
};
|
|
7953
7955
|
}), Vu = () => {
|
|
7954
|
-
const { recurring: e } = L(), { selectedAccounts: A } = ye(), { cashflowEvents: n, cashflowSequences: a, projectedEvents: r } = ke(), { transactions: i } = ge(), { onEvent: o } =
|
|
7956
|
+
const { recurring: e } = L(), { selectedAccounts: A } = ye(), { cashflowEvents: n, cashflowSequences: a, projectedEvents: r } = ke(), { transactions: i } = ge(), { onEvent: o } = ee(), s = Yu(
|
|
7955
7957
|
A,
|
|
7956
7958
|
n,
|
|
7957
7959
|
r,
|
|
@@ -7972,7 +7974,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7972
7974
|
/* @__PURE__ */ t(ao, { isIncome: !0, label: e.add_income, onAddActivity: d })
|
|
7973
7975
|
] });
|
|
7974
7976
|
}, Na = T(Vu), Ju = () => {
|
|
7975
|
-
const [e, A] = g.useState(0), { onEvent: n } =
|
|
7977
|
+
const [e, A] = g.useState(0), { onEvent: n } = ee(), { recurring: a } = L();
|
|
7976
7978
|
return /* @__PURE__ */ l(N, { bgcolor: "background.default", height: "100%", children: [
|
|
7977
7979
|
/* @__PURE__ */ l(
|
|
7978
7980
|
_A,
|
|
@@ -8022,7 +8024,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8022
8024
|
return /* @__PURE__ */ t(
|
|
8023
8025
|
hi,
|
|
8024
8026
|
{
|
|
8025
|
-
badgeContent: c.length > 0 && /* @__PURE__ */ l(
|
|
8027
|
+
badgeContent: c.length > 0 && /* @__PURE__ */ l(W, { children: [
|
|
8026
8028
|
u && /* @__PURE__ */ t(Oa, { isOffset: !0 }),
|
|
8027
8029
|
h && /* @__PURE__ */ t(_a, { isOffset: !0 }),
|
|
8028
8030
|
d && /* @__PURE__ */ t(Da, { isOffset: !0 }),
|
|
@@ -8082,7 +8084,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8082
8084
|
}
|
|
8083
8085
|
);
|
|
8084
8086
|
}, Ah = T(eh), Or = 58, th = () => {
|
|
8085
|
-
const e = fe(), { onEvent: A } =
|
|
8087
|
+
const e = fe(), { onEvent: A } = ee(), { selectedDay: n } = ke(), [a, r] = g.useState(
|
|
8086
8088
|
Za(/* @__PURE__ */ new Date()) * xt + Or
|
|
8087
8089
|
), i = (s) => {
|
|
8088
8090
|
r(Za(s) * xt + Or), A(G.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
@@ -8160,7 +8162,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8160
8162
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i }),
|
|
8161
8163
|
n && /* @__PURE__ */ t(oe, { onClick: n, sx: { mt: -12 }, variant: "text", children: o.reset })
|
|
8162
8164
|
] }),
|
|
8163
|
-
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(Ae, { children: A ? e.map((c, d) => /* @__PURE__ */ l(
|
|
8165
|
+
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(Ae, { children: A ? e.map((c, d) => /* @__PURE__ */ l(W, { children: [
|
|
8164
8166
|
/* @__PURE__ */ t(
|
|
8165
8167
|
hn,
|
|
8166
8168
|
{
|
|
@@ -8171,16 +8173,16 @@ const Ui = ({ transaction: e }) => {
|
|
|
8171
8173
|
c.expectedDate.toString() + d
|
|
8172
8174
|
),
|
|
8173
8175
|
/* @__PURE__ */ t(H, { sx: { mx: 24 } })
|
|
8174
|
-
] })) : s.map((c) => /* @__PURE__ */ l(
|
|
8176
|
+
] })) : s.map((c) => /* @__PURE__ */ l(W, { children: [
|
|
8175
8177
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
|
8176
8178
|
Ae,
|
|
8177
8179
|
{
|
|
8178
8180
|
subheader: /* @__PURE__ */ t(SA, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ne(
|
|
8179
8181
|
c.activities[0].occurredOnDate || c.activities[0].expectedDate,
|
|
8180
|
-
|
|
8182
|
+
$.DAY_OF_WEEK_MONTH_DAY
|
|
8181
8183
|
) }) }),
|
|
8182
8184
|
sx: { width: "100%" },
|
|
8183
|
-
children: c.activities.map((d, u) => /* @__PURE__ */ l(
|
|
8185
|
+
children: c.activities.map((d, u) => /* @__PURE__ */ l(W, { children: [
|
|
8184
8186
|
/* @__PURE__ */ t(
|
|
8185
8187
|
hn,
|
|
8186
8188
|
{
|
|
@@ -8216,7 +8218,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8216
8218
|
/* @__PURE__ */ l(y, { direction: "row", gap: 2, mb: 8, children: [
|
|
8217
8219
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: R(n, "0,0.00") }),
|
|
8218
8220
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: o.paid?.toLowerCase() }),
|
|
8219
|
-
a !== void 0 && /* @__PURE__ */ l(
|
|
8221
|
+
a !== void 0 && /* @__PURE__ */ l(W, { children: [
|
|
8220
8222
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: "/" }),
|
|
8221
8223
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: R(a, "0,0.00") }),
|
|
8222
8224
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: o.missed?.toLowerCase() })
|
|
@@ -8239,7 +8241,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8239
8241
|
selectedDayActivities: s,
|
|
8240
8242
|
setSelectedDay: c,
|
|
8241
8243
|
upcomingActivities: d
|
|
8242
|
-
} = ke(), [u, h] = g.useState(0), { onEvent: m } =
|
|
8244
|
+
} = ke(), [u, h] = g.useState(0), { onEvent: m } = ee(), C = a.filter(Kn), f = i.filter(Kn), v = r.filter(Kn), E = C.filter(en).reduce(_t, 0), I = f.filter(en).reduce(_t, 0), S = v.filter(en).reduce(_t, 0), w = C.filter(en).length, D = C.filter(zn).reduce(_t, 0), _ = f.filter(zn).reduce(_t, 0), O = C.filter(zn).length, x = (q, F) => {
|
|
8243
8245
|
h(F);
|
|
8244
8246
|
}, z = (q) => {
|
|
8245
8247
|
m(G.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8314,14 +8316,14 @@ const Ui = ({ transaction: e }) => {
|
|
|
8314
8316
|
onResetClick: o ? () => c(o) : void 0,
|
|
8315
8317
|
title: o ? P(
|
|
8316
8318
|
e.day_transactions,
|
|
8317
|
-
ne(o,
|
|
8319
|
+
ne(o, $.MONTH_DAY)
|
|
8318
8320
|
) : e.paid_activity
|
|
8319
8321
|
}
|
|
8320
8322
|
)
|
|
8321
8323
|
] }) })
|
|
8322
8324
|
] });
|
|
8323
8325
|
}, oh = T(ih), sh = ({ onBackClick: e, sx: A = {} }) => {
|
|
8324
|
-
const { accounts: n } = ve(), { recurring: a } = L(), { isInitialized: r, selectedAccountGuids: i, setSelectedAccounts: o } = ye(), { setFilter: s } = ge(), { isLoading: c } = ke(), { onEvent: d } =
|
|
8326
|
+
const { accounts: n } = ve(), { recurring: a } = L(), { isInitialized: r, selectedAccountGuids: i, setSelectedAccounts: o } = ye(), { setFilter: s } = ge(), { isLoading: c } = ke(), { onEvent: d } = ee();
|
|
8325
8327
|
g.useEffect(() => {
|
|
8326
8328
|
o(n);
|
|
8327
8329
|
}, [n]), g.useEffect(() => {
|
|
@@ -8387,7 +8389,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8387
8389
|
sx: { width: c ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
8388
8390
|
title: n ? P(
|
|
8389
8391
|
e.day_transactions,
|
|
8390
|
-
ne(n,
|
|
8392
|
+
ne(n, $.MONTH_DAY)
|
|
8391
8393
|
) : e.upcoming_activity
|
|
8392
8394
|
}
|
|
8393
8395
|
)
|
|
@@ -8468,7 +8470,7 @@ class uh {
|
|
|
8468
8470
|
addCashflowEvent = async (A) => {
|
|
8469
8471
|
try {
|
|
8470
8472
|
const n = await this.cashflowApi.addCashflowEvent(A);
|
|
8471
|
-
|
|
8473
|
+
Q(() => {
|
|
8472
8474
|
this.cashflowEvents = [...this.cashflowEvents, n];
|
|
8473
8475
|
});
|
|
8474
8476
|
} catch (n) {
|
|
@@ -8489,7 +8491,7 @@ class uh {
|
|
|
8489
8491
|
await this.globalStore.transactionStore.updateTransaction({
|
|
8490
8492
|
...n,
|
|
8491
8493
|
scheduled_payment_guid: a.guid
|
|
8492
|
-
}),
|
|
8494
|
+
}), Q(() => {
|
|
8493
8495
|
this.scheduledPayments = [...this.scheduledPayments, a];
|
|
8494
8496
|
});
|
|
8495
8497
|
} catch (a) {
|
|
@@ -8505,7 +8507,7 @@ class uh {
|
|
|
8505
8507
|
};
|
|
8506
8508
|
deleteScheduledPayment = async (A) => {
|
|
8507
8509
|
try {
|
|
8508
|
-
await this.api.deleteScheduledPayment(A),
|
|
8510
|
+
await this.api.deleteScheduledPayment(A), Q(() => {
|
|
8509
8511
|
const n = this.scheduledPayments.findIndex((a) => a.guid === A);
|
|
8510
8512
|
n >= 0 && this.scheduledPayments.splice(n, 1);
|
|
8511
8513
|
});
|
|
@@ -8515,7 +8517,7 @@ class uh {
|
|
|
8515
8517
|
};
|
|
8516
8518
|
loadActivity = () => {
|
|
8517
8519
|
this.isLoading = !0, Promise.all([this.loadExpenseActivity(), this.loadIncomeActivity()]).finally(
|
|
8518
|
-
() =>
|
|
8520
|
+
() => Q(() => {
|
|
8519
8521
|
this.isLoading = !1;
|
|
8520
8522
|
})
|
|
8521
8523
|
);
|
|
@@ -8528,7 +8530,7 @@ class uh {
|
|
|
8528
8530
|
};
|
|
8529
8531
|
loadCashflowSequences = async () => {
|
|
8530
8532
|
const A = await this.cashflowApi.getCashflowSequences();
|
|
8531
|
-
|
|
8533
|
+
Q(() => {
|
|
8532
8534
|
this.cashflowSequences = A.filter(
|
|
8533
8535
|
(n) => n.transaction_type === AA.CREDIT
|
|
8534
8536
|
);
|
|
@@ -8540,7 +8542,7 @@ class uh {
|
|
|
8540
8542
|
xe(ie()),
|
|
8541
8543
|
OA(ie(), 30)
|
|
8542
8544
|
);
|
|
8543
|
-
|
|
8545
|
+
Q(() => {
|
|
8544
8546
|
this.projectedEvents = A.filter(
|
|
8545
8547
|
(n) => n.transaction_type === AA.CREDIT
|
|
8546
8548
|
);
|
|
@@ -8555,7 +8557,7 @@ class uh {
|
|
|
8555
8557
|
TA(ie(), 90),
|
|
8556
8558
|
Re(ie())
|
|
8557
8559
|
);
|
|
8558
|
-
|
|
8560
|
+
Q(() => {
|
|
8559
8561
|
this.cashflowEvents = A.filter(
|
|
8560
8562
|
(n) => n.transaction_type === AA.CREDIT
|
|
8561
8563
|
);
|
|
@@ -8567,7 +8569,7 @@ class uh {
|
|
|
8567
8569
|
loadScheduledPayments = async () => {
|
|
8568
8570
|
try {
|
|
8569
8571
|
const A = await this.api.getScheduledPayments();
|
|
8570
|
-
|
|
8572
|
+
Q(() => {
|
|
8571
8573
|
this.scheduledPayments = A;
|
|
8572
8574
|
});
|
|
8573
8575
|
} catch (A) {
|
|
@@ -8601,7 +8603,7 @@ class uh {
|
|
|
8601
8603
|
try {
|
|
8602
8604
|
const n = await this.api.updateScheduledPayment(A), a = this.scheduledPayments.findIndex((r) => r.guid === A.guid);
|
|
8603
8605
|
if (a < 0) return;
|
|
8604
|
-
|
|
8606
|
+
Q(() => {
|
|
8605
8607
|
this.scheduledPayments = [
|
|
8606
8608
|
...this.scheduledPayments.slice(0, a),
|
|
8607
8609
|
n,
|
|
@@ -8617,7 +8619,7 @@ const hh = {
|
|
|
8617
8619
|
gridRow: 1,
|
|
8618
8620
|
gridColumn: 1,
|
|
8619
8621
|
zIndex: 2
|
|
8620
|
-
}, gh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...hh } }) }), Pa = (e) => e && (e.account_type ===
|
|
8622
|
+
}, gh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...hh } }) }), Pa = (e) => e && (e.account_type === Y.CREDIT_CARD || e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE || e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CHECKING_LINE_OF_CREDIT), mh = (e) => e.is_manual || !e.guid, Ch = (e) => e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CREDIT_CARD || e.account_type === Y.CHECKING_LINE_OF_CREDIT, ph = (e) => e.account_type === Y.SAVINGS || e.account_type === Y.CHECKING || e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CREDIT_CARD || e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE, fh = (e) => e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE, vh = (e, A) => {
|
|
8621
8623
|
const n = [
|
|
8622
8624
|
{
|
|
8623
8625
|
event: "account_details_click_account_name",
|
|
@@ -8637,7 +8639,7 @@ const hh = {
|
|
|
8637
8639
|
type: Ze.Currency,
|
|
8638
8640
|
valueFormatter: (r) => R(r, "0,0.00")
|
|
8639
8641
|
});
|
|
8640
|
-
const a = Object.keys(
|
|
8642
|
+
const a = Object.keys(Y).filter((r) => Number(r)).map((r) => ({
|
|
8641
8643
|
label: A.account_types[r],
|
|
8642
8644
|
value: Number(r),
|
|
8643
8645
|
icon: /* @__PURE__ */ t(B, { name: Si[r] })
|
|
@@ -8651,7 +8653,7 @@ const hh = {
|
|
|
8651
8653
|
valueFormatter: (r) => a.find((i) => i.value === r)?.label
|
|
8652
8654
|
});
|
|
8653
8655
|
}
|
|
8654
|
-
if (e.account_type ===
|
|
8656
|
+
if (e.account_type === Y.PROPERTY) {
|
|
8655
8657
|
const a = Object.keys(yi).filter((r) => Number(r)).map((r) => ({
|
|
8656
8658
|
label: A.property_types[r],
|
|
8657
8659
|
value: Number(r),
|
|
@@ -8690,7 +8692,7 @@ const hh = {
|
|
|
8690
8692
|
type: Ze.Date,
|
|
8691
8693
|
valueFormatter: (a) => {
|
|
8692
8694
|
const r = typeof a == "number" ? new Date(a * 1e3) : a;
|
|
8693
|
-
return ne(r,
|
|
8695
|
+
return ne(r, $.MED_MONTH_SHORT_DAY_FULL_YEAR);
|
|
8694
8696
|
}
|
|
8695
8697
|
}) : n.push({
|
|
8696
8698
|
label: A.day_payment_due,
|
|
@@ -8729,7 +8731,7 @@ const hh = {
|
|
|
8729
8731
|
r = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: P(
|
|
8730
8732
|
A.payment_due_on,
|
|
8731
8733
|
R(e.minimum_payment, "0,0.00"),
|
|
8732
|
-
ne(s,
|
|
8734
|
+
ne(s, $.FULL_MONTH_DAY)
|
|
8733
8735
|
) });
|
|
8734
8736
|
} else e.credit_limit && (r = A.available_credit, i = R(e.credit_limit, "0,0.00"));
|
|
8735
8737
|
}
|
|
@@ -8752,7 +8754,7 @@ const hh = {
|
|
|
8752
8754
|
);
|
|
8753
8755
|
let d;
|
|
8754
8756
|
(e.connectionStatus === it.Error || e.connectionStatus === it.RequiresMfa) && (d = /* @__PURE__ */ t(gh, { size: 16 }));
|
|
8755
|
-
const u = /* @__PURE__ */ l(
|
|
8757
|
+
const u = /* @__PURE__ */ l(W, { children: [
|
|
8756
8758
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
8757
8759
|
hi,
|
|
8758
8760
|
{
|
|
@@ -8766,7 +8768,7 @@ const hh = {
|
|
|
8766
8768
|
}
|
|
8767
8769
|
) }),
|
|
8768
8770
|
/* @__PURE__ */ t(
|
|
8769
|
-
|
|
8771
|
+
Z,
|
|
8770
8772
|
{
|
|
8771
8773
|
disableTypography: !0,
|
|
8772
8774
|
primary: /* @__PURE__ */ l(p, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Body", children: [
|
|
@@ -8775,7 +8777,7 @@ const hh = {
|
|
|
8775
8777
|
e.is_hidden && !e.is_closed && r.is_hidden,
|
|
8776
8778
|
e.is_closed && r.is_closed
|
|
8777
8779
|
] }),
|
|
8778
|
-
secondary: /* @__PURE__ */ l(
|
|
8780
|
+
secondary: /* @__PURE__ */ l(W, { children: [
|
|
8779
8781
|
/* @__PURE__ */ l(N, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
8780
8782
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: i }),
|
|
8781
8783
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: R(o, "0,0.00") })
|
|
@@ -8806,11 +8808,11 @@ const hh = {
|
|
|
8806
8808
|
}
|
|
8807
8809
|
);
|
|
8808
8810
|
var jt = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(jt || {});
|
|
8809
|
-
const bh = ({ activity: e }) => /* @__PURE__ */ l(
|
|
8811
|
+
const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
8810
8812
|
/* @__PURE__ */ l(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
8811
8813
|
/* @__PURE__ */ l(y, { alignItems: "center", height: 32, width: 32, children: [
|
|
8812
|
-
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ne(e.expectedDate,
|
|
8813
|
-
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ne(e.expectedDate,
|
|
8814
|
+
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ne(e.expectedDate, $.MONTH) }),
|
|
8815
|
+
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ne(e.expectedDate, $.DAY) })
|
|
8814
8816
|
] }),
|
|
8815
8817
|
/* @__PURE__ */ t(p, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
|
|
8816
8818
|
/* @__PURE__ */ t(
|
|
@@ -8825,7 +8827,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
8825
8827
|
/* @__PURE__ */ t(H, {})
|
|
8826
8828
|
] }), Nr = T(bh), wh = ({ total: e, type: A }) => {
|
|
8827
8829
|
const { cashflow: n } = L();
|
|
8828
|
-
return /* @__PURE__ */ l(
|
|
8830
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
8829
8831
|
/* @__PURE__ */ l(
|
|
8830
8832
|
SA,
|
|
8831
8833
|
{
|
|
@@ -8855,10 +8857,10 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
8855
8857
|
/* @__PURE__ */ l(y, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
8856
8858
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: A.accounts_breakdown }),
|
|
8857
8859
|
/* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
|
|
8858
|
-
ne(r.start,
|
|
8860
|
+
ne(r.start, $.FULL_MONTH_DAY),
|
|
8859
8861
|
" -",
|
|
8860
8862
|
" ",
|
|
8861
|
-
ne(r.end,
|
|
8863
|
+
ne(r.end, $.FULL_MONTH_DAY)
|
|
8862
8864
|
] })
|
|
8863
8865
|
] }),
|
|
8864
8866
|
/* @__PURE__ */ t(y, { children: i.map((o) => {
|
|
@@ -9026,10 +9028,10 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9026
9028
|
)
|
|
9027
9029
|
] }),
|
|
9028
9030
|
/* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
|
|
9029
|
-
ne(i.start,
|
|
9031
|
+
ne(i.start, $.FULL_MONTH_DAY),
|
|
9030
9032
|
" -",
|
|
9031
9033
|
" ",
|
|
9032
|
-
ne(i.end,
|
|
9034
|
+
ne(i.end, $.FULL_MONTH_DAY)
|
|
9033
9035
|
] })
|
|
9034
9036
|
]
|
|
9035
9037
|
}
|
|
@@ -9142,7 +9144,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9142
9144
|
}
|
|
9143
9145
|
);
|
|
9144
9146
|
}, Lh = T(Ih), Dh = () => {
|
|
9145
|
-
const { cashflow: e } = L(), { isDesktop: A } = Be(), { onEvent: n } =
|
|
9147
|
+
const { cashflow: e } = L(), { isDesktop: A } = Be(), { onEvent: n } = ee(), [a, r] = g.useState(0), i = (o, s) => {
|
|
9146
9148
|
r(s);
|
|
9147
9149
|
};
|
|
9148
9150
|
return g.useEffect(() => {
|
|
@@ -9272,9 +9274,9 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9272
9274
|
)
|
|
9273
9275
|
}
|
|
9274
9276
|
)
|
|
9275
|
-
] }) : /* @__PURE__ */ l(
|
|
9277
|
+
] }) : /* @__PURE__ */ l(W, { children: [
|
|
9276
9278
|
/* @__PURE__ */ t(XA, { amount: m, label: a.cash_and_bank }),
|
|
9277
|
-
E ? /* @__PURE__ */ l(
|
|
9279
|
+
E ? /* @__PURE__ */ l(W, { children: [
|
|
9278
9280
|
/* @__PURE__ */ t(p, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
9279
9281
|
/* @__PURE__ */ t(
|
|
9280
9282
|
XA,
|
|
@@ -9474,7 +9476,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9474
9476
|
children: [
|
|
9475
9477
|
/* @__PURE__ */ t(kA, { pb: 12, children: a.add_income_title }),
|
|
9476
9478
|
/* @__PURE__ */ t(Me, { mb: 24, children: a.add_income_description }),
|
|
9477
|
-
x.length > 0 && !F && /* @__PURE__ */ l(
|
|
9479
|
+
x.length > 0 && !F && /* @__PURE__ */ l(W, { children: [
|
|
9478
9480
|
/* @__PURE__ */ t(Ae, { children: x.map((he, we) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
9479
9481
|
/* @__PURE__ */ t(Ta, { bgcolor: "background.paper", children: wn(
|
|
9480
9482
|
pe(he.nextDate || he.date)
|
|
@@ -9508,7 +9510,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9508
9510
|
}
|
|
9509
9511
|
),
|
|
9510
9512
|
!V && o && /* @__PURE__ */ t(Me, { color: "error", mt: 16, children: a.confirm_error }),
|
|
9511
|
-
F && /* @__PURE__ */ l(
|
|
9513
|
+
F && /* @__PURE__ */ l(W, { children: [
|
|
9512
9514
|
/* @__PURE__ */ t(
|
|
9513
9515
|
to,
|
|
9514
9516
|
{
|
|
@@ -9580,7 +9582,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9580
9582
|
setSelectedAccounts: r,
|
|
9581
9583
|
shouldDisableNextDate: i,
|
|
9582
9584
|
shouldDisablePrevDate: o
|
|
9583
|
-
} = ye(), { onEvent: s } =
|
|
9585
|
+
} = ye(), { onEvent: s } = ee(), { cashAccounts: c } = ve(), { setFilter: d } = ge(), { userProfile: u } = St(), { dateRange: h, setSelectedCashAccounts: m } = Tt(), { cashflow: C } = L(), [f, v] = g.useState(!1);
|
|
9584
9586
|
return g.useEffect(() => {
|
|
9585
9587
|
r(c);
|
|
9586
9588
|
}, [c]), g.useEffect(() => {
|
|
@@ -9735,7 +9737,7 @@ function jh(e, A) {
|
|
|
9735
9737
|
const s = zs({ start: i, end: o });
|
|
9736
9738
|
return {
|
|
9737
9739
|
payoffSavings: R(a, "0,0.00"),
|
|
9738
|
-
payoffDate: ne(o,
|
|
9740
|
+
payoffDate: ne(o, $.MONTH_YEAR),
|
|
9739
9741
|
payoffDuration: Ks(s, { format: ["years", "months"] })
|
|
9740
9742
|
};
|
|
9741
9743
|
}
|
|
@@ -10157,7 +10159,7 @@ const tn = {
|
|
|
10157
10159
|
const r = /* @__PURE__ */ new Date();
|
|
10158
10160
|
for (; Te(a, r); )
|
|
10159
10161
|
n.push({
|
|
10160
|
-
x: ne(a,
|
|
10162
|
+
x: ne(a, $.MONTH_SHORT),
|
|
10161
10163
|
y: e.filter((i) => i.year === a.getFullYear() && i.month === a.getMonth() + 1).reduce((i, o) => i + o.total, 0)
|
|
10162
10164
|
}), a = oA(a, 1);
|
|
10163
10165
|
return n;
|
|
@@ -10178,7 +10180,7 @@ const tn = {
|
|
|
10178
10180
|
const r = Re(/* @__PURE__ */ new Date());
|
|
10179
10181
|
for (; Te(a, r); )
|
|
10180
10182
|
A.push({
|
|
10181
|
-
x: ne(a,
|
|
10183
|
+
x: ne(a, $.MONTH_SHORT),
|
|
10182
10184
|
y: n.filter((i) => i.year === a.getFullYear() && i.month === a.getMonth() + 1).reduce((i, o) => i + o.total, 0)
|
|
10183
10185
|
}), a = oA(a, 1);
|
|
10184
10186
|
return A;
|
|
@@ -10200,7 +10202,7 @@ const tn = {
|
|
|
10200
10202
|
}
|
|
10201
10203
|
return s;
|
|
10202
10204
|
}, rg = () => {
|
|
10203
|
-
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [
|
|
10205
|
+
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [Y.LOAN, Y.MORTGAGE].includes(A.account_type);
|
|
10204
10206
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
10205
10207
|
ya,
|
|
10206
10208
|
{
|
|
@@ -10233,7 +10235,7 @@ const tn = {
|
|
|
10233
10235
|
FA,
|
|
10234
10236
|
{
|
|
10235
10237
|
sx: { pb: 0 },
|
|
10236
|
-
title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: ne(/* @__PURE__ */ new Date(),
|
|
10238
|
+
title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: ne(/* @__PURE__ */ new Date(), $.MONTH_LONG) })
|
|
10237
10239
|
}
|
|
10238
10240
|
),
|
|
10239
10241
|
/* @__PURE__ */ t(IA, { sx: { p: 0 }, children: /* @__PURE__ */ t(ig, {}) })
|
|
@@ -10387,7 +10389,7 @@ const lo = ({
|
|
|
10387
10389
|
scaleType: "time",
|
|
10388
10390
|
min: d[0],
|
|
10389
10391
|
disableTicks: !0,
|
|
10390
|
-
valueFormatter: (S) => ne(S,
|
|
10392
|
+
valueFormatter: (S) => ne(S, $.MONTH_SHORT_YEAR)
|
|
10391
10393
|
}
|
|
10392
10394
|
],
|
|
10393
10395
|
yAxis: [
|
|
@@ -10409,7 +10411,7 @@ const lo = ({
|
|
|
10409
10411
|
details_description: "This schedule is calculated based on the borrowing details and paydown amount you entered."
|
|
10410
10412
|
}, ug = () => {
|
|
10411
10413
|
const e = GA(), { selectedDebtChartData: A } = dt();
|
|
10412
|
-
return /* @__PURE__ */ l(
|
|
10414
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
10413
10415
|
/* @__PURE__ */ l(
|
|
10414
10416
|
fA,
|
|
10415
10417
|
{
|
|
@@ -10443,7 +10445,7 @@ const lo = ({
|
|
|
10443
10445
|
payment_month_label: "Payment",
|
|
10444
10446
|
payment_payoff_label: "Debt Paid Off"
|
|
10445
10447
|
}, gg = () => {
|
|
10446
|
-
const e = GA(), { onEvent: A } =
|
|
10448
|
+
const e = GA(), { onEvent: A } = ee(), { selectedDebtChartData: n, showCompleted: a, showError: r } = dt();
|
|
10447
10449
|
return g.useEffect(() => A(G.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(Ae, { children: r || a ? /* @__PURE__ */ t(
|
|
10448
10450
|
p,
|
|
10449
10451
|
{
|
|
@@ -10453,7 +10455,7 @@ const lo = ({
|
|
|
10453
10455
|
variant: "Small",
|
|
10454
10456
|
children: r ? ht.error_message : ht.complete_message
|
|
10455
10457
|
}
|
|
10456
|
-
) : /* @__PURE__ */ l(
|
|
10458
|
+
) : /* @__PURE__ */ l(W, { children: [
|
|
10457
10459
|
/* @__PURE__ */ l(y, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10458
10460
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ht.payment_month_heading }),
|
|
10459
10461
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ht.payment_amount_heading })
|
|
@@ -10470,7 +10472,7 @@ const lo = ({
|
|
|
10470
10472
|
},
|
|
10471
10473
|
children: [
|
|
10472
10474
|
/* @__PURE__ */ l(y, { flexGrow: 1, children: [
|
|
10473
|
-
/* @__PURE__ */ t(p, { variant: "Body", children: ne(i,
|
|
10475
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: ne(i, $.MONTH_YEAR) }),
|
|
10474
10476
|
/* @__PURE__ */ t(p, { color: e.palette.secondary.main, variant: "XSmall", children: ht.payment_month_label })
|
|
10475
10477
|
] }),
|
|
10476
10478
|
/* @__PURE__ */ l(y, { children: [
|
|
@@ -10702,9 +10704,9 @@ const lo = ({
|
|
|
10702
10704
|
}
|
|
10703
10705
|
);
|
|
10704
10706
|
}), vg = () => {
|
|
10705
|
-
const { onEvent: e } =
|
|
10707
|
+
const { onEvent: e } = ee(), { selectedDebtChartData: A } = dt();
|
|
10706
10708
|
return g.useEffect(() => e(G.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(Ae, { children: [
|
|
10707
|
-
A?.goal && /* @__PURE__ */ l(
|
|
10709
|
+
A?.goal && /* @__PURE__ */ l(W, { children: [
|
|
10708
10710
|
/* @__PURE__ */ t(ho, { goal: A.goal }),
|
|
10709
10711
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
10710
10712
|
/* @__PURE__ */ t(uo, { goal: A.goal }),
|
|
@@ -10712,7 +10714,7 @@ const lo = ({
|
|
|
10712
10714
|
/* @__PURE__ */ t(go, { goal: A.goal }),
|
|
10713
10715
|
/* @__PURE__ */ t(H, {})
|
|
10714
10716
|
] }),
|
|
10715
|
-
!A?.goal && A?.account && /* @__PURE__ */ l(
|
|
10717
|
+
!A?.goal && A?.account && /* @__PURE__ */ l(W, { children: [
|
|
10716
10718
|
/* @__PURE__ */ t(pg, { debt: A }),
|
|
10717
10719
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
10718
10720
|
/* @__PURE__ */ t(Cg, { debt: A }),
|
|
@@ -10732,7 +10734,7 @@ const lo = ({
|
|
|
10732
10734
|
const { showError: n, showCompleted: a } = dt();
|
|
10733
10735
|
return g.useEffect(() => {
|
|
10734
10736
|
n && e(1);
|
|
10735
|
-
}, [n]), !n && !a ? /* @__PURE__ */ t(
|
|
10737
|
+
}, [n]), !n && !a ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ l(de, { gap: 16, children: [
|
|
10736
10738
|
/* @__PURE__ */ t(gA, { sx: { my: 16, mx: 24, ...A }, children: /* @__PURE__ */ l(
|
|
10737
10739
|
vt,
|
|
10738
10740
|
{
|
|
@@ -10758,7 +10760,7 @@ const lo = ({
|
|
|
10758
10760
|
n && /* @__PURE__ */ t(gA, { sx: { mb: 16, mt: 100, mx: 24, ...A }, children: /* @__PURE__ */ l(
|
|
10759
10761
|
vt,
|
|
10760
10762
|
{
|
|
10761
|
-
icon: /* @__PURE__ */ t(
|
|
10763
|
+
icon: /* @__PURE__ */ t(W, {}),
|
|
10762
10764
|
severity: "error",
|
|
10763
10765
|
sx: {
|
|
10764
10766
|
color: "text.primary",
|
|
@@ -10779,7 +10781,7 @@ const lo = ({
|
|
|
10779
10781
|
details_tab_label: "Details"
|
|
10780
10782
|
}, wg = () => {
|
|
10781
10783
|
const { showError: e, showCompleted: A } = dt(), [n, a] = g.useState(0);
|
|
10782
|
-
return /* @__PURE__ */ l(
|
|
10784
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
10783
10785
|
(e || A) && /* @__PURE__ */ t(bg, { setTabValue: a, sx: { mt: -24 } }),
|
|
10784
10786
|
/* @__PURE__ */ l(
|
|
10785
10787
|
_A,
|
|
@@ -10816,7 +10818,7 @@ const lo = ({
|
|
|
10816
10818
|
title: "Debt Details",
|
|
10817
10819
|
close_debt_details_aria: ""
|
|
10818
10820
|
}, Tg = ({ isOpen: e, onClose: A, sx: n }) => {
|
|
10819
|
-
const { showError: a, showCompleted: r } = dt(), i = a || r ? /* @__PURE__ */ t(
|
|
10821
|
+
const { showError: a, showCompleted: r } = dt(), i = a || r ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ t(hg, {});
|
|
10820
10822
|
return /* @__PURE__ */ l(
|
|
10821
10823
|
re,
|
|
10822
10824
|
{
|
|
@@ -10890,7 +10892,7 @@ const _g = ({
|
|
|
10890
10892
|
onHoverRow: a,
|
|
10891
10893
|
onClickRow: r
|
|
10892
10894
|
}) => {
|
|
10893
|
-
const i = GA(), { onEvent: o } =
|
|
10895
|
+
const i = GA(), { onEvent: o } = ee(), [s, c] = g.useState([
|
|
10894
10896
|
{ field: "priority", sort: "asc" }
|
|
10895
10897
|
]), d = [
|
|
10896
10898
|
{
|
|
@@ -10949,7 +10951,7 @@ const _g = ({
|
|
|
10949
10951
|
field: "projected_payoff_date",
|
|
10950
10952
|
headerName: "Final Payment",
|
|
10951
10953
|
renderHeader: jA,
|
|
10952
|
-
valueFormatter: (C) => C ? ne(C,
|
|
10954
|
+
valueFormatter: (C) => C ? ne(C, $.MONTH_SHORT_YEAR) : "",
|
|
10953
10955
|
sortable: !0,
|
|
10954
10956
|
hideSortIcons: !0,
|
|
10955
10957
|
type: "number",
|
|
@@ -11130,7 +11132,7 @@ const _g = ({
|
|
|
11130
11132
|
unnamed_label: "Unnamed Debt"
|
|
11131
11133
|
};
|
|
11132
11134
|
function Hg(e, A) {
|
|
11133
|
-
const n = e.filter((i) => i.account_type ===
|
|
11135
|
+
const n = e.filter((i) => i.account_type === Y.CHECKING_LINE_OF_CREDIT ? Number(i.balance) <= 0 : i.is_excluded_from_debts !== !0), a = A.filter((i) => n.some((o) => o.guid === i.account_guid)).map(
|
|
11134
11136
|
(i) => Kr(n.find((o) => o.guid === i.account_guid), i)
|
|
11135
11137
|
), r = n.filter((i) => !a.some((o) => o.account.guid === i.guid)).map((i) => Kr(i));
|
|
11136
11138
|
return [...a, ...r];
|
|
@@ -11244,7 +11246,7 @@ function qg(e, A) {
|
|
|
11244
11246
|
let n = A.current_amount / A.amount;
|
|
11245
11247
|
n > 1 && (n = 1);
|
|
11246
11248
|
let a = "chart.chart1", r = "common.black";
|
|
11247
|
-
A.track_type ===
|
|
11249
|
+
A.track_type === J.DEBT_TRACK ? (r = "common.white", a = "chart.chart5") : A.track_type === J.RETIREMENT_TRACK && (a = "chart.chart6");
|
|
11248
11250
|
const i = {
|
|
11249
11251
|
style: "percent",
|
|
11250
11252
|
minimumFractionDigits: 0,
|
|
@@ -11254,7 +11256,7 @@ function qg(e, A) {
|
|
|
11254
11256
|
bn(n, i)
|
|
11255
11257
|
), c = P(
|
|
11256
11258
|
e.goal_projection,
|
|
11257
|
-
ne(o,
|
|
11259
|
+
ne(o, $.MONTH_SHORT_YEAR)
|
|
11258
11260
|
);
|
|
11259
11261
|
return {
|
|
11260
11262
|
backgroundColor: a,
|
|
@@ -11297,7 +11299,7 @@ function kg(e) {
|
|
|
11297
11299
|
},
|
|
11298
11300
|
{ icon: "payments", label: e.saving_goal_other, metaType: eA.OTHER }
|
|
11299
11301
|
],
|
|
11300
|
-
type:
|
|
11302
|
+
type: J.SAVINGS_TRACK
|
|
11301
11303
|
},
|
|
11302
11304
|
{
|
|
11303
11305
|
bgcolor: "chart.chart5",
|
|
@@ -11305,7 +11307,7 @@ function kg(e) {
|
|
|
11305
11307
|
label: e.debt_goal_label,
|
|
11306
11308
|
description: e.debt_goal_description,
|
|
11307
11309
|
subTypes: [],
|
|
11308
|
-
type:
|
|
11310
|
+
type: J.DEBT_TRACK
|
|
11309
11311
|
},
|
|
11310
11312
|
{
|
|
11311
11313
|
bgcolor: "chart.chart6",
|
|
@@ -11313,7 +11315,7 @@ function kg(e) {
|
|
|
11313
11315
|
label: e.retirement_goal_label,
|
|
11314
11316
|
description: e.retirement_goal_description,
|
|
11315
11317
|
subTypes: [],
|
|
11316
|
-
type:
|
|
11318
|
+
type: J.RETIREMENT_TRACK
|
|
11317
11319
|
}
|
|
11318
11320
|
];
|
|
11319
11321
|
}
|
|
@@ -11332,7 +11334,7 @@ const mo = T(
|
|
|
11332
11334
|
}
|
|
11333
11335
|
];
|
|
11334
11336
|
let u = /* @__PURE__ */ t(Ds, {});
|
|
11335
|
-
return e.track_type ===
|
|
11337
|
+
return e.track_type === J.DEBT_TRACK ? u = /* @__PURE__ */ t(xs, {}) : e.track_type === J.RETIREMENT_TRACK && (u = /* @__PURE__ */ t(Os, {})), /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Ci, { disabled: !n, onClick: n, children: [
|
|
11336
11338
|
/* @__PURE__ */ t(
|
|
11337
11339
|
FA,
|
|
11338
11340
|
{
|
|
@@ -11356,11 +11358,11 @@ const mo = T(
|
|
|
11356
11358
|
), Gg = T(({ trackType: e }) => {
|
|
11357
11359
|
const { goals: A } = L(), { setAlert: n, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: r } = Ue(), i = g.useMemo(() => {
|
|
11358
11360
|
let d = 0;
|
|
11359
|
-
return e ===
|
|
11361
|
+
return e === J.SAVINGS_TRACK ? d = a?.amount_allocated_for_savings_goals || 0 : e === J.DEBT_TRACK ? d = a?.amount_allocated_for_debt_goals || 0 : e === J.RETIREMENT_TRACK && (d = a?.amount_allocated_for_retirement_goals || 0), d;
|
|
11360
11362
|
}, [a]), [o, s] = g.useState(i), c = async () => {
|
|
11361
11363
|
if (a) {
|
|
11362
11364
|
const d = { ...a };
|
|
11363
|
-
e ===
|
|
11365
|
+
e === J.SAVINGS_TRACK ? d.amount_allocated_for_savings_goals = o : e === J.DEBT_TRACK ? d.amount_allocated_for_debt_goals = o : e === J.RETIREMENT_TRACK && (d.amount_allocated_for_retirement_goals = o), await r(d), n(A.alert_contribution_updated);
|
|
11364
11366
|
}
|
|
11365
11367
|
};
|
|
11366
11368
|
return /* @__PURE__ */ t(y, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
|
@@ -11401,7 +11403,7 @@ const mo = T(
|
|
|
11401
11403
|
A.goal_projection,
|
|
11402
11404
|
ne(
|
|
11403
11405
|
Le(f.projected_to_complete_at || 0),
|
|
11404
|
-
|
|
11406
|
+
$.MONTH_SHORT_YEAR
|
|
11405
11407
|
)
|
|
11406
11408
|
) })
|
|
11407
11409
|
] });
|
|
@@ -11433,7 +11435,7 @@ const mo = T(
|
|
|
11433
11435
|
await a(s), r(A.alert_goals_reordered), o(!1);
|
|
11434
11436
|
};
|
|
11435
11437
|
return /* @__PURE__ */ l(y, { children: [
|
|
11436
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(ae, { onClick: () => o(!0), children: /* @__PURE__ */ t(
|
|
11438
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(ae, { onClick: () => o(!0), children: /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(
|
|
11437
11439
|
y,
|
|
11438
11440
|
{
|
|
11439
11441
|
alignItems: "center",
|
|
@@ -11485,7 +11487,7 @@ const mo = T(
|
|
|
11485
11487
|
}, Xg = ({ goal: e, index: A }) => {
|
|
11486
11488
|
const { goals: n } = L();
|
|
11487
11489
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { children: [
|
|
11488
|
-
e.track_type !==
|
|
11490
|
+
e.track_type !== J.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
11489
11491
|
be,
|
|
11490
11492
|
{
|
|
11491
11493
|
sx: {
|
|
@@ -11497,14 +11499,14 @@ const mo = T(
|
|
|
11497
11499
|
children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: A + 1 }) })
|
|
11498
11500
|
}
|
|
11499
11501
|
),
|
|
11500
|
-
/* @__PURE__ */ t(
|
|
11502
|
+
/* @__PURE__ */ t(Z, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11501
11503
|
/* @__PURE__ */ l(y, { children: [
|
|
11502
11504
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
11503
11505
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: P(
|
|
11504
11506
|
n.goal_projection,
|
|
11505
11507
|
ne(
|
|
11506
11508
|
Le(e.projected_to_complete_at || 0),
|
|
11507
|
-
|
|
11509
|
+
$.MONTH_SHORT_YEAR
|
|
11508
11510
|
)
|
|
11509
11511
|
) })
|
|
11510
11512
|
] }),
|
|
@@ -11515,14 +11517,14 @@ const mo = T(
|
|
|
11515
11517
|
const { goals: A } = L();
|
|
11516
11518
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { children: [
|
|
11517
11519
|
/* @__PURE__ */ t(be, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(_s, { color: "success", filled: !0, size: 20 }) }),
|
|
11518
|
-
/* @__PURE__ */ t(
|
|
11520
|
+
/* @__PURE__ */ t(Z, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11519
11521
|
/* @__PURE__ */ l(y, { children: [
|
|
11520
11522
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
11521
11523
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: P(
|
|
11522
11524
|
A.completed_label,
|
|
11523
11525
|
ne(
|
|
11524
11526
|
Le(e.completed_at || 0),
|
|
11525
|
-
|
|
11527
|
+
$.MONTH_SHORT_YEAR
|
|
11526
11528
|
)
|
|
11527
11529
|
) })
|
|
11528
11530
|
] }),
|
|
@@ -11532,7 +11534,7 @@ const mo = T(
|
|
|
11532
11534
|
}, Ug = ({ trackType: e }) => {
|
|
11533
11535
|
const { goals: A, common: n } = L(), { orderedGoals: a } = Ue(), r = a.filter((C) => C.track_type === e), i = r.filter((C) => !C.is_complete), o = r.filter((C) => C.is_complete), [s, c] = g.useState(!1);
|
|
11534
11536
|
let d = A.manage_saving_goals, u = A.manage_saving_drawer_title, h = A.manage_saving_title, m = A.manage_saving_description;
|
|
11535
|
-
return e ===
|
|
11537
|
+
return e === J.DEBT_TRACK ? (d = A.manage_debt_goals, u = A.manage_debt_drawer_title, h = A.manage_debt_title, m = A.manage_debt_description) : e === J.RETIREMENT_TRACK && (d = A.manage_retirement_goals, u = A.manage_retirement_drawer_title, h = A.manage_retirement_title, m = A.manage_retirement_description), /* @__PURE__ */ l(y, { children: [
|
|
11536
11538
|
/* @__PURE__ */ t(oe, { endIcon: /* @__PURE__ */ t(wA, {}), onClick: () => c(!0), children: d }),
|
|
11537
11539
|
/* @__PURE__ */ t(
|
|
11538
11540
|
re,
|
|
@@ -11549,20 +11551,20 @@ const mo = T(
|
|
|
11549
11551
|
/* @__PURE__ */ t(Gg, { trackType: e }),
|
|
11550
11552
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.goal_priority }),
|
|
11551
11553
|
/* @__PURE__ */ l(Ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
11552
|
-
i.map((C, f) => /* @__PURE__ */ t(Xg, { goal: C, index: f }, C.guid)),
|
|
11553
|
-
/* @__PURE__ */ t(H, { variant: e !==
|
|
11554
|
-
e !==
|
|
11554
|
+
i.map((C, f) => /* @__PURE__ */ t(Xg, { goal: C, index: f }, `ongoing-${C.guid}`)),
|
|
11555
|
+
/* @__PURE__ */ t(H, { variant: e !== J.RETIREMENT_TRACK ? "inset" : "fullWidth" }),
|
|
11556
|
+
e !== J.RETIREMENT_TRACK && /* @__PURE__ */ t(Fg, { goals: i })
|
|
11555
11557
|
] }),
|
|
11556
|
-
e !==
|
|
11558
|
+
e !== J.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { children: [
|
|
11557
11559
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: A.complete_title }),
|
|
11558
|
-
/* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.paper" }, children: o.map((C) => /* @__PURE__ */ t(jg, { goal: C }, C.guid)) })
|
|
11560
|
+
/* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.paper" }, children: o.map((C) => /* @__PURE__ */ t(jg, { goal: C }, `complete-${C.guid}`)) })
|
|
11559
11561
|
] })
|
|
11560
11562
|
] })
|
|
11561
11563
|
}
|
|
11562
11564
|
)
|
|
11563
11565
|
] });
|
|
11564
11566
|
}, Gn = T(({ trackType: e }) => {
|
|
11565
|
-
const { isMobile: A } = Be(), { goals: n } = L(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((d) => d.track_type === e), o = i.filter((d) => !d.is_complete), s = i.filter((d) => d.is_complete), c = e ===
|
|
11567
|
+
const { isMobile: A } = Be(), { goals: n } = L(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((d) => d.track_type === e), o = i.filter((d) => !d.is_complete), s = i.filter((d) => d.is_complete), c = e === J.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
|
|
11566
11568
|
return /* @__PURE__ */ l(y, { mt: 16, mx: A ? 24 : 0, children: [
|
|
11567
11569
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
11568
11570
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: n.ongoing_title }),
|
|
@@ -11572,7 +11574,7 @@ const mo = T(
|
|
|
11572
11574
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
11573
11575
|
/* @__PURE__ */ t(qA, { xs: A || u === 0 && h.length !== 2 ? 12 : 6, children: /* @__PURE__ */ t(mo, { goal: d, onClick: () => r(d) }, d.guid) }, u)
|
|
11574
11576
|
)) }),
|
|
11575
|
-
e !==
|
|
11577
|
+
e !== J.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
|
|
11576
11578
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
11577
11579
|
s.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(p, { variant: "Small", children: c }) }),
|
|
11578
11580
|
s.map((d) => /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Ci, { onClick: () => r(d), children: /* @__PURE__ */ t(IA, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -11591,13 +11593,13 @@ const mo = T(
|
|
|
11591
11593
|
ae,
|
|
11592
11594
|
{
|
|
11593
11595
|
onClick: h ? () => u(!d) : () => A(
|
|
11594
|
-
c ===
|
|
11595
|
-
c ===
|
|
11596
|
+
c === J.RETIREMENT_TRACK ? n.retirement : "",
|
|
11597
|
+
c === J.RETIREMENT_TRACK ? eA.RETIREMENT : eA.OTHER,
|
|
11596
11598
|
c
|
|
11597
11599
|
),
|
|
11598
11600
|
children: [
|
|
11599
11601
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(Wa, { name: r, sx: { color: "grey.900" } }) }) }),
|
|
11600
|
-
/* @__PURE__ */ t(
|
|
11602
|
+
/* @__PURE__ */ t(Z, { primary: i, secondary: o, sx: { mr: 24 } }),
|
|
11601
11603
|
!h && /* @__PURE__ */ t(wA, {}),
|
|
11602
11604
|
h && (d ? /* @__PURE__ */ t(Ns, {}) : /* @__PURE__ */ t(Ps, {}))
|
|
11603
11605
|
]
|
|
@@ -11607,7 +11609,7 @@ const mo = T(
|
|
|
11607
11609
|
h && /* @__PURE__ */ t(vn, { in: d, children: /* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.default" }, children: s.map((m, C) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(ae, { onClick: () => A(m.label, m.metaType, c), children: [
|
|
11608
11610
|
/* @__PURE__ */ t(nA, { sx: { mr: 8 }, children: /* @__PURE__ */ t(Wa, { name: m.icon }) }),
|
|
11609
11611
|
/* @__PURE__ */ t(
|
|
11610
|
-
|
|
11612
|
+
Z,
|
|
11611
11613
|
{
|
|
11612
11614
|
primary: m.label,
|
|
11613
11615
|
primaryTypographyProps: { variant: "Body" }
|
|
@@ -11651,7 +11653,7 @@ const mo = T(
|
|
|
11651
11653
|
}
|
|
11652
11654
|
) }),
|
|
11653
11655
|
/* @__PURE__ */ t(
|
|
11654
|
-
|
|
11656
|
+
Z,
|
|
11655
11657
|
{
|
|
11656
11658
|
primary: C.name || C.feed_name,
|
|
11657
11659
|
secondary: R(C.balance || 0, "0,0.00")
|
|
@@ -11703,7 +11705,7 @@ const mo = T(
|
|
|
11703
11705
|
);
|
|
11704
11706
|
}, Wg = ({ onClose: e }) => {
|
|
11705
11707
|
const { goals: A } = L(), { addGoal: n, debtGoals: a, setAlert: r, setSelectedGoal: i } = Ue(), { debtAccounts: o } = ve(), [s, c] = g.useState(!1), d = kg(A), u = (m, C, f) => {
|
|
11706
|
-
f ===
|
|
11708
|
+
f === J.DEBT_TRACK ? c(!0) : i({
|
|
11707
11709
|
amount: 0,
|
|
11708
11710
|
current_amount: 0,
|
|
11709
11711
|
goal_type: ea.SAVE_AMOUNT,
|
|
@@ -11715,7 +11717,7 @@ const mo = T(
|
|
|
11715
11717
|
}, h = async (m) => {
|
|
11716
11718
|
for (const C of m) {
|
|
11717
11719
|
let f = eA.CREDIT_CARD;
|
|
11718
|
-
C.account_type ===
|
|
11720
|
+
C.account_type === Y.LOAN ? f = eA.LOANS : C.account_type === Y.LINE_OF_CREDIT && (f = eA.LINE_OF_CREDIT), await n({
|
|
11719
11721
|
account_guid: C.guid,
|
|
11720
11722
|
amount: 0,
|
|
11721
11723
|
current_amount: 0,
|
|
@@ -11725,10 +11727,10 @@ const mo = T(
|
|
|
11725
11727
|
meta_type: f,
|
|
11726
11728
|
monthly_payment: C.minimum_payment || 0,
|
|
11727
11729
|
name: C.name || C.feed_name || "",
|
|
11728
|
-
track_type:
|
|
11730
|
+
track_type: J.DEBT_TRACK
|
|
11729
11731
|
}), r(A.alert_goal_added);
|
|
11730
11732
|
}
|
|
11731
|
-
c(!1), e?.(
|
|
11733
|
+
c(!1), e?.(J.DEBT_TRACK);
|
|
11732
11734
|
};
|
|
11733
11735
|
return /* @__PURE__ */ l(y, { children: [
|
|
11734
11736
|
/* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.paper" }, children: d.map((m, C) => /* @__PURE__ */ t(Qg, { goalType: m, onClick: u }, C)) }),
|
|
@@ -11757,7 +11759,7 @@ const mo = T(
|
|
|
11757
11759
|
}
|
|
11758
11760
|
) }),
|
|
11759
11761
|
/* @__PURE__ */ t(
|
|
11760
|
-
|
|
11762
|
+
Z,
|
|
11761
11763
|
{
|
|
11762
11764
|
primary: e.name || e.feed_name,
|
|
11763
11765
|
secondary: R(e.balance || 0, "0,0.00")
|
|
@@ -11811,7 +11813,7 @@ const mo = T(
|
|
|
11811
11813
|
};
|
|
11812
11814
|
return /* @__PURE__ */ l(y, { children: [
|
|
11813
11815
|
c ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: () => u(!0), children: [
|
|
11814
|
-
/* @__PURE__ */ t(
|
|
11816
|
+
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
11815
11817
|
/* @__PURE__ */ t(li, { filled: !0 }),
|
|
11816
11818
|
r.details_add_account
|
|
11817
11819
|
] }) }),
|
|
@@ -11839,7 +11841,7 @@ const mo = T(
|
|
|
11839
11841
|
}
|
|
11840
11842
|
) }),
|
|
11841
11843
|
/* @__PURE__ */ t(
|
|
11842
|
-
|
|
11844
|
+
Z,
|
|
11843
11845
|
{
|
|
11844
11846
|
primary: m?.name || m?.feed_name,
|
|
11845
11847
|
secondary: R(m?.balance || 0, "0,0.00")
|
|
@@ -11857,7 +11859,7 @@ const mo = T(
|
|
|
11857
11859
|
}
|
|
11858
11860
|
) }),
|
|
11859
11861
|
/* @__PURE__ */ t(
|
|
11860
|
-
|
|
11862
|
+
Z,
|
|
11861
11863
|
{
|
|
11862
11864
|
primary: m?.name || m?.feed_name,
|
|
11863
11865
|
secondary: R(m?.balance || 0, "0,0.00")
|
|
@@ -11944,7 +11946,7 @@ const mo = T(
|
|
|
11944
11946
|
label: A.details_birthday,
|
|
11945
11947
|
onSave: u,
|
|
11946
11948
|
primaryText: A.details_birthday,
|
|
11947
|
-
secondaryText: `${ne(Le(n.birthday ?? 0),
|
|
11949
|
+
secondaryText: `${ne(Le(n.birthday ?? 0), $.MONTH_DAY_YEAR)}`,
|
|
11948
11950
|
zeroStateText: !e.guid && !n.birthday ? A.add_birthday : void 0,
|
|
11949
11951
|
children: /* @__PURE__ */ t(fn, { dateAdapter: Wt, children: /* @__PURE__ */ t(
|
|
11950
11952
|
mi,
|
|
@@ -11984,7 +11986,7 @@ const mo = T(
|
|
|
11984
11986
|
return /* @__PURE__ */ l(y, { children: [
|
|
11985
11987
|
h.map((f) => /* @__PURE__ */ t(po, { account: f }, f.guid)),
|
|
11986
11988
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: () => d(!0), children: [
|
|
11987
|
-
/* @__PURE__ */ t(
|
|
11989
|
+
/* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(y, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
11988
11990
|
/* @__PURE__ */ t(li, { filled: !0 }),
|
|
11989
11991
|
A.details_add_account
|
|
11990
11992
|
] }) }),
|
|
@@ -12007,7 +12009,7 @@ const mo = T(
|
|
|
12007
12009
|
[n, e]
|
|
12008
12010
|
), r = e.track_type;
|
|
12009
12011
|
let i = A.details_save_title;
|
|
12010
|
-
return e.track_type ===
|
|
12012
|
+
return e.track_type === J.DEBT_TRACK ? i = A.details_debt_title : e.track_type === J.RETIREMENT_TRACK && (i = A.details_retirement_title), /* @__PURE__ */ l(y, { children: [
|
|
12011
12013
|
/* @__PURE__ */ l(y, { mx: 24, children: [
|
|
12012
12014
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: i }),
|
|
12013
12015
|
/* @__PURE__ */ t(mo, { goal: e, isInDrawer: !0 }),
|
|
@@ -12016,11 +12018,11 @@ const mo = T(
|
|
|
12016
12018
|
/* @__PURE__ */ l(Ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
12017
12019
|
/* @__PURE__ */ t(Jg, { goal: e }),
|
|
12018
12020
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12019
|
-
(r ===
|
|
12021
|
+
(r === J.SAVINGS_TRACK || r === J.RETIREMENT_TRACK) && /* @__PURE__ */ l(W, { children: [
|
|
12020
12022
|
/* @__PURE__ */ t(Yg, { goal: e }),
|
|
12021
|
-
/* @__PURE__ */ t(H, { variant: r ===
|
|
12023
|
+
/* @__PURE__ */ t(H, { variant: r === J.RETIREMENT_TRACK ? "inset" : "fullWidth" })
|
|
12022
12024
|
] }),
|
|
12023
|
-
e.track_type ===
|
|
12025
|
+
e.track_type === J.DEBT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12024
12026
|
/* @__PURE__ */ t(ho, { goal: e }),
|
|
12025
12027
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12026
12028
|
/* @__PURE__ */ t(uo, { goal: e }),
|
|
@@ -12028,23 +12030,23 @@ const mo = T(
|
|
|
12028
12030
|
/* @__PURE__ */ t(go, { goal: e }),
|
|
12029
12031
|
/* @__PURE__ */ t(H, { variant: "fullWidth" })
|
|
12030
12032
|
] }),
|
|
12031
|
-
e.track_type ===
|
|
12033
|
+
e.track_type === J.RETIREMENT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12032
12034
|
/* @__PURE__ */ t(Zg, { goal: e }),
|
|
12033
12035
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12034
12036
|
/* @__PURE__ */ t($g, { goal: e }),
|
|
12035
12037
|
/* @__PURE__ */ t(H, { variant: "fullWidth" })
|
|
12036
12038
|
] })
|
|
12037
12039
|
] }),
|
|
12038
|
-
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type ===
|
|
12039
|
-
a && /* @__PURE__ */ l(
|
|
12040
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type === J.RETIREMENT_TRACK ? A.details_accounts : A.details_account }),
|
|
12041
|
+
a && /* @__PURE__ */ l(W, { children: [
|
|
12040
12042
|
/* @__PURE__ */ t(po, { account: a }),
|
|
12041
12043
|
/* @__PURE__ */ t(H, {})
|
|
12042
12044
|
] }),
|
|
12043
|
-
e.track_type ===
|
|
12045
|
+
e.track_type === J.RETIREMENT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12044
12046
|
/* @__PURE__ */ t(e1, { goal: e }),
|
|
12045
12047
|
/* @__PURE__ */ t(H, {})
|
|
12046
12048
|
] }),
|
|
12047
|
-
e.track_type ===
|
|
12049
|
+
e.track_type === J.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Vg, { goal: e })
|
|
12048
12050
|
] });
|
|
12049
12051
|
}), t1 = T(({ onClose: e }) => {
|
|
12050
12052
|
const { goals: A, common: n } = L(), {
|
|
@@ -12056,16 +12058,16 @@ const mo = T(
|
|
|
12056
12058
|
setAlert: c,
|
|
12057
12059
|
setSelectedGoal: d,
|
|
12058
12060
|
updateGoal: u
|
|
12059
|
-
} = Ue(), { user: h } = St(), [m, C] = g.useState(!1), f = !s?.guid, v = s?.track_type ===
|
|
12061
|
+
} = Ue(), { user: h } = St(), [m, C] = g.useState(!1), f = !s?.guid, v = s?.track_type === J.SAVINGS_TRACK && s.current_amount >= s.amount, E = g.useMemo(() => s ? s.track_type === J.SAVINGS_TRACK ? !!s.name && !!s.amount : s.track_type === J.DEBT_TRACK ? !0 : s.track_type === J.RETIREMENT_TRACK ? !!s.name && !!s.amount && !!s.retirement_age && !!h.birthday : !0 : !1, [s]);
|
|
12060
12062
|
let I = n.delete_button, S = () => C(!0);
|
|
12061
12063
|
f ? (S = () => w(), I = n.save_button) : v && (S = () => _(), I = A.mark_as_complete_button);
|
|
12062
12064
|
const w = async () => {
|
|
12063
12065
|
if (s) {
|
|
12064
12066
|
const O = s.track_type;
|
|
12065
|
-
O !==
|
|
12067
|
+
O !== J.RETIREMENT_TRACK ? await a(s) : O === J.RETIREMENT_TRACK && await r({ ...s, target_amount: s.amount }), c(A.alert_goal_added), d(void 0), O && e?.(O);
|
|
12066
12068
|
}
|
|
12067
12069
|
}, D = async () => {
|
|
12068
|
-
s && (s.track_type !==
|
|
12070
|
+
s && (s.track_type !== J.RETIREMENT_TRACK ? await i(s.guid) : s.track_type === J.RETIREMENT_TRACK && await o(s), c(A.alert_goal_deleted), d(void 0));
|
|
12069
12071
|
}, _ = async () => {
|
|
12070
12072
|
const O = {
|
|
12071
12073
|
...s,
|
|
@@ -12105,7 +12107,7 @@ const mo = T(
|
|
|
12105
12107
|
)
|
|
12106
12108
|
] });
|
|
12107
12109
|
}), R8 = T(({ onBackClick: e, sx: A }) => {
|
|
12108
|
-
const { onEvent: n } =
|
|
12110
|
+
const { onEvent: n } = ee(), { isMobile: a } = Be(), { accounts: r } = ve(), { isInitialized: i, setSelectedAccounts: o } = ye(), { goals: s, common: c } = L(), { alert: d, loadGoals: u, monthlyCashFlowProfile: h, setAlert: m } = Ue(), [C, f] = g.useState(0), [v, E] = g.useState(!1), I = h?.amount_allocated_for_savings_goals || 0, S = h?.amount_allocated_for_debt_goals || 0, w = h?.amount_allocated_for_retirement_goals || 0, D = P(
|
|
12109
12111
|
a ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
12110
12112
|
R(I, "0,0")
|
|
12111
12113
|
), _ = P(
|
|
@@ -12125,7 +12127,7 @@ const mo = T(
|
|
|
12125
12127
|
}, z = () => {
|
|
12126
12128
|
E(!0), n(G.GOALS_CLICK_ADD);
|
|
12127
12129
|
}, K = (q) => {
|
|
12128
|
-
E(!1), q ===
|
|
12130
|
+
E(!1), q === J.SAVINGS_TRACK ? f(0) : q === J.DEBT_TRACK ? f(1) : q === J.RETIREMENT_TRACK && f(2);
|
|
12129
12131
|
};
|
|
12130
12132
|
return /* @__PURE__ */ l(
|
|
12131
12133
|
pA,
|
|
@@ -12164,9 +12166,9 @@ const mo = T(
|
|
|
12164
12166
|
]
|
|
12165
12167
|
}
|
|
12166
12168
|
),
|
|
12167
|
-
C === 0 && /* @__PURE__ */ t(Gn, { trackType:
|
|
12168
|
-
C === 1 && /* @__PURE__ */ t(Gn, { trackType:
|
|
12169
|
-
C === 2 && /* @__PURE__ */ t(Gn, { trackType:
|
|
12169
|
+
C === 0 && /* @__PURE__ */ t(Gn, { trackType: J.SAVINGS_TRACK }),
|
|
12170
|
+
C === 1 && /* @__PURE__ */ t(Gn, { trackType: J.DEBT_TRACK }),
|
|
12171
|
+
C === 2 && /* @__PURE__ */ t(Gn, { trackType: J.RETIREMENT_TRACK })
|
|
12170
12172
|
] }),
|
|
12171
12173
|
/* @__PURE__ */ t(t1, { onClose: K }),
|
|
12172
12174
|
/* @__PURE__ */ t(
|
|
@@ -12212,12 +12214,18 @@ class n1 {
|
|
|
12212
12214
|
return this.goals.slice().sort((A, n) => A.position - n.position);
|
|
12213
12215
|
}
|
|
12214
12216
|
get debtGoals() {
|
|
12215
|
-
return this.orderedGoals.filter((A) => A.track_type ===
|
|
12217
|
+
return this.orderedGoals.filter((A) => A.track_type === J.DEBT_TRACK);
|
|
12218
|
+
}
|
|
12219
|
+
get retirmentGoals() {
|
|
12220
|
+
return this.orderedGoals.filter((A) => A.track_type === J.RETIREMENT_TRACK);
|
|
12221
|
+
}
|
|
12222
|
+
get savingGoals() {
|
|
12223
|
+
return this.orderedGoals.filter((A) => A.track_type === J.SAVINGS_TRACK);
|
|
12216
12224
|
}
|
|
12217
12225
|
addGoal = async (A) => {
|
|
12218
12226
|
try {
|
|
12219
12227
|
const n = await this.api.addGoal(A);
|
|
12220
|
-
|
|
12228
|
+
Q(() => {
|
|
12221
12229
|
this.goals = [...this.goals, n];
|
|
12222
12230
|
});
|
|
12223
12231
|
} catch (n) {
|
|
@@ -12231,7 +12239,7 @@ class n1 {
|
|
|
12231
12239
|
const i = await this.api.addRetirementGoalAccount(r);
|
|
12232
12240
|
a.push(i);
|
|
12233
12241
|
}
|
|
12234
|
-
this.setNewRetirementGoalAccounts([]),
|
|
12242
|
+
this.setNewRetirementGoalAccounts([]), Q(() => {
|
|
12235
12243
|
this.goals = [...this.goals, n], this.retirementGoalAccounts = a;
|
|
12236
12244
|
});
|
|
12237
12245
|
} catch (n) {
|
|
@@ -12241,7 +12249,7 @@ class n1 {
|
|
|
12241
12249
|
addRetirementGoalAccount = async (A) => {
|
|
12242
12250
|
try {
|
|
12243
12251
|
const n = await this.api.addRetirementGoalAccount(A);
|
|
12244
|
-
|
|
12252
|
+
Q(() => {
|
|
12245
12253
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, n];
|
|
12246
12254
|
});
|
|
12247
12255
|
} catch (n) {
|
|
@@ -12257,10 +12265,10 @@ class n1 {
|
|
|
12257
12265
|
...s,
|
|
12258
12266
|
amount: s.target_amount,
|
|
12259
12267
|
name: A.retirement,
|
|
12260
|
-
track_type:
|
|
12268
|
+
track_type: J.RETIREMENT_TRACK
|
|
12261
12269
|
}))
|
|
12262
12270
|
];
|
|
12263
|
-
|
|
12271
|
+
Q(() => {
|
|
12264
12272
|
this.goals = o, this.retirementGoalAccounts = r, this.monthlyCashFlowProfile = i;
|
|
12265
12273
|
});
|
|
12266
12274
|
} catch (n) {
|
|
@@ -12269,7 +12277,7 @@ class n1 {
|
|
|
12269
12277
|
};
|
|
12270
12278
|
deleteGoal = async (A) => {
|
|
12271
12279
|
try {
|
|
12272
|
-
await this.api.removeGoal(A),
|
|
12280
|
+
await this.api.removeGoal(A), Q(() => {
|
|
12273
12281
|
const n = this.goals.findIndex((a) => a.guid === A);
|
|
12274
12282
|
n >= 0 && this.goals.splice(n, 1);
|
|
12275
12283
|
});
|
|
@@ -12284,7 +12292,7 @@ class n1 {
|
|
|
12284
12292
|
);
|
|
12285
12293
|
for (const a of n)
|
|
12286
12294
|
await this.deleteRetirementGoalAccount(a.guid);
|
|
12287
|
-
await this.api.removeRetirementGoalAccount(A.guid),
|
|
12295
|
+
await this.api.removeRetirementGoalAccount(A.guid), Q(() => {
|
|
12288
12296
|
const a = this.goals.findIndex((r) => r.guid === A.guid);
|
|
12289
12297
|
a >= 0 && this.goals.splice(a, 1);
|
|
12290
12298
|
});
|
|
@@ -12294,7 +12302,7 @@ class n1 {
|
|
|
12294
12302
|
};
|
|
12295
12303
|
deleteRetirementGoalAccount = async (A) => {
|
|
12296
12304
|
try {
|
|
12297
|
-
await this.api.removeRetirementGoalAccount(A),
|
|
12305
|
+
await this.api.removeRetirementGoalAccount(A), Q(() => {
|
|
12298
12306
|
const n = this.retirementGoalAccounts.findIndex((a) => a.guid === A);
|
|
12299
12307
|
n >= 0 && this.retirementGoalAccounts.splice(n, 1);
|
|
12300
12308
|
});
|
|
@@ -12305,7 +12313,7 @@ class n1 {
|
|
|
12305
12313
|
reorderGoals = async (A) => {
|
|
12306
12314
|
try {
|
|
12307
12315
|
const n = await this.api.reorderGoals(A);
|
|
12308
|
-
|
|
12316
|
+
Q(() => {
|
|
12309
12317
|
for (const a of n) {
|
|
12310
12318
|
const r = this.goals.findIndex((i) => i.guid === a.guid);
|
|
12311
12319
|
r >= 0 && (this.goals[r].position = a.position);
|
|
@@ -12323,7 +12331,7 @@ class n1 {
|
|
|
12323
12331
|
updateGoal = async (A) => {
|
|
12324
12332
|
try {
|
|
12325
12333
|
const n = await this.api.updateGoal(A);
|
|
12326
|
-
|
|
12334
|
+
Q(() => {
|
|
12327
12335
|
const a = this.goals.findIndex((r) => r.guid === A.guid);
|
|
12328
12336
|
a >= 0 && (this.goals[a] = n), this.selectedGoal?.guid === A.guid && this.setSelectedGoal(n);
|
|
12329
12337
|
});
|
|
@@ -12334,7 +12342,7 @@ class n1 {
|
|
|
12334
12342
|
updateMonthlyCashFlowProfile = async (A) => {
|
|
12335
12343
|
try {
|
|
12336
12344
|
const n = await this.api.updateMonthlyCashFlowProfile(A);
|
|
12337
|
-
|
|
12345
|
+
Q(() => {
|
|
12338
12346
|
this.monthlyCashFlowProfile = n;
|
|
12339
12347
|
});
|
|
12340
12348
|
} catch (n) {
|
|
@@ -12590,18 +12598,16 @@ const a1 = [
|
|
|
12590
12598
|
}
|
|
12591
12599
|
]
|
|
12592
12600
|
}
|
|
12593
|
-
], r1 = (e, A) => e.flags ? e.flags.every((n) => A[n]) : !1, i1 = (e) => a1.filter((A) => r1(A, e));
|
|
12601
|
+
], r1 = (e, A) => e.guid === "general" ? !0 : e.flags ? e.flags.every((n) => A[n]) : !1, i1 = (e) => a1.filter((A) => r1(A, e));
|
|
12594
12602
|
class o1 {
|
|
12595
12603
|
appConfig;
|
|
12596
12604
|
globalStore;
|
|
12597
12605
|
constructor(A) {
|
|
12598
12606
|
this.globalStore = A, De(this);
|
|
12599
12607
|
}
|
|
12600
|
-
|
|
12608
|
+
loadAppConfig = (A) => this.appConfig = A;
|
|
12601
12609
|
get helpCategories() {
|
|
12602
|
-
const {
|
|
12603
|
-
appData: { client_communication_profile: A, client_profile: n }
|
|
12604
|
-
} = this.globalStore.appDataStore;
|
|
12610
|
+
const { client_communication_profile: A, client_profile: n } = this.globalStore.appDataStore.appData;
|
|
12605
12611
|
return i1({
|
|
12606
12612
|
...A,
|
|
12607
12613
|
...n,
|
|
@@ -12653,7 +12659,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
|
|
|
12653
12659
|
children: [
|
|
12654
12660
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ae, { onClick: () => c(C.guid), children: [
|
|
12655
12661
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(et, { categoryGuid: "", merchantGuid: C.guid }) }),
|
|
12656
|
-
/* @__PURE__ */ t(
|
|
12662
|
+
/* @__PURE__ */ t(Z, { primary: C.name })
|
|
12657
12663
|
] }) }),
|
|
12658
12664
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } })
|
|
12659
12665
|
]
|
|
@@ -12691,13 +12697,13 @@ class d1 {
|
|
|
12691
12697
|
loadMerchants = async (A = "") => {
|
|
12692
12698
|
this.isLoading = !0;
|
|
12693
12699
|
const n = await this.api.getMerchants([A]);
|
|
12694
|
-
|
|
12700
|
+
Q(() => {
|
|
12695
12701
|
this.merchants = n, this.isLoading = !1;
|
|
12696
12702
|
});
|
|
12697
12703
|
};
|
|
12698
12704
|
loadMerchantByGuid = async (A) => {
|
|
12699
12705
|
const n = await this.api.getMerchantByGuid(A);
|
|
12700
|
-
|
|
12706
|
+
Q(() => this.merchant = n);
|
|
12701
12707
|
};
|
|
12702
12708
|
}
|
|
12703
12709
|
const fo = 13, u1 = (e, A) => e.filter((n) => {
|
|
@@ -12793,7 +12799,7 @@ class v1 {
|
|
|
12793
12799
|
const n = this.globalStore.accountStore.members, a = u1(A, n), i = await (await Promise.all(
|
|
12794
12800
|
a.map((o) => this.globalStore.accountStore.api.getMonthlyAccountBalances(o.guid))
|
|
12795
12801
|
)).reduce(h1, []).sort(g1);
|
|
12796
|
-
|
|
12802
|
+
Q(() => {
|
|
12797
12803
|
this.netWorthData = {
|
|
12798
12804
|
accounts: a,
|
|
12799
12805
|
monthlyAccountBalances: i
|
|
@@ -12806,7 +12812,7 @@ class v1 {
|
|
|
12806
12812
|
loadChartData = async (A) => {
|
|
12807
12813
|
try {
|
|
12808
12814
|
const { accounts: n, monthlyAccountBalances: a } = this.netWorthData, r = await C1(n, a, A), i = Fr(r);
|
|
12809
|
-
|
|
12815
|
+
Q(() => {
|
|
12810
12816
|
this.netWorthChartData = r, this.selectedData = i;
|
|
12811
12817
|
});
|
|
12812
12818
|
} catch (n) {
|
|
@@ -12829,12 +12835,12 @@ class v1 {
|
|
|
12829
12835
|
};
|
|
12830
12836
|
}
|
|
12831
12837
|
setSelectedData = (A) => {
|
|
12832
|
-
|
|
12838
|
+
Q(() => {
|
|
12833
12839
|
this.selectedData = this.netWorthChartData[A];
|
|
12834
12840
|
});
|
|
12835
12841
|
};
|
|
12836
12842
|
setHoveredData = (A) => {
|
|
12837
|
-
|
|
12843
|
+
Q(() => {
|
|
12838
12844
|
this.hoveredData = A !== null ? this.netWorthChartData[A] : void 0;
|
|
12839
12845
|
});
|
|
12840
12846
|
};
|
|
@@ -12903,7 +12909,7 @@ const y1 = ({
|
|
|
12903
12909
|
onMouseLeave: () => o(),
|
|
12904
12910
|
sx: { minHeight: 44 },
|
|
12905
12911
|
children: /* @__PURE__ */ t(
|
|
12906
|
-
|
|
12912
|
+
Z,
|
|
12907
12913
|
{
|
|
12908
12914
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
12909
12915
|
/* @__PURE__ */ t(p, { variant: "Body", children: Di(e.x) }),
|
|
@@ -12994,11 +13000,11 @@ const y1 = ({
|
|
|
12994
13000
|
] });
|
|
12995
13001
|
}, D1 = T(L1), x1 = ({ accounts: e, name: A, icon: n }) => {
|
|
12996
13002
|
const [a, r] = g.useState(!1);
|
|
12997
|
-
return /* @__PURE__ */ l(
|
|
13003
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
12998
13004
|
/* @__PURE__ */ t(j, { sx: (i) => ({ backgroundColor: i.palette.background.paper }), children: /* @__PURE__ */ l(ae, { onClick: () => r(!a), children: [
|
|
12999
13005
|
n && /* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: n, size: 24, sx: { mr: 12 } }) }),
|
|
13000
13006
|
/* @__PURE__ */ t(
|
|
13001
|
-
|
|
13007
|
+
Z,
|
|
13002
13008
|
{
|
|
13003
13009
|
primary: /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Body", children: A })
|
|
13004
13010
|
}
|
|
@@ -13008,7 +13014,7 @@ const y1 = ({
|
|
|
13008
13014
|
/* @__PURE__ */ t(H, {}),
|
|
13009
13015
|
/* @__PURE__ */ t(vn, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((i, o) => /* @__PURE__ */ l(Ae, { children: [
|
|
13010
13016
|
/* @__PURE__ */ t(j, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
|
13011
|
-
|
|
13017
|
+
Z,
|
|
13012
13018
|
{
|
|
13013
13019
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13014
13020
|
/* @__PURE__ */ t(p, { variant: "Body", children: i.accountName }),
|
|
@@ -13020,7 +13026,7 @@ const y1 = ({
|
|
|
13020
13026
|
o < e.length - 1 ? /* @__PURE__ */ t(H, { variant: "inset" }) : /* @__PURE__ */ t(H, {})
|
|
13021
13027
|
] }, i.accountName)) })
|
|
13022
13028
|
] });
|
|
13023
|
-
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(
|
|
13029
|
+
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(W, { children: e.map(({ accounts: A, icon: n, name: a }) => /* @__PURE__ */ t(x1, { accounts: A, icon: n, name: a }, a)) }), O1 = ({
|
|
13024
13030
|
netWorth: e,
|
|
13025
13031
|
assets: A,
|
|
13026
13032
|
liabilities: n,
|
|
@@ -13028,7 +13034,7 @@ const y1 = ({
|
|
|
13028
13034
|
totalLiabilities: r
|
|
13029
13035
|
}) => {
|
|
13030
13036
|
const { net_worth: i } = L(), o = fe();
|
|
13031
|
-
return /* @__PURE__ */ l(
|
|
13037
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13032
13038
|
/* @__PURE__ */ l(
|
|
13033
13039
|
N,
|
|
13034
13040
|
{
|
|
@@ -13057,7 +13063,7 @@ const y1 = ({
|
|
|
13057
13063
|
),
|
|
13058
13064
|
/* @__PURE__ */ l(Ae, { children: [
|
|
13059
13065
|
/* @__PURE__ */ t(SA, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
13060
|
-
|
|
13066
|
+
Z,
|
|
13061
13067
|
{
|
|
13062
13068
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
|
13063
13069
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: i.assets }),
|
|
@@ -13067,7 +13073,7 @@ const y1 = ({
|
|
|
13067
13073
|
) }),
|
|
13068
13074
|
/* @__PURE__ */ t(jr, { groupedAccounts: Xr(A) }),
|
|
13069
13075
|
/* @__PURE__ */ t(SA, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
13070
|
-
|
|
13076
|
+
Z,
|
|
13071
13077
|
{
|
|
13072
13078
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
|
13073
13079
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: i.liabilities }),
|
|
@@ -13086,7 +13092,7 @@ const y1 = ({
|
|
|
13086
13092
|
totalLosses: r
|
|
13087
13093
|
}) => {
|
|
13088
13094
|
const { net_worth: i } = L(), o = fe();
|
|
13089
|
-
return /* @__PURE__ */ l(
|
|
13095
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13090
13096
|
/* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13091
13097
|
/* @__PURE__ */ t(p, { variant: "Small", children: Di(e?.x) }),
|
|
13092
13098
|
/* @__PURE__ */ t(p, { variant: "Body", children: i.total_change }),
|
|
@@ -13094,7 +13100,7 @@ const y1 = ({
|
|
|
13094
13100
|
] }),
|
|
13095
13101
|
/* @__PURE__ */ l(Ae, { children: [
|
|
13096
13102
|
/* @__PURE__ */ t(SA, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
13097
|
-
|
|
13103
|
+
Z,
|
|
13098
13104
|
{
|
|
13099
13105
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
|
13100
13106
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: i.gains }),
|
|
@@ -13104,7 +13110,7 @@ const y1 = ({
|
|
|
13104
13110
|
) }),
|
|
13105
13111
|
A?.map((s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
13106
13112
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: o.palette.background.paper, py: 14 }, children: /* @__PURE__ */ t(
|
|
13107
|
-
|
|
13113
|
+
Z,
|
|
13108
13114
|
{
|
|
13109
13115
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13110
13116
|
/* @__PURE__ */ t(p, { variant: "Body", children: s.accountName }),
|
|
@@ -13123,7 +13129,7 @@ const y1 = ({
|
|
|
13123
13129
|
/* @__PURE__ */ t(H, {})
|
|
13124
13130
|
] }, s.accountName)),
|
|
13125
13131
|
/* @__PURE__ */ t(SA, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
13126
|
-
|
|
13132
|
+
Z,
|
|
13127
13133
|
{
|
|
13128
13134
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
|
13129
13135
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: i.losses }),
|
|
@@ -13131,13 +13137,13 @@ const y1 = ({
|
|
|
13131
13137
|
] })
|
|
13132
13138
|
}
|
|
13133
13139
|
) }),
|
|
13134
|
-
n?.map((s) => /* @__PURE__ */ l(
|
|
13140
|
+
n?.map((s) => /* @__PURE__ */ l(W, { children: [
|
|
13135
13141
|
/* @__PURE__ */ t(
|
|
13136
13142
|
j,
|
|
13137
13143
|
{
|
|
13138
13144
|
sx: { backgroundColor: o.palette.background.paper, py: 14 },
|
|
13139
13145
|
children: /* @__PURE__ */ t(
|
|
13140
|
-
|
|
13146
|
+
Z,
|
|
13141
13147
|
{
|
|
13142
13148
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13143
13149
|
/* @__PURE__ */ t(p, { variant: "Body", children: s.accountName }),
|
|
@@ -13164,7 +13170,7 @@ const y1 = ({
|
|
|
13164
13170
|
selectedData: m,
|
|
13165
13171
|
setHoveredData: C,
|
|
13166
13172
|
setSelectedData: f
|
|
13167
|
-
} = bl(), { isMobile: v } = Be(), { onEvent: E } =
|
|
13173
|
+
} = bl(), { isMobile: v } = Be(), { onEvent: E } = ee(), [I, S] = g.useState(!1), [w, D] = g.useState(6), [_, O] = g.useState(!1), [x, z] = g.useState(!1), K = async () => {
|
|
13168
13174
|
await u(n), await d(w), S(!0);
|
|
13169
13175
|
};
|
|
13170
13176
|
g.useEffect(() => {
|
|
@@ -13207,7 +13213,7 @@ const y1 = ({
|
|
|
13207
13213
|
showDividerAboveDateSelector: !1,
|
|
13208
13214
|
sx: { p: v ? 0 : 48 },
|
|
13209
13215
|
title: r.net_worth,
|
|
13210
|
-
children: I && /* @__PURE__ */ l(
|
|
13216
|
+
children: I && /* @__PURE__ */ l(W, { children: [
|
|
13211
13217
|
m && /* @__PURE__ */ t(D1, { hoveredData: c, selectedData: m }),
|
|
13212
13218
|
/* @__PURE__ */ l(
|
|
13213
13219
|
y,
|
|
@@ -13292,7 +13298,7 @@ class R1 {
|
|
|
13292
13298
|
try {
|
|
13293
13299
|
this.isLoading = !0;
|
|
13294
13300
|
const A = await this.api.getNotifications();
|
|
13295
|
-
|
|
13301
|
+
Q(() => {
|
|
13296
13302
|
this.notifications = A, this.recentNotifications = M1(A), this.isLoading = !1;
|
|
13297
13303
|
});
|
|
13298
13304
|
} catch (A) {
|
|
@@ -13384,12 +13390,13 @@ const H1 = (e, A) => {
|
|
|
13384
13390
|
}, K8 = T(k1);
|
|
13385
13391
|
class G1 {
|
|
13386
13392
|
globalStore;
|
|
13393
|
+
userFeatures = [];
|
|
13387
13394
|
api = new or("/", "");
|
|
13388
13395
|
constructor(A) {
|
|
13389
13396
|
this.globalStore = A, De(this);
|
|
13390
13397
|
}
|
|
13391
13398
|
initialize = async (A, n) => {
|
|
13392
|
-
this.api = new or(A, n);
|
|
13399
|
+
this.api = new or(A, n), await this.loadUserFeatures();
|
|
13393
13400
|
};
|
|
13394
13401
|
get userProfile() {
|
|
13395
13402
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -13397,6 +13404,16 @@ class G1 {
|
|
|
13397
13404
|
get user() {
|
|
13398
13405
|
return this.globalStore.appDataStore.user;
|
|
13399
13406
|
}
|
|
13407
|
+
loadUserFeatures = async () => {
|
|
13408
|
+
try {
|
|
13409
|
+
const A = await this.api.getUserFeatures();
|
|
13410
|
+
console.log(A, ":::features"), Q(() => {
|
|
13411
|
+
this.userFeatures = A;
|
|
13412
|
+
});
|
|
13413
|
+
} catch (A) {
|
|
13414
|
+
console.error(`Error occurred while loading user features: ${A}`);
|
|
13415
|
+
}
|
|
13416
|
+
};
|
|
13400
13417
|
updateUser = async (A) => {
|
|
13401
13418
|
try {
|
|
13402
13419
|
const n = await this.api.updateUser(A);
|
|
@@ -13461,9 +13478,9 @@ const Fn = ({
|
|
|
13461
13478
|
onClick: n,
|
|
13462
13479
|
primaryText: a,
|
|
13463
13480
|
secondaryText: r
|
|
13464
|
-
}) => /* @__PURE__ */ l(
|
|
13481
|
+
}) => /* @__PURE__ */ l(W, { children: [
|
|
13465
13482
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
13466
|
-
/* @__PURE__ */ t(
|
|
13483
|
+
/* @__PURE__ */ t(Z, { primary: a, secondary: r }),
|
|
13467
13484
|
e
|
|
13468
13485
|
] }) }),
|
|
13469
13486
|
/* @__PURE__ */ t(H, { sx: { ml: A ? 0 : 24 } })
|
|
@@ -13473,7 +13490,7 @@ const Fn = ({
|
|
|
13473
13490
|
(a) => a.member_guid === n.guid && n.successfully_aggregated_at && a.guid !== A.guid
|
|
13474
13491
|
);
|
|
13475
13492
|
}, X1 = () => {
|
|
13476
|
-
const [e, A] = g.useState(!1), [n, a] = g.useState(!1), [r, i] = g.useState(!1), [o, s] = g.useState({}), { selectedAccount: c } = lA(), { mergeAccounts: d, updateAccount: u } = ve(), { accounts: h } = L(), m = F1(), { onEvent: C } =
|
|
13493
|
+
const [e, A] = g.useState(!1), [n, a] = g.useState(!1), [r, i] = g.useState(!1), [o, s] = g.useState({}), { selectedAccount: c } = lA(), { mergeAccounts: d, updateAccount: u } = ve(), { accounts: h } = L(), m = F1(), { onEvent: C } = ee(), f = (E) => {
|
|
13477
13494
|
u({
|
|
13478
13495
|
...c,
|
|
13479
13496
|
...E
|
|
@@ -13483,7 +13500,7 @@ const Fn = ({
|
|
|
13483
13500
|
() => a(!1)
|
|
13484
13501
|
);
|
|
13485
13502
|
};
|
|
13486
|
-
return /* @__PURE__ */ l(
|
|
13503
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13487
13504
|
/* @__PURE__ */ t(SA, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
|
13488
13505
|
/* @__PURE__ */ t(
|
|
13489
13506
|
Fn,
|
|
@@ -13723,11 +13740,11 @@ const Fn = ({
|
|
|
13723
13740
|
};
|
|
13724
13741
|
default: {
|
|
13725
13742
|
const a = () => {
|
|
13726
|
-
const r = e.successfully_aggregated_at ? Le(e.successfully_aggregated_at) : void 0, i = r && ne(r,
|
|
13743
|
+
const r = e.successfully_aggregated_at ? Le(e.successfully_aggregated_at) : void 0, i = r && ne(r, $.TIME_STAMP_HOUR_MINUTE);
|
|
13727
13744
|
if (i)
|
|
13728
13745
|
return ga(r) ? P(A.last_updated_at, A.today, i) : oc(r) ? P(A.last_updated_at, A.yesterday, i) : P(
|
|
13729
13746
|
A.last_updated_at,
|
|
13730
|
-
ne(r,
|
|
13747
|
+
ne(r, $.MONTH_DAY_YEAR),
|
|
13731
13748
|
i
|
|
13732
13749
|
);
|
|
13733
13750
|
};
|
|
@@ -13759,18 +13776,18 @@ const Fn = ({
|
|
|
13759
13776
|
mainMessage: o.statusName,
|
|
13760
13777
|
secondaryMessage: o.title
|
|
13761
13778
|
};
|
|
13762
|
-
return /* @__PURE__ */ l(
|
|
13779
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13763
13780
|
/* @__PURE__ */ t(SA, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
|
13764
13781
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !s.ctaCopy ? /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
13765
13782
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(VA, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
13766
|
-
/* @__PURE__ */ t(
|
|
13783
|
+
/* @__PURE__ */ t(Z, { primary: s.mainMessage, secondary: s.secondaryMessage })
|
|
13767
13784
|
] }) : /* @__PURE__ */ l(ae, { onClick: () => A(!0), children: [
|
|
13768
13785
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(VA, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
13769
13786
|
/* @__PURE__ */ t(
|
|
13770
|
-
|
|
13787
|
+
Z,
|
|
13771
13788
|
{
|
|
13772
13789
|
primary: s.mainMessage,
|
|
13773
|
-
secondary: s.secondaryMessage && /* @__PURE__ */ l(
|
|
13790
|
+
secondary: s.secondaryMessage && /* @__PURE__ */ l(W, { children: [
|
|
13774
13791
|
s.secondaryMessage,
|
|
13775
13792
|
" ",
|
|
13776
13793
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
|
|
@@ -13780,7 +13797,7 @@ const Fn = ({
|
|
|
13780
13797
|
/* @__PURE__ */ t(B, { name: "chevron_right" })
|
|
13781
13798
|
] }) }),
|
|
13782
13799
|
/* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
13783
|
-
!a.is_manual && a.institution_url && /* @__PURE__ */ l(
|
|
13800
|
+
!a.is_manual && a.institution_url && /* @__PURE__ */ l(W, { children: [
|
|
13784
13801
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
13785
13802
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
13786
13803
|
VA,
|
|
@@ -13801,7 +13818,7 @@ const Fn = ({
|
|
|
13801
13818
|
)
|
|
13802
13819
|
}
|
|
13803
13820
|
) }),
|
|
13804
|
-
/* @__PURE__ */ t(
|
|
13821
|
+
/* @__PURE__ */ t(Z, { primary: a.name, secondary: a.institution_url }),
|
|
13805
13822
|
/* @__PURE__ */ t(B, { name: "launch" })
|
|
13806
13823
|
] }) }),
|
|
13807
13824
|
/* @__PURE__ */ t(H, {})
|
|
@@ -13903,20 +13920,20 @@ const Fn = ({
|
|
|
13903
13920
|
}
|
|
13904
13921
|
);
|
|
13905
13922
|
}, Y1 = T(W1), V1 = () => {
|
|
13906
|
-
const e = window.app?.config, { onEvent: A } =
|
|
13923
|
+
const e = window.app?.config, { onEvent: A } = ee(), { selectedAccount: n } = lA(), { accounts: a } = L(), r = vh(n, a), i = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [o, s] = g.useState(!1), [c, d] = g.useState(r[0]), u = r.filter(
|
|
13907
13924
|
(h) => i || n[h.name] || n[h.name] === 0
|
|
13908
13925
|
);
|
|
13909
|
-
return /* @__PURE__ */ l(
|
|
13926
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13910
13927
|
u.map((h) => {
|
|
13911
13928
|
const m = n[h.name] || n[h.name] === 0, C = u.indexOf(h) === u.length - 1, f = /* @__PURE__ */ t(
|
|
13912
|
-
|
|
13929
|
+
Z,
|
|
13913
13930
|
{
|
|
13914
13931
|
disableTypography: !0,
|
|
13915
13932
|
primary: /* @__PURE__ */ t(p, { sx: { fontSize: 11 }, children: h.label }),
|
|
13916
13933
|
secondary: /* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15 }, children: m ? h.valueFormatter(n[h.name]) : h.placeholder })
|
|
13917
13934
|
}
|
|
13918
13935
|
);
|
|
13919
|
-
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(
|
|
13936
|
+
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(W, { children: [
|
|
13920
13937
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
|
13921
13938
|
ae,
|
|
13922
13939
|
{
|
|
@@ -13930,7 +13947,7 @@ const Fn = ({
|
|
|
13930
13947
|
}
|
|
13931
13948
|
) }),
|
|
13932
13949
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13933
|
-
] }) : m && /* @__PURE__ */ l(
|
|
13950
|
+
] }) : m && /* @__PURE__ */ l(W, { children: [
|
|
13934
13951
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
|
|
13935
13952
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13936
13953
|
] }) }, h.name);
|
|
@@ -13945,7 +13962,7 @@ const Fn = ({
|
|
|
13945
13962
|
)
|
|
13946
13963
|
] });
|
|
13947
13964
|
}, J1 = T(V1), Z1 = () => {
|
|
13948
|
-
const { onEvent: e } =
|
|
13965
|
+
const { onEvent: e } = ee();
|
|
13949
13966
|
return g.useEffect(() => e(G.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(Ae, { children: [
|
|
13950
13967
|
/* @__PURE__ */ t(J1, {}),
|
|
13951
13968
|
/* @__PURE__ */ t(Q1, {}),
|
|
@@ -13957,7 +13974,7 @@ const Fn = ({
|
|
|
13957
13974
|
o && e(1);
|
|
13958
13975
|
}, [o]), !o) return;
|
|
13959
13976
|
const s = vo(a, i);
|
|
13960
|
-
return /* @__PURE__ */ l(
|
|
13977
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13961
13978
|
/* @__PURE__ */ t(
|
|
13962
13979
|
gA,
|
|
13963
13980
|
{
|
|
@@ -14008,13 +14025,13 @@ const Fn = ({
|
|
|
14008
14025
|
)
|
|
14009
14026
|
] });
|
|
14010
14027
|
}, Am = T(em), tm = () => {
|
|
14011
|
-
const [e, A] = g.useState(""), { onEvent: n } =
|
|
14028
|
+
const [e, A] = g.useState(""), { onEvent: n } = ee(), { selectedAccount: a } = lA(), { accounts: r } = L(), { setFilter: i, sortedTransactions: o } = ge(), s = g.useMemo(() => o.find((c) => c.guid === e), [e]);
|
|
14012
14029
|
return g.useEffect(() => {
|
|
14013
14030
|
i({
|
|
14014
14031
|
dateRange: { start: Fs(Xs(), 90), end: js() },
|
|
14015
14032
|
accounts: [a.guid]
|
|
14016
14033
|
});
|
|
14017
|
-
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(
|
|
14034
|
+
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(W, { children: [
|
|
14018
14035
|
/* @__PURE__ */ t(tt, { onClick: A }),
|
|
14019
14036
|
s && /* @__PURE__ */ t(
|
|
14020
14037
|
re,
|
|
@@ -14029,7 +14046,7 @@ const Fn = ({
|
|
|
14029
14046
|
] });
|
|
14030
14047
|
}, nm = T(tm), am = () => {
|
|
14031
14048
|
const [e, A] = g.useState(0), { accounts: n } = L();
|
|
14032
|
-
return /* @__PURE__ */ l(
|
|
14049
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
14033
14050
|
/* @__PURE__ */ t(Am, { setTabValue: A }),
|
|
14034
14051
|
/* @__PURE__ */ l(
|
|
14035
14052
|
_A,
|
|
@@ -14063,7 +14080,7 @@ const Fn = ({
|
|
|
14063
14080
|
/* @__PURE__ */ t(bt, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t($1, {}) })
|
|
14064
14081
|
] });
|
|
14065
14082
|
}, yo = T(am), rm = () => {
|
|
14066
|
-
const [e, A] = g.useState(""), { accounts: n } = L(), { selectedAccounts: a } = ye(), { setSelectedAccount: r, setSelectedMember: i } = lA(), { members: o } = ve(), { onEvent: s } =
|
|
14083
|
+
const [e, A] = g.useState(""), { accounts: n } = L(), { selectedAccounts: a } = ye(), { setSelectedAccount: r, setSelectedMember: i } = lA(), { members: o } = ve(), { onEvent: s } = ee(), c = [...new Set(a.map((u) => u.account_type))], d = a.find((u) => e === u.guid);
|
|
14067
14084
|
return g.useEffect(() => {
|
|
14068
14085
|
if (d) {
|
|
14069
14086
|
r(d);
|
|
@@ -14178,7 +14195,7 @@ const Fn = ({
|
|
|
14178
14195
|
}
|
|
14179
14196
|
);
|
|
14180
14197
|
}, sm = T(om), cm = ({ onBackClick: e, sx: A = {} }) => {
|
|
14181
|
-
const [n, a] = g.useState(!1), [r, i] = g.useState(!1), { accounts: o, refreshMembers: s } = ve(), { accounts: c } = L(), { setSelectedAccounts: d, selectedAccountGuids: u } = ye(), { isDesktop: h } = Be(), { onEvent: m } =
|
|
14198
|
+
const [n, a] = g.useState(!1), [r, i] = g.useState(!1), { accounts: o, refreshMembers: s } = ve(), { accounts: c } = L(), { setSelectedAccounts: d, selectedAccountGuids: u } = ye(), { isDesktop: h } = Be(), { onEvent: m } = ee();
|
|
14182
14199
|
g.useEffect(() => {
|
|
14183
14200
|
d(o);
|
|
14184
14201
|
}, [o]);
|
|
@@ -14209,7 +14226,7 @@ const Fn = ({
|
|
|
14209
14226
|
onBackClick: e,
|
|
14210
14227
|
sx: A,
|
|
14211
14228
|
title: c.title,
|
|
14212
|
-
children: r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(
|
|
14229
|
+
children: r ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ l(W, { children: [
|
|
14213
14230
|
/* @__PURE__ */ l(N, { sx: { px: h ? 24 : 12 }, children: [
|
|
14214
14231
|
u.length < 1 && /* @__PURE__ */ t(p, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
14215
14232
|
/* @__PURE__ */ t(im, {})
|
|
@@ -14780,32 +14797,32 @@ class pm {
|
|
|
14780
14797
|
};
|
|
14781
14798
|
get cashAccounts() {
|
|
14782
14799
|
return this.accounts.filter(
|
|
14783
|
-
(A) => A.account_type ===
|
|
14800
|
+
(A) => A.account_type === Y.CASH || A.account_type === Y.CHECKING || A.account_type === Y.PREPAID || A.account_type === Y.SAVINGS || A.account_type === Y.CHECKING_LINE_OF_CREDIT
|
|
14784
14801
|
);
|
|
14785
14802
|
}
|
|
14786
14803
|
get checkingAccounts() {
|
|
14787
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14804
|
+
return this.accounts.filter((A) => A.account_type === Y.CHECKING);
|
|
14788
14805
|
}
|
|
14789
14806
|
get debtAccounts() {
|
|
14790
14807
|
return this.accounts.filter(
|
|
14791
|
-
(A) => A.account_type ===
|
|
14808
|
+
(A) => A.account_type === Y.CREDIT_CARD || A.account_type === Y.LOAN || A.account_type === Y.MORTGAGE || A.account_type === Y.LINE_OF_CREDIT || A.account_type === Y.CHECKING_LINE_OF_CREDIT
|
|
14792
14809
|
);
|
|
14793
14810
|
}
|
|
14794
14811
|
get investmentAccounts() {
|
|
14795
14812
|
return this.accounts.filter(
|
|
14796
|
-
(A) => A.account_type ===
|
|
14813
|
+
(A) => A.account_type === Y.INVESTMENT
|
|
14797
14814
|
);
|
|
14798
14815
|
}
|
|
14799
14816
|
get cashBalance() {
|
|
14800
14817
|
return this.cashAccounts.reduce((A, n) => A + (n?.balance || 0), 0);
|
|
14801
14818
|
}
|
|
14802
14819
|
get savingsAccounts() {
|
|
14803
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14820
|
+
return this.accounts.filter((A) => A.account_type === Y.SAVINGS);
|
|
14804
14821
|
}
|
|
14805
14822
|
addAccount = async (A) => {
|
|
14806
14823
|
try {
|
|
14807
14824
|
const n = await this.api.createAccount(A);
|
|
14808
|
-
|
|
14825
|
+
Q(() => {
|
|
14809
14826
|
this.accounts = [...this.accounts, n];
|
|
14810
14827
|
});
|
|
14811
14828
|
} catch (n) {
|
|
@@ -14833,7 +14850,7 @@ class pm {
|
|
|
14833
14850
|
await this.loadMembers();
|
|
14834
14851
|
try {
|
|
14835
14852
|
const A = await this.api.getAccounts();
|
|
14836
|
-
|
|
14853
|
+
Q(() => {
|
|
14837
14854
|
this.accounts = this.sortAccounts(this.augmentAccounts(A));
|
|
14838
14855
|
});
|
|
14839
14856
|
} catch (A) {
|
|
@@ -14843,7 +14860,7 @@ class pm {
|
|
|
14843
14860
|
loadInstitutions = async () => {
|
|
14844
14861
|
try {
|
|
14845
14862
|
const A = await this.api.getInstitutions();
|
|
14846
|
-
|
|
14863
|
+
Q(() => {
|
|
14847
14864
|
this.institutions = A;
|
|
14848
14865
|
});
|
|
14849
14866
|
} catch (A) {
|
|
@@ -14853,7 +14870,7 @@ class pm {
|
|
|
14853
14870
|
loadMembers = async () => {
|
|
14854
14871
|
try {
|
|
14855
14872
|
const A = await this.api.getMembers();
|
|
14856
|
-
|
|
14873
|
+
Q(() => {
|
|
14857
14874
|
this.members = A;
|
|
14858
14875
|
});
|
|
14859
14876
|
} catch (A) {
|
|
@@ -14863,7 +14880,7 @@ class pm {
|
|
|
14863
14880
|
mergeAccounts = async (A) => {
|
|
14864
14881
|
try {
|
|
14865
14882
|
const n = await this.api.mergeAccounts(A), a = n[Object.keys(n)[0]];
|
|
14866
|
-
|
|
14883
|
+
Q(() => {
|
|
14867
14884
|
const r = this.accounts.findIndex((o) => o.guid === A[1]);
|
|
14868
14885
|
this.accounts.splice(r, 1);
|
|
14869
14886
|
const i = this.accounts.findIndex((o) => o.guid === A[0]);
|
|
@@ -14886,7 +14903,7 @@ class pm {
|
|
|
14886
14903
|
};
|
|
14887
14904
|
removeAccount = async (A) => {
|
|
14888
14905
|
try {
|
|
14889
|
-
await this.api.deleteAccount(A),
|
|
14906
|
+
await this.api.deleteAccount(A), Q(() => {
|
|
14890
14907
|
const n = this.accounts.findIndex((a) => a.guid === A);
|
|
14891
14908
|
this.accounts.splice(n, 1);
|
|
14892
14909
|
});
|
|
@@ -14897,7 +14914,7 @@ class pm {
|
|
|
14897
14914
|
updateAccount = async (A) => {
|
|
14898
14915
|
try {
|
|
14899
14916
|
const n = await this.api.updateAccount(A);
|
|
14900
|
-
|
|
14917
|
+
Q(() => {
|
|
14901
14918
|
const a = this.accounts.findIndex(
|
|
14902
14919
|
(r) => r.guid === n.guid
|
|
14903
14920
|
);
|
|
@@ -15095,7 +15112,7 @@ const xm = ({
|
|
|
15095
15112
|
] });
|
|
15096
15113
|
}, Eo = T(
|
|
15097
15114
|
({ height: e, isDraggable: A = !1, shouldShowZeroState: n, unavailableWidth: a = 24 }) => {
|
|
15098
|
-
const { onEvent: r } =
|
|
15115
|
+
const { onEvent: r } = ee(), { setSelectedBudget: i } = Xe(), { isLoadingCategoryTotals: o } = _e(), { isInitialized: s } = ye(), { availableWidth: c } = ct(), { isMobile: d } = Be(), u = g.useMemo(() => c - a, [c]), h = (m) => {
|
|
15099
15116
|
i(m), r(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
15100
15117
|
budget_category: m.category.name,
|
|
15101
15118
|
click_type: "bubble"
|
|
@@ -15143,7 +15160,7 @@ const xm = ({
|
|
|
15143
15160
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { onClick: () => A?.(e), children: [
|
|
15144
15161
|
/* @__PURE__ */ t(be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Ki, { color: a, percent: s, size: 40, children: /* @__PURE__ */ t(sA, { categoryGuid: i, variant: "basic" }) }) }),
|
|
15145
15162
|
/* @__PURE__ */ t(
|
|
15146
|
-
|
|
15163
|
+
Z,
|
|
15147
15164
|
{
|
|
15148
15165
|
primary: /* @__PURE__ */ l(y, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
15149
15166
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }),
|
|
@@ -15160,7 +15177,7 @@ const xm = ({
|
|
|
15160
15177
|
)
|
|
15161
15178
|
] }) });
|
|
15162
15179
|
}, Mm = T(() => {
|
|
15163
|
-
const { onEvent: e } =
|
|
15180
|
+
const { onEvent: e } = ee(), { budgets: A } = L(), { detailedBudgets: n, setSelectedBudget: a } = Xe(), r = (i) => {
|
|
15164
15181
|
a(i), e(G.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
15165
15182
|
budget_category: i.category.name,
|
|
15166
15183
|
click_type: "list"
|
|
@@ -15174,7 +15191,7 @@ const xm = ({
|
|
|
15174
15191
|
] }, i.guid)) }) })
|
|
15175
15192
|
] });
|
|
15176
15193
|
}), Rm = T(() => {
|
|
15177
|
-
const e = fe(), { onEvent: A } =
|
|
15194
|
+
const e = fe(), { onEvent: A } = ee(), { accounts: n } = ve(), { budgets: a, common: r, recurring: i } = L(), { incomeCategories: o, spendCategories: s } = _e(), { detailedBudgets: c, totalBudgeted: d } = Xe(), { projectedIncome: u } = ke(), { setFilter: h } = ge(), [m, C] = g.useState(!1), [f, v] = g.useMemo(() => {
|
|
15178
15195
|
const w = s.reduce((x, z) => x + z.totalAmount, 0);
|
|
15179
15196
|
let D = w / d;
|
|
15180
15197
|
D > 1 && (D = 1);
|
|
@@ -15283,7 +15300,7 @@ const xm = ({
|
|
|
15283
15300
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
15284
15301
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { children: [
|
|
15285
15302
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(sA, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
15286
|
-
/* @__PURE__ */ t(
|
|
15303
|
+
/* @__PURE__ */ t(Z, { primary: e.name, secondary: a })
|
|
15287
15304
|
] }) }),
|
|
15288
15305
|
/* @__PURE__ */ t(H, {})
|
|
15289
15306
|
] }, e.guid);
|
|
@@ -15347,7 +15364,7 @@ const xm = ({
|
|
|
15347
15364
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { onClick: () => i(!0), children: [
|
|
15348
15365
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(sA, { categoryGuid: e.guid }) }),
|
|
15349
15366
|
/* @__PURE__ */ t(
|
|
15350
|
-
|
|
15367
|
+
Z,
|
|
15351
15368
|
{
|
|
15352
15369
|
primary: e.name,
|
|
15353
15370
|
secondary: R(e.totalAmount, "0,0")
|
|
@@ -15422,7 +15439,7 @@ const xm = ({
|
|
|
15422
15439
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { onClick: () => o(e), children: [
|
|
15423
15440
|
/* @__PURE__ */ t(be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Ki, { color: n, percent: r, size: 40, children: /* @__PURE__ */ t(sA, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
15424
15441
|
/* @__PURE__ */ t(
|
|
15425
|
-
|
|
15442
|
+
Z,
|
|
15426
15443
|
{
|
|
15427
15444
|
primary: /* @__PURE__ */ t(y, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category.name }) }),
|
|
15428
15445
|
secondary: /* @__PURE__ */ t(y, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ t(p, { fontWeight: 400, variant: "Body", children: `
|
|
@@ -15446,7 +15463,7 @@ const xm = ({
|
|
|
15446
15463
|
C && Number(h) > 0 && (await o(C, Number(h), A.guid), u(!1), c(!1), f(void 0));
|
|
15447
15464
|
};
|
|
15448
15465
|
return /* @__PURE__ */ l(N, { children: [
|
|
15449
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ae, { onClick: v, children: /* @__PURE__ */ t(
|
|
15466
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ae, { onClick: v, children: /* @__PURE__ */ t(Z, { children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
15450
15467
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
15451
15468
|
/* @__PURE__ */ t(B, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
15452
15469
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: n.add_sub_budget_button })
|
|
@@ -15696,7 +15713,7 @@ const xm = ({
|
|
|
15696
15713
|
)
|
|
15697
15714
|
] });
|
|
15698
15715
|
}), Vr = 480, j8 = T(({ onBackClick: e, sx: A }) => {
|
|
15699
|
-
const n = fe(), { onEvent: a } =
|
|
15716
|
+
const n = fe(), { onEvent: a } = ee(), { accounts: r } = ve(), { budgets: i, common: o } = L(), { isInitialized: s, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: u } = ye(), { alert: h, dateRange: m, loadBudgets: C, setDateRange: f, setAlert: v, setTheme: E } = Xe(), { loadCashflowSequences: I } = ke(), { isDesktop: S, isTablet: w } = Be(), { reloadCategoryTotals: D } = _e(), [_, O] = g.useState(!1), [x, z] = g.useState(!1);
|
|
15700
15717
|
g.useEffect(() => {
|
|
15701
15718
|
E(n), u(r), d(m.start, m.end), a(G.BUDGETS_VIEW);
|
|
15702
15719
|
}, []), g.useEffect(() => {
|
|
@@ -15858,11 +15875,11 @@ const Qm = () => {
|
|
|
15858
15875
|
onTopicSelect: i
|
|
15859
15876
|
}) => {
|
|
15860
15877
|
const [o, s] = EA(null), c = Math.ceil(A.length / 2);
|
|
15861
|
-
return /* @__PURE__ */ l(
|
|
15878
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
15862
15879
|
/* @__PURE__ */ l(QA, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
|
|
15863
15880
|
/* @__PURE__ */ l(QA, { item: !0, md: 6, sm: 6, xs: 12, children: [
|
|
15864
15881
|
/* @__PURE__ */ t($A, { children: a }),
|
|
15865
|
-
/* @__PURE__ */ t(p, { variant: "Body", children: n })
|
|
15882
|
+
/* @__PURE__ */ t(p, { sx: { whiteSpace: { xs: "wrap", sm: "nowrap" } }, variant: "Body", children: n })
|
|
15866
15883
|
] }),
|
|
15867
15884
|
/* @__PURE__ */ t(
|
|
15868
15885
|
QA,
|
|
@@ -15882,7 +15899,7 @@ const Qm = () => {
|
|
|
15882
15899
|
] }),
|
|
15883
15900
|
/* @__PURE__ */ t(y, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((d) => {
|
|
15884
15901
|
const u = d === 0 ? 0 : c, h = d === 0 ? c : A.length, m = A.slice(u, h);
|
|
15885
|
-
return /* @__PURE__ */ t(y, { sx: { flex: 1, gap: 12 }, children: m.map(({ guid: C, icon: f, topics: v, title: E }, I) => {
|
|
15902
|
+
return /* @__PURE__ */ t(y, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: m.map(({ guid: C, icon: f, topics: v, title: E }, I) => {
|
|
15886
15903
|
const S = I + u;
|
|
15887
15904
|
return /* @__PURE__ */ l(
|
|
15888
15905
|
hc,
|
|
@@ -15952,25 +15969,25 @@ const Qm = () => {
|
|
|
15952
15969
|
button_text: "Request Help",
|
|
15953
15970
|
help_content: "Find answers, get support, and learn how to make the most of your experience.",
|
|
15954
15971
|
help_title: "Help Tool"
|
|
15955
|
-
}, Jm = () => {
|
|
15956
|
-
const { isInitialized:
|
|
15972
|
+
}, Jm = ({ sx: e }) => {
|
|
15973
|
+
const { isInitialized: A } = Sn(), { appConfig: n, helpCategories: a, loadAppConfig: r } = yl(), i = window.app?.config;
|
|
15957
15974
|
g.useEffect(() => {
|
|
15958
|
-
!
|
|
15959
|
-
}, [
|
|
15960
|
-
const
|
|
15961
|
-
},
|
|
15975
|
+
!A || !i || r(i);
|
|
15976
|
+
}, [A, i]);
|
|
15977
|
+
const o = () => {
|
|
15978
|
+
}, s = () => {
|
|
15962
15979
|
};
|
|
15963
|
-
return !
|
|
15980
|
+
return !A || !n ? /* @__PURE__ */ t(We, {}) : /* @__PURE__ */ t(pA, { sx: e, children: /* @__PURE__ */ t(
|
|
15964
15981
|
Vm,
|
|
15965
15982
|
{
|
|
15966
15983
|
buttonText: jn.button_text,
|
|
15967
|
-
helpCategories:
|
|
15984
|
+
helpCategories: a,
|
|
15968
15985
|
helpContent: jn.help_content,
|
|
15969
15986
|
helpTitle: jn.help_title,
|
|
15970
|
-
onRequestHelp:
|
|
15971
|
-
onTopicSelect:
|
|
15987
|
+
onRequestHelp: o,
|
|
15988
|
+
onTopicSelect: s
|
|
15972
15989
|
}
|
|
15973
|
-
) })
|
|
15990
|
+
) });
|
|
15974
15991
|
}, Q8 = T(Jm), Ba = ({
|
|
15975
15992
|
bgcolor: e = "background.default",
|
|
15976
15993
|
children: A
|
|
@@ -16023,7 +16040,7 @@ const Qm = () => {
|
|
|
16023
16040
|
}
|
|
16024
16041
|
) }),
|
|
16025
16042
|
/* @__PURE__ */ t(
|
|
16026
|
-
|
|
16043
|
+
Z,
|
|
16027
16044
|
{
|
|
16028
16045
|
primary: h.truncatedDisplayName,
|
|
16029
16046
|
secondary: h.institutionName
|
|
@@ -16055,11 +16072,11 @@ const Qm = () => {
|
|
|
16055
16072
|
] });
|
|
16056
16073
|
}, wo = ({ Icon: e, label: A, onClick: n, itemCount: a }) => {
|
|
16057
16074
|
const r = fe();
|
|
16058
|
-
return /* @__PURE__ */ l(
|
|
16075
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16059
16076
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
16060
16077
|
/* @__PURE__ */ t(e, { sx: { fontSize: 22, marginRight: "16px" } }),
|
|
16061
16078
|
/* @__PURE__ */ t(
|
|
16062
|
-
|
|
16079
|
+
Z,
|
|
16063
16080
|
{
|
|
16064
16081
|
primary: A,
|
|
16065
16082
|
primaryTypographyProps: {
|
|
@@ -16088,7 +16105,7 @@ const Qm = () => {
|
|
|
16088
16105
|
] });
|
|
16089
16106
|
}, W8 = ({ content: e, manageAccountsStore: A }) => {
|
|
16090
16107
|
const { groupedAccounts: n, toggleAccount: a } = A, [r, i] = g.useState(!1);
|
|
16091
|
-
return /* @__PURE__ */ l(
|
|
16108
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16092
16109
|
/* @__PURE__ */ t(
|
|
16093
16110
|
wo,
|
|
16094
16111
|
{
|
|
@@ -16359,7 +16376,7 @@ const Io = ({
|
|
|
16359
16376
|
})),
|
|
16360
16377
|
children: [
|
|
16361
16378
|
/* @__PURE__ */ t(
|
|
16362
|
-
|
|
16379
|
+
Z,
|
|
16363
16380
|
{
|
|
16364
16381
|
primary: w.title,
|
|
16365
16382
|
secondary: /* @__PURE__ */ t(g.Fragment, { children: w.description })
|
|
@@ -16519,7 +16536,7 @@ const Io = ({
|
|
|
16519
16536
|
}, K = (q, F) => {
|
|
16520
16537
|
a(q), F && E(!1), m(q.length > 1 ? e.insights_unhidden : e.insight_unhidden);
|
|
16521
16538
|
};
|
|
16522
|
-
return /* @__PURE__ */ l(
|
|
16539
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16523
16540
|
/* @__PURE__ */ t(
|
|
16524
16541
|
wo,
|
|
16525
16542
|
{
|
|
@@ -16558,7 +16575,7 @@ const Io = ({
|
|
|
16558
16575
|
onClick: () => x(q.key, F.key),
|
|
16559
16576
|
children: [
|
|
16560
16577
|
/* @__PURE__ */ t(
|
|
16561
|
-
|
|
16578
|
+
Z,
|
|
16562
16579
|
{
|
|
16563
16580
|
primary: c[F.key].replace(
|
|
16564
16581
|
/&/g,
|
|
@@ -16673,7 +16690,7 @@ class sC {
|
|
|
16673
16690
|
};
|
|
16674
16691
|
loadCopy = async () => {
|
|
16675
16692
|
const A = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
16676
|
-
|
|
16693
|
+
Q(() => {
|
|
16677
16694
|
this.copyObject = A[this.translationKey];
|
|
16678
16695
|
});
|
|
16679
16696
|
};
|
|
@@ -16869,7 +16886,7 @@ class hC {
|
|
|
16869
16886
|
this.copyStore = new sC(), this.insightsMicroWidgetStore = new uC(), De(this);
|
|
16870
16887
|
}
|
|
16871
16888
|
initialize = async (A, n, a) => {
|
|
16872
|
-
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Tc(A, n, "1.0.0", "Micro Insights Carousel"),
|
|
16889
|
+
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Tc(A, n, "1.0.0", "Micro Insights Carousel"), Q(() => {
|
|
16873
16890
|
this.isInitialized = !0;
|
|
16874
16891
|
});
|
|
16875
16892
|
};
|
|
@@ -18965,7 +18982,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18965
18982
|
)
|
|
18966
18983
|
] });
|
|
18967
18984
|
}, ZC = T(JC), $C = ({ onBackClick: e, sx: A = {} }) => {
|
|
18968
|
-
const { accounts: n } = ve(), { spending: a } = L(), { isInitialized: r, setDisplayedDate: i, setSelectedAccounts: o } = ye(), { onEvent: s } =
|
|
18985
|
+
const { accounts: n } = ve(), { spending: a } = L(), { isInitialized: r, setDisplayedDate: i, setSelectedAccounts: o } = ye(), { onEvent: s } = ee(), [c, d] = g.useState(!1);
|
|
18969
18986
|
g.useEffect(() => {
|
|
18970
18987
|
o(n);
|
|
18971
18988
|
}, [n]), g.useEffect(() => {
|
|
@@ -19046,7 +19063,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19046
19063
|
) }), cp = (e, A) => {
|
|
19047
19064
|
const n = [], a = new Date(e);
|
|
19048
19065
|
for (; a <= A; ) {
|
|
19049
|
-
const r = ne(a,
|
|
19066
|
+
const r = ne(a, $.MONTH);
|
|
19050
19067
|
n.push(r), a.setMonth(a.getMonth() + 1);
|
|
19051
19068
|
}
|
|
19052
19069
|
return n;
|
|
@@ -19058,7 +19075,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19058
19075
|
height: r = "100dvh",
|
|
19059
19076
|
sx: i = {}
|
|
19060
19077
|
}) => {
|
|
19061
|
-
const { onEvent: o } =
|
|
19078
|
+
const { onEvent: o } = ee(), s = ne(/* @__PURE__ */ new Date(), $.MONTH_SHORT), [c, d] = g.useState([
|
|
19062
19079
|
{ field: s, sort: "desc" }
|
|
19063
19080
|
]), u = g.useMemo(() => cp(A.start, A.end), [A]), h = [
|
|
19064
19081
|
{
|
|
@@ -19097,7 +19114,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19097
19114
|
category_guid: I,
|
|
19098
19115
|
top_level_category_guid: S
|
|
19099
19116
|
});
|
|
19100
|
-
const x = ne(new Date(_, w - 1),
|
|
19117
|
+
const x = ne(new Date(_, w - 1), $.MONTH_SHORT);
|
|
19101
19118
|
return v[O][x] || (v[O][x] = 0), v[O][x] = v[O][x] + D, v;
|
|
19102
19119
|
},
|
|
19103
19120
|
{}
|
|
@@ -19132,7 +19149,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19132
19149
|
isOpen: n,
|
|
19133
19150
|
onClose: a
|
|
19134
19151
|
}) => {
|
|
19135
|
-
const { onEvent: r } =
|
|
19152
|
+
const { onEvent: r } = ee(), { selectedAccountGuids: i } = ye(), { common: o } = L(), { setFilter: s, sortedTransactions: c } = ge(), [d, u] = g.useState(""), h = g.useMemo(() => c.find((C) => C.guid === d), [d]);
|
|
19136
19153
|
g.useEffect(() => {
|
|
19137
19154
|
s({
|
|
19138
19155
|
accounts: i,
|
|
@@ -19159,7 +19176,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19159
19176
|
}, hp = T(up), gp = {
|
|
19160
19177
|
view_transactions: "View Transactions"
|
|
19161
19178
|
}, mp = ({ onBackClick: e, sx: A }) => {
|
|
19162
|
-
const n = cA(), { onEvent: a } =
|
|
19179
|
+
const n = cA(), { onEvent: a } = ee(), { isDesktop: r, isTablet: i, isMobile: o } = Be(), { accounts: s } = ve(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: u } = _e(), { sortedTransactions: h } = ge(), { isInitialized: m, selectedAccounts: C, setSelectedAccounts: f } = ye(), { trends: v } = L(), E = n.palette.mode === "dark", [I, S] = g.useState(!1), [w, D] = g.useState(!1), [_, O] = g.useState("Chart"), [x, z] = g.useState(""), [K, q] = g.useState({
|
|
19163
19180
|
start: er(Re(bA(/* @__PURE__ */ new Date(), 6)), 1),
|
|
19164
19181
|
end: Re(/* @__PURE__ */ new Date())
|
|
19165
19182
|
});
|
|
@@ -19190,10 +19207,10 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19190
19207
|
}, [d, x, K]), V = g.useMemo(() => {
|
|
19191
19208
|
const Se = ne(
|
|
19192
19209
|
K.start,
|
|
19193
|
-
o ?
|
|
19210
|
+
o ? $.MONTH_SHORT_YEAR : $.MONTH_YEAR
|
|
19194
19211
|
), Je = ne(
|
|
19195
19212
|
K.end,
|
|
19196
|
-
o ?
|
|
19213
|
+
o ? $.MONTH_SHORT_YEAR : $.MONTH_YEAR
|
|
19197
19214
|
);
|
|
19198
19215
|
return `${Se} - ${Je}`;
|
|
19199
19216
|
}, [K, o]), te = (Se, Je) => {
|
|
@@ -19390,7 +19407,7 @@ export {
|
|
|
19390
19407
|
xc as AccountIconVariants,
|
|
19391
19408
|
pm as AccountStore,
|
|
19392
19409
|
Lc as AccountSubType,
|
|
19393
|
-
|
|
19410
|
+
Y as AccountType,
|
|
19394
19411
|
ma as AccountTypeName,
|
|
19395
19412
|
G8 as AccountsMiniWidget,
|
|
19396
19413
|
k8 as AccountsWidget,
|
|
@@ -19432,7 +19449,7 @@ export {
|
|
|
19432
19449
|
on as CurrencyCodes,
|
|
19433
19450
|
NA as CurrencyInput,
|
|
19434
19451
|
Ie as CurrencyText,
|
|
19435
|
-
|
|
19452
|
+
$ as DATE_FORMATS_INTL,
|
|
19436
19453
|
Ti as DEFAULT_DONUT_SIZE,
|
|
19437
19454
|
Ii as DEFAULT_STROKE_WIDTH,
|
|
19438
19455
|
U8 as Dashboard,
|
|
@@ -19459,8 +19476,8 @@ export {
|
|
|
19459
19476
|
n1 as GoalStore,
|
|
19460
19477
|
ea as GoalType,
|
|
19461
19478
|
R8 as GoalsWidget,
|
|
19462
|
-
Q8 as Help,
|
|
19463
19479
|
Vm as HelpList,
|
|
19480
|
+
Q8 as HelpWidget,
|
|
19464
19481
|
Y8 as HiddenInsightsDrawer,
|
|
19465
19482
|
Ca as INCOME_ACCOUNT_TYPES,
|
|
19466
19483
|
VA as IconBacking,
|
|
@@ -19528,7 +19545,7 @@ export {
|
|
|
19528
19545
|
k as TRANSACTION_EVENTS,
|
|
19529
19546
|
bt as TabContentContainer,
|
|
19530
19547
|
Pt as TopActions,
|
|
19531
|
-
|
|
19548
|
+
J as TrackType,
|
|
19532
19549
|
yr as TransactionApi,
|
|
19533
19550
|
It as TransactionDetails,
|
|
19534
19551
|
tt as TransactionList,
|
|
@@ -19579,7 +19596,7 @@ export {
|
|
|
19579
19596
|
Wc as useCombineEvents,
|
|
19580
19597
|
Yc as useCombinePageviews,
|
|
19581
19598
|
Hi as useDebtStore,
|
|
19582
|
-
|
|
19599
|
+
ee as useEvent,
|
|
19583
19600
|
F1 as useGetMergeableAccounts,
|
|
19584
19601
|
L as useGlobalCopyStore,
|
|
19585
19602
|
Sn as useGlobalStore,
|