@mx-cartographer/experiences 7.0.27-alpha.sms5 → 7.0.27-alpha.sms6
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/{NotificationSettings-D9eiZJk9.mjs → NotificationSettings-BaG4tpPe.mjs} +219 -214
- package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-B--pIAF0.mjs} +3 -3
- package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-C9TjSuS_.mjs} +3 -3
- 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 +105 -104
- 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 +2 -2
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +6 -6
- 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 l, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
3
|
+
import { observer as C } from "mobx-react-lite";
|
|
4
|
+
import T 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
9
|
import h from "@mui/material/Stack";
|
|
10
|
-
import { ChevronRight as
|
|
11
|
-
import { Text as
|
|
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
|
|
19
|
-
import { b as
|
|
17
|
+
import { A as oe, T as F, a as P, N as y } from "./Notification-ByMBpJ5u.mjs";
|
|
18
|
+
import { u as D, r as v, 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,26 +30,27 @@ 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
|
-
|
|
36
|
-
|
|
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 } = v(), { user: a } = A(), o = X(), [r, c] = f.useState(!1), i = () => {
|
|
37
|
+
c(!1);
|
|
37
38
|
}, d = () => {
|
|
38
|
-
|
|
39
|
+
c(!0);
|
|
39
40
|
};
|
|
40
41
|
return /* @__PURE__ */ l(f.Fragment, { children: [
|
|
41
42
|
/* @__PURE__ */ l(R, { onClick: d, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
/* @__PURE__ */ e(
|
|
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
50
|
isOpen: r,
|
|
50
|
-
onClose:
|
|
51
|
+
onClose: i,
|
|
51
52
|
onPrimaryAction: s,
|
|
52
|
-
onSecondaryAction:
|
|
53
|
+
onSecondaryAction: i,
|
|
53
54
|
primaryText: t.send_verification,
|
|
54
55
|
secondaryText: n.back,
|
|
55
56
|
sx: {
|
|
@@ -61,38 +62,38 @@ const ye = x(() => {
|
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
64
|
children: /* @__PURE__ */ l(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e(
|
|
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
|
-
border: `1px solid ${
|
|
71
|
+
border: `1px solid ${o.palette.border.light}`,
|
|
71
72
|
borderRadius: "4px",
|
|
72
73
|
p: "16px 32px"
|
|
73
74
|
},
|
|
74
75
|
variant: "H3",
|
|
75
|
-
children:
|
|
76
|
+
children: a.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: a, settings: o } = D(), [r, c] = f.useState("");
|
|
86
87
|
return /* @__PURE__ */ e(
|
|
87
|
-
|
|
88
|
+
M,
|
|
88
89
|
{
|
|
89
|
-
copy: { title:
|
|
90
|
+
copy: { title: o.enter_verification_code },
|
|
90
91
|
isOpen: s,
|
|
91
92
|
onClose: n,
|
|
92
93
|
onPrimaryAction: () => t(r),
|
|
93
94
|
onSecondaryAction: n,
|
|
94
|
-
primaryText:
|
|
95
|
-
secondaryText:
|
|
95
|
+
primaryText: o.verify,
|
|
96
|
+
secondaryText: a.cancel_button,
|
|
96
97
|
sx: {
|
|
97
98
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
98
99
|
"& .MuiToolbar-root:last-child": {
|
|
@@ -101,34 +102,34 @@ const ye = x(() => {
|
|
|
101
102
|
justifyContent: "flex-end"
|
|
102
103
|
}
|
|
103
104
|
},
|
|
104
|
-
children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(L, { onChange: (
|
|
105
|
+
children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(L, { onChange: (i) => c(i.target.value), sx: { width: 352 }, value: r }) })
|
|
105
106
|
}
|
|
106
107
|
);
|
|
107
108
|
}
|
|
108
|
-
),
|
|
109
|
-
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken:
|
|
110
|
-
|
|
109
|
+
), Ce = C(() => {
|
|
110
|
+
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: a } = v(), { user: o } = A(), r = X(), [c, i] = f.useState(!1), [d, m] = f.useState(!1), _ = () => {
|
|
111
|
+
i(!1);
|
|
111
112
|
}, u = () => {
|
|
112
|
-
|
|
113
|
+
i(!0);
|
|
113
114
|
}, g = () => {
|
|
114
115
|
s().finally(() => {
|
|
115
116
|
m(!0);
|
|
116
117
|
});
|
|
117
|
-
}, p = (
|
|
118
|
-
|
|
118
|
+
}, p = (b) => {
|
|
119
|
+
a(b).finally(() => {
|
|
119
120
|
m(!1);
|
|
120
121
|
});
|
|
121
122
|
};
|
|
122
123
|
return /* @__PURE__ */ l(f.Fragment, { children: [
|
|
123
124
|
/* @__PURE__ */ l(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
/* @__PURE__ */ e(
|
|
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
|
-
isOpen:
|
|
132
|
+
isOpen: c,
|
|
132
133
|
onClose: _,
|
|
133
134
|
onPrimaryAction: g,
|
|
134
135
|
onSecondaryAction: _,
|
|
@@ -143,10 +144,10 @@ const ye = x(() => {
|
|
|
143
144
|
}
|
|
144
145
|
},
|
|
145
146
|
children: /* @__PURE__ */ l(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
146
|
-
/* @__PURE__ */ e(
|
|
147
|
-
/* @__PURE__ */ e(
|
|
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
153
|
border: `1px solid ${r.palette.border.light}`,
|
|
@@ -154,15 +155,15 @@ const ye = x(() => {
|
|
|
154
155
|
p: "16px 32px"
|
|
155
156
|
},
|
|
156
157
|
variant: "H3",
|
|
157
|
-
children:
|
|
158
|
+
children: o.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
168
|
handleClose: () => m(!1),
|
|
168
169
|
handleVerify: p,
|
|
@@ -170,15 +171,15 @@ const ye = x(() => {
|
|
|
170
171
|
}
|
|
171
172
|
)
|
|
172
173
|
] });
|
|
173
|
-
}),
|
|
174
|
+
}), Te = C(
|
|
174
175
|
({ onProfileUpdated: n, profile: t }) => {
|
|
175
|
-
const { common: s, recurring:
|
|
176
|
+
const { common: s, recurring: a, settings: o } = D(), { updateAccount: r } = se(), c = t.notification_type === oe.DebtPaymentReminder, [i, d] = f.useState(!1), [m, _] = 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
|
-
|
|
178
|
+
), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? le(
|
|
179
|
+
o.notification_debt_payment_date,
|
|
179
180
|
re(t.account?.day_payment_is_due)
|
|
180
|
-
) :
|
|
181
|
-
|
|
181
|
+
) : o.notification_debt_payment_zero_state, S = c ? b : de(t.threshold ?? 0, "0,0"), I = async () => {
|
|
182
|
+
c && t.account ? await r({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: m });
|
|
182
183
|
};
|
|
183
184
|
return /* @__PURE__ */ l(h, { children: [
|
|
184
185
|
/* @__PURE__ */ e(
|
|
@@ -191,7 +192,7 @@ 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
198
|
onClick: () => d(!0),
|
|
@@ -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:
|
|
211
|
+
title: c ? a.day_of_the_month : o.notification_threshold_label,
|
|
211
212
|
close_aria: s.close_aria
|
|
212
213
|
},
|
|
213
|
-
disablePrimaryButton:
|
|
214
|
-
isOpen:
|
|
214
|
+
disablePrimaryButton: c && u === 0,
|
|
215
|
+
isOpen: i,
|
|
215
216
|
onClose: () => d(!1),
|
|
216
|
-
onPrimaryAction:
|
|
217
|
+
onPrimaryAction: I,
|
|
217
218
|
primaryText: s.save_button,
|
|
218
|
-
children:
|
|
219
|
+
children: c ? /* @__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
|
|
@@ -243,7 +244,7 @@ const ye = x(() => {
|
|
|
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,9 +252,9 @@ const ye = x(() => {
|
|
|
251
252
|
)
|
|
252
253
|
] });
|
|
253
254
|
}
|
|
254
|
-
), ve =
|
|
255
|
+
), ve = C(
|
|
255
256
|
({ onUpdateProfile: n, profile: t }) => {
|
|
256
|
-
const { settings: s } = D(), { user:
|
|
257
|
+
const { settings: s } = D(), { user: a } = A(), { clientCommunicationProfile: o, userCommunicationsProfile: r } = v(), { isMobile: c } = he(), i = t.notification_type > 2, {
|
|
257
258
|
opted_out_of_email_notifications: d,
|
|
258
259
|
opted_out_of_push_notifications: m,
|
|
259
260
|
opted_out_of_sms_notifications: _
|
|
@@ -261,35 +262,35 @@ const ye = x(() => {
|
|
|
261
262
|
email_notifications_enabled: u,
|
|
262
263
|
push_notifications_enabled: g,
|
|
263
264
|
sms_notifications_enabled: p
|
|
264
|
-
} =
|
|
265
|
+
} = o;
|
|
265
266
|
return /* @__PURE__ */ l(h, { children: [
|
|
266
|
-
(u || p || g) && /* @__PURE__ */ l(
|
|
267
|
-
/* @__PURE__ */ e(
|
|
267
|
+
(u || p || g) && /* @__PURE__ */ l(B, { children: [
|
|
268
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
268
269
|
/* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
269
270
|
u && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
270
271
|
P,
|
|
271
272
|
{
|
|
272
|
-
isChecked: !d && t.email_channel && !!
|
|
273
|
-
isDisabled: d || !
|
|
273
|
+
isChecked: !d && t.email_channel && !!a.email,
|
|
274
|
+
isDisabled: d || !a.email,
|
|
274
275
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
275
276
|
primaryText: s.delivery_method_email_label,
|
|
276
|
-
secondaryText: d || !t.email_channel || !
|
|
277
|
+
secondaryText: d || !t.email_channel || !a.email ? s.notification_disabled : s.notification_enabled,
|
|
277
278
|
useExtraPadding: !1
|
|
278
279
|
}
|
|
279
280
|
) }),
|
|
280
|
-
u && (p || g) && /* @__PURE__ */ e(
|
|
281
|
+
u && (p || g) && /* @__PURE__ */ e(T, { sx: { ml: c ? 0 : 24 } }),
|
|
281
282
|
p && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
282
283
|
P,
|
|
283
284
|
{
|
|
284
|
-
isChecked: !_ && t.sms_channel && !!
|
|
285
|
-
isDisabled: _ || !
|
|
285
|
+
isChecked: !_ && t.sms_channel && !!a.phone,
|
|
286
|
+
isDisabled: _ || !a.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 || !a.phone ? s.notification_disabled : s.notification_enabled,
|
|
289
290
|
useExtraPadding: !1
|
|
290
291
|
}
|
|
291
292
|
) }),
|
|
292
|
-
p && g && /* @__PURE__ */ e(
|
|
293
|
+
p && g && /* @__PURE__ */ e(T, { sx: { ml: c ? 0 : 24 } }),
|
|
293
294
|
g && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
294
295
|
P,
|
|
295
296
|
{
|
|
@@ -301,89 +302,87 @@ const ye = x(() => {
|
|
|
301
302
|
useExtraPadding: !1
|
|
302
303
|
}
|
|
303
304
|
) }),
|
|
304
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(T, {})
|
|
305
306
|
] })
|
|
306
307
|
] }),
|
|
307
|
-
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((
|
|
310
|
-
|
|
308
|
+
i && !!t.children?.length && /* @__PURE__ */ l(h, { 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
|
+
Te,
|
|
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 } =
|
|
322
|
-
() => n.find((
|
|
321
|
+
), H = C(() => {
|
|
322
|
+
const { accountProfiles: n, updateNotificationProfile: t } = v(), [s, a] = f.useState(""), o = f.useMemo(
|
|
323
|
+
() => n.find((i) => i.guid === s),
|
|
323
324
|
[n, s]
|
|
324
|
-
), r = async (
|
|
325
|
+
), r = async (i) => {
|
|
325
326
|
await t({
|
|
326
|
-
...
|
|
327
|
-
is_enabled: !
|
|
327
|
+
...i,
|
|
328
|
+
is_enabled: !i.is_enabled
|
|
328
329
|
});
|
|
329
|
-
},
|
|
330
|
-
await t(
|
|
330
|
+
}, c = async (i) => {
|
|
331
|
+
await t(i);
|
|
331
332
|
};
|
|
332
333
|
return /* @__PURE__ */ l(h, { sx: { backgroundColor: "background.paper" }, children: [
|
|
333
|
-
n.filter((
|
|
334
|
+
n.filter((i) => i.children && i.children.length > 0).map((i) => /* @__PURE__ */ e(
|
|
334
335
|
F,
|
|
335
336
|
{
|
|
336
|
-
endIcon: /* @__PURE__ */ e(
|
|
337
|
-
isChecked:
|
|
338
|
-
isDisabled: !
|
|
339
|
-
onClick: () =>
|
|
340
|
-
onToggle: () => r(
|
|
341
|
-
primaryText:
|
|
342
|
-
secondaryText:
|
|
337
|
+
endIcon: /* @__PURE__ */ e(w, {}),
|
|
338
|
+
isChecked: i.is_enabled,
|
|
339
|
+
isDisabled: !i.is_enabled,
|
|
340
|
+
onClick: () => a(i.guid),
|
|
341
|
+
onToggle: () => r(i),
|
|
342
|
+
primaryText: i.label,
|
|
343
|
+
secondaryText: i.is_enabled ? i.deliveryMethodsLabel : void 0
|
|
343
344
|
},
|
|
344
|
-
|
|
345
|
+
i.guid
|
|
345
346
|
)),
|
|
346
347
|
/* @__PURE__ */ e(
|
|
347
348
|
J,
|
|
348
349
|
{
|
|
349
|
-
isOpen: !!
|
|
350
|
-
onClose: () =>
|
|
351
|
-
title:
|
|
352
|
-
children:
|
|
350
|
+
isOpen: !!o,
|
|
351
|
+
onClose: () => a(""),
|
|
352
|
+
title: o ? o.label : "",
|
|
353
|
+
children: o && /* @__PURE__ */ e(
|
|
353
354
|
ve,
|
|
354
355
|
{
|
|
355
|
-
onUpdateProfile:
|
|
356
|
-
profile:
|
|
356
|
+
onUpdateProfile: c,
|
|
357
|
+
profile: o
|
|
357
358
|
}
|
|
358
359
|
)
|
|
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
|
-
sms_notifications_enabled:
|
|
367
|
+
push_notifications_enabled: a,
|
|
368
|
+
sms_notifications_enabled: o
|
|
368
369
|
},
|
|
369
370
|
updateNotificationProfile: r,
|
|
370
371
|
userCommunicationsProfile: {
|
|
371
|
-
opted_out_of_email_notifications:
|
|
372
|
-
opted_out_of_push_notifications:
|
|
372
|
+
opted_out_of_email_notifications: c,
|
|
373
|
+
opted_out_of_push_notifications: i,
|
|
373
374
|
opted_out_of_sms_notifications: d
|
|
374
375
|
}
|
|
375
|
-
} =
|
|
376
|
-
console.log("in profile?");
|
|
377
|
-
const { user: m } = w(), [_, u] = f.useState(!1), g = async () => {
|
|
376
|
+
} = v(), { user: m } = 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
379
|
await r(S);
|
|
381
|
-
},
|
|
380
|
+
}, b = s || o || a;
|
|
382
381
|
return /* @__PURE__ */ l(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__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
405
404
|
s && /* @__PURE__ */ e(
|
|
406
405
|
P,
|
|
407
406
|
{
|
|
408
|
-
isChecked: !
|
|
409
|
-
isDisabled:
|
|
407
|
+
isChecked: !c && n.email_channel && !!m.email,
|
|
408
|
+
isDisabled: c || !m.email,
|
|
410
409
|
onToggle: () => p({
|
|
411
410
|
...n,
|
|
412
411
|
email_channel: !n.email_channel
|
|
@@ -414,8 +413,8 @@ const ye = x(() => {
|
|
|
414
413
|
primaryText: t.delivery_method_email_label
|
|
415
414
|
}
|
|
416
415
|
),
|
|
417
|
-
s && (
|
|
418
|
-
|
|
416
|
+
s && (o || a) && /* @__PURE__ */ e(T, { sx: { ml: 48 } }),
|
|
417
|
+
o && /* @__PURE__ */ e(
|
|
419
418
|
P,
|
|
420
419
|
{
|
|
421
420
|
isChecked: !d && n.sms_channel && !!m.phone,
|
|
@@ -427,12 +426,12 @@ const ye = x(() => {
|
|
|
427
426
|
primaryText: t.delivery_method_sms_label
|
|
428
427
|
}
|
|
429
428
|
),
|
|
430
|
-
|
|
431
|
-
|
|
429
|
+
o && a && /* @__PURE__ */ e(T, { sx: { ml: 48 } }),
|
|
430
|
+
a && /* @__PURE__ */ e(
|
|
432
431
|
P,
|
|
433
432
|
{
|
|
434
|
-
isChecked: !
|
|
435
|
-
isDisabled:
|
|
433
|
+
isChecked: !i && n.push_channel,
|
|
434
|
+
isDisabled: i,
|
|
436
435
|
onToggle: () => p({
|
|
437
436
|
...n,
|
|
438
437
|
push_channel: !n.push_channel
|
|
@@ -441,61 +440,61 @@ const ye = x(() => {
|
|
|
441
440
|
}
|
|
442
441
|
)
|
|
443
442
|
] }) }),
|
|
444
|
-
/* @__PURE__ */ e(
|
|
443
|
+
/* @__PURE__ */ e(T, {})
|
|
445
444
|
] }, n.guid);
|
|
446
|
-
}), z =
|
|
447
|
-
const { budgetProfiles: n } =
|
|
445
|
+
}), z = C(() => {
|
|
446
|
+
const { budgetProfiles: n } = v();
|
|
448
447
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
449
|
-
}),
|
|
448
|
+
}), Pe = C(() => {
|
|
450
449
|
const { onEvent: n } = ae(), { settings: t } = D(), {
|
|
451
450
|
clientCommunicationProfile: s,
|
|
452
|
-
updateUserCommunicationProfile:
|
|
453
|
-
userCommunicationsProfile:
|
|
454
|
-
} =
|
|
455
|
-
const m = { ...
|
|
451
|
+
updateUserCommunicationProfile: a,
|
|
452
|
+
userCommunicationsProfile: o
|
|
453
|
+
} = v(), { user: r } = A(), c = async (i, d) => {
|
|
454
|
+
const m = { ...o, [i]: d };
|
|
456
455
|
if (n) {
|
|
457
|
-
const u =
|
|
456
|
+
const u = i.split("_")[3];
|
|
458
457
|
d === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
459
458
|
}
|
|
460
|
-
await
|
|
459
|
+
await a(m);
|
|
461
460
|
};
|
|
462
461
|
return /* @__PURE__ */ l(h, { children: [
|
|
463
462
|
/* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
464
|
-
s.email_notifications_enabled && /* @__PURE__ */ l(
|
|
463
|
+
s.email_notifications_enabled && /* @__PURE__ */ l(B, { children: [
|
|
465
464
|
/* @__PURE__ */ e(
|
|
466
465
|
P,
|
|
467
466
|
{
|
|
468
|
-
isChecked: !!r.email && !
|
|
467
|
+
isChecked: !!r.email && !o.opted_out_of_email_notifications,
|
|
469
468
|
isDisabled: !r.email,
|
|
470
|
-
onToggle: () =>
|
|
469
|
+
onToggle: () => c(
|
|
471
470
|
"opted_out_of_email_notifications",
|
|
472
|
-
!
|
|
471
|
+
!o.opted_out_of_email_notifications
|
|
473
472
|
),
|
|
474
473
|
primaryText: t.delivery_method_email_title,
|
|
475
|
-
secondaryText: r.email && !
|
|
474
|
+
secondaryText: r.email && !o.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
|
|
476
475
|
useExtraPadding: !1
|
|
477
476
|
}
|
|
478
477
|
),
|
|
479
|
-
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(
|
|
478
|
+
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(T, {})
|
|
480
479
|
] }),
|
|
481
|
-
s.sms_notifications_enabled && /* @__PURE__ */ l(
|
|
480
|
+
s.sms_notifications_enabled && /* @__PURE__ */ l(B, { children: [
|
|
482
481
|
/* @__PURE__ */ e(
|
|
483
482
|
P,
|
|
484
483
|
{
|
|
485
|
-
isChecked: !!r.phone && !
|
|
484
|
+
isChecked: !!r.phone && !o.opted_out_of_sms_notifications,
|
|
486
485
|
isDisabled: !r.phone,
|
|
487
|
-
onToggle: () =>
|
|
486
|
+
onToggle: () => c("opted_out_of_sms_notifications", !o.opted_out_of_sms_notifications),
|
|
488
487
|
primaryText: t.delivery_method_sms_title,
|
|
489
|
-
secondaryText: r.phone && !
|
|
488
|
+
secondaryText: r.phone && !o.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
|
|
490
489
|
useExtraPadding: !1
|
|
491
490
|
}
|
|
492
491
|
),
|
|
493
|
-
s.push_notifications_enabled && /* @__PURE__ */ e(
|
|
492
|
+
s.push_notifications_enabled && /* @__PURE__ */ e(T, {})
|
|
494
493
|
] }),
|
|
495
494
|
s.push_notifications_enabled && /* @__PURE__ */ e(
|
|
496
495
|
P,
|
|
497
496
|
{
|
|
498
|
-
isChecked: !
|
|
497
|
+
isChecked: !o.opted_out_of_push_notifications,
|
|
499
498
|
isDisabled: !0,
|
|
500
499
|
onToggle: () => {
|
|
501
500
|
},
|
|
@@ -506,34 +505,34 @@ const ye = x(() => {
|
|
|
506
505
|
),
|
|
507
506
|
s.sms_notifications_enabled && /* @__PURE__ */ e(ue, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ l(h, { 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
|
-
}), $ =
|
|
513
|
-
const { insightsProfiles: n } =
|
|
514
|
-
return
|
|
515
|
-
}),
|
|
516
|
-
const { config: n } = W(), [t, { width: s }] = fe(), { common:
|
|
517
|
-
email:
|
|
518
|
-
phone:
|
|
519
|
-
}), u = m.email && !
|
|
520
|
-
const { name:
|
|
521
|
-
_(j), d(JSON.stringify({ ...
|
|
522
|
-
},
|
|
523
|
-
await r({ ...
|
|
511
|
+
}), $ = C(() => {
|
|
512
|
+
const { insightsProfiles: n } = v();
|
|
513
|
+
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
514
|
+
}), De = () => {
|
|
515
|
+
const { config: n } = W(), [t, { width: s }] = fe(), { common: a, settings: o } = D(), { updateUser: r } = v(), { user: c } = A(), [i, d] = f.useState(!1), [m, _] = f.useState({
|
|
516
|
+
email: c.email,
|
|
517
|
+
phone: c.phone
|
|
518
|
+
}), u = m.email && !c.email_is_verified && !i, g = m.phone && !c.phone_is_verified && !i, p = (S) => {
|
|
519
|
+
const { name: I, value: k } = S.target, j = { ...m, [I]: k };
|
|
520
|
+
_(j), d(JSON.stringify({ ...c, ...j }) !== JSON.stringify(c));
|
|
521
|
+
}, b = async () => {
|
|
522
|
+
await r({ ...c, ...m }), d(!1);
|
|
524
523
|
};
|
|
525
524
|
return /* @__PURE__ */ l(h, { ref: t, children: [
|
|
526
|
-
/* @__PURE__ */ e(
|
|
525
|
+
/* @__PURE__ */ e(T, {}),
|
|
527
526
|
/* @__PURE__ */ l(h, { sx: { pt: 12 }, children: [
|
|
528
|
-
/* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children:
|
|
527
|
+
/* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: o.personal_details }),
|
|
529
528
|
/* @__PURE__ */ l(h, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
530
529
|
n.display_email_edit_field_in_settings && /* @__PURE__ */ l(h, { sx: { flex: 1, pb: 14 }, children: [
|
|
531
530
|
/* @__PURE__ */ e(
|
|
532
531
|
L,
|
|
533
532
|
{
|
|
534
|
-
defaultValue:
|
|
533
|
+
defaultValue: c.email,
|
|
535
534
|
fullWidth: !0,
|
|
536
|
-
label:
|
|
535
|
+
label: o.email_address,
|
|
537
536
|
name: "email",
|
|
538
537
|
onChange: p
|
|
539
538
|
}
|
|
@@ -550,7 +549,7 @@ const ye = x(() => {
|
|
|
550
549
|
}
|
|
551
550
|
}
|
|
552
551
|
},
|
|
553
|
-
children: /* @__PURE__ */ e(
|
|
552
|
+
children: /* @__PURE__ */ e(be, {})
|
|
554
553
|
}
|
|
555
554
|
)
|
|
556
555
|
] }),
|
|
@@ -558,9 +557,9 @@ const ye = x(() => {
|
|
|
558
557
|
/* @__PURE__ */ e(
|
|
559
558
|
L,
|
|
560
559
|
{
|
|
561
|
-
defaultValue:
|
|
560
|
+
defaultValue: c.phone,
|
|
562
561
|
fullWidth: !0,
|
|
563
|
-
label:
|
|
562
|
+
label: o.mobile_number,
|
|
564
563
|
name: "phone",
|
|
565
564
|
onChange: p
|
|
566
565
|
}
|
|
@@ -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
|
] })
|
|
@@ -585,71 +584,77 @@ const ye = x(() => {
|
|
|
585
584
|
/* @__PURE__ */ e(
|
|
586
585
|
R,
|
|
587
586
|
{
|
|
588
|
-
disabled: !
|
|
589
|
-
onClick:
|
|
587
|
+
disabled: !i,
|
|
588
|
+
onClick: b,
|
|
590
589
|
sx: { width: 84 },
|
|
591
590
|
variant: "contained",
|
|
592
|
-
children:
|
|
591
|
+
children: a.save_button
|
|
593
592
|
}
|
|
594
593
|
)
|
|
595
594
|
] })
|
|
596
595
|
] });
|
|
597
|
-
},
|
|
598
|
-
({
|
|
599
|
-
|
|
596
|
+
}, Se = C(De), ct = C(
|
|
597
|
+
({
|
|
598
|
+
showPersonalDetails: n = !1,
|
|
599
|
+
view: t
|
|
600
|
+
}) => {
|
|
601
|
+
const { config: s } = W(), { settings: a } = D(), { isInitialized: o } = ce(), { clientCommunicationProfile: r, loadNotificationProfiles: c } = v(), i = ge(), [d, m] = f.useState(
|
|
600
602
|
void 0
|
|
601
|
-
)
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
603
|
+
), _ = [
|
|
604
|
+
y.Accounts,
|
|
605
|
+
y.Budgets
|
|
606
|
+
];
|
|
607
|
+
if (i && _.push(y.Insights), f.useEffect(() => {
|
|
608
|
+
o && c().finally();
|
|
609
|
+
}, [o]), !o)
|
|
610
|
+
return /* @__PURE__ */ e(ye, {});
|
|
611
|
+
let u = a.manage_account_notifications;
|
|
612
|
+
d === y.Budgets ? u = a.manage_budget_notifications : d === y.Insights && (u = a.manage_insights_notifications);
|
|
608
613
|
const {
|
|
609
|
-
email_notifications_enabled:
|
|
610
|
-
sms_notifications_enabled:
|
|
611
|
-
push_notifications_enabled:
|
|
612
|
-
} =
|
|
613
|
-
if (
|
|
614
|
+
email_notifications_enabled: g,
|
|
615
|
+
sms_notifications_enabled: p,
|
|
616
|
+
push_notifications_enabled: b
|
|
617
|
+
} = r, S = g || p || b;
|
|
618
|
+
if (t === "accounts")
|
|
614
619
|
return /* @__PURE__ */ e(H, {});
|
|
615
|
-
if (
|
|
620
|
+
if (t === "budgets")
|
|
616
621
|
return /* @__PURE__ */ e(z, {});
|
|
617
|
-
if (
|
|
618
|
-
return
|
|
619
|
-
const
|
|
620
|
-
return /* @__PURE__ */ l(h, { sx: { pt:
|
|
622
|
+
if (t === "insights")
|
|
623
|
+
return /* @__PURE__ */ e($, {});
|
|
624
|
+
const I = s.display_email_edit_field_in_settings || s.display_sms_edit_field_in_settings, k = n && r.can_edit_contact_info && I;
|
|
625
|
+
return /* @__PURE__ */ l(h, { sx: { pt: S ? 0 : 24 }, children: [
|
|
621
626
|
/* @__PURE__ */ l(h, { sx: { px: 24 }, children: [
|
|
622
|
-
|
|
623
|
-
/* @__PURE__ */ e(
|
|
624
|
-
/* @__PURE__ */ e(
|
|
627
|
+
S && /* @__PURE__ */ l(B, { children: [
|
|
628
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
629
|
+
/* @__PURE__ */ e(T, { sx: { my: 24 } })
|
|
625
630
|
] }),
|
|
626
|
-
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children:
|
|
631
|
+
/* @__PURE__ */ e(U, { sx: { mb: 4 }, children: a.notification_types_title })
|
|
627
632
|
] }),
|
|
628
633
|
/* @__PURE__ */ l(E, { children: [
|
|
629
|
-
|
|
630
|
-
/* @__PURE__ */ e(N, { primary:
|
|
631
|
-
/* @__PURE__ */ e(
|
|
634
|
+
_.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => m(y.Accounts), children: [
|
|
635
|
+
/* @__PURE__ */ e(N, { primary: a.accounts_title, secondary: a.accounts_subtitle }),
|
|
636
|
+
/* @__PURE__ */ e(w, {})
|
|
632
637
|
] }) }),
|
|
633
|
-
|
|
634
|
-
/* @__PURE__ */ e(N, { primary:
|
|
635
|
-
/* @__PURE__ */ e(
|
|
638
|
+
_.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => m(y.Budgets), children: [
|
|
639
|
+
/* @__PURE__ */ e(N, { primary: a.budgets_title, secondary: a.budgets_subtitle }),
|
|
640
|
+
/* @__PURE__ */ e(w, {})
|
|
636
641
|
] }) }),
|
|
637
|
-
|
|
638
|
-
/* @__PURE__ */ e(N, { primary:
|
|
639
|
-
/* @__PURE__ */ e(
|
|
642
|
+
_.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => m(y.Insights), children: [
|
|
643
|
+
/* @__PURE__ */ e(N, { primary: a.insights_title, secondary: a.insights_subtitle }),
|
|
644
|
+
/* @__PURE__ */ e(w, {})
|
|
640
645
|
] }) })
|
|
641
646
|
] }),
|
|
642
|
-
|
|
647
|
+
k && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Se, {}) }),
|
|
643
648
|
/* @__PURE__ */ e(
|
|
644
649
|
J,
|
|
645
650
|
{
|
|
646
651
|
isOpen: !!d,
|
|
647
652
|
onClose: () => m(void 0),
|
|
648
|
-
title:
|
|
653
|
+
title: u,
|
|
649
654
|
children: /* @__PURE__ */ l(h, { children: [
|
|
650
|
-
d ===
|
|
651
|
-
d ===
|
|
652
|
-
d ===
|
|
655
|
+
d === y.Accounts && /* @__PURE__ */ e(H, {}),
|
|
656
|
+
d === y.Budgets && /* @__PURE__ */ e(z, {}),
|
|
657
|
+
d === y.Insights && /* @__PURE__ */ e($, {})
|
|
653
658
|
] })
|
|
654
659
|
}
|
|
655
660
|
)
|
|
@@ -660,7 +665,7 @@ export {
|
|
|
660
665
|
H as A,
|
|
661
666
|
z as B,
|
|
662
667
|
$ as I,
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
668
|
+
ct as N,
|
|
669
|
+
be as V,
|
|
670
|
+
Ce as a
|
|
666
671
|
};
|