@mx-cartographer/experiences 7.0.44-alpha.mega1 → 7.0.44
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 -2
- package/dist/{Account-CYkoSG86.mjs → Account-DNtjr75t.mjs} +1 -1
- package/dist/{AccountDetailsContent-BuXTLptM.mjs → AccountDetailsContent-eODMVIVq.mjs} +16 -16
- package/dist/{AccountDetailsHeader-BWl2e21n.mjs → AccountDetailsHeader-C0qgTju7.mjs} +38 -37
- package/dist/{AccountFields-x4A7Loe5.mjs → AccountFields-DDHk35Ou.mjs} +2 -2
- package/dist/AccountListItem-BxmUd4j3.mjs +90 -0
- package/dist/{AccountStore-WQAkYgx1.mjs → AccountStore-CpjCeykS.mjs} +2 -2
- package/dist/{Accounts-CeeJag5-.mjs → Accounts-nXcS0QUR.mjs} +1 -1
- package/dist/{BudgetUtil-n3gEKIub.mjs → BudgetUtil-2EncZLBQ.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-993LpETZ.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
- package/dist/ConnectDrawer-YIWwEzuN.mjs +521 -0
- package/dist/{ConnectionsDrawer-CcBzf4l5.mjs → ConnectionsDrawer-Bf2DNDCF.mjs} +2 -2
- package/dist/{CurrencyInput-pHmLzc_c.mjs → CurrencyInput-CRtdzs3o.mjs} +1 -1
- package/dist/{DebtsStore-EZh5aBxe.mjs → DebtsStore-Dy3YG1fX.mjs} +1 -1
- package/dist/{ExportCsvAction-BKxnEFRu.mjs → ExportCsvAction-CebIvl-V.mjs} +3 -3
- package/dist/{GoalStore-B9lVADw5.mjs → GoalStore-voP4QA5C.mjs} +3 -3
- package/dist/{Help-PP2i0N9Y.mjs → Help-CzBAsKA2.mjs} +1 -1
- package/dist/{LineChart-CHTf3RcN.mjs → LineChart-B2Y7zwMu.mjs} +1 -1
- package/dist/{ListItemAction-DXyHyJn0.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
- package/dist/{ManageIncome-D1XoZlqY.mjs → ManageIncome-kMsgLN3T.mjs} +38 -38
- package/dist/{MicroWidgetContainer-Dpu8VDSP.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BhHaL8eb.mjs → MiniWidgetContainer-DSG6mwaW.mjs} +1 -1
- package/dist/{NetWorthStore-N5esR-KJ.mjs → NetWorthStore-C5RMjsMS.mjs} +2 -2
- package/dist/{NotificationSettings-CWZR6ki-.mjs → NotificationSettings-BCtanw2c.mjs} +4 -4
- package/dist/{OriginalBalanceAction-DSA8sk5b.mjs → OriginalBalanceAction-CEuIYsc_.mjs} +3 -3
- package/dist/{RecurringSettings-DA6qT8ai.mjs → RecurringSettings-CETLT79T.mjs} +8 -8
- package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +1 -1
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-Dc34Tzx8.mjs} +1 -1
- package/dist/{TransactionDetails-DO_YihKP.mjs → TransactionDetails-B-rdHE3_.mjs} +5 -5
- package/dist/{TransactionStore-B2Vq95Fg.mjs → TransactionStore-CfQBEIsK.mjs} +2 -2
- package/dist/{TrendsStore-DWVFqEC-.mjs → TrendsStore-BKBnNQba.mjs} +1 -1
- package/dist/{User-Bfnq7dd4.mjs → User-8itAR7lR.mjs} +22 -21
- package/dist/{WidgetContainer-DfyV39Ru.mjs → WidgetContainer-p7NIdiNJ.mjs} +2 -2
- package/dist/accounts/index.es.js +123 -128
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +26 -26
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +3 -0
- package/dist/common/index.es.js +92 -90
- package/dist/common/utils/AccountDisplayName.d.ts +6 -0
- package/dist/common/utils/AccountFilter.d.ts +2 -6
- package/dist/dashboard/index.es.js +14 -14
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-BgWQsGWy.mjs → exportTransactionsToCSV-CfylirZA.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +529 -524
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BAAimqdq.mjs → hooks-CE2TKk4a.mjs} +12 -12
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +10 -10
- package/dist/recurringtransactions/index.es.js +11 -11
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +11 -11
- package/dist/useAccountDisplayName-DC1Lqjag.mjs +15 -0
- package/dist/{useInsightsEnabled-BwLaOKWW.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/AccountListItem-D9mpJkCP.mjs +0 -89
- package/dist/ConnectDrawer-CNdzwKdX.mjs +0 -528
- package/dist/{ToggleListItem-r0Kx56wF.mjs → Notification-aGCHxikw.mjs} +1 -1
- package/dist/{RecurringTransactions-DTUx9VN1.mjs → RepeatingTransaction-BW4J-jeJ.mjs} +1 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { jsxs as n, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as n, jsx as e, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as M } from "mobx-react-lite";
|
|
4
4
|
import B from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import _ from "@mui/material/Divider";
|
|
6
6
|
import E from "@mui/material/List";
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import x from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { a as
|
|
15
|
-
import { g as
|
|
16
|
-
import { u as
|
|
10
|
+
import { A as G } from "../AccountDetailsContent-eODMVIVq.mjs";
|
|
11
|
+
import { u as I1 } from "../AccountDetailsContent-eODMVIVq.mjs";
|
|
12
|
+
import { u as K, A as z } from "../AccountDetailsHeader-C0qgTju7.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-BxmUd4j3.mjs";
|
|
14
|
+
import { a as P } from "../AccountFields-DDHk35Ou.mjs";
|
|
15
|
+
import { g as D1, b as U1 } from "../AccountFields-DDHk35Ou.mjs";
|
|
16
|
+
import { u as g, b as y, d as T, g as N, a as Y } from "../hooks-CE2TKk4a.mjs";
|
|
17
17
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
18
|
-
import { D as
|
|
19
|
-
import { A
|
|
20
|
-
import { C as
|
|
21
|
-
import { u as
|
|
18
|
+
import { D as q } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A, W as J } from "../WidgetContainer-p7NIdiNJ.mjs";
|
|
20
|
+
import { C as Q } from "../ConnectionsDrawer-Bf2DNDCF.mjs";
|
|
21
|
+
import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
22
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
-
import {
|
|
24
|
-
import { F as
|
|
25
|
-
import
|
|
26
|
-
import { M as
|
|
27
|
-
import
|
|
28
|
-
import { A as
|
|
29
|
-
const
|
|
30
|
-
const [c,
|
|
23
|
+
import { k as D } from "../ConnectDrawer-YIWwEzuN.mjs";
|
|
24
|
+
import { F as j1, M as G1 } from "../ConnectDrawer-YIWwEzuN.mjs";
|
|
25
|
+
import e1 from "@mui/material/ListItem";
|
|
26
|
+
import { M as U } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
27
|
+
import t1 from "@mui/material/Stack";
|
|
28
|
+
import { A as z1, a as P1 } from "../AccountStore-CpjCeykS.mjs";
|
|
29
|
+
const l1 = () => {
|
|
30
|
+
const [c, L] = d.useState(""), { accounts: C } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = T(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
32
32
|
[l]
|
|
33
|
-
),
|
|
33
|
+
), V = d.useMemo(
|
|
34
34
|
() => l.filter((t) => t.is_closed),
|
|
35
35
|
[l]
|
|
36
|
-
),
|
|
36
|
+
), S = h.reduce(
|
|
37
37
|
(t, i) => (i.available_balance || i.balance || 0) + t,
|
|
38
38
|
0
|
|
39
|
-
), b =
|
|
39
|
+
), b = P(V, C);
|
|
40
40
|
d.useEffect(() => {
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
const t =
|
|
41
|
+
if (H) {
|
|
42
|
+
u(H);
|
|
43
|
+
const t = s.find((i) => i.guid === H?.member_guid) || {};
|
|
44
44
|
t && r(t);
|
|
45
45
|
}
|
|
46
|
-
}, [
|
|
47
|
-
const
|
|
48
|
-
|
|
46
|
+
}, [H, c]);
|
|
47
|
+
const w = (t) => {
|
|
48
|
+
L(t.guid), p(A.ACCOUNTS_CLICK_ACCOUNT, {
|
|
49
49
|
account_guid: t.guid,
|
|
50
50
|
account_type: t.account_type
|
|
51
51
|
});
|
|
52
52
|
}, m = (t) => {
|
|
53
|
-
const i = t === "hidden" ?
|
|
53
|
+
const i = t === "hidden" ? h : V, k = t === "hidden" ? S : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
|
|
54
54
|
return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
55
55
|
E,
|
|
56
56
|
{
|
|
57
57
|
"aria-label": o,
|
|
58
58
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
59
|
-
|
|
59
|
+
x,
|
|
60
60
|
{
|
|
61
61
|
component: "span",
|
|
62
62
|
direction: "row",
|
|
@@ -67,19 +67,19 @@ const i1 = () => {
|
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
71
|
-
const F =
|
|
70
|
+
children: /* @__PURE__ */ e(x, { children: i.map((f, Z, $) => {
|
|
71
|
+
const F = Z === $.length - 1;
|
|
72
72
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
W,
|
|
75
75
|
{
|
|
76
|
-
account:
|
|
77
|
-
onRowClick: () =>
|
|
76
|
+
account: f,
|
|
77
|
+
onRowClick: () => w(f),
|
|
78
78
|
shouldShowConnectionStatus: !0
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
t === "hidden" ? /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
_,
|
|
83
83
|
{
|
|
84
84
|
sx: {
|
|
85
85
|
mb: F ? 24 : 4,
|
|
@@ -87,7 +87,7 @@ const i1 = () => {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
) : !F && /* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
_,
|
|
91
91
|
{
|
|
92
92
|
sx: {
|
|
93
93
|
mb: 4,
|
|
@@ -95,17 +95,17 @@ const i1 = () => {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
)
|
|
98
|
-
] },
|
|
98
|
+
] }, f.guid);
|
|
99
99
|
}) })
|
|
100
100
|
}
|
|
101
101
|
) });
|
|
102
102
|
};
|
|
103
103
|
return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
|
|
104
|
-
|
|
104
|
+
a.map((t) => {
|
|
105
105
|
const i = l.filter(
|
|
106
106
|
(o) => o.account_type === t && !o.is_closed && !o.is_hidden
|
|
107
107
|
), k = i.reduce(
|
|
108
|
-
(o,
|
|
108
|
+
(o, f) => (f.balance || 0) + o,
|
|
109
109
|
0
|
|
110
110
|
);
|
|
111
111
|
return i.length === 0 ? null : /* @__PURE__ */ e(
|
|
@@ -113,7 +113,7 @@ const i1 = () => {
|
|
|
113
113
|
{
|
|
114
114
|
"aria-label": C.account_type_accounts[i[0]?.account_type],
|
|
115
115
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
116
|
-
|
|
116
|
+
x,
|
|
117
117
|
{
|
|
118
118
|
component: "span",
|
|
119
119
|
direction: "row",
|
|
@@ -124,23 +124,23 @@ const i1 = () => {
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
) }),
|
|
127
|
-
children: /* @__PURE__ */ e(
|
|
128
|
-
const
|
|
127
|
+
children: /* @__PURE__ */ e(x, { children: i.map((o) => {
|
|
128
|
+
const f = l.indexOf(o) === l.length - 1, Z = i.indexOf(o) === i.length - 1;
|
|
129
129
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
W,
|
|
132
132
|
{
|
|
133
133
|
account: o,
|
|
134
|
-
onRowClick: () =>
|
|
134
|
+
onRowClick: () => w(o),
|
|
135
135
|
shouldShowConnectionStatus: !0
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
(!
|
|
139
|
-
|
|
138
|
+
(!f || V.length > 0 || h.length > 0) && /* @__PURE__ */ e(
|
|
139
|
+
_,
|
|
140
140
|
{
|
|
141
141
|
sx: {
|
|
142
|
-
mb:
|
|
143
|
-
ml:
|
|
142
|
+
mb: Z ? 24 : 4,
|
|
143
|
+
ml: Z ? 24 : 68
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
)
|
|
@@ -150,109 +150,104 @@ const i1 = () => {
|
|
|
150
150
|
t
|
|
151
151
|
);
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
h.length > 0 && m("hidden"),
|
|
154
|
+
V.length > 0 && m("closed"),
|
|
155
155
|
/* @__PURE__ */ n(
|
|
156
|
-
|
|
156
|
+
q,
|
|
157
157
|
{
|
|
158
158
|
ariaLabelClose: C.close_account_details_aria,
|
|
159
159
|
isOpen: !!c,
|
|
160
|
-
onClose: () =>
|
|
160
|
+
onClose: () => L(""),
|
|
161
161
|
title: C.account_details,
|
|
162
162
|
children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
/* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ e(z, {}),
|
|
164
|
+
/* @__PURE__ */ e(G, {})
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
)
|
|
168
168
|
] });
|
|
169
|
-
},
|
|
170
|
-
const [C, l] = d.useState(!1), [
|
|
169
|
+
}, i1 = M(l1), n1 = ({ onBackClick: c, sx: L = {} }) => {
|
|
170
|
+
const [C, l] = d.useState(!1), [u, r] = d.useState(!1), { config: s } = Y(), { accounts: p } = T(), { accounts: a, connect: H } = g(), { isCopyLoaded: h, isInitialized: V, setSelectedAccounts: S, selectedAccountGuids: b } = y(), { isDesktop: w } = X(), { onEvent: m } = N();
|
|
171
171
|
d.useEffect(() => {
|
|
172
|
-
|
|
173
|
-
}, [
|
|
172
|
+
S(p);
|
|
173
|
+
}, [p]);
|
|
174
174
|
const t = () => {
|
|
175
|
-
l(!0), m(
|
|
175
|
+
l(!0), m(A.ACCOUNTS_CLICK_CONNECT);
|
|
176
176
|
}, i = () => {
|
|
177
|
-
r(!0), m(
|
|
177
|
+
r(!0), m(A.ACCOUNTS_CLICK_CONNECT);
|
|
178
178
|
};
|
|
179
|
-
return
|
|
180
|
-
|
|
179
|
+
return h ? /* @__PURE__ */ e(
|
|
180
|
+
J,
|
|
181
181
|
{
|
|
182
|
-
accountOptions:
|
|
183
|
-
actions:
|
|
184
|
-
{ iconName: "add", label:
|
|
182
|
+
accountOptions: p,
|
|
183
|
+
actions: s.show_connections_widget_in_master ? [
|
|
184
|
+
{ iconName: "add", label: a.add, onClick: t },
|
|
185
185
|
{
|
|
186
186
|
iconName: "credit_card_gear",
|
|
187
|
-
label:
|
|
187
|
+
label: a.manage,
|
|
188
188
|
onClick: i
|
|
189
189
|
}
|
|
190
190
|
] : [],
|
|
191
|
-
onAccountsFilterClick: () => m(
|
|
191
|
+
onAccountsFilterClick: () => m(A.ACCOUNTS_CLICK_FILTER),
|
|
192
192
|
onBackClick: c,
|
|
193
|
-
sx:
|
|
194
|
-
title:
|
|
195
|
-
children:
|
|
196
|
-
/* @__PURE__ */ n(B, { sx: { px:
|
|
197
|
-
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children:
|
|
198
|
-
/* @__PURE__ */ e(
|
|
193
|
+
sx: L,
|
|
194
|
+
title: a.title,
|
|
195
|
+
children: V ? /* @__PURE__ */ n(j, { children: [
|
|
196
|
+
/* @__PURE__ */ n(B, { sx: { px: w ? 24 : 12 }, children: [
|
|
197
|
+
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: a.no_accounts }),
|
|
198
|
+
/* @__PURE__ */ e(i1, {})
|
|
199
199
|
] }),
|
|
200
200
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
201
|
+
D,
|
|
202
202
|
{
|
|
203
203
|
onClose: () => l(!1),
|
|
204
204
|
showConnectWidget: C,
|
|
205
|
-
title:
|
|
205
|
+
title: H.mini_title
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
208
|
/* @__PURE__ */ e(
|
|
209
|
-
|
|
209
|
+
Q,
|
|
210
210
|
{
|
|
211
211
|
onClose: () => r(!1),
|
|
212
|
-
showConnectionsWidget:
|
|
213
|
-
title:
|
|
212
|
+
showConnectionsWidget: u,
|
|
213
|
+
title: a.manage_connections
|
|
214
214
|
}
|
|
215
215
|
)
|
|
216
216
|
] }) : /* @__PURE__ */ e(R, {})
|
|
217
217
|
}
|
|
218
218
|
) : /* @__PURE__ */ e(R, {});
|
|
219
|
-
},
|
|
220
|
-
const { visibleAccounts: C } = T(), { accounts: l } =
|
|
221
|
-
d.useEffect(() => {
|
|
222
|
-
|
|
223
|
-
}, [C])
|
|
224
|
-
|
|
225
|
-
() => e1(L, s ? 5 : 3),
|
|
226
|
-
[L, s]
|
|
227
|
-
);
|
|
228
|
-
return h ? /* @__PURE__ */ e(
|
|
229
|
-
j,
|
|
219
|
+
}, B1 = M(n1), C1 = ({ onPrimaryCtaClick: c, sx: L }) => {
|
|
220
|
+
const { visibleAccounts: C } = T(), { accounts: l } = g(), { isCopyLoaded: u, isInitialized: r, selectedAccounts: s, setSelectedAccounts: p } = y();
|
|
221
|
+
return d.useEffect(() => {
|
|
222
|
+
p(C);
|
|
223
|
+
}, [C]), u ? /* @__PURE__ */ e(
|
|
224
|
+
U,
|
|
230
225
|
{
|
|
231
226
|
className: "mx-exp-accounts-miniwidget",
|
|
232
227
|
onPrimaryCtaClick: c,
|
|
233
228
|
primaryCtaLabel: l.primary_cta,
|
|
234
|
-
sx:
|
|
229
|
+
sx: L,
|
|
235
230
|
title: l.mini_title,
|
|
236
231
|
children: r ? /* @__PURE__ */ n(E, { children: [
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const
|
|
232
|
+
s.length === 0 && /* @__PURE__ */ e(e1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
233
|
+
s.map((a, H) => {
|
|
234
|
+
const h = s.indexOf(a) === s.length - 1;
|
|
240
235
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
241
236
|
/* @__PURE__ */ e(
|
|
242
237
|
W,
|
|
243
238
|
{
|
|
244
|
-
account:
|
|
239
|
+
account: a,
|
|
245
240
|
listItemProps: { sx: { px: 24 } },
|
|
246
241
|
shouldShowConnectionStatus: !0
|
|
247
242
|
}
|
|
248
243
|
),
|
|
249
|
-
!
|
|
250
|
-
] }, `account-item${
|
|
244
|
+
!h && /* @__PURE__ */ e(_, { "aria-hidden": "true", variant: "inset" })
|
|
245
|
+
] }, `account-item${H}`);
|
|
251
246
|
})
|
|
252
247
|
] }) : /* @__PURE__ */ e(R, {})
|
|
253
248
|
}
|
|
254
249
|
) : /* @__PURE__ */ e(R, {});
|
|
255
|
-
},
|
|
250
|
+
}, E1 = M(C1), o1 = () => /* @__PURE__ */ n(
|
|
256
251
|
"svg",
|
|
257
252
|
{
|
|
258
253
|
fill: "none",
|
|
@@ -691,10 +686,10 @@ const i1 = () => {
|
|
|
691
686
|
)
|
|
692
687
|
]
|
|
693
688
|
}
|
|
694
|
-
),
|
|
695
|
-
const { connect: c } =
|
|
696
|
-
return /* @__PURE__ */ n(
|
|
697
|
-
/* @__PURE__ */ e(
|
|
689
|
+
), d1 = () => {
|
|
690
|
+
const { connect: c } = g();
|
|
691
|
+
return /* @__PURE__ */ n(t1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
692
|
+
/* @__PURE__ */ e(o1, {}),
|
|
698
693
|
/* @__PURE__ */ e(
|
|
699
694
|
v,
|
|
700
695
|
{
|
|
@@ -708,48 +703,48 @@ const i1 = () => {
|
|
|
708
703
|
}
|
|
709
704
|
)
|
|
710
705
|
] });
|
|
711
|
-
},
|
|
706
|
+
}, c1 = M(d1), s1 = ({
|
|
712
707
|
onPrimaryCtaClick: c = () => {
|
|
713
708
|
},
|
|
714
|
-
sx:
|
|
709
|
+
sx: L
|
|
715
710
|
}) => {
|
|
716
|
-
const { isCopyLoaded: C } =
|
|
711
|
+
const { isCopyLoaded: C } = y(), { connect: l } = g(), [u, r] = d.useState(!1), s = () => {
|
|
717
712
|
r(!0), c();
|
|
718
713
|
};
|
|
719
714
|
return C ? /* @__PURE__ */ n(
|
|
720
|
-
|
|
715
|
+
U,
|
|
721
716
|
{
|
|
722
717
|
className: "mx-exp-connect-miniwidget",
|
|
723
|
-
onPrimaryCtaClick:
|
|
718
|
+
onPrimaryCtaClick: s,
|
|
724
719
|
primaryCtaLabel: l.primary_cta,
|
|
725
|
-
sx:
|
|
720
|
+
sx: L,
|
|
726
721
|
title: l.mini_title,
|
|
727
722
|
children: [
|
|
728
|
-
/* @__PURE__ */ e(
|
|
729
|
-
|
|
730
|
-
|
|
723
|
+
/* @__PURE__ */ e(c1, {}),
|
|
724
|
+
u && /* @__PURE__ */ e(
|
|
725
|
+
D,
|
|
731
726
|
{
|
|
732
727
|
onClose: () => r(!1),
|
|
733
|
-
showConnectWidget:
|
|
728
|
+
showConnectWidget: u,
|
|
734
729
|
title: l.mini_title
|
|
735
730
|
}
|
|
736
731
|
)
|
|
737
732
|
]
|
|
738
733
|
}
|
|
739
734
|
) : /* @__PURE__ */ e(R, {});
|
|
740
|
-
},
|
|
735
|
+
}, W1 = M(s1);
|
|
741
736
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
737
|
+
z1 as AccountApi,
|
|
738
|
+
G as AccountDetailsContent,
|
|
739
|
+
z as AccountDetailsHeader,
|
|
740
|
+
P1 as AccountStore,
|
|
741
|
+
E1 as AccountsMiniWidget,
|
|
742
|
+
B1 as AccountsWidget,
|
|
743
|
+
W1 as ConnectMiniWidget,
|
|
744
|
+
j1 as FieldType,
|
|
745
|
+
G1 as MemberConnectionStatus,
|
|
746
|
+
D1 as getAccountBalanceDetails,
|
|
747
|
+
U1 as getAccountDetailFields,
|
|
748
|
+
K as useAccountUiStore,
|
|
749
|
+
I1 as useGetMergeableAccounts
|
|
755
750
|
};
|
|
@@ -2,14 +2,14 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import d from "react";
|
|
3
3
|
import { observer as y } from "mobx-react-lite";
|
|
4
4
|
import { SurveyQuestionType as S } from "posthog-js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import A from "@mui/material/Alert";
|
|
6
|
+
import B from "@mui/material/Button";
|
|
7
7
|
import a from "@mui/material/Stack";
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
|
-
import { Text as u, TextField as
|
|
10
|
-
import { L } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as
|
|
12
|
-
import {
|
|
9
|
+
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
|
+
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
12
|
+
import { k as f, u as b, g as q, b as E } from "../hooks-CE2TKk4a.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
|
@@ -70,7 +70,7 @@ const O = () => {
|
|
|
70
70
|
}, X = y(O), z = () => {
|
|
71
71
|
const { response: s, setResponse: o } = f(), { analytics: i } = b();
|
|
72
72
|
return /* @__PURE__ */ e(
|
|
73
|
-
|
|
73
|
+
L,
|
|
74
74
|
{
|
|
75
75
|
label: i.feedback,
|
|
76
76
|
multiline: !0,
|
|
@@ -112,7 +112,7 @@ const O = () => {
|
|
|
112
112
|
s("survey sent", k), g(), C(!0);
|
|
113
113
|
};
|
|
114
114
|
return T ? !r && !x ? null : /* @__PURE__ */ l(
|
|
115
|
-
|
|
115
|
+
j,
|
|
116
116
|
{
|
|
117
117
|
closeLabel: M.close_aria,
|
|
118
118
|
onClose: $,
|
|
@@ -141,7 +141,7 @@ const O = () => {
|
|
|
141
141
|
r.type === S.Open && /* @__PURE__ */ e(H, {})
|
|
142
142
|
] }),
|
|
143
143
|
/* @__PURE__ */ e(a, { sx: { px: 24, py: 16 }, children: /* @__PURE__ */ e(
|
|
144
|
-
|
|
144
|
+
B,
|
|
145
145
|
{
|
|
146
146
|
disabled: !t && !n,
|
|
147
147
|
onClick: t ? R : F,
|
|
@@ -160,11 +160,11 @@ const O = () => {
|
|
|
160
160
|
] }),
|
|
161
161
|
x && /* @__PURE__ */ l(d.Fragment, { children: [
|
|
162
162
|
/* @__PURE__ */ e(a, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ e(u, { bold: !0, truncate: !1, children: c.thank_you }) }),
|
|
163
|
-
/* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(
|
|
163
|
+
/* @__PURE__ */ e(a, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ e(A, { severity: "success", variant: "filled", children: c.feedback_sent_successfully }) })
|
|
164
164
|
] })
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
|
-
) : /* @__PURE__ */ e(
|
|
167
|
+
) : /* @__PURE__ */ e(W, {});
|
|
168
168
|
}, ie = y(I);
|
|
169
169
|
export {
|
|
170
170
|
ie as SurveyMiniWidget
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -7,15 +7,15 @@ import W from "@mui/material/Box";
|
|
|
7
7
|
import b from "@mui/material/Stack";
|
|
8
8
|
import Q from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Icon as $, Text as p, CategoryIcon as H, H1 as Ge, H3 as Be } from "@mxenabled/mxui";
|
|
10
|
-
import { u as Pe } from "../BudgetUtil-
|
|
11
|
-
import { C as Ne } from "../ConnectionsDrawer-
|
|
10
|
+
import { u as Pe } from "../BudgetUtil-2EncZLBQ.mjs";
|
|
11
|
+
import { C as Ne } from "../ConnectionsDrawer-Bf2DNDCF.mjs";
|
|
12
12
|
import * as E from "d3";
|
|
13
13
|
import je from "@mui/material/Tooltip";
|
|
14
|
-
import {
|
|
14
|
+
import { i as w, m as j, u as D, g as X, b as ee, p as ze, j as te, h as ne, a as Ue, d as Se } from "../hooks-CE2TKk4a.mjs";
|
|
15
15
|
import { L as P } from "../Loader-DUaFpDGv.mjs";
|
|
16
16
|
import { E as ce } from "../EmptyState-C0lr9E5T.mjs";
|
|
17
17
|
import { u as me } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
18
|
-
import { A as k, W as Fe } from "../WidgetContainer-
|
|
18
|
+
import { A as k, W as Fe } from "../WidgetContainer-p7NIdiNJ.mjs";
|
|
19
19
|
import K from "@mui/material/List";
|
|
20
20
|
import { f as T } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
21
21
|
import Ae from "@mui/material/Button";
|
|
@@ -27,26 +27,26 @@ import Z from "@mui/material/ListItemText";
|
|
|
27
27
|
import { b as L } from "../Localization-2MODESHW.mjs";
|
|
28
28
|
import { D as M } from "../Drawer-kEE73B87.mjs";
|
|
29
29
|
import We from "@mui/material/ListItemSecondaryAction";
|
|
30
|
-
import { C as He } from "../CurrencyInput-
|
|
30
|
+
import { C as He } from "../CurrencyInput-CRtdzs3o.mjs";
|
|
31
31
|
import { a as N } from "../Dialog-CWW597AF.mjs";
|
|
32
|
-
import { M as Xe } from "../MiniWidgetContainer-
|
|
32
|
+
import { M as Xe } from "../MiniWidgetContainer-DSG6mwaW.mjs";
|
|
33
33
|
import { isAfter as Ke } from "date-fns/isAfter";
|
|
34
34
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
35
35
|
import Ve from "@mui/material/Alert";
|
|
36
36
|
import Ye from "@mui/material/Snackbar";
|
|
37
37
|
import be from "@mui/material/Tab";
|
|
38
38
|
import Ze from "@mui/material/Tabs";
|
|
39
|
-
import { e as qe } from "../exportTransactionsToCSV-
|
|
40
|
-
import { T as xe, a as Je } from "../TransactionDetails-
|
|
39
|
+
import { e as qe } from "../exportTransactionsToCSV-CfylirZA.mjs";
|
|
40
|
+
import { T as xe, a as Je } from "../TransactionDetails-B-rdHE3_.mjs";
|
|
41
41
|
import ge from "@mui/material/Card";
|
|
42
42
|
import pe from "@mui/material/CardContent";
|
|
43
43
|
import { S as ue } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as ve } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as Qe, b as et } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as Qe, b as et } from "../CategorySelectorDrawer-BmenK5bu.mjs";
|
|
46
46
|
import Te from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as tt } from "date-fns/subDays";
|
|
48
48
|
import nt from "@mui/material/IconButton";
|
|
49
|
-
import { M as ot } from "../ManageIncome-
|
|
49
|
+
import { M as ot } from "../ManageIncome-kMsgLN3T.mjs";
|
|
50
50
|
const ye = 5, at = 100, rt = 25, st = (t) => {
|
|
51
51
|
const o = (a) => {
|
|
52
52
|
a.active || t.alphaTarget(0.3).restart(), a.subject.fx = a.subject.x, a.subject.fy = a.subject.y;
|