@mx-cartographer/experiences 6.20.1 → 6.20.2-alpha.mega1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +15 -13
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1187,7 +1187,7 @@ class tr {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
addCategory = async (n) => this.fetchInstance.post(B.CATEGORIES, n).then((i) => i.category);
|
|
1189
1189
|
getCategories = async () => this.fetchInstance.get(B.CATEGORIES).then((n) => n.categories);
|
|
1190
|
-
getDateRangeCategoryTotals = async (n, i, a) => this.fetchInstance.post(`${B.DATE_RANGE_CATEGORY_TOTALS}/from/${n}/to/${i}`, {
|
|
1190
|
+
getDateRangeCategoryTotals = async (n, i, a) => a.length === 0 ? [] : this.fetchInstance.post(`${B.DATE_RANGE_CATEGORY_TOTALS}/from/${n}/to/${i}`, {
|
|
1191
1191
|
account_guid: a.map((o) => o.guid)
|
|
1192
1192
|
}).then((o) => o.date_range_category_totals);
|
|
1193
1193
|
getMonthlyCategoryTotals = async (n, i, a) => {
|
|
@@ -25196,25 +25196,27 @@ const F0 = ({
|
|
|
25196
25196
|
/* @__PURE__ */ t(Y0, { onRecalculateBudgets: e })
|
|
25197
25197
|
] });
|
|
25198
25198
|
}), j0 = (e) => {
|
|
25199
|
-
const n = be(), { onEvent: i } = X(), {
|
|
25199
|
+
const n = be(), { onEvent: i } = X(), { budgets: a, isDataLoaded: o, loadBudgetData: r, setTheme: s } = _t(), { budgets: c, common: d } = I(), { isCopyLoaded: _, isInitialized: u, selectedAccounts: h } = se(), { reloadCategoryTotals: m } = Fe(), p = I_(), f = a.length === 0, [E, y] = g.useState(!1), A = () => {
|
|
25200
25200
|
y(!0), i(W.BUDGETS_CLICK_ADD);
|
|
25201
25201
|
}, x = () => {
|
|
25202
25202
|
y(!1);
|
|
25203
25203
|
};
|
|
25204
25204
|
return g.useEffect(() => {
|
|
25205
|
-
|
|
25205
|
+
s(n);
|
|
25206
25206
|
}, [n]), g.useEffect(() => {
|
|
25207
|
-
|
|
25208
|
-
|
|
25209
|
-
|
|
25210
|
-
|
|
25207
|
+
u && !o && m(h, et(/* @__PURE__ */ new Date()), Ye(/* @__PURE__ */ new Date())).then(
|
|
25208
|
+
() => {
|
|
25209
|
+
r().finally();
|
|
25210
|
+
}
|
|
25211
|
+
);
|
|
25212
|
+
}, [u, h]), _ ? /* @__PURE__ */ l(
|
|
25211
25213
|
Mn,
|
|
25212
25214
|
{
|
|
25213
|
-
primaryCtaLabel: f ?
|
|
25214
|
-
title:
|
|
25215
|
+
primaryCtaLabel: f ? c.get_started_cta : c.details_cta,
|
|
25216
|
+
title: c.budgets_title,
|
|
25215
25217
|
...e,
|
|
25216
25218
|
children: [
|
|
25217
|
-
|
|
25219
|
+
o ? /* @__PURE__ */ l(b, { height: 450, mt: 32, children: [
|
|
25218
25220
|
/* @__PURE__ */ t(
|
|
25219
25221
|
_l,
|
|
25220
25222
|
{
|
|
@@ -25226,16 +25228,16 @@ const F0 = ({
|
|
|
25226
25228
|
),
|
|
25227
25229
|
!f && /* @__PURE__ */ l(M, { ml: 16, children: [
|
|
25228
25230
|
/* @__PURE__ */ t(C, { bold: !0, color: p < 0 ? "error.main" : "success.main", children: H(Math.abs(p), "0,0") }),
|
|
25229
|
-
/* @__PURE__ */ t(C, { children: p < 0 ?
|
|
25231
|
+
/* @__PURE__ */ t(C, { children: p < 0 ? c.overspent_in_budgets : c.left_in_budgets })
|
|
25230
25232
|
] })
|
|
25231
25233
|
] }) : /* @__PURE__ */ t(le, {}),
|
|
25232
25234
|
/* @__PURE__ */ t(
|
|
25233
25235
|
ce,
|
|
25234
25236
|
{
|
|
25235
|
-
ariaLabelClose:
|
|
25237
|
+
ariaLabelClose: d.close_aria,
|
|
25236
25238
|
isOpen: E,
|
|
25237
25239
|
onClose: () => y(!1),
|
|
25238
|
-
title:
|
|
25240
|
+
title: c.add_new_title,
|
|
25239
25241
|
children: /* @__PURE__ */ t(hl, { onRecalculateBudgets: x })
|
|
25240
25242
|
}
|
|
25241
25243
|
)
|