@mx-cartographer/experiences 7.2.9-alpha.san4 → 7.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{Account-CBQnFO6w.mjs → Account-B-CuHOYf.mjs} +1 -1
- package/dist/{AccountDetailsContent-CmdOOZw1.mjs → AccountDetailsContent-DfzPOeMI.mjs} +10 -10
- package/dist/{AccountDetailsHeader-CaIoP_2Q.mjs → AccountDetailsHeader-vcy67tuH.mjs} +8 -8
- package/dist/{AccountFields-CLbLAhLf.mjs → AccountFields-cUP-9Hm6.mjs} +5 -5
- package/dist/{AccountListItem-CPm3572e.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
- package/dist/{AccountStore-DttEGFeu.mjs → AccountStore-D6KiXA1B.mjs} +29 -40
- package/dist/{Accounts-B5Yr0e_o.mjs → Accounts-IeEtQjzA.mjs} +1 -1
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-ZO9N26Kx.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-FyY0AWYQ.mjs → ConnectDrawer-DaFRU5st.mjs} +2 -2
- package/dist/{ConnectionsDrawer-Cd_rztVC.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +3 -3
- package/dist/{CurrencyInput-CBOkNlNP.mjs → CurrencyInput-CsCy7uaS.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-DB5U2WMC.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-DlGZfm4y.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-deVLYr7n.mjs → GoalStore-TD0BfzWX.mjs} +3 -3
- package/dist/{Help-BnPXM_N2.mjs → Help-B6dIcujh.mjs} +2 -2
- package/dist/{LineChart-Ct9DNmhS.mjs → LineChart-D4GI7nVh.mjs} +181 -209
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-DHa3KJPs.mjs} +10 -10
- package/dist/{ManageIncome-DB_lKOIy.mjs → ManageIncome-D3n1EWxe.mjs} +61 -63
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
- package/dist/{NetWorthStore-CUz0bwVm.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
- package/dist/{NotificationSettings-Bfb3T7nN.mjs → NotificationSettings-BRm_EJZV.mjs} +5 -5
- package/dist/{OriginalBalanceAction-BLiU-7Lf.mjs → OriginalBalanceAction-CAaVbVMO.mjs} +3 -3
- package/dist/{RecurringSettings-dJJxtLyU.mjs → RecurringSettings-C28GrQcP.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-CJvE4LNC.mjs → TransactionDetails-BWffqew4.mjs} +8 -11
- package/dist/{TransactionStore-DvOEbOzL.mjs → TransactionStore-DxPLdF3B.mjs} +3 -3
- package/dist/{TrendsStore-BVNxGsE4.mjs → TrendsStore-DCYbpXPO.mjs} +14 -14
- package/dist/{User-wXzDI4M8.mjs → User-BQUxBeZV.mjs} +2 -2
- package/dist/{WidgetContainer-GoNq8wwm.mjs → WidgetContainer-C88Ecu2W.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +44 -44
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +2 -8
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -4
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/hooks/useAriaLive.d.ts +8 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -58
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-hrNpJ77n.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -3
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -4
- 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 +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1055 -3130
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -58
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-C41HAxM5.mjs → hooks-D6XlXHf4.mjs} +3 -3
- 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 +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +307 -271
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-B5O6hQ1B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-rVhw737g.mjs +0 -432
- package/dist/SpendingLegend-squvjEhu.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
|
@@ -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 i } 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-BcuH7ErC.mjs";
|
|
33
33
|
import { b as W } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
34
|
-
import { f as v,
|
|
34
|
+
import { f as v, D as k } from "./Dialog-CWW597AF.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,23 +51,22 @@ 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
|
|
54
|
+
}, Fe = se, Re = ({ label: e, onChange: a, options: t, value: n }) => /* @__PURE__ */ d(
|
|
55
55
|
j,
|
|
56
56
|
{
|
|
57
57
|
InputLabelProps: { shrink: !0 },
|
|
58
58
|
SelectProps: {
|
|
59
|
-
IconComponent: (
|
|
59
|
+
IconComponent: (r) => /* @__PURE__ */ d(z, { size: 20, sx: { mr: 4 }, ...r })
|
|
60
60
|
},
|
|
61
61
|
defaultValue: 0,
|
|
62
62
|
label: e,
|
|
63
|
-
onChange: (
|
|
64
|
-
a(Number(
|
|
63
|
+
onChange: (r) => {
|
|
64
|
+
a(Number(r.target.value));
|
|
65
65
|
},
|
|
66
66
|
select: !0,
|
|
67
67
|
value: n,
|
|
68
68
|
variant: "outlined",
|
|
69
|
-
|
|
70
|
-
children: t.map((c) => /* @__PURE__ */ d($, { value: c.id, children: c.label }, c.id))
|
|
69
|
+
children: t.map((r) => /* @__PURE__ */ d($, { value: r.id, children: r.label }, r.id))
|
|
71
70
|
}
|
|
72
71
|
), ce = (e) => {
|
|
73
72
|
if (!e) return "";
|
|
@@ -94,93 +93,93 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
94
93
|
status: p.Upcoming,
|
|
95
94
|
type: e.repeating_transaction_type === Y.Income ? O.Income : O.Expense,
|
|
96
95
|
transaction: void 0
|
|
97
|
-
},
|
|
96
|
+
}, u = a.start, c = a.end;
|
|
98
97
|
switch (e.recurrence_type) {
|
|
99
98
|
case s.EveryWeek:
|
|
100
|
-
t.push(...ue(r,
|
|
99
|
+
t.push(...ue(r, u, c));
|
|
101
100
|
break;
|
|
102
101
|
case s.EveryOtherWeek:
|
|
103
|
-
t.push(...de(r,
|
|
102
|
+
t.push(...de(r, u, c));
|
|
104
103
|
break;
|
|
105
104
|
case s.TwiceAMonth:
|
|
106
|
-
t.push(...me(r,
|
|
105
|
+
t.push(...me(r, u, c));
|
|
107
106
|
break;
|
|
108
107
|
case s.EveryMonth:
|
|
109
|
-
t.push(...le(r,
|
|
108
|
+
t.push(...le(r, u, c));
|
|
110
109
|
break;
|
|
111
110
|
case s.EveryOtherMonth:
|
|
112
|
-
t.push(...he(r,
|
|
111
|
+
t.push(...he(r, u, c));
|
|
113
112
|
break;
|
|
114
113
|
case s.EveryQuarter:
|
|
115
|
-
t.push(...fe(r,
|
|
114
|
+
t.push(...fe(r, u, c));
|
|
116
115
|
break;
|
|
117
116
|
case s.EveryOtherQuarter:
|
|
118
|
-
t.push(...pe(r,
|
|
117
|
+
t.push(...pe(r, u, c));
|
|
119
118
|
break;
|
|
120
119
|
case s.EveryYear:
|
|
121
|
-
t.push(...ye(r,
|
|
120
|
+
t.push(...ye(r, u, c));
|
|
122
121
|
break;
|
|
123
122
|
}
|
|
124
123
|
for (const m of t) {
|
|
125
124
|
const _ = e.transactions.find(
|
|
126
125
|
(x) => x.repeating_transaction_guid === e.guid && x.date > y(D(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
|
|
127
126
|
);
|
|
128
|
-
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) :
|
|
127
|
+
_ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) : i(m.expectedDate, D(b(), 3)) && (m.status = p.Missed);
|
|
129
128
|
}
|
|
130
129
|
return t;
|
|
131
130
|
}, ue = (e, a, t) => {
|
|
132
131
|
const n = [];
|
|
133
132
|
let o = E(a, e.recurrenceDay);
|
|
134
|
-
for (;
|
|
133
|
+
for (; i(o, t); )
|
|
135
134
|
n.push({ ...e, expectedDate: o }), o = E(o, e.recurrenceDay);
|
|
136
135
|
return n;
|
|
137
136
|
}, de = (e, a, t) => {
|
|
138
137
|
const n = [], o = e.expectedDate;
|
|
139
|
-
if (
|
|
138
|
+
if (i(o, t)) {
|
|
140
139
|
let r = D(o, 14);
|
|
141
140
|
for (; h(r, a) || X(r, a); )
|
|
142
141
|
n.push({ ...e, expectedDate: r }), r = D(r, 14);
|
|
143
|
-
for (r = o; h(r, a) &&
|
|
142
|
+
for (r = o; h(r, a) && i(r, t); )
|
|
144
143
|
n.push({ ...e, expectedDate: r }), r = Q(r, 14);
|
|
145
144
|
}
|
|
146
145
|
return n;
|
|
147
146
|
}, me = (e, a, t) => {
|
|
148
147
|
const n = [];
|
|
149
148
|
let o = g(a, e.recurrenceDay);
|
|
150
|
-
for (;
|
|
149
|
+
for (; i(o, t); )
|
|
151
150
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
152
151
|
let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : q(a);
|
|
153
|
-
for (;
|
|
152
|
+
for (; i(r, t); )
|
|
154
153
|
n.push({ ...e, expectedDate: r }), r = f(r, 1);
|
|
155
154
|
return n;
|
|
156
155
|
}, le = (e, a, t) => {
|
|
157
156
|
const n = [];
|
|
158
157
|
let o = g(a, e.recurrenceDay);
|
|
159
|
-
for (n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
158
|
+
for (n.push({ ...e, expectedDate: o }), o = f(o, 1); i(o, t); )
|
|
160
159
|
n.push({ ...e, expectedDate: o }), o = f(o, 1);
|
|
161
160
|
return n;
|
|
162
161
|
}, he = (e, a, t) => {
|
|
163
162
|
const n = [], o = e.expectedDate;
|
|
164
|
-
let r =
|
|
165
|
-
for (;
|
|
163
|
+
let r = i(o, t) ? o : Z(o, 2);
|
|
164
|
+
for (; i(r, t); )
|
|
166
165
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = f(r, 2);
|
|
167
166
|
return n;
|
|
168
167
|
}, fe = (e, a, t) => {
|
|
169
168
|
const n = [], o = e.expectedDate;
|
|
170
|
-
let r =
|
|
171
|
-
for (;
|
|
169
|
+
let r = i(o, t) ? o : N(o, 1);
|
|
170
|
+
for (; i(r, t); )
|
|
172
171
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 1);
|
|
173
172
|
return n;
|
|
174
173
|
}, pe = (e, a, t) => {
|
|
175
174
|
const n = [], o = e.expectedDate;
|
|
176
|
-
let r =
|
|
177
|
-
for (;
|
|
175
|
+
let r = i(o, t) ? o : N(o, 2);
|
|
176
|
+
for (; i(r, t); )
|
|
178
177
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 2);
|
|
179
178
|
return n;
|
|
180
179
|
}, ye = (e, a, t) => {
|
|
181
180
|
const n = [], o = e.expectedDate;
|
|
182
|
-
let r =
|
|
183
|
-
for (;
|
|
181
|
+
let r = i(o, t) ? o : T(o, 1);
|
|
182
|
+
for (; i(r, t); )
|
|
184
183
|
h(r, a) && n.push({ ...e, expectedDate: r }), r = K(r, 1);
|
|
185
184
|
return n;
|
|
186
185
|
}, et = (e, a) => {
|
|
@@ -196,11 +195,11 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
196
195
|
const n = [];
|
|
197
196
|
for (const o of a) {
|
|
198
197
|
const r = t.filter(
|
|
199
|
-
(
|
|
198
|
+
(u) => u.repeating_transaction_guid === o.guid
|
|
200
199
|
);
|
|
201
200
|
t.length > 0 && n.push({
|
|
202
201
|
...o,
|
|
203
|
-
account: e.find((
|
|
202
|
+
account: e.find((u) => u.guid === o.account_guid),
|
|
204
203
|
transactions: r
|
|
205
204
|
});
|
|
206
205
|
}
|
|
@@ -215,41 +214,41 @@ const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
|
215
214
|
recurrences: [t]
|
|
216
215
|
}), a;
|
|
217
216
|
}, []), ot = (e, a, t) => {
|
|
218
|
-
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day),
|
|
219
|
-
let
|
|
217
|
+
const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day), u = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
|
|
218
|
+
let c = t ? l(e.monthly_ordinal, r) : e.monthly;
|
|
220
219
|
switch (a.recurrence_type) {
|
|
221
220
|
case s.EveryQuarter:
|
|
222
|
-
|
|
221
|
+
c = t ? l(e.quarterly_ordinal, r) : e.quarterly;
|
|
223
222
|
break;
|
|
224
223
|
case s.EveryWeek:
|
|
225
|
-
|
|
224
|
+
c = t ? l(
|
|
226
225
|
e.weekly_ordinal,
|
|
227
226
|
v(n, k.DAY_OF_WEEK)
|
|
228
227
|
) : e.weekly;
|
|
229
228
|
break;
|
|
230
229
|
case s.EveryYear:
|
|
231
|
-
|
|
230
|
+
c = t ? l(
|
|
232
231
|
e.anually_ordinal,
|
|
233
232
|
v(o, k.MONTH_DAY)
|
|
234
233
|
) : e.anually;
|
|
235
234
|
break;
|
|
236
235
|
case s.EveryOtherWeek:
|
|
237
|
-
|
|
236
|
+
c = t ? l(
|
|
238
237
|
e.every_other_week_ordinal,
|
|
239
238
|
v(n, k.DAY_OF_WEEK)
|
|
240
239
|
) : e.every_other_week;
|
|
241
240
|
break;
|
|
242
241
|
case s.EveryOtherMonth:
|
|
243
|
-
|
|
242
|
+
c = t ? l(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
244
243
|
break;
|
|
245
244
|
case s.EveryOtherQuarter:
|
|
246
|
-
|
|
245
|
+
c = t ? l(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
247
246
|
break;
|
|
248
247
|
case s.TwiceAMonth:
|
|
249
|
-
|
|
248
|
+
c = t ? l(e.twice_a_month_ordinal, r, u) : e.twice_a_month;
|
|
250
249
|
break;
|
|
251
250
|
}
|
|
252
|
-
return
|
|
251
|
+
return c;
|
|
253
252
|
}, at = (e, a) => {
|
|
254
253
|
let t = a;
|
|
255
254
|
switch (e) {
|
package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.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-ej39mgA6.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 {
|
|
@@ -4,40 +4,40 @@ import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
|
4
4
|
import { subMonths as y } from "date-fns/subMonths";
|
|
5
5
|
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
6
|
import { b as n, P as l } from "./Category-CevNQ03n.mjs";
|
|
7
|
-
import { f as m,
|
|
7
|
+
import { f as m, D as T } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
const i = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid === n.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === n.TRANSFER || e.category_guid === n.TRANSFER, h = (e) => e.top_level_category_guid === n.INVESTMENTS || e.category_guid === n.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
|
9
9
|
if (r === 0) return 0;
|
|
10
|
-
const
|
|
11
|
-
return isNaN(
|
|
10
|
+
const o = (e - r) / r;
|
|
11
|
+
return isNaN(o) ? 0 : o;
|
|
12
12
|
}, g = (e, r) => {
|
|
13
|
-
const
|
|
13
|
+
const o = [];
|
|
14
14
|
let t = _(r?.start ?? y(/* @__PURE__ */ new Date(), 5));
|
|
15
15
|
const s = r?.end ?? /* @__PURE__ */ new Date();
|
|
16
16
|
for (; d(t, s); )
|
|
17
|
-
|
|
17
|
+
o.push({
|
|
18
18
|
x: m(t, T.MONTH_SHORT),
|
|
19
|
-
y: e.filter((
|
|
19
|
+
y: e.filter((a) => a.year === t.getFullYear() && a.month === t.getMonth() + 1).reduce((a, c) => a + c.total, 0)
|
|
20
20
|
}), t = u(t, 1);
|
|
21
|
-
return
|
|
21
|
+
return o;
|
|
22
22
|
}, b = (e, r) => {
|
|
23
|
-
const
|
|
24
|
-
return g(
|
|
23
|
+
const o = e.filter(i);
|
|
24
|
+
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
25
25
|
}, A = (e, r) => {
|
|
26
|
-
const
|
|
27
|
-
return g(
|
|
26
|
+
const o = e.filter(p);
|
|
27
|
+
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
28
28
|
}, x = (e, r) => {
|
|
29
|
-
const
|
|
30
|
-
return g(
|
|
29
|
+
const o = e.filter(N);
|
|
30
|
+
return g(o, r);
|
|
31
31
|
}, H = (e) => {
|
|
32
|
-
const r = [],
|
|
33
|
-
(
|
|
32
|
+
const r = [], o = e.filter(
|
|
33
|
+
(a) => a.top_level_category_guid !== n.INCOME && a.top_level_category_guid !== n.TRANSFER && a.total > 0
|
|
34
34
|
);
|
|
35
35
|
let t = _(y(/* @__PURE__ */ new Date(), 5));
|
|
36
36
|
const s = M(/* @__PURE__ */ new Date());
|
|
37
37
|
for (; d(t, s); )
|
|
38
38
|
r.push({
|
|
39
39
|
x: m(t, T.MONTH_SHORT),
|
|
40
|
-
y:
|
|
40
|
+
y: o.filter((a) => a.year === t.getFullYear() && a.month === t.getMonth() + 1).reduce((a, c) => a + c.total, 0)
|
|
41
41
|
}), t = u(t, 1);
|
|
42
42
|
return r;
|
|
43
43
|
};
|
|
@@ -9,15 +9,15 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
|
|
|
9
9
|
import B from "@mui/material/ListItemAvatar";
|
|
10
10
|
import M from "@mui/material/ListItemText";
|
|
11
11
|
import f from "@mui/material/Stack";
|
|
12
|
-
import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-
|
|
13
|
-
import { G as Be, h as v, u as A, g as L, m as xe, b as Fe, p as He } from "./hooks-
|
|
12
|
+
import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-BQUxBeZV.mjs";
|
|
13
|
+
import { G as Be, h as v, u as A, g as L, m as xe, b as Fe, p as He } from "./hooks-D6XlXHf4.mjs";
|
|
14
14
|
import { f as te } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
15
15
|
import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
|
|
16
16
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
17
17
|
import { isSameDay as Ne } from "date-fns/isSameDay";
|
|
18
|
-
import { h as Ye } from "./DateUtil-
|
|
18
|
+
import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
|
|
19
19
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-C88Ecu2W.mjs";
|
|
21
21
|
import ne from "@mui/material/Paper";
|
|
22
22
|
import ce from "@mui/material/Button";
|
|
23
23
|
import je from "@mui/material/FormGroup";
|
|
@@ -27,17 +27,17 @@ import qe from "@mui/material/ToggleButton";
|
|
|
27
27
|
import ve from "@mui/material/styles/useTheme";
|
|
28
28
|
import z from "@mui/material/Avatar";
|
|
29
29
|
import F from "@mui/material/ListItem";
|
|
30
|
-
import {
|
|
30
|
+
import { a as V, f as Ee, D as Oe } from "./Dialog-CWW597AF.mjs";
|
|
31
31
|
import U from "@mui/material/ListItemButton";
|
|
32
32
|
import X from "@mui/material/ListItemIcon";
|
|
33
|
-
import { a as we } from "./CategorySelectorDrawer-
|
|
33
|
+
import { a as we } from "./CategorySelectorDrawer-DUe4lH5-.mjs";
|
|
34
34
|
import { b as se } from "./Localization-2MODESHW.mjs";
|
|
35
35
|
import { getUnixTime as Ze } from "date-fns/getUnixTime";
|
|
36
|
-
import { D as de } from "./Drawer-
|
|
36
|
+
import { D as de } from "./Drawer-kEE73B87.mjs";
|
|
37
37
|
import ye from "@mui/material/InputAdornment";
|
|
38
38
|
import Je from "@mui/material/Checkbox";
|
|
39
39
|
import ge from "@mui/material/Grid";
|
|
40
|
-
import { C as Qe } from "./CurrencyInput-
|
|
40
|
+
import { C as Qe } from "./CurrencyInput-CsCy7uaS.mjs";
|
|
41
41
|
import et from "@mui/material/Switch";
|
|
42
42
|
var q = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(q || {}), re = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(re || {});
|
|
43
43
|
const tt = [
|
|
@@ -1329,12 +1329,9 @@ export {
|
|
|
1329
1329
|
bt as M,
|
|
1330
1330
|
lt as S,
|
|
1331
1331
|
Ra as T,
|
|
1332
|
-
dt as Z,
|
|
1333
1332
|
ka as a,
|
|
1334
1333
|
st as b,
|
|
1335
1334
|
Kt as c,
|
|
1336
1335
|
q as d,
|
|
1337
|
-
_t as h,
|
|
1338
|
-
Se as s,
|
|
1339
1336
|
G as u
|
|
1340
1337
|
};
|
|
@@ -13,12 +13,12 @@ import { isBefore as Y } from "date-fns/isBefore";
|
|
|
13
13
|
import { startOfMonth as R } from "date-fns/startOfMonth";
|
|
14
14
|
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as F } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as G, T as w } from "./User-
|
|
16
|
+
import { O as n, a as G, T as w } from "./User-BQUxBeZV.mjs";
|
|
17
17
|
import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
20
20
|
import { format as k } from "date-fns/format";
|
|
21
|
-
import { f as g,
|
|
21
|
+
import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
|
|
22
22
|
import { endOfMonth as X } from "date-fns/endOfMonth";
|
|
23
23
|
import { B as f } from "./BeatApi-DhJpgCLz.mjs";
|
|
24
24
|
const j = ({
|
|
@@ -8,17 +8,17 @@ import { u as K } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
|
8
8
|
import { u as _t } from "./useDimensions-27p2evRx.mjs";
|
|
9
9
|
import { observer as Mt } from "mobx-react-lite";
|
|
10
10
|
import Tt from "@mui/material/Card";
|
|
11
|
-
import
|
|
11
|
+
import Dt from "@mui/material/CardContent";
|
|
12
12
|
import P from "@mui/material/Divider";
|
|
13
13
|
import X from "@mui/material/Grid";
|
|
14
|
-
import { CategoryIcon as
|
|
15
|
-
import { u as Lt, m as Q } from "./hooks-
|
|
14
|
+
import { CategoryIcon as At, Text as S } from "@mxenabled/mxui";
|
|
15
|
+
import { u as Lt, m as Q } from "./hooks-D6XlXHf4.mjs";
|
|
16
16
|
import { b as Rt } from "./Localization-2MODESHW.mjs";
|
|
17
17
|
import { C as O } from "./CurrencyText-kyC1aseI.mjs";
|
|
18
18
|
import { useTheme as wt, Card as Ht, CardContent as It, Box as kt } from "@mui/material";
|
|
19
|
-
import { f as R,
|
|
19
|
+
import { f as R, D as w } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
import Et from "@mui/material/Button";
|
|
21
|
-
import { C as
|
|
21
|
+
import { C as A, b as Gt, c as Nt } from "./Category-CevNQ03n.mjs";
|
|
22
22
|
import { f as V } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
23
23
|
import Bt from "@mui/material/ListItem";
|
|
24
24
|
import Ot from "@mui/material/ListItemButton";
|
|
@@ -38,7 +38,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
38
38
|
"aria-label": Rt(o.category_icon_label_aria, n),
|
|
39
39
|
mb: 4,
|
|
40
40
|
role: "img",
|
|
41
|
-
children: /* @__PURE__ */ s(
|
|
41
|
+
children: /* @__PURE__ */ s(At, { categoryGuid: e })
|
|
42
42
|
}
|
|
43
43
|
),
|
|
44
44
|
/* @__PURE__ */ s(S, { variant: "Body", children: n })
|
|
@@ -71,7 +71,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
71
71
|
width: 250,
|
|
72
72
|
pointerEvents: "none"
|
|
73
73
|
},
|
|
74
|
-
children: /* @__PURE__ */ f(
|
|
74
|
+
children: /* @__PURE__ */ f(Dt, { children: [
|
|
75
75
|
/* @__PURE__ */ f(L, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
76
76
|
/* @__PURE__ */ s(U, { categoryGuid: r, topLevelCategoryGuid: e }),
|
|
77
77
|
/* @__PURE__ */ s(S, { variant: "Small", children: `${o.length}-month total` }),
|
|
@@ -127,7 +127,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
127
127
|
ref: a,
|
|
128
128
|
sx: r,
|
|
129
129
|
children: e.map(({ guid: g, top_level_guid: C }) => {
|
|
130
|
-
const d = o === g, u =
|
|
130
|
+
const d = o === g, u = A[g], x = A[C], y = u ?? x ?? A.default, b = y + "33";
|
|
131
131
|
return /* @__PURE__ */ f(
|
|
132
132
|
Et,
|
|
133
133
|
{
|
|
@@ -186,7 +186,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
186
186
|
hoveredAreaData: null,
|
|
187
187
|
isAreaHovered: !1,
|
|
188
188
|
cursorPos: { x: 0, y: 0 }
|
|
189
|
-
}), { hoveredSeriesId:
|
|
189
|
+
}), { hoveredSeriesId: D, hoveredAreaData: $, isAreaHovered: tt, cursorPos: I } = Z, W = tt && D && $, j = !W, G = [...n, ...i], et = G[0]?.dataset.length ?? 0, N = G.flatMap((t) => t.dataset.map((c) => c.x)), ot = G.flatMap((t) => t.dataset.map((c) => c.y)), rt = n[0]?.dataset?.map(
|
|
190
190
|
(t, c) => n.reduce((m, _) => m + _.dataset[c]?.y || 0, 0)
|
|
191
191
|
) ?? [0], at = Math.max(...rt), nt = Math.max(
|
|
192
192
|
...i.flatMap((t) => t.dataset.map((c) => c.y))
|
|
@@ -232,7 +232,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
232
232
|
}, dt = (t) => {
|
|
233
233
|
a?.(t ?? "");
|
|
234
234
|
}, ut = () => {
|
|
235
|
-
const t = E(String(
|
|
235
|
+
const t = E(String(D)).guid;
|
|
236
236
|
t && a?.(t);
|
|
237
237
|
}, mt = (t) => {
|
|
238
238
|
const c = String(t?.seriesId), m = E(c).guid, _ = Y.find((B) => B.id === c), pt = _ && t?.dataIndex !== void 0, yt = _ && t?.dataIndex === void 0;
|
|
@@ -331,10 +331,10 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
slots: {
|
|
334
|
-
itemContent: (t) => j &&
|
|
334
|
+
itemContent: (t) => j && D ? /* @__PURE__ */ s(
|
|
335
335
|
Vt,
|
|
336
336
|
{
|
|
337
|
-
categoryGuids: E(
|
|
337
|
+
categoryGuids: E(D),
|
|
338
338
|
xData: N,
|
|
339
339
|
...t
|
|
340
340
|
}
|
|
@@ -375,7 +375,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
375
375
|
W && /* @__PURE__ */ s(
|
|
376
376
|
Xt,
|
|
377
377
|
{
|
|
378
|
-
categoryGuids: E(
|
|
378
|
+
categoryGuids: E(D),
|
|
379
379
|
chartContainerRef: x,
|
|
380
380
|
cursorPosition: I,
|
|
381
381
|
hoveredAreaData: $.map((t) => ({
|
|
@@ -444,7 +444,7 @@ const U = ({ categoryGuid: r, topLevelCategoryGuid: e }) => {
|
|
|
444
444
|
children: g
|
|
445
445
|
}
|
|
446
446
|
) });
|
|
447
|
-
}, qt = (r) =>
|
|
447
|
+
}, qt = (r) => A[r] ?? A.default, Jt = (r) => Nt[r];
|
|
448
448
|
function Kt(r, e) {
|
|
449
449
|
const o = [], a = new Date(r);
|
|
450
450
|
for (; a <= e; ) {
|
|
@@ -16,13 +16,13 @@ import E from "@mui/material/Button";
|
|
|
16
16
|
import Y from "@mui/material/Paper";
|
|
17
17
|
import { useTokens as v, H2 as z, Text as G } from "@mxenabled/mxui";
|
|
18
18
|
import { ChevronLeft as X, ChevronRight as Z } from "@mxenabled/mx-icons";
|
|
19
|
-
import { f as q,
|
|
19
|
+
import { f as q, D as J } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
import { isSameDay as T } from "date-fns/isSameDay";
|
|
21
21
|
import { isWithinInterval as Q } from "date-fns/isWithinInterval";
|
|
22
22
|
import nn from "@mui/material/styles/useTheme";
|
|
23
23
|
import k from "@mui/material/ListItem";
|
|
24
24
|
import an from "@mui/material/ListItemButton";
|
|
25
|
-
import { g as tn } from "./hooks-
|
|
25
|
+
import { g as tn } from "./hooks-D6XlXHf4.mjs";
|
|
26
26
|
var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
|
|
27
27
|
const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
|
|
28
28
|
const c = v(), l = cn(c);
|
|
@@ -13,7 +13,7 @@ import { ChevronLeft as le } from "@mxenabled/mx-icons";
|
|
|
13
13
|
import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
|
|
14
14
|
import { u as Te } from "./useDimensions-27p2evRx.mjs";
|
|
15
15
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
16
|
-
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-
|
|
16
|
+
import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-D6XlXHf4.mjs";
|
|
17
17
|
import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
18
18
|
import { addMonths as Q } from "date-fns/addMonths";
|
|
19
19
|
import { addDays as ue } from "date-fns/addDays";
|
|
@@ -35,9 +35,9 @@ import be from "@mui/material/Tabs";
|
|
|
35
35
|
import we from "@mui/material/ToggleButton";
|
|
36
36
|
import Ke from "@mui/material/ToggleButtonGroup";
|
|
37
37
|
import Ge from "@mui/material/styles/useTheme";
|
|
38
|
-
import { f as K,
|
|
39
|
-
import { D as We } from "./Drawer-
|
|
40
|
-
import { k as ye, l as xe } from "./ConnectDrawer-
|
|
38
|
+
import { f as K, D as G, a as Me } from "./Dialog-CWW597AF.mjs";
|
|
39
|
+
import { D as We } from "./Drawer-kEE73B87.mjs";
|
|
40
|
+
import { k as ye, l as xe } from "./ConnectDrawer-DaFRU5st.mjs";
|
|
41
41
|
const ve = {
|
|
42
42
|
ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
|
|
43
43
|
ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
|
|
@@ -7,25 +7,25 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
8
|
import _ from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as K } from "../AccountDetailsContent-
|
|
11
|
-
import { u as D1 } from "../AccountDetailsContent-
|
|
12
|
-
import { u as z, A as P } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { a as Y } from "../AccountFields-
|
|
15
|
-
import { g as U1, b as $1 } from "../AccountFields-
|
|
16
|
-
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-DfzPOeMI.mjs";
|
|
11
|
+
import { u as D1 } from "../AccountDetailsContent-DfzPOeMI.mjs";
|
|
12
|
+
import { u as z, A as P } from "../AccountDetailsHeader-vcy67tuH.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-DChcf3SN.mjs";
|
|
14
|
+
import { a as Y } from "../AccountFields-cUP-9Hm6.mjs";
|
|
15
|
+
import { g as U1, b as $1 } from "../AccountFields-cUP-9Hm6.mjs";
|
|
16
|
+
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-D6XlXHf4.mjs";
|
|
17
17
|
import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
18
|
-
import { D as J } from "../Drawer-
|
|
19
|
-
import { A as y, W as Q } from "../WidgetContainer-
|
|
20
|
-
import { C as X } from "../ConnectionsDrawer-
|
|
18
|
+
import { D as J } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A as y, W as Q } from "../WidgetContainer-C88Ecu2W.mjs";
|
|
20
|
+
import { C as X } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
|
|
21
21
|
import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
22
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
-
import { l as U, m as e1 } from "../ConnectDrawer-
|
|
24
|
-
import { F as G1, M as K1 } from "../ConnectDrawer-
|
|
23
|
+
import { l as U, m as e1 } from "../ConnectDrawer-DaFRU5st.mjs";
|
|
24
|
+
import { F as G1, M as K1 } from "../ConnectDrawer-DaFRU5st.mjs";
|
|
25
25
|
import t1 from "@mui/material/ListItem";
|
|
26
|
-
import { M as $ } from "../MiniWidgetContainer-
|
|
26
|
+
import { M as $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
27
27
|
import l1 from "@mui/material/Stack";
|
|
28
|
-
import { A as P1, a as Y1 } from "../AccountStore-
|
|
28
|
+
import { A as P1, a as Y1 } from "../AccountStore-D6KiXA1B.mjs";
|
|
29
29
|
const i1 = () => {
|
|
30
30
|
const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
@@ -30,8 +30,6 @@ export declare class AccountStore {
|
|
|
30
30
|
get visibleRetirementAccounts(): Account[];
|
|
31
31
|
get visibleInvestmentAccounts(): Account[];
|
|
32
32
|
get visibleSavingsAccounts(): Account[];
|
|
33
|
-
get savingsAndCheckingAccountsBalance(): number;
|
|
34
|
-
get savingsAndCheckingAccounts(): Account[];
|
|
35
33
|
addAccount: (account: Account) => Promise<void>;
|
|
36
34
|
augmentAccounts: (accounts?: Account[]) => Account[];
|
|
37
35
|
loadAccounts: (accountsOverride?: Account[]) => Promise<void>;
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { k as f, u as b, g as q, b as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
12
|
+
import { k as f, u as b, g as q, b as E } from "../hooks-D6XlXHf4.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import S from "@mui/material/Stack";
|
|
|
8
8
|
import Q from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as y, CategoryIcon as H, Icon as N, H1 as ze, H3 as xe } from "@mxenabled/mxui";
|
|
10
10
|
import W from "@mui/material/List";
|
|
11
|
-
import { u as w, i as D, j as ee, m as j, q as te, g as X, b as ne, h as oe, a as Ue, d as ve } from "../hooks-
|
|
11
|
+
import { u as w, i as D, j as ee, m as j, q as te, g as X, b as ne, h as oe, a as Ue, d as ve } from "../hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { f as T } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
13
13
|
import Ae from "@mui/material/Button";
|
|
14
14
|
import ae from "@mui/material/Divider";
|
|
@@ -17,36 +17,36 @@ import re from "@mui/material/ListItemAvatar";
|
|
|
17
17
|
import V from "@mui/material/ListItemButton";
|
|
18
18
|
import Y from "@mui/material/ListItemText";
|
|
19
19
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
20
|
-
import { D as k } from "../Drawer-
|
|
20
|
+
import { D as k } from "../Drawer-kEE73B87.mjs";
|
|
21
21
|
import Fe from "@mui/material/ListItemSecondaryAction";
|
|
22
|
-
import { C as He } from "../CurrencyInput-
|
|
23
|
-
import {
|
|
24
|
-
import { C as We } from "../ConnectionsDrawer-
|
|
22
|
+
import { C as He } from "../CurrencyInput-CsCy7uaS.mjs";
|
|
23
|
+
import { a as $ } from "../Dialog-CWW597AF.mjs";
|
|
24
|
+
import { C as We } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
|
|
25
25
|
import * as O from "d3";
|
|
26
26
|
import Xe from "@mui/material/Tooltip";
|
|
27
27
|
import { u as se } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
28
28
|
import { L as G } from "../Loader-DUaFpDGv.mjs";
|
|
29
29
|
import { E as de } from "../EmptyState-DA_lfRBv.mjs";
|
|
30
|
-
import { A as L, W as Ke } from "../WidgetContainer-
|
|
31
|
-
import { u as Ve } from "../BudgetUtil-
|
|
32
|
-
import { M as Ye } from "../MiniWidgetContainer-
|
|
30
|
+
import { A as L, W as Ke } from "../WidgetContainer-C88Ecu2W.mjs";
|
|
31
|
+
import { u as Ve } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
32
|
+
import { M as Ye } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
33
33
|
import { isAfter as Ze } from "date-fns/isAfter";
|
|
34
34
|
import { startOfToday as Z } from "date-fns/startOfToday";
|
|
35
35
|
import qe from "@mui/material/Alert";
|
|
36
36
|
import Je from "@mui/material/Snackbar";
|
|
37
37
|
import ye from "@mui/material/Tab";
|
|
38
38
|
import Qe from "@mui/material/Tabs";
|
|
39
|
-
import { e as et } from "../exportTransactionsToCSV-
|
|
40
|
-
import { T as Te, a as tt } from "../TransactionDetails-
|
|
39
|
+
import { e as et } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
40
|
+
import { T as Te, a as tt } from "../TransactionDetails-BWffqew4.mjs";
|
|
41
41
|
import pe from "@mui/material/Card";
|
|
42
42
|
import he from "@mui/material/CardContent";
|
|
43
43
|
import { S as ge } from "../StatusBar-BK_uYHAB.mjs";
|
|
44
44
|
import { S as we } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { u as nt, b as ot } from "../CategorySelectorDrawer-
|
|
45
|
+
import { u as nt, b as ot } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
|
|
46
46
|
import De from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as at } from "date-fns/subDays";
|
|
48
48
|
import rt from "@mui/material/IconButton";
|
|
49
|
-
import { M as st } from "../ManageIncome-
|
|
49
|
+
import { M as st } from "../ManageIncome-D3n1EWxe.mjs";
|
|
50
50
|
const it = I(() => {
|
|
51
51
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ee(), s = i - o;
|
|
52
52
|
return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|