@mx-cartographer/experiences 6.2.2 → 6.2.3-alpha.al1
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 +71 -65
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -19,7 +19,7 @@ import { isBefore as ve } 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 ke } from "date-fns/fromUnixTime";
|
23
23
|
import { Honeybadger as Pi } from "@honeybadger-io/react";
|
24
24
|
import zr from "numeral";
|
25
25
|
import ee from "@mui/material/Button";
|
@@ -63,7 +63,7 @@ import { startOfYear as qr } from "date-fns/startOfYear";
|
|
63
63
|
import { subDays as ut } from "date-fns/subDays";
|
64
64
|
import { subYears as qa } from "date-fns/subYears";
|
65
65
|
import Hl from "@mui/material/ButtonGroup";
|
66
|
-
import
|
66
|
+
import Me from "@mui/material/Tab";
|
67
67
|
import Lt from "@mui/material/Tabs";
|
68
68
|
import aa from "@mui/material/ToggleButton";
|
69
69
|
import lr from "@mui/material/ToggleButtonGroup";
|
@@ -861,9 +861,9 @@ const hn = 44, ro = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
861
861
|
const n = fr(e);
|
862
862
|
return Sn(n, 1);
|
863
863
|
}, $s = (e) => ei(e, 1), Ci = (e) => {
|
864
|
-
const n =
|
864
|
+
const n = ke(e);
|
865
865
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
866
|
-
}, Oi = (e) => ie(
|
866
|
+
}, Oi = (e) => ie(ke(e), te.DAY_OF_WEEK_MONTH_DAY), Fs = (e) => e ? ie(ke(e), te.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) => {
|
@@ -2973,7 +2973,7 @@ const bu = ({
|
|
2973
2973
|
value: x,
|
2974
2974
|
variant: "fullWidth",
|
2975
2975
|
children: D.tabs.map((H) => /* @__PURE__ */ t(
|
2976
|
-
|
2976
|
+
Me,
|
2977
2977
|
{
|
2978
2978
|
label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: H.label }),
|
2979
2979
|
sx: { minWidth: 80 },
|
@@ -4932,7 +4932,7 @@ const r_ = [
|
|
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 = ke(c.date);
|
4936
4936
|
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ie(u, te.MONTH)) || Ft(s, ie(u, te.DAY)) || Ft(s, ie(u, te.FULL_MONTH_DAY)) || Ft(s, ie(u, te.MONTH_DAY_YEAR)) || Ft(s, vt(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) => {
|
@@ -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: ke(i), end: ke(n) }
|
5126
5126
|
});
|
5127
5127
|
};
|
5128
5128
|
modifyTransactionByAccountGuid = (n, i) => {
|
@@ -5219,7 +5219,7 @@ const At = () => {
|
|
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: ie(
|
5222
|
+
Date: ie(ke(i.date), te.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 At = () => {
|
|
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_), To = (e, n) => {
|
5303
|
-
const i =
|
5303
|
+
const i = ke(n[e].date), a = ke(n[e - 1]?.date);
|
5304
5304
|
return !dt(i, a);
|
5305
5305
|
}, x_ = (e, n) => {
|
5306
|
-
const i =
|
5306
|
+
const i = ke(n[e].date), a = ke(n[e + 1]?.date);
|
5307
5307
|
return dt(i, a);
|
5308
5308
|
}, Ao = 65, Io = 34, v_ = ({
|
5309
5309
|
bgcolor: e,
|
@@ -5398,7 +5398,7 @@ const At = () => {
|
|
5398
5398
|
]
|
5399
5399
|
}
|
5400
5400
|
);
|
5401
|
-
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ie(
|
5401
|
+
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ie(ke(e.row.date), te.MONTH_DAY) }), L_ = (e) => {
|
5402
5402
|
const n = at(), { 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
|
M,
|
@@ -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: ie(
|
6184
|
+
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ie(ke(e.date), te.YEAR_MONTH_DAY) })
|
6185
6185
|
}
|
6186
6186
|
),
|
6187
6187
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(P, { name: "chevron_right", weight: bt.Dark }) })
|
@@ -6201,7 +6201,7 @@ const rc = ({ transaction: e }) => {
|
|
6201
6201
|
children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
6202
6202
|
bu,
|
6203
6203
|
{
|
6204
|
-
beginDate:
|
6204
|
+
beginDate: ke(_),
|
6205
6205
|
copy: {
|
6206
6206
|
nextAria: s.date_next_aria,
|
6207
6207
|
prevAria: s.date_prev_aria,
|
@@ -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 = ke(s.date);
|
8026
8026
|
o(qi(u)), r(Q.EveryMonth);
|
8027
8027
|
}, [s]);
|
8028
8028
|
const _ = (u) => {
|
8029
|
-
const h =
|
8029
|
+
const h = ke(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case Q.EveryWeek:
|
8032
8032
|
o(ma(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(ke(u.expected_date), {
|
8230
8230
|
start: Fe(le()),
|
8231
8231
|
end: Mt(le(), 30)
|
8232
8232
|
})
|
@@ -8360,7 +8360,7 @@ const rc = ({ transaction: e }) => {
|
|
8360
8360
|
const f = i.find(
|
8361
8361
|
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Oe(ut(C.expectedDate, 3)) && E.date < Oe(Mt(C.expectedDate, 3))
|
8362
8362
|
);
|
8363
|
-
f ? (C.transactionGuid = f.guid, C.occurredOnDate =
|
8363
|
+
f ? (C.transactionGuid = f.guid, C.occurredOnDate = ke(f.date), C.activityStatus = et.Paid) : ve(C.expectedDate, ut(_, 3)) && (C.activityStatus = et.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);
|
@@ -8416,14 +8416,14 @@ const rc = ({ transaction: e }) => {
|
|
8416
8416
|
variant: "fullWidth",
|
8417
8417
|
children: [
|
8418
8418
|
/* @__PURE__ */ t(
|
8419
|
-
|
8419
|
+
Me,
|
8420
8420
|
{
|
8421
8421
|
label: a.manage_expenses,
|
8422
8422
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
8423
8423
|
}
|
8424
8424
|
),
|
8425
8425
|
/* @__PURE__ */ t(
|
8426
|
-
|
8426
|
+
Me,
|
8427
8427
|
{
|
8428
8428
|
label: a.manage_income,
|
8429
8429
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
@@ -8732,13 +8732,13 @@ const rc = ({ transaction: e }) => {
|
|
8732
8732
|
(i || n) && /* @__PURE__ */ l(M, { children: [
|
8733
8733
|
/* @__PURE__ */ l(Lt, { onChange: $, value: u, variant: "fullWidth", children: [
|
8734
8734
|
/* @__PURE__ */ t(
|
8735
|
-
|
8735
|
+
Me,
|
8736
8736
|
{
|
8737
8737
|
label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e.upcoming })
|
8738
8738
|
}
|
8739
8739
|
),
|
8740
8740
|
/* @__PURE__ */ t(
|
8741
|
-
|
8741
|
+
Me,
|
8742
8742
|
{
|
8743
8743
|
label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: e.paid })
|
8744
8744
|
}
|
@@ -9640,7 +9640,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9640
9640
|
variant: "fullWidth",
|
9641
9641
|
children: [
|
9642
9642
|
/* @__PURE__ */ t(
|
9643
|
-
|
9643
|
+
Me,
|
9644
9644
|
{
|
9645
9645
|
"aria-controls": "cashflow-tabpanel-0",
|
9646
9646
|
id: "cashflow-tab-0",
|
@@ -9649,7 +9649,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9649
9649
|
}
|
9650
9650
|
),
|
9651
9651
|
/* @__PURE__ */ t(
|
9652
|
-
|
9652
|
+
Me,
|
9653
9653
|
{
|
9654
9654
|
"aria-controls": "cashflow-tabpanel-1",
|
9655
9655
|
id: "cashflow-tab-1",
|
@@ -11278,7 +11278,7 @@ const Ic = ({
|
|
11278
11278
|
variant: "fullWidth",
|
11279
11279
|
children: [
|
11280
11280
|
/* @__PURE__ */ t(
|
11281
|
-
|
11281
|
+
Me,
|
11282
11282
|
{
|
11283
11283
|
"aria-controls": "debt-schedule-tabpanel-0",
|
11284
11284
|
id: "debt-schedule-tab-0",
|
@@ -11287,7 +11287,7 @@ const Ic = ({
|
|
11287
11287
|
}
|
11288
11288
|
),
|
11289
11289
|
/* @__PURE__ */ t(
|
11290
|
-
|
11290
|
+
Me,
|
11291
11291
|
{
|
11292
11292
|
"aria-controls": "debt-details-tabpanel-1",
|
11293
11293
|
id: "debt-details-tab-1",
|
@@ -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 ? ke(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
11921
|
pa(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
|
ie(
|
12084
|
-
|
12084
|
+
ke(f.projected_to_complete_at || 0),
|
12085
12085
|
te.MONTH_SHORT_YEAR
|
12086
12086
|
)
|
12087
12087
|
) })
|
@@ -12184,7 +12184,7 @@ const Jm = (e, n) => {
|
|
12184
12184
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12185
12185
|
i.goal_projection,
|
12186
12186
|
ie(
|
12187
|
-
|
12187
|
+
ke(e.projected_to_complete_at || 0),
|
12188
12188
|
te.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
|
ie(
|
12205
|
-
|
12205
|
+
ke(e.completed_at || 0),
|
12206
12206
|
te.MONTH_SHORT_YEAR
|
12207
12207
|
)
|
12208
12208
|
) })
|
@@ -12659,7 +12659,7 @@ 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 } = ot(), [o, s] = g.useState(
|
12662
|
+
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = ot(), [o, s] = g.useState(ke(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
12663
12663
|
o && ur(o) && (await a({ ...i, birthday: Oe(o) }), r(n.alert_goal_updated_birthday));
|
12664
12664
|
};
|
12665
12665
|
return /* @__PURE__ */ t(
|
@@ -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: `${ie(
|
12673
|
+
secondaryText: `${ie(ke(i.birthday ?? 0), te.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
|
la,
|
@@ -12885,7 +12885,7 @@ const Jm = (e, n) => {
|
|
12885
12885
|
variant: "fullWidth",
|
12886
12886
|
children: [
|
12887
12887
|
/* @__PURE__ */ t(
|
12888
|
-
|
12888
|
+
Me,
|
12889
12889
|
{
|
12890
12890
|
disabled: V,
|
12891
12891
|
label: /* @__PURE__ */ t(Fa, { subtitle: O, title: d.tab_saving_title }),
|
@@ -12893,7 +12893,7 @@ const Jm = (e, n) => {
|
|
12893
12893
|
}
|
12894
12894
|
),
|
12895
12895
|
/* @__PURE__ */ t(
|
12896
|
-
|
12896
|
+
Me,
|
12897
12897
|
{
|
12898
12898
|
disabled: V,
|
12899
12899
|
label: /* @__PURE__ */ t(Fa, { subtitle: L, title: d.tab_debt_title }),
|
@@ -12901,7 +12901,7 @@ const Jm = (e, n) => {
|
|
12901
12901
|
}
|
12902
12902
|
),
|
12903
12903
|
/* @__PURE__ */ t(
|
12904
|
-
|
12904
|
+
Me,
|
12905
12905
|
{
|
12906
12906
|
disabled: V,
|
12907
12907
|
label: /* @__PURE__ */ t(Fa, { subtitle: U, title: d.tab_retirement_title }),
|
@@ -13524,7 +13524,7 @@ const Oc = 13, xp = (e, n) => e.filter((i) => {
|
|
13524
13524
|
return e[e.length - 1];
|
13525
13525
|
}, wp = (e, n) => e.year_month - n.year_month, Np = () => Array.from({ length: Oc }, (e, n) => Math.floor(Fe(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Dp = (e, n, i) => !e.length || !n.length ? [] : Np().reduceRight((r, o) => {
|
13526
13526
|
const s = n.filter(
|
13527
|
-
({ year_month: u }) => u === parseInt(vt(
|
13527
|
+
({ year_month: u }) => u === parseInt(vt(ke(o), "yyyyMM"))
|
13528
13528
|
), c = e.map((u) => {
|
13529
13529
|
const h = s.find((C) => C.account_guid === u.guid), m = {
|
13530
13530
|
change: 0,
|
@@ -13664,7 +13664,7 @@ const Mp = ({
|
|
13664
13664
|
selectedData: o
|
13665
13665
|
}) => {
|
13666
13666
|
const { isMobile: s } = De(), { availableWidth: c } = $n(), d = at(), _ = c - 320, u = e.map((f) => ({
|
13667
|
-
x: vt(
|
13667
|
+
x: vt(ke(f.x), "MMM"),
|
13668
13668
|
y: f.y
|
13669
13669
|
})), 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) => ({
|
13670
13670
|
fill: f === h?.index ? d.palette.success.main : "",
|
@@ -14486,7 +14486,7 @@ class o1 {
|
|
14486
14486
|
});
|
14487
14487
|
};
|
14488
14488
|
updateUser = async (n) => {
|
14489
|
-
this.globalStore.userStore.updateUser(n).then(() => {
|
14489
|
+
console.log("updated user birthday is ", n.birthday), this.globalStore.userStore.updateUser(n).then(() => {
|
14490
14490
|
this.setAlert(this.copy.information_updated_success, "success");
|
14491
14491
|
}).catch(() => {
|
14492
14492
|
this.setAlert(this.copy.information_updated_error, "error");
|
@@ -17893,14 +17893,20 @@ const l1 = ({
|
|
17893
17893
|
)
|
17894
17894
|
] });
|
17895
17895
|
}), Y1 = () => {
|
17896
|
-
const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(
|
17896
|
+
const e = at(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
17897
|
+
g.useEffect(() => {
|
17898
|
+
_.birthday ? $(new Date(_.birthday * 1e3)) : $(null), console.log("user birthday at first is ", _.birthday);
|
17899
|
+
}, [_]), g.useEffect(() => {
|
17900
|
+
console.log(D);
|
17901
|
+
}, [D]);
|
17902
|
+
const U = async () => {
|
17897
17903
|
const H = {
|
17898
17904
|
..._,
|
17899
17905
|
first_name: u,
|
17900
17906
|
last_name: m,
|
17901
17907
|
email: f,
|
17902
17908
|
phone: y,
|
17903
|
-
birthday: D
|
17909
|
+
birthday: D && Oe(D),
|
17904
17910
|
postal_code: w,
|
17905
17911
|
credit_score: x
|
17906
17912
|
};
|
@@ -18067,7 +18073,7 @@ const X1 = ({
|
|
18067
18073
|
field: "created_at",
|
18068
18074
|
headerName: r.mobile_devices_column_added,
|
18069
18075
|
renderHeader: Ut,
|
18070
|
-
valueFormatter: (c) => Is(
|
18076
|
+
valueFormatter: (c) => Is(ke(c), { addSuffix: !0 }),
|
18071
18077
|
sortable: !0,
|
18072
18078
|
hideSortIcons: !1,
|
18073
18079
|
flex: 1,
|
@@ -18171,7 +18177,7 @@ const X1 = ({
|
|
18171
18177
|
children: /* @__PURE__ */ l(b, { gap: 4, children: [
|
18172
18178
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
|
18173
18179
|
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
|
18174
|
-
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(
|
18180
|
+
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: Is(ke(d.created_at), { addSuffix: !0 }) })
|
18175
18181
|
] })
|
18176
18182
|
}
|
18177
18183
|
),
|
@@ -18857,7 +18863,7 @@ const X1 = ({
|
|
18857
18863
|
variant: "scrollable",
|
18858
18864
|
children: [
|
18859
18865
|
_ && /* @__PURE__ */ t(
|
18860
|
-
|
18866
|
+
Me,
|
18861
18867
|
{
|
18862
18868
|
label: i.profile_label,
|
18863
18869
|
sx: { "&.Mui-selected": { color: "primary.light" } },
|
@@ -18865,7 +18871,7 @@ const X1 = ({
|
|
18865
18871
|
}
|
18866
18872
|
),
|
18867
18873
|
u && /* @__PURE__ */ t(
|
18868
|
-
|
18874
|
+
Me,
|
18869
18875
|
{
|
18870
18876
|
label: i.mobile_devices_label,
|
18871
18877
|
sx: { "&.Mui-selected": { color: "primary.light" } },
|
@@ -18873,7 +18879,7 @@ const X1 = ({
|
|
18873
18879
|
}
|
18874
18880
|
),
|
18875
18881
|
h && /* @__PURE__ */ t(
|
18876
|
-
|
18882
|
+
Me,
|
18877
18883
|
{
|
18878
18884
|
label: i.notifications_label,
|
18879
18885
|
sx: { "&.Mui-selected": { color: "primary.light" } },
|
@@ -18881,7 +18887,7 @@ const X1 = ({
|
|
18881
18887
|
}
|
18882
18888
|
),
|
18883
18889
|
m && /* @__PURE__ */ t(
|
18884
|
-
|
18890
|
+
Me,
|
18885
18891
|
{
|
18886
18892
|
label: i.transaction_rules_label,
|
18887
18893
|
sx: { "&.Mui-selected": { color: "primary.light" } },
|
@@ -18889,7 +18895,7 @@ const X1 = ({
|
|
18889
18895
|
}
|
18890
18896
|
),
|
18891
18897
|
C && /* @__PURE__ */ t(
|
18892
|
-
|
18898
|
+
Me,
|
18893
18899
|
{
|
18894
18900
|
label: i.help_label,
|
18895
18901
|
sx: { "&.Mui-selected": { color: "primary.light" } },
|
@@ -19123,7 +19129,7 @@ const lC = (e) => {
|
|
19123
19129
|
const d = e.transactions.find(
|
19124
19130
|
(_) => _.repeating_transaction_guid === e.guid && _.date > Oe(ut(c.expectedDate, 5)) && _.date < Oe(Mt(c.expectedDate, 5))
|
19125
19131
|
);
|
19126
|
-
d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate =
|
19132
|
+
d ? (c.transaction = d, c.status = it.Paid, c.occurredOnDate = ke(d.date)) : ve(c.expectedDate, ut(le(), 3)) && (c.status = it.Missed);
|
19127
19133
|
}
|
19128
19134
|
return n;
|
19129
19135
|
}, uC = (e, n, i) => {
|
@@ -19842,7 +19848,7 @@ const Ka = ({
|
|
19842
19848
|
};
|
19843
19849
|
default: {
|
19844
19850
|
const a = () => {
|
19845
|
-
const r = e.successfully_aggregated_at ?
|
19851
|
+
const r = e.successfully_aggregated_at ? ke(e.successfully_aggregated_at) : void 0, o = r && ie(r, te.TIME_STAMP_HOUR_MINUTE);
|
19846
19852
|
if (o)
|
19847
19853
|
return hr(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
|
19848
19854
|
n.last_updated_at,
|
@@ -20171,7 +20177,7 @@ const Ka = ({
|
|
20171
20177
|
variant: "fullWidth",
|
20172
20178
|
children: [
|
20173
20179
|
/* @__PURE__ */ t(
|
20174
|
-
|
20180
|
+
Me,
|
20175
20181
|
{
|
20176
20182
|
"aria-controls": "transaction-details-tabpanel-0",
|
20177
20183
|
id: "transaction-details-tab-0",
|
@@ -20180,7 +20186,7 @@ const Ka = ({
|
|
20180
20186
|
}
|
20181
20187
|
),
|
20182
20188
|
/* @__PURE__ */ t(
|
20183
|
-
|
20189
|
+
Me,
|
20184
20190
|
{
|
20185
20191
|
"aria-controls": "account-details-tabpanel-1",
|
20186
20192
|
id: "account-details-tab-1",
|
@@ -21919,14 +21925,14 @@ const gf = ({
|
|
21919
21925
|
variant: "fullWidth",
|
21920
21926
|
children: [
|
21921
21927
|
/* @__PURE__ */ t(
|
21922
|
-
|
21928
|
+
Me,
|
21923
21929
|
{
|
21924
21930
|
label: n.details_transactions_tab,
|
21925
21931
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
21926
21932
|
}
|
21927
21933
|
),
|
21928
21934
|
/* @__PURE__ */ t(
|
21929
|
-
|
21935
|
+
Me,
|
21930
21936
|
{
|
21931
21937
|
label: n.details_subbudgets_tab,
|
21932
21938
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
@@ -23199,21 +23205,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23199
23205
|
variant: "fullWidth",
|
23200
23206
|
children: [
|
23201
23207
|
/* @__PURE__ */ t(
|
23202
|
-
|
23208
|
+
Me,
|
23203
23209
|
{
|
23204
23210
|
label: /* @__PURE__ */ t(Ya, { title: o.tab_overview_title }),
|
23205
23211
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23206
23212
|
}
|
23207
23213
|
),
|
23208
23214
|
/* @__PURE__ */ t(
|
23209
|
-
|
23215
|
+
Me,
|
23210
23216
|
{
|
23211
23217
|
label: /* @__PURE__ */ t(Ya, { title: o.tab_allocation_title }),
|
23212
23218
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23213
23219
|
}
|
23214
23220
|
),
|
23215
23221
|
/* @__PURE__ */ t(
|
23216
|
-
|
23222
|
+
Me,
|
23217
23223
|
{
|
23218
23224
|
label: /* @__PURE__ */ t(Ya, { title: o.tab_analysis_title }),
|
23219
23225
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
@@ -25420,11 +25426,11 @@ const Gi = g.createContext(null), Yf = ({
|
|
25420
25426
|
{ id: we.EveryYear, label: c.frequency_every_year }
|
25421
25427
|
];
|
25422
25428
|
g.useEffect(() => {
|
25423
|
-
const u =
|
25429
|
+
const u = ke(s.date);
|
25424
25430
|
o(qi(u)), r(we.EveryMonth);
|
25425
25431
|
}, [s]);
|
25426
25432
|
const _ = (u) => {
|
25427
|
-
const h =
|
25433
|
+
const h = ke(s.date);
|
25428
25434
|
switch (Number(u.target.value)) {
|
25429
25435
|
case we.EveryWeek:
|
25430
25436
|
o(ma(h));
|
@@ -25623,8 +25629,8 @@ const Gi = g.createContext(null), Yf = ({
|
|
25623
25629
|
value: e,
|
25624
25630
|
variant: "fullWidth",
|
25625
25631
|
children: [
|
25626
|
-
/* @__PURE__ */ t(
|
25627
|
-
/* @__PURE__ */ t(
|
25632
|
+
/* @__PURE__ */ t(Me, { label: a.manage_expenses }),
|
25633
|
+
/* @__PURE__ */ t(Me, { label: a.manage_income })
|
25628
25634
|
]
|
25629
25635
|
}
|
25630
25636
|
),
|
@@ -26035,13 +26041,13 @@ const Gi = g.createContext(null), Yf = ({
|
|
26035
26041
|
(i || n) && /* @__PURE__ */ l(b, { children: [
|
26036
26042
|
/* @__PURE__ */ l(Lt, { onChange: T, value: E, variant: "fullWidth", children: [
|
26037
26043
|
/* @__PURE__ */ t(
|
26038
|
-
|
26044
|
+
Me,
|
26039
26045
|
{
|
26040
26046
|
label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.upcoming })
|
26041
26047
|
}
|
26042
26048
|
),
|
26043
26049
|
/* @__PURE__ */ t(
|
26044
|
-
|
26050
|
+
Me,
|
26045
26051
|
{
|
26046
26052
|
label: /* @__PURE__ */ t(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: e.paid })
|
26047
26053
|
}
|
@@ -26358,7 +26364,7 @@ const Gi = g.createContext(null), Yf = ({
|
|
26358
26364
|
return o ? /* @__PURE__ */ l(M, { width: "100%", children: [
|
26359
26365
|
/* @__PURE__ */ l(Lt, { onChange: f, value: u, variant: "fullWidth", children: [
|
26360
26366
|
/* @__PURE__ */ t(
|
26361
|
-
|
26367
|
+
Me,
|
26362
26368
|
{
|
26363
26369
|
label: /* @__PURE__ */ t(
|
26364
26370
|
ta,
|
@@ -26371,7 +26377,7 @@ const Gi = g.createContext(null), Yf = ({
|
|
26371
26377
|
}
|
26372
26378
|
),
|
26373
26379
|
/* @__PURE__ */ t(
|
26374
|
-
|
26380
|
+
Me,
|
26375
26381
|
{
|
26376
26382
|
label: /* @__PURE__ */ t(
|
26377
26383
|
ta,
|
@@ -26615,7 +26621,7 @@ const Gi = g.createContext(null), Yf = ({
|
|
26615
26621
|
return /* @__PURE__ */ l(M, { children: [
|
26616
26622
|
/* @__PURE__ */ l(Lt, { onChange: R, value: m, variant: "fullWidth", children: [
|
26617
26623
|
/* @__PURE__ */ t(
|
26618
|
-
|
26624
|
+
Me,
|
26619
26625
|
{
|
26620
26626
|
label: /* @__PURE__ */ t(
|
26621
26627
|
ta,
|
@@ -26628,7 +26634,7 @@ const Gi = g.createContext(null), Yf = ({
|
|
26628
26634
|
}
|
26629
26635
|
),
|
26630
26636
|
/* @__PURE__ */ t(
|
26631
|
-
|
26637
|
+
Me,
|
26632
26638
|
{
|
26633
26639
|
label: /* @__PURE__ */ t(
|
26634
26640
|
ta,
|