@mx-cartographer/insights-ui 1.8.8 → 1.8.9
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/index.es.js +133 -125
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as d, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import g, { useState as X, useRef as W, useLayoutEffect as ne, useMemo as N, useCallback as me, useEffect as oe, forwardRef as b } from "react";
|
|
4
4
|
import Ee from "@mui/material/Dialog";
|
|
5
|
-
import { BottomSheetTransition as pe, Icon as C, P as k, Text as M, InstitutionLogo as Y, H3 as ae, createMXTheme as
|
|
5
|
+
import { BottomSheetTransition as pe, Icon as C, P as k, Text as M, InstitutionLogo as Y, H3 as ae, createMXTheme as ue, MerchantLogo as ye, CategoryIcon as ke, CheckmarkFilledIcon as fe } from "@kyper/mui";
|
|
6
6
|
import Ce from "react-confetti";
|
|
7
7
|
import p from "@mui/material/Box";
|
|
8
8
|
import w from "@mui/material/Card";
|
|
@@ -256,8 +256,8 @@ const Ue = ({
|
|
|
256
256
|
height: s
|
|
257
257
|
}) => {
|
|
258
258
|
const [h, c] = g.useState(null), m = () => {
|
|
259
|
-
const E = document.getElementsByClassName("mx-mini-insight-card")[0].clientHeight,
|
|
260
|
-
c(Math.floor(
|
|
259
|
+
const E = document.getElementsByClassName("mx-mini-insight-card")[0].clientHeight, u = document.getElementsByClassName("mx-mini-insight-card-header")[0].clientHeight + document.getElementsByClassName("mx-mini-insight-card-content-body")[0].clientHeight, y = E - u - 24;
|
|
260
|
+
c(Math.floor(y / 20));
|
|
261
261
|
};
|
|
262
262
|
return g.useEffect(() => (m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m)), []), /* @__PURE__ */ t(
|
|
263
263
|
w,
|
|
@@ -326,8 +326,8 @@ const Ue = ({
|
|
|
326
326
|
tabIndex: a = 0,
|
|
327
327
|
...s
|
|
328
328
|
}) => {
|
|
329
|
-
const [h, c] = X(null), m = () => c(null), E = (
|
|
330
|
-
m(), o(
|
|
329
|
+
const [h, c] = X(null), m = () => c(null), E = (y, S) => {
|
|
330
|
+
m(), o(y, S);
|
|
331
331
|
};
|
|
332
332
|
return /* @__PURE__ */ d(H, { children: [
|
|
333
333
|
/* @__PURE__ */ t(
|
|
@@ -335,8 +335,8 @@ const Ue = ({
|
|
|
335
335
|
{
|
|
336
336
|
"aria-hidden": i,
|
|
337
337
|
"aria-label": l,
|
|
338
|
-
onClick: (
|
|
339
|
-
c(
|
|
338
|
+
onClick: (y) => {
|
|
339
|
+
c(y.currentTarget), n();
|
|
340
340
|
},
|
|
341
341
|
sx: { position: "relative !important", bottom: 6 },
|
|
342
342
|
tabIndex: a,
|
|
@@ -364,8 +364,8 @@ const Ue = ({
|
|
|
364
364
|
onClose: m,
|
|
365
365
|
open: !!h,
|
|
366
366
|
transformOrigin: { horizontal: "right", vertical: "top" },
|
|
367
|
-
children: r.map(({ icon:
|
|
368
|
-
/* @__PURE__ */ t(z, { sx: { minWidth: "32px !important" }, children:
|
|
367
|
+
children: r.map(({ icon: y, key: S, text: v }, J) => /* @__PURE__ */ d(Me, { onClick: () => E(J, S), sx: { padding: 12 }, children: [
|
|
368
|
+
/* @__PURE__ */ t(z, { sx: { minWidth: "32px !important" }, children: y }),
|
|
369
369
|
/* @__PURE__ */ t(
|
|
370
370
|
T,
|
|
371
371
|
{
|
|
@@ -456,21 +456,21 @@ const Ue = ({
|
|
|
456
456
|
width: n.width
|
|
457
457
|
});
|
|
458
458
|
ne(() => {
|
|
459
|
-
const
|
|
459
|
+
const u = new ResizeObserver(() => {
|
|
460
460
|
window.requestAnimationFrame(() => {
|
|
461
461
|
if (h.current) {
|
|
462
|
-
const { width:
|
|
462
|
+
const { width: y, height: S } = h.current.getBoundingClientRect();
|
|
463
463
|
if (S === 0) {
|
|
464
464
|
const x = h.current;
|
|
465
465
|
x.style.height = "1px", x.style.transform = `translate3d(${n.x?.get()}px, ${Number(n.y?.get()) - 1}px, 0px)`;
|
|
466
466
|
}
|
|
467
|
-
const v =
|
|
467
|
+
const v = y / 2, J = h.current.querySelector("text");
|
|
468
468
|
J && J.setAttribute("transform", `translate(${v}, -8)`);
|
|
469
469
|
}
|
|
470
470
|
});
|
|
471
471
|
});
|
|
472
|
-
return h.current &&
|
|
473
|
-
h.current &&
|
|
472
|
+
return h.current && u.observe(h.current), () => {
|
|
473
|
+
h.current && u.unobserve(h.current);
|
|
474
474
|
};
|
|
475
475
|
}, []);
|
|
476
476
|
const { ariaLabel: m, formattedAmount: E } = l[r];
|
|
@@ -515,7 +515,7 @@ const Ue = ({
|
|
|
515
515
|
selectedTabIndex: h,
|
|
516
516
|
onBarClick: c
|
|
517
517
|
}) => {
|
|
518
|
-
const m = Z(), { containerRef: E, height:
|
|
518
|
+
const m = Z(), { containerRef: E, height: u, width: y } = He(), S = N(() => {
|
|
519
519
|
const x = `${l}80`;
|
|
520
520
|
return h === void 0 ? [...new Array(r.length - 1).fill(x), l] : r.map((A, V) => V === h ? l : x);
|
|
521
521
|
}, [l, r, h]), v = me(
|
|
@@ -543,10 +543,10 @@ const Ue = ({
|
|
|
543
543
|
/* @__PURE__ */ t(p, { ref: E, sx: { height: o ? 120 : 172, width: "100%", mb: 8 }, children: /* @__PURE__ */ d(
|
|
544
544
|
we,
|
|
545
545
|
{
|
|
546
|
-
height:
|
|
546
|
+
height: u,
|
|
547
547
|
margin: n,
|
|
548
548
|
series: J.series,
|
|
549
|
-
width:
|
|
549
|
+
width: y,
|
|
550
550
|
xAxis: J.xAxis,
|
|
551
551
|
children: [
|
|
552
552
|
i?.average && /* @__PURE__ */ t(
|
|
@@ -668,7 +668,7 @@ const Ue = ({
|
|
|
668
668
|
rightLowerText: h,
|
|
669
669
|
rightUpperText: c
|
|
670
670
|
}) => {
|
|
671
|
-
const m = a ? te : ie, E = W(null), { height:
|
|
671
|
+
const m = a ? te : ie, E = W(null), { height: u, width: y } = Q(E);
|
|
672
672
|
return /* @__PURE__ */ d(
|
|
673
673
|
p,
|
|
674
674
|
{
|
|
@@ -682,7 +682,7 @@ const Ue = ({
|
|
|
682
682
|
}),
|
|
683
683
|
width: "100%",
|
|
684
684
|
children: [
|
|
685
|
-
/* @__PURE__ */ t(P, { height:
|
|
685
|
+
/* @__PURE__ */ t(P, { height: u, shouldRun: l.shouldRun, width: y }),
|
|
686
686
|
/* @__PURE__ */ d(
|
|
687
687
|
w,
|
|
688
688
|
{
|
|
@@ -874,8 +874,8 @@ const Ue = ({
|
|
|
874
874
|
if (!n.current) return;
|
|
875
875
|
const s = n.current, h = s.querySelectorAll(".Overlay");
|
|
876
876
|
["brand100", "brand200", "brand300", "brand400", "brand500"].forEach((m) => {
|
|
877
|
-
const E = s.querySelectorAll(`.${m}`),
|
|
878
|
-
le(E, a[
|
|
877
|
+
const E = s.querySelectorAll(`.${m}`), u = m.replace("brand", "");
|
|
878
|
+
le(E, a[u]);
|
|
879
879
|
}), le(h, a[300]);
|
|
880
880
|
}, [a]), /* @__PURE__ */ t(
|
|
881
881
|
"div",
|
|
@@ -946,10 +946,10 @@ const Ue = ({
|
|
|
946
946
|
if (n.current) {
|
|
947
947
|
const s = n.current, h = s.parentElement;
|
|
948
948
|
if (h) {
|
|
949
|
-
const m = Array.from(h.children).reduce((v, J) => J !== s ? v + J.clientHeight : v, 0),
|
|
949
|
+
const m = Array.from(h.children).reduce((v, J) => J !== s ? v + J.clientHeight : v, 0), u = h.clientHeight - m, y = parseInt(
|
|
950
950
|
window.getComputedStyle(s).lineHeight,
|
|
951
951
|
10
|
|
952
|
-
), S = Math.floor(
|
|
952
|
+
), S = Math.floor(u / y);
|
|
953
953
|
S !== r && o(S);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
@@ -1029,9 +1029,9 @@ const Ue = ({
|
|
|
1029
1029
|
header: c,
|
|
1030
1030
|
isError: m = !1,
|
|
1031
1031
|
isLoading: E = !1,
|
|
1032
|
-
isMini:
|
|
1032
|
+
isMini: u = !1
|
|
1033
1033
|
}) => /* @__PURE__ */ d(H, { children: [
|
|
1034
|
-
/* @__PURE__ */ t(ht, { ...c, isMini:
|
|
1034
|
+
/* @__PURE__ */ t(ht, { ...c, isMini: u, title: r.html_title }),
|
|
1035
1035
|
m ? /* @__PURE__ */ t(st, { erroredText: s }) : /* @__PURE__ */ d(H, { children: [
|
|
1036
1036
|
/* @__PURE__ */ t(
|
|
1037
1037
|
Et,
|
|
@@ -1041,11 +1041,11 @@ const Ue = ({
|
|
|
1041
1041
|
beat: r,
|
|
1042
1042
|
hasFooterButton: !!o,
|
|
1043
1043
|
isLoading: E,
|
|
1044
|
-
isMini:
|
|
1044
|
+
isMini: u,
|
|
1045
1045
|
children: E ? /* @__PURE__ */ t(dt, { altLoadingText: i }) : n
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
1048
|
-
!
|
|
1048
|
+
!u && o,
|
|
1049
1049
|
h
|
|
1050
1050
|
] })
|
|
1051
1051
|
] }), w1 = ({
|
|
@@ -1162,7 +1162,7 @@ const Ue = ({
|
|
|
1162
1162
|
},
|
|
1163
1163
|
children: l.dismissed_at ? o : r
|
|
1164
1164
|
}
|
|
1165
|
-
),
|
|
1165
|
+
), ut = (i, l) => /* @__PURE__ */ e.createElement("svg", { width: 295, height: 142, viewBox: "0 0 295 142", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, ...i }, /* @__PURE__ */ e.createElement("path", { d: "M0.5 4C0.5 2.067 2.067 0.5 4 0.5H291C292.933 0.5 294.5 2.067 294.5 4V39.5H0.5V4Z", stroke: "#EEF1F6" }), /* @__PURE__ */ e.createElement("path", { d: "M0.5 102.5H294.5V138C294.5 139.933 292.933 141.5 291 141.5H4.00001C2.06701 141.5 0.5 139.933 0.5 138V102.5Z", fill: "#F8F9FB", stroke: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 0.5, y: 39.5, width: 294, height: 63, fill: "white", stroke: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 16, y: 55, width: 32, height: 32, rx: 2, fill: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 16, y: 15, width: 80, height: 8, rx: 2, fill: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 16, y: 118, width: 80, height: 8, rx: 2, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 226, y: 118, width: 56, height: 8, rx: 2, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 64, y: 60, width: 80, height: 8, rx: 2, fill: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 232, y: 60, width: 47, height: 8, rx: 2, fill: "#EEF1F6" }), /* @__PURE__ */ e.createElement("rect", { x: 64, y: 76, width: 60, height: 4, rx: 2, fill: "#EEF1F6" })), yt = b(ut), kt = {
|
|
1166
1166
|
padding: 8,
|
|
1167
1167
|
marginTop: 8,
|
|
1168
1168
|
marginBottom: 12
|
|
@@ -1173,7 +1173,7 @@ const Ue = ({
|
|
|
1173
1173
|
flexDirection: "row",
|
|
1174
1174
|
justifyContent: "center"
|
|
1175
1175
|
},
|
|
1176
|
-
children: /* @__PURE__ */ t(R, { divProps: { style: kt }, image:
|
|
1176
|
+
children: /* @__PURE__ */ t(R, { divProps: { style: kt }, image: yt })
|
|
1177
1177
|
}
|
|
1178
1178
|
), v1 = ({
|
|
1179
1179
|
headerText: i,
|
|
@@ -1351,8 +1351,8 @@ const Ue = ({
|
|
|
1351
1351
|
maxRows: 4,
|
|
1352
1352
|
minRows: 4,
|
|
1353
1353
|
name: "Feedback",
|
|
1354
|
-
onChange: (
|
|
1355
|
-
h(
|
|
1354
|
+
onChange: (u) => {
|
|
1355
|
+
h(u.target.value), c(u.target.value);
|
|
1356
1356
|
},
|
|
1357
1357
|
onClick: () => s(),
|
|
1358
1358
|
placeholder: o,
|
|
@@ -1587,98 +1587,106 @@ const R1 = ({
|
|
|
1587
1587
|
}, I1 = ({
|
|
1588
1588
|
copy: i,
|
|
1589
1589
|
sendResponseAnalytics: l
|
|
1590
|
-
}) => /* @__PURE__ */ t(
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1590
|
+
}) => /* @__PURE__ */ t(
|
|
1591
|
+
f,
|
|
1592
|
+
{
|
|
1593
|
+
height: "100%",
|
|
1594
|
+
justifyContent: "space-between",
|
|
1595
|
+
sx: (r) => ({ background: r.palette.background.paper }),
|
|
1596
|
+
children: /* @__PURE__ */ d(p, { height: "100%", overflow: "auto", children: [
|
|
1597
|
+
/* @__PURE__ */ d(p, { children: [
|
|
1598
|
+
/* @__PURE__ */ t(ae, { sx: { p: "16px 24px 8px 24px", whiteSpace: "wrap" }, children: i.header_text }),
|
|
1599
|
+
/* @__PURE__ */ d(f, { sx: { gap: 12, px: 24 }, children: [
|
|
1600
|
+
/* @__PURE__ */ t(k, { color: "textSecondary", fontSize: 13, children: i.upper_description }),
|
|
1601
|
+
/* @__PURE__ */ t($, { children: i.upper_list_array.map((r, o) => /* @__PURE__ */ d(
|
|
1602
|
+
ee,
|
|
1603
|
+
{
|
|
1604
|
+
sx: {
|
|
1605
|
+
alignItems: "flex-start",
|
|
1606
|
+
alignSelf: "stretch",
|
|
1607
|
+
gap: 8,
|
|
1608
|
+
mb: 12,
|
|
1609
|
+
minHeight: "unset"
|
|
1610
|
+
},
|
|
1611
|
+
children: [
|
|
1612
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(C, { color: "success", name: "check_circle", size: 16, sx: { lineHeight: 1.2 } }) }),
|
|
1613
|
+
/* @__PURE__ */ t(
|
|
1614
|
+
T,
|
|
1615
|
+
{
|
|
1616
|
+
disableTypography: !0,
|
|
1617
|
+
secondary: r,
|
|
1618
|
+
sx: (n) => ({ color: n.palette.text.secondary, fontSize: 13 })
|
|
1619
|
+
}
|
|
1620
|
+
)
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
`list-item-${o}`
|
|
1624
|
+
)) })
|
|
1625
|
+
] })
|
|
1626
|
+
] }),
|
|
1627
|
+
/* @__PURE__ */ d(p, { children: [
|
|
1628
|
+
/* @__PURE__ */ t(M, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: i.lower_header_text }),
|
|
1629
|
+
/* @__PURE__ */ t(k, { color: "textSecondary", fontSize: 13, sx: { mb: 16, mx: 24 }, children: i.lower_description }),
|
|
1630
|
+
/* @__PURE__ */ t($, { sx: { p: "16px 24px" }, children: i.lower_list_array.map((r, o) => /* @__PURE__ */ d(
|
|
1631
|
+
ee,
|
|
1632
|
+
{
|
|
1633
|
+
sx: (n) => ({
|
|
1634
|
+
alignItems: "flex-start",
|
|
1635
|
+
alignSelf: "stretch",
|
|
1636
|
+
background: n.palette.background.paper,
|
|
1637
|
+
border: `1px solid ${n.palette.border.light}`,
|
|
1638
|
+
borderRadius: "8px",
|
|
1639
|
+
boxShadow: 1,
|
|
1640
|
+
gap: 12,
|
|
1641
|
+
mb: 24,
|
|
1642
|
+
p: 16
|
|
1643
|
+
}),
|
|
1644
|
+
children: [
|
|
1645
|
+
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(C, { name: r.icon_name, size: 24 }) }),
|
|
1646
|
+
/* @__PURE__ */ t(
|
|
1647
|
+
T,
|
|
1648
|
+
{
|
|
1649
|
+
primary: r.title,
|
|
1650
|
+
secondary: r.content,
|
|
1651
|
+
sx: (n) => ({
|
|
1652
|
+
"& > p": {
|
|
1653
|
+
color: n.palette.text.secondary,
|
|
1654
|
+
fontSize: 13,
|
|
1655
|
+
fontWeight: "400",
|
|
1656
|
+
lineHeight: "20px"
|
|
1657
|
+
}
|
|
1658
|
+
})
|
|
1659
|
+
}
|
|
1660
|
+
)
|
|
1661
|
+
]
|
|
1604
1662
|
},
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
secondary: r,
|
|
1612
|
-
sx: (n) => ({ color: n.palette.text.secondary, fontSize: 13 })
|
|
1613
|
-
}
|
|
1614
|
-
)
|
|
1615
|
-
]
|
|
1616
|
-
},
|
|
1617
|
-
`list-item-${o}`
|
|
1618
|
-
)) })
|
|
1619
|
-
] })
|
|
1620
|
-
] }),
|
|
1621
|
-
/* @__PURE__ */ d(p, { children: [
|
|
1622
|
-
/* @__PURE__ */ t(M, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: i.lower_header_text }),
|
|
1623
|
-
/* @__PURE__ */ t(k, { color: "textSecondary", fontSize: 13, sx: { mb: 16, mx: 24 }, children: i.lower_description }),
|
|
1624
|
-
/* @__PURE__ */ t($, { sx: { p: "16px 24px" }, children: i.lower_list_array.map((r, o) => /* @__PURE__ */ d(
|
|
1625
|
-
ee,
|
|
1626
|
-
{
|
|
1627
|
-
sx: (n) => ({
|
|
1628
|
-
alignItems: "flex-start",
|
|
1629
|
-
alignSelf: "stretch",
|
|
1630
|
-
background: n.palette.background.paper,
|
|
1631
|
-
border: `1px solid ${n.palette.border.light}`,
|
|
1632
|
-
borderRadius: "8px",
|
|
1633
|
-
boxShadow: 1,
|
|
1634
|
-
gap: 12,
|
|
1635
|
-
mb: 24,
|
|
1636
|
-
p: 16
|
|
1637
|
-
}),
|
|
1638
|
-
children: [
|
|
1639
|
-
/* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(C, { name: r.icon_name, size: 24 }) }),
|
|
1663
|
+
`lower-list-${o}`
|
|
1664
|
+
)) })
|
|
1665
|
+
] }),
|
|
1666
|
+
/* @__PURE__ */ d(f, { sx: { alignItems: "center", justifyContent: "center", pb: 16 }, children: [
|
|
1667
|
+
/* @__PURE__ */ t(M, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: i.footer_title }),
|
|
1668
|
+
/* @__PURE__ */ d(p, { sx: { display: "flex", gap: 24, p: "12px 24px" }, children: [
|
|
1640
1669
|
/* @__PURE__ */ t(
|
|
1641
|
-
|
|
1670
|
+
K,
|
|
1642
1671
|
{
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1672
|
+
"aria-label": i.aria_label_thumbs_down,
|
|
1673
|
+
onClick: () => l("no"),
|
|
1674
|
+
children: /* @__PURE__ */ t(C, { color: "secondary", name: "thumb_down", size: 24 })
|
|
1675
|
+
}
|
|
1676
|
+
),
|
|
1677
|
+
/* @__PURE__ */ t(
|
|
1678
|
+
K,
|
|
1679
|
+
{
|
|
1680
|
+
"aria-label": i.aria_label_thumbs_up,
|
|
1681
|
+
onClick: () => l("yes"),
|
|
1682
|
+
children: /* @__PURE__ */ t(C, { color: "secondary", name: "thumb_up", size: 24 })
|
|
1653
1683
|
}
|
|
1654
1684
|
)
|
|
1655
|
-
]
|
|
1656
|
-
}
|
|
1657
|
-
`lower-list-${o}`
|
|
1658
|
-
)) })
|
|
1659
|
-
] }),
|
|
1660
|
-
/* @__PURE__ */ d(f, { sx: { alignItems: "center", justifyContent: "center", pb: 16 }, children: [
|
|
1661
|
-
/* @__PURE__ */ t(M, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: i.footer_title }),
|
|
1662
|
-
/* @__PURE__ */ d(p, { sx: { display: "flex", gap: 24, p: "12px 24px" }, children: [
|
|
1663
|
-
/* @__PURE__ */ t(
|
|
1664
|
-
K,
|
|
1665
|
-
{
|
|
1666
|
-
"aria-label": i.aria_label_thumbs_down,
|
|
1667
|
-
onClick: () => l("no"),
|
|
1668
|
-
children: /* @__PURE__ */ t(C, { color: "secondary", name: "thumb_down", size: 24 })
|
|
1669
|
-
}
|
|
1670
|
-
),
|
|
1671
|
-
/* @__PURE__ */ t(
|
|
1672
|
-
K,
|
|
1673
|
-
{
|
|
1674
|
-
"aria-label": i.aria_label_thumbs_up,
|
|
1675
|
-
onClick: () => l("yes"),
|
|
1676
|
-
children: /* @__PURE__ */ t(C, { color: "secondary", name: "thumb_up", size: 24 })
|
|
1677
|
-
}
|
|
1678
|
-
)
|
|
1685
|
+
] })
|
|
1686
|
+
] })
|
|
1679
1687
|
] })
|
|
1680
|
-
|
|
1681
|
-
|
|
1688
|
+
}
|
|
1689
|
+
), V1 = ({
|
|
1682
1690
|
account_1_alt_text: i,
|
|
1683
1691
|
account_2_alt_text: l,
|
|
1684
1692
|
account_guid_1: r,
|
|
@@ -1717,7 +1725,7 @@ const R1 = ({
|
|
|
1717
1725
|
title: h,
|
|
1718
1726
|
totalSavedText: c
|
|
1719
1727
|
}) => {
|
|
1720
|
-
const m =
|
|
1728
|
+
const m = ue(r ? "dark" : "light");
|
|
1721
1729
|
return /* @__PURE__ */ t(Se, { theme: m, children: /* @__PURE__ */ t(p, { className: "mx-insights-mefr-body", "data-ui-test": "mefr-body", sx: { mb: 16 }, children: /* @__PURE__ */ d(Pe, { title: h, children: [
|
|
1722
1730
|
/* @__PURE__ */ t(
|
|
1723
1731
|
Xe,
|
|
@@ -1917,8 +1925,8 @@ const R1 = ({
|
|
|
1917
1925
|
leftLowerText: c,
|
|
1918
1926
|
leftUpperText: m,
|
|
1919
1927
|
rightLowerText: E,
|
|
1920
|
-
rightUpperText:
|
|
1921
|
-
sourceAccountGuid:
|
|
1928
|
+
rightUpperText: u,
|
|
1929
|
+
sourceAccountGuid: y
|
|
1922
1930
|
}) => /* @__PURE__ */ t(g.Fragment, { children: s ? /* @__PURE__ */ t(
|
|
1923
1931
|
he,
|
|
1924
1932
|
{
|
|
@@ -1930,7 +1938,7 @@ const R1 = ({
|
|
|
1930
1938
|
leftLowerText: c,
|
|
1931
1939
|
leftUpperText: m,
|
|
1932
1940
|
rightLowerText: E,
|
|
1933
|
-
rightUpperText:
|
|
1941
|
+
rightUpperText: u
|
|
1934
1942
|
}
|
|
1935
1943
|
) : /* @__PURE__ */ t(
|
|
1936
1944
|
Lt,
|
|
@@ -1938,7 +1946,7 @@ const R1 = ({
|
|
|
1938
1946
|
destinationAccountGuid: r,
|
|
1939
1947
|
externalAccountName: o,
|
|
1940
1948
|
heldAccountName: n,
|
|
1941
|
-
sourceAccountGuid:
|
|
1949
|
+
sourceAccountGuid: y
|
|
1942
1950
|
}
|
|
1943
1951
|
) }), bt = (i, l) => /* @__PURE__ */ e.createElement("svg", { width: 288, height: 156, viewBox: "0 0 288 156", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: l, ...i }, /* @__PURE__ */ e.createElement("rect", { width: 288, height: 156 }), /* @__PURE__ */ e.createElement("line", { x1: 16, y1: 119.5, x2: 272, y2: 119.5, stroke: "#A8B1BD" }), /* @__PURE__ */ e.createElement("path", { d: "M242 18C242 16.8954 242.895 16 244 16H262C263.105 16 264 16.8954 264 18V119H242V18Z", fill: "#CDD3DD" }), /* @__PURE__ */ e.createElement("path", { d: "M198 37C198 35.8954 198.895 35 200 35H218C219.105 35 220 35.8954 220 37V119H198V37Z", fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("path", { d: "M154 54C154 52.8954 154.895 52 156 52H174C175.105 52 176 52.8954 176 54V119H154V54Z", fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("path", { d: "M110 77C110 75.8954 110.895 75 112 75H130C131.105 75 132 75.8954 132 77V119H110V77Z", fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("path", { d: "M66 61C66 59.8954 66.8954 59 68 59H86C87.1046 59 88 59.8954 88 61V119H66V61Z", fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("path", { d: "M22 72C22 70.8954 22.8954 70 24 70H42C43.1046 70 44 70.8954 44 72V119H22V72Z", fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 23, y: 130, width: 20, height: 6, rx: 3, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 67, y: 130, width: 20, height: 6, rx: 3, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 111, y: 130, width: 20, height: 6, rx: 3, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 155, y: 130, width: 20, height: 6, rx: 3, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 199, y: 130, width: 20, height: 6, rx: 3, fill: "#E4E8EE" }), /* @__PURE__ */ e.createElement("rect", { x: 243, y: 130, width: 20, height: 6, rx: 3, fill: "#CDD3DD" })), ce = b(bt), F1 = ({
|
|
1944
1952
|
amounts: i,
|
|
@@ -1998,7 +2006,7 @@ const R1 = ({
|
|
|
1998
2006
|
}),
|
|
1999
2007
|
children: [
|
|
2000
2008
|
/* @__PURE__ */ t(
|
|
2001
|
-
|
|
2009
|
+
ye,
|
|
2002
2010
|
{
|
|
2003
2011
|
alt: o,
|
|
2004
2012
|
categoryGuid: i.primary_transaction?.top_level_category_guid || "",
|
|
@@ -2119,7 +2127,7 @@ const R1 = ({
|
|
|
2119
2127
|
displayData: o,
|
|
2120
2128
|
...n
|
|
2121
2129
|
}) => {
|
|
2122
|
-
const { no_spend_days: a } = i.payload, { noSpendDays: s, dollarBillAltText: h, daysOfTheWeek: c } = o, m = zt[a.length || 0], E = g.useRef(null), { height:
|
|
2130
|
+
const { no_spend_days: a } = i.payload, { noSpendDays: s, dollarBillAltText: h, daysOfTheWeek: c } = o, m = zt[a.length || 0], E = g.useRef(null), { height: u, width: y } = Q(E);
|
|
2123
2131
|
return /* @__PURE__ */ t(
|
|
2124
2132
|
I,
|
|
2125
2133
|
{
|
|
@@ -2135,7 +2143,7 @@ const R1 = ({
|
|
|
2135
2143
|
width: "100%",
|
|
2136
2144
|
children: [
|
|
2137
2145
|
/* @__PURE__ */ t("img", { alt: h, src: m, width: 138 }),
|
|
2138
|
-
a?.length >= 4 && /* @__PURE__ */ t(P, { height:
|
|
2146
|
+
a?.length >= 4 && /* @__PURE__ */ t(P, { height: u, shouldRun: !0, width: y }),
|
|
2139
2147
|
/* @__PURE__ */ t(Tt, { daysOfTheWeek: c, noSpendDays: s })
|
|
2140
2148
|
]
|
|
2141
2149
|
}
|