@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,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import x from "@mui/material/Box";
|
|
3
|
+
import P from "@mui/material/FormControlLabel";
|
|
4
|
+
import H from "@mui/material/Radio";
|
|
5
|
+
import { useTheme as K } from "@mui/material/styles";
|
|
6
|
+
import U from "@mui/material/Tooltip";
|
|
7
7
|
import { makeAutoObservable as p } from "mobx";
|
|
8
8
|
import { endOfToday as f } from "date-fns/endOfToday";
|
|
9
9
|
import { formatISO as V } from "date-fns/formatISO";
|
|
@@ -12,25 +12,25 @@ import { isBefore as v } from "date-fns/isBefore";
|
|
|
12
12
|
import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
13
13
|
import { startOfToday as m } from "date-fns/startOfToday";
|
|
14
14
|
import { subDays as B } from "date-fns/subDays";
|
|
15
|
-
import { O as
|
|
16
|
-
import { T as u } from "./TransactionApi-
|
|
17
|
-
import { b as Y } from "./Category-
|
|
18
|
-
import { f as F } from "./exportTransactionsToCSV-
|
|
15
|
+
import { O as o, a as y, T as b } from "./User-BklmOUSd.mjs";
|
|
16
|
+
import { T as u } from "./TransactionApi-CjBoLleL.mjs";
|
|
17
|
+
import { b as Y } from "./Category-Ccoew_sA.mjs";
|
|
18
|
+
import { f as F } from "./exportTransactionsToCSV-BgV_wTLT.mjs";
|
|
19
19
|
import { format as W } from "date-fns/format";
|
|
20
|
-
import { fromUnixTime as
|
|
21
|
-
import { f as
|
|
22
|
-
import { endOfMonth as
|
|
23
|
-
import { B as L } from "./BeatApi-
|
|
24
|
-
const
|
|
20
|
+
import { fromUnixTime as $ } from "date-fns/fromUnixTime";
|
|
21
|
+
import { f as I, a as C, O as k } from "./Dialog-CDV0kKxj.mjs";
|
|
22
|
+
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
23
|
+
import { B as L } from "./BeatApi-De2IaqH2.mjs";
|
|
24
|
+
const Rt = ({
|
|
25
25
|
checked: l = !1,
|
|
26
26
|
label: t,
|
|
27
27
|
sx: a = {},
|
|
28
28
|
tooltip: e = "",
|
|
29
29
|
value: A
|
|
30
30
|
}) => {
|
|
31
|
-
const d =
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
31
|
+
const d = K(), s = d.palette.mode === "light" ? d.palette.grey[400] : d.palette.grey[700], c = l ? d.palette.action.active : s;
|
|
32
|
+
return /* @__PURE__ */ g(
|
|
33
|
+
x,
|
|
34
34
|
{
|
|
35
35
|
bgcolor: "background.paper",
|
|
36
36
|
border: `${l ? 3 : 1}px solid`,
|
|
@@ -41,11 +41,11 @@ const X = ({
|
|
|
41
41
|
pr: 8,
|
|
42
42
|
py: 4,
|
|
43
43
|
sx: { "&:hover": { borderColor: d.palette.action.active }, ...a },
|
|
44
|
-
children: /* @__PURE__ */
|
|
45
|
-
|
|
44
|
+
children: /* @__PURE__ */ g(U, { title: e, children: /* @__PURE__ */ g(
|
|
45
|
+
P,
|
|
46
46
|
{
|
|
47
|
-
control: /* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
control: /* @__PURE__ */ g(
|
|
48
|
+
H,
|
|
49
49
|
{
|
|
50
50
|
disableRipple: !0,
|
|
51
51
|
sx: { "&.Mui-checked": { color: d.palette.action.active } }
|
|
@@ -59,31 +59,19 @@ const X = ({
|
|
|
59
59
|
) })
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
},
|
|
62
|
+
}, G = {
|
|
63
63
|
ASC: "ASC",
|
|
64
|
-
DESC: "DESC"
|
|
65
|
-
|
|
66
|
-
ASC: "ascending",
|
|
67
|
-
DESC: "descending"
|
|
68
|
-
},
|
|
69
|
-
ALIGN: {
|
|
70
|
-
center: "center",
|
|
71
|
-
left: "flex-start",
|
|
72
|
-
right: "flex-end"
|
|
73
|
-
}
|
|
74
|
-
}, o = {
|
|
64
|
+
DESC: "DESC"
|
|
65
|
+
}, n = {
|
|
75
66
|
ADD: "Add",
|
|
76
67
|
ADD_CATEGORY: "Add Category",
|
|
77
68
|
CHANGE_CATEGORY: "Change Category",
|
|
78
|
-
CHANGE_DATE: "Change Date",
|
|
79
69
|
CLOSE: "Close",
|
|
80
70
|
DELETE: "Delete",
|
|
81
71
|
EDIT: "Edit",
|
|
82
|
-
HIDE: "Hide",
|
|
83
72
|
SAVE: "Save",
|
|
84
73
|
SPLIT: "Split",
|
|
85
74
|
SELECT: "Select",
|
|
86
|
-
UNHIDE: "Unhide",
|
|
87
75
|
UNSPLIT: "Unsplit"
|
|
88
76
|
}, T = {
|
|
89
77
|
TRANSACTION_DETAILS: "Transaction Details",
|
|
@@ -106,251 +94,246 @@ const X = ({
|
|
|
106
94
|
TAG_DELETE: "Delete Tag",
|
|
107
95
|
TAG_EDIT: "Edit Tag",
|
|
108
96
|
TRANSACTION: "Transaction",
|
|
109
|
-
TRANSACTIONS_LIST: "Transactions List",
|
|
110
97
|
UNHIDE_TRANSACTION: "Unhide Transaction"
|
|
111
98
|
}, R = {
|
|
112
99
|
// splits
|
|
113
|
-
[
|
|
114
|
-
action:
|
|
100
|
+
[o.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
101
|
+
action: n.SELECT,
|
|
115
102
|
category: T.TRANSACTION_DETAILS,
|
|
116
103
|
label: r.SPLITS
|
|
117
104
|
},
|
|
118
|
-
[
|
|
119
|
-
action:
|
|
105
|
+
[o.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
106
|
+
action: n.ADD_CATEGORY,
|
|
120
107
|
category: T.TRANSACTION_DETAILS,
|
|
121
108
|
label: r.SPLITS
|
|
122
109
|
},
|
|
123
|
-
[
|
|
124
|
-
action:
|
|
110
|
+
[o.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
111
|
+
action: n.DELETE,
|
|
125
112
|
category: T.TRANSACTION_DETAILS,
|
|
126
113
|
label: r.SPLITS
|
|
127
114
|
},
|
|
128
|
-
[
|
|
129
|
-
action:
|
|
115
|
+
[o.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
116
|
+
action: n.SPLIT,
|
|
130
117
|
category: T.TRANSACTION_DETAILS,
|
|
131
118
|
label: r.SPLITS
|
|
132
119
|
},
|
|
133
|
-
[
|
|
134
|
-
action:
|
|
120
|
+
[o.ON_TRANSACTION_UNSPLIT]: {
|
|
121
|
+
action: n.UNSPLIT,
|
|
135
122
|
category: T.TRANSACTION_DETAILS,
|
|
136
123
|
label: r.SPLITS
|
|
137
124
|
},
|
|
138
125
|
// category
|
|
139
|
-
[
|
|
140
|
-
action:
|
|
126
|
+
[o.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
127
|
+
action: n.SELECT,
|
|
141
128
|
category: T.TRANSACTIONS_LIST,
|
|
142
129
|
label: r.CATEGORY
|
|
143
130
|
},
|
|
144
|
-
[
|
|
145
|
-
action:
|
|
131
|
+
[o.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
132
|
+
action: n.CHANGE_CATEGORY,
|
|
146
133
|
category: T.TRANSACTION_DETAILS,
|
|
147
134
|
label: r.CATEGORY
|
|
148
135
|
},
|
|
149
136
|
// date
|
|
150
|
-
[
|
|
151
|
-
action:
|
|
137
|
+
[o.ON_TRANSACTION_DATE_CHANGED]: {
|
|
138
|
+
action: n.SAVE,
|
|
152
139
|
category: T.TRANSACTION_DETAILS,
|
|
153
140
|
label: r.DATE
|
|
154
141
|
},
|
|
155
|
-
[
|
|
156
|
-
action:
|
|
142
|
+
[o.ON_TRANSACTION_DATE_CLICK]: {
|
|
143
|
+
action: n.SELECT,
|
|
157
144
|
category: T.TRANSACTION_DETAILS,
|
|
158
145
|
label: r.DATE
|
|
159
146
|
},
|
|
160
147
|
// merchant logo
|
|
161
|
-
[
|
|
162
|
-
action:
|
|
148
|
+
[o.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
149
|
+
action: n.CLOSE,
|
|
163
150
|
category: T.TRANSACTION_DETAILS,
|
|
164
151
|
label: r.DELETE_MERCHANT_LOGO
|
|
165
152
|
},
|
|
166
|
-
[
|
|
167
|
-
action:
|
|
153
|
+
[o.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
154
|
+
action: n.SELECT,
|
|
168
155
|
category: T.TRANSACTION_DETAILS,
|
|
169
156
|
label: r.DELETE_MERCHANT_LOGO
|
|
170
157
|
},
|
|
171
|
-
[
|
|
172
|
-
action:
|
|
158
|
+
[o.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
159
|
+
action: n.DELETE,
|
|
173
160
|
category: T.TRANSACTION_DETAILS,
|
|
174
161
|
label: r.DELETE_MERCHANT_LOGO
|
|
175
162
|
},
|
|
176
163
|
// description
|
|
177
|
-
[
|
|
178
|
-
action:
|
|
164
|
+
[o.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
165
|
+
action: n.EDIT,
|
|
179
166
|
category: T.TRANSACTION_DETAILS,
|
|
180
167
|
label: r.DESCRIPTION
|
|
181
168
|
},
|
|
182
|
-
[
|
|
183
|
-
action:
|
|
169
|
+
[o.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
170
|
+
action: n.SAVE,
|
|
184
171
|
category: T.TRANSACTION_DETAILS,
|
|
185
172
|
label: r.DESCRIPTION
|
|
186
173
|
},
|
|
187
174
|
// hide transactions
|
|
188
|
-
[
|
|
189
|
-
action:
|
|
175
|
+
[o.ON_TRANSACTION_HIDDEN]: {
|
|
176
|
+
action: n.SAVE,
|
|
190
177
|
category: T.TRANSACTION_DETAILS,
|
|
191
178
|
label: r.HIDE_TRANSACTION
|
|
192
179
|
},
|
|
193
|
-
[
|
|
194
|
-
action:
|
|
180
|
+
[o.ON_TRANSACTION_HIDE_CLICK]: {
|
|
181
|
+
action: n.SELECT,
|
|
195
182
|
category: T.TRANSACTION_DETAILS,
|
|
196
183
|
label: r.HIDE_TRANSACTION
|
|
197
184
|
},
|
|
198
|
-
[
|
|
199
|
-
action:
|
|
185
|
+
[o.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
186
|
+
action: n.CLOSE,
|
|
200
187
|
category: T.TRANSACTION_DETAILS,
|
|
201
188
|
label: r.HIDE_TRANSACTION
|
|
202
189
|
},
|
|
203
190
|
// transaction list
|
|
204
|
-
[
|
|
205
|
-
action:
|
|
191
|
+
[o.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
192
|
+
action: n.SELECT,
|
|
206
193
|
category: T.TRANSACTIONS_LIST,
|
|
207
194
|
label: r.TRANSACTION
|
|
208
195
|
},
|
|
209
196
|
// memo
|
|
210
|
-
[
|
|
211
|
-
action:
|
|
197
|
+
[o.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
198
|
+
action: n.SAVE,
|
|
212
199
|
category: T.TRANSACTION_DETAILS,
|
|
213
200
|
label: r.MEMO
|
|
214
201
|
},
|
|
215
|
-
[
|
|
216
|
-
action:
|
|
202
|
+
[o.ON_TRANSACTION_MEMO_CLICK]: {
|
|
203
|
+
action: n.SELECT,
|
|
217
204
|
category: T.TRANSACTION_DETAILS,
|
|
218
205
|
label: r.MEMO
|
|
219
206
|
},
|
|
220
207
|
// tags
|
|
221
|
-
[
|
|
222
|
-
action:
|
|
208
|
+
[o.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
209
|
+
action: n.SAVE,
|
|
223
210
|
category: T.TRANSACTION_DETAILS,
|
|
224
211
|
label: r.TAGS
|
|
225
212
|
},
|
|
226
|
-
[
|
|
227
|
-
action:
|
|
213
|
+
[o.ON_TRANSACTION_TAGS_CLICK]: {
|
|
214
|
+
action: n.SELECT,
|
|
228
215
|
category: T.TRANSACTION_DETAILS,
|
|
229
216
|
label: r.TAGS
|
|
230
217
|
},
|
|
231
|
-
[
|
|
232
|
-
action:
|
|
218
|
+
[o.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
219
|
+
action: n.CLOSE,
|
|
233
220
|
category: T.TRANSACTION_DETAILS,
|
|
234
221
|
label: r.TAGS
|
|
235
222
|
},
|
|
236
|
-
[
|
|
237
|
-
action:
|
|
223
|
+
[o.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
224
|
+
action: n.ADD,
|
|
238
225
|
category: T.TRANSACTION_DETAILS,
|
|
239
226
|
label: r.TAG_ADD
|
|
240
227
|
},
|
|
241
|
-
[
|
|
242
|
-
action:
|
|
228
|
+
[o.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
229
|
+
action: n.SAVE,
|
|
243
230
|
category: T.TRANSACTION_DETAILS,
|
|
244
231
|
label: r.TAG_ADD
|
|
245
232
|
},
|
|
246
|
-
[
|
|
247
|
-
action:
|
|
233
|
+
[o.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
234
|
+
action: n.SELECT,
|
|
248
235
|
category: T.TRANSACTION_DETAILS,
|
|
249
236
|
label: r.TAG_DELETE
|
|
250
237
|
},
|
|
251
|
-
[
|
|
252
|
-
action:
|
|
238
|
+
[o.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
239
|
+
action: n.CLOSE,
|
|
253
240
|
category: T.TRANSACTION_DETAILS,
|
|
254
241
|
label: r.TAG_DELETE
|
|
255
242
|
},
|
|
256
|
-
[
|
|
257
|
-
action:
|
|
243
|
+
[o.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
244
|
+
action: n.SAVE,
|
|
258
245
|
category: T.TRANSACTION_DETAILS,
|
|
259
246
|
label: r.TAG_DELETE
|
|
260
247
|
},
|
|
261
|
-
[
|
|
262
|
-
action:
|
|
248
|
+
[o.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
249
|
+
action: n.EDIT,
|
|
263
250
|
category: T.TRANSACTION_DETAILS,
|
|
264
251
|
label: r.TAG_EDIT
|
|
265
252
|
},
|
|
266
|
-
[
|
|
267
|
-
action:
|
|
253
|
+
[o.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
254
|
+
action: n.SAVE,
|
|
268
255
|
category: T.TRANSACTION_DETAILS,
|
|
269
256
|
label: r.TAG_EDIT
|
|
270
257
|
},
|
|
271
258
|
// flag
|
|
272
|
-
[
|
|
273
|
-
action:
|
|
259
|
+
[o.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
260
|
+
action: n.SELECT,
|
|
274
261
|
category: T.TRANSACTION_DETAILS,
|
|
275
262
|
label: r.FLAG
|
|
276
263
|
},
|
|
277
264
|
// hide
|
|
278
|
-
[
|
|
279
|
-
action:
|
|
265
|
+
[o.ON_TRANSACTION_UNHIDDEN]: {
|
|
266
|
+
action: n.SAVE,
|
|
280
267
|
category: T.TRANSACTION_DETAILS,
|
|
281
268
|
label: r.UNHIDE_TRANSACTION
|
|
282
269
|
},
|
|
283
|
-
[
|
|
284
|
-
action:
|
|
270
|
+
[o.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
271
|
+
action: n.SELECT,
|
|
285
272
|
category: T.TRANSACTION_DETAILS,
|
|
286
273
|
label: r.UNHIDE_TRANSACTION
|
|
287
274
|
},
|
|
288
|
-
[
|
|
289
|
-
action:
|
|
275
|
+
[o.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
276
|
+
action: n.CLOSE,
|
|
290
277
|
category: T.TRANSACTION_DETAILS,
|
|
291
278
|
label: r.UNHIDE_TRANSACTION
|
|
292
279
|
},
|
|
293
280
|
// export CSV
|
|
294
|
-
[
|
|
295
|
-
action:
|
|
281
|
+
[o.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
282
|
+
action: n.SELECT,
|
|
296
283
|
category: T.TRANSACTIONS_WIDGET,
|
|
297
284
|
label: r.EXPORT_CSV
|
|
298
285
|
},
|
|
299
286
|
// add transaction
|
|
300
|
-
[
|
|
301
|
-
action:
|
|
287
|
+
[o.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
288
|
+
action: n.SELECT,
|
|
302
289
|
category: T.TRANSACTIONS_WIDGET,
|
|
303
290
|
label: r.ADD_TRANSACTION
|
|
304
291
|
},
|
|
305
|
-
[
|
|
306
|
-
action:
|
|
292
|
+
[o.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
293
|
+
action: n.ADD,
|
|
307
294
|
category: T.TRANSACTIONS_WIDGET,
|
|
308
295
|
label: r.ADD_TRANSACTION
|
|
309
296
|
},
|
|
310
|
-
[
|
|
311
|
-
action:
|
|
297
|
+
[o.ON_TRANSACTION_DELETE_CLICK]: {
|
|
298
|
+
action: n.SELECT,
|
|
312
299
|
category: T.TRANSACTIONS_WIDGET,
|
|
313
300
|
label: r.DELETE_TRANSACTION
|
|
314
301
|
},
|
|
315
|
-
[
|
|
316
|
-
action:
|
|
302
|
+
[o.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
303
|
+
action: n.CLOSE,
|
|
317
304
|
category: T.TRANSACTIONS_WIDGET,
|
|
318
305
|
label: r.DELETE_TRANSACTION
|
|
319
306
|
},
|
|
320
|
-
[
|
|
321
|
-
action:
|
|
307
|
+
[o.ON_TRANSACTION_DELETE_DELETED]: {
|
|
308
|
+
action: n.DELETE,
|
|
322
309
|
category: T.TRANSACTIONS_WIDGET,
|
|
323
310
|
label: r.DELETE_TRANSACTION
|
|
324
311
|
}
|
|
325
|
-
},
|
|
326
|
-
FLAG: "flag",
|
|
312
|
+
}, X = async (l, t) => !t || !R[l] ? null : t.sendAnalyticEvent(R[l]), D = {
|
|
327
313
|
DATE: "date",
|
|
328
|
-
PAYEE: "payee",
|
|
329
|
-
CATEGORY: "category",
|
|
330
|
-
ACCOUNT: "account",
|
|
331
314
|
AMOUNT: "amount"
|
|
332
|
-
},
|
|
315
|
+
}, j = (l, t, a, e = []) => {
|
|
333
316
|
const A = t.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), d = a.reduce((c, i) => ({ ...c, [i.guid]: i }), {}), s = e.reduce((c, i) => {
|
|
334
|
-
const { transaction_guid:
|
|
335
|
-
if (!c[
|
|
317
|
+
const { transaction_guid: S, tag_guid: E } = i;
|
|
318
|
+
if (!c[S])
|
|
336
319
|
return {
|
|
337
320
|
...c,
|
|
338
|
-
[
|
|
321
|
+
[S]: [E]
|
|
339
322
|
};
|
|
340
|
-
const
|
|
323
|
+
const N = [...c[S], E];
|
|
341
324
|
return {
|
|
342
325
|
...c,
|
|
343
|
-
[
|
|
326
|
+
[S]: N
|
|
344
327
|
};
|
|
345
328
|
}, {});
|
|
346
329
|
return l.map((c) => {
|
|
347
|
-
const i = A[c.account_guid],
|
|
330
|
+
const i = A[c.account_guid], S = c.category_guid ? d[c.category_guid] : null, E = s[c.guid] ?? [];
|
|
348
331
|
return {
|
|
349
332
|
...c,
|
|
350
333
|
account: i?.user_name || "Unknown",
|
|
351
334
|
accountIsClosed: i?.is_closed,
|
|
352
335
|
accountIsHidden: i?.is_hidden,
|
|
353
|
-
category:
|
|
336
|
+
category: S?.name || "Uncategorized",
|
|
354
337
|
isIncome: c.top_level_category_guid === Y.INCOME,
|
|
355
338
|
isPending: c.feed_status === y.PENDING,
|
|
356
339
|
number: i?.account_number || "",
|
|
@@ -358,13 +341,13 @@ const X = ({
|
|
|
358
341
|
tags: E
|
|
359
342
|
};
|
|
360
343
|
});
|
|
361
|
-
},
|
|
362
|
-
const s =
|
|
344
|
+
}, Z = "uncategorized", q = (l, t, a, e, A, d) => {
|
|
345
|
+
const s = J(l, A, d), c = Q(s, a, e);
|
|
363
346
|
return t.forEach((i) => {
|
|
364
|
-
const
|
|
365
|
-
c.splice(
|
|
347
|
+
const S = c.findIndex((N) => N.guid === i), E = d.filter((N) => N.parent_guid === i);
|
|
348
|
+
c.splice(S + 1, 0, ...E);
|
|
366
349
|
}), c;
|
|
367
|
-
},
|
|
350
|
+
}, J = (l, t, a) => {
|
|
368
351
|
const {
|
|
369
352
|
accounts: e = [],
|
|
370
353
|
dateRange: A = { start: h(m()), end: f() },
|
|
@@ -372,24 +355,24 @@ const X = ({
|
|
|
372
355
|
searchTerm: s = "",
|
|
373
356
|
showSplits: c = !1
|
|
374
357
|
} = l;
|
|
375
|
-
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((
|
|
376
|
-
if (s ===
|
|
358
|
+
return a.filter((i) => c ? !i.has_been_split : !i.parent_guid).filter((i) => !!e.find((S) => S === i.account_guid)).filter((i) => i.date >= O(A.start) && i.date <= O(A.end)).filter(d).filter((i) => {
|
|
359
|
+
if (s === Z && i.has_been_split)
|
|
377
360
|
return !1;
|
|
378
361
|
if (/^spl/i.test(s) && (i.has_been_split || i.parent_guid))
|
|
379
362
|
return !0;
|
|
380
363
|
const E = i.tags.some(
|
|
381
|
-
(w) => _(s, t.find((
|
|
382
|
-
),
|
|
383
|
-
return _(s, i.payee) || _(s, i.feed_description) || _(s, i.category) || _(s,
|
|
364
|
+
(w) => _(s, t.find((M) => M.guid === w)?.name)
|
|
365
|
+
), N = $(i.date);
|
|
366
|
+
return _(s, i.payee) || _(s, i.feed_description) || _(s, i.category) || _(s, I(N, C.MONTH)) || _(s, I(N, C.DAY)) || _(s, I(N, C.FULL_MONTH_DAY)) || _(s, I(N, C.MONTH_DAY_YEAR)) || _(s, W(N, k)) || _(s, i.account) || _(s, `${i.amount}`) || _(s, i.memo) || E;
|
|
384
367
|
});
|
|
385
|
-
},
|
|
368
|
+
}, Q = (l, t, a) => [...l].sort((e, A) => {
|
|
386
369
|
const d = t, s = (e[d] || "") > (A[d] || "");
|
|
387
370
|
let c = s ? -1 : 1, i = s ? 1 : -1;
|
|
388
371
|
return (t === D.DATE || t === D.AMOUNT) && (c = s ? 1 : -1, i = s ? -1 : 1), a === G.ASC ? c : i;
|
|
389
372
|
}), _ = (l, t) => {
|
|
390
373
|
const a = l.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
|
|
391
374
|
return a.every((A) => e.indexOf(A) > -1);
|
|
392
|
-
},
|
|
375
|
+
}, tt = {
|
|
393
376
|
account_guid: "",
|
|
394
377
|
amount: 0,
|
|
395
378
|
currency_code: "",
|
|
@@ -418,17 +401,16 @@ const X = ({
|
|
|
418
401
|
memo: void 0,
|
|
419
402
|
tags: []
|
|
420
403
|
};
|
|
421
|
-
class
|
|
404
|
+
class at {
|
|
422
405
|
beginDate = h(/* @__PURE__ */ new Date());
|
|
423
|
-
endDate =
|
|
406
|
+
endDate = z(/* @__PURE__ */ new Date());
|
|
424
407
|
expandedSplits = [];
|
|
425
|
-
isInitialized = !1;
|
|
426
408
|
height = 550;
|
|
427
409
|
width = 1e3;
|
|
428
410
|
shouldDisableDrawerScroll = !1;
|
|
429
411
|
searchValue = "";
|
|
430
412
|
selectedAccountGuids = [];
|
|
431
|
-
manualTransaction =
|
|
413
|
+
manualTransaction = tt;
|
|
432
414
|
isAmountValid = !1;
|
|
433
415
|
showInsights = !1;
|
|
434
416
|
constructor() {
|
|
@@ -437,7 +419,6 @@ class et {
|
|
|
437
419
|
setDateRange = (t, a) => {
|
|
438
420
|
this.beginDate = t, this.endDate = a;
|
|
439
421
|
};
|
|
440
|
-
setIsInitialized = (t) => this.isInitialized = t;
|
|
441
422
|
setIsAmountValid = (t) => this.isAmountValid = t;
|
|
442
423
|
setSearchValue = (t) => this.searchValue = t;
|
|
443
424
|
setSelectedAccountGuids = (t) => this.selectedAccountGuids = t;
|
|
@@ -459,7 +440,7 @@ class et {
|
|
|
459
440
|
this.manualTransaction = t;
|
|
460
441
|
};
|
|
461
442
|
}
|
|
462
|
-
class
|
|
443
|
+
class pt {
|
|
463
444
|
globalStore;
|
|
464
445
|
uiStore;
|
|
465
446
|
api = new u("/", "");
|
|
@@ -479,29 +460,37 @@ class ft {
|
|
|
479
460
|
isLoading = !0;
|
|
480
461
|
sortColumn = D.DATE;
|
|
481
462
|
sortDirection = G.DESC;
|
|
482
|
-
onAnalyticEvent =
|
|
463
|
+
onAnalyticEvent = X;
|
|
483
464
|
constructor(t) {
|
|
484
|
-
this.globalStore = t, this.uiStore = new
|
|
465
|
+
this.globalStore = t, this.uiStore = new at(), this.api = new u(
|
|
485
466
|
t.endpoint,
|
|
486
467
|
t.sessionToken,
|
|
487
468
|
t.onError
|
|
488
469
|
), this.beatApi = new L(t.endpoint, t.sessionToken, t.onError), p(this);
|
|
489
470
|
}
|
|
490
471
|
loadTransactionData = async () => {
|
|
491
|
-
await Promise.all([
|
|
472
|
+
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
|
|
492
473
|
this.loadAssociatedBeats(h(/* @__PURE__ */ new Date())),
|
|
493
474
|
this.loadTags(),
|
|
494
475
|
this.loadTaggings(),
|
|
495
476
|
this.loadTransactionRules(),
|
|
496
477
|
// By default loads 90 days of transactions
|
|
497
478
|
this.loadTransactions(this.cachedStartDate)
|
|
498
|
-
])
|
|
479
|
+
]);
|
|
499
480
|
};
|
|
500
481
|
get isTransactionDataLoaded() {
|
|
501
482
|
return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
|
|
502
483
|
}
|
|
484
|
+
get detailedTransactions() {
|
|
485
|
+
return this.isTransactionDataLoaded ? j(
|
|
486
|
+
this.transactions,
|
|
487
|
+
this.globalStore.accountStore.visibleAccounts,
|
|
488
|
+
this.globalStore.categoryStore.categories,
|
|
489
|
+
this.taggings
|
|
490
|
+
) : [];
|
|
491
|
+
}
|
|
503
492
|
get sortedTransactions() {
|
|
504
|
-
return
|
|
493
|
+
return q(
|
|
505
494
|
this.filter,
|
|
506
495
|
this.uiStore.expandedSplits,
|
|
507
496
|
this.sortColumn,
|
|
@@ -513,14 +502,6 @@ class ft {
|
|
|
513
502
|
get sortedTransactionsWithSplits() {
|
|
514
503
|
return F(this.sortedTransactions, this.transactions);
|
|
515
504
|
}
|
|
516
|
-
get detailedTransactions() {
|
|
517
|
-
return Z(
|
|
518
|
-
this.transactions,
|
|
519
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
520
|
-
this.globalStore.categoryStore.categories,
|
|
521
|
-
this.taggings
|
|
522
|
-
);
|
|
523
|
-
}
|
|
524
505
|
setAssociatedBeats = (t) => {
|
|
525
506
|
this.associatedBeats = t, this.associatedBeatsLoaded = !0;
|
|
526
507
|
};
|
|
@@ -684,7 +665,7 @@ class ft {
|
|
|
684
665
|
};
|
|
685
666
|
}
|
|
686
667
|
export {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
668
|
+
tt as D,
|
|
669
|
+
Rt as S,
|
|
670
|
+
pt as T
|
|
690
671
|
};
|