@mx-cartographer/experiences 6.2.1-alpha.al2 → 6.2.1-alpha.al3
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/index.es.js +134 -128
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -6,9 +6,9 @@ import k from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import wt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as rl, P as
|
9
|
+
import { AccountsIcon as rl, P as Ne, Icon as B, useTokens as Ct, Text as p, H2 as Hn, CategoryIcon as Mt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Ur, H3 as mt, H1 as cn, TextField as An, IconWeight as ft, MerchantLogo as ln, CategoryIconVariants as ps, InstitutionLogo as ht, ChevronRightIcon as dl, THEMES as Vr } from "@mxenabled/mxui";
|
10
10
|
import ul from "bowser";
|
11
|
-
import { getUnixTime as
|
11
|
+
import { getUnixTime as De } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as _l } from "date-fns/intlFormat";
|
13
13
|
import { addMonths as gt } from "date-fns/addMonths";
|
14
14
|
import { addQuarters as Sn } from "date-fns/addQuarters";
|
@@ -19,7 +19,7 @@ import { isBefore as Te } from "date-fns/isBefore";
|
|
19
19
|
import { nextDay as Ei } from "date-fns/nextDay";
|
20
20
|
import { setDate as Vi } from "date-fns/setDate";
|
21
21
|
import { startOfToday as le } from "date-fns/startOfToday";
|
22
|
-
import { fromUnixTime as
|
22
|
+
import { fromUnixTime as Re } from "date-fns/fromUnixTime";
|
23
23
|
import { Honeybadger as Bi } from "@honeybadger-io/react";
|
24
24
|
import Kr from "numeral";
|
25
25
|
import J from "@mui/material/Button";
|
@@ -161,7 +161,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
161
161
|
analytics_event: {
|
162
162
|
...c,
|
163
163
|
app_version: "widgets-v2",
|
164
|
-
created_at:
|
164
|
+
created_at: De(/* @__PURE__ */ new Date()).toString(),
|
165
165
|
host: s,
|
166
166
|
name: c?.label || "",
|
167
167
|
session_id: o.guid,
|
@@ -173,7 +173,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
173
173
|
analytics_pageview: {
|
174
174
|
...c,
|
175
175
|
app_version: "widgets-v2",
|
176
|
-
created_at:
|
176
|
+
created_at: De(/* @__PURE__ */ new Date()).toString(),
|
177
177
|
host: s,
|
178
178
|
name: c.name,
|
179
179
|
session_id: o.guid,
|
@@ -861,9 +861,9 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
861
861
|
const n = pr(e);
|
862
862
|
return Sn(n, 1);
|
863
863
|
}, Hs = (e) => ei(e, 1), Ci = (e) => {
|
864
|
-
const n =
|
864
|
+
const n = Re(e);
|
865
865
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
866
|
-
}, Oi = (e) => ne(
|
866
|
+
}, Oi = (e) => ne(Re(e), ee.DAY_OF_WEEK_MONTH_DAY), $s = (e) => e ? ne(Re(e), ee.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
|
867
867
|
if (!e) return "";
|
868
868
|
const i = n.some((o) => typeof o != "string"), r = [...e.matchAll(Zd)].reduce(
|
869
869
|
(o, s, c) => {
|
@@ -1234,8 +1234,8 @@ const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1234
1234
|
},
|
1235
1235
|
children: [
|
1236
1236
|
/* @__PURE__ */ t(rl, { size: 32 }),
|
1237
|
-
/* @__PURE__ */ t(
|
1238
|
-
/* @__PURE__ */ t(
|
1237
|
+
/* @__PURE__ */ t(Ne, { bold: !0, mt: 12, children: i.zeroStateTitle }),
|
1238
|
+
/* @__PURE__ */ t(Ne, { mt: 12, children: i.zeroStateDescription }),
|
1239
1239
|
/* @__PURE__ */ t(J, { onClick: s, children: i.zeroStateButton })
|
1240
1240
|
]
|
1241
1241
|
}
|
@@ -2459,7 +2459,7 @@ const bu = ({
|
|
2459
2459
|
}, ct = () => {
|
2460
2460
|
const se = $e(String(E)).guid;
|
2461
2461
|
se && a?.(se);
|
2462
|
-
},
|
2462
|
+
}, Oe = (se) => {
|
2463
2463
|
const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be), Oa = _n && se?.dataIndex !== void 0, La = _n && se?.dataIndex === void 0;
|
2464
2464
|
if (Oa)
|
2465
2465
|
f({
|
@@ -2531,7 +2531,7 @@ const bu = ({
|
|
2531
2531
|
height: s || 400,
|
2532
2532
|
margin: { bottom: 50 },
|
2533
2533
|
onAreaClick: ct,
|
2534
|
-
onHighlightChange:
|
2534
|
+
onHighlightChange: Oe,
|
2535
2535
|
series: Pe,
|
2536
2536
|
skipAnimation: !0,
|
2537
2537
|
slotProps: {
|
@@ -3508,8 +3508,8 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3508
3508
|
An,
|
3509
3509
|
{
|
3510
3510
|
InputProps: {
|
3511
|
-
endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(
|
3512
|
-
startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(
|
3511
|
+
endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(Ne, { children: "$" }) : void 0,
|
3512
|
+
startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(Ne, { children: "$" })
|
3513
3513
|
},
|
3514
3514
|
"aria-label": n || E.enter_amount,
|
3515
3515
|
className: `mx-cmn-currency-input ${T}`,
|
@@ -4370,7 +4370,7 @@ const li = () => {
|
|
4370
4370
|
children: [
|
4371
4371
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4372
4372
|
/* @__PURE__ */ t(Ue, { amount: x, variant: "H2" }),
|
4373
|
-
/* @__PURE__ */ t(
|
4373
|
+
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: S(
|
4374
4374
|
c.total_cash_accounts,
|
4375
4375
|
h.length
|
4376
4376
|
) })
|
@@ -4378,19 +4378,19 @@ const li = () => {
|
|
4378
4378
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "remove" }) }),
|
4379
4379
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4380
4380
|
/* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
|
4381
|
-
/* @__PURE__ */ t(
|
4381
|
+
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
|
4382
4382
|
] }),
|
4383
4383
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "equals" }) }),
|
4384
4384
|
/* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
|
4385
4385
|
/* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
|
-
/* @__PURE__ */ t(
|
4387
|
+
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
4388
|
/* @__PURE__ */ t(Qi, { body: c.tooltip_body, title: c.tooltip_title })
|
4389
4389
|
] })
|
4390
4390
|
] }),
|
4391
4391
|
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(j, { children: [
|
4392
4392
|
/* @__PURE__ */ t(p, { variant: "H2", children: S(c.days, _) }),
|
4393
|
-
/* @__PURE__ */ t(
|
4393
|
+
/* @__PURE__ */ t(Ne, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
|
4394
4394
|
] }) : /* @__PURE__ */ t(
|
4395
4395
|
J,
|
4396
4396
|
{
|
@@ -4925,14 +4925,14 @@ const r_ = [
|
|
4925
4925
|
custom: o = () => !0,
|
4926
4926
|
searchTerm: s = ""
|
4927
4927
|
} = e;
|
4928
|
-
return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date >
|
4928
|
+
return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > De(r.start) && c.date < De(r.end)).filter(o).filter((c) => {
|
4929
4929
|
if (s === l_ && c.has_been_split)
|
4930
4930
|
return !1;
|
4931
4931
|
if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
|
4932
4932
|
return !0;
|
4933
4933
|
const _ = c.tags.some(
|
4934
4934
|
(h) => Ft(s, n.find((m) => m.guid === h)?.name)
|
4935
|
-
), u =
|
4935
|
+
), u = Re(c.date);
|
4936
4936
|
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ne(u, ee.MONTH)) || Ft(s, ne(u, ee.DAY)) || Ft(s, ne(u, ee.FULL_MONTH_DAY)) || Ft(s, ne(u, ee.MONTH_DAY_YEAR)) || Ft(s, It(u, Ln)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || _;
|
4937
4937
|
});
|
4938
4938
|
}, __ = (e, n, i) => [...e].sort((a, r) => {
|
@@ -5107,8 +5107,8 @@ class f_ {
|
|
5107
5107
|
this.setIsLoading(!0), this.transactions = [];
|
5108
5108
|
try {
|
5109
5109
|
const a = await this.api.getTransactionsByDateRange(
|
5110
|
-
|
5111
|
-
|
5110
|
+
De(n),
|
5111
|
+
De(i)
|
5112
5112
|
);
|
5113
5113
|
K(() => {
|
5114
5114
|
this.transactions = this.augmentTransactions(a);
|
@@ -5122,7 +5122,7 @@ class f_ {
|
|
5122
5122
|
loadTransactionsByDateRange = async (n, i) => {
|
5123
5123
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
5124
5124
|
...this.filter,
|
5125
|
-
dateRange: { start:
|
5125
|
+
dateRange: { start: Re(i), end: Re(n) }
|
5126
5126
|
});
|
5127
5127
|
};
|
5128
5128
|
modifyTransactionByAccountGuid = (n, i) => {
|
@@ -5219,7 +5219,7 @@ const St = () => {
|
|
5219
5219
|
const i = y_(b_(e, n)), a = encodeURIComponent(i), r = document.createElement("a");
|
5220
5220
|
r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
5221
5221
|
}, b_ = (e, n) => e.map((i) => ({
|
5222
|
-
Date: ne(
|
5222
|
+
Date: ne(Re(i.date), ee.YEAR_MONTH_DAY),
|
5223
5223
|
Description: E_(i),
|
5224
5224
|
"Original Description": i.feed_description,
|
5225
5225
|
Amount: `${i.amount}`,
|
@@ -5300,10 +5300,10 @@ const St = () => {
|
|
5300
5300
|
n && /* @__PURE__ */ t(p, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
|
5301
5301
|
] });
|
5302
5302
|
}, I_ = A(A_), So = (e, n) => {
|
5303
|
-
const i =
|
5303
|
+
const i = Re(n[e].date), a = Re(n[e - 1]?.date);
|
5304
5304
|
return !lt(i, a);
|
5305
5305
|
}, x_ = (e, n) => {
|
5306
|
-
const i =
|
5306
|
+
const i = Re(n[e].date), a = Re(n[e + 1]?.date);
|
5307
5307
|
return lt(i, a);
|
5308
5308
|
}, To = 65, Ao = 34, v_ = ({
|
5309
5309
|
bgcolor: e,
|
@@ -5398,7 +5398,7 @@ const St = () => {
|
|
5398
5398
|
]
|
5399
5399
|
}
|
5400
5400
|
);
|
5401
|
-
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(
|
5401
|
+
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Re(e.row.date), ee.MONTH_DAY) }), L_ = (e) => {
|
5402
5402
|
const n = et(), { transactions: i } = I(), { is_flagged: a, is_hidden: r, has_been_viewed: o, parent_guid: s } = e.row, d = !o && !!!s;
|
5403
5403
|
return /* @__PURE__ */ l(
|
5404
5404
|
L,
|
@@ -6011,8 +6011,8 @@ class ah {
|
|
6011
6011
|
this.setIsLoadingCategoryTotals(!0);
|
6012
6012
|
try {
|
6013
6013
|
const r = await this.api.getDateRangeCategoryTotals(
|
6014
|
-
|
6015
|
-
|
6014
|
+
De(i),
|
6015
|
+
De(a),
|
6016
6016
|
n
|
6017
6017
|
);
|
6018
6018
|
K(() => {
|
@@ -6023,7 +6023,7 @@ class ah {
|
|
6023
6023
|
}
|
6024
6024
|
};
|
6025
6025
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
6026
|
-
const r =
|
6026
|
+
const r = De(He(i ?? jt(/* @__PURE__ */ new Date(), 11))), o = De(ze(a ?? /* @__PURE__ */ new Date()));
|
6027
6027
|
try {
|
6028
6028
|
const s = await this.api.getMonthlyCategoryTotals(r, o, n);
|
6029
6029
|
K(() => {
|
@@ -6037,12 +6037,12 @@ class ah {
|
|
6037
6037
|
this.setIsLoadingCategoryTotals(!0);
|
6038
6038
|
try {
|
6039
6039
|
const r = await this.api.getDateRangeCategoryTotals(
|
6040
|
-
|
6041
|
-
|
6040
|
+
De(i),
|
6041
|
+
De(a),
|
6042
6042
|
n
|
6043
6043
|
), o = await this.api.getMonthlyCategoryTotals(
|
6044
|
-
|
6045
|
-
|
6044
|
+
De(He(jt(a, 11))),
|
6045
|
+
De(ze(a)),
|
6046
6046
|
n
|
6047
6047
|
);
|
6048
6048
|
K(() => {
|
@@ -6159,7 +6159,7 @@ const rc = ({ transaction: e }) => {
|
|
6159
6159
|
] });
|
6160
6160
|
}, oc = ({ transaction: e }) => {
|
6161
6161
|
const n = Ct(), { onEvent: i } = V(), { updateTransaction: a } = Ce(), { updateManualTransaction: r } = St(), { common: o, transactions: s } = I(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
|
6162
|
-
u(
|
6162
|
+
u(De(C));
|
6163
6163
|
}, m = async () => {
|
6164
6164
|
if (e.is_manual && !e.guid) {
|
6165
6165
|
r({ ...e, date: _ }), d(!1);
|
@@ -6181,7 +6181,7 @@ const rc = ({ transaction: e }) => {
|
|
6181
6181
|
{
|
6182
6182
|
primary: s.date_title,
|
6183
6183
|
primaryTypographyProps: { variant: "XSmall" },
|
6184
|
-
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(
|
6184
|
+
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Re(e.date), ee.YEAR_MONTH_DAY) })
|
6185
6185
|
}
|
6186
6186
|
),
|
6187
6187
|
/* @__PURE__ */ t(pt, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: ft.Dark }) })
|
@@ -6201,7 +6201,7 @@ const rc = ({ transaction: e }) => {
|
|
6201
6201
|
children: /* @__PURE__ */ t(y, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
6202
6202
|
bu,
|
6203
6203
|
{
|
6204
|
-
beginDate:
|
6204
|
+
beginDate: Re(_),
|
6205
6205
|
copy: {
|
6206
6206
|
nextAria: s.date_next_aria,
|
6207
6207
|
prevAria: s.date_prev_aria,
|
@@ -6784,7 +6784,7 @@ const rc = ({ transaction: e }) => {
|
|
6784
6784
|
value: s
|
6785
6785
|
}
|
6786
6786
|
),
|
6787
|
-
/* @__PURE__ */ t(
|
6787
|
+
/* @__PURE__ */ t(Ne, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
|
6788
6788
|
]
|
6789
6789
|
}
|
6790
6790
|
)
|
@@ -6887,7 +6887,7 @@ const rc = ({ transaction: e }) => {
|
|
6887
6887
|
value: m
|
6888
6888
|
}
|
6889
6889
|
),
|
6890
|
-
/* @__PURE__ */ t(
|
6890
|
+
/* @__PURE__ */ t(Ne, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
|
6891
6891
|
]
|
6892
6892
|
}
|
6893
6893
|
),
|
@@ -7301,7 +7301,7 @@ const rc = ({ transaction: e }) => {
|
|
7301
7301
|
selectedAccounts: we,
|
7302
7302
|
setDisplayedDate: re,
|
7303
7303
|
setSelectedAccounts: Se
|
7304
|
-
} = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [
|
7304
|
+
} = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [Oe, ut] = g.useState(!1), [un, se] = g.useState(!1);
|
7305
7305
|
g.useEffect(() => {
|
7306
7306
|
Se(r);
|
7307
7307
|
}, [r]), g.useEffect(() => {
|
@@ -7335,7 +7335,7 @@ const rc = ({ transaction: e }) => {
|
|
7335
7335
|
}, Ma = () => {
|
7336
7336
|
Be.length > 0 ? (C({
|
7337
7337
|
...tc,
|
7338
|
-
date:
|
7338
|
+
date: De(le()),
|
7339
7339
|
user_guid: H?.user_guid || ""
|
7340
7340
|
}), _e(
|
7341
7341
|
"addTransaction"
|
@@ -7478,7 +7478,7 @@ const rc = ({ transaction: e }) => {
|
|
7478
7478
|
Li,
|
7479
7479
|
{
|
7480
7480
|
onClose: nl,
|
7481
|
-
showConnectWidget:
|
7481
|
+
showConnectWidget: Oe,
|
7482
7482
|
title: D.add_manual_account
|
7483
7483
|
}
|
7484
7484
|
)
|
@@ -7492,7 +7492,7 @@ const rc = ({ transaction: e }) => {
|
|
7492
7492
|
repeat_interval: null,
|
7493
7493
|
repeat_month: null,
|
7494
7494
|
repeat_weekday: null,
|
7495
|
-
start_date:
|
7495
|
+
start_date: De(e.expectedDate)
|
7496
7496
|
}, a = `${Qn(e.expectedDate)}`, r = `${Zn(e.expectedDate)}`, o = `${ti(e.expectedDate)}`;
|
7497
7497
|
switch (e.recurrenceType) {
|
7498
7498
|
case q.EveryWeek:
|
@@ -7925,7 +7925,7 @@ const rc = ({ transaction: e }) => {
|
|
7925
7925
|
repeat_week: null,
|
7926
7926
|
repeat_weekday: null,
|
7927
7927
|
repeat_year: null,
|
7928
|
-
start_date:
|
7928
|
+
start_date: De(i),
|
7929
7929
|
transaction_type: e.transaction_type
|
7930
7930
|
};
|
7931
7931
|
switch (n) {
|
@@ -7988,7 +7988,7 @@ const rc = ({ transaction: e }) => {
|
|
7988
7988
|
}) => {
|
7989
7989
|
const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
|
7990
7990
|
return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
7991
|
-
n && /* @__PURE__ */ t(
|
7991
|
+
n && /* @__PURE__ */ t(Ne, { sx: { mx: 24 }, children: n }),
|
7992
7992
|
/* @__PURE__ */ t(
|
7993
7993
|
Mi,
|
7994
7994
|
{
|
@@ -8022,11 +8022,11 @@ const rc = ({ transaction: e }) => {
|
|
8022
8022
|
{ id: q.EveryYear, label: c.frequency_every_year }
|
8023
8023
|
];
|
8024
8024
|
g.useEffect(() => {
|
8025
|
-
const u =
|
8025
|
+
const u = Re(s.date);
|
8026
8026
|
o(qi(u)), r(q.EveryMonth);
|
8027
8027
|
}, [s]);
|
8028
8028
|
const _ = (u) => {
|
8029
|
-
const h =
|
8029
|
+
const h = Re(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case q.EveryWeek:
|
8032
8032
|
o(pa(h));
|
@@ -8226,7 +8226,7 @@ const rc = ({ transaction: e }) => {
|
|
8226
8226
|
transactionGuid: u.transaction_guid
|
8227
8227
|
};
|
8228
8228
|
}), c = a.filter(
|
8229
|
-
(u) => ni(
|
8229
|
+
(u) => ni(Re(u.expected_date), {
|
8230
8230
|
start: He(le()),
|
8231
8231
|
end: Lt(le(), 30)
|
8232
8232
|
})
|
@@ -8257,7 +8257,7 @@ const rc = ({ transaction: e }) => {
|
|
8257
8257
|
};
|
8258
8258
|
}), d = [];
|
8259
8259
|
return i && i.forEach((u) => d.push(...ng(e, u, o))), [...s, ...c, ...d].sort(
|
8260
|
-
(u, h) =>
|
8260
|
+
(u, h) => De(u.occurredOnDate || u.expectedDate) - De(h.occurredOnDate || h.expectedDate)
|
8261
8261
|
);
|
8262
8262
|
}, ng = (e, n, i) => {
|
8263
8263
|
const a = [], r = i.find((C) => C.scheduled_payment_guid === n.guid);
|
@@ -8358,9 +8358,9 @@ const rc = ({ transaction: e }) => {
|
|
8358
8358
|
}
|
8359
8359
|
return a.forEach((C) => {
|
8360
8360
|
const f = i.find(
|
8361
|
-
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date >
|
8361
|
+
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > De(dt(C.expectedDate, 3)) && E.date < De(Lt(C.expectedDate, 3))
|
8362
8362
|
);
|
8363
|
-
f ? (C.transactionGuid = f.guid, C.occurredOnDate =
|
8363
|
+
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Re(f.date), C.activityStatus = Ze.Paid) : Te(C.expectedDate, dt(_, 3)) && (C.activityStatus = Ze.Missed);
|
8364
8364
|
}), a;
|
8365
8365
|
}, ig = (e, n, i, a, r) => a.map((o) => {
|
8366
8366
|
const s = n.find((h) => h.cashflow_sequence_guid === o.guid), c = i.find((h) => h.cashflow_sequence_guid === o.guid), d = r.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
|
@@ -9042,7 +9042,7 @@ class yg {
|
|
9042
9042
|
const r = this.cashflowEvents.findLast((o) => o.guid === n.guid);
|
9043
9043
|
await this.cashflowApi.updateCashflowSequence({
|
9044
9044
|
...a,
|
9045
|
-
end_date: r?.occurred_on ||
|
9045
|
+
end_date: r?.occurred_on || De(/* @__PURE__ */ new Date())
|
9046
9046
|
}), await this.addCashflowSequence({
|
9047
9047
|
...n,
|
9048
9048
|
guid: void 0
|
@@ -9335,7 +9335,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9335
9335
|
] })
|
9336
9336
|
] }),
|
9337
9337
|
/* @__PURE__ */ t(y, { children: o.map((s) => {
|
9338
|
-
const c = a.filter(Mo(s, r)).sort((h, m) =>
|
9338
|
+
const c = a.filter(Mo(s, r)).sort((h, m) => De(h.expectedDate) - De(m.expectedDate)), d = i.filter(
|
9339
9339
|
Mo(s, r)
|
9340
9340
|
), _ = c.reduce(
|
9341
9341
|
(h, m) => h + m.amount,
|
@@ -9818,9 +9818,9 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9818
9818
|
children: i.welcome_sub_title
|
9819
9819
|
}
|
9820
9820
|
),
|
9821
|
-
/* @__PURE__ */ t(
|
9821
|
+
/* @__PURE__ */ t(Ne, { pb: 32, children: i.welcome_description }),
|
9822
9822
|
/* @__PURE__ */ l(y, { direction: "column", mb: 32, spacing: 32, children: [
|
9823
|
-
/* @__PURE__ */ l(
|
9823
|
+
/* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9824
9824
|
/* @__PURE__ */ t(
|
9825
9825
|
L,
|
9826
9826
|
{
|
@@ -9836,7 +9836,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9836
9836
|
),
|
9837
9837
|
i.bullet_one
|
9838
9838
|
] }),
|
9839
|
-
/* @__PURE__ */ l(
|
9839
|
+
/* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9840
9840
|
/* @__PURE__ */ t(
|
9841
9841
|
L,
|
9842
9842
|
{
|
@@ -9852,7 +9852,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9852
9852
|
),
|
9853
9853
|
i.bullet_two
|
9854
9854
|
] }),
|
9855
|
-
/* @__PURE__ */ l(
|
9855
|
+
/* @__PURE__ */ l(Ne, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9856
9856
|
/* @__PURE__ */ t(
|
9857
9857
|
L,
|
9858
9858
|
{
|
@@ -9882,7 +9882,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9882
9882
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
9883
9883
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: Ec.CASHFLOW_LOADING_ANIMATION }) }),
|
9884
9884
|
/* @__PURE__ */ t(cn, { pb: 12, children: e.loading_title }),
|
9885
|
-
/* @__PURE__ */ t(
|
9885
|
+
/* @__PURE__ */ t(Ne, { children: e.loading_description })
|
9886
9886
|
] });
|
9887
9887
|
}, Ug = A(Wg), Vg = vl`
|
9888
9888
|
from {
|
@@ -9958,11 +9958,11 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9958
9958
|
},
|
9959
9959
|
children: [
|
9960
9960
|
/* @__PURE__ */ t(cn, { pb: 12, children: a.add_income_title }),
|
9961
|
-
/* @__PURE__ */ t(
|
9961
|
+
/* @__PURE__ */ t(Ne, { mb: 24, children: a.add_income_description }),
|
9962
9962
|
O.length > 0 && !Z && /* @__PURE__ */ l(j, { children: [
|
9963
9963
|
/* @__PURE__ */ t(ie, { children: O.map((_e, $e) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9964
9964
|
/* @__PURE__ */ t(Sa, { bgcolor: "background.paper", children: Oi(
|
9965
|
-
|
9965
|
+
De(_e.nextDate || _e.date)
|
9966
9966
|
) }),
|
9967
9967
|
/* @__PURE__ */ t(Ea, { transaction: _e }),
|
9968
9968
|
$e !== O.length - 1 && /* @__PURE__ */ t(k, {})
|
@@ -9992,7 +9992,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9992
9992
|
}
|
9993
9993
|
}
|
9994
9994
|
),
|
9995
|
-
!we && s && /* @__PURE__ */ t(
|
9995
|
+
!we && s && /* @__PURE__ */ t(Ne, { color: "error", mt: 16, children: a.confirm_error }),
|
9996
9996
|
Z && /* @__PURE__ */ l(j, { children: [
|
9997
9997
|
/* @__PURE__ */ t(
|
9998
9998
|
mc,
|
@@ -10136,13 +10136,13 @@ class Po {
|
|
10136
10136
|
addCashflowSequence = async (n) => this.fetchInstance.post(G.CASHFLOW_SEQUENCES, { ...n }).then((i) => i.cashflow_sequence);
|
10137
10137
|
getCashflowSequences = async () => this.fetchInstance.get(G.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
10138
10138
|
getCashflowEventsByDateRange = async (n, i) => this.fetchInstance.get(
|
10139
|
-
`${G.CASHFLOW_EVENTS}/from/${
|
10139
|
+
`${G.CASHFLOW_EVENTS}/from/${De(n)}/to/${De(i)}`
|
10140
10140
|
).then((a) => a.cashflow_events);
|
10141
10141
|
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${G.CASHFLOW_SEQUENCES}/${n}`).then((i) => i);
|
10142
10142
|
getProjectedCashflowEvents = async (n, i) => this.fetchInstance.get(
|
10143
|
-
`${G.CASHFLOW_SEQUENCES}/projected_events/from/${
|
10143
|
+
`${G.CASHFLOW_SEQUENCES}/projected_events/from/${De(
|
10144
10144
|
n
|
10145
|
-
)}/to/${
|
10145
|
+
)}/to/${De(i)}`
|
10146
10146
|
).then((a) => a.cashflow_events);
|
10147
10147
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${G.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((i) => i.cashflow_sequence);
|
10148
10148
|
}
|
@@ -11916,7 +11916,7 @@ function Zm(e, n) {
|
|
11916
11916
|
style: "percent",
|
11917
11917
|
minimumFractionDigits: 0,
|
11918
11918
|
maximumFractionDigits: 0
|
11919
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ?
|
11919
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Re(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
11921
|
Ca(a, s)
|
11922
11922
|
), u = S(
|
@@ -12081,7 +12081,7 @@ const Jm = (e, n) => {
|
|
12081
12081
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12082
12082
|
n.goal_projection,
|
12083
12083
|
ne(
|
12084
|
-
|
12084
|
+
Re(f.projected_to_complete_at || 0),
|
12085
12085
|
ee.MONTH_SHORT_YEAR
|
12086
12086
|
)
|
12087
12087
|
) })
|
@@ -12136,7 +12136,7 @@ const Jm = (e, n) => {
|
|
12136
12136
|
onPrimaryAction: m,
|
12137
12137
|
title: n.reorder_goals_title,
|
12138
12138
|
children: /* @__PURE__ */ l(y, { children: [
|
12139
|
-
/* @__PURE__ */ t(
|
12139
|
+
/* @__PURE__ */ t(Ne, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
|
12140
12140
|
/* @__PURE__ */ t(
|
12141
12141
|
Kn,
|
12142
12142
|
{
|
@@ -12184,7 +12184,7 @@ const Jm = (e, n) => {
|
|
12184
12184
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12185
12185
|
i.goal_projection,
|
12186
12186
|
ne(
|
12187
|
-
|
12187
|
+
Re(e.projected_to_complete_at || 0),
|
12188
12188
|
ee.MONTH_SHORT_YEAR
|
12189
12189
|
)
|
12190
12190
|
) })
|
@@ -12202,7 +12202,7 @@ const Jm = (e, n) => {
|
|
12202
12202
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12203
12203
|
n.completed_label,
|
12204
12204
|
ne(
|
12205
|
-
|
12205
|
+
Re(e.completed_at || 0),
|
12206
12206
|
ee.MONTH_SHORT_YEAR
|
12207
12207
|
)
|
12208
12208
|
) })
|
@@ -12229,7 +12229,7 @@ const Jm = (e, n) => {
|
|
12229
12229
|
children: /* @__PURE__ */ l(y, { children: [
|
12230
12230
|
/* @__PURE__ */ l(y, { m: 24, children: [
|
12231
12231
|
/* @__PURE__ */ t(mt, { children: h }),
|
12232
|
-
/* @__PURE__ */ t(
|
12232
|
+
/* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
12233
12233
|
] }),
|
12234
12234
|
/* @__PURE__ */ t(tp, { trackType: e }),
|
12235
12235
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
|
@@ -12290,7 +12290,7 @@ const Jm = (e, n) => {
|
|
12290
12290
|
py: 18,
|
12291
12291
|
children: [
|
12292
12292
|
/* @__PURE__ */ t(
|
12293
|
-
|
12293
|
+
Ne,
|
12294
12294
|
{
|
12295
12295
|
sx: (u) => ({
|
12296
12296
|
color: "text.secondary",
|
@@ -12310,7 +12310,7 @@ const Jm = (e, n) => {
|
|
12310
12310
|
e !== U.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
|
12311
12311
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
|
12312
12312
|
d.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
|
12313
|
-
|
12313
|
+
Ne,
|
12314
12314
|
{
|
12315
12315
|
sx: (u) => ({
|
12316
12316
|
color: "text.secondary",
|
@@ -12384,7 +12384,7 @@ const Jm = (e, n) => {
|
|
12384
12384
|
onPrimaryAction: () => a(c),
|
12385
12385
|
title: r,
|
12386
12386
|
children: [
|
12387
|
-
/* @__PURE__ */ t(
|
12387
|
+
/* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: o.select_debt_accounts_description }),
|
12388
12388
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
|
12389
12389
|
/* @__PURE__ */ t(k, { variant: "fullWidth" }),
|
12390
12390
|
e.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -12659,8 +12659,8 @@ const Jm = (e, n) => {
|
|
12659
12659
|
}
|
12660
12660
|
);
|
12661
12661
|
}, _p = A(({ goal: e }) => {
|
12662
|
-
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(
|
12663
|
-
o && la(o) && (await a({ ...i, birthday:
|
12662
|
+
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(Re(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
12663
|
+
o && la(o) && (await a({ ...i, birthday: De(o) }), r(n.alert_goal_updated_birthday));
|
12664
12664
|
};
|
12665
12665
|
return /* @__PURE__ */ t(
|
12666
12666
|
tn,
|
@@ -12670,7 +12670,7 @@ const Jm = (e, n) => {
|
|
12670
12670
|
label: n.details_birthday,
|
12671
12671
|
onSave: u,
|
12672
12672
|
primaryText: n.details_birthday,
|
12673
|
-
secondaryText: `${ne(
|
12673
|
+
secondaryText: `${ne(Re(i.birthday ?? 0), ee.MONTH_DAY_YEAR)}`,
|
12674
12674
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12675
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
12676
|
da,
|
@@ -13509,7 +13509,7 @@ const Oc = 13, xp = (e, n) => e.filter((i) => {
|
|
13509
13509
|
return e[e.length - 1];
|
13510
13510
|
}, wp = (e, n) => e.year_month - n.year_month, Np = () => Array.from({ length: Oc }, (e, n) => Math.floor(He(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Dp = (e, n, i) => !e.length || !n.length ? [] : Np().reduceRight((r, o) => {
|
13511
13511
|
const s = n.filter(
|
13512
|
-
({ year_month: u }) => u === parseInt(It(
|
13512
|
+
({ year_month: u }) => u === parseInt(It(Re(o), "yyyyMM"))
|
13513
13513
|
), c = e.map((u) => {
|
13514
13514
|
const h = s.find((C) => C.account_guid === u.guid), m = {
|
13515
13515
|
change: 0,
|
@@ -13649,7 +13649,7 @@ const Mp = ({
|
|
13649
13649
|
selectedData: o
|
13650
13650
|
}) => {
|
13651
13651
|
const { isMobile: s } = xe(), { availableWidth: c } = $n(), d = et(), _ = c - 320, u = e.map((f) => ({
|
13652
|
-
x: It(
|
13652
|
+
x: It(Re(f.x), "MMM"),
|
13653
13653
|
y: f.y
|
13654
13654
|
})), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
|
13655
13655
|
fill: f === h?.index ? d.palette.success.main : "",
|
@@ -14016,8 +14016,8 @@ const Mp = ({
|
|
14016
14016
|
}, [i, a]), g.useEffect(() => {
|
14017
14017
|
x(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
14018
14018
|
}, [R]);
|
14019
|
-
const re = (ct,
|
14020
|
-
b(
|
14019
|
+
const re = (ct, Oe) => {
|
14020
|
+
b(Oe), ct.currentTarget instanceof HTMLDivElement && O(!0);
|
14021
14021
|
}, Se = (ct) => {
|
14022
14022
|
E(ct);
|
14023
14023
|
}, Pe = () => {
|
@@ -14025,8 +14025,8 @@ const Mp = ({
|
|
14025
14025
|
}, _e = () => {
|
14026
14026
|
x(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), X(!0);
|
14027
14027
|
}, $e = async (ct) => {
|
14028
|
-
const
|
14029
|
-
|
14028
|
+
const Oe = ct[0], ut = ct[1];
|
14029
|
+
Oe && ut && D(dd(ut, Oe));
|
14030
14030
|
}, it = {
|
14031
14031
|
chartData: C,
|
14032
14032
|
hoveredData: u,
|
@@ -14726,7 +14726,7 @@ const l1 = ({
|
|
14726
14726
|
] }) }),
|
14727
14727
|
i && /* @__PURE__ */ t(k, {})
|
14728
14728
|
] });
|
14729
|
-
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(
|
14729
|
+
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(Ne, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), ge = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), Q = ({
|
14730
14730
|
items: e,
|
14731
14731
|
listType: n = "ul",
|
14732
14732
|
subItemPlacement: i,
|
@@ -17139,7 +17139,7 @@ const l1 = ({
|
|
17139
17139
|
]
|
17140
17140
|
}
|
17141
17141
|
),
|
17142
|
-
e && /* @__PURE__ */ t(
|
17142
|
+
e && /* @__PURE__ */ t(Ne, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
|
17143
17143
|
] }), D1 = ({
|
17144
17144
|
alert: e,
|
17145
17145
|
copy: n,
|
@@ -17453,7 +17453,7 @@ const l1 = ({
|
|
17453
17453
|
}, P1 = ({ copy: e, onButtonClick: n }) => {
|
17454
17454
|
const i = B1();
|
17455
17455
|
return /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 5 }, children: [
|
17456
|
-
/* @__PURE__ */ t(
|
17456
|
+
/* @__PURE__ */ t(Ne, { color: "text.secondary", sx: i, children: e.contact_support }),
|
17457
17457
|
/* @__PURE__ */ t(
|
17458
17458
|
p,
|
17459
17459
|
{
|
@@ -17511,7 +17511,7 @@ const l1 = ({
|
|
17511
17511
|
}
|
17512
17512
|
),
|
17513
17513
|
/* @__PURE__ */ t(
|
17514
|
-
|
17514
|
+
Ne,
|
17515
17515
|
{
|
17516
17516
|
color: "secondary",
|
17517
17517
|
sx: {
|
@@ -17542,7 +17542,7 @@ const l1 = ({
|
|
17542
17542
|
/* @__PURE__ */ t(y, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(B, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
17543
17543
|
/* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
17544
17544
|
/* @__PURE__ */ t(Hn, { children: e.request_support_success }),
|
17545
|
-
/* @__PURE__ */ t(
|
17545
|
+
/* @__PURE__ */ t(Ne, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
17546
17546
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
|
17547
17547
|
] }),
|
17548
17548
|
/* @__PURE__ */ t(J, { fullWidth: !0, onClick: r, variant: "contained", children: o.done_button }),
|
@@ -17878,7 +17878,13 @@ const l1 = ({
|
|
17878
17878
|
] });
|
17879
17879
|
}), Y1 = () => {
|
17880
17880
|
const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } = fa(), { updateUser: d } = Bt(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [b, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [D, H] = g.useState(
|
17881
|
-
_.birthday && _.birthday > 0 ?
|
17881
|
+
_.birthday && _.birthday > 0 ? new Date(
|
17882
|
+
Date.UTC(
|
17883
|
+
Re(_.birthday).getUTCFullYear(),
|
17884
|
+
Re(_.birthday).getUTCMonth(),
|
17885
|
+
Re(_.birthday).getUTCDate()
|
17886
|
+
)
|
17887
|
+
) : null
|
17882
17888
|
), O = f && !_.email_is_verified, M = b && !_.phone_is_verified;
|
17883
17889
|
g.useEffect(() => {
|
17884
17890
|
console.log(_);
|
@@ -17890,7 +17896,7 @@ const l1 = ({
|
|
17890
17896
|
last_name: m,
|
17891
17897
|
email: f,
|
17892
17898
|
phone: b,
|
17893
|
-
birthday: D ?
|
17899
|
+
birthday: D ? Date.UTC(D.getUTCFullYear(), D.getUTCMonth(), D.getUTCDate()) / 1e3 : null,
|
17894
17900
|
postal_code: x,
|
17895
17901
|
credit_score: v
|
17896
17902
|
};
|
@@ -17910,7 +17916,7 @@ const l1 = ({
|
|
17910
17916
|
},
|
17911
17917
|
children: [
|
17912
17918
|
/* @__PURE__ */ t(mt, { children: i.personal_details }),
|
17913
|
-
/* @__PURE__ */ t(
|
17919
|
+
/* @__PURE__ */ t(Ne, { variant: "Body", children: i.update_information }),
|
17914
17920
|
/* @__PURE__ */ l(
|
17915
17921
|
y,
|
17916
17922
|
{
|
@@ -18057,7 +18063,7 @@ const X1 = ({
|
|
18057
18063
|
field: "created_at",
|
18058
18064
|
headerName: r.mobile_devices_column_added,
|
18059
18065
|
renderHeader: Ut,
|
18060
|
-
valueFormatter: (c) => As(
|
18066
|
+
valueFormatter: (c) => As(Re(c), { addSuffix: !0 }),
|
18061
18067
|
sortable: !0,
|
18062
18068
|
hideSortIcons: !1,
|
18063
18069
|
flex: 1,
|
@@ -18161,7 +18167,7 @@ const X1 = ({
|
|
18161
18167
|
children: /* @__PURE__ */ l(y, { gap: 4, children: [
|
18162
18168
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
|
18163
18169
|
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
|
18164
|
-
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(
|
18170
|
+
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(Re(d.created_at), { addSuffix: !0 }) })
|
18165
18171
|
] })
|
18166
18172
|
}
|
18167
18173
|
),
|
@@ -18342,7 +18348,7 @@ const X1 = ({
|
|
18342
18348
|
/* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
|
18343
18349
|
] }),
|
18344
18350
|
e === ot.Edit && /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(rt, { onChange: (x) => C(x.target.value), value: m }) }),
|
18345
|
-
e === ot.Delete && /* @__PURE__ */ t(
|
18351
|
+
e === ot.Delete && /* @__PURE__ */ t(Ne, { children: c.mobile_devices_delete_info })
|
18346
18352
|
]
|
18347
18353
|
}
|
18348
18354
|
);
|
@@ -18372,7 +18378,7 @@ const X1 = ({
|
|
18372
18378
|
children: [
|
18373
18379
|
/* @__PURE__ */ l(y, { gap: 4, children: [
|
18374
18380
|
/* @__PURE__ */ t(mt, { children: n.mobile_devices_title }),
|
18375
|
-
/* @__PURE__ */ t(
|
18381
|
+
/* @__PURE__ */ t(Ne, { variant: "Body", children: n.mobile_devices_info })
|
18376
18382
|
] }),
|
18377
18383
|
e ? /* @__PURE__ */ t(
|
18378
18384
|
q1,
|
@@ -18391,7 +18397,7 @@ const X1 = ({
|
|
18391
18397
|
),
|
18392
18398
|
/* @__PURE__ */ l(y, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
18393
18399
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.mobile_devices_access_title }),
|
18394
|
-
/* @__PURE__ */ t(
|
18400
|
+
/* @__PURE__ */ t(Ne, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
|
18395
18401
|
/* @__PURE__ */ t(J, { onClick: f, variant: "text", children: n.mobile_devices_access_cta })
|
18396
18402
|
] }),
|
18397
18403
|
/* @__PURE__ */ t(
|
@@ -18571,7 +18577,7 @@ const X1 = ({
|
|
18571
18577
|
}, []), /* @__PURE__ */ l(y, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
18572
18578
|
/* @__PURE__ */ l(y, { sx: { px: r || a ? 0 : 24 }, children: [
|
18573
18579
|
/* @__PURE__ */ t(mt, { children: e.transaction_rules_label }),
|
18574
|
-
/* @__PURE__ */ t(
|
18580
|
+
/* @__PURE__ */ t(Ne, { variant: "Body", children: e.transaction_rules_description })
|
18575
18581
|
] }),
|
18576
18582
|
/* @__PURE__ */ t(ie, { children: i.map((o, s) => /* @__PURE__ */ t(aC, { rule: o }, s)) })
|
18577
18583
|
] });
|
@@ -18742,7 +18748,7 @@ const X1 = ({
|
|
18742
18748
|
}
|
18743
18749
|
)
|
18744
18750
|
] }),
|
18745
|
-
/* @__PURE__ */ t(
|
18751
|
+
/* @__PURE__ */ t(Ne, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` })
|
18746
18752
|
] }),
|
18747
18753
|
s && n.children?.length && n.children.length > 0 && /* @__PURE__ */ l(y, { children: [
|
18748
18754
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: "Accounts" }),
|
@@ -19111,9 +19117,9 @@ const lC = (e) => {
|
|
19111
19117
|
}
|
19112
19118
|
for (const c of n) {
|
19113
19119
|
const d = e.transactions.find(
|
19114
|
-
(_) => _.repeating_transaction_guid === e.guid && _.date >
|
19120
|
+
(_) => _.repeating_transaction_guid === e.guid && _.date > De(dt(c.expectedDate, 5)) && _.date < De(Lt(c.expectedDate, 5))
|
19115
19121
|
);
|
19116
|
-
d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate =
|
19122
|
+
d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate = Re(d.date)) : Te(c.expectedDate, dt(le(), 3)) && (c.status = Je.Missed);
|
19117
19123
|
}
|
19118
19124
|
return n;
|
19119
19125
|
}, uC = (e, n, i) => {
|
@@ -19166,7 +19172,7 @@ const lC = (e) => {
|
|
19166
19172
|
n.push(...a);
|
19167
19173
|
}
|
19168
19174
|
return n.sort(
|
19169
|
-
(i, a) =>
|
19175
|
+
(i, a) => De(i.occurredOnDate || i.expectedDate) - De(a.occurredOnDate || a.expectedDate)
|
19170
19176
|
);
|
19171
19177
|
}, Va = (e, n, i) => {
|
19172
19178
|
const a = [];
|
@@ -19832,7 +19838,7 @@ const Ka = ({
|
|
19832
19838
|
};
|
19833
19839
|
default: {
|
19834
19840
|
const a = () => {
|
19835
|
-
const r = e.successfully_aggregated_at ?
|
19841
|
+
const r = e.successfully_aggregated_at ? Re(e.successfully_aggregated_at) : void 0, o = r && ne(r, ee.TIME_STAMP_HOUR_MINUTE);
|
19836
19842
|
if (o)
|
19837
19843
|
return ur(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
|
19838
19844
|
n.last_updated_at,
|
@@ -23388,7 +23394,7 @@ const Gi = g.createContext(null), zf = ({
|
|
23388
23394
|
E && E <= 325 && x(3);
|
23389
23395
|
}, [E]);
|
23390
23396
|
const { cardStyle: R, linkTextStyle: D } = h, H = f ? R : { border: "none", boxShadow: "none", ...R }, O = /* @__PURE__ */ t(
|
23391
|
-
|
23397
|
+
Ne,
|
23392
23398
|
{
|
23393
23399
|
className: "mx-micro-card-description",
|
23394
23400
|
color: m.textColor ? "undefined" : "text.primary",
|
@@ -24603,11 +24609,11 @@ const Gi = g.createContext(null), zf = ({
|
|
24603
24609
|
w.card_position_in_carousel_aria,
|
24604
24610
|
Pe.toString(),
|
24605
24611
|
_e.toString()
|
24606
|
-
), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title,
|
24612
|
+
), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title, Oe = $t ? re.micro_description : re.description;
|
24607
24613
|
return /* @__PURE__ */ t(
|
24608
24614
|
i0,
|
24609
24615
|
{
|
24610
|
-
ariaLabel: `${$e}: ${ct}, ${
|
24616
|
+
ariaLabel: `${$e}: ${ct}, ${Oe}`,
|
24611
24617
|
beat: re,
|
24612
24618
|
index: Se,
|
24613
24619
|
isActiveCard: Se === Z,
|
@@ -25295,7 +25301,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25295
25301
|
}) => {
|
25296
25302
|
const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
|
25297
25303
|
return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
25298
|
-
n && /* @__PURE__ */ t(
|
25304
|
+
n && /* @__PURE__ */ t(Ne, { sx: { mx: 24 }, children: n }),
|
25299
25305
|
/* @__PURE__ */ t(
|
25300
25306
|
Mi,
|
25301
25307
|
{
|
@@ -25331,11 +25337,11 @@ const Gi = g.createContext(null), zf = ({
|
|
25331
25337
|
{ id: Ae.EveryYear, label: c.frequency_every_year }
|
25332
25338
|
];
|
25333
25339
|
g.useEffect(() => {
|
25334
|
-
const u =
|
25340
|
+
const u = Re(s.date);
|
25335
25341
|
o(qi(u)), r(Ae.EveryMonth);
|
25336
25342
|
}, [s]);
|
25337
25343
|
const _ = (u) => {
|
25338
|
-
const h =
|
25344
|
+
const h = Re(s.date);
|
25339
25345
|
switch (Number(u.target.value)) {
|
25340
25346
|
case Ae.EveryWeek:
|
25341
25347
|
o(pa(h));
|
@@ -26805,45 +26811,45 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26805
26811
|
}, [C, f, X]);
|
26806
26812
|
const Z = g.useMemo(() => {
|
26807
26813
|
if (!x) return { stackedDatasets: [], unstackedDatasets: [] };
|
26808
|
-
const
|
26814
|
+
const Oe = K0(
|
26809
26815
|
_,
|
26810
26816
|
X.start,
|
26811
26817
|
X.end
|
26812
|
-
), ut = O.length ?
|
26818
|
+
), ut = O.length ? Oe.filter(
|
26813
26819
|
(un) => un.top_level_category_guid === O || un.category_guid === O
|
26814
|
-
) : im(
|
26820
|
+
) : im(Oe);
|
26815
26821
|
return {
|
26816
26822
|
stackedDatasets: ut.filter(tm),
|
26817
26823
|
unstackedDatasets: ut.filter(va)
|
26818
26824
|
};
|
26819
26825
|
}, [_, O, X]), we = g.useMemo(() => {
|
26820
|
-
const
|
26826
|
+
const Oe = ne(
|
26821
26827
|
X.start,
|
26822
26828
|
s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
|
26823
26829
|
), ut = ne(
|
26824
26830
|
X.end,
|
26825
26831
|
s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
|
26826
26832
|
);
|
26827
|
-
return `${
|
26828
|
-
}, [X, s]), re = (
|
26833
|
+
return `${Oe} - ${ut}`;
|
26834
|
+
}, [X, s]), re = (Oe, ut) => {
|
26829
26835
|
H(ut ?? D), a(F.TRENDS_CLICK_TOGGLE);
|
26830
|
-
}, Se = (
|
26831
|
-
const ut = to(
|
26836
|
+
}, Se = (Oe) => {
|
26837
|
+
const ut = to(Oe?.[0], 1), un = Oe?.[1], se = Hd(un, ut);
|
26832
26838
|
W({ start: ut, end: un }), a(F.TRENDS_CLICK_DATE, {
|
26833
26839
|
time_period: se + "M"
|
26834
26840
|
});
|
26835
26841
|
}, Pe = () => {
|
26836
26842
|
a(F.TRENDS_CLICK_FILTER);
|
26837
|
-
}, _e = (
|
26838
|
-
M(
|
26839
|
-
}, $e = (
|
26840
|
-
M(
|
26841
|
-
}, it = (
|
26842
|
-
a(F.TRENDS_HOVER_LEGEND, { category: u(
|
26843
|
-
}, $t = (
|
26844
|
-
a(F.TRENDS_HOVER_AREA, { category:
|
26845
|
-
}, ct = (
|
26846
|
-
a(F.TRENDS_HOVER_POINT, { category:
|
26843
|
+
}, _e = (Oe) => {
|
26844
|
+
M(Oe);
|
26845
|
+
}, $e = (Oe) => {
|
26846
|
+
M(Oe), a(F.TRENDS_CLICK_LEGEND, { category: u(Oe) });
|
26847
|
+
}, it = (Oe) => {
|
26848
|
+
a(F.TRENDS_HOVER_LEGEND, { category: u(Oe) });
|
26849
|
+
}, $t = (Oe) => {
|
26850
|
+
a(F.TRENDS_HOVER_AREA, { category: Oe });
|
26851
|
+
}, ct = (Oe) => {
|
26852
|
+
a(F.TRENDS_HOVER_POINT, { category: Oe });
|
26847
26853
|
};
|
26848
26854
|
return !m || !C || !x ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
26849
26855
|
Nt,
|
@@ -26896,7 +26902,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26896
26902
|
onChange: re,
|
26897
26903
|
orientation: "horizontal",
|
26898
26904
|
value: D,
|
26899
|
-
children: ["Chart", "Table"].map((
|
26905
|
+
children: ["Chart", "Table"].map((Oe) => /* @__PURE__ */ t(
|
26900
26906
|
aa,
|
26901
26907
|
{
|
26902
26908
|
sx: {
|
@@ -26921,10 +26927,10 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26921
26927
|
color: i.palette.grey[500]
|
26922
26928
|
}
|
26923
26929
|
},
|
26924
|
-
value:
|
26925
|
-
children:
|
26930
|
+
value: Oe,
|
26931
|
+
children: Oe === "Chart" ? /* @__PURE__ */ t(B, { name: "table_chart_view" }) : /* @__PURE__ */ t(B, { name: "format_list_bulleted" })
|
26926
26932
|
},
|
26927
|
-
|
26933
|
+
Oe
|
26928
26934
|
))
|
26929
26935
|
}
|
26930
26936
|
)
|