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/index.cjs
CHANGED
@@ -12287,9 +12287,9 @@ const EventProvider = (_a) => {
|
|
12287
12287
|
const { jumpToWeb } = useEventReport();
|
12288
12288
|
const [element, setElement] = React.useState(null);
|
12289
12289
|
const handleClick = lodash.throttle((event) => {
|
12290
|
-
var _a, _b, _c, _d, _e, _f
|
12290
|
+
var _a, _b, _c, _d, _e, _f;
|
12291
12291
|
event.preventDefault();
|
12292
|
-
const item =
|
12292
|
+
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;
|
12293
12293
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
12294
12294
|
eventSubject: 'clickCta',
|
12295
12295
|
eventDescription: 'User clicked the CTA'
|
@@ -12298,10 +12298,10 @@ const EventProvider = (_a) => {
|
|
12298
12298
|
? 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 }));
|
12299
12299
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
12300
12300
|
if (isExternalLink) {
|
12301
|
-
const link = ((
|
12301
|
+
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);
|
12302
12302
|
if (jumpLink || link) {
|
12303
|
-
const cta = ((
|
12304
|
-
const product = ((
|
12303
|
+
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);
|
12304
|
+
const product = ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct) || multItem;
|
12305
12305
|
jumpToWeb(rec, product, cta, index);
|
12306
12306
|
window.location.href = window.getJointUtmLink(jumpLink || link || '');
|
12307
12307
|
}
|