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.js
CHANGED
@@ -12265,9 +12265,9 @@ const EventProvider = (_a) => {
|
|
12265
12265
|
const { jumpToWeb } = useEventReport();
|
12266
12266
|
const [element, setElement] = useState(null);
|
12267
12267
|
const handleClick = throttle((event) => {
|
12268
|
-
var _a, _b, _c, _d, _e, _f
|
12268
|
+
var _a, _b, _c, _d, _e, _f;
|
12269
12269
|
event.preventDefault();
|
12270
|
-
const item =
|
12270
|
+
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;
|
12271
12271
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
12272
12272
|
eventSubject: 'clickCta',
|
12273
12273
|
eventDescription: 'User clicked the CTA'
|
@@ -12276,10 +12276,10 @@ const EventProvider = (_a) => {
|
|
12276
12276
|
? 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 }));
|
12277
12277
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
12278
12278
|
if (isExternalLink) {
|
12279
|
-
const link = ((
|
12279
|
+
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);
|
12280
12280
|
if (jumpLink || link) {
|
12281
|
-
const cta = ((
|
12282
|
-
const product = ((
|
12281
|
+
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);
|
12282
|
+
const product = ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct) || multItem;
|
12283
12283
|
jumpToWeb(rec, product, cta, index);
|
12284
12284
|
window.location.href = window.getJointUtmLink(jumpLink || link || '');
|
12285
12285
|
}
|