@mx-cartographer/experiences 6.2.9 → 6.3.0-alpha.mega1
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 +155 -164
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import Rt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as El, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as Fn, CategoryIcon as kt, DialogHeader as Sl, DialogFooter as Tl, Drawer as Al, Footer as Il, DateRangePicker as Xr, H3 as mt, H1 as
|
9
|
+
import { AccountsIcon as El, P as Oe, Icon as H, useTokens as ft, Text as p, H2 as Fn, CategoryIcon as kt, DialogHeader as Sl, DialogFooter as Tl, Drawer as Al, Footer as Il, DateRangePicker as Xr, H3 as mt, H1 as ln, TextField as An, IconWeight as bt, MerchantLogo as dn, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as xl, THEMES as qr } from "@mxenabled/mxui";
|
10
10
|
import vl from "bowser";
|
11
11
|
import { getUnixTime as Le } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as wl } from "date-fns/intlFormat";
|
@@ -32,7 +32,7 @@ import re from "@mui/material/ListItemText";
|
|
32
32
|
import xs from "@mui/material/Popover";
|
33
33
|
import b from "@mui/material/Stack";
|
34
34
|
import Xi from "@mui/material/Checkbox";
|
35
|
-
import { alpha as Nl, lighten as Zr, darken as Qr, Stack as ye, Box as
|
35
|
+
import { alpha as Nl, lighten as Zr, darken as Qr, Stack as ye, Box as an, useTheme as vn, Card as ca, CardContent as Dl, Button as Rl, List as Ol, Divider as Ll } from "@mui/material";
|
36
36
|
import pe from "@mui/material/styles/useTheme";
|
37
37
|
import Mn from "@mui/material/useMediaQuery";
|
38
38
|
import { css as Qt, keyframes as Ml } from "@mxenabled/cssinjs";
|
@@ -2069,7 +2069,7 @@ const ku = ({
|
|
2069
2069
|
return /* @__PURE__ */ l(ye, { style: { flexDirection: "row", gap: 25, ...i }, children: [
|
2070
2070
|
e.map((r, o) => /* @__PURE__ */ l(ye, { style: { alignItems: "center", flexDirection: "row" }, children: [
|
2071
2071
|
/* @__PURE__ */ t(
|
2072
|
-
|
2072
|
+
an,
|
2073
2073
|
{
|
2074
2074
|
sx: {
|
2075
2075
|
width: 10,
|
@@ -2253,7 +2253,7 @@ const ku = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Gi = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ta = () => Ze("useHoldingStore").globalStore.holdingStore, Ku = () => Ze("useMerchantStore").globalStore.merchantStore, zu = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore,
|
2256
|
+
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Gi = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, Sr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, lt = () => Ze("useBudgetsStore").globalStore.budgetsStore, Tr = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, nc = () => Ze("useConnectStore").globalStore.connectStore, Sa = () => Ze("useDebtsStore").globalStore.debtsStore, Ta = () => Ze("useGlobalStore").globalStore, ce = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, ot = () => Ze("useGoalStore").globalStore.goalStore, Ar = () => Ze("useHelpStore").globalStore.helpStore, ta = () => Ze("useHoldingStore").globalStore.holdingStore, Ku = () => Ze("useMerchantStore").globalStore.merchantStore, zu = () => Ze("useNetWorthStore").globalStore.netWorthStore, ic = () => Ze("useNotificationStore").globalStore.notificationStore, nt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, en = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), H2 = () => ({ onPageView: Ze().onPageView }), Yu = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(ec);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2345,7 +2345,7 @@ const ku = ({
|
|
2345
2345
|
xData: r
|
2346
2346
|
}) => {
|
2347
2347
|
const o = vn(), s = a.data[i], c = r[i];
|
2348
|
-
return s === void 0 || !c ? null : /* @__PURE__ */ t(ca, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Dl, { children: /* @__PURE__ */ l(
|
2348
|
+
return s === void 0 || !c ? null : /* @__PURE__ */ t(ca, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Dl, { children: /* @__PURE__ */ l(an, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2349
2349
|
/* @__PURE__ */ t(ac, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2350
2350
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "Small", children: ae(c, te.MONTH_SHORT_YEAR) }),
|
2351
2351
|
/* @__PURE__ */ t(Ye, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
@@ -3357,7 +3357,7 @@ const Dn = ({
|
|
3357
3357
|
p: T ? 48 : 24,
|
3358
3358
|
pb: 0
|
3359
3359
|
},
|
3360
|
-
title: T || x ? /* @__PURE__ */ t(
|
3360
|
+
title: T || x ? /* @__PURE__ */ t(ln, { children: m }) : /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
|
3361
3361
|
w && d && /* @__PURE__ */ t(
|
3362
3362
|
$e,
|
3363
3363
|
{
|
@@ -3460,7 +3460,7 @@ const yo = "connect_widget", Eo = "connections_widget", a_ = ({
|
|
3460
3460
|
] })
|
3461
3461
|
}
|
3462
3462
|
);
|
3463
|
-
}, di = A(a_),
|
3463
|
+
}, di = A(a_), tn = ({
|
3464
3464
|
allowDecimals: e = !0,
|
3465
3465
|
ariaLabel: n,
|
3466
3466
|
amount: i,
|
@@ -3820,7 +3820,7 @@ const yo = "connect_widget", Eo = "connections_widget", a_ = ({
|
|
3820
3820
|
)
|
3821
3821
|
]
|
3822
3822
|
}
|
3823
|
-
),
|
3823
|
+
), nn = A(
|
3824
3824
|
({
|
3825
3825
|
children: e,
|
3826
3826
|
isDisabled: n = !1,
|
@@ -3944,37 +3944,26 @@ const yo = "connect_widget", Eo = "connections_widget", a_ = ({
|
|
3944
3944
|
onToggle: i,
|
3945
3945
|
primaryText: a,
|
3946
3946
|
secondaryText: r = void 0
|
3947
|
-
}) =>
|
3948
|
-
|
3949
|
-
|
3950
|
-
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3959
|
-
|
3960
|
-
|
3961
|
-
|
3962
|
-
re,
|
3963
|
-
{
|
3964
|
-
primary: a,
|
3965
|
-
primaryTypographyProps: { fontWeight: 400, variant: "Body" },
|
3966
|
-
secondary: r,
|
3967
|
-
secondaryTypographyProps: {
|
3968
|
-
color: "text.secondary",
|
3969
|
-
maxWidth: o ? 240 : void 0,
|
3970
|
-
whiteSpace: "wrap",
|
3971
|
-
variant: "XSmall"
|
3972
|
-
}
|
3947
|
+
}) => /* @__PURE__ */ t(
|
3948
|
+
X,
|
3949
|
+
{
|
3950
|
+
secondaryAction: /* @__PURE__ */ t(ua, { checked: e, disabled: n, onChange: i, sx: { mr: 24 } }),
|
3951
|
+
children: /* @__PURE__ */ t(
|
3952
|
+
re,
|
3953
|
+
{
|
3954
|
+
primary: a,
|
3955
|
+
primaryTypographyProps: { fontWeight: 400, variant: "Body" },
|
3956
|
+
secondary: r,
|
3957
|
+
secondaryTypographyProps: {
|
3958
|
+
color: "text.secondary",
|
3959
|
+
maxWidth: "calc(100% - 60px)",
|
3960
|
+
variant: "XSmall",
|
3961
|
+
whiteSpace: "wrap"
|
3973
3962
|
}
|
3974
|
-
|
3975
|
-
|
3976
|
-
|
3977
|
-
|
3963
|
+
}
|
3964
|
+
)
|
3965
|
+
}
|
3966
|
+
);
|
3978
3967
|
class c_ {
|
3979
3968
|
globalStore;
|
3980
3969
|
api = new yi("/", "");
|
@@ -4334,7 +4323,7 @@ const ui = () => {
|
|
4334
4323
|
/* @__PURE__ */ t(Ye, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4335
4324
|
] });
|
4336
4325
|
}, Ir = A(C_), f_ = ({ onAddIncomeClick: e }) => {
|
4337
|
-
const n = pe(), { availableWidth: i } = Un(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } =
|
4326
|
+
const n = pe(), { availableWidth: i } = Un(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = en(), {
|
4338
4327
|
daysUntilNextIncome: _,
|
4339
4328
|
expensesTilNextIncome: u,
|
4340
4329
|
selectedCashAccounts: h,
|
@@ -4943,7 +4932,7 @@ const E_ = [
|
|
4943
4932
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4944
4933
|
return i.every((r) => a.indexOf(r) > -1);
|
4945
4934
|
};
|
4946
|
-
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), N_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(D_ || {}), R_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(R_ || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), sr = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(sr || {}), vt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(vt || {}), Ue = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ue || {}), St = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(St || {}), xr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(xr || {}), O_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(O_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), at = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(at || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}),
|
4935
|
+
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), N_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(N_ || {}), D_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(D_ || {}), R_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(R_ || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), sr = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(sr || {}), vt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(vt || {}), Ue = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ue || {}), St = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(St || {}), xr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(xr || {}), O_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(O_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), at = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(at || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), sn = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(sn || {});
|
4947
4936
|
const lc = {
|
4948
4937
|
account_guid: "",
|
4949
4938
|
amount: 0,
|
@@ -5246,7 +5235,7 @@ const It = () => {
|
|
5246
5235
|
onClick: n ? () => n(e.guid) : void 0,
|
5247
5236
|
children: [
|
5248
5237
|
/* @__PURE__ */ t(Ge, { children: e.parent_guid ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
|
5249
|
-
|
5238
|
+
dn,
|
5250
5239
|
{
|
5251
5240
|
categoryGuid: e.top_level_category_guid || "",
|
5252
5241
|
merchantGuid: e.merchant_guid || ""
|
@@ -5428,7 +5417,7 @@ const It = () => {
|
|
5428
5417
|
);
|
5429
5418
|
}, q_ = A(X_), hi = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", children: e.colDef.headerName }), Z_ = (e) => /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
5430
5419
|
/* @__PURE__ */ t(
|
5431
|
-
|
5420
|
+
dn,
|
5432
5421
|
{
|
5433
5422
|
categoryGuid: e.row.top_level_category_guid || "",
|
5434
5423
|
merchantGuid: e.row.merchant_guid || ""
|
@@ -6368,7 +6357,7 @@ const hc = ({ transaction: e }) => {
|
|
6368
6357
|
const { amount: n, description: i, isIncome: a, merchant_guid: r, payee: o, top_level_category_guid: s } = e;
|
6369
6358
|
return /* @__PURE__ */ l(b, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
6370
6359
|
/* @__PURE__ */ t(
|
6371
|
-
|
6360
|
+
dn,
|
6372
6361
|
{
|
6373
6362
|
categoryGuid: s || "",
|
6374
6363
|
merchantGuid: r || "",
|
@@ -6377,7 +6366,7 @@ const hc = ({ transaction: e }) => {
|
|
6377
6366
|
),
|
6378
6367
|
/* @__PURE__ */ l(b, { overflow: "hidden'", children: [
|
6379
6368
|
/* @__PURE__ */ t(p, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || o }),
|
6380
|
-
/* @__PURE__ */ l(
|
6369
|
+
/* @__PURE__ */ l(ln, { color: a ? "success.main" : "text.primary", truncate: !0, children: [
|
6381
6370
|
a ? "+" : "",
|
6382
6371
|
B(n, "0,0.00")
|
6383
6372
|
] })
|
@@ -6500,7 +6489,7 @@ const hc = ({ transaction: e }) => {
|
|
6500
6489
|
/* @__PURE__ */ t(Je, { item: !0, xs: 5, children: m ? /* @__PURE__ */ t("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ t(p, { children: B(r.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
|
6501
6490
|
/* @__PURE__ */ l(b, { alignItems: "start", direction: "row", gap: o.Spacing.XSmall, children: [
|
6502
6491
|
/* @__PURE__ */ t(
|
6503
|
-
|
6492
|
+
tn,
|
6504
6493
|
{
|
6505
6494
|
amount: d,
|
6506
6495
|
"aria-label": c.split_transaction_edit_split_amount,
|
@@ -7075,7 +7064,7 @@ const hc = ({ transaction: e }) => {
|
|
7075
7064
|
), a ? /* @__PURE__ */ t(M, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ l(b, { children: [
|
7076
7065
|
/* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
|
7077
7066
|
/* @__PURE__ */ t(Tt, { elevation: 2, sx: { borderRadius: "12px", width: 64 }, children: /* @__PURE__ */ t(
|
7078
|
-
|
7067
|
+
dn,
|
7079
7068
|
{
|
7080
7069
|
categoryGuid: i.top_level_category_guid || "",
|
7081
7070
|
merchantGuid: i.merchant_guid || "",
|
@@ -7084,7 +7073,7 @@ const hc = ({ transaction: e }) => {
|
|
7084
7073
|
) }),
|
7085
7074
|
/* @__PURE__ */ t(Vh, { transaction: i }),
|
7086
7075
|
/* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
7087
|
-
/* @__PURE__ */ l(
|
7076
|
+
/* @__PURE__ */ l(ln, { color: i.isIncome ? "success.main" : "text.primary", children: [
|
7088
7077
|
i.isIncome ? "+" : "",
|
7089
7078
|
B(i.amount, "0,0.00")
|
7090
7079
|
] }),
|
@@ -7163,7 +7152,7 @@ const hc = ({ transaction: e }) => {
|
|
7163
7152
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
7164
7153
|
children: [
|
7165
7154
|
/* @__PURE__ */ t(
|
7166
|
-
|
7155
|
+
tn,
|
7167
7156
|
{
|
7168
7157
|
allowDecimals: !0,
|
7169
7158
|
amount: s,
|
@@ -7293,7 +7282,7 @@ const hc = ({ transaction: e }) => {
|
|
7293
7282
|
tags: v,
|
7294
7283
|
transactions: w,
|
7295
7284
|
updateTransaction: x
|
7296
|
-
} = Se(), { common: R, transactions: D } = I(), { userProfile: $ } =
|
7285
|
+
} = Se(), { common: R, transactions: D } = I(), { userProfile: $ } = en(), { onEvent: O } = z(), {
|
7297
7286
|
displayedDateRange: L,
|
7298
7287
|
isCopyLoaded: U,
|
7299
7288
|
isInitialized: P,
|
@@ -7676,7 +7665,7 @@ const hc = ({ transaction: e }) => {
|
|
7676
7665
|
return /* @__PURE__ */ l(b, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
7677
7666
|
/* @__PURE__ */ l(b, { direction: "column", gap: 12, m: 24, children: [
|
7678
7667
|
/* @__PURE__ */ t(
|
7679
|
-
|
7668
|
+
dn,
|
7680
7669
|
{
|
7681
7670
|
categoryGuid: e.categoryGuid || "",
|
7682
7671
|
merchantGuid: e.merchantGuid || "",
|
@@ -7684,7 +7673,7 @@ const hc = ({ transaction: e }) => {
|
|
7684
7673
|
}
|
7685
7674
|
),
|
7686
7675
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
7687
|
-
/* @__PURE__ */ l(
|
7676
|
+
/* @__PURE__ */ l(ln, { color: T ? "success.main" : "text.primary", children: [
|
7688
7677
|
T ? "+" : "",
|
7689
7678
|
B(e.amount, "0,0.00")
|
7690
7679
|
] })
|
@@ -7830,7 +7819,7 @@ const hc = ({ transaction: e }) => {
|
|
7830
7819
|
s(e.sequenceGuid || e.scheduledPaymentGuid || ""), i(e);
|
7831
7820
|
}, children: [
|
7832
7821
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
7833
|
-
|
7822
|
+
dn,
|
7834
7823
|
{
|
7835
7824
|
categoryGuid: e.categoryGuid || "",
|
7836
7825
|
merchantGuid: e.merchantGuid || ""
|
@@ -9689,7 +9678,7 @@ const zg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9689
9678
|
]
|
9690
9679
|
}
|
9691
9680
|
), $o = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (mr(i.expectedDate) || Zt(i.expectedDate, n.start)) && we(i.expectedDate, n.end), em = () => {
|
9692
|
-
const [e, n] = g.useState(!1), { availableWidth: i } = Un(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } =
|
9681
|
+
const [e, n] = g.useState(!1), { availableWidth: i } = Un(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = nt(), { selectedAccountGuids: s } = ce(), { dateRange: c, selectedCashAccounts: d } = ui(), { userProfile: _ } = en(), u = g.useMemo(
|
9693
9682
|
() => r.filter($o(s, c)),
|
9694
9683
|
[c, s, r]
|
9695
9684
|
), h = g.useMemo(
|
@@ -9807,7 +9796,7 @@ const zg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9807
9796
|
}, tm = A(em), nm = ({ handleNextStep: e }) => {
|
9808
9797
|
const { completeOnboarding: n } = Tr(), { cashflow: i } = I(), a = pe();
|
9809
9798
|
return /* @__PURE__ */ l(b, { children: [
|
9810
|
-
/* @__PURE__ */ t(
|
9799
|
+
/* @__PURE__ */ t(ln, { pb: 12, children: i.welcome_title }),
|
9811
9800
|
/* @__PURE__ */ t(
|
9812
9801
|
Fn,
|
9813
9802
|
{
|
@@ -9881,7 +9870,7 @@ const zg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9881
9870
|
const { cashflow: e } = I();
|
9882
9871
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
9883
9872
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: Nc.CASHFLOW_LOADING_ANIMATION }) }),
|
9884
|
-
/* @__PURE__ */ t(
|
9873
|
+
/* @__PURE__ */ t(ln, { pb: 12, children: e.loading_title }),
|
9885
9874
|
/* @__PURE__ */ t(Oe, { children: e.loading_description })
|
9886
9875
|
] });
|
9887
9876
|
}, rm = A(am), om = Ul`
|
@@ -9957,7 +9946,7 @@ const zg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9957
9946
|
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
9958
9947
|
},
|
9959
9948
|
children: [
|
9960
|
-
/* @__PURE__ */ t(
|
9949
|
+
/* @__PURE__ */ t(ln, { pb: 12, children: a.add_income_title }),
|
9961
9950
|
/* @__PURE__ */ t(Oe, { mb: 24, children: a.add_income_description }),
|
9962
9951
|
O.length > 0 && !j && /* @__PURE__ */ l(Z, { children: [
|
9963
9952
|
/* @__PURE__ */ t(ie, { children: O.map((_e, Pe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -10065,7 +10054,7 @@ const zg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10065
10054
|
setSelectedAccounts: r,
|
10066
10055
|
shouldDisableNextDate: o,
|
10067
10056
|
shouldDisablePrevDate: s
|
10068
|
-
} = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Se(), { userProfile: u } =
|
10057
|
+
} = ce(), { onEvent: c } = z(), { visibleCashAccounts: d } = Re(), { setFilter: _ } = Se(), { userProfile: u } = en(), { dateRange: h, setSelectedCashAccounts: m } = ui(), { loadActivity: C } = nt(), { cashflow: f } = I(), { isCopyLoaded: E, isInitialized: y } = ce(), [T, v] = g.useState(!1);
|
10069
10058
|
return g.useEffect(() => {
|
10070
10059
|
y && C();
|
10071
10060
|
}, [y]), g.useEffect(() => {
|
@@ -10189,17 +10178,17 @@ class um {
|
|
10189
10178
|
await this.globalStore.userStore.updateUserProfile(n);
|
10190
10179
|
};
|
10191
10180
|
}
|
10192
|
-
var
|
10181
|
+
var rn = /* @__PURE__ */ ((e) => (e[e.HIGHEST_INTEREST = 1] = "HIGHEST_INTEREST", e[e.LOWEST_BALANCE = 2] = "LOWEST_BALANCE", e[e.HIGHEST_BALANCE = 3] = "HIGHEST_BALANCE", e))(rn || {});
|
10193
10182
|
const Dc = (e, n) => {
|
10194
10183
|
const i = e.filter((r) => !r.is_paid_off && !r.is_impossible), a = e.filter((r) => r.is_paid_off || r.is_impossible);
|
10195
10184
|
switch (n) {
|
10196
|
-
case
|
10185
|
+
case rn.HIGHEST_INTEREST:
|
10197
10186
|
i.sort((r, o) => (o.interest_rate ?? 0) - (r.interest_rate ?? 0));
|
10198
10187
|
break;
|
10199
|
-
case
|
10188
|
+
case rn.LOWEST_BALANCE:
|
10200
10189
|
i.sort((r, o) => r.balance - o.balance);
|
10201
10190
|
break;
|
10202
|
-
case
|
10191
|
+
case rn.HIGHEST_BALANCE:
|
10203
10192
|
i.sort((r, o) => o.balance - r.balance);
|
10204
10193
|
break;
|
10205
10194
|
default:
|
@@ -10354,7 +10343,7 @@ const Cn = () => {
|
|
10354
10343
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
10355
10344
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
10356
10345
|
/* @__PURE__ */ t(
|
10357
|
-
|
10346
|
+
an,
|
10358
10347
|
{
|
10359
10348
|
sx: {
|
10360
10349
|
display: "flex",
|
@@ -10410,7 +10399,7 @@ const Cn = () => {
|
|
10410
10399
|
] }),
|
10411
10400
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
10412
10401
|
/* @__PURE__ */ t(
|
10413
|
-
|
10402
|
+
an,
|
10414
10403
|
{
|
10415
10404
|
sx: {
|
10416
10405
|
width: 20,
|
@@ -10440,7 +10429,7 @@ const Cn = () => {
|
|
10440
10429
|
] }),
|
10441
10430
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
10442
10431
|
/* @__PURE__ */ t(
|
10443
|
-
|
10432
|
+
an,
|
10444
10433
|
{
|
10445
10434
|
sx: {
|
10446
10435
|
width: 20,
|
@@ -10481,7 +10470,7 @@ const Cn = () => {
|
|
10481
10470
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
10482
10471
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
10483
10472
|
/* @__PURE__ */ t(
|
10484
|
-
|
10473
|
+
an,
|
10485
10474
|
{
|
10486
10475
|
sx: {
|
10487
10476
|
display: "flex",
|
@@ -10537,7 +10526,7 @@ const Cn = () => {
|
|
10537
10526
|
] }),
|
10538
10527
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
10539
10528
|
/* @__PURE__ */ t(
|
10540
|
-
|
10529
|
+
an,
|
10541
10530
|
{
|
10542
10531
|
sx: {
|
10543
10532
|
width: 20,
|
@@ -10589,7 +10578,7 @@ const Cn = () => {
|
|
10589
10578
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
10590
10579
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
10591
10580
|
/* @__PURE__ */ t(
|
10592
|
-
|
10581
|
+
an,
|
10593
10582
|
{
|
10594
10583
|
sx: {
|
10595
10584
|
display: "flex",
|
@@ -11014,7 +11003,7 @@ const Lc = ({
|
|
11014
11003
|
}, 250);
|
11015
11004
|
};
|
11016
11005
|
return /* @__PURE__ */ t(
|
11017
|
-
|
11006
|
+
nn,
|
11018
11007
|
{
|
11019
11008
|
isDisabled: e.is_complete,
|
11020
11009
|
isSaveDisabled: d,
|
@@ -11047,7 +11036,7 @@ const Lc = ({
|
|
11047
11036
|
}, 250);
|
11048
11037
|
};
|
11049
11038
|
return /* @__PURE__ */ t(
|
11050
|
-
|
11039
|
+
nn,
|
11051
11040
|
{
|
11052
11041
|
isDisabled: e.is_complete,
|
11053
11042
|
isSaveDisabled: d,
|
@@ -11058,7 +11047,7 @@ const Lc = ({
|
|
11058
11047
|
secondaryText: B(e.monthly_payment, "0,0"),
|
11059
11048
|
zeroStateText: e.monthly_payment ? void 0 : n.add_monthly_payment,
|
11060
11049
|
children: /* @__PURE__ */ t(
|
11061
|
-
|
11050
|
+
tn,
|
11062
11051
|
{
|
11063
11052
|
amount: o,
|
11064
11053
|
autoFocus: !0,
|
@@ -11081,7 +11070,7 @@ const Lc = ({
|
|
11081
11070
|
}, 250);
|
11082
11071
|
};
|
11083
11072
|
return /* @__PURE__ */ t(
|
11084
|
-
|
11073
|
+
nn,
|
11085
11074
|
{
|
11086
11075
|
isDisabled: e.is_complete,
|
11087
11076
|
isSaveDisabled: d,
|
@@ -11092,7 +11081,7 @@ const Lc = ({
|
|
11092
11081
|
secondaryText: B(e.initial_amount, "0,0"),
|
11093
11082
|
zeroStateText: !e.initial_amount && !e.is_complete ? n.add_original_balance : void 0,
|
11094
11083
|
children: /* @__PURE__ */ t(
|
11095
|
-
|
11084
|
+
tn,
|
11096
11085
|
{
|
11097
11086
|
amount: o,
|
11098
11087
|
autoFocus: !0,
|
@@ -11114,7 +11103,7 @@ const Lc = ({
|
|
11114
11103
|
}, 250);
|
11115
11104
|
};
|
11116
11105
|
return /* @__PURE__ */ t(
|
11117
|
-
|
11106
|
+
nn,
|
11118
11107
|
{
|
11119
11108
|
isSaveDisabled: s,
|
11120
11109
|
label: `${n.details_interest_rate} (%)`,
|
@@ -11144,7 +11133,7 @@ const Lc = ({
|
|
11144
11133
|
}, 250);
|
11145
11134
|
};
|
11146
11135
|
return /* @__PURE__ */ t(
|
11147
|
-
|
11136
|
+
nn,
|
11148
11137
|
{
|
11149
11138
|
isSaveDisabled: s,
|
11150
11139
|
label: n.details_monthly_payment,
|
@@ -11154,7 +11143,7 @@ const Lc = ({
|
|
11154
11143
|
secondaryText: B(e.monthly_payment, "0,0"),
|
11155
11144
|
zeroStateText: e.monthly_payment ? void 0 : n.add_monthly_payment,
|
11156
11145
|
children: /* @__PURE__ */ t(
|
11157
|
-
|
11146
|
+
tn,
|
11158
11147
|
{
|
11159
11148
|
amount: r,
|
11160
11149
|
autoFocus: !0,
|
@@ -11176,7 +11165,7 @@ const Lc = ({
|
|
11176
11165
|
}, 250);
|
11177
11166
|
};
|
11178
11167
|
return /* @__PURE__ */ t(
|
11179
|
-
|
11168
|
+
nn,
|
11180
11169
|
{
|
11181
11170
|
isSaveDisabled: s,
|
11182
11171
|
label: n.details_original_balance,
|
@@ -11186,7 +11175,7 @@ const Lc = ({
|
|
11186
11175
|
secondaryText: B(e.original_balance, "0,0"),
|
11187
11176
|
zeroStateText: e.original_balance ? void 0 : n.add_original_balance,
|
11188
11177
|
children: /* @__PURE__ */ t(
|
11189
|
-
|
11178
|
+
tn,
|
11190
11179
|
{
|
11191
11180
|
amount: r,
|
11192
11181
|
autoFocus: !0,
|
@@ -11328,7 +11317,7 @@ const Lc = ({
|
|
11328
11317
|
}, 250);
|
11329
11318
|
};
|
11330
11319
|
return /* @__PURE__ */ t(
|
11331
|
-
|
11320
|
+
nn,
|
11332
11321
|
{
|
11333
11322
|
isSaveDisabled: s,
|
11334
11323
|
label: e.paydown_drawer_extra_payment,
|
@@ -11338,7 +11327,7 @@ const Lc = ({
|
|
11338
11327
|
secondaryText: B(n?.extra_payment, "0,0"),
|
11339
11328
|
zeroStateText: n?.extra_payment ? void 0 : e.add_extra_payment,
|
11340
11329
|
children: /* @__PURE__ */ t(
|
11341
|
-
|
11330
|
+
tn,
|
11342
11331
|
{
|
11343
11332
|
amount: r,
|
11344
11333
|
autoFocus: !0,
|
@@ -11619,15 +11608,15 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11619
11608
|
}, ap = A(({ buttonEl: e, onClose: n }) => {
|
11620
11609
|
const { onEvent: i } = z(), { debts: a } = I(), { selectedDebtPriority: r, setSelectedDebtPriority: o } = Cn(), s = !!e, c = [
|
11621
11610
|
{
|
11622
|
-
priority:
|
11611
|
+
priority: rn.HIGHEST_INTEREST,
|
11623
11612
|
text: a.priority_sort_highest_interest
|
11624
11613
|
},
|
11625
11614
|
{
|
11626
|
-
priority:
|
11615
|
+
priority: rn.LOWEST_BALANCE,
|
11627
11616
|
text: a.priority_sort_lowest_balance
|
11628
11617
|
},
|
11629
11618
|
{
|
11630
|
-
priority:
|
11619
|
+
priority: rn.HIGHEST_BALANCE,
|
11631
11620
|
text: a.priority_sort_highest_balance
|
11632
11621
|
}
|
11633
11622
|
], d = (_) => {
|
@@ -11681,9 +11670,9 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11681
11670
|
}, s = () => {
|
11682
11671
|
r(null);
|
11683
11672
|
}, c = !!a, d = g.useMemo(() => ({
|
11684
|
-
[
|
11685
|
-
[
|
11686
|
-
[
|
11673
|
+
[rn.HIGHEST_INTEREST]: n.priority_sort_highest_interest,
|
11674
|
+
[rn.HIGHEST_BALANCE]: n.priority_sort_highest_balance,
|
11675
|
+
[rn.LOWEST_BALANCE]: n.priority_sort_lowest_balance
|
11687
11676
|
})[i] ?? n.priority_sort_lowest_balance, [i]);
|
11688
11677
|
return /* @__PURE__ */ l(ye, { children: [
|
11689
11678
|
/* @__PURE__ */ t(ip, { buttonText: d, isOpen: c, onClick: o }),
|
@@ -11850,7 +11839,7 @@ function Uo(e, n) {
|
|
11850
11839
|
class up {
|
11851
11840
|
isLoading = !1;
|
11852
11841
|
selectedDebtChartData = {};
|
11853
|
-
selectedDebtPriority =
|
11842
|
+
selectedDebtPriority = rn.LOWEST_BALANCE;
|
11854
11843
|
constructor() {
|
11855
11844
|
Be(this);
|
11856
11845
|
}
|
@@ -12043,7 +12032,7 @@ const mp = (e, n) => {
|
|
12043
12032
|
}
|
12044
12033
|
};
|
12045
12034
|
return /* @__PURE__ */ t(b, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
12046
|
-
|
12035
|
+
nn,
|
12047
12036
|
{
|
12048
12037
|
isSaveDisabled: !s || isNaN(s),
|
12049
12038
|
label: n.contribution_label,
|
@@ -12052,7 +12041,7 @@ const mp = (e, n) => {
|
|
12052
12041
|
primaryText: n.contribution_label,
|
12053
12042
|
secondaryText: B(o, "0,0.00"),
|
12054
12043
|
children: /* @__PURE__ */ t(
|
12055
|
-
|
12044
|
+
tn,
|
12056
12045
|
{
|
12057
12046
|
amount: s,
|
12058
12047
|
autoFocus: !0,
|
@@ -12498,7 +12487,7 @@ const mp = (e, n) => {
|
|
12498
12487
|
}, 250);
|
12499
12488
|
};
|
12500
12489
|
return /* @__PURE__ */ t(
|
12501
|
-
|
12490
|
+
nn,
|
12502
12491
|
{
|
12503
12492
|
isDisabled: _,
|
12504
12493
|
isSaveDisabled: d,
|
@@ -12509,7 +12498,7 @@ const mp = (e, n) => {
|
|
12509
12498
|
secondaryText: B(e.amount, "0,0"),
|
12510
12499
|
zeroStateText: c && e.amount === 0 ? n.add_amount : void 0,
|
12511
12500
|
children: /* @__PURE__ */ t(
|
12512
|
-
|
12501
|
+
tn,
|
12513
12502
|
{
|
12514
12503
|
amount: o,
|
12515
12504
|
autoFocus: !0,
|
@@ -12603,7 +12592,7 @@ const mp = (e, n) => {
|
|
12603
12592
|
}, 250);
|
12604
12593
|
};
|
12605
12594
|
return /* @__PURE__ */ t(
|
12606
|
-
|
12595
|
+
nn,
|
12607
12596
|
{
|
12608
12597
|
isDisabled: d,
|
12609
12598
|
isSaveDisabled: !o,
|
@@ -12636,7 +12625,7 @@ const mp = (e, n) => {
|
|
12636
12625
|
}, 250);
|
12637
12626
|
}, u = !o || isNaN(o) || o < 20 || o >= 100;
|
12638
12627
|
return /* @__PURE__ */ t(
|
12639
|
-
|
12628
|
+
nn,
|
12640
12629
|
{
|
12641
12630
|
isDisabled: e.is_complete,
|
12642
12631
|
isSaveDisabled: u,
|
@@ -12659,11 +12648,11 @@ const mp = (e, n) => {
|
|
12659
12648
|
}
|
12660
12649
|
);
|
12661
12650
|
}, wp = A(({ goal: e }) => {
|
12662
|
-
const { goals: n } = I(), { user: i, updateUser: a } =
|
12651
|
+
const { goals: n } = I(), { user: i, updateUser: a } = en(), { setAlert: r } = ot(), [o, s] = g.useState(Me(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
12663
12652
|
o && hr(o) && (await a({ ...i, birthday: Le(o) }), r(n.alert_goal_updated_birthday));
|
12664
12653
|
};
|
12665
12654
|
return /* @__PURE__ */ t(
|
12666
|
-
|
12655
|
+
nn,
|
12667
12656
|
{
|
12668
12657
|
isDisabled: _,
|
12669
12658
|
isSaveDisabled: !!c,
|
@@ -12785,7 +12774,7 @@ const mp = (e, n) => {
|
|
12785
12774
|
setAlert: d,
|
12786
12775
|
setSelectedGoal: _,
|
12787
12776
|
updateGoal: u
|
12788
|
-
} = ot(), { user: h } =
|
12777
|
+
} = ot(), { user: h } = en(), [m, C] = g.useState(!1), f = !c?.guid, E = c?.track_type === K.SAVINGS_TRACK && c.is_complete && !c.has_been_spent, y = g.useMemo(() => c ? c.track_type === K.SAVINGS_TRACK ? !!c.name && !!c.amount : c.track_type === K.DEBT_TRACK ? !0 : c.track_type === K.RETIREMENT_TRACK ? !!c.name && !!c.amount && !!c.retirement_age && !!h.birthday : !0 : !1, [c]);
|
12789
12778
|
let T = i.delete_button, v = () => C(!0);
|
12790
12779
|
f ? (v = () => w(), T = i.save_button) : E && (v = () => R(), T = n.mark_as_complete_button);
|
12791
12780
|
const w = async () => {
|
@@ -13608,7 +13597,7 @@ const Kp = /^[ a-zA-ZÀ-ÿ0-9]+$/, zp = 50, Zo = 65, Yp = ({
|
|
13608
13597
|
width: "100%",
|
13609
13598
|
children: [
|
13610
13599
|
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: () => _(f.guid), children: [
|
13611
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
13600
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(dn, { categoryGuid: "", merchantGuid: f.guid }) }),
|
13612
13601
|
/* @__PURE__ */ t(re, { primary: f.name })
|
13613
13602
|
] }) }),
|
13614
13603
|
/* @__PURE__ */ t(G, { sx: { ml: 24 } })
|
@@ -14400,11 +14389,11 @@ const y1 = (e, n) => {
|
|
14400
14389
|
r().finally();
|
14401
14390
|
}), []), /* @__PURE__ */ l(Ol, { sx: { p: 16 }, children: [
|
14402
14391
|
(!s || n) && /* @__PURE__ */ t(ue, { label: o?.loading, size: 40 }),
|
14403
|
-
s && !n && a.length === 0 && /* @__PURE__ */ t(
|
14392
|
+
s && !n && a.length === 0 && /* @__PURE__ */ t(an, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: o.no_notifications }) }),
|
14404
14393
|
s && !n && a.slice().sort((d, _) => _.delivered_at - d.delivered_at).map((d, _) => {
|
14405
14394
|
const u = y1(_, a);
|
14406
|
-
return /* @__PURE__ */ l(
|
14407
|
-
u && /* @__PURE__ */ l(
|
14395
|
+
return /* @__PURE__ */ l(an, { sx: { mb: 12 }, children: [
|
14396
|
+
u && /* @__PURE__ */ l(an, { sx: { mb: 12 }, children: [
|
14408
14397
|
/* @__PURE__ */ t(A1, { date: d.delivered_at }),
|
14409
14398
|
/* @__PURE__ */ t(Ll, {})
|
14410
14399
|
] }),
|
@@ -14802,7 +14791,7 @@ const O1 = ({
|
|
14802
14791
|
}) => /* @__PURE__ */ l(Z, { children: [
|
14803
14792
|
/* @__PURE__ */ t(M, { sx: { pb: 48, ...i }, children: e }),
|
14804
14793
|
n && /* @__PURE__ */ t(G, {})
|
14805
|
-
] }),
|
14794
|
+
] }), on = ({
|
14806
14795
|
altImage: e,
|
14807
14796
|
content: n,
|
14808
14797
|
hasDivider: i = !0,
|
@@ -14840,7 +14829,7 @@ const O1 = ({
|
|
14840
14829
|
] }) }),
|
14841
14830
|
i && /* @__PURE__ */ t(G, {})
|
14842
14831
|
] });
|
14843
|
-
},
|
14832
|
+
}, cn = ({
|
14844
14833
|
altImage: e,
|
14845
14834
|
content: n,
|
14846
14835
|
hasDivider: i = !0,
|
@@ -14938,7 +14927,7 @@ const O1 = ({
|
|
14938
14927
|
}, L1 = ({ copy: e, topicKey: n }) => ({
|
14939
14928
|
"accounts-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
14940
14929
|
/* @__PURE__ */ t(
|
14941
|
-
|
14930
|
+
on,
|
14942
14931
|
{
|
14943
14932
|
altImage: e.accounts_overview.alt_image,
|
14944
14933
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -14995,7 +14984,7 @@ const O1 = ({
|
|
14995
14984
|
),
|
14996
14985
|
/* @__PURE__ */ t(fe, { content: e.accounts_overview.add_account_title, sx: { pt: 48 } }),
|
14997
14986
|
/* @__PURE__ */ t(
|
14998
|
-
|
14987
|
+
cn,
|
14999
14988
|
{
|
15000
14989
|
altImage: e.accounts_overview.alt_image_manage_connections,
|
15001
14990
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15176,7 +15165,7 @@ const O1 = ({
|
|
15176
15165
|
return {
|
15177
15166
|
"budgets-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
15178
15167
|
/* @__PURE__ */ t(
|
15179
|
-
|
15168
|
+
on,
|
15180
15169
|
{
|
15181
15170
|
altImage: i.overview_alt_image,
|
15182
15171
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15230,7 +15219,7 @@ const O1 = ({
|
|
15230
15219
|
),
|
15231
15220
|
/* @__PURE__ */ t(fe, { content: i.create_budget_title, sx: { pt: 48 } }),
|
15232
15221
|
/* @__PURE__ */ t(
|
15233
|
-
|
15222
|
+
on,
|
15234
15223
|
{
|
15235
15224
|
altImage: i.create_budget_alt_image,
|
15236
15225
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
@@ -15264,7 +15253,7 @@ const O1 = ({
|
|
15264
15253
|
}, k1 = ({ copy: e, topicKey: n }) => ({
|
15265
15254
|
"cash-flow-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
15266
15255
|
/* @__PURE__ */ t(
|
15267
|
-
|
15256
|
+
on,
|
15268
15257
|
{
|
15269
15258
|
altImage: e.cashflow_overview.alt_image,
|
15270
15259
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15288,7 +15277,7 @@ const O1 = ({
|
|
15288
15277
|
}
|
15289
15278
|
),
|
15290
15279
|
/* @__PURE__ */ t(
|
15291
|
-
|
15280
|
+
on,
|
15292
15281
|
{
|
15293
15282
|
altImage: e.cashflow_overview.alt_image_expense_details,
|
15294
15283
|
content: /* @__PURE__ */ t(
|
@@ -15313,7 +15302,7 @@ const O1 = ({
|
|
15313
15302
|
}
|
15314
15303
|
),
|
15315
15304
|
/* @__PURE__ */ t(
|
15316
|
-
|
15305
|
+
on,
|
15317
15306
|
{
|
15318
15307
|
altImage: e.cashflow_overview.alt_image_manage_expenses,
|
15319
15308
|
content: /* @__PURE__ */ t(F, { content: e.cashflow_overview.manage_expenses_instruction, sx: { mt: 24 } }),
|
@@ -15325,7 +15314,7 @@ const O1 = ({
|
|
15325
15314
|
})[n], G1 = ({ copy: e }) => {
|
15326
15315
|
const n = e.debts, i = {
|
15327
15316
|
overviewSection: /* @__PURE__ */ t(
|
15328
|
-
|
15317
|
+
cn,
|
15329
15318
|
{
|
15330
15319
|
altImage: n.overview_image_alt,
|
15331
15320
|
content: /* @__PURE__ */ t(
|
@@ -15343,7 +15332,7 @@ const O1 = ({
|
|
15343
15332
|
}
|
15344
15333
|
),
|
15345
15334
|
snowballMethod: /* @__PURE__ */ t(
|
15346
|
-
|
15335
|
+
on,
|
15347
15336
|
{
|
15348
15337
|
altImage: n.snowball_method,
|
15349
15338
|
content: /* @__PURE__ */ t(F, { content: n.snowball_method_desc, sx: { mt: 24 } }),
|
@@ -15748,7 +15737,7 @@ const O1 = ({
|
|
15748
15737
|
),
|
15749
15738
|
/* @__PURE__ */ t(fe, { content: n.create_goal_section_title, sx: { pt: 48 } }),
|
15750
15739
|
/* @__PURE__ */ t(
|
15751
|
-
|
15740
|
+
cn,
|
15752
15741
|
{
|
15753
15742
|
altImage: "create_goal",
|
15754
15743
|
content: /* @__PURE__ */ t(
|
@@ -15900,7 +15889,7 @@ const O1 = ({
|
|
15900
15889
|
const n = e.investments;
|
15901
15890
|
return {
|
15902
15891
|
overviewSection: /* @__PURE__ */ t(
|
15903
|
-
|
15892
|
+
cn,
|
15904
15893
|
{
|
15905
15894
|
altImage: n.overview,
|
15906
15895
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15962,7 +15951,7 @@ const O1 = ({
|
|
15962
15951
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
15963
15952
|
/* @__PURE__ */ t(F, { content: n.mobile_devices_overview_header_text }),
|
15964
15953
|
/* @__PURE__ */ t(
|
15965
|
-
|
15954
|
+
cn,
|
15966
15955
|
{
|
15967
15956
|
altImage: n.alt_image_add_mobile_devices,
|
15968
15957
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16037,7 +16026,7 @@ const O1 = ({
|
|
16037
16026
|
return {
|
16038
16027
|
"net-worth-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
16039
16028
|
/* @__PURE__ */ t(
|
16040
|
-
|
16029
|
+
cn,
|
16041
16030
|
{
|
16042
16031
|
altImage: i.alt_image_net_worth_overview,
|
16043
16032
|
content: /* @__PURE__ */ t(
|
@@ -16165,7 +16154,7 @@ const O1 = ({
|
|
16165
16154
|
}, W1 = ({ copy: e, topicKey: n }) => ({
|
16166
16155
|
"notifications-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
16167
16156
|
/* @__PURE__ */ t(
|
16168
|
-
|
16157
|
+
on,
|
16169
16158
|
{
|
16170
16159
|
altImage: e.notifications_overview.alt_image,
|
16171
16160
|
content: /* @__PURE__ */ t(
|
@@ -16190,7 +16179,7 @@ const O1 = ({
|
|
16190
16179
|
}
|
16191
16180
|
),
|
16192
16181
|
/* @__PURE__ */ t(
|
16193
|
-
|
16182
|
+
on,
|
16194
16183
|
{
|
16195
16184
|
altImage: e.notifications_overview.alt_image_managing_notifications,
|
16196
16185
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
@@ -16274,7 +16263,7 @@ const O1 = ({
|
|
16274
16263
|
})[n], U1 = ({ copy: e }) => {
|
16275
16264
|
const n = e.recurring_transactions, i = {
|
16276
16265
|
overviewSsction: /* @__PURE__ */ t(
|
16277
|
-
|
16266
|
+
cn,
|
16278
16267
|
{
|
16279
16268
|
altImage: n.overview_alt_image,
|
16280
16269
|
content: /* @__PURE__ */ t(
|
@@ -16368,7 +16357,7 @@ const O1 = ({
|
|
16368
16357
|
return {
|
16369
16358
|
"spending-widget-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
16370
16359
|
/* @__PURE__ */ t(
|
16371
|
-
|
16360
|
+
cn,
|
16372
16361
|
{
|
16373
16362
|
altImage: i.alt_image,
|
16374
16363
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16467,7 +16456,7 @@ const O1 = ({
|
|
16467
16456
|
}, K1 = ({ copy: e, topicKey: n }) => ({
|
16468
16457
|
"transactions-overview": /* @__PURE__ */ l(g.Fragment, { children: [
|
16469
16458
|
/* @__PURE__ */ t(
|
16470
|
-
|
16459
|
+
cn,
|
16471
16460
|
{
|
16472
16461
|
altImage: e.transactions_widget_overview.widget_overview_alt_image,
|
16473
16462
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16506,7 +16495,7 @@ const O1 = ({
|
|
16506
16495
|
}
|
16507
16496
|
),
|
16508
16497
|
/* @__PURE__ */ t(
|
16509
|
-
|
16498
|
+
on,
|
16510
16499
|
{
|
16511
16500
|
altImage: e.transactions_widget_overview.edit_transactions_alt_image,
|
16512
16501
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16802,7 +16791,7 @@ const O1 = ({
|
|
16802
16791
|
)
|
16803
16792
|
] }),
|
16804
16793
|
"exporting-transactions": /* @__PURE__ */ t(
|
16805
|
-
|
16794
|
+
cn,
|
16806
16795
|
{
|
16807
16796
|
altImage: e.export_transactions.export_transactions_alt_image,
|
16808
16797
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16842,7 +16831,7 @@ const O1 = ({
|
|
16842
16831
|
)
|
16843
16832
|
})[n], z1 = ({ copy: e }) => /* @__PURE__ */ l(g.Fragment, { children: [
|
16844
16833
|
/* @__PURE__ */ t(
|
16845
|
-
|
16834
|
+
cn,
|
16846
16835
|
{
|
16847
16836
|
altImage: e.trends_widget_overview.widget_overview_alt_image,
|
16848
16837
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16954,7 +16943,7 @@ const O1 = ({
|
|
16954
16943
|
),
|
16955
16944
|
/* @__PURE__ */ t(fe, { content: i.dashboard_insights_section_title, sx: { mt: 48 } }),
|
16956
16945
|
/* @__PURE__ */ t(
|
16957
|
-
|
16946
|
+
on,
|
16958
16947
|
{
|
16959
16948
|
altImage: i.alt_image_dashboard_insights,
|
16960
16949
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -17704,7 +17693,7 @@ const O1 = ({
|
|
17704
17693
|
] }) });
|
17705
17694
|
}, dC = A(
|
17706
17695
|
({ copy: e, isOpen: n, onClose: i }) => {
|
17707
|
-
const { alert: a, createSupportTicket: r, isLoading: o, setAlert: s } = Ar(), { user: c } =
|
17696
|
+
const { alert: a, createSupportTicket: r, isLoading: o, setAlert: s } = Ar(), { user: c } = en(), { isInitialized: d } = ce(), [_, u] = g.useState(""), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState({
|
17708
17697
|
isOpen: !1,
|
17709
17698
|
topic: "",
|
17710
17699
|
type: void 0
|
@@ -17892,7 +17881,7 @@ const O1 = ({
|
|
17892
17881
|
)
|
17893
17882
|
] });
|
17894
17883
|
}, _C = A(uC), hC = A(() => {
|
17895
|
-
const { common: e, settings: n } = I(), { sendEmailVerification: i } = Ht(), { user: a } =
|
17884
|
+
const { common: e, settings: n } = I(), { sendEmailVerification: i } = Ht(), { user: a } = en(), r = pe(), [o, s] = g.useState(!1), c = () => {
|
17896
17885
|
s(!1);
|
17897
17886
|
}, d = () => {
|
17898
17887
|
s(!0);
|
@@ -17966,7 +17955,7 @@ const O1 = ({
|
|
17966
17955
|
);
|
17967
17956
|
}
|
17968
17957
|
), mC = A(() => {
|
17969
|
-
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } = Ht(), { user: r } =
|
17958
|
+
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } = Ht(), { user: r } = en(), o = pe(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), u = () => {
|
17970
17959
|
c(!1);
|
17971
17960
|
}, h = () => {
|
17972
17961
|
c(!0);
|
@@ -18031,7 +18020,7 @@ const O1 = ({
|
|
18031
18020
|
)
|
18032
18021
|
] });
|
18033
18022
|
}), pC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Gi(), { updateUser: d } = Ht(), { user: _ } =
|
18023
|
+
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Gi(), { updateUser: d } = Ht(), { user: _ } = en(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
18035
18024
|
g.useEffect(() => {
|
18036
18025
|
if (_.birthday) {
|
18037
18026
|
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
@@ -18731,8 +18720,8 @@ const fC = ({
|
|
18731
18720
|
/* @__PURE__ */ t(ie, { children: i.map((o, s) => /* @__PURE__ */ t(vC, { rule: o }, s)) })
|
18732
18721
|
] });
|
18733
18722
|
}), NC = A(() => {
|
18734
|
-
const { settings: e } = I(), { clientCommunicationProfile: n, updateUserCommunicationsProfile: i, userCommunicationsProfile: a } = Ht(), r = async (
|
18735
|
-
await i(
|
18723
|
+
const { settings: e } = I(), { clientCommunicationProfile: n, updateUserCommunicationsProfile: i, userCommunicationsProfile: a } = Ht(), { user: r } = en(), o = async (s) => {
|
18724
|
+
await i(s);
|
18736
18725
|
};
|
18737
18726
|
return /* @__PURE__ */ l(b, { children: [
|
18738
18727
|
/* @__PURE__ */ t(mt, { sx: { mt: 24 }, children: e.delivery_method_title }),
|
@@ -18740,8 +18729,9 @@ const fC = ({
|
|
18740
18729
|
/* @__PURE__ */ t(
|
18741
18730
|
ti,
|
18742
18731
|
{
|
18743
|
-
isChecked: !a.opted_out_of_email_notifications,
|
18744
|
-
|
18732
|
+
isChecked: !!r.email && !a.opted_out_of_email_notifications,
|
18733
|
+
isDisabled: !r.email,
|
18734
|
+
onToggle: () => o({
|
18745
18735
|
...a,
|
18746
18736
|
opted_out_of_email_notifications: !a.opted_out_of_email_notifications
|
18747
18737
|
}),
|
@@ -18754,8 +18744,9 @@ const fC = ({
|
|
18754
18744
|
/* @__PURE__ */ t(
|
18755
18745
|
ti,
|
18756
18746
|
{
|
18757
|
-
isChecked: !a.opted_out_of_sms_notifications,
|
18758
|
-
|
18747
|
+
isChecked: !!r.phone && !a.opted_out_of_sms_notifications,
|
18748
|
+
isDisabled: !r.phone,
|
18749
|
+
onToggle: () => o({
|
18759
18750
|
...a,
|
18760
18751
|
opted_out_of_sms_notifications: !a.opted_out_of_sms_notifications
|
18761
18752
|
}),
|
@@ -18836,7 +18827,7 @@ const fC = ({
|
|
18836
18827
|
views: ["day"]
|
18837
18828
|
}
|
18838
18829
|
) }) : /* @__PURE__ */ t(
|
18839
|
-
|
18830
|
+
tn,
|
18840
18831
|
{
|
18841
18832
|
amount: d,
|
18842
18833
|
autoFocus: !0,
|
@@ -18852,7 +18843,7 @@ const fC = ({
|
|
18852
18843
|
}
|
18853
18844
|
), RC = A(
|
18854
18845
|
({ onUpdateProfile: e, profile: n }) => {
|
18855
|
-
const { settings: i } = I(), { user: a } =
|
18846
|
+
const { settings: i } = I(), { user: a } = en(), { clientCommunicationProfile: r, userCommunicationsProfile: o } = Ht(), s = n.notification_type > 2, {
|
18856
18847
|
opted_out_of_email_notifications: c,
|
18857
18848
|
opted_out_of_push_notifications: d,
|
18858
18849
|
opted_out_of_sms_notifications: _
|
@@ -19071,20 +19062,20 @@ const qc = A(
|
|
19071
19062
|
);
|
19072
19063
|
}), n4 = A(
|
19073
19064
|
({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
|
19074
|
-
const { notifications: r } = I(), { isCopyLoaded: o } = ce(),
|
19065
|
+
const { notifications: r } = I(), { isCopyLoaded: o } = ce(), { isMobile: s } = ve(), [c, d] = g.useState(!1);
|
19075
19066
|
return o ? /* @__PURE__ */ l(
|
19076
19067
|
ne,
|
19077
19068
|
{
|
19078
|
-
ariaLabelClose:
|
19069
|
+
ariaLabelClose: c ? r.close_notification_settings : r.close_notifications,
|
19079
19070
|
isOpen: n,
|
19080
|
-
onClose: () =>
|
19071
|
+
onClose: () => c ? d(!1) : i(),
|
19081
19072
|
title: r.notifications_title,
|
19082
19073
|
children: [
|
19083
|
-
!
|
19074
|
+
!c && /* @__PURE__ */ t(
|
19084
19075
|
$e,
|
19085
19076
|
{
|
19086
19077
|
"aria-label": "Open notification settings",
|
19087
|
-
onClick: () =>
|
19078
|
+
onClick: () => d(!0),
|
19088
19079
|
sx: {
|
19089
19080
|
position: "absolute",
|
19090
19081
|
right: 8,
|
@@ -19093,7 +19084,7 @@ const qc = A(
|
|
19093
19084
|
children: /* @__PURE__ */ t(ud, { size: 24 })
|
19094
19085
|
}
|
19095
19086
|
),
|
19096
|
-
|
19087
|
+
c ? /* @__PURE__ */ t(b, { sx: { mx: s ? 0 : 24 }, children: /* @__PURE__ */ t(qc, { notificationTypes: e }) }) : /* @__PURE__ */ t(x1, { onClick: a })
|
19097
19088
|
]
|
19098
19089
|
}
|
19099
19090
|
) : /* @__PURE__ */ t(ue, {});
|
@@ -19234,7 +19225,7 @@ const OC = (e) => {
|
|
19234
19225
|
recurrenceDay: e.recurrence_day,
|
19235
19226
|
repeatingTransactionGuid: e.guid,
|
19236
19227
|
status: at.Upcoming,
|
19237
|
-
type: e.repeating_transaction_type ===
|
19228
|
+
type: e.repeating_transaction_type === sn.Income ? Yt.Income : Yt.Expense,
|
19238
19229
|
transaction: void 0
|
19239
19230
|
}, o = Fe(le()), s = Mt(le(), 30);
|
19240
19231
|
switch (e.recurrence_type) {
|
@@ -20104,7 +20095,7 @@ const Xa = ({
|
|
20104
20095
|
] });
|
20105
20096
|
case xt.Currency:
|
20106
20097
|
return /* @__PURE__ */ t(
|
20107
|
-
|
20098
|
+
tn,
|
20108
20099
|
{
|
20109
20100
|
amount: s || "",
|
20110
20101
|
fullWidth: !0,
|
@@ -21802,7 +21793,7 @@ const Bf = ({
|
|
21802
21793
|
/* @__PURE__ */ t(p, { children: S(a.add_description_bottom, n) })
|
21803
21794
|
] }),
|
21804
21795
|
/* @__PURE__ */ t(
|
21805
|
-
|
21796
|
+
tn,
|
21806
21797
|
{
|
21807
21798
|
amount: e,
|
21808
21799
|
autoFocus: !0,
|
@@ -21874,7 +21865,7 @@ const Bf = ({
|
|
21874
21865
|
];
|
21875
21866
|
return /* @__PURE__ */ t(Gt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Bt, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
21876
21867
|
/* @__PURE__ */ t(kt, { categoryGuid: r, size: 56 }),
|
21877
|
-
/* @__PURE__ */ t(
|
21868
|
+
/* @__PURE__ */ t(ln, { children: `${B(s, "0,0")} / ${B(n, "0,0")}` }),
|
21878
21869
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
21879
21870
|
/* @__PURE__ */ t(oi, { data: c, height: 10 })
|
21880
21871
|
] }) }) });
|
@@ -22522,7 +22513,7 @@ const Bf = ({
|
|
22522
22513
|
};
|
22523
22514
|
return /* @__PURE__ */ t(Tt, { sx: { gap: 12, mb: o ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
22524
22515
|
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
22525
|
-
/* @__PURE__ */ t(
|
22516
|
+
/* @__PURE__ */ t(ln, { children: (() => {
|
22526
22517
|
const _ = (/* @__PURE__ */ new Date()).getHours();
|
22527
22518
|
return _ > 1 && _ < 12 ? a.good_morning : _ >= 12 && _ < 18 ? a.good_afternoon : a.good_evening;
|
22528
22519
|
})() }),
|
@@ -23214,7 +23205,7 @@ const o0 = ({ widgets: e, isLoading: n }) => {
|
|
23214
23205
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
23215
23206
|
/* @__PURE__ */ l(Ee, { sx: { alignItems: "center" }, children: [
|
23216
23207
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, children: f.overview.total_portfolio }),
|
23217
|
-
/* @__PURE__ */ t(
|
23208
|
+
/* @__PURE__ */ t(ln, { children: R.toLocaleString("en-US", {
|
23218
23209
|
currency: "USD",
|
23219
23210
|
maximumFractionDigits: 2,
|
23220
23211
|
minimumFractionDigits: 2,
|
@@ -24013,7 +24004,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
24013
24004
|
}, A0 = ({ beat: e }) => {
|
24014
24005
|
const n = ft(), i = I0(n);
|
24015
24006
|
return /* @__PURE__ */ t(
|
24016
|
-
|
24007
|
+
dn,
|
24017
24008
|
{
|
24018
24009
|
categoryGuid: e.primary_category_guid || e.category_guids && e.category_guids[0] || "",
|
24019
24010
|
className: i,
|
@@ -25499,7 +25490,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25499
25490
|
}
|
25500
25491
|
);
|
25501
25492
|
}, K0 = A(V0), z0 = A(({ repeatingTransaction: e }) => {
|
25502
|
-
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), [r, o] = g.useState(!1), s = e.repeating_transaction_type ===
|
25493
|
+
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), [r, o] = g.useState(!1), s = e.repeating_transaction_type === sn.Income, c = [
|
25503
25494
|
{ id: Ne.EveryWeek, label: n.frequency_every_week },
|
25504
25495
|
{ id: Ne.EveryOtherWeek, label: n.frequency_every_other_week },
|
25505
25496
|
{ id: Ne.EveryMonth, label: n.frequency_every_month },
|
@@ -25554,7 +25545,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25554
25545
|
)
|
25555
25546
|
] });
|
25556
25547
|
}), Y0 = A(({ repeatingTransaction: e }) => {
|
25557
|
-
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), r = Ri(e.predicted_occurs_on), [o, s] = g.useState(!1), [c, d] = g.useState(r), _ = e.repeating_transaction_type ===
|
25548
|
+
const { recurring: n } = I(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), r = Ri(e.predicted_occurs_on), [o, s] = g.useState(!1), [c, d] = g.useState(r), _ = e.repeating_transaction_type === sn.Income, u = () => {
|
25558
25549
|
d(r), s(!0), a(
|
25559
25550
|
_ ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
25560
25551
|
{
|
@@ -25609,7 +25600,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25609
25600
|
const f = g.useMemo(
|
25610
25601
|
() => n.transactions.length > 0 ? n.transactions[0] : void 0,
|
25611
25602
|
[n]
|
25612
|
-
), E = n.repeating_transaction_type ===
|
25603
|
+
), E = n.repeating_transaction_type === sn.Income, y = async () => {
|
25613
25604
|
await o(n.guid), e();
|
25614
25605
|
}, T = () => {
|
25615
25606
|
h(!0), r(
|
@@ -25622,7 +25613,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25622
25613
|
return /* @__PURE__ */ l(b, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
25623
25614
|
/* @__PURE__ */ l(b, { direction: "column", gap: 12, m: 24, children: [
|
25624
25615
|
/* @__PURE__ */ t(
|
25625
|
-
|
25616
|
+
dn,
|
25626
25617
|
{
|
25627
25618
|
categoryGuid: f?.category_guid || "",
|
25628
25619
|
merchantGuid: _,
|
@@ -25630,7 +25621,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25630
25621
|
}
|
25631
25622
|
),
|
25632
25623
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d }),
|
25633
|
-
/* @__PURE__ */ l(
|
25624
|
+
/* @__PURE__ */ l(ln, { color: E ? "success.main" : "text.primary", children: [
|
25634
25625
|
E ? "+" : "",
|
25635
25626
|
B(c, "0,0.00")
|
25636
25627
|
] })
|
@@ -25707,7 +25698,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25707
25698
|
const { recurring: i } = I(), [a, r] = g.useState(!1), o = g.useMemo(
|
25708
25699
|
() => n.transactions.length === 0 ? "" : n.transactions[0].category_guid || "",
|
25709
25700
|
[n]
|
25710
|
-
), s = n.account?.institutionName || "", c = n.repeating_transaction_type ===
|
25701
|
+
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === sn.Income, d = ur(
|
25711
25702
|
i,
|
25712
25703
|
Ri(n.predicted_occurs_on),
|
25713
25704
|
n.recurrence_type
|
@@ -25717,7 +25708,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25717
25708
|
e(n), r(!0);
|
25718
25709
|
}, children: [
|
25719
25710
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
25720
|
-
|
25711
|
+
dn,
|
25721
25712
|
{
|
25722
25713
|
categoryGuid: o,
|
25723
25714
|
merchantGuid: n.merchant_guid
|
@@ -25782,7 +25773,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25782
25773
|
ariaLabelClose: i.close_drawer_aria,
|
25783
25774
|
isOpen: a,
|
25784
25775
|
onClose: () => r(!1),
|
25785
|
-
title: n.repeating_transaction_type ===
|
25776
|
+
title: n.repeating_transaction_type === sn.Income ? i.income_details : i.expense_details,
|
25786
25777
|
children: /* @__PURE__ */ t(
|
25787
25778
|
ul,
|
25788
25779
|
{
|
@@ -25929,7 +25920,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25929
25920
|
predicted_occurs_on: ci(f, { representation: "date" }),
|
25930
25921
|
recurrence_day: ei(f),
|
25931
25922
|
recurrence_type: m,
|
25932
|
-
repeating_transaction_type: e ?
|
25923
|
+
repeating_transaction_type: e ? sn.Income : sn.Bill,
|
25933
25924
|
transaction_type: y.transaction_type
|
25934
25925
|
};
|
25935
25926
|
(m === Ne.EveryWeek || m === Ne.EveryOtherWeek) && (x.recurrence_day = ii(f)), await c(x, y), w();
|
@@ -25999,7 +25990,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
25999
25990
|
i(W.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
|
26000
25991
|
};
|
26001
25992
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
26002
|
-
n.filter((o) => o.repeating_transaction_type !==
|
25993
|
+
n.filter((o) => o.repeating_transaction_type !== sn.Income).map((o, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
26003
25994
|
/* @__PURE__ */ t(_l, { onClick: a, repeatingTransaction: o }),
|
26004
25995
|
/* @__PURE__ */ t(G, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
26005
25996
|
] }, o.guid)),
|
@@ -26014,7 +26005,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
26014
26005
|
i(W.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
|
26015
26006
|
};
|
26016
26007
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
26017
|
-
n.filter((o) => o.repeating_transaction_type ===
|
26008
|
+
n.filter((o) => o.repeating_transaction_type === sn.Income).map((o, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
26018
26009
|
/* @__PURE__ */ t(_l, { onClick: a, repeatingTransaction: o }),
|
26019
26010
|
/* @__PURE__ */ t(G, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
26020
26011
|
] }, o.guid)),
|
@@ -26244,7 +26235,7 @@ const Hi = g.createContext(null), S0 = ({
|
|
26244
26235
|
c(!0), i(e);
|
26245
26236
|
}, children: [
|
26246
26237
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
26247
|
-
|
26238
|
+
dn,
|
26248
26239
|
{
|
26249
26240
|
categoryGuid: e.categoryGuid,
|
26250
26241
|
merchantGuid: e.merchantGuid
|
@@ -27567,7 +27558,7 @@ export {
|
|
27567
27558
|
Kn as ConnectionStatus,
|
27568
27559
|
ht as ConnectionStatusEnums,
|
27569
27560
|
Ji as CurrencyCodes,
|
27570
|
-
|
27561
|
+
tn as CurrencyInput,
|
27571
27562
|
Ye as CurrencyText,
|
27572
27563
|
te as DATE_FORMATS_INTL,
|
27573
27564
|
Us as DEFAULT_DONUT_SIZE,
|
@@ -27611,7 +27602,7 @@ export {
|
|
27611
27602
|
lu as IterationItemTypes,
|
27612
27603
|
D2 as LOADING_STATUS,
|
27613
27604
|
Er as LineChart,
|
27614
|
-
|
27605
|
+
nn as ListItemAction,
|
27615
27606
|
s_ as ListItemWrapper,
|
27616
27607
|
ue as Loader,
|
27617
27608
|
k2 as LocalizedCopyApi,
|
@@ -27658,7 +27649,7 @@ export {
|
|
27658
27649
|
p4 as RecurringTransactionsMiniWidget,
|
27659
27650
|
UC as RecurringTransactionsStore,
|
27660
27651
|
m4 as RecurringTransactionsWidget,
|
27661
|
-
|
27652
|
+
sn as RepeatingType,
|
27662
27653
|
F2 as ResponsiveButton,
|
27663
27654
|
br as SPENDING_ACCOUNT_TYPES,
|
27664
27655
|
R_ as ScheduledPaymentTypes,
|
@@ -27756,7 +27747,7 @@ export {
|
|
27756
27747
|
Ht as useSettingsStore,
|
27757
27748
|
Se as useTransactionStore,
|
27758
27749
|
It as useTransactionsUiStore,
|
27759
|
-
|
27750
|
+
en as useUserStore,
|
27760
27751
|
Un as useWidgetContainerProvider
|
27761
27752
|
};
|
27762
27753
|
//# sourceMappingURL=index.es.js.map
|