@mx-cartographer/experiences 6.16.0 → 6.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +735 -720
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import H from "@mui/material/Divider";
|
|
|
6
6
|
import ie from "@mui/material/List";
|
|
7
7
|
import Mt from "@mui/material/ListSubheader";
|
|
8
8
|
import we from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as qc, P as
|
|
9
|
+
import { AccountsIcon as qc, P as xe, Icon as $, useTokens as gt, Text as p, H2 as cn, CategoryIcon as kt, DialogHeader as Qc, DialogFooter as Jc, Drawer as el, Footer as tl, DateRangePicker as ko, H3 as mt, H1 as Xt, TextField as yn, IconWeight as ft, MerchantLogo as rn, CategoryIconVariants as ns, InstitutionLogo as ut, ChevronRightIcon as nl, THEMES as Go } from "@mxenabled/mxui";
|
|
10
10
|
import il from "bowser";
|
|
11
11
|
import { getUnixTime as He } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as al } from "date-fns/intlFormat";
|
|
@@ -22,12 +22,12 @@ import { startOfToday as he } from "date-fns/startOfToday";
|
|
|
22
22
|
import { fromUnixTime as Fe } from "date-fns/fromUnixTime";
|
|
23
23
|
import { Honeybadger as Oi } from "@honeybadger-io/react";
|
|
24
24
|
import wa from "numeral";
|
|
25
|
-
import
|
|
25
|
+
import te from "@mui/material/Button";
|
|
26
26
|
import Bn from "@mui/material/Tooltip";
|
|
27
27
|
import Pe from "@mui/material/IconButton";
|
|
28
28
|
import Na from "@mui/material/FormControlLabel";
|
|
29
29
|
import z from "@mui/material/ListItem";
|
|
30
|
-
import
|
|
30
|
+
import ue from "@mui/material/ListItemButton";
|
|
31
31
|
import ae from "@mui/material/ListItemText";
|
|
32
32
|
import as from "@mui/material/Popover";
|
|
33
33
|
import b from "@mui/material/Stack";
|
|
@@ -325,7 +325,7 @@ const Md = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
325
325
|
TRENDS_HOVER_POINT: "trends_widget_hover_chart_point",
|
|
326
326
|
TRENDS_VIEW_TRANSACTIONS: "trends_widget_view_transactions",
|
|
327
327
|
WIDGET_BACK_CLICK: "widget_back_button_click"
|
|
328
|
-
}, kd = "do", Z4 = "MMM do, yyyy",
|
|
328
|
+
}, kd = "do", Z4 = "MMM do, yyyy", re = {
|
|
329
329
|
TIME_STAMP_HOUR_MINUTE: {
|
|
330
330
|
hour: "numeric",
|
|
331
331
|
minute: "numeric"
|
|
@@ -381,8 +381,8 @@ const Md = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
381
381
|
day: "numeric",
|
|
382
382
|
year: "numeric"
|
|
383
383
|
}
|
|
384
|
-
},
|
|
385
|
-
var
|
|
384
|
+
}, ce = (e, n) => al(new Date(e), Object.assign(n), { locale: Nn() });
|
|
385
|
+
var se = /* @__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))(se || {}), Gd = /* @__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))(Gd || {}), ys = /* @__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))(ys || {}), _t = /* @__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))(_t || {});
|
|
386
386
|
const Bd = [
|
|
387
387
|
0,
|
|
388
388
|
15,
|
|
@@ -483,28 +483,28 @@ const q4 = {
|
|
|
483
483
|
8: "sports_baseball",
|
|
484
484
|
9: "monetization_on"
|
|
485
485
|
}, Qa = [
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
486
|
+
se.ANY,
|
|
487
|
+
se.CASH,
|
|
488
|
+
se.CHECKING,
|
|
489
|
+
se.DIGITAL_WALLET,
|
|
490
|
+
se.PREPAID,
|
|
491
|
+
se.SAVINGS
|
|
492
492
|
], Ja = [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
493
|
+
se.CHECKING_LINE_OF_CREDIT,
|
|
494
|
+
se.CREDIT_CARD,
|
|
495
|
+
se.LINE_OF_CREDIT,
|
|
496
|
+
se.LOAN,
|
|
497
|
+
se.MORTGAGE
|
|
498
498
|
], eo = [
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
499
|
+
se.ANY,
|
|
500
|
+
se.CASH,
|
|
501
|
+
se.CHECKING,
|
|
502
|
+
se.CHECKING_LINE_OF_CREDIT,
|
|
503
|
+
se.CREDIT_CARD,
|
|
504
|
+
se.DIGITAL_WALLET,
|
|
505
|
+
se.LINE_OF_CREDIT,
|
|
506
|
+
se.PREPAID,
|
|
507
|
+
se.SAVINGS
|
|
508
508
|
], N = {
|
|
509
509
|
// Top-level categories
|
|
510
510
|
AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
|
|
@@ -870,7 +870,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), Kd = (e, n) => e.find
|
|
|
870
870
|
}, Zd = (e) => {
|
|
871
871
|
const n = vs(e);
|
|
872
872
|
return gi(n, 1);
|
|
873
|
-
}, qd = (e) => Wi(e, 1), ra = (e) =>
|
|
873
|
+
}, qd = (e) => Wi(e, 1), ra = (e) => ce(Fe(e), re.DAY_OF_WEEK_MONTH_DAY), ws = (e) => e ? ce(Fe(e), re.MONTH_YEAR) : "", Qd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
|
|
874
874
|
if (!e) return "";
|
|
875
875
|
const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(Qd)].reduce(
|
|
876
876
|
(r, s, c) => {
|
|
@@ -1302,7 +1302,7 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1302
1302
|
if (!n)
|
|
1303
1303
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1304
1304
|
return n;
|
|
1305
|
-
}, Ee = () => qe("useAccountStore").globalStore.accountStore, ei = () => qe("useAppConfig").globalStore.appDataStore.appConfig, no = () => qe("useAnalyticsStore").globalStore.analyticsStore, lt = () => qe("useBudgetsStore").globalStore.budgetsStore, io = () => qe("useCashflowStore").globalStore.cashflowStore, $e = () => qe("useCategoryStore").globalStore.categoryStore, Rs = () => qe("useConnectStore").globalStore.connectStore, sa = () => qe("useDebtsStore").globalStore.debtsStore, ca = () => qe("useGlobalStore").globalStore,
|
|
1305
|
+
}, Ee = () => qe("useAccountStore").globalStore.accountStore, ei = () => qe("useAppConfig").globalStore.appDataStore.appConfig, no = () => qe("useAnalyticsStore").globalStore.analyticsStore, lt = () => qe("useBudgetsStore").globalStore.budgetsStore, io = () => qe("useCashflowStore").globalStore.cashflowStore, $e = () => qe("useCategoryStore").globalStore.categoryStore, Rs = () => qe("useConnectStore").globalStore.connectStore, sa = () => qe("useDebtsStore").globalStore.debtsStore, ca = () => qe("useGlobalStore").globalStore, de = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, tt = () => qe("useGoalStore").globalStore.goalStore, ao = () => qe("useHelpStore").globalStore.helpStore, Gn = () => qe("useHoldingStore").globalStore.holdingStore, a_ = () => qe("useMerchantStore").globalStore.merchantStore, Os = () => qe("useNetWorthStore").globalStore.netWorthStore, Ls = () => qe("useNotificationStore").globalStore.notificationStore, ze = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => qe("useSettingsStore").globalStore.settingsStore, Ne = () => qe("useTransactionStore").globalStore.transactionStore, Bt = () => qe("useUserStore").globalStore.userStore, j = () => ({ onEvent: qe().onEvent }), cE = () => ({ onPageView: qe().onPageView }), o_ = (e = "useWidgetContainerContext") => {
|
|
1306
1306
|
const n = g.useContext(Ns);
|
|
1307
1307
|
if (!n)
|
|
1308
1308
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -1353,9 +1353,9 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1353
1353
|
},
|
|
1354
1354
|
children: [
|
|
1355
1355
|
/* @__PURE__ */ t(qc, { size: 32 }),
|
|
1356
|
-
/* @__PURE__ */ t(
|
|
1357
|
-
/* @__PURE__ */ t(
|
|
1358
|
-
/* @__PURE__ */ t(
|
|
1356
|
+
/* @__PURE__ */ t(xe, { bold: !0, mt: 12, children: i.zeroStateTitle }),
|
|
1357
|
+
/* @__PURE__ */ t(xe, { mt: 12, children: i.zeroStateDescription }),
|
|
1358
|
+
/* @__PURE__ */ t(te, { onClick: s, children: i.zeroStateButton })
|
|
1359
1359
|
]
|
|
1360
1360
|
}
|
|
1361
1361
|
) : /* @__PURE__ */ l("form", { onSubmit: _, children: [
|
|
@@ -1424,7 +1424,7 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1424
1424
|
className: "mx-cmn-account-options-group",
|
|
1425
1425
|
dense: !0,
|
|
1426
1426
|
subheader: /* @__PURE__ */ t(Mt, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1427
|
-
|
|
1427
|
+
ue,
|
|
1428
1428
|
{
|
|
1429
1429
|
"aria-label": T(i.toggleAccountTypeAccounts, S),
|
|
1430
1430
|
"aria-pressed": w,
|
|
@@ -1493,9 +1493,9 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1493
1493
|
}
|
|
1494
1494
|
),
|
|
1495
1495
|
/* @__PURE__ */ l(b, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, width: "100%", children: [
|
|
1496
|
-
/* @__PURE__ */ t(
|
|
1496
|
+
/* @__PURE__ */ t(te, { onClick: r, variant: "outlined", children: i.cancelButton }),
|
|
1497
1497
|
/* @__PURE__ */ t(
|
|
1498
|
-
|
|
1498
|
+
te,
|
|
1499
1499
|
{
|
|
1500
1500
|
"aria-label": i.filterButtonAria,
|
|
1501
1501
|
color: "primary",
|
|
@@ -1583,7 +1583,7 @@ const r_ = (e, n) => {
|
|
|
1583
1583
|
};
|
|
1584
1584
|
return /* @__PURE__ */ l(L, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
|
|
1585
1585
|
d ? /* @__PURE__ */ t(
|
|
1586
|
-
|
|
1586
|
+
te,
|
|
1587
1587
|
{
|
|
1588
1588
|
"aria-controls": "filter_accounts",
|
|
1589
1589
|
"aria-haspopup": !0,
|
|
@@ -1890,10 +1890,10 @@ const r_ = (e, n) => {
|
|
|
1890
1890
|
}), C_ = ({ copy: e, date: n, onNextClick: i, onPreviousClick: a }) => {
|
|
1891
1891
|
const o = gt(), r = f_(o);
|
|
1892
1892
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-calendar-header ${r}`, children: [
|
|
1893
|
-
/* @__PURE__ */ t(cn, { className: "mx-cmn-calendar-header-title", variant: "H3", children:
|
|
1893
|
+
/* @__PURE__ */ t(cn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ce(n, re.MONTH_YEAR) }),
|
|
1894
1894
|
/* @__PURE__ */ l("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
1895
|
-
/* @__PURE__ */ t(
|
|
1896
|
-
/* @__PURE__ */ t(
|
|
1895
|
+
/* @__PURE__ */ t(te, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(hl, {}) }),
|
|
1896
|
+
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(gl, {}) })
|
|
1897
1897
|
] })
|
|
1898
1898
|
] });
|
|
1899
1899
|
}, f_ = (e) => Zt({
|
|
@@ -1921,7 +1921,7 @@ const r_ = (e, n) => {
|
|
|
1921
1921
|
${c ? "mx-cmn-date-interval" : ""}
|
|
1922
1922
|
`,
|
|
1923
1923
|
children: /* @__PURE__ */ t(
|
|
1924
|
-
|
|
1924
|
+
te,
|
|
1925
1925
|
{
|
|
1926
1926
|
className: `
|
|
1927
1927
|
mx-cmn-calendar-day-button
|
|
@@ -2053,7 +2053,7 @@ const S_ = ({
|
|
|
2053
2053
|
},
|
|
2054
2054
|
B
|
|
2055
2055
|
)) }, `w-${v}`)),
|
|
2056
|
-
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(
|
|
2056
|
+
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(te, { onClick: y, size: "small", variant: "text", children: e.today }) })
|
|
2057
2057
|
] }) });
|
|
2058
2058
|
}, T_ = (e) => Zt({
|
|
2059
2059
|
width: E_,
|
|
@@ -2463,7 +2463,7 @@ const S_ = ({
|
|
|
2463
2463
|
const r = ln(), s = a.data[i], c = o[i];
|
|
2464
2464
|
return s === void 0 || !c ? null : /* @__PURE__ */ t(Ji, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(sl, { children: /* @__PURE__ */ l(Tn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2465
2465
|
/* @__PURE__ */ t(Hs, { categoryGuid: e, topLevelCategoryGuid: n }),
|
|
2466
|
-
/* @__PURE__ */ t(p, { color: r.palette.text.secondary, variant: "Small", children:
|
|
2466
|
+
/* @__PURE__ */ t(p, { color: r.palette.text.secondary, variant: "Small", children: ce(c, re.MONTH_SHORT_YEAR) }),
|
|
2467
2467
|
/* @__PURE__ */ t(We, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
|
2468
2468
|
] }) }) });
|
|
2469
2469
|
}, M_ = ({
|
|
@@ -2477,7 +2477,7 @@ const S_ = ({
|
|
|
2477
2477
|
return /* @__PURE__ */ t(b, { direction: "row", flexWrap: "wrap", gap: r ? 2 : 6, justifyContent: "start", sx: e, children: n.map(({ guid: c, top_level_guid: d }) => {
|
|
2478
2478
|
const u = i === c, _ = In[c], h = In[d], m = _ ?? h ?? In.default, C = m + "33";
|
|
2479
2479
|
return /* @__PURE__ */ l(
|
|
2480
|
-
|
|
2480
|
+
te,
|
|
2481
2481
|
{
|
|
2482
2482
|
onClick: () => o(c),
|
|
2483
2483
|
onMouseEnter: () => a(c),
|
|
@@ -2531,7 +2531,7 @@ const S_ = ({
|
|
|
2531
2531
|
(K, Le) => o.reduce((Ge, Pt) => Ge + Pt.dataset[Le]?.y || 0, 0)
|
|
2532
2532
|
) ?? [0], O = Math.max(...k), U = Math.max(
|
|
2533
2533
|
...r.flatMap((K) => K.dataset.map((Le) => Le.y))
|
|
2534
|
-
),
|
|
2534
|
+
), Q = Math.floor(Math.min(...D) / 100) * 100, oe = Math.ceil(Math.max(O, U) / 100) * 100, J = o.map((K, Le) => ({
|
|
2535
2535
|
id: `stacked-${Le}`,
|
|
2536
2536
|
guid: K.category_guid,
|
|
2537
2537
|
top_level_guid: K.top_level_category_guid,
|
|
@@ -2553,8 +2553,8 @@ const S_ = ({
|
|
|
2553
2553
|
label: K.category_name,
|
|
2554
2554
|
type: "line",
|
|
2555
2555
|
valueFormatter: (Ge) => P(Ge, "0,0")
|
|
2556
|
-
})), De = [...
|
|
2557
|
-
...
|
|
2556
|
+
})), De = [...J, ...ge], Re = [
|
|
2557
|
+
...J.map(({ guid: K, top_level_guid: Le }) => ({
|
|
2558
2558
|
guid: K,
|
|
2559
2559
|
top_level_guid: Le
|
|
2560
2560
|
})),
|
|
@@ -2572,7 +2572,7 @@ const S_ = ({
|
|
|
2572
2572
|
m(K), i?.(K ?? "");
|
|
2573
2573
|
}, It = (K) => {
|
|
2574
2574
|
a?.(K ?? "");
|
|
2575
|
-
},
|
|
2575
|
+
}, ee = () => {
|
|
2576
2576
|
const K = Se(String(E)).guid;
|
|
2577
2577
|
K && a?.(K);
|
|
2578
2578
|
}, ne = (K) => {
|
|
@@ -2627,10 +2627,10 @@ const S_ = ({
|
|
|
2627
2627
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
2628
2628
|
strokeWidth: 3
|
|
2629
2629
|
},
|
|
2630
|
-
...h &&
|
|
2630
|
+
...h && J.reduce((K, Le, Ge) => {
|
|
2631
2631
|
const Pt = `.MuiAreaElement-series-stacked-${Ge}`;
|
|
2632
2632
|
return K[Pt] = {
|
|
2633
|
-
opacity:
|
|
2633
|
+
opacity: J[Ge].guid === h ? 0.9 : 0.2
|
|
2634
2634
|
}, K;
|
|
2635
2635
|
}, {})
|
|
2636
2636
|
};
|
|
@@ -2646,7 +2646,7 @@ const S_ = ({
|
|
|
2646
2646
|
{
|
|
2647
2647
|
height: s || 400,
|
|
2648
2648
|
margin: { bottom: 50 },
|
|
2649
|
-
onAreaClick:
|
|
2649
|
+
onAreaClick: ee,
|
|
2650
2650
|
onHighlightChange: ne,
|
|
2651
2651
|
series: De,
|
|
2652
2652
|
skipAnimation: !0,
|
|
@@ -2674,15 +2674,15 @@ const S_ = ({
|
|
|
2674
2674
|
{
|
|
2675
2675
|
data: M,
|
|
2676
2676
|
scaleType: "time",
|
|
2677
|
-
valueFormatter: (K) =>
|
|
2677
|
+
valueFormatter: (K) => ce(K, re.MONTH_SHORT_YEAR),
|
|
2678
2678
|
tickNumber: B
|
|
2679
2679
|
// How many ticks to show on the x-axis
|
|
2680
2680
|
}
|
|
2681
2681
|
],
|
|
2682
2682
|
yAxis: [
|
|
2683
2683
|
{
|
|
2684
|
-
min:
|
|
2685
|
-
max:
|
|
2684
|
+
min: Q,
|
|
2685
|
+
max: oe || 100
|
|
2686
2686
|
}
|
|
2687
2687
|
]
|
|
2688
2688
|
}
|
|
@@ -2705,7 +2705,7 @@ const S_ = ({
|
|
|
2705
2705
|
cursorPosition: A,
|
|
2706
2706
|
hoveredAreaData: y.map((K) => ({
|
|
2707
2707
|
...K,
|
|
2708
|
-
x:
|
|
2708
|
+
x: ce(K.x, re.MONTH_SHORT_YEAR)
|
|
2709
2709
|
}))
|
|
2710
2710
|
}
|
|
2711
2711
|
)
|
|
@@ -2837,7 +2837,7 @@ const S_ = ({
|
|
|
2837
2837
|
/* @__PURE__ */ t(L, { width: "44px" })
|
|
2838
2838
|
]
|
|
2839
2839
|
}
|
|
2840
|
-
),
|
|
2840
|
+
), le = ({
|
|
2841
2841
|
ariaLabelClose: e = "Close",
|
|
2842
2842
|
children: n,
|
|
2843
2843
|
hasSecondaryAction: i = !0,
|
|
@@ -2930,14 +2930,14 @@ const S_ = ({
|
|
|
2930
2930
|
const O = Ye(En());
|
|
2931
2931
|
return [Ye(Yt(O, w)), O];
|
|
2932
2932
|
}, M = (O) => {
|
|
2933
|
-
const U = [...u],
|
|
2933
|
+
const U = [...u], Q = u[0], oe = u[1], J = O === "previous";
|
|
2934
2934
|
if (h === i.dateRangePickerCopy.dateRangeThisMonth)
|
|
2935
|
-
U[0] =
|
|
2935
|
+
U[0] = J ? Yt(Q, 1) : Tt(Q, 1), U[1] = Ye(J ? Yt(oe, 1) : Tt(oe, 1));
|
|
2936
2936
|
else if (h === i.dateRangePickerCopy.dateRangeYTD || h === i.dateRangePickerCopy.dateRangeLastYear)
|
|
2937
|
-
U[0] =
|
|
2937
|
+
U[0] = J ? Da(Fo(Q), 1) : Wi(Fo(Q), 1), U[1] = J ? Da(Po(Q), 1) : Wi(Po(Q), 1);
|
|
2938
2938
|
else {
|
|
2939
|
-
const ge = Nl(
|
|
2940
|
-
U[0] = O === "previous" ? At(
|
|
2939
|
+
const ge = Nl(oe, Q);
|
|
2940
|
+
U[0] = O === "previous" ? At(Q, ge) : sn(Q, ge), U[1] = O === "previous" ? At(oe, ge) : sn(oe, ge);
|
|
2941
2941
|
}
|
|
2942
2942
|
_(U), e.onRangeChanged(U);
|
|
2943
2943
|
}, D = () => {
|
|
@@ -2961,9 +2961,9 @@ const S_ = ({
|
|
|
2961
2961
|
children: [
|
|
2962
2962
|
r === "readonly" && /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
2963
2963
|
/* @__PURE__ */ t($, { name: "calendar_month", size: 24 }),
|
|
2964
|
-
/* @__PURE__ */ t(p, { bold: !0, children:
|
|
2964
|
+
/* @__PURE__ */ t(p, { bold: !0, children: ce(C[0], re.MONTH_DAY) }),
|
|
2965
2965
|
/* @__PURE__ */ t($, { name: "remove" }),
|
|
2966
|
-
/* @__PURE__ */ t(p, { bold: !0, children:
|
|
2966
|
+
/* @__PURE__ */ t(p, { bold: !0, children: ce(C[1], re.MONTH_DAY_YEAR) })
|
|
2967
2967
|
] }),
|
|
2968
2968
|
r !== "readonly" && r !== "timeframebuttons" && r !== "timeframetabs" && /* @__PURE__ */ l(
|
|
2969
2969
|
Dl,
|
|
@@ -2981,7 +2981,7 @@ const S_ = ({
|
|
|
2981
2981
|
variant: r,
|
|
2982
2982
|
children: [
|
|
2983
2983
|
/* @__PURE__ */ t(
|
|
2984
|
-
|
|
2984
|
+
te,
|
|
2985
2985
|
{
|
|
2986
2986
|
"aria-disabled": e.shouldDisablePrevious,
|
|
2987
2987
|
"aria-label": i.dateRangePreviousAria,
|
|
@@ -2991,7 +2991,7 @@ const S_ = ({
|
|
|
2991
2991
|
}
|
|
2992
2992
|
),
|
|
2993
2993
|
/* @__PURE__ */ t(
|
|
2994
|
-
|
|
2994
|
+
te,
|
|
2995
2995
|
{
|
|
2996
2996
|
"aria-disabled": e.shouldDisablePicker,
|
|
2997
2997
|
color: n,
|
|
@@ -3000,16 +3000,16 @@ const S_ = ({
|
|
|
3000
3000
|
sx: {
|
|
3001
3001
|
p: d ? 0 : 8
|
|
3002
3002
|
},
|
|
3003
|
-
children: S ?
|
|
3004
|
-
|
|
3003
|
+
children: S ? ce(u[0], re.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
|
|
3004
|
+
ce(u[0], re.MONTH_DAY_YEAR),
|
|
3005
3005
|
" -",
|
|
3006
3006
|
" ",
|
|
3007
|
-
|
|
3007
|
+
ce(u[1], re.MONTH_DAY_YEAR)
|
|
3008
3008
|
] })
|
|
3009
3009
|
}
|
|
3010
3010
|
),
|
|
3011
3011
|
/* @__PURE__ */ t(
|
|
3012
|
-
|
|
3012
|
+
te,
|
|
3013
3013
|
{
|
|
3014
3014
|
"aria-disabled": e.shouldDisableNext,
|
|
3015
3015
|
"aria-label": i.dateRangeNextAria,
|
|
@@ -3085,7 +3085,7 @@ const S_ = ({
|
|
|
3085
3085
|
}
|
|
3086
3086
|
),
|
|
3087
3087
|
E && d && /* @__PURE__ */ t(
|
|
3088
|
-
|
|
3088
|
+
le,
|
|
3089
3089
|
{
|
|
3090
3090
|
ariaLabelClose: i.dateRangeCloseAria,
|
|
3091
3091
|
isOpen: E,
|
|
@@ -3285,7 +3285,7 @@ const so = ({
|
|
|
3285
3285
|
dn,
|
|
3286
3286
|
{
|
|
3287
3287
|
action: /* @__PURE__ */ t(
|
|
3288
|
-
|
|
3288
|
+
te,
|
|
3289
3289
|
{
|
|
3290
3290
|
endIcon: /* @__PURE__ */ t(it, { size: 20 }),
|
|
3291
3291
|
onClick: a,
|
|
@@ -3353,7 +3353,7 @@ const Dn = ({
|
|
|
3353
3353
|
/* @__PURE__ */ t(
|
|
3354
3354
|
dn,
|
|
3355
3355
|
{
|
|
3356
|
-
action: a ? /* @__PURE__ */ t(Pe, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(ct, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(
|
|
3356
|
+
action: a ? /* @__PURE__ */ t(Pe, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(ct, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(it, {}), onClick: o, children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: r }) }),
|
|
3357
3357
|
subheader: s || null,
|
|
3358
3358
|
subheaderTypographyProps: { variant: "Small" },
|
|
3359
3359
|
sx: { pb: 4 },
|
|
@@ -3362,7 +3362,7 @@ const Dn = ({
|
|
|
3362
3362
|
),
|
|
3363
3363
|
/* @__PURE__ */ t(Ot, { ref: u, sx: { p: 0 }, children: /* @__PURE__ */ t(Ds, { availableHeight: _, availableWidth: h, children: i }) })
|
|
3364
3364
|
] });
|
|
3365
|
-
},
|
|
3365
|
+
}, _e = ({ height: e = 250, label: n = "", size: i = 32 }) => {
|
|
3366
3366
|
const a = gt();
|
|
3367
3367
|
return /* @__PURE__ */ l(b, { alignItems: "center", gap: a.Spacing.XLarge, height: e, justifyContent: "center", children: [
|
|
3368
3368
|
/* @__PURE__ */ t(Ka, { size: i }),
|
|
@@ -3383,11 +3383,11 @@ const Dn = ({
|
|
|
3383
3383
|
sx: h = {},
|
|
3384
3384
|
title: m = ""
|
|
3385
3385
|
}) => {
|
|
3386
|
-
const [C, { height: f, width: E }] = Ps(), { onEvent: y } = j(), { isDesktop: S, isMobile: A, isTablet: w } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: B, setSelectedAccountGuids: M } =
|
|
3386
|
+
const [C, { height: f, width: E }] = Ps(), { onEvent: y } = j(), { isDesktop: S, isMobile: A, isTablet: w } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: B, setSelectedAccountGuids: M } = de(), { common: D } = x(), k = () => {
|
|
3387
3387
|
d && (d(), y(W.WIDGET_BACK_CLICK));
|
|
3388
3388
|
};
|
|
3389
3389
|
if (!R)
|
|
3390
|
-
return /* @__PURE__ */ t(
|
|
3390
|
+
return /* @__PURE__ */ t(_e, {});
|
|
3391
3391
|
const O = {
|
|
3392
3392
|
accountFilterOptionsCopy: {
|
|
3393
3393
|
accountTypeAccounts: D.account_filter.account_type_accounts,
|
|
@@ -3420,7 +3420,7 @@ const Dn = ({
|
|
|
3420
3420
|
dateRangeEditTitle: D.date_range_picker.edit_title,
|
|
3421
3421
|
dateRangeNextAria: D.date_range_picker.next_aria,
|
|
3422
3422
|
dateRangePreviousAria: D.date_range_picker.previous_aria
|
|
3423
|
-
},
|
|
3423
|
+
}, Q = o ? o.start : v.start, oe = o ? o.end : v.end, J = n?.length > 1;
|
|
3424
3424
|
return /* @__PURE__ */ l(
|
|
3425
3425
|
Rt,
|
|
3426
3426
|
{
|
|
@@ -3442,7 +3442,7 @@ const Dn = ({
|
|
|
3442
3442
|
{
|
|
3443
3443
|
calendarActions: i,
|
|
3444
3444
|
copy: U,
|
|
3445
|
-
range: [
|
|
3445
|
+
range: [Q, oe],
|
|
3446
3446
|
shouldShrinkToIcon: !1,
|
|
3447
3447
|
variant: r
|
|
3448
3448
|
}
|
|
@@ -3463,8 +3463,8 @@ const Dn = ({
|
|
|
3463
3463
|
n?.map((ge) => {
|
|
3464
3464
|
if (g.isValidElement(ge)) return ge;
|
|
3465
3465
|
const { iconName: De, onClick: Re, label: Se } = ge;
|
|
3466
|
-
return
|
|
3467
|
-
|
|
3466
|
+
return J ? S || w ? /* @__PURE__ */ t(
|
|
3467
|
+
te,
|
|
3468
3468
|
{
|
|
3469
3469
|
onClick: Re,
|
|
3470
3470
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
@@ -3473,7 +3473,7 @@ const Dn = ({
|
|
|
3473
3473
|
},
|
|
3474
3474
|
De
|
|
3475
3475
|
) : /* @__PURE__ */ t(Pe, { "aria-label": Se, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De) : S || w ? /* @__PURE__ */ t(
|
|
3476
|
-
|
|
3476
|
+
te,
|
|
3477
3477
|
{
|
|
3478
3478
|
onClick: Re,
|
|
3479
3479
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
@@ -3515,7 +3515,7 @@ const Dn = ({
|
|
|
3515
3515
|
{
|
|
3516
3516
|
calendarActions: i,
|
|
3517
3517
|
copy: U,
|
|
3518
|
-
range: [
|
|
3518
|
+
range: [Q, oe],
|
|
3519
3519
|
shouldShrinkToIcon: !1,
|
|
3520
3520
|
variant: r
|
|
3521
3521
|
}
|
|
@@ -3582,7 +3582,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3582
3582
|
})) : (u(!1), h(!1)), () => {
|
|
3583
3583
|
o?.unmount();
|
|
3584
3584
|
}), [i]), /* @__PURE__ */ t(
|
|
3585
|
-
|
|
3585
|
+
le,
|
|
3586
3586
|
{
|
|
3587
3587
|
ariaLabelClose: c.close_manage_connection_aria,
|
|
3588
3588
|
isOpen: i,
|
|
@@ -3644,8 +3644,8 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3644
3644
|
yn,
|
|
3645
3645
|
{
|
|
3646
3646
|
InputProps: {
|
|
3647
|
-
endAdornment: Nn().includes("fr-ca") ? /* @__PURE__ */ t(
|
|
3648
|
-
startAdornment: Nn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(
|
|
3647
|
+
endAdornment: Nn().includes("fr-ca") ? /* @__PURE__ */ t(xe, { children: "$" }) : void 0,
|
|
3648
|
+
startAdornment: Nn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(xe, { children: "$" })
|
|
3649
3649
|
},
|
|
3650
3650
|
"aria-label": n || E.enter_amount,
|
|
3651
3651
|
className: `mx-cmn-currency-input ${S}`,
|
|
@@ -3678,7 +3678,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3678
3678
|
const s = pe();
|
|
3679
3679
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
3680
3680
|
/* @__PURE__ */ t(
|
|
3681
|
-
|
|
3681
|
+
te,
|
|
3682
3682
|
{
|
|
3683
3683
|
onClick: i,
|
|
3684
3684
|
startIcon: e,
|
|
@@ -3833,7 +3833,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3833
3833
|
}
|
|
3834
3834
|
)
|
|
3835
3835
|
] });
|
|
3836
|
-
return i ? /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
3836
|
+
return i ? /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: i, children: [
|
|
3837
3837
|
o,
|
|
3838
3838
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: "chevron_right", size: 24 }) })
|
|
3839
3839
|
] }) }) : /* @__PURE__ */ t(z, { disableGutters: !1, disablePadding: !1, children: o });
|
|
@@ -3885,7 +3885,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3885
3885
|
/* @__PURE__ */ t(Ot, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(b, { alignItems: "flex-start", spacing: 2, children: [
|
|
3886
3886
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
|
3887
3887
|
/* @__PURE__ */ t(
|
|
3888
|
-
|
|
3888
|
+
te,
|
|
3889
3889
|
{
|
|
3890
3890
|
endIcon: /* @__PURE__ */ t(it, {}),
|
|
3891
3891
|
onClick: () => r(!0),
|
|
@@ -3949,8 +3949,8 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3949
3949
|
mt: 48
|
|
3950
3950
|
},
|
|
3951
3951
|
children: [
|
|
3952
|
-
/* @__PURE__ */ t(
|
|
3953
|
-
r && /* @__PURE__ */ t(
|
|
3952
|
+
/* @__PURE__ */ t(te, { onClick: () => a("primary"), sx: { textWrap: "nowrap" }, variant: "contained", children: o }),
|
|
3953
|
+
r && /* @__PURE__ */ t(te, { onClick: () => a("secondary"), sx: { textWrap: "nowrap" }, variant: "text", children: r })
|
|
3954
3954
|
]
|
|
3955
3955
|
}
|
|
3956
3956
|
)
|
|
@@ -3974,7 +3974,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3974
3974
|
h(!1), r();
|
|
3975
3975
|
};
|
|
3976
3976
|
return /* @__PURE__ */ l(z, { children: [
|
|
3977
|
-
/* @__PURE__ */ l(
|
|
3977
|
+
/* @__PURE__ */ l(ue, { onClick: () => h(!n), children: [
|
|
3978
3978
|
/* @__PURE__ */ t(
|
|
3979
3979
|
ae,
|
|
3980
3980
|
{
|
|
@@ -4018,7 +4018,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
4018
4018
|
}) => {
|
|
4019
4019
|
const { onEvent: o } = j();
|
|
4020
4020
|
return i ? /* @__PURE__ */ t(z, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
|
4021
|
-
|
|
4021
|
+
ue,
|
|
4022
4022
|
{
|
|
4023
4023
|
onClick: () => {
|
|
4024
4024
|
n && o(n), i();
|
|
@@ -4068,7 +4068,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
4068
4068
|
"& .MuiListItemSecondaryAction-root": { right: n ? 64 : 24 },
|
|
4069
4069
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
4070
4070
|
},
|
|
4071
|
-
children: /* @__PURE__ */ l(
|
|
4071
|
+
children: /* @__PURE__ */ l(ue, { disabled: a, onClick: o, children: [
|
|
4072
4072
|
e && /* @__PURE__ */ t(ke, { children: e }),
|
|
4073
4073
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ l(b, { children: [
|
|
4074
4074
|
/* @__PURE__ */ t(p, { variant: "body1", children: s }),
|
|
@@ -4467,7 +4467,7 @@ const ti = () => {
|
|
|
4467
4467
|
/* @__PURE__ */ t(We, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
|
4468
4468
|
] });
|
|
4469
4469
|
}, _o = I(nu), iu = ({ onAddIncomeClick: e }) => {
|
|
4470
|
-
const n = pe(), { availableWidth: i } = Fn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Ee(), { selectedAccountGuids: s } =
|
|
4470
|
+
const n = pe(), { availableWidth: i } = Fn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Ee(), { selectedAccountGuids: s } = de(), { cashflow: c } = x(), { userProfile: d } = Bt(), {
|
|
4471
4471
|
daysUntilNextIncome: u,
|
|
4472
4472
|
expensesTilNextIncome: _,
|
|
4473
4473
|
selectedCashAccounts: h,
|
|
@@ -4503,7 +4503,7 @@ const ti = () => {
|
|
|
4503
4503
|
children: [
|
|
4504
4504
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4505
4505
|
/* @__PURE__ */ t(We, { amount: A, variant: "H2" }),
|
|
4506
|
-
/* @__PURE__ */ t(
|
|
4506
|
+
/* @__PURE__ */ t(xe, { variant: "XSmall", whiteSpace: "nowrap", children: T(
|
|
4507
4507
|
c.total_cash_accounts,
|
|
4508
4508
|
h.length
|
|
4509
4509
|
) })
|
|
@@ -4511,21 +4511,21 @@ const ti = () => {
|
|
|
4511
4511
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
|
|
4512
4512
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4513
4513
|
/* @__PURE__ */ t(We, { amount: w, variant: "H2" }),
|
|
4514
|
-
/* @__PURE__ */ t(
|
|
4514
|
+
/* @__PURE__ */ t(xe, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, _.length) })
|
|
4515
4515
|
] }),
|
|
4516
4516
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
|
|
4517
4517
|
/* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
|
|
4518
4518
|
/* @__PURE__ */ t(We, { amount: v, variant: "H2" }),
|
|
4519
4519
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
4520
|
-
/* @__PURE__ */ t(
|
|
4520
|
+
/* @__PURE__ */ t(xe, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
4521
4521
|
/* @__PURE__ */ t(co, { body: c.tooltip_body, title: c.tooltip_title })
|
|
4522
4522
|
] })
|
|
4523
4523
|
] }),
|
|
4524
4524
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(q, { children: [
|
|
4525
4525
|
/* @__PURE__ */ t(p, { variant: "H2", children: T(c.days, u) }),
|
|
4526
|
-
/* @__PURE__ */ t(
|
|
4526
|
+
/* @__PURE__ */ t(xe, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
4527
4527
|
] }) : /* @__PURE__ */ t(
|
|
4528
|
-
|
|
4528
|
+
te,
|
|
4529
4529
|
{
|
|
4530
4530
|
onClick: e,
|
|
4531
4531
|
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
|
@@ -4579,7 +4579,7 @@ const ti = () => {
|
|
|
4579
4579
|
children: [
|
|
4580
4580
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.next_paycheck }),
|
|
4581
4581
|
/* @__PURE__ */ t(
|
|
4582
|
-
|
|
4582
|
+
te,
|
|
4583
4583
|
{
|
|
4584
4584
|
onClick: e,
|
|
4585
4585
|
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
|
@@ -4590,9 +4590,9 @@ const ti = () => {
|
|
|
4590
4590
|
]
|
|
4591
4591
|
}
|
|
4592
4592
|
)
|
|
4593
|
-
] }) }) : /* @__PURE__ */ t(
|
|
4593
|
+
] }) }) : /* @__PURE__ */ t(_e, { height: a ? 210 : 120 });
|
|
4594
4594
|
}, au = I(iu), ou = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
|
|
4595
|
-
const { cashflow: i } = x(), { isCopyLoaded: a, isInitialized: o } =
|
|
4595
|
+
const { cashflow: i } = x(), { isCopyLoaded: a, isInitialized: o } = de(), { loadRepeatingTransactions: r } = ze();
|
|
4596
4596
|
return g.useEffect(() => {
|
|
4597
4597
|
o && r().finally();
|
|
4598
4598
|
}, [o]), a ? /* @__PURE__ */ t(
|
|
@@ -4606,7 +4606,7 @@ const ti = () => {
|
|
|
4606
4606
|
title: i.title,
|
|
4607
4607
|
children: /* @__PURE__ */ t(au, { onAddIncomeClick: e })
|
|
4608
4608
|
}
|
|
4609
|
-
) : /* @__PURE__ */ t(
|
|
4609
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
4610
4610
|
}, hE = I(ou), ru = (e) => {
|
|
4611
4611
|
if (!e) return "";
|
|
4612
4612
|
let n = e.user_name || e.feed_name || "";
|
|
@@ -4753,19 +4753,19 @@ const ti = () => {
|
|
|
4753
4753
|
case me.EveryWeek:
|
|
4754
4754
|
c = i ? T(
|
|
4755
4755
|
e.weekly_ordinal,
|
|
4756
|
-
|
|
4756
|
+
ce(a, re.DAY_OF_WEEK)
|
|
4757
4757
|
) : e.weekly;
|
|
4758
4758
|
break;
|
|
4759
4759
|
case me.EveryYear:
|
|
4760
4760
|
c = i ? T(
|
|
4761
4761
|
e.anually_ordinal,
|
|
4762
|
-
|
|
4762
|
+
ce(o, re.MONTH_DAY)
|
|
4763
4763
|
) : e.anually;
|
|
4764
4764
|
break;
|
|
4765
4765
|
case me.EveryOtherWeek:
|
|
4766
4766
|
c = i ? T(
|
|
4767
4767
|
e.every_other_week_ordinal,
|
|
4768
|
-
|
|
4768
|
+
ce(a, re.DAY_OF_WEEK)
|
|
4769
4769
|
) : e.every_other_week;
|
|
4770
4770
|
break;
|
|
4771
4771
|
case me.EveryOtherMonth:
|
|
@@ -5264,7 +5264,7 @@ const fu = [
|
|
|
5264
5264
|
const u = c.tags.some(
|
|
5265
5265
|
(h) => Ft(s, n.find((m) => m.guid === h)?.name)
|
|
5266
5266
|
), _ = Fe(c.date);
|
|
5267
|
-
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s,
|
|
5267
|
+
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ce(_, re.MONTH)) || Ft(s, ce(_, re.DAY)) || Ft(s, ce(_, re.FULL_MONTH_DAY)) || Ft(s, ce(_, re.MONTH_DAY_YEAR)) || Ft(s, kn(_, kd)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || u;
|
|
5268
5268
|
});
|
|
5269
5269
|
}, Iu = (e, n, i) => [...e].sort((a, o) => {
|
|
5270
5270
|
const r = n, s = (a[r] || "") > (o[r] || "");
|
|
@@ -5547,7 +5547,7 @@ const Lt = () => {
|
|
|
5547
5547
|
const i = Lu(Ou(e, n)), a = encodeURIComponent(i), o = document.createElement("a");
|
|
5548
5548
|
o.href = `data:attachment/csv;charset=utf-8,${a}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
5549
5549
|
}, Ou = (e, n) => e.map((i) => ({
|
|
5550
|
-
Date:
|
|
5550
|
+
Date: ce(Fe(i.date), re.YEAR_MONTH_DAY),
|
|
5551
5551
|
Description: Mu(i),
|
|
5552
5552
|
"Original Description": i.feed_description,
|
|
5553
5553
|
Amount: `${i.amount}`,
|
|
@@ -5662,7 +5662,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5662
5662
|
}, ur = 65, hr = 34, Uu = ({
|
|
5663
5663
|
bgcolor: e,
|
|
5664
5664
|
height: n = "calc(100dvh - 36px)",
|
|
5665
|
-
loader: i = /* @__PURE__ */ t(
|
|
5665
|
+
loader: i = /* @__PURE__ */ t(_e, { label: "Loading", size: 40 }),
|
|
5666
5666
|
onClick: a,
|
|
5667
5667
|
showInsights: o = !1,
|
|
5668
5668
|
showLoader: r = !1,
|
|
@@ -5752,7 +5752,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5752
5752
|
]
|
|
5753
5753
|
}
|
|
5754
5754
|
);
|
|
5755
|
-
}, Yu = I(zu), ju = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children:
|
|
5755
|
+
}, Yu = I(zu), ju = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ce(Fe(e.row.date), re.MONTH_DAY) }), Xu = (e) => {
|
|
5756
5756
|
const n = at(), { transactions: i } = x(), { is_flagged: a, is_hidden: o, has_been_viewed: r, parent_guid: s } = e.row, d = !r && !!!s;
|
|
5757
5757
|
return /* @__PURE__ */ l(
|
|
5758
5758
|
L,
|
|
@@ -5794,7 +5794,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5794
5794
|
onCategoryClick: n,
|
|
5795
5795
|
onRowClick: i
|
|
5796
5796
|
}) => {
|
|
5797
|
-
const { isLoading: a, sortedTransactions: o } = Ne(), { transactions: r } = x(), { isCopyLoaded: s } =
|
|
5797
|
+
const { isLoading: a, sortedTransactions: o } = Ne(), { transactions: r } = x(), { isCopyLoaded: s } = de(), c = g.useMemo(
|
|
5798
5798
|
() => o.map((_) => ({
|
|
5799
5799
|
id: _.guid,
|
|
5800
5800
|
isHovering: !1,
|
|
@@ -5805,7 +5805,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5805
5805
|
_.field === "category" ? n?.(_.row.guid) : i?.(_.row.guid);
|
|
5806
5806
|
};
|
|
5807
5807
|
if (!s)
|
|
5808
|
-
return /* @__PURE__ */ t(
|
|
5808
|
+
return /* @__PURE__ */ t(_e, {});
|
|
5809
5809
|
const u = [
|
|
5810
5810
|
{
|
|
5811
5811
|
field: "flag",
|
|
@@ -5952,7 +5952,7 @@ const eh = ({
|
|
|
5952
5952
|
i(!1), r(jt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
|
5953
5953
|
};
|
|
5954
5954
|
return /* @__PURE__ */ l(z, { disableGutters: !0, disablePadding: !0, children: [
|
|
5955
|
-
/* @__PURE__ */ t(
|
|
5955
|
+
/* @__PURE__ */ t(ue, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
|
5956
5956
|
ae,
|
|
5957
5957
|
{
|
|
5958
5958
|
primary: o.add_subcategory_button,
|
|
@@ -6029,7 +6029,7 @@ const eh = ({
|
|
|
6029
6029
|
sx: { pl: 58 },
|
|
6030
6030
|
children: [
|
|
6031
6031
|
/* @__PURE__ */ l(
|
|
6032
|
-
|
|
6032
|
+
ue,
|
|
6033
6033
|
{
|
|
6034
6034
|
"aria-pressed": y,
|
|
6035
6035
|
color: "secondary",
|
|
@@ -6126,7 +6126,7 @@ const eh = ({
|
|
|
6126
6126
|
};
|
|
6127
6127
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6128
6128
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6129
|
-
|
|
6129
|
+
ue,
|
|
6130
6130
|
{
|
|
6131
6131
|
"aria-controls": `subcategories-${e.guid}`,
|
|
6132
6132
|
"aria-expanded": e.guid === i,
|
|
@@ -6183,7 +6183,7 @@ const eh = ({
|
|
|
6183
6183
|
unselectable: a = [],
|
|
6184
6184
|
unselectableText: o = "Unselectable"
|
|
6185
6185
|
}) => {
|
|
6186
|
-
const { categories: r, loadCategories: s } = $e(), { common: c } = x(), { isCopyLoaded: d } =
|
|
6186
|
+
const { categories: r, loadCategories: s } = $e(), { common: c } = x(), { isCopyLoaded: d } = de(), {
|
|
6187
6187
|
searchValue: u,
|
|
6188
6188
|
setOnSelect: _,
|
|
6189
6189
|
setSearchValue: h,
|
|
@@ -6210,7 +6210,7 @@ const eh = ({
|
|
|
6210
6210
|
}
|
|
6211
6211
|
),
|
|
6212
6212
|
/* @__PURE__ */ t(hh, {})
|
|
6213
|
-
] }) : /* @__PURE__ */ t(
|
|
6213
|
+
] }) : /* @__PURE__ */ t(_e, {});
|
|
6214
6214
|
}, mh = I(gh), ph = ({
|
|
6215
6215
|
id: e,
|
|
6216
6216
|
onClose: n,
|
|
@@ -6218,9 +6218,9 @@ const eh = ({
|
|
|
6218
6218
|
showDrawer: a,
|
|
6219
6219
|
...o
|
|
6220
6220
|
}) => {
|
|
6221
|
-
const { common: r } = x(), { isCopyLoaded: s } =
|
|
6221
|
+
const { common: r } = x(), { isCopyLoaded: s } = de();
|
|
6222
6222
|
return s ? /* @__PURE__ */ t(
|
|
6223
|
-
|
|
6223
|
+
le,
|
|
6224
6224
|
{
|
|
6225
6225
|
ariaLabelClose: r.close_aria,
|
|
6226
6226
|
className: "mx-cat-category-selector-drawer",
|
|
@@ -6230,7 +6230,7 @@ const eh = ({
|
|
|
6230
6230
|
title: i,
|
|
6231
6231
|
children: /* @__PURE__ */ t(mh, { ...o })
|
|
6232
6232
|
}
|
|
6233
|
-
) : /* @__PURE__ */ t(
|
|
6233
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
6234
6234
|
}, _a = I(ph), Ch = 3, gr = 12, fh = (e, n, i) => e.filter((a) => !a.parent_guid).map(
|
|
6235
6235
|
(a) => Ks(
|
|
6236
6236
|
a,
|
|
@@ -6281,7 +6281,7 @@ const eh = ({
|
|
|
6281
6281
|
n.push({
|
|
6282
6282
|
amount: s,
|
|
6283
6283
|
isoDate: kn(o, "yyyy-MM-dd"),
|
|
6284
|
-
label:
|
|
6284
|
+
label: ce(o, re.MONTH_YEAR)
|
|
6285
6285
|
});
|
|
6286
6286
|
}
|
|
6287
6287
|
return n;
|
|
@@ -6451,7 +6451,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6451
6451
|
);
|
|
6452
6452
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6453
6453
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6454
|
-
|
|
6454
|
+
ue,
|
|
6455
6455
|
{
|
|
6456
6456
|
onClick: () => {
|
|
6457
6457
|
o(Y.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
@@ -6523,7 +6523,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6523
6523
|
};
|
|
6524
6524
|
return /* @__PURE__ */ l(L, { className: "mx-txn-date-action", children: [
|
|
6525
6525
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6526
|
-
|
|
6526
|
+
ue,
|
|
6527
6527
|
{
|
|
6528
6528
|
onClick: () => {
|
|
6529
6529
|
i(Y.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
@@ -6535,7 +6535,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6535
6535
|
{
|
|
6536
6536
|
primary: s.date_title,
|
|
6537
6537
|
primaryTypographyProps: { variant: "XSmall" },
|
|
6538
|
-
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
|
6538
|
+
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ce(Fe(e.date), re.YEAR_MONTH_DAY) })
|
|
6539
6539
|
}
|
|
6540
6540
|
),
|
|
6541
6541
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: ft.Dark }) })
|
|
@@ -6543,7 +6543,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6543
6543
|
}
|
|
6544
6544
|
) }),
|
|
6545
6545
|
/* @__PURE__ */ t(
|
|
6546
|
-
|
|
6546
|
+
le,
|
|
6547
6547
|
{
|
|
6548
6548
|
ariaLabelClose: r.close_aria,
|
|
6549
6549
|
isOpen: c,
|
|
@@ -6574,7 +6574,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6574
6574
|
};
|
|
6575
6575
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
|
|
6576
6576
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6577
|
-
|
|
6577
|
+
ue,
|
|
6578
6578
|
{
|
|
6579
6579
|
onClick: () => {
|
|
6580
6580
|
n(Y.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
@@ -6616,7 +6616,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6616
6616
|
};
|
|
6617
6617
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete-logo", children: [
|
|
6618
6618
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6619
|
-
|
|
6619
|
+
ue,
|
|
6620
6620
|
{
|
|
6621
6621
|
onClick: () => {
|
|
6622
6622
|
n(Y.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
@@ -6656,7 +6656,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6656
6656
|
};
|
|
6657
6657
|
return /* @__PURE__ */ l(L, { className: "mx-txn-hide-transaction", children: [
|
|
6658
6658
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6659
|
-
|
|
6659
|
+
ue,
|
|
6660
6660
|
{
|
|
6661
6661
|
"aria-checked": d,
|
|
6662
6662
|
onClick: () => {
|
|
@@ -6751,7 +6751,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6751
6751
|
};
|
|
6752
6752
|
return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
|
|
6753
6753
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
6754
|
-
|
|
6754
|
+
ue,
|
|
6755
6755
|
{
|
|
6756
6756
|
onClick: () => {
|
|
6757
6757
|
n(Y.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
@@ -6779,7 +6779,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6779
6779
|
}
|
|
6780
6780
|
) }),
|
|
6781
6781
|
/* @__PURE__ */ l(
|
|
6782
|
-
|
|
6782
|
+
le,
|
|
6783
6783
|
{
|
|
6784
6784
|
ariaLabelClose: o.close_aria,
|
|
6785
6785
|
isOpen: s,
|
|
@@ -6828,7 +6828,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6828
6828
|
/* @__PURE__ */ l(je, { alignItems: m ? "center" : "start", container: !0, children: [
|
|
6829
6829
|
/* @__PURE__ */ t(je, { item: !0, xs: 7, children: /* @__PURE__ */ l(b, { alignItems: "start", children: [
|
|
6830
6830
|
/* @__PURE__ */ t(
|
|
6831
|
-
|
|
6831
|
+
te,
|
|
6832
6832
|
{
|
|
6833
6833
|
endIcon: /* @__PURE__ */ t(na, {}),
|
|
6834
6834
|
onClick: () => h(!0),
|
|
@@ -6954,7 +6954,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6954
6954
|
}
|
|
6955
6955
|
),
|
|
6956
6956
|
/* @__PURE__ */ t(L, { p: s.Spacing.Medium, children: /* @__PURE__ */ t(
|
|
6957
|
-
|
|
6957
|
+
te,
|
|
6958
6958
|
{
|
|
6959
6959
|
"aria-label": c.split_transaction_add_split_btn,
|
|
6960
6960
|
onClick: () => {
|
|
@@ -6991,16 +6991,16 @@ const zs = ({ transaction: e }) => {
|
|
|
6991
6991
|
}, A = (k, O) => {
|
|
6992
6992
|
const U = [...f];
|
|
6993
6993
|
U[k].amount = O, U[0].amount = e.amount - U.reduce(
|
|
6994
|
-
(
|
|
6994
|
+
(Q, oe, J) => Q + (J !== 0 ? oe.amount : 0),
|
|
6995
6995
|
0
|
|
6996
6996
|
), E(U);
|
|
6997
6997
|
}, w = (k, O) => {
|
|
6998
|
-
const U = [...f],
|
|
6999
|
-
|
|
6998
|
+
const U = [...f], Q = c.find((oe) => oe.guid === O);
|
|
6999
|
+
Q && (U[k] = {
|
|
7000
7000
|
...U[k],
|
|
7001
7001
|
category_guid: O,
|
|
7002
|
-
category:
|
|
7003
|
-
top_level_category_guid:
|
|
7002
|
+
category: Q.name,
|
|
7003
|
+
top_level_category_guid: Q.parent_guid || O
|
|
7004
7004
|
}, E(U));
|
|
7005
7005
|
}, v = () => {
|
|
7006
7006
|
if (e.parent_guid || e.has_been_split) {
|
|
@@ -7025,7 +7025,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7025
7025
|
return k || O;
|
|
7026
7026
|
}, [f]);
|
|
7027
7027
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7028
|
-
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
7028
|
+
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: v, children: [
|
|
7029
7029
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
7030
7030
|
/* @__PURE__ */ t(
|
|
7031
7031
|
ae,
|
|
@@ -7037,7 +7037,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7037
7037
|
/* @__PURE__ */ t(ht, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t($, { name: "delete", weight: ft.Dark }) : /* @__PURE__ */ t($, { name: "chevron_right", weight: ft.Dark }) })
|
|
7038
7038
|
] }) }),
|
|
7039
7039
|
/* @__PURE__ */ l(
|
|
7040
|
-
|
|
7040
|
+
le,
|
|
7041
7041
|
{
|
|
7042
7042
|
ariaLabelClose: o.close_aria,
|
|
7043
7043
|
isOpen: _,
|
|
@@ -7111,7 +7111,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7111
7111
|
children: [
|
|
7112
7112
|
/* @__PURE__ */ t(p, { bold: !0, children: a.tags_your_tags }),
|
|
7113
7113
|
/* @__PURE__ */ t(
|
|
7114
|
-
|
|
7114
|
+
te,
|
|
7115
7115
|
{
|
|
7116
7116
|
"aria-expanded": o,
|
|
7117
7117
|
"aria-label": a.tags_add_tag_btn_aria,
|
|
@@ -7142,7 +7142,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7142
7142
|
value: s
|
|
7143
7143
|
}
|
|
7144
7144
|
),
|
|
7145
|
-
/* @__PURE__ */ t(
|
|
7145
|
+
/* @__PURE__ */ t(xe, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
|
|
7146
7146
|
]
|
|
7147
7147
|
}
|
|
7148
7148
|
)
|
|
@@ -7213,7 +7213,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7213
7213
|
] }),
|
|
7214
7214
|
children: [
|
|
7215
7215
|
/* @__PURE__ */ l(
|
|
7216
|
-
|
|
7216
|
+
ue,
|
|
7217
7217
|
{
|
|
7218
7218
|
"aria-checked": n.includes(i.guid),
|
|
7219
7219
|
onClick: () => e(i.guid),
|
|
@@ -7245,7 +7245,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7245
7245
|
value: m
|
|
7246
7246
|
}
|
|
7247
7247
|
),
|
|
7248
|
-
/* @__PURE__ */ t(
|
|
7248
|
+
/* @__PURE__ */ t(xe, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
|
|
7249
7249
|
]
|
|
7250
7250
|
}
|
|
7251
7251
|
),
|
|
@@ -7305,7 +7305,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7305
7305
|
);
|
|
7306
7306
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7307
7307
|
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
7308
|
-
|
|
7308
|
+
ue,
|
|
7309
7309
|
{
|
|
7310
7310
|
onClick: () => {
|
|
7311
7311
|
n(Y.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
@@ -7325,7 +7325,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7325
7325
|
}
|
|
7326
7326
|
) }),
|
|
7327
7327
|
/* @__PURE__ */ t(
|
|
7328
|
-
|
|
7328
|
+
le,
|
|
7329
7329
|
{
|
|
7330
7330
|
ariaLabelClose: r.close_aria,
|
|
7331
7331
|
isOpen: d,
|
|
@@ -7366,7 +7366,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7366
7366
|
}
|
|
7367
7367
|
),
|
|
7368
7368
|
/* @__PURE__ */ t(
|
|
7369
|
-
|
|
7369
|
+
te,
|
|
7370
7370
|
{
|
|
7371
7371
|
disabled: !c,
|
|
7372
7372
|
onClick: _,
|
|
@@ -7426,7 +7426,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7426
7426
|
topActions: n = fu,
|
|
7427
7427
|
transaction: i
|
|
7428
7428
|
}) => {
|
|
7429
|
-
const { isCopyLoaded: a } =
|
|
7429
|
+
const { isCopyLoaded: a } = de(), o = i?.number && i.number.length > 4, { onEvent: r } = j();
|
|
7430
7430
|
return g.useEffect(
|
|
7431
7431
|
() => r(W.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
|
|
7432
7432
|
[]
|
|
@@ -7471,9 +7471,9 @@ const zs = ({ transaction: e }) => {
|
|
|
7471
7471
|
] }, s)),
|
|
7472
7472
|
i.is_manual && /* @__PURE__ */ t(Sh, { transaction: i })
|
|
7473
7473
|
] }) })
|
|
7474
|
-
] }) }) : /* @__PURE__ */ t(
|
|
7474
|
+
] }) }) : /* @__PURE__ */ t(_e, {});
|
|
7475
7475
|
}, ni = I(Yh), jh = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
|
7476
|
-
const { common: o, transactions: r } = x(), { isCopyLoaded: s } =
|
|
7476
|
+
const { common: o, transactions: r } = x(), { isCopyLoaded: s } = de();
|
|
7477
7477
|
return s ? /* @__PURE__ */ l(
|
|
7478
7478
|
Me,
|
|
7479
7479
|
{
|
|
@@ -7490,9 +7490,9 @@ const zs = ({ transaction: e }) => {
|
|
|
7490
7490
|
/* @__PURE__ */ t(p, { component: "p", truncate: !1, children: r.add_account_modal_cta })
|
|
7491
7491
|
]
|
|
7492
7492
|
}
|
|
7493
|
-
) : /* @__PURE__ */ t(
|
|
7493
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
7494
7494
|
}, Xh = I(jh), Zh = () => {
|
|
7495
|
-
const { selectedAccounts: e } =
|
|
7495
|
+
const { selectedAccounts: e } = de(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } = Lt(), [s, c] = g.useState(""), [d, u] = g.useState(""), _ = g.useMemo(
|
|
7496
7496
|
() => e.filter((y) => y.is_manual),
|
|
7497
7497
|
[e]
|
|
7498
7498
|
).map((y) => ({
|
|
@@ -7655,14 +7655,14 @@ const zs = ({ transaction: e }) => {
|
|
|
7655
7655
|
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } = Bt(), { onEvent: k } = j(), {
|
|
7656
7656
|
displayedDateRange: O,
|
|
7657
7657
|
isCopyLoaded: U,
|
|
7658
|
-
isInitialized:
|
|
7659
|
-
selectedAccountGuids:
|
|
7660
|
-
setDisplayedDate:
|
|
7658
|
+
isInitialized: Q,
|
|
7659
|
+
selectedAccountGuids: oe,
|
|
7660
|
+
setDisplayedDate: J,
|
|
7661
7661
|
setSelectedAccounts: ge
|
|
7662
|
-
} =
|
|
7662
|
+
} = de(), [De, Re] = g.useState(""), [Se, Oe] = g.useState(""), [It, ee] = g.useState(!1), [ne, Ue] = g.useState(!1), [Qe, K] = g.useState(!1);
|
|
7663
7663
|
g.useEffect(() => {
|
|
7664
7664
|
const rt = o.filter(($n) => !$n.is_hidden), Lo = Ze(he()), Mo = Ye(he());
|
|
7665
|
-
ge(rt),
|
|
7665
|
+
ge(rt), J(Lo, Mo), S({
|
|
7666
7666
|
accounts: rt.map(($n) => $n.guid),
|
|
7667
7667
|
custom: ($n) => !$n.accountIsClosed && !$n.accountIsHidden,
|
|
7668
7668
|
dateRange: { start: Lo, end: Mo }
|
|
@@ -7670,17 +7670,17 @@ const zs = ({ transaction: e }) => {
|
|
|
7670
7670
|
}, [o]), g.useEffect(() => {
|
|
7671
7671
|
Qe && (S({
|
|
7672
7672
|
...E,
|
|
7673
|
-
accounts:
|
|
7673
|
+
accounts: oe,
|
|
7674
7674
|
dateRange: { start: O.start, end: O.end }
|
|
7675
7675
|
}), y(O.start).finally());
|
|
7676
|
-
}, [Qe, O,
|
|
7676
|
+
}, [Qe, O, oe]), g.useEffect(() => {
|
|
7677
7677
|
m(i);
|
|
7678
7678
|
}, [i]);
|
|
7679
7679
|
const Le = g.useMemo(
|
|
7680
7680
|
() => o.filter((rt) => rt.is_manual),
|
|
7681
7681
|
[o]
|
|
7682
7682
|
), Ge = Se ? v.find((rt) => rt.guid === Se) : void 0, Pt = u && !!d.payee && !!d.account_guid && !!d.category_guid, dt = (rt) => {
|
|
7683
|
-
|
|
7683
|
+
J(rt[0], rt[1]);
|
|
7684
7684
|
}, ii = (rt) => {
|
|
7685
7685
|
h(rt), S({
|
|
7686
7686
|
...E,
|
|
@@ -7696,17 +7696,17 @@ const zs = ({ transaction: e }) => {
|
|
|
7696
7696
|
}), Re(
|
|
7697
7697
|
"addTransaction"
|
|
7698
7698
|
/* AddTransaction */
|
|
7699
|
-
), k(W.TRANSACTIONS_CLICK_ADD)) : (
|
|
7699
|
+
), k(W.TRANSACTIONS_CLICK_ADD)) : (ee(!0), k(W.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7700
7700
|
}, fa = async () => {
|
|
7701
7701
|
Pt && await f(d), Re("");
|
|
7702
7702
|
}, Yc = () => {
|
|
7703
|
-
|
|
7703
|
+
ee(!1), Ue(!0);
|
|
7704
7704
|
}, jc = async () => {
|
|
7705
7705
|
Ue(!1), await r();
|
|
7706
7706
|
}, Xc = async () => {
|
|
7707
7707
|
Ge && !Ge.has_been_viewed && await R({ ...Ge, has_been_viewed: !0 }), Re("");
|
|
7708
7708
|
};
|
|
7709
|
-
return !U || !
|
|
7709
|
+
return !U || !Q || !Qe ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
7710
7710
|
bt,
|
|
7711
7711
|
{
|
|
7712
7712
|
accountOptions: o,
|
|
@@ -7789,7 +7789,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7789
7789
|
}
|
|
7790
7790
|
),
|
|
7791
7791
|
/* @__PURE__ */ t(
|
|
7792
|
-
|
|
7792
|
+
le,
|
|
7793
7793
|
{
|
|
7794
7794
|
ariaLabelClose: B.close_aria,
|
|
7795
7795
|
isOpen: De === "transaction",
|
|
@@ -7808,7 +7808,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7808
7808
|
}
|
|
7809
7809
|
),
|
|
7810
7810
|
/* @__PURE__ */ t(
|
|
7811
|
-
|
|
7811
|
+
le,
|
|
7812
7812
|
{
|
|
7813
7813
|
ariaLabelClose: B.close_aria,
|
|
7814
7814
|
isOpen: De === "addTransaction",
|
|
@@ -7825,7 +7825,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7825
7825
|
copy: { title: M.add_manual_account },
|
|
7826
7826
|
isOpen: It,
|
|
7827
7827
|
onClose: () => {
|
|
7828
|
-
|
|
7828
|
+
ee(!1);
|
|
7829
7829
|
},
|
|
7830
7830
|
onPrimaryAction: Yc
|
|
7831
7831
|
}
|
|
@@ -7946,7 +7946,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
),
|
|
7948
7948
|
/* @__PURE__ */ t(
|
|
7949
|
-
|
|
7949
|
+
le,
|
|
7950
7950
|
{
|
|
7951
7951
|
ariaLabelClose: n.close_drawer_aria,
|
|
7952
7952
|
isOpen: o,
|
|
@@ -7969,7 +7969,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7969
7969
|
] });
|
|
7970
7970
|
}), Qs = I(
|
|
7971
7971
|
({ onDeleted: e, recurringTransaction: n }) => {
|
|
7972
|
-
const { recurring: i } = x(), { selectedAccountGuids: a } =
|
|
7972
|
+
const { recurring: i } = x(), { selectedAccountGuids: a } = de(), { onEvent: o } = j(), { deleteRepeatingTransaction: r } = ze(), { setFilter: s, transactions: c } = Ne(), { amount: d, description: u, merchant_guid: _ } = n, [h, m] = g.useState(!1), [C, f] = g.useState("");
|
|
7973
7973
|
g.useEffect(() => {
|
|
7974
7974
|
s({
|
|
7975
7975
|
accounts: a,
|
|
@@ -8001,9 +8001,9 @@ const zs = ({ transaction: e }) => {
|
|
|
8001
8001
|
y ? "+" : "",
|
|
8002
8002
|
P(d, "0,0.00")
|
|
8003
8003
|
] }),
|
|
8004
|
-
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "body2", children: `${i.next_payment_date}: ${
|
|
8004
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "body2", children: `${i.next_payment_date}: ${ce(
|
|
8005
8005
|
n.predicted_occurs_on,
|
|
8006
|
-
|
|
8006
|
+
re.MONTH_DAY_YEAR
|
|
8007
8007
|
)}` })
|
|
8008
8008
|
] }),
|
|
8009
8009
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -8033,7 +8033,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8033
8033
|
/* @__PURE__ */ t(H, { color: "secondary" })
|
|
8034
8034
|
] }),
|
|
8035
8035
|
/* @__PURE__ */ t(
|
|
8036
|
-
|
|
8036
|
+
te,
|
|
8037
8037
|
{
|
|
8038
8038
|
color: "error",
|
|
8039
8039
|
onClick: A,
|
|
@@ -8046,7 +8046,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8046
8046
|
/* @__PURE__ */ t(p, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: i.paid_transactions }),
|
|
8047
8047
|
/* @__PURE__ */ t(Rn, { height: "30dvh", onClick: f }),
|
|
8048
8048
|
/* @__PURE__ */ t(
|
|
8049
|
-
|
|
8049
|
+
le,
|
|
8050
8050
|
{
|
|
8051
8051
|
ariaLabelClose: i.close_drawer_aria,
|
|
8052
8052
|
isOpen: !!C,
|
|
@@ -8078,7 +8078,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8078
8078
|
[n]
|
|
8079
8079
|
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === an.Income, d = ji(i, n, !0);
|
|
8080
8080
|
return /* @__PURE__ */ l(z, { disableGutters: !0, disablePadding: !0, children: [
|
|
8081
|
-
/* @__PURE__ */ l(
|
|
8081
|
+
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
8082
8082
|
e(n), o(!0);
|
|
8083
8083
|
}, children: [
|
|
8084
8084
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
@@ -8142,7 +8142,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8142
8142
|
) })
|
|
8143
8143
|
] }),
|
|
8144
8144
|
/* @__PURE__ */ t(
|
|
8145
|
-
|
|
8145
|
+
le,
|
|
8146
8146
|
{
|
|
8147
8147
|
ariaLabelClose: i.close_drawer_aria,
|
|
8148
8148
|
isOpen: a,
|
|
@@ -8168,7 +8168,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8168
8168
|
}) => {
|
|
8169
8169
|
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } = Lt();
|
|
8170
8170
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
|
8171
|
-
n && /* @__PURE__ */ t(
|
|
8171
|
+
n && /* @__PURE__ */ t(xe, { sx: { mx: 24 }, children: n }),
|
|
8172
8172
|
/* @__PURE__ */ t(
|
|
8173
8173
|
la,
|
|
8174
8174
|
{
|
|
@@ -8252,7 +8252,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8252
8252
|
m(""), _(!1);
|
|
8253
8253
|
};
|
|
8254
8254
|
return /* @__PURE__ */ l(L, { children: [
|
|
8255
|
-
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
8255
|
+
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ue, { onClick: v, children: /* @__PURE__ */ t(ae, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
8256
8256
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8257
8257
|
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
8258
8258
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
|
@@ -8261,7 +8261,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8261
8261
|
] }) }) }) }),
|
|
8262
8262
|
/* @__PURE__ */ t(H, {}),
|
|
8263
8263
|
/* @__PURE__ */ t(
|
|
8264
|
-
|
|
8264
|
+
le,
|
|
8265
8265
|
{
|
|
8266
8266
|
ariaLabelClose: a.close_drawer_aria,
|
|
8267
8267
|
isOpen: u,
|
|
@@ -8283,7 +8283,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8283
8283
|
}
|
|
8284
8284
|
),
|
|
8285
8285
|
/* @__PURE__ */ t(
|
|
8286
|
-
|
|
8286
|
+
le,
|
|
8287
8287
|
{
|
|
8288
8288
|
ariaLabelClose: a.close_drawer_aria,
|
|
8289
8289
|
isOpen: !!h,
|
|
@@ -8382,7 +8382,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
) }), bo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(vn, { size: n, sx: { ...ha(e) }, children: /* @__PURE__ */ t(ss, { color: "error", filled: !0, sx: { fontSize: n, ...ua } }) }), yo = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(vn, { size: n, sx: { ...ha(e) }, children: /* @__PURE__ */ t(Va, { color: "success", filled: !0, sx: { fontSize: n, ...ua } }) }), ag = I(
|
|
8384
8384
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
|
8385
|
-
const { recurring: a } = x(), { selectedAccountGuids: o } =
|
|
8385
|
+
const { recurring: a } = x(), { selectedAccountGuids: o } = de(), { recurrences: r, setSelectedDay: s } = ze(), d = g.useMemo(
|
|
8386
8386
|
() => r.filter((f) => o.includes(f.accountGuid)),
|
|
8387
8387
|
[o, r]
|
|
8388
8388
|
).filter(
|
|
@@ -8529,20 +8529,20 @@ const zs = ({ transaction: e }) => {
|
|
|
8529
8529
|
case Je.Paid:
|
|
8530
8530
|
return e.expectedDate ? T(
|
|
8531
8531
|
n.paid_on,
|
|
8532
|
-
|
|
8532
|
+
ce(
|
|
8533
8533
|
e.occurredOnDate || e.expectedDate,
|
|
8534
|
-
|
|
8534
|
+
re.MONTH_DAY
|
|
8535
8535
|
)
|
|
8536
8536
|
) : n.paid;
|
|
8537
8537
|
case Je.Missed:
|
|
8538
8538
|
return T(
|
|
8539
8539
|
n.missed_on,
|
|
8540
|
-
|
|
8540
|
+
ce(e.expectedDate, re.MONTH_DAY)
|
|
8541
8541
|
);
|
|
8542
8542
|
case Je.Upcoming:
|
|
8543
8543
|
return T(
|
|
8544
8544
|
n.upcoming_on,
|
|
8545
|
-
|
|
8545
|
+
ce(e.expectedDate, re.MONTH_DAY)
|
|
8546
8546
|
);
|
|
8547
8547
|
default:
|
|
8548
8548
|
return n.unknown;
|
|
@@ -8560,7 +8560,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8560
8560
|
), u = e.type === zt.Income, _ = e.status === Je.Paid, h = e.status === Je.Missed, m = e.status === Je.Upcoming;
|
|
8561
8561
|
let C = o.paid?.toLowerCase();
|
|
8562
8562
|
return h ? C = o.missed?.toLowerCase() : m && (C = a ? ji(o, d || {}, !0) : ji(o, d || {}, !1)), /* @__PURE__ */ l(z, { disableGutters: !0, disablePadding: !0, children: [
|
|
8563
|
-
/* @__PURE__ */ l(
|
|
8563
|
+
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
8564
8564
|
c(!0), i(e);
|
|
8565
8565
|
}, children: [
|
|
8566
8566
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
@@ -8623,7 +8623,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8623
8623
|
) })
|
|
8624
8624
|
] }),
|
|
8625
8625
|
/* @__PURE__ */ t(
|
|
8626
|
-
|
|
8626
|
+
le,
|
|
8627
8627
|
{
|
|
8628
8628
|
ariaLabelClose: o.close_drawer_aria,
|
|
8629
8629
|
isOpen: s,
|
|
@@ -8656,7 +8656,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8656
8656
|
sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
|
|
8657
8657
|
children: [
|
|
8658
8658
|
/* @__PURE__ */ t(p, { bold: !0, variant: "body1", children: r }),
|
|
8659
|
-
i && /* @__PURE__ */ t(
|
|
8659
|
+
i && /* @__PURE__ */ t(te, { onClick: i, sx: { mt: -12 }, variant: "text", children: s.reset })
|
|
8660
8660
|
]
|
|
8661
8661
|
}
|
|
8662
8662
|
),
|
|
@@ -8674,7 +8674,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8674
8674
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
8675
8675
|
ie,
|
|
8676
8676
|
{
|
|
8677
|
-
subheader: /* @__PURE__ */ t(Mt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children:
|
|
8677
|
+
subheader: /* @__PURE__ */ t(Mt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: ce(d.date, re.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
8678
8678
|
sx: { width: "100%" },
|
|
8679
8679
|
children: d.recurrences.map((_, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
8680
8680
|
br,
|
|
@@ -8713,7 +8713,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8713
8713
|
/* @__PURE__ */ t(p, { variant: "caption", children: c.expected })
|
|
8714
8714
|
] })
|
|
8715
8715
|
] }),
|
|
8716
|
-
r && /* @__PURE__ */ t(
|
|
8716
|
+
r && /* @__PURE__ */ t(te, { onClick: r, startIcon: /* @__PURE__ */ t(Bl, {}), variant: "text", children: c.add_new })
|
|
8717
8717
|
] }),
|
|
8718
8718
|
/* @__PURE__ */ t(jn, { data: d })
|
|
8719
8719
|
] });
|
|
@@ -8811,14 +8811,14 @@ const zs = ({ transaction: e }) => {
|
|
|
8811
8811
|
recurrences: C || u,
|
|
8812
8812
|
title: m ? T(
|
|
8813
8813
|
e.day_transactions,
|
|
8814
|
-
|
|
8814
|
+
ce(m, re.MONTH_DAY)
|
|
8815
8815
|
) : e.paid_activity
|
|
8816
8816
|
}
|
|
8817
8817
|
)
|
|
8818
8818
|
] }) })
|
|
8819
8819
|
] });
|
|
8820
8820
|
}), CE = I(({ onBackClick: e, sx: n = {} }) => {
|
|
8821
|
-
const { accounts: i } = Ee(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } =
|
|
8821
|
+
const { accounts: i } = Ee(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), { isDataLoaded: d, loadRepeatingTransactions: u } = ze(), { setFilter: _ } = Ne(), { onEvent: h } = j(), [m, C] = g.useState(!1);
|
|
8822
8822
|
return g.useEffect(() => {
|
|
8823
8823
|
c(i);
|
|
8824
8824
|
}, [i]), g.useEffect(() => {
|
|
@@ -8850,7 +8850,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8850
8850
|
/* @__PURE__ */ t(gn, { height: 600, variant: "rounded", width: "100%" })
|
|
8851
8851
|
] }),
|
|
8852
8852
|
/* @__PURE__ */ t(
|
|
8853
|
-
|
|
8853
|
+
le,
|
|
8854
8854
|
{
|
|
8855
8855
|
ariaLabelClose: a.close_drawer_aria,
|
|
8856
8856
|
isOpen: m,
|
|
@@ -8862,7 +8862,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8862
8862
|
)
|
|
8863
8863
|
]
|
|
8864
8864
|
}
|
|
8865
|
-
) : /* @__PURE__ */ t(
|
|
8865
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
8866
8866
|
}), lg = I(() => {
|
|
8867
8867
|
const { recurring: e } = x(), { availableWidth: n } = Fn(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: o, upcomingRecurrences: r } = ze(), s = n < 750;
|
|
8868
8868
|
return /* @__PURE__ */ l(b, { flexDirection: s ? "column" : "row", width: "100%", children: [
|
|
@@ -8877,14 +8877,14 @@ const zs = ({ transaction: e }) => {
|
|
|
8877
8877
|
sx: { width: s ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
8878
8878
|
title: i ? T(
|
|
8879
8879
|
e.day_transactions,
|
|
8880
|
-
|
|
8880
|
+
ce(i, re.MONTH_DAY)
|
|
8881
8881
|
) : e.upcoming_activity
|
|
8882
8882
|
}
|
|
8883
8883
|
)
|
|
8884
8884
|
] });
|
|
8885
8885
|
}), fE = I(
|
|
8886
8886
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
8887
|
-
const { accounts: i } = Ee(), { recurring: a } = x(), { setFilter: o } = Ne(), { isDataLoaded: r, loadRepeatingTransactions: s } = ze(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: u, selectedAccountGuids: _ } =
|
|
8887
|
+
const { accounts: i } = Ee(), { recurring: a } = x(), { setFilter: o } = Ne(), { isDataLoaded: r, loadRepeatingTransactions: s } = ze(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: u, selectedAccountGuids: _ } = de();
|
|
8888
8888
|
return g.useEffect(() => {
|
|
8889
8889
|
d && u(i);
|
|
8890
8890
|
}, [d]), g.useEffect(() => {
|
|
@@ -8892,7 +8892,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8892
8892
|
dateRange: { start: At(he(), 90), end: En() },
|
|
8893
8893
|
accounts: _
|
|
8894
8894
|
}), s().finally());
|
|
8895
|
-
}, [_]), !c || !d ? /* @__PURE__ */ t(
|
|
8895
|
+
}, [_]), !c || !d ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(
|
|
8896
8896
|
Dn,
|
|
8897
8897
|
{
|
|
8898
8898
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -8901,7 +8901,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8901
8901
|
subTitle: a.sub_title,
|
|
8902
8902
|
sx: n,
|
|
8903
8903
|
title: a.mini_title,
|
|
8904
|
-
children: r ? /* @__PURE__ */ t(lg, {}) : /* @__PURE__ */ t(
|
|
8904
|
+
children: r ? /* @__PURE__ */ t(lg, {}) : /* @__PURE__ */ t(_e, {})
|
|
8905
8905
|
}
|
|
8906
8906
|
);
|
|
8907
8907
|
}
|
|
@@ -8923,8 +8923,10 @@ const zs = ({ transaction: e }) => {
|
|
|
8923
8923
|
}
|
|
8924
8924
|
}
|
|
8925
8925
|
),
|
|
8926
|
-
|
|
8927
|
-
|
|
8926
|
+
/* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
8927
|
+
!a && /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: P(e, e === 0 || !i ? "0,0" : "0,0.00") }),
|
|
8928
|
+
/* @__PURE__ */ t(p, { variant: "caption", children: o })
|
|
8929
|
+
] })
|
|
8928
8930
|
] }), _g = ({
|
|
8929
8931
|
upcomingRecurrences: e,
|
|
8930
8932
|
logoSize: n = 32,
|
|
@@ -8942,7 +8944,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8942
8944
|
L,
|
|
8943
8945
|
{
|
|
8944
8946
|
sx: {
|
|
8945
|
-
|
|
8947
|
+
border: 2,
|
|
8946
8948
|
borderColor: "common.white",
|
|
8947
8949
|
borderRadius: "4px",
|
|
8948
8950
|
color: "common.white",
|
|
@@ -8977,137 +8979,153 @@ const zs = ({ transaction: e }) => {
|
|
|
8977
8979
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "start", flexDirection: "row", gap: 12, pb: 16, px: 16 }, children: [
|
|
8978
8980
|
/* @__PURE__ */ t(Hl, { size: 32 }),
|
|
8979
8981
|
/* @__PURE__ */ l(b, { children: [
|
|
8980
|
-
/* @__PURE__ */ t(
|
|
8981
|
-
/* @__PURE__ */ t(
|
|
8982
|
+
/* @__PURE__ */ t(xe, { fontWeight: 600, variant: "body1", children: e.zero_state_content_header }),
|
|
8983
|
+
/* @__PURE__ */ t(xe, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
8982
8984
|
] })
|
|
8983
8985
|
] });
|
|
8984
8986
|
}), bE = I(
|
|
8985
8987
|
({ onCTAClick: e }) => {
|
|
8986
|
-
const { accounts:
|
|
8987
|
-
loadRepeatingTransactions:
|
|
8988
|
-
upcomingRecurrences:
|
|
8989
|
-
expenseTotal:
|
|
8990
|
-
missedExpenseTotal:
|
|
8991
|
-
paidExpenseTotal:
|
|
8992
|
-
|
|
8993
|
-
} = ze(), { setFilter: m } = Ne(), { recurring: C, budgets: f } = x();
|
|
8988
|
+
const [n, i] = g.useState(!1), { accounts: a } = Ee(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = de(), {
|
|
8989
|
+
loadRepeatingTransactions: d,
|
|
8990
|
+
upcomingRecurrences: u,
|
|
8991
|
+
expenseTotal: _,
|
|
8992
|
+
missedExpenseTotal: h,
|
|
8993
|
+
paidExpenseTotal: m
|
|
8994
|
+
} = ze(), { setFilter: C } = Ne(), { recurring: f, budgets: E } = x();
|
|
8994
8995
|
g.useEffect(() => {
|
|
8995
|
-
|
|
8996
|
-
}, [
|
|
8997
|
-
|
|
8996
|
+
c(a);
|
|
8997
|
+
}, [a]), g.useEffect(() => {
|
|
8998
|
+
r && (C({
|
|
8998
8999
|
dateRange: { start: At(he(), 90), end: En() },
|
|
8999
|
-
accounts:
|
|
9000
|
-
}),
|
|
9001
|
-
}, [
|
|
9002
|
-
const { onEvent:
|
|
9003
|
-
const
|
|
9004
|
-
{ color:
|
|
9000
|
+
accounts: s
|
|
9001
|
+
}), d().finally(), i(!0));
|
|
9002
|
+
}, [r]);
|
|
9003
|
+
const { onEvent: y } = j(), S = pe(), A = Wt("(max-width:288px)"), w = Wt("(min-width:450px)"), v = g.useMemo(() => {
|
|
9004
|
+
const oe = [
|
|
9005
|
+
{ color: S.palette.success.main, percentage: `${m / _}` }
|
|
9005
9006
|
];
|
|
9006
|
-
return
|
|
9007
|
-
color:
|
|
9008
|
-
percentage: `${
|
|
9009
|
-
}),
|
|
9007
|
+
return h && oe.push({
|
|
9008
|
+
color: S.palette.error.main,
|
|
9009
|
+
percentage: `${h / _}`
|
|
9010
|
+
}), oe;
|
|
9010
9011
|
}, [
|
|
9012
|
+
m,
|
|
9011
9013
|
_,
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
E(W.RECURRING_TRANSACTIONS_MICRO_WIDGET_CTA), e();
|
|
9014
|
+
h,
|
|
9015
|
+
S.palette.success.main,
|
|
9016
|
+
S.palette.error.main
|
|
9017
|
+
]), R = _ + m + h, B = g.useMemo(() => P(R, R === 0 ? "0,0" : "0,0.00"), [R]), M = () => {
|
|
9018
|
+
y(W.RECURRING_TRANSACTIONS_MICRO_WIDGET_CTA), e();
|
|
9018
9019
|
};
|
|
9019
|
-
if (!
|
|
9020
|
-
const
|
|
9020
|
+
if (!o || !n) return /* @__PURE__ */ t(_e, { height: 100 });
|
|
9021
|
+
const D = 32, k = u.length >= 3, O = () => k ? A ? /* @__PURE__ */ t(
|
|
9022
|
+
_g,
|
|
9021
9023
|
{
|
|
9022
|
-
|
|
9024
|
+
logoSize: D,
|
|
9025
|
+
maxLogos: 3,
|
|
9026
|
+
upcomingRecurrences: u
|
|
9027
|
+
}
|
|
9028
|
+
) : /* @__PURE__ */ t(ug, { maxLogos: 3, upcomingRecurrences: u }) : /* @__PURE__ */ t(b, { sx: { width: A ? 64 : 104 } }), U = [
|
|
9029
|
+
{
|
|
9030
|
+
amount: m,
|
|
9023
9031
|
bgColor: "success.main",
|
|
9024
|
-
label:
|
|
9032
|
+
label: f.paid
|
|
9025
9033
|
},
|
|
9026
9034
|
{
|
|
9027
|
-
amount:
|
|
9035
|
+
amount: h,
|
|
9028
9036
|
bgColor: "error.main",
|
|
9029
|
-
label:
|
|
9037
|
+
label: f.missed
|
|
9030
9038
|
},
|
|
9031
9039
|
{
|
|
9032
|
-
amount:
|
|
9040
|
+
amount: _,
|
|
9033
9041
|
bgColor: "border.light",
|
|
9034
|
-
label:
|
|
9042
|
+
label: f.upcoming
|
|
9035
9043
|
}
|
|
9036
|
-
],
|
|
9037
|
-
return /* @__PURE__ */
|
|
9044
|
+
], Q = n && !a?.length;
|
|
9045
|
+
return /* @__PURE__ */ t(
|
|
9038
9046
|
so,
|
|
9039
9047
|
{
|
|
9040
9048
|
className: "mx-recurring-transaction-microwidget",
|
|
9041
|
-
ctaLabel:
|
|
9042
|
-
onCTAClick:
|
|
9043
|
-
sx: {
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
+
ctaLabel: Q ? E.get_started_cta : f.primary_cta,
|
|
9050
|
+
onCTAClick: M,
|
|
9051
|
+
sx: {
|
|
9052
|
+
".MuiCard-root": {
|
|
9053
|
+
maxWidth: u.length === 0 ? 320 : 450,
|
|
9054
|
+
minWidth: 288
|
|
9055
|
+
}
|
|
9056
|
+
},
|
|
9057
|
+
title: f.recurring_expenses,
|
|
9058
|
+
children: Q ? /* @__PURE__ */ t(hg, {}) : /* @__PURE__ */ l(q, { children: [
|
|
9059
|
+
/* @__PURE__ */ l(
|
|
9060
|
+
b,
|
|
9061
|
+
{
|
|
9062
|
+
sx: {
|
|
9063
|
+
flexDirection: "row",
|
|
9064
|
+
justifyContent: "space-between",
|
|
9065
|
+
mx: 16
|
|
9066
|
+
},
|
|
9067
|
+
children: [
|
|
9068
|
+
/* @__PURE__ */ l(
|
|
9069
|
+
b,
|
|
9070
|
+
{
|
|
9071
|
+
sx: [
|
|
9072
|
+
B.length >= 10 && A ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
9073
|
+
{
|
|
9074
|
+
alignItems: "baseline",
|
|
9075
|
+
width: 180
|
|
9076
|
+
}
|
|
9077
|
+
],
|
|
9078
|
+
children: [
|
|
9079
|
+
/* @__PURE__ */ t(
|
|
9080
|
+
p,
|
|
9081
|
+
{
|
|
9082
|
+
variant: B.length >= 10 && A ? "H3" : "H2",
|
|
9083
|
+
children: B
|
|
9084
|
+
}
|
|
9085
|
+
),
|
|
9086
|
+
/* @__PURE__ */ t(
|
|
9087
|
+
xe,
|
|
9088
|
+
{
|
|
9089
|
+
sx: {
|
|
9090
|
+
pr: 12
|
|
9091
|
+
},
|
|
9092
|
+
variant: "XSmall",
|
|
9093
|
+
children: f.expected
|
|
9094
|
+
}
|
|
9095
|
+
)
|
|
9096
|
+
]
|
|
9097
|
+
}
|
|
9098
|
+
),
|
|
9099
|
+
O()
|
|
9100
|
+
]
|
|
9101
|
+
}
|
|
9102
|
+
),
|
|
9103
|
+
/* @__PURE__ */ l(b, { sx: { pb: 16, pt: 12, px: 16 }, children: [
|
|
9104
|
+
/* @__PURE__ */ t(jn, { data: v }),
|
|
9105
|
+
/* @__PURE__ */ t(
|
|
9049
9106
|
b,
|
|
9050
9107
|
{
|
|
9051
9108
|
sx: {
|
|
9109
|
+
alignItems: "center",
|
|
9052
9110
|
flexDirection: "row",
|
|
9053
|
-
|
|
9054
|
-
|
|
9111
|
+
gap: 16,
|
|
9112
|
+
mt: 4
|
|
9055
9113
|
},
|
|
9056
|
-
children:
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
width: 180
|
|
9065
|
-
}
|
|
9066
|
-
],
|
|
9067
|
-
children: [
|
|
9068
|
-
/* @__PURE__ */ t(p, { variant: v.length >= 10 ? "H3" : "H2", children: v }),
|
|
9069
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children: C.expected })
|
|
9070
|
-
]
|
|
9071
|
-
}
|
|
9072
|
-
),
|
|
9073
|
-
S ? /* @__PURE__ */ t(
|
|
9074
|
-
_g,
|
|
9075
|
-
{
|
|
9076
|
-
logoSize: B,
|
|
9077
|
-
maxLogos: 3,
|
|
9078
|
-
upcomingRecurrences: c
|
|
9079
|
-
}
|
|
9080
|
-
) : /* @__PURE__ */ t(ug, { maxLogos: 3, upcomingRecurrences: c })
|
|
9081
|
-
]
|
|
9082
|
-
}
|
|
9083
|
-
),
|
|
9084
|
-
/* @__PURE__ */ l(b, { sx: { pb: 16, pt: 12, px: 16 }, children: [
|
|
9085
|
-
/* @__PURE__ */ t(jn, { data: w }),
|
|
9086
|
-
/* @__PURE__ */ t(
|
|
9087
|
-
b,
|
|
9088
|
-
{
|
|
9089
|
-
sx: {
|
|
9090
|
-
alignItems: "center",
|
|
9091
|
-
flexDirection: "row",
|
|
9092
|
-
gap: 16,
|
|
9093
|
-
mt: 4
|
|
9114
|
+
children: U.map((oe, J) => /* @__PURE__ */ t(
|
|
9115
|
+
dg,
|
|
9116
|
+
{
|
|
9117
|
+
amount: oe.amount,
|
|
9118
|
+
bgcolor: oe.bgColor,
|
|
9119
|
+
isLargeScreen: w,
|
|
9120
|
+
isSmallScreen: A,
|
|
9121
|
+
label: oe.label
|
|
9094
9122
|
},
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
bgcolor: O.bgColor,
|
|
9100
|
-
isLargeScreen: A,
|
|
9101
|
-
isSmallScreen: S,
|
|
9102
|
-
label: O.label
|
|
9103
|
-
},
|
|
9104
|
-
`recurrence-legend-${U}`
|
|
9105
|
-
))
|
|
9106
|
-
}
|
|
9107
|
-
)
|
|
9108
|
-
] })
|
|
9123
|
+
`recurrence-legend-${J}`
|
|
9124
|
+
))
|
|
9125
|
+
}
|
|
9126
|
+
)
|
|
9109
9127
|
] })
|
|
9110
|
-
]
|
|
9128
|
+
] })
|
|
9111
9129
|
}
|
|
9112
9130
|
);
|
|
9113
9131
|
}
|
|
@@ -9355,7 +9373,7 @@ const mg = {
|
|
|
9355
9373
|
gridRow: 1,
|
|
9356
9374
|
gridColumn: 1,
|
|
9357
9375
|
zIndex: 2
|
|
9358
|
-
}, pg = ({ size: e = 20 }) => /* @__PURE__ */ t(vn, { size: e, children: /* @__PURE__ */ t(aa, { color: "error", sx: { fontSize: e, ...mg } }) }), Eo = (e) => e && (e.account_type ===
|
|
9376
|
+
}, pg = ({ size: e = 20 }) => /* @__PURE__ */ t(vn, { size: e, children: /* @__PURE__ */ t(aa, { color: "error", sx: { fontSize: e, ...mg } }) }), Eo = (e) => e && (e.account_type === se.CREDIT_CARD || e.account_type === se.LOAN || e.account_type === se.MORTGAGE || e.account_type === se.LINE_OF_CREDIT || e.account_type === se.CHECKING_LINE_OF_CREDIT), Cg = (e) => e.is_manual || !e.guid, fg = (e) => e.account_type === se.LINE_OF_CREDIT || e.account_type === se.CREDIT_CARD || e.account_type === se.CHECKING_LINE_OF_CREDIT, bg = (e) => e.account_type === se.SAVINGS || e.account_type === se.CHECKING || e.account_type === se.LINE_OF_CREDIT || e.account_type === se.CREDIT_CARD || e.account_type === se.LOAN || e.account_type === se.MORTGAGE, yg = (e) => e.account_type === se.LOAN || e.account_type === se.MORTGAGE, Eg = (e, n) => {
|
|
9359
9377
|
const i = [
|
|
9360
9378
|
{
|
|
9361
9379
|
event: "account_details_click_account_name",
|
|
@@ -9375,7 +9393,7 @@ const mg = {
|
|
|
9375
9393
|
type: vt.Currency,
|
|
9376
9394
|
valueFormatter: (o) => P(o, "0,0.00")
|
|
9377
9395
|
});
|
|
9378
|
-
const a = Object.keys(
|
|
9396
|
+
const a = Object.keys(se).filter((o) => Number(o)).map((o) => ({
|
|
9379
9397
|
label: n.account_types[o],
|
|
9380
9398
|
value: Number(o),
|
|
9381
9399
|
icon: /* @__PURE__ */ t($, { name: As[o] })
|
|
@@ -9389,7 +9407,7 @@ const mg = {
|
|
|
9389
9407
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9390
9408
|
});
|
|
9391
9409
|
}
|
|
9392
|
-
if (e.account_type ===
|
|
9410
|
+
if (e.account_type === se.PROPERTY) {
|
|
9393
9411
|
const a = Object.keys(ys).filter((o) => Number(o)).map((o) => ({
|
|
9394
9412
|
label: n.property_types[o],
|
|
9395
9413
|
value: Number(o),
|
|
@@ -9428,7 +9446,7 @@ const mg = {
|
|
|
9428
9446
|
type: vt.Date,
|
|
9429
9447
|
valueFormatter: (a) => {
|
|
9430
9448
|
const o = typeof a == "number" ? new Date(a * 1e3) : a;
|
|
9431
|
-
return
|
|
9449
|
+
return ce(o, re.MED_MONTH_SHORT_DAY_FULL_YEAR);
|
|
9432
9450
|
}
|
|
9433
9451
|
}) : i.push({
|
|
9434
9452
|
label: n.day_payment_due,
|
|
@@ -9467,7 +9485,7 @@ const mg = {
|
|
|
9467
9485
|
o = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: T(
|
|
9468
9486
|
n.payment_due_on,
|
|
9469
9487
|
P(e.minimum_payment, "0,0.00"),
|
|
9470
|
-
|
|
9488
|
+
ce(c, re.FULL_MONTH_DAY)
|
|
9471
9489
|
) });
|
|
9472
9490
|
} else e.credit_limit && (o = n.available_credit, r = P(e.credit_limit, "0,0.00"));
|
|
9473
9491
|
}
|
|
@@ -9540,7 +9558,7 @@ const mg = {
|
|
|
9540
9558
|
{
|
|
9541
9559
|
sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
|
|
9542
9560
|
...i,
|
|
9543
|
-
children: n ? /* @__PURE__ */ t(
|
|
9561
|
+
children: n ? /* @__PURE__ */ t(ue, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
|
9544
9562
|
}
|
|
9545
9563
|
);
|
|
9546
9564
|
}, bi = I(Sg), Tg = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
@@ -9563,8 +9581,8 @@ var yi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e)
|
|
|
9563
9581
|
const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
9564
9582
|
/* @__PURE__ */ l(z, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
9565
9583
|
/* @__PURE__ */ l(b, { alignItems: "center", height: 32, width: 32, children: [
|
|
9566
|
-
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children:
|
|
9567
|
-
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children:
|
|
9584
|
+
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ce(e.expectedDate, re.MONTH) }),
|
|
9585
|
+
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ce(e.expectedDate, re.DAY) })
|
|
9568
9586
|
] }),
|
|
9569
9587
|
/* @__PURE__ */ t(p, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
|
|
9570
9588
|
/* @__PURE__ */ t(
|
|
@@ -9609,10 +9627,10 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9609
9627
|
/* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
9610
9628
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
|
9611
9629
|
/* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
|
|
9612
|
-
|
|
9630
|
+
ce(o.start, re.FULL_MONTH_DAY),
|
|
9613
9631
|
" -",
|
|
9614
9632
|
" ",
|
|
9615
|
-
|
|
9633
|
+
ce(o.end, re.FULL_MONTH_DAY)
|
|
9616
9634
|
] })
|
|
9617
9635
|
] }),
|
|
9618
9636
|
/* @__PURE__ */ t(b, { children: r.map((s) => {
|
|
@@ -9784,10 +9802,10 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9784
9802
|
)
|
|
9785
9803
|
] }),
|
|
9786
9804
|
/* @__PURE__ */ l(p, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
|
|
9787
|
-
|
|
9805
|
+
ce(r.start, re.FULL_MONTH_DAY),
|
|
9788
9806
|
" -",
|
|
9789
9807
|
" ",
|
|
9790
|
-
|
|
9808
|
+
ce(r.end, re.FULL_MONTH_DAY)
|
|
9791
9809
|
] })
|
|
9792
9810
|
]
|
|
9793
9811
|
}
|
|
@@ -9978,7 +9996,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9978
9996
|
]
|
|
9979
9997
|
}
|
|
9980
9998
|
), Ir = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (Za(i.expectedDate) || nn(i.expectedDate, n.start)) && Xe(i.expectedDate, n.end), Og = () => {
|
|
9981
|
-
const { availableWidth: e } = Fn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } =
|
|
9999
|
+
const { availableWidth: e } = Fn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } = de(), { dateRange: r, selectedCashAccounts: s } = ti(), { userProfile: c } = Bt(), [d, u] = g.useState(!1), _ = g.useMemo(
|
|
9982
10000
|
() => i.filter(Ir(o, r)),
|
|
9983
10001
|
[r, o, i]
|
|
9984
10002
|
), h = g.useMemo(
|
|
@@ -10020,7 +10038,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10020
10038
|
}
|
|
10021
10039
|
)
|
|
10022
10040
|
] }) : /* @__PURE__ */ t(
|
|
10023
|
-
|
|
10041
|
+
te,
|
|
10024
10042
|
{
|
|
10025
10043
|
onClick: () => u(!0),
|
|
10026
10044
|
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
|
@@ -10059,7 +10077,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10059
10077
|
}
|
|
10060
10078
|
),
|
|
10061
10079
|
/* @__PURE__ */ t(
|
|
10062
|
-
|
|
10080
|
+
le,
|
|
10063
10081
|
{
|
|
10064
10082
|
ariaLabelClose: n.close_manage_income_aria,
|
|
10065
10083
|
isOpen: d,
|
|
@@ -10084,9 +10102,9 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10084
10102
|
children: i.welcome_sub_title
|
|
10085
10103
|
}
|
|
10086
10104
|
),
|
|
10087
|
-
/* @__PURE__ */ t(
|
|
10105
|
+
/* @__PURE__ */ t(xe, { pb: 32, children: i.welcome_description }),
|
|
10088
10106
|
/* @__PURE__ */ l(b, { direction: "column", mb: 32, spacing: 32, children: [
|
|
10089
|
-
/* @__PURE__ */ l(
|
|
10107
|
+
/* @__PURE__ */ l(xe, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10090
10108
|
/* @__PURE__ */ t(
|
|
10091
10109
|
L,
|
|
10092
10110
|
{
|
|
@@ -10102,7 +10120,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10102
10120
|
),
|
|
10103
10121
|
i.bullet_one
|
|
10104
10122
|
] }),
|
|
10105
|
-
/* @__PURE__ */ l(
|
|
10123
|
+
/* @__PURE__ */ l(xe, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10106
10124
|
/* @__PURE__ */ t(
|
|
10107
10125
|
L,
|
|
10108
10126
|
{
|
|
@@ -10118,7 +10136,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10118
10136
|
),
|
|
10119
10137
|
i.bullet_two
|
|
10120
10138
|
] }),
|
|
10121
|
-
/* @__PURE__ */ l(
|
|
10139
|
+
/* @__PURE__ */ l(xe, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
10122
10140
|
/* @__PURE__ */ t(
|
|
10123
10141
|
L,
|
|
10124
10142
|
{
|
|
@@ -10136,8 +10154,8 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10136
10154
|
] })
|
|
10137
10155
|
] }),
|
|
10138
10156
|
/* @__PURE__ */ l(b, { direction: "row", spacing: 16, children: [
|
|
10139
|
-
/* @__PURE__ */ t(
|
|
10140
|
-
/* @__PURE__ */ t(
|
|
10157
|
+
/* @__PURE__ */ t(te, { onClick: e, variant: "contained", children: i.get_started_button }),
|
|
10158
|
+
/* @__PURE__ */ t(te, { onClick: n, variant: "outlined", children: i.skip_button })
|
|
10141
10159
|
] })
|
|
10142
10160
|
] });
|
|
10143
10161
|
}, kg = I(Mg), xr = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", sc = {
|
|
@@ -10148,7 +10166,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10148
10166
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10149
10167
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: sc.CASHFLOW_LOADING_ANIMATION }) }),
|
|
10150
10168
|
/* @__PURE__ */ t(Xt, { pb: 12, children: e.loading_title }),
|
|
10151
|
-
/* @__PURE__ */ t(
|
|
10169
|
+
/* @__PURE__ */ t(xe, { children: e.loading_description })
|
|
10152
10170
|
] });
|
|
10153
10171
|
}, Bg = I(Gg), Hg = fl`
|
|
10154
10172
|
from {
|
|
@@ -10158,10 +10176,10 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10158
10176
|
transform: rotate(360deg);
|
|
10159
10177
|
}
|
|
10160
10178
|
`, Pg = () => {
|
|
10161
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = ze(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = io(), { isDirty: r } = ti(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } =
|
|
10179
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = ze(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = io(), { isDirty: r } = ti(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = de(), { filter: u, setFilter: _, transactions: h } = Ne(), m = pe(), [C, f] = Et(!0), [E, y] = g.useState(me.EveryMonth), [S, A] = g.useState(1), [w, v] = g.useState(15), [R, B] = Et(!1), [M, D] = Et(1), [k, O] = Et([]), [U, Q] = Et(""), oe = g.useMemo(
|
|
10162
10180
|
() => h.find((Se) => Se.guid === U),
|
|
10163
10181
|
[U, h]
|
|
10164
|
-
),
|
|
10182
|
+
), J = !!n.filter(
|
|
10165
10183
|
(Se) => Se.repeating_transaction_type === an.Income
|
|
10166
10184
|
).length, ge = async () => {
|
|
10167
10185
|
D(2), d(
|
|
@@ -10173,7 +10191,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10173
10191
|
if (!(k.length < 1)) {
|
|
10174
10192
|
B(!0);
|
|
10175
10193
|
for (let Se = 0; Se < k.length; Se++) {
|
|
10176
|
-
const Oe = k[Se], It = Ga(E, Fe(Oe.date)),
|
|
10194
|
+
const Oe = k[Se], It = Ga(E, Fe(Oe.date)), ee = {
|
|
10177
10195
|
account_guid: Oe.account_guid,
|
|
10178
10196
|
amount: Oe.amount,
|
|
10179
10197
|
merchant_guid: Oe.merchant_guid,
|
|
@@ -10184,11 +10202,11 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10184
10202
|
repeating_transaction_type: an.Income,
|
|
10185
10203
|
transaction_type: Oe.transaction_type
|
|
10186
10204
|
};
|
|
10187
|
-
await e(
|
|
10205
|
+
await e(ee, Oe);
|
|
10188
10206
|
}
|
|
10189
10207
|
await o();
|
|
10190
10208
|
}
|
|
10191
|
-
}, Re = !
|
|
10209
|
+
}, Re = !oe && C || !oe && k.length < 1;
|
|
10192
10210
|
return c ? /* @__PURE__ */ l(
|
|
10193
10211
|
L,
|
|
10194
10212
|
{
|
|
@@ -10229,8 +10247,8 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10229
10247
|
},
|
|
10230
10248
|
children: [
|
|
10231
10249
|
/* @__PURE__ */ t(Xt, { pb: 12, children: i.add_income_title }),
|
|
10232
|
-
/* @__PURE__ */ t(
|
|
10233
|
-
k.length > 0 && !
|
|
10250
|
+
/* @__PURE__ */ t(xe, { mb: 24, children: i.add_income_description }),
|
|
10251
|
+
k.length > 0 && !oe && /* @__PURE__ */ l(q, { children: [
|
|
10234
10252
|
/* @__PURE__ */ t(ie, { children: k.map((Se, Oe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10235
10253
|
/* @__PURE__ */ t(go, { bgcolor: "background.paper", children: ra(
|
|
10236
10254
|
He(Se.nextDate || Se.date)
|
|
@@ -10241,7 +10259,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10241
10259
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10242
10260
|
/* @__PURE__ */ t(H, { sx: { flexGrow: 1 } }),
|
|
10243
10261
|
/* @__PURE__ */ t(
|
|
10244
|
-
|
|
10262
|
+
te,
|
|
10245
10263
|
{
|
|
10246
10264
|
onClick: () => f(!0),
|
|
10247
10265
|
startIcon: /* @__PURE__ */ t($, { name: "add", size: 20 }),
|
|
@@ -10259,12 +10277,12 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10259
10277
|
custom: (Oe) => Se ? nc(Oe, Se) : fi(Oe)
|
|
10260
10278
|
}),
|
|
10261
10279
|
onSelected: (Se) => {
|
|
10262
|
-
|
|
10280
|
+
Q(Se), f(!1);
|
|
10263
10281
|
}
|
|
10264
10282
|
}
|
|
10265
10283
|
),
|
|
10266
|
-
!
|
|
10267
|
-
|
|
10284
|
+
!J && r && /* @__PURE__ */ t(xe, { color: "error", mt: 16, children: i.confirm_error }),
|
|
10285
|
+
oe && /* @__PURE__ */ l(q, { children: [
|
|
10268
10286
|
/* @__PURE__ */ t(
|
|
10269
10287
|
tc,
|
|
10270
10288
|
{
|
|
@@ -10275,31 +10293,31 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10275
10293
|
onFrequencyChange: y,
|
|
10276
10294
|
onSecondDayChange: v,
|
|
10277
10295
|
secondDay: w,
|
|
10278
|
-
transaction:
|
|
10296
|
+
transaction: oe
|
|
10279
10297
|
}
|
|
10280
10298
|
),
|
|
10281
10299
|
/* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
10282
10300
|
/* @__PURE__ */ t(
|
|
10283
|
-
|
|
10301
|
+
te,
|
|
10284
10302
|
{
|
|
10285
|
-
"aria-disabled": !
|
|
10303
|
+
"aria-disabled": !oe,
|
|
10286
10304
|
onClick: () => {
|
|
10287
10305
|
const Se = [...k];
|
|
10288
10306
|
Se.push({
|
|
10289
|
-
...
|
|
10290
|
-
nextDate: Ga(E, Fe(
|
|
10307
|
+
...oe,
|
|
10308
|
+
nextDate: Ga(E, Fe(oe.date)),
|
|
10291
10309
|
frequency: E
|
|
10292
|
-
}), O(Se),
|
|
10310
|
+
}), O(Se), Q("");
|
|
10293
10311
|
},
|
|
10294
10312
|
variant: "contained",
|
|
10295
10313
|
children: a.confirm_button
|
|
10296
10314
|
}
|
|
10297
10315
|
),
|
|
10298
10316
|
/* @__PURE__ */ t(
|
|
10299
|
-
|
|
10317
|
+
te,
|
|
10300
10318
|
{
|
|
10301
10319
|
onClick: () => {
|
|
10302
|
-
|
|
10320
|
+
Q(""), f(!0), ge().finally();
|
|
10303
10321
|
},
|
|
10304
10322
|
variant: "outlined",
|
|
10305
10323
|
children: a.cancel_button
|
|
@@ -10307,9 +10325,9 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10307
10325
|
)
|
|
10308
10326
|
] })
|
|
10309
10327
|
] }),
|
|
10310
|
-
k.length > 0 && !
|
|
10328
|
+
k.length > 0 && !oe && /* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
10311
10329
|
/* @__PURE__ */ t(
|
|
10312
|
-
|
|
10330
|
+
te,
|
|
10313
10331
|
{
|
|
10314
10332
|
"aria-disabled": k.length < 1 || R,
|
|
10315
10333
|
onClick: De,
|
|
@@ -10326,14 +10344,14 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10326
10344
|
children: i.confirm_income_button
|
|
10327
10345
|
}
|
|
10328
10346
|
),
|
|
10329
|
-
/* @__PURE__ */ t(
|
|
10347
|
+
/* @__PURE__ */ t(te, { onClick: o, variant: "outlined", children: i.skip_button })
|
|
10330
10348
|
] })
|
|
10331
10349
|
]
|
|
10332
10350
|
}
|
|
10333
10351
|
)
|
|
10334
10352
|
]
|
|
10335
10353
|
}
|
|
10336
|
-
) : /* @__PURE__ */ t(
|
|
10354
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
10337
10355
|
}, Fg = I(Pg), Wg = ({ onBackClick: e, sx: n = {} }) => {
|
|
10338
10356
|
const {
|
|
10339
10357
|
selectedAccounts: i,
|
|
@@ -10341,7 +10359,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10341
10359
|
setSelectedAccounts: o,
|
|
10342
10360
|
shouldDisableNextDate: r,
|
|
10343
10361
|
shouldDisablePrevDate: s
|
|
10344
|
-
} =
|
|
10362
|
+
} = de(), { onEvent: c } = j(), { visibleCashAccounts: d } = Ee(), { setFilter: u } = Ne(), { userProfile: _ } = Bt(), { dateRange: h, setSelectedCashAccounts: m } = ti(), { loadRepeatingTransactions: C } = ze(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = de(), [S, A] = g.useState(!1);
|
|
10345
10363
|
return g.useEffect(() => {
|
|
10346
10364
|
y && C().finally();
|
|
10347
10365
|
}, [y]), g.useEffect(() => {
|
|
@@ -10354,7 +10372,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10354
10372
|
dateRange: { start: At(he(), 90), end: En() },
|
|
10355
10373
|
accounts: v.map((R) => R.guid)
|
|
10356
10374
|
});
|
|
10357
|
-
}, [d, i]), !E || !y ? /* @__PURE__ */ t(
|
|
10375
|
+
}, [d, i]), !E || !y ? /* @__PURE__ */ t(_e, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
|
10358
10376
|
bt,
|
|
10359
10377
|
{
|
|
10360
10378
|
accountOptions: d,
|
|
@@ -10384,7 +10402,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10384
10402
|
/* @__PURE__ */ t(Lg, {}),
|
|
10385
10403
|
/* @__PURE__ */ t(Rg, {}),
|
|
10386
10404
|
/* @__PURE__ */ t(
|
|
10387
|
-
|
|
10405
|
+
le,
|
|
10388
10406
|
{
|
|
10389
10407
|
ariaLabelClose: f.close_settings_aria,
|
|
10390
10408
|
isOpen: S,
|
|
@@ -10512,7 +10530,7 @@ function Vg(e, n, i = 0) {
|
|
|
10512
10530
|
const d = a.some((_) => _.is_impossible && _.balance > 0), u = ql({ start: s, end: c });
|
|
10513
10531
|
return {
|
|
10514
10532
|
payoffSavings: d ? "N/A" : P(o, "0,0.00"),
|
|
10515
|
-
payoffDate: d ? "Never" :
|
|
10533
|
+
payoffDate: d ? "Never" : ce(c, re.MONTH_YEAR),
|
|
10516
10534
|
payoffDuration: d ? "Stagnant" : Ql(u, { format: ["years", "months"] }) || "0 months"
|
|
10517
10535
|
};
|
|
10518
10536
|
}
|
|
@@ -10575,7 +10593,7 @@ const un = () => {
|
|
|
10575
10593
|
}, zg = I(Kg), Yg = ({ isOpen: e, onClose: n, sx: i }) => {
|
|
10576
10594
|
const a = ln(), { debts: o } = x(), [r, s] = g.useState(!1);
|
|
10577
10595
|
return /* @__PURE__ */ t(
|
|
10578
|
-
|
|
10596
|
+
le,
|
|
10579
10597
|
{
|
|
10580
10598
|
ariaLabelClose: "",
|
|
10581
10599
|
isOpen: e,
|
|
@@ -10944,7 +10962,7 @@ const un = () => {
|
|
|
10944
10962
|
const o = /* @__PURE__ */ new Date();
|
|
10945
10963
|
for (; Xe(a, o); )
|
|
10946
10964
|
i.push({
|
|
10947
|
-
x:
|
|
10965
|
+
x: ce(a, re.MONTH_SHORT),
|
|
10948
10966
|
y: e.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10949
10967
|
}), a = Tt(a, 1);
|
|
10950
10968
|
return i;
|
|
@@ -10965,7 +10983,7 @@ const un = () => {
|
|
|
10965
10983
|
const o = Ye(/* @__PURE__ */ new Date());
|
|
10966
10984
|
for (; Xe(a, o); )
|
|
10967
10985
|
n.push({
|
|
10968
|
-
x:
|
|
10986
|
+
x: ce(a, re.MONTH_SHORT),
|
|
10969
10987
|
y: i.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10970
10988
|
}), a = Tt(a, 1);
|
|
10971
10989
|
return n;
|
|
@@ -10987,7 +11005,7 @@ const un = () => {
|
|
|
10987
11005
|
}
|
|
10988
11006
|
return c;
|
|
10989
11007
|
}, am = () => {
|
|
10990
|
-
const e = at(), { selectedAccount: n } = Ht(), { monthlyCategoryTotals: i } = $e(), { trends: a } = x(), o = [e.palette.chart?.chart1, e.palette.chart?.chart2], r = nm(i, n.account_type), s = im(r, n.account_type, a), c = [
|
|
11008
|
+
const e = at(), { selectedAccount: n } = Ht(), { monthlyCategoryTotals: i } = $e(), { trends: a } = x(), o = [e.palette.chart?.chart1, e.palette.chart?.chart2], r = nm(i, n.account_type), s = im(r, n.account_type, a), c = [se.LOAN, se.MORTGAGE].includes(n.account_type);
|
|
10991
11009
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
10992
11010
|
oo,
|
|
10993
11011
|
{
|
|
@@ -11005,7 +11023,7 @@ const un = () => {
|
|
|
11005
11023
|
i && n([a]).finally(() => {
|
|
11006
11024
|
r(!0);
|
|
11007
11025
|
});
|
|
11008
|
-
}, [i, a]), !i || !o ? /* @__PURE__ */ t(
|
|
11026
|
+
}, [i, a]), !i || !o ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
11009
11027
|
Rt,
|
|
11010
11028
|
{
|
|
11011
11029
|
sx: {
|
|
@@ -11019,7 +11037,7 @@ const un = () => {
|
|
|
11019
11037
|
dn,
|
|
11020
11038
|
{
|
|
11021
11039
|
sx: { pb: 0 },
|
|
11022
|
-
title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children:
|
|
11040
|
+
title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: ce(/* @__PURE__ */ new Date(), re.MONTH_LONG) })
|
|
11023
11041
|
}
|
|
11024
11042
|
),
|
|
11025
11043
|
/* @__PURE__ */ t(Ot, { sx: { p: 0 }, children: /* @__PURE__ */ t(om, {}) })
|
|
@@ -11177,7 +11195,7 @@ const _c = ({
|
|
|
11177
11195
|
scaleType: "time",
|
|
11178
11196
|
min: _[0],
|
|
11179
11197
|
disableTicks: !0,
|
|
11180
|
-
valueFormatter: (v) =>
|
|
11198
|
+
valueFormatter: (v) => ce(v, re.MONTH_SHORT_YEAR)
|
|
11181
11199
|
}
|
|
11182
11200
|
],
|
|
11183
11201
|
yAxis: [
|
|
@@ -11245,7 +11263,7 @@ const _c = ({
|
|
|
11245
11263
|
},
|
|
11246
11264
|
children: [
|
|
11247
11265
|
/* @__PURE__ */ l(b, { flexGrow: 1, children: [
|
|
11248
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
|
11266
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ce(s, re.MONTH_YEAR) }),
|
|
11249
11267
|
/* @__PURE__ */ t(p, { color: e.palette.secondary.main, variant: "XSmall", children: i.schedule_month_label })
|
|
11250
11268
|
] }),
|
|
11251
11269
|
/* @__PURE__ */ l(b, { children: [
|
|
@@ -11580,7 +11598,7 @@ const _c = ({
|
|
|
11580
11598
|
}, Tm = I(Sm), Am = ({ isOpen: e, onClose: n, sx: i }) => {
|
|
11581
11599
|
const { debts: a } = x(), { showError: o, showCompleted: r } = un(), s = o || r ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ t(um, {});
|
|
11582
11600
|
return /* @__PURE__ */ t(
|
|
11583
|
-
|
|
11601
|
+
le,
|
|
11584
11602
|
{
|
|
11585
11603
|
ariaLabelClose: a.details_close_aria,
|
|
11586
11604
|
isOpen: e,
|
|
@@ -11650,7 +11668,7 @@ const _c = ({
|
|
|
11650
11668
|
}, vm = I(xm), wm = ({ isOpen: e, onClose: n, sx: i }) => {
|
|
11651
11669
|
const { debts: a } = x();
|
|
11652
11670
|
return /* @__PURE__ */ t(
|
|
11653
|
-
|
|
11671
|
+
le,
|
|
11654
11672
|
{
|
|
11655
11673
|
ariaLabelClose: a.paydown_drawer_close_aria,
|
|
11656
11674
|
isOpen: e,
|
|
@@ -11778,7 +11796,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11778
11796
|
field: "projected_payoff_date",
|
|
11779
11797
|
headerName: d.table_column_payoff_date,
|
|
11780
11798
|
renderHeader: $t,
|
|
11781
|
-
valueFormatter: (y) => y ?
|
|
11799
|
+
valueFormatter: (y) => y ? ce(y, re.MONTH_SHORT_YEAR) : "---",
|
|
11782
11800
|
sortable: !0,
|
|
11783
11801
|
hideSortIcons: c,
|
|
11784
11802
|
type: "number",
|
|
@@ -11870,7 +11888,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11870
11888
|
}, km = ({ buttonText: e, isOpen: n, onClick: i }) => {
|
|
11871
11889
|
const { isDesktop: a, isTablet: o } = Ce(), r = n ? "unfold_less" : "unfold_more";
|
|
11872
11890
|
return a || o ? /* @__PURE__ */ t(
|
|
11873
|
-
|
|
11891
|
+
te,
|
|
11874
11892
|
{
|
|
11875
11893
|
"aria-controls": "prioritize-debts",
|
|
11876
11894
|
"aria-describedby": "prioritize-debts",
|
|
@@ -12005,7 +12023,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12005
12023
|
}, Pm = I(({ onClick: e }) => {
|
|
12006
12024
|
const { debts: n } = x(), { isDesktop: i } = Ce(), { totalMonthlyPayments: a } = sa(), { monthlyCashFlowProfile: o } = tt(), r = a + Number(o?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
|
|
12007
12025
|
return /* @__PURE__ */ t(
|
|
12008
|
-
|
|
12026
|
+
te,
|
|
12009
12027
|
{
|
|
12010
12028
|
"aria-controls": "extra-paydown",
|
|
12011
12029
|
"aria-describedby": "extra-paydown",
|
|
@@ -12017,7 +12035,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12017
12035
|
}
|
|
12018
12036
|
);
|
|
12019
12037
|
}), Fm = ({ onBackClick: e, sx: n }) => {
|
|
12020
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } =
|
|
12038
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = de(), { setSelectedAccount: S } = Ht(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = un(), { visibleDebtAccounts: v } = Ee(), { goalsLoaded: R, loadGoals: B, monthlyCashFlowProfile: M } = tt(), { debts: D } = sa(), k = g.useMemo(() => {
|
|
12021
12039
|
const ge = M?.extra_payment ?? 0;
|
|
12022
12040
|
return Hm(D, A, ge);
|
|
12023
12041
|
}, [D, A, M]);
|
|
@@ -12031,20 +12049,20 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12031
12049
|
const O = (ge) => u(ge), U = () => {
|
|
12032
12050
|
const ge = v.find((Re) => Re.guid === d), De = k.find((Re) => Re.guid === d);
|
|
12033
12051
|
ge && S(ge), De && w(De), a(!0);
|
|
12034
|
-
},
|
|
12052
|
+
}, Q = () => C(W.DEBTS_CLICK_FILTER), oe = () => {
|
|
12035
12053
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12036
|
-
},
|
|
12054
|
+
}, J = () => {
|
|
12037
12055
|
r(!0), C(W.DEBTS_CLICK_PAYDOWN);
|
|
12038
12056
|
};
|
|
12039
|
-
return !R || !f || !E ? /* @__PURE__ */ t(
|
|
12057
|
+
return !R || !f || !E ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
12040
12058
|
bt,
|
|
12041
12059
|
{
|
|
12042
12060
|
accountOptions: v,
|
|
12043
12061
|
actions: [
|
|
12044
12062
|
/* @__PURE__ */ t(Bm, {}, "prioritize-debts"),
|
|
12045
|
-
/* @__PURE__ */ t(Pm, { onClick:
|
|
12063
|
+
/* @__PURE__ */ t(Pm, { onClick: J }, "extra-paydown")
|
|
12046
12064
|
],
|
|
12047
|
-
onAccountsFilterClick:
|
|
12065
|
+
onAccountsFilterClick: Q,
|
|
12048
12066
|
onBackClick: e,
|
|
12049
12067
|
sx: n,
|
|
12050
12068
|
title: m.title,
|
|
@@ -12074,7 +12092,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12074
12092
|
zg,
|
|
12075
12093
|
{
|
|
12076
12094
|
debts: k,
|
|
12077
|
-
onClickCta:
|
|
12095
|
+
onClickCta: oe,
|
|
12078
12096
|
sx: { mb: h ? "0px" : "64px" }
|
|
12079
12097
|
}
|
|
12080
12098
|
)
|
|
@@ -12107,7 +12125,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12107
12125
|
unnamed_label: "Unnamed Debt"
|
|
12108
12126
|
};
|
|
12109
12127
|
function $m(e, n) {
|
|
12110
|
-
const i = e.filter((r) => r.account_type ===
|
|
12128
|
+
const i = e.filter((r) => r.account_type === se.CHECKING_LINE_OF_CREDIT ? Number(r.balance) <= 0 : r.is_excluded_from_debts !== !0), a = n.filter((r) => i.some((s) => s.guid === r.account_guid)).map(
|
|
12111
12129
|
(r) => vr(i.find((s) => s.guid === r.account_guid), r)
|
|
12112
12130
|
), o = i.filter((r) => !a.some((s) => s.account.guid === r.guid)).map((r) => vr(r));
|
|
12113
12131
|
return [...a, ...o];
|
|
@@ -12197,7 +12215,7 @@ function mc(e, n) {
|
|
|
12197
12215
|
vi(a, s)
|
|
12198
12216
|
), _ = T(
|
|
12199
12217
|
n.is_complete ? e.completed_label : e.goal_projection,
|
|
12200
|
-
|
|
12218
|
+
ce(d, re.MONTH_SHORT_YEAR)
|
|
12201
12219
|
);
|
|
12202
12220
|
return {
|
|
12203
12221
|
backgroundColor: o,
|
|
@@ -12356,9 +12374,9 @@ const zm = (e, n) => {
|
|
|
12356
12374
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: f.name }),
|
|
12357
12375
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12358
12376
|
n.goal_projection,
|
|
12359
|
-
|
|
12377
|
+
ce(
|
|
12360
12378
|
Fe(f.projected_to_complete_at || 0),
|
|
12361
|
-
|
|
12379
|
+
re.MONTH_SHORT_YEAR
|
|
12362
12380
|
)
|
|
12363
12381
|
) })
|
|
12364
12382
|
] });
|
|
@@ -12390,7 +12408,7 @@ const zm = (e, n) => {
|
|
|
12390
12408
|
await a(c), o(n.alert_goals_reordered), s(!1);
|
|
12391
12409
|
};
|
|
12392
12410
|
return /* @__PURE__ */ l(b, { children: [
|
|
12393
|
-
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
12411
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(ue, { onClick: () => s(!0), children: /* @__PURE__ */ t(ae, { children: /* @__PURE__ */ l(
|
|
12394
12412
|
b,
|
|
12395
12413
|
{
|
|
12396
12414
|
alignItems: "center",
|
|
@@ -12404,7 +12422,7 @@ const zm = (e, n) => {
|
|
|
12404
12422
|
}
|
|
12405
12423
|
) }) }) }),
|
|
12406
12424
|
/* @__PURE__ */ t(
|
|
12407
|
-
|
|
12425
|
+
le,
|
|
12408
12426
|
{
|
|
12409
12427
|
ariaLabelClose: i.close_aria,
|
|
12410
12428
|
isOpen: r,
|
|
@@ -12412,7 +12430,7 @@ const zm = (e, n) => {
|
|
|
12412
12430
|
onPrimaryAction: m,
|
|
12413
12431
|
title: n.reorder_goals_title,
|
|
12414
12432
|
children: /* @__PURE__ */ l(b, { children: [
|
|
12415
|
-
/* @__PURE__ */ t(
|
|
12433
|
+
/* @__PURE__ */ t(xe, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
|
|
12416
12434
|
/* @__PURE__ */ t(
|
|
12417
12435
|
Hn,
|
|
12418
12436
|
{
|
|
@@ -12441,7 +12459,7 @@ const zm = (e, n) => {
|
|
|
12441
12459
|
] });
|
|
12442
12460
|
}, Zm = ({ goal: e, index: n }) => {
|
|
12443
12461
|
const { goals: i } = x();
|
|
12444
|
-
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12462
|
+
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
12445
12463
|
e.track_type !== V.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
12446
12464
|
ke,
|
|
12447
12465
|
{
|
|
@@ -12459,9 +12477,9 @@ const zm = (e, n) => {
|
|
|
12459
12477
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12460
12478
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12461
12479
|
i.goal_projection,
|
|
12462
|
-
|
|
12480
|
+
ce(
|
|
12463
12481
|
Fe(e.projected_to_complete_at || 0),
|
|
12464
|
-
|
|
12482
|
+
re.MONTH_SHORT_YEAR
|
|
12465
12483
|
)
|
|
12466
12484
|
) })
|
|
12467
12485
|
] }),
|
|
@@ -12470,16 +12488,16 @@ const zm = (e, n) => {
|
|
|
12470
12488
|
] }) });
|
|
12471
12489
|
}, qm = ({ goal: e }) => {
|
|
12472
12490
|
const { goals: n } = x();
|
|
12473
|
-
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12491
|
+
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
12474
12492
|
/* @__PURE__ */ t(ke, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(Va, { color: "success", filled: !0, size: 20 }) }),
|
|
12475
12493
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12476
12494
|
/* @__PURE__ */ l(b, { children: [
|
|
12477
12495
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12478
12496
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12479
12497
|
n.completed_label,
|
|
12480
|
-
|
|
12498
|
+
ce(
|
|
12481
12499
|
Fe(e.completed_at || 0),
|
|
12482
|
-
|
|
12500
|
+
re.MONTH_SHORT_YEAR
|
|
12483
12501
|
)
|
|
12484
12502
|
) })
|
|
12485
12503
|
] }),
|
|
@@ -12494,9 +12512,9 @@ const zm = (e, n) => {
|
|
|
12494
12512
|
), [c, d] = g.useState(!1);
|
|
12495
12513
|
let u = n.manage_saving_goals, _ = n.manage_saving_drawer_title, h = n.manage_saving_title, m = n.manage_saving_description;
|
|
12496
12514
|
return e === V.DEBT_TRACK ? (u = n.manage_debt_goals, _ = n.manage_debt_drawer_title, h = n.manage_debt_title, m = n.manage_debt_description) : e === V.RETIREMENT_TRACK && (u = n.manage_retirement_goals, _ = n.manage_retirement_drawer_title, h = n.manage_retirement_title, m = n.manage_retirement_description), /* @__PURE__ */ l(b, { children: [
|
|
12497
|
-
/* @__PURE__ */ t(
|
|
12515
|
+
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(it, {}), onClick: () => d(!0), children: u }),
|
|
12498
12516
|
/* @__PURE__ */ t(
|
|
12499
|
-
|
|
12517
|
+
le,
|
|
12500
12518
|
{
|
|
12501
12519
|
ariaLabelClose: i.close_aria,
|
|
12502
12520
|
isOpen: c,
|
|
@@ -12505,7 +12523,7 @@ const zm = (e, n) => {
|
|
|
12505
12523
|
children: /* @__PURE__ */ l(b, { children: [
|
|
12506
12524
|
/* @__PURE__ */ l(b, { m: 24, children: [
|
|
12507
12525
|
/* @__PURE__ */ t(mt, { children: h }),
|
|
12508
|
-
/* @__PURE__ */ t(
|
|
12526
|
+
/* @__PURE__ */ t(xe, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
|
12509
12527
|
] }),
|
|
12510
12528
|
/* @__PURE__ */ t(jm, { trackType: e }),
|
|
12511
12529
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
|
|
@@ -12566,7 +12584,7 @@ const zm = (e, n) => {
|
|
|
12566
12584
|
py: 18,
|
|
12567
12585
|
children: [
|
|
12568
12586
|
/* @__PURE__ */ t(
|
|
12569
|
-
|
|
12587
|
+
xe,
|
|
12570
12588
|
{
|
|
12571
12589
|
sx: (_) => ({
|
|
12572
12590
|
color: "text.secondary",
|
|
@@ -12579,14 +12597,14 @@ const zm = (e, n) => {
|
|
|
12579
12597
|
children: zm(e, a)
|
|
12580
12598
|
}
|
|
12581
12599
|
),
|
|
12582
|
-
/* @__PURE__ */ t(
|
|
12600
|
+
/* @__PURE__ */ t(te, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: a.add_goals_button })
|
|
12583
12601
|
]
|
|
12584
12602
|
}
|
|
12585
12603
|
),
|
|
12586
12604
|
e !== V.RETIREMENT_TRACK && /* @__PURE__ */ l(b, { gap: 16, mt: 48, children: [
|
|
12587
12605
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
|
|
12588
12606
|
d.length === 0 && /* @__PURE__ */ t(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
|
|
12589
|
-
|
|
12607
|
+
xe,
|
|
12590
12608
|
{
|
|
12591
12609
|
sx: (_) => ({
|
|
12592
12610
|
color: "text.secondary",
|
|
@@ -12612,7 +12630,7 @@ const zm = (e, n) => {
|
|
|
12612
12630
|
const { goals: i } = x(), { bgcolor: a, icon: o, label: r, description: s, subTypes: c, type: d } = e, [u, _] = g.useState(!1), h = c.length > 0;
|
|
12613
12631
|
return /* @__PURE__ */ t(b, { children: /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
12614
12632
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12615
|
-
|
|
12633
|
+
ue,
|
|
12616
12634
|
{
|
|
12617
12635
|
onClick: h ? () => _(!u) : () => n(
|
|
12618
12636
|
d === V.RETIREMENT_TRACK ? i.retirement : "",
|
|
@@ -12628,7 +12646,7 @@ const zm = (e, n) => {
|
|
|
12628
12646
|
}
|
|
12629
12647
|
) }),
|
|
12630
12648
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12631
|
-
h && /* @__PURE__ */ t(Jn, { in: u, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(z, { sx: { pl: 48 }, children: /* @__PURE__ */ l(
|
|
12649
|
+
h && /* @__PURE__ */ t(Jn, { in: u, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(z, { sx: { pl: 48 }, children: /* @__PURE__ */ l(ue, { onClick: () => n(m.label, m.metaType, d), children: [
|
|
12632
12650
|
/* @__PURE__ */ t(ht, { sx: { mr: 8 }, children: /* @__PURE__ */ t(ct, { name: m.icon }) }),
|
|
12633
12651
|
/* @__PURE__ */ t(
|
|
12634
12652
|
ae,
|
|
@@ -12652,7 +12670,7 @@ const zm = (e, n) => {
|
|
|
12652
12670
|
h >= 0 ? m.splice(h, 1) : m.push(_), d(m);
|
|
12653
12671
|
};
|
|
12654
12672
|
return /* @__PURE__ */ l(
|
|
12655
|
-
|
|
12673
|
+
le,
|
|
12656
12674
|
{
|
|
12657
12675
|
ariaLabelClose: s.close_aria,
|
|
12658
12676
|
isOpen: n,
|
|
@@ -12660,11 +12678,11 @@ const zm = (e, n) => {
|
|
|
12660
12678
|
onPrimaryAction: () => a(c),
|
|
12661
12679
|
title: o,
|
|
12662
12680
|
children: [
|
|
12663
|
-
/* @__PURE__ */ t(
|
|
12681
|
+
/* @__PURE__ */ t(xe, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: r.select_debt_accounts_description }),
|
|
12664
12682
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
|
|
12665
12683
|
/* @__PURE__ */ t(H, { variant: "fullWidth" }),
|
|
12666
12684
|
e.map((_, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
12667
|
-
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12685
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => u(_), children: [
|
|
12668
12686
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
12669
12687
|
ut,
|
|
12670
12688
|
{
|
|
@@ -12709,7 +12727,7 @@ const zm = (e, n) => {
|
|
|
12709
12727
|
}, h = async (m) => {
|
|
12710
12728
|
for (const C of m) {
|
|
12711
12729
|
let f = wt.CREDIT_CARD;
|
|
12712
|
-
C.account_type ===
|
|
12730
|
+
C.account_type === se.LOAN ? f = wt.LOANS : C.account_type === se.LINE_OF_CREDIT && (f = wt.LINE_OF_CREDIT), await i({
|
|
12713
12731
|
account_guid: C.guid,
|
|
12714
12732
|
amount: 0,
|
|
12715
12733
|
current_amount: 0,
|
|
@@ -12740,7 +12758,7 @@ const zm = (e, n) => {
|
|
|
12740
12758
|
}, fc = ({ account: e }) => {
|
|
12741
12759
|
const { accounts: n } = x(), { setSelectedAccount: i } = Ht(), [a, o] = g.useState(!1);
|
|
12742
12760
|
return /* @__PURE__ */ l(z, { sx: { bgcolor: "background.paper" }, children: [
|
|
12743
|
-
/* @__PURE__ */ l(
|
|
12761
|
+
/* @__PURE__ */ l(ue, { onClick: () => {
|
|
12744
12762
|
i(e), o(!0);
|
|
12745
12763
|
}, children: [
|
|
12746
12764
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
@@ -12759,7 +12777,7 @@ const zm = (e, n) => {
|
|
|
12759
12777
|
),
|
|
12760
12778
|
/* @__PURE__ */ t(it, {})
|
|
12761
12779
|
] }),
|
|
12762
|
-
/* @__PURE__ */ t(
|
|
12780
|
+
/* @__PURE__ */ t(le, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ l(b, { children: [
|
|
12763
12781
|
/* @__PURE__ */ t(To, {}),
|
|
12764
12782
|
/* @__PURE__ */ t(Oc, {})
|
|
12765
12783
|
] }) })
|
|
@@ -12804,14 +12822,14 @@ const zm = (e, n) => {
|
|
|
12804
12822
|
d ? s(f) : (await c(f), r(o.alert_account_changed)), _(!1);
|
|
12805
12823
|
};
|
|
12806
12824
|
return /* @__PURE__ */ l(b, { children: [
|
|
12807
|
-
d && !e.account_guid ? /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
12825
|
+
d && !e.account_guid ? /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: () => _(!0), children: [
|
|
12808
12826
|
/* @__PURE__ */ t(ae, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12809
12827
|
/* @__PURE__ */ t(_s, { filled: !0 }),
|
|
12810
12828
|
o.details_add_account
|
|
12811
12829
|
] }) }),
|
|
12812
12830
|
/* @__PURE__ */ t(it, { color: "primary" })
|
|
12813
12831
|
] }) }) : /* @__PURE__ */ l(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
|
12814
|
-
/* @__PURE__ */ t(
|
|
12832
|
+
/* @__PURE__ */ t(te, { onClick: () => _(!0), variant: "text", children: o.details_change_account }),
|
|
12815
12833
|
/* @__PURE__ */ t(
|
|
12816
12834
|
p,
|
|
12817
12835
|
{
|
|
@@ -12822,9 +12840,9 @@ const zm = (e, n) => {
|
|
|
12822
12840
|
}
|
|
12823
12841
|
)
|
|
12824
12842
|
] }),
|
|
12825
|
-
/* @__PURE__ */ t(
|
|
12843
|
+
/* @__PURE__ */ t(le, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ l(b, { children: [
|
|
12826
12844
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
|
12827
|
-
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12845
|
+
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m), children: [
|
|
12828
12846
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
12829
12847
|
ut,
|
|
12830
12848
|
{
|
|
@@ -12842,7 +12860,7 @@ const zm = (e, n) => {
|
|
|
12842
12860
|
/* @__PURE__ */ t(it, {})
|
|
12843
12861
|
] }) }, m.guid)) }),
|
|
12844
12862
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
12845
|
-
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
12863
|
+
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m), children: [
|
|
12846
12864
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
12847
12865
|
ut,
|
|
12848
12866
|
{
|
|
@@ -12946,7 +12964,7 @@ const zm = (e, n) => {
|
|
|
12946
12964
|
label: n.details_birthday,
|
|
12947
12965
|
onSave: _,
|
|
12948
12966
|
primaryText: n.details_birthday,
|
|
12949
|
-
secondaryText: `${
|
|
12967
|
+
secondaryText: `${ce(Fe(i.birthday ?? 0), re.MONTH_DAY_YEAR)}`,
|
|
12950
12968
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
|
12951
12969
|
children: /* @__PURE__ */ t(Ti, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
12952
12970
|
Ya,
|
|
@@ -12993,7 +13011,7 @@ const zm = (e, n) => {
|
|
|
12993
13011
|
/* @__PURE__ */ t(fc, { account: y }),
|
|
12994
13012
|
/* @__PURE__ */ t(H, {})
|
|
12995
13013
|
] }, y.guid)),
|
|
12996
|
-
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
13014
|
+
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: () => h(!0), children: [
|
|
12997
13015
|
/* @__PURE__ */ t(ae, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12998
13016
|
/* @__PURE__ */ t(_s, { filled: !0 }),
|
|
12999
13017
|
n.details_add_account
|
|
@@ -13070,11 +13088,11 @@ const zm = (e, n) => {
|
|
|
13070
13088
|
updateGoal: C
|
|
13071
13089
|
} = tt(), { user: f } = Bt(), [E, y] = g.useState(!1), S = !_?.guid, A = _?.track_type === V.SAVINGS_TRACK && _.is_complete && !_.has_been_spent, w = g.useMemo(() => {
|
|
13072
13090
|
const O = S ? d : u;
|
|
13073
|
-
return n.filter((U) => O.some((
|
|
13091
|
+
return n.filter((U) => O.some((Q) => Q.account_guid === U.guid));
|
|
13074
13092
|
}, [S, n, d, u]), v = g.useMemo(() => {
|
|
13075
13093
|
if (!_) return !1;
|
|
13076
|
-
const { account_guid: O, track_type: U, name:
|
|
13077
|
-
return U === V.SAVINGS_TRACK ? O ? !!
|
|
13094
|
+
const { account_guid: O, track_type: U, name: Q, amount: oe, retirement_age: J } = _;
|
|
13095
|
+
return U === V.SAVINGS_TRACK ? O ? !!Q && !!oe : !1 : U === V.RETIREMENT_TRACK ? w.length ? !!Q && !!oe && !!J && !!f.birthday : !1 : !0;
|
|
13078
13096
|
}, [_, w, f.birthday]);
|
|
13079
13097
|
let R = a.delete_button, B = () => y(!0);
|
|
13080
13098
|
S ? (B = () => M(), R = a.save_button) : A && (B = () => k(), R = i.mark_as_complete_button);
|
|
@@ -13094,7 +13112,7 @@ const zm = (e, n) => {
|
|
|
13094
13112
|
};
|
|
13095
13113
|
return /* @__PURE__ */ l(b, { children: [
|
|
13096
13114
|
/* @__PURE__ */ t(
|
|
13097
|
-
|
|
13115
|
+
le,
|
|
13098
13116
|
{
|
|
13099
13117
|
ariaLabelClose: a.close_aria,
|
|
13100
13118
|
hasSecondaryAction: S,
|
|
@@ -13124,7 +13142,7 @@ const zm = (e, n) => {
|
|
|
13124
13142
|
)
|
|
13125
13143
|
] });
|
|
13126
13144
|
}), AE = I(({ onBackClick: e, sx: n }) => {
|
|
13127
|
-
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } = Ee(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } =
|
|
13145
|
+
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } = Ee(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = de(), { goals: d, common: u } = x(), { alert: _, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = tt(), [S, A] = g.useState(0), [w, v] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, B = f?.amount_allocated_for_debt_goals || 0, M = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
|
|
13128
13146
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13129
13147
|
P(R, "0,0")
|
|
13130
13148
|
) : "", k = r ? T(
|
|
@@ -13141,15 +13159,15 @@ const zm = (e, n) => {
|
|
|
13141
13159
|
}, [s, R, B, M]);
|
|
13142
13160
|
const U = () => {
|
|
13143
13161
|
i(W.GOALS_CLICK_FILTER);
|
|
13144
|
-
},
|
|
13162
|
+
}, Q = () => {
|
|
13145
13163
|
v(!0), i(W.GOALS_CLICK_ADD);
|
|
13146
|
-
},
|
|
13164
|
+
}, oe = (ge) => {
|
|
13147
13165
|
v(!1), ge === V.SAVINGS_TRACK ? A(0) : ge === V.DEBT_TRACK ? A(1) : ge === V.RETIREMENT_TRACK && A(2);
|
|
13148
|
-
},
|
|
13166
|
+
}, J = g.useMemo(
|
|
13149
13167
|
() => m && (h.length === 0 || h.every(({ track_type: ge }) => !ge) && y.length === 0),
|
|
13150
13168
|
[h, m, y]
|
|
13151
13169
|
);
|
|
13152
|
-
return !m || !r || !s ? /* @__PURE__ */ t(
|
|
13170
|
+
return !m || !r || !s ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
13153
13171
|
bt,
|
|
13154
13172
|
{
|
|
13155
13173
|
accountOptions: o,
|
|
@@ -13157,7 +13175,7 @@ const zm = (e, n) => {
|
|
|
13157
13175
|
{
|
|
13158
13176
|
iconName: "add",
|
|
13159
13177
|
label: d.add_title,
|
|
13160
|
-
onClick:
|
|
13178
|
+
onClick: Q
|
|
13161
13179
|
}
|
|
13162
13180
|
],
|
|
13163
13181
|
onAccountsFilterClick: U,
|
|
@@ -13172,39 +13190,39 @@ const zm = (e, n) => {
|
|
|
13172
13190
|
onChange: (ge, De) => A(De),
|
|
13173
13191
|
sx: { bgcolor: "background.paper" },
|
|
13174
13192
|
textColor: "primary",
|
|
13175
|
-
value:
|
|
13193
|
+
value: J ? !1 : S,
|
|
13176
13194
|
variant: "fullWidth",
|
|
13177
13195
|
children: [
|
|
13178
13196
|
/* @__PURE__ */ t(
|
|
13179
13197
|
et,
|
|
13180
13198
|
{
|
|
13181
|
-
disabled:
|
|
13199
|
+
disabled: J,
|
|
13182
13200
|
label: /* @__PURE__ */ t(Sa, { subtitle: D, title: d.tab_saving_title })
|
|
13183
13201
|
}
|
|
13184
13202
|
),
|
|
13185
13203
|
/* @__PURE__ */ t(
|
|
13186
13204
|
et,
|
|
13187
13205
|
{
|
|
13188
|
-
disabled:
|
|
13206
|
+
disabled: J,
|
|
13189
13207
|
label: /* @__PURE__ */ t(Sa, { subtitle: k, title: d.tab_debt_title })
|
|
13190
13208
|
}
|
|
13191
13209
|
),
|
|
13192
13210
|
/* @__PURE__ */ t(
|
|
13193
13211
|
et,
|
|
13194
13212
|
{
|
|
13195
|
-
disabled:
|
|
13213
|
+
disabled: J,
|
|
13196
13214
|
label: /* @__PURE__ */ t(Sa, { subtitle: O, title: d.tab_retirement_title })
|
|
13197
13215
|
}
|
|
13198
13216
|
)
|
|
13199
13217
|
]
|
|
13200
13218
|
}
|
|
13201
13219
|
),
|
|
13202
|
-
|
|
13220
|
+
J ? /* @__PURE__ */ t(
|
|
13203
13221
|
zn,
|
|
13204
13222
|
{
|
|
13205
13223
|
header: d.create_goals_header,
|
|
13206
13224
|
icon: "trophy",
|
|
13207
|
-
onClick:
|
|
13225
|
+
onClick: Q,
|
|
13208
13226
|
primaryButton: d.add_goals_button,
|
|
13209
13227
|
subText: d.empty_state_subheader,
|
|
13210
13228
|
sx: {
|
|
@@ -13215,20 +13233,20 @@ const zm = (e, n) => {
|
|
|
13215
13233
|
}
|
|
13216
13234
|
}
|
|
13217
13235
|
) : /* @__PURE__ */ l(q, { children: [
|
|
13218
|
-
S === 0 && /* @__PURE__ */ t(Ta, { onAddGoals:
|
|
13219
|
-
S === 1 && /* @__PURE__ */ t(Ta, { onAddGoals:
|
|
13220
|
-
S === 2 && /* @__PURE__ */ t(Ta, { onAddGoals:
|
|
13236
|
+
S === 0 && /* @__PURE__ */ t(Ta, { onAddGoals: Q, trackType: V.SAVINGS_TRACK }),
|
|
13237
|
+
S === 1 && /* @__PURE__ */ t(Ta, { onAddGoals: Q, trackType: V.DEBT_TRACK }),
|
|
13238
|
+
S === 2 && /* @__PURE__ */ t(Ta, { onAddGoals: Q, trackType: V.RETIREMENT_TRACK })
|
|
13221
13239
|
] })
|
|
13222
13240
|
] }),
|
|
13223
|
-
/* @__PURE__ */ t(cp, { onClose:
|
|
13241
|
+
/* @__PURE__ */ t(cp, { onClose: oe }),
|
|
13224
13242
|
/* @__PURE__ */ t(
|
|
13225
|
-
|
|
13243
|
+
le,
|
|
13226
13244
|
{
|
|
13227
13245
|
ariaLabelClose: u.close_aria,
|
|
13228
13246
|
isOpen: w,
|
|
13229
13247
|
onClose: () => v(!1),
|
|
13230
13248
|
title: d.add_goal_title,
|
|
13231
|
-
children: /* @__PURE__ */ t(ep, { onClose:
|
|
13249
|
+
children: /* @__PURE__ */ t(ep, { onClose: oe })
|
|
13232
13250
|
}
|
|
13233
13251
|
),
|
|
13234
13252
|
/* @__PURE__ */ t(
|
|
@@ -13474,7 +13492,7 @@ const dp = I(({ goal: e }) => {
|
|
|
13474
13492
|
]
|
|
13475
13493
|
}
|
|
13476
13494
|
), IE = I(({ onCTAClick: e }) => {
|
|
13477
|
-
const { visibleAccounts: n } = Ee(), { onEvent: i } = j(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } =
|
|
13495
|
+
const { visibleAccounts: n } = Ee(), { onEvent: i } = j(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = de(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: u } = tt();
|
|
13478
13496
|
g.useEffect(() => {
|
|
13479
13497
|
r(n), i(W.GOALS_VIEW);
|
|
13480
13498
|
}, []), g.useEffect(() => {
|
|
@@ -13486,7 +13504,7 @@ const dp = I(({ goal: e }) => {
|
|
|
13486
13504
|
() => u && c.length === 0,
|
|
13487
13505
|
[c, u]
|
|
13488
13506
|
);
|
|
13489
|
-
return !u || !s || !o ? /* @__PURE__ */ t(
|
|
13507
|
+
return !u || !s || !o ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(
|
|
13490
13508
|
so,
|
|
13491
13509
|
{
|
|
13492
13510
|
className: "mx-goals-microwidget",
|
|
@@ -14060,7 +14078,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14060
14078
|
height: e = "calc(100dvh - 120px)",
|
|
14061
14079
|
onSelect: n
|
|
14062
14080
|
}) => {
|
|
14063
|
-
const { isLoading: i, merchants: a, loadMerchants: o } = a_(), { common: r } = x(), { isCopyLoaded: s } =
|
|
14081
|
+
const { isLoading: i, merchants: a, loadMerchants: o } = a_(), { common: r } = x(), { isCopyLoaded: s } = de(), [c, d] = g.useState("");
|
|
14064
14082
|
g.useEffect(() => {
|
|
14065
14083
|
o().finally();
|
|
14066
14084
|
}, [o]);
|
|
@@ -14087,7 +14105,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14087
14105
|
),
|
|
14088
14106
|
/* @__PURE__ */ t(St, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ l(L, { height: e, overflow: "auto", ref: h, children: [
|
|
14089
14107
|
/* @__PURE__ */ l(L, { height: m.getTotalSize(), position: "relative", children: [
|
|
14090
|
-
i && /* @__PURE__ */ t(
|
|
14108
|
+
i && /* @__PURE__ */ t(_e, { label: "Loading...", size: 32 }),
|
|
14091
14109
|
!i && m.getVirtualItems().length > 0 && m.getVirtualItems().map((C) => {
|
|
14092
14110
|
const f = a[C.index];
|
|
14093
14111
|
return /* @__PURE__ */ l(
|
|
@@ -14098,7 +14116,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14098
14116
|
sx: { transform: `translateY(${C.start}px)` },
|
|
14099
14117
|
width: "100%",
|
|
14100
14118
|
children: [
|
|
14101
|
-
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
14119
|
+
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: () => u(f.guid), children: [
|
|
14102
14120
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(rn, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
14103
14121
|
/* @__PURE__ */ t(ae, { primary: f.name })
|
|
14104
14122
|
] }) }),
|
|
@@ -14111,7 +14129,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14111
14129
|
] }),
|
|
14112
14130
|
!a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: r.search_zero_state }) })
|
|
14113
14131
|
] }) }) })
|
|
14114
|
-
] }) : /* @__PURE__ */ t(
|
|
14132
|
+
] }) : /* @__PURE__ */ t(_e, {});
|
|
14115
14133
|
}, xE = I(Op);
|
|
14116
14134
|
class Lr {
|
|
14117
14135
|
fetchInstance;
|
|
@@ -14202,7 +14220,7 @@ const Mp = ({
|
|
|
14202
14220
|
"&:hover": { color: a ? "inherit" : c.color }
|
|
14203
14221
|
},
|
|
14204
14222
|
children: /* @__PURE__ */ t(
|
|
14205
|
-
|
|
14223
|
+
ue,
|
|
14206
14224
|
{
|
|
14207
14225
|
onClick: (u) => o?.(u, e.x),
|
|
14208
14226
|
onMouseEnter: () => r(e.x),
|
|
@@ -14443,10 +14461,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14443
14461
|
e !== 0 && /* @__PURE__ */ l(b, { sx: { color: a ? "success.main" : "text.secondary" }, children: [
|
|
14444
14462
|
/* @__PURE__ */ l(b, { sx: { flexDirection: "row", gap: 8 }, children: [
|
|
14445
14463
|
/* @__PURE__ */ t(ct, { name: r, size: 20 }),
|
|
14446
|
-
/* @__PURE__ */
|
|
14447
|
-
P(i, "0,0.00"),
|
|
14448
|
-
" "
|
|
14449
|
-
] })
|
|
14464
|
+
/* @__PURE__ */ t(p, { sx: { fontWeight: 600, textAlign: "right" }, variant: "body1", children: P(i, "0,0.00") })
|
|
14450
14465
|
] }),
|
|
14451
14466
|
/* @__PURE__ */ t(p, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: n.this_month })
|
|
14452
14467
|
] })
|
|
@@ -14455,15 +14470,15 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14455
14470
|
/* @__PURE__ */ t(ct, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
|
|
14456
14471
|
/* @__PURE__ */ l(b, { children: [
|
|
14457
14472
|
/* @__PURE__ */ t(p, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
14458
|
-
/* @__PURE__ */ t(
|
|
14473
|
+
/* @__PURE__ */ t(xe, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
14459
14474
|
] })
|
|
14460
14475
|
] }), vE = I(({ onCTAClick: e }) => {
|
|
14461
|
-
const [n, i] = g.useState(!1), { visibleAccounts: a } = Ee(), { onEvent: o } = j(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: u } =
|
|
14476
|
+
const [n, i] = g.useState(!1), { visibleAccounts: a } = Ee(), { onEvent: o } = j(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: u } = de(), { loadChartData: _, loadNetWorthData: h, netWorthData: m, selectedData: C } = Os(), f = async () => {
|
|
14462
14477
|
await h(d), await _(1), i(!0);
|
|
14463
14478
|
};
|
|
14464
14479
|
if (g.useEffect(() => u(a), [a]), g.useEffect(() => {
|
|
14465
14480
|
c && f().finally();
|
|
14466
|
-
}, [c]), !n) return /* @__PURE__ */ t(
|
|
14481
|
+
}, [c]), !n) return /* @__PURE__ */ t(_e, { height: 100 });
|
|
14467
14482
|
const E = () => {
|
|
14468
14483
|
o(W.NETWORTH_MICRO_WIDGET_CTA), e();
|
|
14469
14484
|
};
|
|
@@ -14511,7 +14526,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14511
14526
|
})) : (u(!1), h(!1)), () => {
|
|
14512
14527
|
a?.unmount();
|
|
14513
14528
|
}), [n]), /* @__PURE__ */ t(
|
|
14514
|
-
|
|
14529
|
+
le,
|
|
14515
14530
|
{
|
|
14516
14531
|
ariaLabelClose: s.close_connections_aria,
|
|
14517
14532
|
isOpen: n,
|
|
@@ -14528,7 +14543,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14528
14543
|
}, wi = I(Jp), e1 = ({ accounts: e, name: n, icon: i }) => {
|
|
14529
14544
|
const [a, o] = g.useState(!1);
|
|
14530
14545
|
return /* @__PURE__ */ l(q, { children: [
|
|
14531
|
-
/* @__PURE__ */ t(z, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(
|
|
14546
|
+
/* @__PURE__ */ t(z, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(ue, { onClick: () => o(!a), children: [
|
|
14532
14547
|
i && /* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
14533
14548
|
/* @__PURE__ */ t(
|
|
14534
14549
|
ae,
|
|
@@ -14687,7 +14702,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14687
14702
|
] })
|
|
14688
14703
|
] });
|
|
14689
14704
|
}, a1 = I(i1), wE = I(({ onBackClick: e }) => {
|
|
14690
|
-
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } =
|
|
14705
|
+
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = de(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = Ee(), {
|
|
14691
14706
|
assetsLiabilities: d,
|
|
14692
14707
|
gainsLosses: u,
|
|
14693
14708
|
hoveredData: _,
|
|
@@ -14697,7 +14712,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14697
14712
|
selectedData: f,
|
|
14698
14713
|
setHoveredData: E,
|
|
14699
14714
|
setSelectedData: y
|
|
14700
|
-
} = Os(), { isMobile: S } = Ce(), { onEvent: A } = j(), [w, v] = g.useState(!1), [R, B] = g.useState(6), [M, D] = g.useState(!1), [k, O] = g.useState(!1), [U,
|
|
14715
|
+
} = Os(), { isMobile: S } = Ce(), { onEvent: A } = j(), [w, v] = g.useState(!1), [R, B] = g.useState(6), [M, D] = g.useState(!1), [k, O] = g.useState(!1), [U, Q] = g.useState(!1), oe = async () => {
|
|
14701
14716
|
await m(a), await h(R), v(!0);
|
|
14702
14717
|
};
|
|
14703
14718
|
g.useEffect(() => {
|
|
@@ -14705,31 +14720,31 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14705
14720
|
}, []), g.useEffect(() => {
|
|
14706
14721
|
o(c);
|
|
14707
14722
|
}, [c]), g.useEffect(() => {
|
|
14708
|
-
i &&
|
|
14723
|
+
i && oe().finally();
|
|
14709
14724
|
}, [i, a]), g.useEffect(() => {
|
|
14710
14725
|
A(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
|
14711
14726
|
}, [R]);
|
|
14712
|
-
const
|
|
14713
|
-
y(ne),
|
|
14714
|
-
}, ge = (
|
|
14715
|
-
E(
|
|
14727
|
+
const J = (ee, ne) => {
|
|
14728
|
+
y(ne), ee.currentTarget instanceof HTMLDivElement && D(!0);
|
|
14729
|
+
}, ge = (ee) => {
|
|
14730
|
+
E(ee);
|
|
14716
14731
|
}, De = () => {
|
|
14717
14732
|
E(null);
|
|
14718
14733
|
}, Re = () => {
|
|
14719
14734
|
A(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), O(!0);
|
|
14720
|
-
}, Se = async (
|
|
14721
|
-
const ne =
|
|
14735
|
+
}, Se = async (ee) => {
|
|
14736
|
+
const ne = ee[0], Ue = ee[1];
|
|
14722
14737
|
ne && Ue && B(ed(Ue, ne));
|
|
14723
14738
|
}, Oe = {
|
|
14724
14739
|
chartData: C,
|
|
14725
14740
|
hoveredData: _,
|
|
14726
14741
|
onButtonClick: Re,
|
|
14727
|
-
onDataClick:
|
|
14742
|
+
onDataClick: J,
|
|
14728
14743
|
onMouseEnter: ge,
|
|
14729
14744
|
onMouseLeave: De,
|
|
14730
14745
|
selectedData: f
|
|
14731
14746
|
}, It = () => {
|
|
14732
|
-
|
|
14747
|
+
Q(!0), A(W.ACCOUNTS_CLICK_CONNECT);
|
|
14733
14748
|
};
|
|
14734
14749
|
return n ? /* @__PURE__ */ t(
|
|
14735
14750
|
bt,
|
|
@@ -14790,13 +14805,13 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14790
14805
|
/* @__PURE__ */ t(
|
|
14791
14806
|
wi,
|
|
14792
14807
|
{
|
|
14793
|
-
onClose: () =>
|
|
14808
|
+
onClose: () => Q(!1),
|
|
14794
14809
|
showConnectionsWidget: U,
|
|
14795
14810
|
title: r.manage_connections
|
|
14796
14811
|
}
|
|
14797
14812
|
),
|
|
14798
14813
|
/* @__PURE__ */ t(
|
|
14799
|
-
|
|
14814
|
+
le,
|
|
14800
14815
|
{
|
|
14801
14816
|
ariaLabelClose: "Close",
|
|
14802
14817
|
isOpen: M,
|
|
@@ -14808,7 +14823,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14808
14823
|
}
|
|
14809
14824
|
),
|
|
14810
14825
|
/* @__PURE__ */ t(
|
|
14811
|
-
|
|
14826
|
+
le,
|
|
14812
14827
|
{
|
|
14813
14828
|
ariaLabelClose: "Close",
|
|
14814
14829
|
isOpen: k,
|
|
@@ -14819,9 +14834,9 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14819
14834
|
children: d && /* @__PURE__ */ t(n1, { ...d })
|
|
14820
14835
|
}
|
|
14821
14836
|
)
|
|
14822
|
-
] }) : /* @__PURE__ */ t(
|
|
14837
|
+
] }) : /* @__PURE__ */ t(_e, {})
|
|
14823
14838
|
}
|
|
14824
|
-
) : /* @__PURE__ */ t(
|
|
14839
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
14825
14840
|
}), NE = (e) => {
|
|
14826
14841
|
switch (e) {
|
|
14827
14842
|
case Zn.BudgetExceeded:
|
|
@@ -14951,17 +14966,17 @@ const s1 = (e, n) => {
|
|
|
14951
14966
|
children: n.notification_empty_state.notification_description
|
|
14952
14967
|
}
|
|
14953
14968
|
),
|
|
14954
|
-
/* @__PURE__ */ t(
|
|
14969
|
+
/* @__PURE__ */ t(te, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: n.notification_empty_state.manage_notifications })
|
|
14955
14970
|
] });
|
|
14956
14971
|
}
|
|
14957
14972
|
), h1 = ({ onClick: e, onManageNotifications: n }) => {
|
|
14958
|
-
const { isLoading: i, loadNotifications: a, recentNotifications: o, markAllAsViewed: r } = Ls(), { notifications: s } = x(), { isCopyLoaded: c } =
|
|
14973
|
+
const { isLoading: i, loadNotifications: a, recentNotifications: o, markAllAsViewed: r } = Ls(), { notifications: s } = x(), { isCopyLoaded: c } = de(), d = (u) => {
|
|
14959
14974
|
e?.(u);
|
|
14960
14975
|
};
|
|
14961
14976
|
return Mn(() => (a().finally(), () => {
|
|
14962
14977
|
r().finally();
|
|
14963
14978
|
}), []), /* @__PURE__ */ l(q, { children: [
|
|
14964
|
-
(!c || i) && /* @__PURE__ */ t(
|
|
14979
|
+
(!c || i) && /* @__PURE__ */ t(_e, { label: s?.loading, size: 40 }),
|
|
14965
14980
|
c && !i && o.length === 0 && /* @__PURE__ */ t(u1, { onManageNotifications: n }),
|
|
14966
14981
|
/* @__PURE__ */ t(ie, { sx: { p: 16 }, children: c && !i && o.slice().sort((u, _) => _.delivered_at - u.delivered_at).map((u, _) => {
|
|
14967
14982
|
const h = s1(_, o);
|
|
@@ -15236,7 +15251,7 @@ const f1 = I(() => {
|
|
|
15236
15251
|
s(!0);
|
|
15237
15252
|
};
|
|
15238
15253
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
15239
|
-
/* @__PURE__ */ l(
|
|
15254
|
+
/* @__PURE__ */ l(te, { onClick: d, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
15240
15255
|
/* @__PURE__ */ t(p, { variant: "Small", children: n.verify_email }),
|
|
15241
15256
|
/* @__PURE__ */ t(it, {})
|
|
15242
15257
|
] }),
|
|
@@ -15318,7 +15333,7 @@ const f1 = I(() => {
|
|
|
15318
15333
|
});
|
|
15319
15334
|
};
|
|
15320
15335
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
15321
|
-
/* @__PURE__ */ l(
|
|
15336
|
+
/* @__PURE__ */ l(te, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
15322
15337
|
/* @__PURE__ */ t(p, { variant: "Small", children: n.verify_phone }),
|
|
15323
15338
|
/* @__PURE__ */ t(it, {})
|
|
15324
15339
|
] }),
|
|
@@ -15390,8 +15405,8 @@ const f1 = I(() => {
|
|
|
15390
15405
|
}, [f]);
|
|
15391
15406
|
const R = () => {
|
|
15392
15407
|
if (m.birthday) {
|
|
15393
|
-
const O = new Date(m.birthday * 1e3), U = O.getUTCFullYear(),
|
|
15394
|
-
return new Date(U,
|
|
15408
|
+
const O = new Date(m.birthday * 1e3), U = O.getUTCFullYear(), Q = O.getUTCMonth(), oe = O.getUTCDate();
|
|
15409
|
+
return new Date(U, Q, oe);
|
|
15395
15410
|
}
|
|
15396
15411
|
}, B = async () => {
|
|
15397
15412
|
await _({ ...h, ...m }), E(!1);
|
|
@@ -15422,7 +15437,7 @@ const f1 = I(() => {
|
|
|
15422
15437
|
},
|
|
15423
15438
|
children: [
|
|
15424
15439
|
/* @__PURE__ */ t(mt, { children: o.personal_details }),
|
|
15425
|
-
/* @__PURE__ */ t(
|
|
15440
|
+
/* @__PURE__ */ t(xe, { variant: "Body", children: o.update_information }),
|
|
15426
15441
|
/* @__PURE__ */ l(
|
|
15427
15442
|
b,
|
|
15428
15443
|
{
|
|
@@ -15524,7 +15539,7 @@ const f1 = I(() => {
|
|
|
15524
15539
|
}
|
|
15525
15540
|
),
|
|
15526
15541
|
/* @__PURE__ */ t(
|
|
15527
|
-
|
|
15542
|
+
te,
|
|
15528
15543
|
{
|
|
15529
15544
|
disabled: !f,
|
|
15530
15545
|
onClick: B,
|
|
@@ -15876,12 +15891,12 @@ const T1 = ({
|
|
|
15876
15891
|
/* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
|
|
15877
15892
|
] }),
|
|
15878
15893
|
e === st.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(nt, { onChange: (A) => C(A.target.value), value: m }) }),
|
|
15879
|
-
e === st.Delete && /* @__PURE__ */ t(
|
|
15894
|
+
e === st.Delete && /* @__PURE__ */ t(xe, { children: c.mobile_devices_delete_info })
|
|
15880
15895
|
]
|
|
15881
15896
|
}
|
|
15882
15897
|
);
|
|
15883
15898
|
}, x1 = I(I1), v1 = I(() => {
|
|
15884
|
-
const { isMobile: e } = Ce(), { settings: n } = x(), { isCopyLoaded: i, isInitialized: a } =
|
|
15899
|
+
const { isMobile: e } = Ce(), { settings: n } = x(), { isCopyLoaded: i, isInitialized: a } = de(), { setAlert: o, devices: r, loadDevices: s, generateDeviceToken: c } = pt(), [d, u] = g.useState({ open: !1, type: "" }), [_, h] = g.useState(), [m, C] = g.useState("");
|
|
15885
15900
|
g.useEffect(() => {
|
|
15886
15901
|
a && s();
|
|
15887
15902
|
}, [a]);
|
|
@@ -15895,7 +15910,7 @@ const T1 = ({
|
|
|
15895
15910
|
}, S = () => {
|
|
15896
15911
|
u({ open: !1, type: "" }), h(void 0);
|
|
15897
15912
|
};
|
|
15898
|
-
return !i || !a ? /* @__PURE__ */ t(
|
|
15913
|
+
return !i || !a ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
15899
15914
|
b,
|
|
15900
15915
|
{
|
|
15901
15916
|
sx: {
|
|
@@ -15906,7 +15921,7 @@ const T1 = ({
|
|
|
15906
15921
|
children: [
|
|
15907
15922
|
/* @__PURE__ */ l(b, { gap: 4, children: [
|
|
15908
15923
|
/* @__PURE__ */ t(mt, { children: n.mobile_devices_title }),
|
|
15909
|
-
/* @__PURE__ */ t(
|
|
15924
|
+
/* @__PURE__ */ t(xe, { variant: "Body", children: n.mobile_devices_info })
|
|
15910
15925
|
] }),
|
|
15911
15926
|
e ? /* @__PURE__ */ t(
|
|
15912
15927
|
A1,
|
|
@@ -15925,8 +15940,8 @@ const T1 = ({
|
|
|
15925
15940
|
),
|
|
15926
15941
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
15927
15942
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.mobile_devices_access_title }),
|
|
15928
|
-
/* @__PURE__ */ t(
|
|
15929
|
-
/* @__PURE__ */ t(
|
|
15943
|
+
/* @__PURE__ */ t(xe, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
|
|
15944
|
+
/* @__PURE__ */ t(te, { onClick: f, variant: "text", children: n.mobile_devices_access_cta })
|
|
15930
15945
|
] }),
|
|
15931
15946
|
/* @__PURE__ */ t(
|
|
15932
15947
|
x1,
|
|
@@ -15944,7 +15959,7 @@ const T1 = ({
|
|
|
15944
15959
|
}), wo = I(
|
|
15945
15960
|
({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
|
|
15946
15961
|
const o = pe();
|
|
15947
|
-
return /* @__PURE__ */ t(z, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(
|
|
15962
|
+
return /* @__PURE__ */ t(z, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(ue, { alignItems: "flex-start", onClick: e, sx: a, children: [
|
|
15948
15963
|
/* @__PURE__ */ t(ae, { primary: n, secondary: i }),
|
|
15949
15964
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t(nl, {}) })
|
|
15950
15965
|
] }) });
|
|
@@ -16045,7 +16060,7 @@ const T1 = ({
|
|
|
16045
16060
|
({ isOpen: e, onClose: n, onDelete: i }) => {
|
|
16046
16061
|
const { common: a, settings: o } = x(), r = pe(), [s, c] = g.useState(!1);
|
|
16047
16062
|
return /* @__PURE__ */ l(
|
|
16048
|
-
|
|
16063
|
+
le,
|
|
16049
16064
|
{
|
|
16050
16065
|
hasSecondaryAction: !1,
|
|
16051
16066
|
isOpen: e,
|
|
@@ -16105,7 +16120,7 @@ const T1 = ({
|
|
|
16105
16120
|
}, []), /* @__PURE__ */ l(b, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
|
16106
16121
|
/* @__PURE__ */ l(b, { sx: { px: o || a ? 0 : 24 }, children: [
|
|
16107
16122
|
/* @__PURE__ */ t(mt, { children: e.transaction_rules_label }),
|
|
16108
|
-
/* @__PURE__ */ t(
|
|
16123
|
+
/* @__PURE__ */ t(xe, { variant: "Body", children: e.transaction_rules_description })
|
|
16109
16124
|
] }),
|
|
16110
16125
|
/* @__PURE__ */ t(ie, { children: i.map((r, s) => /* @__PURE__ */ t(O1, { rule: r }, s)) })
|
|
16111
16126
|
] });
|
|
@@ -16282,7 +16297,7 @@ const T1 = ({
|
|
|
16282
16297
|
c.guid
|
|
16283
16298
|
)),
|
|
16284
16299
|
/* @__PURE__ */ t(
|
|
16285
|
-
|
|
16300
|
+
le,
|
|
16286
16301
|
{
|
|
16287
16302
|
isOpen: !!o,
|
|
16288
16303
|
onClose: () => a(""),
|
|
@@ -16451,13 +16466,13 @@ const T1 = ({
|
|
|
16451
16466
|
return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(wc, { profile: n }, n.guid)) });
|
|
16452
16467
|
}), No = I(
|
|
16453
16468
|
({ notificationTypes: e = [xt.Accounts, xt.Budgets] }) => {
|
|
16454
|
-
const { settings: n } = x(), { isInitialized: i } =
|
|
16469
|
+
const { settings: n } = x(), { isInitialized: i } = de(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = pt(), { isMobile: r } = Ce(), [s, c] = g.useState(
|
|
16455
16470
|
void 0
|
|
16456
16471
|
);
|
|
16457
16472
|
if (g.useEffect(() => {
|
|
16458
16473
|
i && o().finally();
|
|
16459
16474
|
}, [i]), !i)
|
|
16460
|
-
return /* @__PURE__ */ t(
|
|
16475
|
+
return /* @__PURE__ */ t(_e, {});
|
|
16461
16476
|
let d = n.manage_account_notifications;
|
|
16462
16477
|
s === xt.Budgets ? d = n.manage_budget_notifications : s === xt.Insights && (d = n.manage_insights_notifications);
|
|
16463
16478
|
const {
|
|
@@ -16474,21 +16489,21 @@ const T1 = ({
|
|
|
16474
16489
|
/* @__PURE__ */ t(mt, { sx: { mb: 4 }, children: "Notification Types" })
|
|
16475
16490
|
] }),
|
|
16476
16491
|
/* @__PURE__ */ l(ie, { children: [
|
|
16477
|
-
e.includes(xt.Accounts) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
16492
|
+
e.includes(xt.Accounts) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => c(xt.Accounts), children: [
|
|
16478
16493
|
/* @__PURE__ */ t(ae, { primary: n.accounts_title, secondary: n.accounts_subtitle }),
|
|
16479
16494
|
/* @__PURE__ */ t(it, {})
|
|
16480
16495
|
] }) }),
|
|
16481
|
-
e.includes(xt.Budgets) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
16496
|
+
e.includes(xt.Budgets) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => c(xt.Budgets), children: [
|
|
16482
16497
|
/* @__PURE__ */ t(ae, { primary: n.budgets_title, secondary: n.budgets_subtitle }),
|
|
16483
16498
|
/* @__PURE__ */ t(it, {})
|
|
16484
16499
|
] }) }),
|
|
16485
|
-
e.includes(xt.Insights) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
16500
|
+
e.includes(xt.Insights) && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => c(xt.Insights), children: [
|
|
16486
16501
|
/* @__PURE__ */ t(ae, { primary: n.insights_title, secondary: n.insights_subtitle }),
|
|
16487
16502
|
/* @__PURE__ */ t(it, {})
|
|
16488
16503
|
] }) })
|
|
16489
16504
|
] }),
|
|
16490
16505
|
/* @__PURE__ */ t(
|
|
16491
|
-
|
|
16506
|
+
le,
|
|
16492
16507
|
{
|
|
16493
16508
|
isOpen: !!s,
|
|
16494
16509
|
onClose: () => c(void 0),
|
|
@@ -16530,7 +16545,7 @@ const T1 = ({
|
|
|
16530
16545
|
mt: { xs: 12, sm: 12, md: 0 }
|
|
16531
16546
|
},
|
|
16532
16547
|
xs: 12,
|
|
16533
|
-
children: /* @__PURE__ */ t(
|
|
16548
|
+
children: /* @__PURE__ */ t(te, { "aria-label": e, onClick: r, variant: "contained", children: e })
|
|
16534
16549
|
}
|
|
16535
16550
|
)
|
|
16536
16551
|
] }),
|
|
@@ -16577,7 +16592,7 @@ const T1 = ({
|
|
|
16577
16592
|
p: 0
|
|
16578
16593
|
},
|
|
16579
16594
|
children: /* @__PURE__ */ t(ie, { disablePadding: !0, children: y.map(({ label: v, topicKey: R }) => /* @__PURE__ */ t(
|
|
16580
|
-
|
|
16595
|
+
ue,
|
|
16581
16596
|
{
|
|
16582
16597
|
"aria-label": v,
|
|
16583
16598
|
divider: !0,
|
|
@@ -16688,7 +16703,7 @@ const T1 = ({
|
|
|
16688
16703
|
mt: { xs: 24, sm: 0 }
|
|
16689
16704
|
},
|
|
16690
16705
|
xs: 12,
|
|
16691
|
-
children: /* @__PURE__ */ t(
|
|
16706
|
+
children: /* @__PURE__ */ t(te, { "aria-label": e, onClick: a, variant: "contained", children: e })
|
|
16692
16707
|
}
|
|
16693
16708
|
)
|
|
16694
16709
|
] }),
|
|
@@ -16819,7 +16834,7 @@ const T1 = ({
|
|
|
16819
16834
|
] }) }),
|
|
16820
16835
|
i && /* @__PURE__ */ t(H, {})
|
|
16821
16836
|
] });
|
|
16822
|
-
}, F = ({ content: e, sx: n }) => /* @__PURE__ */ t(
|
|
16837
|
+
}, F = ({ content: e, sx: n }) => /* @__PURE__ */ t(xe, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), fe = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), X = ({
|
|
16823
16838
|
items: e,
|
|
16824
16839
|
listType: n = "ul",
|
|
16825
16840
|
subItemPlacement: i,
|
|
@@ -16831,7 +16846,7 @@ const T1 = ({
|
|
|
16831
16846
|
/* @__PURE__ */ t(F, { content: c, sx: { py: 1 } }),
|
|
16832
16847
|
i === d ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((u, _) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(F, { content: u, sx: { py: 1 } }) }, _)) }) : null
|
|
16833
16848
|
] }, d)) }) });
|
|
16834
|
-
}, be = "https://content.moneydesktop.com/storage/MD_Assets/md/help",
|
|
16849
|
+
}, be = "https://content.moneydesktop.com/storage/MD_Assets/md/help", ve = {
|
|
16835
16850
|
ACCOUNT_DETAILS: `${be}/account/AccountDetails.png`,
|
|
16836
16851
|
ACCOUNT_OVERVIEW: `${be}/account/AccountsOverview.png`,
|
|
16837
16852
|
ACCOUNT_ADD: `${be}/account/AddAccount.png`,
|
|
@@ -16893,7 +16908,7 @@ const T1 = ({
|
|
|
16893
16908
|
),
|
|
16894
16909
|
/* @__PURE__ */ t(F, { content: e.accounts_overview.account_view_text, sx: { mt: 12 } })
|
|
16895
16910
|
] }),
|
|
16896
|
-
image:
|
|
16911
|
+
image: ve.ACCOUNT_OVERVIEW,
|
|
16897
16912
|
imageLargeBreakPoint: 5
|
|
16898
16913
|
}
|
|
16899
16914
|
),
|
|
@@ -16928,7 +16943,7 @@ const T1 = ({
|
|
|
16928
16943
|
]
|
|
16929
16944
|
}
|
|
16930
16945
|
) }),
|
|
16931
|
-
image:
|
|
16946
|
+
image: ve.ACCOUNT_DETAILS,
|
|
16932
16947
|
imageLargeBreakPoint: 3
|
|
16933
16948
|
}
|
|
16934
16949
|
),
|
|
@@ -17008,7 +17023,7 @@ const T1 = ({
|
|
|
17008
17023
|
)
|
|
17009
17024
|
] }),
|
|
17010
17025
|
hasDivider: !1,
|
|
17011
|
-
image:
|
|
17026
|
+
image: ve.ACCOUNT_MANAGE_CONNECTIONS,
|
|
17012
17027
|
imageLargeBreakPoint: 10
|
|
17013
17028
|
}
|
|
17014
17029
|
)
|
|
@@ -17068,7 +17083,7 @@ const T1 = ({
|
|
|
17068
17083
|
)
|
|
17069
17084
|
] }),
|
|
17070
17085
|
hasDivider: !1,
|
|
17071
|
-
image:
|
|
17086
|
+
image: ve.ACCOUNT_BROKEN_CONNECTION,
|
|
17072
17087
|
imageLargeBreakPoint: 3,
|
|
17073
17088
|
sx: { pt: 24 }
|
|
17074
17089
|
}
|
|
@@ -17137,7 +17152,7 @@ const T1 = ({
|
|
|
17137
17152
|
}
|
|
17138
17153
|
)
|
|
17139
17154
|
] }),
|
|
17140
|
-
image:
|
|
17155
|
+
image: ve.BUDGETS_WIDGET
|
|
17141
17156
|
}
|
|
17142
17157
|
),
|
|
17143
17158
|
/* @__PURE__ */ t(fe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
|
@@ -17164,7 +17179,7 @@ const T1 = ({
|
|
|
17164
17179
|
}
|
|
17165
17180
|
)
|
|
17166
17181
|
] }),
|
|
17167
|
-
image:
|
|
17182
|
+
image: ve.BUDGETS_EDIT_INCOME
|
|
17168
17183
|
}
|
|
17169
17184
|
),
|
|
17170
17185
|
/* @__PURE__ */ t(fe, { content: i.create_budget_title, sx: { pt: 48 } }),
|
|
@@ -17188,7 +17203,7 @@ const T1 = ({
|
|
|
17188
17203
|
}
|
|
17189
17204
|
) }),
|
|
17190
17205
|
hasDivider: !1,
|
|
17191
|
-
image:
|
|
17206
|
+
image: ve.BUDGETS_ADD_SUB_BUDGET
|
|
17192
17207
|
}
|
|
17193
17208
|
),
|
|
17194
17209
|
/* @__PURE__ */ t(
|
|
@@ -17222,7 +17237,7 @@ const T1 = ({
|
|
|
17222
17237
|
}
|
|
17223
17238
|
)
|
|
17224
17239
|
] }),
|
|
17225
|
-
image:
|
|
17240
|
+
image: ve.CASHFLOW_WIDGET,
|
|
17226
17241
|
sx: { pt: 8 }
|
|
17227
17242
|
}
|
|
17228
17243
|
),
|
|
@@ -17240,7 +17255,7 @@ const T1 = ({
|
|
|
17240
17255
|
sx: { mt: 24 }
|
|
17241
17256
|
}
|
|
17242
17257
|
),
|
|
17243
|
-
image:
|
|
17258
|
+
image: ve.CASHFLOW_MANAGE_EXPENSES,
|
|
17244
17259
|
sx: { pt: 48 }
|
|
17245
17260
|
}
|
|
17246
17261
|
),
|
|
@@ -17257,7 +17272,7 @@ const T1 = ({
|
|
|
17257
17272
|
altImage: e.cashflow_overview.alt_image_manage_expenses,
|
|
17258
17273
|
content: /* @__PURE__ */ t(F, { content: e.cashflow_overview.manage_expenses_instruction, sx: { mt: 24 } }),
|
|
17259
17274
|
hasDivider: !1,
|
|
17260
|
-
image:
|
|
17275
|
+
image: ve.CASHFLOW_EXPENSE_DETAILS
|
|
17261
17276
|
}
|
|
17262
17277
|
)
|
|
17263
17278
|
] })
|
|
@@ -17276,7 +17291,7 @@ const T1 = ({
|
|
|
17276
17291
|
)
|
|
17277
17292
|
}
|
|
17278
17293
|
),
|
|
17279
|
-
image:
|
|
17294
|
+
image: ve.DEBTS_OVERVIEW,
|
|
17280
17295
|
imageLargeBreakPoint: 7,
|
|
17281
17296
|
sx: { pt: 24 }
|
|
17282
17297
|
}
|
|
@@ -17286,7 +17301,7 @@ const T1 = ({
|
|
|
17286
17301
|
{
|
|
17287
17302
|
altImage: n.snowball_method,
|
|
17288
17303
|
content: /* @__PURE__ */ t(F, { content: n.snowball_method_desc, sx: { mt: 24 } }),
|
|
17289
|
-
image:
|
|
17304
|
+
image: ve.DEBTS_SNOWBALL_METHOD,
|
|
17290
17305
|
imageLargeBreakPoint: 2
|
|
17291
17306
|
}
|
|
17292
17307
|
),
|
|
@@ -17331,7 +17346,7 @@ const T1 = ({
|
|
|
17331
17346
|
}
|
|
17332
17347
|
)
|
|
17333
17348
|
] }),
|
|
17334
|
-
image:
|
|
17349
|
+
image: ve.DEBTS_PRIORITIZATION,
|
|
17335
17350
|
imageLargeBreakPoint: 4
|
|
17336
17351
|
}
|
|
17337
17352
|
),
|
|
@@ -17417,7 +17432,7 @@ const T1 = ({
|
|
|
17417
17432
|
}
|
|
17418
17433
|
)
|
|
17419
17434
|
] }),
|
|
17420
|
-
image:
|
|
17435
|
+
image: ve.DEBTS_DETAILS
|
|
17421
17436
|
}
|
|
17422
17437
|
),
|
|
17423
17438
|
hidingAccounts: /* @__PURE__ */ t(
|
|
@@ -17598,7 +17613,7 @@ const T1 = ({
|
|
|
17598
17613
|
)
|
|
17599
17614
|
] }),
|
|
17600
17615
|
hasDivider: !1,
|
|
17601
|
-
image:
|
|
17616
|
+
image: ve.GENERAL_CATEGORIZE_TRANSACTIONS,
|
|
17602
17617
|
imageLargeBreakPoint: 10
|
|
17603
17618
|
}
|
|
17604
17619
|
),
|
|
@@ -17715,7 +17730,7 @@ const T1 = ({
|
|
|
17715
17730
|
}
|
|
17716
17731
|
),
|
|
17717
17732
|
hasDivider: !0,
|
|
17718
|
-
image:
|
|
17733
|
+
image: ve.GOALS_CREATE_GOAL,
|
|
17719
17734
|
imageLargeBreakPoint: 10
|
|
17720
17735
|
}
|
|
17721
17736
|
),
|
|
@@ -17739,7 +17754,7 @@ const T1 = ({
|
|
|
17739
17754
|
}
|
|
17740
17755
|
),
|
|
17741
17756
|
hasDivider: !0,
|
|
17742
|
-
image:
|
|
17757
|
+
image: ve.GOALS_SAVINGS_GOALS,
|
|
17743
17758
|
imageLargeBreakPoint: 3
|
|
17744
17759
|
}
|
|
17745
17760
|
),
|
|
@@ -17765,7 +17780,7 @@ const T1 = ({
|
|
|
17765
17780
|
}
|
|
17766
17781
|
) }),
|
|
17767
17782
|
hasDivider: !0,
|
|
17768
|
-
image:
|
|
17783
|
+
image: ve.GOALS_DEBT_GOALS,
|
|
17769
17784
|
imageLargeBreakPoint: 3
|
|
17770
17785
|
}
|
|
17771
17786
|
),
|
|
@@ -17792,7 +17807,7 @@ const T1 = ({
|
|
|
17792
17807
|
}
|
|
17793
17808
|
),
|
|
17794
17809
|
hasDivider: !0,
|
|
17795
|
-
image:
|
|
17810
|
+
image: ve.GOALS_RETIREMENT_GOALS,
|
|
17796
17811
|
imageLargeBreakPoint: 3
|
|
17797
17812
|
}
|
|
17798
17813
|
),
|
|
@@ -17830,7 +17845,7 @@ const T1 = ({
|
|
|
17830
17845
|
}
|
|
17831
17846
|
),
|
|
17832
17847
|
hasDivider: !1,
|
|
17833
|
-
image:
|
|
17848
|
+
image: ve.GOALS_MANAGE_GOALS,
|
|
17834
17849
|
imageLargeBreakPoint: 3
|
|
17835
17850
|
}
|
|
17836
17851
|
)
|
|
@@ -17890,7 +17905,7 @@ const T1 = ({
|
|
|
17890
17905
|
/* @__PURE__ */ t(X, { items: [n.list_2_item_1, n.list_2_item_2] })
|
|
17891
17906
|
] }),
|
|
17892
17907
|
hasDivider: !1,
|
|
17893
|
-
image:
|
|
17908
|
+
image: ve.INVESTMENTS_WIDGET_DETAILS,
|
|
17894
17909
|
imageLargeBreakPoint: 10,
|
|
17895
17910
|
sx: { pt: 12 }
|
|
17896
17911
|
}
|
|
@@ -17933,7 +17948,7 @@ const T1 = ({
|
|
|
17933
17948
|
),
|
|
17934
17949
|
/* @__PURE__ */ t(F, { content: n.mobile_devices_overview_success })
|
|
17935
17950
|
] }),
|
|
17936
|
-
image:
|
|
17951
|
+
image: ve.MOBILE_ADD_MOBILE_DEVICE,
|
|
17937
17952
|
imageLargeBreakPoint: 10,
|
|
17938
17953
|
sx: { mt: 20 }
|
|
17939
17954
|
}
|
|
@@ -17988,7 +18003,7 @@ const T1 = ({
|
|
|
17988
18003
|
)
|
|
17989
18004
|
}
|
|
17990
18005
|
),
|
|
17991
|
-
image:
|
|
18006
|
+
image: ve.NETWORTH_WIDGET,
|
|
17992
18007
|
imageLargeBreakPoint: 8,
|
|
17993
18008
|
sx: { mt: 24 }
|
|
17994
18009
|
}
|
|
@@ -18048,7 +18063,7 @@ const T1 = ({
|
|
|
18048
18063
|
}
|
|
18049
18064
|
)
|
|
18050
18065
|
] }),
|
|
18051
|
-
image:
|
|
18066
|
+
image: ve.NETWORTH_GAINS_LOSSES,
|
|
18052
18067
|
imageLargeBreakPoint: 3
|
|
18053
18068
|
}
|
|
18054
18069
|
),
|
|
@@ -18095,7 +18110,7 @@ const T1 = ({
|
|
|
18095
18110
|
)
|
|
18096
18111
|
] }),
|
|
18097
18112
|
hasDivider: !1,
|
|
18098
|
-
image:
|
|
18113
|
+
image: ve.NETWORTH_ASSETS_LIABILITIES,
|
|
18099
18114
|
imageLargeBreakPoint: 3
|
|
18100
18115
|
}
|
|
18101
18116
|
)
|
|
@@ -18117,7 +18132,7 @@ const T1 = ({
|
|
|
18117
18132
|
)
|
|
18118
18133
|
}
|
|
18119
18134
|
),
|
|
18120
|
-
image:
|
|
18135
|
+
image: ve.NOTIFICATIONS_OVERVIEW,
|
|
18121
18136
|
sx: { pt: 8 }
|
|
18122
18137
|
}
|
|
18123
18138
|
),
|
|
@@ -18152,7 +18167,7 @@ const T1 = ({
|
|
|
18152
18167
|
subListType: "ul"
|
|
18153
18168
|
}
|
|
18154
18169
|
) }),
|
|
18155
|
-
image:
|
|
18170
|
+
image: ve.NOTIFICATIONS_MANAGING
|
|
18156
18171
|
}
|
|
18157
18172
|
),
|
|
18158
18173
|
/* @__PURE__ */ t(
|
|
@@ -18225,7 +18240,7 @@ const T1 = ({
|
|
|
18225
18240
|
)
|
|
18226
18241
|
}
|
|
18227
18242
|
),
|
|
18228
|
-
image:
|
|
18243
|
+
image: ve.RECURRING_TRANSACTIONS_OVERVIEW,
|
|
18229
18244
|
imageLargeBreakPoint: 7,
|
|
18230
18245
|
sx: { pt: 24 }
|
|
18231
18246
|
}
|
|
@@ -18262,7 +18277,7 @@ const T1 = ({
|
|
|
18262
18277
|
),
|
|
18263
18278
|
/* @__PURE__ */ t(F, { content: n.edit_recurring_transaction_dec_2 })
|
|
18264
18279
|
] }),
|
|
18265
|
-
image:
|
|
18280
|
+
image: ve.RECURRING_TRANSACTIONS_MANAGE_EXPENSES
|
|
18266
18281
|
}
|
|
18267
18282
|
),
|
|
18268
18283
|
paymentFrequencySection: /* @__PURE__ */ t(
|
|
@@ -18289,7 +18304,7 @@ const T1 = ({
|
|
|
18289
18304
|
/* @__PURE__ */ t(F, { content: n.payment_frequency_dec_2, sx: { pt: 24 } })
|
|
18290
18305
|
] }),
|
|
18291
18306
|
hasDivider: !1,
|
|
18292
|
-
image:
|
|
18307
|
+
image: ve.RECURRING_TRANSACTIONS_EXPENSE_DETAILS
|
|
18293
18308
|
}
|
|
18294
18309
|
)
|
|
18295
18310
|
};
|
|
@@ -18327,7 +18342,7 @@ const T1 = ({
|
|
|
18327
18342
|
}
|
|
18328
18343
|
)
|
|
18329
18344
|
] }),
|
|
18330
|
-
image:
|
|
18345
|
+
image: ve.SPENDING_WIDGET,
|
|
18331
18346
|
imageLargeBreakPoint: 8,
|
|
18332
18347
|
sx: { pt: 48 }
|
|
18333
18348
|
}
|
|
@@ -18432,7 +18447,7 @@ const T1 = ({
|
|
|
18432
18447
|
}
|
|
18433
18448
|
)
|
|
18434
18449
|
] }),
|
|
18435
|
-
image:
|
|
18450
|
+
image: ve.TRANSACTIONS_OVERVIEW,
|
|
18436
18451
|
imageLargeBreakPoint: 8,
|
|
18437
18452
|
sx: { pt: 24 }
|
|
18438
18453
|
}
|
|
@@ -18486,7 +18501,7 @@ const T1 = ({
|
|
|
18486
18501
|
}
|
|
18487
18502
|
)
|
|
18488
18503
|
] }),
|
|
18489
|
-
image:
|
|
18504
|
+
image: ve.TRANSACTIONS_EDIT
|
|
18490
18505
|
}
|
|
18491
18506
|
),
|
|
18492
18507
|
/* @__PURE__ */ t(
|
|
@@ -18528,7 +18543,7 @@ const T1 = ({
|
|
|
18528
18543
|
}
|
|
18529
18544
|
)
|
|
18530
18545
|
] }),
|
|
18531
|
-
image:
|
|
18546
|
+
image: ve.TRANSACTIONS_CATEGORIZE,
|
|
18532
18547
|
imageLargeBreakPoint: 10
|
|
18533
18548
|
}
|
|
18534
18549
|
),
|
|
@@ -18614,7 +18629,7 @@ const T1 = ({
|
|
|
18614
18629
|
}
|
|
18615
18630
|
)
|
|
18616
18631
|
] }),
|
|
18617
|
-
image:
|
|
18632
|
+
image: ve.TRANSACTIONS_RULES,
|
|
18618
18633
|
imageLargeBreakPoint: 10
|
|
18619
18634
|
}
|
|
18620
18635
|
),
|
|
@@ -18774,7 +18789,7 @@ const T1 = ({
|
|
|
18774
18789
|
)
|
|
18775
18790
|
] }),
|
|
18776
18791
|
hasDivider: !1,
|
|
18777
|
-
image:
|
|
18792
|
+
image: ve.TRANSACTIONS_EXPORT,
|
|
18778
18793
|
imageLargeBreakPoint: 10,
|
|
18779
18794
|
sx: { pt: 24 }
|
|
18780
18795
|
}
|
|
@@ -18806,7 +18821,7 @@ const T1 = ({
|
|
|
18806
18821
|
}
|
|
18807
18822
|
)
|
|
18808
18823
|
] }),
|
|
18809
|
-
image:
|
|
18824
|
+
image: ve.TRENDS_WIDGET,
|
|
18810
18825
|
imageLargeBreakPoint: 10,
|
|
18811
18826
|
sx: { pt: 24 }
|
|
18812
18827
|
}
|
|
@@ -18910,7 +18925,7 @@ const T1 = ({
|
|
|
18910
18925
|
),
|
|
18911
18926
|
/* @__PURE__ */ t(F, { content: i.dashboard_insights_content_2, sx: { pt: 12 } })
|
|
18912
18927
|
] }),
|
|
18913
|
-
image:
|
|
18928
|
+
image: ve.INSIGHTS_CAROUSEL
|
|
18914
18929
|
}
|
|
18915
18930
|
),
|
|
18916
18931
|
/* @__PURE__ */ t(fe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
|
@@ -18950,7 +18965,7 @@ const T1 = ({
|
|
|
18950
18965
|
}
|
|
18951
18966
|
)
|
|
18952
18967
|
] }),
|
|
18953
|
-
image:
|
|
18968
|
+
image: ve.INSIGHTS_FEED,
|
|
18954
18969
|
imageLargeBreakPoint: 3
|
|
18955
18970
|
}
|
|
18956
18971
|
),
|
|
@@ -19042,7 +19057,7 @@ const T1 = ({
|
|
|
19042
19057
|
]
|
|
19043
19058
|
}
|
|
19044
19059
|
),
|
|
19045
|
-
e && /* @__PURE__ */ t(
|
|
19060
|
+
e && /* @__PURE__ */ t(xe, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
|
|
19046
19061
|
] }), aC = ({
|
|
19047
19062
|
alert: e,
|
|
19048
19063
|
copy: n,
|
|
@@ -19059,7 +19074,7 @@ const T1 = ({
|
|
|
19059
19074
|
h(""), c(_);
|
|
19060
19075
|
}, f = a ? n.request_support_institution_short_content : n.request_support_contact_short_content;
|
|
19061
19076
|
return /* @__PURE__ */ l(
|
|
19062
|
-
|
|
19077
|
+
le,
|
|
19063
19078
|
{
|
|
19064
19079
|
isOpen: r,
|
|
19065
19080
|
isPrimaryDisabled: !_ || !i,
|
|
@@ -19069,7 +19084,7 @@ const T1 = ({
|
|
|
19069
19084
|
secondaryColor: "primary",
|
|
19070
19085
|
title: n.request_support,
|
|
19071
19086
|
children: [
|
|
19072
|
-
o ? /* @__PURE__ */ t(
|
|
19087
|
+
o ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19073
19088
|
/* @__PURE__ */ t(
|
|
19074
19089
|
Ni,
|
|
19075
19090
|
{
|
|
@@ -19163,7 +19178,7 @@ const T1 = ({
|
|
|
19163
19178
|
p: 0
|
|
19164
19179
|
},
|
|
19165
19180
|
children: /* @__PURE__ */ t(ie, { sx: { "& .MuiListItemButton-root": { pl: 6 } }, children: r.map(({ label: d, type: u }, _) => /* @__PURE__ */ t(
|
|
19166
|
-
|
|
19181
|
+
ue,
|
|
19167
19182
|
{
|
|
19168
19183
|
divider: !0,
|
|
19169
19184
|
onClick: () => n(d, u),
|
|
@@ -19223,7 +19238,7 @@ const T1 = ({
|
|
|
19223
19238
|
}));
|
|
19224
19239
|
};
|
|
19225
19240
|
return /* @__PURE__ */ l(
|
|
19226
|
-
|
|
19241
|
+
le,
|
|
19227
19242
|
{
|
|
19228
19243
|
isOpen: n,
|
|
19229
19244
|
onClose: m,
|
|
@@ -19282,7 +19297,7 @@ const T1 = ({
|
|
|
19282
19297
|
subtitle: i,
|
|
19283
19298
|
guid: a,
|
|
19284
19299
|
sx: o
|
|
19285
|
-
}) => /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
19300
|
+
}) => /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { "aria-label": e, onClick: n, children: [
|
|
19286
19301
|
a && /* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(ut, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
|
19287
19302
|
/* @__PURE__ */ t(
|
|
19288
19303
|
ae,
|
|
@@ -19320,7 +19335,7 @@ const T1 = ({
|
|
|
19320
19335
|
}),
|
|
19321
19336
|
[r, s]
|
|
19322
19337
|
);
|
|
19323
|
-
return /* @__PURE__ */ t(
|
|
19338
|
+
return /* @__PURE__ */ t(le, { isOpen: n, onClose: a, title: e.request_support, children: /* @__PURE__ */ l(b, { children: [
|
|
19324
19339
|
/* @__PURE__ */ t(
|
|
19325
19340
|
Ni,
|
|
19326
19341
|
{
|
|
@@ -19346,7 +19361,7 @@ const T1 = ({
|
|
|
19346
19361
|
}, dC = ({ copy: e, onButtonClick: n }) => {
|
|
19347
19362
|
const i = _C();
|
|
19348
19363
|
return /* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 5 }, children: [
|
|
19349
|
-
/* @__PURE__ */ t(
|
|
19364
|
+
/* @__PURE__ */ t(xe, { color: "text.secondary", sx: i, children: e.contact_support }),
|
|
19350
19365
|
/* @__PURE__ */ t(
|
|
19351
19366
|
p,
|
|
19352
19367
|
{
|
|
@@ -19356,7 +19371,7 @@ const T1 = ({
|
|
|
19356
19371
|
children: e.request_support_footer_short_content
|
|
19357
19372
|
}
|
|
19358
19373
|
),
|
|
19359
|
-
/* @__PURE__ */ t(
|
|
19374
|
+
/* @__PURE__ */ t(te, { onClick: n, sx: { ...i, mt: 24 }, children: e.request_support_footer_button })
|
|
19360
19375
|
] });
|
|
19361
19376
|
}, _C = () => ({
|
|
19362
19377
|
fontWeight: 600,
|
|
@@ -19370,7 +19385,7 @@ const T1 = ({
|
|
|
19370
19385
|
title: r
|
|
19371
19386
|
}) => {
|
|
19372
19387
|
const { common: s } = x();
|
|
19373
|
-
return /* @__PURE__ */ l(
|
|
19388
|
+
return /* @__PURE__ */ l(le, { isOpen: i, onClose: a, title: e.request_support, children: [
|
|
19374
19389
|
/* @__PURE__ */ t(
|
|
19375
19390
|
Ni,
|
|
19376
19391
|
{
|
|
@@ -19404,7 +19419,7 @@ const T1 = ({
|
|
|
19404
19419
|
}
|
|
19405
19420
|
),
|
|
19406
19421
|
/* @__PURE__ */ t(
|
|
19407
|
-
|
|
19422
|
+
xe,
|
|
19408
19423
|
{
|
|
19409
19424
|
color: "secondary",
|
|
19410
19425
|
sx: {
|
|
@@ -19419,8 +19434,8 @@ const T1 = ({
|
|
|
19419
19434
|
}
|
|
19420
19435
|
),
|
|
19421
19436
|
/* @__PURE__ */ l(b, { direction: "column", spacing: 8, sx: { mx: 24 }, children: [
|
|
19422
|
-
/* @__PURE__ */ t(
|
|
19423
|
-
/* @__PURE__ */ t(
|
|
19437
|
+
/* @__PURE__ */ t(te, { onClick: o, variant: "contained", children: s.done_button }),
|
|
19438
|
+
/* @__PURE__ */ t(te, { onClick: a, variant: "text", children: e.request_support_institution_back })
|
|
19424
19439
|
] })
|
|
19425
19440
|
] });
|
|
19426
19441
|
}, hC = ({
|
|
@@ -19431,19 +19446,19 @@ const T1 = ({
|
|
|
19431
19446
|
onClose: o
|
|
19432
19447
|
}) => {
|
|
19433
19448
|
const { common: r } = x();
|
|
19434
|
-
return /* @__PURE__ */ t(
|
|
19449
|
+
return /* @__PURE__ */ t(le, { isOpen: i, onClose: o, title: e.request_support, children: /* @__PURE__ */ l(L, { sx: { px: 24 }, children: [
|
|
19435
19450
|
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
|
19436
19451
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
|
19437
19452
|
/* @__PURE__ */ t(cn, { children: e.request_support_success }),
|
|
19438
|
-
/* @__PURE__ */ t(
|
|
19453
|
+
/* @__PURE__ */ t(xe, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
|
19439
19454
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
|
|
19440
19455
|
] }),
|
|
19441
|
-
/* @__PURE__ */ t(
|
|
19442
|
-
/* @__PURE__ */ t(
|
|
19456
|
+
/* @__PURE__ */ t(te, { fullWidth: !0, onClick: o, variant: "contained", children: r.done_button }),
|
|
19457
|
+
/* @__PURE__ */ t(te, { fullWidth: !0, onClick: a, sx: { mt: 8 }, children: e.request_support_institution_back })
|
|
19443
19458
|
] }) });
|
|
19444
19459
|
}, gC = I(
|
|
19445
19460
|
({ copy: e, isOpen: n, onClose: i }) => {
|
|
19446
|
-
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = ao(), { user: c } = Bt(), { isInitialized: d } =
|
|
19461
|
+
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = ao(), { user: c } = Bt(), { isInitialized: d } = de(), [u, _] = g.useState(""), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState({
|
|
19447
19462
|
isOpen: !1,
|
|
19448
19463
|
topic: "",
|
|
19449
19464
|
type: void 0
|
|
@@ -19480,7 +19495,7 @@ const T1 = ({
|
|
|
19480
19495
|
title: `Institution Request: ${D.institutionName}`
|
|
19481
19496
|
});
|
|
19482
19497
|
};
|
|
19483
|
-
return /* @__PURE__ */ t(
|
|
19498
|
+
return /* @__PURE__ */ t(le, { isOpen: n, onClose: i, title: e.request_support, children: !d || r ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
|
19484
19499
|
/* @__PURE__ */ l(b, { children: [
|
|
19485
19500
|
/* @__PURE__ */ t(
|
|
19486
19501
|
Ni,
|
|
@@ -19631,8 +19646,8 @@ const T1 = ({
|
|
|
19631
19646
|
)
|
|
19632
19647
|
] });
|
|
19633
19648
|
}, DE = I(({ sx: e }) => {
|
|
19634
|
-
const { isCopyLoaded: n, isInitialized: i } =
|
|
19635
|
-
return !n || !i ? /* @__PURE__ */ t(
|
|
19649
|
+
const { isCopyLoaded: n, isInitialized: i } = de();
|
|
19650
|
+
return !n || !i ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(bt, { sx: { p: 16 }, children: /* @__PURE__ */ t(Dc, { sx: e }) });
|
|
19636
19651
|
}), mC = I(({ selectedTab: e }) => {
|
|
19637
19652
|
const { alert: n, setAlert: i } = pt();
|
|
19638
19653
|
return /* @__PURE__ */ l(q, { children: [
|
|
@@ -19665,7 +19680,7 @@ const T1 = ({
|
|
|
19665
19680
|
});
|
|
19666
19681
|
var Vn = /* @__PURE__ */ ((e) => (e[e.Profile = 0] = "Profile", e[e.Devices = 1] = "Devices", e[e.Notifications = 2] = "Notifications", e[e.TransactionRules = 3] = "TransactionRules", e[e.Help = 4] = "Help", e))(Vn || {});
|
|
19667
19682
|
const RE = I(({ onBackClick: e, sx: n }) => {
|
|
19668
|
-
const { settings: i } = x(), { isCopyLoaded: a, isInitialized: o } =
|
|
19683
|
+
const { settings: i } = x(), { isCopyLoaded: a, isInitialized: o } = de(), { config: r } = ei(), { isMobile: s } = Ce(), {
|
|
19669
19684
|
display_user_profile_in_settings: c,
|
|
19670
19685
|
display_mobile_devices_in_settings: d,
|
|
19671
19686
|
display_notification_settings_in_settings: u,
|
|
@@ -19678,7 +19693,7 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19678
19693
|
{ enabled: _, index: 3, label: i?.transaction_rules_label },
|
|
19679
19694
|
{ enabled: h, index: 4, label: i?.help_label }
|
|
19680
19695
|
], C = m.find((y) => y.enabled), [f, E] = g.useState(C ? C.index : -1);
|
|
19681
|
-
return !a || !o ? /* @__PURE__ */ t(
|
|
19696
|
+
return !a || !o ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(
|
|
19682
19697
|
bt,
|
|
19683
19698
|
{
|
|
19684
19699
|
onBackClick: e,
|
|
@@ -19711,9 +19726,9 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19711
19726
|
return /* @__PURE__ */ t(bt, { ...e, children: /* @__PURE__ */ t(b, { sx: { mx: n ? 0 : 48, my: 24 }, children: /* @__PURE__ */ t(vc, {}) }) });
|
|
19712
19727
|
}, ME = I(
|
|
19713
19728
|
({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
|
|
19714
|
-
const { notifications: o } = x(), { isCopyLoaded: r } =
|
|
19729
|
+
const { notifications: o } = x(), { isCopyLoaded: r } = de(), { isMobile: s } = Ce(), [c, d] = g.useState(!1);
|
|
19715
19730
|
return r ? /* @__PURE__ */ l(
|
|
19716
|
-
|
|
19731
|
+
le,
|
|
19717
19732
|
{
|
|
19718
19733
|
ariaLabelClose: c ? o.close_notification_settings : o.close_notifications,
|
|
19719
19734
|
isOpen: n,
|
|
@@ -19742,7 +19757,7 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19742
19757
|
)
|
|
19743
19758
|
]
|
|
19744
19759
|
}
|
|
19745
|
-
) : /* @__PURE__ */ t(
|
|
19760
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
19746
19761
|
}
|
|
19747
19762
|
), Fr = {
|
|
19748
19763
|
clientStyleProfile: {},
|
|
@@ -20058,7 +20073,7 @@ const Ia = ({
|
|
|
20058
20073
|
primaryText: a,
|
|
20059
20074
|
secondaryText: o
|
|
20060
20075
|
}) => /* @__PURE__ */ l(q, { children: [
|
|
20061
|
-
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
20076
|
+
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: i, children: [
|
|
20062
20077
|
/* @__PURE__ */ t(ae, { primary: a, secondary: o }),
|
|
20063
20078
|
e
|
|
20064
20079
|
] }) }),
|
|
@@ -20138,7 +20153,7 @@ const Ia = ({
|
|
|
20138
20153
|
}
|
|
20139
20154
|
),
|
|
20140
20155
|
/* @__PURE__ */ t(
|
|
20141
|
-
|
|
20156
|
+
le,
|
|
20142
20157
|
{
|
|
20143
20158
|
ariaLabelClose: h.close_drawer,
|
|
20144
20159
|
isOpen: i,
|
|
@@ -20319,11 +20334,11 @@ const Ia = ({
|
|
|
20319
20334
|
};
|
|
20320
20335
|
default: {
|
|
20321
20336
|
const a = () => {
|
|
20322
|
-
const o = e.successfully_aggregated_at ? Fe(e.successfully_aggregated_at) : void 0, r = o &&
|
|
20337
|
+
const o = e.successfully_aggregated_at ? Fe(e.successfully_aggregated_at) : void 0, r = o && ce(o, re.TIME_STAMP_HOUR_MINUTE);
|
|
20323
20338
|
if (r)
|
|
20324
20339
|
return Za(o) ? T(n.last_updated_at, n.today, r) : Ad(o) ? T(n.last_updated_at, n.yesterday, r) : T(
|
|
20325
20340
|
n.last_updated_at,
|
|
20326
|
-
|
|
20341
|
+
ce(o, re.MONTH_DAY_YEAR),
|
|
20327
20342
|
r
|
|
20328
20343
|
);
|
|
20329
20344
|
};
|
|
@@ -20360,7 +20375,7 @@ const Ia = ({
|
|
|
20360
20375
|
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
20361
20376
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20362
20377
|
/* @__PURE__ */ t(ae, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
20363
|
-
] }) : /* @__PURE__ */ l(
|
|
20378
|
+
] }) : /* @__PURE__ */ l(ue, { onClick: () => n(!0), children: [
|
|
20364
20379
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20365
20380
|
/* @__PURE__ */ t(
|
|
20366
20381
|
ae,
|
|
@@ -20377,7 +20392,7 @@ const Ia = ({
|
|
|
20377
20392
|
] }) }),
|
|
20378
20393
|
/* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
20379
20394
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(q, { children: [
|
|
20380
|
-
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(
|
|
20395
|
+
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ue, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
20381
20396
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
20382
20397
|
vn,
|
|
20383
20398
|
{
|
|
@@ -20525,7 +20540,7 @@ const Ia = ({
|
|
|
20525
20540
|
);
|
|
20526
20541
|
return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ l(q, { children: [
|
|
20527
20542
|
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
|
20528
|
-
|
|
20543
|
+
ue,
|
|
20529
20544
|
{
|
|
20530
20545
|
onClick: () => {
|
|
20531
20546
|
u(h), c(!0), h?.event && n(h.event, { account_guid: i.guid });
|
|
@@ -20627,7 +20642,7 @@ const Ia = ({
|
|
|
20627
20642
|
}, [a]), g.useEffect(() => i(W.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(q, { children: [
|
|
20628
20643
|
/* @__PURE__ */ t(Rn, { onClick: n }),
|
|
20629
20644
|
c && /* @__PURE__ */ t(
|
|
20630
|
-
|
|
20645
|
+
le,
|
|
20631
20646
|
{
|
|
20632
20647
|
ariaLabelClose: o.close_drawer,
|
|
20633
20648
|
isOpen: !!e,
|
|
@@ -20674,7 +20689,7 @@ const Ia = ({
|
|
|
20674
20689
|
/* @__PURE__ */ t(Xn, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(DC, {}) })
|
|
20675
20690
|
] });
|
|
20676
20691
|
}, Oc = I(kC), GC = () => {
|
|
20677
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } =
|
|
20692
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = de(), { setSelectedAccount: o, setSelectedMember: r } = Ht(), { members: s } = Ee(), { onEvent: c } = j(), d = [...new Set(a.map((y) => y.account_type))], u = a.find((y) => e === y.guid), _ = g.useMemo(
|
|
20678
20693
|
() => a.filter((y) => y.is_hidden),
|
|
20679
20694
|
[a]
|
|
20680
20695
|
), h = g.useMemo(
|
|
@@ -20803,7 +20818,7 @@ const Ia = ({
|
|
|
20803
20818
|
_.length > 0 && E("hidden"),
|
|
20804
20819
|
h.length > 0 && E("closed"),
|
|
20805
20820
|
/* @__PURE__ */ l(
|
|
20806
|
-
|
|
20821
|
+
le,
|
|
20807
20822
|
{
|
|
20808
20823
|
ariaLabelClose: i.close_account_details_aria,
|
|
20809
20824
|
isOpen: !!e,
|
|
@@ -20817,7 +20832,7 @@ const Ia = ({
|
|
|
20817
20832
|
)
|
|
20818
20833
|
] });
|
|
20819
20834
|
}, BC = I(GC), HC = ({ onBackClick: e, sx: n = {} }) => {
|
|
20820
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = ei(), { accounts: c } = Ee(), { accounts: d, connect: u } = x(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } =
|
|
20835
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = ei(), { accounts: c } = Ee(), { accounts: d, connect: u } = x(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = de(), { isDesktop: f } = Ce(), { onEvent: E } = j();
|
|
20821
20836
|
g.useEffect(() => {
|
|
20822
20837
|
m(c);
|
|
20823
20838
|
}, [c]);
|
|
@@ -20863,11 +20878,11 @@ const Ia = ({
|
|
|
20863
20878
|
title: d.manage_connections
|
|
20864
20879
|
}
|
|
20865
20880
|
)
|
|
20866
|
-
] }) : /* @__PURE__ */ t(
|
|
20881
|
+
] }) : /* @__PURE__ */ t(_e, {})
|
|
20867
20882
|
}
|
|
20868
|
-
) : /* @__PURE__ */ t(
|
|
20883
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
20869
20884
|
}, GE = I(HC), PC = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
20870
|
-
const { visibleAccounts: i } = Ee(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } =
|
|
20885
|
+
const { visibleAccounts: i } = Ee(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = de();
|
|
20871
20886
|
return g.useEffect(() => {
|
|
20872
20887
|
c(i);
|
|
20873
20888
|
}, [i]), o ? /* @__PURE__ */ t(
|
|
@@ -20894,9 +20909,9 @@ const Ia = ({
|
|
|
20894
20909
|
!_ && /* @__PURE__ */ t(H, { "aria-hidden": "true", variant: "inset" })
|
|
20895
20910
|
] }, `account-item${u}`);
|
|
20896
20911
|
})
|
|
20897
|
-
] }) : /* @__PURE__ */ t(
|
|
20912
|
+
] }) : /* @__PURE__ */ t(_e, {})
|
|
20898
20913
|
}
|
|
20899
|
-
) : /* @__PURE__ */ t(
|
|
20914
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
20900
20915
|
}, BE = I(PC), FC = () => /* @__PURE__ */ l(
|
|
20901
20916
|
"svg",
|
|
20902
20917
|
{
|
|
@@ -21358,7 +21373,7 @@ const Ia = ({
|
|
|
21358
21373
|
},
|
|
21359
21374
|
sx: n
|
|
21360
21375
|
}) => {
|
|
21361
|
-
const { isCopyLoaded: i } =
|
|
21376
|
+
const { isCopyLoaded: i } = de(), { connect: a } = x(), [o, r] = g.useState(!1), s = () => {
|
|
21362
21377
|
r(!0), e();
|
|
21363
21378
|
};
|
|
21364
21379
|
return i ? /* @__PURE__ */ l(
|
|
@@ -21381,7 +21396,7 @@ const Ia = ({
|
|
|
21381
21396
|
)
|
|
21382
21397
|
]
|
|
21383
21398
|
}
|
|
21384
|
-
) : /* @__PURE__ */ t(
|
|
21399
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
21385
21400
|
}, HE = I(UC);
|
|
21386
21401
|
class $r {
|
|
21387
21402
|
fetchInstance;
|
|
@@ -21424,27 +21439,27 @@ class KC {
|
|
|
21424
21439
|
};
|
|
21425
21440
|
get cashAccounts() {
|
|
21426
21441
|
return this.accounts.filter(
|
|
21427
|
-
(n) => n.account_type ===
|
|
21442
|
+
(n) => n.account_type === se.CASH || n.account_type === se.CHECKING || n.account_type === se.PREPAID || n.account_type === se.SAVINGS || n.account_type === se.CHECKING_LINE_OF_CREDIT
|
|
21428
21443
|
);
|
|
21429
21444
|
}
|
|
21430
21445
|
get cashBalance() {
|
|
21431
21446
|
return this.cashAccounts.reduce((n, i) => n + (i?.balance || 0), 0);
|
|
21432
21447
|
}
|
|
21433
21448
|
get checkingAccounts() {
|
|
21434
|
-
return this.accounts.filter((n) => n.account_type ===
|
|
21449
|
+
return this.accounts.filter((n) => n.account_type === se.CHECKING);
|
|
21435
21450
|
}
|
|
21436
21451
|
get debtAccounts() {
|
|
21437
21452
|
return this.accounts.filter(
|
|
21438
|
-
(n) => n.account_type ===
|
|
21453
|
+
(n) => n.account_type === se.CREDIT_CARD || n.account_type === se.LOAN || n.account_type === se.MORTGAGE || n.account_type === se.LINE_OF_CREDIT || n.account_type === se.CHECKING_LINE_OF_CREDIT
|
|
21439
21454
|
);
|
|
21440
21455
|
}
|
|
21441
21456
|
get investmentAccounts() {
|
|
21442
21457
|
return this.accounts.filter(
|
|
21443
|
-
(n) => n.account_type ===
|
|
21458
|
+
(n) => n.account_type === se.INVESTMENT
|
|
21444
21459
|
);
|
|
21445
21460
|
}
|
|
21446
21461
|
get savingsAccounts() {
|
|
21447
|
-
return this.accounts.filter((n) => n.account_type ===
|
|
21462
|
+
return this.accounts.filter((n) => n.account_type === se.SAVINGS);
|
|
21448
21463
|
}
|
|
21449
21464
|
get visibleAccounts() {
|
|
21450
21465
|
return this.accounts.filter((n) => !n.is_hidden);
|
|
@@ -21671,7 +21686,7 @@ const zC = () => {
|
|
|
21671
21686
|
responsePayload: u,
|
|
21672
21687
|
resetStore: _,
|
|
21673
21688
|
survey: h
|
|
21674
|
-
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } =
|
|
21689
|
+
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } = de(), [y, S] = g.useState(!1);
|
|
21675
21690
|
g.useEffect(() => {
|
|
21676
21691
|
E && s();
|
|
21677
21692
|
}, [E]), g.useEffect(() => {
|
|
@@ -21718,7 +21733,7 @@ const zC = () => {
|
|
|
21718
21733
|
a.type === Wo.Open && /* @__PURE__ */ t(XC, {})
|
|
21719
21734
|
] }),
|
|
21720
21735
|
/* @__PURE__ */ t(b, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ t(
|
|
21721
|
-
|
|
21736
|
+
te,
|
|
21722
21737
|
{
|
|
21723
21738
|
disabled: !o && !d,
|
|
21724
21739
|
onClick: o ? v : w,
|
|
@@ -21741,7 +21756,7 @@ const zC = () => {
|
|
|
21741
21756
|
] })
|
|
21742
21757
|
]
|
|
21743
21758
|
}
|
|
21744
|
-
) : /* @__PURE__ */ t(
|
|
21759
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
21745
21760
|
}, PE = I(ZC), Ur = 5, qC = 100, QC = 25, JC = (e) => {
|
|
21746
21761
|
const n = (o) => {
|
|
21747
21762
|
o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
|
|
@@ -21930,7 +21945,7 @@ const c0 = ({
|
|
|
21930
21945
|
const { data: f, isSuccess: E } = await a(m);
|
|
21931
21946
|
h(!1), E ? (f.length === 0 && c(!0), u(!1)) : u(!0);
|
|
21932
21947
|
};
|
|
21933
|
-
return _ ? /* @__PURE__ */ t(
|
|
21948
|
+
return _ ? /* @__PURE__ */ t(_e, {}) : d ? /* @__PURE__ */ t(
|
|
21934
21949
|
zn,
|
|
21935
21950
|
{
|
|
21936
21951
|
header: r.autogenerate_budgets_error_header,
|
|
@@ -22006,7 +22021,7 @@ const c0 = ({
|
|
|
22006
22021
|
shouldShowZeroState: o,
|
|
22007
22022
|
unavailableWidth: r = 24
|
|
22008
22023
|
}) => {
|
|
22009
|
-
const { onEvent: s } = j(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = $e(), { isInitialized: u } =
|
|
22024
|
+
const { onEvent: s } = j(), { setSelectedBudget: c } = lt(), { isLoadingCategoryTotals: d } = $e(), { isInitialized: u } = de(), { accounts: _ } = x(), { availableWidth: h } = Fn(), { isMobile: m } = Ce(), [C, f] = g.useState(!1), E = g.useMemo(() => h - r, [h]), y = (A) => {
|
|
22010
22025
|
c(A), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
|
22011
22026
|
budget_category: A.category.name,
|
|
22012
22027
|
click_type: "bubble"
|
|
@@ -22014,7 +22029,7 @@ const c0 = ({
|
|
|
22014
22029
|
}, S = () => {
|
|
22015
22030
|
f(!0), s(W.ACCOUNTS_CLICK_CONNECT);
|
|
22016
22031
|
};
|
|
22017
|
-
return d ? /* @__PURE__ */ t(b, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(
|
|
22032
|
+
return d ? /* @__PURE__ */ t(b, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(_e, {}) }) : /* @__PURE__ */ l(L, { ml: o || m ? 0 : 24, sx: { alignSelf: "center" }, children: [
|
|
22018
22033
|
o || !u ? /* @__PURE__ */ t(
|
|
22019
22034
|
d0,
|
|
22020
22035
|
{
|
|
@@ -22042,7 +22057,7 @@ const c0 = ({
|
|
|
22042
22057
|
] });
|
|
22043
22058
|
}
|
|
22044
22059
|
), _0 = (e) => {
|
|
22045
|
-
const n = pe(), { accounts: i } = Ee(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = lt(), { budgets: c } = x(), { isCopyLoaded: d, isInitialized: u } =
|
|
22060
|
+
const n = pe(), { accounts: i } = Ee(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = lt(), { budgets: c } = x(), { isCopyLoaded: d, isInitialized: u } = de(), { reloadCategoryTotals: _ } = $e(), h = Q_(), m = a.length === 0;
|
|
22046
22061
|
return g.useEffect(() => {
|
|
22047
22062
|
s(n);
|
|
22048
22063
|
}, [n]), g.useEffect(() => {
|
|
@@ -22068,9 +22083,9 @@ const c0 = ({
|
|
|
22068
22083
|
/* @__PURE__ */ t(p, { bold: !0, color: h < 0 ? "error.main" : "success.main", children: P(Math.abs(h), "0,0") }),
|
|
22069
22084
|
/* @__PURE__ */ t(p, { children: h < 0 ? c.overspent_in_budgets : c.left_in_budgets })
|
|
22070
22085
|
] })
|
|
22071
|
-
] }) : /* @__PURE__ */ t(
|
|
22086
|
+
] }) : /* @__PURE__ */ t(_e, {})
|
|
22072
22087
|
}
|
|
22073
|
-
) : /* @__PURE__ */ t(
|
|
22088
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
22074
22089
|
}, FE = I(_0), u0 = I(() => {
|
|
22075
22090
|
const { budgets: e } = x(), { totalBudgeted: n } = lt(), { projectedIncome: i } = ze(), a = i - n;
|
|
22076
22091
|
return /* @__PURE__ */ l(b, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
@@ -22096,7 +22111,7 @@ const c0 = ({
|
|
|
22096
22111
|
return `${r} - ${s}`;
|
|
22097
22112
|
}, [n, i]);
|
|
22098
22113
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22099
|
-
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
22114
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
22100
22115
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
22101
22116
|
/* @__PURE__ */ t(ae, { primary: e.name, secondary: a })
|
|
22102
22117
|
] }) }),
|
|
@@ -22108,10 +22123,10 @@ const c0 = ({
|
|
|
22108
22123
|
await o(d), c(!1), r(n.alert_recalculated_budgets), e?.();
|
|
22109
22124
|
};
|
|
22110
22125
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22111
|
-
/* @__PURE__ */ t(
|
|
22126
|
+
/* @__PURE__ */ t(te, { onClick: () => c(!0), sx: { mt: 24, mx: 24 }, variant: "text", children: n.recalculate_button }),
|
|
22112
22127
|
/* @__PURE__ */ t(p, { sx: { mx: 24, my: 16, textAlign: "center", whiteSpace: "wrap" }, variant: "Paragraph", children: n.recalculate_help }),
|
|
22113
22128
|
/* @__PURE__ */ t(
|
|
22114
|
-
|
|
22129
|
+
le,
|
|
22115
22130
|
{
|
|
22116
22131
|
ariaLabelClose: i.close_aria,
|
|
22117
22132
|
isOpen: s,
|
|
@@ -22159,7 +22174,7 @@ const c0 = ({
|
|
|
22159
22174
|
`${e.totalAmount === 0 ? "" : e.totalAmount}`
|
|
22160
22175
|
);
|
|
22161
22176
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22162
|
-
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
22177
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => r(!0), children: [
|
|
22163
22178
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid }) }),
|
|
22164
22179
|
/* @__PURE__ */ t(
|
|
22165
22180
|
ae,
|
|
@@ -22234,7 +22249,7 @@ const c0 = ({
|
|
|
22234
22249
|
percentage: o,
|
|
22235
22250
|
transaction_total: r
|
|
22236
22251
|
} = e, { setSelectedSubBudget: s } = lt();
|
|
22237
|
-
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
22252
|
+
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => s(e), children: [
|
|
22238
22253
|
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(ro, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
22239
22254
|
/* @__PURE__ */ t(
|
|
22240
22255
|
ae,
|
|
@@ -22261,7 +22276,7 @@ const c0 = ({
|
|
|
22261
22276
|
C && Number(h) > 0 && (await s(C, Number(h), n.guid), _(!1), d(!1), f(void 0));
|
|
22262
22277
|
};
|
|
22263
22278
|
return /* @__PURE__ */ l(L, { children: [
|
|
22264
|
-
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
22279
|
+
/* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ue, { onClick: E, children: /* @__PURE__ */ t(ae, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
22265
22280
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
22266
22281
|
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
22267
22282
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
|
@@ -22270,7 +22285,7 @@ const c0 = ({
|
|
|
22270
22285
|
] }) }) }) }),
|
|
22271
22286
|
/* @__PURE__ */ t(H, {}),
|
|
22272
22287
|
/* @__PURE__ */ t(
|
|
22273
|
-
|
|
22288
|
+
le,
|
|
22274
22289
|
{
|
|
22275
22290
|
ariaLabelClose: a.close_aria,
|
|
22276
22291
|
isOpen: c,
|
|
@@ -22329,7 +22344,7 @@ const c0 = ({
|
|
|
22329
22344
|
/* @__PURE__ */ t(b0, { category: n, parentBudget: e })
|
|
22330
22345
|
] }),
|
|
22331
22346
|
/* @__PURE__ */ t(
|
|
22332
|
-
|
|
22347
|
+
le,
|
|
22333
22348
|
{
|
|
22334
22349
|
ariaLabelClose: o.close_aria,
|
|
22335
22350
|
isOpen: !!s,
|
|
@@ -22408,7 +22423,7 @@ const c0 = ({
|
|
|
22408
22423
|
),
|
|
22409
22424
|
c === 0 && /* @__PURE__ */ l(b, { children: [
|
|
22410
22425
|
r.length > 0 && /* @__PURE__ */ t(b, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ t(
|
|
22411
|
-
|
|
22426
|
+
te,
|
|
22412
22427
|
{
|
|
22413
22428
|
onClick: C,
|
|
22414
22429
|
startIcon: /* @__PURE__ */ t($, { name: "ios_share" }),
|
|
@@ -22420,7 +22435,7 @@ const c0 = ({
|
|
|
22420
22435
|
] }),
|
|
22421
22436
|
c === 1 && /* @__PURE__ */ t(y0, { budget: e }),
|
|
22422
22437
|
/* @__PURE__ */ t(
|
|
22423
|
-
|
|
22438
|
+
le,
|
|
22424
22439
|
{
|
|
22425
22440
|
ariaLabelClose: i.close_aria,
|
|
22426
22441
|
isOpen: !!h,
|
|
@@ -22432,7 +22447,7 @@ const c0 = ({
|
|
|
22432
22447
|
] })
|
|
22433
22448
|
] });
|
|
22434
22449
|
}), S0 = I(() => {
|
|
22435
|
-
const { selectedAccountGuids: e } =
|
|
22450
|
+
const { selectedAccountGuids: e } = de(), { budgets: n, common: i } = x(), {
|
|
22436
22451
|
dateRange: a,
|
|
22437
22452
|
deleteBudget: o,
|
|
22438
22453
|
selectedBudget: r,
|
|
@@ -22464,7 +22479,7 @@ const c0 = ({
|
|
|
22464
22479
|
if (r)
|
|
22465
22480
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22466
22481
|
/* @__PURE__ */ t(
|
|
22467
|
-
|
|
22482
|
+
le,
|
|
22468
22483
|
{
|
|
22469
22484
|
ariaLabelClose: i.close_aria,
|
|
22470
22485
|
isOpen: h,
|
|
@@ -22521,7 +22536,7 @@ const c0 = ({
|
|
|
22521
22536
|
subBudgets: d,
|
|
22522
22537
|
transaction_total: u
|
|
22523
22538
|
} = e;
|
|
22524
|
-
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(
|
|
22539
|
+
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => n?.(e), children: [
|
|
22525
22540
|
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(ro, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
22526
22541
|
/* @__PURE__ */ t(
|
|
22527
22542
|
ae,
|
|
@@ -22624,7 +22639,7 @@ const c0 = ({
|
|
|
22624
22639
|
] })
|
|
22625
22640
|
] }) }),
|
|
22626
22641
|
/* @__PURE__ */ t(
|
|
22627
|
-
|
|
22642
|
+
le,
|
|
22628
22643
|
{
|
|
22629
22644
|
ariaLabelClose: o.close_aria,
|
|
22630
22645
|
isOpen: m,
|
|
@@ -22638,7 +22653,7 @@ const c0 = ({
|
|
|
22638
22653
|
)
|
|
22639
22654
|
] });
|
|
22640
22655
|
}), zr = 480, WE = I(({ onBackClick: e, sx: n }) => {
|
|
22641
|
-
const i = pe(), { onEvent: a } = j(), { visibleAccounts: o } = Ee(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: u, setDisplayedDate: _, setSelectedAccounts: h } =
|
|
22656
|
+
const i = pe(), { onEvent: a } = j(), { visibleAccounts: o } = Ee(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: u, setDisplayedDate: _, setSelectedAccounts: h } = de(), {
|
|
22642
22657
|
alert: m,
|
|
22643
22658
|
dateRange: C,
|
|
22644
22659
|
isDataLoaded: f,
|
|
@@ -22655,16 +22670,16 @@ const c0 = ({
|
|
|
22655
22670
|
}, [o]), g.useEffect(() => {
|
|
22656
22671
|
d && (R(u, C.start, C.end).finally(), f || (v().finally(), E().finally()));
|
|
22657
22672
|
}, [d, u, C]);
|
|
22658
|
-
const
|
|
22673
|
+
const Q = (Re) => {
|
|
22659
22674
|
y({ start: Re[0] || /* @__PURE__ */ new Date(), end: Re[1] || /* @__PURE__ */ new Date() });
|
|
22660
|
-
},
|
|
22675
|
+
}, oe = () => {
|
|
22661
22676
|
a(W.BUDGETS_CLICK_FILTER);
|
|
22662
|
-
},
|
|
22677
|
+
}, J = () => {
|
|
22663
22678
|
U(!0), a(W.BUDGETS_CLICK_ADD);
|
|
22664
22679
|
}, ge = () => {
|
|
22665
22680
|
U(!1);
|
|
22666
22681
|
}, De = nn(C.end, Ze(/* @__PURE__ */ new Date()));
|
|
22667
|
-
return !c || !d || !f ? /* @__PURE__ */ t(
|
|
22682
|
+
return !c || !d || !f ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
22668
22683
|
bt,
|
|
22669
22684
|
{
|
|
22670
22685
|
accountOptions: o,
|
|
@@ -22672,16 +22687,16 @@ const c0 = ({
|
|
|
22672
22687
|
{
|
|
22673
22688
|
iconName: "add",
|
|
22674
22689
|
label: r.add_title,
|
|
22675
|
-
onClick:
|
|
22690
|
+
onClick: J
|
|
22676
22691
|
}
|
|
22677
22692
|
],
|
|
22678
|
-
calendarActions: { onRangeChanged:
|
|
22679
|
-
onAccountsFilterClick:
|
|
22693
|
+
calendarActions: { onRangeChanged: Q, shouldDisableNext: De },
|
|
22694
|
+
onAccountsFilterClick: oe,
|
|
22680
22695
|
onBackClick: e,
|
|
22681
22696
|
sx: n,
|
|
22682
22697
|
title: r.budgets_title,
|
|
22683
22698
|
children: [
|
|
22684
|
-
(!d || !f) && /* @__PURE__ */ t(
|
|
22699
|
+
(!d || !f) && /* @__PURE__ */ t(_e, {}),
|
|
22685
22700
|
d && f && /* @__PURE__ */ l(
|
|
22686
22701
|
b,
|
|
22687
22702
|
{
|
|
@@ -22693,7 +22708,7 @@ const c0 = ({
|
|
|
22693
22708
|
/* @__PURE__ */ t(b, { height: k ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ t(
|
|
22694
22709
|
Lc,
|
|
22695
22710
|
{
|
|
22696
|
-
createBudgetOnClick:
|
|
22711
|
+
createBudgetOnClick: J,
|
|
22697
22712
|
height: k ? 450 : 800,
|
|
22698
22713
|
isDraggable: !0,
|
|
22699
22714
|
shouldShowZeroState: w.length === 0,
|
|
@@ -22718,7 +22733,7 @@ const c0 = ({
|
|
|
22718
22733
|
),
|
|
22719
22734
|
/* @__PURE__ */ t(S0, {}),
|
|
22720
22735
|
/* @__PURE__ */ t(
|
|
22721
|
-
|
|
22736
|
+
le,
|
|
22722
22737
|
{
|
|
22723
22738
|
ariaLabelClose: s.close_aria,
|
|
22724
22739
|
isOpen: O,
|
|
@@ -22805,7 +22820,7 @@ const c0 = ({
|
|
|
22805
22820
|
children: /* @__PURE__ */ t($, { name: "add", size: 24 })
|
|
22806
22821
|
}
|
|
22807
22822
|
) }) : /* @__PURE__ */ t(
|
|
22808
|
-
|
|
22823
|
+
te,
|
|
22809
22824
|
{
|
|
22810
22825
|
"aria-controls": "add_accounts",
|
|
22811
22826
|
"aria-haspopup": !0,
|
|
@@ -22822,7 +22837,7 @@ const c0 = ({
|
|
|
22822
22837
|
}
|
|
22823
22838
|
) });
|
|
22824
22839
|
}, w0 = I(v0), N0 = () => {
|
|
22825
|
-
const [e, n] = g.useState(!1), { visibleAccounts: i } = Ee(), { selectedAccountGuids: a, setSelectedAccountGuids: o } =
|
|
22840
|
+
const [e, n] = g.useState(!1), { visibleAccounts: i } = Ee(), { selectedAccountGuids: a, setSelectedAccountGuids: o } = de(), { common: r, connect: s } = x(), { config: c } = ei(), { isMobile: d } = Ce(), u = {
|
|
22826
22841
|
accountFilterOptionsCopy: {
|
|
22827
22842
|
accountTypeAccounts: r.account_filter.account_type_accounts,
|
|
22828
22843
|
cancelButton: r.cancel_button,
|
|
@@ -22879,7 +22894,7 @@ const c0 = ({
|
|
|
22879
22894
|
}, D0 = I(N0);
|
|
22880
22895
|
var Pi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Pi || {});
|
|
22881
22896
|
const R0 = ({ widgets: e, isLoading: n }) => {
|
|
22882
|
-
const { isDesktop: i, isMobile: a } = Ce(), { copyStore: o } = ca(), { setSelectedAccounts: r } =
|
|
22897
|
+
const { isDesktop: i, isMobile: a } = Ce(), { copyStore: o } = ca(), { setSelectedAccounts: r } = de(), { visibleAccounts: s } = Ee();
|
|
22883
22898
|
g.useEffect(() => {
|
|
22884
22899
|
r(s);
|
|
22885
22900
|
}, [s]);
|
|
@@ -22941,7 +22956,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
22941
22956
|
}
|
|
22942
22957
|
),
|
|
22943
22958
|
/* @__PURE__ */ t(
|
|
22944
|
-
|
|
22959
|
+
te,
|
|
22945
22960
|
{
|
|
22946
22961
|
onClick: () => {
|
|
22947
22962
|
a(!0), i(W.ACCOUNTS_CLICK_CONNECT);
|
|
@@ -23139,7 +23154,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23139
23154
|
minHeight: 44
|
|
23140
23155
|
},
|
|
23141
23156
|
children: /* @__PURE__ */ l(
|
|
23142
|
-
|
|
23157
|
+
ue,
|
|
23143
23158
|
{
|
|
23144
23159
|
"aria-expanded": i === S.guid,
|
|
23145
23160
|
onClick: () => n(S.guid),
|
|
@@ -23266,7 +23281,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23266
23281
|
}, P0 = () => {
|
|
23267
23282
|
const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
|
|
23268
23283
|
i !== f ? a(f) : (a(""), r(""));
|
|
23269
|
-
}, { selectedAccountGuids: c } =
|
|
23284
|
+
}, { selectedAccountGuids: c } = de(), { visibleHoldings: d } = Gn(), { visibleInvestmentAccounts: u } = Ee(), {
|
|
23270
23285
|
investments: { allocation: _ }
|
|
23271
23286
|
} = x(), h = G0(
|
|
23272
23287
|
u.filter(({ guid: f }) => c.includes(f)),
|
|
@@ -23407,7 +23422,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23407
23422
|
] });
|
|
23408
23423
|
}, $0 = ({ body: e, title: n }) => /* @__PURE__ */ l(b, { sx: { gap: 4, p: 12 }, children: [
|
|
23409
23424
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n }),
|
|
23410
|
-
/* @__PURE__ */ t(
|
|
23425
|
+
/* @__PURE__ */ t(xe, { variant: "ParagraphSmall", children: e })
|
|
23411
23426
|
] }), U0 = ({
|
|
23412
23427
|
placement: e = "bottom",
|
|
23413
23428
|
tooltip_info_body: n,
|
|
@@ -23460,7 +23475,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23460
23475
|
writingMode: "vertical-rl"
|
|
23461
23476
|
},
|
|
23462
23477
|
children: [
|
|
23463
|
-
/* @__PURE__ */ t(
|
|
23478
|
+
/* @__PURE__ */ t(xe, { bold: !0, color: "secondary.main", variant: m, children: a === wn.Stocks ? e.market_capitalization : e.credit_quality }),
|
|
23464
23479
|
/* @__PURE__ */ t(
|
|
23465
23480
|
b,
|
|
23466
23481
|
{
|
|
@@ -23591,7 +23606,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23591
23606
|
}));
|
|
23592
23607
|
};
|
|
23593
23608
|
return /* @__PURE__ */ l(
|
|
23594
|
-
|
|
23609
|
+
le,
|
|
23595
23610
|
{
|
|
23596
23611
|
ariaLabelClose: u.overview.close_investment_drawer,
|
|
23597
23612
|
isOpen: c,
|
|
@@ -24050,23 +24065,23 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24050
24065
|
}
|
|
24051
24066
|
);
|
|
24052
24067
|
}, X0 = () => {
|
|
24053
|
-
const { isMobile: e } = Ce(), [n, i] = Et({}), [a, o] = Et(!1), { selectedAccountGuids: r } =
|
|
24068
|
+
const { isMobile: e } = Ce(), [n, i] = Et({}), [a, o] = Et(!1), { selectedAccountGuids: r } = de(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, u] = g.useState(!1), [_, h] = Et({
|
|
24054
24069
|
accounts: [],
|
|
24055
24070
|
holdings: []
|
|
24056
|
-
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } =
|
|
24057
|
-
y(
|
|
24058
|
-
}, k = (
|
|
24059
|
-
const ne =
|
|
24071
|
+
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } = de(), [E, y] = Et(null), [S, A] = Et(""), v = pe().palette.mode === "dark", R = v ? "#0AC295" : "#09A57F", B = v ? "grey.300" : "grey.700", M = (ee, ne = "lesserThan") => ne === "greaterThan" ? ee >= 0 ? R : B : ee <= 0 ? B : R, D = (ee, ne) => {
|
|
24072
|
+
y(ee), A(ne.toFixed(2));
|
|
24073
|
+
}, k = (ee) => {
|
|
24074
|
+
const ne = ee.target.value;
|
|
24060
24075
|
/^\d*\.?\d*$/.test(ne) && A(ne);
|
|
24061
|
-
}, O = (
|
|
24062
|
-
|
|
24063
|
-
}, U = (
|
|
24064
|
-
const ne = s.find(({ guid: Qe }) => Qe ===
|
|
24076
|
+
}, O = (ee, ne) => {
|
|
24077
|
+
ee.key === "Enter" ? U(ne) : ee.key === "Escape" && y(null);
|
|
24078
|
+
}, U = (ee) => {
|
|
24079
|
+
const ne = s.find(({ guid: Qe }) => Qe === ee);
|
|
24065
24080
|
if (!ne) return;
|
|
24066
24081
|
const Ue = Number(S);
|
|
24067
24082
|
if (c({ ...ne, cost_basis: Ue }), e) {
|
|
24068
24083
|
const Qe = _.holdings.map(
|
|
24069
|
-
(K) => K.id ===
|
|
24084
|
+
(K) => K.id === ee ? { ...K, costBasis: Ue } : K
|
|
24070
24085
|
);
|
|
24071
24086
|
h((K) => ({
|
|
24072
24087
|
...K,
|
|
@@ -24074,18 +24089,18 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24074
24089
|
}));
|
|
24075
24090
|
}
|
|
24076
24091
|
y(null);
|
|
24077
|
-
},
|
|
24092
|
+
}, Q = (ee) => (ne, Ue) => {
|
|
24078
24093
|
i((Qe) => ({
|
|
24079
24094
|
...Qe,
|
|
24080
|
-
[
|
|
24095
|
+
[ee]: Ue
|
|
24081
24096
|
}));
|
|
24082
|
-
}, { visibleHoldings:
|
|
24083
|
-
({ guid:
|
|
24084
|
-
), De = ge.reduce((
|
|
24085
|
-
({ account_guid:
|
|
24086
|
-
).reduce((
|
|
24097
|
+
}, { visibleHoldings: oe } = Gn(), { visibleInvestmentAccounts: J } = Ee(), ge = J.filter(
|
|
24098
|
+
({ guid: ee }) => r.includes(ee)
|
|
24099
|
+
), De = ge.reduce((ee, ne) => ee + (ne.balance || 0), 0), Re = ge.map(({ guid: ee }) => ee), Oe = oe.filter(
|
|
24100
|
+
({ account_guid: ee }) => Re.includes(ee)
|
|
24101
|
+
).reduce((ee, ne) => {
|
|
24087
24102
|
const Ue = ne.market_value ? ne.market_value - (ne.cost_basis || 0) : 0;
|
|
24088
|
-
return
|
|
24103
|
+
return ee + Ue;
|
|
24089
24104
|
}, 0), It = () => {
|
|
24090
24105
|
o(!1);
|
|
24091
24106
|
};
|
|
@@ -24122,8 +24137,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24122
24137
|
)
|
|
24123
24138
|
] })
|
|
24124
24139
|
] }),
|
|
24125
|
-
ge.map((
|
|
24126
|
-
const ne =
|
|
24140
|
+
ge.map((ee) => {
|
|
24141
|
+
const ne = oe.filter((dt) => dt.account_guid === ee.guid).map((dt) => ({
|
|
24127
24142
|
id: dt.guid,
|
|
24128
24143
|
qty: dt.shares || 0,
|
|
24129
24144
|
holding: dt.symbol || dt.description || "Unknown",
|
|
@@ -24131,7 +24146,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24131
24146
|
totalGainLoss: dt.market_value ? dt.market_value - (dt.cost_basis || 0) : 0,
|
|
24132
24147
|
marketValue: dt.market_value || 0,
|
|
24133
24148
|
description: dt.description || ""
|
|
24134
|
-
})), Ue = ne.length > 0, Qe =
|
|
24149
|
+
})), Ue = ne.length > 0, Qe = ee.balance, K = ne.reduce(
|
|
24135
24150
|
(dt, ii) => ii.totalGainLoss + dt,
|
|
24136
24151
|
0
|
|
24137
24152
|
), Le = Qe ? K / Qe * 100 : 0;
|
|
@@ -24142,7 +24157,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24142
24157
|
onClick: ne.length ? () => {
|
|
24143
24158
|
o(!0), h({
|
|
24144
24159
|
holdings: ne,
|
|
24145
|
-
accounts:
|
|
24160
|
+
accounts: ee
|
|
24146
24161
|
});
|
|
24147
24162
|
} : void 0,
|
|
24148
24163
|
sx: {
|
|
@@ -24178,14 +24193,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24178
24193
|
/* @__PURE__ */ t(
|
|
24179
24194
|
ut,
|
|
24180
24195
|
{
|
|
24181
|
-
alt:
|
|
24182
|
-
institutionGuid:
|
|
24196
|
+
alt: ee.institutionName || "",
|
|
24197
|
+
institutionGuid: ee.institution_guid || "",
|
|
24183
24198
|
size: 32
|
|
24184
24199
|
}
|
|
24185
24200
|
),
|
|
24186
24201
|
/* @__PURE__ */ l(we, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
24187
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children:
|
|
24188
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
|
24202
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: ee.memberName }),
|
|
24203
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: ee.user_name || ee.name })
|
|
24189
24204
|
] })
|
|
24190
24205
|
]
|
|
24191
24206
|
}
|
|
@@ -24302,14 +24317,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24302
24317
|
}
|
|
24303
24318
|
)
|
|
24304
24319
|
},
|
|
24305
|
-
|
|
24320
|
+
ee.guid
|
|
24306
24321
|
);
|
|
24307
24322
|
const Ge = v ? "grey.700" : "grey.400", Pt = ne.length ? "text.primary" : Ge;
|
|
24308
24323
|
return /* @__PURE__ */ l(
|
|
24309
24324
|
Ai,
|
|
24310
24325
|
{
|
|
24311
|
-
expanded: n[
|
|
24312
|
-
onChange: Ue ? ee
|
|
24326
|
+
expanded: n[ee.guid] === !0,
|
|
24327
|
+
onChange: Ue ? Q(ee.guid) : () => {
|
|
24313
24328
|
},
|
|
24314
24329
|
sx: {
|
|
24315
24330
|
border: 1,
|
|
@@ -24324,7 +24339,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24324
24339
|
"aria-controls": "panel1a-content",
|
|
24325
24340
|
id: "panel1a-header",
|
|
24326
24341
|
sx: [
|
|
24327
|
-
n[
|
|
24342
|
+
n[ee.guid] && {
|
|
24328
24343
|
borderBottom: 1,
|
|
24329
24344
|
borderColor: "border.main",
|
|
24330
24345
|
maxHeight: 88
|
|
@@ -24346,14 +24361,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24346
24361
|
/* @__PURE__ */ t(
|
|
24347
24362
|
ut,
|
|
24348
24363
|
{
|
|
24349
|
-
alt:
|
|
24350
|
-
institutionGuid:
|
|
24364
|
+
alt: ee.institutionName || "",
|
|
24365
|
+
institutionGuid: ee.institution_guid || "",
|
|
24351
24366
|
size: 32
|
|
24352
24367
|
}
|
|
24353
24368
|
),
|
|
24354
24369
|
/* @__PURE__ */ l(we, { sx: { alignItems: "flex-start" }, children: [
|
|
24355
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children:
|
|
24356
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
|
24370
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: ee.memberName }),
|
|
24371
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: ee.user_name || ee.name })
|
|
24357
24372
|
] })
|
|
24358
24373
|
]
|
|
24359
24374
|
}
|
|
@@ -24441,7 +24456,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24441
24456
|
) }) })
|
|
24442
24457
|
]
|
|
24443
24458
|
},
|
|
24444
|
-
|
|
24459
|
+
ee.guid
|
|
24445
24460
|
);
|
|
24446
24461
|
}),
|
|
24447
24462
|
/* @__PURE__ */ t(Do, {}),
|
|
@@ -24467,13 +24482,13 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24467
24482
|
title: m.manage_connections
|
|
24468
24483
|
}
|
|
24469
24484
|
)
|
|
24470
|
-
] }) : /* @__PURE__ */ t(
|
|
24485
|
+
] }) : /* @__PURE__ */ t(_e, {});
|
|
24471
24486
|
}, Z0 = I(X0), q0 = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), UE = I(({ onBackClick: e, sx: n }) => {
|
|
24472
24487
|
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleInvestmentAccounts: o } = Ee(), {
|
|
24473
24488
|
visibleHoldings: r,
|
|
24474
24489
|
setShowConnectionsWidget: s,
|
|
24475
24490
|
showConnectionsWidget: c
|
|
24476
|
-
} = Gn(), { investments: d, accounts: u } = x(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: m } =
|
|
24491
|
+
} = Gn(), { investments: d, accounts: u } = x(), { isCopyLoaded: _, isInitialized: h, setSelectedAccounts: m } = de(), [C, f] = g.useState(0), { loadHoldings: E } = Gn();
|
|
24477
24492
|
g.useEffect(() => {
|
|
24478
24493
|
m(o);
|
|
24479
24494
|
}, [o]), g.useEffect(() => {
|
|
@@ -24482,7 +24497,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24482
24497
|
const y = () => {
|
|
24483
24498
|
i(W.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
24484
24499
|
};
|
|
24485
|
-
if (!_ || !h) return /* @__PURE__ */ t(
|
|
24500
|
+
if (!_ || !h) return /* @__PURE__ */ t(_e, {});
|
|
24486
24501
|
const S = [
|
|
24487
24502
|
W.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
24488
24503
|
W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
@@ -24803,7 +24818,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24803
24818
|
E && E <= 325 && A(3);
|
|
24804
24819
|
}, [E]);
|
|
24805
24820
|
const { cardStyle: R, linkTextStyle: B } = h, M = f ? R : { border: "none", boxShadow: "none", ...R }, D = /* @__PURE__ */ t(
|
|
24806
|
-
|
|
24821
|
+
xe,
|
|
24807
24822
|
{
|
|
24808
24823
|
className: "mx-micro-card-description",
|
|
24809
24824
|
color: m.textColor ? "undefined" : "text.primary",
|
|
@@ -25981,10 +25996,10 @@ const Di = g.createContext(null), of = ({
|
|
|
25981
25996
|
}, D = () => {
|
|
25982
25997
|
if (!S || !E) return;
|
|
25983
25998
|
S - E > mf ? v(Vt.ON_CAROUSEL_FORWARD_SWIPE) : v(Vt.ON_CAROUSEL_BACK_SWIPE);
|
|
25984
|
-
}, k = (
|
|
25985
|
-
y(
|
|
25986
|
-
}, O = (
|
|
25987
|
-
y(null), A(
|
|
25999
|
+
}, k = (J) => {
|
|
26000
|
+
y(J.targetTouches[0].clientX);
|
|
26001
|
+
}, O = (J) => {
|
|
26002
|
+
y(null), A(J.targetTouches[0].clientX);
|
|
25988
26003
|
}, U = {
|
|
25989
26004
|
clientColorScheme: n,
|
|
25990
26005
|
showCTAColocatedWithText: i,
|
|
@@ -25993,7 +26008,7 @@ const Di = g.createContext(null), of = ({
|
|
|
25993
26008
|
showIcon: c,
|
|
25994
26009
|
variant: u,
|
|
25995
26010
|
widthOverrides: _
|
|
25996
|
-
},
|
|
26011
|
+
}, Q = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, oe = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
|
25997
26012
|
return /* @__PURE__ */ l(
|
|
25998
26013
|
"div",
|
|
25999
26014
|
{
|
|
@@ -26012,29 +26027,29 @@ const Di = g.createContext(null), of = ({
|
|
|
26012
26027
|
onTouchStart: O,
|
|
26013
26028
|
ref: m,
|
|
26014
26029
|
children: [
|
|
26015
|
-
e.map((
|
|
26030
|
+
e.map((J, ge) => {
|
|
26016
26031
|
const De = ge + 1, Re = e.length + 1, Se = T(
|
|
26017
26032
|
w.card_position_in_carousel_aria,
|
|
26018
26033
|
De.toString(),
|
|
26019
26034
|
Re.toString()
|
|
26020
|
-
), Oe =
|
|
26035
|
+
), Oe = J.micro_title && J.micro_title.length > 0, It = J.micro_description && J.micro_description.length > 0, ee = Oe ? J.micro_title : J.title, ne = It ? J.micro_description : J.description;
|
|
26021
26036
|
return /* @__PURE__ */ t(
|
|
26022
26037
|
pf,
|
|
26023
26038
|
{
|
|
26024
|
-
ariaLabel: `${Se}: ${
|
|
26025
|
-
beat:
|
|
26039
|
+
ariaLabel: `${Se}: ${ee}, ${ne}`,
|
|
26040
|
+
beat: J,
|
|
26026
26041
|
index: ge,
|
|
26027
|
-
isActiveCard: ge ===
|
|
26042
|
+
isActiveCard: ge === Q,
|
|
26028
26043
|
onCardClick: o,
|
|
26029
26044
|
...U
|
|
26030
26045
|
},
|
|
26031
|
-
`${
|
|
26046
|
+
`${J.guid} ${ge}`
|
|
26032
26047
|
);
|
|
26033
26048
|
}),
|
|
26034
26049
|
/* @__PURE__ */ t(
|
|
26035
26050
|
wf,
|
|
26036
26051
|
{
|
|
26037
|
-
isActiveCard:
|
|
26052
|
+
isActiveCard: Q === e.length,
|
|
26038
26053
|
onCardClick: o,
|
|
26039
26054
|
...U
|
|
26040
26055
|
}
|
|
@@ -26046,11 +26061,11 @@ const Di = g.createContext(null), of = ({
|
|
|
26046
26061
|
Cf,
|
|
26047
26062
|
{
|
|
26048
26063
|
clientColorScheme: n,
|
|
26049
|
-
currentBeatIndex:
|
|
26064
|
+
currentBeatIndex: Q,
|
|
26050
26065
|
numBeats: e.length + 1,
|
|
26051
26066
|
onNextClick: R,
|
|
26052
26067
|
onPreviousClick: B,
|
|
26053
|
-
scrollRightBoundary:
|
|
26068
|
+
scrollRightBoundary: oe,
|
|
26054
26069
|
scrollX: C
|
|
26055
26070
|
}
|
|
26056
26071
|
)
|
|
@@ -26150,7 +26165,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26150
26165
|
)
|
|
26151
26166
|
]
|
|
26152
26167
|
}
|
|
26153
|
-
) : /* @__PURE__ */ t(
|
|
26168
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
26154
26169
|
}, Tf = I(Sf), Af = ({
|
|
26155
26170
|
heightOverrides: e,
|
|
26156
26171
|
widthOverrides: n,
|
|
@@ -26312,12 +26327,12 @@ const Di = g.createContext(null), of = ({
|
|
|
26312
26327
|
g.useEffect(() => {
|
|
26313
26328
|
hn.isInitialized || hn.initialize(o, y, s);
|
|
26314
26329
|
}, [o, y, s, hn.isInitialized]), g.useEffect(() => {
|
|
26315
|
-
const
|
|
26316
|
-
|
|
26330
|
+
const J = window.innerHeight;
|
|
26331
|
+
J < 180 ? M("STANDARD") : J >= 180 && J < 200 ? M("LARGE") : J >= 200 && J < 248 ? M("XLARGE") : J >= 248 && M("XXLARGE");
|
|
26317
26332
|
}, [window.innerHeight]), g.useEffect(() => {
|
|
26318
26333
|
k(!e && hn.isInitialized);
|
|
26319
26334
|
}, [e, hn.isInitialized]);
|
|
26320
|
-
const
|
|
26335
|
+
const Q = {
|
|
26321
26336
|
showCTAColocatedWithText: a,
|
|
26322
26337
|
heightOverrides: r,
|
|
26323
26338
|
onCardClick: c,
|
|
@@ -26326,10 +26341,10 @@ const Di = g.createContext(null), of = ({
|
|
|
26326
26341
|
showWithMargin: E,
|
|
26327
26342
|
useDarkMode: S,
|
|
26328
26343
|
widthOverrides: v
|
|
26329
|
-
},
|
|
26344
|
+
}, oe = {
|
|
26330
26345
|
carouselSize: B,
|
|
26331
26346
|
variant: w,
|
|
26332
|
-
...
|
|
26347
|
+
...Q
|
|
26333
26348
|
};
|
|
26334
26349
|
return (
|
|
26335
26350
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
@@ -26353,11 +26368,11 @@ const Di = g.createContext(null), of = ({
|
|
|
26353
26368
|
clientColorScheme: i,
|
|
26354
26369
|
showCarouselControls: m,
|
|
26355
26370
|
variant: h ? w : void 0,
|
|
26356
|
-
...
|
|
26371
|
+
...Q
|
|
26357
26372
|
}
|
|
26358
26373
|
),
|
|
26359
|
-
D && !n.length && A && /* @__PURE__ */ t(Uc, { clientColorScheme: i, ...
|
|
26360
|
-
D && !n.length && !A && /* @__PURE__ */ t(Vc, { ...
|
|
26374
|
+
D && !n.length && A && /* @__PURE__ */ t(Uc, { clientColorScheme: i, ...oe }),
|
|
26375
|
+
D && !n.length && !A && /* @__PURE__ */ t(Vc, { ...oe })
|
|
26361
26376
|
] }) })
|
|
26362
26377
|
] })
|
|
26363
26378
|
);
|
|
@@ -26530,7 +26545,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26530
26545
|
/* @__PURE__ */ t(p, { variant: c === "mini" ? "H2" : "H1", children: P(h ? h.amount : e.totalAmount, "0,0") }),
|
|
26531
26546
|
!h && c === "mini" && /* @__PURE__ */ t(p, { color: "secondary", noWrap: !0, variant: "Tiny", children: s }),
|
|
26532
26547
|
c === "full" && /* @__PURE__ */ t(
|
|
26533
|
-
|
|
26548
|
+
te,
|
|
26534
26549
|
{
|
|
26535
26550
|
"aria-label": `View ${h?.name || ""} Transactions`,
|
|
26536
26551
|
disabled: e.categoryData.length === 0,
|
|
@@ -26559,7 +26574,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26559
26574
|
},
|
|
26560
26575
|
a.guid
|
|
26561
26576
|
)) }), Rf = () => {
|
|
26562
|
-
const e = pe(), { spending: n } = x(), { selectedAccounts: i } =
|
|
26577
|
+
const e = pe(), { spending: n } = x(), { selectedAccounts: i } = de(), {
|
|
26563
26578
|
categories: a,
|
|
26564
26579
|
dateRangeCategoryTotals: o,
|
|
26565
26580
|
dataRangeTotalsLoaded: r,
|
|
@@ -26652,9 +26667,9 @@ const Di = g.createContext(null), of = ({
|
|
|
26652
26667
|
),
|
|
26653
26668
|
/* @__PURE__ */ t(Jr, { data: C, onSelected: E, selectedId: d })
|
|
26654
26669
|
] }) })
|
|
26655
|
-
] }) : /* @__PURE__ */ t(
|
|
26670
|
+
] }) : /* @__PURE__ */ t(_e, { height: 250 });
|
|
26656
26671
|
}, Of = I(Rf), Lf = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
|
|
26657
|
-
const { spending: i } = x(), { isCopyLoaded: a } =
|
|
26672
|
+
const { spending: i } = x(), { isCopyLoaded: a } = de();
|
|
26658
26673
|
return a ? /* @__PURE__ */ t(
|
|
26659
26674
|
Dn,
|
|
26660
26675
|
{
|
|
@@ -26665,7 +26680,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26665
26680
|
title: i.mini_title,
|
|
26666
26681
|
children: /* @__PURE__ */ t(Of, {})
|
|
26667
26682
|
}
|
|
26668
|
-
) : /* @__PURE__ */ t(
|
|
26683
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
26669
26684
|
}, YE = I(Lf), Mf = ({
|
|
26670
26685
|
data: e,
|
|
26671
26686
|
onSelected: n,
|
|
@@ -26686,7 +26701,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26686
26701
|
minHeight: 44
|
|
26687
26702
|
},
|
|
26688
26703
|
children: /* @__PURE__ */ l(
|
|
26689
|
-
|
|
26704
|
+
ue,
|
|
26690
26705
|
{
|
|
26691
26706
|
"aria-expanded": r?.guid === s.guid,
|
|
26692
26707
|
onClick: () => n(s.guid),
|
|
@@ -26803,7 +26818,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26803
26818
|
e.palette.chartMono.chartMono1,
|
|
26804
26819
|
e.palette.chartMono.chartMono6
|
|
26805
26820
|
], Hf = () => {
|
|
26806
|
-
const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = $e(), { spending: o } = x(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } =
|
|
26821
|
+
const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = $e(), { spending: o } = x(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } = de(), { setFilter: d, sortedTransactions: u } = Ne(), [_, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, S] = g.useState(!1);
|
|
26807
26822
|
g.useEffect(() => {
|
|
26808
26823
|
a(
|
|
26809
26824
|
s,
|
|
@@ -26834,7 +26849,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26834
26849
|
const O = A.categoryData.find((U) => U.guid === "other");
|
|
26835
26850
|
d({
|
|
26836
26851
|
...k,
|
|
26837
|
-
custom: (U) => !!O?.categoryTotals?.find((
|
|
26852
|
+
custom: (U) => !!O?.categoryTotals?.find((Q) => Q.guid === U.top_level_category_guid)
|
|
26838
26853
|
});
|
|
26839
26854
|
} else
|
|
26840
26855
|
d({
|
|
@@ -26896,7 +26911,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26896
26911
|
}
|
|
26897
26912
|
),
|
|
26898
26913
|
/* @__PURE__ */ t(
|
|
26899
|
-
|
|
26914
|
+
le,
|
|
26900
26915
|
{
|
|
26901
26916
|
ariaLabelClose: o.close_drawer_aria,
|
|
26902
26917
|
isOpen: y,
|
|
@@ -26906,7 +26921,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26906
26921
|
}
|
|
26907
26922
|
),
|
|
26908
26923
|
/* @__PURE__ */ t(
|
|
26909
|
-
|
|
26924
|
+
le,
|
|
26910
26925
|
{
|
|
26911
26926
|
ariaLabelClose: o.close_drawer_aria,
|
|
26912
26927
|
isOpen: !!v,
|
|
@@ -26917,7 +26932,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26917
26932
|
)
|
|
26918
26933
|
] });
|
|
26919
26934
|
}, Pf = I(Hf), Ff = ({ onBackClick: e, sx: n = {} }) => {
|
|
26920
|
-
const { visibleAccounts: i } = Ee(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } =
|
|
26935
|
+
const { visibleAccounts: i } = Ee(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = de(), { onEvent: d } = j(), [u, _] = g.useState(!1);
|
|
26921
26936
|
g.useEffect(() => {
|
|
26922
26937
|
c(i);
|
|
26923
26938
|
}, [i]), g.useEffect(() => {
|
|
@@ -26926,7 +26941,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26926
26941
|
const h = (m) => {
|
|
26927
26942
|
s(m[0], m[1]);
|
|
26928
26943
|
};
|
|
26929
|
-
return !o || !r || !u ? /* @__PURE__ */ t(
|
|
26944
|
+
return !o || !r || !u ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ t(
|
|
26930
26945
|
bt,
|
|
26931
26946
|
{
|
|
26932
26947
|
accountOptions: i,
|
|
@@ -26998,7 +27013,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
26998
27013
|
) }), Zf = (e, n) => {
|
|
26999
27014
|
const i = [], a = new Date(e);
|
|
27000
27015
|
for (; a <= n; ) {
|
|
27001
|
-
const o =
|
|
27016
|
+
const o = ce(a, re.MONTH);
|
|
27002
27017
|
i.push(o), a.setMonth(a.getMonth() + 1);
|
|
27003
27018
|
}
|
|
27004
27019
|
return i;
|
|
@@ -27010,7 +27025,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27010
27025
|
height: o = "100dvh",
|
|
27011
27026
|
sx: r = {}
|
|
27012
27027
|
}) => {
|
|
27013
|
-
const { onEvent: s } = j(), c =
|
|
27028
|
+
const { onEvent: s } = j(), c = ce(/* @__PURE__ */ new Date(), re.MONTH_SHORT), [d, u] = g.useState([
|
|
27014
27029
|
{ field: c, sort: "desc" }
|
|
27015
27030
|
]), _ = g.useMemo(() => Zf(n.start, n.end), [n]), h = [
|
|
27016
27031
|
{
|
|
@@ -27049,7 +27064,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27049
27064
|
category_guid: S,
|
|
27050
27065
|
top_level_category_guid: A
|
|
27051
27066
|
});
|
|
27052
|
-
const M =
|
|
27067
|
+
const M = ce(new Date(R, w - 1), re.MONTH_SHORT);
|
|
27053
27068
|
return E[B][M] || (E[B][M] = 0), E[B][M] = E[B][M] + v, E;
|
|
27054
27069
|
},
|
|
27055
27070
|
{}
|
|
@@ -27084,7 +27099,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27084
27099
|
isOpen: i,
|
|
27085
27100
|
onClose: a
|
|
27086
27101
|
}) => {
|
|
27087
|
-
const { onEvent: o } = j(), { selectedAccountGuids: r } =
|
|
27102
|
+
const { onEvent: o } = j(), { selectedAccountGuids: r } = de(), { common: s } = x(), { setFilter: c, sortedTransactions: d } = Ne(), [u, _] = g.useState(""), h = g.useMemo(
|
|
27088
27103
|
() => d.find((C) => C.guid === u),
|
|
27089
27104
|
[u, d]
|
|
27090
27105
|
);
|
|
@@ -27099,7 +27114,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27099
27114
|
_(""), a();
|
|
27100
27115
|
};
|
|
27101
27116
|
return /* @__PURE__ */ l(
|
|
27102
|
-
|
|
27117
|
+
le,
|
|
27103
27118
|
{
|
|
27104
27119
|
ariaLabelClose: s.close_aria,
|
|
27105
27120
|
isOpen: i,
|
|
@@ -27114,7 +27129,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27114
27129
|
}, eb = I(Jf), tb = {
|
|
27115
27130
|
view_transactions: "View Transactions"
|
|
27116
27131
|
}, nb = ({ onBackClick: e, sx: n }) => {
|
|
27117
|
-
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = Ee(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = $e(), { sortedTransactions: h } = Ne(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } =
|
|
27132
|
+
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = Ee(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = $e(), { sortedTransactions: h } = Ne(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = de(), { trends: y } = x(), S = i.palette.mode === "dark", [A, w] = g.useState(!1), [v, R] = g.useState(!1), [B, M] = g.useState("Chart"), [D, k] = g.useState(""), [O, U] = g.useState({
|
|
27118
27133
|
start: zo(Ye(Yt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
27119
27134
|
end: Ye(/* @__PURE__ */ new Date())
|
|
27120
27135
|
});
|
|
@@ -27129,7 +27144,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27129
27144
|
w(!0);
|
|
27130
27145
|
});
|
|
27131
27146
|
}, [C, f, O]);
|
|
27132
|
-
const
|
|
27147
|
+
const Q = g.useMemo(() => {
|
|
27133
27148
|
if (!A) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
27134
27149
|
const ne = Kf(
|
|
27135
27150
|
u,
|
|
@@ -27142,16 +27157,16 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27142
27157
|
stackedDatasets: Ue.filter(Xg),
|
|
27143
27158
|
unstackedDatasets: Ue.filter(ga)
|
|
27144
27159
|
};
|
|
27145
|
-
}, [u, D, O]),
|
|
27146
|
-
const ne =
|
|
27160
|
+
}, [u, D, O]), oe = g.useMemo(() => {
|
|
27161
|
+
const ne = ce(
|
|
27147
27162
|
O.start,
|
|
27148
|
-
s ?
|
|
27149
|
-
), Ue =
|
|
27163
|
+
s ? re.MONTH_SHORT_YEAR : re.MONTH_YEAR
|
|
27164
|
+
), Ue = ce(
|
|
27150
27165
|
O.end,
|
|
27151
|
-
s ?
|
|
27166
|
+
s ? re.MONTH_SHORT_YEAR : re.MONTH_YEAR
|
|
27152
27167
|
);
|
|
27153
27168
|
return `${ne} - ${Ue}`;
|
|
27154
|
-
}, [O, s]),
|
|
27169
|
+
}, [O, s]), J = (ne, Ue) => {
|
|
27155
27170
|
M(Ue ?? B), a(W.TRENDS_CLICK_TOGGLE);
|
|
27156
27171
|
}, ge = (ne) => {
|
|
27157
27172
|
const Ue = zo(ne?.[0], 1), Qe = ne?.[1], K = Ld(Qe, Ue);
|
|
@@ -27168,10 +27183,10 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27168
27183
|
a(W.TRENDS_HOVER_LEGEND, { category: _(ne) });
|
|
27169
27184
|
}, It = (ne) => {
|
|
27170
27185
|
a(W.TRENDS_HOVER_AREA, { category: ne });
|
|
27171
|
-
},
|
|
27186
|
+
}, ee = (ne) => {
|
|
27172
27187
|
a(W.TRENDS_HOVER_POINT, { category: ne });
|
|
27173
27188
|
};
|
|
27174
|
-
return !m || !C || !A ? /* @__PURE__ */ t(
|
|
27189
|
+
return !m || !C || !A ? /* @__PURE__ */ t(_e, {}) : /* @__PURE__ */ l(
|
|
27175
27190
|
bt,
|
|
27176
27191
|
{
|
|
27177
27192
|
accountOptions: c,
|
|
@@ -27213,13 +27228,13 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27213
27228
|
children: _(D) || y.sub_title
|
|
27214
27229
|
}
|
|
27215
27230
|
),
|
|
27216
|
-
/* @__PURE__ */ t(p, { variant: o ? "Body" : "Small", children:
|
|
27231
|
+
/* @__PURE__ */ t(p, { variant: o ? "Body" : "Small", children: oe })
|
|
27217
27232
|
] }),
|
|
27218
27233
|
/* @__PURE__ */ t(
|
|
27219
27234
|
Ei,
|
|
27220
27235
|
{
|
|
27221
27236
|
exclusive: !0,
|
|
27222
|
-
onChange:
|
|
27237
|
+
onChange: J,
|
|
27223
27238
|
orientation: "horizontal",
|
|
27224
27239
|
value: B,
|
|
27225
27240
|
children: ["Chart", "Table"].map((ne) => /* @__PURE__ */ t(
|
|
@@ -27258,11 +27273,11 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27258
27273
|
}
|
|
27259
27274
|
),
|
|
27260
27275
|
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
27261
|
-
/* @__PURE__ */ t(L, { flexGrow: 1, children: D && /* @__PURE__ */ l(
|
|
27276
|
+
/* @__PURE__ */ t(L, { flexGrow: 1, children: D && /* @__PURE__ */ l(te, { onClick: () => k(""), sx: { p: 0, pr: 5 }, children: [
|
|
27262
27277
|
/* @__PURE__ */ t($, { name: "arrow_back" }),
|
|
27263
27278
|
y.all_categories
|
|
27264
27279
|
] }) }),
|
|
27265
|
-
/* @__PURE__ */ t(
|
|
27280
|
+
/* @__PURE__ */ t(te, { onClick: () => R(!0), sx: { px: 5 }, children: `${tb.view_transactions} (${h.length})` })
|
|
27266
27281
|
] }),
|
|
27267
27282
|
/* @__PURE__ */ l(L, { children: [
|
|
27268
27283
|
B === "Chart" && /* @__PURE__ */ t(
|
|
@@ -27271,9 +27286,9 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27271
27286
|
onClickLegend: Se,
|
|
27272
27287
|
onHoverArea: It,
|
|
27273
27288
|
onHoverLegend: Oe,
|
|
27274
|
-
onHoverPoint:
|
|
27275
|
-
stackedDatasets:
|
|
27276
|
-
unstackedDatasets:
|
|
27289
|
+
onHoverPoint: ee,
|
|
27290
|
+
stackedDatasets: Q.stackedDatasets,
|
|
27291
|
+
unstackedDatasets: Q.unstackedDatasets
|
|
27277
27292
|
}
|
|
27278
27293
|
),
|
|
27279
27294
|
B === "Table" && /* @__PURE__ */ t(
|
|
@@ -27318,7 +27333,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27318
27333
|
}
|
|
27319
27334
|
);
|
|
27320
27335
|
}, ab = I(ib), ob = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
27321
|
-
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = $e(), { isInitialized: o } = ca(), { trends: r } = x(), { isCopyLoaded: s, selectedAccounts: c } =
|
|
27336
|
+
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = $e(), { isInitialized: o } = ca(), { trends: r } = x(), { isCopyLoaded: s, selectedAccounts: c } = de();
|
|
27322
27337
|
return g.useEffect(() => {
|
|
27323
27338
|
o && i(c).finally();
|
|
27324
27339
|
}, [o, c]), s ? /* @__PURE__ */ t(
|
|
@@ -27329,9 +27344,9 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27329
27344
|
subTitle: r.sub_title,
|
|
27330
27345
|
sx: n,
|
|
27331
27346
|
title: r.mini_title,
|
|
27332
|
-
children: a ? /* @__PURE__ */ t(ab, {}) : /* @__PURE__ */ t(
|
|
27347
|
+
children: a ? /* @__PURE__ */ t(ab, {}) : /* @__PURE__ */ t(_e, {})
|
|
27333
27348
|
}
|
|
27334
|
-
) : /* @__PURE__ */ t(
|
|
27349
|
+
) : /* @__PURE__ */ t(_e, {});
|
|
27335
27350
|
}, ZE = I(ob);
|
|
27336
27351
|
export {
|
|
27337
27352
|
W as ANALYTICS_EVENTS,
|
|
@@ -27345,7 +27360,7 @@ export {
|
|
|
27345
27360
|
Ct as AccountNotificationTypes,
|
|
27346
27361
|
KC as AccountStore,
|
|
27347
27362
|
Gd as AccountSubType,
|
|
27348
|
-
|
|
27363
|
+
se as AccountType,
|
|
27349
27364
|
qa as AccountTypeName,
|
|
27350
27365
|
BE as AccountsMiniWidget,
|
|
27351
27366
|
GE as AccountsWidget,
|
|
@@ -27389,7 +27404,7 @@ export {
|
|
|
27389
27404
|
zi as CurrencyCodes,
|
|
27390
27405
|
Qt as CurrencyInput,
|
|
27391
27406
|
We as CurrencyText,
|
|
27392
|
-
|
|
27407
|
+
re as DATE_FORMATS_INTL,
|
|
27393
27408
|
Is as DEFAULT_DONUT_SIZE,
|
|
27394
27409
|
xs as DEFAULT_STROKE_WIDTH,
|
|
27395
27410
|
$E as Dashboard,
|
|
@@ -27403,7 +27418,7 @@ export {
|
|
|
27403
27418
|
v1 as DeviceTab,
|
|
27404
27419
|
Me as Dialog,
|
|
27405
27420
|
Bs as Donut,
|
|
27406
|
-
|
|
27421
|
+
le as Drawer,
|
|
27407
27422
|
zn as EmptyState,
|
|
27408
27423
|
P_ as ErrorBoundary,
|
|
27409
27424
|
Ss as ErrorStatuses,
|
|
@@ -27436,7 +27451,7 @@ export {
|
|
|
27436
27451
|
oo as LineChart,
|
|
27437
27452
|
Jt as ListItemAction,
|
|
27438
27453
|
z_ as ListItemWrapper,
|
|
27439
|
-
|
|
27454
|
+
_e as Loader,
|
|
27440
27455
|
oE as LocalizedCopyApi,
|
|
27441
27456
|
ig as ManageExpenses,
|
|
27442
27457
|
po as ManageIncome,
|
|
@@ -27542,7 +27557,7 @@ export {
|
|
|
27542
27557
|
iE as buildPluralCopy,
|
|
27543
27558
|
Us as exportTransactionsToCSV,
|
|
27544
27559
|
P as formatCurrency,
|
|
27545
|
-
|
|
27560
|
+
ce as formatDate,
|
|
27546
27561
|
Ci as formatOrdinal,
|
|
27547
27562
|
vi as formatPercentage,
|
|
27548
27563
|
ws as fromTimestampToMonthYear,
|
|
@@ -27572,7 +27587,7 @@ export {
|
|
|
27572
27587
|
yC as useGetMergeableAccounts,
|
|
27573
27588
|
x as useGlobalCopyStore,
|
|
27574
27589
|
ca as useGlobalStore,
|
|
27575
|
-
|
|
27590
|
+
de as useGlobalUiStore,
|
|
27576
27591
|
tt as useGoalStore,
|
|
27577
27592
|
ao as useHelpStore,
|
|
27578
27593
|
Gn as useHoldingStore,
|