@mx-cartographer/experiences 9.2.9-alpha.al3 → 9.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{AccountDetailsDrawer-CwDPr4i5.mjs → AccountDetailsDrawer-uaxiCVOl.mjs} +2 -2
- package/dist/{AccountDetailsDrawer-CwDPr4i5.mjs.map → AccountDetailsDrawer-uaxiCVOl.mjs.map} +1 -1
- package/dist/{Analytics-DST_WxYZ.mjs → Analytics-B8AaC22u.mjs} +2 -2
- package/dist/{Analytics-DST_WxYZ.mjs.map → Analytics-B8AaC22u.mjs.map} +1 -1
- package/dist/{ApiEndpoints-YY8ajnnd.mjs → ApiEndpoints-DXwIYNUV.mjs} +1 -2
- package/dist/ApiEndpoints-DXwIYNUV.mjs.map +1 -0
- package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs → CategorySelectorDrawer-BYeVJ_kO.mjs} +94 -86
- package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs.map → CategorySelectorDrawer-BYeVJ_kO.mjs.map} +1 -1
- package/dist/{GlobalCopyApi-DNC5K2QG.mjs → GlobalCopyApi-CLhyon-B.mjs} +2 -2
- package/dist/{GlobalCopyApi-DNC5K2QG.mjs.map → GlobalCopyApi-CLhyon-B.mjs.map} +1 -1
- package/dist/{ManageIncome-Br11zvAT.mjs → ManageIncome-CtD65bN_.mjs} +3 -3
- package/dist/{ManageIncome-Br11zvAT.mjs.map → ManageIncome-CtD65bN_.mjs.map} +1 -1
- package/dist/{RecurringSettings-BkRz-uzd.mjs → RecurringSettings-BM2bQfSY.mjs} +2 -2
- package/dist/{RecurringSettings-BkRz-uzd.mjs.map → RecurringSettings-BM2bQfSY.mjs.map} +1 -1
- package/dist/{TransactionDetails-CLc7oeHT.mjs → TransactionDetails-Bo0rVT-L.mjs} +2 -2
- package/dist/{TransactionDetails-CLc7oeHT.mjs.map → TransactionDetails-Bo0rVT-L.mjs.map} +1 -1
- package/dist/{UserStore-cI7SJMs_.mjs → UserStore-CgsAunf1.mjs} +145 -166
- package/dist/UserStore-CgsAunf1.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-Bx9xa2z5.mjs → ViewMoreMicroCard-B4oeGrbE.mjs} +3 -3
- package/dist/{ViewMoreMicroCard-Bx9xa2z5.mjs.map → ViewMoreMicroCard-B4oeGrbE.mjs.map} +1 -1
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +3 -3
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/core/api/SettingsApi.d.ts +0 -4
- package/dist/core/constants/ApiEndpoints.d.ts +0 -1
- package/dist/core/index.es.js +4 -4
- package/dist/core/stores/SettingsStore.d.ts +0 -4
- package/dist/core/types/localization/SettingsCopy.d.ts +0 -6
- package/dist/finstrong/index.es.js +2 -2
- package/dist/microinsights/index.es.js +1 -1
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/settings/components/profile/ProfileTab.d.ts +1 -1
- package/dist/settings/index.es.js +416 -460
- package/dist/settings/index.es.js.map +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/ApiEndpoints-YY8ajnnd.mjs.map +0 -1
- package/dist/UserStore-cI7SJMs_.mjs.map +0 -1
- package/dist/settings/components/profile/actions/ResetPasswordAction.d.ts +0 -4
|
@@ -2,8 +2,8 @@ import { makeAutoObservable as h, runInAction as c, reaction as gt, autorun as m
|
|
|
2
2
|
import { d as bt, g as At } from "./AccountUtils-Cbh8r9cP.mjs";
|
|
3
3
|
import { i as wt, f as Et, b as It, c as V } from "./BudgetUtil-Bg2AQJpQ.mjs";
|
|
4
4
|
import { c as d, d as $ } from "./Account-DR7Plrqy.mjs";
|
|
5
|
-
import { F as p, B as G, G as z } from "./GlobalCopyApi-
|
|
6
|
-
import { A as
|
|
5
|
+
import { F as p, B as G, G as z } from "./GlobalCopyApi-CLhyon-B.mjs";
|
|
6
|
+
import { A as n } from "./ApiEndpoints-DXwIYNUV.mjs";
|
|
7
7
|
import Rt from "posthog-js";
|
|
8
8
|
import { endOfMonth as b } from "date-fns/endOfMonth";
|
|
9
9
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
@@ -21,7 +21,7 @@ import { fromUnixTime as Ht } from "date-fns/fromUnixTime";
|
|
|
21
21
|
import { f as k, D as H } from "./DateFormats-HudZ3Bjs.mjs";
|
|
22
22
|
import { T, c as q } from "./GoalsUtil-C9EnLWvC.mjs";
|
|
23
23
|
import { A as Wt, m as Vt, a as zt, b as qt } from "./InvestmentUtil-BItV7uEs.mjs";
|
|
24
|
-
import { f as Kt, b as Qt, a as K, c as
|
|
24
|
+
import { f as Kt, b as Qt, a as K, c as Yt, d as jt, e as Xt, s as Jt } from "./NetWorthUtils-Dj7CgAg2.mjs";
|
|
25
25
|
import { f as Zt } from "./NotificationUtils-BRGFTePr.mjs";
|
|
26
26
|
import { isAfter as F } from "date-fns/isAfter";
|
|
27
27
|
import { isSameDay as Q } from "date-fns/isSameDay";
|
|
@@ -29,7 +29,7 @@ import { isWithinInterval as pt } from "date-fns/isWithinInterval";
|
|
|
29
29
|
import { subDays as _t } from "date-fns/subDays";
|
|
30
30
|
import { f as U, h as te, b as L, a as f } from "./RecurringTransactionsUtil-CfWviBh1.mjs";
|
|
31
31
|
import { I as u, A as _, B } from "./Notification-DTNYSd8P.mjs";
|
|
32
|
-
import { endOfToday as
|
|
32
|
+
import { endOfToday as Y } from "date-fns/endOfToday";
|
|
33
33
|
import { formatISO as ee } from "date-fns/formatISO";
|
|
34
34
|
import { addSeconds as se } from "date-fns/addSeconds";
|
|
35
35
|
import { differenceInCalendarMonths as ae } from "date-fns/differenceInCalendarMonths";
|
|
@@ -42,22 +42,22 @@ class M {
|
|
|
42
42
|
constructor(t, e, s) {
|
|
43
43
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
44
44
|
}
|
|
45
|
-
createAccount = async (t) => this.fetchInstance.post(
|
|
46
|
-
deleteAccount = async (t) => this.fetchInstance.delete(`${
|
|
47
|
-
getAccounts = async () => this.fetchInstance.get(
|
|
48
|
-
getInstitutions = async () => this.fetchInstance.get(
|
|
49
|
-
getMembers = async () => this.fetchInstance.get(
|
|
50
|
-
getMonthlyAccountBalances = async (t) => this.fetchInstance.get(`${
|
|
51
|
-
mergeAccounts = async (t) => this.fetchInstance.put(`${
|
|
52
|
-
refreshAllMembers = async () => this.fetchInstance.get(`${
|
|
53
|
-
updateAccount = async (t) => this.fetchInstance.put(`${
|
|
45
|
+
createAccount = async (t) => this.fetchInstance.post(n.ACCOUNTS, t).then((e) => e.account);
|
|
46
|
+
deleteAccount = async (t) => this.fetchInstance.delete(`${n.ACCOUNTS}/${t}`);
|
|
47
|
+
getAccounts = async () => this.fetchInstance.get(n.ACCOUNTS).then((t) => t.accounts);
|
|
48
|
+
getInstitutions = async () => this.fetchInstance.get(n.INSTITUTIONS).then((t) => t);
|
|
49
|
+
getMembers = async () => this.fetchInstance.get(n.MEMBERS).then((t) => t.members);
|
|
50
|
+
getMonthlyAccountBalances = async (t) => this.fetchInstance.get(`${n.ACCOUNTS}/${t}/monthly_account_balances`).then((e) => e.monthly_account_balances);
|
|
51
|
+
mergeAccounts = async (t) => this.fetchInstance.put(`${n.ACCOUNTS}/merge`, { accounts: t }).then((e) => e);
|
|
52
|
+
refreshAllMembers = async () => this.fetchInstance.get(`${n.MEMBERS}/refresh_all`).then((t) => t);
|
|
53
|
+
updateAccount = async (t) => this.fetchInstance.put(`${n.ACCOUNTS}/${t.guid}`, t).then((e) => e.account);
|
|
54
54
|
}
|
|
55
|
-
class
|
|
55
|
+
class j {
|
|
56
56
|
fetchInstance;
|
|
57
57
|
constructor(t, e, s) {
|
|
58
58
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
59
59
|
}
|
|
60
|
-
getAppData = async () => this.fetchInstance.get(
|
|
60
|
+
getAppData = async () => this.fetchInstance.get(n.APP_DATA).then((t) => t);
|
|
61
61
|
}
|
|
62
62
|
class X {
|
|
63
63
|
fetchInstance;
|
|
@@ -81,37 +81,37 @@ class J {
|
|
|
81
81
|
constructor(t, e, s) {
|
|
82
82
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
83
83
|
}
|
|
84
|
-
addBudget = async (t, e, s = null) => this.fetchInstance.post(
|
|
84
|
+
addBudget = async (t, e, s = null) => this.fetchInstance.post(n.BUDGETS, {
|
|
85
85
|
amount: e,
|
|
86
86
|
category_guid: t.guid,
|
|
87
87
|
category_name: t.name,
|
|
88
88
|
parent_guid: s
|
|
89
89
|
}).then((a) => a.budget);
|
|
90
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${
|
|
91
|
-
getBudgets = async () => this.fetchInstance.get(
|
|
92
|
-
updateBudget = async (t) => this.fetchInstance.put(`${
|
|
93
|
-
addMerchantBudget = async (t, e) => this.fetchInstance.post(
|
|
90
|
+
deleteBudget = async (t) => this.fetchInstance.delete(`${n.BUDGETS}/${t}`).then((e) => e);
|
|
91
|
+
getBudgets = async () => this.fetchInstance.get(n.BUDGETS).then((t) => t.budgets);
|
|
92
|
+
updateBudget = async (t) => this.fetchInstance.put(`${n.BUDGETS}/${t.guid}`, t).then((e) => e.budget);
|
|
93
|
+
addMerchantBudget = async (t, e) => this.fetchInstance.post(n.MERCHANT_BUDGETS, {
|
|
94
94
|
amount: e,
|
|
95
95
|
merchant_guid: t
|
|
96
96
|
}).then((s) => s.merchant_budget);
|
|
97
|
-
updateMerchantBudget = async (t, e) => this.fetchInstance.put(`${
|
|
97
|
+
updateMerchantBudget = async (t, e) => this.fetchInstance.put(`${n.MERCHANT_BUDGETS}/${t}`, {
|
|
98
98
|
amount: e
|
|
99
99
|
}).then((s) => s.merchant_budget);
|
|
100
|
-
deleteMerchantBudget = async (t) => this.fetchInstance.delete(`${
|
|
100
|
+
deleteMerchantBudget = async (t) => this.fetchInstance.delete(`${n.MERCHANT_BUDGETS}/${t}`).then((e) => e);
|
|
101
101
|
}
|
|
102
102
|
class Z {
|
|
103
103
|
fetchInstance;
|
|
104
104
|
constructor(t, e, s) {
|
|
105
105
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
106
106
|
}
|
|
107
|
-
addCategory = async (t) => this.fetchInstance.post(
|
|
108
|
-
getCategories = async () => this.fetchInstance.get(
|
|
109
|
-
getDateRangeCategoryTotals = async (t, e, s) => s.length === 0 ? [] : this.fetchInstance.post(`${
|
|
107
|
+
addCategory = async (t) => this.fetchInstance.post(n.CATEGORIES, t).then((e) => e.category);
|
|
108
|
+
getCategories = async () => this.fetchInstance.get(n.CATEGORIES).then((t) => t.categories);
|
|
109
|
+
getDateRangeCategoryTotals = async (t, e, s) => s.length === 0 ? [] : this.fetchInstance.post(`${n.DATE_RANGE_CATEGORY_TOTALS}/from/${t}/to/${e}`, {
|
|
110
110
|
account_guid: s.map((a) => a.guid)
|
|
111
111
|
}).then((a) => a.date_range_category_totals);
|
|
112
112
|
getMonthlyCategoryTotals = async (t, e, s) => {
|
|
113
113
|
try {
|
|
114
|
-
const a = `${
|
|
114
|
+
const a = `${n.MONTHLY_CATEGORY_TOTALS}/from/${t}/to/${e}`;
|
|
115
115
|
if (s) {
|
|
116
116
|
const i = s.length === 0 ? [""] : s.map((l) => l.guid);
|
|
117
117
|
return (await this.fetchInstance.post(a, { account_guid: i })).monthly_category_totals;
|
|
@@ -121,59 +121,59 @@ class Z {
|
|
|
121
121
|
throw console.error("Error fetching monthly category totals:", a), a;
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
|
-
removeCategory = async (t) => this.fetchInstance.delete(`${
|
|
125
|
-
updateCategory = async (t) => this.fetchInstance.put(`${
|
|
124
|
+
removeCategory = async (t) => this.fetchInstance.delete(`${n.CATEGORIES}/${t}`);
|
|
125
|
+
updateCategory = async (t) => this.fetchInstance.put(`${n.CATEGORIES}/${t.guid}`, t).then((e) => e.category);
|
|
126
126
|
}
|
|
127
127
|
class tt {
|
|
128
128
|
fetchInstance;
|
|
129
129
|
constructor(t, e, s) {
|
|
130
130
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
131
131
|
}
|
|
132
|
-
calculateHealthScore = async () => this.fetchInstance.post(`${
|
|
133
|
-
getAverageHealthScores = async () => this.fetchInstance.get(`${
|
|
134
|
-
getDebtSpend = async () => this.fetchInstance.get(`${
|
|
135
|
-
getIncome = async () => this.fetchInstance.get(`${
|
|
136
|
-
getMonthlySummaries = async () => this.fetchInstance.get(`${
|
|
137
|
-
getHealthScoreChangeReports = async (t, e) => this.fetchInstance.get(`${
|
|
138
|
-
getPeerScore = async (t) => this.fetchInstance.get(`${
|
|
139
|
-
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${
|
|
140
|
-
getStandardSpend = async () => this.fetchInstance.get(`${
|
|
132
|
+
calculateHealthScore = async () => this.fetchInstance.post(`${n.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
133
|
+
getAverageHealthScores = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
134
|
+
getDebtSpend = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
135
|
+
getIncome = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
136
|
+
getMonthlySummaries = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
137
|
+
getHealthScoreChangeReports = async (t, e) => this.fetchInstance.get(`${n.HEALTH_SCORES}/change_report/from/${t}/to/${e}`).then((s) => s);
|
|
138
|
+
getPeerScore = async (t) => this.fetchInstance.get(`${n.HEALTH_SCORES}/average/${t}`).then((e) => e);
|
|
139
|
+
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/spending_fee`).then((t) => t);
|
|
140
|
+
getStandardSpend = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
|
|
141
141
|
}
|
|
142
142
|
class et {
|
|
143
143
|
fetchInstance;
|
|
144
144
|
constructor(t, e, s) {
|
|
145
145
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
146
146
|
}
|
|
147
|
-
addGoal = async (t) => this.fetchInstance.post(
|
|
148
|
-
addRetirementGoal = async (t) => this.fetchInstance.post(
|
|
149
|
-
addRetirementGoalAccount = async (t) => this.fetchInstance.post(
|
|
150
|
-
getGoalByGuid = async (t) => this.fetchInstance.get(`${
|
|
151
|
-
getGoals = async () => this.fetchInstance.get(
|
|
152
|
-
getMonthlyCashFlowProfile = async () => this.fetchInstance.get(
|
|
153
|
-
getRetirementGoals = async () => this.fetchInstance.get(
|
|
154
|
-
getRetirementGoalAccounts = async () => this.fetchInstance.get(
|
|
155
|
-
removeGoal = async (t) => this.fetchInstance.delete(`${
|
|
156
|
-
removeRetirementGoal = async (t) => this.fetchInstance.delete(`${
|
|
157
|
-
removeRetirementGoalAccount = async (t) => this.fetchInstance.delete(`${
|
|
158
|
-
reorderGoals = async (t) => this.fetchInstance.post(`${
|
|
159
|
-
updateGoal = async (t) => this.fetchInstance.put(`${
|
|
160
|
-
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${
|
|
161
|
-
updateRetirementGoal = async (t) => this.fetchInstance.put(`${
|
|
147
|
+
addGoal = async (t) => this.fetchInstance.post(n.GOALS, t).then((e) => e.goal);
|
|
148
|
+
addRetirementGoal = async (t) => this.fetchInstance.post(n.RETIREMENT_GOALS, t).then((e) => e.retirement_goal);
|
|
149
|
+
addRetirementGoalAccount = async (t) => this.fetchInstance.post(n.RETIREMENT_GOAL_ACCOUNTS, t).then((e) => e.retirement_goal_account);
|
|
150
|
+
getGoalByGuid = async (t) => this.fetchInstance.get(`${n.GOALS}/${t}`).then((e) => e.goal);
|
|
151
|
+
getGoals = async () => this.fetchInstance.get(n.GOALS).then((t) => t.goals);
|
|
152
|
+
getMonthlyCashFlowProfile = async () => this.fetchInstance.get(n.MONTHLY_CASH_FLOW_PROFILE).then((t) => t.monthly_cash_flow_profile);
|
|
153
|
+
getRetirementGoals = async () => this.fetchInstance.get(n.RETIREMENT_GOALS).then((t) => t.retirement_goals);
|
|
154
|
+
getRetirementGoalAccounts = async () => this.fetchInstance.get(n.RETIREMENT_GOAL_ACCOUNTS).then((t) => t.retirement_goal_accounts);
|
|
155
|
+
removeGoal = async (t) => this.fetchInstance.delete(`${n.GOALS}/${t}`).then((e) => e);
|
|
156
|
+
removeRetirementGoal = async (t) => this.fetchInstance.delete(`${n.RETIREMENT_GOALS}/${t}`).then((e) => e);
|
|
157
|
+
removeRetirementGoalAccount = async (t) => this.fetchInstance.delete(`${n.RETIREMENT_GOAL_ACCOUNTS}/${t}`).then((e) => e);
|
|
158
|
+
reorderGoals = async (t) => this.fetchInstance.post(`${n.GOALS}/reposition`, { goals: t }).then((e) => e.goals);
|
|
159
|
+
updateGoal = async (t) => this.fetchInstance.put(`${n.GOALS}/${t.guid}`, t).then((e) => e.goal);
|
|
160
|
+
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${n.MONTHLY_CASH_FLOW_PROFILE}`, t).then((e) => e.monthly_cash_flow_profile);
|
|
161
|
+
updateRetirementGoal = async (t) => this.fetchInstance.put(`${n.RETIREMENT_GOALS}/${t.guid}`, t).then((e) => e.retirement_goal);
|
|
162
162
|
}
|
|
163
163
|
class st {
|
|
164
164
|
fetchInstance;
|
|
165
165
|
constructor(t, e, s) {
|
|
166
166
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
167
167
|
}
|
|
168
|
-
createSupportTicket = async (t) => this.fetchInstance.post(
|
|
168
|
+
createSupportTicket = async (t) => this.fetchInstance.post(n.SUPPORT_TICKETS, t).then((e) => e);
|
|
169
169
|
}
|
|
170
170
|
class at {
|
|
171
171
|
fetchInstance;
|
|
172
172
|
constructor(t, e, s) {
|
|
173
173
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
174
174
|
}
|
|
175
|
-
getHoldings = async () => this.fetchInstance.get(
|
|
176
|
-
updateHoldings = async (t) => this.fetchInstance.put(`${
|
|
175
|
+
getHoldings = async () => this.fetchInstance.get(n.HOLDINGS).then((t) => t.holdings);
|
|
176
|
+
updateHoldings = async (t) => this.fetchInstance.put(`${n.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
177
177
|
}
|
|
178
178
|
class rt {
|
|
179
179
|
fetchInstance;
|
|
@@ -181,83 +181,71 @@ class rt {
|
|
|
181
181
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
182
182
|
}
|
|
183
183
|
getMerchants = async (t = [], e = [], s = 1, a = 25) => {
|
|
184
|
-
let i =
|
|
184
|
+
let i = n.MERCHANTS;
|
|
185
185
|
return i += `?page=${s}&per_page=${a}`, t.length && t.forEach((o) => i += `&fuzzy_name[]=${o}`), e.length && e.forEach((o) => i += `&guid[]=${o}`), this.fetchInstance.get(i).then((o) => o.merchants);
|
|
186
186
|
};
|
|
187
|
-
getMerchantByGuid = async (t) => this.fetchInstance.get(`${
|
|
187
|
+
getMerchantByGuid = async (t) => this.fetchInstance.get(`${n.MERCHANTS}/${t}`).then((e) => e.merchant);
|
|
188
188
|
}
|
|
189
189
|
class nt {
|
|
190
190
|
fetchInstance;
|
|
191
191
|
constructor(t, e, s) {
|
|
192
192
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
193
193
|
}
|
|
194
|
-
getNotifications = () => this.fetchInstance.get(
|
|
194
|
+
getNotifications = () => this.fetchInstance.get(n.NOTIFICATIONS).then(
|
|
195
195
|
(t) => t.notifications.map((e) => e.notification)
|
|
196
196
|
).finally();
|
|
197
|
-
updateNotification = (t) => this.fetchInstance.put(`${
|
|
197
|
+
updateNotification = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/${t.guid}`, {
|
|
198
198
|
guid: t.guid,
|
|
199
199
|
has_been_viewed: t.has_been_viewed
|
|
200
200
|
}).then((e) => e.notification).finally();
|
|
201
201
|
// Note: The notifications/mark_all_as_viewed endpoint is broken, but still returns 202.
|
|
202
202
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
203
|
-
markAllAsViewed = (t) => this.fetchInstance.put(`${
|
|
203
|
+
markAllAsViewed = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
|
|
204
204
|
}
|
|
205
205
|
class it {
|
|
206
206
|
fetchInstance;
|
|
207
207
|
constructor(t, e, s) {
|
|
208
208
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
209
209
|
}
|
|
210
|
-
addRepeatingTransaction = async (t) => this.fetchInstance.post(
|
|
211
|
-
getRepeatingTransactions = async () => this.fetchInstance.get(
|
|
210
|
+
addRepeatingTransaction = async (t) => this.fetchInstance.post(n.REPEATING_TRANSACTIONS, t).then((e) => e.repeating_transaction);
|
|
211
|
+
getRepeatingTransactions = async () => this.fetchInstance.get(n.REPEATING_TRANSACTIONS).then((t) => t.repeating_transactions);
|
|
212
212
|
updateRepeatingTransaction = async (t) => this.fetchInstance.put(
|
|
213
|
-
`${
|
|
213
|
+
`${n.REPEATING_TRANSACTIONS}/${t.guid}`,
|
|
214
214
|
t
|
|
215
215
|
).then((e) => e.repeating_transaction);
|
|
216
|
-
deleteRepeatingTransaction = async (t) => this.fetchInstance.delete(`${
|
|
216
|
+
deleteRepeatingTransaction = async (t) => this.fetchInstance.delete(`${n.REPEATING_TRANSACTIONS}/${t}`).then((e) => e);
|
|
217
217
|
}
|
|
218
218
|
class ot {
|
|
219
219
|
fetchInstance;
|
|
220
220
|
constructor(t, e, s) {
|
|
221
221
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
222
222
|
}
|
|
223
|
-
deleteDevice = async (t) => this.fetchInstance.delete(`${
|
|
224
|
-
generateDeviceToken = async () => this.fetchInstance.get(`${
|
|
225
|
-
getDevices = async () => this.fetchInstance.get(
|
|
226
|
-
getNotificationProfiles = async () => this.fetchInstance.get(
|
|
223
|
+
deleteDevice = async (t) => this.fetchInstance.delete(`${n.DEVICES}/${t}`).then((e) => e);
|
|
224
|
+
generateDeviceToken = async () => this.fetchInstance.get(`${n.USER}/mobile_token`).then((t) => t.mobile_token);
|
|
225
|
+
getDevices = async () => this.fetchInstance.get(n.DEVICES).then((t) => t.map((e) => e.device));
|
|
226
|
+
getNotificationProfiles = async () => this.fetchInstance.get(n.NOTIFICATION_PROFILES).then((t) => t.notification_profiles);
|
|
227
227
|
// verifications endpoints respond with HTTP status codes; they error otherwise
|
|
228
|
-
sendEmailVerification = async () => this.fetchInstance.post(
|
|
229
|
-
sendPhoneVerification = async () => this.fetchInstance.post(
|
|
230
|
-
verifyPhoneToken = async (t) => this.fetchInstance.post(
|
|
231
|
-
updateDevice = async (t) => this.fetchInstance.put(`${
|
|
232
|
-
updateNotificationProfile = async (t) => this.fetchInstance.put(`${
|
|
233
|
-
updateUserCommunicationProfile = async (t) => this.fetchInstance.put(
|
|
234
|
-
|
|
235
|
-
const e = await fetch(`${this.fetchInstance.endpoint}${r.CHANGE_PASSWORD}`, {
|
|
236
|
-
method: "PUT",
|
|
237
|
-
headers: this.fetchInstance.headers,
|
|
238
|
-
body: JSON.stringify(t)
|
|
239
|
-
});
|
|
240
|
-
if (!e.ok) {
|
|
241
|
-
const a = (await e.json().catch(() => null))?.user?.errors, i = a?.message?.[0] || a?.plaintext_password?.[0];
|
|
242
|
-
throw new Error(i);
|
|
243
|
-
}
|
|
244
|
-
return e.json();
|
|
245
|
-
};
|
|
246
|
-
getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${r.NOTIFICATION_PROFILES}/${r.INSIGHTS_NOTIFICATION_PROFILES}`).then((t) => t);
|
|
228
|
+
sendEmailVerification = async () => this.fetchInstance.post(n.EMAIL_VERIFICATIONS);
|
|
229
|
+
sendPhoneVerification = async () => this.fetchInstance.post(n.PHONE_VERIFICATIONS + "/deliver");
|
|
230
|
+
verifyPhoneToken = async (t) => this.fetchInstance.post(n.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: t }).then((e) => ({ verified: e.verified }));
|
|
231
|
+
updateDevice = async (t) => this.fetchInstance.put(`${n.DEVICES}/${t.guid}`, t).then((e) => e.device);
|
|
232
|
+
updateNotificationProfile = async (t) => this.fetchInstance.put(`${n.NOTIFICATION_PROFILES}/${t.guid}`, t).then((e) => e.notification_profile);
|
|
233
|
+
updateUserCommunicationProfile = async (t) => this.fetchInstance.put(n.USER_COMMUNICATION_PROFILE, t).then((e) => e.user_communication_profile);
|
|
234
|
+
getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${n.NOTIFICATION_PROFILES}/${n.INSIGHTS_NOTIFICATION_PROFILES}`).then((t) => t);
|
|
247
235
|
}
|
|
248
236
|
class O {
|
|
249
237
|
fetchInstance;
|
|
250
238
|
constructor(t, e, s) {
|
|
251
239
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
252
240
|
}
|
|
253
|
-
addTag = async (t) => this.fetchInstance.post(
|
|
254
|
-
addTagging = async (t) => this.fetchInstance.post(
|
|
255
|
-
addTransaction = async (t) => this.fetchInstance.post(
|
|
256
|
-
addTransactionRule = async (t) => this.fetchInstance.post(
|
|
257
|
-
getTaggings = async () => this.fetchInstance.get(
|
|
258
|
-
getTags = async () => this.fetchInstance.get(
|
|
259
|
-
getTransactionRules = async () => this.fetchInstance.get(
|
|
260
|
-
getTransactionsByDateRange = async (t, e) => this.fetchInstance.get(`${
|
|
241
|
+
addTag = async (t) => this.fetchInstance.post(n.TAGS, t).then((e) => e.tag);
|
|
242
|
+
addTagging = async (t) => this.fetchInstance.post(n.TAGGINGS, t).then((e) => e.tagging);
|
|
243
|
+
addTransaction = async (t) => this.fetchInstance.post(n.TRANSACTIONS, t).then((e) => e.transaction);
|
|
244
|
+
addTransactionRule = async (t) => this.fetchInstance.post(n.TRANSACTION_RULES, t).then((e) => e);
|
|
245
|
+
getTaggings = async () => this.fetchInstance.get(n.TAGGINGS).then((t) => t.map((e) => e.tagging));
|
|
246
|
+
getTags = async () => this.fetchInstance.get(n.TAGS).then((t) => t.map((e) => e.tag));
|
|
247
|
+
getTransactionRules = async () => this.fetchInstance.get(n.TRANSACTION_RULES).then((t) => t.transaction_rules);
|
|
248
|
+
getTransactionsByDateRange = async (t, e) => this.fetchInstance.get(`${n.TRANSACTIONS}/by_date/${t}/${e}`).then((s) => s.map((a) => a.transaction));
|
|
261
249
|
// DEPRECATED
|
|
262
250
|
getTransactionsByAccountsAndDateRange = async (t, e, s) => {
|
|
263
251
|
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
@@ -265,13 +253,13 @@ class O {
|
|
|
265
253
|
(i, o, l) => `${i}account_guids[]=${o}${l !== t.length - 1 ? "&" : ""}`,
|
|
266
254
|
""
|
|
267
255
|
);
|
|
268
|
-
return this.fetchInstance.get(`${
|
|
256
|
+
return this.fetchInstance.get(`${n.TRANSACTIONS}/by_date/${e}/${s}?${a}`).then((i) => i.map((o) => o.transaction));
|
|
269
257
|
};
|
|
270
258
|
// DEPRECATED
|
|
271
|
-
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${
|
|
259
|
+
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${n.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((e) => e.map((s) => s.transaction)));
|
|
272
260
|
// DEPRECATED
|
|
273
261
|
getTransactionsByCategoryAndDate = async (t, e, s) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
274
|
-
`${
|
|
262
|
+
`${n.TRANSACTIONS}/by_category_guid/${t}/by_date/${e}/${s}`
|
|
275
263
|
).then((a) => a.map((i) => i.transaction)));
|
|
276
264
|
// DEPRECATED
|
|
277
265
|
getTransactionsByCategoryDateAndAccounts = async (t, e, s, a) => {
|
|
@@ -281,7 +269,7 @@ class O {
|
|
|
281
269
|
""
|
|
282
270
|
);
|
|
283
271
|
return this.fetchInstance.get(
|
|
284
|
-
`${
|
|
272
|
+
`${n.TRANSACTIONS}/by_category_guid/${t}/by_date/${e}/${s}?${i}`
|
|
285
273
|
).then((o) => o.map((l) => l.transaction));
|
|
286
274
|
};
|
|
287
275
|
// DEPRECATED
|
|
@@ -292,7 +280,7 @@ class O {
|
|
|
292
280
|
""
|
|
293
281
|
);
|
|
294
282
|
return this.fetchInstance.get(
|
|
295
|
-
`${
|
|
283
|
+
`${n.TRANSACTIONS}/by_category_guids/${t.join(
|
|
296
284
|
"+"
|
|
297
285
|
)}/by_date/${e}/${s}?${i}`
|
|
298
286
|
).then((o) => o.map((l) => l.transaction));
|
|
@@ -308,7 +296,7 @@ class O {
|
|
|
308
296
|
*/
|
|
309
297
|
getTransactionsByTopLevelCategoryAndDate = async (t, e, s, a = []) => {
|
|
310
298
|
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
311
|
-
let i = `${
|
|
299
|
+
let i = `${n.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${e}/${s}`;
|
|
312
300
|
if (a.length > 0) {
|
|
313
301
|
const o = a.reduce(
|
|
314
302
|
(l, g, S) => `${l}account_guids[]=${g}${S !== a.length - 1 ? "&" : ""}`,
|
|
@@ -318,30 +306,30 @@ class O {
|
|
|
318
306
|
}
|
|
319
307
|
return this.fetchInstance.get(i).then((o) => o.map((l) => l.transaction));
|
|
320
308
|
};
|
|
321
|
-
removeTag = async (t) => this.fetchInstance.delete(`${
|
|
322
|
-
removeTagging = async (t) => this.fetchInstance.delete(`${
|
|
323
|
-
removeTransaction = async (t) => this.fetchInstance.delete(`${
|
|
324
|
-
removeTransactionRule = async (t) => this.fetchInstance.delete(`${
|
|
325
|
-
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${
|
|
326
|
-
updateTransactionRule = async (t) => this.fetchInstance.put(`${
|
|
327
|
-
updateTag = async (t) => this.fetchInstance.put(`${
|
|
328
|
-
updateTransaction = async (t) => this.fetchInstance.put(`${
|
|
309
|
+
removeTag = async (t) => this.fetchInstance.delete(`${n.TAGS}/${t}`).then((e) => e);
|
|
310
|
+
removeTagging = async (t) => this.fetchInstance.delete(`${n.TAGGINGS}/${t}`).then((e) => e);
|
|
311
|
+
removeTransaction = async (t) => this.fetchInstance.delete(`${n.TRANSACTIONS}/${t}`).then((e) => e);
|
|
312
|
+
removeTransactionRule = async (t) => this.fetchInstance.delete(`${n.TRANSACTION_RULES}/${t}`);
|
|
313
|
+
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${n.TRANSACTIONS}/${t}/unsplit`).then((e) => e);
|
|
314
|
+
updateTransactionRule = async (t) => this.fetchInstance.put(`${n.TRANSACTION_RULES}/${t.guid}`, t).then((e) => e);
|
|
315
|
+
updateTag = async (t) => this.fetchInstance.put(`${n.TAGS}/${t.guid}`, t).then((e) => e.tag);
|
|
316
|
+
updateTransaction = async (t) => this.fetchInstance.put(`${n.TRANSACTIONS}/${t.guid}`, t).then((e) => e.transaction);
|
|
329
317
|
}
|
|
330
318
|
class ct {
|
|
331
319
|
fetchInstance;
|
|
332
320
|
constructor(t, e, s) {
|
|
333
321
|
this.fetchInstance = new p(t, e, void 0, s);
|
|
334
322
|
}
|
|
335
|
-
getUserFeatures = async () => this.fetchInstance.get(
|
|
336
|
-
updateUser = async (t) => this.fetchInstance.put(
|
|
337
|
-
updateUserProfile = async (t) => this.fetchInstance.put(`${
|
|
323
|
+
getUserFeatures = async () => this.fetchInstance.get(n.USER_FEATURES).then((t) => t.user_features);
|
|
324
|
+
updateUser = async (t) => this.fetchInstance.put(n.USER, t).then((e) => e.user);
|
|
325
|
+
updateUserProfile = async (t) => this.fetchInstance.put(`${n.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
338
326
|
}
|
|
339
327
|
class lt {
|
|
340
328
|
fetchInstance;
|
|
341
329
|
constructor(t, e) {
|
|
342
330
|
this.fetchInstance = new p(t, e);
|
|
343
331
|
}
|
|
344
|
-
requestWidgetUrl = async (t) => this.fetchInstance.post(
|
|
332
|
+
requestWidgetUrl = async (t) => this.fetchInstance.post(n.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
345
333
|
}
|
|
346
334
|
class ce {
|
|
347
335
|
globalStore;
|
|
@@ -600,13 +588,13 @@ let le = class {
|
|
|
600
588
|
};
|
|
601
589
|
class he {
|
|
602
590
|
globalStore;
|
|
603
|
-
api = new
|
|
591
|
+
api = new j("/", "");
|
|
604
592
|
bannerApi = new X("/");
|
|
605
593
|
appData = {};
|
|
606
594
|
isAppDataLoaded = !1;
|
|
607
595
|
banner = {};
|
|
608
596
|
constructor(t) {
|
|
609
|
-
this.globalStore = t, this.api = new
|
|
597
|
+
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
610
598
|
}
|
|
611
599
|
get appConfig() {
|
|
612
600
|
return this.globalStore.appConfig;
|
|
@@ -700,36 +688,36 @@ class de {
|
|
|
700
688
|
this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
|
|
701
689
|
};
|
|
702
690
|
}
|
|
703
|
-
function ue(
|
|
691
|
+
function ue(r, t, e, s = "asc") {
|
|
704
692
|
const a = s === "desc" ? -1 : 1;
|
|
705
|
-
return [...
|
|
693
|
+
return [...r, ...t].sort((i, o) => i[e] < o[e] ? -1 * a : i[e] > o[e] ? 1 * a : 0);
|
|
706
694
|
}
|
|
707
|
-
const ge = (
|
|
708
|
-
...
|
|
695
|
+
const ge = (r) => ({
|
|
696
|
+
...r,
|
|
709
697
|
//fields that are offer specific, adding here for visibility
|
|
710
|
-
image_url:
|
|
711
|
-
guid:
|
|
712
|
-
created_at:
|
|
713
|
-
dismissed_at:
|
|
714
|
-
active_at:
|
|
715
|
-
displayed_at:
|
|
716
|
-
post_message_secondary:
|
|
698
|
+
image_url: r.image_url,
|
|
699
|
+
guid: r.guid,
|
|
700
|
+
created_at: r.created_at,
|
|
701
|
+
dismissed_at: r.dismissed_at,
|
|
702
|
+
active_at: r.campaign_activated_at,
|
|
703
|
+
displayed_at: r.has_been_viewed,
|
|
704
|
+
post_message_secondary: r.pulse_post_message_secondary,
|
|
717
705
|
//offer fields mapped to beat fields for functionality
|
|
718
|
-
title:
|
|
719
|
-
html_title:
|
|
720
|
-
short_title:
|
|
721
|
-
html_short_title:
|
|
722
|
-
micro_title:
|
|
723
|
-
html_micro_title:
|
|
724
|
-
supporting_action:
|
|
725
|
-
description:
|
|
726
|
-
html_description:
|
|
727
|
-
micro_description:
|
|
728
|
-
html_micro_description:
|
|
729
|
-
call_to_action:
|
|
730
|
-
html_micro_call_to_action:
|
|
731
|
-
micro_call_to_action:
|
|
732
|
-
is_dismissed:
|
|
706
|
+
title: r.pulse_title || r.campaign_name,
|
|
707
|
+
html_title: r.pulse_title || r.campaign_name,
|
|
708
|
+
short_title: r.pulse_title || r.campaign_name,
|
|
709
|
+
html_short_title: r.pulse_title || r.campaign_name,
|
|
710
|
+
micro_title: r.pulse_title || r.campaign_name,
|
|
711
|
+
html_micro_title: r.pulse_title || r.campaign_name,
|
|
712
|
+
supporting_action: r.pulse_call_to_action_text_secondary,
|
|
713
|
+
description: r.pulse_body,
|
|
714
|
+
html_description: r.pulse_body,
|
|
715
|
+
micro_description: r.pulse_body,
|
|
716
|
+
html_micro_description: r.pulse_body,
|
|
717
|
+
call_to_action: r.pulse_call_to_action_text,
|
|
718
|
+
html_micro_call_to_action: r.pulse_call_to_action_text,
|
|
719
|
+
micro_call_to_action: r.pulse_call_to_action_text,
|
|
720
|
+
is_dismissed: r.has_been_dismissed,
|
|
733
721
|
icon_type: 5,
|
|
734
722
|
template: "MarketingOffer",
|
|
735
723
|
//beat fields we null out
|
|
@@ -741,7 +729,7 @@ const ge = (n) => ({
|
|
|
741
729
|
is_sampled: !1,
|
|
742
730
|
merchant_guids: [],
|
|
743
731
|
payload: {},
|
|
744
|
-
pulse_campaign_name:
|
|
732
|
+
pulse_campaign_name: r.campaign_name,
|
|
745
733
|
scheduled_payment_guids: [],
|
|
746
734
|
transaction_guids: [],
|
|
747
735
|
user_guid: "",
|
|
@@ -1236,13 +1224,13 @@ let Ae = class {
|
|
|
1236
1224
|
setSelectedDebtChartData = (t) => this.selectedDebtChartData = t;
|
|
1237
1225
|
setSelectedDebtPriority = (t) => this.selectedDebtPriority = t;
|
|
1238
1226
|
};
|
|
1239
|
-
const we = (
|
|
1227
|
+
const we = (r) => r.sort((t, e) => t.monthly_health_score_average.year !== e.monthly_health_score_average.year ? t.monthly_health_score_average.year - e.monthly_health_score_average.year : t.monthly_health_score_average.month - e.monthly_health_score_average.month).map((t) => ({
|
|
1240
1228
|
x: k(
|
|
1241
1229
|
new Date(0, t.monthly_health_score_average.month - 1, 1),
|
|
1242
1230
|
H.MONTH_SHORT
|
|
1243
1231
|
),
|
|
1244
1232
|
y: Math.round(t.monthly_health_score_average.average_health_score)
|
|
1245
|
-
})), Ee = (
|
|
1233
|
+
})), Ee = (r) => r.map(({ transaction: e }) => ({
|
|
1246
1234
|
...e
|
|
1247
1235
|
})).sort((e, s) => s.date - e.date);
|
|
1248
1236
|
class Ie {
|
|
@@ -1906,7 +1894,7 @@ class De {
|
|
|
1906
1894
|
}
|
|
1907
1895
|
};
|
|
1908
1896
|
}
|
|
1909
|
-
const xe = (
|
|
1897
|
+
const xe = (r, t) => r.guid === "general" || r.guid === "insights" ? !0 : r.flags ? r.flags.every((e) => t[e]) : !1, Le = (r, t) => {
|
|
1910
1898
|
const e = [];
|
|
1911
1899
|
for (const s of oe) {
|
|
1912
1900
|
const a = t[s.guid];
|
|
@@ -1919,7 +1907,7 @@ const xe = (n, t) => n.guid === "general" || n.guid === "insights" ? !0 : n.flag
|
|
|
1919
1907
|
label: a.topics[l]
|
|
1920
1908
|
}))
|
|
1921
1909
|
};
|
|
1922
|
-
xe(i,
|
|
1910
|
+
xe(i, r) && e.push(i);
|
|
1923
1911
|
}
|
|
1924
1912
|
return e;
|
|
1925
1913
|
};
|
|
@@ -2075,10 +2063,10 @@ class Be {
|
|
|
2075
2063
|
return this.hoveredIndex >= 0 ? this.netWorthChartData[this.hoveredIndex] : void 0;
|
|
2076
2064
|
}
|
|
2077
2065
|
get gainsLosses() {
|
|
2078
|
-
return
|
|
2066
|
+
return Yt(this.selectedData);
|
|
2079
2067
|
}
|
|
2080
2068
|
get assetsLiabilities() {
|
|
2081
|
-
const { assets: t, liabilities: e, totalAssets: s, totalLiabilities: a } =
|
|
2069
|
+
const { assets: t, liabilities: e, totalAssets: s, totalLiabilities: a } = jt(
|
|
2082
2070
|
this.netWorthData.accounts
|
|
2083
2071
|
);
|
|
2084
2072
|
return {
|
|
@@ -2153,7 +2141,7 @@ class Me {
|
|
|
2153
2141
|
t.has_been_viewed = !0, await this.api.updateNotification(t);
|
|
2154
2142
|
};
|
|
2155
2143
|
}
|
|
2156
|
-
const dt = (
|
|
2144
|
+
const dt = (r, t) => pt(t.expectedDate, r), A = (r, t) => r + t.amount;
|
|
2157
2145
|
class Oe {
|
|
2158
2146
|
globalStore;
|
|
2159
2147
|
api = new it("/", "");
|
|
@@ -2481,7 +2469,7 @@ class Oe {
|
|
|
2481
2469
|
};
|
|
2482
2470
|
setAlert = (t, e = void 0) => this.alert = { message: t, severity: e };
|
|
2483
2471
|
}
|
|
2484
|
-
const ut = "PARENT-ENTITY", Pe = (
|
|
2472
|
+
const ut = "PARENT-ENTITY", Pe = (r, t) => ({
|
|
2485
2473
|
[B.BudgetExceeded]: t.notification_budget_exceeded,
|
|
2486
2474
|
[B.BudgetOffTarget]: t.notification_budget_off_target,
|
|
2487
2475
|
[_.DebtPaymentReminder]: t.notification_debt_payment_reminder,
|
|
@@ -2514,7 +2502,7 @@ const ut = "PARENT-ENTITY", Pe = (n, t) => ({
|
|
|
2514
2502
|
[u.TransactionExpenseLarge]: t.large_transaction,
|
|
2515
2503
|
[u.PromotionalCampaignMessages]: t.promotional_campaign_messages,
|
|
2516
2504
|
[u.TransparentOverdraft]: t.transparent_overdraft
|
|
2517
|
-
})[
|
|
2505
|
+
})[r] || "", $e = (r, t, e, s, a, i) => {
|
|
2518
2506
|
const o = [], {
|
|
2519
2507
|
email_notifications_enabled: l,
|
|
2520
2508
|
sms_notifications_enabled: g,
|
|
@@ -2526,13 +2514,13 @@ const ut = "PARENT-ENTITY", Pe = (n, t) => ({
|
|
|
2526
2514
|
} = a;
|
|
2527
2515
|
for (const E of s.filter((D) => D.entity_guid === ut)) {
|
|
2528
2516
|
const D = Pe(E.notification_type, e), St = s.filter(
|
|
2529
|
-
(I) => I.entity_guid !== ut && I.notification_type === E.notification_type &&
|
|
2517
|
+
(I) => I.entity_guid !== ut && I.notification_type === E.notification_type && r.some((P) => P.guid === I.entity_guid)
|
|
2530
2518
|
), x = [];
|
|
2531
2519
|
l && !C && E.email_channel && i.email && x.push(e.delivery_method_email_label), g && !ft && E.sms_channel && i.phone && x.push(e.delivery_method_sms_label), S && !yt && E.push_channel && x.push(e.delivery_method_push_label), o.push({
|
|
2532
2520
|
...E,
|
|
2533
2521
|
children: St.map((I) => ({
|
|
2534
2522
|
...I,
|
|
2535
|
-
account:
|
|
2523
|
+
account: r.find((P) => P.guid === I.entity_guid),
|
|
2536
2524
|
label: D
|
|
2537
2525
|
})),
|
|
2538
2526
|
deliveryMethodsLabel: x.join(", "),
|
|
@@ -2667,15 +2655,6 @@ class Fe {
|
|
|
2667
2655
|
setSelectedRule = (t) => {
|
|
2668
2656
|
this.selectedRule = t;
|
|
2669
2657
|
};
|
|
2670
|
-
updatePassword = async (t) => {
|
|
2671
|
-
try {
|
|
2672
|
-
await this.api.updatePassword(t), this.setAlert(this.copy.password_updated_success, "success");
|
|
2673
|
-
} catch (e) {
|
|
2674
|
-
console.error("Error updating password:", e), this.globalStore.captureException(e, { store: "SettingsStore" });
|
|
2675
|
-
const s = e instanceof Error && e.message ? e.message : this.copy.password_updated_error;
|
|
2676
|
-
this.setAlert(s, "error");
|
|
2677
|
-
}
|
|
2678
|
-
};
|
|
2679
2658
|
updateDevice = async (t) => {
|
|
2680
2659
|
try {
|
|
2681
2660
|
const e = await this.api.updateDevice(t), s = this.devices.findIndex((a) => a.guid === t.guid);
|
|
@@ -2938,7 +2917,7 @@ class Ue {
|
|
|
2938
2917
|
try {
|
|
2939
2918
|
const e = await this.api.getTransactionsByDateRange(
|
|
2940
2919
|
m(t),
|
|
2941
|
-
m(
|
|
2920
|
+
m(Y())
|
|
2942
2921
|
);
|
|
2943
2922
|
this.setTransactions(e), c(() => {
|
|
2944
2923
|
this.cachedStartDate = t;
|
|
@@ -3073,7 +3052,7 @@ class Ue {
|
|
|
3073
3052
|
try {
|
|
3074
3053
|
const e = await this.api.getTransactionsByDateRange(
|
|
3075
3054
|
m(t),
|
|
3076
|
-
m(
|
|
3055
|
+
m(Y())
|
|
3077
3056
|
);
|
|
3078
3057
|
this.cachedStartDate = t, this.transactions = e;
|
|
3079
3058
|
} catch (e) {
|
|
@@ -3224,7 +3203,7 @@ export {
|
|
|
3224
3203
|
lt as W,
|
|
3225
3204
|
ce as a,
|
|
3226
3205
|
de as b,
|
|
3227
|
-
|
|
3206
|
+
j as c,
|
|
3228
3207
|
he as d,
|
|
3229
3208
|
pe as e,
|
|
3230
3209
|
J as f,
|
|
@@ -3249,4 +3228,4 @@ export {
|
|
|
3249
3228
|
He as y,
|
|
3250
3229
|
We as z
|
|
3251
3230
|
};
|
|
3252
|
-
//# sourceMappingURL=UserStore-
|
|
3231
|
+
//# sourceMappingURL=UserStore-CgsAunf1.mjs.map
|