@mx-cartographer/experiences 7.13.16 → 7.13.18
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 +8 -0
- package/dist/{CashflowStore-D3MKniVM.mjs → CashflowStore-CeAzChyD.mjs} +17 -24
- package/dist/{Help-CpLfyvPv.mjs → Help-D-laTbKu.mjs} +2 -2
- package/dist/{ManageIncome--_KEPuCK.mjs → ManageIncome-B1j-AzI1.mjs} +2 -2
- package/dist/{NotificationSettings-DU3vJh5J.mjs → NotificationSettings-C77J42Ue.mjs} +44 -44
- package/dist/{RecurringSettings-XPxxB0Wf.mjs → RecurringSettings-Dyj3i0ZJ.mjs} +2 -2
- package/dist/{RecurringTransactions-BOzBqfdg.mjs → RecurringTransactions-tayG19Wn.mjs} +77 -77
- package/dist/{RecurringTransactionsStore-CcfPS0d3.mjs → RecurringTransactionsStore-Dpl39vbj.mjs} +1 -1
- package/dist/{TransactionDetails-B-C-7meW.mjs → TransactionDetails-CwqokbQo.mjs} +168 -168
- package/dist/accounts/index.es.js +1 -1
- package/dist/analytics/index.es.js +92 -111
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +12 -12
- package/dist/common/index.es.js +5 -5
- package/dist/debts/index.es.js +13 -13
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/insights/index.es.js +5 -5
- package/dist/investments/index.es.js +68 -68
- package/dist/networth/index.es.js +1 -1
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +212 -221
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +2 -2
- package/dist/trends/index.es.js +50 -50
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.13.18] - 04-01-2026
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - Deprecated icons to use mx-icons library
|
|
4
|
+
|
|
5
|
+
## [7.13.17] - 03-31-2026
|
|
6
|
+
|
|
7
|
+
- **UPDATED** - Deprecated `border` color to use `neutral`
|
|
8
|
+
|
|
1
9
|
## [7.13.16] - 03-31-2026
|
|
2
10
|
|
|
3
11
|
- **FIXED** - `Spending` Other bucket dropping overflow spending categories
|
|
@@ -2,22 +2,22 @@ import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as l } from "react";
|
|
3
3
|
import p from "@mui/material/IconButton";
|
|
4
4
|
import f from "@mui/material/Stack";
|
|
5
|
-
import
|
|
6
|
-
import { Text as a, Icon as
|
|
5
|
+
import d from "@mui/material/Tooltip";
|
|
6
|
+
import { Text as a, Icon as h } from "@mxenabled/mxui";
|
|
7
7
|
import { makeAutoObservable as c } from "mobx";
|
|
8
|
-
import { addDays as
|
|
9
|
-
import { differenceInDays as
|
|
10
|
-
import { endOfMonth as
|
|
8
|
+
import { addDays as u } from "date-fns/addDays";
|
|
9
|
+
import { differenceInDays as x } from "date-fns/differenceInDays";
|
|
10
|
+
import { endOfMonth as g } from "date-fns/endOfMonth";
|
|
11
11
|
import { isBefore as S } from "date-fns/isBefore";
|
|
12
12
|
import { startOfToday as s } from "date-fns/startOfToday";
|
|
13
|
-
const
|
|
13
|
+
const I = ({
|
|
14
14
|
body: o,
|
|
15
15
|
iconName: e = "info",
|
|
16
16
|
title: n
|
|
17
17
|
}) => {
|
|
18
18
|
const [i, r] = l(!1);
|
|
19
19
|
return /* @__PURE__ */ t(
|
|
20
|
-
|
|
20
|
+
d,
|
|
21
21
|
{
|
|
22
22
|
open: i,
|
|
23
23
|
title: /* @__PURE__ */ m(f, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
|
@@ -36,22 +36,15 @@ const b = ({
|
|
|
36
36
|
minWidth: 0,
|
|
37
37
|
p: 0
|
|
38
38
|
},
|
|
39
|
-
children: /* @__PURE__ */ t(
|
|
40
|
-
d,
|
|
41
|
-
{
|
|
42
|
-
name: e,
|
|
43
|
-
sx: { color: "primary.main", fontSize: 16 },
|
|
44
|
-
weight: u.Dark
|
|
45
|
-
}
|
|
46
|
-
)
|
|
39
|
+
children: /* @__PURE__ */ t(h, { name: e, sx: { color: "primary.main", fontSize: 16 } })
|
|
47
40
|
}
|
|
48
41
|
)
|
|
49
42
|
}
|
|
50
43
|
);
|
|
51
|
-
},
|
|
52
|
-
class
|
|
44
|
+
}, k = I;
|
|
45
|
+
class b {
|
|
53
46
|
// Cashflow is hard-coded to display 30 days starting from today
|
|
54
|
-
dateRange = { start: s(), end:
|
|
47
|
+
dateRange = { start: s(), end: u(s(), 30) };
|
|
55
48
|
isDirty = !1;
|
|
56
49
|
nextIncome = void 0;
|
|
57
50
|
upcomingExpenses = [];
|
|
@@ -61,13 +54,13 @@ class y {
|
|
|
61
54
|
}
|
|
62
55
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
63
56
|
get daysUntilNextIncome() {
|
|
64
|
-
return this.nextIncome ? Math.abs(
|
|
57
|
+
return this.nextIncome ? Math.abs(x(s(), this.nextIncome.expectedDate)) : 0;
|
|
65
58
|
}
|
|
66
59
|
// Returns the expenses (Activities) until the next income activity or the end of the month
|
|
67
60
|
// if there is no income activity
|
|
68
61
|
get expensesTilNextIncome() {
|
|
69
62
|
return this.upcomingExpenses.filter(
|
|
70
|
-
(e) => S(e.expectedDate, this.nextIncome?.expectedDate ||
|
|
63
|
+
(e) => S(e.expectedDate, this.nextIncome?.expectedDate || g(/* @__PURE__ */ new Date()))
|
|
71
64
|
);
|
|
72
65
|
}
|
|
73
66
|
setNextIncome = (e) => {
|
|
@@ -78,11 +71,11 @@ class y {
|
|
|
78
71
|
};
|
|
79
72
|
setSelectedCashAccounts = (e) => this.selectedCashAccounts = e;
|
|
80
73
|
}
|
|
81
|
-
class
|
|
74
|
+
class N {
|
|
82
75
|
globalStore;
|
|
83
76
|
uiStore;
|
|
84
77
|
constructor(e) {
|
|
85
|
-
this.globalStore = e, this.uiStore = new
|
|
78
|
+
this.globalStore = e, this.uiStore = new b(), c(this);
|
|
86
79
|
}
|
|
87
80
|
completeOnboarding = async () => {
|
|
88
81
|
const e = {
|
|
@@ -93,6 +86,6 @@ class P {
|
|
|
93
86
|
};
|
|
94
87
|
}
|
|
95
88
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
N as C,
|
|
90
|
+
k as I
|
|
98
91
|
};
|
|
@@ -141,7 +141,7 @@ const kt = (e, i, n) => {
|
|
|
141
141
|
onClick: () => m({ guid: T, category: L, pageTitle: B, topicKey: $ }),
|
|
142
142
|
sx: {
|
|
143
143
|
pl: "6px !important",
|
|
144
|
-
borderColor: "
|
|
144
|
+
borderColor: "neutral.light",
|
|
145
145
|
"&:last-child": {
|
|
146
146
|
border: "none !important",
|
|
147
147
|
borderBottomRightRadius: 7
|
|
@@ -2734,7 +2734,7 @@ const kt = (e, i, n) => {
|
|
|
2734
2734
|
}), i(h, w);
|
|
2735
2735
|
},
|
|
2736
2736
|
sx: {
|
|
2737
|
-
borderColor: "
|
|
2737
|
+
borderColor: "neutral.light",
|
|
2738
2738
|
"&:last-child": {
|
|
2739
2739
|
border: "none",
|
|
2740
2740
|
borderBottomRightRadius: 7
|
|
@@ -10,7 +10,7 @@ import ce from "@mui/material/ListItem";
|
|
|
10
10
|
import de from "@mui/material/ListItemAvatar";
|
|
11
11
|
import le from "@mui/material/ListItemButton";
|
|
12
12
|
import _e from "@mui/material/ListItemText";
|
|
13
|
-
import { F as l, S as M, D as z, g as H, R as L, e as X } from "./RecurringTransactions-
|
|
13
|
+
import { F as l, S as M, D as z, g as H, R as L, e as X } from "./RecurringTransactions-tayG19Wn.mjs";
|
|
14
14
|
import { subDays as Z } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as E } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
|
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
20
|
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CIKUOoN_.mjs";
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
21
|
+
import { T as be } from "./TransactionDetails-CwqokbQo.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -17,9 +17,9 @@ import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
|
17
17
|
import { A as le, T as R, a as D, N as b } from "./Notification-CMBNDGC-.mjs";
|
|
18
18
|
import { u as k, r as T, o as A, d as J, g as re, a as q, b as de } from "./hooks-BxkfR-Ff.mjs";
|
|
19
19
|
import { b as me } from "./Localization-CPkpIwIx.mjs";
|
|
20
|
-
import { b as he, f as
|
|
20
|
+
import { b as he, f as ue } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
21
21
|
import { D as B } from "./Dialog-Ck34yr-d.mjs";
|
|
22
|
-
import { C as
|
|
22
|
+
import { C as _e } from "./CurrencyInput-DuMktPu3.mjs";
|
|
23
23
|
import { u as pe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as K } from "./Drawer-Bbe4AMB1.mjs";
|
|
25
25
|
import fe from "@mui/material/Collapse";
|
|
@@ -36,11 +36,11 @@ import { L as ve } from "./Loader-D3rjKx72.mjs";
|
|
|
36
36
|
const Te = C(() => {
|
|
37
37
|
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] = p.useState(!1), o = () => {
|
|
38
38
|
a(!1);
|
|
39
|
-
},
|
|
39
|
+
}, u = () => {
|
|
40
40
|
a(!0);
|
|
41
41
|
};
|
|
42
42
|
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ c(j, { onClick:
|
|
43
|
+
/* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
44
44
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_email }),
|
|
45
45
|
/* @__PURE__ */ e(S, {})
|
|
46
46
|
] }),
|
|
@@ -69,7 +69,7 @@ const Te = C(() => {
|
|
|
69
69
|
x,
|
|
70
70
|
{
|
|
71
71
|
sx: {
|
|
72
|
-
border: `1px solid ${i.palette.
|
|
72
|
+
border: `1px solid ${i.palette.neutral.light}`,
|
|
73
73
|
borderRadius: "4px",
|
|
74
74
|
p: "16px 32px"
|
|
75
75
|
},
|
|
@@ -108,9 +108,9 @@ const Te = C(() => {
|
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
), De = C(() => {
|
|
111
|
-
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = p.useState(!1), [
|
|
111
|
+
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = p.useState(!1), [u, d] = p.useState(!1), f = () => {
|
|
112
112
|
o(!1);
|
|
113
|
-
},
|
|
113
|
+
}, _ = () => {
|
|
114
114
|
o(!0);
|
|
115
115
|
}, y = () => {
|
|
116
116
|
s().finally(() => {
|
|
@@ -122,7 +122,7 @@ const Te = C(() => {
|
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
124
|
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
125
|
-
/* @__PURE__ */ c(j, { onClick:
|
|
125
|
+
/* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
126
126
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_phone }),
|
|
127
127
|
/* @__PURE__ */ e(S, {})
|
|
128
128
|
] }),
|
|
@@ -151,7 +151,7 @@ const Te = C(() => {
|
|
|
151
151
|
x,
|
|
152
152
|
{
|
|
153
153
|
sx: {
|
|
154
|
-
border: `1px solid ${r.palette.
|
|
154
|
+
border: `1px solid ${r.palette.neutral.light}`,
|
|
155
155
|
borderRadius: "4px",
|
|
156
156
|
p: "16px 32px"
|
|
157
157
|
},
|
|
@@ -168,19 +168,19 @@ const Te = C(() => {
|
|
|
168
168
|
{
|
|
169
169
|
handleClose: () => d(!1),
|
|
170
170
|
handleVerify: m,
|
|
171
|
-
isOpen:
|
|
171
|
+
isOpen: u
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] });
|
|
175
175
|
}), ke = C(
|
|
176
176
|
({ onProfileUpdated: n, profile: t }) => {
|
|
177
|
-
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o,
|
|
177
|
+
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, u] = p.useState(!1), [d, f] = p.useState(t.threshold || 0), [_, y] = p.useState(
|
|
178
178
|
t.account?.day_payment_is_due || 0
|
|
179
179
|
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? me(
|
|
180
180
|
i.notification_debt_payment_date,
|
|
181
181
|
he(t.account?.day_payment_is_due)
|
|
182
|
-
) : i.notification_debt_payment_zero_state, P = a ? g :
|
|
183
|
-
a && t.account ? await r({ ...t.account, day_payment_is_due:
|
|
182
|
+
) : i.notification_debt_payment_zero_state, P = a ? g : ue(t.threshold ?? 0, "0,0"), I = async () => {
|
|
183
|
+
a && t.account ? await r({ ...t.account, day_payment_is_due: _ }) : n({ ...t, threshold: d });
|
|
184
184
|
};
|
|
185
185
|
return /* @__PURE__ */ c(h, { children: [
|
|
186
186
|
/* @__PURE__ */ e(
|
|
@@ -197,7 +197,7 @@ const Te = C(() => {
|
|
|
197
197
|
isChecked: t.is_enabled,
|
|
198
198
|
isDisabled: !t.is_enabled,
|
|
199
199
|
isPrimaryTextBold: !0,
|
|
200
|
-
onClick: () =>
|
|
200
|
+
onClick: () => u(!0),
|
|
201
201
|
onToggle: () => n({
|
|
202
202
|
...t,
|
|
203
203
|
is_enabled: !t.is_enabled
|
|
@@ -213,9 +213,9 @@ const Te = C(() => {
|
|
|
213
213
|
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
214
214
|
close_aria: s.close_aria
|
|
215
215
|
},
|
|
216
|
-
disablePrimaryButton: a &&
|
|
216
|
+
disablePrimaryButton: a && _ === 0,
|
|
217
217
|
isOpen: o,
|
|
218
|
-
onClose: () =>
|
|
218
|
+
onClose: () => u(!1),
|
|
219
219
|
onPrimaryAction: I,
|
|
220
220
|
primaryText: s.save_button,
|
|
221
221
|
children: a ? /* @__PURE__ */ e(ae, { dateAdapter: ce, children: /* @__PURE__ */ e(
|
|
@@ -240,7 +240,7 @@ const Te = C(() => {
|
|
|
240
240
|
views: ["day"]
|
|
241
241
|
}
|
|
242
242
|
) }) : /* @__PURE__ */ e(
|
|
243
|
-
|
|
243
|
+
_e,
|
|
244
244
|
{
|
|
245
245
|
amount: d,
|
|
246
246
|
autoFocus: !0,
|
|
@@ -257,30 +257,30 @@ const Te = C(() => {
|
|
|
257
257
|
), we = C(
|
|
258
258
|
({ onUpdateProfile: n, profile: t }) => {
|
|
259
259
|
const { settings: s } = k(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = pe(), o = t.notification_type > 2, {
|
|
260
|
-
opted_out_of_email_notifications:
|
|
260
|
+
opted_out_of_email_notifications: u,
|
|
261
261
|
opted_out_of_push_notifications: d,
|
|
262
262
|
opted_out_of_sms_notifications: f
|
|
263
263
|
} = r, {
|
|
264
|
-
email_notifications_enabled:
|
|
264
|
+
email_notifications_enabled: _,
|
|
265
265
|
push_notifications_enabled: y,
|
|
266
266
|
sms_notifications_enabled: m
|
|
267
267
|
} = i;
|
|
268
268
|
return /* @__PURE__ */ c(h, { children: [
|
|
269
|
-
(
|
|
269
|
+
(_ || m || y) && /* @__PURE__ */ c(N, { children: [
|
|
270
270
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
271
271
|
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
272
|
-
|
|
272
|
+
_ && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
273
273
|
D,
|
|
274
274
|
{
|
|
275
|
-
isChecked: !
|
|
276
|
-
isDisabled:
|
|
275
|
+
isChecked: !u && t.email_channel && !!l.email,
|
|
276
|
+
isDisabled: u || !l.email,
|
|
277
277
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
278
278
|
primaryText: s.delivery_method_email_label,
|
|
279
|
-
secondaryText:
|
|
279
|
+
secondaryText: u || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
280
280
|
useExtraPadding: !1
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
|
-
|
|
283
|
+
_ && (m || y) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
284
284
|
m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
285
285
|
D,
|
|
286
286
|
{
|
|
@@ -373,10 +373,10 @@ const Te = C(() => {
|
|
|
373
373
|
userCommunicationsProfile: {
|
|
374
374
|
opted_out_of_email_notifications: a,
|
|
375
375
|
opted_out_of_push_notifications: o,
|
|
376
|
-
opted_out_of_sms_notifications:
|
|
376
|
+
opted_out_of_sms_notifications: u
|
|
377
377
|
}
|
|
378
|
-
} = T(), { user: d } = A(), [f,
|
|
379
|
-
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled &&
|
|
378
|
+
} = T(), { user: d } = A(), [f, _] = p.useState(!1), y = async () => {
|
|
379
|
+
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && _(!1);
|
|
380
380
|
}, m = async (P) => {
|
|
381
381
|
await r(P);
|
|
382
382
|
}, g = s || i || l;
|
|
@@ -395,7 +395,7 @@ const Te = C(() => {
|
|
|
395
395
|
) : void 0,
|
|
396
396
|
isChecked: n.is_enabled,
|
|
397
397
|
isDisabled: !n.is_enabled,
|
|
398
|
-
onClick: () =>
|
|
398
|
+
onClick: () => _(!f),
|
|
399
399
|
onToggle: () => y(),
|
|
400
400
|
primaryText: n.label,
|
|
401
401
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
@@ -419,8 +419,8 @@ const Te = C(() => {
|
|
|
419
419
|
i && /* @__PURE__ */ e(
|
|
420
420
|
D,
|
|
421
421
|
{
|
|
422
|
-
isChecked: !
|
|
423
|
-
isDisabled:
|
|
422
|
+
isChecked: !u && n.sms_channel && !!d.phone,
|
|
423
|
+
isDisabled: u || !d.phone,
|
|
424
424
|
onToggle: () => m({
|
|
425
425
|
...n,
|
|
426
426
|
sms_channel: !n.sms_channel
|
|
@@ -452,11 +452,11 @@ const Te = C(() => {
|
|
|
452
452
|
clientCommunicationProfile: s,
|
|
453
453
|
updateUserCommunicationProfile: l,
|
|
454
454
|
userCommunicationsProfile: i
|
|
455
|
-
} = T(), { user: r } = A(), a = async (o,
|
|
456
|
-
const d = { ...i, [o]:
|
|
455
|
+
} = T(), { user: r } = A(), a = async (o, u) => {
|
|
456
|
+
const d = { ...i, [o]: u };
|
|
457
457
|
if (n) {
|
|
458
|
-
const
|
|
459
|
-
|
|
458
|
+
const _ = o.split("_")[3];
|
|
459
|
+
u === !1 ? n("opt_in_notification_method", { notificationType: _ }) : n("opt_out_notification_method", { notificationType: _ });
|
|
460
460
|
}
|
|
461
461
|
await l(d);
|
|
462
462
|
};
|
|
@@ -514,14 +514,14 @@ const Te = C(() => {
|
|
|
514
514
|
const { insightsProfiles: n } = T();
|
|
515
515
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
516
516
|
}), Ae = () => {
|
|
517
|
-
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o,
|
|
517
|
+
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, u] = p.useState(!1), [d, f] = p.useState({
|
|
518
518
|
email: a.email,
|
|
519
519
|
phone: a.phone
|
|
520
|
-
}),
|
|
520
|
+
}), _ = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
|
|
521
521
|
const { name: I, value: w } = P.target, M = { ...d, [I]: w };
|
|
522
|
-
f(M),
|
|
522
|
+
f(M), u(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
|
|
523
523
|
}, g = async () => {
|
|
524
|
-
await r({ ...a, ...d }),
|
|
524
|
+
await r({ ...a, ...d }), u(!1);
|
|
525
525
|
};
|
|
526
526
|
return /* @__PURE__ */ c(h, { ref: t, children: [
|
|
527
527
|
/* @__PURE__ */ e(v, {}),
|
|
@@ -539,7 +539,7 @@ const Te = C(() => {
|
|
|
539
539
|
onChange: m
|
|
540
540
|
}
|
|
541
541
|
),
|
|
542
|
-
|
|
542
|
+
_ && /* @__PURE__ */ e(
|
|
543
543
|
W,
|
|
544
544
|
{
|
|
545
545
|
sx: {
|
|
@@ -601,12 +601,12 @@ const Te = C(() => {
|
|
|
601
601
|
showPersonalDetails: t = !1,
|
|
602
602
|
view: s
|
|
603
603
|
}) => {
|
|
604
|
-
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile:
|
|
604
|
+
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), f = xe(), [_, y] = p.useState(!1), [m, g] = p.useState(
|
|
605
605
|
void 0
|
|
606
606
|
);
|
|
607
607
|
if (n.length > 0 && f && n.push(b.Insights), Ce({
|
|
608
608
|
widgetName: "NotificationSettingsWidget",
|
|
609
|
-
isLoaded:
|
|
609
|
+
isLoaded: _
|
|
610
610
|
}), p.useEffect(() => {
|
|
611
611
|
a || o().finally();
|
|
612
612
|
}, []), p.useEffect(() => {
|
|
@@ -619,14 +619,14 @@ const Te = C(() => {
|
|
|
619
619
|
email_notifications_enabled: I,
|
|
620
620
|
sms_notifications_enabled: w,
|
|
621
621
|
push_notifications_enabled: M
|
|
622
|
-
} =
|
|
622
|
+
} = u, G = I || w || M;
|
|
623
623
|
if (s === "accounts")
|
|
624
624
|
return /* @__PURE__ */ e(z, {});
|
|
625
625
|
if (s === "budgets")
|
|
626
626
|
return /* @__PURE__ */ e($, {});
|
|
627
627
|
if (s === "insights")
|
|
628
628
|
return /* @__PURE__ */ e(H, {});
|
|
629
|
-
const Y = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, Z = t &&
|
|
629
|
+
const Y = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, Z = t && u.can_edit_contact_info && Y;
|
|
630
630
|
return /* @__PURE__ */ c(h, { sx: { pt: G ? 0 : 24 }, children: [
|
|
631
631
|
/* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
|
|
632
632
|
G && /* @__PURE__ */ c(N, { children: [
|
|
@@ -7,9 +7,9 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1j-AzI1.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
|
|
12
|
-
import { R as y, F as N } from "./RecurringTransactions-
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactions-tayG19Wn.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-BYItVAe-.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|