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.cjs
CHANGED
|
@@ -937,6 +937,30 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
937
937
|
navigatorWithBeacon.sendBeacon = originalSendBeacon;
|
|
938
938
|
};
|
|
939
939
|
}, [bffCollectEvent]);
|
|
940
|
+
React.useEffect(() => {
|
|
941
|
+
// 保存原始的 form.submit 方法
|
|
942
|
+
const originalFormSubmit = HTMLFormElement.prototype.submit;
|
|
943
|
+
// 重写 form.submit 方法
|
|
944
|
+
HTMLFormElement.prototype.submit = function () {
|
|
945
|
+
const form = this;
|
|
946
|
+
// 检查是否是 Facebook Pixel 请求
|
|
947
|
+
if (form.action.includes('facebook.com/tr')) {
|
|
948
|
+
// 收集所有表单数据
|
|
949
|
+
const formData = new FormData(form);
|
|
950
|
+
const params = {};
|
|
951
|
+
for (const [key, value] of formData.entries()) {
|
|
952
|
+
params[key] = value;
|
|
953
|
+
}
|
|
954
|
+
bffCollectEvent({
|
|
955
|
+
eventName: params === null || params === void 0 ? void 0 : params.ev,
|
|
956
|
+
eventSource: 'Meta Pixel'
|
|
957
|
+
});
|
|
958
|
+
return originalFormSubmit.call(form);
|
|
959
|
+
}
|
|
960
|
+
// 非 Facebook 请求,正常提交
|
|
961
|
+
return originalFormSubmit.call(form);
|
|
962
|
+
};
|
|
963
|
+
}, []);
|
|
940
964
|
React.useEffect(() => {
|
|
941
965
|
const _originalFetch = window.fetch;
|
|
942
966
|
// 覆盖 fetch 方法
|
|
@@ -1004,7 +1028,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1004
1028
|
}
|
|
1005
1029
|
});
|
|
1006
1030
|
};
|
|
1007
|
-
}, [
|
|
1031
|
+
}, []);
|
|
1008
1032
|
React.useEffect(() => {
|
|
1009
1033
|
const originalOpen = XMLHttpRequest.prototype.open;
|
|
1010
1034
|
const originalSend = XMLHttpRequest.prototype.send;
|
|
@@ -1244,7 +1268,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1244
1268
|
const productCustomData = {
|
|
1245
1269
|
content_ids: [product === null || product === void 0 ? void 0 : product.itemId],
|
|
1246
1270
|
content_type: 'product',
|
|
1247
|
-
content_name:
|
|
1271
|
+
content_name: '',
|
|
1248
1272
|
contents: [{
|
|
1249
1273
|
item_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1250
1274
|
item_price: product === null || product === void 0 ? void 0 : product.price
|
|
@@ -1434,20 +1458,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1434
1458
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
1435
1459
|
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 })
|
|
1436
1460
|
});
|
|
1437
|
-
|
|
1438
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
1439
|
-
eventName: 'ClickCTA',
|
|
1440
|
-
product: product ? [product] : undefined,
|
|
1441
|
-
contentType: contentType !== null && contentType !== void 0 ? contentType : 'post',
|
|
1442
|
-
rec,
|
|
1443
|
-
position,
|
|
1444
|
-
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
1445
|
-
cta_action_type: ctaActionType,
|
|
1446
|
-
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
1447
|
-
target_url: targetUrl
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
}, [bffEventReport, isFromHashtag, bffFbReport]);
|
|
1461
|
+
}, [bffEventReport, isFromHashtag]);
|
|
1451
1462
|
const h5EnterLink = React.useCallback(() => {
|
|
1452
1463
|
var _a, _b;
|
|
1453
1464
|
const time = new Date();
|
|
@@ -10882,29 +10893,79 @@ const CommodityDetail$1 = (_a) => {
|
|
|
10882
10893
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
10883
10894
|
eventSubject: 'clickCta',
|
|
10884
10895
|
eventDescription: 'User clicked the CTA'
|
|
10885
|
-
}, data, product, position
|
|
10896
|
+
}, data, product, position);
|
|
10897
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10898
|
+
eventName: 'ClickCTA',
|
|
10899
|
+
product: product ? [product] : undefined,
|
|
10900
|
+
contentType: 'product',
|
|
10901
|
+
data,
|
|
10902
|
+
position,
|
|
10903
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
10904
|
+
cta_action_type: 'open_external_link',
|
|
10905
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
10906
|
+
target_url: product.link
|
|
10907
|
+
});
|
|
10886
10908
|
}
|
|
10887
10909
|
window.location.href = window.getJointUtmLink(product.link);
|
|
10888
10910
|
}
|
|
10889
10911
|
};
|
|
10890
10912
|
React.useEffect(() => {
|
|
10913
|
+
var _a;
|
|
10891
10914
|
if (!isActive)
|
|
10892
10915
|
return;
|
|
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: '', 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 });
|
|
10893
10917
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10894
10918
|
eventName: 'ProductView',
|
|
10895
10919
|
product: product ? [product] : undefined,
|
|
10896
10920
|
contentType: 'product',
|
|
10897
|
-
rec:
|
|
10921
|
+
rec: recData,
|
|
10898
10922
|
position
|
|
10899
10923
|
});
|
|
10900
10924
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10901
10925
|
eventName: 'PageView',
|
|
10902
10926
|
product: product ? [product] : undefined,
|
|
10903
10927
|
contentType: 'product',
|
|
10904
|
-
rec:
|
|
10928
|
+
rec: recData,
|
|
10905
10929
|
position
|
|
10906
10930
|
});
|
|
10907
10931
|
}, [isActive, bffFbReport]);
|
|
10932
|
+
React.useEffect(() => {
|
|
10933
|
+
if (!isActive || isPost)
|
|
10934
|
+
return;
|
|
10935
|
+
const onShow = () => {
|
|
10936
|
+
curTimeRef.current = new Date();
|
|
10937
|
+
};
|
|
10938
|
+
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 });
|
|
10939
|
+
const onHide = () => {
|
|
10940
|
+
var _a;
|
|
10941
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10942
|
+
eventName: 'ExitFeed',
|
|
10943
|
+
product: product ? [product] : undefined,
|
|
10944
|
+
contentType: 'product',
|
|
10945
|
+
rec: recData,
|
|
10946
|
+
position,
|
|
10947
|
+
view_time: new Date() - curTimeRef.current,
|
|
10948
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
10949
|
+
});
|
|
10950
|
+
};
|
|
10951
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
10952
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
10953
|
+
return () => {
|
|
10954
|
+
var _a;
|
|
10955
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
10956
|
+
eventName: 'Engagement',
|
|
10957
|
+
product: product ? [product] : undefined,
|
|
10958
|
+
rec: recData,
|
|
10959
|
+
position,
|
|
10960
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
10961
|
+
engagement_type: 'close_popup',
|
|
10962
|
+
contentType: 'product',
|
|
10963
|
+
view_time: new Date() - curTimeRef.current
|
|
10964
|
+
});
|
|
10965
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
10966
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
10967
|
+
};
|
|
10968
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
10908
10969
|
React.useEffect(() => {
|
|
10909
10970
|
const initTime = () => {
|
|
10910
10971
|
curTimeRef.current = new Date();
|
|
@@ -11795,29 +11856,79 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
|
11795
11856
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
11796
11857
|
eventSubject: 'clickCta',
|
|
11797
11858
|
eventDescription: 'User clicked the CTA'
|
|
11798
|
-
}, data, product, position
|
|
11859
|
+
}, data, product, position);
|
|
11860
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11861
|
+
eventName: 'ClickCTA',
|
|
11862
|
+
product: product ? [product] : undefined,
|
|
11863
|
+
contentType: 'product',
|
|
11864
|
+
data,
|
|
11865
|
+
position,
|
|
11866
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
11867
|
+
cta_action_type: 'open_external_link',
|
|
11868
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
11869
|
+
target_url: product.link
|
|
11870
|
+
});
|
|
11799
11871
|
}
|
|
11800
11872
|
window.location.href = window.getJointUtmLink(product.link);
|
|
11801
11873
|
}
|
|
11802
11874
|
};
|
|
11803
11875
|
React.useEffect(() => {
|
|
11876
|
+
var _a;
|
|
11804
11877
|
if (!isActive)
|
|
11805
11878
|
return;
|
|
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: '', 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 });
|
|
11806
11880
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11807
11881
|
eventName: 'ProductView',
|
|
11808
11882
|
product: product ? [product] : undefined,
|
|
11809
11883
|
contentType: 'product',
|
|
11810
|
-
rec:
|
|
11884
|
+
rec: recData,
|
|
11811
11885
|
position
|
|
11812
11886
|
});
|
|
11813
11887
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11814
11888
|
eventName: 'PageView',
|
|
11815
11889
|
product: product ? [product] : undefined,
|
|
11816
11890
|
contentType: 'product',
|
|
11817
|
-
rec:
|
|
11891
|
+
rec: recData,
|
|
11818
11892
|
position
|
|
11819
11893
|
});
|
|
11820
|
-
}, [isActive, bffFbReport]);
|
|
11894
|
+
}, [isActive, bffFbReport, isPost]);
|
|
11895
|
+
React.useEffect(() => {
|
|
11896
|
+
if (!isActive || isPost)
|
|
11897
|
+
return;
|
|
11898
|
+
const onShow = () => {
|
|
11899
|
+
curTimeRef.current = new Date();
|
|
11900
|
+
};
|
|
11901
|
+
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 });
|
|
11902
|
+
const onHide = () => {
|
|
11903
|
+
var _a;
|
|
11904
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11905
|
+
eventName: 'ExitFeed',
|
|
11906
|
+
product: product ? [product] : undefined,
|
|
11907
|
+
contentType: 'product',
|
|
11908
|
+
rec: recData,
|
|
11909
|
+
position,
|
|
11910
|
+
view_time: new Date() - curTimeRef.current,
|
|
11911
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : ''
|
|
11912
|
+
});
|
|
11913
|
+
};
|
|
11914
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, () => onShow());
|
|
11915
|
+
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, () => onHide());
|
|
11916
|
+
return () => {
|
|
11917
|
+
var _a;
|
|
11918
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
11919
|
+
eventName: 'Engagement',
|
|
11920
|
+
product: product ? [product] : undefined,
|
|
11921
|
+
rec: recData,
|
|
11922
|
+
position,
|
|
11923
|
+
content_id: (_a = product === null || product === void 0 ? void 0 : product.itemId) !== null && _a !== void 0 ? _a : '',
|
|
11924
|
+
engagement_type: 'close_popup',
|
|
11925
|
+
contentType: 'product',
|
|
11926
|
+
view_time: new Date() - curTimeRef.current
|
|
11927
|
+
});
|
|
11928
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_SHOW);
|
|
11929
|
+
SXP_EVENT_BUS.off(SXP_EVENT_TYPE.PAGE_DID_HIDE);
|
|
11930
|
+
};
|
|
11931
|
+
}, [isActive, isPost, bffFbReport, data, product, position, curTimeRef]);
|
|
11821
11932
|
React.useEffect(() => {
|
|
11822
11933
|
const initTime = () => {
|
|
11823
11934
|
if (!isActive)
|
|
@@ -12482,10 +12593,22 @@ const CommodityList$1 = (_a) => {
|
|
|
12482
12593
|
});
|
|
12483
12594
|
}, [(_d = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _d === void 0 ? void 0 : _d.enableFormattedPrice, globalConfig]);
|
|
12484
12595
|
const handleClick = lodash.throttle((item, multiCheckIndex, e) => {
|
|
12596
|
+
var _a;
|
|
12485
12597
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
12486
12598
|
eventSubject: 'clickCta',
|
|
12487
12599
|
eventDescription: 'User clicked the CTA'
|
|
12488
|
-
}, recData, item, index
|
|
12600
|
+
}, recData, item, index);
|
|
12601
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
12602
|
+
eventName: 'ClickCTA',
|
|
12603
|
+
product: item ? [item] : undefined,
|
|
12604
|
+
contentType: 'product',
|
|
12605
|
+
recData,
|
|
12606
|
+
index,
|
|
12607
|
+
cta_text: (_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.enTitle,
|
|
12608
|
+
cta_action_type: isExternalLink && !!(item === null || item === void 0 ? void 0 : item.link) ? 'open_external_link' : 'open_internal_popup',
|
|
12609
|
+
target_content_id: item === null || item === void 0 ? void 0 : item.itemId,
|
|
12610
|
+
target_url: item.link
|
|
12611
|
+
});
|
|
12489
12612
|
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 }));
|
|
12490
12613
|
if (isExternalLink) {
|
|
12491
12614
|
if (!(item === null || item === void 0 ? void 0 : item.link))
|
|
@@ -13015,26 +13138,38 @@ const EventProvider = (_a) => {
|
|
|
13015
13138
|
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"]);
|
|
13016
13139
|
const ref = React.useRef(null);
|
|
13017
13140
|
const { popup } = useEditor();
|
|
13018
|
-
const { setPopupDetailData, ctaEvent } = useSxpDataSource();
|
|
13141
|
+
const { setPopupDetailData, ctaEvent, bffFbReport } = useSxpDataSource();
|
|
13019
13142
|
const { jumpToWeb } = useEventReport();
|
|
13020
13143
|
const [element, setElement] = React.useState(null);
|
|
13021
13144
|
const handleClick = lodash.throttle((e) => {
|
|
13022
|
-
var _a, _b, _c, _d, _e, _f;
|
|
13145
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13023
13146
|
e.preventDefault();
|
|
13024
13147
|
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);
|
|
13025
|
-
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);
|
|
13148
|
+
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) || '';
|
|
13026
13149
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
13027
13150
|
eventSubject: 'clickCta',
|
|
13028
13151
|
eventDescription: 'User clicked the CTA'
|
|
13029
|
-
}, rec, item, index
|
|
13152
|
+
}, rec, item, index);
|
|
13153
|
+
const product = multItem || ((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindProduct);
|
|
13154
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
13155
|
+
eventName: 'ClickCTA',
|
|
13156
|
+
product: product ? [product] : undefined,
|
|
13157
|
+
contentType: 'post',
|
|
13158
|
+
rec,
|
|
13159
|
+
index,
|
|
13160
|
+
cta_text: (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle,
|
|
13161
|
+
cta_action_type: isExternalLink && (!!link) ? 'open_external_link' : 'open_internal_popup',
|
|
13162
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
13163
|
+
target_url: link
|
|
13164
|
+
});
|
|
13030
13165
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(multItem && multiCheckIndex !== undefined && multiCheckIndex >= 0
|
|
13031
13166
|
? 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 }));
|
|
13032
13167
|
setElement(ref === null || ref === void 0 ? void 0 : ref.current);
|
|
13033
13168
|
if (isExternalLink) {
|
|
13034
|
-
if (!
|
|
13169
|
+
if (!link)
|
|
13035
13170
|
return;
|
|
13036
|
-
const cta = ((
|
|
13037
|
-
const product = ((
|
|
13171
|
+
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);
|
|
13172
|
+
const product = ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.bindProduct) || multItem;
|
|
13038
13173
|
jumpToWeb(e, rec, product, cta, index);
|
|
13039
13174
|
window.location.href = window.getJointUtmLink(link);
|
|
13040
13175
|
}
|
|
@@ -15521,7 +15656,7 @@ var previewData = {
|
|
|
15521
15656
|
|
|
15522
15657
|
const WaterfallFlowItem$1 = (props) => {
|
|
15523
15658
|
var _a;
|
|
15524
|
-
const {
|
|
15659
|
+
const { listItem, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView, textStyles, space } = props;
|
|
15525
15660
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15526
15661
|
const [showVideo, setShowVideo] = React.useState(false);
|
|
15527
15662
|
React.useState(false);
|
|
@@ -15534,6 +15669,7 @@ const WaterfallFlowItem$1 = (props) => {
|
|
|
15534
15669
|
React.useRef(null);
|
|
15535
15670
|
React.useRef(null);
|
|
15536
15671
|
const [firstFrameSrc, setFirstFrameSrc] = React.useState('');
|
|
15672
|
+
const rec = listItem;
|
|
15537
15673
|
const src = React.useMemo(() => {
|
|
15538
15674
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
15539
15675
|
if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.cover) {
|
|
@@ -15756,17 +15892,6 @@ function WaterfallList$1(_a) {
|
|
|
15756
15892
|
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 : [];
|
|
15757
15893
|
setList(list);
|
|
15758
15894
|
setIsLoadingData(false);
|
|
15759
|
-
const products = [];
|
|
15760
|
-
list === null || list === void 0 ? void 0 : list.forEach((item) => {
|
|
15761
|
-
var _a, _b;
|
|
15762
|
-
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 : []));
|
|
15763
|
-
});
|
|
15764
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
15765
|
-
eventName: 'PageView',
|
|
15766
|
-
product: products,
|
|
15767
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
15768
|
-
position: cacheActiveIndex
|
|
15769
|
-
});
|
|
15770
15895
|
}));
|
|
15771
15896
|
if (isOpenHashTag) {
|
|
15772
15897
|
const res = previewData;
|
|
@@ -15854,7 +15979,7 @@ function WaterfallList$1(_a) {
|
|
|
15854
15979
|
React.createElement("div", { className: 'waterFallList-content' }, list === null || list === void 0 ? void 0 :
|
|
15855
15980
|
list.map((item, ind) => {
|
|
15856
15981
|
var _a;
|
|
15857
|
-
return (React.createElement(WaterfallFlowItem$1, Object.assign({ key: ind, index: ind,
|
|
15982
|
+
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)));
|
|
15858
15983
|
}),
|
|
15859
15984
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
15860
15985
|
position: 'absolute',
|
|
@@ -15876,7 +16001,8 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
|
|
|
15876
16001
|
|
|
15877
16002
|
const WaterfallFlowItem = (props) => {
|
|
15878
16003
|
var _a;
|
|
15879
|
-
const {
|
|
16004
|
+
const { listItem, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
|
16005
|
+
const rec = listItem;
|
|
15880
16006
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
|
15881
16007
|
const [showVideo, setShowVideo] = React.useState(false);
|
|
15882
16008
|
const imgDom = React.useRef(null);
|
|
@@ -16011,8 +16137,8 @@ function WaterfallList(_a) {
|
|
|
16011
16137
|
React.useEffect(() => {
|
|
16012
16138
|
var _a, _b;
|
|
16013
16139
|
setIsLoadingData(true);
|
|
16014
|
-
waterFallData
|
|
16015
|
-
|
|
16140
|
+
if (waterFallData) {
|
|
16141
|
+
getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
|
|
16016
16142
|
hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
|
|
16017
16143
|
defaultSize: hashTagSize,
|
|
16018
16144
|
maxSize: hashTagSize
|
|
@@ -16022,19 +16148,9 @@ function WaterfallList(_a) {
|
|
|
16022
16148
|
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 : [];
|
|
16023
16149
|
setList(list);
|
|
16024
16150
|
setIsLoadingData(false);
|
|
16025
|
-
|
|
16026
|
-
|
|
16027
|
-
|
|
16028
|
-
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 : []));
|
|
16029
|
-
});
|
|
16030
|
-
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16031
|
-
eventName: 'PageView',
|
|
16032
|
-
product: products,
|
|
16033
|
-
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16034
|
-
position: cacheActiveIndex
|
|
16035
|
-
});
|
|
16036
|
-
}));
|
|
16037
|
-
if (isOpenHashTag) {
|
|
16151
|
+
});
|
|
16152
|
+
}
|
|
16153
|
+
else if (isOpenHashTag) {
|
|
16038
16154
|
const res = previewData;
|
|
16039
16155
|
setData(res);
|
|
16040
16156
|
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 : []);
|
|
@@ -16082,7 +16198,7 @@ function WaterfallList(_a) {
|
|
|
16082
16198
|
__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)
|
|
16083
16199
|
} }),
|
|
16084
16200
|
React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {
|
|
16085
|
-
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind,
|
|
16201
|
+
return (React.createElement(WaterfallFlowItem, Object.assign({ key: ind, index: ind, listItem: item, list: list, reportTagsView: reportTagsView }, props)));
|
|
16086
16202
|
})),
|
|
16087
16203
|
React.createElement("div", { hidden: !isLoadMore, style: { textAlign: 'center' } }, "loading..."),
|
|
16088
16204
|
React.createElement("div", { hidden: !((_l = data === null || data === void 0 ? void 0 : data.tag) === null || _l === void 0 ? void 0 : _l.link), style: {
|
|
@@ -16171,10 +16287,17 @@ const WaterFall = (props) => {
|
|
|
16171
16287
|
});
|
|
16172
16288
|
}, [recData, bffEventReport, viewTime, isFromHashtag, cacheActiveIndex]);
|
|
16173
16289
|
React.useEffect(() => {
|
|
16290
|
+
var _a, _b;
|
|
16174
16291
|
if (openHashtag) {
|
|
16175
16292
|
setViewTime(new Date());
|
|
16293
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16294
|
+
eventName: 'PageView',
|
|
16295
|
+
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,
|
|
16296
|
+
rec: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec,
|
|
16297
|
+
position: cacheActiveIndex
|
|
16298
|
+
});
|
|
16176
16299
|
}
|
|
16177
|
-
}, [openHashtag]);
|
|
16300
|
+
}, [openHashtag, bffFbReport, waterFallData, cacheActiveIndex]);
|
|
16178
16301
|
React.useEffect(() => {
|
|
16179
16302
|
const initTime = () => {
|
|
16180
16303
|
setViewTime(new Date());
|
|
@@ -16485,7 +16608,7 @@ var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradien
|
|
|
16485
16608
|
const AniLink$1 = (_a) => {
|
|
16486
16609
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
16487
16610
|
var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false, isActive } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink", "isActive"]);
|
|
16488
|
-
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
16611
|
+
const { ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16489
16612
|
const { jumpToWeb } = useEventReport();
|
|
16490
16613
|
const [visible, setVisible] = React.useState(false);
|
|
16491
16614
|
const ref = React.useRef(null);
|
|
@@ -16499,7 +16622,18 @@ const AniLink$1 = (_a) => {
|
|
|
16499
16622
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
16500
16623
|
eventSubject: 'clickCta',
|
|
16501
16624
|
eventDescription: 'User clicked the CTA'
|
|
16502
|
-
}, recData, item, index
|
|
16625
|
+
}, recData, item, index);
|
|
16626
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
16627
|
+
eventName: 'ClickCTA',
|
|
16628
|
+
product: product ? [product] : undefined,
|
|
16629
|
+
contentType: 'post',
|
|
16630
|
+
recData,
|
|
16631
|
+
index,
|
|
16632
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
16633
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
16634
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
16635
|
+
target_url: link
|
|
16636
|
+
});
|
|
16503
16637
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
16504
16638
|
if (isExternalLink) {
|
|
16505
16639
|
if (!link)
|
|
@@ -16988,7 +17122,7 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
16988
17122
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
16989
17123
|
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"]);
|
|
16990
17124
|
style === null || style === void 0 ? true : delete style.transform;
|
|
16991
|
-
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
|
17125
|
+
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData, bffFbReport } = useSxpDataSource();
|
|
16992
17126
|
const { jumpToWeb } = useEventReport();
|
|
16993
17127
|
const [visible, setVisible] = React.useState(true);
|
|
16994
17128
|
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);
|
|
@@ -17000,7 +17134,18 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
17000
17134
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
|
17001
17135
|
eventSubject: 'clickCta',
|
|
17002
17136
|
eventDescription: 'User clicked the CTA'
|
|
17003
|
-
}, recData, item, index
|
|
17137
|
+
}, recData, item, index);
|
|
17138
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
17139
|
+
eventName: 'ClickCTA',
|
|
17140
|
+
product: product ? [product] : undefined,
|
|
17141
|
+
contentType: 'post',
|
|
17142
|
+
recData,
|
|
17143
|
+
index,
|
|
17144
|
+
cta_text: cta === null || cta === void 0 ? void 0 : cta.enTitle,
|
|
17145
|
+
cta_action_type: (isExternalLink && !!link) ? 'open_external_link' : 'open_internal_popup',
|
|
17146
|
+
target_content_id: product === null || product === void 0 ? void 0 : product.itemId,
|
|
17147
|
+
target_url: link
|
|
17148
|
+
});
|
|
17004
17149
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
|
17005
17150
|
if (isExternalLink) {
|
|
17006
17151
|
if (!link)
|
|
@@ -19308,14 +19453,16 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19308
19453
|
}
|
|
19309
19454
|
});
|
|
19310
19455
|
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);
|
|
19311
|
-
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19317
|
-
|
|
19318
|
-
|
|
19456
|
+
if (!popupDetailData) {
|
|
19457
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
19458
|
+
eventName: 'ExitFeed',
|
|
19459
|
+
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] : [],
|
|
19460
|
+
rec: item,
|
|
19461
|
+
position: activeIndex,
|
|
19462
|
+
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 : '',
|
|
19463
|
+
view_time: new Date() - viewTime.current
|
|
19464
|
+
});
|
|
19465
|
+
}
|
|
19319
19466
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime, bffFbReport]);
|
|
19320
19467
|
React.useEffect(() => {
|
|
19321
19468
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
|
@@ -19619,7 +19766,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19619
19766
|
}
|
|
19620
19767
|
};
|
|
19621
19768
|
const handleScrollEvent = (swiper) => {
|
|
19622
|
-
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
|
|
19769
|
+
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;
|
|
19623
19770
|
const item = data[swiper.previousIndex];
|
|
19624
19771
|
const activeItem = data[swiper.activeIndex];
|
|
19625
19772
|
if (!item)
|
|
@@ -19641,22 +19788,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19641
19788
|
previousContentType = 'product';
|
|
19642
19789
|
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 : '';
|
|
19643
19790
|
previousProduct = (item === null || item === void 0 ? void 0 : item.product) ? [item === null || item === void 0 ? void 0 : item.product] : [];
|
|
19644
|
-
previousContentsName =
|
|
19791
|
+
previousContentsName = '';
|
|
19645
19792
|
}
|
|
19646
|
-
if (!((
|
|
19647
|
-
contentId = (
|
|
19793
|
+
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)) {
|
|
19794
|
+
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 : '';
|
|
19648
19795
|
}
|
|
19649
19796
|
if (swiper.previousIndex - swiper.activeIndex < 0) {
|
|
19650
19797
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19651
19798
|
eventInfo: {
|
|
19652
19799
|
eventSubject: 'scrollDown',
|
|
19653
19800
|
eventDescription: 'User scroll down',
|
|
19654
|
-
contentId: (
|
|
19655
|
-
productId: (
|
|
19801
|
+
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 : '',
|
|
19802
|
+
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 : '',
|
|
19656
19803
|
requestId: null,
|
|
19657
|
-
traceInfo: (
|
|
19804
|
+
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 : '',
|
|
19658
19805
|
contentFormat,
|
|
19659
|
-
position: ((
|
|
19806
|
+
position: ((_1 = swiper.previousIndex) !== null && _1 !== void 0 ? _1 : 0) + ''
|
|
19660
19807
|
}
|
|
19661
19808
|
});
|
|
19662
19809
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19669,12 +19816,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19669
19816
|
eventInfo: {
|
|
19670
19817
|
eventSubject: 'scrollUp',
|
|
19671
19818
|
eventDescription: 'User scroll up',
|
|
19672
|
-
contentId: (
|
|
19673
|
-
productId: (
|
|
19819
|
+
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 : '',
|
|
19820
|
+
productId: (_5 = (_4 = item.product) === null || _4 === void 0 ? void 0 : _4.itemId) !== null && _5 !== void 0 ? _5 : '',
|
|
19674
19821
|
requestId: null,
|
|
19675
|
-
traceInfo: (
|
|
19822
|
+
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 : '',
|
|
19676
19823
|
contentFormat,
|
|
19677
|
-
position: ((
|
|
19824
|
+
position: ((_10 = swiper.previousIndex) !== null && _10 !== void 0 ? _10 : 0) + ''
|
|
19678
19825
|
}
|
|
19679
19826
|
});
|
|
19680
19827
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19924,7 +20071,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight, containerWidt
|
|
|
19924
20071
|
renderView,
|
|
19925
20072
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
|
19926
20073
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
|
|
19927
|
-
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
|
|
20074
|
+
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)),
|
|
19928
20075
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19929
20076
|
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' } }))))),
|
|
19930
20077
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|