@mx-cartographer/experiences 7.1.3-alpha.mm1 → 7.1.4-ram1-alpha-finstrong-credit-score-graph-check
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 +13 -0
- package/dist/{Account-DKy2na__.mjs → Account-CpRTVIHg.mjs} +1 -1
- package/dist/{AccountDetailsContent-CCOCsdoL.mjs → AccountDetailsContent-6aPMU6Hp.mjs} +10 -10
- package/dist/{AccountDetailsHeader-Ca9SPAjA.mjs → AccountDetailsHeader-BkUZYoV8.mjs} +8 -8
- package/dist/{AccountFields-DDAr5SEq.mjs → AccountFields-DOLjKu5l.mjs} +5 -5
- package/dist/{AccountListItem-CMes1Q7Z.mjs → AccountListItem-CTT5m4qx.mjs} +4 -4
- package/dist/{AccountStore-DYOG9MYj.mjs → AccountStore-DTfpr3h0.mjs} +60 -41
- package/dist/{Accounts-BNvFndCa.mjs → Accounts-D0BmvNxn.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-D2Jcp-E-.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DomNyubP.mjs} +3 -3
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-CHG5Lv_B.mjs → ConnectDrawer--gJHyp-S.mjs} +9 -9
- package/dist/{ConnectionsDrawer-BeB6ab8V.mjs → ConnectionsDrawer-DabiwV9L.mjs} +3 -3
- package/dist/{CurrencyInput-CsCy7uaS.mjs → CurrencyInput-CC5cwVit.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-BblTVTMD.mjs → DebtsStore-9aR2sTJQ.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Um-CDa4C.mjs} +3 -3
- package/dist/FinstrongStore-CC4SrBjA.mjs +436 -0
- package/dist/{GoalStore-CSsU4LR2.mjs → GoalStore-CiBKZvTg.mjs} +3 -3
- package/dist/{Help-B6dIcujh.mjs → Help-BZ8pIkkR.mjs} +2 -2
- package/dist/LineChart-CE3oLBQ0.mjs +566 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-DGaxy7oz.mjs} +10 -10
- package/dist/{ManageIncome-DqG75uQd.mjs → ManageIncome-BaNgfwr5.mjs} +63 -61
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-C3iV1FBR.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-LtXXgZ6H.mjs} +1 -1
- package/dist/{NetWorthStore-BbA7H83o.mjs → NetWorthStore-MnpP5KEc.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-Ckx8tgQj.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CGZDUsCc.mjs} +3 -3
- package/dist/{RecurringSettings-B9l_Axnd.mjs → RecurringSettings-DE4T4yQy.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-D24CEkL3.mjs +170 -0
- package/dist/{TransactionDetails-DPvvi4Iu.mjs → TransactionDetails-DRlrltGq.mjs} +11 -8
- package/dist/{TransactionStore-CBrJOY0H.mjs → TransactionStore-D8MKYDMb.mjs} +3 -3
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-DL3Vuh71.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-BthIKO4w.mjs} +2 -2
- package/dist/{WidgetContainer-BMWagbIl.mjs → WidgetContainer-DJA1bxLn.mjs} +12 -12
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +4 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +383 -389
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +2 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +2 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/context/GlobalDataProvider.d.ts +0 -1
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +57 -58
- package/dist/common/types/Finstrong.d.ts +50 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +57 -1
- package/dist/dashboard/index.es.js +77 -79
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-XqdHNe2V.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +2 -1
- package/dist/finstrong/components/CreditOverTimeGraph.d.ts +1 -0
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- 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 +1 -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 +11 -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/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/TransactionList.d.ts +15 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +2899 -1017
- package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +65 -1
- package/dist/goals/index.es.js +54 -54
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CBST3rkm.mjs +74 -0
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +24 -24
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +222 -373
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +451 -451
- package/dist/{useAccountDisplayName-BEorBm5u.mjs → useAccountDisplayName-DH1CuQ9R.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-jdvS1ppf.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/hooks-D6XlXHf4.mjs +0 -77
|
@@ -1,38 +1,38 @@
|
|
|
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
|
-
import
|
|
7
|
+
import p from "@mui/material/Stack";
|
|
8
8
|
import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
|
|
9
9
|
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-CngsRZ3K.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
17
|
import $ from "@mui/material/Button";
|
|
18
|
-
import { Delete as me, Add as
|
|
19
|
-
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-
|
|
18
|
+
import { Delete as me, Add as he, ReceiptLong as pe } from "@mxenabled/mx-icons";
|
|
19
|
+
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-DRlrltGq.mjs";
|
|
20
20
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
21
21
|
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
22
22
|
import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
23
23
|
import { DatePicker as ve } from "@mui/x-date-pickers";
|
|
24
24
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
25
|
-
import { u as w, j as
|
|
25
|
+
import { u as w, j as F, g as G, b as Ae, h as Z, o as De } from "./hooks-CBST3rkm.mjs";
|
|
26
26
|
import { b as Ie, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
27
|
-
import { D as O } from "./Drawer-
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
29
|
-
import { f as Ee,
|
|
27
|
+
import { D as O } from "./Drawer-BEtCk82g.mjs";
|
|
28
|
+
import { A as R } from "./WidgetContainer-DJA1bxLn.mjs";
|
|
29
|
+
import { f as Ee, a as Re, D as Te } from "./Dialog-BPTr3qHE.mjs";
|
|
30
30
|
import { formatISO as Le } from "date-fns/formatISO";
|
|
31
31
|
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
32
32
|
import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
|
|
33
|
-
import { h as Ne } from "./DateUtil-
|
|
33
|
+
import { h as Ne } from "./DateUtil-CBdcsyuk.mjs";
|
|
34
34
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
35
|
-
import { T as V } from "./User-
|
|
35
|
+
import { T as V } from "./User-BthIKO4w.mjs";
|
|
36
36
|
const ee = ({
|
|
37
37
|
frequency: n,
|
|
38
38
|
firstDay: t,
|
|
@@ -61,15 +61,15 @@ const ee = ({
|
|
|
61
61
|
{ id: 4, label: o.weekday_thursday },
|
|
62
62
|
{ id: 5, label: o.weekday_friday },
|
|
63
63
|
{ id: 6, label: o.weekday_saturday }
|
|
64
|
-
], y = [...Array(31).keys()].map((
|
|
65
|
-
id:
|
|
66
|
-
label: Ie(
|
|
64
|
+
], y = [...Array(31).keys()].map((h) => ({
|
|
65
|
+
id: h + 1,
|
|
66
|
+
label: Ie(h + 1)
|
|
67
67
|
}));
|
|
68
68
|
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, D = xe(z(), t), f = (
|
|
70
|
-
|
|
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, D = xe(z(), t), f = (h) => {
|
|
70
|
+
h && s(be(h));
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */ c(
|
|
72
|
+
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
N,
|
|
75
75
|
{
|
|
@@ -117,7 +117,7 @@ const ee = ({
|
|
|
117
117
|
) })
|
|
118
118
|
] });
|
|
119
119
|
}, Me = A(({ repeatingTransaction: n }) => {
|
|
120
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: r } =
|
|
120
|
+
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
121
|
await r({
|
|
122
122
|
...n,
|
|
123
123
|
recurrence_type: o,
|
|
@@ -161,7 +161,7 @@ const ee = ({
|
|
|
161
161
|
] });
|
|
162
162
|
}), Fe = A(
|
|
163
163
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } =
|
|
164
|
+
const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { 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, D] = u.useState("");
|
|
165
165
|
u.useEffect(() => {
|
|
166
166
|
o({
|
|
167
167
|
accounts: i,
|
|
@@ -172,13 +172,13 @@ const ee = ({
|
|
|
172
172
|
const f = u.useMemo(
|
|
173
173
|
() => a.find((_) => _.guid === g),
|
|
174
174
|
[g, a]
|
|
175
|
-
),
|
|
175
|
+
), h = t.repeating_transaction_type === E.Income, k = async () => {
|
|
176
176
|
await l(t.guid), n();
|
|
177
|
-
},
|
|
177
|
+
}, P = () => {
|
|
178
178
|
b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
179
179
|
};
|
|
180
|
-
return /* @__PURE__ */ c(
|
|
181
|
-
/* @__PURE__ */ c(
|
|
180
|
+
return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
181
|
+
/* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
183
|
H,
|
|
184
184
|
{
|
|
@@ -189,8 +189,8 @@ const ee = ({
|
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
|
|
192
|
-
/* @__PURE__ */ c(re, { color:
|
|
193
|
-
|
|
192
|
+
/* @__PURE__ */ c(re, { color: h ? "success.main" : "text.primary", sx: { my: 4 }, children: [
|
|
193
|
+
h ? "+" : "",
|
|
194
194
|
J(m, "0,0.00")
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
|
|
@@ -228,11 +228,11 @@ const ee = ({
|
|
|
228
228
|
$,
|
|
229
229
|
{
|
|
230
230
|
color: "error",
|
|
231
|
-
onClick:
|
|
231
|
+
onClick: P,
|
|
232
232
|
startIcon: /* @__PURE__ */ e(me, {}),
|
|
233
233
|
sx: { mx: 24, my: 16 },
|
|
234
234
|
variant: "text",
|
|
235
|
-
children:
|
|
235
|
+
children: h ? r.delete_income_title : r.delete_expense_title
|
|
236
236
|
}
|
|
237
237
|
),
|
|
238
238
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
|
|
@@ -251,13 +251,13 @@ const ee = ({
|
|
|
251
251
|
Te,
|
|
252
252
|
{
|
|
253
253
|
copy: {
|
|
254
|
-
title:
|
|
254
|
+
title: h ? r.delete_income_title : r.delete_expense_title,
|
|
255
255
|
close_aria: r.close_drawer_aria
|
|
256
256
|
},
|
|
257
257
|
isOpen: v,
|
|
258
258
|
onClose: () => b(!1),
|
|
259
259
|
onPrimaryAction: k,
|
|
260
|
-
children: /* @__PURE__ */ e(S, { children:
|
|
260
|
+
children: /* @__PURE__ */ e(S, { children: h ? r.delete_income_description : r.delete_expense_description })
|
|
261
261
|
}
|
|
262
262
|
)
|
|
263
263
|
] });
|
|
@@ -280,10 +280,10 @@ const ee = ({
|
|
|
280
280
|
merchantGuid: t.merchant_guid
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
|
-
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(
|
|
284
|
-
/* @__PURE__ */ c(
|
|
283
|
+
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(p, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
284
|
+
/* @__PURE__ */ c(p, { direction: "column", sx: { width: "50%" }, children: [
|
|
285
285
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
286
|
-
/* @__PURE__ */ c(
|
|
286
|
+
/* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
287
287
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
288
288
|
ae,
|
|
289
289
|
{
|
|
@@ -295,7 +295,7 @@ const ee = ({
|
|
|
295
295
|
/* @__PURE__ */ e(S, { variant: "caption", children: o })
|
|
296
296
|
] })
|
|
297
297
|
] }),
|
|
298
|
-
/* @__PURE__ */ c(
|
|
298
|
+
/* @__PURE__ */ c(p, { alignItems: "flex-end", sx: { width: "50%" }, children: [
|
|
299
299
|
/* @__PURE__ */ c(
|
|
300
300
|
S,
|
|
301
301
|
{
|
|
@@ -309,7 +309,7 @@ const ee = ({
|
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
/* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
p,
|
|
313
313
|
{
|
|
314
314
|
direction: "row",
|
|
315
315
|
sx: {
|
|
@@ -351,7 +351,7 @@ const ee = ({
|
|
|
351
351
|
onSelected: i
|
|
352
352
|
}) => {
|
|
353
353
|
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
|
|
354
|
-
return /* @__PURE__ */ c(
|
|
354
|
+
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
355
355
|
t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
|
|
356
356
|
/* @__PURE__ */ e(
|
|
357
357
|
ke,
|
|
@@ -389,23 +389,25 @@ const ee = ({
|
|
|
389
389
|
transaction: a
|
|
390
390
|
}) => {
|
|
391
391
|
const { recurring: m } = w();
|
|
392
|
-
return /* @__PURE__ */ c(
|
|
393
|
-
/* @__PURE__ */ c(
|
|
392
|
+
return /* @__PURE__ */ c(p, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
393
|
+
/* @__PURE__ */ c(p, { children: [
|
|
394
394
|
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
|
|
395
395
|
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
396
396
|
] }),
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
397
|
+
/* @__PURE__ */ c(M, { children: [
|
|
398
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
399
|
+
/* @__PURE__ */ e(
|
|
400
|
+
ee,
|
|
401
|
+
{
|
|
402
|
+
firstDay: t,
|
|
403
|
+
frequency: i,
|
|
404
|
+
onFirstDayChange: l,
|
|
405
|
+
onFrequencyChange: s,
|
|
406
|
+
onSecondDayChange: o,
|
|
407
|
+
secondDay: r
|
|
408
|
+
}
|
|
409
|
+
)
|
|
410
|
+
] })
|
|
409
411
|
] });
|
|
410
412
|
}
|
|
411
413
|
), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, Ye = (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, ze = (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(
|
|
@@ -414,7 +416,7 @@ const ee = ({
|
|
|
414
416
|
label: t,
|
|
415
417
|
onAddRecurringTransaction: r = () => null
|
|
416
418
|
}) => {
|
|
417
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } =
|
|
419
|
+
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, D] = u.useState(d.EveryMonth), [f, h] = u.useState(1), [k, P] = u.useState(15), _ = u.useMemo(
|
|
418
420
|
() => o.find((x) => x.guid === v),
|
|
419
421
|
[v, o]
|
|
420
422
|
), ne = () => {
|
|
@@ -445,7 +447,7 @@ const ee = ({
|
|
|
445
447
|
b(""), C(!1);
|
|
446
448
|
};
|
|
447
449
|
return /* @__PURE__ */ c(L, { children: [
|
|
448
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
450
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
449
451
|
/* @__PURE__ */ e(
|
|
450
452
|
O,
|
|
451
453
|
{
|
|
@@ -481,9 +483,9 @@ const ee = ({
|
|
|
481
483
|
{
|
|
482
484
|
firstDay: f,
|
|
483
485
|
frequency: g,
|
|
484
|
-
onFirstDayChange:
|
|
486
|
+
onFirstDayChange: h,
|
|
485
487
|
onFrequencyChange: D,
|
|
486
|
-
onSecondDayChange:
|
|
488
|
+
onSecondDayChange: P,
|
|
487
489
|
secondDay: k,
|
|
488
490
|
transaction: _
|
|
489
491
|
}
|
|
@@ -494,9 +496,9 @@ const ee = ({
|
|
|
494
496
|
}
|
|
495
497
|
), Be = A(
|
|
496
498
|
({ zeroStateFor: n }) => {
|
|
497
|
-
const { recurring: t } = w(), { onEvent: r } =
|
|
498
|
-
return /* @__PURE__ */ c(
|
|
499
|
-
/* @__PURE__ */ e(
|
|
499
|
+
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;
|
|
500
|
+
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
501
|
+
/* @__PURE__ */ e(pe, { size: 48 }),
|
|
500
502
|
/* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
501
503
|
/* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
502
504
|
/* @__PURE__ */ e(
|
|
@@ -514,7 +516,7 @@ const ee = ({
|
|
|
514
516
|
] });
|
|
515
517
|
}
|
|
516
518
|
), wt = A(({ forOverview: n = !1 }) => {
|
|
517
|
-
const { recurring: t } = w(), { repeatingTransactions: r } =
|
|
519
|
+
const { recurring: t } = w(), { repeatingTransactions: r } = F(), { onEvent: i } = G(), s = (a) => {
|
|
518
520
|
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
519
521
|
repeating_transaction_guid: a.guid
|
|
520
522
|
});
|
|
@@ -524,7 +526,7 @@ const ee = ({
|
|
|
524
526
|
(a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
|
|
525
527
|
);
|
|
526
528
|
return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
|
|
527
|
-
|
|
529
|
+
p,
|
|
528
530
|
{
|
|
529
531
|
sx: {
|
|
530
532
|
height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
|
|
@@ -532,7 +534,7 @@ const ee = ({
|
|
|
532
534
|
},
|
|
533
535
|
children: [
|
|
534
536
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
535
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__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: [
|
|
536
538
|
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
|
|
537
539
|
/* @__PURE__ */ e(
|
|
538
540
|
T,
|
|
@@ -541,10 +543,10 @@ const ee = ({
|
|
|
541
543
|
}
|
|
542
544
|
)
|
|
543
545
|
] }, a.guid)) }) }),
|
|
544
|
-
/* @__PURE__ */ c(
|
|
546
|
+
/* @__PURE__ */ c(M, { children: [
|
|
545
547
|
/* @__PURE__ */ e(T, {}),
|
|
546
548
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
549
|
+
M,
|
|
548
550
|
{
|
|
549
551
|
sx: {
|
|
550
552
|
alignContent: "center",
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-CBST3rkm.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import W from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
10
|
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-
|
|
11
|
+
import { W as j } from "./hooks-CBST3rkm.mjs";
|
|
12
12
|
const w = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -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 { e as N, a as M, f as v } from "./ConnectDrawer-
|
|
6
|
+
import { a as b } from "./Accounts-D0BmvNxn.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer--gJHyp-S.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));
|
|
@@ -15,13 +15,13 @@ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as oe, T as F, a as P, N as y } from "./ToggleListItem-r0Kx56wF.mjs";
|
|
18
|
-
import { u as D,
|
|
18
|
+
import { u as D, r as T, o as A, d as se, g as ae, a as W, b as le } from "./hooks-CBST3rkm.mjs";
|
|
19
19
|
import { b as ce } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { b as re, f as de } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { C as me } from "./CurrencyInput-
|
|
21
|
+
import { D as M } from "./Dialog-BPTr3qHE.mjs";
|
|
22
|
+
import { C as me } from "./CurrencyInput-CC5cwVit.mjs";
|
|
23
23
|
import { u as he } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
-
import { D as J } from "./Drawer-
|
|
24
|
+
import { D as J } from "./Drawer-BEtCk82g.mjs";
|
|
25
25
|
import _e from "@mui/material/Collapse";
|
|
26
26
|
import ue from "@mui/material/Card";
|
|
27
27
|
import pe from "@mui/material/CardContent";
|
|
@@ -30,7 +30,7 @@ import R from "@mui/material/Button";
|
|
|
30
30
|
import L from "@mui/material/TextField";
|
|
31
31
|
import { u as fe } from "./useDimensions-27p2evRx.mjs";
|
|
32
32
|
import X from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as ge } from "./useInsightsEnabled-
|
|
33
|
+
import { u as ge } from "./useInsightsEnabled-jdvS1ppf.mjs";
|
|
34
34
|
import { L as ye } from "./Loader-DUaFpDGv.mjs";
|
|
35
35
|
const be = C(() => {
|
|
36
36
|
const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: c } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h, l as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-DGaxy7oz.mjs";
|
|
6
|
+
import { u as h, l as b } from "./hooks-CBST3rkm.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-CC5cwVit.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, j as A, g as f } from "./hooks-
|
|
12
|
-
import { R as y, F as N } from "./RecurringTransactions-
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-BaNgfwr5.mjs";
|
|
11
|
+
import { u as _, j as A, g as f } from "./hooks-CBST3rkm.mjs";
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactions-CngsRZ3K.mjs";
|
|
13
|
+
import { A as m } from "./WidgetContainer-DJA1bxLn.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
16
16
|
o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
@@ -17,7 +17,7 @@ import { formatISO as H } from "date-fns/formatISO";
|
|
|
17
17
|
import { fromUnixTime as V } from "date-fns/fromUnixTime";
|
|
18
18
|
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
19
19
|
import { isAfter as h } from "date-fns/isAfter";
|
|
20
|
-
import { isBefore as
|
|
20
|
+
import { isBefore as u } from "date-fns/isBefore";
|
|
21
21
|
import { isSameDay as X } from "date-fns/isSameDay";
|
|
22
22
|
import { nextDay as E } from "date-fns/nextDay";
|
|
23
23
|
import { parseISO as J } from "date-fns/parseISO";
|
|
@@ -29,9 +29,9 @@ import { subQuarters as N } from "date-fns/subQuarters";
|
|
|
29
29
|
import { subYears as T } from "date-fns/subYears";
|
|
30
30
|
import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
|
|
31
31
|
import { setDayOfYear as F } from "date-fns/setDayOfYear";
|
|
32
|
-
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-
|
|
32
|
+
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-CBdcsyuk.mjs";
|
|
33
33
|
import { b as W } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
34
|
-
import { f as v,
|
|
34
|
+
import { f as v, a as k } from "./Dialog-BPTr3qHE.mjs";
|
|
35
35
|
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
36
|
var s = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(s || {}), p = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(p || {}), O = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(O || {}), Y = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(Y || {});
|
|
37
37
|
const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
@@ -51,22 +51,23 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
51
51
|
o,
|
|
52
52
|
/* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
|
|
53
53
|
] }) }) : /* @__PURE__ */ d(w, { disableGutters: !1, disablePadding: !1, children: o });
|
|
54
|
-
}, Fe = se, Re = ({ label: e, onChange: a, options: t, value: n }) => /* @__PURE__ */ d(
|
|
54
|
+
}, Fe = se, Re = ({ label: e, onChange: a, options: t, value: n, ...o }) => /* @__PURE__ */ d(
|
|
55
55
|
j,
|
|
56
56
|
{
|
|
57
57
|
InputLabelProps: { shrink: !0 },
|
|
58
58
|
SelectProps: {
|
|
59
|
-
IconComponent: (
|
|
59
|
+
IconComponent: (c) => /* @__PURE__ */ d(z, { size: 20, sx: { mr: 4 }, ...c })
|
|
60
60
|
},
|
|
61
61
|
defaultValue: 0,
|
|
62
62
|
label: e,
|
|
63
|
-
onChange: (
|
|
64
|
-
a(Number(
|
|
63
|
+
onChange: (c) => {
|
|
64
|
+
a(Number(c.target.value));
|
|
65
65
|
},
|
|
66
66
|
select: !0,
|
|
67
67
|
value: n,
|
|
68
68
|
variant: "outlined",
|
|
69
|
-
|
|
69
|
+
...o,
|
|
70
|
+
children: t.map((c) => /* @__PURE__ */ d($, { value: c.id, children: c.label }, c.id))
|
|
70
71
|
}
|
|
71
72
|
), ce = (e) => {
|
|
72
73
|
if (!e) return "";
|
|
@@ -93,93 +94,93 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
93
94
|
status: p.Upcoming,
|
|
94
95
|
type: e.repeating_transaction_type === Y.Income ? O.Income : O.Expense,
|
|
95
96
|
transaction: void 0
|
|
96
|
-
},
|
|
97
|
+
}, c = a.start, i = a.end;
|
|
97
98
|
switch (e.recurrence_type) {
|
|
98
99
|
case s.EveryWeek:
|
|
99
|
-
t.push(...ue(r,
|
|
100
|
+
t.push(...ue(r, c, i));
|
|
100
101
|
break;
|
|
101
102
|
case s.EveryOtherWeek:
|
|
102
|
-
t.push(...de(r,
|
|
103
|
+
t.push(...de(r, c, i));
|
|
103
104
|
break;
|
|
104
105
|
case s.TwiceAMonth:
|
|
105
|
-
t.push(...me(r,
|
|
106
|
+
t.push(...me(r, c, i));
|
|
106
107
|
break;
|
|
107
108
|
case s.EveryMonth:
|
|
108
|
-
t.push(...le(r,
|
|
109
|
+
t.push(...le(r, c, i));
|
|
109
110
|
break;
|
|
110
111
|
case s.EveryOtherMonth:
|
|
111
|
-
t.push(...he(r,
|
|
112
|
+
t.push(...he(r, c, i));
|
|
112
113
|
break;
|
|
113
114
|
case s.EveryQuarter:
|
|
114
|
-
t.push(...fe(r,
|
|
115
|
+
t.push(...fe(r, c, i));
|
|
115
116
|
break;
|
|
116
117
|
case s.EveryOtherQuarter:
|
|
117
|
-
t.push(...pe(r,
|
|
118
|
+
t.push(...pe(r, c, i));
|
|
118
119
|
break;
|
|
119
120
|
case s.EveryYear:
|
|
120
|
-
t.push(...ye(r,
|
|
121
|
+
t.push(...ye(r, c, i));
|
|
121
122
|
break;
|
|
122
123
|
}
|
|
123
124
|
for (const m of t) {
|
|
124
125
|
const _ = e.transactions.find(
|
|
125
126
|
(x) => x.repeating_transaction_guid === e.guid && x.date > y(D(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
|
|
126
127
|
);
|
|
127
|
-
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) :
|
|
128
|
+
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) : u(m.expectedDate, D(b(), 3)) && (m.status = p.Missed);
|
|
128
129
|
}
|
|
129
130
|
return t;
|
|
130
131
|
}, ue = (e, a, t) => {
|
|
131
132
|
const n = [];
|
|
132
133
|
let o = E(a, e.recurrenceDay);
|
|
133
|
-
for (;
|
|
134
|
+
for (; u(o, t); )
|
|
134
135
|
n.push({ ...e, expectedDate: o }), o = E(o, e.recurrenceDay);
|
|
135
136
|
return n;
|
|
136
137
|
}, de = (e, a, t) => {
|
|
137
138
|
const n = [], o = e.expectedDate;
|
|
138
|
-
if (
|
|
139
|
+
if (u(o, t)) {
|
|
139
140
|
let r = D(o, 14);
|
|
140
141
|
for (; h(r, a) || X(r, a); )
|
|
141
142
|
n.push({ ...e, expectedDate: r }), r = D(r, 14);
|
|
142
|
-
for (r = o; h(r, a) &&
|
|
143
|
+
for (r = o; h(r, a) && u(r, t); )
|
|
143
144
|
n.push({ ...e, expectedDate: r }), r = Q(r, 14);
|
|
144
145
|
}
|
|
145
146
|
return n;
|
|
146
147
|
}, me = (e, a, t) => {
|
|
147
148
|
const n = [];
|
|
148
149
|
let o = g(a, e.recurrenceDay);
|
|
149
|
-
for (;
|
|
150
|
+
for (; u(o, t); )
|
|
150
151
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
151
152
|
let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : q(a);
|
|
152
|
-
for (;
|
|
153
|
+
for (; u(r, t); )
|
|
153
154
|
n.push({ ...e, expectedDate: r }), r = f(r, 1);
|
|
154
155
|
return n;
|
|
155
156
|
}, le = (e, a, t) => {
|
|
156
157
|
const n = [];
|
|
157
158
|
let o = g(a, e.recurrenceDay);
|
|
158
|
-
for (n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
159
|
+
for (n.push({ ...e, expectedDate: o }), o = f(o, 1); u(o, t); )
|
|
159
160
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
160
161
|
return n;
|
|
161
162
|
}, he = (e, a, t) => {
|
|
162
163
|
const n = [], o = e.expectedDate;
|
|
163
|
-
let r =
|
|
164
|
-
for (;
|
|
164
|
+
let r = u(o, t) ? o : Z(o, 2);
|
|
165
|
+
for (; u(r, t); )
|
|
165
166
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = f(r, 2);
|
|
166
167
|
return n;
|
|
167
168
|
}, fe = (e, a, t) => {
|
|
168
169
|
const n = [], o = e.expectedDate;
|
|
169
|
-
let r =
|
|
170
|
-
for (;
|
|
170
|
+
let r = u(o, t) ? o : N(o, 1);
|
|
171
|
+
for (; u(r, t); )
|
|
171
172
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 1);
|
|
172
173
|
return n;
|
|
173
174
|
}, pe = (e, a, t) => {
|
|
174
175
|
const n = [], o = e.expectedDate;
|
|
175
|
-
let r =
|
|
176
|
-
for (;
|
|
176
|
+
let r = u(o, t) ? o : N(o, 2);
|
|
177
|
+
for (; u(r, t); )
|
|
177
178
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 2);
|
|
178
179
|
return n;
|
|
179
180
|
}, ye = (e, a, t) => {
|
|
180
181
|
const n = [], o = e.expectedDate;
|
|
181
|
-
let r =
|
|
182
|
-
for (;
|
|
182
|
+
let r = u(o, t) ? o : T(o, 1);
|
|
183
|
+
for (; u(r, t); )
|
|
183
184
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = K(r, 1);
|
|
184
185
|
return n;
|
|
185
186
|
}, et = (e, a) => {
|
|
@@ -195,11 +196,11 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
195
196
|
const n = [];
|
|
196
197
|
for (const o of a) {
|
|
197
198
|
const r = t.filter(
|
|
198
|
-
(
|
|
199
|
+
(c) => c.repeating_transaction_guid === o.guid
|
|
199
200
|
);
|
|
200
201
|
t.length > 0 && n.push({
|
|
201
202
|
...o,
|
|
202
|
-
account: e.find((
|
|
203
|
+
account: e.find((c) => c.guid === o.account_guid),
|
|
203
204
|
transactions: r
|
|
204
205
|
});
|
|
205
206
|
}
|
|
@@ -214,41 +215,41 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
214
215
|
recurrences: [t]
|
|
215
216
|
}), a;
|
|
216
217
|
}, []), ot = (e, a, t) => {
|
|
217
|
-
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day),
|
|
218
|
-
let
|
|
218
|
+
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day), c = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
|
|
219
|
+
let i = t ? l(e.monthly_ordinal, r) : e.monthly;
|
|
219
220
|
switch (a.recurrence_type) {
|
|
220
221
|
case s.EveryQuarter:
|
|
221
|
-
|
|
222
|
+
i = t ? l(e.quarterly_ordinal, r) : e.quarterly;
|
|
222
223
|
break;
|
|
223
224
|
case s.EveryWeek:
|
|
224
|
-
|
|
225
|
+
i = t ? l(
|
|
225
226
|
e.weekly_ordinal,
|
|
226
227
|
v(n, k.DAY_OF_WEEK)
|
|
227
228
|
) : e.weekly;
|
|
228
229
|
break;
|
|
229
230
|
case s.EveryYear:
|
|
230
|
-
|
|
231
|
+
i = t ? l(
|
|
231
232
|
e.anually_ordinal,
|
|
232
233
|
v(o, k.MONTH_DAY)
|
|
233
234
|
) : e.anually;
|
|
234
235
|
break;
|
|
235
236
|
case s.EveryOtherWeek:
|
|
236
|
-
|
|
237
|
+
i = t ? l(
|
|
237
238
|
e.every_other_week_ordinal,
|
|
238
239
|
v(n, k.DAY_OF_WEEK)
|
|
239
240
|
) : e.every_other_week;
|
|
240
241
|
break;
|
|
241
242
|
case s.EveryOtherMonth:
|
|
242
|
-
|
|
243
|
+
i = t ? l(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
243
244
|
break;
|
|
244
245
|
case s.EveryOtherQuarter:
|
|
245
|
-
|
|
246
|
+
i = t ? l(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
246
247
|
break;
|
|
247
248
|
case s.TwiceAMonth:
|
|
248
|
-
|
|
249
|
+
i = t ? l(e.twice_a_month_ordinal, r, c) : e.twice_a_month;
|
|
249
250
|
break;
|
|
250
251
|
}
|
|
251
|
-
return
|
|
252
|
+
return i;
|
|
252
253
|
}, at = (e, a) => {
|
|
253
254
|
let t = a;
|
|
254
255
|
switch (e) {
|
package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as S } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as c } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as y } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-87LIQbEA.mjs";
|
|
11
|
-
import { b as E, a, c as d, d as u } from "./RecurringTransactions-
|
|
11
|
+
import { b as E, a, c as d, d as u } from "./RecurringTransactions-CngsRZ3K.mjs";
|
|
12
12
|
var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
|
|
13
13
|
const U = 44;
|
|
14
14
|
class h {
|