@mx-cartographer/experiences 6.16.3 → 6.16.5-alpha.san1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -4,9 +4,9 @@ import { observer as I } from "mobx-react-lite";
|
|
|
4
4
|
import L from "@mui/material/Box";
|
|
5
5
|
import H from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import kt from "@mui/material/ListSubheader";
|
|
8
8
|
import we from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as el, P as xe, Icon as $, useTokens as gt, Text as p, H2 as cn, CategoryIcon as
|
|
9
|
+
import { AccountsIcon as el, P as xe, Icon as $, useTokens as gt, Text as p, H2 as cn, CategoryIcon as Gt, DialogHeader as tl, DialogFooter as nl, Drawer as il, Footer as al, DateRangePicker as ko, H3 as mt, H1 as Xt, TextField as yn, IconWeight as ft, MerchantLogo as rn, CategoryIconVariants as os, InstitutionLogo as ut, ChevronRightIcon as ol, THEMES as Go } from "@mxenabled/mxui";
|
|
10
10
|
import rl from "bowser";
|
|
11
11
|
import { getUnixTime as He } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as sl } from "date-fns/intlFormat";
|
|
@@ -77,7 +77,7 @@ import za from "@mui/material/CircularProgress";
|
|
|
77
77
|
import { v4 as jl } from "uuid";
|
|
78
78
|
import Ki from "@mui/material/InputAdornment";
|
|
79
79
|
import Xl from "@mui/material/Radio";
|
|
80
|
-
import
|
|
80
|
+
import Bt from "@mui/material/Avatar";
|
|
81
81
|
import ke from "@mui/material/ListItemAvatar";
|
|
82
82
|
import ht from "@mui/material/ListItemIcon";
|
|
83
83
|
import Ya from "@mui/material/MenuItem";
|
|
@@ -1302,7 +1302,7 @@ const Ea = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1302
1302
|
if (!n)
|
|
1303
1303
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1304
1304
|
return n;
|
|
1305
|
-
}, Ee = () => qe("useAccountStore").globalStore.accountStore, Fn = () => qe("useAppConfig").globalStore.appDataStore.appConfig, io = () => qe("useAnalyticsStore").globalStore.analyticsStore, lt = () => qe("useBudgetsStore").globalStore.budgetsStore, ao = () => qe("useCashflowStore").globalStore.cashflowStore, $e = () => qe("useCategoryStore").globalStore.categoryStore, Ms = () => qe("useConnectStore").globalStore.connectStore, ca = () => qe("useDebtsStore").globalStore.debtsStore, la = () => qe("useGlobalStore").globalStore, de = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, tt = () => qe("useGoalStore").globalStore.goalStore, oo = () => qe("useHelpStore").globalStore.helpStore, Gn = () => qe("useHoldingStore").globalStore.holdingStore, s_ = () => qe("useMerchantStore").globalStore.merchantStore, ks = () => qe("useNetWorthStore").globalStore.netWorthStore, Gs = () => qe("useNotificationStore").globalStore.notificationStore, ze = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => qe("useSettingsStore").globalStore.settingsStore, Ne = () => qe("useTransactionStore").globalStore.transactionStore,
|
|
1305
|
+
}, Ee = () => qe("useAccountStore").globalStore.accountStore, Fn = () => qe("useAppConfig").globalStore.appDataStore.appConfig, io = () => qe("useAnalyticsStore").globalStore.analyticsStore, lt = () => qe("useBudgetsStore").globalStore.budgetsStore, ao = () => qe("useCashflowStore").globalStore.cashflowStore, $e = () => qe("useCategoryStore").globalStore.categoryStore, Ms = () => qe("useConnectStore").globalStore.connectStore, ca = () => qe("useDebtsStore").globalStore.debtsStore, la = () => qe("useGlobalStore").globalStore, de = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, tt = () => qe("useGoalStore").globalStore.goalStore, oo = () => qe("useHelpStore").globalStore.helpStore, Gn = () => qe("useHoldingStore").globalStore.holdingStore, s_ = () => qe("useMerchantStore").globalStore.merchantStore, ks = () => qe("useNetWorthStore").globalStore.netWorthStore, Gs = () => qe("useNotificationStore").globalStore.notificationStore, ze = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, pt = () => qe("useSettingsStore").globalStore.settingsStore, Ne = () => qe("useTransactionStore").globalStore.transactionStore, Lt = () => qe("useUserStore").globalStore.userStore, j = () => ({ onEvent: qe().onEvent }), cE = () => ({ onPageView: qe().onPageView }), c_ = (e = "useWidgetContainerContext") => {
|
|
1306
1306
|
const n = g.useContext(Os);
|
|
1307
1307
|
if (!n)
|
|
1308
1308
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -1423,7 +1423,7 @@ const Ea = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1423
1423
|
"aria-label": T(i.accountTypeAccounts, S),
|
|
1424
1424
|
className: "mx-cmn-account-options-group",
|
|
1425
1425
|
dense: !0,
|
|
1426
|
-
subheader: /* @__PURE__ */ t(
|
|
1426
|
+
subheader: /* @__PURE__ */ t(kt, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1427
1427
|
ue,
|
|
1428
1428
|
{
|
|
1429
1429
|
"aria-label": T(i.toggleAccountTypeAccounts, S),
|
|
@@ -2383,7 +2383,7 @@ const I_ = ({
|
|
|
2383
2383
|
"aria-label": T(i.category_icon_label_aria, o),
|
|
2384
2384
|
mb: 4,
|
|
2385
2385
|
role: "img",
|
|
2386
|
-
children: /* @__PURE__ */ t(
|
|
2386
|
+
children: /* @__PURE__ */ t(Gt, { categoryGuid: n })
|
|
2387
2387
|
}
|
|
2388
2388
|
),
|
|
2389
2389
|
/* @__PURE__ */ t(p, { variant: "Body", children: o })
|
|
@@ -3822,7 +3822,7 @@ const ar = "connect_widget", or = "connections_widget", z_ = ({
|
|
|
3822
3822
|
}
|
|
3823
3823
|
), ka = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
|
3824
3824
|
const o = /* @__PURE__ */ l(q, { children: [
|
|
3825
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
3825
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: e, sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
3826
3826
|
/* @__PURE__ */ t(
|
|
3827
3827
|
ae,
|
|
3828
3828
|
{
|
|
@@ -4467,7 +4467,7 @@ const ti = () => {
|
|
|
4467
4467
|
/* @__PURE__ */ t(We, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
|
4468
4468
|
] });
|
|
4469
4469
|
}, uo = I(ou), ru = ({ onAddIncomeClick: e }) => {
|
|
4470
|
-
const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Ee(), { selectedAccountGuids: s } = de(), { cashflow: c } = x(), { userProfile: d } =
|
|
4470
|
+
const n = pe(), { availableWidth: i } = Wn(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Ee(), { selectedAccountGuids: s } = de(), { cashflow: c } = x(), { userProfile: d } = Lt(), {
|
|
4471
4471
|
daysUntilNextIncome: u,
|
|
4472
4472
|
expensesTilNextIncome: _,
|
|
4473
4473
|
selectedCashAccounts: h,
|
|
@@ -5347,16 +5347,16 @@ class Mu {
|
|
|
5347
5347
|
uiStore;
|
|
5348
5348
|
api = new Xi("/", "");
|
|
5349
5349
|
beatApi = new jn("/", "");
|
|
5350
|
-
isLoading = !0;
|
|
5351
|
-
taggings = [];
|
|
5352
|
-
tags = [];
|
|
5353
|
-
transactionRules = [];
|
|
5354
|
-
transactions = [];
|
|
5355
5350
|
associatedBeats = [];
|
|
5356
5351
|
cachedStartDate = At(he(), 90);
|
|
5352
|
+
filter = {};
|
|
5353
|
+
isLoading = !0;
|
|
5354
|
+
rawTransactions = [];
|
|
5357
5355
|
sortColumn = Ha.DATE;
|
|
5358
5356
|
sortDirection = Vs.DESC;
|
|
5359
|
-
|
|
5357
|
+
taggings = [];
|
|
5358
|
+
tags = [];
|
|
5359
|
+
transactionRules = [];
|
|
5360
5360
|
onAnalyticEvent = Au;
|
|
5361
5361
|
constructor(n) {
|
|
5362
5362
|
this.globalStore = n, this.uiStore = new Lu(), this.api = new Xi(n.endpoint, n.sessionToken), this.beatApi = new jn(n.endpoint, n.sessionToken), Be(this);
|
|
@@ -5383,6 +5383,9 @@ class Mu {
|
|
|
5383
5383
|
this.transactions
|
|
5384
5384
|
);
|
|
5385
5385
|
}
|
|
5386
|
+
get transactions() {
|
|
5387
|
+
return this.augmentTransactions(this.rawTransactions);
|
|
5388
|
+
}
|
|
5386
5389
|
addTag = async (n) => {
|
|
5387
5390
|
await this.api.addTag({ name: n }), await this.loadTags();
|
|
5388
5391
|
};
|
|
@@ -5408,9 +5411,7 @@ class Mu {
|
|
|
5408
5411
|
};
|
|
5409
5412
|
addTransaction = async (n) => {
|
|
5410
5413
|
const i = await this.api.addTransaction(n);
|
|
5411
|
-
i && Z(
|
|
5412
|
-
() => this.transactions = this.augmentTransactions([i, ...this.transactions])
|
|
5413
|
-
);
|
|
5414
|
+
i && Z(() => this.rawTransactions = [i, ...this.transactions]);
|
|
5414
5415
|
};
|
|
5415
5416
|
augmentTransactions = (n) => Tu(
|
|
5416
5417
|
n,
|
|
@@ -5435,14 +5436,14 @@ class Mu {
|
|
|
5435
5436
|
Z(() => this.transactionRules = n);
|
|
5436
5437
|
};
|
|
5437
5438
|
loadTransactions = async (n = this.cachedStartDate, i = En()) => {
|
|
5438
|
-
this.setIsLoading(!0), this.
|
|
5439
|
+
this.setIsLoading(!0), this.rawTransactions = [];
|
|
5439
5440
|
try {
|
|
5440
5441
|
const a = await this.api.getTransactionsByDateRange(
|
|
5441
5442
|
He(n),
|
|
5442
5443
|
He(i)
|
|
5443
5444
|
);
|
|
5444
5445
|
Z(() => {
|
|
5445
|
-
this.
|
|
5446
|
+
this.rawTransactions = a;
|
|
5446
5447
|
});
|
|
5447
5448
|
} catch (a) {
|
|
5448
5449
|
console.error(`Error occurred while loading transactions: ${a}`);
|
|
@@ -5457,7 +5458,7 @@ class Mu {
|
|
|
5457
5458
|
});
|
|
5458
5459
|
};
|
|
5459
5460
|
modifyTransactionByAccountGuid = (n, i) => {
|
|
5460
|
-
this.
|
|
5461
|
+
this.rawTransactions = this.transactions.map(
|
|
5461
5462
|
(a) => a.account_guid === n ? { ...a, ...i } : a
|
|
5462
5463
|
);
|
|
5463
5464
|
};
|
|
@@ -5472,7 +5473,7 @@ class Mu {
|
|
|
5472
5473
|
const i = this.transactions.findIndex((a) => a.guid === n);
|
|
5473
5474
|
if (i >= 0) {
|
|
5474
5475
|
const a = [...this.transactions];
|
|
5475
|
-
a.splice(i, 1), Z(() => this.
|
|
5476
|
+
a.splice(i, 1), Z(() => this.rawTransactions = a);
|
|
5476
5477
|
}
|
|
5477
5478
|
};
|
|
5478
5479
|
setFilter = (n) => {
|
|
@@ -5492,12 +5493,12 @@ class Mu {
|
|
|
5492
5493
|
}
|
|
5493
5494
|
const r = this.transactions.findIndex((s) => s.guid === n.guid);
|
|
5494
5495
|
r >= 0 && Z(
|
|
5495
|
-
() => this.
|
|
5496
|
+
() => this.rawTransactions = [
|
|
5496
5497
|
...this.transactions.slice(0, r),
|
|
5497
5498
|
a,
|
|
5498
5499
|
...this.transactions.slice(r + 1),
|
|
5499
5500
|
...o
|
|
5500
|
-
]
|
|
5501
|
+
]
|
|
5501
5502
|
);
|
|
5502
5503
|
};
|
|
5503
5504
|
unSplitTransaction = async (n) => {
|
|
@@ -5510,7 +5511,7 @@ class Mu {
|
|
|
5510
5511
|
});
|
|
5511
5512
|
const o = a.findIndex((s) => s.guid === n), r = a[o];
|
|
5512
5513
|
r.has_been_split = !1, o >= 0 && Z(
|
|
5513
|
-
() => this.
|
|
5514
|
+
() => this.rawTransactions = [
|
|
5514
5515
|
...a.slice(0, o),
|
|
5515
5516
|
r,
|
|
5516
5517
|
...a.slice(o + 1)
|
|
@@ -5531,15 +5532,15 @@ class Mu {
|
|
|
5531
5532
|
updateTransaction = async (n) => {
|
|
5532
5533
|
const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
|
|
5533
5534
|
a >= 0 && Z(
|
|
5534
|
-
() => this.
|
|
5535
|
+
() => this.rawTransactions = [
|
|
5535
5536
|
...this.transactions.slice(0, a),
|
|
5536
5537
|
i,
|
|
5537
5538
|
...this.transactions.slice(a + 1)
|
|
5538
|
-
]
|
|
5539
|
+
]
|
|
5539
5540
|
);
|
|
5540
5541
|
};
|
|
5541
5542
|
}
|
|
5542
|
-
const
|
|
5543
|
+
const Mt = () => {
|
|
5543
5544
|
if (!g.useContext(Pn))
|
|
5544
5545
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5545
5546
|
return Ne().uiStore;
|
|
@@ -5581,7 +5582,7 @@ function Wu(e) {
|
|
|
5581
5582
|
});
|
|
5582
5583
|
}
|
|
5583
5584
|
const $u = ({ transaction: e, onClick: n }) => {
|
|
5584
|
-
const { associatedBeats: i } = Ne(), { transactions: a } = x(), { showInsights: o } =
|
|
5585
|
+
const { associatedBeats: i } = Ne(), { transactions: a } = x(), { showInsights: o } = Mt(), r = e.transaction_type === Kt.CREDIT, s = g.useMemo(() => i.find((c) => c.associated_transaction_guid === e.guid), [i, e]);
|
|
5585
5586
|
return /* @__PURE__ */ l(
|
|
5586
5587
|
X_,
|
|
5587
5588
|
{
|
|
@@ -5670,7 +5671,7 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5670
5671
|
width: c = "100%",
|
|
5671
5672
|
zeroState: d = /* @__PURE__ */ t(Vu, {})
|
|
5672
5673
|
}) => {
|
|
5673
|
-
const { isLoading: u, sortedTransactions: _ } = Ne(), h = g.useMemo(() => s ? _ : _.filter((A) => !A.is_hidden), [_, s]), { setShowInsights: m, toggleSplit: C } =
|
|
5674
|
+
const { isLoading: u, sortedTransactions: _ } = Ne(), h = g.useMemo(() => s ? _ : _.filter((A) => !A.is_hidden), [_, s]), { setShowInsights: m, toggleSplit: C } = Mt(), { onEvent: f } = j(), E = (A) => {
|
|
5674
5675
|
const w = h.find((v) => v.guid === A);
|
|
5675
5676
|
if (w?.has_been_split) {
|
|
5676
5677
|
C(w.guid);
|
|
@@ -5725,7 +5726,7 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5725
5726
|
`${e.row.account}`,
|
|
5726
5727
|
e.row.number && ` | ${e.row.number}`
|
|
5727
5728
|
] }), ju = (e) => {
|
|
5728
|
-
const { associatedBeats: n } = Ne(), { showInsights: i } =
|
|
5729
|
+
const { associatedBeats: n } = Ne(), { showInsights: i } = Mt(), { amount: a, transaction_type: o } = e.row, r = n.find((c) => c.associated_transaction_guid === e.row.guid), s = o === Kt.CREDIT;
|
|
5729
5730
|
return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
|
|
5730
5731
|
/* @__PURE__ */ l(p, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5731
5732
|
s ? "+" : "",
|
|
@@ -6134,7 +6135,7 @@ const ih = ({
|
|
|
6134
6135
|
id: `category-${e.guid}`,
|
|
6135
6136
|
onClick: c,
|
|
6136
6137
|
children: [
|
|
6137
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6138
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
6138
6139
|
/* @__PURE__ */ t(
|
|
6139
6140
|
ae,
|
|
6140
6141
|
{
|
|
@@ -6427,7 +6428,7 @@ class Th {
|
|
|
6427
6428
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ra[n];
|
|
6428
6429
|
}
|
|
6429
6430
|
const Xs = ({ transaction: e }) => {
|
|
6430
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ne(), { categories: a } = $e(), { onEvent: o } = j(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } =
|
|
6431
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ne(), { categories: a } = $e(), { onEvent: o } = j(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = Mt(), { transactions: c } = x(), [d, u] = g.useState(!1), [_, h] = g.useState(""), m = async (y) => {
|
|
6431
6432
|
await i({ ...e, category_guid: _ }), y && await n(_, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
6432
6433
|
transaction_guid: e.guid
|
|
6433
6434
|
});
|
|
@@ -6457,8 +6458,8 @@ const Xs = ({ transaction: e }) => {
|
|
|
6457
6458
|
o(Y.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
6458
6459
|
},
|
|
6459
6460
|
children: [
|
|
6460
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6461
|
-
|
|
6461
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
6462
|
+
Gt,
|
|
6462
6463
|
{
|
|
6463
6464
|
categoryGuid: e.top_level_category_guid,
|
|
6464
6465
|
size: 24,
|
|
@@ -6512,7 +6513,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6512
6513
|
)
|
|
6513
6514
|
] });
|
|
6514
6515
|
}, Zs = ({ transaction: e }) => {
|
|
6515
|
-
const n = gt(), { onEvent: i } = j(), { updateTransaction: a } = Ne(), { updateManualTransaction: o } =
|
|
6516
|
+
const n = gt(), { onEvent: i } = j(), { updateTransaction: a } = Ne(), { updateManualTransaction: o } = Mt(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [u, _] = g.useState(e.date), h = (C) => {
|
|
6516
6517
|
_(He(C));
|
|
6517
6518
|
}, m = async () => {
|
|
6518
6519
|
if (e.is_manual && !e.guid) {
|
|
@@ -6529,7 +6530,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6529
6530
|
i(Y.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
6530
6531
|
},
|
|
6531
6532
|
children: [
|
|
6532
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6533
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "calendar_month", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6533
6534
|
/* @__PURE__ */ t(
|
|
6534
6535
|
ae,
|
|
6535
6536
|
{
|
|
@@ -6569,7 +6570,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6569
6570
|
)
|
|
6570
6571
|
] });
|
|
6571
6572
|
}, Ah = ({ transaction: e }) => {
|
|
6572
|
-
const { onEvent: n } = j(), { removeTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6573
|
+
const { onEvent: n } = j(), { removeTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Mt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6573
6574
|
await i(e.guid), n(Y.ON_TRANSACTION_DELETE_DELETED);
|
|
6574
6575
|
};
|
|
6575
6576
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
|
|
@@ -6580,7 +6581,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6580
6581
|
n(Y.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
6581
6582
|
},
|
|
6582
6583
|
children: [
|
|
6583
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6584
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { variant: "rounded", children: /* @__PURE__ */ t(pi, { color: "secondary", fontSize: "small" }) }) }),
|
|
6584
6585
|
/* @__PURE__ */ t(
|
|
6585
6586
|
ae,
|
|
6586
6587
|
{
|
|
@@ -6609,7 +6610,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6609
6610
|
)
|
|
6610
6611
|
] });
|
|
6611
6612
|
}, Ih = I(Ah), xh = ({ transaction: e }) => {
|
|
6612
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6613
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Mt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6613
6614
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6614
6615
|
transaction_guid: e.guid
|
|
6615
6616
|
});
|
|
@@ -6622,7 +6623,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6622
6623
|
n(Y.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
6623
6624
|
},
|
|
6624
6625
|
children: [
|
|
6625
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6626
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "delete", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6626
6627
|
/* @__PURE__ */ t(ae, { primary: r.merchant_logo_title, secondary: r.merchant_logo_desc }),
|
|
6627
6628
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: ft.Dark }) })
|
|
6628
6629
|
]
|
|
@@ -6649,7 +6650,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6649
6650
|
)
|
|
6650
6651
|
] });
|
|
6651
6652
|
}, vh = I(xh), wh = ({ transaction: e }) => {
|
|
6652
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } =
|
|
6653
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Mt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, u = async () => {
|
|
6653
6654
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6654
6655
|
d ? Y.ON_TRANSACTION_UNHIDDEN : Y.ON_TRANSACTION_HIDDEN
|
|
6655
6656
|
);
|
|
@@ -6671,7 +6672,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6671
6672
|
},
|
|
6672
6673
|
role: "switch",
|
|
6673
6674
|
children: [
|
|
6674
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6675
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
|
|
6675
6676
|
$,
|
|
6676
6677
|
{
|
|
6677
6678
|
name: "visibilityOff",
|
|
@@ -6738,7 +6739,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6738
6739
|
] })
|
|
6739
6740
|
] });
|
|
6740
6741
|
}, Dh = ({ transaction: e }) => {
|
|
6741
|
-
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { updateManualTransaction: a } =
|
|
6742
|
+
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { updateManualTransaction: a } = Mt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, u] = g.useState("");
|
|
6742
6743
|
g.useEffect(() => {
|
|
6743
6744
|
s && u(e.memo ? e.memo : "");
|
|
6744
6745
|
}, [s]);
|
|
@@ -6757,7 +6758,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6757
6758
|
n(Y.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
6758
6759
|
},
|
|
6759
6760
|
children: [
|
|
6760
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6761
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "article", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
6761
6762
|
/* @__PURE__ */ t(
|
|
6762
6763
|
ae,
|
|
6763
6764
|
{
|
|
@@ -6832,7 +6833,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6832
6833
|
{
|
|
6833
6834
|
endIcon: /* @__PURE__ */ t(ia, {}),
|
|
6834
6835
|
onClick: () => h(!0),
|
|
6835
|
-
startIcon: /* @__PURE__ */ t(
|
|
6836
|
+
startIcon: /* @__PURE__ */ t(Gt, { categoryGuid: o.top_level_category_guid }),
|
|
6836
6837
|
sx: { px: r.Spacing.Small, py: r.Spacing.XSmall },
|
|
6837
6838
|
children: o.category
|
|
6838
6839
|
}
|
|
@@ -6965,7 +6966,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6965
6966
|
) })
|
|
6966
6967
|
] });
|
|
6967
6968
|
}, Mh = I(Lh), kh = ({ transaction: e }) => {
|
|
6968
|
-
const { onEvent: n } = j(), { splitTransaction: i, unSplitTransaction: a } = Ne(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } =
|
|
6969
|
+
const { onEvent: n } = j(), { splitTransaction: i, unSplitTransaction: a } = Ne(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = Mt(), { categories: c } = $e(), d = {
|
|
6969
6970
|
...e,
|
|
6970
6971
|
amount: e.amount - 1,
|
|
6971
6972
|
guid: "",
|
|
@@ -7026,7 +7027,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7026
7027
|
}, [f]);
|
|
7027
7028
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7028
7029
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: v, children: [
|
|
7029
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
7030
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
7030
7031
|
/* @__PURE__ */ t(
|
|
7031
7032
|
ae,
|
|
7032
7033
|
{
|
|
@@ -7284,7 +7285,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7284
7285
|
] }, s.guid)) }) })
|
|
7285
7286
|
] });
|
|
7286
7287
|
}, Vh = I(Uh), Kh = ({ transaction: e }) => {
|
|
7287
|
-
const { onEvent: n } = j(), { tags: i, updateTaggings: a, updateTransaction: o } = Ne(), { common: r, transactions: s } = x(), { updateManualTransaction: c } =
|
|
7288
|
+
const { onEvent: n } = j(), { tags: i, updateTaggings: a, updateTransaction: o } = Ne(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = Mt(), [d, u] = g.useState(!1), [_, h] = g.useState(e.tags);
|
|
7288
7289
|
g.useEffect(() => {
|
|
7289
7290
|
h(e.tags);
|
|
7290
7291
|
}, [d, e]);
|
|
@@ -7311,7 +7312,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7311
7312
|
n(Y.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
7312
7313
|
},
|
|
7313
7314
|
children: [
|
|
7314
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
7315
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "local_offer", sx: { color: "text.primary" }, weight: ft.Dark }) }) }),
|
|
7315
7316
|
/* @__PURE__ */ t(
|
|
7316
7317
|
ae,
|
|
7317
7318
|
{
|
|
@@ -7492,7 +7493,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7492
7493
|
}
|
|
7493
7494
|
) : /* @__PURE__ */ t(_e, {});
|
|
7494
7495
|
}, Qh = I(qh), Jh = () => {
|
|
7495
|
-
const { selectedAccounts: e } = de(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } =
|
|
7496
|
+
const { selectedAccounts: e } = de(), { common: n, transactions: i } = x(), { manualTransaction: a, setIsAmountValid: o, updateManualTransaction: r } = Mt(), [s, c] = g.useState(""), [d, u] = g.useState(""), _ = g.useMemo(
|
|
7496
7497
|
() => e.filter((y) => y.is_manual),
|
|
7497
7498
|
[e]
|
|
7498
7499
|
).map((y) => ({
|
|
@@ -7643,7 +7644,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7643
7644
|
setSearchValue: h,
|
|
7644
7645
|
setShowInsights: m,
|
|
7645
7646
|
updateManualTransaction: C
|
|
7646
|
-
} =
|
|
7647
|
+
} = Mt(), {
|
|
7647
7648
|
addTransaction: f,
|
|
7648
7649
|
filter: E,
|
|
7649
7650
|
loadAssociatedBeats: y,
|
|
@@ -7652,7 +7653,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7652
7653
|
tags: w,
|
|
7653
7654
|
transactions: v,
|
|
7654
7655
|
updateTransaction: R
|
|
7655
|
-
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } =
|
|
7656
|
+
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } = Lt(), { onEvent: k } = j(), {
|
|
7656
7657
|
displayedDateRange: O,
|
|
7657
7658
|
isCopyLoaded: U,
|
|
7658
7659
|
isInitialized: Q,
|
|
@@ -8166,7 +8167,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8166
8167
|
onSearch: i,
|
|
8167
8168
|
onSelected: a
|
|
8168
8169
|
}) => {
|
|
8169
|
-
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } =
|
|
8170
|
+
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } = Mt();
|
|
8170
8171
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
|
8171
8172
|
n && /* @__PURE__ */ t(xe, { sx: { mx: 24 }, children: n }),
|
|
8172
8173
|
/* @__PURE__ */ t(
|
|
@@ -8221,7 +8222,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8221
8222
|
label: n,
|
|
8222
8223
|
onAddRecurringTransaction: i = () => null
|
|
8223
8224
|
}) => {
|
|
8224
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } =
|
|
8225
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } = Lt(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [C, f] = g.useState(me.EveryMonth), [E, y] = g.useState(1), [S, A] = g.useState(15), w = g.useMemo(
|
|
8225
8226
|
() => s.find((M) => M.guid === h),
|
|
8226
8227
|
[h, s]
|
|
8227
8228
|
), v = () => {
|
|
@@ -8674,7 +8675,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8674
8675
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
8675
8676
|
ie,
|
|
8676
8677
|
{
|
|
8677
|
-
subheader: /* @__PURE__ */ t(
|
|
8678
|
+
subheader: /* @__PURE__ */ t(kt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: ce(d.date, re.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
8678
8679
|
sx: { width: "100%" },
|
|
8679
8680
|
children: d.recurrences.map((_, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
8680
8681
|
br,
|
|
@@ -9599,7 +9600,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9599
9600
|
const { cashflow: i } = x();
|
|
9600
9601
|
return /* @__PURE__ */ l(q, { children: [
|
|
9601
9602
|
/* @__PURE__ */ l(
|
|
9602
|
-
|
|
9603
|
+
kt,
|
|
9603
9604
|
{
|
|
9604
9605
|
sx: {
|
|
9605
9606
|
alignItems: "center",
|
|
@@ -9996,7 +9997,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9996
9997
|
]
|
|
9997
9998
|
}
|
|
9998
9999
|
), Ir = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (qa(i.expectedDate) || nn(i.expectedDate, n.start)) && Xe(i.expectedDate, n.end), kg = () => {
|
|
9999
|
-
const { availableWidth: e } = Wn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } = de(), { dateRange: r, selectedCashAccounts: s } = ti(), { userProfile: c } =
|
|
10000
|
+
const { availableWidth: e } = Wn(), { cashflow: n } = x(), { upcomingExpenses: i, upcomingIncome: a } = ze(), { selectedAccountGuids: o } = de(), { dateRange: r, selectedCashAccounts: s } = ti(), { userProfile: c } = Lt(), [d, u] = g.useState(!1), _ = g.useMemo(
|
|
10000
10001
|
() => i.filter(Ir(o, r)),
|
|
10001
10002
|
[r, o, i]
|
|
10002
10003
|
), h = g.useMemo(
|
|
@@ -10359,7 +10360,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10359
10360
|
setSelectedAccounts: o,
|
|
10360
10361
|
shouldDisableNextDate: r,
|
|
10361
10362
|
shouldDisablePrevDate: s
|
|
10362
|
-
} = de(), { onEvent: c } = j(), { visibleCashAccounts: d } = Ee(), { setFilter: u } = Ne(), { userProfile: _ } =
|
|
10363
|
+
} = de(), { onEvent: c } = j(), { visibleCashAccounts: d } = Ee(), { setFilter: u } = Ne(), { userProfile: _ } = Lt(), { dateRange: h, setSelectedCashAccounts: m } = ti(), { loadRepeatingTransactions: C } = ze(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = de(), [S, A] = g.useState(!1);
|
|
10363
10364
|
return g.useEffect(() => {
|
|
10364
10365
|
y && C().finally();
|
|
10365
10366
|
}, [y]), g.useEffect(() => {
|
|
@@ -12309,7 +12310,7 @@ const Xm = (e, n) => {
|
|
|
12309
12310
|
/* @__PURE__ */ t(
|
|
12310
12311
|
dn,
|
|
12311
12312
|
{
|
|
12312
|
-
avatar: /* @__PURE__ */ t(
|
|
12313
|
+
avatar: /* @__PURE__ */ t(Bt, { sx: { bgcolor: c, color: d, height: 48, width: 48 }, variant: "rounded", children: f }),
|
|
12313
12314
|
subheader: /* @__PURE__ */ t(p, { variant: n || s ? "H3" : "H2", children: `${P(e.current_amount, s ? "0,0" : "0,0.00")} / ${Zm(
|
|
12314
12315
|
m,
|
|
12315
12316
|
s
|
|
@@ -12469,7 +12470,7 @@ const Xm = (e, n) => {
|
|
|
12469
12470
|
justifyContent: "center",
|
|
12470
12471
|
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
12471
12472
|
},
|
|
12472
|
-
children: /* @__PURE__ */ t(
|
|
12473
|
+
children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: n + 1 }) })
|
|
12473
12474
|
}
|
|
12474
12475
|
),
|
|
12475
12476
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -12638,7 +12639,7 @@ const Xm = (e, n) => {
|
|
|
12638
12639
|
d
|
|
12639
12640
|
),
|
|
12640
12641
|
children: [
|
|
12641
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
12642
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(ct, { name: o, sx: { color: "grey.900" } }) }) }),
|
|
12642
12643
|
/* @__PURE__ */ t(ae, { primary: r, secondary: s, sx: { mr: 24 } }),
|
|
12643
12644
|
!h && /* @__PURE__ */ t(it, {}),
|
|
12644
12645
|
h && (u ? /* @__PURE__ */ t($l, {}) : /* @__PURE__ */ t(Va, {}))
|
|
@@ -12953,7 +12954,7 @@ const Xm = (e, n) => {
|
|
|
12953
12954
|
}
|
|
12954
12955
|
);
|
|
12955
12956
|
}, cp = I(({ goal: e }) => {
|
|
12956
|
-
const { goals: n } = x(), { user: i, updateUser: a } =
|
|
12957
|
+
const { goals: n } = x(), { user: i, updateUser: a } = Lt(), { setAlert: o } = tt(), [r, s] = g.useState(Fe(i.birthday ?? 0)), [c, d] = g.useState(null), u = e.is_complete, _ = async () => {
|
|
12957
12958
|
r && Sd(r) && (await a({ ...i, birthday: He(r) }), o(n.alert_goal_updated_birthday));
|
|
12958
12959
|
};
|
|
12959
12960
|
return /* @__PURE__ */ t(
|
|
@@ -13086,7 +13087,7 @@ const Xm = (e, n) => {
|
|
|
13086
13087
|
setAlert: h,
|
|
13087
13088
|
setSelectedGoal: m,
|
|
13088
13089
|
updateGoal: C
|
|
13089
|
-
} = tt(), { user: f } =
|
|
13090
|
+
} = tt(), { user: f } = Lt(), [E, y] = g.useState(!1), S = !_?.guid, A = _?.track_type === V.SAVINGS_TRACK && _.is_complete && !_.has_been_spent, w = g.useMemo(() => {
|
|
13090
13091
|
const O = S ? d : u;
|
|
13091
13092
|
return n.filter((U) => O.some((Q) => Q.account_guid === U.guid));
|
|
13092
13093
|
}, [S, n, d, u]), v = g.useMemo(() => {
|
|
@@ -13450,7 +13451,7 @@ const hp = I(({ goal: e }) => {
|
|
|
13450
13451
|
} = fc(n, e), c = Math.round(r * 100);
|
|
13451
13452
|
let d = /* @__PURE__ */ t(_s, {});
|
|
13452
13453
|
return e.track_type === V.DEBT_TRACK ? d = /* @__PURE__ */ t(us, {}) : e.track_type === V.RETIREMENT_TRACK && (d = /* @__PURE__ */ t(hs, {})), /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
|
|
13453
|
-
/* @__PURE__ */ t(
|
|
13454
|
+
/* @__PURE__ */ t(Bt, { sx: { bgcolor: a, color: o, height: 32, width: 32 }, variant: "rounded", children: d }),
|
|
13454
13455
|
/* @__PURE__ */ l(L, { width: "65%", children: [
|
|
13455
13456
|
/* @__PURE__ */ t(cn, { fontSize: 15, fontWeight: 600, variant: "Body", children: e.name }),
|
|
13456
13457
|
e.projected_to_complete_at && /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: s })
|
|
@@ -14260,7 +14261,7 @@ const Bp = ({
|
|
|
14260
14261
|
};
|
|
14261
14262
|
return /* @__PURE__ */ l(b, { direction: "column", sx: { width: 320 }, children: [
|
|
14262
14263
|
/* @__PURE__ */ l(ie, { children: [
|
|
14263
|
-
/* @__PURE__ */ t(
|
|
14264
|
+
/* @__PURE__ */ t(kt, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "Body", children: c.monthly_totals }) }),
|
|
14264
14265
|
/* @__PURE__ */ t(H, {}),
|
|
14265
14266
|
e.map((_, h) => /* @__PURE__ */ t(
|
|
14266
14267
|
Fp,
|
|
@@ -14604,7 +14605,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14604
14605
|
}
|
|
14605
14606
|
),
|
|
14606
14607
|
/* @__PURE__ */ l(ie, { children: [
|
|
14607
|
-
/* @__PURE__ */ t(
|
|
14608
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14608
14609
|
ae,
|
|
14609
14610
|
{
|
|
14610
14611
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14614,7 +14615,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14614
14615
|
}
|
|
14615
14616
|
) }),
|
|
14616
14617
|
/* @__PURE__ */ t(Gr, { groupedAccounts: kr(n) }),
|
|
14617
|
-
/* @__PURE__ */ t(
|
|
14618
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14618
14619
|
ae,
|
|
14619
14620
|
{
|
|
14620
14621
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14641,7 +14642,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14641
14642
|
e && /* @__PURE__ */ t(wo, { currencyVariant: "H1", iconSize: 32, netWorth: e, theme: s })
|
|
14642
14643
|
] }),
|
|
14643
14644
|
/* @__PURE__ */ l(ie, { children: [
|
|
14644
|
-
/* @__PURE__ */ t(
|
|
14645
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14645
14646
|
ae,
|
|
14646
14647
|
{
|
|
14647
14648
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14670,7 +14671,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14670
14671
|
) }),
|
|
14671
14672
|
/* @__PURE__ */ t(H, {})
|
|
14672
14673
|
] }, c.accountName)),
|
|
14673
|
-
/* @__PURE__ */ t(
|
|
14674
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14674
14675
|
ae,
|
|
14675
14676
|
{
|
|
14676
14677
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14912,7 +14913,7 @@ const d1 = (e, n) => {
|
|
|
14912
14913
|
institutionGuid: o?.institution_guid ?? "",
|
|
14913
14914
|
size: 33
|
|
14914
14915
|
}
|
|
14915
|
-
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
|
14916
|
+
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(Gt, { categoryGuid: r?.category_guid, size: 36 }) });
|
|
14916
14917
|
}, h1 = I(u1), g1 = ({ notification: e, onClick: n }) => {
|
|
14917
14918
|
const { updateNotification: i } = Gs(), a = ln(), o = {
|
|
14918
14919
|
card: {
|
|
@@ -15041,32 +15042,32 @@ const Hr = "PARENT-ENTITY", f1 = (e, n) => ({
|
|
|
15041
15042
|
[Ve.TransactionExpenseLarge]: n.large_transaction,
|
|
15042
15043
|
[Ve.PromotionalCampaignMessages]: n.promotional_campaign_messages,
|
|
15043
15044
|
[Ve.TransparentOverdraft]: n.transparent_overdraft
|
|
15044
|
-
})[e] || "", b1 = (e, n, i, a, o) => {
|
|
15045
|
-
const
|
|
15046
|
-
email_notifications_enabled:
|
|
15047
|
-
sms_notifications_enabled:
|
|
15048
|
-
push_notifications_enabled:
|
|
15045
|
+
})[e] || "", b1 = (e, n, i, a, o, r) => {
|
|
15046
|
+
const s = [], {
|
|
15047
|
+
email_notifications_enabled: c,
|
|
15048
|
+
sms_notifications_enabled: d,
|
|
15049
|
+
push_notifications_enabled: u
|
|
15049
15050
|
} = n, {
|
|
15050
|
-
opted_out_of_email_notifications:
|
|
15051
|
-
opted_out_of_sms_notifications:
|
|
15052
|
-
opted_out_of_push_notifications:
|
|
15051
|
+
opted_out_of_email_notifications: _,
|
|
15052
|
+
opted_out_of_sms_notifications: h,
|
|
15053
|
+
opted_out_of_push_notifications: m
|
|
15053
15054
|
} = o;
|
|
15054
|
-
for (const
|
|
15055
|
-
const
|
|
15056
|
-
(
|
|
15057
|
-
),
|
|
15058
|
-
|
|
15059
|
-
...
|
|
15060
|
-
children:
|
|
15061
|
-
...
|
|
15062
|
-
account: e.find((
|
|
15063
|
-
label:
|
|
15055
|
+
for (const C of a.filter((f) => f.entity_guid === Hr)) {
|
|
15056
|
+
const f = f1(C.notification_type, i), E = a.filter(
|
|
15057
|
+
(S) => S.entity_guid !== Hr && S.notification_type === C.notification_type && e.some((A) => A.guid === S.entity_guid)
|
|
15058
|
+
), y = [];
|
|
15059
|
+
c && !_ && C.email_channel && r.email && y.push(i.delivery_method_email_label), d && !h && C.sms_channel && r.phone && y.push(i.delivery_method_sms_label), u && !m && C.push_channel && y.push(i.delivery_method_push_label), s.push({
|
|
15060
|
+
...C,
|
|
15061
|
+
children: E.map((S) => ({
|
|
15062
|
+
...S,
|
|
15063
|
+
account: e.find((A) => A.guid === S.entity_guid),
|
|
15064
|
+
label: f
|
|
15064
15065
|
})),
|
|
15065
|
-
deliveryMethodsLabel:
|
|
15066
|
-
label:
|
|
15066
|
+
deliveryMethodsLabel: y.join(", "),
|
|
15067
|
+
label: f
|
|
15067
15068
|
});
|
|
15068
15069
|
}
|
|
15069
|
-
return
|
|
15070
|
+
return s;
|
|
15070
15071
|
};
|
|
15071
15072
|
class y1 {
|
|
15072
15073
|
globalStore;
|
|
@@ -15107,7 +15108,8 @@ class y1 {
|
|
|
15107
15108
|
this.clientCommunicationProfile,
|
|
15108
15109
|
this.copy,
|
|
15109
15110
|
this.notificationProfiles,
|
|
15110
|
-
this.userCommunicationsProfile
|
|
15111
|
+
this.userCommunicationsProfile,
|
|
15112
|
+
this.globalStore.userStore.user
|
|
15111
15113
|
) : [];
|
|
15112
15114
|
}
|
|
15113
15115
|
get userCommunicationsProfile() {
|
|
@@ -15245,7 +15247,7 @@ class y1 {
|
|
|
15245
15247
|
};
|
|
15246
15248
|
}
|
|
15247
15249
|
const E1 = I(() => {
|
|
15248
|
-
const { common: e, settings: n } = x(), { sendEmailVerification: i } = pt(), { user: a } =
|
|
15250
|
+
const { common: e, settings: n } = x(), { sendEmailVerification: i } = pt(), { user: a } = Lt(), o = pe(), [r, s] = g.useState(!1), c = () => {
|
|
15249
15251
|
s(!1);
|
|
15250
15252
|
}, d = () => {
|
|
15251
15253
|
s(!0);
|
|
@@ -15319,7 +15321,7 @@ const E1 = I(() => {
|
|
|
15319
15321
|
);
|
|
15320
15322
|
}
|
|
15321
15323
|
), T1 = I(() => {
|
|
15322
|
-
const { common: e, settings: n } = x(), { sendPhoneVerification: i, verifyPhoneToken: a } = pt(), { user: o } =
|
|
15324
|
+
const { common: e, settings: n } = x(), { sendPhoneVerification: i, verifyPhoneToken: a } = pt(), { user: o } = Lt(), r = pe(), [s, c] = g.useState(!1), [d, u] = g.useState(!1), _ = () => {
|
|
15323
15325
|
c(!1);
|
|
15324
15326
|
}, h = () => {
|
|
15325
15327
|
c(!0);
|
|
@@ -15384,7 +15386,7 @@ const E1 = I(() => {
|
|
|
15384
15386
|
)
|
|
15385
15387
|
] });
|
|
15386
15388
|
}), A1 = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
|
15387
|
-
const i = at(), { common: a, settings: o } = x(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: d } = Ce(e), { config: u } = Fn(), { updateUser: _ } = pt(), { user: h } =
|
|
15389
|
+
const i = at(), { common: a, settings: o } = x(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: d } = Ce(e), { config: u } = Fn(), { updateUser: _ } = pt(), { user: h } = Lt(), [m, C] = g.useState({
|
|
15388
15390
|
first_name: h.first_name,
|
|
15389
15391
|
last_name: h.last_name,
|
|
15390
15392
|
email: h.email,
|
|
@@ -16075,7 +16077,7 @@ const x1 = ({
|
|
|
16075
16077
|
},
|
|
16076
16078
|
title: o.edit_rule,
|
|
16077
16079
|
children: [
|
|
16078
|
-
/* @__PURE__ */ t(
|
|
16080
|
+
/* @__PURE__ */ t(kt, { children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.details }) }),
|
|
16079
16081
|
/* @__PURE__ */ t(O1, {}),
|
|
16080
16082
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } }),
|
|
16081
16083
|
/* @__PURE__ */ t(R1, {}),
|
|
@@ -16206,7 +16208,7 @@ const x1 = ({
|
|
|
16206
16208
|
}
|
|
16207
16209
|
), B1 = I(
|
|
16208
16210
|
({ onUpdateProfile: e, profile: n }) => {
|
|
16209
|
-
const { settings: i } = x(), { user: a } =
|
|
16211
|
+
const { settings: i } = x(), { user: a } = Lt(), { clientCommunicationProfile: o, userCommunicationsProfile: r } = pt(), { isMobile: s } = Ce(), c = n.notification_type > 2, {
|
|
16210
16212
|
opted_out_of_email_notifications: d,
|
|
16211
16213
|
opted_out_of_push_notifications: u,
|
|
16212
16214
|
opted_out_of_sms_notifications: _
|
|
@@ -16222,8 +16224,8 @@ const x1 = ({
|
|
|
16222
16224
|
h && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
|
|
16223
16225
|
bn,
|
|
16224
16226
|
{
|
|
16225
|
-
isChecked: !d && n.email_channel,
|
|
16226
|
-
isDisabled: d,
|
|
16227
|
+
isChecked: !d && n.email_channel && !!a.email,
|
|
16228
|
+
isDisabled: d || !a.email,
|
|
16227
16229
|
onToggle: () => e({ ...n, email_channel: !n.email_channel }),
|
|
16228
16230
|
primaryText: i.delivery_method_email_label,
|
|
16229
16231
|
secondaryText: a.email || "",
|
|
@@ -16234,8 +16236,8 @@ const x1 = ({
|
|
|
16234
16236
|
C && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
|
|
16235
16237
|
bn,
|
|
16236
16238
|
{
|
|
16237
|
-
isChecked: !_ && n.sms_channel,
|
|
16238
|
-
isDisabled: _,
|
|
16239
|
+
isChecked: !_ && n.sms_channel && !!a.phone,
|
|
16240
|
+
isDisabled: _ || !a.phone,
|
|
16239
16241
|
onToggle: () => e({ ...n, sms_channel: !n.sms_channel }),
|
|
16240
16242
|
primaryText: `${i.delivery_method_sms_label}`,
|
|
16241
16243
|
secondaryText: a.phone || "",
|
|
@@ -16325,40 +16327,40 @@ const x1 = ({
|
|
|
16325
16327
|
opted_out_of_push_notifications: c,
|
|
16326
16328
|
opted_out_of_sms_notifications: d
|
|
16327
16329
|
}
|
|
16328
|
-
} = pt(),
|
|
16329
|
-
await
|
|
16330
|
-
},
|
|
16331
|
-
await r(
|
|
16332
|
-
},
|
|
16330
|
+
} = pt(), { user: u } = Lt(), [_, h] = g.useState(!1), m = async () => {
|
|
16331
|
+
await C({ ...e, is_enabled: !e.is_enabled }), e.is_enabled && h(!1);
|
|
16332
|
+
}, C = async (E) => {
|
|
16333
|
+
await r(E);
|
|
16334
|
+
}, f = i || o || a;
|
|
16333
16335
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
16334
16336
|
/* @__PURE__ */ t(
|
|
16335
16337
|
_o,
|
|
16336
16338
|
{
|
|
16337
|
-
endIcon:
|
|
16339
|
+
endIcon: f ? /* @__PURE__ */ t(
|
|
16338
16340
|
Va,
|
|
16339
16341
|
{
|
|
16340
16342
|
sx: {
|
|
16341
16343
|
transition: "transform 0.3s ease-in-out",
|
|
16342
|
-
transform:
|
|
16344
|
+
transform: _ ? "rotate(180deg)" : "rotate(0deg)"
|
|
16343
16345
|
}
|
|
16344
16346
|
}
|
|
16345
16347
|
) : void 0,
|
|
16346
16348
|
isChecked: e.is_enabled,
|
|
16347
16349
|
isDisabled: !e.is_enabled,
|
|
16348
|
-
onClick: () =>
|
|
16349
|
-
onToggle: () =>
|
|
16350
|
+
onClick: () => h(!_),
|
|
16351
|
+
onToggle: () => m(),
|
|
16350
16352
|
primaryText: e.label,
|
|
16351
16353
|
secondaryText: e.is_enabled ? e.deliveryMethodsLabel : void 0
|
|
16352
16354
|
},
|
|
16353
16355
|
e.guid
|
|
16354
16356
|
),
|
|
16355
|
-
|
|
16357
|
+
f && /* @__PURE__ */ t(ei, { in: _, children: /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.default" }, children: [
|
|
16356
16358
|
i && /* @__PURE__ */ t(
|
|
16357
16359
|
bn,
|
|
16358
16360
|
{
|
|
16359
|
-
isChecked: !s && e.email_channel,
|
|
16360
|
-
isDisabled: s,
|
|
16361
|
-
onToggle: () =>
|
|
16361
|
+
isChecked: !s && e.email_channel && !!u.email,
|
|
16362
|
+
isDisabled: s || !u.email,
|
|
16363
|
+
onToggle: () => C({
|
|
16362
16364
|
...e,
|
|
16363
16365
|
email_channel: !e.email_channel
|
|
16364
16366
|
}),
|
|
@@ -16369,9 +16371,9 @@ const x1 = ({
|
|
|
16369
16371
|
o && /* @__PURE__ */ t(
|
|
16370
16372
|
bn,
|
|
16371
16373
|
{
|
|
16372
|
-
isChecked: !d && e.sms_channel,
|
|
16373
|
-
isDisabled: d,
|
|
16374
|
-
onToggle: () =>
|
|
16374
|
+
isChecked: !d && e.sms_channel && !!u.phone,
|
|
16375
|
+
isDisabled: d || !u.phone,
|
|
16376
|
+
onToggle: () => C({
|
|
16375
16377
|
...e,
|
|
16376
16378
|
sms_channel: !e.sms_channel
|
|
16377
16379
|
}),
|
|
@@ -16384,7 +16386,7 @@ const x1 = ({
|
|
|
16384
16386
|
{
|
|
16385
16387
|
isChecked: !c && e.push_channel,
|
|
16386
16388
|
isDisabled: c,
|
|
16387
|
-
onToggle: () =>
|
|
16389
|
+
onToggle: () => C({
|
|
16388
16390
|
...e,
|
|
16389
16391
|
push_channel: !e.push_channel
|
|
16390
16392
|
}),
|
|
@@ -16398,7 +16400,7 @@ const x1 = ({
|
|
|
16398
16400
|
const { budgetProfiles: e } = pt();
|
|
16399
16401
|
return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(Rc, { profile: n }, n.guid)) });
|
|
16400
16402
|
}), H1 = I(() => {
|
|
16401
|
-
const { onEvent: e } = j(), { settings: n } = x(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = pt(), { user: r } =
|
|
16403
|
+
const { onEvent: e } = j(), { settings: n } = x(), { clientCommunicationProfile: i, updateUserCommunicationProfile: a, userCommunicationsProfile: o } = pt(), { user: r } = Lt(), s = async (c, d) => {
|
|
16402
16404
|
const u = {
|
|
16403
16405
|
...o,
|
|
16404
16406
|
[c]: d
|
|
@@ -19458,7 +19460,7 @@ const x1 = ({
|
|
|
19458
19460
|
] }) });
|
|
19459
19461
|
}, gC = I(
|
|
19460
19462
|
({ copy: e, isOpen: n, onClose: i }) => {
|
|
19461
|
-
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = oo(), { user: c } =
|
|
19463
|
+
const { alert: a, createSupportTicket: o, isLoading: r, setAlert: s } = oo(), { user: c } = Lt(), { isInitialized: d } = de(), [u, _] = g.useState(""), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState({
|
|
19462
19464
|
isOpen: !1,
|
|
19463
19465
|
topic: "",
|
|
19464
19466
|
type: void 0
|
|
@@ -20096,7 +20098,7 @@ const xa = ({
|
|
|
20096
20098
|
);
|
|
20097
20099
|
};
|
|
20098
20100
|
return /* @__PURE__ */ l(q, { children: [
|
|
20099
|
-
/* @__PURE__ */ t(
|
|
20101
|
+
/* @__PURE__ */ t(kt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
|
20100
20102
|
/* @__PURE__ */ t(
|
|
20101
20103
|
xa,
|
|
20102
20104
|
{
|
|
@@ -20372,7 +20374,7 @@ const xa = ({
|
|
|
20372
20374
|
secondaryMessage: s.title
|
|
20373
20375
|
};
|
|
20374
20376
|
return /* @__PURE__ */ l(q, { children: [
|
|
20375
|
-
/* @__PURE__ */ t(
|
|
20377
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: o.connection_status }) }),
|
|
20376
20378
|
/* @__PURE__ */ t(z, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
20377
20379
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20378
20380
|
/* @__PURE__ */ t(ae, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
@@ -20721,7 +20723,7 @@ const xa = ({
|
|
|
20721
20723
|
ie,
|
|
20722
20724
|
{
|
|
20723
20725
|
"aria-label": w,
|
|
20724
|
-
subheader: /* @__PURE__ */ t(
|
|
20726
|
+
subheader: /* @__PURE__ */ t(kt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20725
20727
|
we,
|
|
20726
20728
|
{
|
|
20727
20729
|
component: "span",
|
|
@@ -20778,7 +20780,7 @@ const xa = ({
|
|
|
20778
20780
|
ie,
|
|
20779
20781
|
{
|
|
20780
20782
|
"aria-label": i.account_type_accounts[S[0]?.account_type],
|
|
20781
|
-
subheader: /* @__PURE__ */ t(
|
|
20783
|
+
subheader: /* @__PURE__ */ t(kt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20782
20784
|
we,
|
|
20783
20785
|
{
|
|
20784
20786
|
component: "span",
|
|
@@ -22113,7 +22115,7 @@ const c0 = ({
|
|
|
22113
22115
|
}, [n, i]);
|
|
22114
22116
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22115
22117
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
22116
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
22118
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
22117
22119
|
/* @__PURE__ */ t(ae, { primary: e.name, secondary: a })
|
|
22118
22120
|
] }) }),
|
|
22119
22121
|
/* @__PURE__ */ t(H, {})
|
|
@@ -22176,7 +22178,7 @@ const c0 = ({
|
|
|
22176
22178
|
);
|
|
22177
22179
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22178
22180
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => r(!0), children: [
|
|
22179
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
22181
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
22180
22182
|
/* @__PURE__ */ t(
|
|
22181
22183
|
ae,
|
|
22182
22184
|
{
|
|
@@ -22230,7 +22232,7 @@ const c0 = ({
|
|
|
22230
22232
|
}
|
|
22231
22233
|
];
|
|
22232
22234
|
return /* @__PURE__ */ t(Rt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
|
22233
|
-
/* @__PURE__ */ t(
|
|
22235
|
+
/* @__PURE__ */ t(Gt, { categoryGuid: o, size: 56 }),
|
|
22234
22236
|
/* @__PURE__ */ t(Xt, { children: `${P(s, "0,0")} / ${P(n, "0,0")}` }),
|
|
22235
22237
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
|
22236
22238
|
/* @__PURE__ */ t(Xn, { data: c, height: 10 })
|
|
@@ -22251,7 +22253,7 @@ const c0 = ({
|
|
|
22251
22253
|
transaction_total: r
|
|
22252
22254
|
} = e, { setSelectedSubBudget: s } = lt();
|
|
22253
22255
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => s(e), children: [
|
|
22254
|
-
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(
|
|
22256
|
+
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
22255
22257
|
/* @__PURE__ */ t(
|
|
22256
22258
|
ae,
|
|
22257
22259
|
{
|
|
@@ -22538,7 +22540,7 @@ const c0 = ({
|
|
|
22538
22540
|
transaction_total: u
|
|
22539
22541
|
} = e;
|
|
22540
22542
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => n?.(e), children: [
|
|
22541
|
-
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(
|
|
22543
|
+
/* @__PURE__ */ t(ke, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(so, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
22542
22544
|
/* @__PURE__ */ t(
|
|
22543
22545
|
ae,
|
|
22544
22546
|
{
|
|
@@ -24931,7 +24933,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24931
24933
|
const [n, i] = Et(N.UNCATEGORIZED);
|
|
24932
24934
|
return Mn(() => {
|
|
24933
24935
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
|
24934
|
-
}, []), /* @__PURE__ */ t(
|
|
24936
|
+
}, []), /* @__PURE__ */ t(Gt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
|
24935
24937
|
}, sf = ({ beat: e }) => {
|
|
24936
24938
|
const n = gt(), i = cf(n);
|
|
24937
24939
|
return /* @__PURE__ */ t(
|
|
@@ -26531,7 +26533,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26531
26533
|
sx: c === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
26532
26534
|
children: [
|
|
26533
26535
|
/* @__PURE__ */ t(
|
|
26534
|
-
|
|
26536
|
+
Gt,
|
|
26535
26537
|
{
|
|
26536
26538
|
categoryGuid: n ? N.INCOME : h.guid,
|
|
26537
26539
|
size: c === "mini" ? 24 : f,
|
|
@@ -27000,7 +27002,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27000
27002
|
{
|
|
27001
27003
|
"aria-label": T(i.category_icon_label_aria, a),
|
|
27002
27004
|
role: "img",
|
|
27003
|
-
children: /* @__PURE__ */ t(
|
|
27005
|
+
children: /* @__PURE__ */ t(Gt, { categoryGuid: n })
|
|
27004
27006
|
}
|
|
27005
27007
|
),
|
|
27006
27008
|
/* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
|
|
@@ -27601,8 +27603,8 @@ export {
|
|
|
27601
27603
|
Ce as useScreenSize,
|
|
27602
27604
|
pt as useSettingsStore,
|
|
27603
27605
|
Ne as useTransactionStore,
|
|
27604
|
-
|
|
27605
|
-
|
|
27606
|
+
Mt as useTransactionsUiStore,
|
|
27607
|
+
Lt as useUserStore,
|
|
27606
27608
|
Wn as useWidgetContainerProvider
|
|
27607
27609
|
};
|
|
27608
27610
|
//# sourceMappingURL=index.es.js.map
|