@mx-cartographer/experiences 8.1.10 → 8.2.0-alpha.bb0
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/{Account-CMjOp7S2.mjs → Account-BTOmbrEK.mjs} +5 -5
- package/dist/{Account-BIKn4XEZ.mjs → Account-DC2d-cjn.mjs} +1 -1
- package/dist/{AccountDetailsHeader-CzefHTWU.mjs → AccountDetailsHeader-IDZ6GTT0.mjs} +10 -10
- package/dist/{AccountFields-BWmpVsS3.mjs → AccountFields-BRAl-Hro.mjs} +6 -6
- package/dist/{AccountListItem-DRDxaRBe.mjs → AccountListItem-B8koowMf.mjs} +7 -7
- package/dist/{Accounts-DX3xJE97.mjs → AccountUtils-Bc-SndzX.mjs} +1 -1
- package/dist/{Analytics-CxK7O19c.mjs → Analytics-vgPYa2Zt.mjs} +1 -1
- package/dist/AnalyticsApi-DwgSyZ6m.mjs +102 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-CGchXaek.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-hhDdSFHO.mjs → CategorySelectorDrawer-nHEBR24E.mjs} +2 -2
- package/dist/{Connect-CBBTL1HJ.mjs → Connect-Dk6GZEsA.mjs} +1 -1
- package/dist/ConnectCard-Dix8BoV_.mjs +54 -0
- package/dist/{ConnectDrawer-DNnuF80E.mjs → ConnectDrawer-DgfsTpyW.mjs} +2 -2
- package/dist/{ConnectionsDrawer-DX6d7uwJ.mjs → ConnectionsDrawer-D7IXAza2.mjs} +2 -2
- package/dist/CurrencyDialog-C7r7JqVu.mjs +371 -0
- package/dist/{CurrencyInput-BMbUVSvz.mjs → CurrencyInput-BUd8mAcE.mjs} +15 -16
- package/dist/{CurrencyText-oqd6cX3M.mjs → CurrencyText-Dd3NxFYY.mjs} +1 -1
- package/dist/{DateFormats-CaOj_4eI.mjs → DateFormats-BSktnUw6.mjs} +6 -7
- package/dist/{DateUtil-D0TO0DaZ.mjs → DateUtil-Bdm-ZxFw.mjs} +1 -1
- package/dist/DebtUtils-DPn1cXKG.mjs +153 -0
- package/dist/EmbeddedCard-CAY_HJjE.mjs +856 -0
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-BDFu6YIe.mjs → ExportCsvAction-DzeJOb_g.mjs} +6 -5
- package/dist/{GlobalAccountFilter-jkFxqPg6.mjs → GlobalAccountFilter-DrhtwPqh.mjs} +1 -1
- package/dist/GlobalCopyApi-C75qVBk6.mjs +30 -0
- package/dist/GoalsUtil-B-Z6fq_t.mjs +107 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-C_CM4gpK.mjs → Help-HoxJgoVt.mjs} +68 -67
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{LineChart-CeZnCZ7j.mjs → LineChart-DNynWPGz.mjs} +2 -2
- package/dist/{ListItemAction-CNpknVvo.mjs → ListItemAction-DGjHxNDJ.mjs} +1 -1
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Localization-Li21_krp.mjs +37 -0
- package/dist/{ManageIncome-BX2IqW57.mjs → ManageIncome-C_FjST7B.mjs} +24 -24
- package/dist/{MicroWidgetContainer-DAesImQ6.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BOv3n4iw.mjs → MiniWidgetContainer-BdPiUU-u.mjs} +1 -1
- package/dist/NetWorthUtils-CyVz9bUn.mjs +95 -0
- package/dist/{NotificationSettings-DatCL2Ej.mjs → NotificationSettings-B8pH9TOv.mjs} +13 -13
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-CyrvFgfd.mjs → NumberFormatting-Dnk0YyfZ.mjs} +1 -1
- package/dist/{OriginalBalanceAction-CWQ0CK-T.mjs → OriginalBalanceAction-BEBuqeS1.mjs} +4 -4
- package/dist/{RecurringSettings-DCplGEv_.mjs → RecurringSettings-eQb1AS5x.mjs} +9 -9
- package/dist/RecurringTransactionsUtil-DbMNqEu_.mjs +253 -0
- package/dist/Select-BZRUpOib.mjs +51 -0
- package/dist/SelectionBox-Bx2a5rh4.mjs +48 -0
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-Dj85XEUp.mjs → SpendingData-CktOElG1.mjs} +6 -6
- package/dist/{SpendingLegend-DLElSvH0.mjs → SpendingLegend-CM5L_1Ka.mjs} +4 -4
- package/dist/{TransactionDetails-C_skrQk8.mjs → TransactionDetails-BP-sFltN.mjs} +33 -33
- package/dist/TransactionUtils-CvJW9wDu.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/{ViewMoreMicroCard-D1j0w64K.mjs → ViewMoreMicroCard-DWOpU5L8.mjs} +28 -30
- package/dist/{WidgetContainer-BPJoDkhL.mjs → WidgetContainer-CAgbD0ZS.mjs} +3 -3
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -1
- package/dist/accounts/index.es.js +52 -54
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +18 -18
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -1
- package/dist/cashflow/index.es.js +28 -31
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/constants/ScheduledPayment.d.ts +1 -1
- package/dist/common/constants/index.d.ts +0 -3
- package/dist/common/context/GlobalDataProvider.d.ts +1 -1
- package/dist/common/context/hooks.d.ts +21 -21
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +203 -961
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/index.d.ts +0 -4
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.es.js +3060 -88
- package/dist/{accounts → core}/stores/AccountStore.d.ts +14 -4
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +4 -5
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +3 -4
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -4
- package/dist/{common → core}/stores/ConnectStore.d.ts +2 -2
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +4 -4
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +2 -2
- package/dist/{common → core}/stores/GlobalStore.d.ts +2 -25
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +3 -3
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -3
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -6
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -4
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -3
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -4
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -3
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -3
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -5
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +27 -6
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -5
- package/dist/{common → core}/stores/UserStore.d.ts +2 -2
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/core/types/index.d.ts +3 -1
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +1 -1
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +2 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/core/utils/Localization.d.ts +2 -0
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +1 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +1 -1
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +568 -691
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/index.d.ts +0 -1
- package/dist/finstrong/index.es.js +1565 -1342
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -7
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -1
- package/dist/goals/index.es.js +71 -73
- package/dist/help/index.es.js +4 -4
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-RzCoiTd0.mjs → hooks-BaO_gOI6.mjs} +17 -17
- package/dist/insights/index.d.ts +0 -1
- package/dist/insights/index.es.js +52 -54
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/index.es.js +6 -6
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +12 -14
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -33
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +232 -237
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +23 -26
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +67 -71
- package/dist/settings/index.d.ts +0 -1
- package/dist/settings/index.es.js +11 -13
- package/dist/spending/index.es.js +10 -10
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -4
- package/dist/transactions/index.es.js +102 -109
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +67 -68
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-pliH6hz0.mjs → useAccountDisplayName-CFa_MrS6.mjs} +1 -1
- package/dist/{useInsightsEnabled-CzJoG8xi.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-BZjr-BiE.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +1 -1
- package/dist/AccountApi-WEM2M9tg.mjs +0 -19
- package/dist/AccountStore-CGrjC2Oe.mjs +0 -253
- package/dist/ApiEndpoints-C5IA97i7.mjs +0 -118
- package/dist/BeatApi-C6pBa0Rb.mjs +0 -21
- package/dist/BeatStore-C7-PIhpB.mjs +0 -163
- package/dist/BudgetUtil-H9igoNVm.mjs +0 -479
- package/dist/CashflowStore-BEi92kJg.mjs +0 -91
- package/dist/CategoryApi-CogDFScz.mjs +0 -29
- package/dist/CategoryStore-CA4NTaKH.mjs +0 -160
- package/dist/CategoryUtil-BJOHgYKS.mjs +0 -80
- package/dist/DebtsStore-BJlC2-yO.mjs +0 -63
- package/dist/EmbeddedCard-B9JoBaan.mjs +0 -811
- package/dist/FinstrongApi-FpmsS_sy.mjs +0 -19
- package/dist/FinstrongStore-DYawCv1d.mjs +0 -435
- package/dist/GlobalCopyApi-DkS-2Zf_.mjs +0 -41
- package/dist/Goal-MFBpoOIC.mjs +0 -29
- package/dist/GoalStore-BBAEbf43.mjs +0 -395
- package/dist/Localization-C_HZg9tJ.mjs +0 -15
- package/dist/Localization-CkQ49EKr.mjs +0 -26
- package/dist/MerchantApi-D8ahYxiG.mjs +0 -15
- package/dist/MerchantStore-CyZTv-BM.mjs +0 -26
- package/dist/NetWorthStore-BY-B_hxy.mjs +0 -168
- package/dist/NotificationApi-DF0obHoR.mjs +0 -20
- package/dist/NotificationStore-DlAM5Ue0.mjs +0 -69
- package/dist/RecurringTransactions-DCt94TN4.mjs +0 -297
- package/dist/RecurringTransactionsStore-CFJYC7lI.mjs +0 -264
- package/dist/RepeatingTransaction-D2gmBTd0.mjs +0 -7
- package/dist/RepeatingTransactionsApi-BNZgZPLs.mjs +0 -17
- package/dist/SettingsApi-D9d7SLhB.mjs +0 -22
- package/dist/SettingsStore-BcbuKfFO.mjs +0 -250
- package/dist/Transaction-Cn5_iFm0.mjs +0 -5
- package/dist/TransactionApi-CLG2eSNe.mjs +0 -86
- package/dist/TransactionStore-amPYxHnA.mjs +0 -710
- package/dist/TrendsStore-bYjIGqyR.mjs +0 -183
- package/dist/WidgetApi-C0BA2cFX.mjs +0 -102
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/stores/index.d.ts +0 -3
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/common/utils/Localization.d.ts +0 -3
- package/dist/debts/store/DebtsStore.d.ts +0 -10
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -20
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-CSvbZrvL.mjs +0 -133
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- /package/dist/{common → core}/constants/Category.d.ts +0 -0
- /package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- /package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- /package/dist/{help → core}/constants/Help.d.ts +0 -0
- /package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- /package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- /package/dist/{common → core}/constants/Table.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { g as i } from "./Localization-C_HZg9tJ.mjs";
|
|
2
|
-
class _ {
|
|
3
|
-
endpoint = "/";
|
|
4
|
-
headers;
|
|
5
|
-
onError;
|
|
6
|
-
constructor(n, s, t, o) {
|
|
7
|
-
this.endpoint = n;
|
|
8
|
-
const e = {
|
|
9
|
-
Accept: "application/json",
|
|
10
|
-
"Accept-Language": i(),
|
|
11
|
-
"Content-Type": "application/json",
|
|
12
|
-
"MD-Session-Token": s
|
|
13
|
-
};
|
|
14
|
-
this.headers = t || e, this.onError = o;
|
|
15
|
-
}
|
|
16
|
-
get = async (n) => {
|
|
17
|
-
const s = {
|
|
18
|
-
method: "GET",
|
|
19
|
-
headers: this.headers
|
|
20
|
-
};
|
|
21
|
-
return fetch(`${this.endpoint}${n}`, s).then((t) => {
|
|
22
|
-
if (t.ok)
|
|
23
|
-
return t.text();
|
|
24
|
-
throw t;
|
|
25
|
-
}).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
26
|
-
throw this.onError?.(t, void 0, "ApiGetRequestError"), t;
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
post = async (n, s) => {
|
|
30
|
-
const t = s ? JSON.stringify(s) : void 0, o = {
|
|
31
|
-
method: "POST",
|
|
32
|
-
headers: this.headers,
|
|
33
|
-
body: t
|
|
34
|
-
};
|
|
35
|
-
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
36
|
-
if (!e.ok)
|
|
37
|
-
throw e;
|
|
38
|
-
return e.text();
|
|
39
|
-
}).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
|
|
40
|
-
throw e;
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
put = async (n, s) => {
|
|
44
|
-
const t = JSON.stringify(s), o = {
|
|
45
|
-
method: "PUT",
|
|
46
|
-
headers: this.headers,
|
|
47
|
-
body: t
|
|
48
|
-
};
|
|
49
|
-
return fetch(`${this.endpoint}${n}`, o).then((e) => {
|
|
50
|
-
if (e.ok)
|
|
51
|
-
return e.text();
|
|
52
|
-
throw new Error(`${e.status}`);
|
|
53
|
-
}).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
|
|
54
|
-
throw window?.app?.config?.type === "pulse" && this.onError?.(e.message), e.message;
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
delete = async (n) => {
|
|
58
|
-
const s = {
|
|
59
|
-
method: "DELETE",
|
|
60
|
-
headers: this.headers
|
|
61
|
-
};
|
|
62
|
-
return fetch(`${this.endpoint}${n}`, s).then((t) => t.ok ? t.text() : t.text().then((o) => {
|
|
63
|
-
throw new Error(o);
|
|
64
|
-
})).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
|
|
65
|
-
throw t;
|
|
66
|
-
});
|
|
67
|
-
};
|
|
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
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
h as A,
|
|
117
|
-
_ as F
|
|
118
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { F as c, A as s } from "./ApiEndpoints-C5IA97i7.mjs";
|
|
2
|
-
class i {
|
|
3
|
-
fetchInstance;
|
|
4
|
-
constructor(t, e, n) {
|
|
5
|
-
this.fetchInstance = new c(t, e, void 0, n);
|
|
6
|
-
}
|
|
7
|
-
getBeats = async (t, e) => {
|
|
8
|
-
const n = `page=${t || 1}&per_page=${e || 5}`;
|
|
9
|
-
return this.fetchInstance.get(`${s.BEATS}?${n}`).then((a) => a.beats);
|
|
10
|
-
};
|
|
11
|
-
getBeatsWithAssociatedTransaction = async (t) => {
|
|
12
|
-
let e = "has_associated_transaction_guid=true";
|
|
13
|
-
return e += t ? `&from_date=${t}` : "", this.fetchInstance.get(`${s.BEATS}?${e}`).then((n) => n.beats);
|
|
14
|
-
};
|
|
15
|
-
getOffers = async () => this.fetchInstance.get(`${s.OFFERS}/${s.PULSE_COMMUNICATIONS}`).then((t) => t.pulse_communications);
|
|
16
|
-
updateBeat = async (t) => this.fetchInstance.put(`${s.BEATS}/${t.guid}`, t).then((e) => e.beat);
|
|
17
|
-
updateOffer = async (t) => this.fetchInstance.put(`${s.OFFERS}/${t.guid}`, t).then((e) => e.beat);
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
i as B
|
|
21
|
-
};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import d from "react";
|
|
3
|
-
import { observer as y } from "mobx-react-lite";
|
|
4
|
-
import { Stack as l, Box as x, Button as b, useTheme as B } from "@mui/material";
|
|
5
|
-
import { Icon as v, Text as _ } from "@mxenabled/mxui";
|
|
6
|
-
import { G as w } from "./hooks-RzCoiTd0.mjs";
|
|
7
|
-
import { makeAutoObservable as C, runInAction as k } from "mobx";
|
|
8
|
-
import { B as m } from "./BeatApi-C6pBa0Rb.mjs";
|
|
9
|
-
const p = d.forwardRef(
|
|
10
|
-
(t, e) => {
|
|
11
|
-
const s = B();
|
|
12
|
-
return /* @__PURE__ */ n(
|
|
13
|
-
"svg",
|
|
14
|
-
{
|
|
15
|
-
fill: "none",
|
|
16
|
-
height: "60",
|
|
17
|
-
ref: e,
|
|
18
|
-
viewBox: "0 0 72 60",
|
|
19
|
-
width: "72",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
...t,
|
|
22
|
-
children: /* @__PURE__ */ n(
|
|
23
|
-
"path",
|
|
24
|
-
{
|
|
25
|
-
d: "M28.8288 1.43265C34.4433 4.02036 36.9443 13.1615 44.4378 18.7551C53.8387 25.7725 64.7205 8.05287 70.6592 18.2364C80.9926 35.9558 28.2828 74.5237 25.8072 54.2678C25.1894 49.213 34.1353 42.7165 27.308 38.2971C18.7065 32.7294 9.89746 43.1722 4.34888 37.9733C-8.70438 25.7428 10.0261 -7.2333 28.8288 1.43265Z",
|
|
26
|
-
fill: s.palette.primary[100] ?? "#DFE8FD"
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
p.displayName = "BlobSVG";
|
|
34
|
-
const I = ({
|
|
35
|
-
heading: t,
|
|
36
|
-
message: e,
|
|
37
|
-
iconName: s = "error",
|
|
38
|
-
buttonText: i,
|
|
39
|
-
onClick: a
|
|
40
|
-
}) => {
|
|
41
|
-
const r = d.useContext(w)?.globalStore.copyStore.copy.common, u = t ?? (r?.error_heading ? `${r.error_heading}!` : "Oops!"), h = e ?? r?.error_message ?? "Something went wrong. Please try again.", g = i ?? r?.refresh_button ?? "Refresh";
|
|
42
|
-
return /* @__PURE__ */ n(l, { alignItems: "center", justifyContent: "center", style: { height: "100dvh" }, children: /* @__PURE__ */ c(
|
|
43
|
-
l,
|
|
44
|
-
{
|
|
45
|
-
sx: {
|
|
46
|
-
display: "flex",
|
|
47
|
-
padding: "48px 16px",
|
|
48
|
-
flexDirection: "column",
|
|
49
|
-
alignItems: "center"
|
|
50
|
-
},
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ c(
|
|
53
|
-
l,
|
|
54
|
-
{
|
|
55
|
-
sx: {
|
|
56
|
-
alignItems: "center",
|
|
57
|
-
justifyContent: "center"
|
|
58
|
-
},
|
|
59
|
-
children: [
|
|
60
|
-
/* @__PURE__ */ n(
|
|
61
|
-
x,
|
|
62
|
-
{
|
|
63
|
-
sx: {
|
|
64
|
-
position: "absolute",
|
|
65
|
-
zIndex: 0
|
|
66
|
-
},
|
|
67
|
-
children: /* @__PURE__ */ n(p, {})
|
|
68
|
-
}
|
|
69
|
-
),
|
|
70
|
-
/* @__PURE__ */ n(v, { color: "primary", name: s, size: 48, sx: { zIndex: 1 } })
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ n(_, { bold: !0, color: "text.primary", mt: "24px", variant: "h2", children: u }),
|
|
75
|
-
/* @__PURE__ */ n(_, { color: "text.secondary", variant: "subtitle1", children: h }),
|
|
76
|
-
a && /* @__PURE__ */ n(b, { color: "primary", onClick: () => {
|
|
77
|
-
a?.();
|
|
78
|
-
}, sx: { mt: 48 }, variant: "contained", children: g })
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
) });
|
|
82
|
-
}, R = y(I);
|
|
83
|
-
function O(t, e, s, i = "asc") {
|
|
84
|
-
const a = i === "desc" ? -1 : 1;
|
|
85
|
-
return [...t, ...e].sort((o, r) => o[s] < r[s] ? -1 * a : o[s] > r[s] ? 1 * a : 0);
|
|
86
|
-
}
|
|
87
|
-
const T = (t) => ({
|
|
88
|
-
...t,
|
|
89
|
-
//fields that are offer specific, adding here for visibility
|
|
90
|
-
image_url: t.image_url,
|
|
91
|
-
guid: t.guid,
|
|
92
|
-
created_at: t.created_at,
|
|
93
|
-
dismissed_at: t.dismissed_at,
|
|
94
|
-
active_at: t.campaign_activated_at,
|
|
95
|
-
displayed_at: t.has_been_viewed,
|
|
96
|
-
post_message_secondary: t.pulse_post_message_secondary,
|
|
97
|
-
//offer fields mapped to beat fields for functionality
|
|
98
|
-
title: t.pulse_title || t.campaign_name,
|
|
99
|
-
html_title: t.pulse_title || t.campaign_name,
|
|
100
|
-
short_title: t.pulse_title || t.campaign_name,
|
|
101
|
-
html_short_title: t.pulse_title || t.campaign_name,
|
|
102
|
-
micro_title: t.pulse_title || t.campaign_name,
|
|
103
|
-
html_micro_title: t.pulse_title || t.campaign_name,
|
|
104
|
-
supporting_action: t.pulse_call_to_action_text_secondary,
|
|
105
|
-
description: t.pulse_body,
|
|
106
|
-
html_description: t.pulse_body,
|
|
107
|
-
micro_description: t.pulse_body,
|
|
108
|
-
html_micro_description: t.pulse_body,
|
|
109
|
-
call_to_action: t.pulse_call_to_action_text,
|
|
110
|
-
html_micro_call_to_action: t.pulse_call_to_action_text,
|
|
111
|
-
micro_call_to_action: t.pulse_call_to_action_text,
|
|
112
|
-
is_dismissed: t.has_been_dismissed,
|
|
113
|
-
icon_type: 5,
|
|
114
|
-
template: "MarketingOffer",
|
|
115
|
-
//beat fields we null out
|
|
116
|
-
account_guids: [],
|
|
117
|
-
data_series: {},
|
|
118
|
-
has_been_displayed: !1,
|
|
119
|
-
is_obsolete: !1,
|
|
120
|
-
is_refreshable: !1,
|
|
121
|
-
is_sampled: !1,
|
|
122
|
-
merchant_guids: [],
|
|
123
|
-
payload: {},
|
|
124
|
-
pulse_campaign_name: t.campaign_name,
|
|
125
|
-
scheduled_payment_guids: [],
|
|
126
|
-
transaction_guids: [],
|
|
127
|
-
user_guid: "",
|
|
128
|
-
user_verification: 0
|
|
129
|
-
});
|
|
130
|
-
class M {
|
|
131
|
-
globalStore;
|
|
132
|
-
api = new m("/", "");
|
|
133
|
-
beats = [];
|
|
134
|
-
isLoading = !1;
|
|
135
|
-
constructor(e) {
|
|
136
|
-
this.globalStore = e, this.api = new m(e.endpoint, e.sessionToken, e.onError), C(this);
|
|
137
|
-
}
|
|
138
|
-
loadBeats = async () => {
|
|
139
|
-
this.isLoading = !0;
|
|
140
|
-
const e = await this.api.getBeats(), i = (await this.api.getOffers()).map((a) => T(a));
|
|
141
|
-
k(() => {
|
|
142
|
-
this.beats = O(e, i, "active_at", "desc"), this.isLoading = !1;
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
getFilteredBeats(e) {
|
|
146
|
-
const { categoryGuids: s, templates: i } = e;
|
|
147
|
-
let a = this.beats;
|
|
148
|
-
return s && (a = this.filterBeatsByCategory(a, s)), i && (a = this.filterBeatsByTemplate(a, i)), a;
|
|
149
|
-
}
|
|
150
|
-
// Return beats with any beat.category_guids that are in categoryGuids
|
|
151
|
-
filterBeatsByCategory(e, s) {
|
|
152
|
-
return e.filter((i) => i.category_guids?.some((a) => s.includes(a)));
|
|
153
|
-
}
|
|
154
|
-
// Return beats with a beat.template that is in templates
|
|
155
|
-
filterBeatsByTemplate(e, s) {
|
|
156
|
-
return e.filter((i) => s.some((a) => i.template === a));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
export {
|
|
160
|
-
M as B,
|
|
161
|
-
R as E,
|
|
162
|
-
p as a
|
|
163
|
-
};
|