@mx-cartographer/experiences 9.0.2 → 9.0.4-alpha.mm0
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 +11 -0
- package/dist/{Account-BaJmiJAG.mjs → Account-DR7Plrqy.mjs} +10 -10
- package/dist/AccountDetailsDrawer-C8oJP3J4.mjs +921 -0
- package/dist/AccountDetailsHeader-ByGNPZpO.mjs +228 -0
- package/dist/{AccountUtils-T5_Odvos.mjs → AccountUtils-B8ZzWI-d.mjs} +3 -3
- package/dist/{Analytics-CzGzz_sE.mjs → Analytics-WeZYytR0.mjs} +3 -0
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs +26 -0
- package/dist/{CategorySelectorDrawer-8soGrhB8.mjs → CategorySelectorDrawer-BArJC27L.mjs} +1 -1
- package/dist/Connect-BH0Pt6zc.mjs +42 -0
- package/dist/{ConnectCard-CCep7Zqe.mjs → ConnectCard-Dwfgv24k.mjs} +1 -1
- package/dist/{ConnectDrawer-Cnjr3Ddg.mjs → ConnectDrawer-DytyIhaF.mjs} +8 -9
- package/dist/{ConnectionsDrawer-CtfPXk0M.mjs → ConnectionsDrawer-BHJPKXYF.mjs} +8 -9
- package/dist/{CurrencyInput-adTIRtL3.mjs → CurrencyInput-DaGEQaLW.mjs} +1 -1
- package/dist/DateUtil-CzBmbjmA.mjs +74 -0
- package/dist/{DebtUtils-DD3186U-.mjs → DebtUtils-i4pI2Uoe.mjs} +6 -6
- package/dist/{EmbeddedCard-DPwJjqMH.mjs → EmbeddedCard-CQpbZrmP.mjs} +4 -4
- package/dist/{Error-Dogaw2jO.mjs → Error-Dtw6yxkf.mjs} +1 -1
- package/dist/{ExportCsvAction-Bw02ZJEj.mjs → ExportCsvAction-bovG-NJr.mjs} +2 -2
- package/dist/{GlobalAccountFilter-7Cg2-9A5.mjs → GlobalAccountFilter-CYqzqmAd.mjs} +10 -10
- package/dist/{Help-DJ8PrVHX.mjs → Help-5klKVqkX.mjs} +2 -2
- package/dist/{LineChart-CejWS_rh.mjs → LineChart-CUfiH86G.mjs} +1 -1
- package/dist/{ListItemAction-CzZ8s39Z.mjs → ListItemAction-BqUCLj_w.mjs} +1 -1
- package/dist/{ListItemWrapper-B5r-YQQ_.mjs → ListItemWrapper-BHIbqx7E.mjs} +3 -3
- package/dist/ManageIncome-Cz6hvpdA.mjs +902 -0
- package/dist/{MicroWidgetContainer-CfKdQfhi.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BdPiUU-u.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +1 -1
- package/dist/{NetWorthUtils-DilGN1nW.mjs → NetWorthUtils-DfSH3z70.mjs} +2 -2
- package/dist/{NotificationSettings-B4JA5IKE.mjs → NotificationSettings-Ci89BBRI.mjs} +4 -4
- package/dist/{OriginalBalanceAction-BybTXDtO.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +3 -3
- package/dist/{RecurringSettings-D2xbNb67.mjs → RecurringSettings-ClYjsmPz.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-zOxq5pzY.mjs +298 -0
- package/dist/Select-CSpkK5cR.mjs +61 -0
- package/dist/SpendingData-Fii_xATx.mjs +53 -0
- package/dist/{SpendingLegend-5Ct_FZ8o.mjs → SpendingLegend-Bn3DzGyK.mjs} +1 -1
- package/dist/TabContentContainer-B0eYJP5p.mjs +48 -0
- package/dist/{TransactionDetails-DctXr07p.mjs → TransactionDetails-DRN0GIaZ.mjs} +6 -6
- package/dist/{UserStore-CRpKQjpP.mjs → UserStore-DzWku3t0.mjs} +81 -40
- package/dist/{ViewMoreMicroCard-BD_MNc2z.mjs → ViewMoreMicroCard-Dxghxphh.mjs} +211 -231
- package/dist/{WidgetContainer-CmbU4CBH.mjs → WidgetContainer-D-LzIKFb.mjs} +3 -3
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
- package/dist/accounts/index.d.ts +1 -0
- package/dist/accounts/index.es.js +220 -1035
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +11 -11
- package/dist/cashflow/index.es.js +41 -41
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/DataRow.d.ts +1 -0
- package/dist/common/constants/Analytics.d.ts +3 -0
- package/dist/common/index.es.js +82 -83
- package/dist/core/index.es.js +8 -8
- package/dist/core/stores/RecurringTransactionsStore.d.ts +27 -1
- package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
- package/dist/core/utils/DateUtil.d.ts +2 -0
- package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +73 -73
- package/dist/finstrong/index.es.js +17 -17
- package/dist/goals/index.es.js +22 -23
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-BaO_gOI6.mjs → hooks-97sNJ_lf.mjs} +9 -9
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +6 -6
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +12 -11
- package/dist/networth/index.es.js +9 -9
- package/dist/notifications/index.es.js +9 -9
- package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
- package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
- package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +6 -0
- package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
- package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
- package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
- package/dist/recurringtransactions/index.es.js +402 -376
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/index.es.js +12 -12
- package/dist/trends/index.es.js +14 -14
- package/dist/useAccountDisplayName-BsiXA0qf.mjs +23 -0
- package/dist/{useInsightsEnabled-DaNLPmUU.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-CJb-RELP.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Account-BxHMlV9R.mjs +0 -30
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
- package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
- package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
- package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
- package/dist/Accounts-CseLC3lL.mjs +0 -5
- package/dist/Connect-Dk6GZEsA.mjs +0 -39
- package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
- package/dist/ManageIncome-D1yBODQi.mjs +0 -595
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
- package/dist/Select-BFt-HD-L.mjs +0 -55
- package/dist/SpendingData-PKlh8caU.mjs +0 -53
- package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
- package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
import { addDays as W } from "date-fns/addDays";
|
|
2
|
-
import { addMonths as l } from "date-fns/addMonths";
|
|
3
|
-
import { addQuarters as Q } from "date-fns/addQuarters";
|
|
4
|
-
import { addWeeks as M } from "date-fns/addWeeks";
|
|
5
|
-
import { addYears as B } from "date-fns/addYears";
|
|
6
|
-
import { formatISO as I } from "date-fns/formatISO";
|
|
7
|
-
import { fromUnixTime as U } from "date-fns/fromUnixTime";
|
|
8
|
-
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
9
|
-
import { isAfter as f } from "date-fns/isAfter";
|
|
10
|
-
import { isBefore as i } from "date-fns/isBefore";
|
|
11
|
-
import { isSameDay as G } from "date-fns/isSameDay";
|
|
12
|
-
import { lastDayOfMonth as P } from "date-fns/lastDayOfMonth";
|
|
13
|
-
import { nextDay as p } from "date-fns/nextDay";
|
|
14
|
-
import { parseISO as S } from "date-fns/parseISO";
|
|
15
|
-
import { setDate as D } from "date-fns/setDate";
|
|
16
|
-
import { setDay as L } from "date-fns/setDay";
|
|
17
|
-
import { setDayOfYear as Y } from "date-fns/setDayOfYear";
|
|
18
|
-
import { startOfToday as O } from "date-fns/startOfToday";
|
|
19
|
-
import { subDays as g } from "date-fns/subDays";
|
|
20
|
-
import { subMonths as $ } from "date-fns/subMonths";
|
|
21
|
-
import { subQuarters as A } from "date-fns/subQuarters";
|
|
22
|
-
import { subWeeks as K } from "date-fns/subWeeks";
|
|
23
|
-
import { subYears as C } from "date-fns/subYears";
|
|
24
|
-
import { g as H, a as j, b as z, c as J, d as V, e as X, h as Z } from "./DateUtil-Bhq59ZVg.mjs";
|
|
25
|
-
import { b as w } from "./NumberFormatting--XMeeBfr.mjs";
|
|
26
|
-
import { b as h } from "./Localization-DnoVyBNK.mjs";
|
|
27
|
-
import { f as x, D as E } from "./DateFormats-HudZ3Bjs.mjs";
|
|
28
|
-
var n = /* @__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))(n || {}), _ = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(_ || {}), b = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(b || {}), N = /* @__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))(N || {});
|
|
29
|
-
const F = (e) => {
|
|
30
|
-
if (!e) return "";
|
|
31
|
-
let o = e.user_name || e.feed_name || "";
|
|
32
|
-
return e.account_number && (o = `${o} *${e.account_number}`), o;
|
|
33
|
-
}, q = (e, o) => {
|
|
34
|
-
const r = [], s = e.recurrence_type === n.EveryYear, t = e.transactions.find(
|
|
35
|
-
(d) => d.repeating_transaction_guid === e.guid
|
|
36
|
-
);
|
|
37
|
-
if (!s && !t) return [];
|
|
38
|
-
const a = S(e.predicted_occurs_on), u = {
|
|
39
|
-
accountGuid: e.account?.guid || "",
|
|
40
|
-
amount: e.amount,
|
|
41
|
-
categoryGuid: t?.category_guid || "",
|
|
42
|
-
expectedDate: a,
|
|
43
|
-
frequency: e.recurrence_type,
|
|
44
|
-
institutionGuid: e.account?.institution_guid || "",
|
|
45
|
-
institutionName: F(e.account),
|
|
46
|
-
merchantGuid: e.merchant_guid,
|
|
47
|
-
name: e.description,
|
|
48
|
-
recurrenceDay: e.recurrence_day,
|
|
49
|
-
repeatingTransactionGuid: e.guid,
|
|
50
|
-
secondRecurrenceDay: e.second_recurrence_day,
|
|
51
|
-
status: _.Upcoming,
|
|
52
|
-
type: e.repeating_transaction_type === N.Income ? b.Income : b.Expense,
|
|
53
|
-
transaction: void 0
|
|
54
|
-
}, c = o.start, m = o.end;
|
|
55
|
-
switch (e.recurrence_type) {
|
|
56
|
-
case n.EveryWeek:
|
|
57
|
-
r.push(...R(u, c, m));
|
|
58
|
-
break;
|
|
59
|
-
case n.EveryOtherWeek:
|
|
60
|
-
r.push(...T(u, c, m));
|
|
61
|
-
break;
|
|
62
|
-
case n.TwiceAMonth:
|
|
63
|
-
r.push(...ee(u, c, m));
|
|
64
|
-
break;
|
|
65
|
-
case n.EveryMonth:
|
|
66
|
-
r.push(...te(u, c, m));
|
|
67
|
-
break;
|
|
68
|
-
case n.EveryOtherMonth:
|
|
69
|
-
r.push(...re(u, c, m));
|
|
70
|
-
break;
|
|
71
|
-
case n.EveryQuarter:
|
|
72
|
-
r.push(...se(u, c, m));
|
|
73
|
-
break;
|
|
74
|
-
case n.EveryOtherQuarter:
|
|
75
|
-
r.push(...oe(u, c, m));
|
|
76
|
-
break;
|
|
77
|
-
case n.EveryYear:
|
|
78
|
-
r.push(...ae(u, c, m));
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
for (const d of r) {
|
|
82
|
-
const v = e.transactions.find(
|
|
83
|
-
(k) => k.repeating_transaction_guid === e.guid && k.date > y(g(d.expectedDate, 5)) && k.date < y(W(d.expectedDate, 5))
|
|
84
|
-
);
|
|
85
|
-
v ? (d.transaction = v, d.status = _.Paid, d.occurredOnDate = U(v.date)) : i(d.expectedDate, g(O(), 3)) && (d.status = _.Missed);
|
|
86
|
-
}
|
|
87
|
-
return r;
|
|
88
|
-
}, R = (e, o, r) => {
|
|
89
|
-
const s = [];
|
|
90
|
-
let t = p(o, e.recurrenceDay);
|
|
91
|
-
for (; i(t, r); )
|
|
92
|
-
s.push({ ...e, expectedDate: t }), t = p(t, e.recurrenceDay);
|
|
93
|
-
return s;
|
|
94
|
-
}, T = (e, o, r) => {
|
|
95
|
-
const s = [];
|
|
96
|
-
let t = e.expectedDate;
|
|
97
|
-
if (i(t, o))
|
|
98
|
-
for (; i(t, o); )
|
|
99
|
-
t = M(t, 2);
|
|
100
|
-
else {
|
|
101
|
-
for (; f(t, o) || G(t, o); )
|
|
102
|
-
t = K(t, 2);
|
|
103
|
-
t = M(t, 2);
|
|
104
|
-
}
|
|
105
|
-
for (; i(t, r); )
|
|
106
|
-
s.push({ ...e, expectedDate: t }), t = W(t, 14);
|
|
107
|
-
return s;
|
|
108
|
-
}, ee = (e, o, r) => {
|
|
109
|
-
const s = [];
|
|
110
|
-
let t = D(o, e.recurrenceDay);
|
|
111
|
-
for (; i(t, r); )
|
|
112
|
-
s.push({ ...e, expectedDate: t }), t = l(t, 1);
|
|
113
|
-
let a = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? D(o, e.secondRecurrenceDay) : P(o);
|
|
114
|
-
for (; i(a, r); )
|
|
115
|
-
s.push({ ...e, expectedDate: a }), a = l(a, 1);
|
|
116
|
-
return s;
|
|
117
|
-
}, te = (e, o, r) => {
|
|
118
|
-
const s = [];
|
|
119
|
-
let t = D(o, e.recurrenceDay);
|
|
120
|
-
for (s.push({ ...e, expectedDate: t }), t = l(t, 1); i(t, r); )
|
|
121
|
-
s.push({ ...e, expectedDate: t }), t = l(t, 1);
|
|
122
|
-
return s;
|
|
123
|
-
}, re = (e, o, r) => {
|
|
124
|
-
const s = [], t = e.expectedDate;
|
|
125
|
-
let a = i(t, r) ? t : $(t, 2);
|
|
126
|
-
for (; i(a, r); )
|
|
127
|
-
f(a, o) && s.push({ ...e, expectedDate: a }), a = l(a, 2);
|
|
128
|
-
return s;
|
|
129
|
-
}, se = (e, o, r) => {
|
|
130
|
-
const s = [], t = e.expectedDate;
|
|
131
|
-
let a = i(t, r) ? t : A(t, 1);
|
|
132
|
-
for (; i(a, r); )
|
|
133
|
-
f(a, o) && s.push({ ...e, expectedDate: a }), a = Q(a, 1);
|
|
134
|
-
return s;
|
|
135
|
-
}, oe = (e, o, r) => {
|
|
136
|
-
const s = [], t = e.expectedDate;
|
|
137
|
-
let a = i(t, r) ? t : A(t, 2);
|
|
138
|
-
for (; i(a, r); )
|
|
139
|
-
f(a, o) && s.push({ ...e, expectedDate: a }), a = Q(a, 2);
|
|
140
|
-
return s;
|
|
141
|
-
}, ae = (e, o, r) => {
|
|
142
|
-
const s = [], t = e.expectedDate;
|
|
143
|
-
let a = i(t, r) ? t : C(t, 1);
|
|
144
|
-
for (; i(a, r); )
|
|
145
|
-
f(a, o) && s.push({ ...e, expectedDate: a }), a = B(a, 1);
|
|
146
|
-
return s;
|
|
147
|
-
}, Be = (e, o) => {
|
|
148
|
-
const r = [];
|
|
149
|
-
for (const s of e) {
|
|
150
|
-
const t = q(s, o);
|
|
151
|
-
r.push(...t);
|
|
152
|
-
}
|
|
153
|
-
return r.sort(
|
|
154
|
-
(s, t) => y(s.occurredOnDate || s.expectedDate) - y(t.occurredOnDate || t.expectedDate)
|
|
155
|
-
);
|
|
156
|
-
}, Ie = (e, o, r) => {
|
|
157
|
-
const s = [];
|
|
158
|
-
for (const t of o) {
|
|
159
|
-
const a = r.filter(
|
|
160
|
-
(u) => u.repeating_transaction_guid === t.guid
|
|
161
|
-
);
|
|
162
|
-
r.length > 0 && s.push({
|
|
163
|
-
...t,
|
|
164
|
-
account: e.find((u) => u.guid === t.account_guid),
|
|
165
|
-
transactions: a
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
return s;
|
|
169
|
-
}, Ue = (e) => e.reduce((o, r) => {
|
|
170
|
-
const s = I(r.expectedDate, { representation: "date" }), t = o.find(
|
|
171
|
-
(a) => a.date.toString() === r.expectedDate.toString()
|
|
172
|
-
);
|
|
173
|
-
return t ? t.recurrences.push(r) : o.push({
|
|
174
|
-
date: r.expectedDate,
|
|
175
|
-
id: `date-${s}`,
|
|
176
|
-
recurrences: [r]
|
|
177
|
-
}), o;
|
|
178
|
-
}, []), Ge = (e, o, r) => {
|
|
179
|
-
const s = p(O(), o.recurrence_day), t = Y(O(), o.recurrence_day), a = w(o.recurrence_day), u = o.second_recurrence_day ? w(o.second_recurrence_day) : "";
|
|
180
|
-
let c = r ? h(e.monthly_ordinal, a) : e.monthly;
|
|
181
|
-
switch (o.recurrence_type) {
|
|
182
|
-
case n.EveryQuarter:
|
|
183
|
-
c = r ? h(e.quarterly_ordinal, a) : e.quarterly;
|
|
184
|
-
break;
|
|
185
|
-
case n.EveryWeek:
|
|
186
|
-
c = r ? h(
|
|
187
|
-
e.weekly_ordinal,
|
|
188
|
-
x(s, E.DAY_OF_WEEK)
|
|
189
|
-
) : e.weekly;
|
|
190
|
-
break;
|
|
191
|
-
case n.EveryYear:
|
|
192
|
-
c = r ? h(
|
|
193
|
-
e.anually_ordinal,
|
|
194
|
-
x(t, E.MONTH_DAY)
|
|
195
|
-
) : e.anually;
|
|
196
|
-
break;
|
|
197
|
-
case n.EveryOtherWeek:
|
|
198
|
-
c = r ? h(
|
|
199
|
-
e.every_other_week_ordinal,
|
|
200
|
-
x(s, E.DAY_OF_WEEK)
|
|
201
|
-
) : e.every_other_week;
|
|
202
|
-
break;
|
|
203
|
-
case n.EveryOtherMonth:
|
|
204
|
-
c = r ? h(e.every_other_month_ordinal, a) : e.every_other_month;
|
|
205
|
-
break;
|
|
206
|
-
case n.EveryOtherQuarter:
|
|
207
|
-
c = r ? h(e.every_other_quarter_ordinal, a) : e.every_other_quarter;
|
|
208
|
-
break;
|
|
209
|
-
case n.TwiceAMonth:
|
|
210
|
-
c = r ? h(e.twice_a_month_ordinal, a, u) : e.twice_a_month;
|
|
211
|
-
break;
|
|
212
|
-
}
|
|
213
|
-
return c;
|
|
214
|
-
}, Pe = (e, o, r) => {
|
|
215
|
-
let s = o;
|
|
216
|
-
r !== void 0 && (e === n.EveryWeek || e === n.EveryOtherWeek ? s = L(o, r) : e === n.EveryYear ? s = Y(o, r) : s = D(o, r));
|
|
217
|
-
let t = s;
|
|
218
|
-
switch (e) {
|
|
219
|
-
case n.EveryWeek:
|
|
220
|
-
t = Z(s);
|
|
221
|
-
break;
|
|
222
|
-
case n.EveryOtherWeek:
|
|
223
|
-
t = X(s);
|
|
224
|
-
break;
|
|
225
|
-
case n.EveryMonth:
|
|
226
|
-
t = V(s);
|
|
227
|
-
break;
|
|
228
|
-
case n.EveryOtherMonth:
|
|
229
|
-
t = J(s);
|
|
230
|
-
break;
|
|
231
|
-
case n.EveryQuarter:
|
|
232
|
-
t = z(s);
|
|
233
|
-
break;
|
|
234
|
-
case n.EveryOtherQuarter:
|
|
235
|
-
t = j(s);
|
|
236
|
-
break;
|
|
237
|
-
case n.EveryYear:
|
|
238
|
-
t = H(s);
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
return t;
|
|
242
|
-
};
|
|
243
|
-
export {
|
|
244
|
-
n as F,
|
|
245
|
-
N as R,
|
|
246
|
-
_ as a,
|
|
247
|
-
b,
|
|
248
|
-
Pe as c,
|
|
249
|
-
Ue as d,
|
|
250
|
-
Ie as e,
|
|
251
|
-
Be as f,
|
|
252
|
-
Ge as g
|
|
253
|
-
};
|
package/dist/Select-BFt-HD-L.mjs
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as m, Fragment as d } from "react/jsx-runtime";
|
|
2
|
-
import c from "@mui/material/Avatar";
|
|
3
|
-
import l from "@mui/material/ListItem";
|
|
4
|
-
import h from "@mui/material/ListItemAvatar";
|
|
5
|
-
import p from "@mui/material/ListItemButton";
|
|
6
|
-
import u from "@mui/material/ListItemIcon";
|
|
7
|
-
import f from "@mui/material/ListItemText";
|
|
8
|
-
import { Icon as s } from "@mxenabled/mxui";
|
|
9
|
-
import g from "@mui/material/MenuItem";
|
|
10
|
-
import x from "@mui/material/TextField";
|
|
11
|
-
import { ExpandMore as b } from "@mxenabled/mx-icons";
|
|
12
|
-
const G = ({ iconName: a, label: n, onClick: e, value: i }) => {
|
|
13
|
-
const o = /* @__PURE__ */ m(d, { children: [
|
|
14
|
-
/* @__PURE__ */ r(h, { children: /* @__PURE__ */ r(c, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: /* @__PURE__ */ r(s, { name: a, sx: { color: "text.primary" } }) }) }),
|
|
15
|
-
/* @__PURE__ */ r(
|
|
16
|
-
f,
|
|
17
|
-
{
|
|
18
|
-
primary: n,
|
|
19
|
-
secondary: i,
|
|
20
|
-
slotProps: {
|
|
21
|
-
primary: { variant: "caption", fontWeight: "normal" },
|
|
22
|
-
secondary: { color: "text.default", variant: "body1", fontWeight: 600 }
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
)
|
|
26
|
-
] });
|
|
27
|
-
return e ? /* @__PURE__ */ r(l, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(p, { onClick: e, children: [
|
|
28
|
-
o,
|
|
29
|
-
/* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(s, { name: "chevron_right", size: 24 }) })
|
|
30
|
-
] }) }) : /* @__PURE__ */ r(l, { disableGutters: !1, disablePadding: !1, children: o });
|
|
31
|
-
}, M = ({ label: a, onChange: n, options: e, value: i, ...o }) => /* @__PURE__ */ r(
|
|
32
|
-
x,
|
|
33
|
-
{
|
|
34
|
-
defaultValue: 0,
|
|
35
|
-
label: a,
|
|
36
|
-
onChange: (t) => {
|
|
37
|
-
n(Number(t.target.value));
|
|
38
|
-
},
|
|
39
|
-
select: !0,
|
|
40
|
-
slotProps: {
|
|
41
|
-
inputLabel: { shrink: !0 },
|
|
42
|
-
select: {
|
|
43
|
-
IconComponent: (t) => /* @__PURE__ */ r(b, { size: 20, sx: { mr: 4 }, ...t })
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
value: i,
|
|
47
|
-
variant: "outlined",
|
|
48
|
-
...o,
|
|
49
|
-
children: e.map((t) => /* @__PURE__ */ r(g, { value: t.id, children: t.label }, t.id))
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
export {
|
|
53
|
-
G as D,
|
|
54
|
-
M as S
|
|
55
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { addMonths as u } from "date-fns/addMonths";
|
|
2
|
-
import { isBefore as d } from "date-fns/isBefore";
|
|
3
|
-
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
4
|
-
import { subMonths as y } from "date-fns/subMonths";
|
|
5
|
-
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
|
-
import { C as a, P as l } from "./Category-DEKZGLYe.mjs";
|
|
7
|
-
import { f as m, D as T } from "./DateFormats-HudZ3Bjs.mjs";
|
|
8
|
-
const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.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 === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.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
|
-
if (r === 0) return 0;
|
|
10
|
-
const o = (e - r) / r;
|
|
11
|
-
return isNaN(o) ? 0 : o;
|
|
12
|
-
}, g = (e, r) => {
|
|
13
|
-
const o = [];
|
|
14
|
-
let t = _(r?.start ?? y(/* @__PURE__ */ new Date(), 5));
|
|
15
|
-
const s = r?.end ?? /* @__PURE__ */ new Date();
|
|
16
|
-
for (; d(t, s); )
|
|
17
|
-
o.push({
|
|
18
|
-
x: m(t, T.MONTH_SHORT),
|
|
19
|
-
y: e.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
20
|
-
}), t = u(t, 1);
|
|
21
|
-
return o;
|
|
22
|
-
}, A = (e, r) => {
|
|
23
|
-
const o = e.filter(i);
|
|
24
|
-
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
25
|
-
}, b = (e, r) => {
|
|
26
|
-
const o = e.filter(p);
|
|
27
|
-
return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
|
|
28
|
-
}, x = (e, r) => {
|
|
29
|
-
const o = e.filter(N);
|
|
30
|
-
return g(o, r);
|
|
31
|
-
}, H = (e) => {
|
|
32
|
-
const r = [], o = e.filter(
|
|
33
|
-
(n) => n.top_level_category_guid !== a.INCOME && n.top_level_category_guid !== a.TRANSFER && n.total > 0
|
|
34
|
-
);
|
|
35
|
-
let t = _(y(/* @__PURE__ */ new Date(), 5));
|
|
36
|
-
const s = M(/* @__PURE__ */ new Date());
|
|
37
|
-
for (; d(t, s); )
|
|
38
|
-
r.push({
|
|
39
|
-
x: m(t, T.MONTH_SHORT),
|
|
40
|
-
y: o.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
|
|
41
|
-
}), t = u(t, 1);
|
|
42
|
-
return r;
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
b as a,
|
|
46
|
-
x as b,
|
|
47
|
-
w as c,
|
|
48
|
-
C as d,
|
|
49
|
-
H as e,
|
|
50
|
-
F as f,
|
|
51
|
-
A as g,
|
|
52
|
-
i
|
|
53
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const n = ({
|
|
3
|
-
children: o,
|
|
4
|
-
index: t,
|
|
5
|
-
name: a,
|
|
6
|
-
value: r,
|
|
7
|
-
...b
|
|
8
|
-
}) => /* @__PURE__ */ e(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
"aria-labelledby": `${a}-tab-${t}`,
|
|
12
|
-
hidden: r !== t,
|
|
13
|
-
id: `${a}-tabpanel-${t}`,
|
|
14
|
-
role: "tabpanel",
|
|
15
|
-
...b,
|
|
16
|
-
children: r === t && o
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
export {
|
|
20
|
-
n as T
|
|
21
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "react";
|
|
2
|
-
import { g as s } from "./AccountDisplayName-CO7z3v99.mjs";
|
|
3
|
-
import { a as n } from "./hooks-BaO_gOI6.mjs";
|
|
4
|
-
const i = (o) => {
|
|
5
|
-
const { config: a } = n();
|
|
6
|
-
return e.useMemo(
|
|
7
|
-
() => s(o, {
|
|
8
|
-
allowNickname: a?.show_account_nicknames_in_master
|
|
9
|
-
}),
|
|
10
|
-
[o, a?.show_account_nicknames_in_master]
|
|
11
|
-
);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
i as u
|
|
15
|
-
};
|