@mx-cartographer/experiences 7.5.0 → 7.5.2
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 +10 -2
- package/dist/{AccountDetailsContent-CitErkuS.mjs → AccountDetailsContent-DXogTJJn.mjs} +2 -2
- package/dist/{ManageIncome-CaoQl609.mjs → ManageIncome-DPXl28ZY.mjs} +2 -2
- package/dist/MicroWidgetContainer-B2hO9rOG.mjs +45 -0
- package/dist/MiniWidgetContainer-98-hKFqm.mjs +56 -0
- package/dist/{RecurringSettings-B4ybrS0B.mjs → RecurringSettings-DU2d5dlv.mjs} +2 -2
- package/dist/{SpendingLegend-CDO060GT.mjs → SpendingLegend-Dl2rjD7E.mjs} +1 -1
- package/dist/{TransactionDetails-m5PddMQn.mjs → TransactionDetails-h9zr6QKo.mjs} +488 -511
- package/dist/{WidgetContainer-CoFDmQRE.mjs → WidgetContainer-30Dy7US7.mjs} +288 -253
- package/dist/accounts/index.es.js +4 -4
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +4 -4
- package/dist/cashflow/index.es.js +5 -5
- package/dist/common/index.es.js +3 -3
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +373 -376
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +7 -7
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +191 -188
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +0 -52
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +0 -71
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
3
|
import { observer as ce } from "mobx-react-lite";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import z from "@mui/material/Box";
|
|
5
|
+
import W from "@mui/material/Button";
|
|
6
6
|
import re from "@mui/material/Card";
|
|
7
7
|
import oe from "@mui/material/CardContent";
|
|
8
8
|
import se from "@mui/material/CardHeader";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import J from "@mui/material/Divider";
|
|
10
|
+
import $ from "@mui/material/IconButton";
|
|
11
|
+
import F from "@mui/material/Stack";
|
|
12
12
|
import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
13
|
-
import { Icon as
|
|
13
|
+
import { Icon as A, Text as Z, DateRangePicker as Q, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
14
|
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
15
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
16
|
-
import { g as Ee, b as Re, u as ge, a as Ae, W as
|
|
17
|
-
import { u as
|
|
18
|
-
import { addMonths as
|
|
19
|
-
import { addDays as
|
|
20
|
-
import { addYears as
|
|
16
|
+
import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-ZMp65DFz.mjs";
|
|
17
|
+
import { u as ne } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
|
+
import { addMonths as ee } from "date-fns/addMonths";
|
|
19
|
+
import { addDays as Se } from "date-fns/addDays";
|
|
20
|
+
import { addYears as te } from "date-fns/addYears";
|
|
21
21
|
import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
|
|
22
22
|
import { endOfDay as me } from "date-fns/endOfDay";
|
|
23
|
-
import { endOfMonth as
|
|
24
|
-
import { endOfToday as
|
|
23
|
+
import { endOfMonth as H } from "date-fns/endOfMonth";
|
|
24
|
+
import { endOfToday as _e } from "date-fns/endOfToday";
|
|
25
25
|
import { endOfYear as Le } from "date-fns/endOfYear";
|
|
26
26
|
import { startOfMonth as De } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as pe } from "date-fns/startOfToday";
|
|
28
28
|
import { startOfYear as ke } from "date-fns/startOfYear";
|
|
29
|
-
import { subMonths as
|
|
29
|
+
import { subMonths as q } from "date-fns/subMonths";
|
|
30
30
|
import { subDays as he } from "date-fns/subDays";
|
|
31
|
-
import { subYears as
|
|
31
|
+
import { subYears as ae } from "date-fns/subYears";
|
|
32
32
|
import Oe from "@mui/material/ButtonGroup";
|
|
33
33
|
import fe from "@mui/material/Tab";
|
|
34
34
|
import be from "@mui/material/Tabs";
|
|
35
35
|
import we from "@mui/material/ToggleButton";
|
|
36
36
|
import Ke from "@mui/material/ToggleButtonGroup";
|
|
37
37
|
import Ge from "@mui/material/styles/useTheme";
|
|
38
|
-
import { f as
|
|
38
|
+
import { f as O, a as f, D as Me } from "./Dialog-BPTr3qHE.mjs";
|
|
39
39
|
import { D as We } from "./Drawer-By9V-B5L.mjs";
|
|
40
|
-
import { k as
|
|
40
|
+
import { k as xe, l as ye } from "./ConnectDrawer-BkvlItWx.mjs";
|
|
41
41
|
const ve = {
|
|
42
42
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
43
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -158,15 +158,43 @@ const ve = {
|
|
|
158
158
|
TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
|
|
159
159
|
TRENDS_LOAD_WIDGET: "trends_load_widget",
|
|
160
160
|
TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
|
|
161
|
+
}, Pe = (i = "polite") => {
|
|
162
|
+
const [E, a] = c.useState(""), [C, u] = c.useState(i), n = c.useCallback((S, N) => {
|
|
163
|
+
N && u(N), a(S);
|
|
164
|
+
}, []), b = c.useMemo(
|
|
165
|
+
() => /* @__PURE__ */ e(
|
|
166
|
+
z,
|
|
167
|
+
{
|
|
168
|
+
"aria-atomic": "true",
|
|
169
|
+
"aria-live": C,
|
|
170
|
+
role: C === "assertive" ? "alert" : "status",
|
|
171
|
+
sx: {
|
|
172
|
+
position: "absolute",
|
|
173
|
+
width: "1px",
|
|
174
|
+
height: "1px",
|
|
175
|
+
padding: 0,
|
|
176
|
+
margin: "-1px",
|
|
177
|
+
overflow: "hidden",
|
|
178
|
+
clip: "rect(0 0 0 0)",
|
|
179
|
+
clipPath: "inset(50%)",
|
|
180
|
+
whiteSpace: "nowrap",
|
|
181
|
+
border: 0
|
|
182
|
+
},
|
|
183
|
+
children: E
|
|
184
|
+
}
|
|
185
|
+
),
|
|
186
|
+
[E, C]
|
|
187
|
+
);
|
|
188
|
+
return { announce: n, ariaLive: b };
|
|
161
189
|
}, Ue = ({
|
|
162
|
-
calendarActions:
|
|
163
|
-
color:
|
|
164
|
-
copy:
|
|
165
|
-
range:
|
|
166
|
-
shouldShrinkToIcon:
|
|
190
|
+
calendarActions: i,
|
|
191
|
+
color: E = "primary",
|
|
192
|
+
copy: a,
|
|
193
|
+
range: C = [De(pe()), H(_e())],
|
|
194
|
+
shouldShrinkToIcon: u = !0,
|
|
167
195
|
variant: n = "outlined"
|
|
168
196
|
}) => {
|
|
169
|
-
const
|
|
197
|
+
const b = Ge(), { isMobile: S } = ne(), { announce: N, ariaLive: x } = Pe(), [p, K] = c.useState(C), [o, y] = c.useState(a.dateRangePickerCopy.dateRangeThisMonth), [R, v] = c.useState(p), [G, k] = c.useState(!1), [X, g] = c.useState(!0), [s, m] = c.useState(6), M = {
|
|
170
198
|
buttons: [
|
|
171
199
|
{ label: "3M", value: 3 },
|
|
172
200
|
{ label: "6M", value: 6 },
|
|
@@ -180,69 +208,69 @@ const ve = {
|
|
|
180
208
|
{ label: "1 Year", value: 12 }
|
|
181
209
|
]
|
|
182
210
|
};
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}, [
|
|
186
|
-
(n === "timeframebuttons" || n === "timeframetabs") &&
|
|
187
|
-
}, [
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
return [
|
|
191
|
-
},
|
|
192
|
-
const [
|
|
193
|
-
let
|
|
194
|
-
if (
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
211
|
+
c.useEffect(() => {
|
|
212
|
+
K(C), v(C);
|
|
213
|
+
}, [C]), c.useEffect(() => {
|
|
214
|
+
(n === "timeframebuttons" || n === "timeframetabs") && i.onRangeChanged(j());
|
|
215
|
+
}, [s]);
|
|
216
|
+
const j = () => {
|
|
217
|
+
const _ = H(_e());
|
|
218
|
+
return [H(q(_, s)), _];
|
|
219
|
+
}, P = (_) => {
|
|
220
|
+
const [r, d] = p, T = _ === "previous";
|
|
221
|
+
let I;
|
|
222
|
+
if (o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth)
|
|
223
|
+
I = [
|
|
224
|
+
T ? q(r, 1) : ee(r, 1),
|
|
225
|
+
H(T ? q(d, 1) : ee(d, 1))
|
|
198
226
|
];
|
|
199
|
-
else if (
|
|
200
|
-
const
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
227
|
+
else if (o === a.dateRangePickerCopy.dateRangeYTD || o === a.dateRangePickerCopy.dateRangeLastYear) {
|
|
228
|
+
const L = ke(r), h = Le(r);
|
|
229
|
+
I = [
|
|
230
|
+
T ? ae(L, 1) : te(L, 1),
|
|
231
|
+
T ? ae(h, 1) : te(h, 1)
|
|
204
232
|
];
|
|
205
233
|
} else {
|
|
206
|
-
const
|
|
207
|
-
|
|
234
|
+
const L = Ne(d, r), h = T ? he : Se;
|
|
235
|
+
I = [h(r, L), h(d, L)];
|
|
208
236
|
}
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
),
|
|
214
|
-
},
|
|
215
|
-
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
|
|
237
|
+
K(I), i.onRangeChanged(I);
|
|
238
|
+
}, U = () => {
|
|
239
|
+
K(R), g(
|
|
240
|
+
o === a.dateRangePickerCopy.dateRangeThisMonth || o === a.dateRangePickerCopy.dateRangeLastMonth
|
|
241
|
+
), i.onRangeChanged(R);
|
|
242
|
+
}, t = (_, r) => {
|
|
243
|
+
_[1] = _[1] ?? _[0];
|
|
244
|
+
const d = [_[0], _[1] ? me(_[1]) : _[1]], T = O(d[0], f.MONTH_DAY_YEAR), I = O(d[1], f.MONTH_DAY_YEAR);
|
|
245
|
+
v(d), y(r), N(`${a.dateRangePickerCopy}: ${T} - ${I}`);
|
|
246
|
+
}, B = (_) => {
|
|
247
|
+
m(_);
|
|
220
248
|
};
|
|
221
|
-
return /* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
249
|
+
return /* @__PURE__ */ l(z, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
|
250
|
+
/* @__PURE__ */ l(
|
|
251
|
+
z,
|
|
224
252
|
{
|
|
225
253
|
sx: {
|
|
226
|
-
[
|
|
227
|
-
display:
|
|
254
|
+
[b.breakpoints.down("sm")]: {
|
|
255
|
+
display: u ? "none" : "flex",
|
|
228
256
|
justifyContent: "center"
|
|
229
257
|
},
|
|
230
|
-
[
|
|
258
|
+
[b.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
231
259
|
},
|
|
232
260
|
children: [
|
|
233
|
-
n === "readonly" && /* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */
|
|
261
|
+
n === "readonly" && /* @__PURE__ */ l(F, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
262
|
+
/* @__PURE__ */ e(A, { name: "calendar_month", size: 24 }),
|
|
263
|
+
/* @__PURE__ */ e(Z, { bold: !0, children: O(R[0], f.MONTH_DAY) }),
|
|
264
|
+
/* @__PURE__ */ e(A, { name: "remove" }),
|
|
265
|
+
/* @__PURE__ */ e(Z, { bold: !0, children: O(R[1], f.MONTH_DAY_YEAR) })
|
|
238
266
|
] }),
|
|
239
|
-
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */
|
|
267
|
+
n !== "readonly" && n !== "timeframebuttons" && n !== "timeframetabs" && /* @__PURE__ */ l(
|
|
240
268
|
Oe,
|
|
241
269
|
{
|
|
242
|
-
color:
|
|
270
|
+
color: E,
|
|
243
271
|
sx: {
|
|
244
272
|
"& .MuiButtonGroup-grouped": {
|
|
245
|
-
padding:
|
|
273
|
+
padding: S ? 0 : 12
|
|
246
274
|
},
|
|
247
275
|
"& .MuiButtonGroup-middleButton": {
|
|
248
276
|
px: 24
|
|
@@ -251,315 +279,322 @@ const ve = {
|
|
|
251
279
|
},
|
|
252
280
|
variant: n,
|
|
253
281
|
children: [
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
|
|
282
|
+
/* @__PURE__ */ e(
|
|
283
|
+
W,
|
|
256
284
|
{
|
|
257
|
-
"aria-disabled":
|
|
258
|
-
"aria-label":
|
|
259
|
-
color:
|
|
260
|
-
onClick: () =>
|
|
261
|
-
children: /* @__PURE__ */
|
|
285
|
+
"aria-disabled": i.shouldDisablePrevious,
|
|
286
|
+
"aria-label": a.dateRangePreviousAria,
|
|
287
|
+
color: i.shouldDisablePrevious ? "secondary" : "primary",
|
|
288
|
+
onClick: () => i.shouldDisablePrevious ? null : P("previous"),
|
|
289
|
+
children: /* @__PURE__ */ e(A, { name: "chevron_left", size: 20 })
|
|
262
290
|
}
|
|
263
291
|
),
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
|
|
292
|
+
/* @__PURE__ */ e(
|
|
293
|
+
W,
|
|
266
294
|
{
|
|
267
|
-
"aria-disabled":
|
|
268
|
-
color:
|
|
269
|
-
onClick: () =>
|
|
270
|
-
startIcon: /* @__PURE__ */
|
|
295
|
+
"aria-disabled": i.shouldDisablePicker,
|
|
296
|
+
color: E,
|
|
297
|
+
onClick: () => i.shouldDisablePicker ? null : k(!0),
|
|
298
|
+
startIcon: /* @__PURE__ */ e(A, { name: "calendar_month", size: 20 }),
|
|
271
299
|
sx: {
|
|
272
|
-
p:
|
|
300
|
+
p: S ? 0 : 8
|
|
273
301
|
},
|
|
274
|
-
children:
|
|
275
|
-
|
|
302
|
+
children: X ? O(p[0], f.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
|
|
303
|
+
O(p[0], f.MONTH_DAY_YEAR),
|
|
276
304
|
" -",
|
|
277
305
|
" ",
|
|
278
|
-
|
|
306
|
+
O(p[1], f.MONTH_DAY_YEAR)
|
|
279
307
|
] })
|
|
280
308
|
}
|
|
281
309
|
),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
|
|
310
|
+
/* @__PURE__ */ e(
|
|
311
|
+
W,
|
|
284
312
|
{
|
|
285
|
-
"aria-disabled":
|
|
286
|
-
"aria-label":
|
|
287
|
-
color:
|
|
288
|
-
onClick: () =>
|
|
289
|
-
children: /* @__PURE__ */
|
|
313
|
+
"aria-disabled": i.shouldDisableNext,
|
|
314
|
+
"aria-label": a.dateRangeNextAria,
|
|
315
|
+
color: i.shouldDisableNext ? "secondary" : "primary",
|
|
316
|
+
onClick: () => i.shouldDisableNext ? null : P("next"),
|
|
317
|
+
children: /* @__PURE__ */ e(A, { name: "chevron_right", size: 20 })
|
|
290
318
|
}
|
|
291
319
|
)
|
|
292
320
|
]
|
|
293
321
|
}
|
|
294
322
|
),
|
|
295
|
-
n === "timeframebuttons" && /* @__PURE__ */
|
|
323
|
+
n === "timeframebuttons" && /* @__PURE__ */ e(
|
|
296
324
|
Ke,
|
|
297
325
|
{
|
|
298
|
-
color:
|
|
326
|
+
color: E,
|
|
299
327
|
exclusive: !0,
|
|
300
328
|
orientation: "horizontal",
|
|
301
|
-
value:
|
|
302
|
-
children:
|
|
329
|
+
value: s,
|
|
330
|
+
children: M.buttons.map((_) => /* @__PURE__ */ e(
|
|
303
331
|
we,
|
|
304
332
|
{
|
|
305
|
-
onClick: () =>
|
|
333
|
+
onClick: () => B(_.value),
|
|
306
334
|
sx: { width: 56 },
|
|
307
|
-
value:
|
|
308
|
-
children:
|
|
335
|
+
value: _.value,
|
|
336
|
+
children: _.label
|
|
309
337
|
},
|
|
310
|
-
|
|
338
|
+
_.label
|
|
311
339
|
))
|
|
312
340
|
}
|
|
313
341
|
),
|
|
314
|
-
n === "timeframetabs" && /* @__PURE__ */
|
|
342
|
+
n === "timeframetabs" && /* @__PURE__ */ e(
|
|
315
343
|
be,
|
|
316
344
|
{
|
|
317
345
|
indicatorColor: "primary",
|
|
318
|
-
onChange: (
|
|
346
|
+
onChange: (_, r) => B(r),
|
|
319
347
|
textColor: "primary",
|
|
320
|
-
value:
|
|
348
|
+
value: s,
|
|
321
349
|
variant: "fullWidth",
|
|
322
|
-
children:
|
|
350
|
+
children: M.tabs.map((_) => /* @__PURE__ */ e(
|
|
323
351
|
fe,
|
|
324
352
|
{
|
|
325
|
-
label: /* @__PURE__ */
|
|
353
|
+
label: /* @__PURE__ */ e(Z, { bold: !0, variant: "Body", children: _.label }),
|
|
326
354
|
sx: { minWidth: 80 },
|
|
327
|
-
value:
|
|
355
|
+
value: _.value
|
|
328
356
|
},
|
|
329
|
-
|
|
357
|
+
_.label
|
|
330
358
|
))
|
|
331
359
|
}
|
|
332
360
|
)
|
|
333
361
|
]
|
|
334
362
|
}
|
|
335
363
|
),
|
|
336
|
-
|
|
364
|
+
G && S && /* @__PURE__ */ l(
|
|
337
365
|
We,
|
|
338
366
|
{
|
|
339
|
-
ariaLabelClose:
|
|
340
|
-
isOpen:
|
|
367
|
+
ariaLabelClose: a.dateRangeCloseAria,
|
|
368
|
+
isOpen: G,
|
|
341
369
|
onClose: () => k(!1),
|
|
342
370
|
onPrimaryAction: () => {
|
|
343
|
-
|
|
371
|
+
U(), k(!1);
|
|
344
372
|
},
|
|
345
|
-
primaryText:
|
|
346
|
-
title:
|
|
347
|
-
children:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
373
|
+
primaryText: a.dateRangeEditApply,
|
|
374
|
+
title: a.dateRangeEditTitle,
|
|
375
|
+
children: [
|
|
376
|
+
x,
|
|
377
|
+
/* @__PURE__ */ e(
|
|
378
|
+
Q,
|
|
379
|
+
{
|
|
380
|
+
copy: a.dateRangePickerCopy,
|
|
381
|
+
dateRange: R,
|
|
382
|
+
onRangeChanged: t,
|
|
383
|
+
selectedShortcut: o,
|
|
384
|
+
sx: { p: 16 }
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
]
|
|
357
388
|
}
|
|
358
389
|
),
|
|
359
|
-
|
|
390
|
+
G && !S && /* @__PURE__ */ l(
|
|
360
391
|
Me,
|
|
361
392
|
{
|
|
362
|
-
copy: { title:
|
|
393
|
+
copy: { title: a.dateRangeEditTitle },
|
|
363
394
|
isOpen: !0,
|
|
364
395
|
onClose: () => k(!1),
|
|
365
|
-
onPrimaryAction: () =>
|
|
366
|
-
primaryText:
|
|
396
|
+
onPrimaryAction: () => U(),
|
|
397
|
+
primaryText: a.dateRangeEditApply,
|
|
367
398
|
sx: {
|
|
368
399
|
"& .MuiDialogContent-root": {
|
|
369
400
|
padding: 0
|
|
370
401
|
}
|
|
371
402
|
},
|
|
372
|
-
children:
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
403
|
+
children: [
|
|
404
|
+
x,
|
|
405
|
+
/* @__PURE__ */ e(
|
|
406
|
+
Q,
|
|
407
|
+
{
|
|
408
|
+
copy: a.dateRangePickerCopy,
|
|
409
|
+
dateRange: R,
|
|
410
|
+
onRangeChanged: t,
|
|
411
|
+
selectedShortcut: o,
|
|
412
|
+
sx: {
|
|
413
|
+
pt: 0,
|
|
414
|
+
"& .MuiPickersLayout-toolbar": {
|
|
415
|
+
gridColumn: "1/4"
|
|
416
|
+
}
|
|
383
417
|
}
|
|
384
418
|
}
|
|
385
|
-
|
|
386
|
-
|
|
419
|
+
)
|
|
420
|
+
]
|
|
387
421
|
}
|
|
388
422
|
)
|
|
389
423
|
] });
|
|
390
|
-
},
|
|
391
|
-
accountOptions:
|
|
392
|
-
actions:
|
|
393
|
-
calendarActions:
|
|
394
|
-
children:
|
|
395
|
-
dateRange:
|
|
424
|
+
}, ie = Ue, Be = ({
|
|
425
|
+
accountOptions: i,
|
|
426
|
+
actions: E = [],
|
|
427
|
+
calendarActions: a,
|
|
428
|
+
children: C,
|
|
429
|
+
dateRange: u,
|
|
396
430
|
dateRangeVariant: n,
|
|
397
|
-
className:
|
|
398
|
-
hasDivider:
|
|
399
|
-
onBackClick:
|
|
400
|
-
onAccountsFilterClick:
|
|
401
|
-
showDividerAboveDateSelector:
|
|
402
|
-
sx:
|
|
403
|
-
title:
|
|
431
|
+
className: b = "mx-cmn-widget",
|
|
432
|
+
hasDivider: S = !1,
|
|
433
|
+
onBackClick: N,
|
|
434
|
+
onAccountsFilterClick: x,
|
|
435
|
+
showDividerAboveDateSelector: p = !0,
|
|
436
|
+
sx: K = {},
|
|
437
|
+
title: o = ""
|
|
404
438
|
}) => {
|
|
405
|
-
const [
|
|
406
|
-
|
|
439
|
+
const [y, R] = c.useState(!1), [v, { height: G, width: k }] = Te(), { onEvent: X } = Ee(), { isDesktop: g, isMobile: s, isTablet: m } = ne(k), { displayedDateRange: M, isCopyLoaded: j, selectedAccountGuids: P, setSelectedAccountGuids: U } = Re(), { common: t, connect: B } = ge(), { config: _ } = Ae(), r = () => {
|
|
440
|
+
N && (N(), X(ve.WIDGET_BACK_CLICK));
|
|
407
441
|
};
|
|
408
|
-
if (!
|
|
409
|
-
return /* @__PURE__ */
|
|
410
|
-
const
|
|
442
|
+
if (!j)
|
|
443
|
+
return /* @__PURE__ */ e(Ie, {});
|
|
444
|
+
const d = {
|
|
411
445
|
accountFilterOptionsCopy: {
|
|
412
|
-
accountTypeAccounts:
|
|
413
|
-
cancelButton:
|
|
414
|
-
filterButton:
|
|
415
|
-
filterButtonAria:
|
|
416
|
-
selectAllAccounts:
|
|
417
|
-
toggleAccountTypeAccounts:
|
|
418
|
-
unselectAllAccounts:
|
|
419
|
-
zeroStateButton:
|
|
420
|
-
zeroStateDescription:
|
|
421
|
-
zeroStateTitle:
|
|
446
|
+
accountTypeAccounts: t.account_filter.account_type_accounts,
|
|
447
|
+
cancelButton: t.cancel_button,
|
|
448
|
+
filterButton: t.filter_button,
|
|
449
|
+
filterButtonAria: t.account_filter.filter_button_generic_aria,
|
|
450
|
+
selectAllAccounts: t.account_filter.select_all_accounts,
|
|
451
|
+
toggleAccountTypeAccounts: t.account_filter.toggle_account_type_accounts,
|
|
452
|
+
unselectAllAccounts: t.account_filter.unselect_all_accounts,
|
|
453
|
+
zeroStateButton: t.account_filter.zero_state_button,
|
|
454
|
+
zeroStateDescription: t.account_filter.zero_state_description,
|
|
455
|
+
zeroStateTitle: t.account_filter.zero_state_title
|
|
422
456
|
},
|
|
423
|
-
title:
|
|
424
|
-
},
|
|
457
|
+
title: t.account_filter.title
|
|
458
|
+
}, T = {
|
|
425
459
|
dateRangePickerCopy: {
|
|
426
|
-
dateRangeFrom:
|
|
427
|
-
dateRangeTo:
|
|
428
|
-
dateRangeCustom:
|
|
429
|
-
dateRangeSelectARange:
|
|
430
|
-
dateRangeThisMonth:
|
|
431
|
-
dateRangeLastMonth:
|
|
432
|
-
dateRangeLast30Days:
|
|
433
|
-
dateRangeLast90Days:
|
|
434
|
-
dateRangeYTD:
|
|
435
|
-
dateRangeLastYear:
|
|
436
|
-
dateRangeSelect:
|
|
460
|
+
dateRangeFrom: t.date_range_picker.from,
|
|
461
|
+
dateRangeTo: t.date_range_picker.to,
|
|
462
|
+
dateRangeCustom: t.date_range_picker.custom,
|
|
463
|
+
dateRangeSelectARange: t.date_range_picker.select_range,
|
|
464
|
+
dateRangeThisMonth: t.date_range_picker.this_month,
|
|
465
|
+
dateRangeLastMonth: t.date_range_picker.last_month,
|
|
466
|
+
dateRangeLast30Days: t.date_range_picker.last_30_days,
|
|
467
|
+
dateRangeLast90Days: t.date_range_picker.last_90_days,
|
|
468
|
+
dateRangeYTD: t.date_range_picker.ytd,
|
|
469
|
+
dateRangeLastYear: t.date_range_picker.last_year,
|
|
470
|
+
dateRangeSelect: t.date_range_picker.select
|
|
437
471
|
},
|
|
438
|
-
dateRangeEditApply:
|
|
439
|
-
dateRangeEditTitle:
|
|
440
|
-
dateRangeNextAria:
|
|
441
|
-
dateRangePreviousAria:
|
|
442
|
-
},
|
|
443
|
-
return /* @__PURE__ */
|
|
472
|
+
dateRangeEditApply: t.date_range_picker.edit_apply,
|
|
473
|
+
dateRangeEditTitle: t.date_range_picker.edit_title,
|
|
474
|
+
dateRangeNextAria: t.date_range_picker.next_aria,
|
|
475
|
+
dateRangePreviousAria: t.date_range_picker.previous_aria
|
|
476
|
+
}, I = u ? u.start : M.start, L = u ? u.end : M.end, h = E?.length > 1;
|
|
477
|
+
return /* @__PURE__ */ l(
|
|
444
478
|
re,
|
|
445
479
|
{
|
|
446
|
-
className:
|
|
480
|
+
className: b,
|
|
447
481
|
sx: {
|
|
448
|
-
...
|
|
482
|
+
...s && { px: 4 },
|
|
449
483
|
"& .mx-cmn-date-range-selector": {
|
|
450
|
-
...(
|
|
484
|
+
...(s || m) && { textAlign: "center" }
|
|
451
485
|
},
|
|
452
|
-
...
|
|
486
|
+
...K
|
|
453
487
|
},
|
|
454
488
|
children: [
|
|
455
|
-
|
|
489
|
+
o && /* @__PURE__ */ e(
|
|
456
490
|
se,
|
|
457
491
|
{
|
|
458
|
-
action: /* @__PURE__ */
|
|
459
|
-
|
|
460
|
-
|
|
492
|
+
action: /* @__PURE__ */ l(F, { alignItems: "center", flexDirection: "row", children: [
|
|
493
|
+
g && a && /* @__PURE__ */ e(z, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
|
494
|
+
ie,
|
|
461
495
|
{
|
|
462
|
-
calendarActions:
|
|
463
|
-
copy:
|
|
464
|
-
range: [
|
|
496
|
+
calendarActions: a,
|
|
497
|
+
copy: T,
|
|
498
|
+
range: [I, L],
|
|
465
499
|
shouldShrinkToIcon: !1,
|
|
466
500
|
variant: n
|
|
467
501
|
}
|
|
468
502
|
) }),
|
|
469
|
-
|
|
470
|
-
|
|
503
|
+
i && /* @__PURE__ */ e(
|
|
504
|
+
xe,
|
|
471
505
|
{
|
|
472
|
-
accounts:
|
|
473
|
-
copy:
|
|
474
|
-
onConnectAccountClick:
|
|
475
|
-
onFilterClick: (
|
|
476
|
-
U(
|
|
506
|
+
accounts: i,
|
|
507
|
+
copy: d,
|
|
508
|
+
onConnectAccountClick: _.show_connections_widget_in_master ? () => R(!0) : void 0,
|
|
509
|
+
onFilterClick: (w) => {
|
|
510
|
+
U(w), x?.(w);
|
|
477
511
|
},
|
|
478
|
-
selectedAccountGuids:
|
|
512
|
+
selectedAccountGuids: P,
|
|
479
513
|
showAccountNumbers: !1,
|
|
480
514
|
variant: "text"
|
|
481
515
|
}
|
|
482
516
|
),
|
|
483
|
-
|
|
484
|
-
if (
|
|
485
|
-
const { iconName:
|
|
486
|
-
return
|
|
487
|
-
|
|
517
|
+
E?.map((w) => {
|
|
518
|
+
if (c.isValidElement(w)) return w;
|
|
519
|
+
const { iconName: D, onClick: V, label: Y } = w;
|
|
520
|
+
return h ? g || m ? /* @__PURE__ */ e(
|
|
521
|
+
W,
|
|
488
522
|
{
|
|
489
|
-
onClick:
|
|
490
|
-
startIcon: /* @__PURE__ */
|
|
523
|
+
onClick: V,
|
|
524
|
+
startIcon: /* @__PURE__ */ e(A, { name: D, size: 24 }),
|
|
491
525
|
sx: { my: 4 },
|
|
492
|
-
children:
|
|
526
|
+
children: Y
|
|
493
527
|
},
|
|
494
|
-
|
|
495
|
-
) : /* @__PURE__ */
|
|
496
|
-
|
|
528
|
+
D
|
|
529
|
+
) : /* @__PURE__ */ e($, { "aria-label": Y, color: "primary", onClick: V, children: /* @__PURE__ */ e(A, { name: D, size: 24 }) }, D) : g || m ? /* @__PURE__ */ e(
|
|
530
|
+
W,
|
|
497
531
|
{
|
|
498
|
-
onClick:
|
|
499
|
-
startIcon: /* @__PURE__ */
|
|
532
|
+
onClick: V,
|
|
533
|
+
startIcon: /* @__PURE__ */ e(A, { name: D, size: 24 }),
|
|
500
534
|
sx: { my: 4 },
|
|
501
|
-
children:
|
|
535
|
+
children: Y
|
|
502
536
|
},
|
|
503
|
-
|
|
504
|
-
) : /* @__PURE__ */
|
|
537
|
+
D
|
|
538
|
+
) : /* @__PURE__ */ e($, { "aria-label": Y, color: "primary", onClick: V, children: /* @__PURE__ */ e(A, { name: D, size: 24 }) }, D);
|
|
505
539
|
})
|
|
506
540
|
] }),
|
|
507
541
|
sx: {
|
|
508
|
-
p:
|
|
542
|
+
p: g ? 48 : 24,
|
|
509
543
|
pb: 0,
|
|
510
544
|
"& .MuiCardHeader-action": {
|
|
511
545
|
mr: 0,
|
|
512
|
-
...
|
|
513
|
-
...(
|
|
546
|
+
...a && g && { flexGrow: 1 },
|
|
547
|
+
...(s || m) && { alignSelf: "center" }
|
|
514
548
|
},
|
|
515
549
|
"& .MuiCardHeader-content": {
|
|
516
550
|
overflow: "hidden"
|
|
517
551
|
}
|
|
518
552
|
},
|
|
519
|
-
title:
|
|
520
|
-
|
|
521
|
-
|
|
553
|
+
title: g || m ? /* @__PURE__ */ e(Ce, { children: o }) : /* @__PURE__ */ l(F, { alignItems: "center", flexDirection: "row", sx: { overflow: "hidden" }, children: [
|
|
554
|
+
s && N && /* @__PURE__ */ e(
|
|
555
|
+
$,
|
|
522
556
|
{
|
|
523
|
-
"aria-label":
|
|
557
|
+
"aria-label": t.back_to_dashboard,
|
|
524
558
|
color: "primary",
|
|
525
|
-
onClick:
|
|
559
|
+
onClick: r,
|
|
526
560
|
sx: { p: 12, mr: 4 },
|
|
527
|
-
children: /* @__PURE__ */
|
|
561
|
+
children: /* @__PURE__ */ e(le, { size: 24 })
|
|
528
562
|
}
|
|
529
563
|
),
|
|
530
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ e(de, { children: o })
|
|
531
565
|
] })
|
|
532
566
|
}
|
|
533
567
|
),
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
/* @__PURE__ */
|
|
538
|
-
|
|
568
|
+
S && /* @__PURE__ */ e(J, { sx: { mt: g ? 48 : 24 } }),
|
|
569
|
+
a && (s || m) && /* @__PURE__ */ l(F, { gap: 24, justifyContent: "center", sx: { mt: s ? 0 : 16 }, children: [
|
|
570
|
+
p && /* @__PURE__ */ e(J, {}),
|
|
571
|
+
/* @__PURE__ */ e(
|
|
572
|
+
ie,
|
|
539
573
|
{
|
|
540
|
-
calendarActions:
|
|
541
|
-
copy:
|
|
542
|
-
range: [
|
|
574
|
+
calendarActions: a,
|
|
575
|
+
copy: T,
|
|
576
|
+
range: [I, L],
|
|
543
577
|
shouldShrinkToIcon: !1,
|
|
544
578
|
variant: n
|
|
545
579
|
}
|
|
546
580
|
)
|
|
547
581
|
] }),
|
|
548
|
-
|
|
549
|
-
|
|
582
|
+
y && /* @__PURE__ */ e(
|
|
583
|
+
ye,
|
|
550
584
|
{
|
|
551
|
-
onClose: () =>
|
|
552
|
-
showConnectWidget:
|
|
553
|
-
title:
|
|
585
|
+
onClose: () => R(!1),
|
|
586
|
+
showConnectWidget: y,
|
|
587
|
+
title: B.mini_title
|
|
554
588
|
}
|
|
555
589
|
),
|
|
556
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ e(oe, { ref: v, sx: { p: 0 }, children: /* @__PURE__ */ e(ue, { availableHeight: G, availableWidth: k, children: C }) })
|
|
557
591
|
]
|
|
558
592
|
}
|
|
559
593
|
);
|
|
560
|
-
},
|
|
594
|
+
}, Ot = ce(Be);
|
|
561
595
|
export {
|
|
562
596
|
ve as A,
|
|
563
|
-
|
|
564
|
-
|
|
597
|
+
ie as D,
|
|
598
|
+
Ot as W,
|
|
599
|
+
Pe as u
|
|
565
600
|
};
|