@mx-cartographer/experiences 6.2.9-alpha.al2 → 6.2.9-alpha.al4
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 +15 -18
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -3198,20 +3198,21 @@ const Dn = ({
|
|
3198
3198
|
sx: c = {},
|
3199
3199
|
title: d = ""
|
3200
3200
|
}) => {
|
3201
|
-
const [_, { height: u, width: h }] = oc(), m = () => {
|
3201
|
+
const [_, { height: u, width: h }] = oc(), m = () => window.opener && window.opener.location ? window.opener.location.toString() : document.referrer, C = () => {
|
3202
3202
|
try {
|
3203
|
-
window.
|
3204
|
-
{
|
3203
|
+
if (window.self !== window.top) {
|
3204
|
+
const f = {
|
3205
3205
|
type: "MINI_WIDGET_CTA_CLICK",
|
3206
3206
|
payload: {
|
3207
3207
|
widgetTitle: d,
|
3208
3208
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
3209
3209
|
}
|
3210
|
-
},
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3210
|
+
}, E = m().replace(/([^:]+:\/\/[^\/]+).*/, "$1"), y = window.parent || window.opener || !1;
|
3211
|
+
y && y.postMessage && E && y.postMessage(f, E);
|
3212
|
+
}
|
3213
|
+
r && r();
|
3214
|
+
} catch (f) {
|
3215
|
+
console.error("Error sending postMessage:", f);
|
3215
3216
|
}
|
3216
3217
|
};
|
3217
3218
|
return /* @__PURE__ */ l(Gt, { className: e, sx: { borderRadius: "8px", ...c }, children: [
|
@@ -3222,7 +3223,7 @@ const Dn = ({
|
|
3222
3223
|
ee,
|
3223
3224
|
{
|
3224
3225
|
endIcon: /* @__PURE__ */ t(yt, { name: "keyboard_arrow_right_rounded" }),
|
3225
|
-
onClick:
|
3226
|
+
onClick: C,
|
3226
3227
|
children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: o })
|
3227
3228
|
}
|
3228
3229
|
),
|
@@ -20543,10 +20544,6 @@ const Xa = ({
|
|
20543
20544
|
) : /* @__PURE__ */ t(ue, {});
|
20544
20545
|
}, a4 = A(hf), gf = ({ onPrimaryCtaClick: e, sx: n }) => {
|
20545
20546
|
const { visibleAccounts: i } = Re(), { accounts: a } = I(), { isCopyLoaded: r, isInitialized: o, selectedAccounts: s, setSelectedAccounts: c } = ce();
|
20546
|
-
window.addEventListener("message", d, !1);
|
20547
|
-
function d(_) {
|
20548
|
-
console.log(`event ${_.data}`);
|
20549
|
-
}
|
20550
20547
|
return g.useEffect(() => {
|
20551
20548
|
c(i);
|
20552
20549
|
}, [i]), r ? /* @__PURE__ */ t(
|
@@ -20559,19 +20556,19 @@ const Xa = ({
|
|
20559
20556
|
title: a.mini_title,
|
20560
20557
|
children: o ? /* @__PURE__ */ l(ie, { children: [
|
20561
20558
|
s.length === 0 && /* @__PURE__ */ t(X, { sx: { justifyContent: "center" }, children: a.no_accounts }),
|
20562
|
-
s.map((
|
20563
|
-
const
|
20559
|
+
s.map((d, _) => {
|
20560
|
+
const u = s.indexOf(d) === s.length - 1;
|
20564
20561
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
20565
20562
|
/* @__PURE__ */ t(
|
20566
20563
|
vi,
|
20567
20564
|
{
|
20568
|
-
account:
|
20565
|
+
account: d,
|
20569
20566
|
listItemProps: { sx: { px: 24 } },
|
20570
20567
|
shouldShowConnectionStatus: !0
|
20571
20568
|
}
|
20572
20569
|
),
|
20573
|
-
!
|
20574
|
-
] }, `account-item${
|
20570
|
+
!u && /* @__PURE__ */ t(G, { "aria-hidden": "true", variant: "inset" })
|
20571
|
+
] }, `account-item${_}`);
|
20575
20572
|
})
|
20576
20573
|
] }) : /* @__PURE__ */ t(ue, {})
|
20577
20574
|
}
|