@mx-cartographer/experiences 9.7.116 → 9.7.118
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 +12 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Drawer.es.js +30 -29
- package/dist/common/components/drawer/Drawer.es.js.map +1 -1
- package/dist/common/components/drawer/Header.d.ts +3 -0
- package/dist/common/components/drawer/Header.es.js +51 -45
- package/dist/common/components/drawer/Header.es.js.map +1 -1
- package/dist/core/stores/InsightsV2Store.d.ts +10 -0
- package/dist/core/stores/InsightsV2Store.es.js +15 -7
- package/dist/core/stores/InsightsV2Store.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/ActionBlockLayer.es.js +44 -33
- package/dist/insights-v2/actionBlocks/ActionBlockLayer.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.d.ts +1 -9
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js +96 -83
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/AmountInputModalBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.d.ts +5 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js +62 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/CreateBudgetDialog.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/AmountInputModalBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js +212 -145
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetDetailsBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.d.ts +3 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js +36 -36
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/BudgetSummary.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.d.ts +32 -2
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js +68 -22
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.d.ts +3 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js +34 -0
- package/dist/insights-v2/actionBlocks/BudgetDetailsBlock/useBudgetDetailsPrepare.es.js.map +1 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js +81 -78
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/TransactionHistoryBlock.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.d.ts +11 -8
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js +116 -91
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/useTransactionHistoryPrepare.es.js +3 -3
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.d.ts +2 -0
- package/dist/insights-v2/actionBlocks/TransactionHistoryBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/actionBlocks/util.d.ts +2 -11
- package/dist/insights-v2/actionBlocks/util.es.js +16 -6
- package/dist/insights-v2/actionBlocks/util.es.js.map +1 -1
- package/dist/insights-v2/analytics/analyticsEventsConfig.d.ts +16 -0
- package/dist/insights-v2/analytics/analyticsEventsConfig.es.js +19 -2
- package/dist/insights-v2/analytics/analyticsEventsConfig.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js +8 -8
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/BarchartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.d.ts +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js +28 -27
- package/dist/insights-v2/blocks/ChartBlocks/BarchartBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.d.ts +1 -7
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js +8 -10
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/DonutChartBlock.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.d.ts +13 -17
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js +16 -11
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/layout.es.js.map +1 -1
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.d.ts +6 -2
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.es.js +7 -6
- package/dist/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.es.js.map +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/AccountBlock.es.js +14 -14
- package/dist/insights-v2/blocks/ComponentBlocks/AccountBlock/IconComponent.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/AccountSwitchBlock/AccountSwitchBlock.es.js +1 -1
- package/dist/insights-v2/blocks/ComponentBlocks/DebtsBlock/DebtsBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/MerchantBlock/MerchantBlock.es.js +4 -4
- package/dist/insights-v2/blocks/ComponentBlocks/TransactionBlock/TransactionBlock.es.js +10 -10
- package/dist/insights-v2/blocks/ImageBlocks/SVGImageBlock/SVGImageBlock.es.js +4 -4
- package/dist/insights-v2/components/BaseLayout.es.js +137 -118
- package/dist/insights-v2/components/BaseLayout.es.js.map +1 -1
- package/dist/insights-v2/mappings/blocks.d.ts +1 -0
- package/dist/insights-v2/mappings/blocks.es.js +131 -121
- package/dist/insights-v2/mappings/blocks.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { getCategoryColor as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { getCategoryColor as t } from "../../../../core/utils/CategoryUtil.es.js";
|
|
2
|
+
import { resolveVariantConfig as n } from "../../resolveVariantConfig.es.js";
|
|
3
|
+
import { donutChartVariant as e, getLayoutConfig as m } from "./layout.es.js";
|
|
4
|
+
var y = (i, a, o) => {
|
|
5
|
+
const r = n(m(o), i, e.DepositSummary, "DonutChartBlock");
|
|
6
|
+
return "dynamicPrimary" in r && r.dynamicPrimary === "creditUtilization" ? [Number(a.main?.value ?? 0) > 30 ? o.palette.error.main : o.palette.warning.main, r.secondaryColor] : "secondaryColor" in r ? [t(a.category_guid ?? "", o), r.secondaryColor] : r.colors;
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
y as getDonutChartColors
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
//# sourceMappingURL=utils.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.ts"],"sourcesContent":["import { type Theme } from '@mui/material/styles'\nimport { getCategoryColor } from '../../../../core/utils/CategoryUtil'\nimport {
|
|
1
|
+
{"version":3,"file":"utils.es.js","names":[],"sources":["../../../../../src/insights-v2/blocks/ChartBlocks/DonutChartBlock/utils.ts"],"sourcesContent":["import { type Theme } from '@mui/material/styles'\nimport { getCategoryColor } from '../../../../core/utils/CategoryUtil'\nimport type { DonutChartBlockData } from '../../../../core/types/InsightsInstanceSlotData'\nimport { resolveVariantConfig } from '../../resolveVariantConfig'\nimport { donutChartVariant, getLayoutConfig } from './layout'\n\n/** The facts the palette may read: the centre value (credit utilization) and the category. */\nexport type DonutColorData = Partial<DonutChartBlockData> & { category_guid?: string }\n\nexport const getDonutChartColors = (\n variant: string | null | undefined,\n blockData: DonutColorData,\n theme: Theme,\n): [string, string] => {\n const variantConfig = resolveVariantConfig(\n getLayoutConfig(theme),\n variant,\n donutChartVariant.DepositSummary,\n 'DonutChartBlock',\n )\n\n if ('dynamicPrimary' in variantConfig && variantConfig.dynamicPrimary === 'creditUtilization') {\n const utilization = Number(blockData.main?.value ?? 0)\n const primaryColor = utilization > 30 ? theme.palette.error.main : theme.palette.warning.main\n return [primaryColor, variantConfig.secondaryColor]\n }\n\n if ('secondaryColor' in variantConfig) {\n const categoryColor = getCategoryColor(blockData.category_guid ?? '', theme)\n return [categoryColor, variantConfig.secondaryColor]\n }\n\n return variantConfig.colors\n}\n"],"mappings":";;;AASA,IAAa,IAAA,CACX,GACA,GACA,MACqB;AACrB,QAAM,IAAgB,EACpB,EAAgB,CAAK,GACrB,GACA,EAAkB,gBAClB,iBACF;AAEA,SAAI,oBAAoB,KAAiB,EAAc,mBAAmB,sBAGjE,CAFa,OAAO,EAAU,MAAM,SAAS,CAC/B,IAAc,KAAK,EAAM,QAAQ,MAAM,OAAO,EAAM,QAAQ,QAAQ,MACnE,EAAc,cAAc,IAGhD,oBAAoB,IAEf,CADe,EAAiB,EAAU,iBAAiB,IAAI,CAC9D,GAAe,EAAc,cAAc,IAG9C,EAAc;AACvB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { slot as d } from "../../../../core/types/Insights.es.js";
|
|
2
2
|
import { formatCurrency as I } from "../../../../core/utils/NumberFormatting.es.js";
|
|
3
|
-
import {
|
|
4
|
-
import H from "../../../
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { ReactComponent as G } from "../../../components/shared/images/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { resolveVariantConfig as P } from "../../resolveVariantConfig.es.js";
|
|
4
|
+
import { useContainerDimensions as H } from "../../../hooks/useContainerDimensions.es.js";
|
|
5
|
+
import N from "../../../components/LogoFromGuid.es.js";
|
|
6
|
+
import { Confetti as E } from "../../../components/shared/Confetti.es.js";
|
|
7
|
+
import { ReactComponent as G } from "../../../components/shared/images/PaidOffCard.es.js";
|
|
8
|
+
import { ReactComponent as O } from "../../../components/shared/images/SavingsAccountDeposit.es.js";
|
|
9
|
+
import { statusIconName as W } from "../../../components/statusIcon.es.js";
|
|
10
10
|
import { isDetailedAccountVariant as q } from "../DetailedAccountBlock/layout.es.js";
|
|
11
11
|
import J from "../DetailedAccountBlock/DetailedAccountBlock.es.js";
|
|
12
12
|
import { HeaderComponent as K } from "./HeaderComponent.es.js";
|
|
@@ -20,11 +20,11 @@ import { jsx as o, jsxs as r } from "react/jsx-runtime";
|
|
|
20
20
|
import { useTheme as X } from "@mui/material/styles";
|
|
21
21
|
import a from "@mui/material/Box";
|
|
22
22
|
var vo = ({ payload: g }) => {
|
|
23
|
-
const h = X(), b = U(null), { height: w, width: v } =
|
|
23
|
+
const h = X(), b = U(null), { height: w, width: v } = H(b), { instance_slot: n } = g, { variant: p, institution_guid: D, institution_name: A, icon_name: B, merchant_name: F } = n;
|
|
24
24
|
if (q(p)) return /* @__PURE__ */ o(J, { payload: g });
|
|
25
|
-
const { data: i } = n, m = i !== void 0, f = d(i, "amount"), u = m ? typeof f == "number" && Number.isFinite(f) ? f : void 0 : n.amount, y = d(i, "sub_text"), R = typeof y == "string" ? y : void 0, T = m ? R : n.sub_text, L = m ? R : n.label, _ = d(i, "header_text"), s = m ? typeof _ == "string" ? _ : void 0 : n.header_text, c = d(i, "logo"), t =
|
|
25
|
+
const { data: i } = n, m = i !== void 0, f = d(i, "amount"), u = m ? typeof f == "number" && Number.isFinite(f) ? f : void 0 : n.amount, y = d(i, "sub_text"), R = typeof y == "string" ? y : void 0, T = m ? R : n.sub_text, L = m ? R : n.label, _ = d(i, "header_text"), s = m ? typeof _ == "string" ? _ : void 0 : n.header_text, c = d(i, "logo"), t = P(M(h), p, "default", "AccountBlock");
|
|
26
26
|
if (t?.isConfetti) {
|
|
27
|
-
const x =
|
|
27
|
+
const x = W(c?.guid), V = {
|
|
28
28
|
paidOffCard: /* @__PURE__ */ o(a, {
|
|
29
29
|
sx: {
|
|
30
30
|
flexShrink: 0,
|
|
@@ -32,7 +32,7 @@ var vo = ({ payload: g }) => {
|
|
|
32
32
|
position: "relative",
|
|
33
33
|
width: 48
|
|
34
34
|
},
|
|
35
|
-
children: /* @__PURE__ */ o(
|
|
35
|
+
children: /* @__PURE__ */ o(G, {
|
|
36
36
|
"aria-hidden": !0,
|
|
37
37
|
role: "presentation",
|
|
38
38
|
style: {
|
|
@@ -42,7 +42,7 @@ var vo = ({ payload: g }) => {
|
|
|
42
42
|
}
|
|
43
43
|
})
|
|
44
44
|
}),
|
|
45
|
-
savings: /* @__PURE__ */ o(
|
|
45
|
+
savings: /* @__PURE__ */ o(O, {
|
|
46
46
|
"aria-hidden": !0,
|
|
47
47
|
height: 55,
|
|
48
48
|
role: "presentation",
|
|
@@ -71,7 +71,7 @@ var vo = ({ payload: g }) => {
|
|
|
71
71
|
size: t.logo_icon_size ?? 24,
|
|
72
72
|
sx: { color: "success.contrastText" }
|
|
73
73
|
})
|
|
74
|
-
}) : c?.guid ? /* @__PURE__ */ o(
|
|
74
|
+
}) : c?.guid ? /* @__PURE__ */ o(N, {
|
|
75
75
|
logo: c,
|
|
76
76
|
size: 48
|
|
77
77
|
}) : null
|
|
@@ -103,7 +103,7 @@ var vo = ({ payload: g }) => {
|
|
|
103
103
|
position: "absolute",
|
|
104
104
|
zIndex: 1
|
|
105
105
|
},
|
|
106
|
-
children: /* @__PURE__ */ o(
|
|
106
|
+
children: /* @__PURE__ */ o(E, {
|
|
107
107
|
height: w,
|
|
108
108
|
shouldRun: w > 0 && v > 0,
|
|
109
109
|
width: v
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a from "../../../../common/components/IconBacking.es.js";
|
|
2
|
-
import u from "
|
|
2
|
+
import { resolveVariantConfig as u } from "../../resolveVariantConfig.es.js";
|
|
3
|
+
import g from "../../../components/LogoFromGuid.es.js";
|
|
3
4
|
import { statusIconName as l } from "../../../components/statusIcon.es.js";
|
|
4
|
-
import { resolveVariantConfig as g } from "../../resolveVariantConfig.es.js";
|
|
5
5
|
import { getLayoutConfig as f } from "./layout.es.js";
|
|
6
6
|
import { InstitutionLogo as p } from "@mxenabled/mxui";
|
|
7
7
|
import { Icon as n } from "@mxenabled/mx-icons";
|
|
@@ -9,14 +9,14 @@ import { jsx as i, jsxs as s } from "react/jsx-runtime";
|
|
|
9
9
|
import { useTheme as b } from "@mui/material/styles";
|
|
10
10
|
import { Stack as c } from "@mui/material";
|
|
11
11
|
var y = ({ slot: r, variant: d, logo: e }) => {
|
|
12
|
-
const m = b(), o =
|
|
12
|
+
const m = b(), o = u(f(m), d, "default", "AccountBlock");
|
|
13
13
|
if (/^INS-[A-Za-z0-9-]+$/.test(e?.guid ?? "")) return /* @__PURE__ */ s(c, {
|
|
14
14
|
sx: {
|
|
15
15
|
alignItems: "center",
|
|
16
16
|
flexDirection: "row",
|
|
17
17
|
position: "relative"
|
|
18
18
|
},
|
|
19
|
-
children: [/* @__PURE__ */ i(
|
|
19
|
+
children: [/* @__PURE__ */ i(g, {
|
|
20
20
|
logo: e,
|
|
21
21
|
size: 48
|
|
22
22
|
}), o.badge && /* @__PURE__ */ i(a, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import r from "../../../components/LogoFromGuid.es.js";
|
|
2
1
|
import { resolveVariantConfig as d } from "../../resolveVariantConfig.es.js";
|
|
2
|
+
import r from "../../../components/LogoFromGuid.es.js";
|
|
3
3
|
import u from "../../../components/TransferLogoCard.es.js";
|
|
4
4
|
import { accountSwitchVariant as p, getLayoutConfig as h } from "./layout.es.js";
|
|
5
5
|
import { Icon as C } from "@mxenabled/mx-icons";
|
|
@@ -2,8 +2,8 @@ import { DATE_FORMATS_INTL as R, formatDate as k } from "../../../../core/consta
|
|
|
2
2
|
import { useGlobalCopyStore as F } from "../../../../common/context/hooks.es.js";
|
|
3
3
|
import { slot as f } from "../../../../core/types/Insights.es.js";
|
|
4
4
|
import { formatCurrency as i, formatPercentage as N } from "../../../../core/utils/NumberFormatting.es.js";
|
|
5
|
-
import P from "
|
|
6
|
-
import
|
|
5
|
+
import { resolveVariantConfig as P } from "../../resolveVariantConfig.es.js";
|
|
6
|
+
import B from "../../../components/LogoFromGuid.es.js";
|
|
7
7
|
import { DepositLogo as Y } from "../../../components/ComponentBlocks/DepositLogo.es.js";
|
|
8
8
|
import G from "../../../components/DebtPayoffCard.es.js";
|
|
9
9
|
import j from "../../../components/TransactionListCard.es.js";
|
|
@@ -17,13 +17,13 @@ var U = 32, W = /* @__PURE__ */ new Set([
|
|
|
17
17
|
"credit_card",
|
|
18
18
|
"creditcard"
|
|
19
19
|
]), Z = (t) => W.has((t ?? "").trim().toLowerCase()) ? "credit_card" : "account_balance", $ = (t) => typeof t == "object" && t !== null && typeof t.primary_text == "string", q = (t) => !!t?.balance_label && !!t.payoff_date_label && !!t.monthly_payment_label && !!t.interest_rate_label, ct = ({ payload: t }) => {
|
|
20
|
-
const T = z(), o = F().insights_feed?.debts_block, { instance_slot: u } = t, { data: s, variant: A } = u, _ =
|
|
20
|
+
const T = z(), o = F().insights_feed?.debts_block, { instance_slot: u } = t, { data: s, variant: A } = u, _ = P(H, A, M.ProjectedPayoff, "DebtsBlock"), p = _.card === "summary", e = q(o) ? o : void 0, m = o?.total_balance_label, b = p ? !!m : !!e;
|
|
21
21
|
if (V.useEffect(() => {
|
|
22
22
|
b || console.warn(`debts_block: ${o ? "copy incomplete" : "copy namespace missing"}; rendering without its labelled figures`);
|
|
23
23
|
}, [o, b]), p) {
|
|
24
24
|
const r = f(s, "series"), O = (Array.isArray(r) ? r : []).filter($).map((a) => ({
|
|
25
25
|
amount: typeof a.amount == "number" ? i(a.amount, "0,0.00") : "",
|
|
26
|
-
leading: /* @__PURE__ */ l(
|
|
26
|
+
leading: /* @__PURE__ */ l(B, {
|
|
27
27
|
logo: a.logo,
|
|
28
28
|
size: U
|
|
29
29
|
}),
|
package/dist/insights-v2/blocks/ComponentBlocks/DetailedAccountBlock/DetailedAccountBlock.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { buildDynamicCopy as l } from "../../../../core/utils/Localization.es.js";
|
|
2
2
|
import { GlobalDataContext as u } from "../../../../common/context/GlobalDataProvider.es.js";
|
|
3
3
|
import { slot as s } from "../../../../core/types/Insights.es.js";
|
|
4
|
-
import c from "
|
|
5
|
-
import
|
|
4
|
+
import { resolveVariantConfig as c } from "../../resolveVariantConfig.es.js";
|
|
5
|
+
import d from "../../../components/LogoFromGuid.es.js";
|
|
6
6
|
import g from "../../../components/DirectDepositCard.es.js";
|
|
7
7
|
import { detailedAccountVariant as p, getLayoutConfig as f } from "./layout.es.js";
|
|
8
8
|
import { useContext as _ } from "react";
|
|
@@ -18,10 +18,10 @@ var n = (o, r) => s(o.data, r) ?? o[r], y = (o, r) => {
|
|
|
18
18
|
alt: r ? l(r, a) : a
|
|
19
19
|
};
|
|
20
20
|
}, G = ({ payload: o }) => {
|
|
21
|
-
const r = v(), { instance_slot: t } = o, e = _(u)?.globalStore.copyStore.copy.insights_feed?.general?.institution_Logo, a = y(t, e), i =
|
|
21
|
+
const r = v(), { instance_slot: t } = o, e = _(u)?.globalStore.copyStore.copy.insights_feed?.general?.institution_Logo, a = y(t, e), i = c(f(r), t.variant, p.Neutral, "DetailedAccountBlock");
|
|
22
22
|
return /* @__PURE__ */ m(g, {
|
|
23
23
|
...i,
|
|
24
|
-
logo: a?.guid ? /* @__PURE__ */ m(
|
|
24
|
+
logo: a?.guid ? /* @__PURE__ */ m(d, {
|
|
25
25
|
logo: a,
|
|
26
26
|
size: 48
|
|
27
27
|
}) : null,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { slot as s } from "../../../../core/types/Insights.es.js";
|
|
2
2
|
import { formatCurrency as A } from "../../../../core/utils/NumberFormatting.es.js";
|
|
3
3
|
import L from "../../../components/StatusPill.es.js";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import { resolveVariantConfig as S } from "../../resolveVariantConfig.es.js";
|
|
5
|
+
import v, { isLogoGuid as x } from "../../../components/LogoFromGuid.es.js";
|
|
6
6
|
import O from "../../../components/LogoClusterCard.es.js";
|
|
7
7
|
import E from "../../../components/MerchantHighlightCard.es.js";
|
|
8
8
|
import B from "../../../components/P2PLogoStack.es.js";
|
|
@@ -17,7 +17,7 @@ var u = 64, p = 6, z = 72, G = 3, M = [
|
|
|
17
17
|
], F = 32, i = (t) => typeof t == "string" ? t : void 0, g = (t) => {
|
|
18
18
|
if (!t || typeof t != "object" || Array.isArray(t)) return;
|
|
19
19
|
const { alt: a, color: r, fallback_guid: o, guid: n } = t;
|
|
20
|
-
if (!(typeof n != "string" || !
|
|
20
|
+
if (!(typeof n != "string" || !x(n)))
|
|
21
21
|
return {
|
|
22
22
|
alt: i(a),
|
|
23
23
|
color: i(r),
|
|
@@ -39,7 +39,7 @@ var u = 64, p = 6, z = 72, G = 3, M = [
|
|
|
39
39
|
logo: r,
|
|
40
40
|
size: a
|
|
41
41
|
}, r.guid)) : [y], J = ({ payload: t }) => {
|
|
42
|
-
const { instance_slot: a } = t, { data: r } = a, o =
|
|
42
|
+
const { instance_slot: a } = t, { data: r } = a, o = S(N, a.variant, R.SingleStandard, "MerchantBlock"), n = (l) => s(r, l) ?? a[l], m = i(n("status_text")), f = o.status && m ? /* @__PURE__ */ e(L, {
|
|
43
43
|
icon: /* @__PURE__ */ e(_, {
|
|
44
44
|
"aria-hidden": !0,
|
|
45
45
|
"data-icon": "check_circle",
|
|
@@ -3,11 +3,11 @@ import { slot as c } from "../../../../core/types/Insights.es.js";
|
|
|
3
3
|
import { formatCurrency as C } from "../../../../core/utils/NumberFormatting.es.js";
|
|
4
4
|
import { getCategoryColor as I } from "../../../../core/utils/CategoryUtil.es.js";
|
|
5
5
|
import { useBeatActions as U } from "../../../beatActions.es.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import K from "../../../components/
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
import { resolveVariantConfig as W } from "../../resolveVariantConfig.es.js";
|
|
7
|
+
import { USER_RESPONSE as Y, repeatingTransactionOf as J } from "../../../ctaActions/subscriptionAnswer.es.js";
|
|
8
|
+
import { logoFromRef as K } from "../../../components/shared/EntityLogo.es.js";
|
|
9
|
+
import Q from "../../../components/LogoFromGuid.es.js";
|
|
10
|
+
import { statusIconName as X, statusIconPalette as S } from "../../../components/statusIcon.es.js";
|
|
11
11
|
import oo from "../../../components/TransactionListCard.es.js";
|
|
12
12
|
import to from "../../../components/StatusMessageCard.es.js";
|
|
13
13
|
import { subscriptionFrequency as ro } from "../../../components/SubscriptionStatus/subscriptionFrequency.es.js";
|
|
@@ -19,7 +19,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
19
19
|
import { alpha as G, useTheme as uo } from "@mui/material/styles";
|
|
20
20
|
import d from "@mui/material/Box";
|
|
21
21
|
var u = 32, mo = Math.round(u * 0.625), lo = 24, T = 32, go = 20, fo = ({ icon: a }) => {
|
|
22
|
-
const n =
|
|
22
|
+
const n = X(a?.guid);
|
|
23
23
|
return n ? /* @__PURE__ */ r(d, {
|
|
24
24
|
"aria-hidden": !0,
|
|
25
25
|
"data-icon": n,
|
|
@@ -41,7 +41,7 @@ var u = 32, mo = Math.round(u * 0.625), lo = 24, T = 32, go = 20, fo = ({ icon:
|
|
|
41
41
|
})
|
|
42
42
|
}) : null;
|
|
43
43
|
}, po = (a, n, s, m) => {
|
|
44
|
-
const o =
|
|
44
|
+
const o = K(a.logo, a.primary_text);
|
|
45
45
|
if (o) {
|
|
46
46
|
if (o.logo_name) {
|
|
47
47
|
const i = !!o.logo_fill, e = o.logo_color ?? s.palette.chart.chart2 ?? s.palette.primary.main;
|
|
@@ -93,17 +93,17 @@ var u = 32, mo = Math.round(u * 0.625), lo = 24, T = 32, go = 20, fo = ({ icon:
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}, Fo = no(({ payload: a }) => {
|
|
96
|
-
const n = uo(), { getTopLevelCategoryGuid: s } = H(), m = V(), { recurring: o } = P(), { beat: i } = U(), { data: e, variant: B } = a.instance_slot, { answeredBackground: p, background: l, cardVariant: L, creditAmounts: R, elevated: k, followsSubscription: g, headerColor: O, raised: A, showFooter: $, showFrequency: y, showHeader: z, statusMessage: F, sx: N, tintedCategoryLogo: M } =
|
|
96
|
+
const n = uo(), { getTopLevelCategoryGuid: s } = H(), m = V(), { recurring: o } = P(), { beat: i } = U(), { data: e, variant: B } = a.instance_slot, { answeredBackground: p, background: l, cardVariant: L, creditAmounts: R, elevated: k, followsSubscription: g, headerColor: O, raised: A, showFooter: $, showFrequency: y, showHeader: z, statusMessage: F, sx: N, tintedCategoryLogo: M } = W(eo(n), B, io.NoHeader, "TransactionBlock"), _ = (y || g) && i ? J({
|
|
97
97
|
beat: i,
|
|
98
98
|
stores: m
|
|
99
|
-
}) : void 0, h = !!g && _?.user_response ===
|
|
99
|
+
}) : void 0, h = !!g && _?.user_response === Y.CONFIRMED;
|
|
100
100
|
if (F) {
|
|
101
101
|
const t = c(e, "message");
|
|
102
102
|
return typeof t != "string" || !t.trim() ? (console.warn("[TransactionBlock] status_message has no message — rendering nothing."), null) : /* @__PURE__ */ r(to, {
|
|
103
103
|
icon: /* @__PURE__ */ r(d, {
|
|
104
104
|
"aria-hidden": "true",
|
|
105
105
|
sx: { display: "flex" },
|
|
106
|
-
children: /* @__PURE__ */ r(
|
|
106
|
+
children: /* @__PURE__ */ r(Q, {
|
|
107
107
|
logo: c(e, "icon"),
|
|
108
108
|
size: lo
|
|
109
109
|
})
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ThemedSVGImage as f } from "../../../components/chartblocks/ThemedSVGImage.es.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { resolveVariantConfig as p } from "../../resolveVariantConfig.es.js";
|
|
3
|
+
import { CtaStatus as d } from "../../../components/CtaStatus.es.js";
|
|
4
4
|
import { getLayoutConfig as v } from "./layout.es.js";
|
|
5
5
|
import { EmergencySavingsAccountPicker as h } from "./EmergencySavingsAccountPicker.es.js";
|
|
6
6
|
import s from "@mui/material/Stack";
|
|
7
7
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t }, beatGuid: c }) => {
|
|
9
|
-
const l = t === "mini", a = t === "full", { variant: g, data: e } = m, i =
|
|
9
|
+
const l = t === "mini", a = t === "full", { variant: g, data: e } = m, i = p(v(n?.isCIBC), g, "savings", "SVGImageBlock"), r = typeof e?.saved_label == "string" ? e.saved_label.trim() : "";
|
|
10
10
|
return /* @__PURE__ */ u(s, {
|
|
11
11
|
alignItems: "center",
|
|
12
12
|
sx: { width: "100%" },
|
|
@@ -25,7 +25,7 @@ var V = ({ payload: { instance_slot: m, instance_slot_data: n, widget_type: t },
|
|
|
25
25
|
px: 16,
|
|
26
26
|
width: "100%"
|
|
27
27
|
},
|
|
28
|
-
children: /* @__PURE__ */ o(
|
|
28
|
+
children: /* @__PURE__ */ o(d, {
|
|
29
29
|
icon: "check_circle",
|
|
30
30
|
label: r,
|
|
31
31
|
tone: "success"
|