@mx-cartographer/experiences 6.26.33-alpha.mm0 → 7.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 (104) hide show
  1. package/CHANGELOG.md +2 -3
  2. package/dist/Account-DY6nxO7y.mjs +30 -0
  3. package/dist/AccountDetailsContent-DvPs81kL.mjs +677 -0
  4. package/dist/AccountDetailsHeader-W2U7ZVm_.mjs +119 -0
  5. package/dist/AccountFields-DAVcbZy5.mjs +135 -0
  6. package/dist/AccountListItem-DFlbdcmT.mjs +90 -0
  7. package/dist/AccountStore-CU7qV3vg.mjs +230 -0
  8. package/dist/Accounts-BLlrQA5m.mjs +9 -0
  9. package/dist/BeatApi-DLu87ijw.mjs +21 -0
  10. package/dist/BeatStore-By4aGoRM.mjs +81 -0
  11. package/dist/BudgetUtil-Ci1TN0J5.mjs +101 -0
  12. package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
  13. package/dist/Category-5S6uwuXz.mjs +301 -0
  14. package/dist/CategorySelectorDrawer-rHyHHYuh.mjs +397 -0
  15. package/dist/CategoryStore-B5EW6I1d.mjs +183 -0
  16. package/dist/CategoryUtil-DRyruNgi.mjs +78 -0
  17. package/dist/ConnectDrawer-D9cR5phc.mjs +508 -0
  18. package/dist/ConnectionsDrawer-BzGqljSp.mjs +52 -0
  19. package/dist/CurrencyInput-D74cemI2.mjs +83 -0
  20. package/dist/CurrencyText-YUhH2caW.mjs +20 -0
  21. package/dist/DateUtil-BcuH7ErC.mjs +48 -0
  22. package/dist/DebtsStore-S0l9kr0r.mjs +60 -0
  23. package/dist/Dialog-CWW597AF.mjs +123 -0
  24. package/dist/Donut-1UMNcG67.mjs +57 -0
  25. package/dist/Drawer-kEE73B87.mjs +113 -0
  26. package/dist/EmptyState-Dcb-o2tl.mjs +55 -0
  27. package/dist/Fetch-CkFKy79O.mjs +116 -0
  28. package/dist/FinstrongStore-mkALvztw.mjs +101 -0
  29. package/dist/GoalStore-DioeeL-s.mjs +263 -0
  30. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  31. package/dist/Help-DhcC-C05.mjs +320 -0
  32. package/dist/Help-DpYRO8oA.mjs +3181 -0
  33. package/dist/IconBacking-B9oC6uL2.mjs +39 -0
  34. package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
  35. package/dist/LineChart-CcyX38kK.mjs +499 -0
  36. package/dist/ListItemAction-BabpYivr.mjs +69 -0
  37. package/dist/Loader-Dp1P2gNw.mjs +14 -0
  38. package/dist/Localization-2MODESHW.mjs +30 -0
  39. package/dist/ManageIncome-ndMuhJMG.mjs +535 -0
  40. package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
  41. package/dist/MicroWidgetContainer-CsvHLYKX.mjs +45 -0
  42. package/dist/MiniWidgetContainer-BoOp-A05.mjs +39 -0
  43. package/dist/NetWorthStore-PD-RUe09.mjs +150 -0
  44. package/dist/Notification-AMGWM1Al.mjs +78 -0
  45. package/dist/NotificationSettings-VhHuMAFU.mjs +667 -0
  46. package/dist/NotificationStore-DHtSGySy.mjs +67 -0
  47. package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
  48. package/dist/OriginalBalanceAction-D39mx6uE.mjs +115 -0
  49. package/dist/RecurringSettings-D_HnMYZP.mjs +57 -0
  50. package/dist/RecurringTransactionsStore-BKLD3OWo.mjs +263 -0
  51. package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
  52. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  53. package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
  54. package/dist/SingleSegmentDonut-BgbLgwHi.mjs +69 -0
  55. package/dist/SpendingData-BkrxzHdr.mjs +55 -0
  56. package/dist/StatusBar-BK_uYHAB.mjs +30 -0
  57. package/dist/TabContentContainer-j01JYR_7.mjs +21 -0
  58. package/dist/Transaction-CA0FW2Ij.mjs +312 -0
  59. package/dist/TransactionApi-DbbcjI2L.mjs +86 -0
  60. package/dist/TransactionDetails-WBHFmbxL.mjs +1283 -0
  61. package/dist/TransactionStore-CeLdmVnC.mjs +669 -0
  62. package/dist/TrendsStore-BHJUapXF.mjs +487 -0
  63. package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
  64. package/dist/WidgetContainer-DWCusxYI.mjs +556 -0
  65. package/dist/accounts/index.es.js +752 -0
  66. package/dist/analytics/index.es.js +171 -0
  67. package/dist/budgets/index.es.js +1075 -0
  68. package/dist/cashflow/index.es.js +1098 -0
  69. package/dist/categories/index.es.js +9 -0
  70. package/dist/common/components/WidgetContainer.d.ts +1 -1
  71. package/dist/common/components/charts/LineChart.d.ts +0 -1
  72. package/dist/common/constants/Analytics.d.ts +10 -20
  73. package/dist/common/context/hooks.d.ts +13 -13
  74. package/dist/common/index.es.js +1451 -0
  75. package/dist/dashboard/index.es.js +181 -0
  76. package/dist/debts/index.es.js +1460 -0
  77. package/dist/exportTransactionsToCSV-CmwsKl2D.mjs +47 -0
  78. package/dist/finstrong/index.es.js +1455 -0
  79. package/dist/goals/index.es.js +1209 -0
  80. package/dist/help/components/content/section/index.d.ts +15 -15
  81. package/dist/help/index.es.js +14 -0
  82. package/dist/hooks-30y_BLwc.mjs +71 -0
  83. package/dist/index.d.ts +0 -22
  84. package/dist/insights/index.d.ts +1 -0
  85. package/dist/insights/index.es.js +4 -0
  86. package/dist/investments/index.es.js +1638 -0
  87. package/dist/merchants/index.es.js +79 -0
  88. package/dist/microinsights/components/carouselheader/CarouselHeader.d.ts +0 -1
  89. package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel.d.ts +0 -1
  90. package/dist/microinsights/index.es.js +16 -0
  91. package/dist/networth/index.es.js +576 -0
  92. package/dist/notifications/index.es.js +192 -0
  93. package/dist/recurringtransactions/index.es.js +879 -0
  94. package/dist/settings/index.es.js +879 -0
  95. package/dist/spending/index.es.js +570 -0
  96. package/dist/transactions/index.es.js +587 -0
  97. package/dist/trends/index.es.js +1086 -0
  98. package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
  99. package/dist/useDimensions-27p2evRx.mjs +36 -0
  100. package/dist/useScreenSize-B6JyS_Lj.mjs +36 -0
  101. package/package.json +155 -3
  102. package/dist/index.es.js +0 -30564
  103. package/dist/index.es.js.map +0 -1
  104. package/dist/trends/constants/TrendsWidget.d.ts +0 -3
@@ -0,0 +1,181 @@
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import r from "react";
3
+ import { observer as f } from "mobx-react-lite";
4
+ import p from "@mui/material/Unstable_Grid2";
5
+ import u from "@mui/material/Skeleton";
6
+ import s from "@mui/material/Stack";
7
+ import B from "@mui/material/styles/useTheme";
8
+ import { l as A, u as v, c as C, a as M, j as D } from "../hooks-30y_BLwc.mjs";
9
+ import G from "@mui/material/Paper";
10
+ import { Icon as S, H1 as k, P as F } from "@mxenabled/mxui";
11
+ import { useMediaQuery as W } from "@mui/system";
12
+ import I from "@mui/material/Box";
13
+ import T from "@mui/material/Button";
14
+ import j from "@mui/material/IconButton";
15
+ import $ from "@mui/material/Tooltip";
16
+ import H from "@mui/material/useMediaQuery";
17
+ import { i as R, j as Q } from "../ConnectDrawer-D9cR5phc.mjs";
18
+ import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
+ const E = f(() => {
20
+ const e = B(), {
21
+ appDataStore: { banner: c, loadBanner: i, user: d }
22
+ } = A();
23
+ return r.useEffect(() => {
24
+ i().finally();
25
+ }, [d]), c?.image_url ? /* @__PURE__ */ t(
26
+ s,
27
+ {
28
+ sx: {
29
+ alignItems: "center",
30
+ width: "100%",
31
+ mb: 24
32
+ },
33
+ children: /* @__PURE__ */ t(
34
+ "a",
35
+ {
36
+ href: c?.redirect_url,
37
+ rel: "noreferrer",
38
+ style: {
39
+ width: "100%"
40
+ },
41
+ target: "_blank",
42
+ children: /* @__PURE__ */ t(
43
+ "img",
44
+ {
45
+ alt: "",
46
+ src: c.image_url,
47
+ style: {
48
+ width: "100%",
49
+ height: "auto",
50
+ border: `1px solid ${e.palette.grey[300]}`
51
+ }
52
+ }
53
+ )
54
+ }
55
+ )
56
+ }
57
+ ) : null;
58
+ }), P = ({ handleConnectClick: e }) => {
59
+ const { common: c } = v(), i = H("(max-width: 700px)");
60
+ return /* @__PURE__ */ t(I, { my: 4, children: i ? /* @__PURE__ */ t($, { id: "add-accounts", placement: "bottom", title: c.add_accounts, children: /* @__PURE__ */ t(
61
+ j,
62
+ {
63
+ "aria-controls": "add_accounts",
64
+ "aria-describedby": "add-accounts",
65
+ "aria-haspopup": !0,
66
+ "aria-label": c.add_accounts,
67
+ color: "primary",
68
+ onClick: e,
69
+ children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
70
+ }
71
+ ) }) : /* @__PURE__ */ t(
72
+ T,
73
+ {
74
+ "aria-controls": "add_accounts",
75
+ "aria-haspopup": !0,
76
+ "aria-label": c.add_accounts,
77
+ onClick: e,
78
+ startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
79
+ sx: {
80
+ p: 12,
81
+ whiteSpace: "nowrap",
82
+ minWidth: "max-content"
83
+ },
84
+ variant: "text",
85
+ children: c.add_accounts
86
+ }
87
+ ) });
88
+ }, N = f(P), O = () => {
89
+ const [e, c] = r.useState(!1), i = W("(max-width:320px)"), { visibleAccounts: d } = C(), { selectedAccountGuids: _, setSelectedAccountGuids: g } = M(), { common: o, connect: l } = v(), { config: x } = D(), { isMobile: b } = z(), n = {
90
+ accountFilterOptionsCopy: {
91
+ accountTypeAccounts: o.account_filter.account_type_accounts,
92
+ cancelButton: o.cancel_button,
93
+ filterButton: o.filter_button,
94
+ filterButtonAria: o.account_filter.filter_button_generic_aria,
95
+ selectAllAccounts: o.account_filter.select_all_accounts,
96
+ toggleAccountTypeAccounts: o.account_filter.toggle_account_type_accounts,
97
+ unselectAllAccounts: o.account_filter.unselect_all_accounts,
98
+ zeroStateButton: o.account_filter.zero_state_button,
99
+ zeroStateDescription: o.account_filter.zero_state_description,
100
+ zeroStateTitle: o.account_filter.zero_state_title
101
+ },
102
+ title: o.filter_button
103
+ }, y = () => {
104
+ const m = (/* @__PURE__ */ new Date()).getHours();
105
+ return m > 1 && m < 12 ? o.good_morning : m >= 12 && m < 18 ? o.good_afternoon : o.good_evening;
106
+ };
107
+ return /* @__PURE__ */ a(r.Fragment, { children: [
108
+ /* @__PURE__ */ t(G, { sx: { gap: 12, mb: b ? 24 : 0, p: 24 }, children: /* @__PURE__ */ a(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
109
+ /* @__PURE__ */ a(s, { children: [
110
+ /* @__PURE__ */ t(k, { variant: i ? "H2" : "H1", children: y() }),
111
+ /* @__PURE__ */ t(F, { color: "text.secondary", children: o.heres_your_spending_overview })
112
+ ] }),
113
+ /* @__PURE__ */ a(s, { flexDirection: "row", children: [
114
+ x.show_connections_widget_in_master && /* @__PURE__ */ t(N, { handleConnectClick: () => c(!0) }),
115
+ /* @__PURE__ */ t(
116
+ R,
117
+ {
118
+ accounts: d,
119
+ copy: n,
120
+ onConnectAccountClick: () => c(!0),
121
+ onFilterClick: (w) => {
122
+ g(w);
123
+ },
124
+ selectedAccountGuids: _,
125
+ showAccountNumbers: !1,
126
+ sx: {
127
+ maxWidth: "100%"
128
+ },
129
+ variant: "text"
130
+ }
131
+ )
132
+ ] })
133
+ ] }) }),
134
+ e && /* @__PURE__ */ t(
135
+ Q,
136
+ {
137
+ onClose: () => c(!1),
138
+ showConnectWidget: e,
139
+ title: l.mini_title
140
+ }
141
+ )
142
+ ] });
143
+ }, U = f(O);
144
+ var h = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(h || {});
145
+ const q = ({ widgets: e, isLoading: c }) => {
146
+ const { isDesktop: i, isMobile: d } = z(), { copyStore: _ } = A(), { setSelectedAccounts: g } = M(), { visibleAccounts: o } = C();
147
+ r.useEffect(() => {
148
+ g(o);
149
+ }, [o]);
150
+ const l = r.useMemo(
151
+ () => e.filter((n) => n.location !== h.Disabled).sort((n, y) => n.index - y.index),
152
+ [e]
153
+ ), x = r.useMemo(
154
+ () => l.filter((n) => n.location === h.Main),
155
+ [l]
156
+ ), b = r.useMemo(
157
+ () => l.filter((n) => n.location === h.RightSide),
158
+ [l]
159
+ );
160
+ return /* @__PURE__ */ a(p, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
161
+ /* @__PURE__ */ t(p, { xs: 12, children: _.isInitialized && /* @__PURE__ */ t(U, {}) }),
162
+ /* @__PURE__ */ a(p, { lg: 8, xs: 12, children: [
163
+ /* @__PURE__ */ t(E, {}),
164
+ c && /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
165
+ /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
166
+ /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" }),
167
+ /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
168
+ ] }),
169
+ !c && /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: i ? x.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) : l.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) })
170
+ ] }),
171
+ i && /* @__PURE__ */ t(p, { lg: 4, children: c ? /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
172
+ /* @__PURE__ */ t(u, { height: 200, variant: "rounded", width: "100%" }),
173
+ /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
174
+ /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
175
+ ] }) : /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: b.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) }) })
176
+ ] });
177
+ }, dt = f(q);
178
+ export {
179
+ dt as Dashboard,
180
+ h as DashboardLocation
181
+ };