@mx-cartographer/experiences 7.0.27-alpha.sms6 → 7.0.27-alpha.sms9
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/{Notification-ByMBpJ5u.mjs → Notification-aGCHxikw.mjs} +15 -14
- package/dist/{NotificationSettings-BaG4tpPe.mjs → NotificationSettings-CECTkOug.mjs} +201 -203
- package/dist/{SettingsStore-B4gi6oOw.mjs → SettingsStore-B0kRTFjD.mjs} +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/notifications/index.es.js +2 -2
- package/dist/settings/index.es.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import x from "@mui/material/ListItem";
|
|
3
3
|
import c from "@mui/material/ListItemButton";
|
|
4
4
|
import p from "@mui/material/ListItemIcon";
|
|
5
|
-
import
|
|
5
|
+
import D from "@mui/material/ListItemText";
|
|
6
6
|
import L from "@mui/material/Stack";
|
|
7
|
-
import
|
|
7
|
+
import o from "@mui/material/Switch";
|
|
8
8
|
import { Text as u } from "@mxenabled/mxui";
|
|
9
9
|
import w from "@mui/material/ListItemAvatar";
|
|
10
|
-
const
|
|
10
|
+
const z = ({
|
|
11
11
|
avatar: r,
|
|
12
12
|
endIcon: a,
|
|
13
13
|
isChecked: l,
|
|
14
14
|
isDisabled: d = !1,
|
|
15
15
|
isPrimaryTextBold: n = !1,
|
|
16
16
|
onClick: m,
|
|
17
|
-
onToggle:
|
|
17
|
+
onToggle: C,
|
|
18
18
|
primaryText: v,
|
|
19
19
|
secondaryText: M
|
|
20
20
|
}) => (
|
|
21
21
|
//TODO: implement common/components/ListItemRow.tsx
|
|
22
22
|
/* @__PURE__ */ e(
|
|
23
|
-
|
|
23
|
+
x,
|
|
24
24
|
{
|
|
25
|
-
secondaryAction: /* @__PURE__ */ e(
|
|
25
|
+
secondaryAction: /* @__PURE__ */ e(o, { checked: l, onChange: C }),
|
|
26
26
|
sx: {
|
|
27
27
|
"& .MuiListItemSecondaryAction-root": { right: a ? 64 : 24 },
|
|
28
28
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
29
29
|
},
|
|
30
30
|
children: /* @__PURE__ */ S(c, { onClick: d ? void 0 : () => m(), children: [
|
|
31
31
|
r && /* @__PURE__ */ e(w, { children: r }),
|
|
32
|
-
/* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ e(D, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ S(L, { sx: { width: "100%" }, children: [
|
|
33
33
|
/* @__PURE__ */ e(
|
|
34
34
|
u,
|
|
35
35
|
{
|
|
36
36
|
bold: n,
|
|
37
|
+
color: "text.primary",
|
|
37
38
|
sx: {
|
|
38
39
|
mr: 80
|
|
39
40
|
},
|
|
@@ -47,7 +48,7 @@ const F = ({
|
|
|
47
48
|
] })
|
|
48
49
|
}
|
|
49
50
|
)
|
|
50
|
-
),
|
|
51
|
+
), F = ({
|
|
51
52
|
isChecked: r,
|
|
52
53
|
isDisabled: a = !1,
|
|
53
54
|
onToggle: l,
|
|
@@ -55,15 +56,15 @@ const F = ({
|
|
|
55
56
|
secondaryText: n = void 0,
|
|
56
57
|
useExtraPadding: m = !0
|
|
57
58
|
}) => /* @__PURE__ */ e(
|
|
58
|
-
|
|
59
|
+
x,
|
|
59
60
|
{
|
|
60
|
-
secondaryAction: /* @__PURE__ */ e(
|
|
61
|
+
secondaryAction: /* @__PURE__ */ e(o, { checked: r, disabled: a, onChange: l }),
|
|
61
62
|
sx: {
|
|
62
63
|
pl: m ? 48 : 0,
|
|
63
64
|
"& .MuiListItemSecondaryAction-root": { right: m ? 64 : 24 }
|
|
64
65
|
},
|
|
65
66
|
children: /* @__PURE__ */ e(
|
|
66
|
-
|
|
67
|
+
D,
|
|
67
68
|
{
|
|
68
69
|
primary: d,
|
|
69
70
|
primaryTypographyProps: { fontWeight: 400, variant: "body1", maxWidth: "calc(100% - 60px)" },
|
|
@@ -84,6 +85,6 @@ export {
|
|
|
84
85
|
b as B,
|
|
85
86
|
A as I,
|
|
86
87
|
B as N,
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
z as T,
|
|
89
|
+
F as a
|
|
89
90
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
|
-
import
|
|
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 N from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
|
-
import
|
|
9
|
+
import m from "@mui/material/Stack";
|
|
10
10
|
import { ChevronRight as w, 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";
|
|
@@ -14,8 +14,8 @@ 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 y } from "./Notification-
|
|
18
|
-
import { u as D, r as
|
|
17
|
+
import { A as oe, T as F, a as P, N as y } from "./Notification-aGCHxikw.mjs";
|
|
18
|
+
import { u as D, r as T, o as A, c as se, f as ae, m as W, a as ce } from "./hooks-DlI63qSB.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
21
|
import { a as M } from "./Dialog-CWW597AF.mjs";
|
|
@@ -33,13 +33,13 @@ import X from "@mui/material/styles/useTheme";
|
|
|
33
33
|
import { u as ge } from "./useInsightsEnabled-fGr6xrSj.mjs";
|
|
34
34
|
import { L as ye } from "./Loader-DUaFpDGv.mjs";
|
|
35
35
|
const be = C(() => {
|
|
36
|
-
const { common: n, settings: t } = D(), { sendEmailVerification: s } =
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
36
|
+
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: l } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
|
|
37
|
+
a(!1);
|
|
38
|
+
}, h = () => {
|
|
39
|
+
a(!0);
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ c(R, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
43
43
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
|
44
44
|
/* @__PURE__ */ e(w, {})
|
|
45
45
|
] }),
|
|
@@ -47,10 +47,10 @@ const be = C(() => {
|
|
|
47
47
|
M,
|
|
48
48
|
{
|
|
49
49
|
copy: { title: "" },
|
|
50
|
-
isOpen:
|
|
51
|
-
onClose:
|
|
50
|
+
isOpen: d,
|
|
51
|
+
onClose: o,
|
|
52
52
|
onPrimaryAction: s,
|
|
53
|
-
onSecondaryAction:
|
|
53
|
+
onSecondaryAction: o,
|
|
54
54
|
primaryText: t.send_verification,
|
|
55
55
|
secondaryText: n.back,
|
|
56
56
|
sx: {
|
|
@@ -61,19 +61,19 @@ const be = C(() => {
|
|
|
61
61
|
justifyContent: "center"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
children: /* @__PURE__ */
|
|
64
|
+
children: /* @__PURE__ */ c(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
65
65
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
66
66
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
67
67
|
/* @__PURE__ */ e(
|
|
68
68
|
x,
|
|
69
69
|
{
|
|
70
70
|
sx: {
|
|
71
|
-
border: `1px solid ${
|
|
71
|
+
border: `1px solid ${i.palette.border.light}`,
|
|
72
72
|
borderRadius: "4px",
|
|
73
73
|
p: "16px 32px"
|
|
74
74
|
},
|
|
75
75
|
variant: "H3",
|
|
76
|
-
children:
|
|
76
|
+
children: l.email
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
79
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_email })
|
|
@@ -83,17 +83,17 @@ const be = C(() => {
|
|
|
83
83
|
] });
|
|
84
84
|
}), xe = C(
|
|
85
85
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
86
|
-
const { common:
|
|
86
|
+
const { common: l, settings: i } = D(), [d, a] = f.useState("");
|
|
87
87
|
return /* @__PURE__ */ e(
|
|
88
88
|
M,
|
|
89
89
|
{
|
|
90
|
-
copy: { title:
|
|
90
|
+
copy: { title: i.enter_verification_code },
|
|
91
91
|
isOpen: s,
|
|
92
92
|
onClose: n,
|
|
93
|
-
onPrimaryAction: () => t(
|
|
93
|
+
onPrimaryAction: () => t(d),
|
|
94
94
|
onSecondaryAction: n,
|
|
95
|
-
primaryText:
|
|
96
|
-
secondaryText:
|
|
95
|
+
primaryText: i.verify,
|
|
96
|
+
secondaryText: l.cancel_button,
|
|
97
97
|
sx: {
|
|
98
98
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
99
99
|
"& .MuiToolbar-root:last-child": {
|
|
@@ -102,26 +102,26 @@ const be = C(() => {
|
|
|
102
102
|
justifyContent: "flex-end"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
105
|
+
children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(L, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: d }) })
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
), Ce = C(() => {
|
|
110
|
-
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken:
|
|
111
|
-
|
|
110
|
+
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), d = X(), [a, o] = f.useState(!1), [h, r] = f.useState(!1), _ = () => {
|
|
111
|
+
o(!1);
|
|
112
112
|
}, u = () => {
|
|
113
|
-
|
|
113
|
+
o(!0);
|
|
114
114
|
}, g = () => {
|
|
115
115
|
s().finally(() => {
|
|
116
|
-
|
|
116
|
+
r(!0);
|
|
117
117
|
});
|
|
118
118
|
}, p = (b) => {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
l(b).finally(() => {
|
|
120
|
+
r(!1);
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
123
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
124
|
+
/* @__PURE__ */ c(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
125
125
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
|
126
126
|
/* @__PURE__ */ e(w, {})
|
|
127
127
|
] }),
|
|
@@ -129,7 +129,7 @@ const be = C(() => {
|
|
|
129
129
|
M,
|
|
130
130
|
{
|
|
131
131
|
copy: { title: "" },
|
|
132
|
-
isOpen:
|
|
132
|
+
isOpen: a,
|
|
133
133
|
onClose: _,
|
|
134
134
|
onPrimaryAction: g,
|
|
135
135
|
onSecondaryAction: _,
|
|
@@ -143,19 +143,19 @@ const be = C(() => {
|
|
|
143
143
|
justifyContent: "center"
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ c(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
147
147
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
148
148
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
149
149
|
/* @__PURE__ */ e(
|
|
150
150
|
x,
|
|
151
151
|
{
|
|
152
152
|
sx: {
|
|
153
|
-
border: `1px solid ${
|
|
153
|
+
border: `1px solid ${d.palette.border.light}`,
|
|
154
154
|
borderRadius: "4px",
|
|
155
155
|
p: "16px 32px"
|
|
156
156
|
},
|
|
157
157
|
variant: "H3",
|
|
158
|
-
children:
|
|
158
|
+
children: i.phone
|
|
159
159
|
}
|
|
160
160
|
),
|
|
161
161
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_phone })
|
|
@@ -165,23 +165,23 @@ const be = C(() => {
|
|
|
165
165
|
/* @__PURE__ */ e(
|
|
166
166
|
xe,
|
|
167
167
|
{
|
|
168
|
-
handleClose: () =>
|
|
168
|
+
handleClose: () => r(!1),
|
|
169
169
|
handleVerify: p,
|
|
170
|
-
isOpen:
|
|
170
|
+
isOpen: h
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
173
|
] });
|
|
174
|
-
}),
|
|
174
|
+
}), ve = C(
|
|
175
175
|
({ onProfileUpdated: n, profile: t }) => {
|
|
176
|
-
const { common: s, recurring:
|
|
176
|
+
const { common: s, recurring: l, settings: i } = D(), { updateAccount: d } = se(), a = t.notification_type === oe.DebtPaymentReminder, [o, h] = f.useState(!1), [r, _] = f.useState(t.threshold || 0), [u, g] = f.useState(
|
|
177
177
|
t.account?.day_payment_is_due || 0
|
|
178
178
|
), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? le(
|
|
179
|
-
|
|
179
|
+
i.notification_debt_payment_date,
|
|
180
180
|
re(t.account?.day_payment_is_due)
|
|
181
|
-
) :
|
|
182
|
-
|
|
181
|
+
) : i.notification_debt_payment_zero_state, S = a ? b : de(t.threshold ?? 0, "0,0"), I = async () => {
|
|
182
|
+
a && t.account ? await d({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: r });
|
|
183
183
|
};
|
|
184
|
-
return /* @__PURE__ */
|
|
184
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
185
185
|
/* @__PURE__ */ e(
|
|
186
186
|
F,
|
|
187
187
|
{
|
|
@@ -195,7 +195,7 @@ const be = C(() => {
|
|
|
195
195
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
196
196
|
isChecked: t.is_enabled,
|
|
197
197
|
isPrimaryTextBold: !0,
|
|
198
|
-
onClick: () =>
|
|
198
|
+
onClick: () => h(!0),
|
|
199
199
|
onToggle: () => n({
|
|
200
200
|
...t,
|
|
201
201
|
is_enabled: !t.is_enabled
|
|
@@ -208,15 +208,15 @@ const be = C(() => {
|
|
|
208
208
|
M,
|
|
209
209
|
{
|
|
210
210
|
copy: {
|
|
211
|
-
title:
|
|
211
|
+
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
212
212
|
close_aria: s.close_aria
|
|
213
213
|
},
|
|
214
|
-
disablePrimaryButton:
|
|
215
|
-
isOpen:
|
|
216
|
-
onClose: () =>
|
|
214
|
+
disablePrimaryButton: a && u === 0,
|
|
215
|
+
isOpen: o,
|
|
216
|
+
onClose: () => h(!1),
|
|
217
217
|
onPrimaryAction: I,
|
|
218
218
|
primaryText: s.save_button,
|
|
219
|
-
children:
|
|
219
|
+
children: a ? /* @__PURE__ */ e(ne, { dateAdapter: ie, children: /* @__PURE__ */ e(
|
|
220
220
|
te,
|
|
221
221
|
{
|
|
222
222
|
maxDate: Z(/* @__PURE__ */ new Date()),
|
|
@@ -240,7 +240,7 @@ const be = C(() => {
|
|
|
240
240
|
) }) : /* @__PURE__ */ e(
|
|
241
241
|
me,
|
|
242
242
|
{
|
|
243
|
-
amount:
|
|
243
|
+
amount: r,
|
|
244
244
|
autoFocus: !0,
|
|
245
245
|
fullWidth: !0,
|
|
246
246
|
minAmount: 0,
|
|
@@ -252,63 +252,63 @@ const be = C(() => {
|
|
|
252
252
|
)
|
|
253
253
|
] });
|
|
254
254
|
}
|
|
255
|
-
),
|
|
255
|
+
), Te = C(
|
|
256
256
|
({ onUpdateProfile: n, profile: t }) => {
|
|
257
|
-
const { settings: s } = D(), { user:
|
|
258
|
-
opted_out_of_email_notifications:
|
|
259
|
-
opted_out_of_push_notifications:
|
|
257
|
+
const { settings: s } = D(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: d } = T(), { isMobile: a } = he(), o = t.notification_type > 2, {
|
|
258
|
+
opted_out_of_email_notifications: h,
|
|
259
|
+
opted_out_of_push_notifications: r,
|
|
260
260
|
opted_out_of_sms_notifications: _
|
|
261
|
-
} =
|
|
261
|
+
} = d, {
|
|
262
262
|
email_notifications_enabled: u,
|
|
263
263
|
push_notifications_enabled: g,
|
|
264
264
|
sms_notifications_enabled: p
|
|
265
|
-
} =
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
(u || p || g) && /* @__PURE__ */
|
|
265
|
+
} = i;
|
|
266
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
267
|
+
(u || p || g) && /* @__PURE__ */ c(B, { children: [
|
|
268
268
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
u && /* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
270
|
+
u && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
271
271
|
P,
|
|
272
272
|
{
|
|
273
|
-
isChecked: !
|
|
274
|
-
isDisabled:
|
|
273
|
+
isChecked: !h && t.email_channel && !!l.email,
|
|
274
|
+
isDisabled: h || !l.email,
|
|
275
275
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
276
276
|
primaryText: s.delivery_method_email_label,
|
|
277
|
-
secondaryText:
|
|
277
|
+
secondaryText: h || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
278
278
|
useExtraPadding: !1
|
|
279
279
|
}
|
|
280
280
|
) }),
|
|
281
|
-
u && (p || g) && /* @__PURE__ */ e(
|
|
282
|
-
p && /* @__PURE__ */ e(
|
|
281
|
+
u && (p || g) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
282
|
+
p && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
283
283
|
P,
|
|
284
284
|
{
|
|
285
|
-
isChecked: !_ && t.sms_channel && !!
|
|
286
|
-
isDisabled: _ || !
|
|
285
|
+
isChecked: !_ && t.sms_channel && !!l.phone,
|
|
286
|
+
isDisabled: _ || !l.phone,
|
|
287
287
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
288
288
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
289
|
-
secondaryText: _ || !t.sms_channel || !
|
|
289
|
+
secondaryText: _ || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
290
290
|
useExtraPadding: !1
|
|
291
291
|
}
|
|
292
292
|
) }),
|
|
293
|
-
p && g && /* @__PURE__ */ e(
|
|
294
|
-
g && /* @__PURE__ */ e(
|
|
293
|
+
p && g && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
294
|
+
g && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
295
295
|
P,
|
|
296
296
|
{
|
|
297
|
-
isChecked: !
|
|
298
|
-
isDisabled:
|
|
297
|
+
isChecked: !r && t.push_channel,
|
|
298
|
+
isDisabled: r,
|
|
299
299
|
onToggle: () => n({ ...t, push_channel: !t.push_channel }),
|
|
300
300
|
primaryText: s.delivery_method_push_label,
|
|
301
301
|
secondaryText: s.delivery_method_push_subtitle,
|
|
302
302
|
useExtraPadding: !1
|
|
303
303
|
}
|
|
304
304
|
) }),
|
|
305
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(v, {})
|
|
306
306
|
] })
|
|
307
307
|
] }),
|
|
308
|
-
|
|
308
|
+
o && !!t.children?.length && /* @__PURE__ */ c(m, { children: [
|
|
309
309
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
310
310
|
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((b) => /* @__PURE__ */ e(
|
|
311
|
-
|
|
311
|
+
ve,
|
|
312
312
|
{
|
|
313
313
|
onProfileUpdated: n,
|
|
314
314
|
profile: b
|
|
@@ -319,42 +319,42 @@ const be = C(() => {
|
|
|
319
319
|
] });
|
|
320
320
|
}
|
|
321
321
|
), H = C(() => {
|
|
322
|
-
const { accountProfiles: n, updateNotificationProfile: t } =
|
|
323
|
-
() => n.find((
|
|
322
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
323
|
+
() => n.find((o) => o.guid === s),
|
|
324
324
|
[n, s]
|
|
325
|
-
),
|
|
325
|
+
), d = async (o) => {
|
|
326
326
|
await t({
|
|
327
|
-
...
|
|
328
|
-
is_enabled: !
|
|
327
|
+
...o,
|
|
328
|
+
is_enabled: !o.is_enabled
|
|
329
329
|
});
|
|
330
|
-
},
|
|
331
|
-
await t(
|
|
330
|
+
}, a = async (o) => {
|
|
331
|
+
await t(o);
|
|
332
332
|
};
|
|
333
|
-
return /* @__PURE__ */
|
|
334
|
-
n.filter((
|
|
333
|
+
return /* @__PURE__ */ c(m, { sx: { backgroundColor: "background.paper" }, children: [
|
|
334
|
+
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
335
335
|
F,
|
|
336
336
|
{
|
|
337
337
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
338
|
-
isChecked:
|
|
339
|
-
isDisabled: !
|
|
340
|
-
onClick: () =>
|
|
341
|
-
onToggle: () =>
|
|
342
|
-
primaryText:
|
|
343
|
-
secondaryText:
|
|
338
|
+
isChecked: o.is_enabled,
|
|
339
|
+
isDisabled: !o.is_enabled,
|
|
340
|
+
onClick: () => l(o.guid),
|
|
341
|
+
onToggle: () => d(o),
|
|
342
|
+
primaryText: o.label,
|
|
343
|
+
secondaryText: o.is_enabled ? o.deliveryMethodsLabel : void 0
|
|
344
344
|
},
|
|
345
|
-
|
|
345
|
+
o.guid
|
|
346
346
|
)),
|
|
347
347
|
/* @__PURE__ */ e(
|
|
348
348
|
J,
|
|
349
349
|
{
|
|
350
|
-
isOpen: !!
|
|
351
|
-
onClose: () =>
|
|
352
|
-
title:
|
|
353
|
-
children:
|
|
354
|
-
|
|
350
|
+
isOpen: !!i,
|
|
351
|
+
onClose: () => l(""),
|
|
352
|
+
title: i ? i.label : "",
|
|
353
|
+
children: i && /* @__PURE__ */ e(
|
|
354
|
+
Te,
|
|
355
355
|
{
|
|
356
|
-
onUpdateProfile:
|
|
357
|
-
profile:
|
|
356
|
+
onUpdateProfile: a,
|
|
357
|
+
profile: i
|
|
358
358
|
}
|
|
359
359
|
)
|
|
360
360
|
}
|
|
@@ -364,21 +364,21 @@ const be = C(() => {
|
|
|
364
364
|
const { settings: t } = D(), {
|
|
365
365
|
clientCommunicationProfile: {
|
|
366
366
|
email_notifications_enabled: s,
|
|
367
|
-
push_notifications_enabled:
|
|
368
|
-
sms_notifications_enabled:
|
|
367
|
+
push_notifications_enabled: l,
|
|
368
|
+
sms_notifications_enabled: i
|
|
369
369
|
},
|
|
370
|
-
updateNotificationProfile:
|
|
370
|
+
updateNotificationProfile: d,
|
|
371
371
|
userCommunicationsProfile: {
|
|
372
|
-
opted_out_of_email_notifications:
|
|
373
|
-
opted_out_of_push_notifications:
|
|
374
|
-
opted_out_of_sms_notifications:
|
|
372
|
+
opted_out_of_email_notifications: a,
|
|
373
|
+
opted_out_of_push_notifications: o,
|
|
374
|
+
opted_out_of_sms_notifications: h
|
|
375
375
|
}
|
|
376
|
-
} =
|
|
376
|
+
} = T(), { user: r } = A(), [_, u] = f.useState(!1), g = async () => {
|
|
377
377
|
await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
|
378
378
|
}, p = async (S) => {
|
|
379
|
-
await
|
|
380
|
-
}, b = s ||
|
|
381
|
-
return /* @__PURE__ */
|
|
379
|
+
await d(S);
|
|
380
|
+
}, b = s || i || l;
|
|
381
|
+
return /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
382
382
|
/* @__PURE__ */ e(
|
|
383
383
|
F,
|
|
384
384
|
{
|
|
@@ -400,12 +400,12 @@ const be = C(() => {
|
|
|
400
400
|
},
|
|
401
401
|
n.guid
|
|
402
402
|
),
|
|
403
|
-
b && /* @__PURE__ */ e(_e, { in: _, children: /* @__PURE__ */
|
|
403
|
+
b && /* @__PURE__ */ e(_e, { in: _, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
404
404
|
s && /* @__PURE__ */ e(
|
|
405
405
|
P,
|
|
406
406
|
{
|
|
407
|
-
isChecked: !
|
|
408
|
-
isDisabled:
|
|
407
|
+
isChecked: !a && n.email_channel && !!r.email,
|
|
408
|
+
isDisabled: a || !r.email,
|
|
409
409
|
onToggle: () => p({
|
|
410
410
|
...n,
|
|
411
411
|
email_channel: !n.email_channel
|
|
@@ -413,12 +413,12 @@ const be = C(() => {
|
|
|
413
413
|
primaryText: t.delivery_method_email_label
|
|
414
414
|
}
|
|
415
415
|
),
|
|
416
|
-
s && (
|
|
417
|
-
|
|
416
|
+
s && (i || l) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
417
|
+
i && /* @__PURE__ */ e(
|
|
418
418
|
P,
|
|
419
419
|
{
|
|
420
|
-
isChecked: !
|
|
421
|
-
isDisabled:
|
|
420
|
+
isChecked: !h && n.sms_channel && !!r.phone,
|
|
421
|
+
isDisabled: h || !r.phone,
|
|
422
422
|
onToggle: () => p({
|
|
423
423
|
...n,
|
|
424
424
|
sms_channel: !n.sms_channel
|
|
@@ -426,12 +426,12 @@ const be = C(() => {
|
|
|
426
426
|
primaryText: t.delivery_method_sms_label
|
|
427
427
|
}
|
|
428
428
|
),
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
i && l && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
430
|
+
l && /* @__PURE__ */ e(
|
|
431
431
|
P,
|
|
432
432
|
{
|
|
433
|
-
isChecked: !
|
|
434
|
-
isDisabled:
|
|
433
|
+
isChecked: !o && n.push_channel,
|
|
434
|
+
isDisabled: o,
|
|
435
435
|
onToggle: () => p({
|
|
436
436
|
...n,
|
|
437
437
|
push_channel: !n.push_channel
|
|
@@ -440,61 +440,61 @@ const be = C(() => {
|
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
442
|
] }) }),
|
|
443
|
-
/* @__PURE__ */ e(
|
|
443
|
+
/* @__PURE__ */ e(v, {})
|
|
444
444
|
] }, n.guid);
|
|
445
445
|
}), z = C(() => {
|
|
446
|
-
const { budgetProfiles: n } =
|
|
447
|
-
return /* @__PURE__ */ e(
|
|
446
|
+
const { budgetProfiles: n } = T();
|
|
447
|
+
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
448
448
|
}), Pe = C(() => {
|
|
449
449
|
const { onEvent: n } = ae(), { settings: t } = D(), {
|
|
450
450
|
clientCommunicationProfile: s,
|
|
451
|
-
updateUserCommunicationProfile:
|
|
452
|
-
userCommunicationsProfile:
|
|
453
|
-
} =
|
|
454
|
-
const
|
|
451
|
+
updateUserCommunicationProfile: l,
|
|
452
|
+
userCommunicationsProfile: i
|
|
453
|
+
} = T(), { user: d } = A(), a = async (o, h) => {
|
|
454
|
+
const r = { ...i, [o]: h };
|
|
455
455
|
if (n) {
|
|
456
|
-
const u =
|
|
457
|
-
|
|
456
|
+
const u = o.split("_")[3];
|
|
457
|
+
h === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
458
458
|
}
|
|
459
|
-
await
|
|
459
|
+
await l(r);
|
|
460
460
|
};
|
|
461
|
-
return /* @__PURE__ */
|
|
461
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
462
462
|
/* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
463
|
-
s.email_notifications_enabled && /* @__PURE__ */
|
|
463
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(B, { children: [
|
|
464
464
|
/* @__PURE__ */ e(
|
|
465
465
|
P,
|
|
466
466
|
{
|
|
467
|
-
isChecked: !!
|
|
468
|
-
isDisabled: !
|
|
469
|
-
onToggle: () =>
|
|
467
|
+
isChecked: !!d.email && !i.opted_out_of_email_notifications,
|
|
468
|
+
isDisabled: !d.email,
|
|
469
|
+
onToggle: () => a(
|
|
470
470
|
"opted_out_of_email_notifications",
|
|
471
|
-
!
|
|
471
|
+
!i.opted_out_of_email_notifications
|
|
472
472
|
),
|
|
473
473
|
primaryText: t.delivery_method_email_title,
|
|
474
|
-
secondaryText:
|
|
474
|
+
secondaryText: d.email && !i.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
|
|
475
475
|
useExtraPadding: !1
|
|
476
476
|
}
|
|
477
477
|
),
|
|
478
|
-
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(
|
|
478
|
+
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
479
479
|
] }),
|
|
480
|
-
s.sms_notifications_enabled && /* @__PURE__ */
|
|
480
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(B, { children: [
|
|
481
481
|
/* @__PURE__ */ e(
|
|
482
482
|
P,
|
|
483
483
|
{
|
|
484
|
-
isChecked: !!
|
|
485
|
-
isDisabled: !
|
|
486
|
-
onToggle: () =>
|
|
484
|
+
isChecked: !!d.phone && !i.opted_out_of_sms_notifications,
|
|
485
|
+
isDisabled: !d.phone,
|
|
486
|
+
onToggle: () => a("opted_out_of_sms_notifications", !i.opted_out_of_sms_notifications),
|
|
487
487
|
primaryText: t.delivery_method_sms_title,
|
|
488
|
-
secondaryText:
|
|
488
|
+
secondaryText: d.phone && !i.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
|
|
489
489
|
useExtraPadding: !1
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
|
-
s.push_notifications_enabled && /* @__PURE__ */ e(
|
|
492
|
+
s.push_notifications_enabled && /* @__PURE__ */ e(v, {})
|
|
493
493
|
] }),
|
|
494
494
|
s.push_notifications_enabled && /* @__PURE__ */ e(
|
|
495
495
|
P,
|
|
496
496
|
{
|
|
497
|
-
isChecked: !
|
|
497
|
+
isChecked: !i.opted_out_of_push_notifications,
|
|
498
498
|
isDisabled: !0,
|
|
499
499
|
onToggle: () => {
|
|
500
500
|
},
|
|
@@ -503,36 +503,36 @@ const be = C(() => {
|
|
|
503
503
|
useExtraPadding: !1
|
|
504
504
|
}
|
|
505
505
|
),
|
|
506
|
-
s.sms_notifications_enabled && /* @__PURE__ */ e(ue, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */
|
|
506
|
+
s.sms_notifications_enabled && /* @__PURE__ */ e(ue, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ c(m, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
507
507
|
/* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
|
|
508
508
|
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
509
509
|
] }) }) })
|
|
510
510
|
] });
|
|
511
511
|
}), $ = C(() => {
|
|
512
|
-
const { insightsProfiles: n } =
|
|
513
|
-
return /* @__PURE__ */ e(
|
|
512
|
+
const { insightsProfiles: n } = T();
|
|
513
|
+
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
514
514
|
}), De = () => {
|
|
515
|
-
const { config: n } = W(), [t, { width: s }] = fe(), { common:
|
|
516
|
-
email:
|
|
517
|
-
phone:
|
|
518
|
-
}), u =
|
|
519
|
-
const { name: I, value: k } = S.target, j = { ...
|
|
520
|
-
_(j),
|
|
515
|
+
const { config: n } = W(), [t, { width: s }] = fe(), { common: l, settings: i } = D(), { updateUser: d } = T(), { user: a } = A(), [o, h] = f.useState(!1), [r, _] = f.useState({
|
|
516
|
+
email: a.email,
|
|
517
|
+
phone: a.phone
|
|
518
|
+
}), u = r.email && !a.email_is_verified && !o, g = r.phone && !a.phone_is_verified && !o, p = (S) => {
|
|
519
|
+
const { name: I, value: k } = S.target, j = { ...r, [I]: k };
|
|
520
|
+
_(j), h(JSON.stringify({ ...a, ...j }) !== JSON.stringify(a));
|
|
521
521
|
}, b = async () => {
|
|
522
|
-
await
|
|
522
|
+
await d({ ...a, ...r }), h(!1);
|
|
523
523
|
};
|
|
524
|
-
return /* @__PURE__ */
|
|
525
|
-
/* @__PURE__ */ e(
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children:
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
n.display_email_edit_field_in_settings && /* @__PURE__ */
|
|
524
|
+
return /* @__PURE__ */ c(m, { ref: t, children: [
|
|
525
|
+
/* @__PURE__ */ e(v, {}),
|
|
526
|
+
/* @__PURE__ */ c(m, { sx: { pt: 12 }, children: [
|
|
527
|
+
/* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
|
|
528
|
+
/* @__PURE__ */ c(m, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
529
|
+
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(m, { sx: { flex: 1, pb: 14 }, children: [
|
|
530
530
|
/* @__PURE__ */ e(
|
|
531
531
|
L,
|
|
532
532
|
{
|
|
533
|
-
defaultValue:
|
|
533
|
+
defaultValue: a.email,
|
|
534
534
|
fullWidth: !0,
|
|
535
|
-
label:
|
|
535
|
+
label: i.email_address,
|
|
536
536
|
name: "email",
|
|
537
537
|
onChange: p
|
|
538
538
|
}
|
|
@@ -553,13 +553,13 @@ const be = C(() => {
|
|
|
553
553
|
}
|
|
554
554
|
)
|
|
555
555
|
] }),
|
|
556
|
-
n.display_sms_edit_field_in_settings && /* @__PURE__ */
|
|
556
|
+
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(m, { sx: { flex: 1, pb: 14 }, children: [
|
|
557
557
|
/* @__PURE__ */ e(
|
|
558
558
|
L,
|
|
559
559
|
{
|
|
560
|
-
defaultValue:
|
|
560
|
+
defaultValue: a.phone,
|
|
561
561
|
fullWidth: !0,
|
|
562
|
-
label:
|
|
562
|
+
label: i.mobile_number,
|
|
563
563
|
name: "phone",
|
|
564
564
|
onChange: p
|
|
565
565
|
}
|
|
@@ -584,77 +584,75 @@ const be = C(() => {
|
|
|
584
584
|
/* @__PURE__ */ e(
|
|
585
585
|
R,
|
|
586
586
|
{
|
|
587
|
-
disabled: !
|
|
587
|
+
disabled: !o,
|
|
588
588
|
onClick: b,
|
|
589
589
|
sx: { width: 84 },
|
|
590
590
|
variant: "contained",
|
|
591
|
-
children:
|
|
591
|
+
children: l.save_button
|
|
592
592
|
}
|
|
593
593
|
)
|
|
594
594
|
] })
|
|
595
595
|
] });
|
|
596
596
|
}, Se = C(De), ct = C(
|
|
597
597
|
({
|
|
598
|
-
|
|
599
|
-
|
|
598
|
+
notificationTypes: n = [y.Accounts, y.Budgets],
|
|
599
|
+
showPersonalDetails: t = !1,
|
|
600
|
+
view: s
|
|
600
601
|
}) => {
|
|
601
|
-
const { config:
|
|
602
|
+
const { config: l } = W(), { settings: i } = D(), { isInitialized: d } = ce(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = T(), h = ge(), [r, _] = f.useState(
|
|
602
603
|
void 0
|
|
603
|
-
)
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
]
|
|
607
|
-
if (i && _.push(y.Insights), f.useEffect(() => {
|
|
608
|
-
o && c().finally();
|
|
609
|
-
}, [o]), !o)
|
|
604
|
+
);
|
|
605
|
+
if (h && n.push(y.Insights), f.useEffect(() => {
|
|
606
|
+
d && o().finally();
|
|
607
|
+
}, [d]), !d)
|
|
610
608
|
return /* @__PURE__ */ e(ye, {});
|
|
611
|
-
let u =
|
|
612
|
-
|
|
609
|
+
let u = i.manage_account_notifications;
|
|
610
|
+
r === y.Budgets ? u = i.manage_budget_notifications : r === y.Insights && (u = i.manage_insights_notifications);
|
|
613
611
|
const {
|
|
614
612
|
email_notifications_enabled: g,
|
|
615
613
|
sms_notifications_enabled: p,
|
|
616
614
|
push_notifications_enabled: b
|
|
617
|
-
} =
|
|
618
|
-
if (
|
|
615
|
+
} = a, S = g || p || b;
|
|
616
|
+
if (s === "accounts")
|
|
619
617
|
return /* @__PURE__ */ e(H, {});
|
|
620
|
-
if (
|
|
618
|
+
if (s === "budgets")
|
|
621
619
|
return /* @__PURE__ */ e(z, {});
|
|
622
|
-
if (
|
|
620
|
+
if (s === "insights")
|
|
623
621
|
return /* @__PURE__ */ e($, {});
|
|
624
|
-
const I =
|
|
625
|
-
return /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */
|
|
627
|
-
S && /* @__PURE__ */
|
|
622
|
+
const I = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, k = t && a.can_edit_contact_info && I;
|
|
623
|
+
return /* @__PURE__ */ c(m, { sx: { pt: S ? 0 : 24 }, children: [
|
|
624
|
+
/* @__PURE__ */ c(m, { sx: { px: 24 }, children: [
|
|
625
|
+
S && /* @__PURE__ */ c(B, { children: [
|
|
628
626
|
/* @__PURE__ */ e(Pe, {}),
|
|
629
|
-
/* @__PURE__ */ e(
|
|
627
|
+
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
630
628
|
] }),
|
|
631
|
-
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children:
|
|
629
|
+
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
632
630
|
] }),
|
|
633
|
-
/* @__PURE__ */
|
|
634
|
-
|
|
635
|
-
/* @__PURE__ */ e(N, { primary:
|
|
631
|
+
/* @__PURE__ */ c(E, { children: [
|
|
632
|
+
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Accounts), children: [
|
|
633
|
+
/* @__PURE__ */ e(N, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
636
634
|
/* @__PURE__ */ e(w, {})
|
|
637
635
|
] }) }),
|
|
638
|
-
|
|
639
|
-
/* @__PURE__ */ e(N, { primary:
|
|
636
|
+
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Budgets), children: [
|
|
637
|
+
/* @__PURE__ */ e(N, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
640
638
|
/* @__PURE__ */ e(w, {})
|
|
641
639
|
] }) }),
|
|
642
|
-
|
|
643
|
-
/* @__PURE__ */ e(N, { primary:
|
|
640
|
+
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Insights), children: [
|
|
641
|
+
/* @__PURE__ */ e(N, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
644
642
|
/* @__PURE__ */ e(w, {})
|
|
645
643
|
] }) })
|
|
646
644
|
] }),
|
|
647
|
-
k && /* @__PURE__ */ e(
|
|
645
|
+
k && /* @__PURE__ */ e(m, { sx: { px: 24 }, children: /* @__PURE__ */ e(Se, {}) }),
|
|
648
646
|
/* @__PURE__ */ e(
|
|
649
647
|
J,
|
|
650
648
|
{
|
|
651
|
-
isOpen: !!
|
|
652
|
-
onClose: () =>
|
|
649
|
+
isOpen: !!r,
|
|
650
|
+
onClose: () => _(void 0),
|
|
653
651
|
title: u,
|
|
654
|
-
children: /* @__PURE__ */
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
652
|
+
children: /* @__PURE__ */ c(m, { children: [
|
|
653
|
+
r === y.Accounts && /* @__PURE__ */ e(H, {}),
|
|
654
|
+
r === y.Budgets && /* @__PURE__ */ e(z, {}),
|
|
655
|
+
r === y.Insights && /* @__PURE__ */ e($, {})
|
|
658
656
|
] })
|
|
659
657
|
}
|
|
660
658
|
)
|
|
@@ -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-aGCHxikw.mjs";
|
|
4
4
|
import { T as m } from "./TransactionApi-DbbcjI2L.mjs";
|
|
5
5
|
class y {
|
|
6
6
|
fetchInstance;
|
package/dist/common/index.es.js
CHANGED
|
@@ -32,7 +32,7 @@ import { E as Sa } from "../EmptyState-C0lr9E5T.mjs";
|
|
|
32
32
|
import { L as wa } from "../ListItemAction-BgKx_n6d.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-pvzHAX6B.mjs";
|
|
34
34
|
import { L as Ca, S as Da } from "../TrendsStore-pvzHAX6B.mjs";
|
|
35
|
-
import { A as Aa, B as Ea, I as Ta, N as Ba, T as Ia, a as Na } from "../Notification-
|
|
35
|
+
import { A as Aa, B as Ea, I as Ta, N as Ba, T as Ia, a as Na } from "../Notification-aGCHxikw.mjs";
|
|
36
36
|
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
37
37
|
import dt, { useRef as lt, useEffect as ut } from "react";
|
|
38
38
|
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
@@ -67,7 +67,7 @@ import { a as Ct } from "../FinstrongStore-mkALvztw.mjs";
|
|
|
67
67
|
import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
68
68
|
import { M as Tt } from "../MerchantStore-DVH-QOf0.mjs";
|
|
69
69
|
import { N as Bt } from "../NetWorthStore-DWG9Mkuu.mjs";
|
|
70
|
-
import { a as It } from "../SettingsStore-
|
|
70
|
+
import { a as It } from "../SettingsStore-B0kRTFjD.mjs";
|
|
71
71
|
import { addMonths as Nt } from "date-fns/addMonths";
|
|
72
72
|
import { getMonth as T } from "date-fns/getMonth";
|
|
73
73
|
import { i as Jr } from "../DateUtil-BcuH7ErC.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as f, B as C } from "../Notification-
|
|
1
|
+
import { A as f, B as C } from "../Notification-aGCHxikw.mjs";
|
|
2
2
|
import { A as _ } from "../Fetch-CkFKy79O.mjs";
|
|
3
3
|
import { s as L } from "../NotificationStore-DHtSGySy.mjs";
|
|
4
4
|
import { N as Nt, f as St } from "../NotificationStore-DHtSGySy.mjs";
|
|
@@ -17,7 +17,7 @@ import P from "@mui/material/Button";
|
|
|
17
17
|
import W from "@mui/material/Stack";
|
|
18
18
|
import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import $ from "@mui/material/IconButton";
|
|
20
|
-
import { N as H } from "../NotificationSettings-
|
|
20
|
+
import { N as H } from "../NotificationSettings-CECTkOug.mjs";
|
|
21
21
|
import { D as b } from "../Drawer-kEE73B87.mjs";
|
|
22
22
|
const yt = (e) => {
|
|
23
23
|
switch (e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Jt, a as Kt } from "../SettingsStore-
|
|
1
|
+
import { S as Jt, a as Kt } from "../SettingsStore-B0kRTFjD.mjs";
|
|
2
2
|
import { jsxs as c, Fragment as q, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import h from "react";
|
|
4
4
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -16,8 +16,8 @@ import F from "@mui/material/Box";
|
|
|
16
16
|
import Q from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
18
|
import { H3 as J, P as H, Text as x, Icon as M, ChevronRightIcon as xe } from "@mxenabled/mxui";
|
|
19
|
-
import { V as ve, a as Ce, N as G } from "../NotificationSettings-
|
|
20
|
-
import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-
|
|
19
|
+
import { V as ve, a as Ce, N as G } from "../NotificationSettings-CECTkOug.mjs";
|
|
20
|
+
import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-CECTkOug.mjs";
|
|
21
21
|
import { u as k, m as $, r as A, o as De, a as Z, l as ee } from "../hooks-DlI63qSB.mjs";
|
|
22
22
|
import { u as L } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import { a as W } from "../Dialog-CWW597AF.mjs";
|