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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-KpPw1phO.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -1,6 +1,6 @@
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";
1
+ import { S as Xt, a as Yt } from "../SettingsStore-krIRNwHK.mjs";
2
+ import { jsxs as c, Fragment as q, jsx as e } from "react/jsx-runtime";
3
+ import p from "react";
4
4
  import { observer as D } from "mobx-react-lite";
5
5
  import h from "@mui/material/Stack";
6
6
  import ue from "@mui/material/Tab";
@@ -11,40 +11,41 @@ import { getUnixTime as _e } from "date-fns/getUnixTime";
11
11
  import { AdapterDateFns as ge } from "@mui/x-date-pickers/AdapterDateFnsV3";
12
12
  import { DatePicker as be } from "@mui/x-date-pickers";
13
13
  import { LocalizationProvider as ye } from "@mui/x-date-pickers/LocalizationProvider";
14
- import { useTheme as A, alpha as U } from "@mui/material/styles";
14
+ import { useTheme as xe, alpha as U } from "@mui/material/styles";
15
15
  import F from "@mui/material/Box";
16
- import X from "@mui/material/Button";
16
+ import Q from "@mui/material/Button";
17
17
  import I from "@mui/material/TextField";
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";
18
+ import { H3 as J, P as L, Text as x, Icon as N, ChevronRightIcon as ve } from "@mxenabled/mxui";
19
+ import { V as Ce, a as De, N as G } from "../NotificationSettings-uzM8tCoH.mjs";
20
+ import { A as Qt, B as Zt, I as eo } from "../NotificationSettings-uzM8tCoH.mjs";
21
+ import { u as w, a as W, r as A, o as Se, b as Z, m as ee } from "../hooks-ZMp65DFz.mjs";
22
+ import { u as H } from "../useScreenSize-B6JyS_Lj.mjs";
23
+ import { D as $ } from "../Dialog-BPTr3qHE.mjs";
24
+ import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
25
+ import { fromUnixTime as oe } from "date-fns/fromUnixTime";
26
+ import R from "@mui/material/styles/useTheme";
26
27
  import V from "@mui/material/IconButton";
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";
28
+ import { DataGridPro as we } from "@mui/x-data-grid-pro";
29
+ import { H as O } from "../HeaderCell-DjuifqHJ.mjs";
30
+ import { b as M } from "../Localization-2MODESHW.mjs";
30
31
  import ke from "@mui/material/Accordion";
31
- import we from "@mui/material/AccordionDetails";
32
- import Se from "@mui/material/AccordionSummary";
33
- import { L as ie } from "../Loader-Ckqi9Rx6.mjs";
34
- import Te from "@mui/material/List";
32
+ import Te from "@mui/material/AccordionDetails";
33
+ import Ie from "@mui/material/AccordionSummary";
34
+ import { L as ie } from "../Loader-DUaFpDGv.mjs";
35
+ import Ae from "@mui/material/List";
35
36
  import j from "@mui/material/Divider";
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";
37
+ import Ee from "@mui/material/ListSubheader";
38
+ import { a as Re, u as Pe } from "../CategorySelectorDrawer-B-I3kajA.mjs";
39
+ import Be from "@mui/material/ListItem";
40
+ import Ne from "@mui/material/ListItemButton";
40
41
  import Me from "@mui/material/ListItemIcon";
41
- import Ne from "@mui/material/ListItemText";
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
- const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
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({
42
+ import Le from "@mui/material/ListItemText";
43
+ import { D as He } from "../Drawer-By9V-B5L.mjs";
44
+ import { u as ne } from "../useWidgetLoadTimer-hIOioiKx.mjs";
45
+ import { H as Oe } from "../Help-Ea3BlXQp.mjs";
46
+ import { W as K } from "../WidgetContainer-CoFDmQRE.mjs";
47
+ const Ue = ({ availableWidth: t, handleOnLeavClick: a }) => {
48
+ const o = xe(), { common: i, settings: n } = w(), { isDesktop: d, isMobile: l, isSmallMobile: r, isTablet: s } = H(t), { config: g } = W(), { updateUser: _ } = A(), { user: m } = Se(), [u, S] = p.useState({
48
49
  first_name: m.first_name,
49
50
  last_name: m.last_name,
50
51
  email: m.email,
@@ -52,109 +53,109 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
52
53
  birthday: m.birthday,
53
54
  postal_code: m.postal_code,
54
55
  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(() => {
56
+ }), [v, k] = p.useState(!1), [C, T] = p.useState(!1), y = p.useRef(null), z = u.email && !m.email_is_verified && !v, Y = u.phone && !m.phone_is_verified && !v;
57
+ p.useEffect(() => {
57
58
  if (a) {
58
- const f = (R) => {
59
- g.current && !g.current.contains(R.target) && C && x(!0);
59
+ const f = (P) => {
60
+ y.current && !y.current.contains(P.target) && v && T(!0);
60
61
  };
61
62
  return document.addEventListener("mousedown", f), () => {
62
63
  document.removeEventListener("mousedown", f);
63
64
  };
64
65
  }
65
- }, [C]);
66
+ }, [v]);
66
67
  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);
68
+ if (u.birthday) {
69
+ const f = new Date(u.birthday * 1e3), P = f.getUTCFullYear(), de = f.getUTCMonth(), me = f.getUTCDate();
70
+ return new Date(P, de, me);
70
71
  }
71
- }, se = async () => {
72
- await _({ ...m, ...p }), S(!1);
73
- }, le = () => {
74
- x(!1), a && a();
72
+ }, le = async () => {
73
+ await _({ ...m, ...u }), k(!1);
74
+ }, se = () => {
75
+ T(!1), a && a();
75
76
  }, ce = () => {
76
- x(!1);
77
- }, P = (f) => {
78
- const R = {
79
- ...p,
77
+ T(!1);
78
+ }, E = (f) => {
79
+ const P = {
80
+ ...u,
80
81
  ...f
81
82
  };
82
- k(R), S(JSON.stringify({ ...m, ...R }) !== JSON.stringify(m));
83
+ S(P), k(JSON.stringify({ ...m, ...P }) !== JSON.stringify(m));
83
84
  };
84
- return /* @__PURE__ */ c(Q, { children: [
85
+ return /* @__PURE__ */ c(q, { children: [
85
86
  /* @__PURE__ */ c(
86
87
  F,
87
88
  {
88
89
  component: "form",
89
- ref: g,
90
+ ref: y,
90
91
  sx: {
91
92
  backgroundColor: "background.paper",
92
93
  p: 24,
93
- width: r ? 320 : l ? 680 : d ? 990 : 400,
94
+ width: r ? 320 : s ? 680 : d ? 990 : 400,
94
95
  "& .MuiTextField-root": {
95
- width: r ? 272 : l ? 328 : d ? 483 : 352
96
+ width: r ? 272 : s ? 328 : d ? 483 : 352
96
97
  }
97
98
  },
98
99
  children: [
99
- /* @__PURE__ */ e(J, { children: i.personal_details }),
100
- /* @__PURE__ */ e(B, { variant: "body1", children: i.update_information }),
100
+ /* @__PURE__ */ e(J, { children: n.personal_details }),
101
+ /* @__PURE__ */ e(L, { variant: "Body", children: n.update_information }),
101
102
  /* @__PURE__ */ c(
102
103
  h,
103
104
  {
104
- direction: s ? "column" : "row",
105
- spacing: s ? 44 : 24,
105
+ direction: l ? "column" : "row",
106
+ spacing: l ? 44 : 24,
106
107
  sx: { mb: 44, pt: 32 },
107
108
  children: [
108
109
  /* @__PURE__ */ e(
109
110
  I,
110
111
  {
111
- defaultValue: p.first_name,
112
- label: i.first_name,
113
- onChange: (f) => P({ first_name: f.target.value })
112
+ defaultValue: u.first_name,
113
+ label: n.first_name,
114
+ onChange: (f) => E({ first_name: f.target.value })
114
115
  }
115
116
  ),
116
117
  /* @__PURE__ */ e(
117
118
  I,
118
119
  {
119
- defaultValue: p.last_name,
120
- label: i.last_name,
121
- onChange: (f) => P({ last_name: f.target.value })
120
+ defaultValue: u.last_name,
121
+ label: n.last_name,
122
+ onChange: (f) => E({ last_name: f.target.value })
122
123
  }
123
124
  )
124
125
  ]
125
126
  }
126
127
  ),
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: [
128
+ /* @__PURE__ */ c(h, { direction: l ? "column" : "row", children: [
129
+ g.display_email_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: z ? 20 : 44, mr: l ? 0 : 24 }, children: [
129
130
  /* @__PURE__ */ e(
130
131
  I,
131
132
  {
132
- defaultValue: p.email,
133
- label: i.email_address,
134
- onChange: (f) => P({ email: f.target.value })
133
+ defaultValue: u.email,
134
+ label: n.email_address,
135
+ onChange: (f) => E({ email: f.target.value })
135
136
  }
136
137
  ),
137
- G && /* @__PURE__ */ e(xe, {})
138
+ z && /* @__PURE__ */ e(Ce, {})
138
139
  ] }),
139
- b.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: q ? 20 : 44 }, children: [
140
+ g.display_sms_edit_field_in_settings && /* @__PURE__ */ c(h, { sx: { mb: Y ? 20 : 44 }, children: [
140
141
  /* @__PURE__ */ e(
141
142
  I,
142
143
  {
143
- defaultValue: p.phone,
144
- label: i.mobile_number,
145
- onChange: (f) => P({ phone: f.target.value }),
144
+ defaultValue: u.phone,
145
+ label: n.mobile_number,
146
+ onChange: (f) => E({ phone: f.target.value }),
146
147
  type: "tel"
147
148
  }
148
149
  ),
149
- q && /* @__PURE__ */ e(ve, {})
150
+ Y && /* @__PURE__ */ e(De, {})
150
151
  ] })
151
152
  ] }),
152
- /* @__PURE__ */ c(h, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
153
+ /* @__PURE__ */ c(h, { direction: l ? "column" : "row", spacing: l ? 44 : 24, sx: { mb: 44 }, children: [
153
154
  /* @__PURE__ */ e(ye, { dateAdapter: ge, children: /* @__PURE__ */ e(
154
155
  be,
155
156
  {
156
- label: i.birthdate,
157
- onChange: (f) => P({ birthday: _e(f) }),
157
+ label: n.birthdate,
158
+ onChange: (f) => E({ birthday: _e(f) }),
158
159
  slotProps: {
159
160
  nextIconButton: {
160
161
  sx: {
@@ -182,9 +183,9 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
182
183
  /* @__PURE__ */ e(
183
184
  I,
184
185
  {
185
- defaultValue: p.postal_code,
186
- label: i.zip_code,
187
- onChange: (f) => P({ postal_code: f.target.value })
186
+ defaultValue: u.postal_code,
187
+ label: n.zip_code,
188
+ onChange: (f) => E({ postal_code: f.target.value })
188
189
  }
189
190
  )
190
191
  ] }),
@@ -192,20 +193,20 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
192
193
  /* @__PURE__ */ e(
193
194
  I,
194
195
  {
195
- defaultValue: p.credit_score,
196
- label: i.credit_score,
197
- onChange: (f) => P({ credit_score: Number(f.target.value) }),
196
+ defaultValue: u.credit_score,
197
+ label: n.credit_score,
198
+ onChange: (f) => E({ credit_score: Number(f.target.value) }),
198
199
  sx: { mb: 44 }
199
200
  }
200
201
  ),
201
202
  /* @__PURE__ */ e(
202
- X,
203
+ Q,
203
204
  {
204
- disabled: !C,
205
- onClick: se,
205
+ disabled: !v,
206
+ onClick: le,
206
207
  sx: { width: r ? 272 : 124 },
207
208
  variant: "contained",
208
- children: n.save_button
209
+ children: i.save_button
209
210
  }
210
211
  )
211
212
  ] })
@@ -213,36 +214,36 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
213
214
  }
214
215
  ),
215
216
  /* @__PURE__ */ e(
216
- W,
217
+ $,
217
218
  {
218
- copy: { title: i.discard_changes },
219
- isOpen: T,
219
+ copy: { title: n.discard_changes },
220
+ isOpen: C,
220
221
  onClose: ce,
221
- onSecondaryAction: le,
222
- primaryText: i.keep_editing,
223
- secondaryText: i.leave,
224
- children: i.discard_changes_message
222
+ onSecondaryAction: se,
223
+ primaryText: n.keep_editing,
224
+ secondaryText: n.leave,
225
+ children: n.discard_changes_message
225
226
  }
226
227
  )
227
228
  ] });
228
- }, Ue = D(Oe);
229
- var y = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(y || {});
230
- const Fe = ({
229
+ }, Fe = D(Ue);
230
+ var b = /* @__PURE__ */ ((t) => (t.Delete = "delete", t.Edit = "edit", t.Token = "token", t))(b || {});
231
+ const Ve = ({
231
232
  devices: t,
232
233
  onClickDeviceEdit: a,
233
234
  onClickDeviceDelete: o
234
235
  }) => {
235
- const n = A(), { settings: i } = w(), d = [
236
+ const i = R(), { settings: n } = w(), d = [
236
237
  {
237
238
  field: "name",
238
- headerName: i.mobile_devices_column_name,
239
+ headerName: n.mobile_devices_column_name,
239
240
  renderHeader: O,
240
241
  renderCell: (r) => /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 4, children: [
241
- /* @__PURE__ */ e(v, { variant: "body2", children: r.value }),
242
+ /* @__PURE__ */ e(x, { variant: "Small", children: r.value }),
242
243
  /* @__PURE__ */ e(
243
244
  V,
244
245
  {
245
- "aria-label": i.mobile_devices_edit_label,
246
+ "aria-label": n.mobile_devices_edit_label,
246
247
  color: "secondary",
247
248
  onClick: () => a(r.row),
248
249
  children: /* @__PURE__ */ e(N, { name: "edit" })
@@ -255,7 +256,7 @@ const Fe = ({
255
256
  },
256
257
  {
257
258
  field: "device_type",
258
- headerName: i.mobile_devices_column_type,
259
+ headerName: n.mobile_devices_column_type,
259
260
  renderHeader: O,
260
261
  sortable: !0,
261
262
  hideSortIcons: !1,
@@ -264,9 +265,9 @@ const Fe = ({
264
265
  },
265
266
  {
266
267
  field: "created_at",
267
- headerName: i.mobile_devices_column_added,
268
+ headerName: n.mobile_devices_column_added,
268
269
  renderHeader: O,
269
- valueFormatter: (r) => oe(ne(r), { addSuffix: !0 }),
270
+ valueFormatter: (r) => te(oe(r), { addSuffix: !0 }),
270
271
  sortable: !0,
271
272
  hideSortIcons: !1,
272
273
  flex: 1,
@@ -279,7 +280,7 @@ const Fe = ({
279
280
  renderCell: (r) => /* @__PURE__ */ e(h, { mr: 4, children: /* @__PURE__ */ e(
280
281
  V,
281
282
  {
282
- "aria-label": i.mobile_devices_delete_label,
283
+ "aria-label": n.mobile_devices_delete_label,
283
284
  color: "secondary",
284
285
  onClick: () => o(r.row),
285
286
  children: /* @__PURE__ */ e(N, { name: "delete" })
@@ -289,19 +290,19 @@ const Fe = ({
289
290
  hideSortIcons: !1,
290
291
  width: 58
291
292
  }
292
- ], s = u.useMemo(() => t.map((r) => ({
293
+ ], l = p.useMemo(() => t.map((r) => ({
293
294
  id: r.guid,
294
295
  ...r,
295
296
  device_type: `${r.make} ${r.model}`
296
297
  })), [t]);
297
298
  return /* @__PURE__ */ e(F, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
298
- De,
299
+ we,
299
300
  {
300
301
  columns: d,
301
302
  disableColumnFilter: !0,
302
303
  disableColumnMenu: !0,
303
304
  disableRowSelectionOnClick: !0,
304
- rows: s,
305
+ rows: l,
305
306
  slotProps: {
306
307
  footer: {
307
308
  sx: { justifyContent: "flex-end" }
@@ -312,14 +313,14 @@ const Fe = ({
312
313
  F,
313
314
  {
314
315
  sx: {
315
- backgroundColor: n.palette.background.default,
316
+ backgroundColor: i.palette.background.default,
316
317
  display: "flex",
317
318
  justifyContent: "flex-end",
318
319
  alignItems: "center",
319
320
  p: "12px 16px"
320
321
  },
321
- children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
322
- i.mobile_devices_count,
322
+ children: /* @__PURE__ */ e(x, { color: i.palette.text.secondary, variant: "Small", children: M(
323
+ n.mobile_devices_count,
323
324
  /* @__PURE__ */ e("b", { children: t.length }),
324
325
  /* @__PURE__ */ e("b", { children: t.length })
325
326
  ) })
@@ -328,61 +329,61 @@ const Fe = ({
328
329
  },
329
330
  sx: {
330
331
  border: "1px solid",
331
- borderColor: n.palette.neutral.light,
332
+ borderColor: i.palette.border.light,
332
333
  borderRadius: "8px",
333
334
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
334
- color: n.palette.primary.main,
335
+ color: i.palette.primary.main,
335
336
  "&:hover": {
336
- backgroundColor: U(n.palette.primary.main, 0.1)
337
+ backgroundColor: U(i.palette.primary.main, 0.1)
337
338
  }
338
339
  },
339
340
  "& .MuiDataGrid-sortIcon": {
340
- color: n.palette.primary.main
341
+ color: i.palette.primary.main
341
342
  }
342
343
  }
343
344
  }
344
345
  ) });
345
- }, Ve = ({
346
+ }, We = ({
346
347
  devices: t,
347
348
  onClickDeviceEdit: a,
348
349
  onClickDeviceDelete: o
349
350
  }) => {
350
- const n = A(), { settings: i } = w(), [d, s] = u.useState(!1), r = (l) => (b, _) => {
351
- s(_ ? l : !1);
351
+ const i = R(), { settings: n } = w(), [d, l] = p.useState(!1), r = (s) => (g, _) => {
352
+ l(_ ? s : !1);
352
353
  };
353
354
  return /* @__PURE__ */ c(h, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
354
- t.map((l) => /* @__PURE__ */ c(
355
+ t.map((s) => /* @__PURE__ */ c(
355
356
  ke,
356
357
  {
357
- expanded: d === l.guid,
358
- onChange: r(l.guid),
358
+ expanded: d === s.guid,
359
+ onChange: r(s.guid),
359
360
  sx: { boxShadow: "none" },
360
361
  children: [
361
362
  /* @__PURE__ */ e(
362
- Se,
363
+ Ie,
363
364
  {
364
365
  expandIcon: /* @__PURE__ */ e(N, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
365
366
  sx: {
366
367
  padding: "14px 24px",
367
368
  borderBottom: "1px solid",
368
- borderColor: n.palette.neutral.light
369
+ borderColor: i.palette.border.light
369
370
  },
370
371
  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 }) })
372
+ /* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: s.name }),
373
+ /* @__PURE__ */ e(x, { color: i.palette.text.secondary, variant: "Small", children: `${s.make} ${s.model}` }),
374
+ /* @__PURE__ */ e(x, { color: i.palette.text.secondary, variant: "Small", children: te(oe(s.created_at), { addSuffix: !0 }) })
374
375
  ] })
375
376
  }
376
377
  ),
377
378
  /* @__PURE__ */ c(
378
- we,
379
+ Te,
379
380
  {
380
- sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
381
+ sx: { backgroundColor: i.palette.background.default, p: "0 0 0 24px" },
381
382
  children: [
382
383
  /* @__PURE__ */ c(
383
384
  h,
384
385
  {
385
- onClick: () => a(l),
386
+ onClick: () => a(s),
386
387
  sx: {
387
388
  alignItems: "center",
388
389
  flexDirection: "row",
@@ -391,18 +392,18 @@ const Fe = ({
391
392
  py: 16,
392
393
  cursor: "pointer",
393
394
  borderBottom: "1px solid",
394
- borderColor: n.palette.neutral.light
395
+ borderColor: i.palette.border.light
395
396
  },
396
397
  children: [
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 })
398
+ /* @__PURE__ */ e(V, { "aria-label": n.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "edit" }) }),
399
+ /* @__PURE__ */ e(x, { variant: "Body", children: n.mobile_devices_edit_label })
399
400
  ]
400
401
  }
401
402
  ),
402
403
  /* @__PURE__ */ c(
403
404
  h,
404
405
  {
405
- onClick: () => o(l),
406
+ onClick: () => o(s),
406
407
  sx: {
407
408
  alignItems: "center",
408
409
  flexDirection: "row",
@@ -412,8 +413,8 @@ const Fe = ({
412
413
  cursor: "pointer"
413
414
  },
414
415
  children: [
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 })
416
+ /* @__PURE__ */ e(V, { "aria-label": n.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ e(N, { name: "delete" }) }),
417
+ /* @__PURE__ */ e(x, { variant: "Body", children: n.mobile_devices_delete_label })
417
418
  ]
418
419
  }
419
420
  )
@@ -422,65 +423,65 @@ const Fe = ({
422
423
  )
423
424
  ]
424
425
  },
425
- l.guid
426
+ s.guid
426
427
  )),
427
428
  /* @__PURE__ */ e(
428
429
  F,
429
430
  {
430
431
  sx: {
431
- backgroundColor: n.palette.background.default,
432
+ backgroundColor: i.palette.background.default,
432
433
  borderTop: "1px solid",
433
- borderColor: n.palette.neutral.light,
434
+ borderColor: i.palette.border.light,
434
435
  p: "12px 16px"
435
436
  },
436
- children: /* @__PURE__ */ e(v, { color: n.palette.text.secondary, variant: "body2", children: L(
437
- i.mobile_devices_count,
437
+ children: /* @__PURE__ */ e(x, { color: i.palette.text.secondary, variant: "Small", children: M(
438
+ n.mobile_devices_count,
438
439
  /* @__PURE__ */ e("b", { children: t.length }),
439
440
  /* @__PURE__ */ e("b", { children: t.length })
440
441
  ) })
441
442
  }
442
443
  )
443
444
  ] });
444
- }, We = ({
445
+ }, $e = ({
445
446
  dialogType: t,
446
447
  isOpen: a,
447
448
  onClose: o,
448
- device: n,
449
- deviceToken: i = ""
449
+ device: i,
450
+ deviceToken: n = ""
450
451
  }) => {
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
- }, [n, t]);
455
- const C = () => {
452
+ const d = R(), { common: l, settings: r } = w(), { updateDevice: s, deleteDevice: g, setAlert: _, loadDevices: m } = A(), [u, S] = p.useState("");
453
+ p.useEffect(() => {
454
+ i && S(i.name);
455
+ }, [i, t]);
456
+ const v = () => {
456
457
  switch (t) {
457
- case y.Edit:
458
+ case b.Edit:
458
459
  return r.mobile_devices_edit_label;
459
- case y.Delete:
460
+ case b.Delete:
460
461
  return r.mobile_devices_delete_label;
461
462
  default:
462
463
  return "";
463
464
  }
464
- }, S = () => {
465
+ }, k = () => {
465
466
  switch (t) {
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;
467
+ case b.Token:
468
+ return l.done_button;
469
+ case b.Edit:
470
+ return l.save_button;
471
+ case b.Delete:
472
+ return l.delete_button;
472
473
  default:
473
474
  return "";
474
475
  }
475
- }, T = () => {
476
- const g = {
476
+ }, C = () => {
477
+ const y = {
477
478
  "& .MuiDialogContent-root": {
478
479
  width: 400,
479
480
  pt: 0
480
481
  }
481
482
  };
482
- return t === y.Token ? {
483
- ...g,
483
+ return t === b.Token ? {
484
+ ...y,
484
485
  "& .MuiToolbar-root:last-child": {
485
486
  padding: "32px 60px 48px",
486
487
  justifyContent: "center"
@@ -492,85 +493,85 @@ const Fe = ({
492
493
  flex: 1
493
494
  }
494
495
  } : {
495
- ...g,
496
+ ...y,
496
497
  "& .MuiToolbar-root:last-child": {
497
498
  gap: 8,
498
499
  padding: 24,
499
500
  justifyContent: "flex-end"
500
501
  },
501
- ...t === y.Delete && {
502
- "& .MuiTypography-body1": {
502
+ ...t === b.Delete && {
503
+ "& .MuiTypography-Body": {
503
504
  padding: 0
504
505
  }
505
506
  }
506
507
  };
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),
508
+ }, T = async () => {
509
+ if (t === b.Token && o(), t === b.Edit && i) {
510
+ const y = { ...i, name: u };
511
+ (await s(y)).success ? (_(r.mobile_devices_edit_success, "success"), m()) : _(
512
+ M(r.mobile_devices_edit_error, i.name),
512
513
  "error"
513
514
  ), o();
514
515
  }
515
- t === y.Delete && n && ((await b(n.guid)).success ? (_(
516
- L(r.mobile_devices_delete_success, n.name),
516
+ t === b.Delete && i && ((await g(i.guid)).success ? (_(
517
+ M(r.mobile_devices_delete_success, i.name),
517
518
  "success"
518
519
  ), m()) : _(
519
- L(r.mobile_devices_delete_error, n.name),
520
+ M(r.mobile_devices_delete_error, i.name),
520
521
  "error"
521
522
  ), o());
522
523
  };
523
524
  return /* @__PURE__ */ c(
524
- W,
525
+ $,
525
526
  {
526
- copy: { title: C() },
527
+ copy: { title: v() },
527
528
  isOpen: a,
528
529
  onClose: o,
529
- onPrimaryAction: x,
530
+ onPrimaryAction: T,
530
531
  onSecondaryAction: o,
531
- primaryColor: t === y.Delete ? "error" : void 0,
532
- primaryText: S(),
533
- secondaryText: t === y.Token ? s.back : s.cancel_button,
534
- sx: T(),
532
+ primaryColor: t === b.Delete ? "error" : void 0,
533
+ primaryText: k(),
534
+ secondaryText: t === b.Token ? l.back : l.cancel_button,
535
+ sx: C(),
535
536
  children: [
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 }),
537
+ t === b.Token && /* @__PURE__ */ c(h, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
538
+ /* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: r.mobile_devices_access_label }),
539
+ /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: r.mobile_devices_access_info_1 }),
539
540
  /* @__PURE__ */ e(
540
- v,
541
+ x,
541
542
  {
542
543
  sx: {
543
- border: `1px solid ${d.palette.neutral.light}`,
544
+ border: `1px solid ${d.palette.border.light}`,
544
545
  borderRadius: "4px",
545
546
  p: "16px 32px"
546
547
  },
547
- variant: "h1",
548
- children: i
548
+ variant: "H1",
549
+ children: n
549
550
  }
550
551
  ),
551
- /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: r.mobile_devices_access_info_2 })
552
+ /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: r.mobile_devices_access_info_2 })
552
553
  ] }),
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 })
554
+ t === b.Edit && /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(I, { onChange: (y) => S(y.target.value), value: u }) }),
555
+ t === b.Delete && /* @__PURE__ */ e(L, { children: r.mobile_devices_delete_info })
555
556
  ]
556
557
  }
557
558
  );
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
- }, [n]);
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);
559
+ }, ze = D($e), Ge = D(() => {
560
+ const { isMobile: t } = H(), { settings: a } = w(), { isCopyLoaded: o, isInitialized: i } = Z(), { setAlert: n, devices: d, loadDevices: l, generateDeviceToken: r } = A(), [s, g] = p.useState({ open: !1, type: "" }), [_, m] = p.useState(), [u, S] = p.useState("");
561
+ p.useEffect(() => {
562
+ i && l();
563
+ }, [i]);
564
+ const v = async () => {
565
+ const y = await r();
566
+ y ? (S(y), g({ open: !0, type: b.Token })) : n(a.mobile_devices_access_error, "error");
567
+ }, k = (y) => {
568
+ m(y), g({ open: !0, type: b.Edit });
569
+ }, C = (y) => {
570
+ m(y), g({ open: !0, type: b.Delete });
571
+ }, T = () => {
572
+ g({ open: !1, type: "" }), m(void 0);
572
573
  };
573
- return !o || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
574
+ return !o || !i ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ c(
574
575
  h,
575
576
  {
576
577
  sx: {
@@ -581,86 +582,86 @@ const Fe = ({
581
582
  children: [
582
583
  /* @__PURE__ */ c(h, { gap: 4, children: [
583
584
  /* @__PURE__ */ e(J, { children: a.mobile_devices_title }),
584
- /* @__PURE__ */ e(B, { variant: "body1", children: a.mobile_devices_info })
585
+ /* @__PURE__ */ e(L, { variant: "Body", children: a.mobile_devices_info })
585
586
  ] }),
586
587
  t ? /* @__PURE__ */ e(
587
- Ve,
588
+ We,
588
589
  {
589
590
  devices: d,
590
- onClickDeviceDelete: T,
591
- onClickDeviceEdit: S
591
+ onClickDeviceDelete: C,
592
+ onClickDeviceEdit: k
592
593
  }
593
594
  ) : /* @__PURE__ */ e(
594
- Fe,
595
+ Ve,
595
596
  {
596
597
  devices: d,
597
- onClickDeviceDelete: T,
598
- onClickDeviceEdit: S
598
+ onClickDeviceDelete: C,
599
+ onClickDeviceEdit: k
599
600
  }
600
601
  ),
601
602
  /* @__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 })
603
+ /* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: a.mobile_devices_access_title }),
604
+ /* @__PURE__ */ e(L, { align: "center", variant: "Small", children: a.mobile_devices_access_description }),
605
+ /* @__PURE__ */ e(Q, { onClick: v, variant: "text", children: a.mobile_devices_access_cta })
605
606
  ] }),
606
607
  /* @__PURE__ */ e(
607
608
  ze,
608
609
  {
609
610
  device: _,
610
- deviceToken: p,
611
- dialogType: l.type,
612
- isOpen: l.open,
613
- onClose: x
611
+ deviceToken: u,
612
+ dialogType: s.type,
613
+ isOpen: s.open,
614
+ onClose: T
614
615
  }
615
616
  )
616
617
  ]
617
618
  }
618
619
  );
619
- }), Y = D(
620
- ({ onClick: t, primaryText: a, secondaryText: o, sx: n }) => {
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
- /* @__PURE__ */ e(Ne, { primary: a, secondary: o }),
624
- /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(Le, {}) })
620
+ }), je = Ge, X = D(
621
+ ({ onClick: t, primaryText: a, secondaryText: o, sx: i }) => {
622
+ const n = R();
623
+ return /* @__PURE__ */ e(Be, { sx: { bgcolor: n.palette.background.paper }, children: /* @__PURE__ */ c(Ne, { alignItems: "flex-start", onClick: t, sx: i, children: [
624
+ /* @__PURE__ */ e(Le, { primary: a, secondary: o }),
625
+ /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(ve, {}) })
625
626
  ] }) });
626
627
  }
627
- ), $e = D(() => {
628
- const { settings: t } = w(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: n } = E(), [i, d] = u.useState(!1), s = () => {
628
+ ), Je = D(() => {
629
+ const { settings: t } = w(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: i } = A(), [n, d] = p.useState(!1), l = () => {
629
630
  d(!1);
630
631
  }, r = () => {
631
632
  d(!0);
632
- }, l = (_) => a.find((m) => m.guid === _)?.name, b = async (_) => {
633
- o && o.category_guid !== _ && (o.category_guid = _, await n(o)), s();
633
+ }, s = (_) => a.find((m) => m.guid === _)?.name, g = async (_) => {
634
+ o && o.category_guid !== _ && (o.category_guid = _, await i(o)), l();
634
635
  };
635
- return /* @__PURE__ */ c(u.Fragment, { children: [
636
+ return /* @__PURE__ */ c(p.Fragment, { children: [
636
637
  /* @__PURE__ */ e(
637
- Y,
638
+ X,
638
639
  {
639
640
  onClick: r,
640
- primaryText: o?.category_guid ? l(o.category_guid) : "",
641
+ primaryText: o?.category_guid ? s(o.category_guid) : "",
641
642
  secondaryText: t.category
642
643
  }
643
644
  ),
644
645
  /* @__PURE__ */ e(
645
- Ae,
646
+ Re,
646
647
  {
647
648
  initialSelected: o?.category_guid ? o.category_guid : void 0,
648
- onClose: s,
649
- onSelect: b,
650
- showDrawer: i,
649
+ onClose: l,
650
+ onSelect: g,
651
+ showDrawer: n,
651
652
  title: t.select_category
652
653
  }
653
654
  )
654
655
  ] });
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);
656
+ }), Ke = D(() => {
657
+ const { common: t, settings: a } = w(), { selectedRule: o, updateRulePayee: i } = A(), n = R(), [d, l] = p.useState(!1), r = o?.description ? o.description : o?.match_description, [s, g] = p.useState(r || ""), _ = () => {
658
+ l(!0);
658
659
  }, m = async () => {
659
- l !== r && o && (o.description = l, await n(o), s(!1));
660
+ s !== r && o && (o.description = s, await i(o), l(!1));
660
661
  };
661
- return /* @__PURE__ */ c(u.Fragment, { children: [
662
+ return /* @__PURE__ */ c(p.Fragment, { children: [
662
663
  /* @__PURE__ */ e(
663
- Y,
664
+ X,
664
665
  {
665
666
  onClick: _,
666
667
  primaryText: r,
@@ -668,59 +669,59 @@ const Fe = ({
668
669
  }
669
670
  ),
670
671
  /* @__PURE__ */ e(
671
- W,
672
+ $,
672
673
  {
673
674
  copy: { title: a.edit_payee },
674
675
  isOpen: d,
675
- onClose: () => s(!1),
676
+ onClose: () => l(!1),
676
677
  onPrimaryAction: m,
677
- onSecondaryAction: () => s(!1),
678
+ onSecondaryAction: () => l(!1),
678
679
  primaryText: t.save_button,
679
680
  secondaryText: t.cancel_button,
680
681
  sx: {
681
682
  "& .MuiDialogContent-root": { pt: 0, width: 400 },
682
- path: { fill: i.palette.secondary.dark }
683
+ path: { fill: n.palette.secondary.darker }
683
684
  },
684
685
  children: /* @__PURE__ */ e(
685
686
  I,
686
687
  {
687
- onChange: (p) => b(p.target.value),
688
+ onChange: (u) => g(u.target.value),
688
689
  sx: { width: 352 },
689
- value: l
690
+ value: s
690
691
  }
691
692
  )
692
693
  }
693
694
  )
694
695
  ] });
695
- }), Je = D(({ onClose: t, onDelete: a, isOpen: o }) => {
696
- const { common: n, settings: i } = w(), d = A();
696
+ }), Xe = D(({ onClose: t, onDelete: a, isOpen: o }) => {
697
+ const { common: i, settings: n } = w(), d = R();
697
698
  return /* @__PURE__ */ e(
698
- W,
699
+ $,
699
700
  {
700
- copy: { title: i.delete_rule },
701
+ copy: { title: n.delete_rule },
701
702
  isOpen: o,
702
703
  onClose: t,
703
704
  onPrimaryAction: a,
704
705
  onSecondaryAction: t,
705
706
  primaryColor: "error",
706
- primaryText: n.delete_button,
707
- secondaryText: n.cancel_button,
707
+ primaryText: i.delete_button,
708
+ secondaryText: i.cancel_button,
708
709
  sx: {
709
710
  "& .MuiButton-outlined": {
710
- borderColor: d.palette.divider,
711
+ borderColor: d.palette.border.main,
711
712
  color: d.palette.secondary.main
712
713
  },
713
714
  "& .MuiDialogContent-root": { pt: 0, width: 400 },
714
- path: { fill: d.palette.secondary.dark }
715
+ path: { fill: d.palette.secondary.darker }
715
716
  },
716
- children: /* @__PURE__ */ e(v, { truncate: !1, variant: "body2", children: i.delete_rule_confirm })
717
+ children: /* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: n.delete_rule_confirm })
717
718
  }
718
719
  );
719
- }), Ke = D(
720
+ }), Ye = D(
720
721
  ({ isOpen: t, onClose: a, onDelete: o }) => {
721
- const { common: n, settings: i } = w(), d = A(), [s, r] = u.useState(!1);
722
+ const { common: i, settings: n } = w(), d = R(), [l, r] = p.useState(!1);
722
723
  return /* @__PURE__ */ c(
723
- Be,
724
+ He,
724
725
  {
725
726
  hasSecondaryAction: !1,
726
727
  isOpen: t,
@@ -729,21 +730,21 @@ const Fe = ({
729
730
  r(!0);
730
731
  },
731
732
  primaryColor: "error",
732
- primaryText: n.delete_button,
733
+ primaryText: i.delete_button,
733
734
  sx: {
734
- "& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.neutral.light}` }
735
+ "& .MuiToolbar-root": { borderTop: `1px solid ${d.palette.border.light}` }
735
736
  },
736
- title: i.edit_rule,
737
+ title: n.edit_rule,
737
738
  children: [
738
- /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(v, { bold: !0, variant: "caption", children: i.details }) }),
739
- /* @__PURE__ */ e(je, {}),
739
+ /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "XSmall", children: n.details }) }),
740
+ /* @__PURE__ */ e(Ke, {}),
740
741
  /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
741
- /* @__PURE__ */ e($e, {}),
742
+ /* @__PURE__ */ e(Je, {}),
742
743
  /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
743
744
  /* @__PURE__ */ e(
744
- Je,
745
+ Xe,
745
746
  {
746
- isOpen: s,
747
+ isOpen: l,
747
748
  onClose: () => r(!1),
748
749
  onDelete: o
749
750
  }
@@ -752,49 +753,50 @@ const Fe = ({
752
753
  }
753
754
  );
754
755
  }
755
- ), Ye = D(({ rule: t }) => {
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);
756
+ ), qe = D(({ rule: t }) => {
757
+ const { categories: a } = ee(), { setSelectedGuid: o } = Pe(), { deleteTransactionRule: i, setSelectedRule: n } = A(), { isDesktop: d, isTablet: l } = H(), [r, s] = p.useState(!1), g = () => {
758
+ s(!1), o(null), n(void 0);
758
759
  }, _ = async () => {
759
- await n(), b();
760
+ await i(), g();
760
761
  }, m = () => {
761
- l(!0), i(t);
762
- }, p = (k) => a.find((C) => C.guid === k)?.name;
763
- return /* @__PURE__ */ c(u.Fragment, { children: [
762
+ s(!0), n(t);
763
+ }, u = (S) => a.find((v) => v.guid === S)?.name;
764
+ return /* @__PURE__ */ c(p.Fragment, { children: [
764
765
  /* @__PURE__ */ e(
765
- Y,
766
+ X,
766
767
  {
767
768
  onClick: m,
768
769
  primaryText: t.description ? t.description : t.match_description,
769
- secondaryText: t.category_guid ? p(t.category_guid) : ""
770
+ secondaryText: t.category_guid ? u(t.category_guid) : ""
770
771
  }
771
772
  ),
772
- /* @__PURE__ */ e(j, { sx: { ml: s || d ? 0 : 24 } }),
773
- /* @__PURE__ */ e(Ke, { isOpen: r, onClose: b, onDelete: _ })
773
+ /* @__PURE__ */ e(j, { sx: { ml: l || d ? 0 : 24 } }),
774
+ /* @__PURE__ */ e(Ye, { isOpen: r, onClose: g, onDelete: _ })
774
775
  ] });
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
- });
776
+ }), Qe = D(() => {
777
+ const { settings: t } = w(), { loadTransactionRules: a, transactionRules: o } = A(), [i, n] = p.useState(!1);
778
+ return ne({
779
+ widgetName: "TransactionRulesTab",
780
+ isLoaded: i
781
+ }), p.useEffect(() => {
782
+ a().finally(() => n(!0));
781
783
  }, []), /* @__PURE__ */ c(h, { sx: { gap: 24, py: 24 }, children: [
782
784
  /* @__PURE__ */ c(h, { sx: { px: 24 }, children: [
783
785
  /* @__PURE__ */ e(J, { children: t.transaction_rules_label }),
784
- /* @__PURE__ */ e(B, { variant: "body1", children: t.transaction_rules_description })
786
+ /* @__PURE__ */ e(L, { variant: "Body", children: t.transaction_rules_description })
785
787
  ] }),
786
- /* @__PURE__ */ e(Te, { children: o.map((i, d) => /* @__PURE__ */ e(Ye, { rule: i }, d)) })
788
+ /* @__PURE__ */ e(Ae, { children: o.map((d, l) => /* @__PURE__ */ e(qe, { rule: d }, l)) })
787
789
  ] });
788
- }), qe = D(({ selectedTab: t }) => {
789
- const { alert: a, setAlert: o } = E(), {
790
- config: { display_user_profile_in_settings: n }
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, {}) }),
790
+ }), re = Qe, Ze = D(({ selectedTab: t }) => {
791
+ const { alert: a, setAlert: o } = A(), {
792
+ config: { display_user_profile_in_settings: i }
793
+ } = W();
794
+ return /* @__PURE__ */ c(q, { children: [
795
+ t === B.Profile && /* @__PURE__ */ e(Fe, {}),
796
+ t === B.Devices && /* @__PURE__ */ e(je, {}),
797
+ t === B.Notifications && /* @__PURE__ */ e(G, { showPersonalDetails: !i }),
798
+ t === B.TransactionRules && /* @__PURE__ */ e(re, {}),
799
+ t === B.Help && /* @__PURE__ */ e(h, { sx: { px: 24 }, children: /* @__PURE__ */ e(Oe, {}) }),
798
800
  /* @__PURE__ */ e(
799
801
  fe,
800
802
  {
@@ -817,69 +819,70 @@ const Fe = ({
817
819
  )
818
820
  ] });
819
821
  });
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]);
822
+ 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 || {});
823
+ const zt = D(({ onBackClick: t, sx: a }) => {
824
+ const { settings: o } = w(), { isCopyLoaded: i, isInitialized: n } = Z(), { config: d } = W(), { isMobile: l } = H();
825
+ ne({
826
+ widgetName: "SettingsWidget",
827
+ isLoaded: n && i
828
+ });
826
829
  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(
830
+ display_user_profile_in_settings: r,
831
+ display_mobile_devices_in_settings: s,
832
+ display_notification_settings_in_settings: g,
833
+ display_user_transaction_rules_in_settings: _,
834
+ show_help_widget_in_master: m
835
+ } = d, u = [
836
+ { enabled: r, index: 0, label: o?.profile_label },
837
+ { enabled: s, index: 1, label: o?.mobile_devices_label },
838
+ { enabled: g, index: 2, label: o?.notifications_label },
839
+ { enabled: _, index: 3, label: o?.transaction_rules_label },
840
+ { enabled: m, index: 4, label: o?.help_label }
841
+ ], S = u.find((C) => C.enabled), [v, k] = p.useState(S ? S.index : -1);
842
+ return !i || !n ? /* @__PURE__ */ e(ie, {}) : /* @__PURE__ */ e(
840
843
  K,
841
844
  {
842
845
  onBackClick: t,
843
846
  sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...a },
844
847
  title: o.title,
845
- children: /* @__PURE__ */ c(h, { mx: s ? 0 : 48, my: 24, children: [
848
+ children: /* @__PURE__ */ c(h, { mx: l ? 0 : 48, my: 24, children: [
846
849
  /* @__PURE__ */ e(
847
850
  pe,
848
851
  {
849
- onChange: (x, g) => T(g),
852
+ onChange: (C, T) => k(T),
850
853
  sx: { bgcolor: "background.paper" },
851
854
  textColor: "primary",
852
- value: S,
855
+ value: v,
853
856
  variant: "scrollable",
854
- children: k.map(
855
- (x) => x.enabled && /* @__PURE__ */ e(ue, { label: x.label, value: x.index }, x.index)
857
+ children: u.map(
858
+ (C) => C.enabled && /* @__PURE__ */ e(ue, { label: C.label, value: C.index }, C.index)
856
859
  )
857
860
  }
858
861
  ),
859
- /* @__PURE__ */ e(qe, { selectedTab: S })
862
+ /* @__PURE__ */ e(Ze, { selectedTab: v })
860
863
  ] })
861
864
  }
862
865
  );
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) => {
866
+ }), Gt = D((t) => {
867
+ const { clientConfig: a } = W(), o = a?.master?.deep_link_params?.view;
868
+ return o ? /* @__PURE__ */ e(G, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { my: 24, children: /* @__PURE__ */ e(G, {}) }) });
869
+ }), jt = (t) => {
867
870
  const { isMobile: a } = H();
868
871
  return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(h, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
869
872
  };
870
873
  export {
871
- Kt as AccountNotificationProfiles,
872
- Yt as BudgetNotificationProfiles,
873
- Ge as DeviceTab,
874
- qt as InsightsNotificationProfiles,
875
- $ as NotificationSettings,
876
- Vt as NotificationSettingsWidget,
877
- Ue as ProfileTab,
878
- $t as SettingsApi,
879
- jt as SettingsStore,
880
- M as SettingsTabs,
881
- Ft as SettingsWidget,
882
- qe as SettingsWidgetContents,
874
+ Qt as AccountNotificationProfiles,
875
+ Zt as BudgetNotificationProfiles,
876
+ je as DeviceTab,
877
+ eo as InsightsNotificationProfiles,
878
+ G as NotificationSettings,
879
+ Gt as NotificationSettingsWidget,
880
+ Fe as ProfileTab,
881
+ Xt as SettingsApi,
882
+ Yt as SettingsStore,
883
+ B as SettingsTabs,
884
+ zt as SettingsWidget,
885
+ Ze as SettingsWidgetContents,
883
886
  re as TransactionRulesTab,
884
- Wt as TransactionRulesWidget
887
+ jt as TransactionRulesWidget
885
888
  };