@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -199
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,60 +1,59 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import {
|
|
3
|
-
import { B as xa,
|
|
4
|
-
import { T as M } from "../User-
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ae, D as
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
1
|
+
import { T as Ta } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
+
import { b as P, C as Ve, D as $e, M as Ge, d as We, u as Ue, T as Fe, a as ze } from "../TransactionDetails-Bn0qY5Hw.mjs";
|
|
3
|
+
import { B as xa, e as Sa, c as wa } from "../TransactionDetails-Bn0qY5Hw.mjs";
|
|
4
|
+
import { T as M } from "../User-BklmOUSd.mjs";
|
|
5
|
+
import { O as Ia } from "../User-BklmOUSd.mjs";
|
|
6
|
+
import { S as ae, D as Ke } from "../TransactionStore-DbwAutwC.mjs";
|
|
7
|
+
import { T as Na } from "../TransactionStore-DbwAutwC.mjs";
|
|
8
|
+
import { e as qe } from "../exportTransactionsToCSV-BgV_wTLT.mjs";
|
|
9
|
+
import { E as Oa } from "../ExportCsvAction-QhQK4_FU.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
|
-
import { observer as
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import { h as
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { endOfMonth as
|
|
25
|
-
import { getUnixTime as
|
|
26
|
-
import { startOfMonth as
|
|
27
|
-
import { startOfToday as
|
|
28
|
-
import
|
|
29
|
-
import { l as ct } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
12
|
+
import { observer as S } from "mobx-react-lite";
|
|
13
|
+
import je from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as Ye } from "@mui/x-data-grid-pro";
|
|
15
|
+
import { L as q } from "../Loader-Ckqi9Rx6.mjs";
|
|
16
|
+
import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Je } from "@mxenabled/mxui";
|
|
17
|
+
import A from "@mui/material/Stack";
|
|
18
|
+
import { h as V, u as w, b as j, d as se, m as Qe, a as Ze, g as et, p as tt } from "../hooks-C41HAxM5.mjs";
|
|
19
|
+
import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
20
|
+
import x from "@mui/material/Box";
|
|
21
|
+
import { useTheme as ce } from "@mui/material/styles";
|
|
22
|
+
import { fromUnixTime as at } from "date-fns/fromUnixTime";
|
|
23
|
+
import { f as nt, a as ot, D as le } from "../Dialog-CDV0kKxj.mjs";
|
|
24
|
+
import { endOfMonth as rt } from "date-fns/endOfMonth";
|
|
25
|
+
import { getUnixTime as st } from "date-fns/getUnixTime";
|
|
26
|
+
import { startOfMonth as it } from "date-fns/startOfMonth";
|
|
27
|
+
import { startOfToday as z } from "date-fns/startOfToday";
|
|
28
|
+
import { l as ct } from "../ConnectDrawer-DVp54lUH.mjs";
|
|
30
29
|
import lt from "@mui/material/Divider";
|
|
31
30
|
import dt from "@mui/material/MenuItem";
|
|
32
31
|
import ut from "@mui/material/RadioGroup";
|
|
33
32
|
import { ExpandMore as mt } from "@mxenabled/mx-icons";
|
|
34
|
-
import { C as _t } from "../CurrencyInput-
|
|
35
|
-
import { a as pt, u as gt } from "../CategorySelectorDrawer-
|
|
36
|
-
import { b as
|
|
37
|
-
import {
|
|
38
|
-
import { A, W as ft } from "../WidgetContainer-
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "
|
|
33
|
+
import { C as _t } from "../CurrencyInput-D1cjbdCI.mjs";
|
|
34
|
+
import { a as pt, u as gt } from "../CategorySelectorDrawer-Dl006GKy.mjs";
|
|
35
|
+
import { b as K } from "../Localization-2MODESHW.mjs";
|
|
36
|
+
import { S as ht } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
37
|
+
import { A as T, W as ft } from "../WidgetContainer-CDh9fjpR.mjs";
|
|
38
|
+
import { D as oe } from "../Drawer-BF40nbsH.mjs";
|
|
39
|
+
import { u as Ct } from "../useScreenSize-B5afALev.mjs";
|
|
40
|
+
import { S as yt } from "../SearchBox-B7km148n.mjs";
|
|
41
|
+
const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2", children: [
|
|
43
42
|
`${t.row.account}`,
|
|
44
43
|
t.row.number && ` | ${t.row.number}`
|
|
45
44
|
] }), Tt = (t) => {
|
|
46
|
-
const { associatedBeats: s } =
|
|
47
|
-
return /* @__PURE__ */ _(
|
|
48
|
-
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "
|
|
45
|
+
const { associatedBeats: s } = V(), { showInsights: r } = P(), { amount: a, transaction_type: i } = t.row, l = s.find((p) => p.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
|
|
46
|
+
return /* @__PURE__ */ _(A, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
47
|
+
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "body2", children: [
|
|
49
48
|
d ? "+" : "",
|
|
50
|
-
|
|
49
|
+
ie(a, "0,0.00")
|
|
51
50
|
] }),
|
|
52
|
-
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "
|
|
51
|
+
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "caption", children: l.short_title })
|
|
53
52
|
] });
|
|
54
53
|
}, At = (t) => {
|
|
55
54
|
const { transactions: s } = w(), [r, a] = u.useState(!1);
|
|
56
55
|
return /* @__PURE__ */ _(
|
|
57
|
-
|
|
56
|
+
A,
|
|
58
57
|
{
|
|
59
58
|
alignItems: "center",
|
|
60
59
|
direction: "row",
|
|
@@ -65,15 +64,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
65
64
|
width: "100%",
|
|
66
65
|
children: [
|
|
67
66
|
t.row.has_been_split && /* @__PURE__ */ e(B, { name: "call_split", size: 16 }),
|
|
68
|
-
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "
|
|
67
|
+
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
|
|
69
68
|
!t.row.has_been_split && r && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
|
|
70
69
|
]
|
|
71
70
|
}
|
|
72
71
|
);
|
|
73
|
-
},
|
|
74
|
-
const s =
|
|
72
|
+
}, xt = S(At), St = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: nt(at(t.row.date), ot.MONTH_DAY) }), wt = (t) => {
|
|
73
|
+
const s = ce(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
|
|
75
74
|
return /* @__PURE__ */ _(
|
|
76
|
-
|
|
75
|
+
x,
|
|
77
76
|
{
|
|
78
77
|
"aria-label": i ? r.is_hidden : r.is_flagged,
|
|
79
78
|
tabIndex: t.tabIndex,
|
|
@@ -98,7 +97,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
98
97
|
]
|
|
99
98
|
}
|
|
100
99
|
);
|
|
101
|
-
},
|
|
100
|
+
}, vt = S(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), It = (t) => /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
102
101
|
/* @__PURE__ */ e(
|
|
103
102
|
Xe,
|
|
104
103
|
{
|
|
@@ -106,13 +105,13 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
106
105
|
merchantGuid: t.row.merchant_guid || ""
|
|
107
106
|
}
|
|
108
107
|
),
|
|
109
|
-
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "
|
|
108
|
+
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: t.row.payee })
|
|
110
109
|
] }), Dt = ({
|
|
111
110
|
height: t = "100dvh",
|
|
112
111
|
onCategoryClick: s,
|
|
113
112
|
onRowClick: r
|
|
114
113
|
}) => {
|
|
115
|
-
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } =
|
|
114
|
+
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = V(), { clearExpandedSplits: p, toggleSplit: h } = P();
|
|
116
115
|
u.useEffect(() => () => p(), []);
|
|
117
116
|
const f = u.useMemo(
|
|
118
117
|
() => d.map((n) => ({
|
|
@@ -121,17 +120,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
121
120
|
...n
|
|
122
121
|
})),
|
|
123
122
|
[d]
|
|
124
|
-
), m = ({ row: { id: n, guid: g, has_been_split:
|
|
123
|
+
), m = ({ row: { id: n, guid: g, has_been_split: I }, field: E }) => I ? h(n) : E === "category" ? s?.(g) : r?.(g);
|
|
125
124
|
if (!i)
|
|
126
|
-
return /* @__PURE__ */ e(
|
|
127
|
-
const
|
|
125
|
+
return /* @__PURE__ */ e(q, {});
|
|
126
|
+
const v = [
|
|
128
127
|
{
|
|
129
128
|
field: "flag",
|
|
130
129
|
headerName: "",
|
|
131
130
|
minWidth: 32,
|
|
132
131
|
width: 32,
|
|
133
132
|
sortable: !1,
|
|
134
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
133
|
+
renderCell: (n) => /* @__PURE__ */ e(vt, { ...n }),
|
|
135
134
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
136
135
|
},
|
|
137
136
|
{
|
|
@@ -139,7 +138,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
139
138
|
headerName: a.date_title,
|
|
140
139
|
width: 103,
|
|
141
140
|
renderHeader: O,
|
|
142
|
-
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
141
|
+
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(St, { ...n }),
|
|
143
142
|
sortingOrder: ["desc", "asc"]
|
|
144
143
|
},
|
|
145
144
|
{
|
|
@@ -148,7 +147,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
148
147
|
headerName: a.payee_title,
|
|
149
148
|
flex: 0.33,
|
|
150
149
|
renderHeader: O,
|
|
151
|
-
renderCell:
|
|
150
|
+
renderCell: It,
|
|
152
151
|
sortingOrder: ["asc", "desc"]
|
|
153
152
|
},
|
|
154
153
|
{
|
|
@@ -156,7 +155,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
156
155
|
headerName: a.category_title,
|
|
157
156
|
flex: 0.25,
|
|
158
157
|
renderHeader: O,
|
|
159
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
158
|
+
renderCell: (n) => /* @__PURE__ */ e(xt, { ...n }),
|
|
160
159
|
sortingOrder: ["asc", "desc"]
|
|
161
160
|
},
|
|
162
161
|
{
|
|
@@ -178,10 +177,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
178
177
|
sortingOrder: ["asc", "desc"]
|
|
179
178
|
}
|
|
180
179
|
];
|
|
181
|
-
return /* @__PURE__ */ e(
|
|
182
|
-
|
|
180
|
+
return /* @__PURE__ */ e(je, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
181
|
+
Ye,
|
|
183
182
|
{
|
|
184
|
-
columns:
|
|
183
|
+
columns: v,
|
|
185
184
|
disableColumnFilter: !0,
|
|
186
185
|
disableColumnMenu: !0,
|
|
187
186
|
getCellClassName: (n) => n.row.parent_guid ? "split-row" : "",
|
|
@@ -198,10 +197,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
199
|
) });
|
|
201
|
-
}, Nt =
|
|
200
|
+
}, Nt = S(Dt), Et = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
|
|
202
201
|
const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
|
|
203
202
|
return d ? /* @__PURE__ */ _(
|
|
204
|
-
|
|
203
|
+
le,
|
|
205
204
|
{
|
|
206
205
|
copy: {
|
|
207
206
|
title: t.title
|
|
@@ -216,15 +215,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
216
215
|
/* @__PURE__ */ e(C, { component: "p", truncate: !1, children: l.add_account_modal_cta })
|
|
217
216
|
]
|
|
218
217
|
}
|
|
219
|
-
) : /* @__PURE__ */ e(
|
|
220
|
-
}, Ot =
|
|
218
|
+
) : /* @__PURE__ */ e(q, {});
|
|
219
|
+
}, Ot = S(Et), Mt = () => {
|
|
221
220
|
const { visibleAccounts: t } = se(), { common: s, transactions: r } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = P(), [d, p] = u.useState(""), [h, f] = u.useState(""), m = u.useMemo(
|
|
222
221
|
() => t.filter((o) => o.is_manual),
|
|
223
222
|
[t]
|
|
224
223
|
).map((o) => ({
|
|
225
|
-
label: `${o.name} | ${
|
|
224
|
+
label: `${o.name} | ${ie(o.balance, "0,0.00")}`,
|
|
226
225
|
value: o.guid
|
|
227
|
-
})),
|
|
226
|
+
})), v = {
|
|
228
227
|
error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
|
|
229
228
|
error_amount_must_be_equal_to: s.currency_input.error_amount_must_be_equal_to,
|
|
230
229
|
error_amount_must_be_less_than_or_equal_to: s.currency_input.error_amount_must_be_less_than_or_equal_to,
|
|
@@ -233,15 +232,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
233
232
|
p(o), l({ ...a, amount: Number(o) });
|
|
234
233
|
}, g = (o, k) => {
|
|
235
234
|
l({ ...a, transaction_type: Number(k) });
|
|
236
|
-
},
|
|
235
|
+
}, I = (o) => {
|
|
237
236
|
f(o), l({ ...a, payee: o, description: o });
|
|
238
237
|
}, E = (o) => {
|
|
239
238
|
l({ ...a, account_guid: o });
|
|
240
239
|
};
|
|
241
|
-
return /* @__PURE__ */ _(
|
|
242
|
-
/* @__PURE__ */ _(
|
|
240
|
+
return /* @__PURE__ */ _(x, { className: "mx-txn-manual-transaction-details", children: [
|
|
241
|
+
/* @__PURE__ */ _(A, { gap: 40, mx: 24, my: 32, children: [
|
|
243
242
|
/* @__PURE__ */ _(
|
|
244
|
-
|
|
243
|
+
A,
|
|
245
244
|
{
|
|
246
245
|
direction: "row",
|
|
247
246
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
@@ -252,7 +251,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
252
251
|
allowDecimals: !0,
|
|
253
252
|
amount: d,
|
|
254
253
|
ariaLabel: r.amount_title,
|
|
255
|
-
copy:
|
|
254
|
+
copy: v,
|
|
256
255
|
inputProps: {
|
|
257
256
|
noValidate: !0
|
|
258
257
|
},
|
|
@@ -263,7 +262,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
263
262
|
type: "number"
|
|
264
263
|
}
|
|
265
264
|
),
|
|
266
|
-
/* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(
|
|
265
|
+
/* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", children: [
|
|
267
266
|
/* @__PURE__ */ e(
|
|
268
267
|
ae,
|
|
269
268
|
{
|
|
@@ -292,7 +291,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
292
291
|
{
|
|
293
292
|
label: r.payee_title,
|
|
294
293
|
name: "payee",
|
|
295
|
-
onChange: (o) =>
|
|
294
|
+
onChange: (o) => I(o.target.value),
|
|
296
295
|
sx: { bgcolor: "background.paper" },
|
|
297
296
|
value: h
|
|
298
297
|
}
|
|
@@ -312,21 +311,21 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
312
311
|
)
|
|
313
312
|
] }),
|
|
314
313
|
/* @__PURE__ */ e(lt, { light: !0 }),
|
|
315
|
-
/* @__PURE__ */ _(
|
|
316
|
-
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
|
-
/* @__PURE__ */ e($e, { transaction: a }),
|
|
314
|
+
/* @__PURE__ */ _(x, { bgcolor: "background.paper", children: [
|
|
318
315
|
/* @__PURE__ */ e(Ve, { transaction: a }),
|
|
316
|
+
/* @__PURE__ */ e($e, { transaction: a }),
|
|
317
|
+
/* @__PURE__ */ e(Ge, { transaction: a }),
|
|
319
318
|
/* @__PURE__ */ e(We, { transaction: a })
|
|
320
319
|
] })
|
|
321
320
|
] });
|
|
322
|
-
}, kt =
|
|
323
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: a } =
|
|
321
|
+
}, kt = S(Mt), Lt = ({ onClose: t, transaction: s }) => {
|
|
322
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
|
|
324
323
|
() => l.find((m) => m.guid === d),
|
|
325
324
|
[d]
|
|
326
325
|
), f = async (m) => {
|
|
327
326
|
await a({ ...s, category_guid: d }), m && await r(d, s), p(""), t();
|
|
328
327
|
};
|
|
329
|
-
return /* @__PURE__ */ _(
|
|
328
|
+
return /* @__PURE__ */ _(x, { className: "mx-txn-edit-category-action", children: [
|
|
330
329
|
/* @__PURE__ */ e(
|
|
331
330
|
pt,
|
|
332
331
|
{
|
|
@@ -338,10 +337,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
338
337
|
}
|
|
339
338
|
),
|
|
340
339
|
/* @__PURE__ */ e(
|
|
341
|
-
|
|
340
|
+
le,
|
|
342
341
|
{
|
|
343
342
|
copy: {
|
|
344
|
-
title:
|
|
343
|
+
title: K(
|
|
345
344
|
i.actions_apply_to_all_transaction_types,
|
|
346
345
|
s.description
|
|
347
346
|
)
|
|
@@ -352,7 +351,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
352
351
|
onSecondaryAction: () => f(!1),
|
|
353
352
|
primaryText: i.actions_apply_to_all,
|
|
354
353
|
secondaryText: i.actions_this_time_only,
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
354
|
+
children: /* @__PURE__ */ e(Je, { variant: "subtitle1", children: K(
|
|
356
355
|
i.actions_all_past_and_future,
|
|
357
356
|
s.description,
|
|
358
357
|
h?.name
|
|
@@ -360,184 +359,190 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
360
359
|
}
|
|
361
360
|
)
|
|
362
361
|
] });
|
|
363
|
-
}, Rt =
|
|
362
|
+
}, Rt = S(Lt), re = 120, Ht = ({
|
|
364
363
|
onBackClick: t,
|
|
365
364
|
height: s = "100dvh",
|
|
366
365
|
showInsights: r = !1,
|
|
367
366
|
sx: a = {}
|
|
368
367
|
}) => {
|
|
369
|
-
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } =
|
|
368
|
+
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Ze(), { setSearchValue: f } = gt(), { onEvent: m } = et(), { common: v, transactions: n } = w(), {
|
|
370
369
|
displayedDateRange: g,
|
|
371
|
-
isCopyLoaded:
|
|
370
|
+
isCopyLoaded: I,
|
|
372
371
|
isInitialized: E,
|
|
373
372
|
selectedAccountGuids: o,
|
|
374
373
|
setDisplayedDate: k,
|
|
375
|
-
setSelectedAccounts:
|
|
376
|
-
} = j(), { isDesktop:
|
|
377
|
-
addTransaction:
|
|
374
|
+
setSelectedAccounts: de
|
|
375
|
+
} = j(), { isDesktop: ue, isTablet: me } = Ct(), L = ce(), {
|
|
376
|
+
addTransaction: _e,
|
|
378
377
|
filter: Y,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
378
|
+
isTransactionDataLoaded: X,
|
|
379
|
+
loadAssociatedBeats: pe,
|
|
380
|
+
loadTransactionData: ge,
|
|
381
|
+
setFilter: $,
|
|
382
|
+
sortedTransactionsWithSplits: G,
|
|
383
|
+
tags: he,
|
|
384
|
+
detailedTransactions: fe,
|
|
385
|
+
updateTransaction: Ce
|
|
386
|
+
} = V(), {
|
|
387
|
+
clearExpandedSplits: ye,
|
|
388
|
+
isAmountValid: be,
|
|
388
389
|
manualTransaction: R,
|
|
389
|
-
searchValue:
|
|
390
|
-
setSearchValue:
|
|
391
|
-
setShowInsights:
|
|
392
|
-
updateManualTransaction:
|
|
393
|
-
} = P(), { userProfile:
|
|
390
|
+
searchValue: Te,
|
|
391
|
+
setSearchValue: Ae,
|
|
392
|
+
setShowInsights: xe,
|
|
393
|
+
updateManualTransaction: Se
|
|
394
|
+
} = P(), { userProfile: we } = tt(), [W, y] = u.useState(""), [J, H] = u.useState(""), [ve, U] = u.useState(!1), [Ie, Q] = u.useState(!1), { announce: De, ariaLive: Ne } = Ue(), D = p?.transactions?.selected_account_guid;
|
|
394
395
|
u.useEffect(() => {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
396
|
+
X || ge().finally();
|
|
397
|
+
}, []), u.useEffect(() => {
|
|
398
|
+
const c = D ? [{ guid: D }] : i.filter((N) => !N.is_hidden), ee = it(z()), te = rt(z());
|
|
399
|
+
D || de(c), k(ee, te), $({
|
|
400
|
+
accounts: c.map((N) => N.guid),
|
|
401
|
+
custom: (N) => !N.accountIsClosed && !N.accountIsHidden,
|
|
399
402
|
dateRange: { start: ee, end: te }
|
|
400
|
-
}),
|
|
403
|
+
}), m(T.TRANSACTIONS_VIEW);
|
|
401
404
|
}, [i]), u.useEffect(() => {
|
|
402
|
-
|
|
405
|
+
$({
|
|
403
406
|
...Y,
|
|
404
|
-
accounts:
|
|
407
|
+
accounts: D ? [D] : o,
|
|
405
408
|
dateRange: { start: g.start, end: g.end }
|
|
406
|
-
}),
|
|
407
|
-
}, [
|
|
408
|
-
|
|
409
|
+
}), pe(g.start).finally();
|
|
410
|
+
}, [g, o]), u.useEffect(() => {
|
|
411
|
+
xe(r);
|
|
409
412
|
}, [r]), u.useEffect(() => {
|
|
410
|
-
|
|
411
|
-
|
|
413
|
+
I && n.showing_transactions_count && De(
|
|
414
|
+
K(
|
|
412
415
|
n.showing_transactions_count,
|
|
413
|
-
|
|
416
|
+
G.length
|
|
414
417
|
)
|
|
415
418
|
);
|
|
416
|
-
}, [
|
|
417
|
-
const
|
|
419
|
+
}, [I, g, o, G, n]);
|
|
420
|
+
const Ee = u.useMemo(
|
|
418
421
|
() => i.filter((c) => c.is_manual),
|
|
419
422
|
[i]
|
|
420
|
-
), b = J ?
|
|
421
|
-
|
|
422
|
-
},
|
|
423
|
-
|
|
423
|
+
), b = J ? fe.find((c) => c.guid === J) : void 0, Z = be && !!R.payee && !!R.account_guid && !!R.category_guid, Oe = (c) => {
|
|
424
|
+
ye(), k(c[0], c[1]);
|
|
425
|
+
}, Me = (c) => {
|
|
426
|
+
Ae(c), $({
|
|
424
427
|
...Y,
|
|
425
428
|
searchTerm: c
|
|
426
|
-
}), m(
|
|
427
|
-
}, Me = () => {
|
|
428
|
-
ze(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
|
|
429
|
+
}), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
429
430
|
}, ke = () => {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
431
|
+
qe(G, he), m(T.TRANSACTIONS_CLICK_EXPORT);
|
|
432
|
+
}, Le = () => {
|
|
433
|
+
Ee.length > 0 ? (Se({
|
|
434
|
+
...Ke,
|
|
435
|
+
date: st(z()),
|
|
436
|
+
user_guid: we?.user_guid || ""
|
|
434
437
|
}), y(
|
|
435
438
|
"addTransaction"
|
|
436
439
|
/* AddTransaction */
|
|
437
|
-
), m(
|
|
438
|
-
},
|
|
439
|
-
Z && await
|
|
440
|
-
},
|
|
440
|
+
), m(T.TRANSACTIONS_CLICK_ADD)) : (U(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
441
|
+
}, Re = async () => {
|
|
442
|
+
Z && await _e(R), y("");
|
|
443
|
+
}, He = () => {
|
|
441
444
|
U(!1), Q(!0);
|
|
442
|
-
}, He = async () => {
|
|
443
|
-
Q(!1), await l();
|
|
444
445
|
}, Be = async () => {
|
|
445
|
-
|
|
446
|
+
Q(!1), await l();
|
|
447
|
+
}, Pe = async () => {
|
|
448
|
+
b && !b.has_been_viewed && await Ce({ ...b, has_been_viewed: !0 }), y("");
|
|
446
449
|
};
|
|
447
|
-
if (!
|
|
448
|
-
return /* @__PURE__ */ e(
|
|
449
|
-
const
|
|
450
|
-
return !d && (
|
|
450
|
+
if (!E)
|
|
451
|
+
return /* @__PURE__ */ e(q, {});
|
|
452
|
+
const F = [];
|
|
453
|
+
return !d && (ue || me) && F.push({
|
|
451
454
|
iconName: "open_in_new",
|
|
452
455
|
label: n.export_csv_btn,
|
|
453
|
-
onClick:
|
|
454
|
-
}), h.show_connections_widget_in_master &&
|
|
456
|
+
onClick: ke
|
|
457
|
+
}), h.show_connections_widget_in_master && F.push({
|
|
455
458
|
iconName: "add",
|
|
456
459
|
label: n.add_transaction_btn,
|
|
457
|
-
onClick:
|
|
460
|
+
onClick: Le
|
|
458
461
|
}), /* @__PURE__ */ _(
|
|
459
462
|
ft,
|
|
460
463
|
{
|
|
461
|
-
...!
|
|
462
|
-
actions:
|
|
464
|
+
...!D && { accountOptions: i },
|
|
465
|
+
actions: F,
|
|
463
466
|
calendarActions: {
|
|
464
|
-
onRangeChanged:
|
|
467
|
+
onRangeChanged: Oe
|
|
465
468
|
},
|
|
466
|
-
onAccountsFilterClick: () => m(
|
|
469
|
+
onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
|
|
467
470
|
onBackClick: t,
|
|
468
471
|
sx: a,
|
|
469
472
|
title: n.transactions_title,
|
|
470
473
|
children: [
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
474
|
+
X ? /* @__PURE__ */ _(A, { children: [
|
|
475
|
+
Ne,
|
|
476
|
+
/* @__PURE__ */ e(x, { mt: 16, children: /* @__PURE__ */ e(
|
|
477
|
+
yt,
|
|
478
|
+
{
|
|
479
|
+
onChange: Me,
|
|
480
|
+
placeholder: n.action_bar_search_placeholder,
|
|
481
|
+
searchValue: Te
|
|
482
|
+
}
|
|
483
|
+
) }),
|
|
484
|
+
/* @__PURE__ */ e(
|
|
485
|
+
x,
|
|
486
|
+
{
|
|
487
|
+
sx: {
|
|
488
|
+
[L.breakpoints.down("md")]: { display: "none" },
|
|
489
|
+
[L.breakpoints.up("md")]: { display: "block" }
|
|
490
|
+
},
|
|
491
|
+
children: /* @__PURE__ */ e(
|
|
492
|
+
Nt,
|
|
493
|
+
{
|
|
494
|
+
height: `calc(${s} - ${re}px)`,
|
|
495
|
+
onCategoryClick: (c) => {
|
|
496
|
+
H(c), y(
|
|
497
|
+
"category"
|
|
498
|
+
/* Category */
|
|
499
|
+
);
|
|
500
|
+
},
|
|
501
|
+
onRowClick: (c) => {
|
|
502
|
+
H(c), y(
|
|
503
|
+
"transaction"
|
|
504
|
+
/* Transaction */
|
|
505
|
+
), m(T.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
|
|
506
|
+
}
|
|
502
507
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
),
|
|
508
|
+
)
|
|
509
|
+
}
|
|
510
|
+
),
|
|
511
|
+
/* @__PURE__ */ e(
|
|
512
|
+
x,
|
|
513
|
+
{
|
|
514
|
+
sx: {
|
|
515
|
+
[L.breakpoints.down("md")]: { display: "block" },
|
|
516
|
+
[L.breakpoints.up("md")]: { display: "none" }
|
|
517
|
+
},
|
|
518
|
+
children: /* @__PURE__ */ e(
|
|
519
|
+
Fe,
|
|
520
|
+
{
|
|
521
|
+
height: `calc(${s} - ${re}px)`,
|
|
522
|
+
onClick: (c) => {
|
|
523
|
+
H(c), y(
|
|
524
|
+
"transaction"
|
|
525
|
+
/* Transaction */
|
|
526
|
+
);
|
|
527
|
+
},
|
|
528
|
+
showHiddenTransactions: !0,
|
|
529
|
+
showInsights: r
|
|
530
|
+
}
|
|
531
|
+
)
|
|
532
|
+
}
|
|
533
|
+
)
|
|
534
|
+
] }) : /* @__PURE__ */ e(ht, { variant: "list" }),
|
|
530
535
|
/* @__PURE__ */ e(
|
|
531
536
|
oe,
|
|
532
537
|
{
|
|
533
|
-
ariaLabelClose:
|
|
534
|
-
isOpen:
|
|
535
|
-
onClose:
|
|
538
|
+
ariaLabelClose: v.close_aria,
|
|
539
|
+
isOpen: W === "transaction" && !!b,
|
|
540
|
+
onClose: Pe,
|
|
536
541
|
title: n.details_title,
|
|
537
|
-
children: b && /* @__PURE__ */ e(
|
|
542
|
+
children: b && /* @__PURE__ */ e(ze, { transaction: b })
|
|
538
543
|
}
|
|
539
544
|
),
|
|
540
|
-
b &&
|
|
545
|
+
b && W === "category" && /* @__PURE__ */ e(
|
|
541
546
|
Rt,
|
|
542
547
|
{
|
|
543
548
|
onClose: () => {
|
|
@@ -549,11 +554,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
549
554
|
/* @__PURE__ */ e(
|
|
550
555
|
oe,
|
|
551
556
|
{
|
|
552
|
-
ariaLabelClose:
|
|
553
|
-
isOpen:
|
|
557
|
+
ariaLabelClose: v.close_aria,
|
|
558
|
+
isOpen: W === "addTransaction",
|
|
554
559
|
isPrimaryDisabled: !Z,
|
|
555
560
|
onClose: () => y(""),
|
|
556
|
-
onPrimaryAction:
|
|
561
|
+
onPrimaryAction: Re,
|
|
557
562
|
title: n.add_transaction_title,
|
|
558
563
|
children: /* @__PURE__ */ e(kt, {})
|
|
559
564
|
}
|
|
@@ -562,38 +567,38 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
562
567
|
Ot,
|
|
563
568
|
{
|
|
564
569
|
copy: { title: n.add_manual_account },
|
|
565
|
-
isOpen:
|
|
570
|
+
isOpen: ve,
|
|
566
571
|
onClose: () => {
|
|
567
572
|
U(!1);
|
|
568
573
|
},
|
|
569
|
-
onPrimaryAction:
|
|
574
|
+
onPrimaryAction: He
|
|
570
575
|
}
|
|
571
576
|
),
|
|
572
577
|
/* @__PURE__ */ e(
|
|
573
578
|
ct,
|
|
574
579
|
{
|
|
575
|
-
onClose:
|
|
576
|
-
showConnectWidget:
|
|
580
|
+
onClose: Be,
|
|
581
|
+
showConnectWidget: Ie,
|
|
577
582
|
title: n.add_manual_account
|
|
578
583
|
}
|
|
579
584
|
)
|
|
580
585
|
]
|
|
581
586
|
}
|
|
582
587
|
);
|
|
583
|
-
},
|
|
588
|
+
}, Ca = S(Ht);
|
|
584
589
|
export {
|
|
585
590
|
Ot as AddAccountModal,
|
|
586
591
|
xa as BottomActions,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
Oa as ExportCsvAction,
|
|
593
|
+
Ia as TRANSACTION_EVENTS,
|
|
594
|
+
Sa as TopActions,
|
|
595
|
+
Ta as TransactionApi,
|
|
596
|
+
ze as TransactionDetails,
|
|
597
|
+
Fe as TransactionList,
|
|
598
|
+
wa as TransactionRow,
|
|
599
|
+
Na as TransactionStore,
|
|
595
600
|
Nt as TransactionTable,
|
|
596
|
-
|
|
597
|
-
|
|
601
|
+
Ca as TransactionWidget,
|
|
602
|
+
qe as exportTransactionsToCSV,
|
|
598
603
|
P as useTransactionsUiStore
|
|
599
604
|
};
|