@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.
Files changed (203) hide show
  1. package/CHANGELOG.md +178 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
  4. package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-BmZXkL0C.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-By9V-B5L.mjs +178 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
  29. package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
  30. package/dist/LineChart-KpPw1phO.mjs +580 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  35. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
  46. package/dist/SpendingLegend-CDO060GT.mjs +193 -0
  47. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  48. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  49. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  50. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  51. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  52. package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
  53. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
  54. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
  55. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  56. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  58. package/dist/accounts/index.es.js +245 -235
  59. package/dist/accounts/stores/AccountStore.d.ts +24 -25
  60. package/dist/accounts/utils/Accounts.d.ts +1 -2
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  63. package/dist/budgets/index.es.js +611 -580
  64. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  65. package/dist/cashflow/index.es.js +187 -180
  66. package/dist/categories/index.es.js +2 -2
  67. package/dist/categories/stores/CategoryStore.d.ts +2 -5
  68. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  69. package/dist/common/components/Select.d.ts +4 -2
  70. package/dist/common/components/charts/LineChart.d.ts +12 -2
  71. package/dist/common/components/charts/index.d.ts +0 -3
  72. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  73. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  74. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  75. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  76. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  77. package/dist/common/components/drawer/Footer.d.ts +17 -0
  78. package/dist/common/hooks/index.d.ts +1 -0
  79. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  80. package/dist/common/index.es.js +397 -387
  81. package/dist/common/stores/AppDataStore.d.ts +1 -3
  82. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  83. package/dist/common/stores/GlobalStore.d.ts +10 -4
  84. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  85. package/dist/common/stores/UserStore.d.ts +2 -3
  86. package/dist/common/types/Account.d.ts +6 -9
  87. package/dist/common/types/Finstrong.d.ts +54 -0
  88. package/dist/common/types/Global.d.ts +1 -0
  89. package/dist/common/types/Widgets.d.ts +1 -0
  90. package/dist/common/types/index.d.ts +1 -1
  91. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  92. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  93. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  94. package/dist/dashboard/index.es.js +90 -88
  95. package/dist/debts/index.es.js +458 -448
  96. package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
  97. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  98. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  99. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  100. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  101. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  102. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  103. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  104. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  105. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  106. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  107. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  108. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  109. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  110. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  111. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  112. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  113. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  114. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  115. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  116. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  117. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  118. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  119. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  120. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  121. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  122. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  123. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  124. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  125. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  126. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  127. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  128. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  129. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  130. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  131. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  132. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  133. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  134. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
  135. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  136. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  137. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  138. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  139. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  140. package/dist/finstrong/constants/index.d.ts +9 -0
  141. package/dist/finstrong/index.es.js +3190 -1073
  142. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  143. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  144. package/dist/goals/index.es.js +302 -291
  145. package/dist/goals/stores/GoalStore.d.ts +4 -17
  146. package/dist/help/index.es.js +13 -9
  147. package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
  148. package/dist/insights/index.es.js +1 -1
  149. package/dist/investments/index.es.js +108 -104
  150. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  151. package/dist/merchants/index.es.js +2 -2
  152. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  153. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  154. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  155. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  156. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  157. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  158. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  159. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  160. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  161. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  162. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  163. package/dist/microinsights/constants/App.d.ts +0 -1
  164. package/dist/microinsights/index.d.ts +4 -3
  165. package/dist/microinsights/index.es.js +101 -14
  166. package/dist/microinsights/interfaces.d.ts +0 -6
  167. package/dist/networth/index.es.js +197 -190
  168. package/dist/notifications/index.es.js +25 -25
  169. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  170. package/dist/recurringtransactions/index.es.js +395 -351
  171. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  172. package/dist/settings/index.es.js +307 -298
  173. package/dist/spending/index.es.js +299 -438
  174. package/dist/spending/utils/SpendingData.d.ts +2 -1
  175. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  176. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  177. package/dist/transactions/index.es.js +115 -112
  178. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  179. package/dist/trends/components/TrendsTable.d.ts +0 -2
  180. package/dist/trends/index.es.js +1025 -604
  181. package/dist/trends/utils/TrendsData.d.ts +1 -0
  182. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  183. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  184. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  185. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  186. package/package.json +4 -4
  187. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  188. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  189. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  190. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  191. package/dist/Drawer-kEE73B87.mjs +0 -113
  192. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  193. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  194. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  195. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  196. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  197. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  198. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  199. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  200. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  201. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  202. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  203. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,53 +1,54 @@
1
- import { jsxs as l, jsx as e, Fragment as B } from "react/jsx-runtime";
2
- import f from "react";
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 N from "@mui/material/ListItemText";
7
+ import L from "@mui/material/ListItemText";
8
8
  import V from "@mui/material/ListItemButton";
9
- import m from "@mui/material/Stack";
10
- import { ChevronRight as w, ExpandMore as K, Star as Q } from "@mxenabled/mx-icons";
11
- import { Text as x, InstitutionLogo as Y, H3 as U } from "@mxenabled/mxui";
12
- import { endOfMonth as Z } from "date-fns/endOfMonth";
13
- import { startOfMonth as ee } from "date-fns/startOfMonth";
14
- import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
15
- import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
16
- import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
- import { A as oe, T as F, a as P, N as y } from "./ToggleListItem-r0Kx56wF.mjs";
18
- import { u as D, s as T, p as A, d as se, g as ae, a as W, b as le } from "./hooks-D6XlXHf4.mjs";
19
- import { b as ce } from "./Localization-2MODESHW.mjs";
20
- import { b as re, f as de } from "./NumberFormatting-Buh7u8Oi.mjs";
21
- import { a as M } from "./Dialog-CWW597AF.mjs";
22
- import { C as me } from "./CurrencyInput-DUsQbkXb.mjs";
23
- import { u as he } from "./useScreenSize-B6JyS_Lj.mjs";
24
- import { D as J } from "./Drawer-kEE73B87.mjs";
25
- import _e from "@mui/material/Collapse";
26
- import ue from "@mui/material/Card";
27
- import pe from "@mui/material/CardContent";
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 R from "@mui/material/Button";
30
- import L from "@mui/material/TextField";
31
- import { u as fe } from "./useDimensions-27p2evRx.mjs";
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 ge } from "./useInsightsEnabled-DBpwEq10.mjs";
34
- import { L as ye } from "./Loader-DUaFpDGv.mjs";
35
- const be = C(() => {
36
- const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: c } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
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
- }, h = () => {
39
+ }, _ = () => {
39
40
  a(!0);
40
41
  };
41
- return /* @__PURE__ */ l(f.Fragment, { children: [
42
- /* @__PURE__ */ l(R, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
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
- M,
48
+ N,
48
49
  {
49
50
  copy: { title: "" },
50
- isOpen: d,
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__ */ l(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
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: c.email
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
- }), xe = C(
85
+ }), ve = C(
85
86
  ({ handleClose: n, handleVerify: t, isOpen: s }) => {
86
- const { common: c, settings: i } = D(), [d, a] = f.useState("");
87
+ const { common: l, settings: i } = D(), [r, a] = g.useState("");
87
88
  return /* @__PURE__ */ e(
88
- M,
89
+ N,
89
90
  {
90
91
  copy: { title: i.enter_verification_code },
91
92
  isOpen: s,
92
93
  onClose: n,
93
- onPrimaryAction: () => t(d),
94
+ onPrimaryAction: () => t(r),
94
95
  onSecondaryAction: n,
95
96
  primaryText: i.verify,
96
- secondaryText: c.cancel_button,
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(m, { children: /* @__PURE__ */ e(L, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: d }) })
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
- ), Ce = C(() => {
110
- const { common: n, settings: t } = D(), { sendPhoneVerification: s, verifyPhoneToken: c } = T(), { user: i } = A(), d = X(), [a, o] = f.useState(!1), [h, r] = f.useState(!1), _ = () => {
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
- }, u = () => {
113
+ }, m = () => {
113
114
  o(!0);
114
- }, g = () => {
115
+ }, f = () => {
115
116
  s().finally(() => {
116
- r(!0);
117
+ d(!0);
117
118
  });
118
- }, p = (b) => {
119
- c(b).finally(() => {
120
- r(!1);
119
+ }, u = (b) => {
120
+ l(b).finally(() => {
121
+ d(!1);
121
122
  });
122
123
  };
123
- return /* @__PURE__ */ l(f.Fragment, { children: [
124
- /* @__PURE__ */ l(R, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
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
- M,
130
+ N,
130
131
  {
131
132
  copy: { title: "" },
132
133
  isOpen: a,
133
- onClose: _,
134
- onPrimaryAction: g,
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__ */ l(m, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
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 ${d.palette.border.light}`,
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
- xe,
167
+ ve,
167
168
  {
168
- handleClose: () => r(!1),
169
- handleVerify: p,
170
- isOpen: h
169
+ handleClose: () => d(!1),
170
+ handleVerify: u,
171
+ isOpen: _
171
172
  }
172
173
  )
173
174
  ] });
174
- }), ve = C(
175
+ }), Pe = C(
175
176
  ({ onProfileUpdated: n, profile: t }) => {
176
- const { common: s, recurring: c, settings: i } = D(), { updateAccount: d } = se(), a = t.notification_type === oe.DebtPaymentReminder, [o, h] = f.useState(!1), [r, _] = f.useState(t.threshold || 0), [u, g] = f.useState(
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
- ), p = t.account?.name || t.account?.feed_name || "", b = t.account?.day_payment_is_due ? ce(
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
- re(t.account?.day_payment_is_due)
181
- ) : i.notification_debt_payment_zero_state, S = a ? b : de(t.threshold ?? 0, "0,0"), I = async () => {
182
- a && t.account ? await d({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: r });
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__ */ l(m, { children: [
185
+ return /* @__PURE__ */ c(h, { children: [
185
186
  /* @__PURE__ */ e(
186
- F,
187
+ R,
187
188
  {
188
189
  avatar: t.account?.institution_guid ? /* @__PURE__ */ e(
189
- Y,
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: () => h(!0),
200
+ onClick: () => _(!0),
199
201
  onToggle: () => n({
200
202
  ...t,
201
203
  is_enabled: !t.is_enabled
202
204
  }),
203
- primaryText: p,
204
- secondaryText: S
205
+ primaryText: u,
206
+ secondaryText: t.is_enabled ? k : i.notification_disabled
205
207
  }
206
208
  ),
207
209
  /* @__PURE__ */ e(
208
- M,
210
+ N,
209
211
  {
210
212
  copy: {
211
- title: a ? c.day_of_the_month : i.notification_threshold_label,
213
+ title: a ? l.day_of_the_month : i.notification_threshold_label,
212
214
  close_aria: s.close_aria
213
215
  },
214
- disablePrimaryButton: a && u === 0,
216
+ disablePrimaryButton: a && m === 0,
215
217
  isOpen: o,
216
- onClose: () => h(!1),
218
+ onClose: () => _(!1),
217
219
  onPrimaryAction: I,
218
220
  primaryText: s.save_button,
219
- children: a ? /* @__PURE__ */ e(ne, { dateAdapter: ie, children: /* @__PURE__ */ e(
220
- te,
221
+ children: a ? /* @__PURE__ */ e(ie, { dateAdapter: oe, children: /* @__PURE__ */ e(
222
+ ne,
221
223
  {
222
- maxDate: Z(/* @__PURE__ */ new Date()),
223
- minDate: ee(/* @__PURE__ */ new Date()),
224
- onChange: (k) => {
225
- g(k.getDate());
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
- me,
243
+ he,
242
244
  {
243
- amount: r,
245
+ amount: d,
244
246
  autoFocus: !0,
245
247
  fullWidth: !0,
246
248
  minAmount: 0,
247
- setAmount: (k) => _(Number(k) || 0),
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
- ), Te = C(
257
+ ), De = C(
256
258
  ({ onUpdateProfile: n, profile: t }) => {
257
- const { settings: s } = D(), { user: c } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: d } = T(), { isMobile: a } = he(), o = t.notification_type > 2, {
258
- opted_out_of_email_notifications: h,
259
- opted_out_of_push_notifications: r,
260
- opted_out_of_sms_notifications: _
261
- } = d, {
262
- email_notifications_enabled: u,
263
- push_notifications_enabled: g,
264
- sms_notifications_enabled: p
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__ */ l(m, { children: [
267
- (u || p || g) && /* @__PURE__ */ l(B, { children: [
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__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
270
- u && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
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: !h && t.email_channel && !!c.email,
274
- isDisabled: h || !c.email,
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: h || !t.email_channel || !c.email ? s.notification_disabled : s.notification_enabled,
279
+ secondaryText: _ || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
278
280
  useExtraPadding: !1
279
281
  }
280
282
  ) }),
281
- u && (p || g) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
282
- p && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
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: !_ && t.sms_channel && !!c.phone,
286
- isDisabled: _ || !c.phone,
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: _ || !t.sms_channel || !c.phone ? s.notification_disabled : s.notification_enabled,
291
+ secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
290
292
  useExtraPadding: !1
291
293
  }
292
294
  ) }),
293
- p && g && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
294
- g && /* @__PURE__ */ e(m, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
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: !r && t.push_channel,
298
- isDisabled: r,
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__ */ l(m, { children: [
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
- ve,
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, c] = f.useState(""), i = f.useMemo(
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
- ), d = async (o) => {
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__ */ l(m, { sx: { backgroundColor: "background.paper" }, children: [
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
- F,
337
+ R,
336
338
  {
337
339
  endIcon: /* @__PURE__ */ e(w, {}),
338
340
  isChecked: o.is_enabled,
339
341
  isDisabled: !o.is_enabled,
340
- onClick: () => c(o.guid),
341
- onToggle: () => d(o),
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: () => c(""),
353
+ onClose: () => l(""),
352
354
  title: i ? i.label : "",
353
355
  children: i && /* @__PURE__ */ e(
354
- Te,
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: c,
369
+ push_notifications_enabled: l,
368
370
  sms_notifications_enabled: i
369
371
  },
370
- updateNotificationProfile: d,
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: h
376
+ opted_out_of_sms_notifications: _
375
377
  }
376
- } = T(), { user: r } = A(), [_, u] = f.useState(!1), g = async () => {
377
- await p({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
378
- }, p = async (S) => {
379
- await d(S);
380
- }, b = s || i || c;
381
- return /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
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
- F,
385
+ R,
384
386
  {
385
387
  endIcon: b ? /* @__PURE__ */ e(
386
- K,
388
+ Q,
387
389
  {
388
390
  sx: {
389
391
  transition: "transform 0.3s ease-in-out",
390
- transform: _ ? "rotate(180deg)" : "rotate(0deg)"
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: () => u(!_),
397
- onToggle: () => g(),
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(_e, { in: _, children: /* @__PURE__ */ l(E, { sx: { bgcolor: "background.paper" }, children: [
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 && !!r.email,
408
- isDisabled: a || !r.email,
409
- onToggle: () => p({
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 || c) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
418
+ s && (i || l) && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
417
419
  i && /* @__PURE__ */ e(
418
420
  P,
419
421
  {
420
- isChecked: !h && n.sms_channel && !!r.phone,
421
- isDisabled: h || !r.phone,
422
- onToggle: () => p({
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 && c && /* @__PURE__ */ e(v, { sx: { ml: 48 } }),
430
- c && /* @__PURE__ */ e(
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: () => p({
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
- }), z = C(() => {
447
+ }), W = C(() => {
446
448
  const { budgetProfiles: n } = T();
447
- return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
448
- }), Pe = C(() => {
449
- const { onEvent: n } = ae(), { settings: t } = D(), {
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: c,
453
+ updateUserCommunicationProfile: l,
452
454
  userCommunicationsProfile: i
453
- } = T(), { user: d } = A(), a = async (o, h) => {
454
- const r = { ...i, [o]: h };
455
+ } = T(), { user: r } = A(), a = async (o, _) => {
456
+ const d = { ...i, [o]: _ };
455
457
  if (n) {
456
- const u = o.split("_")[3];
457
- h === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
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 c(r);
461
+ await l(d);
460
462
  };
461
- return /* @__PURE__ */ l(m, { children: [
462
- /* @__PURE__ */ e(U, { sx: { mt: 24 }, children: t.delivery_method_title }),
463
- s.email_notifications_enabled && /* @__PURE__ */ l(B, { children: [
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: !!d.email && !i.opted_out_of_email_notifications,
468
- isDisabled: !d.email,
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: d.email && !i.opted_out_of_email_notifications ? t.notification_enabled : t.notification_disabled,
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__ */ l(B, { children: [
482
+ s.sms_notifications_enabled && /* @__PURE__ */ c(M, { children: [
481
483
  /* @__PURE__ */ e(
482
484
  P,
483
485
  {
484
- isChecked: !!d.phone && !i.opted_out_of_sms_notifications,
485
- isDisabled: !d.phone,
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: d.phone && !i.opted_out_of_sms_notifications ? t.notification_enabled : t.notification_disabled,
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(ue, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(pe, { children: /* @__PURE__ */ l(m, { alignItems: "flex-start", direction: "row", gap: 6, children: [
507
- /* @__PURE__ */ e(Q, { color: "primary", filled: !0 }),
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
- }), $ = C(() => {
513
+ }), z = C(() => {
512
514
  const { insightsProfiles: n } = T();
513
- return /* @__PURE__ */ e(m, { children: n.map((t) => /* @__PURE__ */ e(q, { profile: t }, t.guid)) });
514
- }), De = () => {
515
- const { config: n } = W(), [t, { width: s }] = fe(), { common: c, settings: i } = D(), { updateUser: d } = T(), { user: a } = A(), [o, h] = f.useState(!1), [r, _] = f.useState({
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
- }), u = r.email && !a.email_is_verified && !o, g = r.phone && !a.phone_is_verified && !o, p = (S) => {
519
- const { name: I, value: k } = S.target, j = { ...r, [I]: k };
520
- _(j), h(JSON.stringify({ ...a, ...j }) !== JSON.stringify(a));
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 d({ ...a, ...r }), h(!1);
524
+ await r({ ...a, ...d }), _(!1);
523
525
  };
524
- return /* @__PURE__ */ l(m, { ref: t, children: [
526
+ return /* @__PURE__ */ c(h, { ref: t, children: [
525
527
  /* @__PURE__ */ e(v, {}),
526
- /* @__PURE__ */ l(m, { sx: { pt: 12 }, children: [
527
- /* @__PURE__ */ e(U, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
528
- /* @__PURE__ */ l(m, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
529
- n.display_email_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
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
- L,
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: p
539
+ onChange: u
538
540
  }
539
541
  ),
540
- u && /* @__PURE__ */ e(
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(be, {})
554
+ children: /* @__PURE__ */ e(Ce, {})
553
555
  }
554
556
  )
555
557
  ] }),
556
- n.display_sms_edit_field_in_settings && /* @__PURE__ */ l(m, { sx: { flex: 1, pb: 14 }, children: [
558
+ n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { flex: 1, pb: 14 }, children: [
557
559
  /* @__PURE__ */ e(
558
- L,
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: p
566
+ onChange: u
565
567
  }
566
568
  ),
567
- g && /* @__PURE__ */ e(
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(Ce, {})
581
+ children: /* @__PURE__ */ e(Te, {})
580
582
  }
581
583
  )
582
584
  ] })
583
585
  ] }),
584
586
  /* @__PURE__ */ e(
585
- R,
587
+ j,
586
588
  {
587
589
  disabled: !o,
588
590
  onClick: b,
589
591
  sx: { width: 84 },
590
592
  variant: "contained",
591
- children: c.save_button
593
+ children: l.save_button
592
594
  }
593
595
  )
594
596
  ] })
595
597
  ] });
596
- }, Se = C(De), lt = C(
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: c } = W(), { settings: i } = D(), { isInitialized: d } = le(), { clientCommunicationProfile: a, loadNotificationProfiles: o } = T(), h = ge(), [r, _] = f.useState(
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 && h && n.push(y.Insights), f.useEffect(() => {
606
- d && o().finally();
607
- }, [d]), !d)
608
- return /* @__PURE__ */ e(ye, {});
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
- r === y.Budgets ? u = i.manage_budget_notifications : r === y.Insights && (u = i.manage_insights_notifications);
615
+ m === y.Budgets ? u = i.manage_budget_notifications : m === y.Insights && (u = i.manage_insights_notifications);
611
616
  const {
612
- email_notifications_enabled: g,
613
- sms_notifications_enabled: p,
614
- push_notifications_enabled: b
615
- } = a, S = g || p || b;
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(z, {});
624
+ return /* @__PURE__ */ e(W, {});
620
625
  if (s === "insights")
621
- return /* @__PURE__ */ e($, {});
622
- const I = c.display_email_edit_field_in_settings || c.display_sms_edit_field_in_settings, k = t && a.can_edit_contact_info && I;
623
- return /* @__PURE__ */ l(m, { sx: { pt: S ? 0 : 24 }, children: [
624
- /* @__PURE__ */ l(m, { sx: { px: 24 }, children: [
625
- S && /* @__PURE__ */ l(B, { children: [
626
- /* @__PURE__ */ e(Pe, {}),
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(U, { sx: { mb: 4 }, children: i.notification_types_title })
634
+ /* @__PURE__ */ e(F, { sx: { mb: 4 }, children: i.notification_types_title })
630
635
  ] }),
631
- /* @__PURE__ */ l(E, { children: [
632
- n.includes(y.Accounts) && /* @__PURE__ */ e(O, { children: /* @__PURE__ */ l(V, { onClick: () => _(y.Accounts), children: [
633
- /* @__PURE__ */ e(N, { primary: i.accounts_title, secondary: i.accounts_subtitle }),
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__ */ l(V, { onClick: () => _(y.Budgets), children: [
637
- /* @__PURE__ */ e(N, { primary: i.budgets_title, secondary: i.budgets_subtitle }),
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__ */ l(V, { onClick: () => _(y.Insights), children: [
641
- /* @__PURE__ */ e(N, { primary: i.insights_title, secondary: i.insights_subtitle }),
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
- k && /* @__PURE__ */ e(m, { sx: { px: 24 }, children: /* @__PURE__ */ e(Se, {}) }),
650
+ K && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(we, {}) }),
646
651
  /* @__PURE__ */ e(
647
652
  J,
648
653
  {
649
- isOpen: !!r,
650
- onClose: () => _(void 0),
654
+ isOpen: !!m,
655
+ onClose: () => f(void 0),
651
656
  title: u,
652
- children: /* @__PURE__ */ l(m, { children: [
653
- r === y.Accounts && /* @__PURE__ */ e(H, {}),
654
- r === y.Budgets && /* @__PURE__ */ e(z, {}),
655
- r === y.Insights && /* @__PURE__ */ e($, {})
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
- z as B,
665
- $ as I,
666
- lt as N,
667
- be as V,
668
- Ce as a
669
+ W as B,
670
+ z as I,
671
+ dt as N,
672
+ Ce as V,
673
+ Te as a
669
674
  };