pb-sxp-ui 1.10.2 → 1.10.4

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.
Files changed (47) hide show
  1. package/dist/index.cjs +133 -75
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +133 -75
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +4 -4
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +4 -4
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +133 -75
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +4 -4
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageRender/WaterFall/List.js +2 -2
  14. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +2 -2
  15. package/es/core/components/SxpPageRender/index.js +26 -18
  16. package/es/core/context/SxpDataSourceProvider.d.ts +6 -0
  17. package/es/core/context/SxpDataSourceProvider.js +62 -16
  18. package/es/core/hooks/useEventReport.d.ts +1 -1
  19. package/es/core/hooks/useEventReport.js +10 -3
  20. package/es/materials/sxp/MultiPosts/index.js +6 -12
  21. package/es/materials/sxp/cta/AniLink/index.js +2 -2
  22. package/es/materials/sxp/cta/AniLinkPopup/index.js +2 -2
  23. package/es/materials/sxp/popup/AppointForm/index.js +2 -2
  24. package/es/materials/sxp/popup/CommodityDetail/index.js +2 -2
  25. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
  26. package/es/materials/sxp/popup/CommodityList/index.js +3 -3
  27. package/es/materials/sxp/popup/Prompt/index.js +2 -2
  28. package/es/materials/sxp/template/Link/index.js +1 -3
  29. package/es/materials/sxp/template/components/EventProvider.js +3 -3
  30. package/lib/core/components/SxpPageRender/WaterFall/List.js +2 -2
  31. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +2 -2
  32. package/lib/core/components/SxpPageRender/index.js +26 -18
  33. package/lib/core/context/SxpDataSourceProvider.d.ts +6 -0
  34. package/lib/core/context/SxpDataSourceProvider.js +62 -16
  35. package/lib/core/hooks/useEventReport.d.ts +1 -1
  36. package/lib/core/hooks/useEventReport.js +10 -3
  37. package/lib/materials/sxp/MultiPosts/index.js +6 -12
  38. package/lib/materials/sxp/cta/AniLink/index.js +2 -2
  39. package/lib/materials/sxp/cta/AniLinkPopup/index.js +2 -2
  40. package/lib/materials/sxp/popup/AppointForm/index.js +2 -2
  41. package/lib/materials/sxp/popup/CommodityDetail/index.js +2 -2
  42. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
  43. package/lib/materials/sxp/popup/CommodityList/index.js +3 -3
  44. package/lib/materials/sxp/popup/Prompt/index.js +2 -2
  45. package/lib/materials/sxp/template/Link/index.js +1 -3
  46. package/lib/materials/sxp/template/components/EventProvider.js +3 -3
  47. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -655,10 +655,13 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
655
655
  const popupCurTimeRef = useRef(null);
656
656
  const [isNoMoreData, setIsNoMoreData] = useState(false);
657
657
  const [globalConfig, setGlobalConfig] = useState((_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf) === null || _b === void 0 ? void 0 : _b.globalConfig);
658
- const [pageData, setPageData] = useState(data);
658
+ const [pageData, setPageData] = useState();
659
659
  const [showConsent, setShowConsent] = useState(false);
660
660
  const [layoutVariantId, setLayoutVariantId] = useState();
661
661
  const [channel, setChannel] = useState();
662
+ const [eventTimeList, setEventTimeList] = useState([]);
663
+ const [playbookType, setPlaybookType] = useState();
664
+ const finalPageData = useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
662
665
  const isShowConsent = useMemo(() => {
663
666
  var _a, _b, _c, _d;
664
667
  return (((((_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.privacy_necessity) && !isAgreePolicy && !isEditor) || isOpenConsent) &&
@@ -681,6 +684,24 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
681
684
  })) !== null && _a !== void 0 ? _a : [];
682
685
  return nList;
683
686
  }, []);
687
+ useEffect(() => {
688
+ let intervalId;
689
+ if (eventTimeList.length > 0) {
690
+ // 定期检查数组中的时间
691
+ const checkTimes = () => {
692
+ const now = new Date(); // 获取当前时间
693
+ const threshold = 15 * 1000; // 15秒的毫秒数
694
+ // 过滤掉超过15秒的时间
695
+ setEventTimeList((prevArray) => prevArray.filter((item) => now - item.time <= threshold));
696
+ };
697
+ // 每秒检查一次
698
+ intervalId = setInterval(checkTimes, 1000);
699
+ }
700
+ // 清理函数
701
+ return () => {
702
+ clearInterval(intervalId);
703
+ };
704
+ }, [eventTimeList]); // 依赖于 timeArray
684
705
  useEffect(() => {
685
706
  const handleChangeThemeTag = (tag) => {
686
707
  themeTag.current = tag;
@@ -827,7 +848,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
827
848
  };
828
849
  }
829
850
  const sessionID = storeAndLoadFeSessionId();
830
- const ef = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, eventInfo), (getDevice$1() && { sxpDevice: getDevice$1() })), (getSystem() && { sxpSystem: getSystem() })), (getBrowserInfo() && { sxpBrowser: getBrowserInfo() })), { playbookType: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.playbook) === 'organic menu' ? 'organicMenu' : 'paidMedia' }), (layoutVariantId && reportLayId && { layoutVariantId }));
851
+ const ef = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, { playbookType }), eventInfo), (getDevice$1() && { sxpDevice: getDevice$1() })), (getSystem() && { sxpSystem: getSystem() })), (getBrowserInfo() && { sxpBrowser: getBrowserInfo() })), (layoutVariantId && reportLayId && { layoutVariantId })), ((eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) && channel && { position: Number(eventInfo === null || eventInfo === void 0 ? void 0 : eventInfo.position) + 1 + '' }));
831
852
  const realUserInfo = Object.entries(userInfo).map(([k, v]) => ({ name: k, value: v }));
832
853
  const realEventInfo = Object.entries(ef)
833
854
  .map(([k, v]) => v && { name: k, value: v })
@@ -841,7 +862,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
841
862
  body: { userInfo: realUserInfo, eventInfo: realEventInfo },
842
863
  type: 'beacon'
843
864
  });
844
- }, [bffFetch, curReqInfo, enableReportEvent, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview, layoutVariantId]);
865
+ }, [bffFetch, curReqInfo, enableReportEvent, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview, layoutVariantId, globalConfig, playbookType]);
845
866
  const bffFbReport = useCallback(({ eventName, product }) => {
846
867
  var _a, _b, _c, _d, _e;
847
868
  if (!enableReportEvent ||
@@ -1002,17 +1023,14 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1002
1023
  return;
1003
1024
  setLoading(true);
1004
1025
  let layId;
1026
+ let pbType;
1005
1027
  getRecommendVideos()
1006
1028
  .then((data) => {
1007
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1029
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1008
1030
  if (data) {
1009
1031
  const list = getFilterRecList(data);
1010
- if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.playbook) === 'organic menu' && !channel) {
1011
- list.unshift('organic menu');
1012
- }
1013
- setRtcList(list);
1014
- setCacheRtcList(list);
1015
1032
  let curData;
1033
+ let gldata;
1016
1034
  if (data === null || data === void 0 ? void 0 : data.layoutVariantId) {
1017
1035
  const id = (_b = (_a = data === null || data === void 0 ? void 0 : data.layoutVariantId) === null || _a === void 0 ? void 0 : _a.split('-')) === null || _b === void 0 ? void 0 : _b[1];
1018
1036
  if (id) {
@@ -1022,19 +1040,49 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1022
1040
  if (curData) {
1023
1041
  setPageData(curData);
1024
1042
  document.title = (_c = curData === null || curData === void 0 ? void 0 : curData.name) !== null && _c !== void 0 ? _c : 'home';
1025
- setGlobalConfig((_d = curData === null || curData === void 0 ? void 0 : curData.data) === null || _d === void 0 ? void 0 : _d.globalConfig);
1043
+ gldata = (_e = (_d = curData === null || curData === void 0 ? void 0 : curData.data) === null || _d === void 0 ? void 0 : _d.sxpPageConf) === null || _e === void 0 ? void 0 : _e.globalConfig;
1044
+ setGlobalConfig(gldata);
1026
1045
  onUpdateSchema === null || onUpdateSchema === void 0 ? void 0 : onUpdateSchema(curData === null || curData === void 0 ? void 0 : curData.data);
1027
- if ((_k = (_j = (_h = (_g = (_f = (_e = curData === null || curData === void 0 ? void 0 : curData.data) === null || _e === void 0 ? void 0 : _e.globalConfig) === null || _f === void 0 ? void 0 : _f.consent) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.privacy_necessity)
1046
+ if ((_j = (_h = (_g = (_f = gldata === null || gldata === void 0 ? void 0 : gldata.consent) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.item) === null || _h === void 0 ? void 0 : _h.props) === null || _j === void 0 ? void 0 : _j.privacy_necessity)
1028
1047
  setShowConsent(true);
1029
1048
  }
1049
+ else {
1050
+ setShowConsent(true);
1051
+ }
1052
+ }
1053
+ }
1054
+ else {
1055
+ setShowConsent(true);
1056
+ }
1057
+ if (!channel) {
1058
+ if ((gldata === null || gldata === void 0 ? void 0 : gldata.playbook) === 'organic menu' || (!gldata && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.playbook) === 'organic menu')) {
1059
+ setPlaybookType('organicMenu');
1060
+ list.unshift('organic menu');
1061
+ pbType = 'organicMenu';
1030
1062
  }
1063
+ else {
1064
+ setPlaybookType('paidMedia');
1065
+ pbType = 'paidMedia';
1066
+ }
1067
+ }
1068
+ setRtcList(list);
1069
+ setCacheRtcList(list);
1070
+ bffGetTagList(curData !== null && curData !== void 0 ? curData : finalPageData);
1071
+ if (channel) {
1072
+ bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1073
+ eventInfo: {
1074
+ eventSubject: 'multiPostClick',
1075
+ eventDescription: 'multiPostClick',
1076
+ traceInfo: (_m = (_l = (_k = list === null || list === void 0 ? void 0 : list[0]) === null || _k === void 0 ? void 0 : _k.video) === null || _l === void 0 ? void 0 : _l.traceInfo) !== null && _m !== void 0 ? _m : '',
1077
+ branchfeed: channel
1078
+ }
1079
+ });
1031
1080
  }
1032
- bffGetTagList(curData !== null && curData !== void 0 ? curData : pageData);
1033
1081
  }
1034
1082
  })
1035
1083
  .finally(() => {
1036
1084
  bffEventReport({
1037
- eventInfo: Object.assign({ eventSubject: 'apiRequest', eventDescription: 'api request succeed' }, (layId && { layoutVariantId: layId }))
1085
+ eventInfo: Object.assign(Object.assign({ eventSubject: 'apiRequest', eventDescription: 'api request succeed' }, (layId && { layoutVariantId: layId })), (pbType && { playbookType: pbType }))
1038
1086
  });
1039
1087
  setLoading(false);
1040
1088
  });
@@ -1044,7 +1092,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1044
1092
  if (!isPreview)
1045
1093
  return;
1046
1094
  setLoading(true);
1047
- bffGetTagList(pageData);
1095
+ bffGetTagList(data);
1048
1096
  getRecommendVideos()
1049
1097
  .then((data) => {
1050
1098
  if (data) {
@@ -1110,14 +1158,16 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1110
1158
  isEditor,
1111
1159
  isNoMoreData,
1112
1160
  updateChannel,
1113
- channel
1161
+ channel,
1162
+ eventTimeList,
1163
+ setEventTimeList
1114
1164
  } }, isShowConsent ? (React.createElement(Consent$4, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
1115
1165
  rtcList,
1116
1166
  mutateLike: bffMutateLike,
1117
1167
  mutateUnlike: bffMutateUnlike,
1118
1168
  submitForm: bffSubmitForm,
1119
1169
  tagList,
1120
- pageData
1170
+ pageData: finalPageData
1121
1171
  }))));
1122
1172
  };
1123
1173
  var SxpDataSourceProvider$1 = memo(SxpDataSourceProvider);
@@ -1571,14 +1621,21 @@ var settingRender$d = [
1571
1621
  * @Author: binruan@chatlabs.com
1572
1622
  * @Date: 2024-03-12 10:59:06
1573
1623
  * @LastEditors: binruan@chatlabs.com
1574
- * @LastEditTime: 2024-08-28 17:51:37
1624
+ * @LastEditTime: 2024-11-28 11:17:16
1575
1625
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
1576
1626
  *
1577
1627
  */
1578
1628
  function useEventReport() {
1579
- const { bffEventReport, popupDetailData, waterFallData, isFromHashtag } = useSxpDataSource();
1580
- const jumpToWeb = useCallback((data, product, cta, position, traceInfo) => {
1629
+ const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
1630
+ const jumpToWeb = useCallback((e, data, product, cta, position, traceInfo) => {
1581
1631
  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, _11, _12, _13;
1632
+ const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
1633
+ if (i !== -1) {
1634
+ return;
1635
+ }
1636
+ else if (e) {
1637
+ setEventTimeList === null || setEventTimeList === void 0 ? void 0 : setEventTimeList((prev) => [...prev, { target: e === null || e === void 0 ? void 0 : e.target, time: new Date() }]);
1638
+ }
1582
1639
  let fromKName = '';
1583
1640
  if (popupDetailData && (((_b = (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = data === null || data === void 0 ? void 0 : data.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
1584
1641
  fromKName = 'pdpPage';
@@ -1606,7 +1663,7 @@ function useEventReport() {
1606
1663
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1607
1664
  eventInfo: Object.assign({ eventSubject: 'jumpToWeb', eventDescription: 'User jumped to website', productId: (_v = product === null || product === void 0 ? void 0 : product.itemId) !== null && _v !== void 0 ? _v : '', productName: (_w = product === null || product === void 0 ? void 0 : product.title) !== null && _w !== void 0 ? _w : '', price: (product === null || product === void 0 ? void 0 : product.price) ? (product === null || product === void 0 ? void 0 : product.price) + '' : '0', productCollection: (_x = product === null || product === void 0 ? void 0 : product.collection) !== null && _x !== void 0 ? _x : '', fromKName, fromKPage: location === null || location === void 0 ? void 0 : location.href, contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_z = (_y = data === null || data === void 0 ? void 0 : data.video) === null || _y === void 0 ? void 0 : _y.itemId) !== null && _z !== void 0 ? _z : '', ctatId: (_0 = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _0 !== void 0 ? _0 : '', traceInfo: (_13 = (_10 = (_8 = (_4 = (_1 = traceInfo !== null && traceInfo !== void 0 ? traceInfo : product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _1 !== void 0 ? _1 : (_3 = (_2 = data === null || data === void 0 ? void 0 : data.video) === null || _2 === void 0 ? void 0 : _2.bindProduct) === null || _3 === void 0 ? void 0 : _3.traceInfo) !== null && _4 !== void 0 ? _4 : (_7 = (_6 = (_5 = data === null || data === void 0 ? void 0 : data.video) === null || _5 === void 0 ? void 0 : _5.bindProducts) === null || _6 === void 0 ? void 0 : _6[0]) === null || _7 === void 0 ? void 0 : _7.traceInfo) !== null && _8 !== void 0 ? _8 : (_9 = data === null || data === void 0 ? void 0 : data.product) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = data === null || data === void 0 ? void 0 : data.video) === null || _11 === void 0 ? void 0 : _11.bindCta) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : '' }, (contentFormat && { contentFormat }))
1608
1665
  });
1609
- }, [bffEventReport, popupDetailData, isFromHashtag]);
1666
+ }, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
1610
1667
  const productView = useCallback((data, product, cta, viewTime, position) => {
1611
1668
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1612
1669
  let fromKName = '';
@@ -1712,7 +1769,7 @@ const AppointForm$1 = (_a) => {
1712
1769
  const { name, value } = e.target;
1713
1770
  setFormData(Object.assign(Object.assign({}, formData), { [name]: value }));
1714
1771
  }, [formData]);
1715
- const handleSubmit = debounce(() => __awaiter(void 0, void 0, void 0, function* () {
1772
+ const handleSubmit = debounce((e) => __awaiter(void 0, void 0, void 0, function* () {
1716
1773
  var _d, _e, _f, _g, _h;
1717
1774
  const vals = formData;
1718
1775
  if (!vals)
@@ -1735,7 +1792,7 @@ const AppointForm$1 = (_a) => {
1735
1792
  const product = (_f = data === null || data === void 0 ? void 0 : data.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
1736
1793
  const cta = (_h = (_g = data === null || data === void 0 ? void 0 : data.video) === null || _g === void 0 ? void 0 : _g.bindProduct) === null || _h === void 0 ? void 0 : _h.bindCta;
1737
1794
  const position = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
1738
- jumpToWeb(data, product, cta, position);
1795
+ jumpToWeb(e, data, product, cta, position);
1739
1796
  }
1740
1797
  if (!isPopup) {
1741
1798
  onClose === null || onClose === void 0 ? void 0 : onClose();
@@ -10182,9 +10239,9 @@ const CommodityDetail$1 = (_a) => {
10182
10239
  product = p;
10183
10240
  cta = p === null || p === void 0 ? void 0 : p.bindCta;
10184
10241
  }
10185
- const handleLink = () => {
10242
+ const handleLink = (e) => {
10186
10243
  if (product === null || product === void 0 ? void 0 : product.link) {
10187
- jumpToWeb(data, product, cta, position);
10244
+ jumpToWeb(e, data, product, cta, position);
10188
10245
  if (!isPost) {
10189
10246
  productView(data, product, cta, viewTime || curTimeRef.current, position);
10190
10247
  }
@@ -10644,14 +10701,14 @@ const Prompt$1 = (_a) => {
10644
10701
  const { popupDetailData } = useSxpDataSource();
10645
10702
  const { jumpToWeb } = useEventReport();
10646
10703
  const iconSrc = typeof icon === 'string' ? icon : getMediaValueByMode(icon);
10647
- const handleOk = () => {
10704
+ const handleOk = (e) => {
10648
10705
  var _a, _b, _c;
10649
10706
  if (isExternalLink) {
10650
10707
  const data = popupDetailData;
10651
10708
  const product = (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.bindProduct;
10652
10709
  const cta = (_c = (_b = data === null || data === void 0 ? void 0 : data.video) === null || _b === void 0 ? void 0 : _b.bindProduct) === null || _c === void 0 ? void 0 : _c.bindCta;
10653
10710
  const position = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
10654
- jumpToWeb(data, product, cta, position);
10711
+ jumpToWeb(e, data, product, cta, position);
10655
10712
  }
10656
10713
  if (!isPopup) {
10657
10714
  onClose === null || onClose === void 0 ? void 0 : onClose();
@@ -11093,9 +11150,9 @@ const CommodityDetailDiroNew$1 = (_a) => {
11093
11150
  product = p;
11094
11151
  cta = p === null || p === void 0 ? void 0 : p.bindCta;
11095
11152
  }
11096
- const handleLink = () => {
11153
+ const handleLink = (e) => {
11097
11154
  if (product === null || product === void 0 ? void 0 : product.link) {
11098
- jumpToWeb(data, product, cta, position);
11155
+ jumpToWeb(e, data, product, cta, position);
11099
11156
  if (!isPost) {
11100
11157
  productView(data, product, cta, viewTime || curTimeRef.current, position);
11101
11158
  }
@@ -11776,7 +11833,7 @@ const CommodityList$1 = (_a) => {
11776
11833
  style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price
11777
11834
  });
11778
11835
  }, [(_d = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _d === void 0 ? void 0 : _d.enableFormattedPrice, globalConfig]);
11779
- const handleClick = throttle((item, multiCheckIndex) => {
11836
+ const handleClick = throttle((item, multiCheckIndex, e) => {
11780
11837
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
11781
11838
  eventSubject: 'clickCta',
11782
11839
  eventDescription: 'User clicked the CTA'
@@ -11784,7 +11841,7 @@ const CommodityList$1 = (_a) => {
11784
11841
  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 }));
11785
11842
  if (isExternalLink) {
11786
11843
  if (item === null || item === void 0 ? void 0 : item.link) {
11787
- jumpToWeb(recData, item, item.bindCta, index);
11844
+ jumpToWeb(e, recData, item, item.bindCta, index);
11788
11845
  window.location.href = window.getJointUtmLink(item.link);
11789
11846
  }
11790
11847
  }
@@ -11799,7 +11856,7 @@ const CommodityList$1 = (_a) => {
11799
11856
  }, []);
11800
11857
  return (React.createElement("ul", { role: 'list', className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexDirection: 'column', gap: '10px', padding: '0 20px', marginTop: '50px', boxSizing: 'border-box' })) }, product === null || product === void 0 ? void 0 : product.map((item, index) => {
11801
11858
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
11802
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement("li", { role: 'listitem', key: index, onClick: () => handleClick(item, index) },
11859
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement("li", { role: 'listitem', key: index, onClick: (e) => handleClick(item, index, e) },
11803
11860
  React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css({
11804
11861
  display: 'flex',
11805
11862
  alignItems: 'normal',
@@ -12309,9 +12366,9 @@ const EventProvider = (_a) => {
12309
12366
  const { setPopupDetailData, ctaEvent } = useSxpDataSource();
12310
12367
  const { jumpToWeb } = useEventReport();
12311
12368
  const [element, setElement] = useState(null);
12312
- const handleClick = throttle((event) => {
12369
+ const handleClick = throttle((e) => {
12313
12370
  var _a, _b, _c, _d, _e, _f;
12314
- event.preventDefault();
12371
+ e.preventDefault();
12315
12372
  const item = multItem ? multItem : (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
12316
12373
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
12317
12374
  eventSubject: 'clickCta',
@@ -12325,7 +12382,7 @@ const EventProvider = (_a) => {
12325
12382
  if (jumpLink || link) {
12326
12383
  const cta = ((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta) || (multItem === null || multItem === void 0 ? void 0 : multItem.bindCta);
12327
12384
  const product = ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct) || multItem;
12328
- jumpToWeb(rec, product, cta, index);
12385
+ jumpToWeb(e, rec, product, cta, index);
12329
12386
  window.location.href = window.getJointUtmLink(jumpLink || link || '');
12330
12387
  }
12331
12388
  }
@@ -12624,8 +12681,7 @@ var styles$7 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one
12624
12681
  const Link$1 = (_a) => {
12625
12682
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
12626
12683
  var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle, isActive } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle", "isActive"]);
12627
- const { sxpParameter, bffEventReport } = useSxpDataSource();
12628
- useEventReport();
12684
+ const { sxpParameter } = useSxpDataSource();
12629
12685
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
12630
12686
  (_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct;
12631
12687
  const src = (_e = (_d = cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
@@ -15059,12 +15115,12 @@ function WaterfallList$1(_a) {
15059
15115
  (_a = scrollParent === null || scrollParent === void 0 ? void 0 : scrollParent.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', onScroll);
15060
15116
  };
15061
15117
  }, [onScroll, scrollParent]);
15062
- const handleClickLink = () => {
15118
+ const handleClickLink = (e) => {
15063
15119
  var _a, _b, _c, _d, _e;
15064
15120
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
15065
15121
  reportTagsView();
15066
15122
  const rec = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec;
15067
- jumpToWeb(rec, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindProduct, (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindCta, cacheActiveIndex, (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo);
15123
+ jumpToWeb(e, rec, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindProduct, (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindCta, cacheActiveIndex, (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo);
15068
15124
  window.location.href = window.getJointUtmLink((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link);
15069
15125
  }
15070
15126
  };
@@ -15290,12 +15346,12 @@ function WaterfallList(_a) {
15290
15346
  // container?.removeEventListener('scroll', handleScroll); // 在组件卸载时移除事件监听器
15291
15347
  // };
15292
15348
  // }, [isLoadingData, containerRef, loadMoreData]);
15293
- const handleClickLink = () => {
15349
+ const handleClickLink = (e) => {
15294
15350
  var _a, _b, _c, _d, _e;
15295
15351
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
15296
15352
  reportTagsView();
15297
15353
  const rec = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec;
15298
- jumpToWeb(rec, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindProduct, (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindCta, cacheActiveIndex, (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo);
15354
+ jumpToWeb(e, rec, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindProduct, (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindCta, cacheActiveIndex, (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo);
15299
15355
  window.location.href = window.getJointUtmLink((_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.link);
15300
15356
  }
15301
15357
  };
@@ -15735,7 +15791,7 @@ const AniLink$1 = (_a) => {
15735
15791
  const isOnScreen = useOnScreen(ref);
15736
15792
  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);
15737
15793
  const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
15738
- const handleTo = () => {
15794
+ const handleTo = (e) => {
15739
15795
  var _a, _b, _c, _d;
15740
15796
  const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
15741
15797
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
@@ -15746,7 +15802,7 @@ const AniLink$1 = (_a) => {
15746
15802
  if (isExternalLink) {
15747
15803
  const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
15748
15804
  if (link) {
15749
- jumpToWeb(recData, product, cta, index);
15805
+ jumpToWeb(e, recData, product, cta, index);
15750
15806
  window.location.href = window.getJointUtmLink(link);
15751
15807
  }
15752
15808
  }
@@ -16182,7 +16238,7 @@ const AniLinkPopup$1 = (_a) => {
16182
16238
  const [visible, setVisible] = useState(true);
16183
16239
  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);
16184
16240
  const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
16185
- const handleTo = () => {
16241
+ const handleTo = (e) => {
16186
16242
  var _a, _b, _c, _d;
16187
16243
  const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
16188
16244
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
@@ -16193,7 +16249,7 @@ const AniLinkPopup$1 = (_a) => {
16193
16249
  if (isExternalLink) {
16194
16250
  const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
16195
16251
  if (link) {
16196
- jumpToWeb(recData, product, cta, index);
16252
+ jumpToWeb(e, recData, product, cta, index);
16197
16253
  window.location.href = window.getJointUtmLink(link);
16198
16254
  }
16199
16255
  }
@@ -16801,7 +16857,7 @@ const MultiPosts$1 = (_a) => {
16801
16857
  const { isActive } = useSwiperSlide() || {};
16802
16858
  const initRef = useRef(false);
16803
16859
  const viewTime = useRef();
16804
- const traceinfo = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : '';
16860
+ const traceInfo = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : '';
16805
16861
  const getPropsVal = useCallback((index, str) => {
16806
16862
  try {
16807
16863
  return new Function('props', 'str', `if (str) {
@@ -16817,14 +16873,6 @@ const MultiPosts$1 = (_a) => {
16817
16873
  const value = v === null || v === void 0 ? void 0 : v.value;
16818
16874
  if (!value)
16819
16875
  return;
16820
- bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
16821
- eventInfo: {
16822
- eventSubject: 'multiPostClick',
16823
- eventDescription: 'multiPostClick',
16824
- traceinfo,
16825
- branchfeed: (v === null || v === void 0 ? void 0 : v.linkType) === 'recommendFlow' && value ? value : ''
16826
- }
16827
- });
16828
16876
  if ((v === null || v === void 0 ? void 0 : v.linkType) === 'recommendFlow') {
16829
16877
  endMultiPost('multipostClick');
16830
16878
  updateChannel === null || updateChannel === void 0 ? void 0 : updateChannel(value);
@@ -16842,7 +16890,7 @@ const MultiPosts$1 = (_a) => {
16842
16890
  eventDescription: 'startMultiPost',
16843
16891
  contentFormat: 'IMAGE',
16844
16892
  position: '0',
16845
- traceinfo
16893
+ traceInfo
16846
16894
  }
16847
16895
  });
16848
16896
  }, []);
@@ -16853,7 +16901,7 @@ const MultiPosts$1 = (_a) => {
16853
16901
  eventDescription: 'endMultiPost',
16854
16902
  contentFormat: 'IMAGE',
16855
16903
  position: '0',
16856
- traceinfo,
16904
+ traceInfo,
16857
16905
  nextStep: nextStep || 'others',
16858
16906
  timeOnSite: Math.floor((new Date() - (viewTime === null || viewTime === void 0 ? void 0 : viewTime.current)) / 1000) + ''
16859
16907
  }
@@ -16869,6 +16917,8 @@ const MultiPosts$1 = (_a) => {
16869
16917
  }
16870
16918
  }, [isActive]);
16871
16919
  useEffect(() => {
16920
+ if (!isActive)
16921
+ return;
16872
16922
  const onShow = () => startMultiPost();
16873
16923
  const onHide = () => endMultiPost();
16874
16924
  SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, onShow);
@@ -16879,7 +16929,7 @@ const MultiPosts$1 = (_a) => {
16879
16929
  };
16880
16930
  }, [isActive]);
16881
16931
  return (React.createElement("div", { className: 'multiposts', style: Object.assign(Object.assign({}, style), getBgStyle(bgImgUrl)) }, Array.from({ length: 4 }, (_, index) => {
16882
- return (React.createElement("button", { className: 'multiposts-btn', role: 'button', "aria-label": `multiposts-${index + 1}`, onClick: () => handleClick(index) },
16932
+ return (React.createElement("button", { hidden: !getPropsVal(index, 'Url'), className: 'multiposts-btn', role: 'button', "aria-label": `multiposts-${index + 1}`, onClick: () => handleClick(index) },
16883
16933
  React.createElement("img", { className: 'multiposts-btn-img', src: getPropsVal(index, 'Url'), alt: `multiposts-img-${index + 1}` })));
16884
16934
  })));
16885
16935
  };
@@ -17913,7 +17963,7 @@ var NavBack$1 = memo(NavBack);
17913
17963
  * @Author: binruan@chatlabs.com
17914
17964
  * @Date: 2024-03-20 10:27:31
17915
17965
  * @LastEditors: binruan@chatlabs.com
17916
- * @LastEditTime: 2024-11-27 17:08:59
17966
+ * @LastEditTime: 2024-12-03 14:41:51
17917
17967
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
17918
17968
  *
17919
17969
  */
@@ -18005,20 +18055,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18005
18055
  else if (item === null || item === void 0 ? void 0 : item.product) {
18006
18056
  fromKName = 'productPage';
18007
18057
  }
18008
- bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18009
- eventInfo: {
18010
- sessionDuration: Math.floor((new Date() - curTime.current) / 1000) + '',
18011
- eventSubject: 'sessionCompleted',
18012
- eventDescription: 'Session completed',
18013
- contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
18014
- productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
18015
- position: activeIndex + '',
18016
- fromKName,
18017
- fromKPage: location === null || location === void 0 ? void 0 : location.href,
18018
- ctatId: (_r = (_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.bindCta) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
18019
- traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : ''
18020
- }
18021
- });
18058
+ if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.playbook) !== 'organic menu' || activeIndex !== 0) {
18059
+ bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18060
+ eventInfo: {
18061
+ sessionDuration: Math.floor((new Date() - curTime.current) / 1000) + '',
18062
+ eventSubject: 'sessionCompleted',
18063
+ eventDescription: 'Session completed',
18064
+ contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
18065
+ productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
18066
+ position: activeIndex + '',
18067
+ fromKName,
18068
+ fromKPage: location === null || location === void 0 ? void 0 : location.href,
18069
+ ctatId: (_r = (_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.bindCta) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
18070
+ traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : ''
18071
+ }
18072
+ });
18073
+ }
18022
18074
  }
18023
18075
  else if (document.visibilityState === 'visible') {
18024
18076
  if (skipLinkRef.current === true) {
@@ -18094,10 +18146,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18094
18146
  const isExternalLink = ((_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoBar) === null || _c === void 0 ? void 0 : _c.onClick) === null || _d === void 0 ? void 0 : _d.linkType) === 'externalLink';
18095
18147
  const rec = visList[activeIndex];
18096
18148
  return (React.createElement("div", Object.assign({ className: 'clc-sxp-logo-banner', style: { backgroundColor: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.color } }, (link && {
18097
- onClick: () => {
18149
+ onClick: (e) => {
18098
18150
  var _a, _b, _c, _d;
18099
18151
  if (isExternalLink) {
18100
- jumpToWeb(rec, (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindCta, activeIndex, ((_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.traceInfo) || ((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo));
18152
+ jumpToWeb(e, rec, (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct, (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindCta, activeIndex, ((_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.traceInfo) || ((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.traceInfo));
18101
18153
  }
18102
18154
  new Function(link)();
18103
18155
  }
@@ -18200,9 +18252,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18200
18252
  if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLike) || !visible)
18201
18253
  return;
18202
18254
  let top = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconY) !== null && _a !== void 0 ? _a : 400;
18203
- if (waterFallData && top < 40 && globalConfig.likeIconYPosit === 'top') {
18255
+ if (waterFallData && top < 40 && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconYPosit) === 'top') {
18204
18256
  top += 40;
18205
18257
  }
18258
+ if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconYPosit) === 'top') {
18259
+ top += minusHeight;
18260
+ }
18206
18261
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
18207
18262
  return (React.createElement(LikeButton$1, { key: rec.position, activeIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon, unActicveIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
18208
18263
  position: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed) ? 'fixed' : 'absolute',
@@ -18374,6 +18429,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18374
18429
  if (waterFallData && top < 40 && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) === 'top') {
18375
18430
  top += 40;
18376
18431
  }
18432
+ if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) === 'top') {
18433
+ top += minusHeight;
18434
+ }
18377
18435
  return (((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === true) && (React.createElement(ToggleButton$1, { style: {
18378
18436
  position: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed) ? 'fixed' : 'absolute',
18379
18437
  visibility: ((_c = (_b = visList === null || visList === void 0 ? void 0 : visList[activeIndex]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.url) ? 'visible' : 'hidden',
@@ -18433,7 +18491,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18433
18491
  eventInfo: {
18434
18492
  eventSubject: 'backMultiPostClick',
18435
18493
  eventDescription: 'backMultiPostClick',
18436
- traceinfo: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : ''
18494
+ traceInfo: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : ''
18437
18495
  }
18438
18496
  });
18439
18497
  location === null || location === void 0 ? void 0 : location.reload();