@mx-cartographer/experiences 6.26.32 → 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.
- package/CHANGELOG.md +4 -0
- package/dist/Account-DY6nxO7y.mjs +30 -0
- package/dist/AccountDetailsContent-DvPs81kL.mjs +677 -0
- package/dist/AccountDetailsHeader-W2U7ZVm_.mjs +119 -0
- package/dist/AccountFields-DAVcbZy5.mjs +135 -0
- package/dist/AccountListItem-DFlbdcmT.mjs +90 -0
- package/dist/AccountStore-CU7qV3vg.mjs +230 -0
- package/dist/Accounts-BLlrQA5m.mjs +9 -0
- package/dist/BeatApi-DLu87ijw.mjs +21 -0
- package/dist/BeatStore-By4aGoRM.mjs +81 -0
- package/dist/BudgetUtil-Ci1TN0J5.mjs +101 -0
- package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
- package/dist/Category-5S6uwuXz.mjs +301 -0
- package/dist/CategorySelectorDrawer-rHyHHYuh.mjs +397 -0
- package/dist/CategoryStore-B5EW6I1d.mjs +183 -0
- package/dist/CategoryUtil-DRyruNgi.mjs +78 -0
- package/dist/ConnectDrawer-D9cR5phc.mjs +508 -0
- package/dist/ConnectionsDrawer-BzGqljSp.mjs +52 -0
- package/dist/CurrencyInput-D74cemI2.mjs +83 -0
- package/dist/CurrencyText-YUhH2caW.mjs +20 -0
- package/dist/DateUtil-BcuH7ErC.mjs +48 -0
- package/dist/DebtsStore-S0l9kr0r.mjs +60 -0
- package/dist/Dialog-CWW597AF.mjs +123 -0
- package/dist/Donut-1UMNcG67.mjs +57 -0
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/EmptyState-Dcb-o2tl.mjs +55 -0
- package/dist/Fetch-CkFKy79O.mjs +116 -0
- package/dist/FinstrongStore-mkALvztw.mjs +101 -0
- package/dist/GoalStore-DioeeL-s.mjs +263 -0
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/Help-DhcC-C05.mjs +320 -0
- package/dist/Help-DpYRO8oA.mjs +3181 -0
- package/dist/IconBacking-B9oC6uL2.mjs +39 -0
- package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
- package/dist/LineChart-CcyX38kK.mjs +499 -0
- package/dist/ListItemAction-BabpYivr.mjs +69 -0
- package/dist/Loader-Dp1P2gNw.mjs +14 -0
- package/dist/Localization-2MODESHW.mjs +30 -0
- package/dist/ManageIncome-ndMuhJMG.mjs +535 -0
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/MicroWidgetContainer-CsvHLYKX.mjs +45 -0
- package/dist/MiniWidgetContainer-BoOp-A05.mjs +39 -0
- package/dist/NetWorthStore-PD-RUe09.mjs +150 -0
- package/dist/Notification-AMGWM1Al.mjs +78 -0
- package/dist/NotificationSettings-VhHuMAFU.mjs +667 -0
- package/dist/NotificationStore-DHtSGySy.mjs +67 -0
- package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
- package/dist/OriginalBalanceAction-D39mx6uE.mjs +115 -0
- package/dist/RecurringSettings-D_HnMYZP.mjs +57 -0
- package/dist/RecurringTransactionsStore-BKLD3OWo.mjs +263 -0
- package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
- package/dist/SingleSegmentDonut-BgbLgwHi.mjs +69 -0
- package/dist/SpendingData-BkrxzHdr.mjs +55 -0
- package/dist/StatusBar-BK_uYHAB.mjs +30 -0
- package/dist/TabContentContainer-j01JYR_7.mjs +21 -0
- package/dist/Transaction-CA0FW2Ij.mjs +312 -0
- package/dist/TransactionApi-DbbcjI2L.mjs +86 -0
- package/dist/TransactionDetails-WBHFmbxL.mjs +1283 -0
- package/dist/TransactionStore-CeLdmVnC.mjs +669 -0
- package/dist/TrendsStore-BHJUapXF.mjs +487 -0
- package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
- package/dist/WidgetContainer-DWCusxYI.mjs +556 -0
- package/dist/accounts/index.es.js +752 -0
- package/dist/analytics/index.es.js +171 -0
- package/dist/budgets/index.es.js +1075 -0
- package/dist/cashflow/index.es.js +1098 -0
- package/dist/categories/index.es.js +9 -0
- package/dist/common/context/hooks.d.ts +13 -13
- package/dist/common/index.es.js +1451 -0
- package/dist/dashboard/index.es.js +181 -0
- package/dist/debts/index.es.js +1460 -0
- package/dist/exportTransactionsToCSV-CmwsKl2D.mjs +47 -0
- package/dist/finstrong/index.es.js +1455 -0
- package/dist/goals/index.es.js +1209 -0
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/index.es.js +14 -0
- package/dist/hooks-30y_BLwc.mjs +71 -0
- package/dist/index.d.ts +0 -22
- package/dist/insights/index.d.ts +1 -0
- package/dist/insights/index.es.js +4 -0
- package/dist/investments/index.es.js +1638 -0
- package/dist/merchants/index.es.js +79 -0
- package/dist/microinsights/index.es.js +16 -0
- package/dist/networth/index.es.js +576 -0
- package/dist/notifications/index.es.js +192 -0
- package/dist/recurringtransactions/index.es.js +879 -0
- package/dist/settings/index.es.js +879 -0
- package/dist/spending/index.es.js +570 -0
- package/dist/transactions/index.es.js +587 -0
- package/dist/trends/index.es.js +1086 -0
- package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
- package/dist/useDimensions-27p2evRx.mjs +36 -0
- package/dist/useScreenSize-B6JyS_Lj.mjs +36 -0
- package/package.json +155 -3
- package/dist/index.es.js +0 -30508
- package/dist/index.es.js.map +0 -1
@@ -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
|
+
};
|