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