@mx-cartographer/experiences 9.0.3 → 9.0.4

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 (93) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{Account-BaJmiJAG.mjs → Account-DR7Plrqy.mjs} +10 -10
  3. package/dist/AccountDetailsDrawer-C8oJP3J4.mjs +921 -0
  4. package/dist/AccountDetailsHeader-ByGNPZpO.mjs +228 -0
  5. package/dist/{AccountUtils-T5_Odvos.mjs → AccountUtils-B8ZzWI-d.mjs} +3 -3
  6. package/dist/{Analytics-CzGzz_sE.mjs → Analytics-WeZYytR0.mjs} +3 -0
  7. package/dist/BeatMaterialIcon-1KOfRZrA.mjs +26 -0
  8. package/dist/{CategorySelectorDrawer-8soGrhB8.mjs → CategorySelectorDrawer-BArJC27L.mjs} +1 -1
  9. package/dist/Connect-BH0Pt6zc.mjs +42 -0
  10. package/dist/{ConnectCard-CCep7Zqe.mjs → ConnectCard-Dwfgv24k.mjs} +1 -1
  11. package/dist/{ConnectDrawer-Cnjr3Ddg.mjs → ConnectDrawer-DytyIhaF.mjs} +8 -9
  12. package/dist/{ConnectionsDrawer-CtfPXk0M.mjs → ConnectionsDrawer-BHJPKXYF.mjs} +8 -9
  13. package/dist/{CurrencyInput-adTIRtL3.mjs → CurrencyInput-DaGEQaLW.mjs} +1 -1
  14. package/dist/DateUtil-CzBmbjmA.mjs +74 -0
  15. package/dist/{DebtUtils-DD3186U-.mjs → DebtUtils-i4pI2Uoe.mjs} +6 -6
  16. package/dist/{EmbeddedCard-DPwJjqMH.mjs → EmbeddedCard-CQpbZrmP.mjs} +4 -4
  17. package/dist/{Error-Dogaw2jO.mjs → Error-Dtw6yxkf.mjs} +1 -1
  18. package/dist/{ExportCsvAction-Bw02ZJEj.mjs → ExportCsvAction-bovG-NJr.mjs} +2 -2
  19. package/dist/{GlobalAccountFilter-7Cg2-9A5.mjs → GlobalAccountFilter-CYqzqmAd.mjs} +10 -10
  20. package/dist/{Help-DJ8PrVHX.mjs → Help-5klKVqkX.mjs} +2 -2
  21. package/dist/{LineChart-CejWS_rh.mjs → LineChart-CUfiH86G.mjs} +1 -1
  22. package/dist/{ListItemAction-CzZ8s39Z.mjs → ListItemAction-BqUCLj_w.mjs} +1 -1
  23. package/dist/{ListItemWrapper-B5r-YQQ_.mjs → ListItemWrapper-BHIbqx7E.mjs} +3 -3
  24. package/dist/ManageIncome-Cz6hvpdA.mjs +902 -0
  25. package/dist/{MicroWidgetContainer-CfKdQfhi.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +1 -1
  26. package/dist/{MiniWidgetContainer-BdPiUU-u.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +1 -1
  27. package/dist/{NetWorthUtils-DilGN1nW.mjs → NetWorthUtils-DfSH3z70.mjs} +2 -2
  28. package/dist/{NotificationSettings-B4JA5IKE.mjs → NotificationSettings-Ci89BBRI.mjs} +4 -4
  29. package/dist/{OriginalBalanceAction-BybTXDtO.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +3 -3
  30. package/dist/{RecurringSettings-D2xbNb67.mjs → RecurringSettings-ClYjsmPz.mjs} +4 -4
  31. package/dist/RecurringTransactionsUtil-zOxq5pzY.mjs +298 -0
  32. package/dist/Select-CSpkK5cR.mjs +61 -0
  33. package/dist/{SpendingLegend-5Ct_FZ8o.mjs → SpendingLegend-Bn3DzGyK.mjs} +1 -1
  34. package/dist/TabContentContainer-B0eYJP5p.mjs +48 -0
  35. package/dist/{TransactionDetails-DctXr07p.mjs → TransactionDetails-DRN0GIaZ.mjs} +6 -6
  36. package/dist/{UserStore-CRpKQjpP.mjs → UserStore-DzWku3t0.mjs} +81 -40
  37. package/dist/{ViewMoreMicroCard-BD_MNc2z.mjs → ViewMoreMicroCard-Dxghxphh.mjs} +211 -231
  38. package/dist/{WidgetContainer-CmbU4CBH.mjs → WidgetContainer-D-LzIKFb.mjs} +3 -3
  39. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
  40. package/dist/accounts/index.d.ts +1 -0
  41. package/dist/accounts/index.es.js +220 -1035
  42. package/dist/analytics/index.es.js +8 -8
  43. package/dist/budgets/index.es.js +11 -11
  44. package/dist/cashflow/index.es.js +41 -41
  45. package/dist/categories/index.es.js +1 -1
  46. package/dist/common/components/DataRow.d.ts +1 -0
  47. package/dist/common/constants/Analytics.d.ts +3 -0
  48. package/dist/common/index.es.js +82 -83
  49. package/dist/core/index.es.js +8 -8
  50. package/dist/core/stores/RecurringTransactionsStore.d.ts +27 -1
  51. package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
  52. package/dist/core/utils/DateUtil.d.ts +2 -0
  53. package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
  54. package/dist/dashboard/index.es.js +4 -4
  55. package/dist/debts/index.es.js +73 -73
  56. package/dist/finstrong/index.es.js +17 -17
  57. package/dist/goals/index.es.js +22 -23
  58. package/dist/help/index.es.js +4 -4
  59. package/dist/{hooks-BaO_gOI6.mjs → hooks-97sNJ_lf.mjs} +9 -9
  60. package/dist/insights/index.es.js +4 -4
  61. package/dist/investments/index.es.js +6 -6
  62. package/dist/merchants/index.es.js +1 -1
  63. package/dist/microinsights/index.es.js +12 -11
  64. package/dist/networth/index.es.js +9 -9
  65. package/dist/notifications/index.es.js +9 -9
  66. package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
  67. package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
  68. package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +6 -0
  69. package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
  70. package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
  71. package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
  72. package/dist/recurringtransactions/index.es.js +402 -376
  73. package/dist/settings/index.es.js +7 -7
  74. package/dist/spending/index.es.js +8 -8
  75. package/dist/transactions/index.es.js +12 -12
  76. package/dist/trends/index.es.js +13 -13
  77. package/dist/useAccountDisplayName-BsiXA0qf.mjs +23 -0
  78. package/dist/{useInsightsEnabled-DaNLPmUU.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +1 -1
  79. package/dist/{useWidgetLoadTimer-CJb-RELP.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +1 -1
  80. package/package.json +1 -1
  81. package/dist/Account-BxHMlV9R.mjs +0 -30
  82. package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
  83. package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
  84. package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
  85. package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
  86. package/dist/Accounts-CseLC3lL.mjs +0 -5
  87. package/dist/Connect-Dk6GZEsA.mjs +0 -39
  88. package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
  89. package/dist/ManageIncome-D1yBODQi.mjs +0 -595
  90. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
  91. package/dist/Select-BFt-HD-L.mjs +0 -55
  92. package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
  93. package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
@@ -15,9 +15,9 @@ import W from "@mui/material/Box";
15
15
  import Z from "@mui/material/Button";
16
16
  import I from "@mui/material/TextField";
17
17
  import { H3 as Y, P as M, Text as x, Icon as B } from "@mxenabled/mxui";
18
- import { V as xe, a as ve, N as J } from "../NotificationSettings-B4JA5IKE.mjs";
19
- import { A as $t, B as Jt, I as Kt } from "../NotificationSettings-B4JA5IKE.mjs";
20
- import { u as w, a as G, A as E, C as Ce, b as ee, l as j } from "../hooks-BaO_gOI6.mjs";
18
+ import { V as xe, a as ve, N as J } from "../NotificationSettings-Ci89BBRI.mjs";
19
+ import { A as $t, B as Jt, I as Kt } from "../NotificationSettings-Ci89BBRI.mjs";
20
+ import { u as w, i as G, A as E, C as Ce, a as ee, l as j } from "../hooks-97sNJ_lf.mjs";
21
21
  import { u as O } from "../useScreenSize-mWpmnh5w.mjs";
22
22
  import { D as $ } from "../Dialog-Bvd2n8hz.mjs";
23
23
  import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
@@ -33,16 +33,16 @@ import { L as ie } from "../Loader-CxeBwuPG.mjs";
33
33
  import Te from "@mui/material/List";
34
34
  import K from "@mui/material/Divider";
35
35
  import Ae from "@mui/material/ListSubheader";
36
- import { b as Ie, u as Ee } from "../CategorySelectorDrawer-8soGrhB8.mjs";
36
+ import { b as Ie, u as Ee } from "../CategorySelectorDrawer-BArJC27L.mjs";
37
37
  import Pe from "@mui/material/ListItem";
38
38
  import Re from "@mui/material/ListItemButton";
39
39
  import Ne from "@mui/material/ListItemIcon";
40
40
  import Me from "@mui/material/ListItemText";
41
41
  import { ChevronRight as Le } from "@mxenabled/mx-icons";
42
42
  import { D as Be } from "../Drawer-BXqqBMxg.mjs";
43
- import { u as ne } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
- import { H as He } from "../Help-DJ8PrVHX.mjs";
45
- import { W as q } from "../WidgetContainer-CmbU4CBH.mjs";
43
+ import { u as ne } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
44
+ import { H as He } from "../Help-5klKVqkX.mjs";
45
+ import { W as q } from "../WidgetContainer-D-LzIKFb.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = L(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = O(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [p, k] = m.useState({
48
48
  first_name: d.first_name,
@@ -8,19 +8,19 @@ import y from "@mui/material/Stack";
8
8
  import $ from "@mui/material/Tab";
9
9
  import rt from "@mui/material/Tabs";
10
10
  import { useTheme as _t } from "@mui/material/styles";
11
- import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-5Ct_FZ8o.mjs";
11
+ import { g as st, a as lt, S as B, b as q } from "../SpendingLegend-Bn3DzGyK.mjs";
12
12
  import { Text as T, Icon as bt } from "@mxenabled/mxui";
13
13
  import { f as k } from "../NumberFormatting--XMeeBfr.mjs";
14
- import { u as A, l as R, d as ct, b as P, a as H, h as dt, g as yt } from "../hooks-BaO_gOI6.mjs";
15
- import { u as gt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
14
+ import { u as A, l as R, c as ct, a as P, i as H, g as dt, f as yt } from "../hooks-97sNJ_lf.mjs";
15
+ import { u as gt } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
16
16
  import { L as pt } from "../Loader-CxeBwuPG.mjs";
17
- import { M as Ct } from "../MiniWidgetContainer-BdPiUU-u.mjs";
17
+ import { M as Ct } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
18
18
  import { startOfToday as J } from "date-fns/startOfToday";
19
19
  import St from "@mui/material/Button";
20
20
  import { useTheme as Tt } from "@mui/material";
21
21
  import { e as Mt } from "../TransactionUtils-BphBJBbU.mjs";
22
- import { T as Dt } from "../EmbeddedCard-DPwJjqMH.mjs";
23
- import { T as xt } from "../TransactionDetails-DctXr07p.mjs";
22
+ import { T as Dt } from "../EmbeddedCard-CQpbZrmP.mjs";
23
+ import { T as xt } from "../TransactionDetails-DRN0GIaZ.mjs";
24
24
  import vt from "@mui/material/Collapse";
25
25
  import wt from "@mui/material/Divider";
26
26
  import Q from "@mui/material/List";
@@ -30,8 +30,8 @@ import { u as Lt } from "../useScreenSize-mWpmnh5w.mjs";
30
30
  import { D as tt } from "../Drawer-BXqqBMxg.mjs";
31
31
  import { C as w } from "../Category-DEKZGLYe.mjs";
32
32
  import { parseISO as et } from "date-fns/parseISO";
33
- import { A as nt } from "../Analytics-CzGzz_sE.mjs";
34
- import { W as It } from "../WidgetContainer-CmbU4CBH.mjs";
33
+ import { A as nt } from "../Analytics-WeZYytR0.mjs";
34
+ import { W as It } from "../WidgetContainer-D-LzIKFb.mjs";
35
35
  const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -1,14 +1,14 @@
1
- import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-DctXr07p.mjs";
2
- import { B as xa, b as Aa } from "../TransactionDetails-DctXr07p.mjs";
3
- import { u as B, T as Ge } from "../EmbeddedCard-DPwJjqMH.mjs";
4
- import { a as Sa } from "../EmbeddedCard-DPwJjqMH.mjs";
5
- import { E as va } from "../ExportCsvAction-Bw02ZJEj.mjs";
1
+ import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-DRN0GIaZ.mjs";
2
+ import { B as xa, b as Aa } from "../TransactionDetails-DRN0GIaZ.mjs";
3
+ import { u as B, T as Ge } from "../EmbeddedCard-CQpbZrmP.mjs";
4
+ import { a as Sa } from "../EmbeddedCard-CQpbZrmP.mjs";
5
+ import { E as va } from "../ExportCsvAction-bovG-NJr.mjs";
6
6
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
7
7
  import u from "react";
8
8
  import { observer as D } from "mobx-react-lite";
9
9
  import Ve from "@mui/material/Paper";
10
10
  import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
11
- import { h as H, u as v, g as ne, b as K, d as oe, l as Ue, a as Ke, C as ze } from "../hooks-BaO_gOI6.mjs";
11
+ import { g as H, u as v, f as ne, a as K, c as oe, l as Ue, i as Ke, C as ze } from "../hooks-97sNJ_lf.mjs";
12
12
  import { L as z } from "../Loader-CxeBwuPG.mjs";
13
13
  import { Text as y, Icon as R, MerchantLogo as qe, TextField as Z, P as Ye } from "@mxenabled/mxui";
14
14
  import w from "@mui/material/Stack";
@@ -18,26 +18,26 @@ import S from "@mui/material/Box";
18
18
  import { useTheme as ie } from "@mui/material/styles";
19
19
  import { fromUnixTime as Je } from "date-fns/fromUnixTime";
20
20
  import { f as Qe, D as Ze } from "../DateFormats-HudZ3Bjs.mjs";
21
- import { A } from "../Analytics-CzGzz_sE.mjs";
21
+ import { A } from "../Analytics-WeZYytR0.mjs";
22
22
  import { endOfMonth as et } from "date-fns/endOfMonth";
23
23
  import { getUnixTime as tt } from "date-fns/getUnixTime";
24
24
  import { startOfMonth as at } from "date-fns/startOfMonth";
25
25
  import { startOfToday as F } from "date-fns/startOfToday";
26
26
  import { b as U } from "../Localization-DnoVyBNK.mjs";
27
- import { C as nt } from "../ConnectDrawer-Cnjr3Ddg.mjs";
27
+ import { C as nt } from "../ConnectDrawer-DytyIhaF.mjs";
28
28
  import ot from "@mui/material/Divider";
29
29
  import rt from "@mui/material/MenuItem";
30
30
  import it from "@mui/material/RadioGroup";
31
31
  import { ExpandMore as st } from "@mxenabled/mx-icons";
32
- import { C as ct } from "../CurrencyInput-adTIRtL3.mjs";
32
+ import { C as ct } from "../CurrencyInput-DaGEQaLW.mjs";
33
33
  import { S as ee } from "../SelectionBox-B4xELRgp.mjs";
34
34
  import { D as se } from "../Dialog-Bvd2n8hz.mjs";
35
- import { b as lt, u as dt } from "../CategorySelectorDrawer-8soGrhB8.mjs";
35
+ import { b as lt, u as dt } from "../CategorySelectorDrawer-BArJC27L.mjs";
36
36
  import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
37
37
  import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
38
38
  import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
39
- import { u as pt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
40
- import { W as gt } from "../WidgetContainer-CmbU4CBH.mjs";
39
+ import { u as pt } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
40
+ import { W as gt } from "../WidgetContainer-D-LzIKFb.mjs";
41
41
  import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
42
42
  import { D as te } from "../Drawer-BXqqBMxg.mjs";
43
43
  const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
@@ -18,7 +18,7 @@ import ot from "@mui/material/CardContent";
18
18
  import Ne from "@mui/material/Divider";
19
19
  import Fe from "@mui/material/Grid";
20
20
  import { b as nt } from "../Localization-DnoVyBNK.mjs";
21
- import { u as R, l as q, g as $, b as fe, h as we, d as De, B as ye, D as st, f as Be, a as rt } from "../hooks-BaO_gOI6.mjs";
21
+ import { u as R, l as q, f as $, a as fe, g as we, c as De, B as ye, D as st, e as Be, i as rt } from "../hooks-97sNJ_lf.mjs";
22
22
  import { C as xe } from "../CurrencyText-CCbE6MmF.mjs";
23
23
  import { a as Re, C as $e, b as Nt } from "../Category-DEKZGLYe.mjs";
24
24
  import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
@@ -29,22 +29,22 @@ import Ft from "@mui/material/ToggleButton";
29
29
  import $t from "@mui/material/ToggleButtonGroup";
30
30
  import { parseISO as lt } from "date-fns/parseISO";
31
31
  import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
32
- import { T as W, a as Kt } from "../ViewMoreMicroCard-BD_MNc2z.mjs";
32
+ import { T as W, a as Kt } from "../ViewMoreMicroCard-Dxghxphh.mjs";
33
33
  import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } from "@mui/x-data-grid-pro";
34
34
  import Xt from "@mui/material/Badge";
35
35
  import Zt from "@mui/material/IconButton";
36
- import { A as w } from "../Analytics-CzGzz_sE.mjs";
37
- import { T as ct } from "../EmbeddedCard-DPwJjqMH.mjs";
38
- import { T as dt } from "../TransactionDetails-DctXr07p.mjs";
36
+ import { A as w } from "../Analytics-WeZYytR0.mjs";
37
+ import { T as ct } from "../EmbeddedCard-CQpbZrmP.mjs";
38
+ import { T as dt } from "../TransactionDetails-DRN0GIaZ.mjs";
39
39
  import { D as Pe } from "../Drawer-BXqqBMxg.mjs";
40
- import { u as Ie } from "../useWidgetLoadTimer-CJb-RELP.mjs";
40
+ import { u as Ie } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
42
- import { W as ut } from "../WidgetContainer-CmbU4CBH.mjs";
43
- import { L as Ve } from "../LineChart-CejWS_rh.mjs";
44
- import { M as Qt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
42
+ import { W as ut } from "../WidgetContainer-D-LzIKFb.mjs";
43
+ import { L as Ve } from "../LineChart-CUfiH86G.mjs";
44
+ import { M as Qt } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
45
45
  import { subMonths as qt } from "date-fns";
46
46
  import { TrendingUp as Jt, TrendingDown as eo, MultilineChart as to, ExpandLess as oo, ExpandMore as no, ChevronRight as so, ArrowBack as ro } from "@mxenabled/mx-icons";
47
- import { M as ao } from "../MicroWidgetContainer-CfKdQfhi.mjs";
47
+ import { M as ao } from "../MicroWidgetContainer-B2NnKBgW.mjs";
48
48
  import io from "@mui/material/Collapse";
49
49
  import We from "@mui/material/List";
50
50
  import mt from "@mui/material/ListItem";
@@ -55,10 +55,10 @@ import { g as Oe } from "../TransactionUtils-BphBJBbU.mjs";
55
55
  import { L as uo } from "../ListItemRow-kH1rn8Xu.mjs";
56
56
  import { Stack as mo } from "@mui/material";
57
57
  import ho from "@mui/material/ListItemAvatar";
58
- import { E as go } from "../ExportCsvAction-Bw02ZJEj.mjs";
59
- import { u as po } from "../useInsightsEnabled-DaNLPmUU.mjs";
58
+ import { E as go } from "../ExportCsvAction-bovG-NJr.mjs";
59
+ import { u as po } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
60
60
  import { E as fo } from "../EmptyState-CJUDc3kD.mjs";
61
- import { C as yo } from "../ConnectDrawer-Cnjr3Ddg.mjs";
61
+ import { C as yo } from "../ConnectDrawer-DytyIhaF.mjs";
62
62
  const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
63
63
  const { categories: s } = R(), { getCategoryName: o } = q(), r = o(t);
64
64
  return /* @__PURE__ */ C(S, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
@@ -0,0 +1,23 @@
1
+ import t from "react";
2
+ import { i } from "./hooks-97sNJ_lf.mjs";
3
+ function o(e, n) {
4
+ if (n?.allowNickname === !0) {
5
+ const m = e.nickname?.trim();
6
+ if (m) return m;
7
+ }
8
+ const a = e.name?.trim();
9
+ return a || e.feed_name?.trim() || "";
10
+ }
11
+ const f = (e) => {
12
+ const { config: n } = i();
13
+ return t.useMemo(
14
+ () => o(e, {
15
+ allowNickname: n?.show_account_nicknames_in_master
16
+ }),
17
+ [e, n?.show_account_nicknames_in_master]
18
+ );
19
+ };
20
+ export {
21
+ o as g,
22
+ f as u
23
+ };
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useEffect as a } from "react";
2
- import { f as o } from "./hooks-BaO_gOI6.mjs";
2
+ import { e as o } from "./hooks-97sNJ_lf.mjs";
3
3
  const f = () => {
4
4
  const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
5
5
  return a(() => {
@@ -1,5 +1,5 @@
1
1
  import { useRef as r, useEffect as c } from "react";
2
- import { g as l } from "./hooks-BaO_gOI6.mjs";
2
+ import { f as l } from "./hooks-97sNJ_lf.mjs";
3
3
  let n = !0;
4
4
  const d = ({ widgetName: i, isLoaded: u = !0 }) => {
5
5
  const { onEvent: o } = l(), t = r(null), s = r(!1), e = r(!1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,30 +0,0 @@
1
- import { A as C } from "./Account-BaJmiJAG.mjs";
2
- const I = [
3
- C.ANY,
4
- C.CASH,
5
- C.CHECKING,
6
- C.DIGITAL_WALLET,
7
- C.PREPAID,
8
- C.SAVINGS
9
- ], A = [
10
- C.CHECKING_LINE_OF_CREDIT,
11
- C.CREDIT_CARD,
12
- C.LINE_OF_CREDIT,
13
- C.LOAN,
14
- C.MORTGAGE
15
- ], N = [
16
- C.ANY,
17
- C.CASH,
18
- C.CHECKING,
19
- C.CHECKING_LINE_OF_CREDIT,
20
- C.CREDIT_CARD,
21
- C.DIGITAL_WALLET,
22
- C.LINE_OF_CREDIT,
23
- C.PREPAID,
24
- C.SAVINGS
25
- ];
26
- export {
27
- I,
28
- A as P,
29
- N as S
30
- };
@@ -1,95 +0,0 @@
1
- import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import { observer as _ } from "mobx-react-lite";
3
- import s from "@mui/material/Stack";
4
- import { H3 as x, InstitutionLogo as D, Text as d, H2 as N } from "@mxenabled/mxui";
5
- import { f as P } from "./NumberFormatting--XMeeBfr.mjs";
6
- import p from "react";
7
- import { G, d as f, l as O, f as R, a as v, u as w } from "./hooks-BaO_gOI6.mjs";
8
- import { g as L } from "./AccountFields-mwJ8NXsX.mjs";
9
- import { A as i } from "./Account-BaJmiJAG.mjs";
10
- import H from "@mui/material/Card";
11
- import M from "@mui/material/CardContent";
12
- import U from "@mui/material/CardHeader";
13
- import { L as Y } from "./Loader-CxeBwuPG.mjs";
14
- import { I as j, P as z, S as k } from "./Account-BxHMlV9R.mjs";
15
- import { u as B } from "./useAccountDisplayName-CFa_MrS6.mjs";
16
- const C = () => {
17
- if (!p.useContext(G))
18
- throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
19
- return f().uiStore;
20
- }, F = (o, e) => {
21
- const c = [i.LOAN, i.MORTGAGE, i.PROPERTY].includes(
22
- o
23
- ), n = [
24
- i.CREDIT_CARD,
25
- i.LINE_OF_CREDIT,
26
- i.PREPAID,
27
- i.CHECKING_LINE_OF_CREDIT
28
- ].includes(o);
29
- return c ? { title: e.label_payments, description: e.chart_title_payments } : n ? { title: e.label_payments_spend, description: e.chart_title_payments_spend } : { title: e.label_income_spend, description: e.chart_title_income_spend };
30
- }, V = ({
31
- sx: o,
32
- ChartComponent: e,
33
- header: c
34
- }) => {
35
- const { loadMonthlyCategoryTotals: n } = O(), { isInitialized: l } = R(), { selectedAccount: a } = C(), [u, m] = p.useState(!1);
36
- return p.useEffect(() => {
37
- l && n([a]).finally(() => {
38
- m(!0);
39
- });
40
- }, [l, a]), !l || !u ? /* @__PURE__ */ t(Y, {}) : /* @__PURE__ */ r(
41
- H,
42
- {
43
- sx: {
44
- "& .MuiCardContent-root:last-child": {
45
- pb: 0
46
- },
47
- ...o
48
- },
49
- children: [
50
- /* @__PURE__ */ t(U, { sx: { pb: 0 }, title: /* @__PURE__ */ t(x, { sx: { pb: 4 }, children: c }) }),
51
- /* @__PURE__ */ t(M, { sx: { p: 0 }, children: e ? /* @__PURE__ */ t(e, {}) : null })
52
- ]
53
- }
54
- );
55
- }, W = _(V), $ = ({
56
- customDetailsChart: o,
57
- ChartComponent: e
58
- }) => {
59
- const { institutions: c } = f(), { selectedAccount: n } = C(), { config: l } = v(), { accounts: a } = w(), { firstSubtitle: u, firstValue: m, hasAvailableBalance: b, secondSubtitle: h, secondValue: A } = L(n, a, l.display_available_balance_in_accounts), y = c.find(
60
- (T) => T.guid === n?.institution_guid
61
- ), g = [
62
- ...j,
63
- ...z,
64
- ...k
65
- ].includes(n.account_type), E = B(n), { title: S, description: I } = F(n.account_type, a);
66
- return /* @__PURE__ */ r(s, { bgcolor: "background.default", p: 24, children: [
67
- /* @__PURE__ */ r(s, { gap: 12, children: [
68
- /* @__PURE__ */ t(
69
- D,
70
- {
71
- alt: a.institution_logo_alt,
72
- institutionGuid: n.institution_guid || "",
73
- size: 64
74
- }
75
- ),
76
- /* @__PURE__ */ t(d, { variant: "body2", children: y?.name })
77
- ] }),
78
- /* @__PURE__ */ r(s, { gap: 8, mb: 24, mt: 4, children: [
79
- /* @__PURE__ */ t(N, { children: E }),
80
- /* @__PURE__ */ r(s, { direction: "row", justifyContent: "space-between", children: [
81
- /* @__PURE__ */ t(d, { bold: b, variant: "body1", children: u }),
82
- /* @__PURE__ */ t(d, { bold: !0, variant: "body1", children: P(m, "0,0.00") })
83
- ] }),
84
- /* @__PURE__ */ r(s, { direction: "row", justifyContent: "space-between", children: [
85
- /* @__PURE__ */ t(d, { variant: "body2", children: h }),
86
- /* @__PURE__ */ t(d, { variant: "body2", children: A })
87
- ] })
88
- ] }),
89
- g && /* @__PURE__ */ t(s, { "aria-label": I, role: "img", children: o || /* @__PURE__ */ t(W, { ChartComponent: e, header: S }) })
90
- ] });
91
- }, lt = _($);
92
- export {
93
- lt as A,
94
- C as u
95
- };
@@ -1,11 +0,0 @@
1
- function r(e, t) {
2
- if (t?.allowNickname === !0) {
3
- const m = e.nickname?.trim();
4
- if (m) return m;
5
- }
6
- const n = e.name?.trim();
7
- return n || e.feed_name?.trim() || "";
8
- }
9
- export {
10
- r as g
11
- };
@@ -1,141 +0,0 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { Text as h, Icon as b } from "@mxenabled/mxui";
3
- import { A as d, a as F, P as T, b as A } from "./Account-BaJmiJAG.mjs";
4
- import { i as D, u as g, a as O, b as C, c as N } from "./AccountUtils-T5_Odvos.mjs";
5
- import { F as m } from "./Accounts-CseLC3lL.mjs";
6
- import { f } from "./DateUtil-Bhq59ZVg.mjs";
7
- import { f as s, i as o, a as S, b as I } from "./NumberFormatting--XMeeBfr.mjs";
8
- import { b as i } from "./Localization-DnoVyBNK.mjs";
9
- import { f as c, D as y } from "./DateFormats-HudZ3Bjs.mjs";
10
- const Y = (l, e) => {
11
- const n = [
12
- {
13
- event: "account_details_click_account_name",
14
- label: e.account_name,
15
- name: "user_name",
16
- placeholder: i(e.enter_value, e.account_name),
17
- type: m.Input,
18
- validation: (a) => a ? "" : i(e.field_is_required, e.account_name),
19
- valueFormatter: (a) => a
20
- }
21
- ];
22
- if (D(l)) {
23
- n.unshift({
24
- label: e.account_balance,
25
- name: "balance",
26
- placeholder: i(e.enter_value, e.account_balance),
27
- type: m.Currency,
28
- valueFormatter: (t) => s(t, "0,0.00")
29
- });
30
- const a = Object.keys(d).filter((t) => Number(t)).map((t) => ({
31
- label: e.account_types[t],
32
- value: Number(t),
33
- icon: /* @__PURE__ */ p(b, { name: F[t] })
34
- }));
35
- n.push({
36
- label: e.account_type,
37
- name: "account_type",
38
- options: a,
39
- placeholder: i(e.select_value, e.account_type),
40
- type: m.Select,
41
- valueFormatter: (t) => a.find((r) => r.value === t)?.label
42
- });
43
- }
44
- if (l.account_type === d.PROPERTY) {
45
- const a = Object.keys(T).filter((t) => Number(t)).map((t) => ({
46
- label: e.property_types[t],
47
- value: Number(t),
48
- icon: /* @__PURE__ */ p(b, { name: A[t] })
49
- }));
50
- n.push({
51
- label: e.property_type,
52
- name: "property_type",
53
- options: a,
54
- placeholder: i(e.select_value, e.property_type),
55
- type: m.Select,
56
- valueFormatter: (t) => a.find((r) => r.value === t)?.label
57
- });
58
- }
59
- if (g(l)) {
60
- let a = e.interest_rate, t = "interest_rate";
61
- l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), n.push({
62
- event: "account_details_click_interest_rate",
63
- label: a,
64
- name: t,
65
- placeholder: i(e.enter_value, a),
66
- type: m.Input,
67
- validation: (r) => o(r) ? "" : e.error_amount_is_invalid,
68
- valueFormatter: (r) => o(r) ? S(r / 100) : r
69
- });
70
- }
71
- return O(l) && (n.push({
72
- label: e.minimum_payment,
73
- name: "minimum_payment",
74
- placeholder: i(e.enter_value, e.minimum_payment),
75
- type: m.Currency,
76
- valueFormatter: (a) => s(a, "0,0.00")
77
- }), l.payment_due_at ? n.push({
78
- label: e.next_payment,
79
- name: "payment_due_at",
80
- type: m.Date,
81
- valueFormatter: (a) => {
82
- const t = typeof a == "number" ? f(a) : a;
83
- return c(t, y.MED_MONTH_SHORT_DAY_FULL_YEAR);
84
- }
85
- }) : n.push({
86
- label: e.day_payment_due,
87
- name: "day_payment_is_due",
88
- placeholder: i(e.enter_value, e.day_payment_due),
89
- type: m.Date,
90
- valueFormatter: (a) => i(
91
- e.day_of_every_month,
92
- I(a <= 31 ? a : new Date(a).getDate())
93
- )
94
- })), C(l) && n.push({
95
- label: e.credit_limit,
96
- name: "credit_limit",
97
- placeholder: i(e.enter_value, e.credit_limit),
98
- type: m.Currency,
99
- valueFormatter: (a) => s(a, "0,0.00")
100
- }), N(l) && n.push({
101
- label: e.original_balance,
102
- minAmount: 1,
103
- name: "original_balance",
104
- placeholder: i(e.enter_value, e.original_balance),
105
- type: m.Currency,
106
- valueFormatter: (a) => s(a, "0,0.00")
107
- }), n;
108
- }, L = (l, e, n) => {
109
- let a = "", t = null, r = null, _ = null, u = !1;
110
- switch (l.account_type) {
111
- case 1:
112
- case 2: {
113
- l.available_balance && n ? (a = e.available_balance, t = l.available_balance, r = l.available_balance ? e.current_balance : null, _ = s(l.balance, "0,0.00"), u = !0) : (a = e.current_balance, t = l.balance);
114
- break;
115
- }
116
- default:
117
- if (a = e.current_balance, t = l.balance, l.minimum_payment && l.payment_due_at) {
118
- const v = f(l.payment_due_at);
119
- r = /* @__PURE__ */ p(h, { component: "strong", variant: "caption", children: i(
120
- e.payment_due_on,
121
- s(l.minimum_payment, "0,0.00"),
122
- c(v, y.FULL_MONTH_DAY)
123
- ) });
124
- } else l.credit_limit && (r = e.available_credit, _ = s(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
125
- }
126
- return {
127
- firstSubtitle: a,
128
- firstValue: t,
129
- secondSubtitle: r,
130
- secondValue: _,
131
- hasAvailableBalance: u
132
- };
133
- }, j = (l, e, n) => l.reduce((t, r) => {
134
- const u = L(r, e, n).firstValue || 0;
135
- return t + u;
136
- }, 0);
137
- export {
138
- Y as a,
139
- j as b,
140
- L as g
141
- };
@@ -1,94 +0,0 @@
1
- import { jsx as e, jsxs as o, Fragment as c } from "react/jsx-runtime";
2
- import { observer as _ } from "mobx-react-lite";
3
- import I from "@mui/material/Badge";
4
- import m from "@mui/material/Box";
5
- import v from "@mui/material/ListItem";
6
- import C from "@mui/material/ListItemAvatar";
7
- import S from "@mui/material/ListItemButton";
8
- import A from "@mui/material/ListItemText";
9
- import { useTheme as L } from "@mui/material/styles";
10
- import { InstitutionLogo as B, Text as r } from "@mxenabled/mxui";
11
- import { Error as j } from "@mxenabled/mx-icons";
12
- import { I as T } from "./IconBacking-DgT8DCeh.mjs";
13
- import { f as $ } from "./NumberFormatting--XMeeBfr.mjs";
14
- import { g as k } from "./AccountFields-mwJ8NXsX.mjs";
15
- import { u as E } from "./useAccountDisplayName-CFa_MrS6.mjs";
16
- import { a as M, u as w } from "./hooks-BaO_gOI6.mjs";
17
- import { C as d } from "./Account-BaJmiJAG.mjs";
18
- const z = {
19
- gridRow: 1,
20
- gridColumn: 1,
21
- zIndex: 2
22
- }, D = ({ size: t = 20 }) => /* @__PURE__ */ e(T, { size: t, children: /* @__PURE__ */ e(j, { color: "error", filled: !0, sx: { fontSize: t, ...z } }) }), G = ({
23
- account: t,
24
- onRowClick: n,
25
- listItemProps: s,
26
- shouldShowConnectionStatus: p = !1
27
- }) => {
28
- const u = L(), f = E(t), { config: g } = M(), { accounts: i } = w(), { firstSubtitle: h, firstValue: b, secondSubtitle: x, secondValue: y } = k(
29
- t,
30
- i,
31
- g.display_available_balance_in_accounts
32
- );
33
- let a;
34
- (t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (a = /* @__PURE__ */ e(D, { size: 16 }));
35
- const l = /* @__PURE__ */ o(c, { children: [
36
- /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
37
- I,
38
- {
39
- badgeContent: p ? a : void 0,
40
- sx: {
41
- "& .MuiBadge-badge": {
42
- right: -1
43
- }
44
- },
45
- children: /* @__PURE__ */ e(B, { alt: "MX", institutionGuid: t.institution_guid || "" })
46
- }
47
- ) }),
48
- /* @__PURE__ */ e(
49
- A,
50
- {
51
- disableTypography: !0,
52
- primary: /* @__PURE__ */ o(
53
- r,
54
- {
55
- bold: !0,
56
- color: t.is_hidden ? u.palette.text.secondary : void 0,
57
- variant: "body1",
58
- children: [
59
- `${f} ${t.account_number ? `*${t.account_number}` : ""}`,
60
- " ",
61
- t.is_hidden && !t.is_closed && i.is_hidden,
62
- t.is_closed && i.is_closed
63
- ]
64
- }
65
- ),
66
- secondary: /* @__PURE__ */ o(c, { children: [
67
- /* @__PURE__ */ o(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
68
- /* @__PURE__ */ e(r, { variant: "caption", children: h }),
69
- /* @__PURE__ */ e(r, { bold: !0, variant: "body2", children: $(b, "0,0.00") })
70
- ] }),
71
- /* @__PURE__ */ o(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
72
- /* @__PURE__ */ e(r, { variant: "caption", children: x }),
73
- /* @__PURE__ */ e(r, { ml: "auto", variant: "caption", children: y })
74
- ] })
75
- ] })
76
- }
77
- )
78
- ] });
79
- return /* @__PURE__ */ e(
80
- v,
81
- {
82
- ...s,
83
- sx: {
84
- backgroundColor: "background.paper",
85
- color: t.is_closed ? "grey.700" : "",
86
- ...s?.sx
87
- },
88
- children: n ? /* @__PURE__ */ e(S, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: l }) : l
89
- }
90
- );
91
- }, et = _(G);
92
- export {
93
- et as A
94
- };
@@ -1,5 +0,0 @@
1
- var a = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Error = "error", r))(a || {}), t = /* @__PURE__ */ ((r) => (r.Currency = "currency", r.Date = "date", r.Input = "input", r.Select = "select", r))(t || {});
2
- export {
3
- t as F,
4
- a as M
5
- };
@@ -1,39 +0,0 @@
1
- import { jsx as o, jsxs as e } from "react/jsx-runtime";
2
- import { observer as i } from "mobx-react-lite";
3
- import c from "@mui/material/Box";
4
- import s from "@mui/material/CircularProgress";
5
- import m from "@mui/material/Stack";
6
- import { Text as a } from "@mxenabled/mxui";
7
- import { M as t } from "./Accounts-CseLC3lL.mjs";
8
- import { u as p } from "./hooks-BaO_gOI6.mjs";
9
- const l = ({ status: r = t.Loading }) => {
10
- const { connect: n } = p();
11
- return /* @__PURE__ */ o(
12
- c,
13
- {
14
- sx: {
15
- height: "calc(100% - 62px)",
16
- position: "absolute",
17
- width: "100%"
18
- },
19
- children: /* @__PURE__ */ e(m, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
20
- r === t.Loading && /* @__PURE__ */ o(s, { color: "primary", size: 48 }),
21
- /* @__PURE__ */ o(
22
- a,
23
- {
24
- sx: {
25
- color: "grey.600",
26
- marginTop: "16px"
27
- },
28
- children: r === t.Error ? n.oops : n.loading
29
- }
30
- )
31
- ] })
32
- }
33
- );
34
- }, S = i(l), T = "connect_widget", _ = "connections_widget";
35
- export {
36
- _ as C,
37
- S as a,
38
- T as b
39
- };