@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.mega1
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 +178 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
- package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
- package/dist/Accounts-Bzy1_REQ.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-BmZXkL0C.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
- package/dist/SpendingLegend-CDO060GT.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- 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 +245 -235
- package/dist/accounts/stores/AccountStore.d.ts +24 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +611 -580
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +187 -180
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +397 -387
- 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/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +458 -448
- package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3190 -1073
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +302 -291
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +108 -104
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +4 -3
- package/dist/microinsights/index.es.js +101 -14
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/index.es.js +197 -190
- package/dist/notifications/index.es.js +25 -25
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +395 -351
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +307 -298
- package/dist/spending/index.es.js +299 -438
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +115 -112
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +1025 -604
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- 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/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, 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
|
-
import
|
|
10
|
-
import { ChevronRight as w, ExpandMore as
|
|
11
|
-
import { Text as x, InstitutionLogo as
|
|
12
|
-
import { endOfMonth as
|
|
13
|
-
import { startOfMonth as
|
|
14
|
-
import { DateCalendar as
|
|
15
|
-
import { LocalizationProvider as
|
|
16
|
-
import { AdapterDateFns as
|
|
17
|
-
import { A as
|
|
18
|
-
import { u as D,
|
|
19
|
-
import { b as
|
|
20
|
-
import { b as
|
|
21
|
-
import {
|
|
22
|
-
import { C as
|
|
23
|
-
import { u as
|
|
24
|
-
import { D as J } from "./Drawer-
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
9
|
+
import h from "@mui/material/Stack";
|
|
10
|
+
import { ChevronRight as w, ExpandMore as Q, Star as Y } from "@mxenabled/mx-icons";
|
|
11
|
+
import { Text as x, InstitutionLogo as Z, H3 as F } from "@mxenabled/mxui";
|
|
12
|
+
import { endOfMonth as ee } from "date-fns/endOfMonth";
|
|
13
|
+
import { startOfMonth as te } from "date-fns/startOfMonth";
|
|
14
|
+
import { DateCalendar as ne } from "@mui/x-date-pickers/DateCalendar";
|
|
15
|
+
import { LocalizationProvider as ie } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
|
+
import { AdapterDateFns as oe } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
|
+
import { A as se, T as R, a as P, N as y } from "./ToggleListItem-ciFTiqRS.mjs";
|
|
18
|
+
import { u as D, r as T, o as A, d as ae, g as ce, a as $, b as le } from "./hooks-ZMp65DFz.mjs";
|
|
19
|
+
import { b as re } from "./Localization-2MODESHW.mjs";
|
|
20
|
+
import { b as de, f as me } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
21
|
+
import { D as N } from "./Dialog-BPTr3qHE.mjs";
|
|
22
|
+
import { C as he } from "./CurrencyInput-itK0R3wV.mjs";
|
|
23
|
+
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
+
import { D as J } from "./Drawer-By9V-B5L.mjs";
|
|
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 {
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
import { u as ye } from "./useInsightsEnabled-B7dxpDrX.mjs";
|
|
34
|
+
import { u as be } from "./useWidgetLoadTimer-hIOioiKx.mjs";
|
|
35
|
+
import { L as xe } from "./Loader-DUaFpDGv.mjs";
|
|
36
|
+
const Ce = C(() => {
|
|
37
|
+
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: l } = A(), i = X(), [r, a] = g.useState(!1), o = () => {
|
|
37
38
|
a(!1);
|
|
38
|
-
},
|
|
39
|
+
}, _ = () => {
|
|
39
40
|
a(!0);
|
|
40
41
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ c(g.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
43
44
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
|
44
45
|
/* @__PURE__ */ e(w, {})
|
|
45
46
|
] }),
|
|
46
47
|
/* @__PURE__ */ e(
|
|
47
|
-
|
|
48
|
+
N,
|
|
48
49
|
{
|
|
49
50
|
copy: { title: "" },
|
|
50
|
-
isOpen:
|
|
51
|
+
isOpen: r,
|
|
51
52
|
onClose: o,
|
|
52
53
|
onPrimaryAction: s,
|
|
53
54
|
onSecondaryAction: o,
|
|
@@ -61,7 +62,7 @@ const be = C(() => {
|
|
|
61
62
|
justifyContent: "center"
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
65
66
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
66
67
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
67
68
|
/* @__PURE__ */ e(
|
|
@@ -73,7 +74,7 @@ const be = C(() => {
|
|
|
73
74
|
p: "16px 32px"
|
|
74
75
|
},
|
|
75
76
|
variant: "H3",
|
|
76
|
-
children:
|
|
77
|
+
children: l.email
|
|
77
78
|
}
|
|
78
79
|
),
|
|
79
80
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.verification_notice_email })
|
|
@@ -81,19 +82,19 @@ const be = C(() => {
|
|
|
81
82
|
}
|
|
82
83
|
)
|
|
83
84
|
] });
|
|
84
|
-
}),
|
|
85
|
+
}), ve = C(
|
|
85
86
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
86
|
-
const { common:
|
|
87
|
+
const { common: l, settings: i } = D(), [r, a] = g.useState("");
|
|
87
88
|
return /* @__PURE__ */ e(
|
|
88
|
-
|
|
89
|
+
N,
|
|
89
90
|
{
|
|
90
91
|
copy: { title: i.enter_verification_code },
|
|
91
92
|
isOpen: s,
|
|
92
93
|
onClose: n,
|
|
93
|
-
onPrimaryAction: () => t(
|
|
94
|
+
onPrimaryAction: () => t(r),
|
|
94
95
|
onSecondaryAction: n,
|
|
95
96
|
primaryText: i.verify,
|
|
96
|
-
secondaryText:
|
|
97
|
+
secondaryText: l.cancel_button,
|
|
97
98
|
sx: {
|
|
98
99
|
"& .MuiDialogContent-root": { pt: 0, width: 400 },
|
|
99
100
|
"& .MuiToolbar-root:last-child": {
|
|
@@ -102,37 +103,37 @@ const be = C(() => {
|
|
|
102
103
|
justifyContent: "flex-end"
|
|
103
104
|
}
|
|
104
105
|
},
|
|
105
|
-
children: /* @__PURE__ */ e(
|
|
106
|
+
children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(U, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: r }) })
|
|
106
107
|
}
|
|
107
108
|
);
|
|
108
109
|
}
|
|
109
|
-
),
|
|
110
|
-
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken:
|
|
110
|
+
), Te = C(() => {
|
|
111
|
+
const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = X(), [a, o] = g.useState(!1), [_, d] = g.useState(!1), p = () => {
|
|
111
112
|
o(!1);
|
|
112
|
-
},
|
|
113
|
+
}, m = () => {
|
|
113
114
|
o(!0);
|
|
114
|
-
},
|
|
115
|
+
}, f = () => {
|
|
115
116
|
s().finally(() => {
|
|
116
|
-
|
|
117
|
+
d(!0);
|
|
117
118
|
});
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
}, u = (b) => {
|
|
120
|
+
l(b).finally(() => {
|
|
121
|
+
d(!1);
|
|
121
122
|
});
|
|
122
123
|
};
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ c(g.Fragment, { children: [
|
|
125
|
+
/* @__PURE__ */ c(j, { onClick: m, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
125
126
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
|
126
127
|
/* @__PURE__ */ e(w, {})
|
|
127
128
|
] }),
|
|
128
129
|
/* @__PURE__ */ e(
|
|
129
|
-
|
|
130
|
+
N,
|
|
130
131
|
{
|
|
131
132
|
copy: { title: "" },
|
|
132
133
|
isOpen: a,
|
|
133
|
-
onClose:
|
|
134
|
-
onPrimaryAction:
|
|
135
|
-
onSecondaryAction:
|
|
134
|
+
onClose: p,
|
|
135
|
+
onPrimaryAction: f,
|
|
136
|
+
onSecondaryAction: p,
|
|
136
137
|
primaryText: t.send_verification,
|
|
137
138
|
secondaryText: n.back,
|
|
138
139
|
sx: {
|
|
@@ -143,14 +144,14 @@ const be = C(() => {
|
|
|
143
144
|
justifyContent: "center"
|
|
144
145
|
}
|
|
145
146
|
},
|
|
146
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
147
148
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
148
149
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
149
150
|
/* @__PURE__ */ e(
|
|
150
151
|
x,
|
|
151
152
|
{
|
|
152
153
|
sx: {
|
|
153
|
-
border: `1px solid ${
|
|
154
|
+
border: `1px solid ${r.palette.border.light}`,
|
|
154
155
|
borderRadius: "4px",
|
|
155
156
|
p: "16px 32px"
|
|
156
157
|
},
|
|
@@ -163,30 +164,30 @@ const be = C(() => {
|
|
|
163
164
|
}
|
|
164
165
|
),
|
|
165
166
|
/* @__PURE__ */ e(
|
|
166
|
-
|
|
167
|
+
ve,
|
|
167
168
|
{
|
|
168
|
-
handleClose: () =>
|
|
169
|
-
handleVerify:
|
|
170
|
-
isOpen:
|
|
169
|
+
handleClose: () => d(!1),
|
|
170
|
+
handleVerify: u,
|
|
171
|
+
isOpen: _
|
|
171
172
|
}
|
|
172
173
|
)
|
|
173
174
|
] });
|
|
174
|
-
}),
|
|
175
|
+
}), Pe = C(
|
|
175
176
|
({ onProfileUpdated: n, profile: t }) => {
|
|
176
|
-
const { common: s, recurring:
|
|
177
|
+
const { common: s, recurring: l, settings: i } = D(), { updateAccount: r } = ae(), a = t.notification_type === se.DebtPaymentReminder, [o, _] = g.useState(!1), [d, p] = g.useState(t.threshold || 0), [m, f] = g.useState(
|
|
177
178
|
t.account?.day_payment_is_due || 0
|
|
178
|
-
),
|
|
179
|
+
), u = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? re(
|
|
179
180
|
i.notification_debt_payment_date,
|
|
180
|
-
|
|
181
|
-
) : i.notification_debt_payment_zero_state,
|
|
182
|
-
a && t.account ? await
|
|
181
|
+
de(t.account?.day_payment_is_due)
|
|
182
|
+
) : i.notification_debt_payment_zero_state, k = a ? b : me(t.threshold ?? 0, "0,0"), I = async () => {
|
|
183
|
+
a && t.account ? await r({ ...t.account, day_payment_is_due: m }) : n({ ...t, threshold: d });
|
|
183
184
|
};
|
|
184
|
-
return /* @__PURE__ */
|
|
185
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
185
186
|
/* @__PURE__ */ e(
|
|
186
|
-
|
|
187
|
+
R,
|
|
187
188
|
{
|
|
188
189
|
avatar: t.account?.institution_guid ? /* @__PURE__ */ e(
|
|
189
|
-
|
|
190
|
+
Z,
|
|
190
191
|
{
|
|
191
192
|
alt: t.label,
|
|
192
193
|
institutionGuid: t.account?.institution_guid
|
|
@@ -194,35 +195,36 @@ const be = C(() => {
|
|
|
194
195
|
) : void 0,
|
|
195
196
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
196
197
|
isChecked: t.is_enabled,
|
|
198
|
+
isDisabled: !t.is_enabled,
|
|
197
199
|
isPrimaryTextBold: !0,
|
|
198
|
-
onClick: () =>
|
|
200
|
+
onClick: () => _(!0),
|
|
199
201
|
onToggle: () => n({
|
|
200
202
|
...t,
|
|
201
203
|
is_enabled: !t.is_enabled
|
|
202
204
|
}),
|
|
203
|
-
primaryText:
|
|
204
|
-
secondaryText:
|
|
205
|
+
primaryText: u,
|
|
206
|
+
secondaryText: t.is_enabled ? k : i.notification_disabled
|
|
205
207
|
}
|
|
206
208
|
),
|
|
207
209
|
/* @__PURE__ */ e(
|
|
208
|
-
|
|
210
|
+
N,
|
|
209
211
|
{
|
|
210
212
|
copy: {
|
|
211
|
-
title: a ?
|
|
213
|
+
title: a ? l.day_of_the_month : i.notification_threshold_label,
|
|
212
214
|
close_aria: s.close_aria
|
|
213
215
|
},
|
|
214
|
-
disablePrimaryButton: a &&
|
|
216
|
+
disablePrimaryButton: a && m === 0,
|
|
215
217
|
isOpen: o,
|
|
216
|
-
onClose: () =>
|
|
218
|
+
onClose: () => _(!1),
|
|
217
219
|
onPrimaryAction: I,
|
|
218
220
|
primaryText: s.save_button,
|
|
219
|
-
children: a ? /* @__PURE__ */ e(
|
|
220
|
-
|
|
221
|
+
children: a ? /* @__PURE__ */ e(ie, { dateAdapter: oe, children: /* @__PURE__ */ e(
|
|
222
|
+
ne,
|
|
221
223
|
{
|
|
222
|
-
maxDate:
|
|
223
|
-
minDate:
|
|
224
|
-
onChange: (
|
|
225
|
-
|
|
224
|
+
maxDate: ee(/* @__PURE__ */ new Date()),
|
|
225
|
+
minDate: te(/* @__PURE__ */ new Date()),
|
|
226
|
+
onChange: (S) => {
|
|
227
|
+
f(S.getDate());
|
|
226
228
|
},
|
|
227
229
|
slots: {
|
|
228
230
|
// Hides the arrows
|
|
@@ -238,13 +240,13 @@ const be = C(() => {
|
|
|
238
240
|
views: ["day"]
|
|
239
241
|
}
|
|
240
242
|
) }) : /* @__PURE__ */ e(
|
|
241
|
-
|
|
243
|
+
he,
|
|
242
244
|
{
|
|
243
|
-
amount:
|
|
245
|
+
amount: d,
|
|
244
246
|
autoFocus: !0,
|
|
245
247
|
fullWidth: !0,
|
|
246
248
|
minAmount: 0,
|
|
247
|
-
setAmount: (
|
|
249
|
+
setAmount: (S) => p(Number(S) || 0),
|
|
248
250
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
249
251
|
}
|
|
250
252
|
)
|
|
@@ -252,50 +254,50 @@ const be = C(() => {
|
|
|
252
254
|
)
|
|
253
255
|
] });
|
|
254
256
|
}
|
|
255
|
-
),
|
|
257
|
+
), De = C(
|
|
256
258
|
({ onUpdateProfile: n, profile: t }) => {
|
|
257
|
-
const { settings: s } = D(), { user:
|
|
258
|
-
opted_out_of_email_notifications:
|
|
259
|
-
opted_out_of_push_notifications:
|
|
260
|
-
opted_out_of_sms_notifications:
|
|
261
|
-
} =
|
|
262
|
-
email_notifications_enabled:
|
|
263
|
-
push_notifications_enabled:
|
|
264
|
-
sms_notifications_enabled:
|
|
259
|
+
const { settings: s } = D(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = _e(), o = t.notification_type > 2, {
|
|
260
|
+
opted_out_of_email_notifications: _,
|
|
261
|
+
opted_out_of_push_notifications: d,
|
|
262
|
+
opted_out_of_sms_notifications: p
|
|
263
|
+
} = r, {
|
|
264
|
+
email_notifications_enabled: m,
|
|
265
|
+
push_notifications_enabled: f,
|
|
266
|
+
sms_notifications_enabled: u
|
|
265
267
|
} = i;
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
(
|
|
268
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
269
|
+
(m || u || f) && /* @__PURE__ */ c(M, { children: [
|
|
268
270
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
|
|
271
|
+
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
272
|
+
m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
271
273
|
P,
|
|
272
274
|
{
|
|
273
|
-
isChecked: !
|
|
274
|
-
isDisabled:
|
|
275
|
+
isChecked: !_ && t.email_channel && !!l.email,
|
|
276
|
+
isDisabled: _ || !l.email,
|
|
275
277
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
276
278
|
primaryText: s.delivery_method_email_label,
|
|
277
|
-
secondaryText:
|
|
279
|
+
secondaryText: _ || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
278
280
|
useExtraPadding: !1
|
|
279
281
|
}
|
|
280
282
|
) }),
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
m && (u || f) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
284
|
+
u && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
283
285
|
P,
|
|
284
286
|
{
|
|
285
|
-
isChecked: !
|
|
286
|
-
isDisabled:
|
|
287
|
+
isChecked: !p && t.sms_channel && !!l.phone,
|
|
288
|
+
isDisabled: p || !l.phone,
|
|
287
289
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
288
290
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
289
|
-
secondaryText:
|
|
291
|
+
secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
290
292
|
useExtraPadding: !1
|
|
291
293
|
}
|
|
292
294
|
) }),
|
|
293
|
-
|
|
294
|
-
|
|
295
|
+
u && f && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
296
|
+
f && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
295
297
|
P,
|
|
296
298
|
{
|
|
297
|
-
isChecked: !
|
|
298
|
-
isDisabled:
|
|
299
|
+
isChecked: !d && t.push_channel,
|
|
300
|
+
isDisabled: d,
|
|
299
301
|
onToggle: () => n({ ...t, push_channel: !t.push_channel }),
|
|
300
302
|
primaryText: s.delivery_method_push_label,
|
|
301
303
|
secondaryText: s.delivery_method_push_subtitle,
|
|
@@ -305,10 +307,10 @@ const be = C(() => {
|
|
|
305
307
|
/* @__PURE__ */ e(v, {})
|
|
306
308
|
] })
|
|
307
309
|
] }),
|
|
308
|
-
o && !!t.children?.length && /* @__PURE__ */
|
|
310
|
+
o && !!t.children?.length && /* @__PURE__ */ c(h, { children: [
|
|
309
311
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
310
312
|
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((b) => /* @__PURE__ */ e(
|
|
311
|
-
|
|
313
|
+
Pe,
|
|
312
314
|
{
|
|
313
315
|
onProfileUpdated: n,
|
|
314
316
|
profile: b
|
|
@@ -319,10 +321,10 @@ const be = C(() => {
|
|
|
319
321
|
] });
|
|
320
322
|
}
|
|
321
323
|
), H = C(() => {
|
|
322
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s,
|
|
324
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = g.useState(""), i = g.useMemo(
|
|
323
325
|
() => n.find((o) => o.guid === s),
|
|
324
326
|
[n, s]
|
|
325
|
-
),
|
|
327
|
+
), r = async (o) => {
|
|
326
328
|
await t({
|
|
327
329
|
...o,
|
|
328
330
|
is_enabled: !o.is_enabled
|
|
@@ -330,15 +332,15 @@ const be = C(() => {
|
|
|
330
332
|
}, a = async (o) => {
|
|
331
333
|
await t(o);
|
|
332
334
|
};
|
|
333
|
-
return /* @__PURE__ */
|
|
335
|
+
return /* @__PURE__ */ c(h, { sx: { backgroundColor: "background.paper" }, children: [
|
|
334
336
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
335
|
-
|
|
337
|
+
R,
|
|
336
338
|
{
|
|
337
339
|
endIcon: /* @__PURE__ */ e(w, {}),
|
|
338
340
|
isChecked: o.is_enabled,
|
|
339
341
|
isDisabled: !o.is_enabled,
|
|
340
|
-
onClick: () =>
|
|
341
|
-
onToggle: () =>
|
|
342
|
+
onClick: () => l(o.guid),
|
|
343
|
+
onToggle: () => r(o),
|
|
342
344
|
primaryText: o.label,
|
|
343
345
|
secondaryText: o.is_enabled ? o.deliveryMethodsLabel : void 0
|
|
344
346
|
},
|
|
@@ -348,10 +350,10 @@ const be = C(() => {
|
|
|
348
350
|
J,
|
|
349
351
|
{
|
|
350
352
|
isOpen: !!i,
|
|
351
|
-
onClose: () =>
|
|
353
|
+
onClose: () => l(""),
|
|
352
354
|
title: i ? i.label : "",
|
|
353
355
|
children: i && /* @__PURE__ */ e(
|
|
354
|
-
|
|
356
|
+
De,
|
|
355
357
|
{
|
|
356
358
|
onUpdateProfile: a,
|
|
357
359
|
profile: i
|
|
@@ -364,75 +366,75 @@ const be = C(() => {
|
|
|
364
366
|
const { settings: t } = D(), {
|
|
365
367
|
clientCommunicationProfile: {
|
|
366
368
|
email_notifications_enabled: s,
|
|
367
|
-
push_notifications_enabled:
|
|
369
|
+
push_notifications_enabled: l,
|
|
368
370
|
sms_notifications_enabled: i
|
|
369
371
|
},
|
|
370
|
-
updateNotificationProfile:
|
|
372
|
+
updateNotificationProfile: r,
|
|
371
373
|
userCommunicationsProfile: {
|
|
372
374
|
opted_out_of_email_notifications: a,
|
|
373
375
|
opted_out_of_push_notifications: o,
|
|
374
|
-
opted_out_of_sms_notifications:
|
|
376
|
+
opted_out_of_sms_notifications: _
|
|
375
377
|
}
|
|
376
|
-
} = T(), { user:
|
|
377
|
-
await
|
|
378
|
-
},
|
|
379
|
-
await
|
|
380
|
-
}, b = s || i ||
|
|
381
|
-
return /* @__PURE__ */
|
|
378
|
+
} = T(), { user: d } = A(), [p, m] = g.useState(!1), f = async () => {
|
|
379
|
+
await u({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && m(!1);
|
|
380
|
+
}, u = async (k) => {
|
|
381
|
+
await r(k);
|
|
382
|
+
}, b = s || i || l;
|
|
383
|
+
return /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
382
384
|
/* @__PURE__ */ e(
|
|
383
|
-
|
|
385
|
+
R,
|
|
384
386
|
{
|
|
385
387
|
endIcon: b ? /* @__PURE__ */ e(
|
|
386
|
-
|
|
388
|
+
Q,
|
|
387
389
|
{
|
|
388
390
|
sx: {
|
|
389
391
|
transition: "transform 0.3s ease-in-out",
|
|
390
|
-
transform:
|
|
392
|
+
transform: p ? "rotate(180deg)" : "rotate(0deg)"
|
|
391
393
|
}
|
|
392
394
|
}
|
|
393
395
|
) : void 0,
|
|
394
396
|
isChecked: n.is_enabled,
|
|
395
397
|
isDisabled: !n.is_enabled,
|
|
396
|
-
onClick: () =>
|
|
397
|
-
onToggle: () =>
|
|
398
|
+
onClick: () => m(!p),
|
|
399
|
+
onToggle: () => f(),
|
|
398
400
|
primaryText: n.label,
|
|
399
401
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
400
402
|
},
|
|
401
403
|
n.guid
|
|
402
404
|
),
|
|
403
|
-
b && /* @__PURE__ */ e(
|
|
405
|
+
b && /* @__PURE__ */ e(ue, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
404
406
|
s && /* @__PURE__ */ e(
|
|
405
407
|
P,
|
|
406
408
|
{
|
|
407
|
-
isChecked: !a && n.email_channel && !!
|
|
408
|
-
isDisabled: a || !
|
|
409
|
-
onToggle: () =>
|
|
409
|
+
isChecked: !a && n.email_channel && !!d.email,
|
|
410
|
+
isDisabled: a || !d.email,
|
|
411
|
+
onToggle: () => u({
|
|
410
412
|
...n,
|
|
411
413
|
email_channel: !n.email_channel
|
|
412
414
|
}),
|
|
413
415
|
primaryText: t.delivery_method_email_label
|
|
414
416
|
}
|
|
415
417
|
),
|
|
416
|
-
s && (i ||
|
|
418
|
+
s && (i || l) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
417
419
|
i && /* @__PURE__ */ e(
|
|
418
420
|
P,
|
|
419
421
|
{
|
|
420
|
-
isChecked: !
|
|
421
|
-
isDisabled:
|
|
422
|
-
onToggle: () =>
|
|
422
|
+
isChecked: !_ && n.sms_channel && !!d.phone,
|
|
423
|
+
isDisabled: _ || !d.phone,
|
|
424
|
+
onToggle: () => u({
|
|
423
425
|
...n,
|
|
424
426
|
sms_channel: !n.sms_channel
|
|
425
427
|
}),
|
|
426
428
|
primaryText: t.delivery_method_sms_label
|
|
427
429
|
}
|
|
428
430
|
),
|
|
429
|
-
i &&
|
|
430
|
-
|
|
431
|
+
i && l && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
|
|
432
|
+
l && /* @__PURE__ */ e(
|
|
431
433
|
P,
|
|
432
434
|
{
|
|
433
435
|
isChecked: !o && n.push_channel,
|
|
434
436
|
isDisabled: o,
|
|
435
|
-
onToggle: () =>
|
|
437
|
+
onToggle: () => u({
|
|
436
438
|
...n,
|
|
437
439
|
push_channel: !n.push_channel
|
|
438
440
|
}),
|
|
@@ -442,50 +444,50 @@ const be = C(() => {
|
|
|
442
444
|
] }) }),
|
|
443
445
|
/* @__PURE__ */ e(v, {})
|
|
444
446
|
] }, n.guid);
|
|
445
|
-
}),
|
|
447
|
+
}), W = C(() => {
|
|
446
448
|
const { budgetProfiles: n } = T();
|
|
447
|
-
return /* @__PURE__ */ e(
|
|
448
|
-
}),
|
|
449
|
-
const { onEvent: n } =
|
|
449
|
+
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
450
|
+
}), Se = C(() => {
|
|
451
|
+
const { onEvent: n } = ce(), { settings: t } = D(), {
|
|
450
452
|
clientCommunicationProfile: s,
|
|
451
|
-
updateUserCommunicationProfile:
|
|
453
|
+
updateUserCommunicationProfile: l,
|
|
452
454
|
userCommunicationsProfile: i
|
|
453
|
-
} = T(), { user:
|
|
454
|
-
const
|
|
455
|
+
} = T(), { user: r } = A(), a = async (o, _) => {
|
|
456
|
+
const d = { ...i, [o]: _ };
|
|
455
457
|
if (n) {
|
|
456
|
-
const
|
|
457
|
-
|
|
458
|
+
const m = o.split("_")[3];
|
|
459
|
+
_ === !1 ? n("opt_in_notification_method", { notificationType: m }) : n("opt_out_notification_method", { notificationType: m });
|
|
458
460
|
}
|
|
459
|
-
await
|
|
461
|
+
await l(d);
|
|
460
462
|
};
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
-
/* @__PURE__ */ e(
|
|
463
|
-
s.email_notifications_enabled && /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ c(h, { children: [
|
|
464
|
+
/* @__PURE__ */ e(F, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
465
|
+
s.email_notifications_enabled && /* @__PURE__ */ c(M, { children: [
|
|
464
466
|
/* @__PURE__ */ e(
|
|
465
467
|
P,
|
|
466
468
|
{
|
|
467
|
-
isChecked: !!
|
|
468
|
-
isDisabled: !
|
|
469
|
+
isChecked: !!r.email && !i.opted_out_of_email_notifications,
|
|
470
|
+
isDisabled: !r.email,
|
|
469
471
|
onToggle: () => a(
|
|
470
472
|
"opted_out_of_email_notifications",
|
|
471
473
|
!i.opted_out_of_email_notifications
|
|
472
474
|
),
|
|
473
475
|
primaryText: t.delivery_method_email_title,
|
|
474
|
-
secondaryText:
|
|
476
|
+
secondaryText: r.email && !i.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
|
|
475
477
|
useExtraPadding: !1
|
|
476
478
|
}
|
|
477
479
|
),
|
|
478
480
|
(s.sms_notifications_enabled || s.push_notifications_enabled) && /* @__PURE__ */ e(v, {})
|
|
479
481
|
] }),
|
|
480
|
-
s.sms_notifications_enabled && /* @__PURE__ */
|
|
482
|
+
s.sms_notifications_enabled && /* @__PURE__ */ c(M, { children: [
|
|
481
483
|
/* @__PURE__ */ e(
|
|
482
484
|
P,
|
|
483
485
|
{
|
|
484
|
-
isChecked: !!
|
|
485
|
-
isDisabled: !
|
|
486
|
+
isChecked: !!r.phone && !i.opted_out_of_sms_notifications,
|
|
487
|
+
isDisabled: !r.phone,
|
|
486
488
|
onToggle: () => a("opted_out_of_sms_notifications", !i.opted_out_of_sms_notifications),
|
|
487
489
|
primaryText: t.delivery_method_sms_title,
|
|
488
|
-
secondaryText:
|
|
490
|
+
secondaryText: r.phone && !i.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
|
|
489
491
|
useExtraPadding: !1
|
|
490
492
|
}
|
|
491
493
|
),
|
|
@@ -503,41 +505,41 @@ const be = C(() => {
|
|
|
503
505
|
useExtraPadding: !1
|
|
504
506
|
}
|
|
505
507
|
),
|
|
506
|
-
s.sms_notifications_enabled && /* @__PURE__ */ e(
|
|
507
|
-
/* @__PURE__ */ e(
|
|
508
|
+
s.sms_notifications_enabled && /* @__PURE__ */ e(pe, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ c(h, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
509
|
+
/* @__PURE__ */ e(Y, { color: "primary", filled: !0 }),
|
|
508
510
|
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
509
511
|
] }) }) })
|
|
510
512
|
] });
|
|
511
|
-
}),
|
|
513
|
+
}), z = C(() => {
|
|
512
514
|
const { insightsProfiles: n } = T();
|
|
513
|
-
return /* @__PURE__ */ e(
|
|
514
|
-
}),
|
|
515
|
-
const { config: n } =
|
|
515
|
+
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
|
|
516
|
+
}), ke = () => {
|
|
517
|
+
const { config: n } = $(), [t, { width: s }] = ge(), { common: l, settings: i } = D(), { updateUser: r } = T(), { user: a } = A(), [o, _] = g.useState(!1), [d, p] = g.useState({
|
|
516
518
|
email: a.email,
|
|
517
519
|
phone: a.phone
|
|
518
|
-
}),
|
|
519
|
-
const { name: I, value:
|
|
520
|
-
|
|
520
|
+
}), m = d.email && !a.email_is_verified && !o, f = d.phone && !a.phone_is_verified && !o, u = (k) => {
|
|
521
|
+
const { name: I, value: S } = k.target, B = { ...d, [I]: S };
|
|
522
|
+
p(B), _(JSON.stringify({ ...a, ...B }) !== JSON.stringify(a));
|
|
521
523
|
}, b = async () => {
|
|
522
|
-
await
|
|
524
|
+
await r({ ...a, ...d }), _(!1);
|
|
523
525
|
};
|
|
524
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ c(h, { ref: t, children: [
|
|
525
527
|
/* @__PURE__ */ e(v, {}),
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
/* @__PURE__ */ e(
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
n.display_email_edit_field_in_settings && /* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ c(h, { sx: { pt: 12 }, children: [
|
|
529
|
+
/* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
|
|
530
|
+
/* @__PURE__ */ c(h, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
531
|
+
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
|
|
530
532
|
/* @__PURE__ */ e(
|
|
531
|
-
|
|
533
|
+
U,
|
|
532
534
|
{
|
|
533
535
|
defaultValue: a.email,
|
|
534
536
|
fullWidth: !0,
|
|
535
537
|
label: i.email_address,
|
|
536
538
|
name: "email",
|
|
537
|
-
onChange:
|
|
539
|
+
onChange: u
|
|
538
540
|
}
|
|
539
541
|
),
|
|
540
|
-
|
|
542
|
+
m && /* @__PURE__ */ e(
|
|
541
543
|
G,
|
|
542
544
|
{
|
|
543
545
|
sx: {
|
|
@@ -549,22 +551,22 @@ const be = C(() => {
|
|
|
549
551
|
}
|
|
550
552
|
}
|
|
551
553
|
},
|
|
552
|
-
children: /* @__PURE__ */ e(
|
|
554
|
+
children: /* @__PURE__ */ e(Ce, {})
|
|
553
555
|
}
|
|
554
556
|
)
|
|
555
557
|
] }),
|
|
556
|
-
n.display_sms_edit_field_in_settings && /* @__PURE__ */
|
|
558
|
+
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
|
|
557
559
|
/* @__PURE__ */ e(
|
|
558
|
-
|
|
560
|
+
U,
|
|
559
561
|
{
|
|
560
562
|
defaultValue: a.phone,
|
|
561
563
|
fullWidth: !0,
|
|
562
564
|
label: i.mobile_number,
|
|
563
565
|
name: "phone",
|
|
564
|
-
onChange:
|
|
566
|
+
onChange: u
|
|
565
567
|
}
|
|
566
568
|
),
|
|
567
|
-
|
|
569
|
+
f && /* @__PURE__ */ e(
|
|
568
570
|
G,
|
|
569
571
|
{
|
|
570
572
|
sx: {
|
|
@@ -576,83 +578,86 @@ const be = C(() => {
|
|
|
576
578
|
}
|
|
577
579
|
}
|
|
578
580
|
},
|
|
579
|
-
children: /* @__PURE__ */ e(
|
|
581
|
+
children: /* @__PURE__ */ e(Te, {})
|
|
580
582
|
}
|
|
581
583
|
)
|
|
582
584
|
] })
|
|
583
585
|
] }),
|
|
584
586
|
/* @__PURE__ */ e(
|
|
585
|
-
|
|
587
|
+
j,
|
|
586
588
|
{
|
|
587
589
|
disabled: !o,
|
|
588
590
|
onClick: b,
|
|
589
591
|
sx: { width: 84 },
|
|
590
592
|
variant: "contained",
|
|
591
|
-
children:
|
|
593
|
+
children: l.save_button
|
|
592
594
|
}
|
|
593
595
|
)
|
|
594
596
|
] })
|
|
595
597
|
] });
|
|
596
|
-
},
|
|
598
|
+
}, we = C(ke), dt = C(
|
|
597
599
|
({
|
|
598
600
|
notificationTypes: n = [y.Accounts, y.Budgets],
|
|
599
601
|
showPersonalDetails: t = !1,
|
|
600
602
|
view: s
|
|
601
603
|
}) => {
|
|
602
|
-
const { config:
|
|
604
|
+
const { config: l } = $(), { settings: i } = D(), { isInitialized: r } = le(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = T(), _ = ye(), [d, p] = g.useState(!1), [m, f] = g.useState(
|
|
603
605
|
void 0
|
|
604
606
|
);
|
|
605
|
-
if (n.length > 0 &&
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
if (n.length > 0 && _ && n.push(y.Insights), be({
|
|
608
|
+
widgetName: "NotificationSettingsWidget",
|
|
609
|
+
isLoaded: d
|
|
610
|
+
}), g.useEffect(() => {
|
|
611
|
+
r && o().finally(() => p(!0));
|
|
612
|
+
}, [r]), !r)
|
|
613
|
+
return /* @__PURE__ */ e(xe, {});
|
|
609
614
|
let u = i.manage_account_notifications;
|
|
610
|
-
|
|
615
|
+
m === y.Budgets ? u = i.manage_budget_notifications : m === y.Insights && (u = i.manage_insights_notifications);
|
|
611
616
|
const {
|
|
612
|
-
email_notifications_enabled:
|
|
613
|
-
sms_notifications_enabled:
|
|
614
|
-
push_notifications_enabled:
|
|
615
|
-
} = a, S =
|
|
617
|
+
email_notifications_enabled: b,
|
|
618
|
+
sms_notifications_enabled: k,
|
|
619
|
+
push_notifications_enabled: I
|
|
620
|
+
} = a, S = b || k || I;
|
|
616
621
|
if (s === "accounts")
|
|
617
622
|
return /* @__PURE__ */ e(H, {});
|
|
618
623
|
if (s === "budgets")
|
|
619
|
-
return /* @__PURE__ */ e(
|
|
624
|
+
return /* @__PURE__ */ e(W, {});
|
|
620
625
|
if (s === "insights")
|
|
621
|
-
return /* @__PURE__ */ e(
|
|
622
|
-
const
|
|
623
|
-
return /* @__PURE__ */
|
|
624
|
-
/* @__PURE__ */
|
|
625
|
-
S && /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */ e(
|
|
626
|
+
return /* @__PURE__ */ e(z, {});
|
|
627
|
+
const B = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, K = t && a.can_edit_contact_info && B;
|
|
628
|
+
return /* @__PURE__ */ c(h, { sx: { pt: S ? 0 : 24 }, children: [
|
|
629
|
+
/* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
|
|
630
|
+
S && /* @__PURE__ */ c(M, { children: [
|
|
631
|
+
/* @__PURE__ */ e(Se, {}),
|
|
627
632
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
628
633
|
] }),
|
|
629
|
-
/* @__PURE__ */ e(
|
|
634
|
+
/* @__PURE__ */ e(F, { sx: { mb: 4 }, children: i.notification_types_title })
|
|
630
635
|
] }),
|
|
631
|
-
/* @__PURE__ */
|
|
632
|
-
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */
|
|
633
|
-
/* @__PURE__ */ e(
|
|
636
|
+
/* @__PURE__ */ c(E, { children: [
|
|
637
|
+
n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Accounts), children: [
|
|
638
|
+
/* @__PURE__ */ e(L, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
|
|
634
639
|
/* @__PURE__ */ e(w, {})
|
|
635
640
|
] }) }),
|
|
636
|
-
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */
|
|
637
|
-
/* @__PURE__ */ e(
|
|
641
|
+
n.includes(y.Budgets) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Budgets), children: [
|
|
642
|
+
/* @__PURE__ */ e(L, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
|
|
638
643
|
/* @__PURE__ */ e(w, {})
|
|
639
644
|
] }) }),
|
|
640
|
-
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */
|
|
641
|
-
/* @__PURE__ */ e(
|
|
645
|
+
n.includes(y.Insights) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ c(V, { onClick: () => f(y.Insights), children: [
|
|
646
|
+
/* @__PURE__ */ e(L, { primary: i.insights_title, secondary: i.insights_subtitle }),
|
|
642
647
|
/* @__PURE__ */ e(w, {})
|
|
643
648
|
] }) })
|
|
644
649
|
] }),
|
|
645
|
-
|
|
650
|
+
K && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(we, {}) }),
|
|
646
651
|
/* @__PURE__ */ e(
|
|
647
652
|
J,
|
|
648
653
|
{
|
|
649
|
-
isOpen: !!
|
|
650
|
-
onClose: () =>
|
|
654
|
+
isOpen: !!m,
|
|
655
|
+
onClose: () => f(void 0),
|
|
651
656
|
title: u,
|
|
652
|
-
children: /* @__PURE__ */
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
657
|
+
children: /* @__PURE__ */ c(h, { children: [
|
|
658
|
+
m === y.Accounts && /* @__PURE__ */ e(H, {}),
|
|
659
|
+
m === y.Budgets && /* @__PURE__ */ e(W, {}),
|
|
660
|
+
m === y.Insights && /* @__PURE__ */ e(z, {})
|
|
656
661
|
] })
|
|
657
662
|
}
|
|
658
663
|
)
|
|
@@ -661,9 +666,9 @@ const be = C(() => {
|
|
|
661
666
|
);
|
|
662
667
|
export {
|
|
663
668
|
H as A,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
+
W as B,
|
|
670
|
+
z as I,
|
|
671
|
+
dt as N,
|
|
672
|
+
Ce as V,
|
|
673
|
+
Te as a
|
|
669
674
|
};
|