@mx-cartographer/experiences 6.2.0-alpha.al7 → 6.2.1-alpha.bb1
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/common/types/Notification.d.ts +2 -1
- package/dist/index.es.js +82 -81
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -2253,13 +2253,13 @@ const bu = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, ve = () => je("useAccountStore").globalStore.accountStore, Ca = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore,
|
2256
|
+
}, ve = () => je("useAccountStore").globalStore.accountStore, Ca = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore, Ue = () => je("useCategoryStore").globalStore.categoryStore, Ys = () => je("useConnectStore").globalStore.connectStore, fa = () => je("useDebtsStore").globalStore.debtsStore, ba = () => je("useGlobalStore").globalStore, ce = () => je("useGlobalUiStore").globalStore.globalUiStore, I = () => je("globalCopyStore").globalStore.copyStore.copy, nt = () => je("useGoalStore").globalStore.goalStore, yr = () => je("useHelpStore").globalStore.helpStore, js = () => je("useHoldingStore").globalStore.holdingStore, Nu = () => je("useMerchantStore").globalStore.merchantStore, Du = () => je("useNetWorthStore").globalStore.netWorthStore, Xs = () => je("useNotificationStore").globalStore.notificationStore, Qe = () => je("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Bt = () => je("useSettingsStore").globalStore.settingsStore, Ce = () => je("useTransactionStore").globalStore.transactionStore, dn = () => je("useUserStore").globalStore.userStore, V = () => ({ onEvent: je().onEvent }), lE = () => ({ onPageView: je().onPageView }), Ru = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(Ks);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
2260
2260
|
return n;
|
2261
2261
|
}, $n = () => Ru(), qs = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
2262
|
-
const { categories: i } = I(), { getCategoryName: a } =
|
2262
|
+
const { categories: i } = I(), { getCategoryName: a } = Ue(), r = a(e);
|
2263
2263
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
2264
2264
|
/* @__PURE__ */ t(
|
2265
2265
|
L,
|
@@ -2272,7 +2272,7 @@ const bu = ({
|
|
2272
2272
|
),
|
2273
2273
|
/* @__PURE__ */ t(p, { variant: "Body", children: r })
|
2274
2274
|
] });
|
2275
|
-
},
|
2275
|
+
}, Ve = ({
|
2276
2276
|
isIncome: e = !1,
|
2277
2277
|
amount: n = 0,
|
2278
2278
|
bold: i,
|
@@ -2317,7 +2317,7 @@ const bu = ({
|
|
2317
2317
|
/* @__PURE__ */ l(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2318
2318
|
/* @__PURE__ */ t(qs, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2319
2319
|
/* @__PURE__ */ t(p, { variant: "Small", children: `${i.length}-month total` }),
|
2320
|
-
/* @__PURE__ */ t(
|
2320
|
+
/* @__PURE__ */ t(Ve, { amount: _, bold: !0, formatString: "0,0", variant: "body2" })
|
2321
2321
|
] }),
|
2322
2322
|
/* @__PURE__ */ t(k, { sx: { my: 16, width: "100%" } }),
|
2323
2323
|
/* @__PURE__ */ t(qe, { container: !0, children: i.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -2325,7 +2325,7 @@ const bu = ({
|
|
2325
2325
|
/* @__PURE__ */ t(qe, { item: !0, xs: 4, children: /* @__PURE__ */ l(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2326
2326
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "XSmall", children: u.x }),
|
2327
2327
|
/* @__PURE__ */ t(
|
2328
|
-
|
2328
|
+
Ve,
|
2329
2329
|
{
|
2330
2330
|
amount: u.y,
|
2331
2331
|
bold: !0,
|
@@ -2348,7 +2348,7 @@ const bu = ({
|
|
2348
2348
|
return s === void 0 || !c ? null : /* @__PURE__ */ t(ia, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(gl, { children: /* @__PURE__ */ l(nn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2349
2349
|
/* @__PURE__ */ t(qs, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2350
2350
|
/* @__PURE__ */ t(p, { color: o.palette.text.secondary, variant: "Small", children: ne(c, ee.MONTH_SHORT_YEAR) }),
|
2351
|
-
/* @__PURE__ */ t(
|
2351
|
+
/* @__PURE__ */ t(Ve, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
2352
2352
|
] }) }) });
|
2353
2353
|
}, ku = ({
|
2354
2354
|
sx: e,
|
@@ -2357,7 +2357,7 @@ const bu = ({
|
|
2357
2357
|
onHoverLegend: a,
|
2358
2358
|
onClickLegend: r
|
2359
2359
|
}) => {
|
2360
|
-
const { isMobile: o } = xe(), { getCategoryName: s } =
|
2360
|
+
const { isMobile: o } = xe(), { getCategoryName: s } = Ue();
|
2361
2361
|
return /* @__PURE__ */ t(y, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: e, children: n.map(({ guid: c, top_level_guid: d }) => {
|
2362
2362
|
const _ = i === c, u = kn[c], h = kn[d], m = u ?? h ?? kn.default, C = m + "33";
|
2363
2363
|
return /* @__PURE__ */ l(
|
@@ -4331,7 +4331,7 @@ const li = () => {
|
|
4331
4331
|
}
|
4332
4332
|
),
|
4333
4333
|
/* @__PURE__ */ t(p, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
|
4334
|
-
/* @__PURE__ */ t(
|
4334
|
+
/* @__PURE__ */ t(Ve, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4335
4335
|
] });
|
4336
4336
|
}, Er = A(t_), n_ = ({ onAddIncomeClick: e }) => {
|
4337
4337
|
const n = he(), { availableWidth: i } = $n(), { isMobile: a } = xe(), { visibleCashAccounts: r, visibleCashBalance: o } = ve(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
|
@@ -4369,7 +4369,7 @@ const li = () => {
|
|
4369
4369
|
px: 24,
|
4370
4370
|
children: [
|
4371
4371
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4372
|
-
/* @__PURE__ */ t(
|
4372
|
+
/* @__PURE__ */ t(Ve, { amount: x, variant: "H2" }),
|
4373
4373
|
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(
|
4374
4374
|
c.total_cash_accounts,
|
4375
4375
|
h.length
|
@@ -4377,12 +4377,12 @@ const li = () => {
|
|
4377
4377
|
] }),
|
4378
4378
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "remove" }) }),
|
4379
4379
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4380
|
-
/* @__PURE__ */ t(
|
4380
|
+
/* @__PURE__ */ t(Ve, { amount: w, variant: "H2" }),
|
4381
4381
|
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
|
4382
4382
|
] }),
|
4383
4383
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "equals" }) }),
|
4384
4384
|
/* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
|
4385
|
-
/* @__PURE__ */ t(
|
4385
|
+
/* @__PURE__ */ t(Ve, { amount: v, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
4387
|
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
4388
|
/* @__PURE__ */ t(Qi, { body: c.tooltip_body, title: c.tooltip_title })
|
@@ -4408,12 +4408,12 @@ const li = () => {
|
|
4408
4408
|
c.total_cash_accounts,
|
4409
4409
|
h.length
|
4410
4410
|
) }),
|
4411
|
-
/* @__PURE__ */ t(
|
4411
|
+
/* @__PURE__ */ t(Ve, { amount: o, bold: !0, variant: "XSmall" })
|
4412
4412
|
] }),
|
4413
4413
|
/* @__PURE__ */ t(k, {}),
|
4414
4414
|
/* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
4415
4415
|
/* @__PURE__ */ t(p, { variant: "Small", children: S(c.expenses_due, u.length) }),
|
4416
|
-
/* @__PURE__ */ t(
|
4416
|
+
/* @__PURE__ */ t(Ve, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
4417
4417
|
] }),
|
4418
4418
|
/* @__PURE__ */ t(k, {}),
|
4419
4419
|
/* @__PURE__ */ t(
|
@@ -4943,7 +4943,7 @@ const r_ = [
|
|
4943
4943
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4944
4944
|
return i.every((r) => a.indexOf(r) > -1);
|
4945
4945
|
};
|
4946
|
-
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}), tr = /* @__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))(tr || {}), At = /* @__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))(At || {}),
|
4946
|
+
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}), tr = /* @__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))(tr || {}), At = /* @__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))(At || {}), We = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(We || {}), bt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(bt || {}), Sr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Sr || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), Ae = /* @__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))(Ae || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__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))(on || {});
|
4947
4947
|
const tc = {
|
4948
4948
|
account_guid: "",
|
4949
4949
|
amount: 0,
|
@@ -5523,7 +5523,7 @@ const St = () => {
|
|
5523
5523
|
}, P_ = A(G_), pn = () => {
|
5524
5524
|
if (!g.useContext(zn))
|
5525
5525
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
5526
|
-
return
|
5526
|
+
return Ue().uiStore;
|
5527
5527
|
}, qt = {
|
5528
5528
|
ON_CATEGORY_EXPANDED: "onCategoryExpanded",
|
5529
5529
|
ON_CATEGORY_COLLAPSED: "onCategoryCollapsed",
|
@@ -5590,7 +5590,7 @@ const B_ = ({
|
|
5590
5590
|
}
|
5591
5591
|
);
|
5592
5592
|
}, Tr = A(B_), H_ = ({ parentCategory: e }) => {
|
5593
|
-
const [n, i] = g.useState(!1), { addCategory: a } =
|
5593
|
+
const [n, i] = g.useState(!1), { addCategory: a } = Ue(), { categories: r } = I(), { onEvent: o } = V(), { setShouldDisableDrawerScroll: s } = pn(), c = async (u) => {
|
5594
5594
|
await a(u.trim(), e.guid), o(qt.ON_SUBCATEGORY_ADDED), i(!1);
|
5595
5595
|
}, d = async () => {
|
5596
5596
|
o(qt.ON_SUBCATEGORY_ADD_CLICK), s(!0), i(!0);
|
@@ -5620,7 +5620,7 @@ const B_ = ({
|
|
5620
5620
|
subCategory: n,
|
5621
5621
|
showRename: i
|
5622
5622
|
}) => {
|
5623
|
-
const { updateCategory: a } =
|
5623
|
+
const { updateCategory: a } = Ue(), { onEvent: r } = V(), o = async (c) => {
|
5624
5624
|
await a({ ...n, name: c }), r(qt.ON_SUBCATEGORY_SAVED), e(!1);
|
5625
5625
|
}, s = () => {
|
5626
5626
|
e(!1), r(qt.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
@@ -5641,7 +5641,7 @@ const B_ = ({
|
|
5641
5641
|
setShowDelete: i,
|
5642
5642
|
subCategory: a
|
5643
5643
|
}) => {
|
5644
|
-
const { onEvent: r } = V(), { removeCategory: o } =
|
5644
|
+
const { onEvent: r } = V(), { removeCategory: o } = Ue(), s = () => {
|
5645
5645
|
i(!1), r(qt.ON_SUBCATEGORY_DELETE_CLICK);
|
5646
5646
|
}, c = async () => {
|
5647
5647
|
r(qt.ON_SUBCATEGORY_DELETED), await o(a.guid), i(!1);
|
@@ -5797,7 +5797,7 @@ const B_ = ({
|
|
5797
5797
|
/* @__PURE__ */ t(j_, { categories: n, parentCategory: e })
|
5798
5798
|
] });
|
5799
5799
|
}, ic = A(X_), q_ = () => {
|
5800
|
-
const { categories: e } =
|
5800
|
+
const { categories: e } = Ue(), { searchValue: n } = pn(), { categories: i } = I(), r = ((o, s = "") => o.reduce((c, d) => {
|
5801
5801
|
if (d.parent_guid === null) {
|
5802
5802
|
const u = [
|
5803
5803
|
{
|
@@ -5829,7 +5829,7 @@ const B_ = ({
|
|
5829
5829
|
unselectable: a = [],
|
5830
5830
|
unselectableText: r = "Unselectable"
|
5831
5831
|
}) => {
|
5832
|
-
const { categories: o, loadCategories: s } =
|
5832
|
+
const { categories: o, loadCategories: s } = Ue(), { common: c } = I(), { isCopyLoaded: d } = ce(), {
|
5833
5833
|
searchValue: _,
|
5834
5834
|
setOnSelect: u,
|
5835
5835
|
setSearchValue: h,
|
@@ -6073,7 +6073,7 @@ class ah {
|
|
6073
6073
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ga[n];
|
6074
6074
|
}
|
6075
6075
|
const rc = ({ transaction: e }) => {
|
6076
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ce(), { categories: a } =
|
6076
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ce(), { categories: a } = Ue(), { onEvent: r } = V(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = St(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (b) => {
|
6077
6077
|
await i({ ...e, category_guid: u }), b && await n(u, e), h(""), r(F.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
6078
6078
|
transaction_guid: e.guid
|
6079
6079
|
});
|
@@ -6607,7 +6607,7 @@ const rc = ({ transaction: e }) => {
|
|
6607
6607
|
) })
|
6608
6608
|
] });
|
6609
6609
|
}, mh = A(gh), ph = ({ transaction: e }) => {
|
6610
|
-
const { onEvent: n } = V(), { splitTransaction: i, unSplitTransaction: a } = Ce(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = St(), { categories: c } =
|
6610
|
+
const { onEvent: n } = V(), { splitTransaction: i, unSplitTransaction: a } = Ce(), { common: r, transactions: o } = I(), { setShouldDisableDrawerScroll: s } = St(), { categories: c } = Ue(), d = {
|
6611
6611
|
...e,
|
6612
6612
|
amount: e.amount - 1,
|
6613
6613
|
guid: "",
|
@@ -7232,7 +7232,7 @@ const rc = ({ transaction: e }) => {
|
|
7232
7232
|
] })
|
7233
7233
|
] });
|
7234
7234
|
}, kh = A(Mh), Gh = ({ onClose: e, transaction: n }) => {
|
7235
|
-
const { addOrUpdateTransactionRule: i, updateTransaction: a } = Ce(), { transactions: r } = I(), { categories: o } =
|
7235
|
+
const { addOrUpdateTransactionRule: i, updateTransaction: a } = Ce(), { transactions: r } = I(), { categories: o } = Ue(), [s, c] = g.useState(""), d = g.useMemo(
|
7236
7236
|
() => o.find((u) => u.guid === s),
|
7237
7237
|
[s]
|
7238
7238
|
), _ = async (u) => {
|
@@ -7642,7 +7642,7 @@ const rc = ({ transaction: e }) => {
|
|
7642
7642
|
)
|
7643
7643
|
] });
|
7644
7644
|
}, Wh = A(Fh), Uh = ({ activity: e, onDeleted: n }) => {
|
7645
|
-
const { recurring: i } = I(), { categories: a } =
|
7645
|
+
const { recurring: i } = I(), { categories: a } = Ue(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: s } = Qe(), { filter: c, setFilter: d, transactions: _ } = Ce(), { selectedAccountGuids: u } = ce(), { onEvent: h } = V(), [m, C] = g.useState(!1), [f, E] = g.useState(""), b = a.find((R) => R.guid === e.categoryGuid), T = e.activityType === Xe.Income, x = g.useMemo(
|
7646
7646
|
() => _.find((R) => R.guid === f),
|
7647
7647
|
[f]
|
7648
7648
|
);
|
@@ -9287,7 +9287,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9287
9287
|
] }),
|
9288
9288
|
/* @__PURE__ */ t(p, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
|
9289
9289
|
/* @__PURE__ */ t(
|
9290
|
-
|
9290
|
+
Ve,
|
9291
9291
|
{
|
9292
9292
|
amount: e.amount,
|
9293
9293
|
bold: !0,
|
@@ -9566,7 +9566,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9566
9566
|
),
|
9567
9567
|
/* @__PURE__ */ t(p, { variant: "Small", children: `${f} ${C ? `*${C}` : ""}` })
|
9568
9568
|
] }),
|
9569
|
-
/* @__PURE__ */ t(
|
9569
|
+
/* @__PURE__ */ t(Ve, { amount: _.balance, bold: !0, variant: "Small" })
|
9570
9570
|
]
|
9571
9571
|
}
|
9572
9572
|
),
|
@@ -9581,7 +9581,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9581
9581
|
py: 12,
|
9582
9582
|
children: [
|
9583
9583
|
/* @__PURE__ */ t(p, { variant: "Small", children: i.projected_income }),
|
9584
|
-
/* @__PURE__ */ t(
|
9584
|
+
/* @__PURE__ */ t(Ve, { amount: _.income, bold: !0, symbol: "+", variant: "Small" })
|
9585
9585
|
]
|
9586
9586
|
}
|
9587
9587
|
),
|
@@ -9596,7 +9596,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9596
9596
|
py: 12,
|
9597
9597
|
children: [
|
9598
9598
|
/* @__PURE__ */ t(p, { variant: "Small", children: i.projected_expenses }),
|
9599
|
-
/* @__PURE__ */ t(
|
9599
|
+
/* @__PURE__ */ t(Ve, { amount: _.expenses, bold: !0, symbol: "-", variant: "Small" })
|
9600
9600
|
]
|
9601
9601
|
}
|
9602
9602
|
),
|
@@ -9680,12 +9680,12 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9680
9680
|
padding: n ? "14px 16px" : 0,
|
9681
9681
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
9682
9682
|
children: [
|
9683
|
-
!n && /* @__PURE__ */ t(
|
9683
|
+
!n && /* @__PURE__ */ t(Ve, { amount: e, component: "h2", variant: "H2" }),
|
9684
9684
|
/* @__PURE__ */ l(y, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
9685
9685
|
/* @__PURE__ */ t(p, { bold: i, variant: "Small", children: a }),
|
9686
9686
|
o
|
9687
9687
|
] }),
|
9688
|
-
n && /* @__PURE__ */ t(
|
9688
|
+
n && /* @__PURE__ */ t(Ve, { amount: e, component: "h2", symbol: r, variant: "Small" })
|
9689
9689
|
]
|
9690
9690
|
}
|
9691
9691
|
), ko = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (ur(i.expectedDate) || Zt(i.expectedDate, n.start)) && Te(i.expectedDate, n.end), Bg = () => {
|
@@ -10708,7 +10708,7 @@ const Cn = () => {
|
|
10708
10708
|
}
|
10709
10709
|
return c;
|
10710
10710
|
}, dm = () => {
|
10711
|
-
const e = et(), { selectedAccount: n } = Ht(), { monthlyCategoryTotals: i } =
|
10711
|
+
const e = et(), { selectedAccount: n } = Ht(), { monthlyCategoryTotals: i } = Ue(), { trends: a } = I(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], o = cm(i, n.account_type), s = lm(o, n.account_type, a), c = [oe.LOAN, oe.MORTGAGE].includes(n.account_type);
|
10712
10712
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
10713
10713
|
Cr,
|
10714
10714
|
{
|
@@ -10721,7 +10721,7 @@ const Cn = () => {
|
|
10721
10721
|
}
|
10722
10722
|
) });
|
10723
10723
|
}, um = A(dm), _m = ({ sx: e }) => {
|
10724
|
-
const { loadMonthlyCategoryTotals: n } =
|
10724
|
+
const { loadMonthlyCategoryTotals: n } = Ue(), { isInitialized: i } = ba(), { selectedAccount: a } = Ht(), [r, o] = g.useState(!1);
|
10725
10725
|
return g.useEffect(() => {
|
10726
10726
|
i && n([a]).finally(() => {
|
10727
10727
|
o(!0);
|
@@ -13708,7 +13708,7 @@ const Mp = ({
|
|
13708
13708
|
{
|
13709
13709
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
13710
13710
|
/* @__PURE__ */ t(p, { variant: "Body", children: $s(e.x) }),
|
13711
|
-
/* @__PURE__ */ t(
|
13711
|
+
/* @__PURE__ */ t(Ve, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
|
13712
13712
|
] })
|
13713
13713
|
}
|
13714
13714
|
)
|
@@ -13782,14 +13782,14 @@ const Mp = ({
|
|
13782
13782
|
}
|
13783
13783
|
}
|
13784
13784
|
),
|
13785
|
-
/* @__PURE__ */ t(
|
13785
|
+
/* @__PURE__ */ t(Ve, { amount: a.change, color: s, variant: n }),
|
13786
13786
|
/* @__PURE__ */ t(p, { variant: "Small", children: e })
|
13787
13787
|
] });
|
13788
13788
|
}, Lr = A($p), Fp = ({ hoveredData: e, selectedData: n }) => {
|
13789
13789
|
const { net_worth: i } = I(), a = et(), r = e || n, o = On(Si(r.x), "MMMM");
|
13790
13790
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", m: 24, children: [
|
13791
13791
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
13792
|
-
/* @__PURE__ */ t(
|
13792
|
+
/* @__PURE__ */ t(Ve, { amount: r.y, variant: "H2" }),
|
13793
13793
|
/* @__PURE__ */ t(Lr, { currencyLabel: i.this_month, netWorth: r, theme: a })
|
13794
13794
|
] });
|
13795
13795
|
}, Wp = A(Fp), Up = ({
|
@@ -13852,7 +13852,7 @@ const Mp = ({
|
|
13852
13852
|
{
|
13853
13853
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
13854
13854
|
/* @__PURE__ */ t(p, { variant: "Body", children: o.accountName }),
|
13855
|
-
/* @__PURE__ */ t(
|
13855
|
+
/* @__PURE__ */ t(Ve, { amount: o.balance, variant: "Small" })
|
13856
13856
|
] }),
|
13857
13857
|
sx: { pl: 72, pr: 16 }
|
13858
13858
|
}
|
@@ -13882,7 +13882,7 @@ const Mp = ({
|
|
13882
13882
|
},
|
13883
13883
|
children: [
|
13884
13884
|
/* @__PURE__ */ t(p, { variant: "Body", children: o.current_net_worth }),
|
13885
|
-
/* @__PURE__ */ t(
|
13885
|
+
/* @__PURE__ */ t(Ve, { amount: e?.y ?? 0, variant: "H1" }),
|
13886
13886
|
e && /* @__PURE__ */ t(
|
13887
13887
|
Lr,
|
13888
13888
|
{
|
@@ -13901,7 +13901,7 @@ const Mp = ({
|
|
13901
13901
|
{
|
13902
13902
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
13903
13903
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.assets }),
|
13904
|
-
/* @__PURE__ */ t(
|
13904
|
+
/* @__PURE__ */ t(Ve, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
13905
13905
|
] })
|
13906
13906
|
}
|
13907
13907
|
) }),
|
@@ -13911,7 +13911,7 @@ const Mp = ({
|
|
13911
13911
|
{
|
13912
13912
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
13913
13913
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
|
13914
|
-
/* @__PURE__ */ t(
|
13914
|
+
/* @__PURE__ */ t(Ve, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
|
13915
13915
|
] })
|
13916
13916
|
}
|
13917
13917
|
) }),
|
@@ -13938,7 +13938,7 @@ const Mp = ({
|
|
13938
13938
|
{
|
13939
13939
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
13940
13940
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.gains }),
|
13941
|
-
/* @__PURE__ */ t(
|
13941
|
+
/* @__PURE__ */ t(Ve, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
13942
13942
|
] })
|
13943
13943
|
}
|
13944
13944
|
) }),
|
@@ -13949,7 +13949,7 @@ const Mp = ({
|
|
13949
13949
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
13950
13950
|
/* @__PURE__ */ t(p, { variant: "Body", children: c.accountName }),
|
13951
13951
|
/* @__PURE__ */ t(
|
13952
|
-
|
13952
|
+
Ve,
|
13953
13953
|
{
|
13954
13954
|
amount: c.gain,
|
13955
13955
|
sx: { color: s.palette.success.main, fontWeight: 700 },
|
@@ -13967,7 +13967,7 @@ const Mp = ({
|
|
13967
13967
|
{
|
13968
13968
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", children: [
|
13969
13969
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
|
13970
|
-
/* @__PURE__ */ t(
|
13970
|
+
/* @__PURE__ */ t(Ve, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
|
13971
13971
|
] })
|
13972
13972
|
}
|
13973
13973
|
) }),
|
@@ -13981,7 +13981,7 @@ const Mp = ({
|
|
13981
13981
|
{
|
13982
13982
|
primary: /* @__PURE__ */ l(y, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
13983
13983
|
/* @__PURE__ */ t(p, { variant: "Body", children: c.accountName }),
|
13984
|
-
/* @__PURE__ */ t(
|
13984
|
+
/* @__PURE__ */ t(Ve, { amount: c.loss, sx: { fontWeight: 700 }, variant: "Body" })
|
13985
13985
|
] }),
|
13986
13986
|
sx: { px: 16 }
|
13987
13987
|
}
|
@@ -14131,16 +14131,16 @@ const Mp = ({
|
|
14131
14131
|
) : /* @__PURE__ */ t(ue, {});
|
14132
14132
|
}), AE = (e) => {
|
14133
14133
|
switch (e) {
|
14134
|
-
case
|
14135
|
-
case
|
14134
|
+
case We.BudgetExceeded:
|
14135
|
+
case We.BudgetOffTarget:
|
14136
14136
|
return G.BUDGETS;
|
14137
|
-
case
|
14138
|
-
case
|
14139
|
-
case
|
14137
|
+
case We.DebtPaymentReminder:
|
14138
|
+
case We.AccountBalanceLow:
|
14139
|
+
case We.AccountDepositLarge:
|
14140
14140
|
return G.ACCOUNTS;
|
14141
|
-
case
|
14142
|
-
case
|
14143
|
-
case
|
14141
|
+
case We.TransactionExpenseLarge:
|
14142
|
+
case We.TransactionFeeCharge:
|
14143
|
+
case We.InternationalTransaction:
|
14144
14144
|
return G.TRANSACTIONS;
|
14145
14145
|
default:
|
14146
14146
|
return null;
|
@@ -14278,21 +14278,22 @@ class Yo {
|
|
14278
14278
|
}
|
14279
14279
|
const jo = "PARENT-ENTITY", a1 = (e, n) => {
|
14280
14280
|
switch (e) {
|
14281
|
-
case
|
14281
|
+
case We.BudgetExceeded:
|
14282
14282
|
return n.notification_budget_exceeded;
|
14283
|
-
case
|
14283
|
+
case We.BudgetOffTarget:
|
14284
14284
|
return n.notification_budget_off_target;
|
14285
|
-
case
|
14285
|
+
case We.DebtPaymentReminder:
|
14286
14286
|
return n.notification_debt_payment_reminder;
|
14287
|
-
case
|
14287
|
+
case We.AccountBalanceLow:
|
14288
14288
|
return n.notification_low_balance;
|
14289
|
-
case
|
14289
|
+
case We.AccountDepositLargePosted:
|
14290
|
+
case We.AccountDepositLarge:
|
14290
14291
|
return n.notification_large_deposit;
|
14291
|
-
case
|
14292
|
+
case We.TransactionExpenseLarge:
|
14292
14293
|
return n.notification_large_expense;
|
14293
|
-
case
|
14294
|
+
case We.TransactionFeeCharge:
|
14294
14295
|
return n.notification_transaction_fee;
|
14295
|
-
case
|
14296
|
+
case We.InternationalTransaction:
|
14296
14297
|
return n.notification_transaction_is_international;
|
14297
14298
|
default:
|
14298
14299
|
return "";
|
@@ -14338,12 +14339,12 @@ class o1 {
|
|
14338
14339
|
}
|
14339
14340
|
get accountProfiles() {
|
14340
14341
|
return this.detailedNotificationProfiles.filter(
|
14341
|
-
(n) => n.notification_type ===
|
14342
|
+
(n) => n.notification_type === We.DebtPaymentReminder || n.notification_type === We.AccountBalanceLow || n.notification_type === We.AccountDepositLarge || n.notification_type === We.AccountDepositLargePosted || n.notification_type === We.TransactionExpenseLarge || n.notification_type === We.TransactionFeeCharge || n.notification_type === We.InternationalTransaction
|
14342
14343
|
);
|
14343
14344
|
}
|
14344
14345
|
get budgetProfiles() {
|
14345
14346
|
return this.detailedNotificationProfiles.filter(
|
14346
|
-
(n) => n.notification_type ===
|
14347
|
+
(n) => n.notification_type === We.BudgetExceeded || n.notification_type === We.BudgetOffTarget
|
14347
14348
|
);
|
14348
14349
|
}
|
14349
14350
|
get clientCommunicationProfile() {
|
@@ -18410,7 +18411,7 @@ const X1 = ({
|
|
18410
18411
|
] }) });
|
18411
18412
|
}
|
18412
18413
|
), eC = A(() => {
|
18413
|
-
const { settings: e } = I(), { categories: n } =
|
18414
|
+
const { settings: e } = I(), { categories: n } = Ue(), { selectedRule: i, updateRuleCategory: a } = Bt(), [r, o] = g.useState(!1), s = () => {
|
18414
18415
|
o(!1);
|
18415
18416
|
}, c = () => {
|
18416
18417
|
o(!0);
|
@@ -18538,7 +18539,7 @@ const X1 = ({
|
|
18538
18539
|
);
|
18539
18540
|
}
|
18540
18541
|
), aC = A(({ rule: e }) => {
|
18541
|
-
const { categories: n } =
|
18542
|
+
const { categories: n } = Ue(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Bt(), { isDesktop: o, isTablet: s } = xe(), [c, d] = g.useState(!1), _ = () => {
|
18542
18543
|
d(!1), i(null), r(void 0);
|
18543
18544
|
}, u = async () => {
|
18544
18545
|
await a(), _();
|
@@ -18622,7 +18623,7 @@ const X1 = ({
|
|
18622
18623
|
] });
|
18623
18624
|
}), sC = A(
|
18624
18625
|
({ onProfileUpdated: e, profile: n }) => {
|
18625
|
-
const { common: i, settings: a } = I(), { updateAccount: r } = ve(), o = n.notification_type ===
|
18626
|
+
const { common: i, settings: a } = I(), { updateAccount: r } = ve(), o = n.notification_type === We.DebtPaymentReminder, [s, c] = g.useState(!1), [d, _] = g.useState(n.threshold || 0), [u, h] = g.useState(
|
18626
18627
|
n.account?.day_payment_is_due || 0
|
18627
18628
|
), m = n.account?.name || n.account?.feed_name || "", C = n.account?.day_payment_is_due ? S(
|
18628
18629
|
a.notification_debt_payment_date,
|
@@ -21176,7 +21177,7 @@ const ZC = () => {
|
|
21176
21177
|
survey: h
|
21177
21178
|
} = fr(), { analytics: m, common: C } = I(), { isCopyLoaded: f, isInitialized: E } = ce(), [b, T] = g.useState(!1);
|
21178
21179
|
g.useEffect(() => {
|
21179
|
-
E && s()
|
21180
|
+
E && s();
|
21180
21181
|
}, [E]), g.useEffect(() => {
|
21181
21182
|
e("survey shown", {
|
21182
21183
|
$survey_id: i
|
@@ -21429,7 +21430,7 @@ const gf = ({
|
|
21429
21430
|
onConnectAccountsClick: n,
|
21430
21431
|
createBudgetOnClick: i
|
21431
21432
|
}) => {
|
21432
|
-
const { recalculateBudgets: a } = st(), { spendCategories: r } =
|
21433
|
+
const { recalculateBudgets: a } = st(), { spendCategories: r } = Ue(), { budgets: o } = I(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), [u, h] = g.useState(!1), m = g.useMemo(() => [...r.filter((f) => f.totalAverageAmount > 0)], [r]), C = async () => {
|
21433
21434
|
h(!0);
|
21434
21435
|
const { data: f, isSuccess: E } = await a(m);
|
21435
21436
|
h(!1), E ? (f.length === 0 && c(!0), _(!1)) : _(!0);
|
@@ -21508,7 +21509,7 @@ const gf = ({
|
|
21508
21509
|
shouldShowZeroState: r,
|
21509
21510
|
unavailableWidth: o = 24
|
21510
21511
|
}) => {
|
21511
|
-
const { onEvent: s } = V(), { setSelectedBudget: c } = st(), { isLoadingCategoryTotals: d } =
|
21512
|
+
const { onEvent: s } = V(), { setSelectedBudget: c } = st(), { isLoadingCategoryTotals: d } = Ue(), { isInitialized: _ } = ce(), { accounts: u } = I(), { availableWidth: h } = $n(), { isMobile: m } = xe(), [C, f] = g.useState(!1), E = g.useMemo(() => h - o, [h]), b = (x) => {
|
21512
21513
|
c(x), s(F.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
21513
21514
|
budget_category: x.category.name,
|
21514
21515
|
click_type: "bubble"
|
@@ -21544,7 +21545,7 @@ const gf = ({
|
|
21544
21545
|
] });
|
21545
21546
|
}
|
21546
21547
|
), Cf = (e) => {
|
21547
|
-
const n = he(), { accounts: i } = ve(), { budgets: a, isDataLoaded: r, loadBudgetData: o, setTheme: s } = st(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: _ } = ce(), { reloadCategoryTotals: u } =
|
21548
|
+
const n = he(), { accounts: i } = ve(), { budgets: a, isDataLoaded: r, loadBudgetData: o, setTheme: s } = st(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: _ } = ce(), { reloadCategoryTotals: u } = Ue(), h = Zu(), m = a.length === 0;
|
21548
21549
|
return g.useEffect(() => {
|
21549
21550
|
s(n);
|
21550
21551
|
}, [n]), g.useEffect(() => {
|
@@ -21606,7 +21607,7 @@ const gf = ({
|
|
21606
21607
|
] }, e.guid);
|
21607
21608
|
}
|
21608
21609
|
), yf = ({ onRecalculateBudgets: e }) => {
|
21609
|
-
const { budgets: n, common: i } = I(), { spendCategories: a } =
|
21610
|
+
const { budgets: n, common: i } = I(), { spendCategories: a } = Ue(), { recalculateBudgets: r, setAlert: o } = st(), [s, c] = g.useState(!1), d = a.filter((u) => u.totalAverageAmount > 0), _ = async () => {
|
21610
21611
|
await r(d), c(!1), o(n.alert_recalculated_budgets), e?.();
|
21611
21612
|
};
|
21612
21613
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -22068,7 +22069,7 @@ const gf = ({
|
|
22068
22069
|
] }, o.guid)) }) })
|
22069
22070
|
] });
|
22070
22071
|
}), Rf = A(() => {
|
22071
|
-
const e = he(), { onEvent: n } = V(), { visibleAccounts: i } = ve(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } =
|
22072
|
+
const e = he(), { onEvent: n } = V(), { visibleAccounts: i } = ve(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ue(), { detailedBudgets: d, totalBudgeted: _ } = st(), { projectedIncome: u } = Qe(), { setFilter: h } = Ce(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
22072
22073
|
const w = c.reduce((H, O) => H + O.totalAmount, 0);
|
22073
22074
|
let v = w / _;
|
22074
22075
|
v > 1 && (v = 1);
|
@@ -22160,7 +22161,7 @@ const gf = ({
|
|
22160
22161
|
setAlert: T,
|
22161
22162
|
setTheme: x,
|
22162
22163
|
budgets: w
|
22163
|
-
} = st(), { loadActivity: v } = Qe(), { isDesktop: R, isTablet: D } = xe(), { reloadCategoryTotals: H } =
|
22164
|
+
} = st(), { loadActivity: v } = Qe(), { isDesktop: R, isTablet: D } = xe(), { reloadCategoryTotals: H } = Ue(), [O, M] = g.useState(!1);
|
22164
22165
|
g.useEffect(() => {
|
22165
22166
|
x(i), h(r), u(C.start, C.end), a(F.BUDGETS_VIEW);
|
22166
22167
|
}, []), g.useEffect(() => {
|
@@ -26231,7 +26232,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26231
26232
|
dateRangeCategoryTotals: r,
|
26232
26233
|
dataRangeTotalsLoaded: o,
|
26233
26234
|
loadDateRangeCategoryTotals: s
|
26234
|
-
} =
|
26235
|
+
} = Ue(), c = g.useMemo(
|
26235
26236
|
() => [
|
26236
26237
|
e.palette.chartMono.chartMono5,
|
26237
26238
|
e.palette.chartMono.chartMono4,
|
@@ -26421,7 +26422,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26421
26422
|
selectedId: a,
|
26422
26423
|
title: r
|
26423
26424
|
}) => {
|
26424
|
-
const { isDesktop: o, isMobile: s } = xe(), { isLoadingCategoryTotals: c } =
|
26425
|
+
const { isDesktop: o, isMobile: s } = xe(), { isLoadingCategoryTotals: c } = Ue(), { spending: d } = I();
|
26425
26426
|
return /* @__PURE__ */ l(
|
26426
26427
|
y,
|
26427
26428
|
{
|
@@ -26472,7 +26473,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26472
26473
|
e.palette.chartMono.chartMono1,
|
26473
26474
|
e.palette.chartMono.chartMono6
|
26474
26475
|
], B0 = () => {
|
26475
|
-
const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } =
|
26476
|
+
const e = vn(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = Ue(), { spending: r } = I(), { displayedDateRange: o, selectedAccounts: s, selectedAccountGuids: c } = ce(), { setFilter: d, sortedTransactions: _ } = Ce(), [u, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [b, T] = g.useState(!1);
|
26476
26477
|
g.useEffect(() => {
|
26477
26478
|
a(
|
26478
26479
|
s,
|
@@ -26646,7 +26647,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26646
26647
|
return (i || 0) - (a || 0);
|
26647
26648
|
}, Y0 = (e) => {
|
26648
26649
|
const n = e.row[e.field];
|
26649
|
-
return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(
|
26650
|
+
return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ve, { amount: n, variant: "Small" }) });
|
26650
26651
|
}, j0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
26651
26652
|
const { categories: i } = I(), a = ga[e];
|
26652
26653
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
@@ -26782,7 +26783,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26782
26783
|
}, eb = A(J0), tb = {
|
26783
26784
|
view_transactions: "View Transactions"
|
26784
26785
|
}, nb = ({ onBackClick: e, sx: n }) => {
|
26785
|
-
const i = et(), { onEvent: a } = V(), { isDesktop: r, isTablet: o, isMobile: s } = xe(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } =
|
26786
|
+
const i = et(), { onEvent: a } = V(), { isDesktop: r, isTablet: o, isMobile: s } = xe(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ue(), { sortedTransactions: h } = Ce(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: b } = I(), T = i.palette.mode === "dark", [x, w] = g.useState(!1), [v, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, M] = g.useState(""), [X, W] = g.useState({
|
26786
26787
|
start: to(ze(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
26787
26788
|
end: ze(/* @__PURE__ */ new Date())
|
26788
26789
|
});
|
@@ -26970,7 +26971,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26970
26971
|
}
|
26971
26972
|
);
|
26972
26973
|
}, UE = A(nb), ib = () => {
|
26973
|
-
const e = et(), { monthlyCategoryTotals: n } =
|
26974
|
+
const e = et(), { monthlyCategoryTotals: n } = Ue(), { trends: i } = I(), a = sm(n);
|
26974
26975
|
return /* @__PURE__ */ t(
|
26975
26976
|
Cr,
|
26976
26977
|
{
|
@@ -26986,7 +26987,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26986
26987
|
}
|
26987
26988
|
);
|
26988
26989
|
}, ab = A(ib), rb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
26989
|
-
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } =
|
26990
|
+
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = Ue(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
|
26990
26991
|
return g.useEffect(() => {
|
26991
26992
|
r && i(c).finally();
|
26992
26993
|
}, [r, c]), s ? /* @__PURE__ */ t(
|
@@ -27054,7 +27055,7 @@ export {
|
|
27054
27055
|
_t as ConnectionStatusEnums,
|
27055
27056
|
Xi as CurrencyCodes,
|
27056
27057
|
en as CurrencyInput,
|
27057
|
-
|
27058
|
+
Ve as CurrencyText,
|
27058
27059
|
ee as DATE_FORMATS_INTL,
|
27059
27060
|
Ms as DEFAULT_DONUT_SIZE,
|
27060
27061
|
ks as DEFAULT_STROKE_WIDTH,
|
@@ -27124,7 +27125,7 @@ export {
|
|
27124
27125
|
i1 as NotificationList,
|
27125
27126
|
Mc as NotificationSettings,
|
27126
27127
|
qp as NotificationStore,
|
27127
|
-
|
27128
|
+
We as NotificationType,
|
27128
27129
|
Ln as ORDINAL_DATE_FORMAT,
|
27129
27130
|
q2 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
27130
27131
|
gr as PAYMENT_ACCOUNT_TYPES,
|
@@ -27218,7 +27219,7 @@ export {
|
|
27218
27219
|
Ca as useAppConfig,
|
27219
27220
|
st as useBudgetsStore,
|
27220
27221
|
br as useCashflowStore,
|
27221
|
-
|
27222
|
+
Ue as useCategoryStore,
|
27222
27223
|
pn as useCategoryUiStore,
|
27223
27224
|
iu as useCombineEvents,
|
27224
27225
|
au as useCombinePageviews,
|