@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.mega1
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 +178 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
- package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- 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-BmZXkL0C.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
- package/dist/SpendingLegend-CDO060GT.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
- 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 +245 -235
- package/dist/accounts/stores/AccountStore.d.ts +24 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +611 -580
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +187 -180
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/Select.d.ts +4 -2
- 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 +4 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +397 -387
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- 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/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +458 -448
- package/dist/exportTransactionsToCSV-DuAaI5XA.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 +24 -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 +3190 -1073
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +302 -291
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +108 -104
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- 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 +4 -3
- package/dist/microinsights/index.es.js +101 -14
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/index.es.js +197 -190
- package/dist/notifications/index.es.js +25 -25
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +395 -351
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +307 -298
- package/dist/spending/index.es.js +299 -438
- 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 +115 -112
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +1025 -604
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +4 -4
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as L } from "react/jsx-runtime";
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { observer as A } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import M from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
6
|
import K from "@mui/material/List";
|
|
7
7
|
import h from "@mui/material/Stack";
|
|
@@ -10,29 +10,30 @@ import ie from "@mui/material/ListItem";
|
|
|
10
10
|
import se from "@mui/material/ListItemAvatar";
|
|
11
11
|
import ce from "@mui/material/ListItemButton";
|
|
12
12
|
import le from "@mui/material/ListItemText";
|
|
13
|
-
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-
|
|
13
|
+
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-BqijW_8S.mjs";
|
|
14
14
|
import { subDays as ue } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
|
+
import { parseISO as me } from "date-fns/parseISO";
|
|
17
18
|
import $ from "@mui/material/Button";
|
|
18
|
-
import { Delete as
|
|
19
|
-
import { T as X, a as
|
|
20
|
-
import { getDayOfYear as
|
|
21
|
-
import { setDayOfYear as
|
|
22
|
-
import { AdapterDateFns as
|
|
23
|
-
import { DatePicker as
|
|
24
|
-
import { LocalizationProvider as
|
|
25
|
-
import { u as w, j as
|
|
26
|
-
import { b as
|
|
27
|
-
import { D as O } from "./Drawer-
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
29
|
-
import { f as
|
|
30
|
-
import { formatISO as
|
|
31
|
-
import { fromUnixTime as
|
|
32
|
-
import { S as
|
|
33
|
-
import { h as
|
|
19
|
+
import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
|
|
20
|
+
import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-m5PddMQn.mjs";
|
|
21
|
+
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
22
|
+
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
23
|
+
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
|
+
import { DatePicker as we } from "@mui/x-date-pickers";
|
|
25
|
+
import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
26
|
+
import { u as w, j as F, g as G, b as Ie, h as Z, o as De } from "./hooks-ZMp65DFz.mjs";
|
|
27
|
+
import { b as Ee, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
28
|
+
import { D as O } from "./Drawer-By9V-B5L.mjs";
|
|
29
|
+
import { A as R } from "./WidgetContainer-CoFDmQRE.mjs";
|
|
30
|
+
import { f as Re, a as Te, D as Le } from "./Dialog-BPTr3qHE.mjs";
|
|
31
|
+
import { formatISO as Oe } from "date-fns/formatISO";
|
|
32
|
+
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
33
|
+
import { S as Ne } from "./SearchBox-B2_zLv8-.mjs";
|
|
34
|
+
import { h as Me } from "./DateUtil-CBdcsyuk.mjs";
|
|
34
35
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
35
|
-
import { T as V } from "./User-
|
|
36
|
+
import { T as V } from "./User-Cnlegl1N.mjs";
|
|
36
37
|
const ee = ({
|
|
37
38
|
frequency: n,
|
|
38
39
|
firstDay: t,
|
|
@@ -63,11 +64,11 @@ const ee = ({
|
|
|
63
64
|
{ id: 6, label: o.weekday_saturday }
|
|
64
65
|
], y = [...Array(31).keys()].map((p) => ({
|
|
65
66
|
id: p + 1,
|
|
66
|
-
label:
|
|
67
|
+
label: Ee(p + 1)
|
|
67
68
|
}));
|
|
68
69
|
y[30].label += ` (${o.last_day_of_month})`;
|
|
69
|
-
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter,
|
|
70
|
-
p && s(
|
|
70
|
+
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = Se(z(), t), f = (p) => {
|
|
71
|
+
p && s(xe(p));
|
|
71
72
|
};
|
|
72
73
|
return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
|
|
73
74
|
/* @__PURE__ */ e(
|
|
@@ -106,18 +107,18 @@ const ee = ({
|
|
|
106
107
|
value: r || 0
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
n === d.EveryYear && /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
n === d.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: ve, children: /* @__PURE__ */ e(
|
|
111
|
+
we,
|
|
111
112
|
{
|
|
112
113
|
disablePast: !0,
|
|
113
114
|
label: o.next_payment_date,
|
|
114
115
|
onChange: f,
|
|
115
|
-
value:
|
|
116
|
+
value: I
|
|
116
117
|
}
|
|
117
118
|
) })
|
|
118
119
|
] });
|
|
119
|
-
},
|
|
120
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: r } =
|
|
120
|
+
}, Fe = A(({ repeatingTransaction: n }) => {
|
|
121
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: r } = F(), { onEvent: i } = G(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
|
|
121
122
|
await r({
|
|
122
123
|
...n,
|
|
123
124
|
recurrence_type: o,
|
|
@@ -159,9 +160,9 @@ const ee = ({
|
|
|
159
160
|
}
|
|
160
161
|
)
|
|
161
162
|
] });
|
|
162
|
-
}),
|
|
163
|
+
}), Ge = A(
|
|
163
164
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring: r } = w(), { selectedAccountGuids: i } =
|
|
165
|
+
const { recurring: r } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, I] = u.useState("");
|
|
165
166
|
u.useEffect(() => {
|
|
166
167
|
o({
|
|
167
168
|
accounts: i,
|
|
@@ -174,7 +175,7 @@ const ee = ({
|
|
|
174
175
|
[g, a]
|
|
175
176
|
), p = t.repeating_transaction_type === E.Income, k = async () => {
|
|
176
177
|
await l(t.guid), n();
|
|
177
|
-
},
|
|
178
|
+
}, P = () => {
|
|
178
179
|
b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
179
180
|
};
|
|
180
181
|
return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
@@ -193,9 +194,9 @@ const ee = ({
|
|
|
193
194
|
p ? "+" : "",
|
|
194
195
|
J(m, "0,0.00")
|
|
195
196
|
] }),
|
|
196
|
-
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${
|
|
197
|
-
t.predicted_occurs_on,
|
|
198
|
-
|
|
197
|
+
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Re(
|
|
198
|
+
me(t.predicted_occurs_on),
|
|
199
|
+
Te.MONTH_DAY_YEAR
|
|
199
200
|
)}` })
|
|
200
201
|
] }),
|
|
201
202
|
/* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
|
|
@@ -221,34 +222,34 @@ const ee = ({
|
|
|
221
222
|
),
|
|
222
223
|
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
223
224
|
] }),
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
+
/* @__PURE__ */ e(Fe, { repeatingTransaction: t }),
|
|
225
226
|
/* @__PURE__ */ e(T, {})
|
|
226
227
|
] }),
|
|
227
228
|
/* @__PURE__ */ e(
|
|
228
229
|
$,
|
|
229
230
|
{
|
|
230
231
|
color: "error",
|
|
231
|
-
onClick:
|
|
232
|
-
startIcon: /* @__PURE__ */ e(
|
|
232
|
+
onClick: P,
|
|
233
|
+
startIcon: /* @__PURE__ */ e(pe, {}),
|
|
233
234
|
sx: { mx: 24, my: 16 },
|
|
234
235
|
variant: "text",
|
|
235
236
|
children: p ? r.delete_income_title : r.delete_expense_title
|
|
236
237
|
}
|
|
237
238
|
),
|
|
238
239
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
|
|
239
|
-
/* @__PURE__ */ e(X, { height: "30dvh", onClick:
|
|
240
|
+
/* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
|
|
240
241
|
/* @__PURE__ */ e(
|
|
241
242
|
O,
|
|
242
243
|
{
|
|
243
244
|
ariaLabelClose: r.close_drawer_aria,
|
|
244
245
|
isOpen: !!g && !!f,
|
|
245
|
-
onClose: () =>
|
|
246
|
+
onClose: () => I(""),
|
|
246
247
|
title: r.transaction_details_drawer_title,
|
|
247
|
-
children: f && /* @__PURE__ */ e(
|
|
248
|
+
children: f && /* @__PURE__ */ e(ge, { transaction: f })
|
|
248
249
|
}
|
|
249
250
|
),
|
|
250
251
|
/* @__PURE__ */ e(
|
|
251
|
-
|
|
252
|
+
Le,
|
|
252
253
|
{
|
|
253
254
|
copy: {
|
|
254
255
|
title: p ? r.delete_income_title : r.delete_expense_title,
|
|
@@ -262,7 +263,7 @@ const ee = ({
|
|
|
262
263
|
)
|
|
263
264
|
] });
|
|
264
265
|
}
|
|
265
|
-
),
|
|
266
|
+
), Pe = A(
|
|
266
267
|
({ onClick: n = () => {
|
|
267
268
|
}, repeatingTransaction: t }) => {
|
|
268
269
|
const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
|
|
@@ -333,7 +334,7 @@ const ee = ({
|
|
|
333
334
|
onClose: () => s(!1),
|
|
334
335
|
title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
|
|
335
336
|
children: /* @__PURE__ */ e(
|
|
336
|
-
|
|
337
|
+
Ge,
|
|
337
338
|
{
|
|
338
339
|
onDeleted: () => s(!1),
|
|
339
340
|
recurringTransaction: t
|
|
@@ -343,18 +344,18 @@ const ee = ({
|
|
|
343
344
|
)
|
|
344
345
|
] });
|
|
345
346
|
}
|
|
346
|
-
),
|
|
347
|
+
), Ue = A(
|
|
347
348
|
({
|
|
348
349
|
bgcolor: n = "background.default",
|
|
349
350
|
description: t,
|
|
350
351
|
onSearch: r,
|
|
351
352
|
onSelected: i
|
|
352
353
|
}) => {
|
|
353
|
-
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } =
|
|
354
|
+
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = fe();
|
|
354
355
|
return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
355
356
|
t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
|
|
356
357
|
/* @__PURE__ */ e(
|
|
357
|
-
|
|
358
|
+
Ne,
|
|
358
359
|
{
|
|
359
360
|
ariaLabel: s.select_transaction_search_aria,
|
|
360
361
|
cancelAriaLabel: s.select_transaction_search_cancel_aria,
|
|
@@ -377,7 +378,7 @@ const ee = ({
|
|
|
377
378
|
)
|
|
378
379
|
] });
|
|
379
380
|
}
|
|
380
|
-
),
|
|
381
|
+
), Ye = A(
|
|
381
382
|
({
|
|
382
383
|
bgcolor: n = "background.default",
|
|
383
384
|
firstDay: t,
|
|
@@ -391,30 +392,32 @@ const ee = ({
|
|
|
391
392
|
const { recurring: m } = w();
|
|
392
393
|
return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
393
394
|
/* @__PURE__ */ c(h, { children: [
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
/* @__PURE__ */ e(
|
|
395
|
+
/* @__PURE__ */ e(Ce, { bgcolor: n, children: Me(a.date) }),
|
|
396
|
+
/* @__PURE__ */ e(be, { transaction: a })
|
|
396
397
|
] }),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
398
|
+
/* @__PURE__ */ c(M, { children: [
|
|
399
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
400
|
+
/* @__PURE__ */ e(
|
|
401
|
+
ee,
|
|
402
|
+
{
|
|
403
|
+
firstDay: t,
|
|
404
|
+
frequency: i,
|
|
405
|
+
onFirstDayChange: l,
|
|
406
|
+
onFrequencyChange: s,
|
|
407
|
+
onSecondDayChange: o,
|
|
408
|
+
secondDay: r
|
|
409
|
+
}
|
|
410
|
+
)
|
|
411
|
+
] })
|
|
409
412
|
] });
|
|
410
413
|
}
|
|
411
|
-
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT,
|
|
414
|
+
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, ze = (n, t) => q(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === B.INCOME || n.top_level_category_guid === B.TRANSFER && n.transaction_type === V.CREDIT, Be = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
|
|
412
415
|
({
|
|
413
416
|
isIncome: n = !1,
|
|
414
417
|
label: t,
|
|
415
418
|
onAddRecurringTransaction: r = () => null
|
|
416
419
|
}) => {
|
|
417
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } =
|
|
420
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, I] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, P] = u.useState(15), _ = u.useMemo(
|
|
418
421
|
() => o.find((x) => x.guid === v),
|
|
419
422
|
[v, o]
|
|
420
423
|
), ne = () => {
|
|
@@ -425,14 +428,14 @@ const ee = ({
|
|
|
425
428
|
return;
|
|
426
429
|
}
|
|
427
430
|
r();
|
|
428
|
-
const x = de(g,
|
|
431
|
+
const x = de(g, ke(_.date)), D = {
|
|
429
432
|
account_guid: _.account_guid,
|
|
430
433
|
amount: _.amount,
|
|
431
434
|
created_by: 0,
|
|
432
435
|
// User
|
|
433
436
|
merchant_guid: _.merchant_guid,
|
|
434
437
|
description: _.payee || _.description || _.feed_description,
|
|
435
|
-
predicted_occurs_on:
|
|
438
|
+
predicted_occurs_on: Oe(x, { representation: "date" }),
|
|
436
439
|
recurrence_day: f,
|
|
437
440
|
recurrence_type: g,
|
|
438
441
|
repeating_transaction_type: n ? E.Income : E.Bill,
|
|
@@ -440,12 +443,12 @@ const ee = ({
|
|
|
440
443
|
transaction_type: _.transaction_type,
|
|
441
444
|
user_guid: m.guid
|
|
442
445
|
};
|
|
443
|
-
await a(
|
|
446
|
+
await a(D, _), j();
|
|
444
447
|
}, j = () => {
|
|
445
448
|
b(""), C(!1);
|
|
446
449
|
};
|
|
447
450
|
return /* @__PURE__ */ c(L, { children: [
|
|
448
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
451
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
449
452
|
/* @__PURE__ */ e(
|
|
450
453
|
O,
|
|
451
454
|
{
|
|
@@ -454,13 +457,13 @@ const ee = ({
|
|
|
454
457
|
onClose: () => C(!1),
|
|
455
458
|
title: t,
|
|
456
459
|
children: /* @__PURE__ */ e(
|
|
457
|
-
|
|
460
|
+
Ue,
|
|
458
461
|
{
|
|
459
462
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
460
463
|
onSearch: (x) => {
|
|
461
464
|
l({
|
|
462
465
|
...s,
|
|
463
|
-
custom: (
|
|
466
|
+
custom: (D) => n ? x ? Be(D, x) : W(D) : x ? ze(D, x) : q(D)
|
|
464
467
|
});
|
|
465
468
|
},
|
|
466
469
|
onSelected: (x) => b(x)
|
|
@@ -477,13 +480,13 @@ const ee = ({
|
|
|
477
480
|
onPrimaryAction: oe,
|
|
478
481
|
title: n ? i.income_details : i.expense_details,
|
|
479
482
|
children: _ && /* @__PURE__ */ e(
|
|
480
|
-
|
|
483
|
+
Ye,
|
|
481
484
|
{
|
|
482
485
|
firstDay: f,
|
|
483
486
|
frequency: g,
|
|
484
487
|
onFirstDayChange: p,
|
|
485
|
-
onFrequencyChange:
|
|
486
|
-
onSecondDayChange:
|
|
488
|
+
onFrequencyChange: I,
|
|
489
|
+
onSecondDayChange: P,
|
|
487
490
|
secondDay: k,
|
|
488
491
|
transaction: _
|
|
489
492
|
}
|
|
@@ -492,11 +495,11 @@ const ee = ({
|
|
|
492
495
|
)
|
|
493
496
|
] });
|
|
494
497
|
}
|
|
495
|
-
),
|
|
498
|
+
), qe = A(
|
|
496
499
|
({ zeroStateFor: n }) => {
|
|
497
|
-
const { recurring: t } = w(), { onEvent: r } =
|
|
500
|
+
const { recurring: t } = w(), { onEvent: r } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = i ? t.add_income : t.add_expense;
|
|
498
501
|
return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
499
|
-
/* @__PURE__ */ e(
|
|
502
|
+
/* @__PURE__ */ e(ye, { size: 48 }),
|
|
500
503
|
/* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
501
504
|
/* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
502
505
|
/* @__PURE__ */ e(
|
|
@@ -513,8 +516,8 @@ const ee = ({
|
|
|
513
516
|
)
|
|
514
517
|
] });
|
|
515
518
|
}
|
|
516
|
-
),
|
|
517
|
-
const { recurring: t } = w(), { repeatingTransactions: r } =
|
|
519
|
+
), It = A(({ forOverview: n = !1 }) => {
|
|
520
|
+
const { recurring: t } = w(), { repeatingTransactions: r } = F(), { onEvent: i } = G(), s = (a) => {
|
|
518
521
|
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
519
522
|
repeating_transaction_guid: a.guid
|
|
520
523
|
});
|
|
@@ -532,8 +535,8 @@ const ee = ({
|
|
|
532
535
|
},
|
|
533
536
|
children: [
|
|
534
537
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
535
|
-
/* @__PURE__ */ e(
|
|
536
|
-
/* @__PURE__ */ e(
|
|
538
|
+
/* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
|
|
539
|
+
/* @__PURE__ */ e(Pe, { onClick: s, repeatingTransaction: a }),
|
|
537
540
|
/* @__PURE__ */ e(
|
|
538
541
|
T,
|
|
539
542
|
{
|
|
@@ -541,10 +544,10 @@ const ee = ({
|
|
|
541
544
|
}
|
|
542
545
|
)
|
|
543
546
|
] }, a.guid)) }) }),
|
|
544
|
-
/* @__PURE__ */ c(
|
|
547
|
+
/* @__PURE__ */ c(M, { children: [
|
|
545
548
|
/* @__PURE__ */ e(T, {}),
|
|
546
549
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
550
|
+
M,
|
|
548
551
|
{
|
|
549
552
|
sx: {
|
|
550
553
|
alignContent: "center",
|
|
@@ -567,16 +570,16 @@ const ee = ({
|
|
|
567
570
|
] })
|
|
568
571
|
]
|
|
569
572
|
}
|
|
570
|
-
) : /* @__PURE__ */ e(
|
|
573
|
+
) : /* @__PURE__ */ e(qe, { zeroStateFor: "income" }) });
|
|
571
574
|
});
|
|
572
575
|
export {
|
|
573
576
|
te as A,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
577
|
+
It as M,
|
|
578
|
+
Pe as R,
|
|
579
|
+
Ue as S,
|
|
580
|
+
qe as a,
|
|
581
|
+
Ge as b,
|
|
582
|
+
Ye as c,
|
|
580
583
|
W as d,
|
|
581
|
-
|
|
584
|
+
Be as i
|
|
582
585
|
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import x from "@mui/material/Button";
|
|
3
|
+
import u from "@mui/material/Card";
|
|
4
|
+
import C from "@mui/material/CardContent";
|
|
5
|
+
import b from "@mui/material/CardHeader";
|
|
6
|
+
import { P as g, H3 as v } from "@mxenabled/mxui";
|
|
7
|
+
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
+
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
+
import { W as w } from "./hooks-ZMp65DFz.mjs";
|
|
10
|
+
const y = ({
|
|
11
|
+
children: o,
|
|
12
|
+
className: e,
|
|
13
|
+
ctaLabel: n,
|
|
14
|
+
onCTAClick: a,
|
|
15
|
+
subHeader: i,
|
|
16
|
+
sx: s,
|
|
17
|
+
title: c,
|
|
18
|
+
variant: l = "borderless"
|
|
19
|
+
}) => {
|
|
20
|
+
const [d, { height: m, width: p }] = M(), t = /* @__PURE__ */ h(f, { children: [
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
b,
|
|
23
|
+
{
|
|
24
|
+
action: /* @__PURE__ */ r(
|
|
25
|
+
x,
|
|
26
|
+
{
|
|
27
|
+
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
+
onClick: a,
|
|
29
|
+
size: "small",
|
|
30
|
+
sx: {
|
|
31
|
+
"&:focus-visible, &:focus": {
|
|
32
|
+
outline: "2px solid",
|
|
33
|
+
outlineColor: "primary.main",
|
|
34
|
+
outlineOffset: "2px"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
variant: "text",
|
|
38
|
+
children: n
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
subheader: i && /* @__PURE__ */ r(g, { sx: { color: "text.secondary" }, variant: "body2", children: i }),
|
|
42
|
+
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
43
|
+
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ r(C, { ref: d, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: m, availableWidth: p, children: o }) })
|
|
47
|
+
] });
|
|
48
|
+
return l === "borderless" ? t : /* @__PURE__ */ r(u, { className: e, sx: { alignItems: "center", p: 16, ...s }, children: t });
|
|
49
|
+
}, F = y;
|
|
50
|
+
export {
|
|
51
|
+
F as M
|
|
52
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsxs as r, jsx as i, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import g from "@mui/material/Box";
|
|
3
|
+
import u from "@mui/material/Button";
|
|
4
|
+
import C from "@mui/material/Card";
|
|
5
|
+
import v from "@mui/material/CardHeader";
|
|
6
|
+
import b from "@mui/material/CardContent";
|
|
7
|
+
import W from "@mui/material/IconButton";
|
|
8
|
+
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
+
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
+
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
+
import { W as j } from "./hooks-ZMp65DFz.mjs";
|
|
12
|
+
const w = ({
|
|
13
|
+
children: a,
|
|
14
|
+
className: l = "mx-cmn-mini-widget",
|
|
15
|
+
closeLabel: m,
|
|
16
|
+
contentStyles: s,
|
|
17
|
+
onClose: e,
|
|
18
|
+
onPrimaryCtaClick: o,
|
|
19
|
+
primaryCtaLabel: d = "",
|
|
20
|
+
subTitle: n = "",
|
|
21
|
+
sx: c = {},
|
|
22
|
+
title: t = ""
|
|
23
|
+
}) => {
|
|
24
|
+
const [p, { height: f, width: h }] = S();
|
|
25
|
+
return /* @__PURE__ */ r(C, { className: l, sx: { ...c }, children: [
|
|
26
|
+
/* @__PURE__ */ i(
|
|
27
|
+
v,
|
|
28
|
+
{
|
|
29
|
+
sx: { pb: 8 },
|
|
30
|
+
title: /* @__PURE__ */ r(x, { children: [
|
|
31
|
+
/* @__PURE__ */ r(
|
|
32
|
+
g,
|
|
33
|
+
{
|
|
34
|
+
sx: {
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
display: "grid",
|
|
37
|
+
gap: 2,
|
|
38
|
+
gridTemplateColumns: "1fr auto",
|
|
39
|
+
pb: 4
|
|
40
|
+
},
|
|
41
|
+
children: [
|
|
42
|
+
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
+
e ? /* @__PURE__ */ i(W, { "aria-label": m, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(
|
|
44
|
+
u,
|
|
45
|
+
{
|
|
46
|
+
endIcon: /* @__PURE__ */ i(H, {}),
|
|
47
|
+
onClick: o,
|
|
48
|
+
size: "small",
|
|
49
|
+
sx: {
|
|
50
|
+
"&:focus-visible, &:focus": {
|
|
51
|
+
outline: "2px solid",
|
|
52
|
+
outlineColor: "primary.main",
|
|
53
|
+
outlineOffset: "2px"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: d })
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
|
|
63
|
+
] })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...s }, children: /* @__PURE__ */ i(j, { availableHeight: f, availableWidth: h, children: a }) })
|
|
67
|
+
] });
|
|
68
|
+
}, E = w;
|
|
69
|
+
export {
|
|
70
|
+
E as M
|
|
71
|
+
};
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import {
|
|
6
|
+
import { a as b } from "./Accounts-Bzy1_REQ.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-BkvlItWx.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|