@mx-cartographer/experiences 6.26.9 → 6.26.10-alpha.san1
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 +137 -138
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -31,7 +31,7 @@ import re from "@mui/material/ListItemText";
|
|
|
31
31
|
import ks from "@mui/material/Popover";
|
|
32
32
|
import b from "@mui/material/Stack";
|
|
33
33
|
import na from "@mui/material/Checkbox";
|
|
34
|
-
import { alpha as Xl, lighten as sr, darken as cr, Stack as
|
|
34
|
+
import { alpha as Xl, lighten as sr, darken as cr, Stack as Se, Box as En, useTheme as ln, Card as ga, CardContent as Zl, Button as ql } from "@mui/material";
|
|
35
35
|
import Ae from "@mui/material/styles/useTheme";
|
|
36
36
|
import _n from "@mui/material/useMediaQuery";
|
|
37
37
|
import { css as pn, keyframes as Ql } from "@mxenabled/cssinjs";
|
|
@@ -2256,11 +2256,11 @@ const gu = ({
|
|
|
2256
2256
|
valueFormatterString: s
|
|
2257
2257
|
}) => {
|
|
2258
2258
|
const { common: c } = A(), l = n || "Small";
|
|
2259
|
-
return /* @__PURE__ */ d(
|
|
2259
|
+
return /* @__PURE__ */ d(Se, { style: { flexDirection: "row", gap: 24, ...o }, children: [
|
|
2260
2260
|
a.map((u, _) => {
|
|
2261
2261
|
const h = i[_];
|
|
2262
2262
|
return h ? /* @__PURE__ */ d(
|
|
2263
|
-
|
|
2263
|
+
Se,
|
|
2264
2264
|
{
|
|
2265
2265
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
2266
2266
|
children: [
|
|
@@ -2281,7 +2281,7 @@ const gu = ({
|
|
|
2281
2281
|
_
|
|
2282
2282
|
) : null;
|
|
2283
2283
|
}),
|
|
2284
|
-
e && /* @__PURE__ */ d(
|
|
2284
|
+
e && /* @__PURE__ */ d(Se, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
2285
2285
|
/* @__PURE__ */ t(f, { bold: !0, sx: { marginRight: 8 }, variant: l, children: "– –" }),
|
|
2286
2286
|
/* @__PURE__ */ d(f, { variant: l, children: [
|
|
2287
2287
|
r || c.average,
|
|
@@ -2301,7 +2301,7 @@ function Au({ labels: e = [], valueFormatterString: n = "0,0" }) {
|
|
|
2301
2301
|
axisContent: (a) => {
|
|
2302
2302
|
const { axisValue: o, dataIndex: r, series: s } = a, c = r ?? 0;
|
|
2303
2303
|
return /* @__PURE__ */ d(
|
|
2304
|
-
|
|
2304
|
+
Se,
|
|
2305
2305
|
{
|
|
2306
2306
|
sx: {
|
|
2307
2307
|
backgroundColor: i.palette.background.paper,
|
|
@@ -2317,7 +2317,7 @@ function Au({ labels: e = [], valueFormatterString: n = "0,0" }) {
|
|
|
2317
2317
|
children: [
|
|
2318
2318
|
/* @__PURE__ */ t(f, { variant: "H3", children: String(o) }),
|
|
2319
2319
|
s.map((l, u) => /* @__PURE__ */ d(
|
|
2320
|
-
|
|
2320
|
+
Se,
|
|
2321
2321
|
{
|
|
2322
2322
|
sx: {
|
|
2323
2323
|
flexDirection: "row",
|
|
@@ -2328,7 +2328,7 @@ function Au({ labels: e = [], valueFormatterString: n = "0,0" }) {
|
|
|
2328
2328
|
marginTop: 4
|
|
2329
2329
|
},
|
|
2330
2330
|
children: [
|
|
2331
|
-
/* @__PURE__ */ d(
|
|
2331
|
+
/* @__PURE__ */ d(Se, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
2332
2332
|
/* @__PURE__ */ t(
|
|
2333
2333
|
En,
|
|
2334
2334
|
{
|
|
@@ -2388,10 +2388,10 @@ const yi = ({
|
|
|
2388
2388
|
valueFormatterString: K,
|
|
2389
2389
|
width: se
|
|
2390
2390
|
}) => {
|
|
2391
|
-
const te = Ye(), Ce = r.flat().map((Q) => Q.x), we = r.flat().map((Q) => Q.y), Le = Math.round(we.reduce((Q,
|
|
2391
|
+
const te = Ye(), Ce = r.flat().map((Q) => Q.x), we = r.flat().map((Q) => Q.y), Le = Math.round(we.reduce((Q, Te) => Te + Q, 0) / we.length), he = Math.floor(Math.min(...we) / 100) * 100, me = Math.ceil(Math.max(...we) / 100) * 100, je = r.map((Q, Te) => ({
|
|
2392
2392
|
type: I ? "bar" : "line",
|
|
2393
2393
|
curve: a,
|
|
2394
|
-
color: I ? te.palette.chart?.chart6 : i[
|
|
2394
|
+
color: I ? te.palette.chart?.chart6 : i[Te] ?? te.palette.primary.main,
|
|
2395
2395
|
data: Q.map((fe) => fe.y),
|
|
2396
2396
|
area: S,
|
|
2397
2397
|
baseline: n,
|
|
@@ -2797,7 +2797,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2797
2797
|
};
|
|
2798
2798
|
}, Q = (Y) => {
|
|
2799
2799
|
y(Y), i?.(Y ?? "");
|
|
2800
|
-
},
|
|
2800
|
+
}, Te = (Y) => {
|
|
2801
2801
|
a?.(Y ?? "");
|
|
2802
2802
|
}, fe = () => {
|
|
2803
2803
|
const Y = pe(String(v)).guid;
|
|
@@ -2919,7 +2919,7 @@ const Ec = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2919
2919
|
categoryGuids: V,
|
|
2920
2920
|
hoveredLegend: S,
|
|
2921
2921
|
legendRef: _,
|
|
2922
|
-
onClickLegend:
|
|
2922
|
+
onClickLegend: Te,
|
|
2923
2923
|
onHoverLegend: Q,
|
|
2924
2924
|
sx: { px: u ? 0 : 24 }
|
|
2925
2925
|
}
|
|
@@ -4839,28 +4839,28 @@ const Si = () => {
|
|
|
4839
4839
|
transaction: void 0
|
|
4840
4840
|
}, s = n.start, c = n.end;
|
|
4841
4841
|
switch (e.recurrence_type) {
|
|
4842
|
-
case
|
|
4842
|
+
case Ee.EveryWeek:
|
|
4843
4843
|
i.push(...th(r, s, c));
|
|
4844
4844
|
break;
|
|
4845
|
-
case
|
|
4845
|
+
case Ee.EveryOtherWeek:
|
|
4846
4846
|
i.push(...nh(r, s, c));
|
|
4847
4847
|
break;
|
|
4848
|
-
case
|
|
4848
|
+
case Ee.TwiceAMonth:
|
|
4849
4849
|
i.push(...ih(r, s));
|
|
4850
4850
|
break;
|
|
4851
|
-
case
|
|
4851
|
+
case Ee.EveryMonth:
|
|
4852
4852
|
i.push(...ah(r, s));
|
|
4853
4853
|
break;
|
|
4854
|
-
case
|
|
4854
|
+
case Ee.EveryOtherMonth:
|
|
4855
4855
|
i.push(...oh(r, s, c));
|
|
4856
4856
|
break;
|
|
4857
|
-
case
|
|
4857
|
+
case Ee.EveryQuarter:
|
|
4858
4858
|
i.push(...rh(r, s, c));
|
|
4859
4859
|
break;
|
|
4860
|
-
case
|
|
4860
|
+
case Ee.EveryOtherQuarter:
|
|
4861
4861
|
i.push(...sh(r, s, c));
|
|
4862
4862
|
break;
|
|
4863
|
-
case
|
|
4863
|
+
case Ee.EveryYear:
|
|
4864
4864
|
i.push(...ch(r, s, c));
|
|
4865
4865
|
break;
|
|
4866
4866
|
}
|
|
@@ -4952,34 +4952,34 @@ const Si = () => {
|
|
|
4952
4952
|
const a = ea(Ie(), n.recurrence_day), o = Qs(Ie(), n.recurrence_day), r = Mi(n.recurrence_day), s = n.second_recurrence_day ? Mi(n.second_recurrence_day) : "";
|
|
4953
4953
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
|
4954
4954
|
switch (n.recurrence_type) {
|
|
4955
|
-
case
|
|
4955
|
+
case Ee.EveryQuarter:
|
|
4956
4956
|
c = i ? T(e.quarterly_ordinal, r) : e.quarterly;
|
|
4957
4957
|
break;
|
|
4958
|
-
case
|
|
4958
|
+
case Ee.EveryWeek:
|
|
4959
4959
|
c = i ? T(
|
|
4960
4960
|
e.weekly_ordinal,
|
|
4961
4961
|
le(a, ae.DAY_OF_WEEK)
|
|
4962
4962
|
) : e.weekly;
|
|
4963
4963
|
break;
|
|
4964
|
-
case
|
|
4964
|
+
case Ee.EveryYear:
|
|
4965
4965
|
c = i ? T(
|
|
4966
4966
|
e.anually_ordinal,
|
|
4967
4967
|
le(o, ae.MONTH_DAY)
|
|
4968
4968
|
) : e.anually;
|
|
4969
4969
|
break;
|
|
4970
|
-
case
|
|
4970
|
+
case Ee.EveryOtherWeek:
|
|
4971
4971
|
c = i ? T(
|
|
4972
4972
|
e.every_other_week_ordinal,
|
|
4973
4973
|
le(a, ae.DAY_OF_WEEK)
|
|
4974
4974
|
) : e.every_other_week;
|
|
4975
4975
|
break;
|
|
4976
|
-
case
|
|
4976
|
+
case Ee.EveryOtherMonth:
|
|
4977
4977
|
c = i ? T(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
4978
4978
|
break;
|
|
4979
|
-
case
|
|
4979
|
+
case Ee.EveryOtherQuarter:
|
|
4980
4980
|
c = i ? T(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
4981
4981
|
break;
|
|
4982
|
-
case
|
|
4982
|
+
case Ee.TwiceAMonth:
|
|
4983
4983
|
c = i ? T(e.twice_a_month_ordinal, r, s) : e.twice_a_month;
|
|
4984
4984
|
break;
|
|
4985
4985
|
}
|
|
@@ -4987,25 +4987,25 @@ const Si = () => {
|
|
|
4987
4987
|
}, to = (e, n) => {
|
|
4988
4988
|
let i = n;
|
|
4989
4989
|
switch (e) {
|
|
4990
|
-
case
|
|
4990
|
+
case Ee.EveryWeek:
|
|
4991
4991
|
i = Ao(n);
|
|
4992
4992
|
break;
|
|
4993
|
-
case
|
|
4993
|
+
case Ee.EveryOtherWeek:
|
|
4994
4994
|
i = H_(n);
|
|
4995
4995
|
break;
|
|
4996
|
-
case
|
|
4996
|
+
case Ee.EveryMonth:
|
|
4997
4997
|
i = P_(n);
|
|
4998
4998
|
break;
|
|
4999
|
-
case
|
|
4999
|
+
case Ee.EveryOtherMonth:
|
|
5000
5000
|
i = F_(n);
|
|
5001
5001
|
break;
|
|
5002
|
-
case
|
|
5002
|
+
case Ee.EveryQuarter:
|
|
5003
5003
|
i = uc(n);
|
|
5004
5004
|
break;
|
|
5005
|
-
case
|
|
5005
|
+
case Ee.EveryOtherQuarter:
|
|
5006
5006
|
i = W_(n);
|
|
5007
5007
|
break;
|
|
5008
|
-
case
|
|
5008
|
+
case Ee.EveryYear:
|
|
5009
5009
|
i = $_(n);
|
|
5010
5010
|
break;
|
|
5011
5011
|
}
|
|
@@ -5519,7 +5519,7 @@ const xc = (e, n) => {
|
|
|
5519
5519
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
|
5520
5520
|
return i.every((o) => a.indexOf(o) > -1);
|
|
5521
5521
|
};
|
|
5522
|
-
var Ih = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Ih || {}), vh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(vh || {}), wh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(wh || {}), z = /* @__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))(z || {}), io = /* @__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))(io || {}), kt = /* @__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))(kt || {}), Lt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Lt || {}), ct = /* @__PURE__ */ ((e) => (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))(ct || {}), Zn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Zn || {}), Qe = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))(Qe || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), Lo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Lo || {}), Dh = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(Dh || {}),
|
|
5522
|
+
var Ih = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(Ih || {}), vh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(vh || {}), wh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(wh || {}), z = /* @__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))(z || {}), io = /* @__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))(io || {}), kt = /* @__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))(kt || {}), Lt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Lt || {}), ct = /* @__PURE__ */ ((e) => (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))(ct || {}), Zn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Zn || {}), Qe = /* @__PURE__ */ ((e) => (e[e.AccountBalanceLow = 33] = "AccountBalanceLow", e[e.BillAmountNotStandard = 49] = "BillAmountNotStandard", e[e.CategorySpending = 50] = "CategorySpending", e[e.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", e[e.DebtPaymentReminder = 37] = "DebtPaymentReminder", e[e.DuplicatePayment = 42] = "DuplicatePayment", e[e.MonthlySpendComparison = 53] = "MonthlySpendComparison", e[e.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", e[e.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", e[e.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", e[e.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", e[e.SavingsOpportunity = 58] = "SavingsOpportunity", e[e.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", e[e.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", e[e.UncategorizedTransactions = 61] = "UncategorizedTransactions", e[e.UnifiedDeposit = 62] = "UnifiedDeposit", e[e.UpcomingBill = 63] = "UpcomingBill", e[e.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", e[e.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", e[e.DiscoveredAccounts = 52] = "DiscoveredAccounts", e[e.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", e[e.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", e[e.TransparentOverdraft = 68] = "TransparentOverdraft", e))(Qe || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), Lo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Lo || {}), Dh = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(Dh || {}), Ee = /* @__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[e.TwiceAMonth = 8] = "TwiceAMonth", e))(Ee || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), jt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(jt || {}), 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 || {});
|
|
5523
5523
|
const Ic = {
|
|
5524
5524
|
account_guid: "",
|
|
5525
5525
|
amount: 0,
|
|
@@ -7915,7 +7915,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
7915
7915
|
setSearchValue: te,
|
|
7916
7916
|
setShowInsights: Ce,
|
|
7917
7917
|
updateManualTransaction: we
|
|
7918
|
-
} = It(), { userProfile: Le } = Ct(), [he, me] = g.useState(""), [je, V] = g.useState(""), [pe, Q] = g.useState(!1), [
|
|
7918
|
+
} = It(), { userProfile: Le } = Ct(), [he, me] = g.useState(""), [je, V] = g.useState(""), [pe, Q] = g.useState(!1), [Te, fe] = g.useState(!1), [_t, tn] = g.useState(!1);
|
|
7919
7919
|
g.useEffect(() => {
|
|
7920
7920
|
const ht = o.filter((ii) => !ii.is_hidden), ir = Ve(Ie()), ar = Ze(Ie());
|
|
7921
7921
|
y(ht), S(ir, ar), R({
|
|
@@ -8090,7 +8090,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8090
8090
|
Cn,
|
|
8091
8091
|
{
|
|
8092
8092
|
onClose: ka,
|
|
8093
|
-
showConnectWidget:
|
|
8093
|
+
showConnectWidget: Te,
|
|
8094
8094
|
title: _.add_manual_account
|
|
8095
8095
|
}
|
|
8096
8096
|
)
|
|
@@ -8107,14 +8107,14 @@ const Dc = ({ transaction: e }) => {
|
|
|
8107
8107
|
}) => {
|
|
8108
8108
|
const { recurring: s } = A(), c = g.useMemo(
|
|
8109
8109
|
() => [
|
|
8110
|
-
{ id:
|
|
8111
|
-
{ id:
|
|
8112
|
-
{ id:
|
|
8113
|
-
{ id:
|
|
8114
|
-
{ id:
|
|
8115
|
-
{ id:
|
|
8116
|
-
{ id:
|
|
8117
|
-
{ id:
|
|
8110
|
+
{ id: Ee.EveryWeek, label: s.frequency_every_week },
|
|
8111
|
+
{ id: Ee.EveryOtherWeek, label: s.frequency_every_other_week },
|
|
8112
|
+
{ id: Ee.TwiceAMonth, label: s.frequency_twice_a_month },
|
|
8113
|
+
{ id: Ee.EveryMonth, label: s.frequency_every_month },
|
|
8114
|
+
{ id: Ee.EveryOtherMonth, label: s.frequency_every_other_month },
|
|
8115
|
+
{ id: Ee.EveryQuarter, label: s.frequency_every_quarter },
|
|
8116
|
+
{ id: Ee.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
|
8117
|
+
{ id: Ee.EveryYear, label: s.frequency_every_year }
|
|
8118
8118
|
],
|
|
8119
8119
|
[s]
|
|
8120
8120
|
), l = [
|
|
@@ -8130,7 +8130,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8130
8130
|
label: Mi(y + 1)
|
|
8131
8131
|
}));
|
|
8132
8132
|
u[30].label += ` (${s.last_day_of_month})`;
|
|
8133
|
-
const _ = u.slice(0, 15), h = u.slice(14), m = e ===
|
|
8133
|
+
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, C = Qs(Ie(), n), S = (y) => {
|
|
8134
8134
|
y && o(i_(y));
|
|
8135
8135
|
};
|
|
8136
8136
|
return /* @__PURE__ */ d(b, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -8155,13 +8155,13 @@ const Dc = ({ transaction: e }) => {
|
|
|
8155
8155
|
p && /* @__PURE__ */ t(
|
|
8156
8156
|
zi,
|
|
8157
8157
|
{
|
|
8158
|
-
label: e ===
|
|
8158
|
+
label: e === Ee.TwiceAMonth ? s.first_day_of_the_month : s.day_of_the_month,
|
|
8159
8159
|
onChange: o,
|
|
8160
|
-
options: e ===
|
|
8160
|
+
options: e === Ee.TwiceAMonth ? _ : u,
|
|
8161
8161
|
value: n
|
|
8162
8162
|
}
|
|
8163
8163
|
),
|
|
8164
|
-
e ===
|
|
8164
|
+
e === Ee.TwiceAMonth && /* @__PURE__ */ t(
|
|
8165
8165
|
zi,
|
|
8166
8166
|
{
|
|
8167
8167
|
label: s.second_day_of_the_month,
|
|
@@ -8170,7 +8170,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8170
8170
|
value: i || 0
|
|
8171
8171
|
}
|
|
8172
8172
|
),
|
|
8173
|
-
e ===
|
|
8173
|
+
e === Ee.EveryYear && /* @__PURE__ */ t(hi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
|
8174
8174
|
ho,
|
|
8175
8175
|
{
|
|
8176
8176
|
disablePast: !0,
|
|
@@ -8477,7 +8477,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8477
8477
|
label: n,
|
|
8478
8478
|
onAddRecurringTransaction: i = () => null
|
|
8479
8479
|
}) => {
|
|
8480
|
-
const { recurring: a } = A(), { filter: o, setFilter: r, transactions: s } = ke(), { addRepeatingTransaction: c } = ot(), { user: l } = Ct(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [p, C] = g.useState(
|
|
8480
|
+
const { recurring: a } = A(), { filter: o, setFilter: r, transactions: s } = ke(), { addRepeatingTransaction: c } = ot(), { user: l } = Ct(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [p, C] = g.useState(Ee.EveryMonth), [S, y] = g.useState(1), [E, I] = g.useState(15), v = g.useMemo(
|
|
8481
8481
|
() => s.find((M) => M.guid === h),
|
|
8482
8482
|
[h, s]
|
|
8483
8483
|
), w = () => {
|
|
@@ -8572,7 +8572,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8572
8572
|
};
|
|
8573
8573
|
return /* @__PURE__ */ d(oe, { sx: { bgcolor: "background.paper" }, children: [
|
|
8574
8574
|
n.filter(
|
|
8575
|
-
(r) => r.repeating_transaction_type !== sn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8575
|
+
(r) => r.repeating_transaction_type !== sn.Income && (r.transactions.length > 0 || r.recurrence_type === Ee.EveryYear)
|
|
8576
8576
|
).map((r, s) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
8577
8577
|
/* @__PURE__ */ t(Gc, { onClick: a, repeatingTransaction: r }),
|
|
8578
8578
|
/* @__PURE__ */ t(P, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -8589,7 +8589,7 @@ const Dc = ({ transaction: e }) => {
|
|
|
8589
8589
|
};
|
|
8590
8590
|
return /* @__PURE__ */ d(oe, { sx: { bgcolor: "background.paper" }, children: [
|
|
8591
8591
|
n.filter(
|
|
8592
|
-
(r) => r.repeating_transaction_type === sn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8592
|
+
(r) => r.repeating_transaction_type === sn.Income && (r.transactions.length > 0 || r.recurrence_type === Ee.EveryYear)
|
|
8593
8593
|
).map((r, s) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
8594
8594
|
/* @__PURE__ */ t(Gc, { onClick: a, repeatingTransaction: r }),
|
|
8595
8595
|
/* @__PURE__ */ t(P, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -9541,43 +9541,43 @@ class dm {
|
|
|
9541
9541
|
* Calculates the total amount of all expenses for the current month.
|
|
9542
9542
|
*/
|
|
9543
9543
|
get expenseTotal() {
|
|
9544
|
-
return this.
|
|
9544
|
+
return this.expenses.reduce(zn, 0);
|
|
9545
9545
|
}
|
|
9546
9546
|
/**
|
|
9547
9547
|
* Calculates the total amount of all paid expenses for the current month.
|
|
9548
9548
|
*/
|
|
9549
9549
|
get paidExpenseTotal() {
|
|
9550
|
-
return this.
|
|
9550
|
+
return this.expenses.filter((n) => n.status === Je.Paid).reduce(zn, 0);
|
|
9551
9551
|
}
|
|
9552
9552
|
/**
|
|
9553
9553
|
* Calculates the total amount of all missed expenses for the current month.
|
|
9554
9554
|
*/
|
|
9555
9555
|
get missedExpenseTotal() {
|
|
9556
|
-
return this.
|
|
9556
|
+
return this.expenses.filter((n) => n.status === Je.Missed).reduce(zn, 0);
|
|
9557
9557
|
}
|
|
9558
9558
|
/**
|
|
9559
9559
|
* Calculates the total amount of all upcoming expenses for the current month.
|
|
9560
9560
|
*/
|
|
9561
9561
|
get upcomingExpenseTotal() {
|
|
9562
|
-
return this.
|
|
9562
|
+
return this.expenses.filter((n) => n.status === Je.Upcoming).reduce(zn, 0);
|
|
9563
9563
|
}
|
|
9564
9564
|
/**
|
|
9565
9565
|
* Calculates the total amount of all income for the current month.
|
|
9566
9566
|
*/
|
|
9567
9567
|
get incomeTotal() {
|
|
9568
|
-
return this.
|
|
9568
|
+
return this.income.reduce(zn, 0);
|
|
9569
9569
|
}
|
|
9570
9570
|
/**
|
|
9571
9571
|
* Calculates the total amount of all paid income for the current month.
|
|
9572
9572
|
*/
|
|
9573
9573
|
get paidIncomeTotal() {
|
|
9574
|
-
return this.
|
|
9574
|
+
return this.income.filter((n) => n.status === Je.Paid).reduce(zn, 0);
|
|
9575
9575
|
}
|
|
9576
9576
|
/**
|
|
9577
9577
|
* Calculates the total amount of all upcoming income for the current month.
|
|
9578
9578
|
*/
|
|
9579
9579
|
get upcomingIncomeTotal() {
|
|
9580
|
-
return this.
|
|
9580
|
+
return this.income.filter((n) => n.status === Je.Upcoming).reduce(zn, 0);
|
|
9581
9581
|
}
|
|
9582
9582
|
/**
|
|
9583
9583
|
* Get the recurrences for the currently selected day.
|
|
@@ -10489,7 +10489,7 @@ const ym = ({ recurrence: e }) => /* @__PURE__ */ d(q, { children: [
|
|
|
10489
10489
|
transform: rotate(360deg);
|
|
10490
10490
|
}
|
|
10491
10491
|
`, km = () => {
|
|
10492
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = vo(), { isDirty: r } = Si(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: l } = _e(), { filter: u, setFilter: _, transactions: h } = ke(), m = Ae(), [p, C] = At(!0), [S, y] = g.useState(
|
|
10492
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = ot(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = vo(), { isDirty: r } = Si(), { isMobile: s } = be(), { isCopyLoaded: c, setDisplayedDate: l } = _e(), { filter: u, setFilter: _, transactions: h } = ke(), m = Ae(), [p, C] = At(!0), [S, y] = g.useState(Ee.EveryMonth), [E, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = At(!1), [M, k] = At(1), [G, L] = At([]), [W, K] = At(""), se = g.useMemo(
|
|
10493
10493
|
() => h.find((he) => he.guid === W),
|
|
10494
10494
|
[W, h]
|
|
10495
10495
|
), te = !!n.filter(
|
|
@@ -10865,9 +10865,9 @@ const bn = () => {
|
|
|
10865
10865
|
minWidth: "186px",
|
|
10866
10866
|
...i
|
|
10867
10867
|
},
|
|
10868
|
-
children: /* @__PURE__ */ d(
|
|
10868
|
+
children: /* @__PURE__ */ d(Se, { sx: { gap: "12px", p: "16px" }, children: [
|
|
10869
10869
|
/* @__PURE__ */ d(
|
|
10870
|
-
|
|
10870
|
+
Se,
|
|
10871
10871
|
{
|
|
10872
10872
|
gap: o ? "4px" : "0",
|
|
10873
10873
|
sx: {
|
|
@@ -10881,11 +10881,11 @@ const bn = () => {
|
|
|
10881
10881
|
]
|
|
10882
10882
|
}
|
|
10883
10883
|
),
|
|
10884
|
-
/* @__PURE__ */ d(
|
|
10884
|
+
/* @__PURE__ */ d(Se, { gap: o ? "4px" : "0", children: [
|
|
10885
10885
|
/* @__PURE__ */ t(f, { bold: !0, variant: "Small", children: u }),
|
|
10886
10886
|
/* @__PURE__ */ t(f, { sx: { whiteSpace: "normal" }, variant: "XSmall", children: r.snowball_card_amount_description })
|
|
10887
10887
|
] }),
|
|
10888
|
-
/* @__PURE__ */ d(
|
|
10888
|
+
/* @__PURE__ */ d(Se, { gap: o ? "4px" : "0", children: [
|
|
10889
10889
|
/* @__PURE__ */ t(f, { bold: !0, variant: "Small", children: _ }),
|
|
10890
10890
|
/* @__PURE__ */ t(f, { variant: "XSmall", children: r.snowball_card_duration_description })
|
|
10891
10891
|
] }),
|
|
@@ -10913,9 +10913,9 @@ const bn = () => {
|
|
|
10913
10913
|
onClose: n,
|
|
10914
10914
|
sx: { ...i },
|
|
10915
10915
|
title: o.snowball_drawer_title,
|
|
10916
|
-
children: /* @__PURE__ */ d(
|
|
10917
|
-
/* @__PURE__ */ d(
|
|
10918
|
-
/* @__PURE__ */ d(
|
|
10916
|
+
children: /* @__PURE__ */ d(Se, { bgcolor: a.palette.background.default, height: "100%", children: [
|
|
10917
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", px: 24, py: 24, children: [
|
|
10918
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", pb: 24, children: [
|
|
10919
10919
|
/* @__PURE__ */ t(f, { mb: 12, variant: "H3", children: o.snowball_drawer_subtitle }),
|
|
10920
10920
|
/* @__PURE__ */ t(f, { color: a.palette.secondary.main, variant: "Small", children: o.snowball_drawer_amount_description }),
|
|
10921
10921
|
/* @__PURE__ */ t(f, { variant: "H1", children: o.snowball_drawer_savings }),
|
|
@@ -10946,7 +10946,7 @@ const bn = () => {
|
|
|
10946
10946
|
)
|
|
10947
10947
|
] })
|
|
10948
10948
|
] }),
|
|
10949
|
-
/* @__PURE__ */ d(
|
|
10949
|
+
/* @__PURE__ */ d(Se, { children: [
|
|
10950
10950
|
/* @__PURE__ */ t(
|
|
10951
10951
|
f,
|
|
10952
10952
|
{
|
|
@@ -10957,12 +10957,12 @@ const bn = () => {
|
|
|
10957
10957
|
children: o.snowball_drawer_disclaimer
|
|
10958
10958
|
}
|
|
10959
10959
|
),
|
|
10960
|
-
/* @__PURE__ */ d(
|
|
10960
|
+
/* @__PURE__ */ d(Se, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10961
10961
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 1) }),
|
|
10962
10962
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10963
10963
|
] }),
|
|
10964
|
-
/* @__PURE__ */ d(
|
|
10965
|
-
/* @__PURE__ */ d(
|
|
10964
|
+
/* @__PURE__ */ d(Se, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10965
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10966
10966
|
/* @__PURE__ */ t(
|
|
10967
10967
|
En,
|
|
10968
10968
|
{
|
|
@@ -10980,7 +10980,7 @@ const bn = () => {
|
|
|
10980
10980
|
}
|
|
10981
10981
|
),
|
|
10982
10982
|
/* @__PURE__ */ d(
|
|
10983
|
-
|
|
10983
|
+
Se,
|
|
10984
10984
|
{
|
|
10985
10985
|
sx: {
|
|
10986
10986
|
borderBottom: `1px solid ${a.palette.border.light}`,
|
|
@@ -10990,7 +10990,7 @@ const bn = () => {
|
|
|
10990
10990
|
pr: 24
|
|
10991
10991
|
},
|
|
10992
10992
|
children: [
|
|
10993
|
-
/* @__PURE__ */ d(
|
|
10993
|
+
/* @__PURE__ */ d(Se, { flexGrow: 1, children: [
|
|
10994
10994
|
/* @__PURE__ */ t(f, { variant: "Body", children: T(o.snowball_drawer_debt_label, "A") }),
|
|
10995
10995
|
/* @__PURE__ */ d(f, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
10996
10996
|
T(
|
|
@@ -11001,7 +11001,7 @@ const bn = () => {
|
|
|
11001
11001
|
o.snowball_drawer_rollover_explainer_pt2
|
|
11002
11002
|
] })
|
|
11003
11003
|
] }),
|
|
11004
|
-
/* @__PURE__ */ d(
|
|
11004
|
+
/* @__PURE__ */ d(Se, { children: [
|
|
11005
11005
|
/* @__PURE__ */ t(f, { variant: "Body", children: "$100.00" }),
|
|
11006
11006
|
/* @__PURE__ */ t(
|
|
11007
11007
|
f,
|
|
@@ -11018,7 +11018,7 @@ const bn = () => {
|
|
|
11018
11018
|
}
|
|
11019
11019
|
)
|
|
11020
11020
|
] }),
|
|
11021
|
-
/* @__PURE__ */ d(
|
|
11021
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
11022
11022
|
/* @__PURE__ */ t(
|
|
11023
11023
|
En,
|
|
11024
11024
|
{
|
|
@@ -11032,7 +11032,7 @@ const bn = () => {
|
|
|
11032
11032
|
}
|
|
11033
11033
|
),
|
|
11034
11034
|
/* @__PURE__ */ d(
|
|
11035
|
-
|
|
11035
|
+
Se,
|
|
11036
11036
|
{
|
|
11037
11037
|
sx: {
|
|
11038
11038
|
borderBottom: `1px solid ${a.palette.border.light}`,
|
|
@@ -11048,7 +11048,7 @@ const bn = () => {
|
|
|
11048
11048
|
}
|
|
11049
11049
|
)
|
|
11050
11050
|
] }),
|
|
11051
|
-
/* @__PURE__ */ d(
|
|
11051
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
11052
11052
|
/* @__PURE__ */ t(
|
|
11053
11053
|
En,
|
|
11054
11054
|
{
|
|
@@ -11061,13 +11061,13 @@ const bn = () => {
|
|
|
11061
11061
|
}
|
|
11062
11062
|
}
|
|
11063
11063
|
),
|
|
11064
|
-
/* @__PURE__ */ d(
|
|
11064
|
+
/* @__PURE__ */ d(Se, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
|
|
11065
11065
|
/* @__PURE__ */ t(f, { flexGrow: 1, variant: "Body", children: T(o.snowball_drawer_debt_label, "C") }),
|
|
11066
11066
|
/* @__PURE__ */ t(f, { variant: "Body", children: "$1,000.00" })
|
|
11067
11067
|
] })
|
|
11068
11068
|
] }),
|
|
11069
11069
|
/* @__PURE__ */ d(
|
|
11070
|
-
|
|
11070
|
+
Se,
|
|
11071
11071
|
{
|
|
11072
11072
|
sx: {
|
|
11073
11073
|
py: 8,
|
|
@@ -11084,12 +11084,12 @@ const bn = () => {
|
|
|
11084
11084
|
}
|
|
11085
11085
|
)
|
|
11086
11086
|
] }),
|
|
11087
|
-
/* @__PURE__ */ d(
|
|
11087
|
+
/* @__PURE__ */ d(Se, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
11088
11088
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 2) }),
|
|
11089
11089
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
11090
11090
|
] }),
|
|
11091
|
-
/* @__PURE__ */ d(
|
|
11092
|
-
/* @__PURE__ */ d(
|
|
11091
|
+
/* @__PURE__ */ d(Se, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
11092
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
11093
11093
|
/* @__PURE__ */ t(
|
|
11094
11094
|
En,
|
|
11095
11095
|
{
|
|
@@ -11107,7 +11107,7 @@ const bn = () => {
|
|
|
11107
11107
|
}
|
|
11108
11108
|
),
|
|
11109
11109
|
/* @__PURE__ */ d(
|
|
11110
|
-
|
|
11110
|
+
Se,
|
|
11111
11111
|
{
|
|
11112
11112
|
sx: {
|
|
11113
11113
|
borderBottom: `1px solid ${a.palette.border.light}`,
|
|
@@ -11117,7 +11117,7 @@ const bn = () => {
|
|
|
11117
11117
|
pr: 24
|
|
11118
11118
|
},
|
|
11119
11119
|
children: [
|
|
11120
|
-
/* @__PURE__ */ d(
|
|
11120
|
+
/* @__PURE__ */ d(Se, { flexGrow: 1, children: [
|
|
11121
11121
|
/* @__PURE__ */ t(f, { variant: "Body", children: T(o.snowball_drawer_debt_label, "B") }),
|
|
11122
11122
|
/* @__PURE__ */ d(f, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
11123
11123
|
T(
|
|
@@ -11128,7 +11128,7 @@ const bn = () => {
|
|
|
11128
11128
|
o.snowball_drawer_rollover_explainer_pt2
|
|
11129
11129
|
] })
|
|
11130
11130
|
] }),
|
|
11131
|
-
/* @__PURE__ */ d(
|
|
11131
|
+
/* @__PURE__ */ d(Se, { children: [
|
|
11132
11132
|
/* @__PURE__ */ t(f, { variant: "Body", children: "$500.00" }),
|
|
11133
11133
|
/* @__PURE__ */ t(
|
|
11134
11134
|
f,
|
|
@@ -11145,7 +11145,7 @@ const bn = () => {
|
|
|
11145
11145
|
}
|
|
11146
11146
|
)
|
|
11147
11147
|
] }),
|
|
11148
|
-
/* @__PURE__ */ d(
|
|
11148
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
11149
11149
|
/* @__PURE__ */ t(
|
|
11150
11150
|
En,
|
|
11151
11151
|
{
|
|
@@ -11159,7 +11159,7 @@ const bn = () => {
|
|
|
11159
11159
|
}
|
|
11160
11160
|
),
|
|
11161
11161
|
/* @__PURE__ */ d(
|
|
11162
|
-
|
|
11162
|
+
Se,
|
|
11163
11163
|
{
|
|
11164
11164
|
sx: {
|
|
11165
11165
|
flexDirection: "row",
|
|
@@ -11175,7 +11175,7 @@ const bn = () => {
|
|
|
11175
11175
|
)
|
|
11176
11176
|
] }),
|
|
11177
11177
|
/* @__PURE__ */ d(
|
|
11178
|
-
|
|
11178
|
+
Se,
|
|
11179
11179
|
{
|
|
11180
11180
|
sx: {
|
|
11181
11181
|
py: 8,
|
|
@@ -11192,12 +11192,12 @@ const bn = () => {
|
|
|
11192
11192
|
}
|
|
11193
11193
|
)
|
|
11194
11194
|
] }),
|
|
11195
|
-
/* @__PURE__ */ d(
|
|
11195
|
+
/* @__PURE__ */ d(Se, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
11196
11196
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 3) }),
|
|
11197
11197
|
/* @__PURE__ */ t(f, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
11198
11198
|
] }),
|
|
11199
|
-
/* @__PURE__ */ d(
|
|
11200
|
-
/* @__PURE__ */ d(
|
|
11199
|
+
/* @__PURE__ */ d(Se, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
11200
|
+
/* @__PURE__ */ d(Se, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
11201
11201
|
/* @__PURE__ */ t(
|
|
11202
11202
|
En,
|
|
11203
11203
|
{
|
|
@@ -11215,7 +11215,7 @@ const bn = () => {
|
|
|
11215
11215
|
}
|
|
11216
11216
|
),
|
|
11217
11217
|
/* @__PURE__ */ d(
|
|
11218
|
-
|
|
11218
|
+
Se,
|
|
11219
11219
|
{
|
|
11220
11220
|
sx: {
|
|
11221
11221
|
alignItems: "center",
|
|
@@ -11225,8 +11225,8 @@ const bn = () => {
|
|
|
11225
11225
|
pr: 24
|
|
11226
11226
|
},
|
|
11227
11227
|
children: [
|
|
11228
|
-
/* @__PURE__ */ t(
|
|
11229
|
-
/* @__PURE__ */ d(
|
|
11228
|
+
/* @__PURE__ */ t(Se, { flexGrow: 1, children: /* @__PURE__ */ t(f, { variant: "Body", children: T(o.snowball_drawer_debt_label, "C") }) }),
|
|
11229
|
+
/* @__PURE__ */ d(Se, { children: [
|
|
11230
11230
|
/* @__PURE__ */ t(f, { variant: "Body", children: "$1,500.00" }),
|
|
11231
11231
|
/* @__PURE__ */ t(
|
|
11232
11232
|
f,
|
|
@@ -11244,7 +11244,7 @@ const bn = () => {
|
|
|
11244
11244
|
)
|
|
11245
11245
|
] }),
|
|
11246
11246
|
/* @__PURE__ */ d(
|
|
11247
|
-
|
|
11247
|
+
Se,
|
|
11248
11248
|
{
|
|
11249
11249
|
sx: {
|
|
11250
11250
|
py: 8,
|
|
@@ -11837,7 +11837,7 @@ const Yc = ({
|
|
|
11837
11837
|
const { debts: i } = A(), { showError: a, showCompleted: o } = bn();
|
|
11838
11838
|
return g.useEffect(() => {
|
|
11839
11839
|
a && e(1);
|
|
11840
|
-
}, [a]), !a && !o ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ d(
|
|
11840
|
+
}, [a]), !a && !o ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ d(Se, { gap: 16, children: [
|
|
11841
11841
|
/* @__PURE__ */ t(Dt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ d(
|
|
11842
11842
|
Ln,
|
|
11843
11843
|
{
|
|
@@ -12298,7 +12298,7 @@ const Vt = (e) => /* @__PURE__ */ t(f, { fontWeight: 600, variant: "Small", chil
|
|
|
12298
12298
|
[an.HIGHEST_BALANCE]: n.priority_sort_highest_balance,
|
|
12299
12299
|
[an.LOWEST_BALANCE]: n.priority_sort_lowest_balance
|
|
12300
12300
|
})[i] ?? n.priority_sort_lowest_balance, [i]);
|
|
12301
|
-
return /* @__PURE__ */ d(
|
|
12301
|
+
return /* @__PURE__ */ d(Se, { children: [
|
|
12302
12302
|
/* @__PURE__ */ t(Dp, { buttonText: l, isOpen: c, onClick: r }),
|
|
12303
12303
|
/* @__PURE__ */ t(Np, { buttonEl: a, onClose: s })
|
|
12304
12304
|
] });
|
|
@@ -15940,7 +15940,7 @@ const tC = ({
|
|
|
15940
15940
|
theme: o
|
|
15941
15941
|
}) => {
|
|
15942
15942
|
let r = o.palette.secondary.main, s = o.palette.secondary.main, c = "trending_flat";
|
|
15943
|
-
return a.change < 0 ? c = "trending_down" : a.change > 0 && (r = o.palette.success.main, s = o.palette.success.main, c = "trending_up"), /* @__PURE__ */ d(
|
|
15943
|
+
return a.change < 0 ? c = "trending_down" : a.change > 0 && (r = o.palette.success.main, s = o.palette.success.main, c = "trending_up"), /* @__PURE__ */ d(Se, { alignItems: "center", direction: "row", spacing: 4, children: [
|
|
15944
15944
|
/* @__PURE__ */ t(
|
|
15945
15945
|
U,
|
|
15946
15946
|
{
|
|
@@ -21816,18 +21816,18 @@ const Bf = (e) => e.reduce((i, a) => {
|
|
|
21816
21816
|
l,
|
|
21817
21817
|
h.start,
|
|
21818
21818
|
h.end
|
|
21819
|
-
),
|
|
21819
|
+
), Te = k.length ? Q.filter(
|
|
21820
21820
|
(fe) => fe.top_level_category_guid === k || fe.category_guid === k
|
|
21821
21821
|
) : Ym(Q);
|
|
21822
21822
|
return {
|
|
21823
|
-
stackedDatasets:
|
|
21824
|
-
unstackedDatasets:
|
|
21823
|
+
stackedDatasets: Te.filter(Km),
|
|
21824
|
+
unstackedDatasets: Te.filter(Da)
|
|
21825
21825
|
};
|
|
21826
|
-
}, [l, k, h]), Ce = (Q,
|
|
21827
|
-
M(
|
|
21826
|
+
}, [l, k, h]), Ce = (Q, Te) => {
|
|
21827
|
+
M(Te ?? R), i(F.TRENDS_CLICK_TOGGLE);
|
|
21828
21828
|
}, we = (Q) => {
|
|
21829
|
-
const
|
|
21830
|
-
m({ start:
|
|
21829
|
+
const Te = go(Q?.[0], 1), fe = Q?.[1], _t = Js(fe, Te);
|
|
21830
|
+
m({ start: Te, end: fe }), i(F.TRENDS_CLICK_DATE, {
|
|
21831
21831
|
time_period: _t + "M"
|
|
21832
21832
|
});
|
|
21833
21833
|
}, Le = () => {
|
|
@@ -23706,7 +23706,7 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
23706
23706
|
}, [p, C.current?.offsetWidth]), g.useEffect(() => {
|
|
23707
23707
|
const V = S.current?.offsetWidth;
|
|
23708
23708
|
if (typeof V == "number" && e) {
|
|
23709
|
-
const pe = (
|
|
23709
|
+
const pe = (Te) => {
|
|
23710
23710
|
G(!0);
|
|
23711
23711
|
const _t = [
|
|
23712
23712
|
{ maxWidth: 375, cardWidth: 268 },
|
|
@@ -23714,13 +23714,13 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
23714
23714
|
{ maxWidth: 599, cardWidth: 350 },
|
|
23715
23715
|
{ maxWidth: 749, cardWidth: 450 },
|
|
23716
23716
|
{ maxWidth: 900, cardWidth: 600 }
|
|
23717
|
-
].find((tn) =>
|
|
23717
|
+
].find((tn) => Te <= tn.maxWidth);
|
|
23718
23718
|
return _t ? _t.cardWidth : 750;
|
|
23719
23719
|
};
|
|
23720
23720
|
M(pe(V));
|
|
23721
23721
|
const Q = () => {
|
|
23722
|
-
const
|
|
23723
|
-
typeof
|
|
23722
|
+
const Te = S.current?.offsetWidth;
|
|
23723
|
+
typeof Te == "number" && M(pe(Te));
|
|
23724
23724
|
};
|
|
23725
23725
|
return window.addEventListener("resize", Q), () => {
|
|
23726
23726
|
window.removeEventListener("resize", Q);
|
|
@@ -23798,10 +23798,10 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
23798
23798
|
},
|
|
23799
23799
|
children: [
|
|
23800
23800
|
n.map((V, pe) => {
|
|
23801
|
-
const Q = pe + 1,
|
|
23801
|
+
const Q = pe + 1, Te = n.length + 1, fe = T(
|
|
23802
23802
|
L.card_position_in_carousel_aria,
|
|
23803
23803
|
Q.toString(),
|
|
23804
|
-
|
|
23804
|
+
Te.toString()
|
|
23805
23805
|
), _t = V.micro_title && V.micro_title.length > 0, tn = V.micro_description && V.micro_description.length > 0, Kn = _t ? V.micro_title : V.title, Y = tn ? V.micro_description : V.description;
|
|
23806
23806
|
return /* @__PURE__ */ t(
|
|
23807
23807
|
f0,
|
|
@@ -24215,16 +24215,15 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
24215
24215
|
}, [l]);
|
|
24216
24216
|
const S = g.useMemo(() => {
|
|
24217
24217
|
if (!_) return [];
|
|
24218
|
-
const
|
|
24219
|
-
return r.getFilteredBeats({ categoryGuids:
|
|
24220
|
-
}, [_, u]), y = () => null;
|
|
24221
|
-
return /* @__PURE__ */ t(
|
|
24218
|
+
const w = u.map((N) => N.guid);
|
|
24219
|
+
return r.getFilteredBeats({ categoryGuids: w, templates: N0 });
|
|
24220
|
+
}, [_, u]), y = () => null, E = p ? 200 : 170, I = p ? 170 : 124, v = S.length > 0 ? E : I;
|
|
24221
|
+
return /* @__PURE__ */ t(Se, { sx: { height: v }, children: /* @__PURE__ */ t(
|
|
24222
24222
|
v0,
|
|
24223
24223
|
{
|
|
24224
24224
|
areBeatsLoading: r.isLoading,
|
|
24225
24225
|
beats: S,
|
|
24226
24226
|
endpoint: s,
|
|
24227
|
-
heightOverrides: 200,
|
|
24228
24227
|
logOutUser: y,
|
|
24229
24228
|
onCardClick: e,
|
|
24230
24229
|
showBorder: !0,
|
|
@@ -24239,7 +24238,7 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
24239
24238
|
variant: "outlined",
|
|
24240
24239
|
visibleCardsCount: C
|
|
24241
24240
|
}
|
|
24242
|
-
);
|
|
24241
|
+
) });
|
|
24243
24242
|
}, O0 = x(R0), L0 = x(({ transactions: e }) => {
|
|
24244
24243
|
const { is_mobile_webview: n } = vt(), { trends: i, transactions: a } = A(), { isDesktop: o } = be(), r = ` ${e.length === 1 ? i.transaction : i.transactions} (${e.length})`, s = (() => {
|
|
24245
24244
|
const u = /* @__PURE__ */ new Map();
|
|
@@ -24416,34 +24415,34 @@ const Ui = g.createContext(null), s0 = ({
|
|
|
24416
24415
|
});
|
|
24417
24416
|
}, [E, I, p]), g.useEffect(() => {
|
|
24418
24417
|
if (_.length !== 0) {
|
|
24419
|
-
const
|
|
24418
|
+
const Te = {
|
|
24420
24419
|
accounts: v,
|
|
24421
24420
|
dateRange: { start: p.start, end: p.end }
|
|
24422
24421
|
};
|
|
24423
24422
|
h({
|
|
24424
|
-
...
|
|
24423
|
+
...Te,
|
|
24425
24424
|
custom: (fe) => !!_.find(
|
|
24426
24425
|
(_t) => _t.top_level_category_guid === fe.top_level_category_guid || _t.category_guid === fe.category_guid
|
|
24427
24426
|
)
|
|
24428
24427
|
});
|
|
24429
24428
|
}
|
|
24430
24429
|
}, [_]);
|
|
24431
|
-
const he = (
|
|
24432
|
-
const fe =
|
|
24433
|
-
fe.color = la(fe.guid, o), fe.chartLabel =
|
|
24430
|
+
const he = (Te) => {
|
|
24431
|
+
const fe = Te;
|
|
24432
|
+
fe.color = la(fe.guid, o), fe.chartLabel = Te.name === "Income" ? N.monthly_income : N.monthly_spending, C(fe), Le(!0);
|
|
24434
24433
|
}, me = () => {
|
|
24435
24434
|
C(null), Le(!1);
|
|
24436
|
-
}, je = (
|
|
24435
|
+
}, je = (Te, fe) => {
|
|
24437
24436
|
se(fe ?? K), a(F.TRENDS_CLICK_TOGGLE);
|
|
24438
|
-
}, V = (
|
|
24439
|
-
const fe = go(
|
|
24437
|
+
}, V = (Te) => {
|
|
24438
|
+
const fe = go(Te?.[0], 1), _t = Te?.[1], tn = Js(_t, fe);
|
|
24440
24439
|
S({ start: fe, end: _t }), a(F.TRENDS_CLICK_DATE, {
|
|
24441
24440
|
time_period: tn + "M"
|
|
24442
24441
|
});
|
|
24443
24442
|
}, pe = () => {
|
|
24444
24443
|
a(F.TRENDS_CLICK_FILTER);
|
|
24445
|
-
}, Q = (
|
|
24446
|
-
Ce(
|
|
24444
|
+
}, Q = (Te) => {
|
|
24445
|
+
Ce(Te);
|
|
24447
24446
|
};
|
|
24448
24447
|
return !y || !E || !k ? /* @__PURE__ */ t(ue, {}) : _.length === 0 ? /* @__PURE__ */ t(
|
|
24449
24448
|
jn,
|
|
@@ -28620,7 +28619,7 @@ const ny = ({ widgets: e, isLoading: n }) => {
|
|
|
28620
28619
|
]
|
|
28621
28620
|
}
|
|
28622
28621
|
);
|
|
28623
|
-
}, fy = x(Cy), Xi = (e) => /* @__PURE__ */ d(
|
|
28622
|
+
}, fy = x(Cy), Xi = (e) => /* @__PURE__ */ d(Se, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
28624
28623
|
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: e.colDef.headerName }),
|
|
28625
28624
|
/* @__PURE__ */ t(pt, { name: "expand_all", size: 12 })
|
|
28626
28625
|
] }), by = ({
|
|
@@ -28803,22 +28802,22 @@ const ny = ({ widgets: e, isLoading: n }) => {
|
|
|
28803
28802
|
}, L = (V, pe) => {
|
|
28804
28803
|
V.key === "Enter" ? W(pe) : V.key === "Escape" && y(null);
|
|
28805
28804
|
}, W = (V) => {
|
|
28806
|
-
const pe = s.find(({ guid:
|
|
28805
|
+
const pe = s.find(({ guid: Te }) => Te === V);
|
|
28807
28806
|
if (!pe) return;
|
|
28808
28807
|
const Q = Number(E);
|
|
28809
28808
|
if (c({ ...pe, cost_basis: Q }), e) {
|
|
28810
|
-
const
|
|
28809
|
+
const Te = _.holdings.map(
|
|
28811
28810
|
(fe) => fe.id === V ? { ...fe, costBasis: Q } : fe
|
|
28812
28811
|
);
|
|
28813
28812
|
h((fe) => ({
|
|
28814
28813
|
...fe,
|
|
28815
|
-
holdings:
|
|
28814
|
+
holdings: Te
|
|
28816
28815
|
}));
|
|
28817
28816
|
}
|
|
28818
28817
|
y(null);
|
|
28819
28818
|
}, K = (V) => (pe, Q) => {
|
|
28820
|
-
i((
|
|
28821
|
-
...
|
|
28819
|
+
i((Te) => ({
|
|
28820
|
+
...Te,
|
|
28822
28821
|
[V]: Q
|
|
28823
28822
|
}));
|
|
28824
28823
|
}, { visibleHoldings: se } = Xn(), { visibleInvestmentAccounts: te } = ye(), Ce = te.filter(
|
|
@@ -28873,10 +28872,10 @@ const ny = ({ widgets: e, isLoading: n }) => {
|
|
|
28873
28872
|
totalGainLoss: Y.market_value ? Y.market_value - (Y.cost_basis || 0) : 0,
|
|
28874
28873
|
marketValue: Y.market_value || 0,
|
|
28875
28874
|
description: Y.description || ""
|
|
28876
|
-
})), Q = pe.length > 0,
|
|
28875
|
+
})), Q = pe.length > 0, Te = V.balance, fe = pe.reduce(
|
|
28877
28876
|
(Y, Be) => Be.totalGainLoss + Y,
|
|
28878
28877
|
0
|
|
28879
|
-
), _t =
|
|
28878
|
+
), _t = Te ? fe / Te * 100 : 0;
|
|
28880
28879
|
if (e)
|
|
28881
28880
|
return /* @__PURE__ */ t(
|
|
28882
28881
|
Dt,
|
|
@@ -29028,7 +29027,7 @@ const ny = ({ widgets: e, isLoading: n }) => {
|
|
|
29028
29027
|
},
|
|
29029
29028
|
children: [
|
|
29030
29029
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
|
|
29031
|
-
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
|
29030
|
+
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Te?.toLocaleString("en-US", {
|
|
29032
29031
|
currency: "USD",
|
|
29033
29032
|
maximumFractionDigits: 2,
|
|
29034
29033
|
minimumFractionDigits: 2,
|
|
@@ -29158,7 +29157,7 @@ const ny = ({ widgets: e, isLoading: n }) => {
|
|
|
29158
29157
|
] }),
|
|
29159
29158
|
/* @__PURE__ */ t(Me, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ d(Me, { sx: { alignItems: "flex-end" }, children: [
|
|
29160
29159
|
/* @__PURE__ */ t(f, { sx: { color: "text.secondary" }, variant: "XSmall", children: p.overview.total_value }),
|
|
29161
|
-
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
|
29160
|
+
/* @__PURE__ */ t(f, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: Te?.toLocaleString("en-US", {
|
|
29162
29161
|
currency: "USD",
|
|
29163
29162
|
maximumFractionDigits: 2,
|
|
29164
29163
|
minimumFractionDigits: 2,
|
|
@@ -29915,7 +29914,7 @@ export {
|
|
|
29915
29914
|
es as FinstrongApi,
|
|
29916
29915
|
Xp as FinstrongStore,
|
|
29917
29916
|
q2 as FinstrongWidget,
|
|
29918
|
-
|
|
29917
|
+
Ee as Frequency,
|
|
29919
29918
|
Ni as GlobalCopyApi,
|
|
29920
29919
|
Wu as GlobalCopyStore,
|
|
29921
29920
|
ti as GlobalDataContext,
|