@mx-cartographer/experiences 6.2.9-alpha.al3 → 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 +10 -9
- 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
|
),
|