@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,160 +1,160 @@
1
- import { S as Jt, a as Kt } from "../SettingsStore-BcgS_Ohv.mjs";
2
- import { jsxs as c, Fragment as q, jsx as e } from "react/jsx-runtime";
3
- import h from "react";
1
+ import { S as $t, a as jt } from "../SettingsStore-BASMQSIp.mjs";
2
+ import { jsxs as c, Fragment as Q, jsx as e } from "react/jsx-runtime";
3
+ import u from "react";
4
4
  import { observer as D } from "mobx-react-lite";
5
- import p from "@mui/material/Stack";
6
- import me from "@mui/material/Tab";
7
- import ue from "@mui/material/Tabs";
8
- import pe from "@mui/material/Alert";
9
- import he from "@mui/material/Snackbar";
10
- import { getUnixTime as fe } from "date-fns/getUnixTime";
11
- import { AdapterDateFns as _e } from "@mui/x-date-pickers/AdapterDateFnsV3";
12
- import { DatePicker as ge } from "@mui/x-date-pickers";
13
- import { LocalizationProvider as be } from "@mui/x-date-pickers/LocalizationProvider";
14
- import { useTheme as ye, alpha as U } from "@mui/material/styles";
5
+ import h from "@mui/material/Stack";
6
+ import ue from "@mui/material/Tab";
7
+ import pe from "@mui/material/Tabs";
8
+ import he from "@mui/material/Alert";
9
+ import fe from "@mui/material/Snackbar";
10
+ import { getUnixTime as _e } from "date-fns/getUnixTime";
11
+ import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
12
+ import { DatePicker as be } from "@mui/x-date-pickers";
13
+ import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
14
+ import { useTheme as A, alpha as U } from "@mui/material/styles";
15
15
  import F from "@mui/material/Box";
16
- import Q from "@mui/material/Button";
16
+ import X from "@mui/material/Button";
17
17
  import I from "@mui/material/TextField";
18
- import { H3 as J, P as H, Text as x, Icon as M, ChevronRightIcon as xe } from "@mxenabled/mxui";
19
- import { V as ve, a as Ce, N as G } from "../NotificationSettings-DqrkNMod.mjs";
20
- import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-DqrkNMod.mjs";
21
- import { u as k, a as $, s as A, p as De, b as Z, m as ee } from "../hooks-D6XlXHf4.mjs";
22
- import { u as L } from "../useScreenSize-B6JyS_Lj.mjs";
23
- import { a as W } from "../Dialog-CWW597AF.mjs";
24
- import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
25
- import { fromUnixTime as oe } from "date-fns/fromUnixTime";
26
- import P from "@mui/material/styles/useTheme";
18
+ import { H3 as J, P as B, Text as v, Icon as N } from "@mxenabled/mxui";
19
+ import { V as xe, a as ve, N as $ } from "../NotificationSettings-B74rQVYC.mjs";
20
+ import { A as Kt, B as Yt, I as qt } from "../NotificationSettings-B74rQVYC.mjs";
21
+ import { D as W } from "../Dialog-CDV0kKxj.mjs";
22
+ import { u as w, a as z, s as E, p as Ce, b as Z, m as ee, n as te } from "../hooks-C41HAxM5.mjs";
23
+ import { u as H } from "../useScreenSize-B5afALev.mjs";
24
+ import { formatDistanceToNow as oe } from "date-fns/formatDistanceToNow";
25
+ import { fromUnixTime as ne } from "date-fns/fromUnixTime";
27
26
  import V from "@mui/material/IconButton";
28
- import { DataGridPro as Se } from "@mui/x-data-grid-pro";
29
- import { H as O } from "../HeaderCell-DjuifqHJ.mjs";
30
- import { b as N } from "../Localization-2MODESHW.mjs";
27
+ import { DataGridPro as De } from "@mui/x-data-grid-pro";
28
+ import { H as O } from "../HeaderCell-P8w6CmfO.mjs";
29
+ import { b as L } from "../Localization-2MODESHW.mjs";
31
30
  import ke from "@mui/material/Accordion";
32
31
  import we from "@mui/material/AccordionDetails";
33
- import Te from "@mui/material/AccordionSummary";
34
- import { L as ne } from "../Loader-DUaFpDGv.mjs";
35
- import Ie from "@mui/material/List";
32
+ import Se from "@mui/material/AccordionSummary";
33
+ import { L as ie } from "../Loader-Ckqi9Rx6.mjs";
34
+ import Te from "@mui/material/List";
36
35
  import j from "@mui/material/Divider";
37
- import Ae from "@mui/material/ListSubheader";
38
- import { a as Ee, u as Pe } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
39
- import Re from "@mui/material/ListItem";
40
- import Be from "@mui/material/ListItemButton";
36
+ import Ie from "@mui/material/ListSubheader";
37
+ import { a as Ae, u as Ee } from "../CategorySelectorDrawer-Dl006GKy.mjs";
38
+ import Pe from "@mui/material/ListItem";
39
+ import Re from "@mui/material/ListItemButton";
41
40
  import Me from "@mui/material/ListItemIcon";
42
41
  import Ne from "@mui/material/ListItemText";
43
- import { D as He } from "../Drawer-kEE73B87.mjs";
44
- import { H as Le } from "../Help-B6dIcujh.mjs";
45
- import { W as K } from "../WidgetContainer-BHWANqT4.mjs";
42
+ import { ChevronRightIcon as Le } from "@mxenabled/mx-icons";
43
+ import { D as Be } from "../Drawer-BF40nbsH.mjs";
44
+ import { H as He } from "../Help-DBfsTkAi.mjs";
45
+ import { W as K } from "../WidgetContainer-CDh9fjpR.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
47
- const o = ye(), { common: n, settings: r } = k(), { isDesktop: m, isMobile: l, isSmallMobile: i, isTablet: s } = L(t), { config: g } = $(), { updateUser: _ } = A(), { user: d } = De(), [u, S] = h.useState({
48
- first_name: d.first_name,
49
- last_name: d.last_name,
50
- email: d.email,
51
- phone: d.phone,
52
- birthday: d.birthday,
53
- postal_code: d.postal_code,
54
- credit_score: d.credit_score
55
- }), [v, w] = h.useState(!1), [C, T] = h.useState(!1), y = h.useRef(null), z = u.email && !d.email_is_verified && !v, Y = u.phone && !d.phone_is_verified && !v;
56
- h.useEffect(() => {
47
+ const o = A(), { common: n, settings: i } = w(), { isDesktop: d, isMobile: s, isSmallMobile: r, isTablet: l } = H(t), { config: b } = z(), { updateUser: _ } = E(), { user: m } = Ce(), [p, k] = u.useState({
48
+ first_name: m.first_name,
49
+ last_name: m.last_name,
50
+ email: m.email,
51
+ phone: m.phone,
52
+ birthday: m.birthday,
53
+ postal_code: m.postal_code,
54
+ credit_score: m.credit_score
55
+ }), [C, S] = u.useState(!1), [T, x] = u.useState(!1), g = u.useRef(null), G = p.email && !m.email_is_verified && !C, q = p.phone && !m.phone_is_verified && !C;
56
+ u.useEffect(() => {
57
57
  if (a) {
58
58
  const f = (R) => {
59
- y.current && !y.current.contains(R.target) && v && T(!0);
59
+ g.current && !g.current.contains(R.target) && C && x(!0);
60
60
  };
61
61
  return document.addEventListener("mousedown", f), () => {
62
62
  document.removeEventListener("mousedown", f);
63
63
  };
64
64
  }
65
- }, [v]);
66
- const ie = () => {
67
- if (u.birthday) {
68
- const f = new Date(u.birthday * 1e3), R = f.getUTCFullYear(), ce = f.getUTCMonth(), de = f.getUTCDate();
69
- return new Date(R, ce, de);
65
+ }, [C]);
66
+ const ae = () => {
67
+ if (p.birthday) {
68
+ const f = new Date(p.birthday * 1e3), R = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
69
+ return new Date(R, de, me);
70
70
  }
71
- }, ae = async () => {
72
- await _({ ...d, ...u }), w(!1);
71
+ }, se = async () => {
72
+ await _({ ...m, ...p }), S(!1);
73
73
  }, le = () => {
74
- T(!1), a && a();
75
- }, se = () => {
76
- T(!1);
77
- }, E = (f) => {
74
+ x(!1), a && a();
75
+ }, ce = () => {
76
+ x(!1);
77
+ }, P = (f) => {
78
78
  const R = {
79
- ...u,
79
+ ...p,
80
80
  ...f
81
81
  };
82
- S(R), w(JSON.stringify({ ...d, ...R }) !== JSON.stringify(d));
82
+ k(R), S(JSON.stringify({ ...m, ...R }) !== JSON.stringify(m));
83
83
  };
84
- return /* @__PURE__ */ c(q, { children: [
84
+ return /* @__PURE__ */ c(Q, { children: [
85
85
  /* @__PURE__ */ c(
86
86
  F,
87
87
  {
88
88
  component: "form",
89
- ref: y,
89
+ ref: g,
90
90
  sx: {
91
91
  backgroundColor: "background.paper",
92
92
  p: 24,
93
- width: i ? 320 : s ? 680 : m ? 990 : 400,
93
+ width: r ? 320 : l ? 680 : d ? 990 : 400,
94
94
  "& .MuiTextField-root": {
95
- width: i ? 272 : s ? 328 : m ? 483 : 352
95
+ width: r ? 272 : l ? 328 : d ? 483 : 352
96
96
  }
97
97
  },
98
98
  children: [
99
- /* @__PURE__ */ e(J, { children: r.personal_details }),
100
- /* @__PURE__ */ e(H, { variant: "Body", children: r.update_information }),
99
+ /* @__PURE__ */ e(J, { children: i.personal_details }),
100
+ /* @__PURE__ */ e(B, { variant: "body1", children: i.update_information }),
101
101
  /* @__PURE__ */ c(
102
- p,
102
+ h,
103
103
  {
104
- direction: l ? "column" : "row",
105
- spacing: l ? 44 : 24,
104
+ direction: s ? "column" : "row",
105
+ spacing: s ? 44 : 24,
106
106
  sx: { mb: 44, pt: 32 },
107
107
  children: [
108
108
  /* @__PURE__ */ e(
109
109
  I,
110
110
  {
111
- defaultValue: u.first_name,
112
- label: r.first_name,
113
- onChange: (f) => E({ first_name: f.target.value })
111
+ defaultValue: p.first_name,
112
+ label: i.first_name,
113
+ onChange: (f) => P({ first_name: f.target.value })
114
114
  }
115
115
  ),
116
116
  /* @__PURE__ */ e(
117
117
  I,
118
118
  {
119
- defaultValue: u.last_name,
120
- label: r.last_name,
121
- onChange: (f) => E({ last_name: f.target.value })
119
+ defaultValue: p.last_name,
120
+ label: i.last_name,
121
+ onChange: (f) => P({ last_name: f.target.value })
122
122
  }
123
123
  )
124
124
  ]
125
125
  }
126
126
  ),
127
- /* @__PURE__ */ c(p, { direction: l ? "column" : "row", children: [
128
- g.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: z ? 20 : 44, mr: l ? 0 : 24 }, children: [
127
+ /* @__PURE__ */ c(h, { direction: s ? "column" : "row", children: [
128
+ b.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: G ? 20 : 44, mr: s ? 0 : 24 }, children: [
129
129
  /* @__PURE__ */ e(
130
130
  I,
131
131
  {
132
- defaultValue: u.email,
133
- label: r.email_address,
134
- onChange: (f) => E({ email: f.target.value })
132
+ defaultValue: p.email,
133
+ label: i.email_address,
134
+ onChange: (f) => P({ email: f.target.value })
135
135
  }
136
136
  ),
137
- z && /* @__PURE__ */ e(ve, {})
137
+ G && /* @__PURE__ */ e(xe, {})
138
138
  ] }),
139
- g.display_sms_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: Y ? 20 : 44 }, children: [
139
+ b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: q ? 20 : 44 }, children: [
140
140
  /* @__PURE__ */ e(
141
141
  I,
142
142
  {
143
- defaultValue: u.phone,
144
- label: r.mobile_number,
145
- onChange: (f) => E({ phone: f.target.value }),
143
+ defaultValue: p.phone,
144
+ label: i.mobile_number,
145
+ onChange: (f) => P({ phone: f.target.value }),
146
146
  type: "tel"
147
147
  }
148
148
  ),
149
- Y && /* @__PURE__ */ e(Ce, {})
149
+ q && /* @__PURE__ */ e(ve, {})
150
150
  ] })
151
151
  ] }),
152
- /* @__PURE__ */ c(p, { direction: l ? "column" : "row", spacing: l ? 44 : 24, sx: { mb: 44 }, children: [
153
- /* @__PURE__ */ e(be, { dateAdapter: _e, children: /* @__PURE__ */ e(
154
- ge,
152
+ /* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
153
+ /* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
154
+ be,
155
155
  {
156
- label: r.birthdate,
157
- onChange: (f) => E({ birthday: fe(f) }),
156
+ label: i.birthdate,
157
+ onChange: (f) => P({ birthday: _e(f) }),
158
158
  slotProps: {
159
159
  nextIconButton: {
160
160
  sx: {
@@ -176,34 +176,34 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
176
176
  "&:hover": { backgroundColor: U(o.palette.primary.light, 0.1) }
177
177
  }
178
178
  },
179
- value: ie()
179
+ value: ae()
180
180
  }
181
181
  ) }),
182
182
  /* @__PURE__ */ e(
183
183
  I,
184
184
  {
185
- defaultValue: u.postal_code,
186
- label: r.zip_code,
187
- onChange: (f) => E({ postal_code: f.target.value })
185
+ defaultValue: p.postal_code,
186
+ label: i.zip_code,
187
+ onChange: (f) => P({ postal_code: f.target.value })
188
188
  }
189
189
  )
190
190
  ] }),
191
- /* @__PURE__ */ c(p, { children: [
191
+ /* @__PURE__ */ c(h, { children: [
192
192
  /* @__PURE__ */ e(
193
193
  I,
194
194
  {
195
- defaultValue: u.credit_score,
196
- label: r.credit_score,
197
- onChange: (f) => E({ credit_score: Number(f.target.value) }),
195
+ defaultValue: p.credit_score,
196
+ label: i.credit_score,
197
+ onChange: (f) => P({ credit_score: Number(f.target.value) }),
198
198
  sx: { mb: 44 }
199
199
  }
200
200
  ),
201
201
  /* @__PURE__ */ e(
202
- Q,
202
+ X,
203
203
  {
204
- disabled: !v,
205
- onClick: ae,
206
- sx: { width: i ? 272 : 124 },
204
+ disabled: !C,
205
+ onClick: se,
206
+ sx: { width: r ? 272 : 124 },
207
207
  variant: "contained",
208
208
  children: n.save_button
209
209
  }
@@ -215,37 +215,37 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
215
215
  /* @__PURE__ */ e(
216
216
  W,
217
217
  {
218
- copy: { title: r.discard_changes },
219
- isOpen: C,
220
- onClose: se,
218
+ copy: { title: i.discard_changes },
219
+ isOpen: T,
220
+ onClose: ce,
221
221
  onSecondaryAction: le,
222
- primaryText: r.keep_editing,
223
- secondaryText: r.leave,
224
- children: r.discard_changes_message
222
+ primaryText: i.keep_editing,
223
+ secondaryText: i.leave,
224
+ children: i.discard_changes_message
225
225
  }
226
226
  )
227
227
  ] });
228
228
  }, Ue = D(Oe);
229
- var b = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(b || {});
229
+ var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
230
230
  const Fe = ({
231
231
  devices: t,
232
232
  onClickDeviceEdit: a,
233
233
  onClickDeviceDelete: o
234
234
  }) => {
235
- const n = P(), { settings: r } = k(), m = [
235
+ const n = A(), { settings: i } = w(), d = [
236
236
  {
237
237
  field: "name",
238
- headerName: r.mobile_devices_column_name,
238
+ headerName: i.mobile_devices_column_name,
239
239
  renderHeader: O,
240
- renderCell: (i) => /* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 4, children: [
241
- /* @__PURE__ */ e(x, { variant: "Small", children: i.value }),
240
+ renderCell: (r) => /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 4, children: [
241
+ /* @__PURE__ */ e(v, { variant: "body2", children: r.value }),
242
242
  /* @__PURE__ */ e(
243
243
  V,
244
244
  {
245
- "aria-label": r.mobile_devices_edit_label,
245
+ "aria-label": i.mobile_devices_edit_label,
246
246
  color: "secondary",
247
- onClick: () => a(i.row),
248
- children: /* @__PURE__ */ e(M, { name: "edit" })
247
+ onClick: () => a(r.row),
248
+ children: /* @__PURE__ */ e(N, { name: "edit" })
249
249
  }
250
250
  )
251
251
  ] }),
@@ -255,7 +255,7 @@ const Fe = ({
255
255
  },
256
256
  {
257
257
  field: "device_type",
258
- headerName: r.mobile_devices_column_type,
258
+ headerName: i.mobile_devices_column_type,
259
259
  renderHeader: O,
260
260
  sortable: !0,
261
261
  hideSortIcons: !1,
@@ -264,9 +264,9 @@ const Fe = ({
264
264
  },
265
265
  {
266
266
  field: "created_at",
267
- headerName: r.mobile_devices_column_added,
267
+ headerName: i.mobile_devices_column_added,
268
268
  renderHeader: O,
269
- valueFormatter: (i) => te(oe(i), { addSuffix: !0 }),
269
+ valueFormatter: (r) => oe(ne(r), { addSuffix: !0 }),
270
270
  sortable: !0,
271
271
  hideSortIcons: !1,
272
272
  flex: 1,
@@ -276,32 +276,32 @@ const Fe = ({
276
276
  field: "delete",
277
277
  headerName: "",
278
278
  renderHeader: O,
279
- renderCell: (i) => /* @__PURE__ */ e(p, { mr: 4, children: /* @__PURE__ */ e(
279
+ renderCell: (r) => /* @__PURE__ */ e(h, { mr: 4, children: /* @__PURE__ */ e(
280
280
  V,
281
281
  {
282
- "aria-label": r.mobile_devices_delete_label,
282
+ "aria-label": i.mobile_devices_delete_label,
283
283
  color: "secondary",
284
- onClick: () => o(i.row),
285
- children: /* @__PURE__ */ e(M, { name: "delete" })
284
+ onClick: () => o(r.row),
285
+ children: /* @__PURE__ */ e(N, { name: "delete" })
286
286
  }
287
287
  ) }),
288
288
  sortable: !1,
289
289
  hideSortIcons: !1,
290
290
  width: 58
291
291
  }
292
- ], l = h.useMemo(() => t.map((i) => ({
293
- id: i.guid,
294
- ...i,
295
- device_type: `${i.make} ${i.model}`
292
+ ], s = u.useMemo(() => t.map((r) => ({
293
+ id: r.guid,
294
+ ...r,
295
+ device_type: `${r.make} ${r.model}`
296
296
  })), [t]);
297
297
  return /* @__PURE__ */ e(F, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
298
- Se,
298
+ De,
299
299
  {
300
- columns: m,
300
+ columns: d,
301
301
  disableColumnFilter: !0,
302
302
  disableColumnMenu: !0,
303
303
  disableRowSelectionOnClick: !0,
304
- rows: l,
304
+ rows: s,
305
305
  slotProps: {
306
306
  footer: {
307
307
  sx: { justifyContent: "flex-end" }
@@ -318,8 +318,8 @@ const Fe = ({
318
318
  alignItems: "center",
319
319
  p: "12px 16px"
320
320
  },
321
- children: /* @__PURE__ */ e(x, { color: n.palette.text.secondary, variant: "Small", children: N(
322
- r.mobile_devices_count,
321
+ children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
322
+ i.mobile_devices_count,
323
323
  /* @__PURE__ */ e("b", { children: t.length }),
324
324
  /* @__PURE__ */ e("b", { children: t.length })
325
325
  ) })
@@ -328,7 +328,7 @@ const Fe = ({
328
328
  },
329
329
  sx: {
330
330
  border: "1px solid",
331
- borderColor: n.palette.border.light,
331
+ borderColor: n.palette.neutral.light,
332
332
  borderRadius: "8px",
333
333
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
334
334
  color: n.palette.primary.main,
@@ -347,30 +347,30 @@ const Fe = ({
347
347
  onClickDeviceEdit: a,
348
348
  onClickDeviceDelete: o
349
349
  }) => {
350
- const n = P(), { settings: r } = k(), [m, l] = h.useState(!1), i = (s) => (g, _) => {
351
- l(_ ? s : !1);
350
+ const n = A(), { settings: i } = w(), [d, s] = u.useState(!1), r = (l) => (b, _) => {
351
+ s(_ ? l : !1);
352
352
  };
353
- return /* @__PURE__ */ c(p, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
354
- t.map((s) => /* @__PURE__ */ c(
353
+ return /* @__PURE__ */ c(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
354
+ t.map((l) => /* @__PURE__ */ c(
355
355
  ke,
356
356
  {
357
- expanded: m === s.guid,
358
- onChange: i(s.guid),
357
+ expanded: d === l.guid,
358
+ onChange: r(l.guid),
359
359
  sx: { boxShadow: "none" },
360
360
  children: [
361
361
  /* @__PURE__ */ e(
362
- Te,
362
+ Se,
363
363
  {
364
- expandIcon: /* @__PURE__ */ e(M, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
364
+ expandIcon: /* @__PURE__ */ e(N, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
365
365
  sx: {
366
366
  padding: "14px 24px",
367
367
  borderBottom: "1px solid",
368
- borderColor: n.palette.border.light
368
+ borderColor: n.palette.neutral.light
369
369
  },
370
- children: /* @__PURE__ */ c(p, { gap: 4, children: [
371
- /* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: s.name }),
372
- /* @__PURE__ */ e(x, { color: n.palette.text.secondary, variant: "Small", children: `${s.make} ${s.model}` }),
373
- /* @__PURE__ */ e(x, { color: n.palette.text.secondary, variant: "Small", children: te(oe(s.created_at), { addSuffix: !0 }) })
370
+ children: /* @__PURE__ */ c(h, { gap: 4, children: [
371
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: l.name }),
372
+ /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: `${l.make} ${l.model}` }),
373
+ /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: oe(ne(l.created_at), { addSuffix: !0 }) })
374
374
  ] })
375
375
  }
376
376
  ),
@@ -380,9 +380,9 @@ const Fe = ({
380
380
  sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
381
381
  children: [
382
382
  /* @__PURE__ */ c(
383
- p,
383
+ h,
384
384
  {
385
- onClick: () => a(s),
385
+ onClick: () => a(l),
386
386
  sx: {
387
387
  alignItems: "center",
388
388
  flexDirection: "row",
@@ -391,18 +391,18 @@ const Fe = ({
391
391
  py: 16,
392
392
  cursor: "pointer",
393
393
  borderBottom: "1px solid",
394
- borderColor: n.palette.border.light
394
+ borderColor: n.palette.neutral.light
395
395
  },
396
396
  children: [
397
- /* @__PURE__ */ e(V, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(M, { name: "edit" }) }),
398
- /* @__PURE__ */ e(x, { variant: "Body", children: r.mobile_devices_edit_label })
397
+ /* @__PURE__ */ e(V, { "aria-label": i.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "edit" }) }),
398
+ /* @__PURE__ */ e(v, { variant: "body1", children: i.mobile_devices_edit_label })
399
399
  ]
400
400
  }
401
401
  ),
402
402
  /* @__PURE__ */ c(
403
- p,
403
+ h,
404
404
  {
405
- onClick: () => o(s),
405
+ onClick: () => o(l),
406
406
  sx: {
407
407
  alignItems: "center",
408
408
  flexDirection: "row",
@@ -412,8 +412,8 @@ const Fe = ({
412
412
  cursor: "pointer"
413
413
  },
414
414
  children: [
415
- /* @__PURE__ */ e(V, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(M, { name: "delete" }) }),
416
- /* @__PURE__ */ e(x, { variant: "Body", children: r.mobile_devices_delete_label })
415
+ /* @__PURE__ */ e(V, { "aria-label": i.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "delete" }) }),
416
+ /* @__PURE__ */ e(v, { variant: "body1", children: i.mobile_devices_delete_label })
417
417
  ]
418
418
  }
419
419
  )
@@ -422,7 +422,7 @@ const Fe = ({
422
422
  )
423
423
  ]
424
424
  },
425
- s.guid
425
+ l.guid
426
426
  )),
427
427
  /* @__PURE__ */ e(
428
428
  F,
@@ -430,57 +430,57 @@ const Fe = ({
430
430
  sx: {
431
431
  backgroundColor: n.palette.background.default,
432
432
  borderTop: "1px solid",
433
- borderColor: n.palette.border.light,
433
+ borderColor: n.palette.neutral.light,
434
434
  p: "12px 16px"
435
435
  },
436
- children: /* @__PURE__ */ e(x, { color: n.palette.text.secondary, variant: "Small", children: N(
437
- r.mobile_devices_count,
436
+ children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
437
+ i.mobile_devices_count,
438
438
  /* @__PURE__ */ e("b", { children: t.length }),
439
439
  /* @__PURE__ */ e("b", { children: t.length })
440
440
  ) })
441
441
  }
442
442
  )
443
443
  ] });
444
- }, $e = ({
444
+ }, We = ({
445
445
  dialogType: t,
446
446
  isOpen: a,
447
447
  onClose: o,
448
448
  device: n,
449
- deviceToken: r = ""
449
+ deviceToken: i = ""
450
450
  }) => {
451
- const m = P(), { common: l, settings: i } = k(), { updateDevice: s, deleteDevice: g, setAlert: _, loadDevices: d } = A(), [u, S] = h.useState("");
452
- h.useEffect(() => {
453
- n && S(n.name);
451
+ const d = A(), { common: s, settings: r } = w(), { updateDevice: l, deleteDevice: b, setAlert: _, loadDevices: m } = E(), [p, k] = u.useState("");
452
+ u.useEffect(() => {
453
+ n && k(n.name);
454
454
  }, [n, t]);
455
- const v = () => {
455
+ const C = () => {
456
456
  switch (t) {
457
- case b.Edit:
458
- return i.mobile_devices_edit_label;
459
- case b.Delete:
460
- return i.mobile_devices_delete_label;
457
+ case y.Edit:
458
+ return r.mobile_devices_edit_label;
459
+ case y.Delete:
460
+ return r.mobile_devices_delete_label;
461
461
  default:
462
462
  return "";
463
463
  }
464
- }, w = () => {
464
+ }, S = () => {
465
465
  switch (t) {
466
- case b.Token:
467
- return l.done_button;
468
- case b.Edit:
469
- return l.save_button;
470
- case b.Delete:
471
- return l.delete_button;
466
+ case y.Token:
467
+ return s.done_button;
468
+ case y.Edit:
469
+ return s.save_button;
470
+ case y.Delete:
471
+ return s.delete_button;
472
472
  default:
473
473
  return "";
474
474
  }
475
- }, C = () => {
476
- const y = {
475
+ }, T = () => {
476
+ const g = {
477
477
  "& .MuiDialogContent-root": {
478
478
  width: 400,
479
479
  pt: 0
480
480
  }
481
481
  };
482
- return t === b.Token ? {
483
- ...y,
482
+ return t === y.Token ? {
483
+ ...g,
484
484
  "& .MuiToolbar-root:last-child": {
485
485
  padding: "32px 60px 48px",
486
486
  justifyContent: "center"
@@ -492,86 +492,86 @@ const Fe = ({
492
492
  flex: 1
493
493
  }
494
494
  } : {
495
- ...y,
495
+ ...g,
496
496
  "& .MuiToolbar-root:last-child": {
497
497
  gap: 8,
498
498
  padding: 24,
499
499
  justifyContent: "flex-end"
500
500
  },
501
- ...t === b.Delete && {
502
- "& .MuiTypography-Body": {
501
+ ...t === y.Delete && {
502
+ "& .MuiTypography-body1": {
503
503
  padding: 0
504
504
  }
505
505
  }
506
506
  };
507
- }, T = async () => {
508
- if (t === b.Token && o(), t === b.Edit && n) {
509
- const y = { ...n, name: u };
510
- (await s(y)).success ? (_(i.mobile_devices_edit_success, "success"), d()) : _(
511
- N(i.mobile_devices_edit_error, n.name),
507
+ }, x = async () => {
508
+ if (t === y.Token && o(), t === y.Edit && n) {
509
+ const g = { ...n, name: p };
510
+ (await l(g)).success ? (_(r.mobile_devices_edit_success, "success"), m()) : _(
511
+ L(r.mobile_devices_edit_error, n.name),
512
512
  "error"
513
513
  ), o();
514
514
  }
515
- t === b.Delete && n && ((await g(n.guid)).success ? (_(
516
- N(i.mobile_devices_delete_success, n.name),
515
+ t === y.Delete && n && ((await b(n.guid)).success ? (_(
516
+ L(r.mobile_devices_delete_success, n.name),
517
517
  "success"
518
- ), d()) : _(
519
- N(i.mobile_devices_delete_error, n.name),
518
+ ), m()) : _(
519
+ L(r.mobile_devices_delete_error, n.name),
520
520
  "error"
521
521
  ), o());
522
522
  };
523
523
  return /* @__PURE__ */ c(
524
524
  W,
525
525
  {
526
- copy: { title: v() },
526
+ copy: { title: C() },
527
527
  isOpen: a,
528
528
  onClose: o,
529
- onPrimaryAction: T,
529
+ onPrimaryAction: x,
530
530
  onSecondaryAction: o,
531
- primaryColor: t === b.Delete ? "error" : void 0,
532
- primaryText: w(),
533
- secondaryText: t === b.Token ? l.back : l.cancel_button,
534
- sx: C(),
531
+ primaryColor: t === y.Delete ? "error" : void 0,
532
+ primaryText: S(),
533
+ secondaryText: t === y.Token ? s.back : s.cancel_button,
534
+ sx: T(),
535
535
  children: [
536
- t === b.Token && /* @__PURE__ */ c(p, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
537
- /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: i.mobile_devices_access_label }),
538
- /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: i.mobile_devices_access_info_1 }),
536
+ t === y.Token && /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
537
+ /* @__PURE__ */ e(v, { bold: !0, truncate: !1, variant: "body1", children: r.mobile_devices_access_label }),
538
+ /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_1 }),
539
539
  /* @__PURE__ */ e(
540
- x,
540
+ v,
541
541
  {
542
542
  sx: {
543
- border: `1px solid ${m.palette.border.light}`,
543
+ border: `1px solid ${d.palette.neutral.light}`,
544
544
  borderRadius: "4px",
545
545
  p: "16px 32px"
546
546
  },
547
- variant: "H1",
548
- children: r
547
+ variant: "h1",
548
+ children: i
549
549
  }
550
550
  ),
551
- /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: i.mobile_devices_access_info_2 })
551
+ /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_2 })
552
552
  ] }),
553
- t === b.Edit && /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(I, { onChange: (y) => S(y.target.value), value: u }) }),
554
- t === b.Delete && /* @__PURE__ */ e(H, { children: i.mobile_devices_delete_info })
553
+ t === y.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(I, { onChange: (g) => k(g.target.value), value: p }) }),
554
+ t === y.Delete && /* @__PURE__ */ e(B, { children: r.mobile_devices_delete_info })
555
555
  ]
556
556
  }
557
557
  );
558
- }, We = D($e), ze = D(() => {
559
- const { isMobile: t } = L(), { settings: a } = k(), { isCopyLoaded: o, isInitialized: n } = Z(), { setAlert: r, devices: m, loadDevices: l, generateDeviceToken: i } = A(), [s, g] = h.useState({ open: !1, type: "" }), [_, d] = h.useState(), [u, S] = h.useState("");
560
- h.useEffect(() => {
561
- n && l();
558
+ }, ze = D(We), Ge = D(() => {
559
+ const { isMobile: t } = H(), { settings: a } = w(), { isCopyLoaded: o, isInitialized: n } = Z(), { setAlert: i, devices: d, loadDevices: s, generateDeviceToken: r } = E(), [l, b] = u.useState({ open: !1, type: "" }), [_, m] = u.useState(), [p, k] = u.useState("");
560
+ u.useEffect(() => {
561
+ n && s();
562
562
  }, [n]);
563
- const v = async () => {
564
- const y = await i();
565
- y ? (S(y), g({ open: !0, type: b.Token })) : r(a.mobile_devices_access_error, "error");
566
- }, w = (y) => {
567
- d(y), g({ open: !0, type: b.Edit });
568
- }, C = (y) => {
569
- d(y), g({ open: !0, type: b.Delete });
570
- }, T = () => {
571
- g({ open: !1, type: "" }), d(void 0);
563
+ const C = async () => {
564
+ const g = await r();
565
+ g ? (k(g), b({ open: !0, type: y.Token })) : i(a.mobile_devices_access_error, "error");
566
+ }, S = (g) => {
567
+ m(g), b({ open: !0, type: y.Edit });
568
+ }, T = (g) => {
569
+ m(g), b({ open: !0, type: y.Delete });
570
+ }, x = () => {
571
+ b({ open: !1, type: "" }), m(void 0);
572
572
  };
573
- return !o || !n ? /* @__PURE__ */ e(ne, {}) : /* @__PURE__ */ c(
574
- p,
573
+ return !o || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
574
+ h,
575
575
  {
576
576
  sx: {
577
577
  backgroundColor: "background.paper",
@@ -579,91 +579,91 @@ const Fe = ({
579
579
  gap: 24
580
580
  },
581
581
  children: [
582
- /* @__PURE__ */ c(p, { gap: 4, children: [
582
+ /* @__PURE__ */ c(h, { gap: 4, children: [
583
583
  /* @__PURE__ */ e(J, { children: a.mobile_devices_title }),
584
- /* @__PURE__ */ e(H, { variant: "Body", children: a.mobile_devices_info })
584
+ /* @__PURE__ */ e(B, { variant: "body1", children: a.mobile_devices_info })
585
585
  ] }),
586
586
  t ? /* @__PURE__ */ e(
587
587
  Ve,
588
588
  {
589
- devices: m,
590
- onClickDeviceDelete: C,
591
- onClickDeviceEdit: w
589
+ devices: d,
590
+ onClickDeviceDelete: T,
591
+ onClickDeviceEdit: S
592
592
  }
593
593
  ) : /* @__PURE__ */ e(
594
594
  Fe,
595
595
  {
596
- devices: m,
597
- onClickDeviceDelete: C,
598
- onClickDeviceEdit: w
596
+ devices: d,
597
+ onClickDeviceDelete: T,
598
+ onClickDeviceEdit: S
599
599
  }
600
600
  ),
601
- /* @__PURE__ */ c(p, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
602
- /* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: a.mobile_devices_access_title }),
603
- /* @__PURE__ */ e(H, { align: "center", variant: "Small", children: a.mobile_devices_access_description }),
604
- /* @__PURE__ */ e(Q, { onClick: v, variant: "text", children: a.mobile_devices_access_cta })
601
+ /* @__PURE__ */ c(h, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
602
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: a.mobile_devices_access_title }),
603
+ /* @__PURE__ */ e(B, { align: "center", variant: "body2", children: a.mobile_devices_access_description }),
604
+ /* @__PURE__ */ e(X, { onClick: C, variant: "text", children: a.mobile_devices_access_cta })
605
605
  ] }),
606
606
  /* @__PURE__ */ e(
607
- We,
607
+ ze,
608
608
  {
609
609
  device: _,
610
- deviceToken: u,
611
- dialogType: s.type,
612
- isOpen: s.open,
613
- onClose: T
610
+ deviceToken: p,
611
+ dialogType: l.type,
612
+ isOpen: l.open,
613
+ onClose: x
614
614
  }
615
615
  )
616
616
  ]
617
617
  }
618
618
  );
619
- }), Ge = ze, X = D(
619
+ }), Y = D(
620
620
  ({ onClick: t, primaryText: a, secondaryText: o, sx: n }) => {
621
- const r = P();
622
- return /* @__PURE__ */ e(Re, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ c(Be, { alignItems: "flex-start", onClick: t, sx: n, children: [
621
+ const i = A();
622
+ return /* @__PURE__ */ e(Pe, { sx: { bgcolor: i.palette.background.paper }, children: /* @__PURE__ */ c(Re, { alignItems: "flex-start", onClick: t, sx: n, children: [
623
623
  /* @__PURE__ */ e(Ne, { primary: a, secondary: o }),
624
- /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(xe, {}) })
624
+ /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(Le, {}) })
625
625
  ] }) });
626
626
  }
627
- ), je = D(() => {
628
- const { settings: t } = k(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: n } = A(), [r, m] = h.useState(!1), l = () => {
629
- m(!1);
630
- }, i = () => {
631
- m(!0);
632
- }, s = (_) => a.find((d) => d.guid === _)?.name, g = async (_) => {
633
- o && o.category_guid !== _ && (o.category_guid = _, await n(o)), l();
627
+ ), $e = D(() => {
628
+ const { settings: t } = w(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: n } = E(), [i, d] = u.useState(!1), s = () => {
629
+ d(!1);
630
+ }, r = () => {
631
+ d(!0);
632
+ }, l = (_) => a.find((m) => m.guid === _)?.name, b = async (_) => {
633
+ o && o.category_guid !== _ && (o.category_guid = _, await n(o)), s();
634
634
  };
635
- return /* @__PURE__ */ c(h.Fragment, { children: [
635
+ return /* @__PURE__ */ c(u.Fragment, { children: [
636
636
  /* @__PURE__ */ e(
637
- X,
637
+ Y,
638
638
  {
639
- onClick: i,
640
- primaryText: o?.category_guid ? s(o.category_guid) : "",
639
+ onClick: r,
640
+ primaryText: o?.category_guid ? l(o.category_guid) : "",
641
641
  secondaryText: t.category
642
642
  }
643
643
  ),
644
644
  /* @__PURE__ */ e(
645
- Ee,
645
+ Ae,
646
646
  {
647
647
  initialSelected: o?.category_guid ? o.category_guid : void 0,
648
- onClose: l,
649
- onSelect: g,
650
- showDrawer: r,
648
+ onClose: s,
649
+ onSelect: b,
650
+ showDrawer: i,
651
651
  title: t.select_category
652
652
  }
653
653
  )
654
654
  ] });
655
- }), Je = D(() => {
656
- const { common: t, settings: a } = k(), { selectedRule: o, updateRulePayee: n } = A(), r = P(), [m, l] = h.useState(!1), i = o?.description ? o.description : o?.match_description, [s, g] = h.useState(i || ""), _ = () => {
657
- l(!0);
658
- }, d = async () => {
659
- s !== i && o && (o.description = s, await n(o), l(!1));
655
+ }), je = D(() => {
656
+ const { common: t, settings: a } = w(), { selectedRule: o, updateRulePayee: n } = E(), i = A(), [d, s] = u.useState(!1), r = o?.description ? o.description : o?.match_description, [l, b] = u.useState(r || ""), _ = () => {
657
+ s(!0);
658
+ }, m = async () => {
659
+ l !== r && o && (o.description = l, await n(o), s(!1));
660
660
  };
661
- return /* @__PURE__ */ c(h.Fragment, { children: [
661
+ return /* @__PURE__ */ c(u.Fragment, { children: [
662
662
  /* @__PURE__ */ e(
663
- X,
663
+ Y,
664
664
  {
665
665
  onClick: _,
666
- primaryText: i,
666
+ primaryText: r,
667
667
  secondaryText: a.payee
668
668
  }
669
669
  ),
@@ -671,33 +671,33 @@ const Fe = ({
671
671
  W,
672
672
  {
673
673
  copy: { title: a.edit_payee },
674
- isOpen: m,
675
- onClose: () => l(!1),
676
- onPrimaryAction: d,
677
- onSecondaryAction: () => l(!1),
674
+ isOpen: d,
675
+ onClose: () => s(!1),
676
+ onPrimaryAction: m,
677
+ onSecondaryAction: () => s(!1),
678
678
  primaryText: t.save_button,
679
679
  secondaryText: t.cancel_button,
680
680
  sx: {
681
681
  "& .MuiDialogContent-root": { pt: 0, width: 400 },
682
- path: { fill: r.palette.secondary.darker }
682
+ path: { fill: i.palette.secondary.dark }
683
683
  },
684
684
  children: /* @__PURE__ */ e(
685
685
  I,
686
686
  {
687
- onChange: (u) => g(u.target.value),
687
+ onChange: (p) => b(p.target.value),
688
688
  sx: { width: 352 },
689
- value: s
689
+ value: l
690
690
  }
691
691
  )
692
692
  }
693
693
  )
694
694
  ] });
695
- }), Ke = D(({ onClose: t, onDelete: a, isOpen: o }) => {
696
- const { common: n, settings: r } = k(), m = P();
695
+ }), Je = D(({ onClose: t, onDelete: a, isOpen: o }) => {
696
+ const { common: n, settings: i } = w(), d = A();
697
697
  return /* @__PURE__ */ e(
698
698
  W,
699
699
  {
700
- copy: { title: r.delete_rule },
700
+ copy: { title: i.delete_rule },
701
701
  isOpen: o,
702
702
  onClose: t,
703
703
  onPrimaryAction: a,
@@ -707,44 +707,44 @@ const Fe = ({
707
707
  secondaryText: n.cancel_button,
708
708
  sx: {
709
709
  "& .MuiButton-outlined": {
710
- borderColor: m.palette.border.main,
711
- color: m.palette.secondary.main
710
+ borderColor: d.palette.divider,
711
+ color: d.palette.secondary.main
712
712
  },
713
713
  "& .MuiDialogContent-root": { pt: 0, width: 400 },
714
- path: { fill: m.palette.secondary.darker }
714
+ path: { fill: d.palette.secondary.dark }
715
715
  },
716
- children: /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: r.delete_rule_confirm })
716
+ children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: i.delete_rule_confirm })
717
717
  }
718
718
  );
719
- }), Xe = D(
719
+ }), Ke = D(
720
720
  ({ isOpen: t, onClose: a, onDelete: o }) => {
721
- const { common: n, settings: r } = k(), m = P(), [l, i] = h.useState(!1);
721
+ const { common: n, settings: i } = w(), d = A(), [s, r] = u.useState(!1);
722
722
  return /* @__PURE__ */ c(
723
- He,
723
+ Be,
724
724
  {
725
725
  hasSecondaryAction: !1,
726
726
  isOpen: t,
727
727
  onClose: a,
728
728
  onPrimaryAction: () => {
729
- i(!0);
729
+ r(!0);
730
730
  },
731
731
  primaryColor: "error",
732
732
  primaryText: n.delete_button,
733
733
  sx: {
734
- "& .MuiToolbar-root": { borderTop: `1px solid ${m.palette.border.light}` }
734
+ "& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.neutral.light}` }
735
735
  },
736
- title: r.edit_rule,
736
+ title: i.edit_rule,
737
737
  children: [
738
- /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "XSmall", children: r.details }) }),
739
- /* @__PURE__ */ e(Je, {}),
740
- /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
738
+ /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: i.details }) }),
741
739
  /* @__PURE__ */ e(je, {}),
742
740
  /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
741
+ /* @__PURE__ */ e($e, {}),
742
+ /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
743
743
  /* @__PURE__ */ e(
744
- Ke,
744
+ Je,
745
745
  {
746
- isOpen: l,
747
- onClose: () => i(!1),
746
+ isOpen: s,
747
+ onClose: () => r(!1),
748
748
  onDelete: o
749
749
  }
750
750
  )
@@ -753,55 +753,57 @@ const Fe = ({
753
753
  );
754
754
  }
755
755
  ), Ye = D(({ rule: t }) => {
756
- const { categories: a } = ee(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: n, setSelectedRule: r } = A(), { isDesktop: m, isTablet: l } = L(), [i, s] = h.useState(!1), g = () => {
757
- s(!1), o(null), r(void 0);
756
+ const { categories: a } = ee(), { setSelectedGuid: o } = Ee(), { deleteTransactionRule: n, setSelectedRule: i } = E(), { isDesktop: d, isTablet: s } = H(), [r, l] = u.useState(!1), b = () => {
757
+ l(!1), o(null), i(void 0);
758
758
  }, _ = async () => {
759
- await n(), g();
760
- }, d = () => {
761
- s(!0), r(t);
762
- }, u = (S) => a.find((v) => v.guid === S)?.name;
763
- return /* @__PURE__ */ c(h.Fragment, { children: [
759
+ await n(), b();
760
+ }, m = () => {
761
+ l(!0), i(t);
762
+ }, p = (k) => a.find((C) => C.guid === k)?.name;
763
+ return /* @__PURE__ */ c(u.Fragment, { children: [
764
764
  /* @__PURE__ */ e(
765
- X,
765
+ Y,
766
766
  {
767
- onClick: d,
767
+ onClick: m,
768
768
  primaryText: t.description ? t.description : t.match_description,
769
- secondaryText: t.category_guid ? u(t.category_guid) : ""
769
+ secondaryText: t.category_guid ? p(t.category_guid) : ""
770
770
  }
771
771
  ),
772
- /* @__PURE__ */ e(j, { sx: { ml: l || m ? 0 : 24 } }),
773
- /* @__PURE__ */ e(Xe, { isOpen: i, onClose: g, onDelete: _ })
772
+ /* @__PURE__ */ e(j, { sx: { ml: s || d ? 0 : 24 } }),
773
+ /* @__PURE__ */ e(Ke, { isOpen: r, onClose: b, onDelete: _ })
774
774
  ] });
775
- }), qe = D(() => {
776
- const { settings: t } = k(), { loadTransactionRules: a, transactionRules: o } = A();
777
- return h.useEffect(() => {
778
- a().finally();
779
- }, []), /* @__PURE__ */ c(p, { sx: { gap: 24, py: 24 }, children: [
780
- /* @__PURE__ */ c(p, { sx: { px: 24 }, children: [
775
+ }), re = D(() => {
776
+ const { settings: t } = w(), { loadTransactionRules: a, transactionRules: o } = E(), { onLoad: n } = te();
777
+ return u.useEffect(() => {
778
+ a().finally(() => {
779
+ n?.("TransactionRulesTab");
780
+ });
781
+ }, []), /* @__PURE__ */ c(h, { sx: { gap: 24, py: 24 }, children: [
782
+ /* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
781
783
  /* @__PURE__ */ e(J, { children: t.transaction_rules_label }),
782
- /* @__PURE__ */ e(H, { variant: "Body", children: t.transaction_rules_description })
784
+ /* @__PURE__ */ e(B, { variant: "body1", children: t.transaction_rules_description })
783
785
  ] }),
784
- /* @__PURE__ */ e(Ie, { children: o.map((n, r) => /* @__PURE__ */ e(Ye, { rule: n }, r)) })
786
+ /* @__PURE__ */ e(Te, { children: o.map((i, d) => /* @__PURE__ */ e(Ye, { rule: i }, d)) })
785
787
  ] });
786
- }), re = qe, Qe = D(({ selectedTab: t }) => {
787
- const { alert: a, setAlert: o } = A(), {
788
+ }), qe = D(({ selectedTab: t }) => {
789
+ const { alert: a, setAlert: o } = E(), {
788
790
  config: { display_user_profile_in_settings: n }
789
- } = $();
790
- return /* @__PURE__ */ c(q, { children: [
791
- t === B.Profile && /* @__PURE__ */ e(Ue, {}),
792
- t === B.Devices && /* @__PURE__ */ e(Ge, {}),
793
- t === B.Notifications && /* @__PURE__ */ e(G, { showPersonalDetails: !n }),
794
- t === B.TransactionRules && /* @__PURE__ */ e(re, {}),
795
- t === B.Help && /* @__PURE__ */ e(p, { sx: { px: 24 }, children: /* @__PURE__ */ e(Le, {}) }),
791
+ } = z();
792
+ return /* @__PURE__ */ c(Q, { children: [
793
+ t === M.Profile && /* @__PURE__ */ e(Ue, {}),
794
+ t === M.Devices && /* @__PURE__ */ e(Ge, {}),
795
+ t === M.Notifications && /* @__PURE__ */ e($, { showPersonalDetails: !n }),
796
+ t === M.TransactionRules && /* @__PURE__ */ e(re, {}),
797
+ t === M.Help && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(He, {}) }),
796
798
  /* @__PURE__ */ e(
797
- he,
799
+ fe,
798
800
  {
799
801
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
800
802
  autoHideDuration: 3500,
801
803
  onClose: () => o(""),
802
804
  open: !!a.message,
803
805
  children: /* @__PURE__ */ e(
804
- pe,
806
+ he,
805
807
  {
806
808
  onClose: () => {
807
809
  o("");
@@ -815,65 +817,69 @@ const Fe = ({
815
817
  )
816
818
  ] });
817
819
  });
818
- var B = /* @__PURE__ */ ((t) => (t[t.Profile = 0] = "Profile", t[t.Devices = 1] = "Devices", t[t.Notifications = 2] = "Notifications", t[t.TransactionRules = 3] = "TransactionRules", t[t.Help = 4] = "Help", t))(B || {});
819
- const $t = D(({ onBackClick: t, sx: a }) => {
820
- const { settings: o } = k(), { isCopyLoaded: n, isInitialized: r } = Z(), { config: m } = $(), { isMobile: l } = L(), {
821
- display_user_profile_in_settings: i,
822
- display_mobile_devices_in_settings: s,
823
- display_notification_settings_in_settings: g,
824
- display_user_transaction_rules_in_settings: _,
825
- show_help_widget_in_master: d
826
- } = m, u = [
827
- { enabled: i, index: 0, label: o?.profile_label },
828
- { enabled: s, index: 1, label: o?.mobile_devices_label },
829
- { enabled: g, index: 2, label: o?.notifications_label },
830
- { enabled: _, index: 3, label: o?.transaction_rules_label },
831
- { enabled: d, index: 4, label: o?.help_label }
832
- ], S = u.find((C) => C.enabled), [v, w] = h.useState(S ? S.index : -1);
833
- return !n || !r ? /* @__PURE__ */ e(ne, {}) : /* @__PURE__ */ e(
820
+ var M = /* @__PURE__ */ ((t) => (t[t.Profile = 0] = "Profile", t[t.Devices = 1] = "Devices", t[t.Notifications = 2] = "Notifications", t[t.TransactionRules = 3] = "TransactionRules", t[t.Help = 4] = "Help", t))(M || {});
821
+ const Ft = D(({ onBackClick: t, sx: a }) => {
822
+ const { settings: o } = w(), { isCopyLoaded: n, isInitialized: i } = Z(), { config: d } = z(), { isMobile: s } = H(), { onLoad: r } = te();
823
+ u.useEffect(() => {
824
+ i && n && r?.("SettingsWidget");
825
+ }, [i, n]);
826
+ const {
827
+ display_user_profile_in_settings: l,
828
+ display_mobile_devices_in_settings: b,
829
+ display_notification_settings_in_settings: _,
830
+ display_user_transaction_rules_in_settings: m,
831
+ show_help_widget_in_master: p
832
+ } = d, k = [
833
+ { enabled: l, index: 0, label: o?.profile_label },
834
+ { enabled: b, index: 1, label: o?.mobile_devices_label },
835
+ { enabled: _, index: 2, label: o?.notifications_label },
836
+ { enabled: m, index: 3, label: o?.transaction_rules_label },
837
+ { enabled: p, index: 4, label: o?.help_label }
838
+ ], C = k.find((x) => x.enabled), [S, T] = u.useState(C ? C.index : -1);
839
+ return !n || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
834
840
  K,
835
841
  {
836
842
  onBackClick: t,
837
843
  sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...a },
838
844
  title: o.title,
839
- children: /* @__PURE__ */ c(p, { mx: l ? 0 : 48, my: 24, children: [
845
+ children: /* @__PURE__ */ c(h, { mx: s ? 0 : 48, my: 24, children: [
840
846
  /* @__PURE__ */ e(
841
- ue,
847
+ pe,
842
848
  {
843
- onChange: (C, T) => w(T),
849
+ onChange: (x, g) => T(g),
844
850
  sx: { bgcolor: "background.paper" },
845
851
  textColor: "primary",
846
- value: v,
852
+ value: S,
847
853
  variant: "scrollable",
848
- children: u.map(
849
- (C) => C.enabled && /* @__PURE__ */ e(me, { label: C.label, value: C.index }, C.index)
854
+ children: k.map(
855
+ (x) => x.enabled && /* @__PURE__ */ e(ue, { label: x.label, value: x.index }, x.index)
850
856
  )
851
857
  }
852
858
  ),
853
- /* @__PURE__ */ e(Qe, { selectedTab: v })
859
+ /* @__PURE__ */ e(qe, { selectedTab: S })
854
860
  ] })
855
861
  }
856
862
  );
857
- }), Wt = D((t) => {
858
- const { clientConfig: a } = $(), o = a?.master?.deep_link_params?.view;
859
- return o ? /* @__PURE__ */ e(G, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(p, { my: 24, children: /* @__PURE__ */ e(G, {}) }) });
860
- }), zt = (t) => {
861
- const { isMobile: a } = L();
862
- return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(p, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
863
+ }), Vt = D((t) => {
864
+ const { clientConfig: a } = z(), o = a?.master?.deep_link_params?.view;
865
+ return o ? /* @__PURE__ */ e($, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e($, {}) }) });
866
+ }), Wt = (t) => {
867
+ const { isMobile: a } = H();
868
+ return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
863
869
  };
864
870
  export {
865
- Yt as AccountNotificationProfiles,
866
- qt as BudgetNotificationProfiles,
871
+ Kt as AccountNotificationProfiles,
872
+ Yt as BudgetNotificationProfiles,
867
873
  Ge as DeviceTab,
868
- Qt as InsightsNotificationProfiles,
869
- G as NotificationSettings,
870
- Wt as NotificationSettingsWidget,
874
+ qt as InsightsNotificationProfiles,
875
+ $ as NotificationSettings,
876
+ Vt as NotificationSettingsWidget,
871
877
  Ue as ProfileTab,
872
- Jt as SettingsApi,
873
- Kt as SettingsStore,
874
- B as SettingsTabs,
875
- $t as SettingsWidget,
876
- Qe as SettingsWidgetContents,
878
+ $t as SettingsApi,
879
+ jt as SettingsStore,
880
+ M as SettingsTabs,
881
+ Ft as SettingsWidget,
882
+ qe as SettingsWidgetContents,
877
883
  re as TransactionRulesTab,
878
- zt as TransactionRulesWidget
884
+ Wt as TransactionRulesWidget
879
885
  };