@mx-cartographer/experiences 6.26.18-alpha.mega4 → 6.26.18-alpha.sms1

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 (97) hide show
  1. package/dist/common/context/hooks.d.ts +13 -13
  2. package/dist/help/components/content/section/index.d.ts +15 -15
  3. package/dist/index.d.ts +22 -0
  4. package/dist/index.es.js +30335 -0
  5. package/dist/index.es.js.map +1 -0
  6. package/package.json +3 -155
  7. package/dist/Account-DM32_5k9.mjs +0 -30
  8. package/dist/AccountDetailsContent-B_qRSB8l.mjs +0 -677
  9. package/dist/AccountDetailsHeader-CAm6ADMq.mjs +0 -119
  10. package/dist/AccountFields-Bb4pds0q.mjs +0 -135
  11. package/dist/AccountListItem-G7iAesaO.mjs +0 -90
  12. package/dist/AccountStore-RSanus_m.mjs +0 -230
  13. package/dist/Accounts-BfAQRG8R.mjs +0 -9
  14. package/dist/BeatApi-DLu87ijw.mjs +0 -21
  15. package/dist/BeatStore-By4aGoRM.mjs +0 -81
  16. package/dist/BudgetUtil-DcqclhiQ.mjs +0 -101
  17. package/dist/CashflowStore-D9Dpuz7X.mjs +0 -91
  18. package/dist/Category-5S6uwuXz.mjs +0 -301
  19. package/dist/CategorySelectorDrawer-DgrePTRg.mjs +0 -397
  20. package/dist/CategoryStore-B5EW6I1d.mjs +0 -183
  21. package/dist/CategoryUtil-DRyruNgi.mjs +0 -78
  22. package/dist/ConnectDrawer-DPnfeIfn.mjs +0 -508
  23. package/dist/ConnectionsDrawer-BCzpuNsK.mjs +0 -52
  24. package/dist/CurrencyInput-DzsPiUsU.mjs +0 -83
  25. package/dist/CurrencyText-YUhH2caW.mjs +0 -20
  26. package/dist/DateUtil-BcuH7ErC.mjs +0 -48
  27. package/dist/DebtsStore-C6VcBnpG.mjs +0 -60
  28. package/dist/Dialog-CWW597AF.mjs +0 -123
  29. package/dist/Donut-1UMNcG67.mjs +0 -57
  30. package/dist/Drawer-kEE73B87.mjs +0 -113
  31. package/dist/EmptyState-Dcb-o2tl.mjs +0 -55
  32. package/dist/Fetch-CkFKy79O.mjs +0 -116
  33. package/dist/FinstrongStore-mkALvztw.mjs +0 -101
  34. package/dist/GoalStore-DyCr4wNc.mjs +0 -263
  35. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  36. package/dist/Help-DhcC-C05.mjs +0 -320
  37. package/dist/Help-toqAK5eD.mjs +0 -3173
  38. package/dist/IconBacking-B9oC6uL2.mjs +0 -39
  39. package/dist/InvestmentUtil-jOyOgzIB.mjs +0 -134
  40. package/dist/LineChart-CQWu5KoO.mjs +0 -403
  41. package/dist/ListItemAction-Df3OPMOW.mjs +0 -69
  42. package/dist/Loader-Dp1P2gNw.mjs +0 -14
  43. package/dist/Localization-2MODESHW.mjs +0 -30
  44. package/dist/ManageIncome-BVt_XQbo.mjs +0 -535
  45. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  46. package/dist/MicroWidgetContainer-DaLW43tE.mjs +0 -45
  47. package/dist/MiniWidgetContainer-BcNPxZt2.mjs +0 -39
  48. package/dist/NetWorthStore-DE8CQBMM.mjs +0 -150
  49. package/dist/Notification-AMGWM1Al.mjs +0 -78
  50. package/dist/NotificationSettings-CPZN0l8X.mjs +0 -667
  51. package/dist/NotificationStore-DHtSGySy.mjs +0 -67
  52. package/dist/NumberFormatting-CtWHhyBX.mjs +0 -40
  53. package/dist/OriginalBalanceAction-s9sUxofR.mjs +0 -115
  54. package/dist/RecurringSettings-DIEsympT.mjs +0 -57
  55. package/dist/RecurringTransactionsStore-BKLD3OWo.mjs +0 -263
  56. package/dist/RepeatingTransaction-BPWfaB3f.mjs +0 -282
  57. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  58. package/dist/SettingsStore-CE7jDVFL.mjs +0 -265
  59. package/dist/SingleSegmentDonut-BgbLgwHi.mjs +0 -69
  60. package/dist/SpendingData-ByFCw95X.mjs +0 -53
  61. package/dist/StatusBar-BK_uYHAB.mjs +0 -30
  62. package/dist/TabContentContainer-j01JYR_7.mjs +0 -21
  63. package/dist/Transaction-C-5-Iuab.mjs +0 -312
  64. package/dist/TransactionApi-DbbcjI2L.mjs +0 -86
  65. package/dist/TransactionDetails-B5qfs9Zh.mjs +0 -1283
  66. package/dist/TransactionStore-BWi6_2Ny.mjs +0 -669
  67. package/dist/TrendsStore-Borh98aN.mjs +0 -448
  68. package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +0 -1959
  69. package/dist/WidgetContainer-CmGNZW0M.mjs +0 -548
  70. package/dist/accounts/index.es.js +0 -752
  71. package/dist/analytics/index.es.js +0 -171
  72. package/dist/budgets/index.es.js +0 -1070
  73. package/dist/cashflow/index.es.js +0 -1098
  74. package/dist/categories/index.es.js +0 -9
  75. package/dist/common/index.es.js +0 -1451
  76. package/dist/dashboard/index.es.js +0 -181
  77. package/dist/debts/index.es.js +0 -1460
  78. package/dist/exportTransactionsToCSV-j4g8bdVZ.mjs +0 -47
  79. package/dist/finstrong/index.es.js +0 -1455
  80. package/dist/goals/index.es.js +0 -1209
  81. package/dist/help/index.es.js +0 -14
  82. package/dist/hooks-ClhFlg78.mjs +0 -71
  83. package/dist/insights/index.d.ts +0 -1
  84. package/dist/insights/index.es.js +0 -4
  85. package/dist/investments/index.es.js +0 -1638
  86. package/dist/merchants/index.es.js +0 -79
  87. package/dist/microinsights/index.es.js +0 -16
  88. package/dist/networth/index.es.js +0 -542
  89. package/dist/notifications/index.es.js +0 -192
  90. package/dist/recurringtransactions/index.es.js +0 -879
  91. package/dist/settings/index.es.js +0 -879
  92. package/dist/spending/index.es.js +0 -570
  93. package/dist/transactions/index.es.js +0 -587
  94. package/dist/trends/index.es.js +0 -1103
  95. package/dist/useCombineEvents-DaDBSR_1.mjs +0 -92
  96. package/dist/useDimensions-27p2evRx.mjs +0 -36
  97. package/dist/useScreenSize-B6JyS_Lj.mjs +0 -36
@@ -1,192 +0,0 @@
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-ClhFlg78.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-CPZN0l8X.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
- };