pb-sxp-ui 1.9.7 → 1.9.8
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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +5 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/template/components/EventProvider.js +5 -5
- package/lib/materials/sxp/template/components/EventProvider.js +5 -5
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -12280,9 +12280,9 @@ Made in Italy` })));
|
|
12280
12280
|
const { jumpToWeb } = useEventReport();
|
12281
12281
|
const [element, setElement] = React.useState(null);
|
12282
12282
|
const handleClick = lodash.throttle((event) => {
|
12283
|
-
var _a, _b, _c, _d, _e, _f
|
12283
|
+
var _a, _b, _c, _d, _e, _f;
|
12284
12284
|
event.preventDefault();
|
12285
|
-
const item =
|
12285
|
+
const item = multItem ? multItem : (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
|
12286
12286
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
12287
12287
|
eventSubject: 'clickCta',
|
12288
12288
|
eventDescription: 'User clicked the CTA'
|
@@ -12291,10 +12291,10 @@ Made in Italy` })));
|
|
12291
12291
|
? Object.assign(Object.assign({}, rec), { video: Object.assign(Object.assign({}, rec === null || rec === void 0 ? void 0 : rec.video), { bindProduct: multItem }), index, multiCheckIndex }) : Object.assign(Object.assign({}, rec), { index }));
|
12292
12292
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
12293
12293
|
if (isExternalLink) {
|
12294
|
-
const link = ((
|
12294
|
+
const link = ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) === null || _d === void 0 ? void 0 : _d.link) || (multItem === null || multItem === void 0 ? void 0 : multItem.link);
|
12295
12295
|
if (jumpLink || link) {
|
12296
|
-
const cta = ((
|
12297
|
-
const product = ((
|
12296
|
+
const cta = ((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta) || (multItem === null || multItem === void 0 ? void 0 : multItem.bindCta);
|
12297
|
+
const product = ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct) || multItem;
|
12298
12298
|
jumpToWeb(rec, product, cta, index);
|
12299
12299
|
window.location.href = window.getJointUtmLink(jumpLink || link || '');
|
12300
12300
|
}
|