@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.
- package/CHANGELOG.md +2 -3
- 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/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +0 -1
- package/dist/common/constants/Analytics.d.ts +10 -20
- 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/components/carouselheader/CarouselHeader.d.ts +0 -1
- package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel.d.ts +0 -1
- 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 -30564
- package/dist/index.es.js.map +0 -1
- package/dist/trends/constants/TrendsWidget.d.ts +0 -3
@@ -0,0 +1,192 @@
|
|
1
|
+
import { A as f, B as C } from "../Notification-AMGWM1Al.mjs";
|
2
|
+
import { A as _ } from "../Fetch-CkFKy79O.mjs";
|
3
|
+
import { s as L } from "../NotificationStore-DHtSGySy.mjs";
|
4
|
+
import { N as Nt, f as St } from "../NotificationStore-DHtSGySy.mjs";
|
5
|
+
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
6
|
+
import k, { useEffect as A } from "react";
|
7
|
+
import { observer as p } from "mobx-react-lite";
|
8
|
+
import y from "@mui/material/Box";
|
9
|
+
import D from "@mui/material/Divider";
|
10
|
+
import B from "@mui/material/List";
|
11
|
+
import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
|
12
|
+
import { h as I } from "../DateUtil-BcuH7ErC.mjs";
|
13
|
+
import { useTheme as O, Card as G } from "@mui/material";
|
14
|
+
import { c as j, e as E, u as g, m as N, a as S, j as z } from "../hooks-30y_BLwc.mjs";
|
15
|
+
import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
|
16
|
+
import P from "@mui/material/Button";
|
17
|
+
import W from "@mui/material/Stack";
|
18
|
+
import { L as w } from "../Loader-Dp1P2gNw.mjs";
|
19
|
+
import $ from "@mui/material/IconButton";
|
20
|
+
import { N as H } from "../NotificationSettings-VhHuMAFU.mjs";
|
21
|
+
import { D as b } from "../Drawer-kEE73B87.mjs";
|
22
|
+
const yt = (e) => {
|
23
|
+
switch (e) {
|
24
|
+
case C.BudgetExceeded:
|
25
|
+
case C.BudgetOffTarget:
|
26
|
+
return _.BUDGETS;
|
27
|
+
case f.DebtPaymentReminder:
|
28
|
+
case f.AccountBalanceLow:
|
29
|
+
case f.AccountDepositLarge:
|
30
|
+
return _.ACCOUNTS;
|
31
|
+
case f.TransactionExpenseLarge:
|
32
|
+
case f.TransactionFeeCharge:
|
33
|
+
case f.InternationalTransaction:
|
34
|
+
return _.TRANSACTIONS;
|
35
|
+
default:
|
36
|
+
return null;
|
37
|
+
}
|
38
|
+
}, M = ({ date: e }) => /* @__PURE__ */ t(y, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), V = ({ notification: e }) => {
|
39
|
+
const { accounts: o } = j(), { budgets: a } = E(), { accounts: s } = g(), i = o.find((l) => l.guid === e.entity_guid), r = a.find((l) => l.guid === e.entity_guid), u = e.entity_guid.includes("GOL"), c = {
|
40
|
+
badge: {
|
41
|
+
display: "flex",
|
42
|
+
alignItems: "center",
|
43
|
+
justifyContent: "center",
|
44
|
+
borderRadius: 4,
|
45
|
+
marginRight: 12
|
46
|
+
}
|
47
|
+
};
|
48
|
+
return i || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
49
|
+
T,
|
50
|
+
{
|
51
|
+
alt: i?.institutionName || s.institution_logo_alt,
|
52
|
+
institutionGuid: i?.institution_guid ?? "",
|
53
|
+
size: 33
|
54
|
+
}
|
55
|
+
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(R, { categoryGuid: r?.category_guid, size: 36 }) });
|
56
|
+
}, X = p(V), Y = ({ notification: e, onClick: o }) => {
|
57
|
+
const { updateNotification: a } = N(), s = O(), i = {
|
58
|
+
card: {
|
59
|
+
alignItems: "center",
|
60
|
+
cursor: "pointer",
|
61
|
+
display: "flex",
|
62
|
+
marginBottom: 12,
|
63
|
+
paddingX: 24,
|
64
|
+
paddingY: 12,
|
65
|
+
"&:focus": {
|
66
|
+
backgroundColor: s.palette.background.default
|
67
|
+
},
|
68
|
+
"&:hover": {
|
69
|
+
backgroundColor: s.palette.background.default
|
70
|
+
}
|
71
|
+
},
|
72
|
+
dot: {
|
73
|
+
backgroundColor: s.palette.primary.main,
|
74
|
+
borderRadius: "100%",
|
75
|
+
flex: "0 0 auto",
|
76
|
+
marginLeft: -8,
|
77
|
+
marginRight: 8,
|
78
|
+
height: 8,
|
79
|
+
width: 8
|
80
|
+
}
|
81
|
+
};
|
82
|
+
return /* @__PURE__ */ d(G, { onClick: () => {
|
83
|
+
o(e), a({ ...e, has_been_viewed: !0 }).finally();
|
84
|
+
}, sx: i.card, children: [
|
85
|
+
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: i.dot }),
|
86
|
+
/* @__PURE__ */ t(X, { notification: e }),
|
87
|
+
/* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
|
88
|
+
] });
|
89
|
+
}, q = p(
|
90
|
+
({ onManageNotifications: e }) => {
|
91
|
+
const { notifications: o } = g();
|
92
|
+
return /* @__PURE__ */ d(W, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
93
|
+
/* @__PURE__ */ t(U, { name: "notifications", size: 32 }),
|
94
|
+
/* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children: o.notification_empty_state.no_new_notifications }),
|
95
|
+
/* @__PURE__ */ t(
|
96
|
+
m,
|
97
|
+
{
|
98
|
+
sx: {
|
99
|
+
maxWidth: 327,
|
100
|
+
pb: 24,
|
101
|
+
pt: 12,
|
102
|
+
textAlign: "center",
|
103
|
+
whiteSpace: "normal"
|
104
|
+
},
|
105
|
+
variant: "subtitle1",
|
106
|
+
children: o.notification_empty_state.notification_description
|
107
|
+
}
|
108
|
+
),
|
109
|
+
/* @__PURE__ */ t(P, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
|
110
|
+
] });
|
111
|
+
}
|
112
|
+
), J = ({ onClick: e, onManageNotifications: o }) => {
|
113
|
+
const { isLoading: a, loadNotifications: s, recentNotifications: i, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
|
114
|
+
e?.(n);
|
115
|
+
};
|
116
|
+
return A(() => (s().finally(), () => {
|
117
|
+
r().finally();
|
118
|
+
}), []), /* @__PURE__ */ d(x, { children: [
|
119
|
+
(!c || a) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
|
120
|
+
c && !a && i.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
|
121
|
+
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !a && i.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
|
122
|
+
const v = L(h, i);
|
123
|
+
return /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
124
|
+
v && /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
125
|
+
/* @__PURE__ */ t(M, { date: n.delivered_at }),
|
126
|
+
/* @__PURE__ */ t(D, {})
|
127
|
+
] }),
|
128
|
+
/* @__PURE__ */ t(Y, { notification: n, onClick: l })
|
129
|
+
] }, n.guid);
|
130
|
+
}) })
|
131
|
+
] });
|
132
|
+
}, K = p(J), Ct = p(
|
133
|
+
({ notificationTypes: e, isOpen: o, onClose: a, onNotificationClick: s }) => {
|
134
|
+
const { config: i } = z(), { notifications: r, settings: u } = g(), { isCopyLoaded: c } = S(), [l, n] = k.useState(!1);
|
135
|
+
return c ? /* @__PURE__ */ d(x, { children: [
|
136
|
+
/* @__PURE__ */ d(
|
137
|
+
b,
|
138
|
+
{
|
139
|
+
ariaLabelClose: r.close_notifications,
|
140
|
+
isOpen: o,
|
141
|
+
onClose: a,
|
142
|
+
title: r.notifications_title,
|
143
|
+
children: [
|
144
|
+
/* @__PURE__ */ t(
|
145
|
+
$,
|
146
|
+
{
|
147
|
+
"aria-label": u.open_notification_settings_btn_aria,
|
148
|
+
onClick: () => n(!0),
|
149
|
+
sx: {
|
150
|
+
position: "absolute",
|
151
|
+
right: 8,
|
152
|
+
top: 8
|
153
|
+
},
|
154
|
+
children: /* @__PURE__ */ t(F, { size: 24 })
|
155
|
+
}
|
156
|
+
),
|
157
|
+
/* @__PURE__ */ t(
|
158
|
+
K,
|
159
|
+
{
|
160
|
+
onClick: s,
|
161
|
+
onManageNotifications: () => n(!0)
|
162
|
+
}
|
163
|
+
)
|
164
|
+
]
|
165
|
+
}
|
166
|
+
),
|
167
|
+
/* @__PURE__ */ t(
|
168
|
+
b,
|
169
|
+
{
|
170
|
+
ariaLabelClose: r.close_notification_settings,
|
171
|
+
isOpen: l,
|
172
|
+
onClose: () => n(!1),
|
173
|
+
title: u.notification_settings_title,
|
174
|
+
children: /* @__PURE__ */ t(
|
175
|
+
H,
|
176
|
+
{
|
177
|
+
notificationTypes: e,
|
178
|
+
showPersonalDetails: !i.display_user_profile_in_settings
|
179
|
+
}
|
180
|
+
)
|
181
|
+
}
|
182
|
+
)
|
183
|
+
] }) : /* @__PURE__ */ t(w, {});
|
184
|
+
}
|
185
|
+
);
|
186
|
+
export {
|
187
|
+
Ct as NotificationDrawer,
|
188
|
+
K as NotificationList,
|
189
|
+
Nt as NotificationStore,
|
190
|
+
St as filterRecentNotifications,
|
191
|
+
yt as getNotificationDetailRoute
|
192
|
+
};
|