@mx-cartographer/experiences 7.13.21 → 7.13.22-alpha.al0
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/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-CG9VtEpj.mjs} +2 -2
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-BDFCEhSI.mjs} +2 -2
- package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-Bn1eH2EU.mjs} +1 -1
- package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-BCSxP3M3.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-tvJUjmwZ.mjs} +1 -1
- package/dist/{Connect-eYIWqCEr.mjs → Connect-CmjOgy5v.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-Be0RkL7I.mjs} +2 -2
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-yeD_PsY1.mjs} +2 -2
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-xu9UcYZR.mjs} +1 -1
- package/dist/DateRangeSelector-DE4UR77m.mjs +275 -0
- package/dist/{ExportCsvAction-izkIdXj5.mjs → ExportCsvAction-CLUDN8jI.mjs} +3 -3
- package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-BkUeAltd.mjs} +90 -96
- package/dist/{GoalStore-DB58sKTC.mjs → GoalStore-DMhiGiF4.mjs} +1 -1
- package/dist/{Help-D-laTbKu.mjs → Help-pcoNjCaF.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DIjY-HBq.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-BQIdxB-9.mjs} +1 -1
- package/dist/{ManageIncome-B1j-AzI1.mjs → ManageIncome-DWVaWpCT.mjs} +4 -4
- package/dist/{MicroWidgetContainer-B_EnfvCq.mjs → MicroWidgetContainer-CTMkXRJM.mjs} +1 -1
- package/dist/{MiniWidgetContainer-Bhkv-hpz.mjs → MiniWidgetContainer-BKPN3c-6.mjs} +1 -1
- package/dist/{NotificationSettings-C77J42Ue.mjs → NotificationSettings-O3iUw7-O.mjs} +32 -32
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-2lCGZTRv.mjs} +3 -3
- package/dist/{RecurringSettings-Dyj3i0ZJ.mjs → RecurringSettings-DNko1CD0.mjs} +2 -2
- package/dist/{SpendingLegend-BgjazduU.mjs → SpendingLegend-CGYqNtOp.mjs} +1 -1
- package/dist/{StatusIndicator-CIKUOoN_.mjs → StatusIndicator-CnDblSmc.mjs} +2 -2
- package/dist/{Transaction-CqjlF6SO.mjs → Transaction-Bd0myZzA.mjs} +1 -1
- package/dist/{TransactionDetails-CwqokbQo.mjs → TransactionDetails-DAB5arBD.mjs} +6 -6
- package/dist/{TransactionStore-rpqhGX8m.mjs → TransactionStore-hzVucfUK.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-D24H9kDm.mjs → ViewMoreMicroCard-BWCe3UeO.mjs} +1 -1
- package/dist/WidgetContainer-BPeSl0Dj.mjs +180 -0
- package/dist/WidgetContainerV2-BjOelON7.mjs +127 -0
- package/dist/accounts/index.es.js +218 -219
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +408 -409
- package/dist/cashflow/index.es.js +227 -228
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +3 -2
- package/dist/common/components/WidgetContainerV2.d.ts +4 -0
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +167 -164
- package/dist/dashboard/index.es.js +5 -5
- package/dist/debts/index.es.js +585 -586
- package/dist/{exportTransactionsToCSV-CdTF_RqL.mjs → exportTransactionsToCSV-CamFllci.mjs} +1 -1
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/index.es.js +641 -652
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/index.es.js +498 -499
- package/dist/help/index.es.js +8 -8
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-DOWEalfb.mjs} +2 -2
- package/dist/insights/index.es.js +3 -3
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/index.es.js +448 -449
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +182 -196
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +240 -242
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +246 -248
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-DQc7zGqk.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DojdZhOg.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-DmYEMfRw.mjs} +1 -1
- package/package.json +1 -1
- package/dist/WidgetContainer-B7xDq2bM.mjs +0 -441
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import j from "@mui/material/Box";
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import I from "react";
|
|
3
|
+
import { observer as B } from "mobx-react-lite";
|
|
5
4
|
import C from "@mui/material/Button";
|
|
6
5
|
import P from "@mui/material/Divider";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { FilterAlt as
|
|
12
|
-
import
|
|
6
|
+
import j from "@mui/material/IconButton";
|
|
7
|
+
import w from "@mui/material/Popover";
|
|
8
|
+
import F from "@mui/material/Stack";
|
|
9
|
+
import O from "@mui/material/Tooltip";
|
|
10
|
+
import { FilterAlt as S } from "@mxenabled/mx-icons";
|
|
11
|
+
import A from "@mui/material/Checkbox";
|
|
13
12
|
import G from "@mui/material/List";
|
|
14
|
-
import
|
|
13
|
+
import g from "@mui/material/ListItem";
|
|
15
14
|
import _ from "@mui/material/ListItemButton";
|
|
16
|
-
import
|
|
15
|
+
import D from "@mui/material/ListItemIcon";
|
|
17
16
|
import v from "@mui/material/ListItemText";
|
|
18
|
-
import { b as z, u as M, d as L } from "./hooks-
|
|
19
|
-
import { u as
|
|
20
|
-
const
|
|
17
|
+
import { b as z, u as M, d as L } from "./hooks-DOWEalfb.mjs";
|
|
18
|
+
import { u as E } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
+
const H = B(
|
|
21
20
|
({ allowedAccountTypes: a }) => {
|
|
22
|
-
const { accountFilterMap: s, updateAccountFilterMap: u } = z(), { accounts:
|
|
23
|
-
() => Array.from(n.keys()).reduce((t,
|
|
24
|
-
if (!a || a && a.includes(
|
|
25
|
-
const
|
|
26
|
-
|
|
21
|
+
const { accountFilterMap: s, updateAccountFilterMap: u } = z(), { accounts: x, common: m } = M(), { account_filter: h } = m, { accountsByTypeMap: n } = L(), k = I.useMemo(
|
|
22
|
+
() => Array.from(n.keys()).reduce((t, r) => {
|
|
23
|
+
if (!a || a && a.includes(r)) {
|
|
24
|
+
const i = n.get(r);
|
|
25
|
+
i && t.push(...i);
|
|
27
26
|
}
|
|
28
27
|
return t;
|
|
29
28
|
}, []),
|
|
30
29
|
[n, a]
|
|
31
30
|
), p = new Map(
|
|
32
|
-
Array.from(s.entries()).filter(([t]) => k.some((
|
|
33
|
-
),
|
|
31
|
+
Array.from(s.entries()).filter(([t]) => k.some((r) => r.guid === t))
|
|
32
|
+
), c = Array.from(p.values()).every((t) => t), f = Array.from(p.values()).some((t) => t), b = () => {
|
|
34
33
|
for (const t of p.keys())
|
|
35
|
-
u(t, !
|
|
36
|
-
},
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
39
|
-
const
|
|
40
|
-
for (const
|
|
41
|
-
u(
|
|
34
|
+
u(t, !c);
|
|
35
|
+
}, y = (t) => {
|
|
36
|
+
const r = n.get(t);
|
|
37
|
+
if (!r) return;
|
|
38
|
+
const i = r.some((l) => s.get(l.guid));
|
|
39
|
+
for (const l of r)
|
|
40
|
+
u(l.guid, !i);
|
|
42
41
|
};
|
|
43
42
|
return /* @__PURE__ */ d(
|
|
44
43
|
G,
|
|
@@ -48,21 +47,21 @@ const N = I(
|
|
|
48
47
|
sx: { overflowY: "scroll", maxHeight: 350, minWidth: 280 },
|
|
49
48
|
children: [
|
|
50
49
|
/* @__PURE__ */ e(
|
|
51
|
-
|
|
50
|
+
g,
|
|
52
51
|
{
|
|
53
|
-
"aria-label":
|
|
52
|
+
"aria-label": h.select_all_accounts,
|
|
54
53
|
disableGutters: !0,
|
|
55
54
|
disablePadding: !0,
|
|
56
55
|
role: "menuitem",
|
|
57
56
|
sx: { py: 16 },
|
|
58
|
-
children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick:
|
|
57
|
+
children: /* @__PURE__ */ d(_, { disableGutters: !0, onClick: b, sx: { p: 0, px: 8 }, children: [
|
|
59
58
|
/* @__PURE__ */ e(
|
|
60
|
-
|
|
59
|
+
A,
|
|
61
60
|
{
|
|
62
|
-
"aria-checked":
|
|
63
|
-
checked:
|
|
61
|
+
"aria-checked": c,
|
|
62
|
+
checked: c,
|
|
64
63
|
disableRipple: !0,
|
|
65
|
-
indeterminate: !
|
|
64
|
+
indeterminate: !c && f,
|
|
66
65
|
inputProps: { "aria-labelledby": "label-select-all" },
|
|
67
66
|
size: "small",
|
|
68
67
|
tabIndex: -1
|
|
@@ -72,7 +71,7 @@ const N = I(
|
|
|
72
71
|
v,
|
|
73
72
|
{
|
|
74
73
|
id: "label-select-all",
|
|
75
|
-
primary:
|
|
74
|
+
primary: h.select_all_accounts,
|
|
76
75
|
primaryTypographyProps: { variant: "body1" }
|
|
77
76
|
}
|
|
78
77
|
)
|
|
@@ -80,55 +79,55 @@ const N = I(
|
|
|
80
79
|
}
|
|
81
80
|
),
|
|
82
81
|
Array.from(n.keys()).map((t) => {
|
|
83
|
-
const
|
|
82
|
+
const r = n.get(t), i = a ? !a.includes(t) : !1, l = x.account_type_accounts[t];
|
|
84
83
|
return (
|
|
85
84
|
// Account Type Header
|
|
86
85
|
/* @__PURE__ */ e(
|
|
87
|
-
|
|
86
|
+
g,
|
|
88
87
|
{
|
|
89
|
-
"aria-label":
|
|
88
|
+
"aria-label": l,
|
|
90
89
|
disableGutters: !0,
|
|
91
90
|
disablePadding: !0,
|
|
92
|
-
children: /* @__PURE__ */ d(
|
|
91
|
+
children: /* @__PURE__ */ d(F, { sx: { pb: 8, width: "100%" }, children: [
|
|
93
92
|
/* @__PURE__ */ e(P, {}),
|
|
94
93
|
/* @__PURE__ */ e(
|
|
95
94
|
G,
|
|
96
95
|
{
|
|
97
96
|
dense: !0,
|
|
98
97
|
role: "menu",
|
|
99
|
-
subheader: /* @__PURE__ */ e(
|
|
98
|
+
subheader: /* @__PURE__ */ e(g, { "aria-label": l, role: "menu", children: /* @__PURE__ */ e(
|
|
100
99
|
_,
|
|
101
100
|
{
|
|
102
101
|
disableGutters: !0,
|
|
103
|
-
disabled:
|
|
104
|
-
onClick: () =>
|
|
102
|
+
disabled: i,
|
|
103
|
+
onClick: () => y(t),
|
|
105
104
|
sx: { pl: 16, minHeight: 40, justifyContent: "left" },
|
|
106
105
|
children: /* @__PURE__ */ e(
|
|
107
106
|
v,
|
|
108
107
|
{
|
|
109
|
-
primary:
|
|
108
|
+
primary: l,
|
|
110
109
|
primaryTypographyProps: { variant: "body1", fontWeight: "bold" }
|
|
111
110
|
}
|
|
112
111
|
)
|
|
113
112
|
}
|
|
114
113
|
) }),
|
|
115
|
-
children:
|
|
114
|
+
children: r?.map((o) => (
|
|
116
115
|
// Account Checkbox
|
|
117
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ e(g, { "aria-label": o.displayName, role: "menuitem", children: /* @__PURE__ */ d(
|
|
118
117
|
_,
|
|
119
118
|
{
|
|
120
119
|
disableGutters: !0,
|
|
121
|
-
disabled:
|
|
122
|
-
onClick: () => u(
|
|
120
|
+
disabled: i,
|
|
121
|
+
onClick: () => u(o.guid, !s.get(o.guid)),
|
|
123
122
|
sx: { p: 0, minHeight: 40 },
|
|
124
123
|
children: [
|
|
125
|
-
/* @__PURE__ */ e(
|
|
126
|
-
|
|
124
|
+
/* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
|
|
125
|
+
A,
|
|
127
126
|
{
|
|
128
|
-
"aria-checked": s.get(
|
|
129
|
-
checked: s.get(
|
|
127
|
+
"aria-checked": s.get(o.guid),
|
|
128
|
+
checked: s.get(o.guid),
|
|
130
129
|
disableRipple: !0,
|
|
131
|
-
inputProps: { "aria-labelledby": `label-${
|
|
130
|
+
inputProps: { "aria-labelledby": `label-${o.guid}` },
|
|
132
131
|
size: "small",
|
|
133
132
|
tabIndex: -1
|
|
134
133
|
}
|
|
@@ -136,14 +135,14 @@ const N = I(
|
|
|
136
135
|
/* @__PURE__ */ e(
|
|
137
136
|
v,
|
|
138
137
|
{
|
|
139
|
-
id: `label-${
|
|
140
|
-
primary:
|
|
138
|
+
id: `label-${o.guid}`,
|
|
139
|
+
primary: o.displayName,
|
|
141
140
|
primaryTypographyProps: { variant: "body1" }
|
|
142
141
|
}
|
|
143
142
|
)
|
|
144
143
|
]
|
|
145
144
|
}
|
|
146
|
-
) },
|
|
145
|
+
) }, o.guid)
|
|
147
146
|
))
|
|
148
147
|
}
|
|
149
148
|
)
|
|
@@ -157,72 +156,67 @@ const N = I(
|
|
|
157
156
|
}
|
|
158
157
|
);
|
|
159
158
|
}
|
|
160
|
-
),
|
|
161
|
-
({
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
variant: g = "text"
|
|
166
|
-
}) => {
|
|
167
|
-
const { isDesktop: x } = H(), { common: c } = M(), { accountFilterMap: n, resetAccountFilterMap: k } = z(), { detailedAccounts: p, updateAccountFilter: m } = L(), [h, f] = B.useState(null), b = (W) => {
|
|
168
|
-
k(), f(W.currentTarget), s?.();
|
|
169
|
-
}, t = () => {
|
|
159
|
+
), le = B(
|
|
160
|
+
({ allowedAccountTypes: a, onAccountFilterClick: s, variant: u = "text" }) => {
|
|
161
|
+
const { isDesktop: x } = E(), { common: m } = M(), { accountFilterMap: h, resetAccountFilterMap: n } = z(), { detailedAccounts: k, updateAccountFilter: p } = L(), [c, f] = I.useState(null), b = (o) => {
|
|
162
|
+
n(), f(o.currentTarget), s?.();
|
|
163
|
+
}, y = () => {
|
|
170
164
|
f(null);
|
|
171
|
-
},
|
|
172
|
-
await
|
|
173
|
-
},
|
|
174
|
-
return /* @__PURE__ */ d(
|
|
165
|
+
}, t = async () => {
|
|
166
|
+
await p(h), f(null);
|
|
167
|
+
}, r = m.account_filter, i = !!c, l = k.length === 0;
|
|
168
|
+
return /* @__PURE__ */ d(W, { children: [
|
|
175
169
|
x ? /* @__PURE__ */ e(
|
|
176
170
|
C,
|
|
177
171
|
{
|
|
178
|
-
"aria-controls":
|
|
179
|
-
"aria-expanded":
|
|
172
|
+
"aria-controls": i ? "filter_accounts" : void 0,
|
|
173
|
+
"aria-expanded": i,
|
|
180
174
|
"aria-haspopup": !0,
|
|
181
|
-
"aria-label":
|
|
175
|
+
"aria-label": r.title,
|
|
182
176
|
disabled: l,
|
|
183
177
|
onClick: b,
|
|
184
|
-
startIcon: /* @__PURE__ */ e(
|
|
178
|
+
startIcon: /* @__PURE__ */ e(S, { size: 24 }),
|
|
185
179
|
sx: { p: 8, whiteSpace: "nowrap", minWidth: "max-content" },
|
|
186
|
-
variant:
|
|
187
|
-
children:
|
|
180
|
+
variant: u,
|
|
181
|
+
children: m.filter_button
|
|
188
182
|
}
|
|
189
|
-
) : /* @__PURE__ */ e(
|
|
190
|
-
|
|
183
|
+
) : /* @__PURE__ */ e(O, { id: "filter-accounts", placement: "bottom", title: r.title, children: /* @__PURE__ */ e(
|
|
184
|
+
j,
|
|
191
185
|
{
|
|
192
|
-
"aria-controls":
|
|
186
|
+
"aria-controls": i ? "filter_accounts" : void 0,
|
|
193
187
|
"aria-describedby": "filter-accounts",
|
|
194
|
-
"aria-expanded":
|
|
188
|
+
"aria-expanded": i,
|
|
195
189
|
"aria-haspopup": !0,
|
|
196
|
-
"aria-label":
|
|
190
|
+
"aria-label": r.title,
|
|
197
191
|
color: "primary",
|
|
198
192
|
disabled: l,
|
|
199
193
|
onClick: b,
|
|
200
|
-
sx: { p:
|
|
201
|
-
children: /* @__PURE__ */ e(
|
|
194
|
+
sx: { p: 12 },
|
|
195
|
+
children: /* @__PURE__ */ e(S, { size: 24 })
|
|
202
196
|
}
|
|
203
197
|
) }),
|
|
204
198
|
/* @__PURE__ */ e(
|
|
205
|
-
|
|
199
|
+
w,
|
|
206
200
|
{
|
|
207
|
-
anchorEl:
|
|
201
|
+
anchorEl: c,
|
|
208
202
|
anchorOrigin: { vertical: "bottom", horizontal: "left" },
|
|
209
|
-
onClose:
|
|
210
|
-
open:
|
|
203
|
+
onClose: y,
|
|
204
|
+
open: i,
|
|
211
205
|
transformOrigin: { vertical: "top", horizontal: "left" },
|
|
212
|
-
children: /* @__PURE__ */ d(
|
|
213
|
-
/* @__PURE__ */ e(
|
|
206
|
+
children: /* @__PURE__ */ d(F, { children: [
|
|
207
|
+
/* @__PURE__ */ e(H, { allowedAccountTypes: a }),
|
|
214
208
|
/* @__PURE__ */ e(P, {}),
|
|
215
|
-
/* @__PURE__ */ d(
|
|
216
|
-
/* @__PURE__ */ e(C, { fullWidth: !0, onClick:
|
|
209
|
+
/* @__PURE__ */ d(F, { direction: "row", justifyContent: "space-between", spacing: 16, sx: { p: 16 }, children: [
|
|
210
|
+
/* @__PURE__ */ e(C, { fullWidth: !0, onClick: y, variant: "text", children: m.cancel_button }),
|
|
217
211
|
/* @__PURE__ */ e(
|
|
218
212
|
C,
|
|
219
213
|
{
|
|
220
|
-
"aria-label":
|
|
214
|
+
"aria-label": r.filter_button_aria,
|
|
221
215
|
color: "primary",
|
|
222
216
|
fullWidth: !0,
|
|
223
|
-
onClick:
|
|
217
|
+
onClick: t,
|
|
224
218
|
variant: "contained",
|
|
225
|
-
children:
|
|
219
|
+
children: m.filter_button
|
|
226
220
|
}
|
|
227
221
|
)
|
|
228
222
|
] })
|
|
@@ -233,5 +227,5 @@ const N = I(
|
|
|
233
227
|
}
|
|
234
228
|
);
|
|
235
229
|
export {
|
|
236
|
-
|
|
230
|
+
le as G
|
|
237
231
|
};
|
|
@@ -7,7 +7,7 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import w from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as L, ChevronRight as y } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as g } from "@mxenabled/mxui";
|
|
10
|
-
import { C as S } from "./ConnectDrawer-
|
|
10
|
+
import { C as S } from "./ConnectDrawer-Be0RkL7I.mjs";
|
|
11
11
|
import { makeAutoObservable as b, runInAction as u } from "mobx";
|
|
12
12
|
import { F as D, A as i } from "./Fetch-B6tMJC1r.mjs";
|
|
13
13
|
import { fromUnixTime as R } from "date-fns/fromUnixTime";
|
|
@@ -12,7 +12,7 @@ import et from "@mui/material/ListItemButton";
|
|
|
12
12
|
import C from "@mui/material/Stack";
|
|
13
13
|
import { H3 as it, P as U, Icon as Y, Text as E, H2 as at, InstitutionLogo as ft } from "@mxenabled/mxui";
|
|
14
14
|
import { ExpandMore as ct, ChevronRight as St } from "@mxenabled/mx-icons";
|
|
15
|
-
import {
|
|
15
|
+
import { f as V, u as K, z as nt, d as It, b as Tt, o as Et, a as Ct } from "./hooks-DOWEalfb.mjs";
|
|
16
16
|
import { A as k } from "./Analytics-BYItVAe-.mjs";
|
|
17
17
|
import At from "@mui/material/Breadcrumbs";
|
|
18
18
|
import { useTheme as Q } from "@mui/material/styles";
|
|
@@ -13,7 +13,7 @@ import { f as L, c as O } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
|
13
13
|
import { observer as Dt } from "mobx-react-lite";
|
|
14
14
|
import z from "@mui/material/Stack";
|
|
15
15
|
import { Text as d } from "@mxenabled/mxui";
|
|
16
|
-
import { u as Tt } from "./hooks-
|
|
16
|
+
import { u as Tt } from "./hooks-DOWEalfb.mjs";
|
|
17
17
|
import Rt from "@mui/material/useMediaQuery";
|
|
18
18
|
import { Stack as M, Box as $t } from "@mui/material";
|
|
19
19
|
const B = {
|
|
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
|
|
|
8
8
|
import { ChevronRight as _ } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as m } from "@mxenabled/mxui";
|
|
10
10
|
import { D as g } from "./Dialog-Ck34yr-d.mjs";
|
|
11
|
-
import { u as j } from "./hooks-
|
|
11
|
+
import { u as j } from "./hooks-DOWEalfb.mjs";
|
|
12
12
|
const q = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
@@ -17,15 +17,15 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
20
|
+
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-CnDblSmc.mjs";
|
|
21
|
+
import { T as be } from "./TransactionDetails-DAB5arBD.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
25
25
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
26
26
|
import { DatePicker as De } from "@mui/x-date-pickers";
|
|
27
27
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
28
|
-
import { u as w, i as Y,
|
|
28
|
+
import { u as w, i as Y, f as P, b as Ae, h as ee, o as Ie } from "./hooks-DOWEalfb.mjs";
|
|
29
29
|
import { b as Re, f as te } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
30
30
|
import { D as N } from "./Drawer-Bbe4AMB1.mjs";
|
|
31
31
|
import { A as O } from "./Analytics-BYItVAe-.mjs";
|
|
@@ -36,7 +36,7 @@ import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
|
36
36
|
import { S as Ne } from "./SearchBox-CwDgvWVJ.mjs";
|
|
37
37
|
import { h as Me } from "./DateUtil-wcYTmDRD.mjs";
|
|
38
38
|
import { b as q } from "./Category-CevNQ03n.mjs";
|
|
39
|
-
import { T as ne } from "./Transaction-
|
|
39
|
+
import { T as ne } from "./Transaction-Bd0myZzA.mjs";
|
|
40
40
|
const re = ({
|
|
41
41
|
frequency: n,
|
|
42
42
|
firstDay: t,
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-CeDR9V8N.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-DOWEalfb.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import z from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as H, ChevronRight as I } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as y, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
10
|
import { u as j } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
|
-
import { W as w } from "./hooks-
|
|
11
|
+
import { W as w } from "./hooks-DOWEalfb.mjs";
|
|
12
12
|
const R = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import f from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
5
|
import E from "@mui/material/List";
|
|
@@ -15,14 +15,14 @@ import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as le, T as R, a as D, N as b } from "./Notification-CMBNDGC-.mjs";
|
|
18
|
-
import { u as k, r as T, o as A, d as J,
|
|
18
|
+
import { u as k, r as T, o as A, d as J, f as re, a as q, b as de } from "./hooks-DOWEalfb.mjs";
|
|
19
19
|
import { b as me } from "./Localization-CPkpIwIx.mjs";
|
|
20
20
|
import { b as he, f as ue } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
21
21
|
import { D as B } from "./Dialog-Ck34yr-d.mjs";
|
|
22
|
-
import { C as _e } from "./CurrencyInput-
|
|
23
|
-
import { u as
|
|
22
|
+
import { C as _e } from "./CurrencyInput-xu9UcYZR.mjs";
|
|
23
|
+
import { u as fe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as K } from "./Drawer-Bbe4AMB1.mjs";
|
|
25
|
-
import
|
|
25
|
+
import pe from "@mui/material/Collapse";
|
|
26
26
|
import ge from "@mui/material/Card";
|
|
27
27
|
import ye from "@mui/material/CardContent";
|
|
28
28
|
import W from "@mui/material/Box";
|
|
@@ -30,16 +30,16 @@ import j from "@mui/material/Button";
|
|
|
30
30
|
import U from "@mui/material/TextField";
|
|
31
31
|
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
32
32
|
import Q from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as xe } from "./useInsightsEnabled-
|
|
34
|
-
import { u as Ce } from "./useWidgetLoadTimer-
|
|
33
|
+
import { u as xe } from "./useInsightsEnabled-DojdZhOg.mjs";
|
|
34
|
+
import { u as Ce } from "./useWidgetLoadTimer-DmYEMfRw.mjs";
|
|
35
35
|
import { L as ve } from "./Loader-D3rjKx72.mjs";
|
|
36
36
|
const Te = C(() => {
|
|
37
|
-
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] =
|
|
37
|
+
const { common: n, settings: t } = k(), { sendEmailVerification: s } = T(), { user: l } = A(), i = Q(), [r, a] = f.useState(!1), o = () => {
|
|
38
38
|
a(!1);
|
|
39
39
|
}, u = () => {
|
|
40
40
|
a(!0);
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */ c(
|
|
42
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
43
43
|
/* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
44
44
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_email }),
|
|
45
45
|
/* @__PURE__ */ e(S, {})
|
|
@@ -84,7 +84,7 @@ const Te = C(() => {
|
|
|
84
84
|
] });
|
|
85
85
|
}), Pe = C(
|
|
86
86
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
87
|
-
const { common: l, settings: i } = k(), [r, a] =
|
|
87
|
+
const { common: l, settings: i } = k(), [r, a] = f.useState("");
|
|
88
88
|
return /* @__PURE__ */ e(
|
|
89
89
|
B,
|
|
90
90
|
{
|
|
@@ -108,7 +108,7 @@ const Te = C(() => {
|
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
), De = C(() => {
|
|
111
|
-
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] =
|
|
111
|
+
const { common: n, settings: t } = k(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = Q(), [a, o] = f.useState(!1), [u, d] = f.useState(!1), p = () => {
|
|
112
112
|
o(!1);
|
|
113
113
|
}, _ = () => {
|
|
114
114
|
o(!0);
|
|
@@ -121,7 +121,7 @@ const Te = C(() => {
|
|
|
121
121
|
d(!1);
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
return /* @__PURE__ */ c(
|
|
124
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
125
125
|
/* @__PURE__ */ c(j, { onClick: _, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
126
126
|
/* @__PURE__ */ e(x, { variant: "body2", children: t.verify_phone }),
|
|
127
127
|
/* @__PURE__ */ e(S, {})
|
|
@@ -131,9 +131,9 @@ const Te = C(() => {
|
|
|
131
131
|
{
|
|
132
132
|
copy: { title: "" },
|
|
133
133
|
isOpen: a,
|
|
134
|
-
onClose:
|
|
134
|
+
onClose: p,
|
|
135
135
|
onPrimaryAction: y,
|
|
136
|
-
onSecondaryAction:
|
|
136
|
+
onSecondaryAction: p,
|
|
137
137
|
primaryText: t.send_verification,
|
|
138
138
|
secondaryText: n.back,
|
|
139
139
|
sx: {
|
|
@@ -174,7 +174,7 @@ const Te = C(() => {
|
|
|
174
174
|
] });
|
|
175
175
|
}), ke = C(
|
|
176
176
|
({ onProfileUpdated: n, profile: t }) => {
|
|
177
|
-
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, u] =
|
|
177
|
+
const { common: s, recurring: l, settings: i } = k(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, u] = f.useState(!1), [d, p] = f.useState(t.threshold || 0), [_, y] = f.useState(
|
|
178
178
|
t.account?.day_payment_is_due || 0
|
|
179
179
|
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? me(
|
|
180
180
|
i.notification_debt_payment_date,
|
|
@@ -246,7 +246,7 @@ const Te = C(() => {
|
|
|
246
246
|
autoFocus: !0,
|
|
247
247
|
fullWidth: !0,
|
|
248
248
|
minAmount: 0,
|
|
249
|
-
setAmount: (w) =>
|
|
249
|
+
setAmount: (w) => p(Number(w) || 0),
|
|
250
250
|
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
251
251
|
}
|
|
252
252
|
)
|
|
@@ -256,10 +256,10 @@ const Te = C(() => {
|
|
|
256
256
|
}
|
|
257
257
|
), we = C(
|
|
258
258
|
({ onUpdateProfile: n, profile: t }) => {
|
|
259
|
-
const { settings: s } = k(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } =
|
|
259
|
+
const { settings: s } = k(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = fe(), o = t.notification_type > 2, {
|
|
260
260
|
opted_out_of_email_notifications: u,
|
|
261
261
|
opted_out_of_push_notifications: d,
|
|
262
|
-
opted_out_of_sms_notifications:
|
|
262
|
+
opted_out_of_sms_notifications: p
|
|
263
263
|
} = r, {
|
|
264
264
|
email_notifications_enabled: _,
|
|
265
265
|
push_notifications_enabled: y,
|
|
@@ -284,11 +284,11 @@ const Te = C(() => {
|
|
|
284
284
|
m && /* @__PURE__ */ e(h, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
285
285
|
D,
|
|
286
286
|
{
|
|
287
|
-
isChecked: !
|
|
288
|
-
isDisabled:
|
|
287
|
+
isChecked: !p && t.sms_channel && !!l.phone,
|
|
288
|
+
isDisabled: p || !l.phone,
|
|
289
289
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
290
290
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
291
|
-
secondaryText:
|
|
291
|
+
secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
292
292
|
useExtraPadding: !1
|
|
293
293
|
}
|
|
294
294
|
) }),
|
|
@@ -321,7 +321,7 @@ const Te = C(() => {
|
|
|
321
321
|
] });
|
|
322
322
|
}
|
|
323
323
|
), z = C(() => {
|
|
324
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] =
|
|
324
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
325
325
|
() => n.find((o) => o.guid === s),
|
|
326
326
|
[n, s]
|
|
327
327
|
), r = async (o) => {
|
|
@@ -375,7 +375,7 @@ const Te = C(() => {
|
|
|
375
375
|
opted_out_of_push_notifications: o,
|
|
376
376
|
opted_out_of_sms_notifications: u
|
|
377
377
|
}
|
|
378
|
-
} = T(), { user: d } = A(), [
|
|
378
|
+
} = T(), { user: d } = A(), [p, _] = f.useState(!1), y = async () => {
|
|
379
379
|
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && _(!1);
|
|
380
380
|
}, m = async (P) => {
|
|
381
381
|
await r(P);
|
|
@@ -389,20 +389,20 @@ const Te = C(() => {
|
|
|
389
389
|
{
|
|
390
390
|
sx: {
|
|
391
391
|
transition: "transform 0.3s ease-in-out",
|
|
392
|
-
transform:
|
|
392
|
+
transform: p ? "rotate(180deg)" : "rotate(0deg)"
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
) : void 0,
|
|
396
396
|
isChecked: n.is_enabled,
|
|
397
397
|
isDisabled: !n.is_enabled,
|
|
398
|
-
onClick: () => _(!
|
|
398
|
+
onClick: () => _(!p),
|
|
399
399
|
onToggle: () => y(),
|
|
400
400
|
primaryText: n.label,
|
|
401
401
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
402
402
|
},
|
|
403
403
|
n.guid
|
|
404
404
|
),
|
|
405
|
-
g && /* @__PURE__ */ e(
|
|
405
|
+
g && /* @__PURE__ */ e(pe, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
406
406
|
s && /* @__PURE__ */ e(
|
|
407
407
|
D,
|
|
408
408
|
{
|
|
@@ -514,12 +514,12 @@ const Te = C(() => {
|
|
|
514
514
|
const { insightsProfiles: n } = T();
|
|
515
515
|
return /* @__PURE__ */ e(h, { children: n.map((t) => /* @__PURE__ */ e(X, { profile: t }, t.guid)) });
|
|
516
516
|
}), Ae = () => {
|
|
517
|
-
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, u] =
|
|
517
|
+
const { config: n } = q(), [t, { width: s }] = be(), { common: l, settings: i } = k(), { updateUser: r } = T(), { user: a } = A(), [o, u] = f.useState(!1), [d, p] = f.useState({
|
|
518
518
|
email: a.email,
|
|
519
519
|
phone: a.phone
|
|
520
520
|
}), _ = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
|
|
521
521
|
const { name: I, value: w } = P.target, M = { ...d, [I]: w };
|
|
522
|
-
|
|
522
|
+
p(M), u(JSON.stringify({ ...a, ...M }) !== JSON.stringify(a));
|
|
523
523
|
}, g = async () => {
|
|
524
524
|
await r({ ...a, ...d }), u(!1);
|
|
525
525
|
};
|
|
@@ -601,15 +601,15 @@ const Te = C(() => {
|
|
|
601
601
|
showPersonalDetails: t = !1,
|
|
602
602
|
view: s
|
|
603
603
|
}) => {
|
|
604
|
-
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(),
|
|
604
|
+
const { config: l } = q(), { settings: i } = k(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: u, loadNotificationProfiles: d } = T(), p = xe(), [_, y] = f.useState(!1), [m, g] = f.useState(
|
|
605
605
|
void 0
|
|
606
606
|
);
|
|
607
|
-
if (n.length > 0 &&
|
|
607
|
+
if (n.length > 0 && p && n.push(b.Insights), Ce({
|
|
608
608
|
widgetName: "NotificationSettingsWidget",
|
|
609
609
|
isLoaded: _
|
|
610
|
-
}),
|
|
610
|
+
}), f.useEffect(() => {
|
|
611
611
|
a || o().finally();
|
|
612
|
-
}, []),
|
|
612
|
+
}, []), f.useEffect(() => {
|
|
613
613
|
r && d().finally(() => y(!0));
|
|
614
614
|
}, [r]), !r)
|
|
615
615
|
return /* @__PURE__ */ e(ve, {});
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h, k as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-BQIdxB-9.mjs";
|
|
6
|
+
import { u as h, k as b } from "./hooks-DOWEalfb.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-xu9UcYZR.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,8 +7,8 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, i as A,
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-DWVaWpCT.mjs";
|
|
11
|
+
import { u as _, i as A, f } from "./hooks-DOWEalfb.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-tayG19Wn.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-BYItVAe-.mjs";
|
|
14
14
|
const I = h(() => {
|