@mx-cartographer/experiences 8.0.25 → 8.1.0
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 -9
- package/dist/{AccountApi-ChQr5PAZ.mjs → AccountApi-WEM2M9tg.mjs} +1 -1
- package/dist/{AccountDetailsHeader-D9gbTbUt.mjs → AccountDetailsHeader-IPRH6Wja.mjs} +2 -2
- package/dist/{AccountFields-CxqONzjY.mjs → AccountFields-BbPSfzru.mjs} +3 -3
- package/dist/{AccountListItem-D9WJDbZ1.mjs → AccountListItem-qpACFl6i.mjs} +2 -2
- package/dist/{AccountStore-B7zfcad7.mjs → AccountStore-BeEiLNhW.mjs} +2 -2
- package/dist/Analytics-CjZ0emfs.mjs +53 -0
- package/dist/{Fetch-B6tMJC1r.mjs → ApiEndpoints-C5IA97i7.mjs} +48 -50
- package/dist/{BeatApi-EFHXULDx.mjs → BeatApi-C6pBa0Rb.mjs} +1 -1
- package/dist/{BeatStore-C6CAT-ce.mjs → BeatStore-DuvvrljY.mjs} +1 -1
- package/dist/{BudgetUtil-DZpOoZQa.mjs → BudgetUtil-CLh4xtj4.mjs} +60 -60
- package/dist/CategoryApi-CogDFScz.mjs +29 -0
- package/dist/{CategorySelectorDrawer-Dc9Widy9.mjs → CategorySelectorDrawer-BG04ByUx.mjs} +1 -1
- package/dist/CategoryStore-Bp1kO9Z-.mjs +160 -0
- package/dist/{CategoryUtil-BVixr0d5.mjs → CategoryUtil-DKRCegQv.mjs} +1 -1
- package/dist/{CurrencyInput-DuMktPu3.mjs → CurrencyInput-BkNVHxSV.mjs} +14 -13
- package/dist/{CurrencyText-CA-E5N_y.mjs → CurrencyText-oqd6cX3M.mjs} +1 -1
- package/dist/{DateFormats-BMpMrZpW.mjs → DateFormats-CaOj_4eI.mjs} +1 -1
- package/dist/{DateUtil-wcYTmDRD.mjs → DateUtil-C57sqxn4.mjs} +1 -1
- package/dist/{EmbeddedCard-qwIhF1VP.mjs → EmbeddedCard-j7IGx3s1.mjs} +5 -5
- package/dist/{ExportCsvAction-CHCmCCqf.mjs → ExportCsvAction-7sjz7AXQ.mjs} +1 -1
- package/dist/FinstrongApi-FpmsS_sy.mjs +19 -0
- package/dist/{FinstrongStore-BQxXxxYD.mjs → FinstrongStore-DgyDJTEP.mjs} +121 -137
- package/dist/GlobalCopyApi-DkS-2Zf_.mjs +41 -0
- package/dist/Goal-MFBpoOIC.mjs +29 -0
- package/dist/{GoalStore-fgXt--2Y.mjs → GoalStore-DcaT4fM6.mjs} +81 -104
- package/dist/{Help-BkmSY96v.mjs → Help-cTsMzSQh.mjs} +1 -1
- package/dist/{LineChart-EAr5ox5U.mjs → LineChart-DkD_s9NN.mjs} +1 -1
- package/dist/Localization-C_HZg9tJ.mjs +15 -0
- package/dist/Localization-CkQ49EKr.mjs +26 -0
- package/dist/{ManageIncome-DqqI9HB1.mjs → ManageIncome-DwSE_a8L.mjs} +20 -20
- package/dist/MerchantApi-D8ahYxiG.mjs +15 -0
- package/dist/MerchantStore-CyZTv-BM.mjs +26 -0
- package/dist/{NetWorthStore-BqZ44-4M.mjs → NetWorthStore-Ba3q3VcH.mjs} +1 -1
- package/dist/NotificationApi-DF0obHoR.mjs +20 -0
- package/dist/{NotificationSettings-DBT37CVB.mjs → NotificationSettings-DB-eNgSv.mjs} +3 -3
- package/dist/NotificationStore-DlAM5Ue0.mjs +69 -0
- package/dist/{NumberFormatting-QCaNwbjv.mjs → NumberFormatting-CyrvFgfd.mjs} +1 -1
- package/dist/{OriginalBalanceAction-DjpvVVFz.mjs → OriginalBalanceAction-AB1TGb5P.mjs} +2 -2
- package/dist/{RecurringSettings-OBGLelZQ.mjs → RecurringSettings-CZKeZC4m.mjs} +8 -8
- package/dist/{RecurringTransactions-BbZ6MQsX.mjs → RecurringTransactions-kzlU8OFY.mjs} +5 -5
- package/dist/{RecurringTransactionsStore-BE_eUfTC.mjs → RecurringTransactionsStore-D62Dt2BF.mjs} +76 -90
- package/dist/{RepeatingTransaction-DF4vJn_v.mjs → RepeatingTransaction-D2gmBTd0.mjs} +3 -3
- package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +17 -0
- package/dist/SettingsApi-D9d7SLhB.mjs +22 -0
- package/dist/{SettingsStore-BoIoiRLj.mjs → SettingsStore-Dsz1mvd3.mjs} +41 -60
- package/dist/{SpendingData-Bz1bCWAs.mjs → SpendingData-CoZOmlZD.mjs} +1 -1
- package/dist/{SpendingLegend-CypdabwS.mjs → SpendingLegend-DljKEG69.mjs} +2 -2
- package/dist/{Transaction-C3Pg9TKf.mjs → Transaction-Cn5_iFm0.mjs} +2 -2
- package/dist/{TransactionApi-Ck5Ua-7F.mjs → TransactionApi-CLG2eSNe.mjs} +1 -1
- package/dist/{TransactionDetails-I1ny1ecc.mjs → TransactionDetails-CN-yZkin.mjs} +9 -9
- package/dist/{TransactionStore-BUsgGRL1.mjs → TransactionStore-6ovFO8P1.mjs} +10 -10
- package/dist/{TrendsStore-CYdTo7cN.mjs → TrendsStore-DZa6cyQC.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BJOZcYnB.mjs → ViewMoreMicroCard-BsEitNRJ.mjs} +10 -9
- package/dist/WidgetApi-C0BA2cFX.mjs +102 -0
- package/dist/{WidgetContainer-DYKMArWw.mjs → WidgetContainer-Bc75FqK7.mjs} +1 -1
- package/dist/accounts/index.d.ts +0 -1
- package/dist/accounts/index.es.js +63 -65
- package/dist/accounts/stores/AccountStore.d.ts +1 -1
- package/dist/budgets/index.es.js +11 -11
- package/dist/budgets/store/BudgetsStore.d.ts +1 -1
- package/dist/cashflow/index.d.ts +0 -1
- package/dist/cashflow/index.es.js +428 -449
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/common/constants/index.d.ts +0 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +389 -521
- package/dist/common/stores/AppDataStore.d.ts +2 -2
- package/dist/common/stores/ConnectStore.d.ts +1 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +0 -9
- package/dist/common/utils/index.d.ts +1 -2
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +2 -2
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -2
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +0 -2
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +90 -38
- package/dist/{common → core}/utils/Fetch.d.ts +1 -1
- package/dist/core/utils/Localization.d.ts +9 -0
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/debts/index.es.js +7 -7
- package/dist/{exportTransactionsToCSV-DgdB3TBt.mjs → exportTransactionsToCSV-Dnd5lVq7.mjs} +2 -2
- package/dist/finstrong/index.d.ts +0 -1
- package/dist/finstrong/index.es.js +16 -17
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -1
- package/dist/goals/index.es.js +50 -51
- package/dist/goals/stores/GoalStore.d.ts +1 -1
- package/dist/help/index.es.js +2 -2
- package/dist/help/store/HelpStore.d.ts +1 -1
- package/dist/insights/index.es.js +6 -6
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/investments/stores/HoldingStore.d.ts +1 -1
- package/dist/merchants/index.es.js +1 -1
- package/dist/merchants/stores/MerchantStore.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- package/dist/networth/index.es.js +8 -8
- package/dist/networth/stores/NetWorthStore.d.ts +1 -1
- package/dist/notifications/index.es.js +5 -5
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/recurringtransactions/index.es.js +26 -25
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -1
- package/dist/settings/index.es.js +65 -66
- package/dist/settings/stores/SettingsStore.d.ts +2 -2
- package/dist/spending/index.es.js +6 -6
- package/dist/transactions/index.d.ts +0 -1
- package/dist/transactions/index.es.js +22 -24
- package/dist/transactions/stores/TransactionStore.d.ts +3 -2
- package/dist/trends/index.es.js +14 -14
- package/package.json +1 -1
- package/dist/CategoryStore-FTxUbn0f.mjs +0 -186
- package/dist/Goal-0loDagc5.mjs +0 -6
- package/dist/Localization-CPkpIwIx.mjs +0 -37
- package/dist/MerchantStore-BzGi4JAZ.mjs +0 -37
- package/dist/NotificationStore-D_e8zo5M.mjs +0 -86
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- package/dist/repeatingTransactions-DHIG94pi.mjs +0 -4
- package/dist/useCombineEvents-Bqojlv8q.mjs +0 -92
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [8.1.0] - 04-21-2026
|
|
2
|
+
|
|
3
|
+
**UPDATED** - All apis have been moved into `src/core/api`
|
|
4
|
+
|
|
1
5
|
## [8.0.25] - 04-20-2026
|
|
2
6
|
|
|
3
7
|
- **ADDED** - `Error` component from MD
|
|
@@ -923,16 +927,7 @@
|
|
|
923
927
|
|
|
924
928
|
## [7.2.14] - 11-24-2025
|
|
925
929
|
|
|
926
|
-
=======
|
|
927
|
-
|
|
928
|
-
## [7.2.14] - 11-25-2025
|
|
929
|
-
|
|
930
|
-
> > > > > > > fd2b3985 (Icon cleanup)
|
|
931
|
-
|
|
932
930
|
- **UPDATED** - remove uneeded client color scheme reference from `microinsights`
|
|
933
|
-
|
|
934
|
-
> > > > > > > 38a99394 (remove client color scheme references)
|
|
935
|
-
|
|
936
931
|
- **UPDATED** - icon code cleanup in `microinsights`
|
|
937
932
|
|
|
938
933
|
## [7.2.13] - 11-24-2025
|
|
@@ -4,7 +4,7 @@ import s from "@mui/material/Stack";
|
|
|
4
4
|
import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
|
|
5
5
|
import p from "react";
|
|
6
6
|
import { G as N, d as _, l as P, f as G, u as O } from "./hooks-BxkfR-Ff.mjs";
|
|
7
|
-
import { g as R } from "./AccountFields-
|
|
7
|
+
import { g as R } from "./AccountFields-BbPSfzru.mjs";
|
|
8
8
|
import { A as r } from "./Account-BiB1F8lL.mjs";
|
|
9
9
|
import w from "@mui/material/Card";
|
|
10
10
|
import v from "@mui/material/CardContent";
|
|
@@ -12,7 +12,7 @@ import L from "@mui/material/CardHeader";
|
|
|
12
12
|
import { L as H } from "./Loader-D3rjKx72.mjs";
|
|
13
13
|
import { I as M, P as U, S as Y } from "./Account-DuOz1a27.mjs";
|
|
14
14
|
import { u as j } from "./useAccountDisplayName-DKwT1mWv.mjs";
|
|
15
|
-
import { f as z } from "./NumberFormatting-
|
|
15
|
+
import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
16
16
|
const C = () => {
|
|
17
17
|
if (!p.useContext(N))
|
|
18
18
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
@@ -3,9 +3,9 @@ import { Icon as p, Text as y } from "@mxenabled/mxui";
|
|
|
3
3
|
import { A as d, a as v, P as h, b as F } from "./Account-BiB1F8lL.mjs";
|
|
4
4
|
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-o7ohkngR.mjs";
|
|
5
5
|
import { F as m } from "./Accounts-CseLC3lL.mjs";
|
|
6
|
-
import { f as _, i as b, a as N, b as C } from "./NumberFormatting-
|
|
7
|
-
import { b as i } from "./Localization-
|
|
8
|
-
import { f as o, D as f } from "./DateFormats-
|
|
6
|
+
import { f as _, i as b, a as N, b as C } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
7
|
+
import { b as i } from "./Localization-CkQ49EKr.mjs";
|
|
8
|
+
import { f as o, D as f } from "./DateFormats-CaOj_4eI.mjs";
|
|
9
9
|
const x = (l, e) => {
|
|
10
10
|
const r = [
|
|
11
11
|
{
|
|
@@ -10,11 +10,11 @@ import L from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as A, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as B } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-
|
|
13
|
+
import { g as T } from "./AccountFields-BbPSfzru.mjs";
|
|
14
14
|
import { u as $ } from "./useAccountDisplayName-DKwT1mWv.mjs";
|
|
15
15
|
import { u as k } from "./hooks-BxkfR-Ff.mjs";
|
|
16
16
|
import { C as c } from "./Account-BiB1F8lL.mjs";
|
|
17
|
-
import { f as w } from "./NumberFormatting-
|
|
17
|
+
import { f as w } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
18
18
|
const E = {
|
|
19
19
|
gridRow: 1,
|
|
20
20
|
gridColumn: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as h, runInAction as a } from "mobx";
|
|
2
|
-
import { i as g } from "./BudgetUtil-
|
|
3
|
-
import { A as d } from "./AccountApi-
|
|
2
|
+
import { i as g } from "./BudgetUtil-CLh4xtj4.mjs";
|
|
3
|
+
import { A as d } from "./AccountApi-WEM2M9tg.mjs";
|
|
4
4
|
import { d as p } from "./Accounts-o7ohkngR.mjs";
|
|
5
5
|
import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
|
|
6
6
|
class m {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import u from "react";
|
|
2
|
+
import { getUnixTime as r } from "date-fns/getUnixTime";
|
|
3
|
+
import { A as l } from "./GlobalCopyApi-DkS-2Zf_.mjs";
|
|
4
|
+
const A = (s, i) => {
|
|
5
|
+
const { session: t } = i, o = Object.values(i).reduce((e, n) => t && n?.onAnalyticEvent && typeof n?.onAnalyticEvent == "function" ? [...e, n.onAnalyticEvent] : e, []), a = [...s, ...o];
|
|
6
|
+
return u.useMemo(() => (e) => {
|
|
7
|
+
a.forEach((n) => {
|
|
8
|
+
t ? n(e, t) : n(e);
|
|
9
|
+
});
|
|
10
|
+
}, [s, t]);
|
|
11
|
+
}, d = (s, i) => {
|
|
12
|
+
const { session: t } = i, o = Object.values(i).reduce((e, n) => t && n?.onAnalyticPageView && typeof n?.onAnalyticPageView == "function" ? [...e, n.onAnalyticPageView] : e, []), a = [...s, ...o];
|
|
13
|
+
return u.useMemo(() => (e) => {
|
|
14
|
+
a.forEach((n) => {
|
|
15
|
+
t ? n(e, t) : n(e);
|
|
16
|
+
});
|
|
17
|
+
}, [s, t]);
|
|
18
|
+
}, w = async (s, i, t = "1.0.0", o = "Experiences") => {
|
|
19
|
+
const a = new l(s, i), { analytics_session: e } = await a.initializeAnalyticsSession(
|
|
20
|
+
t,
|
|
21
|
+
o
|
|
22
|
+
), n = window.location.hostname;
|
|
23
|
+
return {
|
|
24
|
+
sendAnalyticEvent: async (c) => await a.sendAnalyticEvent({
|
|
25
|
+
analytics_event: {
|
|
26
|
+
...c,
|
|
27
|
+
app_version: "widgets-v2",
|
|
28
|
+
created_at: r(/* @__PURE__ */ new Date()).toString(),
|
|
29
|
+
host: n,
|
|
30
|
+
name: c?.label || "",
|
|
31
|
+
session_id: e.guid,
|
|
32
|
+
user_agent: navigator.userAgent || "",
|
|
33
|
+
version: 2
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
sendAnalyticsPageview: async (c) => await a.sendAnalyticsPageview({
|
|
37
|
+
analytics_pageview: {
|
|
38
|
+
...c,
|
|
39
|
+
app_version: "widgets-v2",
|
|
40
|
+
created_at: r(/* @__PURE__ */ new Date()).toString(),
|
|
41
|
+
host: n,
|
|
42
|
+
name: c.name,
|
|
43
|
+
session_id: e.guid,
|
|
44
|
+
user_agent: navigator.userAgent || ""
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export {
|
|
50
|
+
d as a,
|
|
51
|
+
w as b,
|
|
52
|
+
A as u
|
|
53
|
+
};
|
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
import { g as i } from "./Localization-
|
|
2
|
-
const E = {
|
|
3
|
-
ACCOUNTS: "accounts",
|
|
4
|
-
ANALYTICS_EVENTS: "analytics_events",
|
|
5
|
-
ANALYTICS_FEATURE_VISITS: "feature_visits",
|
|
6
|
-
ANALYTICS_PAGEVIEWS: "analytics_pageviews",
|
|
7
|
-
ANALYTICS_SESSION: "analytics_sessions",
|
|
8
|
-
APP_DATA: "raja/data?type=master",
|
|
9
|
-
BEATS: "beats",
|
|
10
|
-
BUDGETS: "budgets",
|
|
11
|
-
CASHFLOW_EVENTS: "cashflow_events",
|
|
12
|
-
CASHFLOW_SEQUENCES: "cashflow_sequences",
|
|
13
|
-
CATEGORIES: "categories",
|
|
14
|
-
DATE_RANGE_CATEGORY_TOTALS: "date_range_category_totals",
|
|
15
|
-
DEVICES: "devices",
|
|
16
|
-
EMAIL_VERIFICATIONS: "email_verifications",
|
|
17
|
-
GOALS: "goals",
|
|
18
|
-
HEALTH_SCORES: "health_scores",
|
|
19
|
-
HOLDINGS: "holdings",
|
|
20
|
-
INSTITUTIONS: "institutions",
|
|
21
|
-
INSIGHTS_NOTIFICATION_PROFILES: "insight_notification_profiles",
|
|
22
|
-
LOCALIZED_COPY: "localized_copies",
|
|
23
|
-
LOCALIZED_CONTENT: "localized_content",
|
|
24
|
-
MEMBERS: "members",
|
|
25
|
-
MERCHANTS: "merchants",
|
|
26
|
-
MERCHANT_BUDGETS: "merchant_budgets",
|
|
27
|
-
MONTHLY_CASH_FLOW_PROFILE: "monthly_cash_flow_profile",
|
|
28
|
-
MONTHLY_CATEGORY_TOTALS: "monthly_category_totals",
|
|
29
|
-
OFFERS: "offers",
|
|
30
|
-
NOTIFICATION_PROFILES: "notification_profiles",
|
|
31
|
-
NOTIFICATIONS: "notifications",
|
|
32
|
-
PHONE_VERIFICATIONS: "sms_verification",
|
|
33
|
-
PULSE_COMMUNICATIONS: "pulse_communications",
|
|
34
|
-
REPEATING_TRANSACTIONS: "repeating_transactions",
|
|
35
|
-
RETIREMENT_GOALS: "retirement_goals",
|
|
36
|
-
RETIREMENT_GOAL_ACCOUNTS: "retirement_goal_accounts",
|
|
37
|
-
SCHEDULED_PAYMENTS: "scheduled_payments",
|
|
38
|
-
SPENDING_PLANS: "spending_plans",
|
|
39
|
-
SUPPORT_TICKETS: "support_tickets",
|
|
40
|
-
TAGGINGS: "taggings",
|
|
41
|
-
TAGS: "tags",
|
|
42
|
-
TRANSACTION_RULES: "transaction_rules",
|
|
43
|
-
TRANSACTIONS: "transactions",
|
|
44
|
-
USER: "user",
|
|
45
|
-
USER_COMMUNICATION_PROFILE: "user_communication_profile",
|
|
46
|
-
USER_FEATURES: "user_features",
|
|
47
|
-
USER_PROFILES: "user_profiles",
|
|
48
|
-
WIDGET_URLS: "widget_urls"
|
|
49
|
-
};
|
|
1
|
+
import { g as i } from "./Localization-C_HZg9tJ.mjs";
|
|
50
2
|
class _ {
|
|
51
3
|
endpoint = "/";
|
|
52
4
|
headers;
|
|
@@ -114,7 +66,53 @@ class _ {
|
|
|
114
66
|
});
|
|
115
67
|
};
|
|
116
68
|
}
|
|
69
|
+
const h = {
|
|
70
|
+
ACCOUNTS: "accounts",
|
|
71
|
+
ANALYTICS_EVENTS: "analytics_events",
|
|
72
|
+
ANALYTICS_FEATURE_VISITS: "feature_visits",
|
|
73
|
+
ANALYTICS_PAGEVIEWS: "analytics_pageviews",
|
|
74
|
+
ANALYTICS_SESSION: "analytics_sessions",
|
|
75
|
+
APP_DATA: "raja/data?type=master",
|
|
76
|
+
BEATS: "beats",
|
|
77
|
+
BUDGETS: "budgets",
|
|
78
|
+
CATEGORIES: "categories",
|
|
79
|
+
DATE_RANGE_CATEGORY_TOTALS: "date_range_category_totals",
|
|
80
|
+
DEVICES: "devices",
|
|
81
|
+
EMAIL_VERIFICATIONS: "email_verifications",
|
|
82
|
+
GOALS: "goals",
|
|
83
|
+
HEALTH_SCORES: "health_scores",
|
|
84
|
+
HOLDINGS: "holdings",
|
|
85
|
+
INSTITUTIONS: "institutions",
|
|
86
|
+
INSIGHTS_NOTIFICATION_PROFILES: "insight_notification_profiles",
|
|
87
|
+
LOCALIZED_COPY: "localized_copies",
|
|
88
|
+
LOCALIZED_CONTENT: "localized_content",
|
|
89
|
+
MEMBERS: "members",
|
|
90
|
+
MERCHANTS: "merchants",
|
|
91
|
+
MERCHANT_BUDGETS: "merchant_budgets",
|
|
92
|
+
MONTHLY_CASH_FLOW_PROFILE: "monthly_cash_flow_profile",
|
|
93
|
+
MONTHLY_CATEGORY_TOTALS: "monthly_category_totals",
|
|
94
|
+
OFFERS: "offers",
|
|
95
|
+
NOTIFICATION_PROFILES: "notification_profiles",
|
|
96
|
+
NOTIFICATIONS: "notifications",
|
|
97
|
+
PHONE_VERIFICATIONS: "sms_verification",
|
|
98
|
+
PULSE_COMMUNICATIONS: "pulse_communications",
|
|
99
|
+
REPEATING_TRANSACTIONS: "repeating_transactions",
|
|
100
|
+
RETIREMENT_GOALS: "retirement_goals",
|
|
101
|
+
RETIREMENT_GOAL_ACCOUNTS: "retirement_goal_accounts",
|
|
102
|
+
SCHEDULED_PAYMENTS: "scheduled_payments",
|
|
103
|
+
SPENDING_PLANS: "spending_plans",
|
|
104
|
+
SUPPORT_TICKETS: "support_tickets",
|
|
105
|
+
TAGGINGS: "taggings",
|
|
106
|
+
TAGS: "tags",
|
|
107
|
+
TRANSACTION_RULES: "transaction_rules",
|
|
108
|
+
TRANSACTIONS: "transactions",
|
|
109
|
+
USER: "user",
|
|
110
|
+
USER_COMMUNICATION_PROFILE: "user_communication_profile",
|
|
111
|
+
USER_FEATURES: "user_features",
|
|
112
|
+
USER_PROFILES: "user_profiles",
|
|
113
|
+
WIDGET_URLS: "widget_urls"
|
|
114
|
+
};
|
|
117
115
|
export {
|
|
118
|
-
|
|
116
|
+
h as A,
|
|
119
117
|
_ as F
|
|
120
118
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeAutoObservable as c, runInAction as r } from "mobx";
|
|
2
|
-
import { B as l } from "./BeatApi-
|
|
2
|
+
import { B as l } from "./BeatApi-C6pBa0Rb.mjs";
|
|
3
3
|
function d(t, e, s, i = "asc") {
|
|
4
4
|
const a = i === "desc" ? -1 : 1;
|
|
5
5
|
return [...t, ...e].sort((_, n) => _[s] < n[s] ? -1 * a : _[s] > n[s] ? 1 * a : 0);
|
|
@@ -16,7 +16,7 @@ import C from "@mui/material/Button";
|
|
|
16
16
|
import V from "@mui/material/Paper";
|
|
17
17
|
import { H2 as X, Text as z, H3 as tt, P as et } from "@mxenabled/mxui";
|
|
18
18
|
import { ChevronLeft as nt, ChevronRight as ot, Icon as rt } from "@mxenabled/mx-icons";
|
|
19
|
-
import { f as at, D as it } from "./DateFormats-
|
|
19
|
+
import { f as at, D as it } from "./DateFormats-CaOj_4eI.mjs";
|
|
20
20
|
import { isSameDay as f } from "date-fns/isSameDay";
|
|
21
21
|
import { isWithinInterval as st } from "date-fns/isWithinInterval";
|
|
22
22
|
import ct from "@mui/material/styles/useTheme";
|
|
@@ -30,38 +30,10 @@ import ft from "@mui/material/TextField";
|
|
|
30
30
|
import { u as pt } from "./useScreenSize-CUcpY7aJ.mjs";
|
|
31
31
|
import { m as ht } from "./hooks-BxkfR-Ff.mjs";
|
|
32
32
|
import { b as T } from "./Category-CevNQ03n.mjs";
|
|
33
|
-
import { b as j } from "./Localization-
|
|
34
|
-
import { f as O } from "./NumberFormatting-
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
if (e)
|
|
38
|
-
return e.subCategories.find((o) => o.guid === n);
|
|
39
|
-
}, ce = (t, n) => {
|
|
40
|
-
const e = [];
|
|
41
|
-
for (const o of n) {
|
|
42
|
-
const a = W(t, o.category_guid);
|
|
43
|
-
if (!a) continue;
|
|
44
|
-
const s = a.parent_guid ?? a.guid, d = W(t, s);
|
|
45
|
-
if (!d) continue;
|
|
46
|
-
const i = {
|
|
47
|
-
amount: o.total,
|
|
48
|
-
category: a,
|
|
49
|
-
guid: a.guid,
|
|
50
|
-
subCategoryTotals: []
|
|
51
|
-
}, l = e.find((m) => m.guid === s);
|
|
52
|
-
l ? (l.amount += o.total, l.subCategoryTotals.push(i)) : e.push({
|
|
53
|
-
amount: o.total,
|
|
54
|
-
category: d,
|
|
55
|
-
guid: s,
|
|
56
|
-
subCategoryTotals: [i]
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return e;
|
|
60
|
-
}, le = (t, n) => {
|
|
61
|
-
const e = t.find((o) => o.guid === n);
|
|
62
|
-
return e ? e.guid === T.INCOME || e.parent_guid === T.INCOME : !1;
|
|
63
|
-
}, bt = ({ copy: t, date: n, onNextClick: e, onPreviousClick: o }) => {
|
|
64
|
-
const a = Ct();
|
|
33
|
+
import { b as j } from "./Localization-CkQ49EKr.mjs";
|
|
34
|
+
import { f as O } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
35
|
+
const xt = ({ copy: t, date: n, onNextClick: e, onPreviousClick: o }) => {
|
|
36
|
+
const a = yt();
|
|
65
37
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${a}`, children: [
|
|
66
38
|
/* @__PURE__ */ r(X, { className: "mx-cmn-calendar-header-title", variant: "h3", children: at(n, it.MONTH_YEAR) }),
|
|
67
39
|
/* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
@@ -69,7 +41,7 @@ const W = (t, n) => t.find((e) => e.guid === n), xt = (t, n) => t.find((e) => e.
|
|
|
69
41
|
/* @__PURE__ */ r(C, { "aria-label": t.nextAria, onClick: e, children: /* @__PURE__ */ r(ot, { size: 24 }) })
|
|
70
42
|
] })
|
|
71
43
|
] });
|
|
72
|
-
},
|
|
44
|
+
}, yt = () => R({
|
|
73
45
|
alignItems: "center",
|
|
74
46
|
display: "flex",
|
|
75
47
|
marginBottom: 16,
|
|
@@ -82,8 +54,8 @@ const W = (t, n) => t.find((e) => e.guid === n), xt = (t, n) => t.find((e) => e.
|
|
|
82
54
|
display: "flex",
|
|
83
55
|
gap: 4
|
|
84
56
|
}
|
|
85
|
-
}),
|
|
86
|
-
const s = ct(), d =
|
|
57
|
+
}), bt = ({ beginDate: t, date: n, endDate: e, isInMonth: o, onClick: a }) => {
|
|
58
|
+
const s = ct(), d = Ct(s), i = t && e && st(n, { start: t, end: e }) && !f(n, t) && !f(n, e), l = t && e && f(t, n) && !f(t, e), m = e && t && f(e, n) && !f(t, e), u = t && f(t, n) || e && f(e, n), p = f(n, I());
|
|
87
59
|
return /* @__PURE__ */ r(
|
|
88
60
|
"div",
|
|
89
61
|
{
|
|
@@ -119,7 +91,7 @@ const W = (t, n) => t.find((e) => e.guid === n), xt = (t, n) => t.find((e) => e.
|
|
|
119
91
|
)
|
|
120
92
|
}
|
|
121
93
|
);
|
|
122
|
-
},
|
|
94
|
+
}, Ct = (t) => R({
|
|
123
95
|
height: B,
|
|
124
96
|
width: B,
|
|
125
97
|
display: "flex",
|
|
@@ -164,9 +136,9 @@ const W = (t, n) => t.find((e) => e.guid === n), xt = (t, n) => t.find((e) => e.
|
|
|
164
136
|
paddingBottom: 5
|
|
165
137
|
}
|
|
166
138
|
}
|
|
167
|
-
}),
|
|
168
|
-
var
|
|
169
|
-
const
|
|
139
|
+
}), vt = 340, B = 44;
|
|
140
|
+
var kt = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(kt || {});
|
|
141
|
+
const Bt = ({
|
|
170
142
|
copy: t,
|
|
171
143
|
beginDate: n = void 0,
|
|
172
144
|
endDate: e = void 0,
|
|
@@ -175,7 +147,7 @@ const _t = ({
|
|
|
175
147
|
selectionType: s = "Single"
|
|
176
148
|
/* Single */
|
|
177
149
|
}) => {
|
|
178
|
-
const d =
|
|
150
|
+
const d = wt(), [i, l] = k.useState(I), [m, u] = k.useState(n), [p, g] = k.useState(e);
|
|
179
151
|
k.useEffect(() => {
|
|
180
152
|
u(n), g(e), n && l(n);
|
|
181
153
|
}, [n, e]);
|
|
@@ -206,7 +178,7 @@ const _t = ({
|
|
|
206
178
|
};
|
|
207
179
|
return /* @__PURE__ */ r("div", { className: `mx-cmn-calendar ${d}`, children: /* @__PURE__ */ h(V, { sx: { boxShadow: "none" }, children: [
|
|
208
180
|
/* @__PURE__ */ r(
|
|
209
|
-
|
|
181
|
+
xt,
|
|
210
182
|
{
|
|
211
183
|
copy: t,
|
|
212
184
|
date: i,
|
|
@@ -216,7 +188,7 @@ const _t = ({
|
|
|
216
188
|
),
|
|
217
189
|
/* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-row", children: v[0].map((c, y) => /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ r(z, { bold: !0, variant: "body2", children: L(c, "EEEEE") }) }, y)) }),
|
|
218
190
|
v.map((c, y) => /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-week", children: c.map((b, w) => /* @__PURE__ */ r(
|
|
219
|
-
|
|
191
|
+
bt,
|
|
220
192
|
{
|
|
221
193
|
beginDate: m,
|
|
222
194
|
date: b,
|
|
@@ -228,8 +200,8 @@ const _t = ({
|
|
|
228
200
|
)) }, `w-${y}`)),
|
|
229
201
|
/* @__PURE__ */ r("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ r(C, { onClick: S, size: "small", variant: "text", children: t.today }) })
|
|
230
202
|
] }) });
|
|
231
|
-
},
|
|
232
|
-
width:
|
|
203
|
+
}, wt = () => R({
|
|
204
|
+
width: vt,
|
|
233
205
|
"& .MuiPaper-root": {
|
|
234
206
|
paddingLeft: 24,
|
|
235
207
|
paddingRight: 24,
|
|
@@ -269,7 +241,7 @@ const _t = ({
|
|
|
269
241
|
marginRight: "auto"
|
|
270
242
|
}
|
|
271
243
|
}
|
|
272
|
-
}),
|
|
244
|
+
}), ce = Bt, _t = ({
|
|
273
245
|
closeAriaLabel: t,
|
|
274
246
|
content: n,
|
|
275
247
|
inputLabel: e,
|
|
@@ -395,7 +367,35 @@ const _t = ({
|
|
|
395
367
|
) })
|
|
396
368
|
}
|
|
397
369
|
);
|
|
398
|
-
},
|
|
370
|
+
}, le = _t, W = (t, n) => t.find((e) => e.guid === n), St = (t, n) => t.find((e) => e.guid === n), Nt = (t, n) => {
|
|
371
|
+
const e = t.find((o) => o.subCategories.find((a) => a.guid === n));
|
|
372
|
+
if (e)
|
|
373
|
+
return e.subCategories.find((o) => o.guid === n);
|
|
374
|
+
}, de = (t, n) => {
|
|
375
|
+
const e = [];
|
|
376
|
+
for (const o of n) {
|
|
377
|
+
const a = W(t, o.category_guid);
|
|
378
|
+
if (!a) continue;
|
|
379
|
+
const s = a.parent_guid ?? a.guid, d = W(t, s);
|
|
380
|
+
if (!d) continue;
|
|
381
|
+
const i = {
|
|
382
|
+
amount: o.total,
|
|
383
|
+
category: a,
|
|
384
|
+
guid: a.guid,
|
|
385
|
+
subCategoryTotals: []
|
|
386
|
+
}, l = e.find((m) => m.guid === s);
|
|
387
|
+
l ? (l.amount += o.total, l.subCategoryTotals.push(i)) : e.push({
|
|
388
|
+
amount: o.total,
|
|
389
|
+
category: d,
|
|
390
|
+
guid: s,
|
|
391
|
+
subCategoryTotals: [i]
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
return e;
|
|
395
|
+
}, me = (t, n) => {
|
|
396
|
+
const e = t.find((o) => o.guid === n);
|
|
397
|
+
return e ? e.guid === T.INCOME || e.parent_guid === T.INCOME : !1;
|
|
398
|
+
}, ue = (t, n) => !!t.find((e) => e.feature_name === n)?.is_enabled, H = (t, n) => !t && !n ? 0 : !t && n ? 101 : n / t * 100, D = (t, n) => {
|
|
399
399
|
const e = {
|
|
400
400
|
background: n.palette.success.main,
|
|
401
401
|
description: t <= 100 ? n.palette.text.secondary : n.palette.error.main,
|
|
@@ -412,7 +412,7 @@ const _t = ({
|
|
|
412
412
|
}, fe = (t, n, e, o) => {
|
|
413
413
|
const a = [];
|
|
414
414
|
for (const s of t) {
|
|
415
|
-
const d =
|
|
415
|
+
const d = St(n, s.category_guid);
|
|
416
416
|
if (!d) continue;
|
|
417
417
|
const i = d.totalAmount, l = H(s.amount, i), m = s.amount - i;
|
|
418
418
|
a.push({
|
|
@@ -429,7 +429,7 @@ const _t = ({
|
|
|
429
429
|
});
|
|
430
430
|
}
|
|
431
431
|
for (const s of t) {
|
|
432
|
-
const d =
|
|
432
|
+
const d = Nt(n, s.category_guid);
|
|
433
433
|
if (!d) continue;
|
|
434
434
|
const i = d.currentAmount, l = a.find((p) => p.category_guid === d.parent_guid);
|
|
435
435
|
if (!l) continue;
|
|
@@ -462,18 +462,18 @@ const _t = ({
|
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
464
|
export {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
465
|
+
le as C,
|
|
466
|
+
pe as a,
|
|
467
|
+
fe as b,
|
|
468
|
+
ce as c,
|
|
469
|
+
kt as d,
|
|
470
|
+
St as e,
|
|
471
471
|
F as f,
|
|
472
|
-
|
|
473
|
-
|
|
472
|
+
W as g,
|
|
473
|
+
Nt as h,
|
|
474
474
|
ue as i,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
475
|
+
de as j,
|
|
476
|
+
me as k,
|
|
477
|
+
he as l,
|
|
478
478
|
ge as u
|
|
479
479
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { F as c, A as s } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
2
|
+
class y {
|
|
3
|
+
fetchInstance;
|
|
4
|
+
constructor(t, e, r) {
|
|
5
|
+
this.fetchInstance = new c(t, e, void 0, r);
|
|
6
|
+
}
|
|
7
|
+
addCategory = async (t) => this.fetchInstance.post(s.CATEGORIES, t).then((e) => e.category);
|
|
8
|
+
getCategories = async () => this.fetchInstance.get(s.CATEGORIES).then((t) => t.categories);
|
|
9
|
+
getDateRangeCategoryTotals = async (t, e, r) => r.length === 0 ? [] : this.fetchInstance.post(`${s.DATE_RANGE_CATEGORY_TOTALS}/from/${t}/to/${e}`, {
|
|
10
|
+
account_guid: r.map((n) => n.guid)
|
|
11
|
+
}).then((n) => n.date_range_category_totals);
|
|
12
|
+
getMonthlyCategoryTotals = async (t, e, r) => {
|
|
13
|
+
try {
|
|
14
|
+
const n = `${s.MONTHLY_CATEGORY_TOTALS}/from/${t}/to/${e}`;
|
|
15
|
+
if (r) {
|
|
16
|
+
const o = r.length === 0 ? [""] : r.map((a) => a.guid);
|
|
17
|
+
return (await this.fetchInstance.post(n, { account_guid: o })).monthly_category_totals;
|
|
18
|
+
} else
|
|
19
|
+
return (await this.fetchInstance.get(n)).monthly_category_totals;
|
|
20
|
+
} catch (n) {
|
|
21
|
+
throw console.error("Error fetching monthly category totals:", n), n;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
removeCategory = async (t) => this.fetchInstance.delete(`${s.CATEGORIES}/${t}`);
|
|
25
|
+
updateCategory = async (t) => this.fetchInstance.put(`${s.CATEGORIES}/${t.guid}`, t).then((e) => e.category);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
y as C
|
|
29
|
+
};
|
|
@@ -15,7 +15,7 @@ import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxen
|
|
|
15
15
|
import { Text as q, TextField as H, CategoryIcon as J } from "@mxenabled/mxui";
|
|
16
16
|
import Q from "@mui/material/Collapse";
|
|
17
17
|
import Z from "@mui/material/DialogContent";
|
|
18
|
-
import { b as g } from "./Localization-
|
|
18
|
+
import { b as g } from "./Localization-CkQ49EKr.mjs";
|
|
19
19
|
import { D as ee } from "./Dialog-Ck34yr-d.mjs";
|
|
20
20
|
import te from "@mui/material/Box";
|
|
21
21
|
import oe from "@mui/material/Chip";
|