@mx-cartographer/experiences 7.0.27-alpha.sms5 → 7.0.27-alpha.sms8
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/dist/{Account-BW3-oYEs.mjs → Account-CK-DrCEa.mjs} +1 -1
- package/dist/{AccountDetailsContent-UxSEMBo_.mjs → AccountDetailsContent-BZAbCT6q.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-DXTi1p0V.mjs} +11 -11
- package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-Bxvi1C4Z.mjs} +2 -2
- package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-CnE3rCVZ.mjs} +3 -3
- package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-DiGbJBUT.mjs} +2 -2
- package/dist/{Accounts-CA-nqAjT.mjs → Accounts-BBkQjUmS.mjs} +1 -1
- package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-D5jO0box.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-joMax4Fb.mjs} +1 -1
- package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-D86nRDxQ.mjs} +1 -1
- package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-BkNr5Up0.mjs} +2 -2
- package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-BkflFU_-.mjs} +1 -1
- package/dist/{DebtsStore-VkyMADzd.mjs → DebtsStore-qrqY9Abz.mjs} +1 -1
- package/dist/{ExportCsvAction-CbdFfDV5.mjs → ExportCsvAction-DRfdZis1.mjs} +3 -3
- package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-BQRcowCN.mjs} +2 -2
- package/dist/{Help-KAAMEubC.mjs → Help-B3dFeYi2.mjs} +1 -1
- package/dist/{LineChart-BWWmmJxV.mjs → LineChart-Dyps2sOy.mjs} +1 -1
- package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-BgKx_n6d.mjs} +1 -1
- package/dist/{ManageIncome-DbsiKUoO.mjs → ManageIncome-CFh-N0KK.mjs} +4 -4
- package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-DPDsZIiS.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-BzW7V_04.mjs} +1 -1
- package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-DWG9Mkuu.mjs} +2 -2
- package/dist/{Notification-ByMBpJ5u.mjs → Notification-BVD8as0c.mjs} +15 -14
- package/dist/{NotificationSettings-D9eiZJk9.mjs → NotificationSettings-_hGMhOGj.mjs} +199 -196
- package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-B--pIAF0.mjs} +3 -3
- package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-C9TjSuS_.mjs} +3 -3
- package/dist/{SettingsStore-B4gi6oOw.mjs → SettingsStore-C3ZqstUx.mjs} +1 -1
- package/dist/{TransactionDetails-C-z3HGTT.mjs → TransactionDetails-C2gYzV0z.mjs} +37 -37
- package/dist/{TransactionStore-Cep_Eeql.mjs → TransactionStore-CZOvxcSw.mjs} +2 -2
- package/dist/{TrendsStore-WrHxzdbQ.mjs → TrendsStore-pvzHAX6B.mjs} +225 -231
- package/dist/{User-Dq9Qj764.mjs → User-D-O9EHMb.mjs} +1 -1
- package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-Bn6JPnY3.mjs} +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +106 -105
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-B5qAKd6C.mjs → exportTransactionsToCSV-zyHeWfQo.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +11 -11
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-DkUqN6JE.mjs → hooks-DlI63qSB.mjs} +8 -8
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +3 -3
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +14 -14
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +70 -69
- package/dist/useInsightsEnabled-fGr6xrSj.mjs +11 -0
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
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
|
-
import { observer as
|
|
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 N from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
|
-
import
|
|
10
|
-
import { ChevronRight as
|
|
11
|
-
import { Text as
|
|
9
|
+
import m from "@mui/material/Stack";
|
|
10
|
+
import { ChevronRight as w, ExpandMore as K, Star as Q } from "@mxenabled/mx-icons";
|
|
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
|
|
18
|
-
import { u as D, r as T, o as
|
|
19
|
-
import { b as
|
|
17
|
+
import { A as oe, T as F, a as P, N as y } from "./Notification-BVD8as0c.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
|
+
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-BkflFU_-.mjs";
|
|
23
23
|
import { u as he } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
25
25
|
import _e from "@mui/material/Collapse";
|
|
@@ -30,23 +30,24 @@ import R from "@mui/material/Button";
|
|
|
30
30
|
import L from "@mui/material/TextField";
|
|
31
31
|
import { u as fe } from "./useDimensions-27p2evRx.mjs";
|
|
32
32
|
import X from "@mui/material/styles/useTheme";
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
import { u as ge } from "./useInsightsEnabled-fGr6xrSj.mjs";
|
|
34
|
+
import { L as ye } from "./Loader-DUaFpDGv.mjs";
|
|
35
|
+
const be = C(() => {
|
|
36
|
+
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: l } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
|
|
36
37
|
a(!1);
|
|
37
|
-
},
|
|
38
|
+
}, h = () => {
|
|
38
39
|
a(!0);
|
|
39
40
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
/* @__PURE__ */ e(
|
|
41
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ c(R, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
43
|
+
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
|
44
|
+
/* @__PURE__ */ e(w, {})
|
|
44
45
|
] }),
|
|
45
46
|
/* @__PURE__ */ e(
|
|
46
|
-
|
|
47
|
+
M,
|
|
47
48
|
{
|
|
48
49
|
copy: { title: "" },
|
|
49
|
-
isOpen:
|
|
50
|
+
isOpen: d,
|
|
50
51
|
onClose: o,
|
|
51
52
|
onPrimaryAction: s,
|
|
52
53
|
onSecondaryAction: o,
|
|
@@ -60,11 +61,11 @@ const ye = x(() => {
|
|
|
60
61
|
justifyContent: "center"
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
|
-
children: /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
64
|
+
children: /* @__PURE__ */ c(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
65
|
+
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
66
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
66
67
|
/* @__PURE__ */ e(
|
|
67
|
-
|
|
68
|
+
x,
|
|
68
69
|
{
|
|
69
70
|
sx: {
|
|
70
71
|
border: `1px solid ${i.palette.border.light}`,
|
|
@@ -72,27 +73,27 @@ const ye = x(() => {
|
|
|
72
73
|
p: "16px 32px"
|
|
73
74
|
},
|
|
74
75
|
variant: "H3",
|
|
75
|
-
children:
|
|
76
|
+
children: l.email
|
|
76
77
|
}
|
|
77
78
|
),
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_email })
|
|
79
80
|
] })
|
|
80
81
|
}
|
|
81
82
|
)
|
|
82
83
|
] });
|
|
83
|
-
}),
|
|
84
|
+
}), xe = C(
|
|
84
85
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
85
|
-
const { common:
|
|
86
|
+
const { common: l, settings: i } = D(), [d, a] = f.useState("");
|
|
86
87
|
return /* @__PURE__ */ e(
|
|
87
|
-
|
|
88
|
+
M,
|
|
88
89
|
{
|
|
89
90
|
copy: { title: i.enter_verification_code },
|
|
90
91
|
isOpen: s,
|
|
91
92
|
onClose: n,
|
|
92
|
-
onPrimaryAction: () => t(
|
|
93
|
+
onPrimaryAction: () => t(d),
|
|
93
94
|
onSecondaryAction: n,
|
|
94
95
|
primaryText: i.verify,
|
|
95
|
-
secondaryText:
|
|
96
|
+
secondaryText: l.cancel_button,
|
|
96
97
|
sx: {
|
|
97
98
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
98
99
|
"& .MuiToolbar-root:last-child": {
|
|
@@ -101,31 +102,31 @@ const ye = x(() => {
|
|
|
101
102
|
justifyContent: "flex-end"
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
|
-
children: /* @__PURE__ */ e(
|
|
105
|
+
children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(L, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: d }) })
|
|
105
106
|
}
|
|
106
107
|
);
|
|
107
108
|
}
|
|
108
|
-
),
|
|
109
|
-
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken:
|
|
109
|
+
), Ce = C(() => {
|
|
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), _ = () => {
|
|
110
111
|
o(!1);
|
|
111
112
|
}, u = () => {
|
|
112
113
|
o(!0);
|
|
113
114
|
}, g = () => {
|
|
114
115
|
s().finally(() => {
|
|
115
|
-
|
|
116
|
+
r(!0);
|
|
116
117
|
});
|
|
117
|
-
}, p = (
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
}, p = (b) => {
|
|
119
|
+
l(b).finally(() => {
|
|
120
|
+
r(!1);
|
|
120
121
|
});
|
|
121
122
|
};
|
|
122
|
-
return /* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
/* @__PURE__ */ e(
|
|
123
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
124
|
+
/* @__PURE__ */ c(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
125
|
+
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
|
126
|
+
/* @__PURE__ */ e(w, {})
|
|
126
127
|
] }),
|
|
127
128
|
/* @__PURE__ */ e(
|
|
128
|
-
|
|
129
|
+
M,
|
|
129
130
|
{
|
|
130
131
|
copy: { title: "" },
|
|
131
132
|
isOpen: a,
|
|
@@ -142,14 +143,14 @@ const ye = x(() => {
|
|
|
142
143
|
justifyContent: "center"
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
|
-
children: /* @__PURE__ */
|
|
146
|
-
/* @__PURE__ */ e(
|
|
147
|
-
/* @__PURE__ */ e(
|
|
146
|
+
children: /* @__PURE__ */ c(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
147
|
+
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
148
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
148
149
|
/* @__PURE__ */ e(
|
|
149
|
-
|
|
150
|
+
x,
|
|
150
151
|
{
|
|
151
152
|
sx: {
|
|
152
|
-
border: `1px solid ${
|
|
153
|
+
border: `1px solid ${d.palette.border.light}`,
|
|
153
154
|
borderRadius: "4px",
|
|
154
155
|
p: "16px 32px"
|
|
155
156
|
},
|
|
@@ -157,30 +158,30 @@ const ye = x(() => {
|
|
|
157
158
|
children: i.phone
|
|
158
159
|
}
|
|
159
160
|
),
|
|
160
|
-
/* @__PURE__ */ e(
|
|
161
|
+
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_phone })
|
|
161
162
|
] })
|
|
162
163
|
}
|
|
163
164
|
),
|
|
164
165
|
/* @__PURE__ */ e(
|
|
165
|
-
|
|
166
|
+
xe,
|
|
166
167
|
{
|
|
167
|
-
handleClose: () =>
|
|
168
|
+
handleClose: () => r(!1),
|
|
168
169
|
handleVerify: p,
|
|
169
|
-
isOpen:
|
|
170
|
+
isOpen: h
|
|
170
171
|
}
|
|
171
172
|
)
|
|
172
173
|
] });
|
|
173
|
-
}),
|
|
174
|
+
}), ve = C(
|
|
174
175
|
({ onProfileUpdated: n, profile: t }) => {
|
|
175
|
-
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(
|
|
176
177
|
t.account?.day_payment_is_due || 0
|
|
177
|
-
), p = t.account?.name || t.account?.feed_name || "",
|
|
178
|
+
), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? le(
|
|
178
179
|
i.notification_debt_payment_date,
|
|
179
180
|
re(t.account?.day_payment_is_due)
|
|
180
|
-
) : i.notification_debt_payment_zero_state, S = a ?
|
|
181
|
-
a && t.account ? await
|
|
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 });
|
|
182
183
|
};
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
184
185
|
/* @__PURE__ */ e(
|
|
185
186
|
F,
|
|
186
187
|
{
|
|
@@ -191,10 +192,10 @@ const ye = x(() => {
|
|
|
191
192
|
institutionGuid: t.account?.institution_guid
|
|
192
193
|
}
|
|
193
194
|
) : void 0,
|
|
194
|
-
endIcon: /* @__PURE__ */ e(
|
|
195
|
+
endIcon: /* @__PURE__ */ e(w, {}),
|
|
195
196
|
isChecked: t.is_enabled,
|
|
196
197
|
isPrimaryTextBold: !0,
|
|
197
|
-
onClick: () =>
|
|
198
|
+
onClick: () => h(!0),
|
|
198
199
|
onToggle: () => n({
|
|
199
200
|
...t,
|
|
200
201
|
is_enabled: !t.is_enabled
|
|
@@ -204,24 +205,24 @@ const ye = x(() => {
|
|
|
204
205
|
}
|
|
205
206
|
),
|
|
206
207
|
/* @__PURE__ */ e(
|
|
207
|
-
|
|
208
|
+
M,
|
|
208
209
|
{
|
|
209
210
|
copy: {
|
|
210
|
-
title: a ?
|
|
211
|
+
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
211
212
|
close_aria: s.close_aria
|
|
212
213
|
},
|
|
213
214
|
disablePrimaryButton: a && u === 0,
|
|
214
215
|
isOpen: o,
|
|
215
|
-
onClose: () =>
|
|
216
|
-
onPrimaryAction:
|
|
216
|
+
onClose: () => h(!1),
|
|
217
|
+
onPrimaryAction: I,
|
|
217
218
|
primaryText: s.save_button,
|
|
218
219
|
children: a ? /* @__PURE__ */ e(ne, { dateAdapter: ie, children: /* @__PURE__ */ e(
|
|
219
220
|
te,
|
|
220
221
|
{
|
|
221
222
|
maxDate: Z(/* @__PURE__ */ new Date()),
|
|
222
223
|
minDate: ee(/* @__PURE__ */ new Date()),
|
|
223
|
-
onChange: (
|
|
224
|
-
g(
|
|
224
|
+
onChange: (k) => {
|
|
225
|
+
g(k.getDate());
|
|
225
226
|
},
|
|
226
227
|
slots: {
|
|
227
228
|
// Hides the arrows
|
|
@@ -239,11 +240,11 @@ const ye = x(() => {
|
|
|
239
240
|
) }) : /* @__PURE__ */ e(
|
|
240
241
|
me,
|
|
241
242
|
{
|
|
242
|
-
amount:
|
|
243
|
+
amount: r,
|
|
243
244
|
autoFocus: !0,
|
|
244
245
|
fullWidth: !0,
|
|
245
246
|
minAmount: 0,
|
|
246
|
-
setAmount: (
|
|
247
|
+
setAmount: (k) => _(Number(k) || 0),
|
|
247
248
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
248
249
|
}
|
|
249
250
|
)
|
|
@@ -251,50 +252,50 @@ const ye = x(() => {
|
|
|
251
252
|
)
|
|
252
253
|
] });
|
|
253
254
|
}
|
|
254
|
-
),
|
|
255
|
+
), Te = C(
|
|
255
256
|
({ onUpdateProfile: n, profile: t }) => {
|
|
256
|
-
const { settings: s } = D(), { user:
|
|
257
|
-
opted_out_of_email_notifications:
|
|
258
|
-
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,
|
|
259
260
|
opted_out_of_sms_notifications: _
|
|
260
|
-
} =
|
|
261
|
+
} = d, {
|
|
261
262
|
email_notifications_enabled: u,
|
|
262
263
|
push_notifications_enabled: g,
|
|
263
264
|
sms_notifications_enabled: p
|
|
264
265
|
} = i;
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
(u || p || g) && /* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
u && /* @__PURE__ */ e(
|
|
266
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
267
|
+
(u || p || g) && /* @__PURE__ */ c(B, { children: [
|
|
268
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
269
|
+
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
270
|
+
u && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
270
271
|
P,
|
|
271
272
|
{
|
|
272
|
-
isChecked: !
|
|
273
|
-
isDisabled:
|
|
273
|
+
isChecked: !h && t.email_channel && !!l.email,
|
|
274
|
+
isDisabled: h || !l.email,
|
|
274
275
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
275
276
|
primaryText: s.delivery_method_email_label,
|
|
276
|
-
secondaryText:
|
|
277
|
+
secondaryText: h || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
277
278
|
useExtraPadding: !1
|
|
278
279
|
}
|
|
279
280
|
) }),
|
|
280
281
|
u && (p || g) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
281
|
-
p && /* @__PURE__ */ e(
|
|
282
|
+
p && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
282
283
|
P,
|
|
283
284
|
{
|
|
284
|
-
isChecked: !_ && t.sms_channel && !!
|
|
285
|
-
isDisabled: _ || !
|
|
285
|
+
isChecked: !_ && t.sms_channel && !!l.phone,
|
|
286
|
+
isDisabled: _ || !l.phone,
|
|
286
287
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
287
288
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
288
|
-
secondaryText: _ || !t.sms_channel || !
|
|
289
|
+
secondaryText: _ || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
289
290
|
useExtraPadding: !1
|
|
290
291
|
}
|
|
291
292
|
) }),
|
|
292
293
|
p && g && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
293
|
-
g && /* @__PURE__ */ e(
|
|
294
|
+
g && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
294
295
|
P,
|
|
295
296
|
{
|
|
296
|
-
isChecked: !
|
|
297
|
-
isDisabled:
|
|
297
|
+
isChecked: !r && t.push_channel,
|
|
298
|
+
isDisabled: r,
|
|
298
299
|
onToggle: () => n({ ...t, push_channel: !t.push_channel }),
|
|
299
300
|
primaryText: s.delivery_method_push_label,
|
|
300
301
|
secondaryText: s.delivery_method_push_subtitle,
|
|
@@ -304,24 +305,24 @@ const ye = x(() => {
|
|
|
304
305
|
/* @__PURE__ */ e(v, {})
|
|
305
306
|
] })
|
|
306
307
|
] }),
|
|
307
|
-
o && !!t.children?.length && /* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((
|
|
310
|
-
|
|
308
|
+
o && !!t.children?.length && /* @__PURE__ */ c(m, { children: [
|
|
309
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
310
|
+
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((b) => /* @__PURE__ */ e(
|
|
311
|
+
ve,
|
|
311
312
|
{
|
|
312
313
|
onProfileUpdated: n,
|
|
313
|
-
profile:
|
|
314
|
+
profile: b
|
|
314
315
|
},
|
|
315
|
-
|
|
316
|
+
b.guid
|
|
316
317
|
)) })
|
|
317
318
|
] })
|
|
318
319
|
] });
|
|
319
320
|
}
|
|
320
|
-
), H =
|
|
321
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s,
|
|
321
|
+
), H = C(() => {
|
|
322
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
322
323
|
() => n.find((o) => o.guid === s),
|
|
323
324
|
[n, s]
|
|
324
|
-
),
|
|
325
|
+
), d = async (o) => {
|
|
325
326
|
await t({
|
|
326
327
|
...o,
|
|
327
328
|
is_enabled: !o.is_enabled
|
|
@@ -329,15 +330,15 @@ const ye = x(() => {
|
|
|
329
330
|
}, a = async (o) => {
|
|
330
331
|
await t(o);
|
|
331
332
|
};
|
|
332
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ c(m, { sx: { backgroundColor: "background.paper" }, children: [
|
|
333
334
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
334
335
|
F,
|
|
335
336
|
{
|
|
336
|
-
endIcon: /* @__PURE__ */ e(
|
|
337
|
+
endIcon: /* @__PURE__ */ e(w, {}),
|
|
337
338
|
isChecked: o.is_enabled,
|
|
338
339
|
isDisabled: !o.is_enabled,
|
|
339
|
-
onClick: () =>
|
|
340
|
-
onToggle: () =>
|
|
340
|
+
onClick: () => l(o.guid),
|
|
341
|
+
onToggle: () => d(o),
|
|
341
342
|
primaryText: o.label,
|
|
342
343
|
secondaryText: o.is_enabled ? o.deliveryMethodsLabel : void 0
|
|
343
344
|
},
|
|
@@ -347,10 +348,10 @@ const ye = x(() => {
|
|
|
347
348
|
J,
|
|
348
349
|
{
|
|
349
350
|
isOpen: !!i,
|
|
350
|
-
onClose: () =>
|
|
351
|
+
onClose: () => l(""),
|
|
351
352
|
title: i ? i.label : "",
|
|
352
353
|
children: i && /* @__PURE__ */ e(
|
|
353
|
-
|
|
354
|
+
Te,
|
|
354
355
|
{
|
|
355
356
|
onUpdateProfile: a,
|
|
356
357
|
profile: i
|
|
@@ -359,31 +360,29 @@ const ye = x(() => {
|
|
|
359
360
|
}
|
|
360
361
|
)
|
|
361
362
|
] });
|
|
362
|
-
}), q =
|
|
363
|
+
}), q = C(({ profile: n }) => {
|
|
363
364
|
const { settings: t } = D(), {
|
|
364
365
|
clientCommunicationProfile: {
|
|
365
366
|
email_notifications_enabled: s,
|
|
366
|
-
push_notifications_enabled:
|
|
367
|
+
push_notifications_enabled: l,
|
|
367
368
|
sms_notifications_enabled: i
|
|
368
369
|
},
|
|
369
|
-
updateNotificationProfile:
|
|
370
|
+
updateNotificationProfile: d,
|
|
370
371
|
userCommunicationsProfile: {
|
|
371
372
|
opted_out_of_email_notifications: a,
|
|
372
373
|
opted_out_of_push_notifications: o,
|
|
373
|
-
opted_out_of_sms_notifications:
|
|
374
|
+
opted_out_of_sms_notifications: h
|
|
374
375
|
}
|
|
375
|
-
} = T()
|
|
376
|
-
console.log("in profile?");
|
|
377
|
-
const { user: m } = w(), [_, u] = f.useState(!1), g = async () => {
|
|
376
|
+
} = T(), { user: r } = A(), [_, u] = f.useState(!1), g = async () => {
|
|
378
377
|
await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
|
379
378
|
}, p = async (S) => {
|
|
380
|
-
await
|
|
381
|
-
},
|
|
382
|
-
return /* @__PURE__ */
|
|
379
|
+
await d(S);
|
|
380
|
+
}, b = s || i || l;
|
|
381
|
+
return /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
383
382
|
/* @__PURE__ */ e(
|
|
384
383
|
F,
|
|
385
384
|
{
|
|
386
|
-
endIcon:
|
|
385
|
+
endIcon: b ? /* @__PURE__ */ e(
|
|
387
386
|
K,
|
|
388
387
|
{
|
|
389
388
|
sx: {
|
|
@@ -401,12 +400,12 @@ const ye = x(() => {
|
|
|
401
400
|
},
|
|
402
401
|
n.guid
|
|
403
402
|
),
|
|
404
|
-
|
|
403
|
+
b && /* @__PURE__ */ e(_e, { in: _, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
405
404
|
s && /* @__PURE__ */ e(
|
|
406
405
|
P,
|
|
407
406
|
{
|
|
408
|
-
isChecked: !a && n.email_channel && !!
|
|
409
|
-
isDisabled: a || !
|
|
407
|
+
isChecked: !a && n.email_channel && !!r.email,
|
|
408
|
+
isDisabled: a || !r.email,
|
|
410
409
|
onToggle: () => p({
|
|
411
410
|
...n,
|
|
412
411
|
email_channel: !n.email_channel
|
|
@@ -414,12 +413,12 @@ const ye = x(() => {
|
|
|
414
413
|
primaryText: t.delivery_method_email_label
|
|
415
414
|
}
|
|
416
415
|
),
|
|
417
|
-
s && (i ||
|
|
416
|
+
s && (i || l) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
418
417
|
i && /* @__PURE__ */ e(
|
|
419
418
|
P,
|
|
420
419
|
{
|
|
421
|
-
isChecked: !
|
|
422
|
-
isDisabled:
|
|
420
|
+
isChecked: !h && n.sms_channel && !!r.phone,
|
|
421
|
+
isDisabled: h || !r.phone,
|
|
423
422
|
onToggle: () => p({
|
|
424
423
|
...n,
|
|
425
424
|
sms_channel: !n.sms_channel
|
|
@@ -427,8 +426,8 @@ const ye = x(() => {
|
|
|
427
426
|
primaryText: t.delivery_method_sms_label
|
|
428
427
|
}
|
|
429
428
|
),
|
|
430
|
-
i &&
|
|
431
|
-
|
|
429
|
+
i && l && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
430
|
+
l && /* @__PURE__ */ e(
|
|
432
431
|
P,
|
|
433
432
|
{
|
|
434
433
|
isChecked: !o && n.push_channel,
|
|
@@ -443,50 +442,50 @@ const ye = x(() => {
|
|
|
443
442
|
] }) }),
|
|
444
443
|
/* @__PURE__ */ e(v, {})
|
|
445
444
|
] }, n.guid);
|
|
446
|
-
}), z =
|
|
445
|
+
}), z = C(() => {
|
|
447
446
|
const { budgetProfiles: n } = T();
|
|
448
|
-
return /* @__PURE__ */ e(
|
|
449
|
-
}),
|
|
447
|
+
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
448
|
+
}), Pe = C(() => {
|
|
450
449
|
const { onEvent: n } = ae(), { settings: t } = D(), {
|
|
451
450
|
clientCommunicationProfile: s,
|
|
452
|
-
updateUserCommunicationProfile:
|
|
451
|
+
updateUserCommunicationProfile: l,
|
|
453
452
|
userCommunicationsProfile: i
|
|
454
|
-
} = T(), { user:
|
|
455
|
-
const
|
|
453
|
+
} = T(), { user: d } = A(), a = async (o, h) => {
|
|
454
|
+
const r = { ...i, [o]: h };
|
|
456
455
|
if (n) {
|
|
457
456
|
const u = o.split("_")[3];
|
|
458
|
-
|
|
457
|
+
h === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
459
458
|
}
|
|
460
|
-
await
|
|
459
|
+
await l(r);
|
|
461
460
|
};
|
|
462
|
-
return /* @__PURE__ */
|
|
461
|
+
return /* @__PURE__ */ c(m, { children: [
|
|
463
462
|
/* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
464
|
-
s.email_notifications_enabled && /* @__PURE__ */
|
|
463
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(B, { children: [
|
|
465
464
|
/* @__PURE__ */ e(
|
|
466
465
|
P,
|
|
467
466
|
{
|
|
468
|
-
isChecked: !!
|
|
469
|
-
isDisabled: !
|
|
467
|
+
isChecked: !!d.email && !i.opted_out_of_email_notifications,
|
|
468
|
+
isDisabled: !d.email,
|
|
470
469
|
onToggle: () => a(
|
|
471
470
|
"opted_out_of_email_notifications",
|
|
472
471
|
!i.opted_out_of_email_notifications
|
|
473
472
|
),
|
|
474
473
|
primaryText: t.delivery_method_email_title,
|
|
475
|
-
secondaryText:
|
|
474
|
+
secondaryText: d.email && !i.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
|
|
476
475
|
useExtraPadding: !1
|
|
477
476
|
}
|
|
478
477
|
),
|
|
479
478
|
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
480
479
|
] }),
|
|
481
|
-
s.sms_notifications_enabled && /* @__PURE__ */
|
|
480
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(B, { children: [
|
|
482
481
|
/* @__PURE__ */ e(
|
|
483
482
|
P,
|
|
484
483
|
{
|
|
485
|
-
isChecked: !!
|
|
486
|
-
isDisabled: !
|
|
484
|
+
isChecked: !!d.phone && !i.opted_out_of_sms_notifications,
|
|
485
|
+
isDisabled: !d.phone,
|
|
487
486
|
onToggle: () => a("opted_out_of_sms_notifications", !i.opted_out_of_sms_notifications),
|
|
488
487
|
primaryText: t.delivery_method_sms_title,
|
|
489
|
-
secondaryText:
|
|
488
|
+
secondaryText: d.phone && !i.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
|
|
490
489
|
useExtraPadding: !1
|
|
491
490
|
}
|
|
492
491
|
),
|
|
@@ -504,30 +503,30 @@ const ye = x(() => {
|
|
|
504
503
|
useExtraPadding: !1
|
|
505
504
|
}
|
|
506
505
|
),
|
|
507
|
-
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: [
|
|
508
507
|
/* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
|
|
509
|
-
/* @__PURE__ */ e(
|
|
508
|
+
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
510
509
|
] }) }) })
|
|
511
510
|
] });
|
|
512
|
-
}), $ =
|
|
511
|
+
}), $ = C(() => {
|
|
513
512
|
const { insightsProfiles: n } = T();
|
|
514
|
-
return
|
|
515
|
-
}),
|
|
516
|
-
const { config: n } = W(), [t, { width: s }] = fe(), { common:
|
|
513
|
+
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
514
|
+
}), De = () => {
|
|
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({
|
|
517
516
|
email: a.email,
|
|
518
517
|
phone: a.phone
|
|
519
|
-
}), u =
|
|
520
|
-
const { name:
|
|
521
|
-
_(j),
|
|
522
|
-
},
|
|
523
|
-
await
|
|
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
|
+
}, b = async () => {
|
|
522
|
+
await d({ ...a, ...r }), h(!1);
|
|
524
523
|
};
|
|
525
|
-
return /* @__PURE__ */
|
|
524
|
+
return /* @__PURE__ */ c(m, { ref: t, children: [
|
|
526
525
|
/* @__PURE__ */ e(v, {}),
|
|
527
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ c(m, { sx: { pt: 12 }, children: [
|
|
528
527
|
/* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
|
|
529
|
-
/* @__PURE__ */
|
|
530
|
-
n.display_email_edit_field_in_settings && /* @__PURE__ */
|
|
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: [
|
|
531
530
|
/* @__PURE__ */ e(
|
|
532
531
|
L,
|
|
533
532
|
{
|
|
@@ -550,11 +549,11 @@ const ye = x(() => {
|
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
551
|
},
|
|
553
|
-
children: /* @__PURE__ */ e(
|
|
552
|
+
children: /* @__PURE__ */ e(be, {})
|
|
554
553
|
}
|
|
555
554
|
)
|
|
556
555
|
] }),
|
|
557
|
-
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: [
|
|
558
557
|
/* @__PURE__ */ e(
|
|
559
558
|
L,
|
|
560
559
|
{
|
|
@@ -577,7 +576,7 @@ const ye = x(() => {
|
|
|
577
576
|
}
|
|
578
577
|
}
|
|
579
578
|
},
|
|
580
|
-
children: /* @__PURE__ */ e(
|
|
579
|
+
children: /* @__PURE__ */ e(Ce, {})
|
|
581
580
|
}
|
|
582
581
|
)
|
|
583
582
|
] })
|
|
@@ -586,70 +585,74 @@ const ye = x(() => {
|
|
|
586
585
|
R,
|
|
587
586
|
{
|
|
588
587
|
disabled: !o,
|
|
589
|
-
onClick:
|
|
588
|
+
onClick: b,
|
|
590
589
|
sx: { width: 84 },
|
|
591
590
|
variant: "contained",
|
|
592
|
-
children:
|
|
591
|
+
children: l.save_button
|
|
593
592
|
}
|
|
594
593
|
)
|
|
595
594
|
] })
|
|
596
595
|
] });
|
|
597
|
-
},
|
|
598
|
-
({
|
|
599
|
-
|
|
596
|
+
}, Se = C(De), ct = C(
|
|
597
|
+
({
|
|
598
|
+
notificationTypes: n = [y.Accounts, y.Budgets],
|
|
599
|
+
showPersonalDetails: t = !1,
|
|
600
|
+
view: s
|
|
601
|
+
}) => {
|
|
602
|
+
const { config: l } = W(), { settings: i } = D(), { isInitialized: d } = ce(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = T(), h = ge(), [r, _] = f.useState(
|
|
600
603
|
void 0
|
|
601
604
|
);
|
|
602
|
-
if (f.useEffect(() => {
|
|
603
|
-
|
|
604
|
-
}, [
|
|
605
|
-
return /* @__PURE__ */ e(
|
|
606
|
-
let
|
|
607
|
-
|
|
605
|
+
if (h && n.push(y.Insights), f.useEffect(() => {
|
|
606
|
+
d && o().finally();
|
|
607
|
+
}, [d]), !d)
|
|
608
|
+
return /* @__PURE__ */ e(ye, {});
|
|
609
|
+
let u = i.manage_account_notifications;
|
|
610
|
+
r === y.Budgets ? u = i.manage_budget_notifications : r === y.Insights && (u = i.manage_insights_notifications);
|
|
608
611
|
const {
|
|
609
|
-
email_notifications_enabled:
|
|
610
|
-
sms_notifications_enabled:
|
|
611
|
-
push_notifications_enabled:
|
|
612
|
-
} = a,
|
|
612
|
+
email_notifications_enabled: g,
|
|
613
|
+
sms_notifications_enabled: p,
|
|
614
|
+
push_notifications_enabled: b
|
|
615
|
+
} = a, S = g || p || b;
|
|
613
616
|
if (s === "accounts")
|
|
614
617
|
return /* @__PURE__ */ e(H, {});
|
|
615
618
|
if (s === "budgets")
|
|
616
619
|
return /* @__PURE__ */ e(z, {});
|
|
617
620
|
if (s === "insights")
|
|
618
|
-
return
|
|
619
|
-
const
|
|
620
|
-
return /* @__PURE__ */
|
|
621
|
-
/* @__PURE__ */
|
|
622
|
-
|
|
623
|
-
/* @__PURE__ */ e(
|
|
621
|
+
return /* @__PURE__ */ e($, {});
|
|
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: [
|
|
626
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
624
627
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
625
628
|
] }),
|
|
626
629
|
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
627
630
|
] }),
|
|
628
|
-
/* @__PURE__ */
|
|
629
|
-
n.includes(
|
|
631
|
+
/* @__PURE__ */ c(E, { children: [
|
|
632
|
+
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Accounts), children: [
|
|
630
633
|
/* @__PURE__ */ e(N, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
631
|
-
/* @__PURE__ */ e(
|
|
634
|
+
/* @__PURE__ */ e(w, {})
|
|
632
635
|
] }) }),
|
|
633
|
-
n.includes(
|
|
636
|
+
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Budgets), children: [
|
|
634
637
|
/* @__PURE__ */ e(N, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
635
|
-
/* @__PURE__ */ e(
|
|
638
|
+
/* @__PURE__ */ e(w, {})
|
|
636
639
|
] }) }),
|
|
637
|
-
n.includes(
|
|
640
|
+
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => _(y.Insights), children: [
|
|
638
641
|
/* @__PURE__ */ e(N, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
639
|
-
/* @__PURE__ */ e(
|
|
642
|
+
/* @__PURE__ */ e(w, {})
|
|
640
643
|
] }) })
|
|
641
644
|
] }),
|
|
642
|
-
|
|
645
|
+
k && /* @__PURE__ */ e(m, { sx: { px: 24 }, children: /* @__PURE__ */ e(Se, {}) }),
|
|
643
646
|
/* @__PURE__ */ e(
|
|
644
647
|
J,
|
|
645
648
|
{
|
|
646
|
-
isOpen: !!
|
|
647
|
-
onClose: () =>
|
|
648
|
-
title:
|
|
649
|
-
children: /* @__PURE__ */
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
649
|
+
isOpen: !!r,
|
|
650
|
+
onClose: () => _(void 0),
|
|
651
|
+
title: u,
|
|
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($, {})
|
|
653
656
|
] })
|
|
654
657
|
}
|
|
655
658
|
)
|
|
@@ -660,7 +663,7 @@ export {
|
|
|
660
663
|
H as A,
|
|
661
664
|
z as B,
|
|
662
665
|
$ as I,
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
+
ct as N,
|
|
667
|
+
be as V,
|
|
668
|
+
Ce as a
|
|
666
669
|
};
|