@mx-cartographer/experiences 6.24.1 → 6.24.3
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/dist/index.es.js
CHANGED
|
@@ -1300,7 +1300,7 @@ const xa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1300
1300
|
if (!n)
|
|
1301
1301
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1302
1302
|
return n;
|
|
1303
|
-
},
|
|
1303
|
+
}, Ce = () => et("useAccountStore").globalStore.accountStore, Pt = () => et("useAppConfig").globalStore.appDataStore.appConfig, lo = () => et("useAnalyticsStore").globalStore.analyticsStore, ht = () => et("useBudgetsStore").globalStore.budgetsStore, uo = () => et("useCashflowStore").globalStore.cashflowStore, Ve = () => et("useCategoryStore").globalStore.categoryStore, zs = () => et("useConnectStore").globalStore.connectStore, _a = () => et("useDebtsStore").globalStore.debtsStore, oi = () => et("useGlobalStore").globalStore, se = () => et("useGlobalUiStore").globalStore.globalUiStore, x = () => et("globalCopyStore").globalStore.copyStore.copy, ct = () => et("useGoalStore").globalStore.goalStore, _o = () => et("useHelpStore").globalStore.helpStore, Fn = () => et("useHoldingStore").globalStore.holdingStore, Ru = () => et("useMerchantStore").globalStore.merchantStore, js = () => et("useNetWorthStore").globalStore.netWorthStore, $s = () => et("useNotificationStore").globalStore.notificationStore, tt = () => et("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => et("useSettingsStore").globalStore.settingsStore, Oe = () => et("useTransactionStore").globalStore.transactionStore, Xs = () => et("useTrendsStore").globalStore.trendsStore, wt = () => et("useUserStore").globalStore.userStore, X = () => ({ onEvent: et().onEvent }), G4 = () => ({ onPageView: et().onPageView }), Lu = (e = "useWidgetContainerContext") => {
|
|
1304
1304
|
const n = g.useContext(Ys);
|
|
1305
1305
|
if (!n)
|
|
1306
1306
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -3541,7 +3541,7 @@ const cr = "connect_widget", lr = "connections_widget", m_ = ({
|
|
|
3541
3541
|
title: a
|
|
3542
3542
|
}) => {
|
|
3543
3543
|
let o;
|
|
3544
|
-
const { refreshAccounts: r } =
|
|
3544
|
+
const { refreshAccounts: r } = Ce(), { loadWidget: s } = zs(), { connect: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
|
|
3545
3545
|
palette: { mode: m }
|
|
3546
3546
|
} = pe();
|
|
3547
3547
|
return g.useEffect(() => (i ? (_(!0), s({ mode: m, ...e }).then((p) => {
|
|
@@ -4454,7 +4454,7 @@ const ri = () => {
|
|
|
4454
4454
|
/* @__PURE__ */ t(je, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
|
4455
4455
|
] });
|
|
4456
4456
|
}, Co = T(v_), N_ = ({ onAddIncomeClick: e }) => {
|
|
4457
|
-
const n = pe(), { availableWidth: i } = Sn(), { isMobile: a } = me(), { visibleCashAccounts: o, visibleCashBalance: r } =
|
|
4457
|
+
const n = pe(), { availableWidth: i } = Sn(), { isMobile: a } = me(), { visibleCashAccounts: o, visibleCashBalance: r } = Ce(), { selectedAccountGuids: s } = se(), { cashflow: c } = x(), { userProfile: d } = wt(), {
|
|
4458
4458
|
daysUntilNextIncome: _,
|
|
4459
4459
|
expensesTilNextIncome: u,
|
|
4460
4460
|
selectedCashAccounts: h,
|
|
@@ -4621,28 +4621,28 @@ const ri = () => {
|
|
|
4621
4621
|
transaction: void 0
|
|
4622
4622
|
}, s = n.start, c = n.end;
|
|
4623
4623
|
switch (e.recurrence_type) {
|
|
4624
|
-
case
|
|
4624
|
+
case fe.EveryWeek:
|
|
4625
4625
|
i.push(...M_(r, s, c));
|
|
4626
4626
|
break;
|
|
4627
|
-
case
|
|
4627
|
+
case fe.EveryOtherWeek:
|
|
4628
4628
|
i.push(...k_(r, s, c));
|
|
4629
4629
|
break;
|
|
4630
|
-
case
|
|
4630
|
+
case fe.TwiceAMonth:
|
|
4631
4631
|
i.push(...G_(r, s));
|
|
4632
4632
|
break;
|
|
4633
|
-
case
|
|
4633
|
+
case fe.EveryMonth:
|
|
4634
4634
|
i.push(...B_(r, s));
|
|
4635
4635
|
break;
|
|
4636
|
-
case
|
|
4636
|
+
case fe.EveryOtherMonth:
|
|
4637
4637
|
i.push(...H_(r, s, c));
|
|
4638
4638
|
break;
|
|
4639
|
-
case
|
|
4639
|
+
case fe.EveryQuarter:
|
|
4640
4640
|
i.push(...P_(r, s, c));
|
|
4641
4641
|
break;
|
|
4642
|
-
case
|
|
4642
|
+
case fe.EveryOtherQuarter:
|
|
4643
4643
|
i.push(...F_(r, s, c));
|
|
4644
4644
|
break;
|
|
4645
|
-
case
|
|
4645
|
+
case fe.EveryYear:
|
|
4646
4646
|
i.push(...W_(r, s, c));
|
|
4647
4647
|
break;
|
|
4648
4648
|
}
|
|
@@ -4734,34 +4734,34 @@ const ri = () => {
|
|
|
4734
4734
|
const a = Ki(Se(), n.recurrence_day), o = vs(Se(), n.recurrence_day), r = bi(n.recurrence_day), s = n.second_recurrence_day ? bi(n.second_recurrence_day) : "";
|
|
4735
4735
|
let c = i ? S(e.monthly_ordinal, r) : e.monthly;
|
|
4736
4736
|
switch (n.recurrence_type) {
|
|
4737
|
-
case
|
|
4737
|
+
case fe.EveryQuarter:
|
|
4738
4738
|
c = i ? S(e.quarterly_ordinal, r) : e.quarterly;
|
|
4739
4739
|
break;
|
|
4740
|
-
case
|
|
4740
|
+
case fe.EveryWeek:
|
|
4741
4741
|
c = i ? S(
|
|
4742
4742
|
e.weekly_ordinal,
|
|
4743
4743
|
oe(a, ee.DAY_OF_WEEK)
|
|
4744
4744
|
) : e.weekly;
|
|
4745
4745
|
break;
|
|
4746
|
-
case
|
|
4746
|
+
case fe.EveryYear:
|
|
4747
4747
|
c = i ? S(
|
|
4748
4748
|
e.anually_ordinal,
|
|
4749
4749
|
oe(o, ee.MONTH_DAY)
|
|
4750
4750
|
) : e.anually;
|
|
4751
4751
|
break;
|
|
4752
|
-
case
|
|
4752
|
+
case fe.EveryOtherWeek:
|
|
4753
4753
|
c = i ? S(
|
|
4754
4754
|
e.every_other_week_ordinal,
|
|
4755
4755
|
oe(a, ee.DAY_OF_WEEK)
|
|
4756
4756
|
) : e.every_other_week;
|
|
4757
4757
|
break;
|
|
4758
|
-
case
|
|
4758
|
+
case fe.EveryOtherMonth:
|
|
4759
4759
|
c = i ? S(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
4760
4760
|
break;
|
|
4761
|
-
case
|
|
4761
|
+
case fe.EveryOtherQuarter:
|
|
4762
4762
|
c = i ? S(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
4763
4763
|
break;
|
|
4764
|
-
case
|
|
4764
|
+
case fe.TwiceAMonth:
|
|
4765
4765
|
c = i ? S(e.twice_a_month_ordinal, r, s) : e.twice_a_month;
|
|
4766
4766
|
break;
|
|
4767
4767
|
}
|
|
@@ -4769,25 +4769,25 @@ const ri = () => {
|
|
|
4769
4769
|
}, Ua = (e, n) => {
|
|
4770
4770
|
let i = n;
|
|
4771
4771
|
switch (e) {
|
|
4772
|
-
case
|
|
4772
|
+
case fe.EveryWeek:
|
|
4773
4773
|
i = so(n);
|
|
4774
4774
|
break;
|
|
4775
|
-
case
|
|
4775
|
+
case fe.EveryOtherWeek:
|
|
4776
4776
|
i = yu(n);
|
|
4777
4777
|
break;
|
|
4778
|
-
case
|
|
4778
|
+
case fe.EveryMonth:
|
|
4779
4779
|
i = Eu(n);
|
|
4780
4780
|
break;
|
|
4781
|
-
case
|
|
4781
|
+
case fe.EveryOtherMonth:
|
|
4782
4782
|
i = Au(n);
|
|
4783
4783
|
break;
|
|
4784
|
-
case
|
|
4784
|
+
case fe.EveryQuarter:
|
|
4785
4785
|
i = Vs(n);
|
|
4786
4786
|
break;
|
|
4787
|
-
case
|
|
4787
|
+
case fe.EveryOtherQuarter:
|
|
4788
4788
|
i = Su(n);
|
|
4789
4789
|
break;
|
|
4790
|
-
case
|
|
4790
|
+
case fe.EveryYear:
|
|
4791
4791
|
i = Tu(n);
|
|
4792
4792
|
break;
|
|
4793
4793
|
}
|
|
@@ -5300,7 +5300,7 @@ const ac = (e, n) => {
|
|
|
5300
5300
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
|
5301
5301
|
return i.every((o) => a.indexOf(o) > -1);
|
|
5302
5302
|
};
|
|
5303
|
-
var oh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(oh || {}), rh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(rh || {}), sh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(sh || {}), Y = /* @__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))(Y || {}), Ka = /* @__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))(Ka || {}), Rt = /* @__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))(Rt || {}), Nt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Nt || {}), at = /* @__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))(at || {}), Wn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Wn || {}), $e = /* @__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))($e || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), fo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(fo || {}), ch = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ch || {}),
|
|
5303
|
+
var oh = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(oh || {}), rh = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(rh || {}), sh = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(sh || {}), Y = /* @__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))(Y || {}), Ka = /* @__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))(Ka || {}), Rt = /* @__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))(Rt || {}), Nt = /* @__PURE__ */ ((e) => (e.Accounts = "accounts", e.Budgets = "budgets", e.Insights = "insights", e.Personal = "personal", e))(Nt || {}), at = /* @__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))(at || {}), Wn = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e))(Wn || {}), $e = /* @__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))($e || {}), Yt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(Yt || {}), fo = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(fo || {}), ch = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(ch || {}), fe = /* @__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))(fe || {}), Xe = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Xe || {}), zt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(zt || {}), nn = /* @__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))(nn || {});
|
|
5304
5304
|
const oc = {
|
|
5305
5305
|
account_guid: "",
|
|
5306
5306
|
amount: 0,
|
|
@@ -7520,7 +7520,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7520
7520
|
}
|
|
7521
7521
|
) : /* @__PURE__ */ t(le, {});
|
|
7522
7522
|
}, Tg = T(Sg), xg = () => {
|
|
7523
|
-
const { visibleAccounts: e } =
|
|
7523
|
+
const { visibleAccounts: e } = Ce(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } = vt(), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useMemo(
|
|
7524
7524
|
() => e.filter((y) => y.is_manual),
|
|
7525
7525
|
[e]
|
|
7526
7526
|
).map((y) => ({
|
|
@@ -7664,7 +7664,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7664
7664
|
showInsights: i = !1,
|
|
7665
7665
|
sx: a = {}
|
|
7666
7666
|
}) => {
|
|
7667
|
-
const { visibleAccounts: o, refreshAccounts: r } =
|
|
7667
|
+
const { visibleAccounts: o, refreshAccounts: r } = Ce(), { is_mobile_webview: s } = Pt(), { setSearchValue: c } = un(), { onEvent: d } = X(), { common: _, transactions: u } = x(), {
|
|
7668
7668
|
displayedDateRange: h,
|
|
7669
7669
|
isCopyLoaded: m,
|
|
7670
7670
|
isInitialized: p,
|
|
@@ -7879,14 +7879,14 @@ const cc = ({ transaction: e }) => {
|
|
|
7879
7879
|
}) => {
|
|
7880
7880
|
const { recurring: s } = x(), c = g.useMemo(
|
|
7881
7881
|
() => [
|
|
7882
|
-
{ id:
|
|
7883
|
-
{ id:
|
|
7884
|
-
{ id:
|
|
7885
|
-
{ id:
|
|
7886
|
-
{ id:
|
|
7887
|
-
{ id:
|
|
7888
|
-
{ id:
|
|
7889
|
-
{ id:
|
|
7882
|
+
{ id: fe.EveryWeek, label: s.frequency_every_week },
|
|
7883
|
+
{ id: fe.EveryOtherWeek, label: s.frequency_every_other_week },
|
|
7884
|
+
{ id: fe.TwiceAMonth, label: s.frequency_twice_a_month },
|
|
7885
|
+
{ id: fe.EveryMonth, label: s.frequency_every_month },
|
|
7886
|
+
{ id: fe.EveryOtherMonth, label: s.frequency_every_other_month },
|
|
7887
|
+
{ id: fe.EveryQuarter, label: s.frequency_every_quarter },
|
|
7888
|
+
{ id: fe.EveryOtherQuarter, label: s.frequency_every_other_quarter },
|
|
7889
|
+
{ id: fe.EveryYear, label: s.frequency_every_year }
|
|
7890
7890
|
],
|
|
7891
7891
|
[s]
|
|
7892
7892
|
), d = [
|
|
@@ -7902,7 +7902,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7902
7902
|
label: bi(y + 1)
|
|
7903
7903
|
}));
|
|
7904
7904
|
_[30].label += ` (${s.last_day_of_month})`;
|
|
7905
|
-
const u = _.slice(0, 15), h = _.slice(14), m = e ===
|
|
7905
|
+
const u = _.slice(0, 15), h = _.slice(14), m = e === fe.EveryWeek || e === fe.EveryOtherWeek, p = e === fe.TwiceAMonth || e === fe.EveryMonth || e === fe.EveryOtherMonth || e === fe.EveryQuarter || e === fe.EveryOtherQuarter, f = vs(Se(), n), E = (y) => {
|
|
7906
7906
|
y && o(Pd(y));
|
|
7907
7907
|
};
|
|
7908
7908
|
return /* @__PURE__ */ l(b, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -7927,13 +7927,13 @@ const cc = ({ transaction: e }) => {
|
|
|
7927
7927
|
p && /* @__PURE__ */ t(
|
|
7928
7928
|
Gi,
|
|
7929
7929
|
{
|
|
7930
|
-
label: e ===
|
|
7930
|
+
label: e === fe.TwiceAMonth ? s.first_day_of_the_month : s.day_of_the_month,
|
|
7931
7931
|
onChange: o,
|
|
7932
|
-
options: e ===
|
|
7932
|
+
options: e === fe.TwiceAMonth ? u : _,
|
|
7933
7933
|
value: n
|
|
7934
7934
|
}
|
|
7935
7935
|
),
|
|
7936
|
-
e ===
|
|
7936
|
+
e === fe.TwiceAMonth && /* @__PURE__ */ t(
|
|
7937
7937
|
Gi,
|
|
7938
7938
|
{
|
|
7939
7939
|
label: s.second_day_of_the_month,
|
|
@@ -7942,7 +7942,7 @@ const cc = ({ transaction: e }) => {
|
|
|
7942
7942
|
value: i || 0
|
|
7943
7943
|
}
|
|
7944
7944
|
),
|
|
7945
|
-
e ===
|
|
7945
|
+
e === fe.EveryYear && /* @__PURE__ */ t(Ti, { dateAdapter: ni, children: /* @__PURE__ */ t(
|
|
7946
7946
|
Qa,
|
|
7947
7947
|
{
|
|
7948
7948
|
disablePast: !0,
|
|
@@ -8249,7 +8249,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8249
8249
|
label: n,
|
|
8250
8250
|
onAddRecurringTransaction: i = () => null
|
|
8251
8251
|
}) => {
|
|
8252
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Oe(), { addRepeatingTransaction: c } = tt(), { user: d } = wt(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(
|
|
8252
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Oe(), { addRepeatingTransaction: c } = tt(), { user: d } = wt(), [_, u] = g.useState(!1), [h, m] = g.useState(""), [p, f] = g.useState(fe.EveryMonth), [E, y] = g.useState(1), [A, I] = g.useState(15), v = g.useMemo(
|
|
8253
8253
|
() => s.find((G) => G.guid === h),
|
|
8254
8254
|
[h, s]
|
|
8255
8255
|
), w = () => {
|
|
@@ -8344,7 +8344,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8344
8344
|
};
|
|
8345
8345
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
8346
8346
|
n.filter(
|
|
8347
|
-
(r) => r.repeating_transaction_type !== nn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8347
|
+
(r) => r.repeating_transaction_type !== nn.Income && (r.transactions.length > 0 || r.recurrence_type === fe.EveryYear)
|
|
8348
8348
|
).map((r, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
8349
8349
|
/* @__PURE__ */ t(mc, { onClick: a, repeatingTransaction: r }),
|
|
8350
8350
|
/* @__PURE__ */ t(F, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -8361,7 +8361,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8361
8361
|
};
|
|
8362
8362
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
8363
8363
|
n.filter(
|
|
8364
|
-
(r) => r.repeating_transaction_type === nn.Income && (r.transactions.length > 0 || r.recurrence_type ===
|
|
8364
|
+
(r) => r.repeating_transaction_type === nn.Income && (r.transactions.length > 0 || r.recurrence_type === fe.EveryYear)
|
|
8365
8365
|
).map((r, s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
8366
8366
|
/* @__PURE__ */ t(mc, { onClick: a, repeatingTransaction: r }),
|
|
8367
8367
|
/* @__PURE__ */ t(F, { variant: s < n.length - 1 ? "inset" : "fullWidth" })
|
|
@@ -8890,7 +8890,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8890
8890
|
] }) })
|
|
8891
8891
|
] });
|
|
8892
8892
|
}), z4 = T(({ onBackClick: e, sx: n = {} }) => {
|
|
8893
|
-
const { accounts: i } =
|
|
8893
|
+
const { accounts: i } = Ce(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = se(), { isDataLoaded: d, loadRepeatingTransactions: _, setDateRange: u } = tt(), { setFilter: h } = Oe(), { onEvent: m } = X(), [p, f] = g.useState(!1);
|
|
8894
8894
|
return g.useEffect(() => {
|
|
8895
8895
|
c(i);
|
|
8896
8896
|
}, [i]), g.useEffect(() => {
|
|
@@ -8956,7 +8956,7 @@ const cc = ({ transaction: e }) => {
|
|
|
8956
8956
|
] });
|
|
8957
8957
|
}), j4 = T(
|
|
8958
8958
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
8959
|
-
const { accounts: i } =
|
|
8959
|
+
const { accounts: i } = Ce(), { recurring: a } = x(), { setFilter: o } = Oe(), { isDataLoaded: r, loadRepeatingTransactions: s } = tt(), { isCopyLoaded: c, isInitialized: d, setSelectedAccounts: _, selectedAccountGuids: u } = se();
|
|
8960
8960
|
return g.useEffect(() => {
|
|
8961
8961
|
d && _(i);
|
|
8962
8962
|
}, [d]), g.useEffect(() => {
|
|
@@ -9057,7 +9057,7 @@ const cc = ({ transaction: e }) => {
|
|
|
9057
9057
|
] });
|
|
9058
9058
|
}), $4 = T(
|
|
9059
9059
|
({ onCTAClick: e }) => {
|
|
9060
|
-
const [n, i] = g.useState(!1), { accounts: a } =
|
|
9060
|
+
const [n, i] = g.useState(!1), { accounts: a } = Ce(), [o, { width: r }] = vi(), { isCopyLoaded: s, isInitialized: c, selectedAccountGuids: d, setSelectedAccounts: _ } = se(), {
|
|
9061
9061
|
loadRepeatingTransactions: u,
|
|
9062
9062
|
upcomingRecurrences: h,
|
|
9063
9063
|
expenseTotal: m,
|
|
@@ -10249,7 +10249,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10249
10249
|
transform: rotate(360deg);
|
|
10250
10250
|
}
|
|
10251
10251
|
`, gm = () => {
|
|
10252
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = tt(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = uo(), { isDirty: r } = ri(), { isMobile: s } = me(), { isCopyLoaded: c, setDisplayedDate: d } = se(), { filter: _, setFilter: u, transactions: h } = Oe(), m = pe(), [p, f] = Et(!0), [E, y] = g.useState(
|
|
10252
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = tt(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = uo(), { isDirty: r } = ri(), { isMobile: s } = me(), { isCopyLoaded: c, setDisplayedDate: d } = se(), { filter: _, setFilter: u, transactions: h } = Oe(), m = pe(), [p, f] = Et(!0), [E, y] = g.useState(fe.EveryMonth), [A, I] = g.useState(1), [v, w] = g.useState(15), [D, O] = Et(!1), [G, M] = Et(1), [R, L] = Et([]), [U, te] = Et(""), ue = g.useMemo(
|
|
10253
10253
|
() => h.find((he) => he.guid === U),
|
|
10254
10254
|
[U, h]
|
|
10255
10255
|
), ye = !!n.filter(
|
|
@@ -10432,7 +10432,7 @@ const Jg = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
|
10432
10432
|
setSelectedAccounts: o,
|
|
10433
10433
|
shouldDisableNextDate: r,
|
|
10434
10434
|
shouldDisablePrevDate: s
|
|
10435
|
-
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } =
|
|
10435
|
+
} = se(), { onEvent: c } = X(), { visibleCashAccounts: d } = Ce(), { setFilter: _ } = Oe(), { userProfile: u } = wt(), { dateRange: h, setSelectedCashAccounts: m } = ri(), { loadRepeatingTransactions: p, setDateRange: f } = tt(), { cashflow: E } = x(), { isCopyLoaded: y, isInitialized: A } = se(), [I, v] = g.useState(!1);
|
|
10436
10436
|
return g.useEffect(() => {
|
|
10437
10437
|
A && (f(h), p().finally());
|
|
10438
10438
|
}, [A]), g.useEffect(() => {
|
|
@@ -11028,7 +11028,7 @@ const _n = () => {
|
|
|
11028
11028
|
}, Sm = T(Am), Ft = () => {
|
|
11029
11029
|
if (!g.useContext(Yn))
|
|
11030
11030
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
11031
|
-
return
|
|
11031
|
+
return Ce().uiStore;
|
|
11032
11032
|
}, Ni = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, xc = (e) => !Ni(e) && !wc(e), Ic = (e) => Zo.includes(e.top_level_category_guid) || Zo.includes(e.category_guid), wc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Tm = (e) => !Ni(e) && !Ic(e) && !wc(e), vc = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
|
|
11033
11033
|
if (n === 0) return 0;
|
|
11034
11034
|
const i = (e - n) / n;
|
|
@@ -11122,7 +11122,7 @@ const _n = () => {
|
|
|
11122
11122
|
}
|
|
11123
11123
|
);
|
|
11124
11124
|
}, Lm = T(Rm), Om = ({ customDetailsChart: e }) => {
|
|
11125
|
-
const { institutions: n } =
|
|
11125
|
+
const { institutions: n } = Ce(), { selectedAccount: i } = Ft(), { accounts: a } = x(), { firstSubtitle: o, firstValue: r, hasAvailableBalance: s, secondSubtitle: c, secondValue: d } = Ac(i, a), _ = n.find(
|
|
11126
11126
|
(h) => h.guid === i?.institution_guid
|
|
11127
11127
|
), u = [
|
|
11128
11128
|
...ao,
|
|
@@ -11478,7 +11478,7 @@ const Rc = ({
|
|
|
11478
11478
|
}
|
|
11479
11479
|
);
|
|
11480
11480
|
}), Fm = T(({ debt: e }) => {
|
|
11481
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11481
|
+
const { debts: n } = x(), { updateAccount: i } = Ce(), { onEvent: a } = X(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
|
|
11482
11482
|
await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
|
|
11483
11483
|
}, d = () => {
|
|
11484
11484
|
setTimeout(() => {
|
|
@@ -11508,7 +11508,7 @@ const Rc = ({
|
|
|
11508
11508
|
}
|
|
11509
11509
|
);
|
|
11510
11510
|
}), Wm = T(({ debt: e }) => {
|
|
11511
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11511
|
+
const { debts: n } = x(), { updateAccount: i } = Ce(), { onEvent: a } = X(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11512
11512
|
await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
|
|
11513
11513
|
}, d = () => {
|
|
11514
11514
|
setTimeout(() => {
|
|
@@ -11540,7 +11540,7 @@ const Rc = ({
|
|
|
11540
11540
|
}
|
|
11541
11541
|
);
|
|
11542
11542
|
}), Um = T(({ debt: e }) => {
|
|
11543
|
-
const { debts: n } = x(), { updateAccount: i } =
|
|
11543
|
+
const { debts: n } = x(), { updateAccount: i } = Ce(), { onEvent: a } = X(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
|
11544
11544
|
await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
|
|
11545
11545
|
}, d = () => {
|
|
11546
11546
|
setTimeout(() => {
|
|
@@ -12112,7 +12112,7 @@ const Ut = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12112
12112
|
}
|
|
12113
12113
|
);
|
|
12114
12114
|
}), up = ({ onBackClick: e, sx: n }) => {
|
|
12115
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = _n(), { visibleDebtAccounts: w } =
|
|
12115
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = me(), { debts: m } = x(), { onEvent: p } = X(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = se(), { setSelectedAccount: A } = Ft(), { selectedDebtPriority: I, setSelectedDebtChartData: v } = _n(), { visibleDebtAccounts: w } = Ce(), { goalsLoaded: D, loadGoals: O, monthlyCashFlowProfile: G } = ct(), { debts: M } = _a(), R = g.useMemo(() => {
|
|
12116
12116
|
const be = G?.extra_payment ?? 0;
|
|
12117
12117
|
return lp(M, I, be);
|
|
12118
12118
|
}, [M, I, G]);
|
|
@@ -12371,7 +12371,7 @@ const Cp = ({
|
|
|
12371
12371
|
profile: "Profile",
|
|
12372
12372
|
title: "Finstrong"
|
|
12373
12373
|
}, fp = ({ onBackClick: e, sx: n }) => {
|
|
12374
|
-
const { visibleAccounts: i } =
|
|
12374
|
+
const { visibleAccounts: i } = Ce(), { finstrong: a } = x(), { isCopyLoaded: o } = se(), { isMobile: r } = me();
|
|
12375
12375
|
if (!o) return /* @__PURE__ */ t(le, {});
|
|
12376
12376
|
const s = () => {
|
|
12377
12377
|
}, c = () => {
|
|
@@ -12961,7 +12961,7 @@ const yp = (e, n) => {
|
|
|
12961
12961
|
}
|
|
12962
12962
|
);
|
|
12963
12963
|
}, vp = ({ onClose: e }) => {
|
|
12964
|
-
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } =
|
|
12964
|
+
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = ct(), { visibleDebtAccounts: s } = Ce(), [c, d] = g.useState(!1), _ = bp(n), u = (m, p, f) => {
|
|
12965
12965
|
f === Y.DEBT_TRACK ? d(!0) : r({
|
|
12966
12966
|
amount: 0,
|
|
12967
12967
|
current_amount: 0,
|
|
@@ -13064,7 +13064,7 @@ const yp = (e, n) => {
|
|
|
13064
13064
|
}
|
|
13065
13065
|
);
|
|
13066
13066
|
}), Dp = ({ goal: e }) => {
|
|
13067
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } =
|
|
13067
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = Ce(), { accounts: a, goals: o } = x(), { setAlert: r, setSelectedGoal: s, updateGoal: c } = ct(), d = !e.guid, [_, u] = g.useState(!1), h = async ({ balance: m, guid: p }) => {
|
|
13068
13068
|
const f = { ...e, account_guid: p, current_amount: m || 0 };
|
|
13069
13069
|
d ? s(f) : (await c(f), r(o.alert_account_changed)), u(!1);
|
|
13070
13070
|
};
|
|
@@ -13226,7 +13226,7 @@ const yp = (e, n) => {
|
|
|
13226
13226
|
}
|
|
13227
13227
|
);
|
|
13228
13228
|
}), Mp = ({ goal: e }) => {
|
|
13229
|
-
const { goals: n } = x(), { visibleInvestmentAccounts: i } =
|
|
13229
|
+
const { goals: n } = x(), { visibleInvestmentAccounts: i } = Ce(), {
|
|
13230
13230
|
addRetirementGoalAccount: a,
|
|
13231
13231
|
newRetirementGoalAccounts: o,
|
|
13232
13232
|
retirementGoalAccounts: r,
|
|
@@ -13277,7 +13277,7 @@ const yp = (e, n) => {
|
|
|
13277
13277
|
)
|
|
13278
13278
|
] });
|
|
13279
13279
|
}, kp = T(({ goal: e }) => {
|
|
13280
|
-
const { goals: n } = x(), { visibleAccounts: i } =
|
|
13280
|
+
const { goals: n } = x(), { visibleAccounts: i } = Ce(), a = g.useMemo(
|
|
13281
13281
|
() => i.find((s) => s.guid === e.account_guid),
|
|
13282
13282
|
[i, e]
|
|
13283
13283
|
), o = e.track_type;
|
|
@@ -13322,7 +13322,7 @@ const yp = (e, n) => {
|
|
|
13322
13322
|
e.track_type === Y.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Dp, { goal: e })
|
|
13323
13323
|
] });
|
|
13324
13324
|
}), Gp = T(({ onClose: e }) => {
|
|
13325
|
-
const { visibleInvestmentAccounts: n } =
|
|
13325
|
+
const { visibleInvestmentAccounts: n } = Ce(), { goals: i, common: a } = x(), {
|
|
13326
13326
|
addGoal: o,
|
|
13327
13327
|
addRetirementGoal: r,
|
|
13328
13328
|
deleteGoal: s,
|
|
@@ -13389,7 +13389,7 @@ const yp = (e, n) => {
|
|
|
13389
13389
|
)
|
|
13390
13390
|
] });
|
|
13391
13391
|
}), e2 = T(({ onBackClick: e, sx: n }) => {
|
|
13392
|
-
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleAccounts: o } =
|
|
13392
|
+
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleAccounts: o } = Ce(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = se(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = ct(), [A, I] = g.useState(0), [v, w] = g.useState(!1), D = f?.amount_allocated_for_savings_goals || 0, O = f?.amount_allocated_for_debt_goals || 0, G = f?.amount_allocated_for_retirement_goals || 0, M = r ? S(
|
|
13393
13393
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13394
13394
|
P(D, "0,0")
|
|
13395
13395
|
) : "", R = r ? S(
|
|
@@ -13737,7 +13737,7 @@ const Hp = T(({ goal: e }) => {
|
|
|
13737
13737
|
}
|
|
13738
13738
|
);
|
|
13739
13739
|
}), t2 = T(({ onCTAClick: e }) => {
|
|
13740
|
-
const { visibleAccounts: n } =
|
|
13740
|
+
const { visibleAccounts: n } = Ce(), { onEvent: i } = X(), { goals: a } = x(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = se(), { ongoingGoalsForMicroWidget: c, loadGoals: d, goalsLoaded: _ } = ct();
|
|
13741
13741
|
g.useEffect(() => {
|
|
13742
13742
|
r(n), i(W.GOALS_VIEW);
|
|
13743
13743
|
}, []), g.useEffect(() => {
|
|
@@ -14717,7 +14717,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14717
14717
|
/* @__PURE__ */ t(_e, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
14718
14718
|
] })
|
|
14719
14719
|
] }), i2 = T(({ onCTAClick: e }) => {
|
|
14720
|
-
const [n, i] = g.useState(!1), { visibleAccounts: a } =
|
|
14720
|
+
const [n, i] = g.useState(!1), { visibleAccounts: a } = Ce(), { onEvent: o } = X(), { net_worth: r, common: s } = x(), { isInitialized: c, selectedAccounts: d, setSelectedAccounts: _ } = se(), { loadChartData: u, loadNetWorthData: h, netWorthData: m, selectedData: p } = js(), f = async () => {
|
|
14721
14721
|
await h(d), await u(1), i(!0);
|
|
14722
14722
|
};
|
|
14723
14723
|
if (g.useEffect(() => _(a), [a]), g.useEffect(() => {
|
|
@@ -14749,7 +14749,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14749
14749
|
title: i
|
|
14750
14750
|
}) => {
|
|
14751
14751
|
let a;
|
|
14752
|
-
const { refreshAccounts: o } =
|
|
14752
|
+
const { refreshAccounts: o } = Ce(), { loadWidget: r } = zs(), { connect: s } = x(), c = dt(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
|
|
14753
14753
|
return g.useEffect(() => (n ? (_(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
|
14754
14754
|
a = new Cd({
|
|
14755
14755
|
container: `#${lr}`,
|
|
@@ -14945,7 +14945,7 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14945
14945
|
] })
|
|
14946
14946
|
] });
|
|
14947
14947
|
}, M1 = T(O1), a2 = T(({ onBackClick: e }) => {
|
|
14948
|
-
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = se(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } =
|
|
14948
|
+
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = se(), { accounts: r, net_worth: s } = x(), { visibleAccounts: c } = Ce(), {
|
|
14949
14949
|
assetsLiabilities: d,
|
|
14950
14950
|
gainsLosses: _,
|
|
14951
14951
|
hoveredData: u,
|
|
@@ -15096,15 +15096,18 @@ const w1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
15096
15096
|
default:
|
|
15097
15097
|
return null;
|
|
15098
15098
|
}
|
|
15099
|
+
}, k1 = (e, n) => {
|
|
15100
|
+
const i = fi(n[e].delivered_at), a = fi(n[e - 1]?.delivered_at);
|
|
15101
|
+
return !vd(i, a);
|
|
15099
15102
|
};
|
|
15100
|
-
function
|
|
15103
|
+
function G1(e) {
|
|
15101
15104
|
const i = Math.floor(Date.now() / 1e3);
|
|
15102
15105
|
return e.filter((a) => {
|
|
15103
15106
|
const o = a.delivered_at;
|
|
15104
15107
|
return i - o <= 604800;
|
|
15105
15108
|
});
|
|
15106
15109
|
}
|
|
15107
|
-
class
|
|
15110
|
+
class B1 {
|
|
15108
15111
|
globalStore;
|
|
15109
15112
|
api = new nr("/", "");
|
|
15110
15113
|
isLoading = !0;
|
|
@@ -15122,7 +15125,7 @@ class G1 {
|
|
|
15122
15125
|
this.isLoading = !0;
|
|
15123
15126
|
const n = await this.api.getNotifications();
|
|
15124
15127
|
q(() => {
|
|
15125
|
-
this.notifications = n, this.recentNotifications =
|
|
15128
|
+
this.notifications = n, this.recentNotifications = G1(n), this.isLoading = !1;
|
|
15126
15129
|
});
|
|
15127
15130
|
} catch (n) {
|
|
15128
15131
|
console.error(`Error occurred while loading notifications: ${n}`);
|
|
@@ -15135,11 +15138,8 @@ class G1 {
|
|
|
15135
15138
|
n.has_been_viewed = !0, await this.api.updateNotification(n);
|
|
15136
15139
|
};
|
|
15137
15140
|
}
|
|
15138
|
-
const
|
|
15139
|
-
const i =
|
|
15140
|
-
return !vd(i, a);
|
|
15141
|
-
}, H1 = ({ date: e }) => /* @__PURE__ */ t(k, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: ua(e) }) }), P1 = ({ notification: e }) => {
|
|
15142
|
-
const { accounts: n } = fe(), { budgets: i } = ht(), { accounts: a } = x(), o = n.find((d) => d.guid === e.entity_guid), r = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
|
15141
|
+
const H1 = ({ date: e }) => /* @__PURE__ */ t(k, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: ua(e) }) }), P1 = ({ notification: e }) => {
|
|
15142
|
+
const { accounts: n } = Ce(), { budgets: i } = ht(), { accounts: a } = x(), o = n.find((d) => d.guid === e.entity_guid), r = i.find((d) => d.guid === e.entity_guid), s = e.entity_guid.includes("GOL"), c = {
|
|
15143
15143
|
badge: {
|
|
15144
15144
|
display: "flex",
|
|
15145
15145
|
alignItems: "center",
|
|
@@ -15222,7 +15222,7 @@ const B1 = (e, n) => {
|
|
|
15222
15222
|
(!c || i) && /* @__PURE__ */ t(le, { label: s?.loading, size: 40 }),
|
|
15223
15223
|
c && !i && o.length === 0 && /* @__PURE__ */ t(U1, { onManageNotifications: n }),
|
|
15224
15224
|
/* @__PURE__ */ t(ie, { sx: { p: 16 }, children: c && !i && o.slice().sort((_, u) => u.delivered_at - _.delivered_at).map((_, u) => {
|
|
15225
|
-
const h =
|
|
15225
|
+
const h = k1(u, o);
|
|
15226
15226
|
return /* @__PURE__ */ l(k, { sx: { mb: 12 }, children: [
|
|
15227
15227
|
h && /* @__PURE__ */ l(k, { sx: { mb: 12 }, children: [
|
|
15228
15228
|
/* @__PURE__ */ t(H1, { date: _.delivered_at }),
|
|
@@ -16371,7 +16371,7 @@ const Z1 = ({
|
|
|
16371
16371
|
] });
|
|
16372
16372
|
}), sC = T(
|
|
16373
16373
|
({ onProfileUpdated: e, profile: n }) => {
|
|
16374
|
-
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } =
|
|
16374
|
+
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } = Ce(), s = n.notification_type === at.DebtPaymentReminder, [c, d] = g.useState(!1), [_, u] = g.useState(n.threshold || 0), [h, m] = g.useState(
|
|
16375
16375
|
n.account?.day_payment_is_due || 0
|
|
16376
16376
|
), p = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? S(
|
|
16377
16377
|
o.notification_debt_payment_date,
|
|
@@ -19666,7 +19666,7 @@ const Z1 = ({
|
|
|
19666
19666
|
onClose: a,
|
|
19667
19667
|
topic: o
|
|
19668
19668
|
}) => {
|
|
19669
|
-
const { institutions: r, accounts: s } =
|
|
19669
|
+
const { institutions: r, accounts: s } = Ce(), c = g.useMemo(
|
|
19670
19670
|
() => jp(r, s, {
|
|
19671
19671
|
singular: e.request_support_institution_account,
|
|
19672
19672
|
plural: e.request_support_institution_accounts
|
|
@@ -20393,7 +20393,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20393
20393
|
}, tl = T(JC), ef = {
|
|
20394
20394
|
view_transactions: "View Transactions"
|
|
20395
20395
|
}, tf = ({ onBackClick: e, sx: n }) => {
|
|
20396
|
-
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } =
|
|
20396
|
+
const { onEvent: i } = X(), { isDesktop: a, isTablet: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Oe(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = se(), { trends: E } = x(), [y, A] = g.useState(!1), [I, v] = g.useState(!1), [w, D] = g.useState("Chart"), [O, G] = g.useState(""), [M, R] = g.useState({
|
|
20397
20397
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
20398
20398
|
end: We(/* @__PURE__ */ new Date())
|
|
20399
20399
|
});
|
|
@@ -20568,20 +20568,22 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20568
20568
|
}
|
|
20569
20569
|
);
|
|
20570
20570
|
}, af = T(nf), of = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
20571
|
-
const {
|
|
20571
|
+
const { visibleAccounts: i } = Ce(), { loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: o } = Ve(), { isInitialized: r } = oi(), { trends: s } = x(), { isCopyLoaded: c, selectedAccounts: d, setSelectedAccounts: _ } = se();
|
|
20572
20572
|
return g.useEffect(() => {
|
|
20573
|
-
|
|
20574
|
-
}, [
|
|
20573
|
+
_(i);
|
|
20574
|
+
}, [i]), g.useEffect(() => {
|
|
20575
|
+
r && a(d).finally();
|
|
20576
|
+
}, [r, d]), !c || !r ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ t(
|
|
20575
20577
|
Mn,
|
|
20576
20578
|
{
|
|
20577
20579
|
onPrimaryCtaClick: e,
|
|
20578
|
-
primaryCtaLabel:
|
|
20579
|
-
subTitle:
|
|
20580
|
+
primaryCtaLabel: s.primary_cta,
|
|
20581
|
+
subTitle: s.sub_title,
|
|
20580
20582
|
sx: n,
|
|
20581
|
-
title:
|
|
20582
|
-
children:
|
|
20583
|
+
title: s.mini_title,
|
|
20584
|
+
children: o ? /* @__PURE__ */ t(af, {}) : /* @__PURE__ */ t(le, {})
|
|
20583
20585
|
}
|
|
20584
|
-
)
|
|
20586
|
+
);
|
|
20585
20587
|
}, _2 = T(of), rf = 70, Zr = ({
|
|
20586
20588
|
title: e,
|
|
20587
20589
|
totalAmount: n,
|
|
@@ -20678,7 +20680,7 @@ const zC = (e) => e.reduce((i, a) => {
|
|
|
20678
20680
|
] })
|
|
20679
20681
|
] });
|
|
20680
20682
|
}), h2 = T(({ onCtaClick: e }) => {
|
|
20681
|
-
const { visibleAccounts: n } =
|
|
20683
|
+
const { visibleAccounts: n } = Ce(), { monthlyCategoryTotals: i, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: o } = Ve(), r = {
|
|
20682
20684
|
start: Nd(/* @__PURE__ */ new Date(), 1),
|
|
20683
20685
|
end: /* @__PURE__ */ new Date()
|
|
20684
20686
|
}, { trends: s } = x(), { selectedAccounts: c, setSelectedAccounts: d, isInitialized: _ } = se();
|
|
@@ -22740,7 +22742,7 @@ const Li = g.createContext(null), pf = ({
|
|
|
22740
22742
|
}, Ff = T(Pf), Wf = {
|
|
22741
22743
|
view_transactions: "View Transactions"
|
|
22742
22744
|
}, Uf = ({ onBackClick: e, sx: n }) => {
|
|
22743
|
-
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } =
|
|
22745
|
+
const { onEvent: i } = X(), { isLargeDesktop: a, isDesktop: o, isMobile: r } = me(), { visibleAccounts: s } = Ce(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: _ } = Ve(), { sortedTransactions: u } = Oe(), { isCopyLoaded: h, isInitialized: m, selectedAccounts: p, setSelectedAccounts: f } = se(), { trends: E } = x(), y = o || a, [A, I] = g.useState(!1), [v, w] = g.useState(!1), [D, O] = g.useState("Chart"), [G, M] = g.useState(""), [R, L] = g.useState({
|
|
22744
22746
|
start: $i(We(Tt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
22745
22747
|
end: We(/* @__PURE__ */ new Date())
|
|
22746
22748
|
});
|
|
@@ -23132,7 +23134,7 @@ class C2 {
|
|
|
23132
23134
|
// UI Stores
|
|
23133
23135
|
globalUiStore;
|
|
23134
23136
|
constructor(n = qr, i = "/") {
|
|
23135
|
-
this.appConfig = n, this.endpoint = i, this.sessionToken = n.options.session_token ?? "", this.accountStore = new b0(this), this.appDataStore = new Kf(this), this.analyticsStore = new y_(this), this.beatStore = new S_(this), this.budgetsStore = new w_(this), this.cashflowStore = new fm(this), this.categoryStore = new Xh(this), this.connectStore = new Yf(this), this.copyStore = new b_(this), this.debtsStore = new mp(this), this.finstrongStore = new pp(this), this.goalStore = new Bp(this), this.helpStore = new $p(this), this.holdingStore = new o1(this), this.merchantStore = new l1(this), this.netWorthStore = new I1(this), this.notificationStore = new
|
|
23137
|
+
this.appConfig = n, this.endpoint = i, this.sessionToken = n.options.session_token ?? "", this.accountStore = new b0(this), this.appDataStore = new Kf(this), this.analyticsStore = new y_(this), this.beatStore = new S_(this), this.budgetsStore = new w_(this), this.cashflowStore = new fm(this), this.categoryStore = new Xh(this), this.connectStore = new Yf(this), this.copyStore = new b_(this), this.debtsStore = new mp(this), this.finstrongStore = new pp(this), this.goalStore = new Bp(this), this.helpStore = new $p(this), this.holdingStore = new o1(this), this.merchantStore = new l1(this), this.netWorthStore = new I1(this), this.notificationStore = new B1(this), this.recurringTransactionsStore = new Vg(this), this.settingsStore = new j1(this), this.transactionStore = new dh(this), this.trendsStore = new Vf(this), this.userStore = new jf(this), this.globalUiStore = new zf(this), He(this);
|
|
23136
23138
|
}
|
|
23137
23139
|
get isInitialized() {
|
|
23138
23140
|
return this.globalUiStore.isInitialized;
|
|
@@ -23163,12 +23165,12 @@ const Da = ({
|
|
|
23163
23165
|
] }) }),
|
|
23164
23166
|
/* @__PURE__ */ t(F, { sx: { ml: n ? 0 : 24 } })
|
|
23165
23167
|
] }), $f = () => {
|
|
23166
|
-
const { accounts: e } =
|
|
23168
|
+
const { accounts: e } = Ce(), { selectedAccount: n, selectedMember: i } = Ft();
|
|
23167
23169
|
return e.filter(
|
|
23168
23170
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
23169
23171
|
);
|
|
23170
23172
|
}, Xf = () => {
|
|
23171
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ft(), { mergeAccounts: _, updateAccount: u } =
|
|
23173
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ft(), { mergeAccounts: _, updateAccount: u } = Ce(), { accounts: h } = x(), m = $f(), { onEvent: p } = X(), { modifyTransactionByAccountGuid: f } = Oe(), E = async (A) => {
|
|
23172
23174
|
await u({
|
|
23173
23175
|
...d,
|
|
23174
23176
|
...A
|
|
@@ -23512,7 +23514,7 @@ const Da = ({
|
|
|
23512
23514
|
)
|
|
23513
23515
|
] });
|
|
23514
23516
|
}, Qf = T(Zf), Jf = ({ field: e, isOpen: n, onClose: i }) => {
|
|
23515
|
-
const { updateAccount: a } =
|
|
23517
|
+
const { updateAccount: a } = Ce(), { selectedAccount: o } = Ft(), { accounts: r } = x(), [s, c] = g.useState(o[e.name]), [d, _] = g.useState(""), [u, h] = g.useState(!0), m = () => {
|
|
23516
23518
|
c(""), _(""), i();
|
|
23517
23519
|
}, p = () => {
|
|
23518
23520
|
switch (e.type) {
|
|
@@ -23773,7 +23775,7 @@ const Da = ({
|
|
|
23773
23775
|
/* @__PURE__ */ t(ei, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(a0, {}) })
|
|
23774
23776
|
] });
|
|
23775
23777
|
}, hl = T(l0), d0 = () => {
|
|
23776
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = se(), { setSelectedAccount: o, setSelectedMember: r } = Ft(), { members: s } =
|
|
23778
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = se(), { setSelectedAccount: o, setSelectedMember: r } = Ft(), { members: s } = Ce(), { onEvent: c } = X(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
|
23777
23779
|
() => a.filter((y) => y.is_hidden),
|
|
23778
23780
|
[a]
|
|
23779
23781
|
), h = g.useMemo(
|
|
@@ -23916,7 +23918,7 @@ const Da = ({
|
|
|
23916
23918
|
)
|
|
23917
23919
|
] });
|
|
23918
23920
|
}, u0 = T(d0), _0 = ({ onBackClick: e, sx: n = {} }) => {
|
|
23919
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Pt(), { accounts: c } =
|
|
23921
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Pt(), { accounts: c } = Ce(), { accounts: d, connect: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: p } = se(), { isDesktop: f } = me(), { onEvent: E } = X();
|
|
23920
23922
|
g.useEffect(() => {
|
|
23921
23923
|
m(c);
|
|
23922
23924
|
}, [c]);
|
|
@@ -23966,7 +23968,7 @@ const Da = ({
|
|
|
23966
23968
|
}
|
|
23967
23969
|
) : /* @__PURE__ */ t(le, {});
|
|
23968
23970
|
}, f2 = T(_0), h0 = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
23969
|
-
const { visibleAccounts: i } =
|
|
23971
|
+
const { visibleAccounts: i } = Ce(), { accounts: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = se();
|
|
23970
23972
|
return g.useEffect(() => {
|
|
23971
23973
|
c(i);
|
|
23972
23974
|
}, [i]), o ? /* @__PURE__ */ t(
|
|
@@ -25660,7 +25662,7 @@ const G0 = ({
|
|
|
25660
25662
|
] }, r.guid)) }) })
|
|
25661
25663
|
] });
|
|
25662
25664
|
}), Q0 = T(() => {
|
|
25663
|
-
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } =
|
|
25665
|
+
const e = pe(), { onEvent: n } = X(), { visibleAccounts: i } = Ce(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ve(), { detailedBudgets: d, totalBudgeted: _ } = ht(), { incomeTotal: u } = tt(), { setFilter: h } = Oe(), [m, p] = g.useState(!1), [f, E] = g.useMemo(() => {
|
|
25664
25666
|
const v = c.reduce((G, M) => G + M.totalAmount, 0);
|
|
25665
25667
|
let w = v / _;
|
|
25666
25668
|
w > 1 && (w = 1);
|
|
@@ -25743,7 +25745,7 @@ const G0 = ({
|
|
|
25743
25745
|
)
|
|
25744
25746
|
] });
|
|
25745
25747
|
}), cs = 480, S2 = T(({ onBackClick: e, sx: n }) => {
|
|
25746
|
-
const i = pe(), { onEvent: a } = X(), { visibleAccounts: o } =
|
|
25748
|
+
const i = pe(), { onEvent: a } = X(), { visibleAccounts: o } = Ce(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = se(), {
|
|
25747
25749
|
alert: m,
|
|
25748
25750
|
dateRange: p,
|
|
25749
25751
|
isDataLoaded: f,
|
|
@@ -25927,7 +25929,7 @@ const G0 = ({
|
|
|
25927
25929
|
}
|
|
25928
25930
|
) });
|
|
25929
25931
|
}, tb = T(eb), nb = () => {
|
|
25930
|
-
const [e, n] = g.useState(!1), i = ru("(max-width:320px)"), { visibleAccounts: a } =
|
|
25932
|
+
const [e, n] = g.useState(!1), i = ru("(max-width:320px)"), { visibleAccounts: a } = Ce(), { selectedAccountGuids: o, setSelectedAccountGuids: r } = se(), { common: s, connect: c } = x(), { config: d } = Pt(), { isMobile: _ } = me(), u = {
|
|
25931
25933
|
accountFilterOptionsCopy: {
|
|
25932
25934
|
accountTypeAccounts: s.account_filter.account_type_accounts,
|
|
25933
25935
|
cancelButton: s.cancel_button,
|
|
@@ -25984,7 +25986,7 @@ const G0 = ({
|
|
|
25984
25986
|
}, ib = T(nb);
|
|
25985
25987
|
var Wi = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(Wi || {});
|
|
25986
25988
|
const ab = ({ widgets: e, isLoading: n }) => {
|
|
25987
|
-
const { isDesktop: i, isMobile: a } = me(), { copyStore: o } = oi(), { setSelectedAccounts: r } = se(), { visibleAccounts: s } =
|
|
25989
|
+
const { isDesktop: i, isMobile: a } = me(), { copyStore: o } = oi(), { setSelectedAccounts: r } = se(), { visibleAccounts: s } = Ce();
|
|
25988
25990
|
g.useEffect(() => {
|
|
25989
25991
|
r(s);
|
|
25990
25992
|
}, [s]);
|
|
@@ -26347,7 +26349,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
26347
26349
|
}, _b = () => {
|
|
26348
26350
|
const [e, n] = g.useState(0), [i, a] = g.useState(""), [o, r] = g.useState(""), s = (f) => {
|
|
26349
26351
|
i !== f ? a(f) : (a(""), r(""));
|
|
26350
|
-
}, { selectedAccountGuids: c } = se(), { visibleHoldings: d } = Fn(), { visibleInvestmentAccounts: _ } =
|
|
26352
|
+
}, { selectedAccountGuids: c } = se(), { visibleHoldings: d } = Fn(), { visibleInvestmentAccounts: _ } = Ce(), {
|
|
26351
26353
|
investments: { allocation: u }
|
|
26352
26354
|
} = x(), h = lb(
|
|
26353
26355
|
_.filter(({ guid: f }) => c.includes(f)),
|
|
@@ -27133,7 +27135,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27133
27135
|
...qe,
|
|
27134
27136
|
[B]: Me
|
|
27135
27137
|
}));
|
|
27136
|
-
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } =
|
|
27138
|
+
}, { visibleHoldings: ue } = Fn(), { visibleInvestmentAccounts: ye } = Ce(), be = ye.filter(
|
|
27137
27139
|
({ guid: B }) => r.includes(B)
|
|
27138
27140
|
), ke = be.reduce((B, ne) => B + (ne.balance || 0), 0), Re = be.map(({ guid: B }) => B), ge = ue.filter(
|
|
27139
27141
|
({ account_guid: B }) => Re.includes(B)
|
|
@@ -27523,7 +27525,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27523
27525
|
)
|
|
27524
27526
|
] }) : /* @__PURE__ */ t(le, {});
|
|
27525
27527
|
}, Sb = T(Ab), Tb = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }), x2 = T(({ onBackClick: e, sx: n }) => {
|
|
27526
|
-
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleInvestmentAccounts: o } =
|
|
27528
|
+
const { onEvent: i } = X(), { isMobile: a } = me(), { visibleInvestmentAccounts: o } = Ce(), {
|
|
27527
27529
|
visibleHoldings: r,
|
|
27528
27530
|
setShowConnectionsWidget: s,
|
|
27529
27531
|
showConnectionsWidget: c
|
|
@@ -27854,7 +27856,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
27854
27856
|
] }) })
|
|
27855
27857
|
] }) : /* @__PURE__ */ t(le, { height: 250 });
|
|
27856
27858
|
}, vb = T(wb), Nb = ({ onPrimaryCtaClick: e, sx: n = {} }) => {
|
|
27857
|
-
const { visibleAccounts: i } =
|
|
27859
|
+
const { visibleAccounts: i } = Ce(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setSelectedAccounts: s } = se();
|
|
27858
27860
|
return g.useEffect(() => {
|
|
27859
27861
|
s(i);
|
|
27860
27862
|
}, [i]), !o || !r ? /* @__PURE__ */ t(le, {}) : /* @__PURE__ */ t(
|
|
@@ -28119,7 +28121,7 @@ const ab = ({ widgets: e, isLoading: n }) => {
|
|
|
28119
28121
|
)
|
|
28120
28122
|
] });
|
|
28121
28123
|
}, kb = T(Mb), Gb = ({ onBackClick: e, sx: n = {} }) => {
|
|
28122
|
-
const { visibleAccounts: i } =
|
|
28124
|
+
const { visibleAccounts: i } = Ce(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = se(), { onEvent: d } = X(), [_, u] = g.useState(!1);
|
|
28123
28125
|
g.useEffect(() => {
|
|
28124
28126
|
c(i);
|
|
28125
28127
|
}, [i]), g.useEffect(() => {
|
|
@@ -28221,7 +28223,7 @@ export {
|
|
|
28221
28223
|
Or as FinstrongApi,
|
|
28222
28224
|
pp as FinstrongStore,
|
|
28223
28225
|
J4 as FinstrongWidget,
|
|
28224
|
-
|
|
28226
|
+
fe as Frequency,
|
|
28225
28227
|
gi as GlobalCopyApi,
|
|
28226
28228
|
b_ as GlobalCopyStore,
|
|
28227
28229
|
Yn as GlobalDataContext,
|
|
@@ -28275,7 +28277,7 @@ export {
|
|
|
28275
28277
|
K1 as NotificationList,
|
|
28276
28278
|
ta as NotificationSettings,
|
|
28277
28279
|
c2 as NotificationSettingsWidget,
|
|
28278
|
-
|
|
28280
|
+
B1 as NotificationStore,
|
|
28279
28281
|
Nt as NotificationTypes,
|
|
28280
28282
|
cu as ORDINAL_DATE_FORMAT,
|
|
28281
28283
|
T4 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
@@ -28355,6 +28357,7 @@ export {
|
|
|
28355
28357
|
S as buildDynamicCopy,
|
|
28356
28358
|
R4 as buildPluralCopy,
|
|
28357
28359
|
ac as exportTransactionsToCSV,
|
|
28360
|
+
G1 as filterRecentNotifications,
|
|
28358
28361
|
P as formatCurrency,
|
|
28359
28362
|
oe as formatDate,
|
|
28360
28363
|
bi as formatOrdinal,
|
|
@@ -28372,7 +28375,7 @@ export {
|
|
|
28372
28375
|
o2 as getNotificationDetailRoute,
|
|
28373
28376
|
D4 as isIncome,
|
|
28374
28377
|
Pa as isValidNumber,
|
|
28375
|
-
|
|
28378
|
+
Ce as useAccountStore,
|
|
28376
28379
|
Ft as useAccountUiStore,
|
|
28377
28380
|
Pt as useAppConfig,
|
|
28378
28381
|
ht as useBudgetsStore,
|