@mx-cartographer/experiences 8.1.12 → 8.2.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 -0
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/{AccountDetailsHeader-CzefHTWU.mjs → AccountDetailsHeader-CfdnKyJK.mjs} +21 -21
- package/dist/{AccountFields-BWmpVsS3.mjs → AccountFields-CAy0x_4i.mjs} +6 -6
- package/dist/{AccountListItem-DRDxaRBe.mjs → AccountListItem-BYyeeCf6.mjs} +7 -7
- package/dist/{Accounts-DX3xJE97.mjs → AccountUtils-T5_Odvos.mjs} +1 -1
- package/dist/{Analytics-CxK7O19c.mjs → Analytics-CkYXKvco.mjs} +1 -1
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-hhDdSFHO.mjs → CategorySelectorDrawer-Cu1ohxeM.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-d4dL7vA5.mjs +371 -0
- package/dist/{CurrencyInput-BMbUVSvz.mjs → CurrencyInput-B59ugxPN.mjs} +15 -16
- package/dist/{CurrencyText-oqd6cX3M.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/{DateFormats-CaOj_4eI.mjs → DateFormats-HudZ3Bjs.mjs} +6 -7
- package/dist/{DateUtil-D0TO0DaZ.mjs → DateUtil-Bhq59ZVg.mjs} +1 -1
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/EmbeddedCard-BNl3quCs.mjs +856 -0
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-BDFu6YIe.mjs → ExportCsvAction-hDprC41l.mjs} +6 -5
- package/dist/{GlobalAccountFilter-jkFxqPg6.mjs → GlobalAccountFilter-DrhtwPqh.mjs} +1 -1
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/{Help-C_CM4gpK.mjs → Help-BSQm9o29.mjs} +68 -67
- package/dist/{Help-CgpJK03Q.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{LineChart-CeZnCZ7j.mjs → LineChart-CejWS_rh.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-DnoVyBNK.mjs +38 -0
- package/dist/{ManageIncome-BX2IqW57.mjs → ManageIncome-DwylSiWs.mjs} +51 -51
- package/dist/{MicroWidgetContainer-DAesImQ6.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BOv3n4iw.mjs → MiniWidgetContainer-BdPiUU-u.mjs} +1 -1
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/{NotificationSettings-DatCL2Ej.mjs → NotificationSettings-CCg-Tml2.mjs} +13 -13
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-CyrvFgfd.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/{OriginalBalanceAction-CWQ0CK-T.mjs → OriginalBalanceAction-CvDx0K6k.mjs} +4 -4
- package/dist/{RecurringSettings-DCplGEv_.mjs → RecurringSettings-CPXLW6AR.mjs} +9 -9
- package/dist/RecurringTransactionsUtil-B3rLEx_g.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-PKlh8caU.mjs} +6 -6
- package/dist/{SpendingLegend-BS8mHUbu.mjs → SpendingLegend-BmkEr9Nh.mjs} +4 -4
- package/dist/{TransactionDetails-C_skrQk8.mjs → TransactionDetails-CbBSxdOi.mjs} +33 -33
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/{ViewMoreMicroCard-D1j0w64K.mjs → ViewMoreMicroCard-K69RRs_b.mjs} +28 -30
- package/dist/{WidgetContainer-BPJoDkhL.mjs → WidgetContainer-DalWyz5A.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 +62 -64
- 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 +20 -20
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.es.js +215 -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 +94 -79
- 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 +3 -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 +92 -96
- 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
|
@@ -11,20 +11,16 @@ import ae from "@mui/material/IconButton";
|
|
|
11
11
|
import { alpha as s, useTheme as j } from "@mui/material/styles";
|
|
12
12
|
import { useInView as Re } from "react-intersection-observer";
|
|
13
13
|
import se from "@mui/material/styles/useTheme";
|
|
14
|
-
import {
|
|
15
|
-
import { b as Ye } from "./Localization-
|
|
14
|
+
import { C as je } from "./Category-DEKZGLYe.mjs";
|
|
15
|
+
import { b as Ye } from "./Localization-DnoVyBNK.mjs";
|
|
16
16
|
import Xe from "@mui/material/CircularProgress";
|
|
17
17
|
import { makeAutoObservable as ce, runInAction as Oe } from "mobx";
|
|
18
|
-
import { a as Ze, u as Qe, b as qe } from "./Analytics-
|
|
19
|
-
import { G as Ce } from "./GlobalCopyApi-
|
|
20
|
-
import {
|
|
21
|
-
import { u as Je } from "./useWidgetLoadTimer-BZjr-BiE.mjs";
|
|
18
|
+
import { a as Ze, u as Qe, b as qe } from "./Analytics-CkYXKvco.mjs";
|
|
19
|
+
import { G as Ce, B as he } from "./GlobalCopyApi-wcnDUzMV.mjs";
|
|
20
|
+
import { u as Je } from "./useWidgetLoadTimer-CJb-RELP.mjs";
|
|
22
21
|
import et from "@mui/material/Card";
|
|
23
22
|
import tt from "@mui/material/CardActionArea";
|
|
24
23
|
import ot from "@mui/material/Avatar";
|
|
25
|
-
const ge = {
|
|
26
|
-
featureVersion: "spendVsIncomeTrends"
|
|
27
|
-
};
|
|
28
24
|
class nt {
|
|
29
25
|
copyApi = new Ce("/", "");
|
|
30
26
|
copyObject = {};
|
|
@@ -72,7 +68,7 @@ const le = {
|
|
|
72
68
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
|
73
69
|
MonthlySpendComparison: "MonthlySpendComparison",
|
|
74
70
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
|
75
|
-
}, R = window?.app?.clientConfig?.microwidget_instance_id || "",
|
|
71
|
+
}, R = window?.app?.clientConfig?.microwidget_instance_id || "", ge = {
|
|
76
72
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
|
77
73
|
}, We = (t) => `on${t}Click`, we = (t) => `on${t}View`, Ne = (t) => `on${t}ViewFirstTime`, de = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), rt = () => Object.values(le).reduce(
|
|
78
74
|
(t, e) => ({
|
|
@@ -135,18 +131,18 @@ const le = {
|
|
|
135
131
|
MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
|
|
136
132
|
MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
|
|
137
133
|
MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
|
|
138
|
-
},
|
|
134
|
+
}, Ee = {
|
|
139
135
|
[G.MICRO_WIDGET_CAROUSEL]: {
|
|
140
136
|
label: b.MICRO_WIDGET,
|
|
141
137
|
name: G.MICRO_WIDGET_CAROUSEL,
|
|
142
|
-
path:
|
|
138
|
+
path: ge.INSIGHTS_MICRO_WIDGET,
|
|
143
139
|
value: R
|
|
144
140
|
},
|
|
145
141
|
// zero state
|
|
146
142
|
[G.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
|
147
143
|
label: b.MICRO_WIDGET,
|
|
148
144
|
name: G.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
|
149
|
-
path:
|
|
145
|
+
path: ge.INSIGHTS_MICRO_WIDGET,
|
|
150
146
|
value: R
|
|
151
147
|
},
|
|
152
148
|
// no relevant cards
|
|
@@ -156,7 +152,7 @@ const le = {
|
|
|
156
152
|
path: "/micro-widget",
|
|
157
153
|
value: R
|
|
158
154
|
}
|
|
159
|
-
},
|
|
155
|
+
}, Ie = {
|
|
160
156
|
// carousel control interaction events - clicks and swipes
|
|
161
157
|
[O.ON_CAROUSEL_BACK_CLICK]: {
|
|
162
158
|
action: D.CONTROL_BACKWARD,
|
|
@@ -198,25 +194,25 @@ const le = {
|
|
|
198
194
|
...rt(),
|
|
199
195
|
...it(),
|
|
200
196
|
...at()
|
|
201
|
-
},
|
|
197
|
+
}, fe = async (t, e) => !e || !Ie[t] ? null : e.sendAnalyticEvent(Ie[t]).then((n) => n).catch((n) => {
|
|
202
198
|
throw n;
|
|
203
|
-
}),
|
|
199
|
+
}), ye = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticsPageview(Ee[t]).then((n) => n).catch((n) => {
|
|
204
200
|
throw n;
|
|
205
201
|
});
|
|
206
202
|
class st {
|
|
207
|
-
onAnalyticEvent =
|
|
208
|
-
onAnalyticPageView =
|
|
203
|
+
onAnalyticEvent = fe;
|
|
204
|
+
onAnalyticPageView = ye;
|
|
209
205
|
beatApi = new he("/", "");
|
|
210
206
|
constructor() {
|
|
211
207
|
ce(this);
|
|
212
208
|
}
|
|
213
209
|
initialize = async (e, n, r) => {
|
|
214
210
|
this.onAnalyticEvent = (i, l) => {
|
|
215
|
-
|
|
211
|
+
fe(i, l).then((a) => a).catch((a) => {
|
|
216
212
|
throw a.status === 401 && r(), a;
|
|
217
213
|
});
|
|
218
214
|
}, this.onAnalyticPageView = (i, l) => {
|
|
219
|
-
|
|
215
|
+
ye(i, l).then((a) => a).catch((a) => {
|
|
220
216
|
throw a.status === 401 && r(), a;
|
|
221
217
|
});
|
|
222
218
|
}, this.beatApi = new he(e, n);
|
|
@@ -1084,7 +1080,7 @@ const Y = h.createContext(null), lt = ({
|
|
|
1084
1080
|
variant: l
|
|
1085
1081
|
}
|
|
1086
1082
|
);
|
|
1087
|
-
},
|
|
1083
|
+
}, ro = U(Pe), Be = ({
|
|
1088
1084
|
ariaLabel: t,
|
|
1089
1085
|
heightOverrides: e,
|
|
1090
1086
|
onCardClick: n,
|
|
@@ -1110,7 +1106,7 @@ const Y = h.createContext(null), lt = ({
|
|
|
1110
1106
|
variant: i
|
|
1111
1107
|
}
|
|
1112
1108
|
);
|
|
1113
|
-
},
|
|
1109
|
+
}, io = U(Be), bt = () => /* @__PURE__ */ o(
|
|
1114
1110
|
$,
|
|
1115
1111
|
{
|
|
1116
1112
|
sx: {
|
|
@@ -1122,7 +1118,9 @@ const Y = h.createContext(null), lt = ({
|
|
|
1122
1118
|
},
|
|
1123
1119
|
children: /* @__PURE__ */ o(Xe, {})
|
|
1124
1120
|
}
|
|
1125
|
-
),
|
|
1121
|
+
), Ae = {
|
|
1122
|
+
featureVersion: "spendVsIncomeTrends"
|
|
1123
|
+
}, V = new ct(), Lt = ({
|
|
1126
1124
|
allowSingleCardPeeking: t,
|
|
1127
1125
|
areBeatsLoading: e,
|
|
1128
1126
|
beats: n = [],
|
|
@@ -1181,7 +1179,7 @@ const Y = h.createContext(null), lt = ({
|
|
|
1181
1179
|
T && m && /* @__PURE__ */ o(
|
|
1182
1180
|
Nt,
|
|
1183
1181
|
{
|
|
1184
|
-
analyticsMetadata:
|
|
1182
|
+
analyticsMetadata: Ae,
|
|
1185
1183
|
headerSx: l,
|
|
1186
1184
|
onCardClick: u,
|
|
1187
1185
|
posthog: d,
|
|
@@ -1192,7 +1190,7 @@ const Y = h.createContext(null), lt = ({
|
|
|
1192
1190
|
Wt,
|
|
1193
1191
|
{
|
|
1194
1192
|
allowSingleCardPeeking: t,
|
|
1195
|
-
analyticsMetadata:
|
|
1193
|
+
analyticsMetadata: Ae,
|
|
1196
1194
|
beats: n,
|
|
1197
1195
|
showCarouselControls: p,
|
|
1198
1196
|
variant: _ ? M : void 0,
|
|
@@ -1221,7 +1219,7 @@ const Y = h.createContext(null), lt = ({
|
|
|
1221
1219
|
}
|
|
1222
1220
|
)
|
|
1223
1221
|
] }) });
|
|
1224
|
-
},
|
|
1222
|
+
}, ao = U(Lt), Dt = ({
|
|
1225
1223
|
ariaLabel: t,
|
|
1226
1224
|
heightOverrides: e,
|
|
1227
1225
|
isActiveCard: n,
|
|
@@ -1273,11 +1271,11 @@ export {
|
|
|
1273
1271
|
Nt as C,
|
|
1274
1272
|
St as I,
|
|
1275
1273
|
Wt as M,
|
|
1276
|
-
|
|
1277
|
-
|
|
1274
|
+
ro as N,
|
|
1275
|
+
Ae as T,
|
|
1278
1276
|
xt as V,
|
|
1279
|
-
|
|
1280
|
-
|
|
1277
|
+
io as Z,
|
|
1278
|
+
ao as a,
|
|
1281
1279
|
lt as b,
|
|
1282
1280
|
J as c,
|
|
1283
1281
|
ut as d
|
|
@@ -11,8 +11,8 @@ import B from "@mui/material/Stack";
|
|
|
11
11
|
import { ChevronLeft as pe } from "@mxenabled/mx-icons";
|
|
12
12
|
import { Icon as D, Text as W, DateRangePicker as Z } from "@mxenabled/mxui";
|
|
13
13
|
import { u as ge } from "./useDimensions-CeDR9V8N.mjs";
|
|
14
|
-
import { G as he } from "./GlobalAccountFilter-
|
|
15
|
-
import { b as ie, u as se, g as fe, a as be, W as _e } from "./hooks-
|
|
14
|
+
import { G as he } from "./GlobalAccountFilter-DrhtwPqh.mjs";
|
|
15
|
+
import { b as ie, u as se, g as fe, a as be, W as _e } from "./hooks-BaO_gOI6.mjs";
|
|
16
16
|
import { addMonths as J } from "date-fns/addMonths";
|
|
17
17
|
import { addDays as Re } from "date-fns/addDays";
|
|
18
18
|
import { addYears as ee } from "date-fns/addYears";
|
|
@@ -38,7 +38,7 @@ import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
|
|
|
38
38
|
import { D as Be } from "./Dialog-iLlBR8TG.mjs";
|
|
39
39
|
import { D as Ne } from "./Drawer-XPaLYjiO.mjs";
|
|
40
40
|
import { u as le } from "./useScreenSize-CeFhWTt_.mjs";
|
|
41
|
-
import { f as P, D as S } from "./DateFormats-
|
|
41
|
+
import { f as P, D as S } from "./DateFormats-HudZ3Bjs.mjs";
|
|
42
42
|
import { L as Oe } from "./Loader-CxeBwuPG.mjs";
|
|
43
43
|
import we from "@mui/material/useMediaQuery";
|
|
44
44
|
import { A as oe } from "./Analytics-CzGzz_sE.mjs";
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare const useAccountUiStore: () =>
|
|
1
|
+
export declare const useAccountUiStore: () => {
|
|
2
|
+
selectedAccount: import('../../core').Account;
|
|
3
|
+
selectedMember: import('../../core').Member;
|
|
4
|
+
setSelectedAccount: (account: import('../../core').Account) => import('../../core').Account;
|
|
5
|
+
setSelectedMember: (member: import('../../core').Member) => import('../../core').Member;
|
|
6
|
+
};
|
package/dist/accounts/index.d.ts
CHANGED
|
@@ -6,5 +6,4 @@ export { default as AccountDetailsContent } from './components/detailsdrawer/Acc
|
|
|
6
6
|
export { getAccountBalanceDetails, getAccountDetailFields } from './utils/AccountFields';
|
|
7
7
|
export { FieldType, MemberConnectionStatus } from './constants/Accounts';
|
|
8
8
|
export { useGetMergeableAccounts } from './hooks/useGetMergeableAccounts';
|
|
9
|
-
export { AccountStore } from './stores/AccountStore';
|
|
10
9
|
export { useAccountUiStore } from './hooks/useUiStore';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as C, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as V } from "mobx-react-lite";
|
|
4
4
|
import t1 from "@mui/material/Stack";
|
|
5
5
|
import { Text as v, Icon as N, THEMES as c1 } from "@mxenabled/mxui";
|
|
6
6
|
import { S as m1 } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
@@ -9,34 +9,35 @@ import W from "@mui/material/Divider";
|
|
|
9
9
|
import O from "@mui/material/List";
|
|
10
10
|
import B from "@mui/material/ListSubheader";
|
|
11
11
|
import P from "@mui/system/Stack";
|
|
12
|
+
import { f as s1 } from "../NumberFormatting--XMeeBfr.mjs";
|
|
12
13
|
import { useTheme as y1, alpha as w1 } from "@mui/material/styles";
|
|
13
|
-
import { u as R, A as x1 } from "../AccountDetailsHeader-
|
|
14
|
-
import { L as R1 } from "../LineChart-
|
|
15
|
-
import { g as S1, a as T1, b as E1 } from "../SpendingData-
|
|
16
|
-
import { l as D1, u as
|
|
17
|
-
import { A as I, g as f, N as L1 } from "../Account-
|
|
18
|
-
import { I as f1, P as g1, S as H1 } from "../Account-
|
|
19
|
-
import { a as k1, b as I1 } from "../AccountFields-
|
|
20
|
-
import { g as c2 } from "../AccountFields-
|
|
21
|
-
import { A as U } from "../AccountListItem-
|
|
22
|
-
import
|
|
14
|
+
import { u as R, A as x1 } from "../AccountDetailsHeader-CfdnKyJK.mjs";
|
|
15
|
+
import { L as R1 } from "../LineChart-CejWS_rh.mjs";
|
|
16
|
+
import { g as S1, a as T1, b as E1 } from "../SpendingData-PKlh8caU.mjs";
|
|
17
|
+
import { l as D1, u as A, d as D, g as k, h as p1, a as _1, b as G } from "../hooks-BaO_gOI6.mjs";
|
|
18
|
+
import { A as I, g as f, N as L1 } from "../Account-BaJmiJAG.mjs";
|
|
19
|
+
import { I as f1, P as g1, S as H1 } from "../Account-BxHMlV9R.mjs";
|
|
20
|
+
import { a as k1, b as I1 } from "../AccountFields-CAy0x_4i.mjs";
|
|
21
|
+
import { g as c2 } from "../AccountFields-CAy0x_4i.mjs";
|
|
22
|
+
import { A as U } from "../AccountListItem-BYyeeCf6.mjs";
|
|
23
|
+
import l1 from "@mui/material/Tab";
|
|
23
24
|
import Z1 from "@mui/material/Tabs";
|
|
24
25
|
import N1 from "@mui/material/Switch";
|
|
25
26
|
import E from "@mui/material/ListItem";
|
|
26
27
|
import $ from "@mui/material/ListItemButton";
|
|
27
28
|
import Z from "@mui/material/ListItemText";
|
|
29
|
+
import { b as H } from "../Localization-DnoVyBNK.mjs";
|
|
28
30
|
import { A as x } from "../Analytics-CzGzz_sE.mjs";
|
|
29
31
|
import { D as e1 } from "../Dialog-iLlBR8TG.mjs";
|
|
30
|
-
import { b as H } from "../Localization-CkQ49EKr.mjs";
|
|
31
32
|
import { D as n1 } from "../Drawer-XPaLYjiO.mjs";
|
|
32
33
|
import j from "@mui/material/ListItemAvatar";
|
|
33
34
|
import O1 from "@mui/material/styles/useTheme";
|
|
34
35
|
import { Language as F1, Error as v1, CheckCircle as P1 } from "@mxenabled/mx-icons";
|
|
35
|
-
import { C as z } from "../ConnectDrawer-
|
|
36
|
+
import { C as z } from "../ConnectDrawer-DgfsTpyW.mjs";
|
|
36
37
|
import { fromUnixTime as W1 } from "date-fns/fromUnixTime";
|
|
37
38
|
import { isToday as B1 } from "date-fns/isToday";
|
|
38
39
|
import { isYesterday as U1 } from "date-fns/isYesterday";
|
|
39
|
-
import { f as
|
|
40
|
+
import { f as r1, D as d1 } from "../DateFormats-HudZ3Bjs.mjs";
|
|
40
41
|
import { I as X } from "../IconBacking-DgT8DCeh.mjs";
|
|
41
42
|
import { addMonths as $1 } from "date-fns/addMonths";
|
|
42
43
|
import { AdapterDateFns as G1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
@@ -49,23 +50,21 @@ import J1 from "@mui/material/Select";
|
|
|
49
50
|
import q1 from "@mui/material/TextField";
|
|
50
51
|
import { F as J } from "../Accounts-CseLC3lL.mjs";
|
|
51
52
|
import { M as s2 } from "../Accounts-CseLC3lL.mjs";
|
|
52
|
-
import { C as Q1 } from "../CurrencyInput-
|
|
53
|
+
import { C as Q1 } from "../CurrencyInput-B59ugxPN.mjs";
|
|
53
54
|
import e3 from "@mui/material/Alert";
|
|
54
55
|
import t3 from "@mui/material/AlertTitle";
|
|
55
56
|
import n3 from "@mui/material/Link";
|
|
56
57
|
import o3 from "@mui/material/Paper";
|
|
57
58
|
import { endOfToday as i3, subDays as c3, startOfToday as a3 } from "date-fns";
|
|
58
|
-
import { T as s3 } from "../EmbeddedCard-
|
|
59
|
-
import { T as l3 } from "../TransactionDetails-
|
|
60
|
-
import { T as
|
|
61
|
-
import {
|
|
62
|
-
import { C as r3 } from "../ConnectionsDrawer-DX6d7uwJ.mjs";
|
|
59
|
+
import { T as s3 } from "../EmbeddedCard-BNl3quCs.mjs";
|
|
60
|
+
import { T as l3 } from "../TransactionDetails-CbBSxdOi.mjs";
|
|
61
|
+
import { T as u1 } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
62
|
+
import { C as r3 } from "../ConnectionsDrawer-D7IXAza2.mjs";
|
|
63
63
|
import { u as b1 } from "../useScreenSize-CeFhWTt_.mjs";
|
|
64
|
-
import { u as o1 } from "../useWidgetLoadTimer-
|
|
64
|
+
import { u as o1 } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
65
65
|
import { L as i1 } from "../Loader-CxeBwuPG.mjs";
|
|
66
|
-
import { W as d3 } from "../WidgetContainer-
|
|
67
|
-
import { M as
|
|
68
|
-
import { A as r2 } from "../AccountStore-CGrjC2Oe.mjs";
|
|
66
|
+
import { W as d3 } from "../WidgetContainer-DalWyz5A.mjs";
|
|
67
|
+
import { M as V1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
|
|
69
68
|
const u3 = (t, o) => {
|
|
70
69
|
const n = f1.includes(o) ? S1(t) : [], c = g1.includes(o) ? T1(t) : [], i = H1.includes(o) ? E1(t) : [];
|
|
71
70
|
return [n, c, i].filter((l) => l.length > 0);
|
|
@@ -84,7 +83,7 @@ const u3 = (t, o) => {
|
|
|
84
83
|
}
|
|
85
84
|
return a;
|
|
86
85
|
}, h3 = () => {
|
|
87
|
-
const t = y1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = D1(), { trends: c } =
|
|
86
|
+
const t = y1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = D1(), { trends: c } = A(), i = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = u3(n, o.account_type), d = C3(l, o.account_type, c), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
|
|
88
87
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
89
88
|
R1,
|
|
90
89
|
{
|
|
@@ -104,7 +103,7 @@ const u3 = (t, o) => {
|
|
|
104
103
|
valueFormatterString: "0,0"
|
|
105
104
|
}
|
|
106
105
|
) });
|
|
107
|
-
}, m3 =
|
|
106
|
+
}, m3 = V(h3), q = ({
|
|
108
107
|
ariaPressed: t,
|
|
109
108
|
children: o,
|
|
110
109
|
isLast: n = !1,
|
|
@@ -138,7 +137,7 @@ const u3 = (t, o) => {
|
|
|
138
137
|
(c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
|
|
139
138
|
);
|
|
140
139
|
}, _3 = () => {
|
|
141
|
-
const [t, o] = h.useState(!1), [n, c] = h.useState(!1), [i, l] = h.useState(!1), [d, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: L, updateAccount: m } = D(), { accounts: s } =
|
|
140
|
+
const [t, o] = h.useState(!1), [n, c] = h.useState(!1), [i, l] = h.useState(!1), [d, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: L, updateAccount: m } = D(), { accounts: s } = A(), _ = p3(), { onEvent: M } = k(), { modifyTransactionByAccountGuid: w } = p1(), y = async (u) => {
|
|
142
141
|
await m({
|
|
143
142
|
...r,
|
|
144
143
|
...u
|
|
@@ -268,7 +267,7 @@ const u3 = (t, o) => {
|
|
|
268
267
|
}
|
|
269
268
|
)
|
|
270
269
|
] });
|
|
271
|
-
}, L3 =
|
|
270
|
+
}, L3 = V(_3), A1 = (t, o) => {
|
|
272
271
|
const { connection_messages: n } = o;
|
|
273
272
|
switch (t.connection_status) {
|
|
274
273
|
case f.CHALLENGED:
|
|
@@ -405,11 +404,11 @@ const u3 = (t, o) => {
|
|
|
405
404
|
};
|
|
406
405
|
default: {
|
|
407
406
|
const c = () => {
|
|
408
|
-
const i = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = i &&
|
|
407
|
+
const i = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = i && r1(i, d1.TIME_STAMP_HOUR_MINUTE);
|
|
409
408
|
if (l)
|
|
410
409
|
return B1(i) ? H(o.last_updated_at, o.today, l) : U1(i) ? H(o.last_updated_at, o.yesterday, l) : H(
|
|
411
410
|
o.last_updated_at,
|
|
412
|
-
|
|
411
|
+
r1(i, d1.MONTH_DAY_YEAR),
|
|
413
412
|
l
|
|
414
413
|
);
|
|
415
414
|
};
|
|
@@ -429,7 +428,7 @@ const u3 = (t, o) => {
|
|
|
429
428
|
}, f3 = () => {
|
|
430
429
|
const [t, o] = h.useState(!1), {
|
|
431
430
|
palette: { mode: n }
|
|
432
|
-
} = O1(), { selectedMember: c } = R(), { accounts: i, connect: l } =
|
|
431
|
+
} = O1(), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = A1(c, l), a = L1.includes(c.connection_status) ? {
|
|
433
432
|
color: "error.main",
|
|
434
433
|
ctaCopy: d.cta ?? "",
|
|
435
434
|
icon: /* @__PURE__ */ e(v1, { filled: !0, sx: { ...Q } }),
|
|
@@ -522,8 +521,8 @@ const u3 = (t, o) => {
|
|
|
522
521
|
}
|
|
523
522
|
)
|
|
524
523
|
] });
|
|
525
|
-
}, g3 =
|
|
526
|
-
const { updateAccount: c } = D(), { selectedAccount: i } = R(), { accounts: l } =
|
|
524
|
+
}, g3 = V(f3), H3 = ({ field: t, isOpen: o, onClose: n }) => {
|
|
525
|
+
const { updateAccount: c } = D(), { selectedAccount: i } = R(), { accounts: l } = A(), [d, a] = h.useState(i[t.name]), [r, L] = h.useState(""), [m, s] = h.useState(!0), _ = () => {
|
|
527
526
|
a(""), L(""), n();
|
|
528
527
|
}, M = () => {
|
|
529
528
|
switch (t.type) {
|
|
@@ -630,8 +629,8 @@ const u3 = (t, o) => {
|
|
|
630
629
|
children: M()
|
|
631
630
|
}
|
|
632
631
|
);
|
|
633
|
-
}, v3 =
|
|
634
|
-
const t = window.app?.config, { onEvent: o } = k(), { selectedAccount: n } = R(), { accounts: c } =
|
|
632
|
+
}, v3 = V(H3), b3 = () => {
|
|
633
|
+
const t = window.app?.config, { onEvent: o } = k(), { selectedAccount: n } = R(), { accounts: c } = A(), i = k1(n, c), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [d, a] = h.useState(!1), [r, L] = h.useState(i[0]), m = i.filter(
|
|
635
634
|
(s) => l || n[s.name] || n[s.name] === 0
|
|
636
635
|
);
|
|
637
636
|
return /* @__PURE__ */ C(S, { children: [
|
|
@@ -704,19 +703,19 @@ const u3 = (t, o) => {
|
|
|
704
703
|
}
|
|
705
704
|
)
|
|
706
705
|
] });
|
|
707
|
-
},
|
|
706
|
+
}, V3 = V(b3), A3 = () => {
|
|
708
707
|
const { onEvent: t } = k();
|
|
709
708
|
return h.useEffect(() => t(x.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
|
|
710
|
-
/* @__PURE__ */ e(
|
|
709
|
+
/* @__PURE__ */ e(V3, {}),
|
|
711
710
|
/* @__PURE__ */ e(g3, {}),
|
|
712
711
|
/* @__PURE__ */ e(L3, {})
|
|
713
712
|
] });
|
|
714
|
-
}, M3 =
|
|
715
|
-
const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } =
|
|
713
|
+
}, M3 = V(A3), y3 = ({ setTabValue: t }) => {
|
|
714
|
+
const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = c.connection_status && L1.includes(c.connection_status);
|
|
716
715
|
if (h.useEffect(() => {
|
|
717
716
|
d && t(1);
|
|
718
717
|
}, [d]), !d) return;
|
|
719
|
-
const a =
|
|
718
|
+
const a = A1(c, l);
|
|
720
719
|
return /* @__PURE__ */ C(S, { children: [
|
|
721
720
|
/* @__PURE__ */ e(
|
|
722
721
|
o3,
|
|
@@ -768,8 +767,8 @@ const u3 = (t, o) => {
|
|
|
768
767
|
}
|
|
769
768
|
)
|
|
770
769
|
] });
|
|
771
|
-
}, w3 =
|
|
772
|
-
const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } =
|
|
770
|
+
}, w3 = V(y3), x3 = () => {
|
|
771
|
+
const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } = A(), { isTransactionDataLoaded: l, loadTransactionData: d, setFilter: a, sortedTransactions: r } = p1();
|
|
773
772
|
h.useEffect(() => {
|
|
774
773
|
l || d().finally();
|
|
775
774
|
}, []);
|
|
@@ -795,8 +794,8 @@ const u3 = (t, o) => {
|
|
|
795
794
|
}
|
|
796
795
|
)
|
|
797
796
|
] });
|
|
798
|
-
}, R3 =
|
|
799
|
-
const [t, o] = h.useState(0), { accounts: n } =
|
|
797
|
+
}, R3 = V(x3), S3 = () => {
|
|
798
|
+
const [t, o] = h.useState(0), { accounts: n } = A();
|
|
800
799
|
return /* @__PURE__ */ C(S, { children: [
|
|
801
800
|
/* @__PURE__ */ e(w3, { setTabValue: o }),
|
|
802
801
|
/* @__PURE__ */ C(
|
|
@@ -810,7 +809,7 @@ const u3 = (t, o) => {
|
|
|
810
809
|
variant: "fullWidth",
|
|
811
810
|
children: [
|
|
812
811
|
/* @__PURE__ */ e(
|
|
813
|
-
|
|
812
|
+
l1,
|
|
814
813
|
{
|
|
815
814
|
"aria-controls": "transaction-details-tabpanel-0",
|
|
816
815
|
id: "transaction-details-tab-0",
|
|
@@ -818,7 +817,7 @@ const u3 = (t, o) => {
|
|
|
818
817
|
}
|
|
819
818
|
),
|
|
820
819
|
/* @__PURE__ */ e(
|
|
821
|
-
|
|
820
|
+
l1,
|
|
822
821
|
{
|
|
823
822
|
"aria-controls": "account-details-tabpanel-1",
|
|
824
823
|
id: "account-details-tab-1",
|
|
@@ -828,11 +827,11 @@ const u3 = (t, o) => {
|
|
|
828
827
|
]
|
|
829
828
|
}
|
|
830
829
|
),
|
|
831
|
-
/* @__PURE__ */ e(
|
|
832
|
-
/* @__PURE__ */ e(
|
|
830
|
+
/* @__PURE__ */ e(u1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(R3, {}) }),
|
|
831
|
+
/* @__PURE__ */ e(u1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
|
|
833
832
|
] });
|
|
834
|
-
}, T3 =
|
|
835
|
-
const [t, o] = h.useState(""), { config: n } = _1(), { accounts: c } =
|
|
833
|
+
}, T3 = V(S3), E3 = () => {
|
|
834
|
+
const [t, o] = h.useState(""), { config: n } = _1(), { accounts: c } = A(), { allSelectedAccounts: i } = G(), { setSelectedAccount: l, setSelectedMember: d } = R(), { members: a } = D(), { onEvent: r } = k(), L = [...new Set(i.map((u) => u.account_type))], m = i.find((u) => t === u.guid), s = h.useMemo(
|
|
836
835
|
() => i.filter((u) => u.is_hidden),
|
|
837
836
|
[i]
|
|
838
837
|
), _ = h.useMemo(
|
|
@@ -872,7 +871,7 @@ const u3 = (t, o) => {
|
|
|
872
871
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
873
872
|
children: [
|
|
874
873
|
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: b }),
|
|
875
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children:
|
|
874
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: s1(K, "0,0.00") })
|
|
876
875
|
]
|
|
877
876
|
}
|
|
878
877
|
) }),
|
|
@@ -929,7 +928,7 @@ const u3 = (t, o) => {
|
|
|
929
928
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
930
929
|
children: [
|
|
931
930
|
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: c.account_types[u] }),
|
|
932
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children:
|
|
931
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: s1(K, "0,0.00") })
|
|
933
932
|
]
|
|
934
933
|
}
|
|
935
934
|
) }),
|
|
@@ -975,8 +974,8 @@ const u3 = (t, o) => {
|
|
|
975
974
|
}
|
|
976
975
|
)
|
|
977
976
|
] });
|
|
978
|
-
}, D3 =
|
|
979
|
-
const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = _1(), { isAccountDataLoaded: r, loadAccountData: L } = D(), { accounts: m, connect: s } =
|
|
977
|
+
}, D3 = V(E3), k3 = ({ onBackClick: t, onMenuClick: o, sx: n = {} }) => {
|
|
978
|
+
const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = _1(), { isAccountDataLoaded: r, loadAccountData: L } = D(), { accounts: m, connect: s } = A(), { isInitialized: _, selectedAccountGuids: M } = G(), { isDesktop: w } = b1(), { onEvent: y } = k();
|
|
980
979
|
o1({
|
|
981
980
|
widgetName: "AccountsWidget",
|
|
982
981
|
isLoaded: r
|
|
@@ -1029,7 +1028,7 @@ const u3 = (t, o) => {
|
|
|
1029
1028
|
]
|
|
1030
1029
|
}
|
|
1031
1030
|
) : /* @__PURE__ */ e(i1, {});
|
|
1032
|
-
}, e2 =
|
|
1031
|
+
}, e2 = V(k3);
|
|
1033
1032
|
function I3(t) {
|
|
1034
1033
|
const { heldAccounts: o, externalAccounts: n } = t.reduce(
|
|
1035
1034
|
(c, i) => (i.member_is_managed_by_user ? c.externalAccounts.push(i) : c.heldAccounts.push(i), c),
|
|
@@ -1054,7 +1053,7 @@ const N3 = {
|
|
|
1054
1053
|
const d = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
|
|
1055
1054
|
return d.localeCompare(a);
|
|
1056
1055
|
}), O3 = ({ onPrimaryCtaClick: t, sx: o }) => {
|
|
1057
|
-
const { isAccountDataLoaded: n, loadAccountData: c } = D(), { accounts: i } =
|
|
1056
|
+
const { isAccountDataLoaded: n, loadAccountData: c } = D(), { accounts: i } = A(), { isInitialized: l, selectedAccounts: d } = G(), { isDesktop: a } = b1();
|
|
1058
1057
|
o1({
|
|
1059
1058
|
widgetName: "AccountsMiniWidget",
|
|
1060
1059
|
isLoaded: l
|
|
@@ -1066,7 +1065,7 @@ const N3 = {
|
|
|
1066
1065
|
[d, a]
|
|
1067
1066
|
);
|
|
1068
1067
|
return l ? /* @__PURE__ */ e(
|
|
1069
|
-
|
|
1068
|
+
V1,
|
|
1070
1069
|
{
|
|
1071
1070
|
className: "mx-exp-accounts-miniwidget",
|
|
1072
1071
|
onPrimaryCtaClick: t,
|
|
@@ -1092,7 +1091,7 @@ const N3 = {
|
|
|
1092
1091
|
] }) : /* @__PURE__ */ e(m1, { sx: { px: 12, py: 8 }, variant: "list" })
|
|
1093
1092
|
}
|
|
1094
1093
|
) : /* @__PURE__ */ e(i1, {});
|
|
1095
|
-
}, t2 =
|
|
1094
|
+
}, t2 = V(O3), F3 = () => /* @__PURE__ */ C(
|
|
1096
1095
|
"svg",
|
|
1097
1096
|
{
|
|
1098
1097
|
fill: "none",
|
|
@@ -1532,7 +1531,7 @@ const N3 = {
|
|
|
1532
1531
|
]
|
|
1533
1532
|
}
|
|
1534
1533
|
), P3 = () => {
|
|
1535
|
-
const { connect: t } =
|
|
1534
|
+
const { connect: t } = A();
|
|
1536
1535
|
return /* @__PURE__ */ C(t1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
1537
1536
|
/* @__PURE__ */ e(F3, {}),
|
|
1538
1537
|
/* @__PURE__ */ e(
|
|
@@ -1548,19 +1547,19 @@ const N3 = {
|
|
|
1548
1547
|
}
|
|
1549
1548
|
)
|
|
1550
1549
|
] });
|
|
1551
|
-
}, W3 =
|
|
1550
|
+
}, W3 = V(P3), B3 = ({
|
|
1552
1551
|
onPrimaryCtaClick: t = () => {
|
|
1553
1552
|
},
|
|
1554
1553
|
sx: o
|
|
1555
1554
|
}) => {
|
|
1556
|
-
const { isCopyLoaded: n } = G(), { connect: c } =
|
|
1555
|
+
const { isCopyLoaded: n } = G(), { connect: c } = A(), [i, l] = h.useState(!1), d = () => {
|
|
1557
1556
|
l(!0), t();
|
|
1558
1557
|
};
|
|
1559
1558
|
return o1({
|
|
1560
1559
|
widgetName: "ConnectMiniWidget",
|
|
1561
1560
|
isLoaded: n
|
|
1562
1561
|
}), n ? /* @__PURE__ */ C(
|
|
1563
|
-
|
|
1562
|
+
V1,
|
|
1564
1563
|
{
|
|
1565
1564
|
className: "mx-exp-connect-miniwidget",
|
|
1566
1565
|
onPrimaryCtaClick: d,
|
|
@@ -1580,11 +1579,10 @@ const N3 = {
|
|
|
1580
1579
|
]
|
|
1581
1580
|
}
|
|
1582
1581
|
) : /* @__PURE__ */ e(i1, {});
|
|
1583
|
-
}, n2 =
|
|
1582
|
+
}, n2 = V(B3);
|
|
1584
1583
|
export {
|
|
1585
1584
|
T3 as AccountDetailsContent,
|
|
1586
1585
|
x1 as AccountDetailsHeader,
|
|
1587
|
-
r2 as AccountStore,
|
|
1588
1586
|
t2 as AccountsMiniWidget,
|
|
1589
1587
|
e2 as AccountsWidget,
|
|
1590
1588
|
n2 as ConnectMiniWidget,
|
|
@@ -7,8 +7,8 @@ import j from "@mui/material/Button";
|
|
|
7
7
|
import s from "@mui/material/Stack";
|
|
8
8
|
import { Text as u, TextField as A } from "@mxenabled/mxui";
|
|
9
9
|
import { L } from "../Loader-CxeBwuPG.mjs";
|
|
10
|
-
import { M as W } from "../MiniWidgetContainer-
|
|
11
|
-
import { j as f, u as g, g as $, b as q } from "../hooks-
|
|
10
|
+
import { M as W } from "../MiniWidgetContainer-BdPiUU-u.mjs";
|
|
11
|
+
import { j as f, u as g, g as $, b as q } from "../hooks-BaO_gOI6.mjs";
|
|
12
12
|
import E from "@mui/material/ToggleButton";
|
|
13
13
|
import Q from "@mui/material/ToggleButtonGroup";
|
|
14
14
|
import B from "@mui/material/styles/useTheme";
|