@mx-cartographer/experiences 7.0.57-alpha.mega1 → 7.0.57-alpha.mega3
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/dist/budgets/index.es.js +37 -30
- package/package.json +1 -1
package/dist/budgets/index.es.js
CHANGED
@@ -396,7 +396,7 @@ const xt = ({
|
|
396
396
|
onConnectAccountsClick: o,
|
397
397
|
createBudgetOnClick: i
|
398
398
|
}) => {
|
399
|
-
const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d =
|
399
|
+
const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = t && c, [g, u] = l.useState(!1), [h, _] = l.useState(!1), [p, b] = l.useState(!1), B = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), f = async () => {
|
400
400
|
b(!0);
|
401
401
|
const { data: C, isSuccess: v } = await s(B);
|
402
402
|
b(!1), v ? (C.length === 0 && _(!0), u(!1)) : u(!0);
|
@@ -419,7 +419,7 @@ const xt = ({
|
|
419
419
|
width: 208,
|
420
420
|
...d && { mt: 16, button: { height: "max-content" } }
|
421
421
|
},
|
422
|
-
...d && { mt: 0, svg: { height: 32, width: 32 } }
|
422
|
+
...d && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
|
423
423
|
}
|
424
424
|
}
|
425
425
|
) : /* @__PURE__ */ e(je, { children: h ? /* @__PURE__ */ e(
|
@@ -444,7 +444,7 @@ const xt = ({
|
|
444
444
|
...d && { mt: 16, button: { height: "max-content" } }
|
445
445
|
},
|
446
446
|
padding: t ? 5 : 0,
|
447
|
-
...d && { svg: { height: 32, width: 32 } }
|
447
|
+
...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
|
448
448
|
}
|
449
449
|
}
|
450
450
|
) : /* @__PURE__ */ e(
|
@@ -469,7 +469,7 @@ const xt = ({
|
|
469
469
|
...d && { mt: 24, button: { height: "max-content" } }
|
470
470
|
},
|
471
471
|
padding: t ? 4 : 0,
|
472
|
-
...d && { svg: { height: 32, width: 32 } }
|
472
|
+
...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
|
473
473
|
}
|
474
474
|
}
|
475
475
|
) });
|
@@ -491,32 +491,39 @@ const xt = ({
|
|
491
491
|
}, C = () => {
|
492
492
|
b(!0), r(L.ACCOUNTS_CLICK_CONNECT);
|
493
493
|
};
|
494
|
-
return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
494
|
+
return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(
|
495
|
+
F,
|
496
|
+
{
|
497
|
+
ml: a || _ ? 0 : 24,
|
498
|
+
sx: { alignSelf: "center", ...s && { height: "100%" } },
|
499
|
+
children: [
|
500
|
+
a || !g ? /* @__PURE__ */ e(
|
501
|
+
At,
|
502
|
+
{
|
503
|
+
createBudgetOnClick: t,
|
504
|
+
isMiniWidget: s,
|
505
|
+
onConnectAccountsClick: C
|
506
|
+
}
|
507
|
+
) : /* @__PURE__ */ e(
|
508
|
+
vt,
|
509
|
+
{
|
510
|
+
height: o,
|
511
|
+
isDraggable: i,
|
512
|
+
onClick: f,
|
513
|
+
width: B
|
514
|
+
}
|
515
|
+
),
|
516
|
+
/* @__PURE__ */ e(
|
517
|
+
We,
|
518
|
+
{
|
519
|
+
onClose: () => b(!1),
|
520
|
+
showConnectionsWidget: p,
|
521
|
+
title: u.manage_connections
|
522
|
+
}
|
523
|
+
)
|
524
|
+
]
|
525
|
+
}
|
526
|
+
);
|
520
527
|
}
|
521
528
|
), Tt = ({
|
522
529
|
budgetsCopy: t,
|