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/pb-ui.js
CHANGED
|
@@ -930,6 +930,30 @@
|
|
|
930
930
|
navigatorWithBeacon.sendBeacon = originalSendBeacon;
|
|
931
931
|
};
|
|
932
932
|
}, [bffCollectEvent]);
|
|
933
|
+
React.useEffect(() => {
|
|
934
|
+
// 保存原始的 form.submit 方法
|
|
935
|
+
const originalFormSubmit = HTMLFormElement.prototype.submit;
|
|
936
|
+
// 重写 form.submit 方法
|
|
937
|
+
HTMLFormElement.prototype.submit = function () {
|
|
938
|
+
const form = this;
|
|
939
|
+
// 检查是否是 Facebook Pixel 请求
|
|
940
|
+
if (form.action.includes('facebook.com/tr')) {
|
|
941
|
+
// 收集所有表单数据
|
|
942
|
+
const formData = new FormData(form);
|
|
943
|
+
const params = {};
|
|
944
|
+
for (const [key, value] of formData.entries()) {
|
|
945
|
+
params[key] = value;
|
|
946
|
+
}
|
|
947
|
+
bffCollectEvent({
|
|
948
|
+
eventName: params === null || params === void 0 ? void 0 : params.ev,
|
|
949
|
+
eventSource: 'Meta Pixel'
|
|
950
|
+
});
|
|
951
|
+
return originalFormSubmit.call(form);
|
|
952
|
+
}
|
|
953
|
+
// 非 Facebook 请求,正常提交
|
|
954
|
+
return originalFormSubmit.call(form);
|
|
955
|
+
};
|
|
956
|
+
}, []);
|
|
933
957
|
React.useEffect(() => {
|
|
934
958
|
const _originalFetch = window.fetch;
|
|
935
959
|
// 覆盖 fetch 方法
|
|
@@ -997,7 +1021,7 @@
|
|
|
997
1021
|
}
|
|
998
1022
|
});
|
|
999
1023
|
};
|
|
1000
|
-
}, [
|
|
1024
|
+
}, []);
|
|
1001
1025
|
React.useEffect(() => {
|
|
1002
1026
|
const originalOpen = XMLHttpRequest.prototype.open;
|
|
1003
1027
|
const originalSend = XMLHttpRequest.prototype.send;
|
|
@@ -1237,7 +1261,7 @@
|
|
|
1237
1261
|
const productCustomData = {
|
|
1238
1262
|
content_ids: [product === null || product === void 0 ? void 0 : product.itemId],
|
|
1239
1263
|
content_type: 'product',
|
|
1240
|
-
content_name:
|
|
1264
|
+
content_name: '',
|
|
1241
1265
|
contents: [{
|
|
1242
1266
|
item_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1243
1267
|
item_price: product === null || product === void 0 ? void 0 : product.price
|
|
@@ -1427,20 +1451,7 @@
|
|
|
1427
1451
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
1428
1452
|
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 })
|
|
1429
1453
|
});
|
|
1430
|
-
|
|
1431
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
1432
|
-
eventName: 'ClickCTA',
|
|
1433
|
-
product: product ? [product] : undefined,
|
|
1434
|
-
contentType: contentType !== null && contentType !== void 0 ? contentType : 'post',
|
|
1435
|
-
rec,
|
|
1436
|
-
position,
|
|
1437
|
-
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
1438
|
-
cta_action_type: ctaActionType,
|
|
1439
|
-
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1440
|
-
target_url: targetUrl
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
}, [bffEventReport, isFromHashtag, bffFbReport]);
|
|
1454
|
+
}, [bffEventReport, isFromHashtag]);
|
|
1444
1455
|
const h5EnterLink = React.useCallback(() => {
|
|
1445
1456
|
var _a, _b;
|
|
1446
1457
|
const time = new Date();
|
|
@@ -10875,29 +10886,79 @@
|
|
|
10875
10886
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
10876
10887
|
eventSubject: 'clickCta',
|
|
10877
10888
|
eventDescription: 'User clicked the CTA'
|
|
10878
|
-
}, data, product, position
|
|
10889
|
+
}, data, product, position);
|
|
10890
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10891
|
+
eventName: 'ClickCTA',
|
|
10892
|
+
product: product ? [product] : undefined,
|
|
10893
|
+
contentType: 'product',
|
|
10894
|
+
data,
|
|
10895
|
+
position,
|
|
10896
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
10897
|
+
cta_action_type: 'open_external_link',
|
|
10898
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
10899
|
+
target_url: product.link
|
|
10900
|
+
});
|
|
10879
10901
|
}
|
|
10880
10902
|
window.location.href = window.getJointUtmLink(product.link);
|
|
10881
10903
|
}
|
|
10882
10904
|
};
|
|
10883
10905
|
React.useEffect(() => {
|
|
10906
|
+
var _a;
|
|
10884
10907
|
if (!isActive)
|
|
10885
10908
|
return;
|
|
10909
|
+
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 });
|
|
10886
10910
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10887
10911
|
eventName: 'ProductView',
|
|
10888
10912
|
product: product ? [product] : undefined,
|
|
10889
10913
|
contentType: 'product',
|
|
10890
|
-
rec:
|
|
10914
|
+
rec: recData,
|
|
10891
10915
|
position
|
|
10892
10916
|
});
|
|
10893
10917
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10894
10918
|
eventName: 'PageView',
|
|
10895
10919
|
product: product ? [product] : undefined,
|
|
10896
10920
|
contentType: 'product',
|
|
10897
|
-
rec:
|
|
10921
|
+
rec: recData,
|
|
10898
10922
|
position
|
|
10899
10923
|
});
|
|
10900
10924
|
}, [isActive, bffFbReport]);
|
|
10925
|
+
React.useEffect(() => {
|
|
10926
|
+
if (!isActive || isPost)
|
|
10927
|
+
return;
|
|
10928
|
+
const onShow = () => {
|
|
10929
|
+
curTimeRef.current = new Date();
|
|
10930
|
+
};
|
|
10931
|
+
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 });
|
|
10932
|
+
const onHide = () => {
|
|
10933
|
+
var _a;
|
|
10934
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10935
|
+
eventName: 'ExitFeed',
|
|
10936
|
+
product: product ? [product] : undefined,
|
|
10937
|
+
contentType: 'product',
|
|
10938
|
+
rec: recData,
|
|
10939
|
+
position,
|
|
10940
|
+
view_time: new Date() - curTimeRef.current,
|
|
10941
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
10942
|
+
});
|
|
10943
|
+
};
|
|
10944
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
10945
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
10946
|
+
return () => {
|
|
10947
|
+
var _a;
|
|
10948
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10949
|
+
eventName: 'Engagement',
|
|
10950
|
+
product: product ? [product] : undefined,
|
|
10951
|
+
rec: recData,
|
|
10952
|
+
position,
|
|
10953
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
10954
|
+
engagement_type: 'close_popup',
|
|
10955
|
+
contentType: 'product',
|
|
10956
|
+
view_time: new Date() - curTimeRef.current
|
|
10957
|
+
});
|
|
10958
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
10959
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
10960
|
+
};
|
|
10961
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
10901
10962
|
React.useEffect(() => {
|
|
10902
10963
|
const initTime = () => {
|
|
10903
10964
|
curTimeRef.current = new Date();
|
|
@@ -11788,29 +11849,79 @@
|
|
|
11788
11849
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
11789
11850
|
eventSubject: 'clickCta',
|
|
11790
11851
|
eventDescription: 'User clicked the CTA'
|
|
11791
|
-
}, data, product, position
|
|
11852
|
+
}, data, product, position);
|
|
11853
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11854
|
+
eventName: 'ClickCTA',
|
|
11855
|
+
product: product ? [product] : undefined,
|
|
11856
|
+
contentType: 'product',
|
|
11857
|
+
data,
|
|
11858
|
+
position,
|
|
11859
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
11860
|
+
cta_action_type: 'open_external_link',
|
|
11861
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
11862
|
+
target_url: product.link
|
|
11863
|
+
});
|
|
11792
11864
|
}
|
|
11793
11865
|
window.location.href = window.getJointUtmLink(product.link);
|
|
11794
11866
|
}
|
|
11795
11867
|
};
|
|
11796
11868
|
React.useEffect(() => {
|
|
11869
|
+
var _a;
|
|
11797
11870
|
if (!isActive)
|
|
11798
11871
|
return;
|
|
11872
|
+
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 });
|
|
11799
11873
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11800
11874
|
eventName: 'ProductView',
|
|
11801
11875
|
product: product ? [product] : undefined,
|
|
11802
11876
|
contentType: 'product',
|
|
11803
|
-
rec:
|
|
11877
|
+
rec: recData,
|
|
11804
11878
|
position
|
|
11805
11879
|
});
|
|
11806
11880
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11807
11881
|
eventName: 'PageView',
|
|
11808
11882
|
product: product ? [product] : undefined,
|
|
11809
11883
|
contentType: 'product',
|
|
11810
|
-
rec:
|
|
11884
|
+
rec: recData,
|
|
11811
11885
|
position
|
|
11812
11886
|
});
|
|
11813
|
-
}, [isActive, bffFbReport]);
|
|
11887
|
+
}, [isActive, bffFbReport, isPost]);
|
|
11888
|
+
React.useEffect(() => {
|
|
11889
|
+
if (!isActive || isPost)
|
|
11890
|
+
return;
|
|
11891
|
+
const onShow = () => {
|
|
11892
|
+
curTimeRef.current = new Date();
|
|
11893
|
+
};
|
|
11894
|
+
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 });
|
|
11895
|
+
const onHide = () => {
|
|
11896
|
+
var _a;
|
|
11897
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11898
|
+
eventName: 'ExitFeed',
|
|
11899
|
+
product: product ? [product] : undefined,
|
|
11900
|
+
contentType: 'product',
|
|
11901
|
+
rec: recData,
|
|
11902
|
+
position,
|
|
11903
|
+
view_time: new Date() - curTimeRef.current,
|
|
11904
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
11905
|
+
});
|
|
11906
|
+
};
|
|
11907
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
11908
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
11909
|
+
return () => {
|
|
11910
|
+
var _a;
|
|
11911
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11912
|
+
eventName: 'Engagement',
|
|
11913
|
+
product: product ? [product] : undefined,
|
|
11914
|
+
rec: recData,
|
|
11915
|
+
position,
|
|
11916
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
11917
|
+
engagement_type: 'close_popup',
|
|
11918
|
+
contentType: 'product',
|
|
11919
|
+
view_time: new Date() - curTimeRef.current
|
|
11920
|
+
});
|
|
11921
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
11922
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
11923
|
+
};
|
|
11924
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
11814
11925
|
React.useEffect(() => {
|
|
11815
11926
|
const initTime = () => {
|
|
11816
11927
|
if (!isActive)
|
|
@@ -12475,10 +12586,22 @@ Made in Italy` })));
|
|
|
12475
12586
|
});
|
|
12476
12587
|
}, [(_d = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _d === void 0 ? void 0 : _d.enableFormattedPrice, globalConfig]);
|
|
12477
12588
|
const handleClick = lodash.throttle((item, multiCheckIndex, e) => {
|
|
12589
|
+
var _a;
|
|
12478
12590
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
12479
12591
|
eventSubject: 'clickCta',
|
|
12480
12592
|
eventDescription: 'User clicked the CTA'
|
|
12481
|
-
}, recData, item, index
|
|
12593
|
+
}, recData, item, index);
|
|
12594
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
12595
|
+
eventName: 'ClickCTA',
|
|
12596
|
+
product: item ? [item] : undefined,
|
|
12597
|
+
contentType: 'product',
|
|
12598
|
+
recData,
|
|
12599
|
+
index,
|
|
12600
|
+
cta_text: (_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.enTitle,
|
|
12601
|
+
cta_action_type: isExternalLink && !!(item === null || item === void 0 ? void 0 : item.link) ? 'open_external_link' : 'open_internal_popup',
|
|
12602
|
+
target_content_id: item === null || item === void 0 ? void 0 : item.itemId,
|
|
12603
|
+
target_url: item.link
|
|
12604
|
+
});
|
|
12482
12605
|
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 }));
|
|
12483
12606
|
if (isExternalLink) {
|
|
12484
12607
|
if (!(item === null || item === void 0 ? void 0 : item.link))
|
|
@@ -13008,26 +13131,38 @@ Made in Italy` })));
|
|
|
13008
13131
|
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"]);
|
|
13009
13132
|
const ref = React.useRef(null);
|
|
13010
13133
|
const { popup } = useEditor();
|
|
13011
|
-
const { setPopupDetailData, ctaEvent } = useSxpDataSource();
|
|
13134
|
+
const { setPopupDetailData, ctaEvent, bffFbReport } = useSxpDataSource();
|
|
13012
13135
|
const { jumpToWeb } = useEventReport();
|
|
13013
13136
|
const [element, setElement] = React.useState(null);
|
|
13014
13137
|
const handleClick = lodash.throttle((e) => {
|
|
13015
|
-
var _a, _b, _c, _d, _e, _f;
|
|
13138
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13016
13139
|
e.preventDefault();
|
|
13017
13140
|
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);
|
|
13018
|
-
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);
|
|
13141
|
+
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) || '';
|
|
13019
13142
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
13020
13143
|
eventSubject: 'clickCta',
|
|
13021
13144
|
eventDescription: 'User clicked the CTA'
|
|
13022
|
-
}, rec, item, index
|
|
13145
|
+
}, rec, item, index);
|
|
13146
|
+
const product = multItem || ((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindProduct);
|
|
13147
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
13148
|
+
eventName: 'ClickCTA',
|
|
13149
|
+
product: product ? [product] : undefined,
|
|
13150
|
+
contentType: 'post',
|
|
13151
|
+
rec,
|
|
13152
|
+
index,
|
|
13153
|
+
cta_text: (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle,
|
|
13154
|
+
cta_action_type: isExternalLink && (!!link) ? 'open_external_link' : 'open_internal_popup',
|
|
13155
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
13156
|
+
target_url: link
|
|
13157
|
+
});
|
|
13023
13158
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(multItem && multiCheckIndex !== undefined && multiCheckIndex >= 0
|
|
13024
13159
|
? 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 }));
|
|
13025
13160
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
|
13026
13161
|
if (isExternalLink) {
|
|
13027
|
-
if (!
|
|
13162
|
+
if (!link)
|
|
13028
13163
|
return;
|
|
13029
|
-
const cta = ((
|
|
13030
|
-
const product = ((
|
|
13164
|
+
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);
|
|
13165
|
+
const product = ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.bindProduct) || multItem;
|
|
13031
13166
|
jumpToWeb(e, rec, product, cta, index);
|
|
13032
13167
|
window.location.href = window.getJointUtmLink(link);
|
|
13033
13168
|
}
|
|
@@ -15514,7 +15649,7 @@ Made in Italy` })));
|
|
|
15514
15649
|
|
|
15515
15650
|
const WaterfallFlowItem$1 = (props) => {
|
|
15516
15651
|
var _a;
|
|
15517
|
-
const {
|
|
15652
|
+
const { listItem, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView, textStyles, space } = props;
|
|
15518
15653
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15519
15654
|
const [showVideo, setShowVideo] = React.useState(false);
|
|
15520
15655
|
React.useState(false);
|
|
@@ -15527,6 +15662,7 @@ Made in Italy` })));
|
|
|
15527
15662
|
React.useRef(null);
|
|
15528
15663
|
React.useRef(null);
|
|
15529
15664
|
const [firstFrameSrc, setFirstFrameSrc] = React.useState('');
|
|
15665
|
+
const rec = listItem;
|
|
15530
15666
|
const src = React.useMemo(() => {
|
|
15531
15667
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
15532
15668
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
|
|
@@ -15749,17 +15885,6 @@ Made in Italy` })));
|
|
|
15749
15885
|
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 : [];
|
|
15750
15886
|
setList(list);
|
|
15751
15887
|
setIsLoadingData(false);
|
|
15752
|
-
const products = [];
|
|
15753
|
-
list === null || list === void 0 ? void 0 : list.forEach((item) => {
|
|
15754
|
-
var _a, _b;
|
|
15755
|
-
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 : []));
|
|
15756
|
-
});
|
|
15757
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
15758
|
-
eventName: 'PageView',
|
|
15759
|
-
product: products,
|
|
15760
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
15761
|
-
position: cacheActiveIndex
|
|
15762
|
-
});
|
|
15763
15888
|
}));
|
|
15764
15889
|
if (isOpenHashTag) {
|
|
15765
15890
|
const res = previewData;
|
|
@@ -15847,7 +15972,7 @@ Made in Italy` })));
|
|
|
15847
15972
|
React.createElement("div", { className: 'waterFallList-content' }, list === null || list === void 0 ? void 0 :
|
|
15848
15973
|
list.map((item, ind) => {
|
|
15849
15974
|
var _a;
|
|
15850
|
-
return (React.createElement(WaterfallFlowItem$1, Object.assign({ key: ind, index: ind,
|
|
15975
|
+
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)));
|
|
15851
15976
|
}),
|
|
15852
15977
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
15853
15978
|
position: 'absolute',
|
|
@@ -15869,7 +15994,8 @@ Made in Italy` })));
|
|
|
15869
15994
|
|
|
15870
15995
|
const WaterfallFlowItem = (props) => {
|
|
15871
15996
|
var _a;
|
|
15872
|
-
const {
|
|
15997
|
+
const { listItem, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
|
15998
|
+
const rec = listItem;
|
|
15873
15999
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15874
16000
|
const [showVideo, setShowVideo] = React.useState(false);
|
|
15875
16001
|
const imgDom = React.useRef(null);
|
|
@@ -16004,8 +16130,8 @@ Made in Italy` })));
|
|
|
16004
16130
|
React.useEffect(() => {
|
|
16005
16131
|
var _a, _b;
|
|
16006
16132
|
setIsLoadingData(true);
|
|
16007
|
-
waterFallData
|
|
16008
|
-
|
|
16133
|
+
if (waterFallData) {
|
|
16134
|
+
getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
|
|
16009
16135
|
hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
|
|
16010
16136
|
defaultSize: hashTagSize,
|
|
16011
16137
|
maxSize: hashTagSize
|
|
@@ -16015,19 +16141,9 @@ Made in Italy` })));
|
|
|
16015
16141
|
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 : [];
|
|
16016
16142
|
setList(list);
|
|
16017
16143
|
setIsLoadingData(false);
|
|
16018
|
-
|
|
16019
|
-
|
|
16020
|
-
|
|
16021
|
-
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 : []));
|
|
16022
|
-
});
|
|
16023
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16024
|
-
eventName: 'PageView',
|
|
16025
|
-
product: products,
|
|
16026
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16027
|
-
position: cacheActiveIndex
|
|
16028
|
-
});
|
|
16029
|
-
}));
|
|
16030
|
-
if (isOpenHashTag) {
|
|
16144
|
+
});
|
|
16145
|
+
}
|
|
16146
|
+
else if (isOpenHashTag) {
|
|
16031
16147
|
const res = previewData;
|
|
16032
16148
|
setData(res);
|
|
16033
16149
|
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 : []);
|
|
@@ -16075,7 +16191,7 @@ Made in Italy` })));
|
|
|
16075
16191
|
__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)
|
|
16076
16192
|
} }),
|
|
16077
16193
|
React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
|
|
16078
|
-
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind,
|
|
16194
|
+
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, listItem: item, list: list, reportTagsView: reportTagsView }, props)));
|
|
16079
16195
|
})),
|
|
16080
16196
|
React.createElement("div", { hidden: !isLoadMore, style: { textAlign: 'center' } }, "loading..."),
|
|
16081
16197
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
@@ -16164,10 +16280,17 @@ Made in Italy` })));
|
|
|
16164
16280
|
});
|
|
16165
16281
|
}, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
|
|
16166
16282
|
React.useEffect(() => {
|
|
16283
|
+
var _a, _b;
|
|
16167
16284
|
if (openHashtag) {
|
|
16168
16285
|
setViewTime(new Date());
|
|
16286
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16287
|
+
eventName: 'PageView',
|
|
16288
|
+
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,
|
|
16289
|
+
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16290
|
+
position: cacheActiveIndex
|
|
16291
|
+
});
|
|
16169
16292
|
}
|
|
16170
|
-
}, [openHashtag]);
|
|
16293
|
+
}, [openHashtag, bffFbReport, waterFallData, cacheActiveIndex]);
|
|
16171
16294
|
React.useEffect(() => {
|
|
16172
16295
|
const initTime = () => {
|
|
16173
16296
|
setViewTime(new Date());
|
|
@@ -16478,7 +16601,7 @@ Made in Italy` })));
|
|
|
16478
16601
|
const AniLink$1 = (_a) => {
|
|
16479
16602
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
16480
16603
|
var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false, isActive } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink", "isActive"]);
|
|
16481
|
-
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
16604
|
+
const { ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16482
16605
|
const { jumpToWeb } = useEventReport();
|
|
16483
16606
|
const [visible, setVisible] = React.useState(false);
|
|
16484
16607
|
const ref = React.useRef(null);
|
|
@@ -16492,7 +16615,18 @@ Made in Italy` })));
|
|
|
16492
16615
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
16493
16616
|
eventSubject: 'clickCta',
|
|
16494
16617
|
eventDescription: 'User clicked the CTA'
|
|
16495
|
-
}, recData, item, index
|
|
16618
|
+
}, recData, item, index);
|
|
16619
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16620
|
+
eventName: 'ClickCTA',
|
|
16621
|
+
product: product ? [product] : undefined,
|
|
16622
|
+
contentType: 'post',
|
|
16623
|
+
recData,
|
|
16624
|
+
index,
|
|
16625
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
16626
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
16627
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
16628
|
+
target_url: link
|
|
16629
|
+
});
|
|
16496
16630
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
16497
16631
|
if (isExternalLink) {
|
|
16498
16632
|
if (!link)
|
|
@@ -16981,7 +17115,7 @@ Made in Italy` })));
|
|
|
16981
17115
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
16982
17116
|
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"]);
|
|
16983
17117
|
style === null || style === void 0 ? true : delete style.transform;
|
|
16984
|
-
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
17118
|
+
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16985
17119
|
const { jumpToWeb } = useEventReport();
|
|
16986
17120
|
const [visible, setVisible] = React.useState(true);
|
|
16987
17121
|
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);
|
|
@@ -16993,7 +17127,18 @@ Made in Italy` })));
|
|
|
16993
17127
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
16994
17128
|
eventSubject: 'clickCta',
|
|
16995
17129
|
eventDescription: 'User clicked the CTA'
|
|
16996
|
-
}, recData, item, index
|
|
17130
|
+
}, recData, item, index);
|
|
17131
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
17132
|
+
eventName: 'ClickCTA',
|
|
17133
|
+
product: product ? [product] : undefined,
|
|
17134
|
+
contentType: 'post',
|
|
17135
|
+
recData,
|
|
17136
|
+
index,
|
|
17137
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
17138
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
17139
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
17140
|
+
target_url: link
|
|
17141
|
+
});
|
|
16997
17142
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
16998
17143
|
if (isExternalLink) {
|
|
16999
17144
|
if (!link)
|
|
@@ -19301,14 +19446,16 @@ Made in Italy` })));
|
|
|
19301
19446
|
}
|
|
19302
19447
|
});
|
|
19303
19448
|
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);
|
|
19304
|
-
|
|
19305
|
-
|
|
19306
|
-
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
|
|
19311
|
-
|
|
19449
|
+
if (!popupDetailData) {
|
|
19450
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
19451
|
+
eventName: 'ExitFeed',
|
|
19452
|
+
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] : [],
|
|
19453
|
+
rec: item,
|
|
19454
|
+
position: activeIndex,
|
|
19455
|
+
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 : '',
|
|
19456
|
+
view_time: new Date() - viewTime.current
|
|
19457
|
+
});
|
|
19458
|
+
}
|
|
19312
19459
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime, bffFbReport]);
|
|
19313
19460
|
React.useEffect(() => {
|
|
19314
19461
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
|
@@ -19612,7 +19759,7 @@ Made in Italy` })));
|
|
|
19612
19759
|
}
|
|
19613
19760
|
};
|
|
19614
19761
|
const handleScrollEvent = (swiper) => {
|
|
19615
|
-
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
|
|
19762
|
+
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;
|
|
19616
19763
|
const item = data[swiper.previousIndex];
|
|
19617
19764
|
const activeItem = data[swiper.activeIndex];
|
|
19618
19765
|
if (!item)
|
|
@@ -19634,22 +19781,22 @@ Made in Italy` })));
|
|
|
19634
19781
|
previousContentType = 'product';
|
|
19635
19782
|
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 : '';
|
|
19636
19783
|
previousProduct = (item === null || item === void 0 ? void 0 : item.product) ? [item === null || item === void 0 ? void 0 : item.product] : [];
|
|
19637
|
-
previousContentsName =
|
|
19784
|
+
previousContentsName = '';
|
|
19638
19785
|
}
|
|
19639
|
-
if (!((
|
|
19640
|
-
contentId = (
|
|
19786
|
+
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)) {
|
|
19787
|
+
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 : '';
|
|
19641
19788
|
}
|
|
19642
19789
|
if (swiper.previousIndex - swiper.activeIndex < 0) {
|
|
19643
19790
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19644
19791
|
eventInfo: {
|
|
19645
19792
|
eventSubject: 'scrollDown',
|
|
19646
19793
|
eventDescription: 'User scroll down',
|
|
19647
|
-
contentId: (
|
|
19648
|
-
productId: (
|
|
19794
|
+
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 : '',
|
|
19795
|
+
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 : '',
|
|
19649
19796
|
requestId: null,
|
|
19650
|
-
traceInfo: (
|
|
19797
|
+
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 : '',
|
|
19651
19798
|
contentFormat,
|
|
19652
|
-
position: ((
|
|
19799
|
+
position: ((_1 = swiper.previousIndex) !== null && _1 !== void 0 ? _1 : 0) + ''
|
|
19653
19800
|
}
|
|
19654
19801
|
});
|
|
19655
19802
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19662,12 +19809,12 @@ Made in Italy` })));
|
|
|
19662
19809
|
eventInfo: {
|
|
19663
19810
|
eventSubject: 'scrollUp',
|
|
19664
19811
|
eventDescription: 'User scroll up',
|
|
19665
|
-
contentId: (
|
|
19666
|
-
productId: (
|
|
19812
|
+
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 : '',
|
|
19813
|
+
productId: (_5 = (_4 = item.product) === null || _4 === void 0 ? void 0 : _4.itemId) !== null && _5 !== void 0 ? _5 : '',
|
|
19667
19814
|
requestId: null,
|
|
19668
|
-
traceInfo: (
|
|
19815
|
+
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 : '',
|
|
19669
19816
|
contentFormat,
|
|
19670
|
-
position: ((
|
|
19817
|
+
position: ((_10 = swiper.previousIndex) !== null && _10 !== void 0 ? _10 : 0) + ''
|
|
19671
19818
|
}
|
|
19672
19819
|
});
|
|
19673
19820
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19917,7 +20064,7 @@ Made in Italy` })));
|
|
|
19917
20064
|
renderView,
|
|
19918
20065
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
|
19919
20066
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
|
|
19920
|
-
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
|
|
20067
|
+
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)),
|
|
19921
20068
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19922
20069
|
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' } }))))),
|
|
19923
20070
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|