@mx-cartographer/experiences 9.7.143 → 9.7.145
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 +8 -0
- package/dist/core/types/Insights.d.ts +6 -5
- package/dist/core/types/Insights.es.js.map +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +33 -1
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.d.ts +9 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js +42 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesBlock.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.d.ts +13 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js +339 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/PayoffStrategiesContent.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/index.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.d.ts +41 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js +61 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/layout.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/usePayoffStrategiesPrepare.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/usePayoffStrategiesPrepare.es.js +14 -0
- package/dist/insights-v2/actionBlocks/PayoffStrategiesBlock/usePayoffStrategiesPrepare.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +2 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +3 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +170 -131
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/mappings/actionBlocksKey.d.ts +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js +1 -0
- package/dist/insights-v2/mappings/actionBlocksKey.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.es.js +47 -40
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { buildDynamicCopy as
|
|
2
|
-
import { DATE_FORMATS_INTL as
|
|
3
|
-
import { TransactionStatus as
|
|
4
|
-
import { fromUnixUTC as
|
|
1
|
+
import { buildDynamicCopy as T } from "../../../core/utils/Localization.es.js";
|
|
2
|
+
import { DATE_FORMATS_INTL as N, formatDate as O } from "../../../core/constants/DateFormats.es.js";
|
|
3
|
+
import { TransactionStatus as H } from "../../../core/types/Transaction.es.js";
|
|
4
|
+
import { fromUnixUTC as L } from "../../../core/utils/DateUtil.es.js";
|
|
5
5
|
import { CURRENCY_FORMAT as Y } from "../../../core/utils/NumberFormatting.es.js";
|
|
6
6
|
import { getCategoryColor as F } from "../../../core/utils/CategoryUtil.es.js";
|
|
7
|
-
import { buildDataSeries as
|
|
8
|
-
import { asGuidList as
|
|
9
|
-
import { getLayoutConfig as
|
|
10
|
-
import
|
|
11
|
-
import { buildProjectedBillTransaction as
|
|
12
|
-
import { Icon as
|
|
7
|
+
import { buildDataSeries as R } from "../../blocks/ChartBlocks/BarchartBlock/utils.es.js";
|
|
8
|
+
import { asGuidList as A, asNonEmptyText as l, asNumber as m } from "../../blocks/slotReaders.es.js";
|
|
9
|
+
import { getLayoutConfig as b } from "../../blocks/ChartBlocks/DoubleBarChartBlock/layout.es.js";
|
|
10
|
+
import k from "../../components/LogoMark.es.js";
|
|
11
|
+
import { buildProjectedBillTransaction as V, calendarDateOf as x, toDrillDownSlotData as W } from "./utils.es.js";
|
|
12
|
+
import { Icon as B } from "@mxenabled/mx-icons";
|
|
13
13
|
import { jsx as c } from "react/jsx-runtime";
|
|
14
|
-
import { endOfMonth as
|
|
14
|
+
import { endOfMonth as M, fromUnixTime as z, isValid as E, parseISO as u, startOfMonth as I } from "date-fns";
|
|
15
15
|
var n = {
|
|
16
16
|
TRANSACTION: "not_standard_amount",
|
|
17
17
|
CATEGORY_SPEND: "category_spend",
|
|
@@ -25,155 +25,176 @@ var n = {
|
|
|
25
25
|
NON_ESSENTIAL_CATEGORY: "non_essential_category_summary",
|
|
26
26
|
DEPOSIT_SUMMARY: "monthly_deposit_summary",
|
|
27
27
|
LOW_BALANCE: "low_balance",
|
|
28
|
-
SUBSCRIPTION_AGGREGATE: "monthly_subscription_aggregate"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
SUBSCRIPTION_AGGREGATE: "monthly_subscription_aggregate",
|
|
29
|
+
MERCHANT_BUDGET: "merchant_budget"
|
|
30
|
+
}, g = (t, e) => e && F(e, t) || t.palette.primary.main, h = (t) => typeof t == "string" ? u(t) : new Date(t ?? NaN), v = (t) => ({
|
|
31
|
+
start: I(h(t)),
|
|
32
|
+
end: M(h(t))
|
|
33
|
+
}), U = (t) => t?.length ? { accounts: t } : {}, j = ({ beat: t }) => {
|
|
34
|
+
const { account_guid: e, from_date: a, to_date: r } = t.insights_payload?.drilldown_data ?? {};
|
|
35
|
+
return typeof e != "string" || typeof a != "number" || typeof r != "number" || !Number.isFinite(a) || !Number.isFinite(r) || r <= a ? {
|
|
35
36
|
accounts: [],
|
|
36
37
|
custom: () => !1
|
|
37
38
|
} : {
|
|
38
39
|
accounts: [e],
|
|
39
|
-
custom: (
|
|
40
|
+
custom: (o) => !o.is_hidden && o.feed_status !== H.PENDING,
|
|
40
41
|
showSplits: !0,
|
|
41
42
|
dateRange: {
|
|
42
|
-
start:
|
|
43
|
-
end:
|
|
43
|
+
start: L(a),
|
|
44
|
+
end: L(r - 1)
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}, K = (t) => {
|
|
47
48
|
const e = t?.drilldown_data ?? {};
|
|
48
49
|
return {
|
|
49
|
-
transaction_guids:
|
|
50
|
-
date:
|
|
51
|
-
amount:
|
|
52
|
-
category_guid:
|
|
53
|
-
average_amount:
|
|
54
|
-
merchant_name:
|
|
50
|
+
transaction_guids: A(e.transaction_guids),
|
|
51
|
+
date: x(e.due_date),
|
|
52
|
+
amount: m(e.amount),
|
|
53
|
+
category_guid: l(e.category_guid),
|
|
54
|
+
average_amount: m(e.average_amount),
|
|
55
|
+
merchant_name: l(e.merchant_name)
|
|
55
56
|
};
|
|
56
|
-
},
|
|
57
|
+
}, _ = (t) => {
|
|
57
58
|
const e = t;
|
|
58
59
|
return Array.isArray(e?.names) && Array.isArray(e?.data) ? e : void 0;
|
|
59
60
|
}, q = (t) => {
|
|
60
61
|
const e = t?.drilldown_data ?? {};
|
|
61
62
|
return {
|
|
62
|
-
account_guids:
|
|
63
|
-
data_series:
|
|
64
|
-
average_amount:
|
|
63
|
+
account_guids: A(e.account_guids),
|
|
64
|
+
data_series: _(e.data_series),
|
|
65
|
+
average_amount: m(e.average_amount)
|
|
65
66
|
};
|
|
66
|
-
},
|
|
67
|
-
const e = t?.drilldown_data ?? {}, a = t?.instance_slot?.data
|
|
67
|
+
}, J = (t) => {
|
|
68
|
+
const e = t?.drilldown_data ?? {}, a = t?.instance_slot?.data, r = t?.instance_slot_data;
|
|
68
69
|
return {
|
|
69
|
-
data_series:
|
|
70
|
-
average_amount:
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
data_series: _(e.data_series),
|
|
71
|
+
average_amount: m(e.average_amount),
|
|
72
|
+
merchant_guid: l(a?.merchant_guid) ?? l(r?.merchant_guid),
|
|
73
|
+
merchant_name: l(a?.merchant_name) ?? l(r?.merchant_name)
|
|
73
74
|
};
|
|
74
|
-
},
|
|
75
|
-
const
|
|
76
|
-
return
|
|
77
|
-
data_series:
|
|
78
|
-
|
|
75
|
+
}, w = ["income", "other"], Q = (t) => {
|
|
76
|
+
const e = t?.drilldown_data ?? {}, a = t?.instance_slot?.data?.legends?.map(({ label: r }) => r);
|
|
77
|
+
return {
|
|
78
|
+
data_series: _(e.data_series),
|
|
79
|
+
average_amount: m(e.average_amount),
|
|
80
|
+
income_transaction_guids: A(e.income_transaction_guids),
|
|
81
|
+
sub_tab_labels: a?.length === w.length ? a : void 0
|
|
82
|
+
};
|
|
83
|
+
}, X = 2, P = (t, e) => {
|
|
84
|
+
const a = e ?? {}, r = _(a.series), o = Array.isArray(a.labels) ? a.labels.map(l) : [];
|
|
85
|
+
return !r || o.length !== X || !o.every((s) => !!s) ? {} : {
|
|
86
|
+
data_series: r,
|
|
87
|
+
legends: o.map((s) => ({
|
|
79
88
|
label: s,
|
|
80
89
|
value: 0
|
|
81
90
|
}))
|
|
82
91
|
};
|
|
83
|
-
},
|
|
84
|
-
const a = e.transaction_history_block?.monthly_debt_to_income_tip_message,
|
|
85
|
-
if (!(!a || !
|
|
92
|
+
}, G = (t, e) => R(_(e?.series)).flatMap((a) => a.aggregated_guids ?? []), Z = (t, e) => {
|
|
93
|
+
const a = e.transaction_history_block?.monthly_debt_to_income_tip_message, r = e.transaction_history_block?.monthly_debt_to_income_tip_limit;
|
|
94
|
+
if (!(!a || !r))
|
|
86
95
|
return {
|
|
87
|
-
message:
|
|
96
|
+
message: T(a, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: r })),
|
|
88
97
|
onDismiss: () => t(!0)
|
|
89
98
|
};
|
|
90
|
-
}, Z = (t, e) => {
|
|
91
|
-
const a = w(t, e);
|
|
92
|
-
return a.data_series ? a : V(t?.instance_slot?.data ?? {});
|
|
93
99
|
}, $ = (t, e) => {
|
|
94
|
-
const a =
|
|
95
|
-
|
|
100
|
+
const a = P(t, e);
|
|
101
|
+
return a.data_series ? a : W(t?.instance_slot?.data ?? {});
|
|
102
|
+
}, tt = (t, e) => {
|
|
103
|
+
const a = e.transaction_history_block?.savings_to_income_tip_message, r = e.transaction_history_block?.savings_to_income_tip_percentage;
|
|
104
|
+
if (!(!a || !r))
|
|
96
105
|
return {
|
|
97
|
-
message:
|
|
106
|
+
message: T(a, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: r })),
|
|
98
107
|
onDismiss: () => t(!0)
|
|
99
108
|
};
|
|
100
|
-
},
|
|
101
|
-
const a =
|
|
109
|
+
}, et = (t) => R(_(t.insights_payload?.drilldown_data?.data_series)).flatMap((e) => e.aggregated_guids ?? []), at = (t, e) => {
|
|
110
|
+
const a = V(t, e);
|
|
102
111
|
return a ? [...t, a] : t;
|
|
103
|
-
},
|
|
104
|
-
const
|
|
105
|
-
if (!
|
|
112
|
+
}, rt = (t, e, a, r) => {
|
|
113
|
+
const o = r?.merchant_name, s = r?.date;
|
|
114
|
+
if (!o || !s) return;
|
|
106
115
|
const i = e.transaction_history_block?.upcoming_bill_tip_message;
|
|
107
116
|
if (i)
|
|
108
117
|
return {
|
|
109
|
-
message:
|
|
118
|
+
message: T(i, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), o, O(u(s), N.FULL_MONTH_DAY)),
|
|
110
119
|
onDismiss: () => t(!0)
|
|
111
120
|
};
|
|
112
|
-
},
|
|
113
|
-
const
|
|
121
|
+
}, D = ({ beatTransactions: t, dataSeries: e, selectedIndex: a }) => {
|
|
122
|
+
const r = e[a], o = r?.guid, s = t.find((i) => i.guid === o)?.has_been_split;
|
|
114
123
|
return {
|
|
115
|
-
custom: (i) => i.guid ===
|
|
116
|
-
dateRange:
|
|
124
|
+
custom: (i) => i.guid === o,
|
|
125
|
+
dateRange: v(r?.date),
|
|
117
126
|
showSplits: !s
|
|
118
127
|
};
|
|
119
128
|
}, ot = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
|
|
120
|
-
const
|
|
129
|
+
const r = t[e], o = a.category_guid ?? r?.guid;
|
|
121
130
|
return {
|
|
122
|
-
custom: (s) => s.category_guid ===
|
|
123
|
-
dateRange:
|
|
131
|
+
custom: (s) => s.category_guid === o || s.top_level_category_guid === o,
|
|
132
|
+
dateRange: v(r?.date)
|
|
124
133
|
};
|
|
125
|
-
},
|
|
126
|
-
const
|
|
134
|
+
}, st = ({ dataSeries: t, selectedIndex: e, spendCategoryGuids: a, instanceSlotData: r }) => {
|
|
135
|
+
const o = t[e];
|
|
127
136
|
return {
|
|
128
137
|
custom: (s) => !!s.top_level_category_guid && a.includes(s.top_level_category_guid),
|
|
129
|
-
dateRange:
|
|
130
|
-
...
|
|
138
|
+
dateRange: v(o?.date),
|
|
139
|
+
...U(r.account_guids)
|
|
140
|
+
};
|
|
141
|
+
}, nt = ({ dataSeries: t, selectedIndex: e, instanceSlotData: a }) => {
|
|
142
|
+
const r = a.merchant_guid, o = u(t[e]?.date ?? "");
|
|
143
|
+
return !r || !E(o) ? {
|
|
144
|
+
accounts: [],
|
|
145
|
+
custom: () => !1
|
|
146
|
+
} : {
|
|
147
|
+
custom: (s) => s.merchant_guid === r && !s.is_hidden,
|
|
148
|
+
dateRange: {
|
|
149
|
+
start: I(o),
|
|
150
|
+
end: M(o)
|
|
151
|
+
}
|
|
131
152
|
};
|
|
132
|
-
},
|
|
133
|
-
const s = e[a], { start: i, end:
|
|
153
|
+
}, it = (t) => typeof t == "number" ? z(t) : u(t ?? ""), ct = ({ beat: t, dataSeries: e, selectedIndex: a, isLastTab: r, instanceSlotData: o }) => {
|
|
154
|
+
const s = e[a], { start: i, end: p } = v(s?.date), d = it(t.created_at), S = o.account_guids, C = {
|
|
134
155
|
start: i,
|
|
135
|
-
end:
|
|
156
|
+
end: r && E(d) && d < p ? d : p
|
|
136
157
|
};
|
|
137
|
-
return
|
|
138
|
-
dateRange:
|
|
139
|
-
accounts:
|
|
158
|
+
return S?.length ? {
|
|
159
|
+
dateRange: C,
|
|
160
|
+
accounts: S
|
|
140
161
|
} : {
|
|
141
|
-
dateRange:
|
|
162
|
+
dateRange: C,
|
|
142
163
|
accounts: [],
|
|
143
164
|
custom: () => !1
|
|
144
165
|
};
|
|
145
|
-
},
|
|
146
|
-
const
|
|
147
|
-
return !
|
|
166
|
+
}, y = (t, e, a) => {
|
|
167
|
+
const r = new Set(t), o = u(e ?? "");
|
|
168
|
+
return !r.size || !E(o) ? {
|
|
148
169
|
accounts: [],
|
|
149
170
|
custom: () => !1
|
|
150
171
|
} : {
|
|
151
|
-
custom: (s) =>
|
|
172
|
+
custom: (s) => r.has(s.guid),
|
|
152
173
|
dateRange: {
|
|
153
|
-
start:
|
|
154
|
-
end:
|
|
174
|
+
start: I(o),
|
|
175
|
+
end: M(o)
|
|
155
176
|
},
|
|
156
|
-
...
|
|
177
|
+
...U(a)
|
|
157
178
|
};
|
|
158
|
-
},
|
|
159
|
-
const
|
|
160
|
-
return
|
|
161
|
-
},
|
|
162
|
-
const { dataSeries: e, selectedIndex: a, subIndex:
|
|
163
|
-
return
|
|
164
|
-
},
|
|
179
|
+
}, lt = ({ beat: t, dataSeries: e, selectedIndex: a }) => y(e[a]?.aggregated_guids, e[a]?.date, t.account_guids), f = ({ beat: t, comparisonBars: e, selectedIndex: a, subIndex: r }) => {
|
|
180
|
+
const o = e[a];
|
|
181
|
+
return y(r === 1 ? o?.comparisonGuids : o?.mainGuids, o?.date, t.account_guids);
|
|
182
|
+
}, _t = ({ beat: t, dataSeries: e, subIndex: a }) => y(e[a]?.aggregated_guids, e[a]?.date, t.account_guids), dt = (t) => {
|
|
183
|
+
const { dataSeries: e, selectedIndex: a, subIndex: r, instanceSlotData: o } = t, s = e[a], i = new Set(o.income_transaction_guids), p = w[r] === "income", d = o.sub_tab_labels ? s?.aggregated_guids?.filter((S) => i.has(S) === p) : s?.aggregated_guids;
|
|
184
|
+
return y(d, s?.date);
|
|
185
|
+
}, At = {
|
|
165
186
|
[n.TRANSACTION]: {
|
|
166
187
|
top: "singleBar",
|
|
167
188
|
scope: "store",
|
|
168
189
|
filterMode: "store",
|
|
169
|
-
filterStrategy:
|
|
170
|
-
colors: (t, e) => [
|
|
190
|
+
filterStrategy: D,
|
|
191
|
+
colors: (t, e) => [g(t, e)],
|
|
171
192
|
header: (t) => {
|
|
172
193
|
const { title: e, subHeader: a } = t;
|
|
173
194
|
return {
|
|
174
195
|
heading: e,
|
|
175
196
|
subHeadingText: a?.text || void 0,
|
|
176
|
-
icon: /* @__PURE__ */ c(
|
|
197
|
+
icon: /* @__PURE__ */ c(k, {
|
|
177
198
|
logo: {
|
|
178
199
|
...a?.logo,
|
|
179
200
|
merchant_name: a?.text ?? a?.logo?.merchant_name
|
|
@@ -183,7 +204,7 @@ var n = {
|
|
|
183
204
|
};
|
|
184
205
|
},
|
|
185
206
|
tipSection: (t, e, a = "") => ({
|
|
186
|
-
message:
|
|
207
|
+
message: T(e.general.tip_section_message, /* @__PURE__ */ c("strong", { children: e.general.tip_section_title }), /* @__PURE__ */ c("strong", { children: a })),
|
|
187
208
|
onDismiss: () => t(!0)
|
|
188
209
|
})
|
|
189
210
|
},
|
|
@@ -193,11 +214,11 @@ var n = {
|
|
|
193
214
|
filterStrategy: ot,
|
|
194
215
|
scope: "store",
|
|
195
216
|
filterMode: "store",
|
|
196
|
-
colors: (t, e) => [
|
|
217
|
+
colors: (t, e) => [g(t, e)],
|
|
197
218
|
header: (t) => ({
|
|
198
219
|
heading: t.categoryName,
|
|
199
|
-
subHeadingText: t.selectedDate &&
|
|
200
|
-
icon: /* @__PURE__ */ c(
|
|
220
|
+
subHeadingText: t.selectedDate && O(h(t.selectedDate), N.MONTH_LONG) || "",
|
|
221
|
+
icon: /* @__PURE__ */ c(B, {
|
|
201
222
|
color: "primary",
|
|
202
223
|
name: "calendar_month",
|
|
203
224
|
size: 16
|
|
@@ -206,14 +227,14 @@ var n = {
|
|
|
206
227
|
},
|
|
207
228
|
[n.MONTHLY_SPEND]: {
|
|
208
229
|
top: "singleBar",
|
|
209
|
-
filterStrategy:
|
|
230
|
+
filterStrategy: st,
|
|
210
231
|
scope: "store",
|
|
211
232
|
filterMode: "store",
|
|
212
233
|
colors: (t) => [t.palette.chart.chart2 ?? t.palette.primary.main]
|
|
213
234
|
},
|
|
214
235
|
[n.ACCOUNT_BALANCE]: {
|
|
215
236
|
top: "singleBar",
|
|
216
|
-
filterStrategy:
|
|
237
|
+
filterStrategy: ct,
|
|
217
238
|
slotData: q,
|
|
218
239
|
scope: "store",
|
|
219
240
|
filterMode: "store",
|
|
@@ -221,28 +242,28 @@ var n = {
|
|
|
221
242
|
},
|
|
222
243
|
[n.UPCOMING_BILL]: {
|
|
223
244
|
top: "upcomingBill",
|
|
224
|
-
filterStrategy:
|
|
245
|
+
filterStrategy: D,
|
|
225
246
|
scope: "beat",
|
|
226
247
|
filterMode: "local",
|
|
227
|
-
colors: (t, e) => [
|
|
248
|
+
colors: (t, e) => [g(t, e)],
|
|
228
249
|
slotData: K,
|
|
229
|
-
beatTransactions:
|
|
250
|
+
beatTransactions: at,
|
|
230
251
|
fetchMissingTransactions: (t) => t.insights_payload?.drilldown_data?.transaction_guids,
|
|
231
|
-
tipSection:
|
|
252
|
+
tipSection: rt
|
|
232
253
|
},
|
|
233
254
|
[n.DEPOSIT_SUMMARY]: {
|
|
234
255
|
top: "singleBar",
|
|
235
|
-
filterStrategy:
|
|
256
|
+
filterStrategy: dt,
|
|
236
257
|
scope: "store",
|
|
237
258
|
filterMode: "store",
|
|
238
259
|
colors: (t) => [t.palette.success.main],
|
|
239
|
-
slotData:
|
|
240
|
-
fetchMissingTransactions:
|
|
260
|
+
slotData: Q,
|
|
261
|
+
fetchMissingTransactions: et,
|
|
241
262
|
subTabs: ({ instanceSlotData: t }) => t.sub_tab_labels ?? []
|
|
242
263
|
},
|
|
243
264
|
[n.LOW_BALANCE]: {
|
|
244
265
|
top: "list",
|
|
245
|
-
filterStrategy:
|
|
266
|
+
filterStrategy: j,
|
|
246
267
|
scope: "store",
|
|
247
268
|
filterMode: "store",
|
|
248
269
|
colors: (t) => [t.palette.primary.main],
|
|
@@ -250,72 +271,90 @@ var n = {
|
|
|
250
271
|
},
|
|
251
272
|
[n.SUBSCRIPTION_AGGREGATE]: {
|
|
252
273
|
top: "monthTabs",
|
|
253
|
-
filterStrategy:
|
|
274
|
+
filterStrategy: lt,
|
|
254
275
|
scope: "store",
|
|
255
276
|
filterMode: "store",
|
|
256
277
|
colors: (t) => [t.palette.primary.main]
|
|
257
278
|
},
|
|
279
|
+
[n.MERCHANT_BUDGET]: {
|
|
280
|
+
top: "singleBar",
|
|
281
|
+
filterStrategy: nt,
|
|
282
|
+
slotData: J,
|
|
283
|
+
scope: "store",
|
|
284
|
+
filterMode: "store",
|
|
285
|
+
colors: (t) => [t.palette.chart.chart1 ?? t.palette.primary.main],
|
|
286
|
+
header: (t) => ({
|
|
287
|
+
heading: t.slotData?.merchant_name ?? t.title,
|
|
288
|
+
subHeadingText: t.selectedDate && O(h(t.selectedDate), N.MONTH_LONG) || "",
|
|
289
|
+
icon: /* @__PURE__ */ c(B, {
|
|
290
|
+
color: "primary",
|
|
291
|
+
name: "calendar_month",
|
|
292
|
+
size: 16
|
|
293
|
+
})
|
|
294
|
+
})
|
|
295
|
+
},
|
|
258
296
|
[n.SPEND_TO_INCOME]: {
|
|
259
297
|
top: "doubleBar",
|
|
260
|
-
filterStrategy:
|
|
298
|
+
filterStrategy: f,
|
|
261
299
|
scope: "store",
|
|
262
300
|
filterMode: "store",
|
|
263
|
-
colors: (t) =>
|
|
301
|
+
colors: (t) => b(t, "spend_to_income")?.color ?? [],
|
|
264
302
|
subTabAriaLabels: (t) => [t.general.spend_transactions, t.general.income_transactions]
|
|
265
303
|
},
|
|
266
304
|
[n.COST_OF_LIVING]: {
|
|
267
305
|
top: "doubleBar",
|
|
268
|
-
filterStrategy:
|
|
306
|
+
filterStrategy: f,
|
|
269
307
|
scope: "store",
|
|
270
308
|
filterMode: "store",
|
|
271
|
-
colors: (t, e) => [
|
|
309
|
+
colors: (t, e) => [g(t, e), t.palette.chart.chart4 ?? t.palette.primary.main],
|
|
272
310
|
subTabAriaLabels: (t) => [void 0, t.general.income_transactions]
|
|
273
311
|
},
|
|
274
312
|
[n.DEBT_TO_INCOME]: {
|
|
275
313
|
top: "doubleBar",
|
|
276
|
-
filterStrategy:
|
|
314
|
+
filterStrategy: f,
|
|
277
315
|
scope: "store",
|
|
278
316
|
filterMode: "store",
|
|
279
|
-
colors: (t) =>
|
|
317
|
+
colors: (t) => b(t, "debt_to_income")?.color ?? [],
|
|
280
318
|
subTabAriaLabels: (t) => [void 0, t.general.income_transactions],
|
|
281
|
-
slotData:
|
|
282
|
-
fetchMissingTransactions:
|
|
283
|
-
tipSection:
|
|
319
|
+
slotData: P,
|
|
320
|
+
fetchMissingTransactions: G,
|
|
321
|
+
tipSection: Z
|
|
284
322
|
},
|
|
285
323
|
[n.SAVINGS_TO_INCOME]: {
|
|
286
324
|
top: "doubleBar",
|
|
287
|
-
filterStrategy:
|
|
325
|
+
filterStrategy: f,
|
|
288
326
|
scope: "store",
|
|
289
327
|
filterMode: "store",
|
|
290
|
-
colors: (t) =>
|
|
328
|
+
colors: (t) => b(t, "savings_to_income")?.color ?? [],
|
|
291
329
|
subTabAriaLabels: (t) => [t.general.savings_transactions, t.general.income_transactions],
|
|
292
|
-
slotData:
|
|
293
|
-
fetchMissingTransactions:
|
|
294
|
-
tipSection:
|
|
330
|
+
slotData: $,
|
|
331
|
+
fetchMissingTransactions: G,
|
|
332
|
+
tipSection: tt
|
|
295
333
|
},
|
|
296
334
|
[n.NON_ESSENTIAL_CATEGORY]: {
|
|
297
335
|
top: "tabsOnly",
|
|
298
|
-
filterStrategy:
|
|
336
|
+
filterStrategy: _t,
|
|
299
337
|
scope: "store",
|
|
300
338
|
filterMode: "store",
|
|
301
339
|
colors: (t) => [t.palette.primary.main]
|
|
302
340
|
}
|
|
303
|
-
},
|
|
341
|
+
}, Mt = {
|
|
304
342
|
top: "singleBar",
|
|
305
|
-
filterStrategy:
|
|
343
|
+
filterStrategy: D,
|
|
306
344
|
scope: "store",
|
|
307
345
|
filterMode: "store",
|
|
308
|
-
colors: (t, e) => [
|
|
346
|
+
colors: (t, e) => [g(t, e)]
|
|
309
347
|
};
|
|
310
348
|
export {
|
|
311
349
|
n as DRILLDOWN_VARIANTS,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
350
|
+
Mt as FALLBACK,
|
|
351
|
+
At as layout,
|
|
352
|
+
P as resolveDebtToIncomeSlotData,
|
|
353
|
+
Q as resolveDepositSummarySlotData,
|
|
354
|
+
J as resolveMerchantBudgetSlotData,
|
|
316
355
|
q as resolveSavingsContributionsSlotData,
|
|
317
356
|
K as resolveUpcomingBillSlotData,
|
|
318
|
-
|
|
357
|
+
at as resolveUpcomingBillTransactions
|
|
319
358
|
};
|
|
320
359
|
|
|
321
360
|
//# sourceMappingURL=layout.es.js.map
|