@mx-cartographer/experiences 6.16.4 → 6.16.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +117 -116
- package/dist/index.es.js.map +1 -1
- package/dist/settings/util/Notifications.d.ts +2 -2
- package/package.json +1 -1
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,
|
|
@@ -5540,7 +5540,7 @@ class Mu {
|
|
|
5540
5540
|
);
|
|
5541
5541
|
};
|
|
5542
5542
|
}
|
|
5543
|
-
const
|
|
5543
|
+
const Mt = () => {
|
|
5544
5544
|
if (!g.useContext(Pn))
|
|
5545
5545
|
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
5546
5546
|
return Ne().uiStore;
|
|
@@ -5582,7 +5582,7 @@ function Wu(e) {
|
|
|
5582
5582
|
});
|
|
5583
5583
|
}
|
|
5584
5584
|
const $u = ({ transaction: e, onClick: n }) => {
|
|
5585
|
-
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]);
|
|
5586
5586
|
return /* @__PURE__ */ l(
|
|
5587
5587
|
X_,
|
|
5588
5588
|
{
|
|
@@ -5671,7 +5671,7 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5671
5671
|
width: c = "100%",
|
|
5672
5672
|
zeroState: d = /* @__PURE__ */ t(Vu, {})
|
|
5673
5673
|
}) => {
|
|
5674
|
-
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) => {
|
|
5675
5675
|
const w = h.find((v) => v.guid === A);
|
|
5676
5676
|
if (w?.has_been_split) {
|
|
5677
5677
|
C(w.guid);
|
|
@@ -5726,7 +5726,7 @@ const $u = ({ transaction: e, onClick: n }) => {
|
|
|
5726
5726
|
`${e.row.account}`,
|
|
5727
5727
|
e.row.number && ` | ${e.row.number}`
|
|
5728
5728
|
] }), ju = (e) => {
|
|
5729
|
-
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;
|
|
5730
5730
|
return /* @__PURE__ */ l(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: [
|
|
5731
5731
|
/* @__PURE__ */ l(p, { color: s ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5732
5732
|
s ? "+" : "",
|
|
@@ -6135,7 +6135,7 @@ const ih = ({
|
|
|
6135
6135
|
id: `category-${e.guid}`,
|
|
6136
6136
|
onClick: c,
|
|
6137
6137
|
children: [
|
|
6138
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6138
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
6139
6139
|
/* @__PURE__ */ t(
|
|
6140
6140
|
ae,
|
|
6141
6141
|
{
|
|
@@ -6428,7 +6428,7 @@ class Th {
|
|
|
6428
6428
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ra[n];
|
|
6429
6429
|
}
|
|
6430
6430
|
const Xs = ({ transaction: e }) => {
|
|
6431
|
-
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) => {
|
|
6432
6432
|
await i({ ...e, category_guid: _ }), y && await n(_, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
6433
6433
|
transaction_guid: e.guid
|
|
6434
6434
|
});
|
|
@@ -6458,8 +6458,8 @@ const Xs = ({ transaction: e }) => {
|
|
|
6458
6458
|
o(Y.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
6459
6459
|
},
|
|
6460
6460
|
children: [
|
|
6461
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6462
|
-
|
|
6461
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
6462
|
+
Gt,
|
|
6463
6463
|
{
|
|
6464
6464
|
categoryGuid: e.top_level_category_guid,
|
|
6465
6465
|
size: 24,
|
|
@@ -6513,7 +6513,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6513
6513
|
)
|
|
6514
6514
|
] });
|
|
6515
6515
|
}, Zs = ({ transaction: e }) => {
|
|
6516
|
-
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) => {
|
|
6517
6517
|
_(He(C));
|
|
6518
6518
|
}, m = async () => {
|
|
6519
6519
|
if (e.is_manual && !e.guid) {
|
|
@@ -6530,7 +6530,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6530
6530
|
i(Y.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
6531
6531
|
},
|
|
6532
6532
|
children: [
|
|
6533
|
-
/* @__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 }) }) }),
|
|
6534
6534
|
/* @__PURE__ */ t(
|
|
6535
6535
|
ae,
|
|
6536
6536
|
{
|
|
@@ -6570,7 +6570,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6570
6570
|
)
|
|
6571
6571
|
] });
|
|
6572
6572
|
}, Ah = ({ transaction: e }) => {
|
|
6573
|
-
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 () => {
|
|
6574
6574
|
await i(e.guid), n(Y.ON_TRANSACTION_DELETE_DELETED);
|
|
6575
6575
|
};
|
|
6576
6576
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
|
|
@@ -6581,7 +6581,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6581
6581
|
n(Y.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
6582
6582
|
},
|
|
6583
6583
|
children: [
|
|
6584
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6584
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { variant: "rounded", children: /* @__PURE__ */ t(pi, { color: "secondary", fontSize: "small" }) }) }),
|
|
6585
6585
|
/* @__PURE__ */ t(
|
|
6586
6586
|
ae,
|
|
6587
6587
|
{
|
|
@@ -6610,7 +6610,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6610
6610
|
)
|
|
6611
6611
|
] });
|
|
6612
6612
|
}, Ih = I(Ah), xh = ({ transaction: e }) => {
|
|
6613
|
-
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 () => {
|
|
6614
6614
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6615
6615
|
transaction_guid: e.guid
|
|
6616
6616
|
});
|
|
@@ -6623,7 +6623,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6623
6623
|
n(Y.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
6624
6624
|
},
|
|
6625
6625
|
children: [
|
|
6626
|
-
/* @__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 }) }) }),
|
|
6627
6627
|
/* @__PURE__ */ t(ae, { primary: r.merchant_logo_title, secondary: r.merchant_logo_desc }),
|
|
6628
6628
|
/* @__PURE__ */ t(ht, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: ft.Dark }) })
|
|
6629
6629
|
]
|
|
@@ -6650,7 +6650,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6650
6650
|
)
|
|
6651
6651
|
] });
|
|
6652
6652
|
}, vh = I(xh), wh = ({ transaction: e }) => {
|
|
6653
|
-
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 () => {
|
|
6654
6654
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6655
6655
|
d ? Y.ON_TRANSACTION_UNHIDDEN : Y.ON_TRANSACTION_HIDDEN
|
|
6656
6656
|
);
|
|
@@ -6672,7 +6672,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6672
6672
|
},
|
|
6673
6673
|
role: "switch",
|
|
6674
6674
|
children: [
|
|
6675
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
6675
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Bt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
|
|
6676
6676
|
$,
|
|
6677
6677
|
{
|
|
6678
6678
|
name: "visibilityOff",
|
|
@@ -6739,7 +6739,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6739
6739
|
] })
|
|
6740
6740
|
] });
|
|
6741
6741
|
}, Dh = ({ transaction: e }) => {
|
|
6742
|
-
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("");
|
|
6743
6743
|
g.useEffect(() => {
|
|
6744
6744
|
s && u(e.memo ? e.memo : "");
|
|
6745
6745
|
}, [s]);
|
|
@@ -6758,7 +6758,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6758
6758
|
n(Y.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
6759
6759
|
},
|
|
6760
6760
|
children: [
|
|
6761
|
-
/* @__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 }) }) }),
|
|
6762
6762
|
/* @__PURE__ */ t(
|
|
6763
6763
|
ae,
|
|
6764
6764
|
{
|
|
@@ -6833,7 +6833,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6833
6833
|
{
|
|
6834
6834
|
endIcon: /* @__PURE__ */ t(ia, {}),
|
|
6835
6835
|
onClick: () => h(!0),
|
|
6836
|
-
startIcon: /* @__PURE__ */ t(
|
|
6836
|
+
startIcon: /* @__PURE__ */ t(Gt, { categoryGuid: o.top_level_category_guid }),
|
|
6837
6837
|
sx: { px: r.Spacing.Small, py: r.Spacing.XSmall },
|
|
6838
6838
|
children: o.category
|
|
6839
6839
|
}
|
|
@@ -6966,7 +6966,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
6966
6966
|
) })
|
|
6967
6967
|
] });
|
|
6968
6968
|
}, Mh = I(Lh), kh = ({ transaction: e }) => {
|
|
6969
|
-
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 = {
|
|
6970
6970
|
...e,
|
|
6971
6971
|
amount: e.amount - 1,
|
|
6972
6972
|
guid: "",
|
|
@@ -7027,7 +7027,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7027
7027
|
}, [f]);
|
|
7028
7028
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7029
7029
|
e && /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: v, children: [
|
|
7030
|
-
/* @__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 }) }) }),
|
|
7031
7031
|
/* @__PURE__ */ t(
|
|
7032
7032
|
ae,
|
|
7033
7033
|
{
|
|
@@ -7285,7 +7285,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7285
7285
|
] }, s.guid)) }) })
|
|
7286
7286
|
] });
|
|
7287
7287
|
}, Vh = I(Uh), Kh = ({ transaction: e }) => {
|
|
7288
|
-
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);
|
|
7289
7289
|
g.useEffect(() => {
|
|
7290
7290
|
h(e.tags);
|
|
7291
7291
|
}, [d, e]);
|
|
@@ -7312,7 +7312,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7312
7312
|
n(Y.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
7313
7313
|
},
|
|
7314
7314
|
children: [
|
|
7315
|
-
/* @__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 }) }) }),
|
|
7316
7316
|
/* @__PURE__ */ t(
|
|
7317
7317
|
ae,
|
|
7318
7318
|
{
|
|
@@ -7493,7 +7493,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7493
7493
|
}
|
|
7494
7494
|
) : /* @__PURE__ */ t(_e, {});
|
|
7495
7495
|
}, Qh = I(qh), Jh = () => {
|
|
7496
|
-
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(
|
|
7497
7497
|
() => e.filter((y) => y.is_manual),
|
|
7498
7498
|
[e]
|
|
7499
7499
|
).map((y) => ({
|
|
@@ -7644,7 +7644,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7644
7644
|
setSearchValue: h,
|
|
7645
7645
|
setShowInsights: m,
|
|
7646
7646
|
updateManualTransaction: C
|
|
7647
|
-
} =
|
|
7647
|
+
} = Mt(), {
|
|
7648
7648
|
addTransaction: f,
|
|
7649
7649
|
filter: E,
|
|
7650
7650
|
loadAssociatedBeats: y,
|
|
@@ -7653,7 +7653,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
7653
7653
|
tags: w,
|
|
7654
7654
|
transactions: v,
|
|
7655
7655
|
updateTransaction: R
|
|
7656
|
-
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } =
|
|
7656
|
+
} = Ne(), { common: B, transactions: M } = x(), { userProfile: D } = Lt(), { onEvent: k } = j(), {
|
|
7657
7657
|
displayedDateRange: O,
|
|
7658
7658
|
isCopyLoaded: U,
|
|
7659
7659
|
isInitialized: Q,
|
|
@@ -8167,7 +8167,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8167
8167
|
onSearch: i,
|
|
8168
8168
|
onSelected: a
|
|
8169
8169
|
}) => {
|
|
8170
|
-
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } =
|
|
8170
|
+
const { recurring: o } = x(), { searchValue: r, setSearchValue: s } = Mt();
|
|
8171
8171
|
return /* @__PURE__ */ l(b, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
|
8172
8172
|
n && /* @__PURE__ */ t(xe, { sx: { mx: 24 }, children: n }),
|
|
8173
8173
|
/* @__PURE__ */ t(
|
|
@@ -8222,7 +8222,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8222
8222
|
label: n,
|
|
8223
8223
|
onAddRecurringTransaction: i = () => null
|
|
8224
8224
|
}) => {
|
|
8225
|
-
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(
|
|
8226
8226
|
() => s.find((M) => M.guid === h),
|
|
8227
8227
|
[h, s]
|
|
8228
8228
|
), v = () => {
|
|
@@ -8675,7 +8675,7 @@ const Xs = ({ transaction: e }) => {
|
|
|
8675
8675
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
8676
8676
|
ie,
|
|
8677
8677
|
{
|
|
8678
|
-
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) }) }),
|
|
8679
8679
|
sx: { width: "100%" },
|
|
8680
8680
|
children: d.recurrences.map((_, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
|
8681
8681
|
br,
|
|
@@ -9600,7 +9600,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9600
9600
|
const { cashflow: i } = x();
|
|
9601
9601
|
return /* @__PURE__ */ l(q, { children: [
|
|
9602
9602
|
/* @__PURE__ */ l(
|
|
9603
|
-
|
|
9603
|
+
kt,
|
|
9604
9604
|
{
|
|
9605
9605
|
sx: {
|
|
9606
9606
|
alignItems: "center",
|
|
@@ -9997,7 +9997,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9997
9997
|
]
|
|
9998
9998
|
}
|
|
9999
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 = () => {
|
|
10000
|
-
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(
|
|
10001
10001
|
() => i.filter(Ir(o, r)),
|
|
10002
10002
|
[r, o, i]
|
|
10003
10003
|
), h = g.useMemo(
|
|
@@ -10360,7 +10360,7 @@ const vg = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10360
10360
|
setSelectedAccounts: o,
|
|
10361
10361
|
shouldDisableNextDate: r,
|
|
10362
10362
|
shouldDisablePrevDate: s
|
|
10363
|
-
} = 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);
|
|
10364
10364
|
return g.useEffect(() => {
|
|
10365
10365
|
y && C().finally();
|
|
10366
10366
|
}, [y]), g.useEffect(() => {
|
|
@@ -12310,7 +12310,7 @@ const Xm = (e, n) => {
|
|
|
12310
12310
|
/* @__PURE__ */ t(
|
|
12311
12311
|
dn,
|
|
12312
12312
|
{
|
|
12313
|
-
avatar: /* @__PURE__ */ t(
|
|
12313
|
+
avatar: /* @__PURE__ */ t(Bt, { sx: { bgcolor: c, color: d, height: 48, width: 48 }, variant: "rounded", children: f }),
|
|
12314
12314
|
subheader: /* @__PURE__ */ t(p, { variant: n || s ? "H3" : "H2", children: `${P(e.current_amount, s ? "0,0" : "0,0.00")} / ${Zm(
|
|
12315
12315
|
m,
|
|
12316
12316
|
s
|
|
@@ -12470,7 +12470,7 @@ const Xm = (e, n) => {
|
|
|
12470
12470
|
justifyContent: "center",
|
|
12471
12471
|
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
12472
12472
|
},
|
|
12473
|
-
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 }) })
|
|
12474
12474
|
}
|
|
12475
12475
|
),
|
|
12476
12476
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -12639,7 +12639,7 @@ const Xm = (e, n) => {
|
|
|
12639
12639
|
d
|
|
12640
12640
|
),
|
|
12641
12641
|
children: [
|
|
12642
|
-
/* @__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" } }) }) }),
|
|
12643
12643
|
/* @__PURE__ */ t(ae, { primary: r, secondary: s, sx: { mr: 24 } }),
|
|
12644
12644
|
!h && /* @__PURE__ */ t(it, {}),
|
|
12645
12645
|
h && (u ? /* @__PURE__ */ t($l, {}) : /* @__PURE__ */ t(Va, {}))
|
|
@@ -12954,7 +12954,7 @@ const Xm = (e, n) => {
|
|
|
12954
12954
|
}
|
|
12955
12955
|
);
|
|
12956
12956
|
}, cp = I(({ goal: e }) => {
|
|
12957
|
-
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 () => {
|
|
12958
12958
|
r && Sd(r) && (await a({ ...i, birthday: He(r) }), o(n.alert_goal_updated_birthday));
|
|
12959
12959
|
};
|
|
12960
12960
|
return /* @__PURE__ */ t(
|
|
@@ -13087,7 +13087,7 @@ const Xm = (e, n) => {
|
|
|
13087
13087
|
setAlert: h,
|
|
13088
13088
|
setSelectedGoal: m,
|
|
13089
13089
|
updateGoal: C
|
|
13090
|
-
} = 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(() => {
|
|
13091
13091
|
const O = S ? d : u;
|
|
13092
13092
|
return n.filter((U) => O.some((Q) => Q.account_guid === U.guid));
|
|
13093
13093
|
}, [S, n, d, u]), v = g.useMemo(() => {
|
|
@@ -13451,7 +13451,7 @@ const hp = I(({ goal: e }) => {
|
|
|
13451
13451
|
} = fc(n, e), c = Math.round(r * 100);
|
|
13452
13452
|
let d = /* @__PURE__ */ t(_s, {});
|
|
13453
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: [
|
|
13454
|
-
/* @__PURE__ */ t(
|
|
13454
|
+
/* @__PURE__ */ t(Bt, { sx: { bgcolor: a, color: o, height: 32, width: 32 }, variant: "rounded", children: d }),
|
|
13455
13455
|
/* @__PURE__ */ l(L, { width: "65%", children: [
|
|
13456
13456
|
/* @__PURE__ */ t(cn, { fontSize: 15, fontWeight: 600, variant: "Body", children: e.name }),
|
|
13457
13457
|
e.projected_to_complete_at && /* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: s })
|
|
@@ -14261,7 +14261,7 @@ const Bp = ({
|
|
|
14261
14261
|
};
|
|
14262
14262
|
return /* @__PURE__ */ l(b, { direction: "column", sx: { width: 320 }, children: [
|
|
14263
14263
|
/* @__PURE__ */ l(ie, { children: [
|
|
14264
|
-
/* @__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 }) }),
|
|
14265
14265
|
/* @__PURE__ */ t(H, {}),
|
|
14266
14266
|
e.map((_, h) => /* @__PURE__ */ t(
|
|
14267
14267
|
Fp,
|
|
@@ -14605,7 +14605,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14605
14605
|
}
|
|
14606
14606
|
),
|
|
14607
14607
|
/* @__PURE__ */ l(ie, { children: [
|
|
14608
|
-
/* @__PURE__ */ t(
|
|
14608
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14609
14609
|
ae,
|
|
14610
14610
|
{
|
|
14611
14611
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14615,7 +14615,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14615
14615
|
}
|
|
14616
14616
|
) }),
|
|
14617
14617
|
/* @__PURE__ */ t(Gr, { groupedAccounts: kr(n) }),
|
|
14618
|
-
/* @__PURE__ */ t(
|
|
14618
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14619
14619
|
ae,
|
|
14620
14620
|
{
|
|
14621
14621
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14642,7 +14642,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14642
14642
|
e && /* @__PURE__ */ t(wo, { currencyVariant: "H1", iconSize: 32, netWorth: e, theme: s })
|
|
14643
14643
|
] }),
|
|
14644
14644
|
/* @__PURE__ */ l(ie, { children: [
|
|
14645
|
-
/* @__PURE__ */ t(
|
|
14645
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14646
14646
|
ae,
|
|
14647
14647
|
{
|
|
14648
14648
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14671,7 +14671,7 @@ const e1 = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14671
14671
|
) }),
|
|
14672
14672
|
/* @__PURE__ */ t(H, {})
|
|
14673
14673
|
] }, c.accountName)),
|
|
14674
|
-
/* @__PURE__ */ t(
|
|
14674
|
+
/* @__PURE__ */ t(kt, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
14675
14675
|
ae,
|
|
14676
14676
|
{
|
|
14677
14677
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
|
@@ -14913,7 +14913,7 @@ const d1 = (e, n) => {
|
|
|
14913
14913
|
institutionGuid: o?.institution_guid ?? "",
|
|
14914
14914
|
size: 33
|
|
14915
14915
|
}
|
|
14916
|
-
) }) : /* @__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 }) });
|
|
14917
14917
|
}, h1 = I(u1), g1 = ({ notification: e, onClick: n }) => {
|
|
14918
14918
|
const { updateNotification: i } = Gs(), a = ln(), o = {
|
|
14919
14919
|
card: {
|
|
@@ -15042,32 +15042,32 @@ const Hr = "PARENT-ENTITY", f1 = (e, n) => ({
|
|
|
15042
15042
|
[Ve.TransactionExpenseLarge]: n.large_transaction,
|
|
15043
15043
|
[Ve.PromotionalCampaignMessages]: n.promotional_campaign_messages,
|
|
15044
15044
|
[Ve.TransparentOverdraft]: n.transparent_overdraft
|
|
15045
|
-
})[e] || "", b1 = (e, n, i, a, o) => {
|
|
15046
|
-
const
|
|
15047
|
-
email_notifications_enabled:
|
|
15048
|
-
sms_notifications_enabled:
|
|
15049
|
-
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
|
|
15050
15050
|
} = n, {
|
|
15051
|
-
opted_out_of_email_notifications:
|
|
15052
|
-
opted_out_of_sms_notifications:
|
|
15053
|
-
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
|
|
15054
15054
|
} = o;
|
|
15055
|
-
for (const
|
|
15056
|
-
const
|
|
15057
|
-
(
|
|
15058
|
-
),
|
|
15059
|
-
|
|
15060
|
-
...
|
|
15061
|
-
children:
|
|
15062
|
-
...
|
|
15063
|
-
account: e.find((
|
|
15064
|
-
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
|
|
15065
15065
|
})),
|
|
15066
|
-
deliveryMethodsLabel:
|
|
15067
|
-
label:
|
|
15066
|
+
deliveryMethodsLabel: y.join(", "),
|
|
15067
|
+
label: f
|
|
15068
15068
|
});
|
|
15069
15069
|
}
|
|
15070
|
-
return
|
|
15070
|
+
return s;
|
|
15071
15071
|
};
|
|
15072
15072
|
class y1 {
|
|
15073
15073
|
globalStore;
|
|
@@ -15108,7 +15108,8 @@ class y1 {
|
|
|
15108
15108
|
this.clientCommunicationProfile,
|
|
15109
15109
|
this.copy,
|
|
15110
15110
|
this.notificationProfiles,
|
|
15111
|
-
this.userCommunicationsProfile
|
|
15111
|
+
this.userCommunicationsProfile,
|
|
15112
|
+
this.globalStore.userStore.user
|
|
15112
15113
|
) : [];
|
|
15113
15114
|
}
|
|
15114
15115
|
get userCommunicationsProfile() {
|
|
@@ -15246,7 +15247,7 @@ class y1 {
|
|
|
15246
15247
|
};
|
|
15247
15248
|
}
|
|
15248
15249
|
const E1 = I(() => {
|
|
15249
|
-
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 = () => {
|
|
15250
15251
|
s(!1);
|
|
15251
15252
|
}, d = () => {
|
|
15252
15253
|
s(!0);
|
|
@@ -15320,7 +15321,7 @@ const E1 = I(() => {
|
|
|
15320
15321
|
);
|
|
15321
15322
|
}
|
|
15322
15323
|
), T1 = I(() => {
|
|
15323
|
-
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), _ = () => {
|
|
15324
15325
|
c(!1);
|
|
15325
15326
|
}, h = () => {
|
|
15326
15327
|
c(!0);
|
|
@@ -15385,7 +15386,7 @@ const E1 = I(() => {
|
|
|
15385
15386
|
)
|
|
15386
15387
|
] });
|
|
15387
15388
|
}), A1 = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
|
15388
|
-
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({
|
|
15389
15390
|
first_name: h.first_name,
|
|
15390
15391
|
last_name: h.last_name,
|
|
15391
15392
|
email: h.email,
|
|
@@ -16076,7 +16077,7 @@ const x1 = ({
|
|
|
16076
16077
|
},
|
|
16077
16078
|
title: o.edit_rule,
|
|
16078
16079
|
children: [
|
|
16079
|
-
/* @__PURE__ */ t(
|
|
16080
|
+
/* @__PURE__ */ t(kt, { children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.details }) }),
|
|
16080
16081
|
/* @__PURE__ */ t(O1, {}),
|
|
16081
16082
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } }),
|
|
16082
16083
|
/* @__PURE__ */ t(R1, {}),
|
|
@@ -16207,7 +16208,7 @@ const x1 = ({
|
|
|
16207
16208
|
}
|
|
16208
16209
|
), B1 = I(
|
|
16209
16210
|
({ onUpdateProfile: e, profile: n }) => {
|
|
16210
|
-
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, {
|
|
16211
16212
|
opted_out_of_email_notifications: d,
|
|
16212
16213
|
opted_out_of_push_notifications: u,
|
|
16213
16214
|
opted_out_of_sms_notifications: _
|
|
@@ -16223,8 +16224,8 @@ const x1 = ({
|
|
|
16223
16224
|
h && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
|
|
16224
16225
|
bn,
|
|
16225
16226
|
{
|
|
16226
|
-
isChecked: !d && n.email_channel,
|
|
16227
|
-
isDisabled: d,
|
|
16227
|
+
isChecked: !d && n.email_channel && !!a.email,
|
|
16228
|
+
isDisabled: d || !a.email,
|
|
16228
16229
|
onToggle: () => e({ ...n, email_channel: !n.email_channel }),
|
|
16229
16230
|
primaryText: i.delivery_method_email_label,
|
|
16230
16231
|
secondaryText: a.email || "",
|
|
@@ -16235,8 +16236,8 @@ const x1 = ({
|
|
|
16235
16236
|
C && /* @__PURE__ */ t(b, { sx: { pl: 24 }, children: /* @__PURE__ */ t(
|
|
16236
16237
|
bn,
|
|
16237
16238
|
{
|
|
16238
|
-
isChecked: !_ && n.sms_channel,
|
|
16239
|
-
isDisabled: _,
|
|
16239
|
+
isChecked: !_ && n.sms_channel && !!a.phone,
|
|
16240
|
+
isDisabled: _ || !a.phone,
|
|
16240
16241
|
onToggle: () => e({ ...n, sms_channel: !n.sms_channel }),
|
|
16241
16242
|
primaryText: `${i.delivery_method_sms_label}`,
|
|
16242
16243
|
secondaryText: a.phone || "",
|
|
@@ -16326,40 +16327,40 @@ const x1 = ({
|
|
|
16326
16327
|
opted_out_of_push_notifications: c,
|
|
16327
16328
|
opted_out_of_sms_notifications: d
|
|
16328
16329
|
}
|
|
16329
|
-
} = pt(),
|
|
16330
|
-
await
|
|
16331
|
-
},
|
|
16332
|
-
await r(
|
|
16333
|
-
},
|
|
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;
|
|
16334
16335
|
return /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
|
16335
16336
|
/* @__PURE__ */ t(
|
|
16336
16337
|
_o,
|
|
16337
16338
|
{
|
|
16338
|
-
endIcon:
|
|
16339
|
+
endIcon: f ? /* @__PURE__ */ t(
|
|
16339
16340
|
Va,
|
|
16340
16341
|
{
|
|
16341
16342
|
sx: {
|
|
16342
16343
|
transition: "transform 0.3s ease-in-out",
|
|
16343
|
-
transform:
|
|
16344
|
+
transform: _ ? "rotate(180deg)" : "rotate(0deg)"
|
|
16344
16345
|
}
|
|
16345
16346
|
}
|
|
16346
16347
|
) : void 0,
|
|
16347
16348
|
isChecked: e.is_enabled,
|
|
16348
16349
|
isDisabled: !e.is_enabled,
|
|
16349
|
-
onClick: () =>
|
|
16350
|
-
onToggle: () =>
|
|
16350
|
+
onClick: () => h(!_),
|
|
16351
|
+
onToggle: () => m(),
|
|
16351
16352
|
primaryText: e.label,
|
|
16352
16353
|
secondaryText: e.is_enabled ? e.deliveryMethodsLabel : void 0
|
|
16353
16354
|
},
|
|
16354
16355
|
e.guid
|
|
16355
16356
|
),
|
|
16356
|
-
|
|
16357
|
+
f && /* @__PURE__ */ t(ei, { in: _, children: /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.default" }, children: [
|
|
16357
16358
|
i && /* @__PURE__ */ t(
|
|
16358
16359
|
bn,
|
|
16359
16360
|
{
|
|
16360
|
-
isChecked: !s && e.email_channel,
|
|
16361
|
-
isDisabled: s,
|
|
16362
|
-
onToggle: () =>
|
|
16361
|
+
isChecked: !s && e.email_channel && !!u.email,
|
|
16362
|
+
isDisabled: s || !u.email,
|
|
16363
|
+
onToggle: () => C({
|
|
16363
16364
|
...e,
|
|
16364
16365
|
email_channel: !e.email_channel
|
|
16365
16366
|
}),
|
|
@@ -16370,9 +16371,9 @@ const x1 = ({
|
|
|
16370
16371
|
o && /* @__PURE__ */ t(
|
|
16371
16372
|
bn,
|
|
16372
16373
|
{
|
|
16373
|
-
isChecked: !d && e.sms_channel,
|
|
16374
|
-
isDisabled: d,
|
|
16375
|
-
onToggle: () =>
|
|
16374
|
+
isChecked: !d && e.sms_channel && !!u.phone,
|
|
16375
|
+
isDisabled: d || !u.phone,
|
|
16376
|
+
onToggle: () => C({
|
|
16376
16377
|
...e,
|
|
16377
16378
|
sms_channel: !e.sms_channel
|
|
16378
16379
|
}),
|
|
@@ -16385,7 +16386,7 @@ const x1 = ({
|
|
|
16385
16386
|
{
|
|
16386
16387
|
isChecked: !c && e.push_channel,
|
|
16387
16388
|
isDisabled: c,
|
|
16388
|
-
onToggle: () =>
|
|
16389
|
+
onToggle: () => C({
|
|
16389
16390
|
...e,
|
|
16390
16391
|
push_channel: !e.push_channel
|
|
16391
16392
|
}),
|
|
@@ -16399,7 +16400,7 @@ const x1 = ({
|
|
|
16399
16400
|
const { budgetProfiles: e } = pt();
|
|
16400
16401
|
return /* @__PURE__ */ t(b, { children: e.map((n) => /* @__PURE__ */ t(Rc, { profile: n }, n.guid)) });
|
|
16401
16402
|
}), H1 = I(() => {
|
|
16402
|
-
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) => {
|
|
16403
16404
|
const u = {
|
|
16404
16405
|
...o,
|
|
16405
16406
|
[c]: d
|
|
@@ -19459,7 +19460,7 @@ const x1 = ({
|
|
|
19459
19460
|
] }) });
|
|
19460
19461
|
}, gC = I(
|
|
19461
19462
|
({ copy: e, isOpen: n, onClose: i }) => {
|
|
19462
|
-
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({
|
|
19463
19464
|
isOpen: !1,
|
|
19464
19465
|
topic: "",
|
|
19465
19466
|
type: void 0
|
|
@@ -20097,7 +20098,7 @@ const xa = ({
|
|
|
20097
20098
|
);
|
|
20098
20099
|
};
|
|
20099
20100
|
return /* @__PURE__ */ l(q, { children: [
|
|
20100
|
-
/* @__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 }) }),
|
|
20101
20102
|
/* @__PURE__ */ t(
|
|
20102
20103
|
xa,
|
|
20103
20104
|
{
|
|
@@ -20373,7 +20374,7 @@ const xa = ({
|
|
|
20373
20374
|
secondaryMessage: s.title
|
|
20374
20375
|
};
|
|
20375
20376
|
return /* @__PURE__ */ l(q, { children: [
|
|
20376
|
-
/* @__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 }) }),
|
|
20377
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: [
|
|
20378
20379
|
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(vn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
20379
20380
|
/* @__PURE__ */ t(ae, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
@@ -20722,7 +20723,7 @@ const xa = ({
|
|
|
20722
20723
|
ie,
|
|
20723
20724
|
{
|
|
20724
20725
|
"aria-label": w,
|
|
20725
|
-
subheader: /* @__PURE__ */ t(
|
|
20726
|
+
subheader: /* @__PURE__ */ t(kt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20726
20727
|
we,
|
|
20727
20728
|
{
|
|
20728
20729
|
component: "span",
|
|
@@ -20779,7 +20780,7 @@ const xa = ({
|
|
|
20779
20780
|
ie,
|
|
20780
20781
|
{
|
|
20781
20782
|
"aria-label": i.account_type_accounts[S[0]?.account_type],
|
|
20782
|
-
subheader: /* @__PURE__ */ t(
|
|
20783
|
+
subheader: /* @__PURE__ */ t(kt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20783
20784
|
we,
|
|
20784
20785
|
{
|
|
20785
20786
|
component: "span",
|
|
@@ -22114,7 +22115,7 @@ const c0 = ({
|
|
|
22114
22115
|
}, [n, i]);
|
|
22115
22116
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22116
22117
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { children: [
|
|
22117
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
22118
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
22118
22119
|
/* @__PURE__ */ t(ae, { primary: e.name, secondary: a })
|
|
22119
22120
|
] }) }),
|
|
22120
22121
|
/* @__PURE__ */ t(H, {})
|
|
@@ -22177,7 +22178,7 @@ const c0 = ({
|
|
|
22177
22178
|
);
|
|
22178
22179
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22179
22180
|
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => r(!0), children: [
|
|
22180
|
-
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(
|
|
22181
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
|
22181
22182
|
/* @__PURE__ */ t(
|
|
22182
22183
|
ae,
|
|
22183
22184
|
{
|
|
@@ -22231,7 +22232,7 @@ const c0 = ({
|
|
|
22231
22232
|
}
|
|
22232
22233
|
];
|
|
22233
22234
|
return /* @__PURE__ */ t(Rt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
|
22234
|
-
/* @__PURE__ */ t(
|
|
22235
|
+
/* @__PURE__ */ t(Gt, { categoryGuid: o, size: 56 }),
|
|
22235
22236
|
/* @__PURE__ */ t(Xt, { children: `${P(s, "0,0")} / ${P(n, "0,0")}` }),
|
|
22236
22237
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
|
22237
22238
|
/* @__PURE__ */ t(Xn, { data: c, height: 10 })
|
|
@@ -22252,7 +22253,7 @@ const c0 = ({
|
|
|
22252
22253
|
transaction_total: r
|
|
22253
22254
|
} = e, { setSelectedSubBudget: s } = lt();
|
|
22254
22255
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => s(e), children: [
|
|
22255
|
-
/* @__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" }) }) }),
|
|
22256
22257
|
/* @__PURE__ */ t(
|
|
22257
22258
|
ae,
|
|
22258
22259
|
{
|
|
@@ -22539,7 +22540,7 @@ const c0 = ({
|
|
|
22539
22540
|
transaction_total: u
|
|
22540
22541
|
} = e;
|
|
22541
22542
|
return /* @__PURE__ */ t(z, { children: /* @__PURE__ */ l(ue, { onClick: () => n?.(e), children: [
|
|
22542
|
-
/* @__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" }) }) }),
|
|
22543
22544
|
/* @__PURE__ */ t(
|
|
22544
22545
|
ae,
|
|
22545
22546
|
{
|
|
@@ -24932,7 +24933,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24932
24933
|
const [n, i] = Et(N.UNCATEGORIZED);
|
|
24933
24934
|
return Mn(() => {
|
|
24934
24935
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
|
24935
|
-
}, []), /* @__PURE__ */ t(
|
|
24936
|
+
}, []), /* @__PURE__ */ t(Gt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
|
24936
24937
|
}, sf = ({ beat: e }) => {
|
|
24937
24938
|
const n = gt(), i = cf(n);
|
|
24938
24939
|
return /* @__PURE__ */ t(
|
|
@@ -26532,7 +26533,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26532
26533
|
sx: c === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
26533
26534
|
children: [
|
|
26534
26535
|
/* @__PURE__ */ t(
|
|
26535
|
-
|
|
26536
|
+
Gt,
|
|
26536
26537
|
{
|
|
26537
26538
|
categoryGuid: n ? N.INCOME : h.guid,
|
|
26538
26539
|
size: c === "mini" ? 24 : f,
|
|
@@ -27001,7 +27002,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27001
27002
|
{
|
|
27002
27003
|
"aria-label": T(i.category_icon_label_aria, a),
|
|
27003
27004
|
role: "img",
|
|
27004
|
-
children: /* @__PURE__ */ t(
|
|
27005
|
+
children: /* @__PURE__ */ t(Gt, { categoryGuid: n })
|
|
27005
27006
|
}
|
|
27006
27007
|
),
|
|
27007
27008
|
/* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
|
|
@@ -27602,8 +27603,8 @@ export {
|
|
|
27602
27603
|
Ce as useScreenSize,
|
|
27603
27604
|
pt as useSettingsStore,
|
|
27604
27605
|
Ne as useTransactionStore,
|
|
27605
|
-
|
|
27606
|
-
|
|
27606
|
+
Mt as useTransactionsUiStore,
|
|
27607
|
+
Lt as useUserStore,
|
|
27607
27608
|
Wn as useWidgetContainerProvider
|
|
27608
27609
|
};
|
|
27609
27610
|
//# sourceMappingURL=index.es.js.map
|