pb-sxp-ui 1.20.3 → 1.20.5
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 +234 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +234 -87
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +8 -8
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +8 -8
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +234 -87
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +8 -8
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +8 -17
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +3 -13
- package/es/core/components/SxpPageRender/WaterFall/index.d.ts +0 -2
- package/es/core/components/SxpPageRender/WaterFall/index.js +8 -1
- package/es/core/components/SxpPageRender/index.js +23 -21
- package/es/core/context/SxpDataSourceProvider.js +22 -16
- package/es/materials/sxp/cta/AniLink/index.js +13 -2
- package/es/materials/sxp/cta/AniLinkPopup/index.js +13 -2
- package/es/materials/sxp/popup/CommodityDetail/index.js +54 -3
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +55 -4
- package/es/materials/sxp/popup/CommodityList/index.js +13 -1
- package/es/materials/sxp/template/components/EventProvider.js +19 -7
- package/lib/core/components/SxpPageRender/WaterFall/List.js +8 -17
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +3 -13
- package/lib/core/components/SxpPageRender/WaterFall/index.d.ts +0 -2
- package/lib/core/components/SxpPageRender/WaterFall/index.js +8 -1
- package/lib/core/components/SxpPageRender/index.js +23 -21
- package/lib/core/context/SxpDataSourceProvider.js +22 -16
- package/lib/materials/sxp/cta/AniLink/index.js +13 -2
- package/lib/materials/sxp/cta/AniLinkPopup/index.js +13 -2
- package/lib/materials/sxp/popup/CommodityDetail/index.js +54 -3
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +55 -4
- package/lib/materials/sxp/popup/CommodityList/index.js +13 -1
- package/lib/materials/sxp/template/components/EventProvider.js +19 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -915,6 +915,30 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
915
915
|
navigatorWithBeacon.sendBeacon = originalSendBeacon;
|
|
916
916
|
};
|
|
917
917
|
}, [bffCollectEvent]);
|
|
918
|
+
useEffect(() => {
|
|
919
|
+
// 保存原始的 form.submit 方法
|
|
920
|
+
const originalFormSubmit = HTMLFormElement.prototype.submit;
|
|
921
|
+
// 重写 form.submit 方法
|
|
922
|
+
HTMLFormElement.prototype.submit = function () {
|
|
923
|
+
const form = this;
|
|
924
|
+
// 检查是否是 Facebook Pixel 请求
|
|
925
|
+
if (form.action.includes('facebook.com/tr')) {
|
|
926
|
+
// 收集所有表单数据
|
|
927
|
+
const formData = new FormData(form);
|
|
928
|
+
const params = {};
|
|
929
|
+
for (const [key, value] of formData.entries()) {
|
|
930
|
+
params[key] = value;
|
|
931
|
+
}
|
|
932
|
+
bffCollectEvent({
|
|
933
|
+
eventName: params === null || params === void 0 ? void 0 : params.ev,
|
|
934
|
+
eventSource: 'Meta Pixel'
|
|
935
|
+
});
|
|
936
|
+
return originalFormSubmit.call(form);
|
|
937
|
+
}
|
|
938
|
+
// 非 Facebook 请求,正常提交
|
|
939
|
+
return originalFormSubmit.call(form);
|
|
940
|
+
};
|
|
941
|
+
}, []);
|
|
918
942
|
useEffect(() => {
|
|
919
943
|
const _originalFetch = window.fetch;
|
|
920
944
|
// 覆盖 fetch 方法
|
|
@@ -982,7 +1006,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
982
1006
|
}
|
|
983
1007
|
});
|
|
984
1008
|
};
|
|
985
|
-
}, [
|
|
1009
|
+
}, []);
|
|
986
1010
|
useEffect(() => {
|
|
987
1011
|
const originalOpen = XMLHttpRequest.prototype.open;
|
|
988
1012
|
const originalSend = XMLHttpRequest.prototype.send;
|
|
@@ -1222,7 +1246,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1222
1246
|
const productCustomData = {
|
|
1223
1247
|
content_ids: [product === null || product === void 0 ? void 0 : product.itemId],
|
|
1224
1248
|
content_type: 'product',
|
|
1225
|
-
content_name:
|
|
1249
|
+
content_name: '',
|
|
1226
1250
|
contents: [{
|
|
1227
1251
|
item_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1228
1252
|
item_price: product === null || product === void 0 ? void 0 : product.price
|
|
@@ -1412,20 +1436,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1412
1436
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
1413
1437
|
eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_r = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _r !== void 0 ? _r : '', ctaName: (_s = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _s !== void 0 ? _s : '', contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_u = (_t = rec === null || rec === void 0 ? void 0 : rec.video) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_10 = (_7 = (_2 = (_y = (_v = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _v !== void 0 ? _v : (_x = (_w = rec === null || rec === void 0 ? void 0 : rec.video) === null || _w === void 0 ? void 0 : _w.bindCta) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : (_1 = (_0 = (_z = rec === null || rec === void 0 ? void 0 : rec.video) === null || _z === void 0 ? void 0 : _z.bindProduct) === null || _0 === void 0 ? void 0 : _0.bindCta) === null || _1 === void 0 ? void 0 : _1.traceInfo) !== null && _2 !== void 0 ? _2 : (_6 = (_5 = (_4 = (_3 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _3 === void 0 ? void 0 : _3.bindProducts) === null || _4 === void 0 ? void 0 : _4[0]) === null || _5 === void 0 ? void 0 : _5.bindCta) === null || _6 === void 0 ? void 0 : _6.traceInfo) !== null && _7 !== void 0 ? _7 : (_9 = (_8 = rec === null || rec === void 0 ? void 0 : rec.product) === null || _8 === void 0 ? void 0 : _8.bindCta) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : '', fromKName, fromKPage: (_11 = location === null || location === void 0 ? void 0 : location.href) !== null && _11 !== void 0 ? _11 : '', contentFormat })
|
|
1414
1438
|
});
|
|
1415
|
-
|
|
1416
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
1417
|
-
eventName: 'ClickCTA',
|
|
1418
|
-
product: product ? [product] : undefined,
|
|
1419
|
-
contentType: contentType !== null && contentType !== void 0 ? contentType : 'post',
|
|
1420
|
-
rec,
|
|
1421
|
-
position,
|
|
1422
|
-
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
1423
|
-
cta_action_type: ctaActionType,
|
|
1424
|
-
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1425
|
-
target_url: targetUrl
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
}, [bffEventReport, isFromHashtag, bffFbReport]);
|
|
1439
|
+
}, [bffEventReport, isFromHashtag]);
|
|
1429
1440
|
const h5EnterLink = useCallback(() => {
|
|
1430
1441
|
var _a, _b;
|
|
1431
1442
|
const time = new Date();
|
|
@@ -10860,29 +10871,79 @@ const CommodityDetail$1 = (_a) => {
|
|
|
10860
10871
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
10861
10872
|
eventSubject: 'clickCta',
|
|
10862
10873
|
eventDescription: 'User clicked the CTA'
|
|
10863
|
-
}, data, product, position
|
|
10874
|
+
}, data, product, position);
|
|
10875
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10876
|
+
eventName: 'ClickCTA',
|
|
10877
|
+
product: product ? [product] : undefined,
|
|
10878
|
+
contentType: 'product',
|
|
10879
|
+
data,
|
|
10880
|
+
position,
|
|
10881
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
10882
|
+
cta_action_type: 'open_external_link',
|
|
10883
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
10884
|
+
target_url: product.link
|
|
10885
|
+
});
|
|
10864
10886
|
}
|
|
10865
10887
|
window.location.href = window.getJointUtmLink(product.link);
|
|
10866
10888
|
}
|
|
10867
10889
|
};
|
|
10868
10890
|
useEffect(() => {
|
|
10891
|
+
var _a;
|
|
10869
10892
|
if (!isActive)
|
|
10870
10893
|
return;
|
|
10894
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
10871
10895
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10872
10896
|
eventName: 'ProductView',
|
|
10873
10897
|
product: product ? [product] : undefined,
|
|
10874
10898
|
contentType: 'product',
|
|
10875
|
-
rec:
|
|
10899
|
+
rec: recData,
|
|
10876
10900
|
position
|
|
10877
10901
|
});
|
|
10878
10902
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10879
10903
|
eventName: 'PageView',
|
|
10880
10904
|
product: product ? [product] : undefined,
|
|
10881
10905
|
contentType: 'product',
|
|
10882
|
-
rec:
|
|
10906
|
+
rec: recData,
|
|
10883
10907
|
position
|
|
10884
10908
|
});
|
|
10885
10909
|
}, [isActive, bffFbReport]);
|
|
10910
|
+
useEffect(() => {
|
|
10911
|
+
if (!isActive || isPost)
|
|
10912
|
+
return;
|
|
10913
|
+
const onShow = () => {
|
|
10914
|
+
curTimeRef.current = new Date();
|
|
10915
|
+
};
|
|
10916
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '' }) : null });
|
|
10917
|
+
const onHide = () => {
|
|
10918
|
+
var _a;
|
|
10919
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10920
|
+
eventName: 'ExitFeed',
|
|
10921
|
+
product: product ? [product] : undefined,
|
|
10922
|
+
contentType: 'product',
|
|
10923
|
+
rec: recData,
|
|
10924
|
+
position,
|
|
10925
|
+
view_time: new Date() - curTimeRef.current,
|
|
10926
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
10927
|
+
});
|
|
10928
|
+
};
|
|
10929
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
10930
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
10931
|
+
return () => {
|
|
10932
|
+
var _a;
|
|
10933
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10934
|
+
eventName: 'Engagement',
|
|
10935
|
+
product: product ? [product] : undefined,
|
|
10936
|
+
rec: recData,
|
|
10937
|
+
position,
|
|
10938
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
10939
|
+
engagement_type: 'close_popup',
|
|
10940
|
+
contentType: 'product',
|
|
10941
|
+
view_time: new Date() - curTimeRef.current
|
|
10942
|
+
});
|
|
10943
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
10944
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
10945
|
+
};
|
|
10946
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
10886
10947
|
useEffect(() => {
|
|
10887
10948
|
const initTime = () => {
|
|
10888
10949
|
curTimeRef.current = new Date();
|
|
@@ -11773,29 +11834,79 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
|
11773
11834
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
11774
11835
|
eventSubject: 'clickCta',
|
|
11775
11836
|
eventDescription: 'User clicked the CTA'
|
|
11776
|
-
}, data, product, position
|
|
11837
|
+
}, data, product, position);
|
|
11838
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11839
|
+
eventName: 'ClickCTA',
|
|
11840
|
+
product: product ? [product] : undefined,
|
|
11841
|
+
contentType: 'product',
|
|
11842
|
+
data,
|
|
11843
|
+
position,
|
|
11844
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
11845
|
+
cta_action_type: 'open_external_link',
|
|
11846
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
11847
|
+
target_url: product.link
|
|
11848
|
+
});
|
|
11777
11849
|
}
|
|
11778
11850
|
window.location.href = window.getJointUtmLink(product.link);
|
|
11779
11851
|
}
|
|
11780
11852
|
};
|
|
11781
11853
|
useEffect(() => {
|
|
11854
|
+
var _a;
|
|
11782
11855
|
if (!isActive)
|
|
11783
11856
|
return;
|
|
11857
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '', imgUrls: !isPost ? product === null || product === void 0 ? void 0 : product.homePage : (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.imgUrls }) : null });
|
|
11784
11858
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11785
11859
|
eventName: 'ProductView',
|
|
11786
11860
|
product: product ? [product] : undefined,
|
|
11787
11861
|
contentType: 'product',
|
|
11788
|
-
rec:
|
|
11862
|
+
rec: recData,
|
|
11789
11863
|
position
|
|
11790
11864
|
});
|
|
11791
11865
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11792
11866
|
eventName: 'PageView',
|
|
11793
11867
|
product: product ? [product] : undefined,
|
|
11794
11868
|
contentType: 'product',
|
|
11795
|
-
rec:
|
|
11869
|
+
rec: recData,
|
|
11796
11870
|
position
|
|
11797
11871
|
});
|
|
11798
|
-
}, [isActive, bffFbReport]);
|
|
11872
|
+
}, [isActive, bffFbReport, isPost]);
|
|
11873
|
+
useEffect(() => {
|
|
11874
|
+
if (!isActive || isPost)
|
|
11875
|
+
return;
|
|
11876
|
+
const onShow = () => {
|
|
11877
|
+
curTimeRef.current = new Date();
|
|
11878
|
+
};
|
|
11879
|
+
const recData = Object.assign(Object.assign({}, data), { video: (data === null || data === void 0 ? void 0 : data.video) ? Object.assign(Object.assign({}, data === null || data === void 0 ? void 0 : data.video), { title: '' }) : null });
|
|
11880
|
+
const onHide = () => {
|
|
11881
|
+
var _a;
|
|
11882
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11883
|
+
eventName: 'ExitFeed',
|
|
11884
|
+
product: product ? [product] : undefined,
|
|
11885
|
+
contentType: 'product',
|
|
11886
|
+
rec: recData,
|
|
11887
|
+
position,
|
|
11888
|
+
view_time: new Date() - curTimeRef.current,
|
|
11889
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
11890
|
+
});
|
|
11891
|
+
};
|
|
11892
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
11893
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
11894
|
+
return () => {
|
|
11895
|
+
var _a;
|
|
11896
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11897
|
+
eventName: 'Engagement',
|
|
11898
|
+
product: product ? [product] : undefined,
|
|
11899
|
+
rec: recData,
|
|
11900
|
+
position,
|
|
11901
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
11902
|
+
engagement_type: 'close_popup',
|
|
11903
|
+
contentType: 'product',
|
|
11904
|
+
view_time: new Date() - curTimeRef.current
|
|
11905
|
+
});
|
|
11906
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
11907
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
11908
|
+
};
|
|
11909
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
11799
11910
|
useEffect(() => {
|
|
11800
11911
|
const initTime = () => {
|
|
11801
11912
|
if (!isActive)
|
|
@@ -12460,10 +12571,22 @@ const CommodityList$1 = (_a) => {
|
|
|
12460
12571
|
});
|
|
12461
12572
|
}, [(_d = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _d === void 0 ? void 0 : _d.enableFormattedPrice, globalConfig]);
|
|
12462
12573
|
const handleClick = throttle((item, multiCheckIndex, e) => {
|
|
12574
|
+
var _a;
|
|
12463
12575
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
12464
12576
|
eventSubject: 'clickCta',
|
|
12465
12577
|
eventDescription: 'User clicked the CTA'
|
|
12466
|
-
}, recData, item, index
|
|
12578
|
+
}, recData, item, index);
|
|
12579
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
12580
|
+
eventName: 'ClickCTA',
|
|
12581
|
+
product: item ? [item] : undefined,
|
|
12582
|
+
contentType: 'product',
|
|
12583
|
+
recData,
|
|
12584
|
+
index,
|
|
12585
|
+
cta_text: (_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.enTitle,
|
|
12586
|
+
cta_action_type: isExternalLink && !!(item === null || item === void 0 ? void 0 : item.link) ? 'open_external_link' : 'open_internal_popup',
|
|
12587
|
+
target_content_id: item === null || item === void 0 ? void 0 : item.itemId,
|
|
12588
|
+
target_url: item.link
|
|
12589
|
+
});
|
|
12467
12590
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }), index, multiCheckIndex }));
|
|
12468
12591
|
if (isExternalLink) {
|
|
12469
12592
|
if (!(item === null || item === void 0 ? void 0 : item.link))
|
|
@@ -12993,26 +13116,38 @@ const EventProvider = (_a) => {
|
|
|
12993
13116
|
var { rec, children, className, onClick, style, isExternalLink = false, index, jumpLink, multItem, multiCheckIndex } = _a; __rest(_a, ["rec", "children", "className", "onClick", "style", "isExternalLink", "index", "jumpLink", "multItem", "multiCheckIndex"]);
|
|
12994
13117
|
const ref = useRef(null);
|
|
12995
13118
|
const { popup } = useEditor();
|
|
12996
|
-
const { setPopupDetailData, ctaEvent } = useSxpDataSource();
|
|
13119
|
+
const { setPopupDetailData, ctaEvent, bffFbReport } = useSxpDataSource();
|
|
12997
13120
|
const { jumpToWeb } = useEventReport();
|
|
12998
13121
|
const [element, setElement] = useState(null);
|
|
12999
13122
|
const handleClick = throttle((e) => {
|
|
13000
|
-
var _a, _b, _c, _d, _e, _f;
|
|
13123
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13001
13124
|
e.preventDefault();
|
|
13002
13125
|
const item = 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);
|
|
13003
|
-
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);
|
|
13126
|
+
const link = jumpLink || ((_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) || '';
|
|
13004
13127
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
13005
13128
|
eventSubject: 'clickCta',
|
|
13006
13129
|
eventDescription: 'User clicked the CTA'
|
|
13007
|
-
}, rec, item, index
|
|
13130
|
+
}, rec, item, index);
|
|
13131
|
+
const product = multItem || ((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindProduct);
|
|
13132
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
13133
|
+
eventName: 'ClickCTA',
|
|
13134
|
+
product: product ? [product] : undefined,
|
|
13135
|
+
contentType: 'post',
|
|
13136
|
+
rec,
|
|
13137
|
+
index,
|
|
13138
|
+
cta_text: (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle,
|
|
13139
|
+
cta_action_type: isExternalLink && (!!link) ? 'open_external_link' : 'open_internal_popup',
|
|
13140
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
13141
|
+
target_url: link
|
|
13142
|
+
});
|
|
13008
13143
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(multItem && multiCheckIndex !== undefined && multiCheckIndex >= 0
|
|
13009
13144
|
? 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 }));
|
|
13010
13145
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
|
13011
13146
|
if (isExternalLink) {
|
|
13012
|
-
if (!
|
|
13147
|
+
if (!link)
|
|
13013
13148
|
return;
|
|
13014
|
-
const cta = ((
|
|
13015
|
-
const product = ((
|
|
13149
|
+
const cta = ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindCta) || (multItem === null || multItem === void 0 ? void 0 : multItem.bindCta);
|
|
13150
|
+
const product = ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.bindProduct) || multItem;
|
|
13016
13151
|
jumpToWeb(e, rec, product, cta, index);
|
|
13017
13152
|
window.location.href = window.getJointUtmLink(link);
|
|
13018
13153
|
}
|
|
@@ -15499,7 +15634,7 @@ var previewData = {
|
|
|
15499
15634
|
|
|
15500
15635
|
const WaterfallFlowItem$1 = (props) => {
|
|
15501
15636
|
var _a;
|
|
15502
|
-
const {
|
|
15637
|
+
const { listItem, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView, textStyles, space } = props;
|
|
15503
15638
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15504
15639
|
const [showVideo, setShowVideo] = useState(false);
|
|
15505
15640
|
useState(false);
|
|
@@ -15512,6 +15647,7 @@ const WaterfallFlowItem$1 = (props) => {
|
|
|
15512
15647
|
useRef(null);
|
|
15513
15648
|
useRef(null);
|
|
15514
15649
|
const [firstFrameSrc, setFirstFrameSrc] = useState('');
|
|
15650
|
+
const rec = listItem;
|
|
15515
15651
|
const src = useMemo(() => {
|
|
15516
15652
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
15517
15653
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
|
|
@@ -15734,17 +15870,6 @@ function WaterfallList$1(_a) {
|
|
|
15734
15870
|
const list = (_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : [];
|
|
15735
15871
|
setList(list);
|
|
15736
15872
|
setIsLoadingData(false);
|
|
15737
|
-
const products = [];
|
|
15738
|
-
list === null || list === void 0 ? void 0 : list.forEach((item) => {
|
|
15739
|
-
var _a, _b;
|
|
15740
|
-
products.push(...((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) !== null && _b !== void 0 ? _b : []));
|
|
15741
|
-
});
|
|
15742
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
15743
|
-
eventName: 'PageView',
|
|
15744
|
-
product: products,
|
|
15745
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
15746
|
-
position: cacheActiveIndex
|
|
15747
|
-
});
|
|
15748
15873
|
}));
|
|
15749
15874
|
if (isOpenHashTag) {
|
|
15750
15875
|
const res = previewData;
|
|
@@ -15832,7 +15957,7 @@ function WaterfallList$1(_a) {
|
|
|
15832
15957
|
React.createElement("div", { className: 'waterFallList-content' }, list === null || list === void 0 ? void 0 :
|
|
15833
15958
|
list.map((item, ind) => {
|
|
15834
15959
|
var _a;
|
|
15835
|
-
return (React.createElement(WaterfallFlowItem$1, Object.assign({ key: ind, index: ind,
|
|
15960
|
+
return (React.createElement(WaterfallFlowItem$1, Object.assign({ key: ind, index: ind, listItem: item, list: list, showBorder: scrollTop + ((_a = scrollParent === null || scrollParent === void 0 ? void 0 : scrollParent.current) === null || _a === void 0 ? void 0 : _a.clientHeight), style: styleList[ind], sizeChange: onSizeChange, unitWidth: unitWidth, reportTagsView: reportTagsView }, props)));
|
|
15836
15961
|
}),
|
|
15837
15962
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
15838
15963
|
position: 'absolute',
|
|
@@ -15854,7 +15979,8 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
|
|
|
15854
15979
|
|
|
15855
15980
|
const WaterfallFlowItem = (props) => {
|
|
15856
15981
|
var _a;
|
|
15857
|
-
const {
|
|
15982
|
+
const { listItem, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
|
15983
|
+
const rec = listItem;
|
|
15858
15984
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15859
15985
|
const [showVideo, setShowVideo] = useState(false);
|
|
15860
15986
|
const imgDom = useRef(null);
|
|
@@ -15989,8 +16115,8 @@ function WaterfallList(_a) {
|
|
|
15989
16115
|
useEffect(() => {
|
|
15990
16116
|
var _a, _b;
|
|
15991
16117
|
setIsLoadingData(true);
|
|
15992
|
-
waterFallData
|
|
15993
|
-
|
|
16118
|
+
if (waterFallData) {
|
|
16119
|
+
getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
|
|
15994
16120
|
hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
|
|
15995
16121
|
defaultSize: hashTagSize,
|
|
15996
16122
|
maxSize: hashTagSize
|
|
@@ -16000,19 +16126,9 @@ function WaterfallList(_a) {
|
|
|
16000
16126
|
const list = (_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : [];
|
|
16001
16127
|
setList(list);
|
|
16002
16128
|
setIsLoadingData(false);
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
products.push(...((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) !== null && _b !== void 0 ? _b : []));
|
|
16007
|
-
});
|
|
16008
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16009
|
-
eventName: 'PageView',
|
|
16010
|
-
product: products,
|
|
16011
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16012
|
-
position: cacheActiveIndex
|
|
16013
|
-
});
|
|
16014
|
-
}));
|
|
16015
|
-
if (isOpenHashTag) {
|
|
16129
|
+
});
|
|
16130
|
+
}
|
|
16131
|
+
else if (isOpenHashTag) {
|
|
16016
16132
|
const res = previewData;
|
|
16017
16133
|
setData(res);
|
|
16018
16134
|
setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
|
|
@@ -16060,7 +16176,7 @@ function WaterfallList(_a) {
|
|
|
16060
16176
|
__html: setFontForText(((_j = data === null || data === void 0 ? void 0 : data.tag) === null || _j === void 0 ? void 0 : _j.linkTitle) || 'Shop the collection', (_k = props === null || props === void 0 ? void 0 : props.textStyles) === null || _k === void 0 ? void 0 : _k.hashTagLink)
|
|
16061
16177
|
} }),
|
|
16062
16178
|
React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
|
|
16063
|
-
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind,
|
|
16179
|
+
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, listItem: item, list: list, reportTagsView: reportTagsView }, props)));
|
|
16064
16180
|
})),
|
|
16065
16181
|
React.createElement("div", { hidden: !isLoadMore, style: { textAlign: 'center' } }, "loading..."),
|
|
16066
16182
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
@@ -16149,10 +16265,17 @@ const WaterFall = (props) => {
|
|
|
16149
16265
|
});
|
|
16150
16266
|
}, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
|
|
16151
16267
|
useEffect(() => {
|
|
16268
|
+
var _a, _b;
|
|
16152
16269
|
if (openHashtag) {
|
|
16153
16270
|
setViewTime(new Date());
|
|
16271
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16272
|
+
eventName: 'PageView',
|
|
16273
|
+
product: (_b = (_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.bindProducts,
|
|
16274
|
+
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16275
|
+
position: cacheActiveIndex
|
|
16276
|
+
});
|
|
16154
16277
|
}
|
|
16155
|
-
}, [openHashtag]);
|
|
16278
|
+
}, [openHashtag, bffFbReport, waterFallData, cacheActiveIndex]);
|
|
16156
16279
|
useEffect(() => {
|
|
16157
16280
|
const initTime = () => {
|
|
16158
16281
|
setViewTime(new Date());
|
|
@@ -16463,7 +16586,7 @@ var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradien
|
|
|
16463
16586
|
const AniLink$1 = (_a) => {
|
|
16464
16587
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
16465
16588
|
var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false, isActive } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink", "isActive"]);
|
|
16466
|
-
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
16589
|
+
const { ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16467
16590
|
const { jumpToWeb } = useEventReport();
|
|
16468
16591
|
const [visible, setVisible] = useState(false);
|
|
16469
16592
|
const ref = useRef(null);
|
|
@@ -16477,7 +16600,18 @@ const AniLink$1 = (_a) => {
|
|
|
16477
16600
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
16478
16601
|
eventSubject: 'clickCta',
|
|
16479
16602
|
eventDescription: 'User clicked the CTA'
|
|
16480
|
-
}, recData, item, index
|
|
16603
|
+
}, recData, item, index);
|
|
16604
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16605
|
+
eventName: 'ClickCTA',
|
|
16606
|
+
product: product ? [product] : undefined,
|
|
16607
|
+
contentType: 'post',
|
|
16608
|
+
recData,
|
|
16609
|
+
index,
|
|
16610
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
16611
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
16612
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
16613
|
+
target_url: link
|
|
16614
|
+
});
|
|
16481
16615
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
16482
16616
|
if (isExternalLink) {
|
|
16483
16617
|
if (!link)
|
|
@@ -16966,7 +17100,7 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
16966
17100
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
16967
17101
|
var { style, recData, ctaTempStyles, index, event, bottom_image, translateY, isTel, onClick, isExternalLink = false, isActive } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "bottom_image", "translateY", "isTel", "onClick", "isExternalLink", "isActive"]);
|
|
16968
17102
|
style === null || style === void 0 ? true : delete style.transform;
|
|
16969
|
-
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
17103
|
+
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16970
17104
|
const { jumpToWeb } = useEventReport();
|
|
16971
17105
|
const [visible, setVisible] = useState(true);
|
|
16972
17106
|
const cta = ((_d = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.bindCta) || ((_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.bindCta) || ((_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.bindCta);
|
|
@@ -16978,7 +17112,18 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
16978
17112
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
16979
17113
|
eventSubject: 'clickCta',
|
|
16980
17114
|
eventDescription: 'User clicked the CTA'
|
|
16981
|
-
}, recData, item, index
|
|
17115
|
+
}, recData, item, index);
|
|
17116
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
17117
|
+
eventName: 'ClickCTA',
|
|
17118
|
+
product: product ? [product] : undefined,
|
|
17119
|
+
contentType: 'post',
|
|
17120
|
+
recData,
|
|
17121
|
+
index,
|
|
17122
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
17123
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
17124
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
17125
|
+
target_url: link
|
|
17126
|
+
});
|
|
16982
17127
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
16983
17128
|
if (isExternalLink) {
|
|
16984
17129
|
if (!link)
|
|
@@ -19286,14 +19431,16 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19286
19431
|
}
|
|
19287
19432
|
});
|
|
19288
19433
|
const isPostType = ((_w = item === null || item === void 0 ? void 0 : item.video) === null || _w === void 0 ? void 0 : _w.url) || ((_y = (_x = item === null || item === void 0 ? void 0 : item.video) === null || _x === void 0 ? void 0 : _x.imgUrls) === null || _y === void 0 ? void 0 : _y.length);
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
|
|
19293
|
-
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19434
|
+
if (!popupDetailData) {
|
|
19435
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
19436
|
+
eventName: 'ExitFeed',
|
|
19437
|
+
product: isPostType ? (_z = item === null || item === void 0 ? void 0 : item.video) === null || _z === void 0 ? void 0 : _z.bindProducts : (item === null || item === void 0 ? void 0 : item.product) ? [item === null || item === void 0 ? void 0 : item.product] : [],
|
|
19438
|
+
rec: item,
|
|
19439
|
+
position: activeIndex,
|
|
19440
|
+
content_id: isPostType ? (_1 = (_0 = item === null || item === void 0 ? void 0 : item.video) === null || _0 === void 0 ? void 0 : _0.itemId) !== null && _1 !== void 0 ? _1 : '' : (_3 = (_2 = item === null || item === void 0 ? void 0 : item.product) === null || _2 === void 0 ? void 0 : _2.itemId) !== null && _3 !== void 0 ? _3 : '',
|
|
19441
|
+
view_time: new Date() - viewTime.current
|
|
19442
|
+
});
|
|
19443
|
+
}
|
|
19297
19444
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime, bffFbReport]);
|
|
19298
19445
|
useEffect(() => {
|
|
19299
19446
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
|
@@ -19597,7 +19744,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19597
19744
|
}
|
|
19598
19745
|
};
|
|
19599
19746
|
const handleScrollEvent = (swiper) => {
|
|
19600
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10
|
|
19747
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
19601
19748
|
const item = data[swiper.previousIndex];
|
|
19602
19749
|
const activeItem = data[swiper.activeIndex];
|
|
19603
19750
|
if (!item)
|
|
@@ -19619,22 +19766,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19619
19766
|
previousContentType = 'product';
|
|
19620
19767
|
previousContentId = (_m = (_l = item === null || item === void 0 ? void 0 : item.product) === null || _l === void 0 ? void 0 : _l.itemId) !== null && _m !== void 0 ? _m : '';
|
|
19621
19768
|
previousProduct = (item === null || item === void 0 ? void 0 : item.product) ? [item === null || item === void 0 ? void 0 : item.product] : [];
|
|
19622
|
-
previousContentsName =
|
|
19769
|
+
previousContentsName = '';
|
|
19623
19770
|
}
|
|
19624
|
-
if (!((
|
|
19625
|
-
contentId = (
|
|
19771
|
+
if (!((_o = activeItem === null || activeItem === void 0 ? void 0 : activeItem.video) === null || _o === void 0 ? void 0 : _o.url) && !((_q = (_p = activeItem === null || activeItem === void 0 ? void 0 : activeItem.video) === null || _p === void 0 ? void 0 : _p.imgUrls) === null || _q === void 0 ? void 0 : _q.length)) {
|
|
19772
|
+
contentId = (_s = (_r = activeItem === null || activeItem === void 0 ? void 0 : activeItem.product) === null || _r === void 0 ? void 0 : _r.itemId) !== null && _s !== void 0 ? _s : '';
|
|
19626
19773
|
}
|
|
19627
19774
|
if (swiper.previousIndex - swiper.activeIndex < 0) {
|
|
19628
19775
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19629
19776
|
eventInfo: {
|
|
19630
19777
|
eventSubject: 'scrollDown',
|
|
19631
19778
|
eventDescription: 'User scroll down',
|
|
19632
|
-
contentId: (
|
|
19633
|
-
productId: (
|
|
19779
|
+
contentId: (_u = (_t = item === null || item === void 0 ? void 0 : item.video) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '',
|
|
19780
|
+
productId: (_w = (_v = item === null || item === void 0 ? void 0 : item.product) === null || _v === void 0 ? void 0 : _v.itemId) !== null && _w !== void 0 ? _w : '',
|
|
19634
19781
|
requestId: null,
|
|
19635
|
-
traceInfo: (
|
|
19782
|
+
traceInfo: (_0 = (_y = (_x = item === null || item === void 0 ? void 0 : item.video) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : (_z = item === null || item === void 0 ? void 0 : item.product) === null || _z === void 0 ? void 0 : _z.traceInfo) !== null && _0 !== void 0 ? _0 : '',
|
|
19636
19783
|
contentFormat,
|
|
19637
|
-
position: ((
|
|
19784
|
+
position: ((_1 = swiper.previousIndex) !== null && _1 !== void 0 ? _1 : 0) + ''
|
|
19638
19785
|
}
|
|
19639
19786
|
});
|
|
19640
19787
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19647,12 +19794,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19647
19794
|
eventInfo: {
|
|
19648
19795
|
eventSubject: 'scrollUp',
|
|
19649
19796
|
eventDescription: 'User scroll up',
|
|
19650
|
-
contentId: (
|
|
19651
|
-
productId: (
|
|
19797
|
+
contentId: (_3 = (_2 = item === null || item === void 0 ? void 0 : item.video) === null || _2 === void 0 ? void 0 : _2.itemId) !== null && _3 !== void 0 ? _3 : '',
|
|
19798
|
+
productId: (_5 = (_4 = item.product) === null || _4 === void 0 ? void 0 : _4.itemId) !== null && _5 !== void 0 ? _5 : '',
|
|
19652
19799
|
requestId: null,
|
|
19653
|
-
traceInfo: (
|
|
19800
|
+
traceInfo: (_9 = (_7 = (_6 = item === null || item === void 0 ? void 0 : item.video) === null || _6 === void 0 ? void 0 : _6.traceInfo) !== null && _7 !== void 0 ? _7 : (_8 = item === null || item === void 0 ? void 0 : item.product) === null || _8 === void 0 ? void 0 : _8.traceInfo) !== null && _9 !== void 0 ? _9 : '',
|
|
19654
19801
|
contentFormat,
|
|
19655
|
-
position: ((
|
|
19802
|
+
position: ((_10 = swiper.previousIndex) !== null && _10 !== void 0 ? _10 : 0) + ''
|
|
19656
19803
|
}
|
|
19657
19804
|
});
|
|
19658
19805
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19902,7 +20049,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19902
20049
|
renderView,
|
|
19903
20050
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
|
19904
20051
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
|
|
19905
|
-
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props
|
|
20052
|
+
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
|
|
19906
20053
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19907
20054
|
openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0, bottom: bottomHeight + 'px' } }))))),
|
|
19908
20055
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|