@mx-cartographer/experiences 6.26.22-alpha.sms4 → 6.26.22-alpha.sms5
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 +149 -149
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import $t from "@mui/material/ListSubheader";
|
|
|
8
8
|
import Oe from "@mui/system/Stack";
|
|
9
9
|
import { AccountsIcon as Ul, P as X, Icon as U, useTokens as At, Text as C, H2 as fn, CategoryIcon as Lt, DialogHeader as Vl, DialogFooter as Kl, Drawer as zl, Footer as Yl, DateRangePicker as sr, H3 as qe, H1 as Qt, TextField as Ln, IconWeight as It, MerchantLogo as Jt, CategoryIconList as jl, CategoryIconVariants as Bs, InstitutionLogo as Tt, ChevronRightIcon as Hs, THEMES as cr } from "@mxenabled/mxui";
|
|
10
10
|
import Xl from "bowser";
|
|
11
|
-
import { getUnixTime as
|
|
11
|
+
import { getUnixTime as Ge } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as Zl } from "date-fns/intlFormat";
|
|
13
13
|
import { addMonths as rn } from "date-fns/addMonths";
|
|
14
14
|
import { addQuarters as Mi } from "date-fns/addQuarters";
|
|
@@ -75,12 +75,12 @@ import { v4 as Pd } from "uuid";
|
|
|
75
75
|
import ia from "@mui/material/InputAdornment";
|
|
76
76
|
import Fd from "@mui/material/Radio";
|
|
77
77
|
import Ft from "@mui/material/Avatar";
|
|
78
|
-
import
|
|
78
|
+
import Pe from "@mui/material/ListItemAvatar";
|
|
79
79
|
import gt from "@mui/material/ListItemIcon";
|
|
80
80
|
import ho from "@mui/material/MenuItem";
|
|
81
81
|
import it from "@mui/material/TextField";
|
|
82
82
|
import pa from "@mui/material/Switch";
|
|
83
|
-
import { makeAutoObservable as
|
|
83
|
+
import { makeAutoObservable as Fe, runInAction as ee, reaction as Wd, observable as $d } from "mobx";
|
|
84
84
|
import Ud, { SurveyQuestionType as hr } from "posthog-js";
|
|
85
85
|
import { formatISO as fa } from "date-fns/formatISO";
|
|
86
86
|
import { differenceInDays as Vd } from "date-fns/differenceInDays";
|
|
@@ -165,7 +165,7 @@ const G_ = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
165
165
|
analytics_event: {
|
|
166
166
|
...c,
|
|
167
167
|
app_version: "widgets-v2",
|
|
168
|
-
created_at:
|
|
168
|
+
created_at: Ge(/* @__PURE__ */ new Date()).toString(),
|
|
169
169
|
host: s,
|
|
170
170
|
name: c?.label || "",
|
|
171
171
|
session_id: r.guid,
|
|
@@ -177,7 +177,7 @@ const G_ = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
177
177
|
analytics_pageview: {
|
|
178
178
|
...c,
|
|
179
179
|
app_version: "widgets-v2",
|
|
180
|
-
created_at:
|
|
180
|
+
created_at: Ge(/* @__PURE__ */ new Date()).toString(),
|
|
181
181
|
host: s,
|
|
182
182
|
name: c.name,
|
|
183
183
|
session_id: r.guid,
|
|
@@ -2761,24 +2761,24 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2761
2761
|
hoveredAreaData: null,
|
|
2762
2762
|
isAreaHovered: !1,
|
|
2763
2763
|
cursorPos: { x: 0, y: 0 }
|
|
2764
|
-
}), { hoveredSeriesId: w, hoveredAreaData: v, isAreaHovered: N, cursorPos: R } = E, M = N && w && v, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((z) => z.dataset.map((
|
|
2765
|
-
(z,
|
|
2764
|
+
}), { hoveredSeriesId: w, hoveredAreaData: v, isAreaHovered: N, cursorPos: R } = E, M = N && w && v, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((z) => z.dataset.map((He) => He.x)), K = G.flatMap((z) => z.dataset.map((He) => He.y)), oe = o[0]?.dataset?.map(
|
|
2765
|
+
(z, He) => o.reduce((ct, En) => ct + En.dataset[He]?.y || 0, 0)
|
|
2766
2766
|
) ?? [0], ne = Math.max(...oe), fe = Math.max(
|
|
2767
|
-
...r.flatMap((z) => z.dataset.map((
|
|
2768
|
-
), Ae = Math.floor(Math.min(...K) / 100) * 100, Me = Math.ceil(Math.max(ne, fe) / 100) * 100, he = o.map((z,
|
|
2769
|
-
id: `stacked-${
|
|
2767
|
+
...r.flatMap((z) => z.dataset.map((He) => He.y))
|
|
2768
|
+
), Ae = Math.floor(Math.min(...K) / 100) * 100, Me = Math.ceil(Math.max(ne, fe) / 100) * 100, he = o.map((z, He) => ({
|
|
2769
|
+
id: `stacked-${He}`,
|
|
2770
2770
|
guid: z.category_guid,
|
|
2771
2771
|
top_level_guid: z.top_level_category_guid,
|
|
2772
2772
|
area: !0,
|
|
2773
|
-
color: o[
|
|
2773
|
+
color: o[He].category_color ?? l.palette.primary.main,
|
|
2774
2774
|
data: z.dataset.map((ct) => ct.y),
|
|
2775
|
-
label: o[
|
|
2775
|
+
label: o[He].category_name,
|
|
2776
2776
|
stack: "total",
|
|
2777
2777
|
type: "line",
|
|
2778
2778
|
highlightScope: { highlight: "item" },
|
|
2779
2779
|
valueFormatter: (ct) => H(ct, "0,0")
|
|
2780
|
-
})), me = r.map((z,
|
|
2781
|
-
id: `unstacked-${
|
|
2780
|
+
})), me = r.map((z, He) => ({
|
|
2781
|
+
id: `unstacked-${He}`,
|
|
2782
2782
|
guid: z.category_guid,
|
|
2783
2783
|
top_level_guid: z.top_level_category_guid,
|
|
2784
2784
|
area: !1,
|
|
@@ -2788,13 +2788,13 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2788
2788
|
type: "line",
|
|
2789
2789
|
valueFormatter: (ct) => H(ct, "0,0")
|
|
2790
2790
|
})), je = [...he, ...me], V = [
|
|
2791
|
-
...he.map(({ guid: z, top_level_guid:
|
|
2791
|
+
...he.map(({ guid: z, top_level_guid: He }) => ({
|
|
2792
2792
|
guid: z,
|
|
2793
|
-
top_level_guid:
|
|
2793
|
+
top_level_guid: He
|
|
2794
2794
|
})),
|
|
2795
|
-
...me.map(({ guid: z, top_level_guid:
|
|
2795
|
+
...me.map(({ guid: z, top_level_guid: He }) => ({
|
|
2796
2796
|
guid: z,
|
|
2797
|
-
top_level_guid:
|
|
2797
|
+
top_level_guid: He
|
|
2798
2798
|
}))
|
|
2799
2799
|
], pe = (z) => {
|
|
2800
2800
|
const ct = z.startsWith("stacked-") ? o[parseInt(z.split("-")[1])] : r[parseInt(z.split("-")[1])];
|
|
@@ -2810,10 +2810,10 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2810
2810
|
const z = pe(String(w)).guid;
|
|
2811
2811
|
z && a?.(z);
|
|
2812
2812
|
}, Ve = (z) => {
|
|
2813
|
-
const
|
|
2813
|
+
const He = String(z?.seriesId), ct = pe(He).guid, En = je.find((xi) => xi.id === He), La = En && z?.dataIndex !== void 0, Ma = En && z?.dataIndex === void 0;
|
|
2814
2814
|
if (La)
|
|
2815
2815
|
I({
|
|
2816
|
-
hoveredSeriesId:
|
|
2816
|
+
hoveredSeriesId: He,
|
|
2817
2817
|
hoveredAreaData: null,
|
|
2818
2818
|
isAreaHovered: !1,
|
|
2819
2819
|
cursorPos: R
|
|
@@ -2824,7 +2824,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2824
2824
|
y: ka
|
|
2825
2825
|
})) ?? [];
|
|
2826
2826
|
I({
|
|
2827
|
-
hoveredSeriesId:
|
|
2827
|
+
hoveredSeriesId: He,
|
|
2828
2828
|
hoveredAreaData: xi,
|
|
2829
2829
|
isAreaHovered: !0,
|
|
2830
2830
|
cursorPos: R
|
|
@@ -2837,12 +2837,12 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2837
2837
|
cursorPos: R
|
|
2838
2838
|
});
|
|
2839
2839
|
}, St = (z) => {
|
|
2840
|
-
const
|
|
2840
|
+
const He = z.currentTarget.getBoundingClientRect();
|
|
2841
2841
|
I((ct) => ({
|
|
2842
2842
|
...ct,
|
|
2843
2843
|
cursorPos: {
|
|
2844
|
-
x: z.clientX -
|
|
2845
|
-
y: z.clientY -
|
|
2844
|
+
x: z.clientX - He.left,
|
|
2845
|
+
y: z.clientY - He.top
|
|
2846
2846
|
}
|
|
2847
2847
|
}));
|
|
2848
2848
|
}, Wt = {
|
|
@@ -2861,7 +2861,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2861
2861
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
2862
2862
|
strokeWidth: 3
|
|
2863
2863
|
},
|
|
2864
|
-
...S && he.reduce((z,
|
|
2864
|
+
...S && he.reduce((z, He, ct) => {
|
|
2865
2865
|
const En = `.MuiAreaElement-series-stacked-${ct}`;
|
|
2866
2866
|
return z[En] = {
|
|
2867
2867
|
opacity: he[ct].guid === S ? 0.9 : 0.2
|
|
@@ -2969,7 +2969,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2969
2969
|
))
|
|
2970
2970
|
}
|
|
2971
2971
|
);
|
|
2972
|
-
},
|
|
2972
|
+
}, Be = ({
|
|
2973
2973
|
className: e,
|
|
2974
2974
|
copy: n = {
|
|
2975
2975
|
title: "",
|
|
@@ -3314,7 +3314,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
),
|
|
3316
3316
|
f && !c && /* @__PURE__ */ t(
|
|
3317
|
-
|
|
3317
|
+
Be,
|
|
3318
3318
|
{
|
|
3319
3319
|
copy: { title: i.dateRangeEditTitle },
|
|
3320
3320
|
isOpen: !0,
|
|
@@ -4005,7 +4005,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
|
4005
4005
|
}
|
|
4006
4006
|
), eo = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
|
4007
4007
|
const o = /* @__PURE__ */ d(Z, { children: [
|
|
4008
|
-
/* @__PURE__ */ t(
|
|
4008
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: e, sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
4009
4009
|
/* @__PURE__ */ t(
|
|
4010
4010
|
se,
|
|
4011
4011
|
{
|
|
@@ -4180,7 +4180,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
|
4180
4180
|
!n && !l && /* @__PURE__ */ t(ze, {})
|
|
4181
4181
|
] }),
|
|
4182
4182
|
/* @__PURE__ */ t(
|
|
4183
|
-
|
|
4183
|
+
Be,
|
|
4184
4184
|
{
|
|
4185
4185
|
copy: { title: a, close_aria: u.close_aria },
|
|
4186
4186
|
disablePrimaryButton: i,
|
|
@@ -4254,7 +4254,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
|
4254
4254
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
4255
4255
|
},
|
|
4256
4256
|
children: /* @__PURE__ */ d(ge, { onClick: a ? void 0 : () => o(), children: [
|
|
4257
|
-
e && /* @__PURE__ */ t(
|
|
4257
|
+
e && /* @__PURE__ */ t(Pe, { children: e }),
|
|
4258
4258
|
/* @__PURE__ */ t(se, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ d(b, { children: [
|
|
4259
4259
|
/* @__PURE__ */ t(C, { variant: "body1", children: s }),
|
|
4260
4260
|
/* @__PURE__ */ t(C, { color: "text.secondary", variant: "caption", children: c })
|
|
@@ -4301,7 +4301,7 @@ class Qu {
|
|
|
4301
4301
|
featureNamespace = "experiences";
|
|
4302
4302
|
isInitialized = !1;
|
|
4303
4303
|
constructor(n) {
|
|
4304
|
-
this.globalStore = n, this.api = new Ri(n.endpoint, n.sessionToken),
|
|
4304
|
+
this.globalStore = n, this.api = new Ri(n.endpoint, n.sessionToken), Fe(this);
|
|
4305
4305
|
}
|
|
4306
4306
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
4307
4307
|
// TODO: Remove this function
|
|
@@ -4332,7 +4332,7 @@ class Ju {
|
|
|
4332
4332
|
response = null;
|
|
4333
4333
|
responses = {};
|
|
4334
4334
|
constructor(n) {
|
|
4335
|
-
this.globalStore = n,
|
|
4335
|
+
this.globalStore = n, Fe(this);
|
|
4336
4336
|
}
|
|
4337
4337
|
get isLastQuestion() {
|
|
4338
4338
|
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
@@ -4426,7 +4426,7 @@ class nh {
|
|
|
4426
4426
|
beats = [];
|
|
4427
4427
|
isLoading = !1;
|
|
4428
4428
|
constructor(n) {
|
|
4429
|
-
this.globalStore = n, this.api = new li(n.endpoint, n.sessionToken),
|
|
4429
|
+
this.globalStore = n, this.api = new li(n.endpoint, n.sessionToken), Fe(this);
|
|
4430
4430
|
}
|
|
4431
4431
|
loadBeats = async () => {
|
|
4432
4432
|
this.isLoading = !0;
|
|
@@ -4539,7 +4539,7 @@ class oh {
|
|
|
4539
4539
|
isDataLoaded = !1;
|
|
4540
4540
|
theme = {};
|
|
4541
4541
|
constructor(n) {
|
|
4542
|
-
this.globalStore = n, this.api = new Or(n.endpoint, n.sessionToken),
|
|
4542
|
+
this.globalStore = n, this.api = new Or(n.endpoint, n.sessionToken), Fe(this);
|
|
4543
4543
|
}
|
|
4544
4544
|
loadBudgetData = async () => {
|
|
4545
4545
|
await this.loadBudgets(), Wd(
|
|
@@ -4873,7 +4873,7 @@ const Ei = () => {
|
|
|
4873
4873
|
}
|
|
4874
4874
|
for (const l of i) {
|
|
4875
4875
|
const u = e.transactions.find(
|
|
4876
|
-
(_) => _.repeating_transaction_guid === e.guid && _.date >
|
|
4876
|
+
(_) => _.repeating_transaction_guid === e.guid && _.date > Ge(Ot(l.expectedDate, 5)) && _.date < Ge(Fn(l.expectedDate, 5))
|
|
4877
4877
|
);
|
|
4878
4878
|
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate = Ue(u.date)) : ot(l.expectedDate, Ot(we(), 3)) && (l.status = et.Missed);
|
|
4879
4879
|
}
|
|
@@ -4931,7 +4931,7 @@ const Ei = () => {
|
|
|
4931
4931
|
i.push(...o);
|
|
4932
4932
|
}
|
|
4933
4933
|
return i.sort(
|
|
4934
|
-
(a, o) =>
|
|
4934
|
+
(a, o) => Ge(a.occurredOnDate || a.expectedDate) - Ge(o.occurredOnDate || o.expectedDate)
|
|
4935
4935
|
);
|
|
4936
4936
|
}, Fa = (e, n, i) => {
|
|
4937
4937
|
const a = [];
|
|
@@ -5508,7 +5508,7 @@ const Dc = (e, n) => {
|
|
|
5508
5508
|
searchTerm: s = "",
|
|
5509
5509
|
showSplits: c = !1
|
|
5510
5510
|
} = e;
|
|
5511
|
-
return i.filter((l) => c ? !l.has_been_split : !l?.parent_guid).filter((l) => (console.log("t", `t: ${l.account_guid}; a: ${a[0]}`), !!a.find((u) => u === l.account_guid))).filter((l) => l.date >=
|
|
5511
|
+
return i.filter((l) => c ? !l.has_been_split : !l?.parent_guid).filter((l) => (console.log("t", `t: ${l.account_guid}; a: ${a[0]}`), console.log("the truth?", !!a.find((u) => u === l.account_guid)), !!a.find((u) => u === l.account_guid))).filter((l) => (console.log("date 1", l.date >= Ge(o.start)), console.log("date 2", l.date <= Ge(o.end)), l.date >= Ge(o.start) && l.date <= Ge(o.end))).filter(r).filter((l) => {
|
|
5512
5512
|
if (console.log("final filter", l), s === Lh && l.has_been_split)
|
|
5513
5513
|
return !1;
|
|
5514
5514
|
if (/^spl/i.test(s) && (l.has_been_split || l?.parent_guid))
|
|
@@ -5570,7 +5570,7 @@ let Wh = class {
|
|
|
5570
5570
|
isAmountValid = !1;
|
|
5571
5571
|
showInsights = !1;
|
|
5572
5572
|
constructor() {
|
|
5573
|
-
|
|
5573
|
+
Fe(this);
|
|
5574
5574
|
}
|
|
5575
5575
|
setDateRange = (n, i) => {
|
|
5576
5576
|
this.beginDate = n, this.endDate = i;
|
|
@@ -5614,7 +5614,7 @@ class $h {
|
|
|
5614
5614
|
transactionRules = [];
|
|
5615
5615
|
onAnalyticEvent = Ah;
|
|
5616
5616
|
constructor(n) {
|
|
5617
|
-
this.globalStore = n, this.uiStore = new Wh(), this.api = new ca(n.endpoint, n.sessionToken), this.beatApi = new li(n.endpoint, n.sessionToken),
|
|
5617
|
+
this.globalStore = n, this.uiStore = new Wh(), this.api = new ca(n.endpoint, n.sessionToken), this.beatApi = new li(n.endpoint, n.sessionToken), Fe(this);
|
|
5618
5618
|
}
|
|
5619
5619
|
loadTransactionData = async ({
|
|
5620
5620
|
associatedBeats: n,
|
|
@@ -5701,7 +5701,7 @@ class $h {
|
|
|
5701
5701
|
loadTransactions = async (n = this.cachedStartDate, i = mn(), a) => {
|
|
5702
5702
|
this.setIsLoading(!0), this.rawTransactions = [];
|
|
5703
5703
|
try {
|
|
5704
|
-
const o = a ?? await this.api.getTransactionsByDateRange(
|
|
5704
|
+
const o = a ?? await this.api.getTransactionsByDateRange(Ge(n), Ge(i));
|
|
5705
5705
|
ee(() => {
|
|
5706
5706
|
this.rawTransactions = o;
|
|
5707
5707
|
});
|
|
@@ -5829,7 +5829,7 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
|
5829
5829
|
clickEventName: Q.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
5830
5830
|
onClick: n ? () => n(e.guid) : void 0,
|
|
5831
5831
|
children: [
|
|
5832
|
-
/* @__PURE__ */ t(
|
|
5832
|
+
/* @__PURE__ */ t(Pe, { children: e.parent_guid && a.includes(e.parent_guid) ? /* @__PURE__ */ t(g.Fragment, {}) : /* @__PURE__ */ t(
|
|
5833
5833
|
Jt,
|
|
5834
5834
|
{
|
|
5835
5835
|
categoryGuid: e.top_level_category_guid || "",
|
|
@@ -6165,7 +6165,7 @@ const sg = ({
|
|
|
6165
6165
|
break;
|
|
6166
6166
|
}
|
|
6167
6167
|
return /* @__PURE__ */ t(
|
|
6168
|
-
|
|
6168
|
+
Be,
|
|
6169
6169
|
{
|
|
6170
6170
|
copy: {
|
|
6171
6171
|
title: u
|
|
@@ -6382,7 +6382,7 @@ const sg = ({
|
|
|
6382
6382
|
id: `category-${e.guid}`,
|
|
6383
6383
|
onClick: c,
|
|
6384
6384
|
children: [
|
|
6385
|
-
/* @__PURE__ */ t(
|
|
6385
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Lt, { categoryGuid: e.guid }) }),
|
|
6386
6386
|
/* @__PURE__ */ t(
|
|
6387
6387
|
se,
|
|
6388
6388
|
{
|
|
@@ -6564,7 +6564,7 @@ let wg = class {
|
|
|
6564
6564
|
savedOnSelect;
|
|
6565
6565
|
// todo
|
|
6566
6566
|
constructor() {
|
|
6567
|
-
|
|
6567
|
+
Fe(this);
|
|
6568
6568
|
}
|
|
6569
6569
|
setExpandedGuid = (n) => this.expandedGuid = n;
|
|
6570
6570
|
setSelectedGuid = (n) => this.selectedGuid = n;
|
|
@@ -6587,7 +6587,7 @@ class vg {
|
|
|
6587
6587
|
isLoadingCategoryTotals = !1;
|
|
6588
6588
|
monthlyTotalsLoaded = !1;
|
|
6589
6589
|
constructor(n) {
|
|
6590
|
-
this.globalStore = n, this.uiStore = new wg(), this.api = new Er(n.endpoint, n.sessionToken),
|
|
6590
|
+
this.globalStore = n, this.uiStore = new wg(), this.api = new Er(n.endpoint, n.sessionToken), Fe(this);
|
|
6591
6591
|
}
|
|
6592
6592
|
get detailedCategories() {
|
|
6593
6593
|
return xg(
|
|
@@ -6638,8 +6638,8 @@ class vg {
|
|
|
6638
6638
|
this.setIsLoadingCategoryTotals(!0);
|
|
6639
6639
|
try {
|
|
6640
6640
|
const o = await this.api.getDateRangeCategoryTotals(
|
|
6641
|
-
|
|
6642
|
-
|
|
6641
|
+
Ge(i),
|
|
6642
|
+
Ge(a),
|
|
6643
6643
|
n
|
|
6644
6644
|
);
|
|
6645
6645
|
ee(() => {
|
|
@@ -6650,7 +6650,7 @@ class vg {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
};
|
|
6652
6652
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
|
6653
|
-
const o =
|
|
6653
|
+
const o = Ge(Ze(i ?? Ht(/* @__PURE__ */ new Date(), 11))), r = Ge(Qe(a ?? /* @__PURE__ */ new Date()));
|
|
6654
6654
|
try {
|
|
6655
6655
|
const s = await this.api.getMonthlyCategoryTotals(o, r, n);
|
|
6656
6656
|
ee(() => {
|
|
@@ -6664,12 +6664,12 @@ class vg {
|
|
|
6664
6664
|
this.setIsLoadingCategoryTotals(!0);
|
|
6665
6665
|
try {
|
|
6666
6666
|
const o = await this.api.getDateRangeCategoryTotals(
|
|
6667
|
-
|
|
6668
|
-
|
|
6667
|
+
Ge(i),
|
|
6668
|
+
Ge(a),
|
|
6669
6669
|
n
|
|
6670
6670
|
), r = await this.api.getMonthlyCategoryTotals(
|
|
6671
|
-
|
|
6672
|
-
|
|
6671
|
+
Ge(Ze(Ht(a, 11))),
|
|
6672
|
+
Ge(Qe(a)),
|
|
6673
6673
|
n
|
|
6674
6674
|
);
|
|
6675
6675
|
ee(() => {
|
|
@@ -6730,7 +6730,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6730
6730
|
o(Q.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
6731
6731
|
},
|
|
6732
6732
|
children: [
|
|
6733
|
-
/* @__PURE__ */ t(
|
|
6733
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
6734
6734
|
Lt,
|
|
6735
6735
|
{
|
|
6736
6736
|
categoryGuid: e.top_level_category_guid,
|
|
@@ -6762,7 +6762,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
),
|
|
6764
6764
|
/* @__PURE__ */ t(
|
|
6765
|
-
|
|
6765
|
+
Be,
|
|
6766
6766
|
{
|
|
6767
6767
|
copy: {
|
|
6768
6768
|
title: T(
|
|
@@ -6786,7 +6786,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6786
6786
|
] });
|
|
6787
6787
|
}, Mc = ({ transaction: e }) => {
|
|
6788
6788
|
const n = At(), { onEvent: i } = q(), { updateTransaction: a } = Le(), { updateManualTransaction: o } = wt(), { common: r, transactions: s } = A(), [c, l] = g.useState(!1), [u, _] = g.useState(e.date), h = (m) => {
|
|
6789
|
-
_(
|
|
6789
|
+
_(Ge(m));
|
|
6790
6790
|
}, p = async () => {
|
|
6791
6791
|
if (e.is_manual && !e.guid) {
|
|
6792
6792
|
o({ ...e, date: u }), l(!1);
|
|
@@ -6802,7 +6802,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6802
6802
|
i(Q.ON_TRANSACTION_DATE_CLICK), l(!0);
|
|
6803
6803
|
},
|
|
6804
6804
|
children: [
|
|
6805
|
-
/* @__PURE__ */ t(
|
|
6805
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "calendar_month", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
6806
6806
|
/* @__PURE__ */ t(
|
|
6807
6807
|
se,
|
|
6808
6808
|
{
|
|
@@ -6853,7 +6853,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6853
6853
|
n(Q.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
6854
6854
|
},
|
|
6855
6855
|
children: [
|
|
6856
|
-
/* @__PURE__ */ t(
|
|
6856
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { variant: "rounded", children: /* @__PURE__ */ t(aa, { color: "secondary", fontSize: "small" }) }) }),
|
|
6857
6857
|
/* @__PURE__ */ t(
|
|
6858
6858
|
se,
|
|
6859
6859
|
{
|
|
@@ -6866,7 +6866,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6866
6866
|
}
|
|
6867
6867
|
) }),
|
|
6868
6868
|
/* @__PURE__ */ t(
|
|
6869
|
-
|
|
6869
|
+
Be,
|
|
6870
6870
|
{
|
|
6871
6871
|
copy: { title: r.manual_transaction_delete_title },
|
|
6872
6872
|
isOpen: s,
|
|
@@ -6895,14 +6895,14 @@ const Lc = ({ transaction: e }) => {
|
|
|
6895
6895
|
n(Q.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
6896
6896
|
},
|
|
6897
6897
|
children: [
|
|
6898
|
-
/* @__PURE__ */ t(
|
|
6898
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "delete", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
6899
6899
|
/* @__PURE__ */ t(se, { primary: r.merchant_logo_title, secondary: r.merchant_logo_desc }),
|
|
6900
6900
|
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(U, { name: "chevron_right", weight: It.Dark }) })
|
|
6901
6901
|
]
|
|
6902
6902
|
}
|
|
6903
6903
|
) }),
|
|
6904
6904
|
/* @__PURE__ */ d(
|
|
6905
|
-
|
|
6905
|
+
Be,
|
|
6906
6906
|
{
|
|
6907
6907
|
copy: { title: r.merchant_logo_modal_title },
|
|
6908
6908
|
isOpen: s,
|
|
@@ -6944,7 +6944,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6944
6944
|
},
|
|
6945
6945
|
role: "switch",
|
|
6946
6946
|
children: [
|
|
6947
|
-
/* @__PURE__ */ t(
|
|
6947
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: l ? /* @__PURE__ */ t(
|
|
6948
6948
|
U,
|
|
6949
6949
|
{
|
|
6950
6950
|
name: "visibilityOff",
|
|
@@ -6972,7 +6972,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
6972
6972
|
}
|
|
6973
6973
|
) }),
|
|
6974
6974
|
/* @__PURE__ */ t(
|
|
6975
|
-
|
|
6975
|
+
Be,
|
|
6976
6976
|
{
|
|
6977
6977
|
copy: {
|
|
6978
6978
|
title: l ? r.hide_trnx_subtitle_unhide_trnx : r.hide_trnx_subtitle_hide_trnx
|
|
@@ -7030,7 +7030,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7030
7030
|
n(Q.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
7031
7031
|
},
|
|
7032
7032
|
children: [
|
|
7033
|
-
/* @__PURE__ */ t(
|
|
7033
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "article", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
7034
7034
|
/* @__PURE__ */ t(
|
|
7035
7035
|
se,
|
|
7036
7036
|
{
|
|
@@ -7299,7 +7299,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7299
7299
|
}, [f]);
|
|
7300
7300
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7301
7301
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(ge, { onClick: v, children: [
|
|
7302
|
-
/* @__PURE__ */ t(
|
|
7302
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "call_split", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
7303
7303
|
/* @__PURE__ */ t(
|
|
7304
7304
|
se,
|
|
7305
7305
|
{
|
|
@@ -7337,7 +7337,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7337
7337
|
}
|
|
7338
7338
|
),
|
|
7339
7339
|
/* @__PURE__ */ t(
|
|
7340
|
-
|
|
7340
|
+
Be,
|
|
7341
7341
|
{
|
|
7342
7342
|
copy: { title: r.split_transaction_unsplit_title },
|
|
7343
7343
|
isOpen: p,
|
|
@@ -7396,7 +7396,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7396
7396
|
}
|
|
7397
7397
|
),
|
|
7398
7398
|
/* @__PURE__ */ d(
|
|
7399
|
-
|
|
7399
|
+
Be,
|
|
7400
7400
|
{
|
|
7401
7401
|
copy: { title: a.tags_add_tag_btn },
|
|
7402
7402
|
isOpen: o,
|
|
@@ -7498,7 +7498,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7498
7498
|
}
|
|
7499
7499
|
),
|
|
7500
7500
|
/* @__PURE__ */ d(
|
|
7501
|
-
|
|
7501
|
+
Be,
|
|
7502
7502
|
{
|
|
7503
7503
|
copy: { title: "Update tag name" },
|
|
7504
7504
|
isOpen: l,
|
|
@@ -7523,7 +7523,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7523
7523
|
}
|
|
7524
7524
|
),
|
|
7525
7525
|
/* @__PURE__ */ t(
|
|
7526
|
-
|
|
7526
|
+
Be,
|
|
7527
7527
|
{
|
|
7528
7528
|
copy: { title: c.tags_delete_title },
|
|
7529
7529
|
isOpen: _,
|
|
@@ -7584,7 +7584,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7584
7584
|
n(Q.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
7585
7585
|
},
|
|
7586
7586
|
children: [
|
|
7587
|
-
/* @__PURE__ */ t(
|
|
7587
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "local_offer", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
7588
7588
|
/* @__PURE__ */ t(
|
|
7589
7589
|
se,
|
|
7590
7590
|
{
|
|
@@ -7748,7 +7748,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7748
7748
|
}, Ti = x(tm), nm = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
|
7749
7749
|
const { common: o, transactions: r } = A(), { isCopyLoaded: s } = ce();
|
|
7750
7750
|
return s ? /* @__PURE__ */ d(
|
|
7751
|
-
|
|
7751
|
+
Be,
|
|
7752
7752
|
{
|
|
7753
7753
|
copy: {
|
|
7754
7754
|
title: e.title
|
|
@@ -7885,7 +7885,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7885
7885
|
}
|
|
7886
7886
|
),
|
|
7887
7887
|
/* @__PURE__ */ t(
|
|
7888
|
-
|
|
7888
|
+
Be,
|
|
7889
7889
|
{
|
|
7890
7890
|
copy: {
|
|
7891
7891
|
title: T(
|
|
@@ -7956,7 +7956,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
7956
7956
|
const Wt = g.useMemo(
|
|
7957
7957
|
() => o.filter((ht) => ht.is_manual),
|
|
7958
7958
|
[o]
|
|
7959
|
-
), z = je ? G.find((ht) => ht.guid === je) : void 0,
|
|
7959
|
+
), z = je ? G.find((ht) => ht.guid === je) : void 0, He = K && !!W.payee && !!W.account_guid && !!W.category_guid, ct = (ht) => {
|
|
7960
7960
|
S(ht[0], ht[1]);
|
|
7961
7961
|
}, En = (ht) => {
|
|
7962
7962
|
ne(ht), R({
|
|
@@ -7968,14 +7968,14 @@ const Lc = ({ transaction: e }) => {
|
|
|
7968
7968
|
}, Ma = () => {
|
|
7969
7969
|
Wt.length > 0 ? (Ae({
|
|
7970
7970
|
...Nc,
|
|
7971
|
-
date:
|
|
7971
|
+
date: Ge(we()),
|
|
7972
7972
|
user_guid: Me?.user_guid || ""
|
|
7973
7973
|
}), me(
|
|
7974
7974
|
"addTransaction"
|
|
7975
7975
|
/* AddTransaction */
|
|
7976
7976
|
), l(F.TRANSACTIONS_CLICK_ADD)) : (J(!0), l(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7977
7977
|
}, xi = async () => {
|
|
7978
|
-
|
|
7978
|
+
He && await w(W), me("");
|
|
7979
7979
|
}, ka = () => {
|
|
7980
7980
|
J(!1), xe(!0);
|
|
7981
7981
|
}, Ga = async () => {
|
|
@@ -8089,7 +8089,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
8089
8089
|
{
|
|
8090
8090
|
ariaLabelClose: u.close_aria,
|
|
8091
8091
|
isOpen: he === "addTransaction",
|
|
8092
|
-
isPrimaryDisabled: !
|
|
8092
|
+
isPrimaryDisabled: !He,
|
|
8093
8093
|
onClose: () => me(""),
|
|
8094
8094
|
onPrimaryAction: xi,
|
|
8095
8095
|
title: _.add_transaction_title,
|
|
@@ -8333,7 +8333,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
8333
8333
|
}
|
|
8334
8334
|
),
|
|
8335
8335
|
/* @__PURE__ */ t(
|
|
8336
|
-
|
|
8336
|
+
Be,
|
|
8337
8337
|
{
|
|
8338
8338
|
copy: {
|
|
8339
8339
|
title: y ? i.delete_income_title : i.delete_expense_title,
|
|
@@ -8358,7 +8358,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
8358
8358
|
/* @__PURE__ */ d(ge, { onClick: () => {
|
|
8359
8359
|
e(n), o(!0);
|
|
8360
8360
|
}, children: [
|
|
8361
|
-
/* @__PURE__ */ t(
|
|
8361
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
8362
8362
|
Jt,
|
|
8363
8363
|
{
|
|
8364
8364
|
categoryGuid: r,
|
|
@@ -8849,7 +8849,7 @@ const Lc = ({ transaction: e }) => {
|
|
|
8849
8849
|
/* @__PURE__ */ d(ge, { onClick: () => {
|
|
8850
8850
|
c(!0), i(e);
|
|
8851
8851
|
}, children: [
|
|
8852
|
-
/* @__PURE__ */ t(
|
|
8852
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
8853
8853
|
Jt,
|
|
8854
8854
|
{
|
|
8855
8855
|
categoryGuid: e.categoryGuid,
|
|
@@ -9482,7 +9482,7 @@ class Em {
|
|
|
9482
9482
|
dateRange = { start: Ze(we()), end: Qe(we()) };
|
|
9483
9483
|
isDataLoaded = !1;
|
|
9484
9484
|
constructor(n) {
|
|
9485
|
-
this.globalStore = n, this.api = new Yr(n.endpoint, n.sessionToken),
|
|
9485
|
+
this.globalStore = n, this.api = new Yr(n.endpoint, n.sessionToken), Fe(this);
|
|
9486
9486
|
}
|
|
9487
9487
|
/**
|
|
9488
9488
|
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
@@ -9844,7 +9844,7 @@ const Tm = {
|
|
|
9844
9844
|
let _;
|
|
9845
9845
|
(e.connectionStatus === Yn.Error || e.connectionStatus === Yn.RequiresMfa) && (_ = /* @__PURE__ */ t(Am, { size: 16 }));
|
|
9846
9846
|
const h = /* @__PURE__ */ d(Z, { children: [
|
|
9847
|
-
/* @__PURE__ */ t(
|
|
9847
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
9848
9848
|
oc,
|
|
9849
9849
|
{
|
|
9850
9850
|
badgeContent: a ? _ : void 0,
|
|
@@ -9969,7 +9969,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
9969
9969
|
] })
|
|
9970
9970
|
] }),
|
|
9971
9971
|
/* @__PURE__ */ t(b, { children: r.map((s) => {
|
|
9972
|
-
const c = a.filter(da(s, o)).sort((h, p) =>
|
|
9972
|
+
const c = a.filter(da(s, o)).sort((h, p) => Ge(h.expectedDate) - Ge(p.expectedDate)), l = i.filter(
|
|
9973
9973
|
da(s, o)
|
|
9974
9974
|
), u = c.reduce(
|
|
9975
9975
|
(h, p) => h + p.amount,
|
|
@@ -10586,7 +10586,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10586
10586
|
G.length > 0 && !oe && /* @__PURE__ */ d(Z, { children: [
|
|
10587
10587
|
/* @__PURE__ */ t(ae, { children: G.map((he, me) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
10588
10588
|
/* @__PURE__ */ t(Aa, { bgcolor: "background.paper", children: ya(
|
|
10589
|
-
|
|
10589
|
+
Ge(he.nextDate || he.date)
|
|
10590
10590
|
) }),
|
|
10591
10591
|
/* @__PURE__ */ t(Go, { transaction: he }),
|
|
10592
10592
|
me !== G.length - 1 && /* @__PURE__ */ t(P, {})
|
|
@@ -10768,13 +10768,13 @@ class f2 {
|
|
|
10768
10768
|
addCashflowSequence = async (n) => this.fetchInstance.post(B.CASHFLOW_SEQUENCES, { ...n }).then((i) => i.cashflow_sequence);
|
|
10769
10769
|
getCashflowSequences = async () => this.fetchInstance.get(B.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
|
10770
10770
|
getCashflowEventsByDateRange = async (n, i) => this.fetchInstance.get(
|
|
10771
|
-
`${B.CASHFLOW_EVENTS}/from/${
|
|
10771
|
+
`${B.CASHFLOW_EVENTS}/from/${Ge(n)}/to/${Ge(i)}`
|
|
10772
10772
|
).then((a) => a.cashflow_events);
|
|
10773
10773
|
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${B.CASHFLOW_SEQUENCES}/${n}`).then((i) => i);
|
|
10774
10774
|
getProjectedCashflowEvents = async (n, i) => this.fetchInstance.get(
|
|
10775
|
-
`${B.CASHFLOW_SEQUENCES}/projected_events/from/${
|
|
10775
|
+
`${B.CASHFLOW_SEQUENCES}/projected_events/from/${Ge(
|
|
10776
10776
|
n
|
|
10777
|
-
)}/to/${
|
|
10777
|
+
)}/to/${Ge(i)}`
|
|
10778
10778
|
).then((a) => a.cashflow_events);
|
|
10779
10779
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${B.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((i) => i.cashflow_sequence);
|
|
10780
10780
|
}
|
|
@@ -10786,7 +10786,7 @@ let Zm = class {
|
|
|
10786
10786
|
upcomingExpenses = [];
|
|
10787
10787
|
selectedCashAccounts = [];
|
|
10788
10788
|
constructor() {
|
|
10789
|
-
|
|
10789
|
+
Fe(this);
|
|
10790
10790
|
}
|
|
10791
10791
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
10792
10792
|
get daysUntilNextIncome() {
|
|
@@ -10811,7 +10811,7 @@ class qm {
|
|
|
10811
10811
|
globalStore;
|
|
10812
10812
|
uiStore;
|
|
10813
10813
|
constructor(n) {
|
|
10814
|
-
this.globalStore = n, this.uiStore = new Zm(),
|
|
10814
|
+
this.globalStore = n, this.uiStore = new Zm(), Fe(this);
|
|
10815
10815
|
}
|
|
10816
10816
|
completeOnboarding = async () => {
|
|
10817
10817
|
const n = {
|
|
@@ -12487,7 +12487,7 @@ class Xp {
|
|
|
12487
12487
|
selectedDebtChartData = {};
|
|
12488
12488
|
selectedDebtPriority = an.LOWEST_BALANCE;
|
|
12489
12489
|
constructor() {
|
|
12490
|
-
|
|
12490
|
+
Fe(this);
|
|
12491
12491
|
}
|
|
12492
12492
|
get showError() {
|
|
12493
12493
|
const { interest_rate: n, monthly_payment: i } = this.selectedDebtChartData;
|
|
@@ -12504,7 +12504,7 @@ class Zp {
|
|
|
12504
12504
|
globalStore;
|
|
12505
12505
|
uiStore;
|
|
12506
12506
|
constructor(n) {
|
|
12507
|
-
this.globalStore = n, this.uiStore = new Xp(),
|
|
12507
|
+
this.globalStore = n, this.uiStore = new Xp(), Fe(this);
|
|
12508
12508
|
}
|
|
12509
12509
|
get debts() {
|
|
12510
12510
|
const { visibleDebtAccounts: n } = this.globalStore.accountStore, { debtGoals: i } = this.globalStore.goalStore;
|
|
@@ -12526,7 +12526,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12526
12526
|
},
|
|
12527
12527
|
children: e.map((i, a) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
12528
12528
|
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(ze, {}), children: /* @__PURE__ */ d(ge, { onClick: () => n(i.key), children: [
|
|
12529
|
-
/* @__PURE__ */ t(
|
|
12529
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
12530
12530
|
Ft,
|
|
12531
12531
|
{
|
|
12532
12532
|
sx: {
|
|
@@ -12990,7 +12990,7 @@ class r1 {
|
|
|
12990
12990
|
healthScoreChangeReports = [];
|
|
12991
12991
|
peerScore = null;
|
|
12992
12992
|
constructor(n) {
|
|
12993
|
-
this.globalStore = n, this.api = new is(n.endpoint, n.sessionToken),
|
|
12993
|
+
this.globalStore = n, this.api = new is(n.endpoint, n.sessionToken), Fe(this);
|
|
12994
12994
|
}
|
|
12995
12995
|
calculateHealthScore = async () => {
|
|
12996
12996
|
try {
|
|
@@ -13016,7 +13016,7 @@ class r1 {
|
|
|
13016
13016
|
}
|
|
13017
13017
|
};
|
|
13018
13018
|
loadHealthScoreChangeReports = async () => {
|
|
13019
|
-
const n =
|
|
13019
|
+
const n = Ge(Ht(/* @__PURE__ */ new Date(), 2)), i = Ge(/* @__PURE__ */ new Date());
|
|
13020
13020
|
try {
|
|
13021
13021
|
const a = await this.api.getHealthScoreChangeReports(
|
|
13022
13022
|
n,
|
|
@@ -13252,7 +13252,7 @@ const Na = ({
|
|
|
13252
13252
|
!c || c === s.credit_score || r({ ...s, credit_score: c });
|
|
13253
13253
|
};
|
|
13254
13254
|
return /* @__PURE__ */ t(
|
|
13255
|
-
|
|
13255
|
+
Be,
|
|
13256
13256
|
{
|
|
13257
13257
|
copy: { close_aria: i.close_aria, title: a.edit_credit_score },
|
|
13258
13258
|
disablePrimaryButton: !c || !u,
|
|
@@ -14328,7 +14328,7 @@ const N1 = (e, n) => {
|
|
|
14328
14328
|
const { goals: i } = A();
|
|
14329
14329
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { children: [
|
|
14330
14330
|
e.track_type !== Y.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
14331
|
-
|
|
14331
|
+
Pe,
|
|
14332
14332
|
{
|
|
14333
14333
|
sx: {
|
|
14334
14334
|
alignItems: "center",
|
|
@@ -14356,7 +14356,7 @@ const N1 = (e, n) => {
|
|
|
14356
14356
|
}, k1 = ({ goal: e }) => {
|
|
14357
14357
|
const { goals: n } = A();
|
|
14358
14358
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { children: [
|
|
14359
|
-
/* @__PURE__ */ t(
|
|
14359
|
+
/* @__PURE__ */ t(Pe, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(ma, { color: "success", filled: !0, size: 20 }) }),
|
|
14360
14360
|
/* @__PURE__ */ t(se, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
14361
14361
|
/* @__PURE__ */ d(b, { children: [
|
|
14362
14362
|
/* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e.name }),
|
|
@@ -14505,7 +14505,7 @@ const N1 = (e, n) => {
|
|
|
14505
14505
|
l
|
|
14506
14506
|
),
|
|
14507
14507
|
children: [
|
|
14508
|
-
/* @__PURE__ */ t(
|
|
14508
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(pt, { name: o, sx: { color: "grey.900" } }) }) }),
|
|
14509
14509
|
/* @__PURE__ */ t(se, { primary: r, secondary: s, sx: { mr: 24 } }),
|
|
14510
14510
|
!h && /* @__PURE__ */ t(ze, {}),
|
|
14511
14511
|
h && (u ? /* @__PURE__ */ t(Zs, {}) : /* @__PURE__ */ t(ui, {}))
|
|
@@ -14550,7 +14550,7 @@ const N1 = (e, n) => {
|
|
|
14550
14550
|
/* @__PURE__ */ t(P, { variant: "fullWidth" }),
|
|
14551
14551
|
e.map((_, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
14552
14552
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(_), children: [
|
|
14553
|
-
/* @__PURE__ */ t(
|
|
14553
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
14554
14554
|
Tt,
|
|
14555
14555
|
{
|
|
14556
14556
|
alt: _?.name || "",
|
|
@@ -14628,7 +14628,7 @@ const N1 = (e, n) => {
|
|
|
14628
14628
|
/* @__PURE__ */ d(ge, { onClick: () => {
|
|
14629
14629
|
i(e), o(!0);
|
|
14630
14630
|
}, children: [
|
|
14631
|
-
/* @__PURE__ */ t(
|
|
14631
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
14632
14632
|
Tt,
|
|
14633
14633
|
{
|
|
14634
14634
|
alt: e.name || "",
|
|
@@ -14710,7 +14710,7 @@ const N1 = (e, n) => {
|
|
|
14710
14710
|
/* @__PURE__ */ t(le, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ d(b, { children: [
|
|
14711
14711
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
|
14712
14712
|
/* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: n.map((p) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => h(p), children: [
|
|
14713
|
-
/* @__PURE__ */ t(
|
|
14713
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
14714
14714
|
Tt,
|
|
14715
14715
|
{
|
|
14716
14716
|
alt: p?.name || "",
|
|
@@ -14728,7 +14728,7 @@ const N1 = (e, n) => {
|
|
|
14728
14728
|
] }) }, p.guid)) }),
|
|
14729
14729
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
14730
14730
|
/* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: i.map((p) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => h(p), children: [
|
|
14731
|
-
/* @__PURE__ */ t(
|
|
14731
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
14732
14732
|
Tt,
|
|
14733
14733
|
{
|
|
14734
14734
|
alt: p?.name || "",
|
|
@@ -14821,7 +14821,7 @@ const N1 = (e, n) => {
|
|
|
14821
14821
|
);
|
|
14822
14822
|
}, U1 = x(({ goal: e }) => {
|
|
14823
14823
|
const { goals: n } = A(), { user: i, updateUser: a } = ft(), { setAlert: o } = _t(), [r, s] = g.useState(Ue(i.birthday ?? 0)), [c, l] = g.useState(null), u = e.is_complete, _ = async () => {
|
|
14824
|
-
r && f_(r) && (await a({ ...i, birthday:
|
|
14824
|
+
r && f_(r) && (await a({ ...i, birthday: Ge(r) }), o(n.alert_goal_updated_birthday));
|
|
14825
14825
|
};
|
|
14826
14826
|
return /* @__PURE__ */ t(
|
|
14827
14827
|
tn,
|
|
@@ -14995,7 +14995,7 @@ const N1 = (e, n) => {
|
|
|
14995
14995
|
}
|
|
14996
14996
|
),
|
|
14997
14997
|
/* @__PURE__ */ t(
|
|
14998
|
-
|
|
14998
|
+
Be,
|
|
14999
14999
|
{
|
|
15000
15000
|
copy: { close_aria: a.close_aria, title: i.delete_goal },
|
|
15001
15001
|
isOpen: S,
|
|
@@ -15132,7 +15132,7 @@ class Y1 {
|
|
|
15132
15132
|
monthlyCashFlowProfile = void 0;
|
|
15133
15133
|
goalsLoaded = !1;
|
|
15134
15134
|
constructor(n) {
|
|
15135
|
-
this.globalStore = n, this.api = new os(n.endpoint, n.sessionToken),
|
|
15135
|
+
this.globalStore = n, this.api = new os(n.endpoint, n.sessionToken), Fe(this);
|
|
15136
15136
|
}
|
|
15137
15137
|
get orderedGoals() {
|
|
15138
15138
|
return this.goals.slice().sort((n, i) => n.position - i.position);
|
|
@@ -15719,7 +15719,7 @@ class nf {
|
|
|
15719
15719
|
globalStore;
|
|
15720
15720
|
isLoading = !1;
|
|
15721
15721
|
constructor(n) {
|
|
15722
|
-
this.globalStore = n, this.api = new rs(n.endpoint, n.sessionToken),
|
|
15722
|
+
this.globalStore = n, this.api = new rs(n.endpoint, n.sessionToken), Fe(this);
|
|
15723
15723
|
}
|
|
15724
15724
|
createSupportTicket = async (n) => {
|
|
15725
15725
|
try {
|
|
@@ -15890,7 +15890,7 @@ class gf {
|
|
|
15890
15890
|
globalStore;
|
|
15891
15891
|
showConnectionsWidget = !1;
|
|
15892
15892
|
constructor(n) {
|
|
15893
|
-
this.globalStore = n, this.api = new ss(n.endpoint, n.sessionToken),
|
|
15893
|
+
this.globalStore = n, this.api = new ss(n.endpoint, n.sessionToken), Fe(this);
|
|
15894
15894
|
}
|
|
15895
15895
|
get analysisChartData() {
|
|
15896
15896
|
return hf(cf(this.visibleHoldings), this.analysisType);
|
|
@@ -15977,7 +15977,7 @@ const mf = /^[ a-zA-ZÀ-ÿ0-9]+$/, pf = 50, ls = 65, ff = ({
|
|
|
15977
15977
|
width: "100%",
|
|
15978
15978
|
children: [
|
|
15979
15979
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(ge, { onClick: () => u(f.guid), children: [
|
|
15980
|
-
/* @__PURE__ */ t(
|
|
15980
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Jt, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
15981
15981
|
/* @__PURE__ */ t(se, { primary: f.name })
|
|
15982
15982
|
] }) }),
|
|
15983
15983
|
/* @__PURE__ */ t(P, { sx: { ml: 24 } })
|
|
@@ -16009,7 +16009,7 @@ class Cf {
|
|
|
16009
16009
|
merchants = [];
|
|
16010
16010
|
isLoading = !1;
|
|
16011
16011
|
constructor(n) {
|
|
16012
|
-
this.globalStore = n, this.api = new ds(n.endpoint, n.sessionToken),
|
|
16012
|
+
this.globalStore = n, this.api = new ds(n.endpoint, n.sessionToken), Fe(this);
|
|
16013
16013
|
}
|
|
16014
16014
|
loadMerchants = async (n = "") => {
|
|
16015
16015
|
this.isLoading = !0;
|
|
@@ -16261,7 +16261,7 @@ class kf {
|
|
|
16261
16261
|
hoveredData;
|
|
16262
16262
|
selectedData;
|
|
16263
16263
|
constructor(n) {
|
|
16264
|
-
this.globalStore = n,
|
|
16264
|
+
this.globalStore = n, Fe(this);
|
|
16265
16265
|
}
|
|
16266
16266
|
loadNetWorthData = async (n) => {
|
|
16267
16267
|
try {
|
|
@@ -16712,7 +16712,7 @@ class Kf {
|
|
|
16712
16712
|
notifications = [];
|
|
16713
16713
|
recentNotifications = [];
|
|
16714
16714
|
constructor(n) {
|
|
16715
|
-
this.globalStore = n, this.api = new Tr(n.endpoint, n.sessionToken),
|
|
16715
|
+
this.globalStore = n, this.api = new Tr(n.endpoint, n.sessionToken), Fe(this, { notifications: $d });
|
|
16716
16716
|
}
|
|
16717
16717
|
// Used in Money Dashboard
|
|
16718
16718
|
get newNotifications() {
|
|
@@ -16919,7 +16919,7 @@ class tC {
|
|
|
16919
16919
|
selectedRule = void 0;
|
|
16920
16920
|
transactionRules = [];
|
|
16921
16921
|
constructor(n) {
|
|
16922
|
-
this.globalStore = n, this.api = new gs(n.endpoint, n.sessionToken), this.transactionApi = new ca(n.endpoint, n.sessionToken),
|
|
16922
|
+
this.globalStore = n, this.api = new gs(n.endpoint, n.sessionToken), this.transactionApi = new ca(n.endpoint, n.sessionToken), Fe(this);
|
|
16923
16923
|
}
|
|
16924
16924
|
get accountProfiles() {
|
|
16925
16925
|
const n = this.globalStore.appDataStore.clientCommunicationProfile;
|
|
@@ -17100,7 +17100,7 @@ const ml = x(() => {
|
|
|
17100
17100
|
/* @__PURE__ */ t(ze, {})
|
|
17101
17101
|
] }),
|
|
17102
17102
|
/* @__PURE__ */ t(
|
|
17103
|
-
|
|
17103
|
+
Be,
|
|
17104
17104
|
{
|
|
17105
17105
|
copy: { title: "" },
|
|
17106
17106
|
isOpen: r,
|
|
@@ -17141,7 +17141,7 @@ const ml = x(() => {
|
|
|
17141
17141
|
({ handleClose: e, handleVerify: n, isOpen: i }) => {
|
|
17142
17142
|
const { common: a, settings: o } = A(), [r, s] = g.useState("");
|
|
17143
17143
|
return /* @__PURE__ */ t(
|
|
17144
|
-
|
|
17144
|
+
Be,
|
|
17145
17145
|
{
|
|
17146
17146
|
copy: { title: o.enter_verification_code },
|
|
17147
17147
|
isOpen: i,
|
|
@@ -17182,7 +17182,7 @@ const ml = x(() => {
|
|
|
17182
17182
|
/* @__PURE__ */ t(ze, {})
|
|
17183
17183
|
] }),
|
|
17184
17184
|
/* @__PURE__ */ t(
|
|
17185
|
-
|
|
17185
|
+
Be,
|
|
17186
17186
|
{
|
|
17187
17187
|
copy: { title: "" },
|
|
17188
17188
|
isOpen: s,
|
|
@@ -17338,7 +17338,7 @@ const ml = x(() => {
|
|
|
17338
17338
|
go,
|
|
17339
17339
|
{
|
|
17340
17340
|
label: o.birthdate,
|
|
17341
|
-
onChange: (L) => G({ birthday:
|
|
17341
|
+
onChange: (L) => G({ birthday: Ge(L) }),
|
|
17342
17342
|
slotProps: {
|
|
17343
17343
|
nextIconButton: {
|
|
17344
17344
|
sx: {
|
|
@@ -17397,7 +17397,7 @@ const ml = x(() => {
|
|
|
17397
17397
|
}
|
|
17398
17398
|
),
|
|
17399
17399
|
/* @__PURE__ */ t(
|
|
17400
|
-
|
|
17400
|
+
Be,
|
|
17401
17401
|
{
|
|
17402
17402
|
copy: { title: o.discard_changes },
|
|
17403
17403
|
isOpen: y,
|
|
@@ -17705,7 +17705,7 @@ const oC = ({
|
|
|
17705
17705
|
), i());
|
|
17706
17706
|
};
|
|
17707
17707
|
return /* @__PURE__ */ d(
|
|
17708
|
-
|
|
17708
|
+
Be,
|
|
17709
17709
|
{
|
|
17710
17710
|
copy: { title: f() },
|
|
17711
17711
|
isOpen: n,
|
|
@@ -17852,7 +17852,7 @@ const oC = ({
|
|
|
17852
17852
|
}
|
|
17853
17853
|
),
|
|
17854
17854
|
/* @__PURE__ */ t(
|
|
17855
|
-
|
|
17855
|
+
Be,
|
|
17856
17856
|
{
|
|
17857
17857
|
copy: { title: n.edit_payee },
|
|
17858
17858
|
isOpen: r,
|
|
@@ -17879,7 +17879,7 @@ const oC = ({
|
|
|
17879
17879
|
}), uC = x(({ onClose: e, onDelete: n, isOpen: i }) => {
|
|
17880
17880
|
const { common: a, settings: o } = A(), r = Ee();
|
|
17881
17881
|
return /* @__PURE__ */ t(
|
|
17882
|
-
|
|
17882
|
+
Be,
|
|
17883
17883
|
{
|
|
17884
17884
|
copy: { title: o.delete_rule },
|
|
17885
17885
|
isOpen: i,
|
|
@@ -18000,7 +18000,7 @@ const oC = ({
|
|
|
18000
18000
|
}
|
|
18001
18001
|
),
|
|
18002
18002
|
/* @__PURE__ */ t(
|
|
18003
|
-
|
|
18003
|
+
Be,
|
|
18004
18004
|
{
|
|
18005
18005
|
copy: {
|
|
18006
18006
|
title: s ? a.day_of_the_month : o.notification_threshold_label,
|
|
@@ -21234,7 +21234,7 @@ const oC = ({
|
|
|
21234
21234
|
guid: a,
|
|
21235
21235
|
sx: o
|
|
21236
21236
|
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(ge, { "aria-label": e, onClick: n, children: [
|
|
21237
|
-
a && /* @__PURE__ */ t(
|
|
21237
|
+
a && /* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Tt, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
|
21238
21238
|
/* @__PURE__ */ t(
|
|
21239
21239
|
se,
|
|
21240
21240
|
{
|
|
@@ -22510,7 +22510,7 @@ class C0 {
|
|
|
22510
22510
|
namespace = "experiences";
|
|
22511
22511
|
translationKey = "micro_insights";
|
|
22512
22512
|
constructor() {
|
|
22513
|
-
|
|
22513
|
+
Fe(this);
|
|
22514
22514
|
}
|
|
22515
22515
|
initialize = async (n, i) => {
|
|
22516
22516
|
this.copyApi = new Ri(n, i), await this.loadCopy();
|
|
@@ -22685,7 +22685,7 @@ class E0 {
|
|
|
22685
22685
|
onAnalyticPageView = ws;
|
|
22686
22686
|
beatApi = new li("/", "");
|
|
22687
22687
|
constructor() {
|
|
22688
|
-
|
|
22688
|
+
Fe(this);
|
|
22689
22689
|
}
|
|
22690
22690
|
initialize = async (n, i, a) => {
|
|
22691
22691
|
this.onAnalyticEvent = (o, r) => {
|
|
@@ -22713,7 +22713,7 @@ class T0 {
|
|
|
22713
22713
|
token = "";
|
|
22714
22714
|
isInitialized = !1;
|
|
22715
22715
|
constructor() {
|
|
22716
|
-
this.copyStore = new C0(), this.insightsMicroWidgetStore = new E0(),
|
|
22716
|
+
this.copyStore = new C0(), this.insightsMicroWidgetStore = new E0(), Fe(this);
|
|
22717
22717
|
}
|
|
22718
22718
|
initialize = async (n, i, a) => {
|
|
22719
22719
|
await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
|
|
@@ -24811,7 +24811,7 @@ class ab {
|
|
|
24811
24811
|
this.globalStore = n, this.selectedDateRange = {
|
|
24812
24812
|
start: mo(Qe(Ht(/* @__PURE__ */ new Date(), 6)), 1),
|
|
24813
24813
|
end: Qe(/* @__PURE__ */ new Date())
|
|
24814
|
-
},
|
|
24814
|
+
}, Fe(this);
|
|
24815
24815
|
}
|
|
24816
24816
|
setSelectedCategoryData = (n) => {
|
|
24817
24817
|
this.selectedCategoryData = n;
|
|
@@ -24859,7 +24859,7 @@ class ob {
|
|
|
24859
24859
|
appData = {};
|
|
24860
24860
|
banner = {};
|
|
24861
24861
|
constructor(n) {
|
|
24862
|
-
this.globalStore = n, this.api = new Ds(n.endpoint, n.sessionToken),
|
|
24862
|
+
this.globalStore = n, this.api = new Ds(n.endpoint, n.sessionToken), Fe(this);
|
|
24863
24863
|
}
|
|
24864
24864
|
get appConfig() {
|
|
24865
24865
|
return this.globalStore.appConfig;
|
|
@@ -24907,7 +24907,7 @@ class rb {
|
|
|
24907
24907
|
globalStore;
|
|
24908
24908
|
widgetApi = new Ar("/", "");
|
|
24909
24909
|
constructor(n) {
|
|
24910
|
-
this.globalStore = n, this.widgetApi = new Ar(n.endpoint, n.sessionToken),
|
|
24910
|
+
this.globalStore = n, this.widgetApi = new Ar(n.endpoint, n.sessionToken), Fe(this);
|
|
24911
24911
|
}
|
|
24912
24912
|
loadWidget = async ({ widget: n = "connect_widget", mode: i = "light", ...a }) => await this.widgetApi.requestWidgetUrl({
|
|
24913
24913
|
widget_url: { widget_type: n, color_scheme: i, ...a }
|
|
@@ -24924,7 +24924,7 @@ class sb {
|
|
|
24924
24924
|
end: Qe(this.displayedDate)
|
|
24925
24925
|
};
|
|
24926
24926
|
constructor(n) {
|
|
24927
|
-
|
|
24927
|
+
Fe(this), this.globalStore = n;
|
|
24928
24928
|
}
|
|
24929
24929
|
get isCopyLoaded() {
|
|
24930
24930
|
return this.globalStore.copyStore.isInitialized;
|
|
@@ -24964,7 +24964,7 @@ class cb {
|
|
|
24964
24964
|
api = new Ha("/", "");
|
|
24965
24965
|
userFeatures = [];
|
|
24966
24966
|
constructor(n) {
|
|
24967
|
-
this.globalStore = n, this.api = new Ha(n.endpoint, n.sessionToken),
|
|
24967
|
+
this.globalStore = n, this.api = new Ha(n.endpoint, n.sessionToken), Fe(this);
|
|
24968
24968
|
}
|
|
24969
24969
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
|
24970
24970
|
// TODO: Remove this function
|
|
@@ -25035,7 +25035,7 @@ class P2 {
|
|
|
25035
25035
|
// UI Stores
|
|
25036
25036
|
globalUiStore;
|
|
25037
25037
|
constructor(n = ys, i = "/") {
|
|
25038
|
-
this.appConfig = n, this.endpoint = i, this.sessionToken = n.options.session_token ?? "", this.accountStore = new Mb(this), this.appDataStore = new ob(this), this.analyticsStore = new Ju(this), this.beatStore = new nh(this), this.budgetsStore = new oh(this), this.cashflowStore = new qm(this), this.categoryStore = new vg(this), this.connectStore = new rb(this), this.copyStore = new Qu(this), this.debtsStore = new Zp(this), this.finstrongStore = new r1(this), this.goalStore = new Y1(this), this.helpStore = new nf(this), this.holdingStore = new gf(this), this.merchantStore = new Cf(this), this.netWorthStore = new kf(this), this.notificationStore = new Kf(this), this.recurringTransactionsStore = new Em(this), this.settingsStore = new tC(this), this.transactionStore = new $h(this), this.trendsStore = new ab(this), this.userStore = new cb(this), this.globalUiStore = new sb(this),
|
|
25038
|
+
this.appConfig = n, this.endpoint = i, this.sessionToken = n.options.session_token ?? "", this.accountStore = new Mb(this), this.appDataStore = new ob(this), this.analyticsStore = new Ju(this), this.beatStore = new nh(this), this.budgetsStore = new oh(this), this.cashflowStore = new qm(this), this.categoryStore = new vg(this), this.connectStore = new rb(this), this.copyStore = new Qu(this), this.debtsStore = new Zp(this), this.finstrongStore = new r1(this), this.goalStore = new Y1(this), this.helpStore = new nf(this), this.holdingStore = new gf(this), this.merchantStore = new Cf(this), this.netWorthStore = new kf(this), this.notificationStore = new Kf(this), this.recurringTransactionsStore = new Em(this), this.settingsStore = new tC(this), this.transactionStore = new $h(this), this.trendsStore = new ab(this), this.userStore = new cb(this), this.globalUiStore = new sb(this), Fe(this);
|
|
25039
25039
|
}
|
|
25040
25040
|
get isInitialized() {
|
|
25041
25041
|
return this.globalUiStore.isInitialized;
|
|
@@ -25135,7 +25135,7 @@ const Va = ({
|
|
|
25135
25135
|
}
|
|
25136
25136
|
),
|
|
25137
25137
|
/* @__PURE__ */ t(
|
|
25138
|
-
|
|
25138
|
+
Be,
|
|
25139
25139
|
{
|
|
25140
25140
|
copy: {
|
|
25141
25141
|
close_aria: h.close_modal,
|
|
@@ -25177,7 +25177,7 @@ const Va = ({
|
|
|
25177
25177
|
}
|
|
25178
25178
|
),
|
|
25179
25179
|
o && /* @__PURE__ */ d(
|
|
25180
|
-
|
|
25180
|
+
Be,
|
|
25181
25181
|
{
|
|
25182
25182
|
copy: {
|
|
25183
25183
|
close_aria: h.close_modal,
|
|
@@ -25373,10 +25373,10 @@ const Va = ({
|
|
|
25373
25373
|
return /* @__PURE__ */ d(Z, { children: [
|
|
25374
25374
|
/* @__PURE__ */ t($t, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(C, { bold: !0, component: "h2", variant: "XSmall", children: o.connection_status }) }),
|
|
25375
25375
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
25376
|
-
/* @__PURE__ */ t(
|
|
25376
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25377
25377
|
/* @__PURE__ */ t(se, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
25378
25378
|
] }) : /* @__PURE__ */ d(ge, { onClick: () => n(!0), children: [
|
|
25379
|
-
/* @__PURE__ */ t(
|
|
25379
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25380
25380
|
/* @__PURE__ */ t(
|
|
25381
25381
|
se,
|
|
25382
25382
|
{
|
|
@@ -25393,7 +25393,7 @@ const Va = ({
|
|
|
25393
25393
|
/* @__PURE__ */ t(P, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
25394
25394
|
!a.is_manual && a.institution_url && /* @__PURE__ */ d(Z, { children: [
|
|
25395
25395
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(ge, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
25396
|
-
/* @__PURE__ */ t(
|
|
25396
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
|
25397
25397
|
Bn,
|
|
25398
25398
|
{
|
|
25399
25399
|
backingSx: {
|
|
@@ -25510,7 +25510,7 @@ const Va = ({
|
|
|
25510
25510
|
c(y.target.value), e.validation && u(e.validation(y.target.value));
|
|
25511
25511
|
};
|
|
25512
25512
|
return /* @__PURE__ */ t(
|
|
25513
|
-
|
|
25513
|
+
Be,
|
|
25514
25514
|
{
|
|
25515
25515
|
copy: {
|
|
25516
25516
|
close_aria: r.close_aria,
|
|
@@ -26418,7 +26418,7 @@ class Lb {
|
|
|
26418
26418
|
selectedAccount = {};
|
|
26419
26419
|
selectedMember = {};
|
|
26420
26420
|
constructor() {
|
|
26421
|
-
|
|
26421
|
+
Fe(this);
|
|
26422
26422
|
}
|
|
26423
26423
|
setIsLoading = (n) => this.isLoading = n;
|
|
26424
26424
|
setSelectedAccount = (n) => this.selectedAccount = n;
|
|
@@ -26432,7 +26432,7 @@ class Mb {
|
|
|
26432
26432
|
members = [];
|
|
26433
26433
|
uiStore;
|
|
26434
26434
|
constructor(n) {
|
|
26435
|
-
this.globalStore = n, this.uiStore = new Lb(), this.api = new Ns(n.endpoint, n.sessionToken),
|
|
26435
|
+
this.globalStore = n, this.uiStore = new Lb(), this.api = new Ns(n.endpoint, n.sessionToken), Fe(this);
|
|
26436
26436
|
}
|
|
26437
26437
|
loadAccountData = async ({
|
|
26438
26438
|
accounts: n,
|
|
@@ -27082,7 +27082,7 @@ const qb = ({
|
|
|
27082
27082
|
}, [n, i]);
|
|
27083
27083
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27084
27084
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { children: [
|
|
27085
|
-
/* @__PURE__ */ t(
|
|
27085
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Lt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
27086
27086
|
/* @__PURE__ */ t(se, { primary: e.name, secondary: a })
|
|
27087
27087
|
] }) }),
|
|
27088
27088
|
/* @__PURE__ */ t(P, {})
|
|
@@ -27145,7 +27145,7 @@ const qb = ({
|
|
|
27145
27145
|
);
|
|
27146
27146
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27147
27147
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => r(!0), children: [
|
|
27148
|
-
/* @__PURE__ */ t(
|
|
27148
|
+
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Lt, { categoryGuid: e.guid }) }),
|
|
27149
27149
|
/* @__PURE__ */ t(
|
|
27150
27150
|
se,
|
|
27151
27151
|
{
|
|
@@ -27156,7 +27156,7 @@ const qb = ({
|
|
|
27156
27156
|
/* @__PURE__ */ t(M_, { children: /* @__PURE__ */ t(U, { name: "add", size: 20 }) })
|
|
27157
27157
|
] }) }, e.guid),
|
|
27158
27158
|
/* @__PURE__ */ t(
|
|
27159
|
-
|
|
27159
|
+
Be,
|
|
27160
27160
|
{
|
|
27161
27161
|
copy: { close_aria: a.close_aria, title: i.add_title },
|
|
27162
27162
|
disablePrimaryButton: Number(s) <= 0,
|
|
@@ -27269,7 +27269,7 @@ const qb = ({
|
|
|
27269
27269
|
transaction_total: r
|
|
27270
27270
|
} = e, { setSelectedSubBudget: s } = ut();
|
|
27271
27271
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => s(e), children: [
|
|
27272
|
-
/* @__PURE__ */ t(
|
|
27272
|
+
/* @__PURE__ */ t(Pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Ro, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Lt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
27273
27273
|
/* @__PURE__ */ t(
|
|
27274
27274
|
se,
|
|
27275
27275
|
{
|
|
@@ -27314,7 +27314,7 @@ const qb = ({
|
|
|
27314
27314
|
}
|
|
27315
27315
|
),
|
|
27316
27316
|
/* @__PURE__ */ t(
|
|
27317
|
-
|
|
27317
|
+
Be,
|
|
27318
27318
|
{
|
|
27319
27319
|
copy: { close_aria: a.close_aria, title: i.add_title },
|
|
27320
27320
|
disablePrimaryButton: Number(h) <= 0,
|
|
@@ -27381,7 +27381,7 @@ const qb = ({
|
|
|
27381
27381
|
),
|
|
27382
27382
|
s && /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27383
27383
|
/* @__PURE__ */ t(
|
|
27384
|
-
|
|
27384
|
+
Be,
|
|
27385
27385
|
{
|
|
27386
27386
|
copy: { close_aria: o.close_aria, title: a.details_edit_title },
|
|
27387
27387
|
disablePrimaryButton: Number(S) <= 0,
|
|
@@ -27400,7 +27400,7 @@ const qb = ({
|
|
|
27400
27400
|
}
|
|
27401
27401
|
),
|
|
27402
27402
|
/* @__PURE__ */ t(
|
|
27403
|
-
|
|
27403
|
+
Be,
|
|
27404
27404
|
{
|
|
27405
27405
|
copy: { close_aria: o.close_aria, title: a.delete_title },
|
|
27406
27406
|
isOpen: m,
|
|
@@ -27518,7 +27518,7 @@ const qb = ({
|
|
|
27518
27518
|
}
|
|
27519
27519
|
),
|
|
27520
27520
|
/* @__PURE__ */ t(
|
|
27521
|
-
|
|
27521
|
+
Be,
|
|
27522
27522
|
{
|
|
27523
27523
|
copy: { close_aria: i.close_aria, title: n.details_edit_title },
|
|
27524
27524
|
disablePrimaryButton: Number(E) <= 0,
|
|
@@ -27537,7 +27537,7 @@ const qb = ({
|
|
|
27537
27537
|
}
|
|
27538
27538
|
),
|
|
27539
27539
|
/* @__PURE__ */ t(
|
|
27540
|
-
|
|
27540
|
+
Be,
|
|
27541
27541
|
{
|
|
27542
27542
|
copy: { close_aria: i.close_aria, title: n.delete_title },
|
|
27543
27543
|
isOpen: S,
|
|
@@ -27561,7 +27561,7 @@ const qb = ({
|
|
|
27561
27561
|
transaction_total: u
|
|
27562
27562
|
} = e;
|
|
27563
27563
|
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => n?.(e), children: [
|
|
27564
|
-
/* @__PURE__ */ t(
|
|
27564
|
+
/* @__PURE__ */ t(Pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Ro, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Lt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
27565
27565
|
/* @__PURE__ */ t(
|
|
27566
27566
|
se,
|
|
27567
27567
|
{
|
|
@@ -29120,7 +29120,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29120
29120
|
marketValue: z.market_value || 0,
|
|
29121
29121
|
description: z.description || ""
|
|
29122
29122
|
})), J = pe.length > 0, ke = V.balance, xe = pe.reduce(
|
|
29123
|
-
(z,
|
|
29123
|
+
(z, He) => He.totalGainLoss + z,
|
|
29124
29124
|
0
|
|
29125
29125
|
), Ve = ke ? xe / ke * 100 : 0;
|
|
29126
29126
|
if (e)
|
|
@@ -30148,7 +30148,7 @@ export {
|
|
|
30148
30148
|
b2 as DebtsWidget,
|
|
30149
30149
|
lC as DeviceTab,
|
|
30150
30150
|
tl as DialScoreCard,
|
|
30151
|
-
|
|
30151
|
+
Be as Dialog,
|
|
30152
30152
|
xc as Donut,
|
|
30153
30153
|
le as Drawer,
|
|
30154
30154
|
jn as EmptyState,
|