@mx-cartographer/experiences 7.12.17 → 7.13.1
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/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
- package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
- package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
- package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
- package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
- package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
- package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
- package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
- package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
- package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
- package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
- package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
- package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
- package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
- package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
- package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
- package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
- package/dist/{ViewMoreMicroCard-BhG9hCoO.mjs → ViewMoreMicroCard-ApUBfGOX.mjs} +107 -106
- package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
- package/dist/accounts/index.es.js +107 -107
- package/dist/analytics/index.es.js +18 -18
- package/dist/budgets/index.es.js +182 -182
- package/dist/cashflow/index.es.js +223 -223
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +54 -64
- package/dist/common/types/Beat.d.ts +2 -0
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +469 -469
- package/dist/finstrong/index.es.js +68 -68
- package/dist/goals/index.es.js +437 -437
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +159 -159
- package/dist/investments/index.es.js +292 -292
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +175 -168
- package/dist/notifications/index.es.js +13 -13
- package/dist/recurringtransactions/index.es.js +69 -69
- package/dist/settings/index.es.js +187 -187
- package/dist/spending/index.es.js +58 -58
- package/dist/transactions/index.es.js +70 -70
- package/dist/trends/index.es.js +16 -16
- package/package.json +1 -1
- package/dist/AccountListItem-BAf03YhK.mjs +0 -90
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
5
|
import E from "@mui/material/List";
|
|
6
6
|
import O from "@mui/material/ListItem";
|
|
7
7
|
import L from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
|
-
import
|
|
10
|
-
import { ChevronRight as
|
|
9
|
+
import h from "@mui/material/Stack";
|
|
10
|
+
import { ChevronRight as S, ExpandMore as ee, Star as te } from "@mxenabled/mx-icons";
|
|
11
11
|
import { Text as x, InstitutionLogo as ne, H3 as F } from "@mxenabled/mxui";
|
|
12
12
|
import { endOfMonth as ie } from "date-fns/endOfMonth";
|
|
13
13
|
import { startOfMonth as oe } from "date-fns/startOfMonth";
|
|
@@ -15,37 +15,37 @@ import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
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
|
-
import { u as
|
|
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
|
|
21
|
-
import { D as
|
|
20
|
+
import { b as he, f as _e } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
21
|
+
import { D as B } from "./Dialog-Ck34yr-d.mjs";
|
|
22
22
|
import { C as ue } from "./CurrencyInput-DuMktPu3.mjs";
|
|
23
|
-
import { u as
|
|
24
|
-
import { D as
|
|
25
|
-
import
|
|
23
|
+
import { u as pe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
+
import { D as K } from "./Drawer-Bbe4AMB1.mjs";
|
|
25
|
+
import fe from "@mui/material/Collapse";
|
|
26
26
|
import ge from "@mui/material/Card";
|
|
27
27
|
import ye from "@mui/material/CardContent";
|
|
28
|
-
import
|
|
28
|
+
import W from "@mui/material/Box";
|
|
29
29
|
import j from "@mui/material/Button";
|
|
30
30
|
import U from "@mui/material/TextField";
|
|
31
31
|
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
32
|
-
import
|
|
32
|
+
import Q from "@mui/material/styles/useTheme";
|
|
33
33
|
import { u as xe } from "./useInsightsEnabled-DL_oNyI0.mjs";
|
|
34
34
|
import { u as Ce } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
35
35
|
import { L as ve } from "./Loader-D3rjKx72.mjs";
|
|
36
36
|
const Te = C(() => {
|
|
37
|
-
const { common: n, settings: t } =
|
|
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
|
+
}, _ = () => {
|
|
40
40
|
a(!0);
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */ c(
|
|
43
|
-
/* @__PURE__ */ c(j, { onClick:
|
|
44
|
-
/* @__PURE__ */ e(x, { variant: "
|
|
45
|
-
/* @__PURE__ */ e(
|
|
42
|
+
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
44
|
+
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_email }),
|
|
45
|
+
/* @__PURE__ */ e(S, {})
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
B,
|
|
49
49
|
{
|
|
50
50
|
copy: { title: "" },
|
|
51
51
|
isOpen: r,
|
|
@@ -62,9 +62,9 @@ const Te = C(() => {
|
|
|
62
62
|
justifyContent: "center"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
children: /* @__PURE__ */ c(
|
|
66
|
-
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "
|
|
67
|
-
/* @__PURE__ */ e(x, { truncate: !1, variant: "
|
|
65
|
+
children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
66
|
+
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: t.confirm_your_email }),
|
|
67
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: t.confirm_email }),
|
|
68
68
|
/* @__PURE__ */ e(
|
|
69
69
|
x,
|
|
70
70
|
{
|
|
@@ -73,20 +73,20 @@ const Te = C(() => {
|
|
|
73
73
|
borderRadius: "4px",
|
|
74
74
|
p: "16px 32px"
|
|
75
75
|
},
|
|
76
|
-
variant: "
|
|
76
|
+
variant: "h3",
|
|
77
77
|
children: l.email
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
|
-
/* @__PURE__ */ e(x, { truncate: !1, variant: "
|
|
80
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: t.verification_notice_email })
|
|
81
81
|
] })
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
] });
|
|
85
85
|
}), Pe = C(
|
|
86
86
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
87
|
-
const { common: l, settings: i } =
|
|
87
|
+
const { common: l, settings: i } = k(), [r, a] = p.useState("");
|
|
88
88
|
return /* @__PURE__ */ e(
|
|
89
|
-
|
|
89
|
+
B,
|
|
90
90
|
{
|
|
91
91
|
copy: { title: i.enter_verification_code },
|
|
92
92
|
isOpen: s,
|
|
@@ -103,12 +103,12 @@ const Te = C(() => {
|
|
|
103
103
|
justifyContent: "flex-end"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
children: /* @__PURE__ */ e(
|
|
106
|
+
children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(U, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: r }) })
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
), De = C(() => {
|
|
111
|
-
const { common: n, settings: t } =
|
|
111
|
+
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = p.useState(!1), [_, d] = p.useState(!1), f = () => {
|
|
112
112
|
o(!1);
|
|
113
113
|
}, u = () => {
|
|
114
114
|
o(!0);
|
|
@@ -121,19 +121,19 @@ const Te = C(() => {
|
|
|
121
121
|
d(!1);
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
return /* @__PURE__ */ c(
|
|
124
|
+
return /* @__PURE__ */ c(p.Fragment, { children: [
|
|
125
125
|
/* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
126
|
-
/* @__PURE__ */ e(x, { variant: "
|
|
127
|
-
/* @__PURE__ */ e(
|
|
126
|
+
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_phone }),
|
|
127
|
+
/* @__PURE__ */ e(S, {})
|
|
128
128
|
] }),
|
|
129
129
|
/* @__PURE__ */ e(
|
|
130
|
-
|
|
130
|
+
B,
|
|
131
131
|
{
|
|
132
132
|
copy: { title: "" },
|
|
133
133
|
isOpen: a,
|
|
134
|
-
onClose:
|
|
134
|
+
onClose: f,
|
|
135
135
|
onPrimaryAction: y,
|
|
136
|
-
onSecondaryAction:
|
|
136
|
+
onSecondaryAction: f,
|
|
137
137
|
primaryText: t.send_verification,
|
|
138
138
|
secondaryText: n.back,
|
|
139
139
|
sx: {
|
|
@@ -144,9 +144,9 @@ const Te = C(() => {
|
|
|
144
144
|
justifyContent: "center"
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
children: /* @__PURE__ */ c(
|
|
148
|
-
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "
|
|
149
|
-
/* @__PURE__ */ e(x, { truncate: !1, variant: "
|
|
147
|
+
children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
148
|
+
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "body1", children: t.confirm_your_phone }),
|
|
149
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: t.confirm_phone }),
|
|
150
150
|
/* @__PURE__ */ e(
|
|
151
151
|
x,
|
|
152
152
|
{
|
|
@@ -155,11 +155,11 @@ const Te = C(() => {
|
|
|
155
155
|
borderRadius: "4px",
|
|
156
156
|
p: "16px 32px"
|
|
157
157
|
},
|
|
158
|
-
variant: "
|
|
158
|
+
variant: "h3",
|
|
159
159
|
children: i.phone
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
|
-
/* @__PURE__ */ e(x, { truncate: !1, variant: "
|
|
162
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "body2", children: t.verification_notice_phone })
|
|
163
163
|
] })
|
|
164
164
|
}
|
|
165
165
|
),
|
|
@@ -168,21 +168,21 @@ const Te = C(() => {
|
|
|
168
168
|
{
|
|
169
169
|
handleClose: () => d(!1),
|
|
170
170
|
handleVerify: m,
|
|
171
|
-
isOpen:
|
|
171
|
+
isOpen: _
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] });
|
|
175
|
-
}),
|
|
175
|
+
}), ke = C(
|
|
176
176
|
({ onProfileUpdated: n, profile: t }) => {
|
|
177
|
-
const { common: s, recurring: l, settings: i } =
|
|
177
|
+
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, _] = p.useState(!1), [d, f] = p.useState(t.threshold || 0), [u, 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
|
-
|
|
182
|
-
) : i.notification_debt_payment_zero_state, P = a ? g :
|
|
181
|
+
he(t.account?.day_payment_is_due)
|
|
182
|
+
) : i.notification_debt_payment_zero_state, P = a ? g : _e(t.threshold ?? 0, "0,0"), I = async () => {
|
|
183
183
|
a && t.account ? await r({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: d });
|
|
184
184
|
};
|
|
185
|
-
return /* @__PURE__ */ c(
|
|
185
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
186
186
|
/* @__PURE__ */ e(
|
|
187
187
|
R,
|
|
188
188
|
{
|
|
@@ -193,11 +193,11 @@ const Te = C(() => {
|
|
|
193
193
|
institutionGuid: t.account?.institution_guid
|
|
194
194
|
}
|
|
195
195
|
) : void 0,
|
|
196
|
-
endIcon: /* @__PURE__ */ e(
|
|
196
|
+
endIcon: /* @__PURE__ */ e(S, {}),
|
|
197
197
|
isChecked: t.is_enabled,
|
|
198
198
|
isDisabled: !t.is_enabled,
|
|
199
199
|
isPrimaryTextBold: !0,
|
|
200
|
-
onClick: () =>
|
|
200
|
+
onClick: () => _(!0),
|
|
201
201
|
onToggle: () => n({
|
|
202
202
|
...t,
|
|
203
203
|
is_enabled: !t.is_enabled
|
|
@@ -207,7 +207,7 @@ const Te = C(() => {
|
|
|
207
207
|
}
|
|
208
208
|
),
|
|
209
209
|
/* @__PURE__ */ e(
|
|
210
|
-
|
|
210
|
+
B,
|
|
211
211
|
{
|
|
212
212
|
copy: {
|
|
213
213
|
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
@@ -215,7 +215,7 @@ const Te = C(() => {
|
|
|
215
215
|
},
|
|
216
216
|
disablePrimaryButton: a && u === 0,
|
|
217
217
|
isOpen: o,
|
|
218
|
-
onClose: () =>
|
|
218
|
+
onClose: () => _(!1),
|
|
219
219
|
onPrimaryAction: I,
|
|
220
220
|
primaryText: s.save_button,
|
|
221
221
|
children: a ? /* @__PURE__ */ e(ae, { dateAdapter: ce, children: /* @__PURE__ */ e(
|
|
@@ -223,8 +223,8 @@ const Te = C(() => {
|
|
|
223
223
|
{
|
|
224
224
|
maxDate: ie(/* @__PURE__ */ new Date()),
|
|
225
225
|
minDate: oe(/* @__PURE__ */ new Date()),
|
|
226
|
-
onChange: (
|
|
227
|
-
y(
|
|
226
|
+
onChange: (w) => {
|
|
227
|
+
y(w.getDate());
|
|
228
228
|
},
|
|
229
229
|
slots: {
|
|
230
230
|
// Hides the arrows
|
|
@@ -246,54 +246,54 @@ const Te = C(() => {
|
|
|
246
246
|
autoFocus: !0,
|
|
247
247
|
fullWidth: !0,
|
|
248
248
|
minAmount: 0,
|
|
249
|
-
setAmount: (
|
|
250
|
-
sx: { ".MuiTypography-
|
|
249
|
+
setAmount: (w) => f(Number(w) || 0),
|
|
250
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
251
251
|
}
|
|
252
252
|
)
|
|
253
253
|
}
|
|
254
254
|
)
|
|
255
255
|
] });
|
|
256
256
|
}
|
|
257
|
-
),
|
|
257
|
+
), we = C(
|
|
258
258
|
({ onUpdateProfile: n, profile: t }) => {
|
|
259
|
-
const { settings: s } =
|
|
260
|
-
opted_out_of_email_notifications:
|
|
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: _,
|
|
261
261
|
opted_out_of_push_notifications: d,
|
|
262
|
-
opted_out_of_sms_notifications:
|
|
262
|
+
opted_out_of_sms_notifications: f
|
|
263
263
|
} = r, {
|
|
264
264
|
email_notifications_enabled: u,
|
|
265
265
|
push_notifications_enabled: y,
|
|
266
266
|
sms_notifications_enabled: m
|
|
267
267
|
} = i;
|
|
268
|
-
return /* @__PURE__ */ c(
|
|
269
|
-
(u || m || y) && /* @__PURE__ */ c(
|
|
268
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
269
|
+
(u || 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
|
-
u && /* @__PURE__ */ e(
|
|
272
|
+
u && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
273
273
|
D,
|
|
274
274
|
{
|
|
275
|
-
isChecked: !
|
|
276
|
-
isDisabled:
|
|
275
|
+
isChecked: !_ && t.email_channel && !!l.email,
|
|
276
|
+
isDisabled: _ || !l.email,
|
|
277
277
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
278
278
|
primaryText: s.delivery_method_email_label,
|
|
279
|
-
secondaryText:
|
|
279
|
+
secondaryText: _ || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
280
280
|
useExtraPadding: !1
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
283
|
u && (m || y) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
284
|
-
m && /* @__PURE__ */ e(
|
|
284
|
+
m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
285
285
|
D,
|
|
286
286
|
{
|
|
287
|
-
isChecked: !
|
|
288
|
-
isDisabled:
|
|
287
|
+
isChecked: !f && t.sms_channel && !!l.phone,
|
|
288
|
+
isDisabled: f || !l.phone,
|
|
289
289
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
290
290
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
291
|
-
secondaryText:
|
|
291
|
+
secondaryText: f || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
292
292
|
useExtraPadding: !1
|
|
293
293
|
}
|
|
294
294
|
) }),
|
|
295
295
|
m && y && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
296
|
-
y && /* @__PURE__ */ e(
|
|
296
|
+
y && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
297
297
|
D,
|
|
298
298
|
{
|
|
299
299
|
isChecked: !d && t.push_channel,
|
|
@@ -307,10 +307,10 @@ const Te = C(() => {
|
|
|
307
307
|
/* @__PURE__ */ e(v, {})
|
|
308
308
|
] })
|
|
309
309
|
] }),
|
|
310
|
-
o && !!t.children?.length && /* @__PURE__ */ c(
|
|
310
|
+
o && !!t.children?.length && /* @__PURE__ */ c(h, { children: [
|
|
311
311
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
312
312
|
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((g) => /* @__PURE__ */ e(
|
|
313
|
-
|
|
313
|
+
ke,
|
|
314
314
|
{
|
|
315
315
|
onProfileUpdated: n,
|
|
316
316
|
profile: g
|
|
@@ -320,8 +320,8 @@ const Te = C(() => {
|
|
|
320
320
|
] })
|
|
321
321
|
] });
|
|
322
322
|
}
|
|
323
|
-
),
|
|
324
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] =
|
|
323
|
+
), z = C(() => {
|
|
324
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = p.useState(""), i = p.useMemo(
|
|
325
325
|
() => n.find((o) => o.guid === s),
|
|
326
326
|
[n, s]
|
|
327
327
|
), r = async (o) => {
|
|
@@ -332,11 +332,11 @@ const Te = C(() => {
|
|
|
332
332
|
}, a = async (o) => {
|
|
333
333
|
await t(o);
|
|
334
334
|
};
|
|
335
|
-
return /* @__PURE__ */ c(
|
|
335
|
+
return /* @__PURE__ */ c(h, { sx: { backgroundColor: "background.paper" }, children: [
|
|
336
336
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
337
337
|
R,
|
|
338
338
|
{
|
|
339
|
-
endIcon: /* @__PURE__ */ e(
|
|
339
|
+
endIcon: /* @__PURE__ */ e(S, {}),
|
|
340
340
|
isChecked: o.is_enabled,
|
|
341
341
|
isDisabled: !o.is_enabled,
|
|
342
342
|
onClick: () => l(o.guid),
|
|
@@ -347,13 +347,13 @@ const Te = C(() => {
|
|
|
347
347
|
o.guid
|
|
348
348
|
)),
|
|
349
349
|
/* @__PURE__ */ e(
|
|
350
|
-
|
|
350
|
+
K,
|
|
351
351
|
{
|
|
352
352
|
isOpen: !!i,
|
|
353
353
|
onClose: () => l(""),
|
|
354
354
|
title: i ? i.label : "",
|
|
355
355
|
children: i && /* @__PURE__ */ e(
|
|
356
|
-
|
|
356
|
+
we,
|
|
357
357
|
{
|
|
358
358
|
onUpdateProfile: a,
|
|
359
359
|
profile: i
|
|
@@ -362,8 +362,8 @@ const Te = C(() => {
|
|
|
362
362
|
}
|
|
363
363
|
)
|
|
364
364
|
] });
|
|
365
|
-
}),
|
|
366
|
-
const { settings: t } =
|
|
365
|
+
}), X = C(({ profile: n }) => {
|
|
366
|
+
const { settings: t } = k(), {
|
|
367
367
|
clientCommunicationProfile: {
|
|
368
368
|
email_notifications_enabled: s,
|
|
369
369
|
push_notifications_enabled: l,
|
|
@@ -373,9 +373,9 @@ 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: _
|
|
377
377
|
}
|
|
378
|
-
} = T(), { user: d } = A(), [
|
|
378
|
+
} = T(), { user: d } = A(), [f, u] = p.useState(!1), y = async () => {
|
|
379
379
|
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
|
380
380
|
}, m = async (P) => {
|
|
381
381
|
await r(P);
|
|
@@ -389,20 +389,20 @@ const Te = C(() => {
|
|
|
389
389
|
{
|
|
390
390
|
sx: {
|
|
391
391
|
transition: "transform 0.3s ease-in-out",
|
|
392
|
-
transform:
|
|
392
|
+
transform: f ? "rotate(180deg)" : "rotate(0deg)"
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
) : void 0,
|
|
396
396
|
isChecked: n.is_enabled,
|
|
397
397
|
isDisabled: !n.is_enabled,
|
|
398
|
-
onClick: () => u(!
|
|
398
|
+
onClick: () => u(!f),
|
|
399
399
|
onToggle: () => y(),
|
|
400
400
|
primaryText: n.label,
|
|
401
401
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
402
402
|
},
|
|
403
403
|
n.guid
|
|
404
404
|
),
|
|
405
|
-
g && /* @__PURE__ */ e(
|
|
405
|
+
g && /* @__PURE__ */ e(fe, { in: f, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
406
406
|
s && /* @__PURE__ */ e(
|
|
407
407
|
D,
|
|
408
408
|
{
|
|
@@ -419,8 +419,8 @@ const Te = C(() => {
|
|
|
419
419
|
i && /* @__PURE__ */ e(
|
|
420
420
|
D,
|
|
421
421
|
{
|
|
422
|
-
isChecked: !
|
|
423
|
-
isDisabled:
|
|
422
|
+
isChecked: !_ && n.sms_channel && !!d.phone,
|
|
423
|
+
isDisabled: _ || !d.phone,
|
|
424
424
|
onToggle: () => m({
|
|
425
425
|
...n,
|
|
426
426
|
sms_channel: !n.sms_channel
|
|
@@ -444,25 +444,25 @@ const Te = C(() => {
|
|
|
444
444
|
] }) }),
|
|
445
445
|
/* @__PURE__ */ e(v, {})
|
|
446
446
|
] }, n.guid);
|
|
447
|
-
}),
|
|
447
|
+
}), $ = C(() => {
|
|
448
448
|
const { budgetProfiles: n } = T();
|
|
449
|
-
return /* @__PURE__ */ e(
|
|
450
|
-
}),
|
|
451
|
-
const { onEvent: n } = re(), { settings: t } =
|
|
449
|
+
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
450
|
+
}), Se = C(() => {
|
|
451
|
+
const { onEvent: n } = re(), { settings: t } = k(), {
|
|
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, _) => {
|
|
456
|
+
const d = { ...i, [o]: _ };
|
|
457
457
|
if (n) {
|
|
458
458
|
const u = o.split("_")[3];
|
|
459
|
-
|
|
459
|
+
_ === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
460
460
|
}
|
|
461
461
|
await l(d);
|
|
462
462
|
};
|
|
463
|
-
return /* @__PURE__ */ c(
|
|
463
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
464
464
|
/* @__PURE__ */ e(F, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
465
|
-
s.email_notifications_enabled && /* @__PURE__ */ c(
|
|
465
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(N, { children: [
|
|
466
466
|
/* @__PURE__ */ e(
|
|
467
467
|
D,
|
|
468
468
|
{
|
|
@@ -479,7 +479,7 @@ const Te = C(() => {
|
|
|
479
479
|
),
|
|
480
480
|
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
481
481
|
] }),
|
|
482
|
-
s.sms_notifications_enabled && /* @__PURE__ */ c(
|
|
482
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(N, { children: [
|
|
483
483
|
/* @__PURE__ */ e(
|
|
484
484
|
D,
|
|
485
485
|
{
|
|
@@ -505,30 +505,30 @@ const Te = C(() => {
|
|
|
505
505
|
useExtraPadding: !1
|
|
506
506
|
}
|
|
507
507
|
),
|
|
508
|
-
s.sms_notifications_enabled && /* @__PURE__ */ e(ge, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ c(
|
|
508
|
+
s.sms_notifications_enabled && /* @__PURE__ */ e(ge, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ c(h, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
509
509
|
/* @__PURE__ */ e(te, { color: "primary", filled: !0 }),
|
|
510
|
-
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "
|
|
510
|
+
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "caption", children: t.delivery_method_sms_note_1 })
|
|
511
511
|
] }) }) })
|
|
512
512
|
] });
|
|
513
|
-
}),
|
|
513
|
+
}), H = C(() => {
|
|
514
514
|
const { insightsProfiles: n } = T();
|
|
515
|
-
return /* @__PURE__ */ e(
|
|
515
|
+
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
516
516
|
}), Ae = () => {
|
|
517
|
-
const { config: n } =
|
|
517
|
+
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, _] = p.useState(!1), [d, f] = p.useState({
|
|
518
518
|
email: a.email,
|
|
519
519
|
phone: a.phone
|
|
520
520
|
}), u = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
|
|
521
|
-
const { name: I, value:
|
|
522
|
-
|
|
521
|
+
const { name: I, value: w } = P.target, M = { ...d, [I]: w };
|
|
522
|
+
f(M), _(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
|
|
523
523
|
}, g = async () => {
|
|
524
|
-
await r({ ...a, ...d }),
|
|
524
|
+
await r({ ...a, ...d }), _(!1);
|
|
525
525
|
};
|
|
526
|
-
return /* @__PURE__ */ c(
|
|
526
|
+
return /* @__PURE__ */ c(h, { ref: t, children: [
|
|
527
527
|
/* @__PURE__ */ e(v, {}),
|
|
528
|
-
/* @__PURE__ */ c(
|
|
528
|
+
/* @__PURE__ */ c(h, { sx: { pt: 12 }, children: [
|
|
529
529
|
/* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
|
|
530
|
-
/* @__PURE__ */ c(
|
|
531
|
-
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(
|
|
530
|
+
/* @__PURE__ */ c(h, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
531
|
+
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
|
|
532
532
|
/* @__PURE__ */ e(
|
|
533
533
|
U,
|
|
534
534
|
{
|
|
@@ -540,7 +540,7 @@ const Te = C(() => {
|
|
|
540
540
|
}
|
|
541
541
|
),
|
|
542
542
|
u && /* @__PURE__ */ e(
|
|
543
|
-
|
|
543
|
+
W,
|
|
544
544
|
{
|
|
545
545
|
sx: {
|
|
546
546
|
height: 20,
|
|
@@ -555,7 +555,7 @@ const Te = C(() => {
|
|
|
555
555
|
}
|
|
556
556
|
)
|
|
557
557
|
] }),
|
|
558
|
-
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(
|
|
558
|
+
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
|
|
559
559
|
/* @__PURE__ */ e(
|
|
560
560
|
U,
|
|
561
561
|
{
|
|
@@ -567,7 +567,7 @@ const Te = C(() => {
|
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
569
|
y && /* @__PURE__ */ e(
|
|
570
|
-
|
|
570
|
+
W,
|
|
571
571
|
{
|
|
572
572
|
sx: {
|
|
573
573
|
height: 20,
|
|
@@ -595,21 +595,21 @@ const Te = C(() => {
|
|
|
595
595
|
)
|
|
596
596
|
] })
|
|
597
597
|
] });
|
|
598
|
-
}, Ie = C(Ae),
|
|
598
|
+
}, Ie = C(Ae), ht = C(
|
|
599
599
|
({
|
|
600
600
|
notificationTypes: n = [b.Accounts, b.Budgets],
|
|
601
601
|
showPersonalDetails: t = !1,
|
|
602
602
|
view: s
|
|
603
603
|
}) => {
|
|
604
|
-
const { config: l } =
|
|
604
|
+
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: _, loadNotificationProfiles: d } = T(), f = xe(), [u, y] = p.useState(!1), [m, g] = p.useState(
|
|
605
605
|
void 0
|
|
606
606
|
);
|
|
607
|
-
if (n.length > 0 &&
|
|
607
|
+
if (n.length > 0 && f && n.push(b.Insights), Ce({
|
|
608
608
|
widgetName: "NotificationSettingsWidget",
|
|
609
609
|
isLoaded: u
|
|
610
|
-
}),
|
|
610
|
+
}), p.useEffect(() => {
|
|
611
611
|
a || o().finally();
|
|
612
|
-
}, []),
|
|
612
|
+
}, []), p.useEffect(() => {
|
|
613
613
|
r && d().finally(() => y(!0));
|
|
614
614
|
}, [r]), !r)
|
|
615
615
|
return /* @__PURE__ */ e(ve, {});
|
|
@@ -617,20 +617,20 @@ const Te = C(() => {
|
|
|
617
617
|
m === b.Budgets ? P = i.manage_budget_notifications : m === b.Insights && (P = i.manage_insights_notifications);
|
|
618
618
|
const {
|
|
619
619
|
email_notifications_enabled: I,
|
|
620
|
-
sms_notifications_enabled:
|
|
621
|
-
push_notifications_enabled:
|
|
622
|
-
} =
|
|
620
|
+
sms_notifications_enabled: w,
|
|
621
|
+
push_notifications_enabled: M
|
|
622
|
+
} = _, G = I || w || M;
|
|
623
623
|
if (s === "accounts")
|
|
624
|
-
return /* @__PURE__ */ e(W, {});
|
|
625
|
-
if (s === "budgets")
|
|
626
624
|
return /* @__PURE__ */ e(z, {});
|
|
627
|
-
if (s === "
|
|
625
|
+
if (s === "budgets")
|
|
628
626
|
return /* @__PURE__ */ e($, {});
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
627
|
+
if (s === "insights")
|
|
628
|
+
return /* @__PURE__ */ e(H, {});
|
|
629
|
+
const Y = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, Z = t && _.can_edit_contact_info && Y;
|
|
630
|
+
return /* @__PURE__ */ c(h, { sx: { pt: G ? 0 : 24 }, children: [
|
|
631
|
+
/* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
|
|
632
|
+
G && /* @__PURE__ */ c(N, { children: [
|
|
633
|
+
/* @__PURE__ */ e(Se, {}),
|
|
634
634
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
635
635
|
] }),
|
|
636
636
|
/* @__PURE__ */ e(F, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
@@ -638,28 +638,28 @@ const Te = C(() => {
|
|
|
638
638
|
/* @__PURE__ */ c(E, { children: [
|
|
639
639
|
n.includes(b.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Accounts), children: [
|
|
640
640
|
/* @__PURE__ */ e(L, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
641
|
-
/* @__PURE__ */ e(
|
|
641
|
+
/* @__PURE__ */ e(S, {})
|
|
642
642
|
] }) }),
|
|
643
643
|
n.includes(b.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Budgets), children: [
|
|
644
644
|
/* @__PURE__ */ e(L, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
645
|
-
/* @__PURE__ */ e(
|
|
645
|
+
/* @__PURE__ */ e(S, {})
|
|
646
646
|
] }) }),
|
|
647
647
|
n.includes(b.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Insights), children: [
|
|
648
648
|
/* @__PURE__ */ e(L, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
649
|
-
/* @__PURE__ */ e(
|
|
649
|
+
/* @__PURE__ */ e(S, {})
|
|
650
650
|
] }) })
|
|
651
651
|
] }),
|
|
652
|
-
Z && /* @__PURE__ */ e(
|
|
652
|
+
Z && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Ie, {}) }),
|
|
653
653
|
/* @__PURE__ */ e(
|
|
654
|
-
|
|
654
|
+
K,
|
|
655
655
|
{
|
|
656
656
|
isOpen: !!m,
|
|
657
657
|
onClose: () => g(void 0),
|
|
658
658
|
title: P,
|
|
659
|
-
children: /* @__PURE__ */ c(
|
|
660
|
-
m === b.Accounts && /* @__PURE__ */ e(
|
|
661
|
-
m === b.Budgets && /* @__PURE__ */ e(
|
|
662
|
-
m === b.Insights && /* @__PURE__ */ e(
|
|
659
|
+
children: /* @__PURE__ */ c(h, { children: [
|
|
660
|
+
m === b.Accounts && /* @__PURE__ */ e(z, {}),
|
|
661
|
+
m === b.Budgets && /* @__PURE__ */ e($, {}),
|
|
662
|
+
m === b.Insights && /* @__PURE__ */ e(H, {})
|
|
663
663
|
] })
|
|
664
664
|
}
|
|
665
665
|
)
|
|
@@ -667,10 +667,10 @@ const Te = C(() => {
|
|
|
667
667
|
}
|
|
668
668
|
);
|
|
669
669
|
export {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
670
|
+
z as A,
|
|
671
|
+
$ as B,
|
|
672
|
+
H as I,
|
|
673
|
+
ht as N,
|
|
674
674
|
Te as V,
|
|
675
675
|
De as a
|
|
676
676
|
};
|