@mx-cartographer/experiences 7.0.0-alpha.mega1 → 7.0.1-alpha.al0
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 +21 -0
- package/dist/{Account-DY6nxO7y.mjs → Account-BFol-JYA.mjs} +1 -1
- package/dist/{AccountDetailsContent-DvPs81kL.mjs → AccountDetailsContent-Do3z1FnQ.mjs} +8 -8
- package/dist/{AccountDetailsHeader-W2U7ZVm_.mjs → AccountDetailsHeader-DnEyQMpX.mjs} +12 -12
- package/dist/{AccountFields-DAVcbZy5.mjs → AccountFields-CeHZrIQe.mjs} +2 -2
- package/dist/{AccountListItem-DFlbdcmT.mjs → AccountListItem-C7JzYpqf.mjs} +3 -3
- package/dist/{AccountStore-CU7qV3vg.mjs → AccountStore-Cu3GoLh-.mjs} +1 -1
- package/dist/{Accounts-BLlrQA5m.mjs → Accounts-BuYXUMhP.mjs} +1 -1
- package/dist/{BudgetUtil-Ci1TN0J5.mjs → BudgetUtil-spowPvBM.mjs} +2 -2
- package/dist/{Category-5S6uwuXz.mjs → Category-CevNQ03n.mjs} +4 -4
- package/dist/{CategorySelectorDrawer-rHyHHYuh.mjs → CategorySelectorDrawer-Dyzb3UDU.mjs} +1 -1
- package/dist/{CategoryStore-B5EW6I1d.mjs → CategoryStore-BOyzQjQp.mjs} +2 -2
- package/dist/{CategoryUtil-DRyruNgi.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-D9cR5phc.mjs → ConnectDrawer-WfKHsHSF.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BzGqljSp.mjs → ConnectionsDrawer-Czp-E0-m.mjs} +2 -2
- package/dist/{CurrencyInput-D74cemI2.mjs → CurrencyInput-CSZjO22Z.mjs} +1 -1
- package/dist/{DebtsStore-S0l9kr0r.mjs → DebtsStore-D9holN8L.mjs} +1 -1
- package/dist/ExportCsvAction-dpvaZxbS.mjs +24 -0
- package/dist/{GoalStore-DioeeL-s.mjs → GoalStore-Drf76ell.mjs} +4 -4
- package/dist/{Help-DpYRO8oA.mjs → Help-DRUwVDvo.mjs} +1 -1
- package/dist/{LineChart-CcyX38kK.mjs → LineChart-CYiUS-px.mjs} +88 -85
- package/dist/{ListItemAction-BabpYivr.mjs → ListItemAction-BzmbPuNp.mjs} +1 -1
- package/dist/{ManageIncome-ndMuhJMG.mjs → ManageIncome-B6kmMN_z.mjs} +178 -186
- package/dist/{MicroWidgetContainer-CsvHLYKX.mjs → MicroWidgetContainer-DmYiksbT.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BoOp-A05.mjs → MiniWidgetContainer-DqKQNubH.mjs} +1 -1
- package/dist/{NetWorthStore-PD-RUe09.mjs → NetWorthStore-BK1_NbXW.mjs} +2 -2
- package/dist/{Notification-AMGWM1Al.mjs → Notification-ByMBpJ5u.mjs} +33 -22
- package/dist/{NotificationSettings-VhHuMAFU.mjs → NotificationSettings-BznqGVQ2.mjs} +35 -34
- package/dist/{OriginalBalanceAction-D39mx6uE.mjs → OriginalBalanceAction-CSu5brQE.mjs} +3 -3
- package/dist/RecurringSettings-Be1dzkMz.mjs +57 -0
- package/dist/ResponsiveButton-DZFp78fJ.mjs +45 -0
- package/dist/{SettingsStore-CE7jDVFL.mjs → SettingsStore-B4gi6oOw.mjs} +1 -1
- package/dist/{SpendingData-BkrxzHdr.mjs → SpendingData-D5vsfYKo.mjs} +5 -5
- package/dist/{Transaction-CA0FW2Ij.mjs → Transaction-CyqrHmAA.mjs} +1 -1
- package/dist/{TransactionDetails-WBHFmbxL.mjs → TransactionDetails-D4B9DSWo.mjs} +421 -417
- package/dist/{TransactionStore-CeLdmVnC.mjs → TransactionStore-DSyXtPek.mjs} +8 -8
- package/dist/TrendsStore-DR8etTL2.mjs +547 -0
- package/dist/{ViewMoreMicroCard-CAPFNz-J.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +476 -468
- package/dist/{WidgetContainer-DWCusxYI.mjs → WidgetContainer-BG-fdDOf.mjs} +110 -104
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/components/listitems/ToggleButtonListItem.d.ts +2 -1
- package/dist/common/constants/Analytics.d.ts +16 -10
- package/dist/common/index.es.js +432 -469
- package/dist/dashboard/index.es.js +13 -13
- package/dist/debts/index.es.js +66 -66
- package/dist/{exportTransactionsToCSV-CmwsKl2D.mjs → exportTransactionsToCSV-BlVifaOG.mjs} +2 -2
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +32 -32
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-30y_BLwc.mjs → hooks-02T565vf.mjs} +10 -10
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +1 -0
- package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel.d.ts +1 -0
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +9 -9
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +25 -25
- package/dist/spending/index.es.js +13 -13
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -0
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +5 -1
- package/dist/transactions/index.d.ts +1 -0
- package/dist/transactions/index.es.js +143 -141
- package/dist/trends/constants/TrendsWidget.d.ts +3 -0
- package/dist/trends/index.es.js +579 -642
- package/package.json +1 -1
- package/dist/RecurringSettings-D_HnMYZP.mjs +0 -57
- package/dist/TrendsStore-BHJUapXF.mjs +0 -487
- package/dist/index.d.ts +0 -0
- package/dist/trends/components/TransactionsList.d.ts +0 -7
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
|
|
7
7
|
import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
|
8
8
|
import { Text as W, H3 as H } from "@mxenabled/mxui";
|
9
9
|
import { u as I } from "./useDimensions-27p2evRx.mjs";
|
10
|
-
import { W as M } from "./hooks-
|
10
|
+
import { W as M } from "./hooks-02T565vf.mjs";
|
11
11
|
const j = ({
|
12
12
|
className: t = "mx-cmn-mini-widget",
|
13
13
|
closeLabel: a,
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
6
|
-
import { a as b } from "./Accounts-
|
7
|
-
import { e as N, a as M, f as v } from "./ConnectDrawer-
|
6
|
+
import { a as b } from "./Accounts-BuYXUMhP.mjs";
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-WfKHsHSF.mjs";
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|
@@ -1,42 +1,53 @@
|
|
1
1
|
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
2
2
|
import D from "@mui/material/ListItem";
|
3
|
-
import
|
4
|
-
import
|
3
|
+
import c from "@mui/material/ListItemButton";
|
4
|
+
import p from "@mui/material/ListItemIcon";
|
5
5
|
import x from "@mui/material/ListItemText";
|
6
6
|
import L from "@mui/material/Stack";
|
7
7
|
import C from "@mui/material/Switch";
|
8
8
|
import { Text as u } from "@mxenabled/mxui";
|
9
|
-
import
|
10
|
-
const
|
9
|
+
import w from "@mui/material/ListItemAvatar";
|
10
|
+
const F = ({
|
11
11
|
avatar: r,
|
12
12
|
endIcon: a,
|
13
13
|
isChecked: l,
|
14
14
|
isDisabled: d = !1,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
isPrimaryTextBold: n = !1,
|
16
|
+
onClick: m,
|
17
|
+
onToggle: o,
|
18
|
+
primaryText: v,
|
19
|
+
secondaryText: M
|
19
20
|
}) => (
|
20
21
|
//TODO: implement common/components/ListItemRow.tsx
|
21
22
|
/* @__PURE__ */ e(
|
22
23
|
D,
|
23
24
|
{
|
24
|
-
secondaryAction: /* @__PURE__ */ e(C, { checked: l, onChange:
|
25
|
+
secondaryAction: /* @__PURE__ */ e(C, { checked: l, onChange: o }),
|
25
26
|
sx: {
|
26
27
|
"& .MuiListItemSecondaryAction-root": { right: a ? 64 : 24 },
|
27
28
|
"& .MuiListItemButton-root": { pr: 24 }
|
28
29
|
},
|
29
|
-
children: /* @__PURE__ */ S(
|
30
|
-
r && /* @__PURE__ */ e(
|
31
|
-
/* @__PURE__ */ e(x, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ S(L, { children: [
|
32
|
-
/* @__PURE__ */ e(
|
33
|
-
|
30
|
+
children: /* @__PURE__ */ S(c, { onClick: d ? void 0 : () => m(), children: [
|
31
|
+
r && /* @__PURE__ */ e(w, { children: r }),
|
32
|
+
/* @__PURE__ */ e(x, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ S(L, { sx: { width: "100%" }, children: [
|
33
|
+
/* @__PURE__ */ e(
|
34
|
+
u,
|
35
|
+
{
|
36
|
+
bold: n,
|
37
|
+
sx: {
|
38
|
+
mr: 80
|
39
|
+
},
|
40
|
+
variant: "body1",
|
41
|
+
children: v
|
42
|
+
}
|
43
|
+
),
|
44
|
+
/* @__PURE__ */ e(u, { color: "text.secondary", variant: "caption", children: M })
|
34
45
|
] }) }) }),
|
35
|
-
!d && a && /* @__PURE__ */ e(
|
46
|
+
!d && a && /* @__PURE__ */ e(p, { children: a })
|
36
47
|
] })
|
37
48
|
}
|
38
49
|
)
|
39
|
-
),
|
50
|
+
), t = ({
|
40
51
|
isChecked: r,
|
41
52
|
isDisabled: a = !1,
|
42
53
|
onToggle: l,
|
@@ -67,12 +78,12 @@ const z = ({
|
|
67
78
|
)
|
68
79
|
}
|
69
80
|
);
|
70
|
-
var B = /* @__PURE__ */ ((r) => (r.Accounts = "accounts", r.Budgets = "budgets", r.Insights = "insights", r.Personal = "personal", r))(B || {}),
|
81
|
+
var B = /* @__PURE__ */ ((r) => (r.Accounts = "accounts", r.Budgets = "budgets", r.Insights = "insights", r.Personal = "personal", r))(B || {}), P = /* @__PURE__ */ ((r) => (r[r.DebtPaymentReminder = 3] = "DebtPaymentReminder", r[r.AccountBalanceLow = 6] = "AccountBalanceLow", r[r.AccountDepositLarge = 7] = "AccountDepositLarge", r[r.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", r[r.TransactionFeeCharge = 9] = "TransactionFeeCharge", r[r.InternationalTransaction = 23] = "InternationalTransaction", r[r.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", r))(P || {}), b = /* @__PURE__ */ ((r) => (r[r.BudgetExceeded = 1] = "BudgetExceeded", r[r.BudgetOffTarget = 2] = "BudgetOffTarget", r))(b || {}), A = /* @__PURE__ */ ((r) => (r[r.AccountBalanceLow = 33] = "AccountBalanceLow", r[r.BillAmountNotStandard = 49] = "BillAmountNotStandard", r[r.CategorySpending = 50] = "CategorySpending", r[r.CreditCardCloseToLimit = 51] = "CreditCardCloseToLimit", r[r.DebtPaymentReminder = 37] = "DebtPaymentReminder", r[r.DuplicatePayment = 42] = "DuplicatePayment", r[r.MonthlySpendComparison = 53] = "MonthlySpendComparison", r[r.MonthlySpendToIncomeComparison = 54] = "MonthlySpendToIncomeComparison", r[r.MonthlySubscriptionAggregate = 55] = "MonthlySubscriptionAggregate", r[r.MonthlyTopMerchantSpending = 56] = "MonthlyTopMerchantSpending", r[r.SaveAnExtra100Dollars = 57] = "SaveAnExtra100Dollars", r[r.SavingsOpportunity = 58] = "SavingsOpportunity", r[r.SetUpDirectDeposit = 59] = "SetUpDirectDeposit", r[r.SwitchDirectDeposit = 60] = "SwitchDirectDeposit", r[r.UncategorizedTransactions = 61] = "UncategorizedTransactions", r[r.UnifiedDeposit = 62] = "UnifiedDeposit", r[r.UpcomingBill = 63] = "UpcomingBill", r[r.WeekendSpendingSummary = 64] = "WeekendSpendingSummary", r[r.WeeklyNewMerchants = 65] = "WeeklyNewMerchants", r[r.DiscoveredAccounts = 52] = "DiscoveredAccounts", r[r.TransactionExpenseLarge = 39] = "TransactionExpenseLarge", r[r.PromotionalCampaignMessages = 67] = "PromotionalCampaignMessages", r[r.TransparentOverdraft = 68] = "TransparentOverdraft", r))(A || {});
|
71
82
|
export {
|
72
|
-
|
73
|
-
|
74
|
-
|
83
|
+
P as A,
|
84
|
+
b as B,
|
85
|
+
A as I,
|
75
86
|
B as N,
|
76
|
-
|
77
|
-
|
87
|
+
F as T,
|
88
|
+
t as a
|
78
89
|
};
|
@@ -1,25 +1,25 @@
|
|
1
|
-
import { jsxs as c, jsx as e, Fragment as
|
1
|
+
import { jsxs as c, jsx as e, Fragment as E } from "react/jsx-runtime";
|
2
2
|
import f from "react";
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
4
4
|
import v from "@mui/material/Divider";
|
5
|
-
import
|
5
|
+
import B from "@mui/material/List";
|
6
6
|
import O from "@mui/material/ListItem";
|
7
7
|
import N from "@mui/material/ListItemText";
|
8
8
|
import V from "@mui/material/ListItemButton";
|
9
9
|
import _ from "@mui/material/Stack";
|
10
|
-
import { ChevronRight as
|
10
|
+
import { ChevronRight as S, ExpandMore as K, Star as Q } from "@mxenabled/mx-icons";
|
11
11
|
import { Text as x, InstitutionLogo as Y, H3 as U } from "@mxenabled/mxui";
|
12
12
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
13
13
|
import { startOfMonth as ee } from "date-fns/startOfMonth";
|
14
14
|
import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
|
15
15
|
import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
|
16
16
|
import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
17
|
-
import { A as oe, T as F, a as P, N as b } from "./Notification-
|
18
|
-
import { u as D, r as T, o as w, c as se,
|
17
|
+
import { A as oe, T as F, a as P, N as b } from "./Notification-ByMBpJ5u.mjs";
|
18
|
+
import { u as D, r as T, o as w, c as se, e as ae, k as W, a as ce } from "./hooks-02T565vf.mjs";
|
19
19
|
import { b as le } from "./Localization-2MODESHW.mjs";
|
20
20
|
import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
|
21
|
-
import { a as
|
22
|
-
import { C as me } from "./CurrencyInput-
|
21
|
+
import { a as M } from "./Dialog-CWW597AF.mjs";
|
22
|
+
import { C as me } from "./CurrencyInput-CSZjO22Z.mjs";
|
23
23
|
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
24
24
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
25
25
|
import he from "@mui/material/Collapse";
|
@@ -40,10 +40,10 @@ const ye = C(() => {
|
|
40
40
|
return /* @__PURE__ */ c(f.Fragment, { children: [
|
41
41
|
/* @__PURE__ */ c(R, { onClick: m, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
42
42
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
43
|
-
/* @__PURE__ */ e(
|
43
|
+
/* @__PURE__ */ e(S, {})
|
44
44
|
] }),
|
45
45
|
/* @__PURE__ */ e(
|
46
|
-
|
46
|
+
M,
|
47
47
|
{
|
48
48
|
copy: { title: "" },
|
49
49
|
isOpen: r,
|
@@ -84,7 +84,7 @@ const ye = C(() => {
|
|
84
84
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
85
85
|
const { common: l, settings: i } = D(), [r, a] = f.useState("");
|
86
86
|
return /* @__PURE__ */ e(
|
87
|
-
|
87
|
+
M,
|
88
88
|
{
|
89
89
|
copy: { title: i.enter_verification_code },
|
90
90
|
isOpen: s,
|
@@ -122,10 +122,10 @@ const ye = C(() => {
|
|
122
122
|
return /* @__PURE__ */ c(f.Fragment, { children: [
|
123
123
|
/* @__PURE__ */ c(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
124
124
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
125
|
-
/* @__PURE__ */ e(
|
125
|
+
/* @__PURE__ */ e(S, {})
|
126
126
|
] }),
|
127
127
|
/* @__PURE__ */ e(
|
128
|
-
|
128
|
+
M,
|
129
129
|
{
|
130
130
|
copy: { title: "" },
|
131
131
|
isOpen: a,
|
@@ -177,7 +177,7 @@ const ye = C(() => {
|
|
177
177
|
), p = t.account?.name || t.account?.feed_name || "", y = t.account?.day_payment_is_due ? le(
|
178
178
|
i.notification_debt_payment_date,
|
179
179
|
re(t.account?.day_payment_is_due)
|
180
|
-
) : i.notification_debt_payment_zero_state,
|
180
|
+
) : i.notification_debt_payment_zero_state, k = a ? y : de(t.threshold ?? 0, "0,0"), A = async () => {
|
181
181
|
a && t.account ? await r({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: d });
|
182
182
|
};
|
183
183
|
return /* @__PURE__ */ c(_, { children: [
|
@@ -191,19 +191,20 @@ const ye = C(() => {
|
|
191
191
|
institutionGuid: t.account?.institution_guid
|
192
192
|
}
|
193
193
|
) : void 0,
|
194
|
-
endIcon: /* @__PURE__ */ e(
|
194
|
+
endIcon: /* @__PURE__ */ e(S, {}),
|
195
195
|
isChecked: t.is_enabled,
|
196
|
+
isPrimaryTextBold: !0,
|
196
197
|
onClick: () => m(!0),
|
197
198
|
onToggle: () => n({
|
198
199
|
...t,
|
199
200
|
is_enabled: !t.is_enabled
|
200
201
|
}),
|
201
202
|
primaryText: p,
|
202
|
-
secondaryText:
|
203
|
+
secondaryText: k
|
203
204
|
}
|
204
205
|
),
|
205
206
|
/* @__PURE__ */ e(
|
206
|
-
|
207
|
+
M,
|
207
208
|
{
|
208
209
|
copy: {
|
209
210
|
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
@@ -262,9 +263,9 @@ const ye = C(() => {
|
|
262
263
|
sms_notifications_enabled: p
|
263
264
|
} = i;
|
264
265
|
return /* @__PURE__ */ c(_, { children: [
|
265
|
-
(u || p || g) && /* @__PURE__ */ c(
|
266
|
+
(u || p || g) && /* @__PURE__ */ c(E, { children: [
|
266
267
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
267
|
-
/* @__PURE__ */ c(
|
268
|
+
/* @__PURE__ */ c(B, { sx: { bgcolor: "background.paper" }, children: [
|
268
269
|
u && /* @__PURE__ */ e(_, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
269
270
|
P,
|
270
271
|
{
|
@@ -305,7 +306,7 @@ const ye = C(() => {
|
|
305
306
|
] }),
|
306
307
|
o && !!t.children?.length && /* @__PURE__ */ c(_, { children: [
|
307
308
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
308
|
-
/* @__PURE__ */ e(
|
309
|
+
/* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: t.children?.map((y) => /* @__PURE__ */ e(
|
309
310
|
Ce,
|
310
311
|
{
|
311
312
|
onProfileUpdated: n,
|
@@ -332,7 +333,7 @@ const ye = C(() => {
|
|
332
333
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
333
334
|
F,
|
334
335
|
{
|
335
|
-
endIcon: /* @__PURE__ */ e(
|
336
|
+
endIcon: /* @__PURE__ */ e(S, {}),
|
336
337
|
isChecked: o.is_enabled,
|
337
338
|
isDisabled: !o.is_enabled,
|
338
339
|
onClick: () => l(o.guid),
|
@@ -373,10 +374,10 @@ const ye = C(() => {
|
|
373
374
|
}
|
374
375
|
} = T(), { user: d } = w(), [h, u] = f.useState(!1), g = async () => {
|
375
376
|
await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
376
|
-
}, p = async (
|
377
|
-
await r(
|
377
|
+
}, p = async (k) => {
|
378
|
+
await r(k);
|
378
379
|
}, y = s || i || l;
|
379
|
-
return /* @__PURE__ */ c(
|
380
|
+
return /* @__PURE__ */ c(B, { sx: { bgcolor: "background.paper" }, children: [
|
380
381
|
/* @__PURE__ */ e(
|
381
382
|
F,
|
382
383
|
{
|
@@ -398,7 +399,7 @@ const ye = C(() => {
|
|
398
399
|
},
|
399
400
|
n.guid
|
400
401
|
),
|
401
|
-
y && /* @__PURE__ */ e(he, { in: h, children: /* @__PURE__ */ c(
|
402
|
+
y && /* @__PURE__ */ e(he, { in: h, children: /* @__PURE__ */ c(B, { sx: { bgcolor: "background.paper" }, children: [
|
402
403
|
s && /* @__PURE__ */ e(
|
403
404
|
P,
|
404
405
|
{
|
@@ -458,7 +459,7 @@ const ye = C(() => {
|
|
458
459
|
};
|
459
460
|
return /* @__PURE__ */ c(_, { children: [
|
460
461
|
/* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
461
|
-
s.email_notifications_enabled && /* @__PURE__ */ c(
|
462
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(E, { children: [
|
462
463
|
/* @__PURE__ */ e(
|
463
464
|
P,
|
464
465
|
{
|
@@ -475,7 +476,7 @@ const ye = C(() => {
|
|
475
476
|
),
|
476
477
|
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
477
478
|
] }),
|
478
|
-
s.sms_notifications_enabled && /* @__PURE__ */ c(
|
479
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(E, { children: [
|
479
480
|
/* @__PURE__ */ e(
|
480
481
|
P,
|
481
482
|
{
|
@@ -513,8 +514,8 @@ const ye = C(() => {
|
|
513
514
|
const { config: n } = W(), [t, { width: s }] = fe(), { common: l, settings: i } = D(), { updateUser: r } = T(), { user: a } = w(), [o, m] = f.useState(!1), [d, h] = f.useState({
|
514
515
|
email: a.email,
|
515
516
|
phone: a.phone
|
516
|
-
}), u = d.email && !a.email_is_verified && !o, g = d.phone && !a.phone_is_verified && !o, p = (
|
517
|
-
const { name: A, value: I } =
|
517
|
+
}), u = d.email && !a.email_is_verified && !o, g = d.phone && !a.phone_is_verified && !o, p = (k) => {
|
518
|
+
const { name: A, value: I } = k.target, j = { ...d, [A]: I };
|
518
519
|
h(j), m(JSON.stringify({ ...a, ...j }) !== JSON.stringify(a));
|
519
520
|
}, y = async () => {
|
520
521
|
await r({ ...a, ...d }), m(!1);
|
@@ -617,27 +618,27 @@ const ye = C(() => {
|
|
617
618
|
return /* @__PURE__ */ e(z, {});
|
618
619
|
if (s === "insights")
|
619
620
|
return /* @__PURE__ */ e($, {});
|
620
|
-
const
|
621
|
+
const k = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, A = t && a.can_edit_contact_info && k;
|
621
622
|
return /* @__PURE__ */ c(_, { sx: { pt: y ? 0 : 24 }, children: [
|
622
623
|
/* @__PURE__ */ c(_, { sx: { px: 24 }, children: [
|
623
|
-
y && /* @__PURE__ */ c(
|
624
|
+
y && /* @__PURE__ */ c(E, { children: [
|
624
625
|
/* @__PURE__ */ e(Te, {}),
|
625
626
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
626
627
|
] }),
|
627
628
|
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children: i.notification_types_title })
|
628
629
|
] }),
|
629
|
-
/* @__PURE__ */ c(
|
630
|
+
/* @__PURE__ */ c(B, { children: [
|
630
631
|
n.includes(b.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => d(b.Accounts), children: [
|
631
632
|
/* @__PURE__ */ e(N, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
632
|
-
/* @__PURE__ */ e(
|
633
|
+
/* @__PURE__ */ e(S, {})
|
633
634
|
] }) }),
|
634
635
|
n.includes(b.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => d(b.Budgets), children: [
|
635
636
|
/* @__PURE__ */ e(N, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
636
|
-
/* @__PURE__ */ e(
|
637
|
+
/* @__PURE__ */ e(S, {})
|
637
638
|
] }) }),
|
638
639
|
n.includes(b.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => d(b.Insights), children: [
|
639
640
|
/* @__PURE__ */ e(N, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
640
|
-
/* @__PURE__ */ e(
|
641
|
+
/* @__PURE__ */ e(S, {})
|
641
642
|
] }) })
|
642
643
|
] }),
|
643
644
|
A && /* @__PURE__ */ e(_, { sx: { px: 24 }, children: /* @__PURE__ */ e(De, {}) }),
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import _ from "react";
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
4
4
|
import v from "@mui/material/TextField";
|
5
|
-
import { L as y } from "./ListItemAction-
|
6
|
-
import { u as h,
|
5
|
+
import { L as y } from "./ListItemAction-BzmbPuNp.mjs";
|
6
|
+
import { u as h, j as b } from "./hooks-02T565vf.mjs";
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
8
|
-
import { C as f } from "./CurrencyInput-
|
8
|
+
import { C as f } from "./CurrencyInput-CSZjO22Z.mjs";
|
9
9
|
const F = p(({ goal: e }) => {
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
11
11
|
const n = { ...e, interest_rate: t };
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
2
|
+
import p from "react";
|
3
|
+
import { observer as d } from "mobx-react-lite";
|
4
|
+
import R from "@mui/material/Box";
|
5
|
+
import g from "@mui/material/Tab";
|
6
|
+
import T from "@mui/material/Tabs";
|
7
|
+
import b from "@mui/material/Divider";
|
8
|
+
import f from "@mui/material/List";
|
9
|
+
import { R as h, A as C, M as E } from "./ManageIncome-B6kmMN_z.mjs";
|
10
|
+
import { u as l, h as S, e as u } from "./hooks-02T565vf.mjs";
|
11
|
+
import { R as A, F as v } from "./RepeatingTransaction-BPWfaB3f.mjs";
|
12
|
+
import { A as m } from "./WidgetContainer-BG-fdDOf.mjs";
|
13
|
+
const x = d(() => {
|
14
|
+
const { recurring: r } = l(), { repeatingTransactions: i } = S(), { onEvent: a } = u(), t = (e) => {
|
15
|
+
a(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
16
|
+
repeating_transaction_guid: e.guid
|
17
|
+
});
|
18
|
+
}, c = () => {
|
19
|
+
a(m.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
|
20
|
+
}, s = i.filter(
|
21
|
+
(e) => e.repeating_transaction_type !== A.Income && (e.transactions.length > 0 || e.recurrence_type === v.EveryYear)
|
22
|
+
);
|
23
|
+
return /* @__PURE__ */ o(f, { sx: { bgcolor: "background.paper" }, children: [
|
24
|
+
s.map((e, _) => /* @__PURE__ */ o(p.Fragment, { children: [
|
25
|
+
/* @__PURE__ */ n(h, { onClick: t, repeatingTransaction: e }),
|
26
|
+
/* @__PURE__ */ n(b, { variant: _ < s.length - 1 ? "inset" : "fullWidth" })
|
27
|
+
] }, e.guid)),
|
28
|
+
/* @__PURE__ */ n(C, { label: r.add_expense, onAddRecurringTransaction: c })
|
29
|
+
] });
|
30
|
+
}), O = d(() => {
|
31
|
+
const [r, i] = p.useState(0), { onEvent: a } = u(), { recurring: t } = l();
|
32
|
+
return /* @__PURE__ */ o(R, { bgcolor: "background.default", height: "100%", children: [
|
33
|
+
/* @__PURE__ */ o(
|
34
|
+
T,
|
35
|
+
{
|
36
|
+
onChange: (s, e) => {
|
37
|
+
i(e), a(
|
38
|
+
e === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
|
39
|
+
);
|
40
|
+
},
|
41
|
+
sx: { bgcolor: "background.paper" },
|
42
|
+
value: r,
|
43
|
+
variant: "fullWidth",
|
44
|
+
children: [
|
45
|
+
/* @__PURE__ */ n(g, { label: t.manage_expenses }),
|
46
|
+
/* @__PURE__ */ n(g, { label: t.manage_income })
|
47
|
+
]
|
48
|
+
}
|
49
|
+
),
|
50
|
+
r === 0 && /* @__PURE__ */ n(x, {}),
|
51
|
+
r === 1 && /* @__PURE__ */ n(E, {})
|
52
|
+
] });
|
53
|
+
});
|
54
|
+
export {
|
55
|
+
x as M,
|
56
|
+
O as R
|
57
|
+
};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
2
|
+
import p from "react";
|
3
|
+
import d from "@mui/material/Button";
|
4
|
+
import a from "@mui/material/IconButton";
|
5
|
+
import c from "@mui/material/Tooltip";
|
6
|
+
import f from "@mui/material/styles/useTheme";
|
7
|
+
const u = ({
|
8
|
+
icon: e,
|
9
|
+
label: i,
|
10
|
+
onClick: o,
|
11
|
+
placement: s = "bottom",
|
12
|
+
tooltipText: n,
|
13
|
+
variant: l = "text"
|
14
|
+
}) => {
|
15
|
+
const r = f();
|
16
|
+
return /* @__PURE__ */ m(p.Fragment, { children: [
|
17
|
+
/* @__PURE__ */ t(
|
18
|
+
d,
|
19
|
+
{
|
20
|
+
onClick: o,
|
21
|
+
startIcon: e,
|
22
|
+
sx: {
|
23
|
+
[r.breakpoints.down("lg")]: { display: "none" },
|
24
|
+
[r.breakpoints.up("lg")]: { display: "inline-flex" }
|
25
|
+
},
|
26
|
+
title: n,
|
27
|
+
variant: l,
|
28
|
+
children: i
|
29
|
+
}
|
30
|
+
),
|
31
|
+
/* @__PURE__ */ t(
|
32
|
+
c,
|
33
|
+
{
|
34
|
+
describeChild: !0,
|
35
|
+
placement: s,
|
36
|
+
sx: { display: { xs: "inline-flex", lg: "none" } },
|
37
|
+
title: n,
|
38
|
+
children: /* @__PURE__ */ t(a, { onClick: o, children: e })
|
39
|
+
}
|
40
|
+
)
|
41
|
+
] });
|
42
|
+
}, y = u;
|
43
|
+
export {
|
44
|
+
y as R
|
45
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
2
2
|
import { F as D, A as o } from "./Fetch-CkFKy79O.mjs";
|
3
|
-
import { B as f, A as n, I as i } from "./Notification-
|
3
|
+
import { B as f, A as n, I as i } from "./Notification-ByMBpJ5u.mjs";
|
4
4
|
import { T as m } from "./TransactionApi-DbbcjI2L.mjs";
|
5
5
|
class y {
|
6
6
|
fetchInstance;
|
@@ -3,7 +3,7 @@ import { isBefore as d } from "date-fns/isBefore";
|
|
3
3
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
4
4
|
import { subMonths as y } from "date-fns/subMonths";
|
5
5
|
import { endOfMonth as M } from "date-fns/endOfMonth";
|
6
|
-
import {
|
6
|
+
import { b as n, P as l } from "./Category-CevNQ03n.mjs";
|
7
7
|
import { f as m, D as T } from "./Dialog-CWW597AF.mjs";
|
8
8
|
const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid === n.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === n.TRANSFER || e.category_guid === n.TRANSFER, h = (e) => e.top_level_category_guid === n.INVESTMENTS || e.category_guid === n.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
9
9
|
if (r === 0) return 0;
|
@@ -19,10 +19,10 @@ const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid ===
|
|
19
19
|
y: e.filter((a) => a.year === t.getFullYear() && a.month === t.getMonth() + 1).reduce((a, c) => a + c.total, 0)
|
20
20
|
}), t = u(t, 1);
|
21
21
|
return o;
|
22
|
-
},
|
22
|
+
}, b = (e, r) => {
|
23
23
|
const o = e.filter(i);
|
24
24
|
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
25
|
-
},
|
25
|
+
}, A = (e, r) => {
|
26
26
|
const o = e.filter(p);
|
27
27
|
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
28
28
|
}, x = (e, r) => {
|
@@ -42,13 +42,13 @@ const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid ===
|
|
42
42
|
return r;
|
43
43
|
};
|
44
44
|
export {
|
45
|
-
|
45
|
+
A as a,
|
46
46
|
x as b,
|
47
47
|
f as c,
|
48
48
|
w as d,
|
49
49
|
C as e,
|
50
50
|
i as f,
|
51
|
-
|
51
|
+
b as g,
|
52
52
|
H as h,
|
53
53
|
h as i,
|
54
54
|
F as j
|
@@ -22,7 +22,7 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
23
23
|
import k from "@mui/material/ListItem";
|
24
24
|
import an from "@mui/material/ListItemButton";
|
25
|
-
import {
|
25
|
+
import { e as tn } from "./hooks-02T565vf.mjs";
|
26
26
|
const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
27
27
|
const c = v(), l = en(c);
|
28
28
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
|