@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4

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