@mx-cartographer/experiences 8.2.3 → 8.2.4-alpha-ram1-bug-testing
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 +16 -0
- package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
- package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
- package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
- package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
- package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
- package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
- package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
- package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
- package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
- package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
- package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
- package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
- package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
- package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
- package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
- package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
- package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
- package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
- package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
- package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
- package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
- package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
- package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
- package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
- package/dist/accounts/index.es.js +199 -194
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +183 -184
- package/dist/cashflow/index.es.js +70 -80
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +1 -1
- package/dist/common/index.es.js +206 -194
- package/dist/common/utils/Theme.d.ts +6 -5
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +47 -47
- package/dist/debts/index.es.js +140 -140
- package/dist/finstrong/index.es.js +40 -32
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
- package/dist/goals/index.es.js +154 -165
- package/dist/help/index.es.js +2 -2
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
- package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
- package/dist/insights/index.es.js +677 -687
- package/dist/insights/themes/Typography.d.ts +0 -2
- package/dist/investments/index.es.js +205 -207
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/cards/InsightCard.d.ts +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
- package/dist/microinsights/carousel/BeatList.d.ts +2 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +11 -5
- package/dist/networth/index.es.js +85 -87
- package/dist/notifications/index.es.js +7 -8
- package/dist/recurringtransactions/index.es.js +53 -53
- package/dist/settings/index.es.js +111 -111
- package/dist/spending/index.es.js +7 -7
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
- package/dist/transactions/index.es.js +138 -140
- package/dist/trends/index.es.js +293 -292
- package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
- package/package.json +29 -23
- package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
- package/dist/Select-BZRUpOib.mjs +0 -51
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import f from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
5
|
import E from "@mui/material/List";
|
|
@@ -7,7 +7,7 @@ import O from "@mui/material/ListItem";
|
|
|
7
7
|
import L from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
9
|
import h from "@mui/material/Stack";
|
|
10
|
-
import { ChevronRight as
|
|
10
|
+
import { ChevronRight as A, ExpandMore as ee, Star as te } from "@mxenabled/mx-icons";
|
|
11
11
|
import { Text as x, InstitutionLogo as ne, H3 as F } from "@mxenabled/mxui";
|
|
12
12
|
import { endOfMonth as ie } from "date-fns/endOfMonth";
|
|
13
13
|
import { startOfMonth as oe } from "date-fns/startOfMonth";
|
|
@@ -16,34 +16,34 @@ import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProv
|
|
|
16
16
|
import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { b as le } from "./Localization-DnoVyBNK.mjs";
|
|
18
18
|
import { b as re, f as de } from "./NumberFormatting--XMeeBfr.mjs";
|
|
19
|
-
import { u as k, A as T, C as
|
|
19
|
+
import { u as k, A as T, C as S, d as J, g as me, a as q, b as he } from "./hooks-BaO_gOI6.mjs";
|
|
20
20
|
import { A as ue, N as b } from "./Notification-DTNYSd8P.mjs";
|
|
21
|
-
import { T as R, a as D } from "./ToggleListItem-
|
|
22
|
-
import { D as B } from "./Dialog-
|
|
23
|
-
import { C as _e } from "./CurrencyInput-
|
|
24
|
-
import { u as
|
|
25
|
-
import { D as K } from "./Drawer-
|
|
26
|
-
import
|
|
21
|
+
import { T as R, a as D } from "./ToggleListItem-Dl1lXNwj.mjs";
|
|
22
|
+
import { D as B } from "./Dialog-CwWc0AbH.mjs";
|
|
23
|
+
import { C as _e } from "./CurrencyInput-adTIRtL3.mjs";
|
|
24
|
+
import { u as fe } from "./useScreenSize-mWpmnh5w.mjs";
|
|
25
|
+
import { D as K } from "./Drawer-BXqqBMxg.mjs";
|
|
26
|
+
import pe from "@mui/material/Collapse";
|
|
27
27
|
import ge from "@mui/material/Card";
|
|
28
28
|
import ye from "@mui/material/CardContent";
|
|
29
29
|
import W from "@mui/material/Box";
|
|
30
30
|
import j from "@mui/material/Button";
|
|
31
31
|
import U from "@mui/material/TextField";
|
|
32
32
|
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
33
|
-
import Q from "@mui/material/styles
|
|
33
|
+
import { useTheme as Q } from "@mui/material/styles";
|
|
34
34
|
import { u as xe } from "./useInsightsEnabled-DaNLPmUU.mjs";
|
|
35
35
|
import { u as Ce } from "./useWidgetLoadTimer-CJb-RELP.mjs";
|
|
36
36
|
import { L as ve } from "./Loader-CxeBwuPG.mjs";
|
|
37
37
|
const Te = C(() => {
|
|
38
|
-
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } =
|
|
38
|
+
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = S(), i = Q(), [r, a] = f.useState(!1), o = () => {
|
|
39
39
|
a(!1);
|
|
40
40
|
}, u = () => {
|
|
41
41
|
a(!0);
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ c(
|
|
43
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
44
44
|
/* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
45
45
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_email }),
|
|
46
|
-
/* @__PURE__ */ e(
|
|
46
|
+
/* @__PURE__ */ e(A, {})
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ e(
|
|
49
49
|
B,
|
|
@@ -85,7 +85,7 @@ const Te = C(() => {
|
|
|
85
85
|
] });
|
|
86
86
|
}), Pe = C(
|
|
87
87
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
88
|
-
const { common: l, settings: i } = k(), [r, a] =
|
|
88
|
+
const { common: l, settings: i } = k(), [r, a] = f.useState("");
|
|
89
89
|
return /* @__PURE__ */ e(
|
|
90
90
|
B,
|
|
91
91
|
{
|
|
@@ -109,7 +109,7 @@ const Te = C(() => {
|
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
111
|
), De = C(() => {
|
|
112
|
-
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } =
|
|
112
|
+
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = S(), r = Q(), [a, o] = f.useState(!1), [u, d] = f.useState(!1), p = () => {
|
|
113
113
|
o(!1);
|
|
114
114
|
}, _ = () => {
|
|
115
115
|
o(!0);
|
|
@@ -122,19 +122,19 @@ const Te = C(() => {
|
|
|
122
122
|
d(!1);
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
|
-
return /* @__PURE__ */ c(
|
|
125
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
126
126
|
/* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
127
127
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_phone }),
|
|
128
|
-
/* @__PURE__ */ e(
|
|
128
|
+
/* @__PURE__ */ e(A, {})
|
|
129
129
|
] }),
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
B,
|
|
132
132
|
{
|
|
133
133
|
copy: { title: "" },
|
|
134
134
|
isOpen: a,
|
|
135
|
-
onClose:
|
|
135
|
+
onClose: p,
|
|
136
136
|
onPrimaryAction: y,
|
|
137
|
-
onSecondaryAction:
|
|
137
|
+
onSecondaryAction: p,
|
|
138
138
|
primaryText: t.send_verification,
|
|
139
139
|
secondaryText: n.back,
|
|
140
140
|
sx: {
|
|
@@ -175,7 +175,7 @@ const Te = C(() => {
|
|
|
175
175
|
] });
|
|
176
176
|
}), ke = C(
|
|
177
177
|
({ onProfileUpdated: n, profile: t }) => {
|
|
178
|
-
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === ue.DebtPaymentReminder, [o, u] =
|
|
178
|
+
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === ue.DebtPaymentReminder, [o, u] = f.useState(!1), [d, p] = f.useState(t.threshold || 0), [_, y] = f.useState(
|
|
179
179
|
t.account?.day_payment_is_due || 0
|
|
180
180
|
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? le(
|
|
181
181
|
i.notification_debt_payment_date,
|
|
@@ -194,7 +194,7 @@ const Te = C(() => {
|
|
|
194
194
|
institutionGuid: t.account?.institution_guid
|
|
195
195
|
}
|
|
196
196
|
) : void 0,
|
|
197
|
-
endIcon: /* @__PURE__ */ e(
|
|
197
|
+
endIcon: /* @__PURE__ */ e(A, {}),
|
|
198
198
|
isChecked: t.is_enabled,
|
|
199
199
|
isDisabled: !t.is_enabled,
|
|
200
200
|
isPrimaryTextBold: !0,
|
|
@@ -247,7 +247,7 @@ const Te = C(() => {
|
|
|
247
247
|
autoFocus: !0,
|
|
248
248
|
fullWidth: !0,
|
|
249
249
|
minAmount: 0,
|
|
250
|
-
setAmount: (w) =>
|
|
250
|
+
setAmount: (w) => p(Number(w) || 0),
|
|
251
251
|
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
252
252
|
}
|
|
253
253
|
)
|
|
@@ -257,10 +257,10 @@ const Te = C(() => {
|
|
|
257
257
|
}
|
|
258
258
|
), we = C(
|
|
259
259
|
({ onUpdateProfile: n, profile: t }) => {
|
|
260
|
-
const { settings: s } = k(), { user: l } =
|
|
260
|
+
const { settings: s } = k(), { user: l } = S(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = fe(), o = t.notification_type > 2, {
|
|
261
261
|
opted_out_of_email_notifications: u,
|
|
262
262
|
opted_out_of_push_notifications: d,
|
|
263
|
-
opted_out_of_sms_notifications:
|
|
263
|
+
opted_out_of_sms_notifications: p
|
|
264
264
|
} = r, {
|
|
265
265
|
email_notifications_enabled: _,
|
|
266
266
|
push_notifications_enabled: y,
|
|
@@ -285,11 +285,11 @@ const Te = C(() => {
|
|
|
285
285
|
m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
286
286
|
D,
|
|
287
287
|
{
|
|
288
|
-
isChecked: !
|
|
289
|
-
isDisabled:
|
|
288
|
+
isChecked: !p && t.sms_channel && !!l.phone,
|
|
289
|
+
isDisabled: p || !l.phone,
|
|
290
290
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
291
291
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
292
|
-
secondaryText:
|
|
292
|
+
secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
293
293
|
useExtraPadding: !1
|
|
294
294
|
}
|
|
295
295
|
) }),
|
|
@@ -322,7 +322,7 @@ const Te = C(() => {
|
|
|
322
322
|
] });
|
|
323
323
|
}
|
|
324
324
|
), z = C(() => {
|
|
325
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] =
|
|
325
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
326
326
|
() => n.find((o) => o.guid === s),
|
|
327
327
|
[n, s]
|
|
328
328
|
), r = async (o) => {
|
|
@@ -337,7 +337,7 @@ const Te = C(() => {
|
|
|
337
337
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
338
338
|
R,
|
|
339
339
|
{
|
|
340
|
-
endIcon: /* @__PURE__ */ e(
|
|
340
|
+
endIcon: /* @__PURE__ */ e(A, {}),
|
|
341
341
|
isChecked: o.is_enabled,
|
|
342
342
|
isDisabled: !o.is_enabled,
|
|
343
343
|
onClick: () => l(o.guid),
|
|
@@ -376,7 +376,7 @@ const Te = C(() => {
|
|
|
376
376
|
opted_out_of_push_notifications: o,
|
|
377
377
|
opted_out_of_sms_notifications: u
|
|
378
378
|
}
|
|
379
|
-
} = T(), { user: d } =
|
|
379
|
+
} = T(), { user: d } = S(), [p, _] = f.useState(!1), y = async () => {
|
|
380
380
|
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && _(!1);
|
|
381
381
|
}, m = async (P) => {
|
|
382
382
|
await r(P);
|
|
@@ -390,20 +390,20 @@ const Te = C(() => {
|
|
|
390
390
|
{
|
|
391
391
|
sx: {
|
|
392
392
|
transition: "transform 0.3s ease-in-out",
|
|
393
|
-
transform:
|
|
393
|
+
transform: p ? "rotate(180deg)" : "rotate(0deg)"
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
) : void 0,
|
|
397
397
|
isChecked: n.is_enabled,
|
|
398
398
|
isDisabled: !n.is_enabled,
|
|
399
|
-
onClick: () => _(!
|
|
399
|
+
onClick: () => _(!p),
|
|
400
400
|
onToggle: () => y(),
|
|
401
401
|
primaryText: n.label,
|
|
402
402
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
403
403
|
},
|
|
404
404
|
n.guid
|
|
405
405
|
),
|
|
406
|
-
g && /* @__PURE__ */ e(
|
|
406
|
+
g && /* @__PURE__ */ e(pe, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
407
407
|
s && /* @__PURE__ */ e(
|
|
408
408
|
D,
|
|
409
409
|
{
|
|
@@ -448,12 +448,12 @@ const Te = C(() => {
|
|
|
448
448
|
}), $ = C(() => {
|
|
449
449
|
const { budgetProfiles: n } = T();
|
|
450
450
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
451
|
-
}),
|
|
451
|
+
}), Ae = C(() => {
|
|
452
452
|
const { onEvent: n } = me(), { settings: t } = k(), {
|
|
453
453
|
clientCommunicationProfile: s,
|
|
454
454
|
updateUserCommunicationProfile: l,
|
|
455
455
|
userCommunicationsProfile: i
|
|
456
|
-
} = T(), { user: r } =
|
|
456
|
+
} = T(), { user: r } = S(), a = async (o, u) => {
|
|
457
457
|
const d = { ...i, [o]: u };
|
|
458
458
|
if (n) {
|
|
459
459
|
const _ = o.split("_")[3];
|
|
@@ -508,19 +508,19 @@ const Te = C(() => {
|
|
|
508
508
|
),
|
|
509
509
|
s.sms_notifications_enabled && /* @__PURE__ */ e(ge, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ c(h, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
510
510
|
/* @__PURE__ */ e(te, { color: "primary", filled: !0 }),
|
|
511
|
-
/* @__PURE__ */ e(x, {
|
|
511
|
+
/* @__PURE__ */ e(x, { variant: "caption", children: t.delivery_method_sms_note_1 })
|
|
512
512
|
] }) }) })
|
|
513
513
|
] });
|
|
514
514
|
}), H = C(() => {
|
|
515
515
|
const { insightsProfiles: n } = T();
|
|
516
516
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
517
|
-
}),
|
|
518
|
-
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } =
|
|
517
|
+
}), Se = () => {
|
|
518
|
+
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = S(), [o, u] = f.useState(!1), [d, p] = f.useState({
|
|
519
519
|
email: a.email,
|
|
520
520
|
phone: a.phone
|
|
521
521
|
}), _ = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
|
|
522
522
|
const { name: I, value: w } = P.target, M = { ...d, [I]: w };
|
|
523
|
-
|
|
523
|
+
p(M), u(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
|
|
524
524
|
}, g = async () => {
|
|
525
525
|
await r({ ...a, ...d }), u(!1);
|
|
526
526
|
};
|
|
@@ -596,21 +596,21 @@ const Te = C(() => {
|
|
|
596
596
|
)
|
|
597
597
|
] })
|
|
598
598
|
] });
|
|
599
|
-
}, Ie = C(
|
|
599
|
+
}, Ie = C(Se), ut = C(
|
|
600
600
|
({
|
|
601
601
|
notificationTypes: n = [b.Accounts, b.Budgets],
|
|
602
602
|
showPersonalDetails: t = !1,
|
|
603
603
|
view: s
|
|
604
604
|
}) => {
|
|
605
|
-
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = he(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(),
|
|
605
|
+
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = he(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), p = xe(), [_, y] = f.useState(!1), [m, g] = f.useState(
|
|
606
606
|
void 0
|
|
607
607
|
);
|
|
608
|
-
if (n.length > 0 &&
|
|
608
|
+
if (n.length > 0 && p && n.push(b.Insights), Ce({
|
|
609
609
|
widgetName: "NotificationSettingsWidget",
|
|
610
610
|
isLoaded: _
|
|
611
|
-
}),
|
|
611
|
+
}), f.useEffect(() => {
|
|
612
612
|
a || o().finally();
|
|
613
|
-
}, []),
|
|
613
|
+
}, []), f.useEffect(() => {
|
|
614
614
|
r && d().finally(() => y(!0));
|
|
615
615
|
}, [r]), !r)
|
|
616
616
|
return /* @__PURE__ */ e(ve, {});
|
|
@@ -631,7 +631,7 @@ const Te = C(() => {
|
|
|
631
631
|
return /* @__PURE__ */ c(h, { sx: { pt: G ? 0 : 24 }, children: [
|
|
632
632
|
/* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
|
|
633
633
|
G && /* @__PURE__ */ c(N, { children: [
|
|
634
|
-
/* @__PURE__ */ e(
|
|
634
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
635
635
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
636
636
|
] }),
|
|
637
637
|
/* @__PURE__ */ e(F, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
@@ -639,15 +639,15 @@ const Te = C(() => {
|
|
|
639
639
|
/* @__PURE__ */ c(E, { children: [
|
|
640
640
|
n.includes(b.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Accounts), children: [
|
|
641
641
|
/* @__PURE__ */ e(L, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
642
|
-
/* @__PURE__ */ e(
|
|
642
|
+
/* @__PURE__ */ e(A, {})
|
|
643
643
|
] }) }),
|
|
644
644
|
n.includes(b.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Budgets), children: [
|
|
645
645
|
/* @__PURE__ */ e(L, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
646
|
-
/* @__PURE__ */ e(
|
|
646
|
+
/* @__PURE__ */ e(A, {})
|
|
647
647
|
] }) }),
|
|
648
648
|
n.includes(b.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => g(b.Insights), children: [
|
|
649
649
|
/* @__PURE__ */ e(L, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
650
|
-
/* @__PURE__ */ e(
|
|
650
|
+
/* @__PURE__ */ e(A, {})
|
|
651
651
|
] }) })
|
|
652
652
|
] }),
|
|
653
653
|
Z && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Ie, {}) }),
|
|
@@ -4,8 +4,8 @@ import { observer as p } from "mobx-react-lite";
|
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
5
|
import { a as T, f as S } from "./NumberFormatting--XMeeBfr.mjs";
|
|
6
6
|
import { u as y, k as h } from "./hooks-BaO_gOI6.mjs";
|
|
7
|
-
import { L as b } from "./ListItemAction-
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
7
|
+
import { L as b } from "./ListItemAction-CwspSmQi.mjs";
|
|
8
|
+
import { C as f } from "./CurrencyInput-adTIRtL3.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const a = { ...e, interest_rate: t };
|
|
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1JfqslT.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-BaO_gOI6.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-CzGzz_sE.mjs";
|
|
@@ -3,7 +3,7 @@ import p from "react";
|
|
|
3
3
|
import d from "@mui/material/Button";
|
|
4
4
|
import a from "@mui/material/IconButton";
|
|
5
5
|
import f from "@mui/material/Tooltip";
|
|
6
|
-
import c from "@mui/material/styles
|
|
6
|
+
import { useTheme as c } from "@mui/material/styles";
|
|
7
7
|
const B = ({
|
|
8
8
|
icon: e,
|
|
9
9
|
label: i,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { observer as s } from "mobx-react-lite";
|
|
3
|
+
import m from "@mui/material/Box";
|
|
4
|
+
import p from "@mui/material/IconButton";
|
|
5
|
+
import t from "@mui/material/InputAdornment";
|
|
6
|
+
import { TextField as d, Icon as n } from "@mxenabled/mxui";
|
|
7
|
+
const x = ({
|
|
8
|
+
ariaLabel: c = "Search",
|
|
9
|
+
cancelAriaLabel: a = "Cancel Search",
|
|
10
|
+
onChange: e,
|
|
11
|
+
placeholder: i = "Search",
|
|
12
|
+
searchValue: r
|
|
13
|
+
}) => /* @__PURE__ */ o(m, { className: "mx-cmn-search-box", px: 24, py: 16, children: /* @__PURE__ */ o(
|
|
14
|
+
d,
|
|
15
|
+
{
|
|
16
|
+
"aria-label": c,
|
|
17
|
+
name: "search",
|
|
18
|
+
onChange: (l) => e(l.target.value),
|
|
19
|
+
placeholder: i,
|
|
20
|
+
slotProps: {
|
|
21
|
+
input: {
|
|
22
|
+
startAdornment: /* @__PURE__ */ o(t, { position: "start", children: /* @__PURE__ */ o(n, { name: "search", size: 26, sx: { color: "action.active" } }) }),
|
|
23
|
+
endAdornment: /* @__PURE__ */ o(t, { position: "end", sx: { p: 0 }, children: r ? /* @__PURE__ */ o(
|
|
24
|
+
p,
|
|
25
|
+
{
|
|
26
|
+
"aria-label": a,
|
|
27
|
+
className: "mx-cat-cancel-search-button",
|
|
28
|
+
color: "primary",
|
|
29
|
+
onClick: () => e(""),
|
|
30
|
+
children: /* @__PURE__ */ o(n, { name: "cancel", size: 24 })
|
|
31
|
+
}
|
|
32
|
+
) : null }),
|
|
33
|
+
sx: {
|
|
34
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
35
|
+
borderColor: "text.secondary",
|
|
36
|
+
opacity: 0.5
|
|
37
|
+
},
|
|
38
|
+
"& input::placeholder": { color: "text.secondary", opacity: 1 }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
sx: {
|
|
43
|
+
width: "100%"
|
|
44
|
+
},
|
|
45
|
+
value: r
|
|
46
|
+
}
|
|
47
|
+
) }), v = s(x);
|
|
48
|
+
export {
|
|
49
|
+
v as S
|
|
50
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as r, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import c from "@mui/material/Avatar";
|
|
3
|
+
import l from "@mui/material/ListItem";
|
|
4
|
+
import h from "@mui/material/ListItemAvatar";
|
|
5
|
+
import p from "@mui/material/ListItemButton";
|
|
6
|
+
import u from "@mui/material/ListItemIcon";
|
|
7
|
+
import f from "@mui/material/ListItemText";
|
|
8
|
+
import { Icon as s } from "@mxenabled/mxui";
|
|
9
|
+
import g from "@mui/material/MenuItem";
|
|
10
|
+
import x from "@mui/material/TextField";
|
|
11
|
+
import { ExpandMore as b } from "@mxenabled/mx-icons";
|
|
12
|
+
const G = ({ iconName: a, label: n, onClick: e, value: i }) => {
|
|
13
|
+
const o = /* @__PURE__ */ m(d, { children: [
|
|
14
|
+
/* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(c, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: /* @__PURE__ */ r(s, { name: a, sx: { color: "text.primary" } }) }) }),
|
|
15
|
+
/* @__PURE__ */ r(
|
|
16
|
+
f,
|
|
17
|
+
{
|
|
18
|
+
primary: n,
|
|
19
|
+
secondary: i,
|
|
20
|
+
slotProps: {
|
|
21
|
+
primary: { variant: "caption", fontWeight: "normal" },
|
|
22
|
+
secondary: { color: "text.default", variant: "body1", fontWeight: 600 }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
] });
|
|
27
|
+
return e ? /* @__PURE__ */ r(l, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(p, { onClick: e, children: [
|
|
28
|
+
o,
|
|
29
|
+
/* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(s, { name: "chevron_right", size: 24 }) })
|
|
30
|
+
] }) }) : /* @__PURE__ */ r(l, { disableGutters: !1, disablePadding: !1, children: o });
|
|
31
|
+
}, M = ({ label: a, onChange: n, options: e, value: i, ...o }) => /* @__PURE__ */ r(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
defaultValue: 0,
|
|
35
|
+
label: a,
|
|
36
|
+
onChange: (t) => {
|
|
37
|
+
n(Number(t.target.value));
|
|
38
|
+
},
|
|
39
|
+
select: !0,
|
|
40
|
+
slotProps: {
|
|
41
|
+
inputLabel: { shrink: !0 },
|
|
42
|
+
select: {
|
|
43
|
+
IconComponent: (t) => /* @__PURE__ */ r(b, { size: 20, sx: { mr: 4 }, ...t })
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
value: i,
|
|
47
|
+
variant: "outlined",
|
|
48
|
+
...o,
|
|
49
|
+
children: e.map((t) => /* @__PURE__ */ r(g, { value: t.id, children: t.label }, t.id))
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
export {
|
|
53
|
+
G as D,
|
|
54
|
+
M as S
|
|
55
|
+
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import c from "@mui/material/Box";
|
|
3
3
|
import n from "@mui/material/FormControlLabel";
|
|
4
4
|
import s from "@mui/material/Radio";
|
|
5
|
-
import d from "@mui/material/styles
|
|
5
|
+
import { useTheme as d } from "@mui/material/styles";
|
|
6
6
|
import b from "@mui/material/Tooltip";
|
|
7
7
|
const C = ({
|
|
8
8
|
checked: r = !1,
|
|
@@ -12,7 +12,7 @@ import { f as b } from "./NumberFormatting--XMeeBfr.mjs";
|
|
|
12
12
|
import { D as j } from "./Donut-SzzfZDHF.mjs";
|
|
13
13
|
import { u as R } from "./useAriaLive-MkYebyUR.mjs";
|
|
14
14
|
import { u as v } from "./hooks-BaO_gOI6.mjs";
|
|
15
|
-
import { u as V } from "./useScreenSize-
|
|
15
|
+
import { u as V } from "./useScreenSize-mWpmnh5w.mjs";
|
|
16
16
|
const D = 5, B = (i, l, s, m) => m.reduce((o, n) => {
|
|
17
17
|
const r = i.find((u) => u.guid === n.category_guid);
|
|
18
18
|
if (!r) return o;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import l from "@mui/material/ListItem";
|
|
3
3
|
import f from "@mui/material/ListItemButton";
|
|
4
4
|
import g from "@mui/material/ListItemIcon";
|
|
5
5
|
import d from "@mui/material/ListItemText";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import a from "@mui/material/Stack";
|
|
7
|
+
import p from "@mui/material/Switch";
|
|
8
8
|
import { Text as s } from "@mxenabled/mxui";
|
|
9
9
|
import I from "@mui/material/ListItemAvatar";
|
|
10
|
-
const
|
|
10
|
+
const S = ({
|
|
11
11
|
avatar: r,
|
|
12
12
|
endIcon: o,
|
|
13
13
|
isChecked: c,
|
|
14
14
|
isDisabled: i = !1,
|
|
15
15
|
isPrimaryTextBold: n = !1,
|
|
16
16
|
onClick: e,
|
|
17
|
-
onToggle:
|
|
18
|
-
primaryText:
|
|
19
|
-
secondaryText:
|
|
17
|
+
onToggle: h,
|
|
18
|
+
primaryText: x,
|
|
19
|
+
secondaryText: y
|
|
20
20
|
}) => (
|
|
21
21
|
//TODO: implement common/components/ListItemRow.tsx
|
|
22
22
|
/* @__PURE__ */ t(
|
|
23
|
-
|
|
23
|
+
l,
|
|
24
24
|
{
|
|
25
|
-
secondaryAction: /* @__PURE__ */ t(
|
|
25
|
+
secondaryAction: /* @__PURE__ */ t(p, { checked: c, onChange: h }),
|
|
26
26
|
sx: {
|
|
27
27
|
"& .MuiListItemSecondaryAction-root": { right: o ? 64 : 24 },
|
|
28
28
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
29
29
|
},
|
|
30
|
-
children: /* @__PURE__ */
|
|
30
|
+
children: /* @__PURE__ */ m(f, { onClick: i ? void 0 : () => e(), children: [
|
|
31
31
|
r && /* @__PURE__ */ t(I, { children: r }),
|
|
32
|
-
/* @__PURE__ */ t(d, {
|
|
32
|
+
/* @__PURE__ */ t(d, { slotProps: { primary: { fontWeight: 400 } }, children: /* @__PURE__ */ t(a, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ m(a, { sx: { width: "100%" }, children: [
|
|
33
33
|
/* @__PURE__ */ t(
|
|
34
34
|
s,
|
|
35
35
|
{
|
|
@@ -39,10 +39,10 @@ const C = ({
|
|
|
39
39
|
mr: 80
|
|
40
40
|
},
|
|
41
41
|
variant: "body1",
|
|
42
|
-
children:
|
|
42
|
+
children: x
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */ t(s, { color: "text.secondary", variant: "caption", children:
|
|
45
|
+
/* @__PURE__ */ t(s, { color: "text.secondary", variant: "caption", children: y })
|
|
46
46
|
] }) }) }),
|
|
47
47
|
!i && o && /* @__PURE__ */ t(g, { children: o })
|
|
48
48
|
] })
|
|
@@ -56,9 +56,9 @@ const C = ({
|
|
|
56
56
|
secondaryText: n = void 0,
|
|
57
57
|
useExtraPadding: e = !0
|
|
58
58
|
}) => /* @__PURE__ */ t(
|
|
59
|
-
|
|
59
|
+
l,
|
|
60
60
|
{
|
|
61
|
-
secondaryAction: /* @__PURE__ */ t(
|
|
61
|
+
secondaryAction: /* @__PURE__ */ t(p, { checked: r, disabled: o, onChange: c }),
|
|
62
62
|
sx: {
|
|
63
63
|
pl: e ? 48 : 0,
|
|
64
64
|
"& .MuiListItemSecondaryAction-root": { right: e ? 64 : 24 }
|
|
@@ -67,24 +67,25 @@ const C = ({
|
|
|
67
67
|
d,
|
|
68
68
|
{
|
|
69
69
|
primary: i,
|
|
70
|
-
primaryTypographyProps: {
|
|
71
|
-
fontWeight: 400,
|
|
72
|
-
variant: "body1",
|
|
73
|
-
maxWidth: "calc(100% - 60px)",
|
|
74
|
-
color: "text.primary"
|
|
75
|
-
},
|
|
76
70
|
secondary: n,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
slotProps: {
|
|
72
|
+
primary: {
|
|
73
|
+
fontWeight: 400,
|
|
74
|
+
variant: "body1",
|
|
75
|
+
maxWidth: "calc(100% - 60px)",
|
|
76
|
+
color: "text.primary"
|
|
77
|
+
},
|
|
78
|
+
secondary: {
|
|
79
|
+
color: "text.secondary",
|
|
80
|
+
maxWidth: "calc(100% - 60px)",
|
|
81
|
+
variant: "caption"
|
|
82
|
+
}
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
)
|
|
85
86
|
}
|
|
86
87
|
);
|
|
87
88
|
export {
|
|
88
|
-
|
|
89
|
+
S as T,
|
|
89
90
|
W as a
|
|
90
91
|
};
|