@mx-cartographer/experiences 7.3.0-alpha.sms1 → 7.3.0
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 +71 -0
- package/dist/{Account-Bxw0_4FU.mjs → Account-YwUMFz93.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-BgCST7mK.mjs} +8 -8
- package/dist/AccountDetailsHeader-jAFWoHj7.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-DPxMPBF0.mjs} +2 -2
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-D6rWAreC.mjs} +8 -8
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-B5E98oM1.mjs} +100 -74
- package/dist/Accounts-UIlYCmHb.mjs +9 -0
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-CXvenbdN.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Buy70Y3V.mjs} +21 -19
- package/dist/CategoryStore-BEdFs69_.mjs +183 -0
- package/dist/CategoryUtil-BR3H5i6n.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-CbxHKlRv.mjs} +10 -10
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-C6kanU7I.mjs} +4 -4
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-lSC7oPDg.mjs} +1 -1
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-DgIcphe_.mjs} +1 -1
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DZ10CbWd.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CL7t5lBL.mjs} +1 -1
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-CAlmSu4U.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-hi9I9EYP.mjs} +1 -1
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-eK4IQImU.mjs} +2 -2
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BmL5buOf.mjs} +1 -1
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-Cypo9qY4.mjs} +66 -65
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-CFdMGJKg.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-BdgBvpga.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-CxqIxAgN.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-DxytNHlN.mjs} +240 -237
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-V6FEoIDe.mjs} +3 -3
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-iIupYxJW.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-ej39mgA6.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BiwCzScZ.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/{TransactionDetails-oP1eSuiS.mjs → TransactionDetails-BUoNbsu-.mjs} +402 -367
- package/dist/TransactionStore-C1oyQCZK.mjs +677 -0
- package/dist/TrendsStore-5PvDT_o6.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-Bj34_i8g.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-lihSDk2J.mjs} +517 -493
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BnTgAfQn.mjs} +2 -2
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +241 -203
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +500 -507
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +384 -382
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/charts/index.d.ts +0 -2
- package/dist/common/index.es.js +391 -376
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-B8qpk5MU.mjs} +14 -13
- package/dist/finstrong/index.es.js +417 -415
- package/dist/goals/index.es.js +559 -557
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-Cy8JnjCg.mjs} +2 -2
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +0 -1
- package/dist/networth/index.es.js +176 -174
- package/dist/notifications/index.es.js +23 -23
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +175 -173
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +285 -279
- package/dist/spending/index.es.js +282 -281
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/index.es.js +63 -64
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/index.es.js +948 -583
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-D6sQsNNQ.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-BxytCjq5.mjs} +1 -1
- package/package.json +4 -4
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { jsxs as l, jsx as e, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import g from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
5
|
import E from "@mui/material/List";
|
|
6
6
|
import O from "@mui/material/ListItem";
|
|
7
|
-
import
|
|
7
|
+
import L from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
9
|
import m from "@mui/material/Stack";
|
|
10
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
|
|
11
|
+
import { Text as x, InstitutionLogo as Y, H3 as F } 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
|
|
18
|
-
import { u as D, s as T, p as
|
|
19
|
-
import { b as
|
|
20
|
-
import { b as
|
|
21
|
-
import { a as
|
|
22
|
-
import { C as
|
|
23
|
-
import { u as
|
|
17
|
+
import { A as oe, T as R, a as P, N as y } from "./ToggleListItem-ciFTiqRS.mjs";
|
|
18
|
+
import { u as D, s as T, p as I, d as se, g as ae, a as W, n as ce, b as le } from "./hooks-Cy8JnjCg.mjs";
|
|
19
|
+
import { b as re } from "./Localization-2MODESHW.mjs";
|
|
20
|
+
import { b as de, f as me } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
21
|
+
import { a as N } from "./Dialog-CWW597AF.mjs";
|
|
22
|
+
import { C as he } from "./CurrencyInput-lSC7oPDg.mjs";
|
|
23
|
+
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
25
|
+
import ue from "@mui/material/Collapse";
|
|
26
|
+
import pe from "@mui/material/Card";
|
|
27
|
+
import fe from "@mui/material/CardContent";
|
|
28
28
|
import G from "@mui/material/Box";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { u as
|
|
29
|
+
import j from "@mui/material/Button";
|
|
30
|
+
import U from "@mui/material/TextField";
|
|
31
|
+
import { u as ge } from "./useDimensions-27p2evRx.mjs";
|
|
32
32
|
import X from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as
|
|
34
|
-
import { L as
|
|
35
|
-
const
|
|
36
|
-
const { common: n, settings: t } = D(), { sendEmailVerification:
|
|
33
|
+
import { u as ye } from "./useInsightsEnabled-BxytCjq5.mjs";
|
|
34
|
+
import { L as be } from "./Loader-DUaFpDGv.mjs";
|
|
35
|
+
const xe = C(() => {
|
|
36
|
+
const { common: n, settings: t } = D(), { sendEmailVerification: o } = T(), { user: r } = I(), s = X(), [c, a] = g.useState(!1), i = () => {
|
|
37
37
|
a(!1);
|
|
38
|
-
},
|
|
38
|
+
}, _ = () => {
|
|
39
39
|
a(!0);
|
|
40
40
|
};
|
|
41
|
-
return /* @__PURE__ */ l(
|
|
42
|
-
/* @__PURE__ */ l(
|
|
41
|
+
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ l(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
43
43
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
|
44
44
|
/* @__PURE__ */ e(w, {})
|
|
45
45
|
] }),
|
|
46
46
|
/* @__PURE__ */ e(
|
|
47
|
-
|
|
47
|
+
N,
|
|
48
48
|
{
|
|
49
49
|
copy: { title: "" },
|
|
50
|
-
isOpen:
|
|
51
|
-
onClose:
|
|
52
|
-
onPrimaryAction:
|
|
53
|
-
onSecondaryAction:
|
|
50
|
+
isOpen: c,
|
|
51
|
+
onClose: i,
|
|
52
|
+
onPrimaryAction: o,
|
|
53
|
+
onSecondaryAction: i,
|
|
54
54
|
primaryText: t.send_verification,
|
|
55
55
|
secondaryText: n.back,
|
|
56
56
|
sx: {
|
|
@@ -68,12 +68,12 @@ const be = C(() => {
|
|
|
68
68
|
x,
|
|
69
69
|
{
|
|
70
70
|
sx: {
|
|
71
|
-
border: `1px solid ${
|
|
71
|
+
border: `1px solid ${s.palette.border.light}`,
|
|
72
72
|
borderRadius: "4px",
|
|
73
73
|
p: "16px 32px"
|
|
74
74
|
},
|
|
75
75
|
variant: "H3",
|
|
76
|
-
children:
|
|
76
|
+
children: r.email
|
|
77
77
|
}
|
|
78
78
|
),
|
|
79
79
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_email })
|
|
@@ -81,19 +81,19 @@ const be = C(() => {
|
|
|
81
81
|
}
|
|
82
82
|
)
|
|
83
83
|
] });
|
|
84
|
-
}),
|
|
85
|
-
({ handleClose: n, handleVerify: t, isOpen:
|
|
86
|
-
const { common:
|
|
84
|
+
}), Ce = C(
|
|
85
|
+
({ handleClose: n, handleVerify: t, isOpen: o }) => {
|
|
86
|
+
const { common: r, settings: s } = D(), [c, a] = g.useState("");
|
|
87
87
|
return /* @__PURE__ */ e(
|
|
88
|
-
|
|
88
|
+
N,
|
|
89
89
|
{
|
|
90
|
-
copy: { title:
|
|
91
|
-
isOpen:
|
|
90
|
+
copy: { title: s.enter_verification_code },
|
|
91
|
+
isOpen: o,
|
|
92
92
|
onClose: n,
|
|
93
|
-
onPrimaryAction: () => t(
|
|
93
|
+
onPrimaryAction: () => t(c),
|
|
94
94
|
onSecondaryAction: n,
|
|
95
|
-
primaryText:
|
|
96
|
-
secondaryText:
|
|
95
|
+
primaryText: s.verify,
|
|
96
|
+
secondaryText: r.cancel_button,
|
|
97
97
|
sx: {
|
|
98
98
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
99
99
|
"& .MuiToolbar-root:last-child": {
|
|
@@ -102,37 +102,37 @@ const be = C(() => {
|
|
|
102
102
|
justifyContent: "flex-end"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(
|
|
105
|
+
children: /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(U, { onChange: (i) => a(i.target.value), sx: { width: 352 }, value: c }) })
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
),
|
|
110
|
-
const { common: n, settings: t } = D(), { sendPhoneVerification:
|
|
111
|
-
|
|
109
|
+
), ve = C(() => {
|
|
110
|
+
const { common: n, settings: t } = D(), { sendPhoneVerification: o, verifyPhoneToken: r } = T(), { user: s } = I(), c = X(), [a, i] = g.useState(!1), [_, d] = g.useState(!1), h = () => {
|
|
111
|
+
i(!1);
|
|
112
112
|
}, u = () => {
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
i(!0);
|
|
114
|
+
}, f = () => {
|
|
115
|
+
o().finally(() => {
|
|
116
|
+
d(!0);
|
|
117
117
|
});
|
|
118
118
|
}, p = (b) => {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
r(b).finally(() => {
|
|
120
|
+
d(!1);
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
-
return /* @__PURE__ */ l(
|
|
124
|
-
/* @__PURE__ */ l(
|
|
123
|
+
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
124
|
+
/* @__PURE__ */ l(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
125
125
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
|
126
126
|
/* @__PURE__ */ e(w, {})
|
|
127
127
|
] }),
|
|
128
128
|
/* @__PURE__ */ e(
|
|
129
|
-
|
|
129
|
+
N,
|
|
130
130
|
{
|
|
131
131
|
copy: { title: "" },
|
|
132
132
|
isOpen: a,
|
|
133
|
-
onClose:
|
|
134
|
-
onPrimaryAction:
|
|
135
|
-
onSecondaryAction:
|
|
133
|
+
onClose: h,
|
|
134
|
+
onPrimaryAction: f,
|
|
135
|
+
onSecondaryAction: h,
|
|
136
136
|
primaryText: t.send_verification,
|
|
137
137
|
secondaryText: n.back,
|
|
138
138
|
sx: {
|
|
@@ -150,12 +150,12 @@ const be = C(() => {
|
|
|
150
150
|
x,
|
|
151
151
|
{
|
|
152
152
|
sx: {
|
|
153
|
-
border: `1px solid ${
|
|
153
|
+
border: `1px solid ${c.palette.border.light}`,
|
|
154
154
|
borderRadius: "4px",
|
|
155
155
|
p: "16px 32px"
|
|
156
156
|
},
|
|
157
157
|
variant: "H3",
|
|
158
|
-
children:
|
|
158
|
+
children: s.phone
|
|
159
159
|
}
|
|
160
160
|
),
|
|
161
161
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_phone })
|
|
@@ -163,27 +163,27 @@ const be = C(() => {
|
|
|
163
163
|
}
|
|
164
164
|
),
|
|
165
165
|
/* @__PURE__ */ e(
|
|
166
|
-
|
|
166
|
+
Ce,
|
|
167
167
|
{
|
|
168
|
-
handleClose: () =>
|
|
168
|
+
handleClose: () => d(!1),
|
|
169
169
|
handleVerify: p,
|
|
170
|
-
isOpen:
|
|
170
|
+
isOpen: _
|
|
171
171
|
}
|
|
172
172
|
)
|
|
173
173
|
] });
|
|
174
|
-
}),
|
|
174
|
+
}), Te = C(
|
|
175
175
|
({ onProfileUpdated: n, profile: t }) => {
|
|
176
|
-
const { common:
|
|
176
|
+
const { common: o, recurring: r, settings: s } = D(), { updateAccount: c } = se(), a = t.notification_type === oe.DebtPaymentReminder, [i, _] = g.useState(!1), [d, h] = g.useState(t.threshold || 0), [u, f] = g.useState(
|
|
177
177
|
t.account?.day_payment_is_due || 0
|
|
178
|
-
), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ?
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
) :
|
|
182
|
-
a && t.account ? await
|
|
178
|
+
), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? re(
|
|
179
|
+
s.notification_debt_payment_date,
|
|
180
|
+
de(t.account?.day_payment_is_due)
|
|
181
|
+
) : s.notification_debt_payment_zero_state, S = a ? b : me(t.threshold ?? 0, "0,0"), A = async () => {
|
|
182
|
+
a && t.account ? await c({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: d });
|
|
183
183
|
};
|
|
184
184
|
return /* @__PURE__ */ l(m, { children: [
|
|
185
185
|
/* @__PURE__ */ e(
|
|
186
|
-
|
|
186
|
+
R,
|
|
187
187
|
{
|
|
188
188
|
avatar: t.account?.institution_guid ? /* @__PURE__ */ e(
|
|
189
189
|
Y,
|
|
@@ -194,35 +194,36 @@ const be = C(() => {
|
|
|
194
194
|
) : void 0,
|
|
195
195
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
196
196
|
isChecked: t.is_enabled,
|
|
197
|
+
isDisabled: !t.is_enabled,
|
|
197
198
|
isPrimaryTextBold: !0,
|
|
198
|
-
onClick: () =>
|
|
199
|
+
onClick: () => _(!0),
|
|
199
200
|
onToggle: () => n({
|
|
200
201
|
...t,
|
|
201
202
|
is_enabled: !t.is_enabled
|
|
202
203
|
}),
|
|
203
204
|
primaryText: p,
|
|
204
|
-
secondaryText: S
|
|
205
|
+
secondaryText: t.is_enabled ? S : s.notification_disabled
|
|
205
206
|
}
|
|
206
207
|
),
|
|
207
208
|
/* @__PURE__ */ e(
|
|
208
|
-
|
|
209
|
+
N,
|
|
209
210
|
{
|
|
210
211
|
copy: {
|
|
211
|
-
title: a ?
|
|
212
|
-
close_aria:
|
|
212
|
+
title: a ? r.day_of_the_month : s.notification_threshold_label,
|
|
213
|
+
close_aria: o.close_aria
|
|
213
214
|
},
|
|
214
215
|
disablePrimaryButton: a && u === 0,
|
|
215
|
-
isOpen:
|
|
216
|
-
onClose: () =>
|
|
217
|
-
onPrimaryAction:
|
|
218
|
-
primaryText:
|
|
216
|
+
isOpen: i,
|
|
217
|
+
onClose: () => _(!1),
|
|
218
|
+
onPrimaryAction: A,
|
|
219
|
+
primaryText: o.save_button,
|
|
219
220
|
children: a ? /* @__PURE__ */ e(ne, { dateAdapter: ie, children: /* @__PURE__ */ e(
|
|
220
221
|
te,
|
|
221
222
|
{
|
|
222
223
|
maxDate: Z(/* @__PURE__ */ new Date()),
|
|
223
224
|
minDate: ee(/* @__PURE__ */ new Date()),
|
|
224
225
|
onChange: (k) => {
|
|
225
|
-
|
|
226
|
+
f(k.getDate());
|
|
226
227
|
},
|
|
227
228
|
slots: {
|
|
228
229
|
// Hides the arrows
|
|
@@ -238,13 +239,13 @@ const be = C(() => {
|
|
|
238
239
|
views: ["day"]
|
|
239
240
|
}
|
|
240
241
|
) }) : /* @__PURE__ */ e(
|
|
241
|
-
|
|
242
|
+
he,
|
|
242
243
|
{
|
|
243
|
-
amount:
|
|
244
|
+
amount: d,
|
|
244
245
|
autoFocus: !0,
|
|
245
246
|
fullWidth: !0,
|
|
246
247
|
minAmount: 0,
|
|
247
|
-
setAmount: (k) =>
|
|
248
|
+
setAmount: (k) => h(Number(k) || 0),
|
|
248
249
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
249
250
|
}
|
|
250
251
|
)
|
|
@@ -252,63 +253,63 @@ const be = C(() => {
|
|
|
252
253
|
)
|
|
253
254
|
] });
|
|
254
255
|
}
|
|
255
|
-
),
|
|
256
|
+
), Pe = C(
|
|
256
257
|
({ onUpdateProfile: n, profile: t }) => {
|
|
257
|
-
const { settings:
|
|
258
|
-
opted_out_of_email_notifications:
|
|
259
|
-
opted_out_of_push_notifications:
|
|
260
|
-
opted_out_of_sms_notifications:
|
|
261
|
-
} =
|
|
258
|
+
const { settings: o } = D(), { user: r } = I(), { clientCommunicationProfile: s, userCommunicationsProfile: c } = T(), { isMobile: a } = _e(), i = t.notification_type > 2, {
|
|
259
|
+
opted_out_of_email_notifications: _,
|
|
260
|
+
opted_out_of_push_notifications: d,
|
|
261
|
+
opted_out_of_sms_notifications: h
|
|
262
|
+
} = c, {
|
|
262
263
|
email_notifications_enabled: u,
|
|
263
|
-
push_notifications_enabled:
|
|
264
|
+
push_notifications_enabled: f,
|
|
264
265
|
sms_notifications_enabled: p
|
|
265
|
-
} =
|
|
266
|
+
} = s;
|
|
266
267
|
return /* @__PURE__ */ l(m, { children: [
|
|
267
|
-
(u || p ||
|
|
268
|
-
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children:
|
|
268
|
+
(u || p || f) && /* @__PURE__ */ l(M, { children: [
|
|
269
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: o.delivery_method_title }),
|
|
269
270
|
/* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
270
271
|
u && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
271
272
|
P,
|
|
272
273
|
{
|
|
273
|
-
isChecked: !
|
|
274
|
-
isDisabled:
|
|
274
|
+
isChecked: !_ && t.email_channel && !!r.email,
|
|
275
|
+
isDisabled: _ || !r.email,
|
|
275
276
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
276
|
-
primaryText:
|
|
277
|
-
secondaryText:
|
|
277
|
+
primaryText: o.delivery_method_email_label,
|
|
278
|
+
secondaryText: _ || !t.email_channel || !r.email ? o.notification_disabled : o.notification_enabled,
|
|
278
279
|
useExtraPadding: !1
|
|
279
280
|
}
|
|
280
281
|
) }),
|
|
281
|
-
u && (p ||
|
|
282
|
+
u && (p || f) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
282
283
|
p && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
283
284
|
P,
|
|
284
285
|
{
|
|
285
|
-
isChecked: !
|
|
286
|
-
isDisabled:
|
|
286
|
+
isChecked: !h && t.sms_channel && !!r.phone,
|
|
287
|
+
isDisabled: h || !r.phone,
|
|
287
288
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
288
|
-
primaryText: `${
|
|
289
|
-
secondaryText:
|
|
289
|
+
primaryText: `${o.delivery_method_sms_label}`,
|
|
290
|
+
secondaryText: h || !t.sms_channel || !r.phone ? o.notification_disabled : o.notification_enabled,
|
|
290
291
|
useExtraPadding: !1
|
|
291
292
|
}
|
|
292
293
|
) }),
|
|
293
|
-
p &&
|
|
294
|
-
|
|
294
|
+
p && f && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
295
|
+
f && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
295
296
|
P,
|
|
296
297
|
{
|
|
297
|
-
isChecked: !
|
|
298
|
-
isDisabled:
|
|
298
|
+
isChecked: !d && t.push_channel,
|
|
299
|
+
isDisabled: d,
|
|
299
300
|
onToggle: () => n({ ...t, push_channel: !t.push_channel }),
|
|
300
|
-
primaryText:
|
|
301
|
-
secondaryText:
|
|
301
|
+
primaryText: o.delivery_method_push_label,
|
|
302
|
+
secondaryText: o.delivery_method_push_subtitle,
|
|
302
303
|
useExtraPadding: !1
|
|
303
304
|
}
|
|
304
305
|
) }),
|
|
305
306
|
/* @__PURE__ */ e(v, {})
|
|
306
307
|
] })
|
|
307
308
|
] }),
|
|
308
|
-
|
|
309
|
-
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children:
|
|
309
|
+
i && !!t.children?.length && /* @__PURE__ */ l(m, { children: [
|
|
310
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: o.accounts_threshold_title }),
|
|
310
311
|
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((b) => /* @__PURE__ */ e(
|
|
311
|
-
|
|
312
|
+
Te,
|
|
312
313
|
{
|
|
313
314
|
onProfileUpdated: n,
|
|
314
315
|
profile: b
|
|
@@ -319,42 +320,42 @@ const be = C(() => {
|
|
|
319
320
|
] });
|
|
320
321
|
}
|
|
321
322
|
), H = C(() => {
|
|
322
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [
|
|
323
|
-
() => n.find((
|
|
324
|
-
[n,
|
|
325
|
-
),
|
|
323
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [o, r] = g.useState(""), s = g.useMemo(
|
|
324
|
+
() => n.find((i) => i.guid === o),
|
|
325
|
+
[n, o]
|
|
326
|
+
), c = async (i) => {
|
|
326
327
|
await t({
|
|
327
|
-
...
|
|
328
|
-
is_enabled: !
|
|
328
|
+
...i,
|
|
329
|
+
is_enabled: !i.is_enabled
|
|
329
330
|
});
|
|
330
|
-
}, a = async (
|
|
331
|
-
await t(
|
|
331
|
+
}, a = async (i) => {
|
|
332
|
+
await t(i);
|
|
332
333
|
};
|
|
333
334
|
return /* @__PURE__ */ l(m, { sx: { backgroundColor: "background.paper" }, children: [
|
|
334
|
-
n.filter((
|
|
335
|
-
|
|
335
|
+
n.filter((i) => i.children && i.children.length > 0).map((i) => /* @__PURE__ */ e(
|
|
336
|
+
R,
|
|
336
337
|
{
|
|
337
338
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
338
|
-
isChecked:
|
|
339
|
-
isDisabled: !
|
|
340
|
-
onClick: () =>
|
|
341
|
-
onToggle: () =>
|
|
342
|
-
primaryText:
|
|
343
|
-
secondaryText:
|
|
339
|
+
isChecked: i.is_enabled,
|
|
340
|
+
isDisabled: !i.is_enabled,
|
|
341
|
+
onClick: () => r(i.guid),
|
|
342
|
+
onToggle: () => c(i),
|
|
343
|
+
primaryText: i.label,
|
|
344
|
+
secondaryText: i.is_enabled ? i.deliveryMethodsLabel : void 0
|
|
344
345
|
},
|
|
345
|
-
|
|
346
|
+
i.guid
|
|
346
347
|
)),
|
|
347
348
|
/* @__PURE__ */ e(
|
|
348
349
|
J,
|
|
349
350
|
{
|
|
350
|
-
isOpen: !!
|
|
351
|
-
onClose: () =>
|
|
352
|
-
title:
|
|
353
|
-
children:
|
|
354
|
-
|
|
351
|
+
isOpen: !!s,
|
|
352
|
+
onClose: () => r(""),
|
|
353
|
+
title: s ? s.label : "",
|
|
354
|
+
children: s && /* @__PURE__ */ e(
|
|
355
|
+
Pe,
|
|
355
356
|
{
|
|
356
357
|
onUpdateProfile: a,
|
|
357
|
-
profile:
|
|
358
|
+
profile: s
|
|
358
359
|
}
|
|
359
360
|
)
|
|
360
361
|
}
|
|
@@ -363,49 +364,49 @@ const be = C(() => {
|
|
|
363
364
|
}), q = C(({ profile: n }) => {
|
|
364
365
|
const { settings: t } = D(), {
|
|
365
366
|
clientCommunicationProfile: {
|
|
366
|
-
email_notifications_enabled:
|
|
367
|
-
push_notifications_enabled:
|
|
368
|
-
sms_notifications_enabled:
|
|
367
|
+
email_notifications_enabled: o,
|
|
368
|
+
push_notifications_enabled: r,
|
|
369
|
+
sms_notifications_enabled: s
|
|
369
370
|
},
|
|
370
|
-
updateNotificationProfile:
|
|
371
|
+
updateNotificationProfile: c,
|
|
371
372
|
userCommunicationsProfile: {
|
|
372
373
|
opted_out_of_email_notifications: a,
|
|
373
|
-
opted_out_of_push_notifications:
|
|
374
|
-
opted_out_of_sms_notifications:
|
|
374
|
+
opted_out_of_push_notifications: i,
|
|
375
|
+
opted_out_of_sms_notifications: _
|
|
375
376
|
}
|
|
376
|
-
} = T(), { user:
|
|
377
|
+
} = T(), { user: d } = I(), [h, u] = g.useState(!1), f = async () => {
|
|
377
378
|
await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
|
378
379
|
}, p = async (S) => {
|
|
379
|
-
await
|
|
380
|
-
}, b =
|
|
380
|
+
await c(S);
|
|
381
|
+
}, b = o || s || r;
|
|
381
382
|
return /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
382
383
|
/* @__PURE__ */ e(
|
|
383
|
-
|
|
384
|
+
R,
|
|
384
385
|
{
|
|
385
386
|
endIcon: b ? /* @__PURE__ */ e(
|
|
386
387
|
K,
|
|
387
388
|
{
|
|
388
389
|
sx: {
|
|
389
390
|
transition: "transform 0.3s ease-in-out",
|
|
390
|
-
transform:
|
|
391
|
+
transform: h ? "rotate(180deg)" : "rotate(0deg)"
|
|
391
392
|
}
|
|
392
393
|
}
|
|
393
394
|
) : void 0,
|
|
394
395
|
isChecked: n.is_enabled,
|
|
395
396
|
isDisabled: !n.is_enabled,
|
|
396
|
-
onClick: () => u(!
|
|
397
|
-
onToggle: () =>
|
|
397
|
+
onClick: () => u(!h),
|
|
398
|
+
onToggle: () => f(),
|
|
398
399
|
primaryText: n.label,
|
|
399
400
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
400
401
|
},
|
|
401
402
|
n.guid
|
|
402
403
|
),
|
|
403
|
-
b && /* @__PURE__ */ e(
|
|
404
|
-
|
|
404
|
+
b && /* @__PURE__ */ e(ue, { in: h, children: /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
405
|
+
o && /* @__PURE__ */ e(
|
|
405
406
|
P,
|
|
406
407
|
{
|
|
407
|
-
isChecked: !a && n.email_channel && !!
|
|
408
|
-
isDisabled: a || !
|
|
408
|
+
isChecked: !a && n.email_channel && !!d.email,
|
|
409
|
+
isDisabled: a || !d.email,
|
|
409
410
|
onToggle: () => p({
|
|
410
411
|
...n,
|
|
411
412
|
email_channel: !n.email_channel
|
|
@@ -413,12 +414,12 @@ const be = C(() => {
|
|
|
413
414
|
primaryText: t.delivery_method_email_label
|
|
414
415
|
}
|
|
415
416
|
),
|
|
416
|
-
|
|
417
|
-
|
|
417
|
+
o && (s || r) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
418
|
+
s && /* @__PURE__ */ e(
|
|
418
419
|
P,
|
|
419
420
|
{
|
|
420
|
-
isChecked: !
|
|
421
|
-
isDisabled:
|
|
421
|
+
isChecked: !_ && n.sms_channel && !!d.phone,
|
|
422
|
+
isDisabled: _ || !d.phone,
|
|
422
423
|
onToggle: () => p({
|
|
423
424
|
...n,
|
|
424
425
|
sms_channel: !n.sms_channel
|
|
@@ -426,12 +427,12 @@ const be = C(() => {
|
|
|
426
427
|
primaryText: t.delivery_method_sms_label
|
|
427
428
|
}
|
|
428
429
|
),
|
|
429
|
-
|
|
430
|
-
|
|
430
|
+
s && r && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
431
|
+
r && /* @__PURE__ */ e(
|
|
431
432
|
P,
|
|
432
433
|
{
|
|
433
|
-
isChecked: !
|
|
434
|
-
isDisabled:
|
|
434
|
+
isChecked: !i && n.push_channel,
|
|
435
|
+
isDisabled: i,
|
|
435
436
|
onToggle: () => p({
|
|
436
437
|
...n,
|
|
437
438
|
push_channel: !n.push_channel
|
|
@@ -445,56 +446,56 @@ const be = C(() => {
|
|
|
445
446
|
}), z = C(() => {
|
|
446
447
|
const { budgetProfiles: n } = T();
|
|
447
448
|
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
448
|
-
}),
|
|
449
|
+
}), De = C(() => {
|
|
449
450
|
const { onEvent: n } = ae(), { settings: t } = D(), {
|
|
450
|
-
clientCommunicationProfile:
|
|
451
|
-
updateUserCommunicationProfile:
|
|
452
|
-
userCommunicationsProfile:
|
|
453
|
-
} = T(), { user:
|
|
454
|
-
const
|
|
451
|
+
clientCommunicationProfile: o,
|
|
452
|
+
updateUserCommunicationProfile: r,
|
|
453
|
+
userCommunicationsProfile: s
|
|
454
|
+
} = T(), { user: c } = I(), a = async (i, _) => {
|
|
455
|
+
const d = { ...s, [i]: _ };
|
|
455
456
|
if (n) {
|
|
456
|
-
const u =
|
|
457
|
-
|
|
457
|
+
const u = i.split("_")[3];
|
|
458
|
+
_ === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
458
459
|
}
|
|
459
|
-
await
|
|
460
|
+
await r(d);
|
|
460
461
|
};
|
|
461
462
|
return /* @__PURE__ */ l(m, { children: [
|
|
462
|
-
/* @__PURE__ */ e(
|
|
463
|
-
|
|
463
|
+
/* @__PURE__ */ e(F, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
464
|
+
o.email_notifications_enabled && /* @__PURE__ */ l(M, { children: [
|
|
464
465
|
/* @__PURE__ */ e(
|
|
465
466
|
P,
|
|
466
467
|
{
|
|
467
|
-
isChecked: !!
|
|
468
|
-
isDisabled: !
|
|
468
|
+
isChecked: !!c.email && !s.opted_out_of_email_notifications,
|
|
469
|
+
isDisabled: !c.email,
|
|
469
470
|
onToggle: () => a(
|
|
470
471
|
"opted_out_of_email_notifications",
|
|
471
|
-
!
|
|
472
|
+
!s.opted_out_of_email_notifications
|
|
472
473
|
),
|
|
473
474
|
primaryText: t.delivery_method_email_title,
|
|
474
|
-
secondaryText:
|
|
475
|
+
secondaryText: c.email && !s.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
|
|
475
476
|
useExtraPadding: !1
|
|
476
477
|
}
|
|
477
478
|
),
|
|
478
|
-
(
|
|
479
|
+
(o.sms_notifications_enabled || o.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
479
480
|
] }),
|
|
480
|
-
|
|
481
|
+
o.sms_notifications_enabled && /* @__PURE__ */ l(M, { children: [
|
|
481
482
|
/* @__PURE__ */ e(
|
|
482
483
|
P,
|
|
483
484
|
{
|
|
484
|
-
isChecked: !!
|
|
485
|
-
isDisabled: !
|
|
486
|
-
onToggle: () => a("opted_out_of_sms_notifications", !
|
|
485
|
+
isChecked: !!c.phone && !s.opted_out_of_sms_notifications,
|
|
486
|
+
isDisabled: !c.phone,
|
|
487
|
+
onToggle: () => a("opted_out_of_sms_notifications", !s.opted_out_of_sms_notifications),
|
|
487
488
|
primaryText: t.delivery_method_sms_title,
|
|
488
|
-
secondaryText:
|
|
489
|
+
secondaryText: c.phone && !s.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
|
|
489
490
|
useExtraPadding: !1
|
|
490
491
|
}
|
|
491
492
|
),
|
|
492
|
-
|
|
493
|
+
o.push_notifications_enabled && /* @__PURE__ */ e(v, {})
|
|
493
494
|
] }),
|
|
494
|
-
|
|
495
|
+
o.push_notifications_enabled && /* @__PURE__ */ e(
|
|
495
496
|
P,
|
|
496
497
|
{
|
|
497
|
-
isChecked: !
|
|
498
|
+
isChecked: !s.opted_out_of_push_notifications,
|
|
498
499
|
isDisabled: !0,
|
|
499
500
|
onToggle: () => {
|
|
500
501
|
},
|
|
@@ -503,7 +504,7 @@ const be = C(() => {
|
|
|
503
504
|
useExtraPadding: !1
|
|
504
505
|
}
|
|
505
506
|
),
|
|
506
|
-
|
|
507
|
+
o.sms_notifications_enabled && /* @__PURE__ */ e(pe, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ l(m, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
507
508
|
/* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
|
|
508
509
|
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
509
510
|
] }) }) })
|
|
@@ -511,28 +512,28 @@ const be = C(() => {
|
|
|
511
512
|
}), $ = C(() => {
|
|
512
513
|
const { insightsProfiles: n } = T();
|
|
513
514
|
return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
514
|
-
}),
|
|
515
|
-
const { config: n } = W(), [t, { width:
|
|
515
|
+
}), Se = () => {
|
|
516
|
+
const { config: n } = W(), [t, { width: o }] = ge(), { common: r, settings: s } = D(), { updateUser: c } = T(), { user: a } = I(), [i, _] = g.useState(!1), [d, h] = g.useState({
|
|
516
517
|
email: a.email,
|
|
517
518
|
phone: a.phone
|
|
518
|
-
}), u =
|
|
519
|
-
const { name:
|
|
520
|
-
|
|
519
|
+
}), u = d.email && !a.email_is_verified && !i, f = d.phone && !a.phone_is_verified && !i, p = (S) => {
|
|
520
|
+
const { name: A, value: k } = S.target, B = { ...d, [A]: k };
|
|
521
|
+
h(B), _(JSON.stringify({ ...a, ...B }) !== JSON.stringify(a));
|
|
521
522
|
}, b = async () => {
|
|
522
|
-
await
|
|
523
|
+
await c({ ...a, ...d }), _(!1);
|
|
523
524
|
};
|
|
524
525
|
return /* @__PURE__ */ l(m, { ref: t, children: [
|
|
525
526
|
/* @__PURE__ */ e(v, {}),
|
|
526
527
|
/* @__PURE__ */ l(m, { sx: { pt: 12 }, children: [
|
|
527
|
-
/* @__PURE__ */ e(
|
|
528
|
-
/* @__PURE__ */ l(m, { sx: { flexDirection:
|
|
528
|
+
/* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: s.personal_details }),
|
|
529
|
+
/* @__PURE__ */ l(m, { sx: { flexDirection: o <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
529
530
|
n.display_email_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
|
|
530
531
|
/* @__PURE__ */ e(
|
|
531
|
-
|
|
532
|
+
U,
|
|
532
533
|
{
|
|
533
534
|
defaultValue: a.email,
|
|
534
535
|
fullWidth: !0,
|
|
535
|
-
label:
|
|
536
|
+
label: s.email_address,
|
|
536
537
|
name: "email",
|
|
537
538
|
onChange: p
|
|
538
539
|
}
|
|
@@ -549,22 +550,22 @@ const be = C(() => {
|
|
|
549
550
|
}
|
|
550
551
|
}
|
|
551
552
|
},
|
|
552
|
-
children: /* @__PURE__ */ e(
|
|
553
|
+
children: /* @__PURE__ */ e(xe, {})
|
|
553
554
|
}
|
|
554
555
|
)
|
|
555
556
|
] }),
|
|
556
557
|
n.display_sms_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
|
|
557
558
|
/* @__PURE__ */ e(
|
|
558
|
-
|
|
559
|
+
U,
|
|
559
560
|
{
|
|
560
561
|
defaultValue: a.phone,
|
|
561
562
|
fullWidth: !0,
|
|
562
|
-
label:
|
|
563
|
+
label: s.mobile_number,
|
|
563
564
|
name: "phone",
|
|
564
565
|
onChange: p
|
|
565
566
|
}
|
|
566
567
|
),
|
|
567
|
-
|
|
568
|
+
f && /* @__PURE__ */ e(
|
|
568
569
|
G,
|
|
569
570
|
{
|
|
570
571
|
sx: {
|
|
@@ -576,83 +577,85 @@ const be = C(() => {
|
|
|
576
577
|
}
|
|
577
578
|
}
|
|
578
579
|
},
|
|
579
|
-
children: /* @__PURE__ */ e(
|
|
580
|
+
children: /* @__PURE__ */ e(ve, {})
|
|
580
581
|
}
|
|
581
582
|
)
|
|
582
583
|
] })
|
|
583
584
|
] }),
|
|
584
585
|
/* @__PURE__ */ e(
|
|
585
|
-
|
|
586
|
+
j,
|
|
586
587
|
{
|
|
587
|
-
disabled: !
|
|
588
|
+
disabled: !i,
|
|
588
589
|
onClick: b,
|
|
589
590
|
sx: { width: 84 },
|
|
590
591
|
variant: "contained",
|
|
591
|
-
children:
|
|
592
|
+
children: r.save_button
|
|
592
593
|
}
|
|
593
594
|
)
|
|
594
595
|
] })
|
|
595
596
|
] });
|
|
596
|
-
},
|
|
597
|
+
}, ke = C(Se), lt = C(
|
|
597
598
|
({
|
|
598
599
|
notificationTypes: n = [y.Accounts, y.Budgets],
|
|
599
600
|
showPersonalDetails: t = !1,
|
|
600
|
-
view:
|
|
601
|
+
view: o
|
|
601
602
|
}) => {
|
|
602
|
-
const { config:
|
|
603
|
+
const { onLoad: r } = ce(), { config: s } = W(), { settings: c } = D(), { isInitialized: a } = le(), { clientCommunicationProfile: i, loadNotificationProfiles: _ } = T(), d = ye(), [h, u] = g.useState(
|
|
603
604
|
void 0
|
|
604
605
|
);
|
|
605
|
-
if (n.length > 0 &&
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
606
|
+
if (n.length > 0 && d && n.push(y.Insights), g.useEffect(() => {
|
|
607
|
+
a && _().finally(() => {
|
|
608
|
+
r?.("NotificationSettings");
|
|
609
|
+
});
|
|
610
|
+
}, [a]), !a)
|
|
611
|
+
return /* @__PURE__ */ e(be, {});
|
|
612
|
+
let f = c.manage_account_notifications;
|
|
613
|
+
h === y.Budgets ? f = c.manage_budget_notifications : h === y.Insights && (f = c.manage_insights_notifications);
|
|
611
614
|
const {
|
|
612
|
-
email_notifications_enabled:
|
|
613
|
-
sms_notifications_enabled:
|
|
614
|
-
push_notifications_enabled:
|
|
615
|
-
} =
|
|
616
|
-
if (
|
|
615
|
+
email_notifications_enabled: p,
|
|
616
|
+
sms_notifications_enabled: b,
|
|
617
|
+
push_notifications_enabled: S
|
|
618
|
+
} = i, A = p || b || S;
|
|
619
|
+
if (o === "accounts")
|
|
617
620
|
return /* @__PURE__ */ e(H, {});
|
|
618
|
-
if (
|
|
621
|
+
if (o === "budgets")
|
|
619
622
|
return /* @__PURE__ */ e(z, {});
|
|
620
|
-
if (
|
|
623
|
+
if (o === "insights")
|
|
621
624
|
return /* @__PURE__ */ e($, {});
|
|
622
|
-
const
|
|
623
|
-
return /* @__PURE__ */ l(m, { sx: { pt:
|
|
625
|
+
const k = s.display_email_edit_field_in_settings || s.display_sms_edit_field_in_settings, B = t && i.can_edit_contact_info && k;
|
|
626
|
+
return /* @__PURE__ */ l(m, { sx: { pt: A ? 0 : 24 }, children: [
|
|
624
627
|
/* @__PURE__ */ l(m, { sx: { px: 24 }, children: [
|
|
625
|
-
|
|
626
|
-
/* @__PURE__ */ e(
|
|
628
|
+
A && /* @__PURE__ */ l(M, { children: [
|
|
629
|
+
/* @__PURE__ */ e(De, {}),
|
|
627
630
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
628
631
|
] }),
|
|
629
|
-
/* @__PURE__ */ e(
|
|
632
|
+
/* @__PURE__ */ e(F, { sx: { mb: 4 }, children: c.notification_types_title })
|
|
630
633
|
] }),
|
|
631
634
|
/* @__PURE__ */ l(E, { children: [
|
|
632
|
-
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () =>
|
|
633
|
-
/* @__PURE__ */ e(
|
|
635
|
+
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Accounts), children: [
|
|
636
|
+
/* @__PURE__ */ e(L, { primary: c.accounts_title, secondary: c.accounts_subtitle }),
|
|
634
637
|
/* @__PURE__ */ e(w, {})
|
|
635
638
|
] }) }),
|
|
636
|
-
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () =>
|
|
637
|
-
/* @__PURE__ */ e(
|
|
639
|
+
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Budgets), children: [
|
|
640
|
+
/* @__PURE__ */ e(L, { primary: c.budgets_title, secondary: c.budgets_subtitle }),
|
|
638
641
|
/* @__PURE__ */ e(w, {})
|
|
639
642
|
] }) }),
|
|
640
|
-
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () =>
|
|
641
|
-
/* @__PURE__ */ e(
|
|
643
|
+
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => u(y.Insights), children: [
|
|
644
|
+
/* @__PURE__ */ e(L, { primary: c.insights_title, secondary: c.insights_subtitle }),
|
|
642
645
|
/* @__PURE__ */ e(w, {})
|
|
643
646
|
] }) })
|
|
644
647
|
] }),
|
|
645
|
-
|
|
648
|
+
B && /* @__PURE__ */ e(m, { sx: { px: 24 }, children: /* @__PURE__ */ e(ke, {}) }),
|
|
646
649
|
/* @__PURE__ */ e(
|
|
647
650
|
J,
|
|
648
651
|
{
|
|
649
|
-
isOpen: !!
|
|
650
|
-
onClose: () =>
|
|
651
|
-
title:
|
|
652
|
+
isOpen: !!h,
|
|
653
|
+
onClose: () => u(void 0),
|
|
654
|
+
title: f,
|
|
652
655
|
children: /* @__PURE__ */ l(m, { children: [
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
+
h === y.Accounts && /* @__PURE__ */ e(H, {}),
|
|
657
|
+
h === y.Budgets && /* @__PURE__ */ e(z, {}),
|
|
658
|
+
h === y.Insights && /* @__PURE__ */ e($, {})
|
|
656
659
|
] })
|
|
657
660
|
}
|
|
658
661
|
)
|
|
@@ -664,6 +667,6 @@ export {
|
|
|
664
667
|
z as B,
|
|
665
668
|
$ as I,
|
|
666
669
|
lt as N,
|
|
667
|
-
|
|
668
|
-
|
|
670
|
+
xe as V,
|
|
671
|
+
ve as a
|
|
669
672
|
};
|