pb-sxp-ui 1.18.0 → 1.18.2

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 (82) hide show
  1. package/dist/index.cjs +322 -394
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +15 -7
  4. package/dist/index.js +322 -394
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +6 -6
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +6 -6
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +322 -394
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +6 -6
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/DiyPortalPreview/VideoWidget.js +8 -10
  15. package/es/core/components/DiyPortalPreview/index.js +5 -3
  16. package/es/core/components/DiyStoryPreview/index.js +7 -18
  17. package/es/core/components/SxpPageRender/LikeButton/index.js +16 -18
  18. package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
  19. package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -39
  20. package/es/core/components/SxpPageRender/RenderCard.d.ts +0 -1
  21. package/es/core/components/SxpPageRender/RenderCard.js +14 -2
  22. package/es/core/components/SxpPageRender/VideoWidget/index.js +45 -32
  23. package/es/core/components/SxpPageRender/WaterFall/index.js +3 -4
  24. package/es/core/components/SxpPageRender/index.js +41 -57
  25. package/es/core/context/SxpDataSourceProvider.d.ts +12 -5
  26. package/es/core/context/SxpDataSourceProvider.js +35 -62
  27. package/es/core/hooks/useEventReport.js +5 -6
  28. package/es/materials/sxp/consentPopup/Display/index.js +1 -1
  29. package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
  30. package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
  31. package/es/materials/sxp/popup/CommodityList/index.js +4 -5
  32. package/es/materials/sxp/popup/CommodityList/material.js +1 -1
  33. package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  34. package/es/materials/sxp/template/Appoint/material.js +1 -2
  35. package/es/materials/sxp/template/Commodity/material.js +2 -3
  36. package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
  37. package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  38. package/es/materials/sxp/template/Link/material.js +2 -4
  39. package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
  40. package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
  41. package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  42. package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  43. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  44. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  45. package/es/materials/sxp/template/NineCommodity/material.js +2 -3
  46. package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
  47. package/es/materials/sxp/template/components/settingRender.js +1 -1
  48. package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
  49. package/lib/core/components/DiyPortalPreview/index.js +5 -3
  50. package/lib/core/components/DiyStoryPreview/index.js +7 -18
  51. package/lib/core/components/SxpPageRender/LikeButton/index.js +16 -18
  52. package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
  53. package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -38
  54. package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
  55. package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
  56. package/lib/core/components/SxpPageRender/VideoWidget/index.js +45 -32
  57. package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
  58. package/lib/core/components/SxpPageRender/index.js +41 -57
  59. package/lib/core/context/SxpDataSourceProvider.d.ts +12 -5
  60. package/lib/core/context/SxpDataSourceProvider.js +35 -62
  61. package/lib/core/hooks/useEventReport.js +5 -6
  62. package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
  63. package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
  64. package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
  65. package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
  66. package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
  67. package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  68. package/lib/materials/sxp/template/Appoint/material.js +1 -2
  69. package/lib/materials/sxp/template/Commodity/material.js +2 -3
  70. package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
  71. package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  72. package/lib/materials/sxp/template/Link/material.js +2 -4
  73. package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
  74. package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
  75. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  76. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  77. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  78. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  79. package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
  80. package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
  81. package/lib/materials/sxp/template/components/settingRender.js +1 -1
  82. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -622,7 +622,6 @@ const DEFAULT_TAG = 'FOR U';
622
622
  const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, consentHeight, consentWidth, isOpenConsent = false, isEditor = false, utmParameter, channelQueryList, data, dataList, isDiyH5, onUpdateSchema, onUpdateChannel }) => {
623
623
  var _a, _b, _c, _d, _e;
624
624
  const [rtcList, setRtcList] = useState([]);
625
- const [firstRtcList, setFirstRtcList] = useState([]);
626
625
  const [tagList, setTagList] = useState([]);
627
626
  const [loading, setLoading] = useState(true);
628
627
  const [curReqInfo, setCurReqInfo] = useState({ rtc: '', requestId: '' });
@@ -654,10 +653,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
654
653
  const [chatlabsId, setChatlabsId] = useState();
655
654
  const finalPageData = useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
656
655
  const pixelPvStatusRef = useRef(false);
657
- const isDiyPage = useMemo(() => {
658
- var _a, _b, _c;
659
- return isDiyH5 && !((_c = (_b = (_a = finalPageData === null || finalPageData === void 0 ? void 0 : finalPageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf) === null || _b === void 0 ? void 0 : _b.globalConfig) === null || _c === void 0 ? void 0 : _c.enablePreview);
660
- }, [isDiyH5, finalPageData]);
661
656
  const isShowConsent = useMemo(() => {
662
657
  var _a, _b, _c, _d;
663
658
  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) &&
@@ -720,7 +715,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
720
715
  }, [bffDataSource]);
721
716
  // bff API 请求方法
722
717
  const bffFetch = useCallback((path, options, isBota = true) => {
723
- var _a, _b;
718
+ var _a;
724
719
  if (!bffDataSource)
725
720
  return;
726
721
  const url = bffDataSource.url;
@@ -733,9 +728,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
733
728
  val.split('=')[0];
734
729
  val.split('=')[1];
735
730
  });
736
- options.body = Object.assign(Object.assign({}, options.body), { productUserId: fakeUserId });
737
731
  return window
738
- .fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId, 'tenant-id': (_b = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _b === void 0 ? void 0 : _b['x-app-id'] }, bffDataSource.headers), method: options.method, body: options.type === 'beacon' && isBota
732
+ .fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers), method: options.method, body: options.type === 'beacon' && isBota
739
733
  ? JSON.stringify({
740
734
  body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
741
735
  })
@@ -975,8 +969,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
975
969
  }, [bffDataSource]);
976
970
  // 获取推荐视频数据
977
971
  const getRecommendVideos = useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
978
- var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
979
- query = Object.assign(Object.assign({ maxSize: (_f = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _f !== void 0 ? _f : maxSize, defaultSize: (_g = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _g !== void 0 ? _g : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag, pageNum: query === null || query === void 0 ? void 0 : query.pageNum, contentFilter: query === null || query === void 0 ? void 0 : query.contentFilter, productFilter: query === null || query === void 0 ? void 0 : query.productFilter }, (chatlabsId && { chatlabsId })), (isDiyPage && { type: 'story' }));
972
+ var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
973
+ query = Object.assign(Object.assign({ maxSize: (_f = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _f !== void 0 ? _f : maxSize, defaultSize: (_g = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _g !== void 0 ? _g : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag, pageNum: query === null || query === void 0 ? void 0 : query.pageNum, contentFilter: query === null || query === void 0 ? void 0 : query.contentFilter, productFilter: query === null || query === void 0 ? void 0 : query.productFilter }, (chatlabsId && { chatlabsId })), (isDiyH5 && { type: 'story' }));
980
974
  if (channel) {
981
975
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(channel) });
982
976
  }
@@ -989,10 +983,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
989
983
  if (val)
990
984
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(val) });
991
985
  }
992
- const isDiy = isDiyH5 && ((_o = (_m = (_l = finalPageData === null || finalPageData === void 0 ? void 0 : finalPageData.data) === null || _l === void 0 ? void 0 : _l.sxpPageConf) === null || _m === void 0 ? void 0 : _m.globalConfig) === null || _o === void 0 ? void 0 : _o.enablePreview);
993
986
  if (isEditor) {
994
987
  let pageNum = 1;
995
- query = Object.assign(Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1 }), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] })), (isDiy && { maxRecs: query === null || query === void 0 ? void 0 : query.maxSize }));
988
+ query = Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1 }), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
996
989
  if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current) {
997
990
  return undefined;
998
991
  }
@@ -1000,22 +993,19 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1000
993
  let list = [];
1001
994
  let result = null;
1002
995
  const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
1003
- var _y, _z, _0, _1, _2, _3;
996
+ var _v, _w, _x, _y, _z, _0;
1004
997
  query.pageNum = pageNum;
1005
- result = isDiy ? yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v3/recommend/direct/page/view', { method: 'POST', body: query })) : yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('recommend/direct_page', { method: 'POST', body: query }));
998
+ result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
1006
999
  if (!(result === null || result === void 0 ? void 0 : result.success)) {
1007
1000
  return undefined;
1008
1001
  }
1009
1002
  setLoading(false);
1010
- list = list.concat((_1 = (_0 = (_z = (_y = result === null || result === void 0 ? void 0 : result.data) === null || _y === void 0 ? void 0 : _y.recList) === null || _z === void 0 ? void 0 : _z.filter) === null || _0 === void 0 ? void 0 : _0.call(_z, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _1 !== void 0 ? _1 : []);
1003
+ list = list.concat((_y = (_x = (_w = (_v = result === null || result === void 0 ? void 0 : result.data) === null || _v === void 0 ? void 0 : _v.recList) === null || _w === void 0 ? void 0 : _w.filter) === null || _x === void 0 ? void 0 : _x.call(_w, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _y !== void 0 ? _y : []);
1011
1004
  if ((rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) === 0) {
1012
1005
  setRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1013
1006
  setCacheRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1014
- if (isDiyPage) {
1015
- setFirstRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1016
- }
1017
1007
  }
1018
- const isNotNullList = (_3 = (_2 = result === null || result === void 0 ? void 0 : result.data) === null || _2 === void 0 ? void 0 : _2.recList) === null || _3 === void 0 ? void 0 : _3.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
1008
+ const isNotNullList = (_0 = (_z = result === null || result === void 0 ? void 0 : result.data) === null || _z === void 0 ? void 0 : _z.recList) === null || _0 === void 0 ? void 0 : _0.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
1019
1009
  if (isNotNullList) {
1020
1010
  pageNum = pageNum + 1;
1021
1011
  yield recurveRecList(query);
@@ -1023,13 +1013,13 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1023
1013
  });
1024
1014
  yield recurveRecList(query);
1025
1015
  if (!(query === null || query === void 0 ? void 0 : query.hashTag) && result)
1026
- setCurReqInfo({ rtc: (_p = result === null || result === void 0 ? void 0 : result.data) === null || _p === void 0 ? void 0 : _p.rtc, requestId: (_q = result === null || result === void 0 ? void 0 : result.data) === null || _q === void 0 ? void 0 : _q.requestId });
1016
+ setCurReqInfo({ rtc: (_l = result === null || result === void 0 ? void 0 : result.data) === null || _l === void 0 ? void 0 : _l.rtc, requestId: (_m = result === null || result === void 0 ? void 0 : result.data) === null || _m === void 0 ? void 0 : _m.requestId });
1027
1017
  return Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list });
1028
1018
  }
1029
1019
  if (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) {
1030
- query = Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1, pageNum: (_r = query === null || query === void 0 ? void 0 : query.pageNum) !== null && _r !== void 0 ? _r : 1 }), (isDiy && { maxRecs: query === null || query === void 0 ? void 0 : query.maxSize }));
1020
+ query = Object.assign(Object.assign({}, query), { directPage: true, level: 1, pageNum: (_o = query === null || query === void 0 ? void 0 : query.pageNum) !== null && _o !== void 0 ? _o : 1 });
1031
1021
  }
1032
- const result = isDiy ? yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v3/recommend/direct/page/view', { method: 'POST', body: query })) : yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/list', {
1022
+ const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/list', {
1033
1023
  method: 'POST',
1034
1024
  body: query
1035
1025
  }));
@@ -1039,31 +1029,26 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1039
1029
  if (!(query === null || query === void 0 ? void 0 : query.hashTag))
1040
1030
  setCurReqInfo({ rtc: result.data.rtc, requestId: result.data.requestId });
1041
1031
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor) {
1042
- const isNotNullList = (_t = (_s = result === null || result === void 0 ? void 0 : result.data) === null || _s === void 0 ? void 0 : _s.recList) === null || _t === void 0 ? void 0 : _t.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
1032
+ const isNotNullList = (_q = (_p = result === null || result === void 0 ? void 0 : result.data) === null || _p === void 0 ? void 0 : _p.recList) === null || _q === void 0 ? void 0 : _q.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
1043
1033
  if (!isNotNullList) {
1044
1034
  setIsNoMoreData(true);
1045
1035
  }
1046
1036
  }
1047
1037
  let list = [];
1048
- list = list.concat((_x = (_w = (_v = (_u = result === null || result === void 0 ? void 0 : result.data) === null || _u === void 0 ? void 0 : _u.recList) === null || _v === void 0 ? void 0 : _v.filter) === null || _w === void 0 ? void 0 : _w.call(_v, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _x !== void 0 ? _x : []);
1038
+ list = list.concat((_u = (_t = (_s = (_r = result === null || result === void 0 ? void 0 : result.data) === null || _r === void 0 ? void 0 : _r.recList) === null || _s === void 0 ? void 0 : _s.filter) === null || _t === void 0 ? void 0 : _t.call(_s, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _u !== void 0 ? _u : []);
1049
1039
  return Object.assign(Object.assign({}, result.data), { recList: list });
1050
- }), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin, isDiyPage, finalPageData, isDiyH5]);
1040
+ }), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
1051
1041
  const loadVideos = useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
1052
- var _4, _5, _6, _7;
1042
+ var _1, _2, _3, _4;
1053
1043
  if (rtcList.length <= 0) {
1054
1044
  return;
1055
1045
  }
1056
- if (isDiyPage && (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) > 0) {
1057
- setRtcList(rtcList.concat(firstRtcList));
1058
- setCacheRtcList(cacheRtcList.concat(firstRtcList));
1059
- return;
1060
- }
1061
1046
  const lastItem = rtcList === null || rtcList === void 0 ? void 0 : rtcList[(rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) - 1];
1062
- const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_4 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _4 === void 0 ? void 0 : _4.itemId) && { productFilter: [(_5 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _5 === void 0 ? void 0 : _5.itemId] })), (((_6 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _6 === void 0 ? void 0 : _6.itemId) && { contentFilter: [(_7 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _7 === void 0 ? void 0 : _7.itemId] })), { themeTag: themeTag.current }), ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor && { pageNum })));
1047
+ const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_1 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _1 === void 0 ? void 0 : _1.itemId) && { productFilter: [(_2 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _2 === void 0 ? void 0 : _2.itemId] })), (((_3 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _3 === void 0 ? void 0 : _3.itemId) && { contentFilter: [(_4 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _4 === void 0 ? void 0 : _4.itemId] })), { themeTag: themeTag.current }), ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor && { pageNum })));
1063
1048
  setRtcList(rtcList.concat(getFilterRecList(data)));
1064
1049
  setCacheRtcList(cacheRtcList.concat(getFilterRecList(data)));
1065
1050
  return data;
1066
- }), [getRecommendVideos, rtcList, waterFallData, cacheRtcList, isDiyPage, firstRtcList]);
1051
+ }), [getRecommendVideos, rtcList, waterFallData, cacheRtcList]);
1067
1052
  const refreshFeSession = useCallback((enableReSid, event) => {
1068
1053
  var _a, _b, _c, _d, _e;
1069
1054
  let expire = false;
@@ -1094,8 +1079,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1094
1079
  // 用户信息都是公共的
1095
1080
  if (!userInfo) {
1096
1081
  userInfo = {
1097
- productUserId: fakeUserId // 后端逻辑会从请求头获取,所以不需要传
1098
- // tpChannelId: 'H5' // 后端处理
1082
+ // productUserId: fakeUserId, // 后端逻辑会从请求头获取,所以不需要传
1083
+ // tpChannelId: 'H5' // 后端处理
1099
1084
  };
1100
1085
  }
1101
1086
  const sessionID = storeAndLoadFeSessionId();
@@ -1129,8 +1114,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1129
1114
  layoutVariantId,
1130
1115
  globalConfig,
1131
1116
  playbookType,
1132
- bffDataSource,
1133
- fakeUserId
1117
+ bffDataSource
1134
1118
  ]);
1135
1119
  const getEventParamsByJson = useCallback((json, product) => {
1136
1120
  var _a, _b, _c;
@@ -1263,40 +1247,38 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1263
1247
  }
1264
1248
  }, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson]);
1265
1249
  const bffMutateLike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1266
- body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
1267
1250
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/like', { method: 'POST', body }));
1268
1251
  return res === null || res === void 0 ? void 0 : res.success;
1269
- }), [bffFetch, fakeUserId]);
1252
+ }), [bffFetch]);
1270
1253
  const bffMutateUnlike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1271
- body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
1272
1254
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/unlike', { method: 'POST', body }));
1273
1255
  return res === null || res === void 0 ? void 0 : res.success;
1274
- }), [bffFetch, fakeUserId]);
1256
+ }), [bffFetch]);
1275
1257
  const bffSubmitForm = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1276
1258
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/customform', { method: 'POST', body }));
1277
1259
  return res === null || res === void 0 ? void 0 : res.success;
1278
1260
  }), [bffFetch]);
1279
1261
  // 获取 Tag
1280
1262
  const bffGetTagList = useCallback((data) => __awaiter(void 0, void 0, void 0, function* () {
1281
- var _8, _9, _10, _11, _12, _13, _14, _15;
1282
- const isShowTag = !!((_10 = (_9 = (_8 = data === null || data === void 0 ? void 0 : data.data) === null || _8 === void 0 ? void 0 : _8.sxpPageConf) === null || _9 === void 0 ? void 0 : _9.globalConfig) === null || _10 === void 0 ? void 0 : _10.isShowTag);
1263
+ var _5, _6, _7, _8, _9, _10, _11, _12;
1264
+ const isShowTag = !!((_7 = (_6 = (_5 = data === null || data === void 0 ? void 0 : data.data) === null || _5 === void 0 ? void 0 : _5.sxpPageConf) === null || _6 === void 0 ? void 0 : _6.globalConfig) === null || _7 === void 0 ? void 0 : _7.isShowTag);
1283
1265
  if (!utmVal || !isShowTag)
1284
1266
  return;
1285
1267
  try {
1286
- const val = (_13 = (_12 = (_11 = splitUrlParams(utmVal)) === null || _11 === void 0 ? void 0 : _11.filter((val) => {
1268
+ const val = (_10 = (_9 = (_8 = splitUrlParams(utmVal)) === null || _8 === void 0 ? void 0 : _8.filter((val) => {
1287
1269
  var _a, _b;
1288
1270
  const key = val.split('=')[0];
1289
1271
  return (_b = ((_a = utmParameter === null || utmParameter === void 0 ? void 0 : utmParameter.channels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.includes(key);
1290
- })) === null || _12 === void 0 ? void 0 : _12.join('&')) !== null && _13 !== void 0 ? _13 : '';
1272
+ })) === null || _9 === void 0 ? void 0 : _9.join('&')) !== null && _10 !== void 0 ? _10 : '';
1291
1273
  const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/tag/list', { method: 'GET', query: { channel: decodeURIComponent(val) } }));
1292
- setTagList((_15 = (_14 = result === null || result === void 0 ? void 0 : result.data) === null || _14 === void 0 ? void 0 : _14.tags) !== null && _15 !== void 0 ? _15 : []);
1274
+ setTagList((_12 = (_11 = result === null || result === void 0 ? void 0 : result.data) === null || _11 === void 0 ? void 0 : _11.tags) !== null && _12 !== void 0 ? _12 : []);
1293
1275
  }
1294
1276
  catch (e) {
1295
1277
  console.log('e', e);
1296
1278
  }
1297
1279
  }), [bffFetch, utmVal]);
1298
1280
  const ctaEvent = useCallback((eventInfo, rec, product, position) => {
1299
- 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, _14;
1281
+ 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;
1300
1282
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
1301
1283
  const isProd = ((_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.bindProducts) && ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProducts) === null || _d === void 0 ? void 0 : _d.length) > 0);
1302
1284
  let fromKName = '';
@@ -1314,7 +1296,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1314
1296
  }
1315
1297
  const contentTags = (_p = (_m = (_h = product === null || product === void 0 ? void 0 : product.tags) !== null && _h !== void 0 ? _h : (_l = (_k = (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProducts) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : (_q = rec === null || rec === void 0 ? void 0 : rec.product) === null || _q === void 0 ? void 0 : _q.tags;
1316
1298
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1317
- 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 : '', sceneId: (_x = (_w = (_v = rec === null || rec === void 0 ? void 0 : rec.video) === null || _v === void 0 ? void 0 : _v.scene) === null || _w === void 0 ? void 0 : _w.sceneId) !== null && _x !== void 0 ? _x : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_13 = (_10 = (_5 = (_1 = (_y = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _y !== void 0 ? _y : (_0 = (_z = rec === null || rec === void 0 ? void 0 : rec.video) === null || _z === void 0 ? void 0 : _z.bindCta) === null || _0 === void 0 ? void 0 : _0.traceInfo) !== null && _1 !== void 0 ? _1 : (_4 = (_3 = (_2 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _2 === void 0 ? void 0 : _2.bindProduct) === null || _3 === void 0 ? void 0 : _3.bindCta) === null || _4 === void 0 ? void 0 : _4.traceInfo) !== null && _5 !== void 0 ? _5 : (_9 = (_8 = (_7 = (_6 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _6 === void 0 ? void 0 : _6.bindProducts) === null || _7 === void 0 ? void 0 : _7[0]) === null || _8 === void 0 ? void 0 : _8.bindCta) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = rec === null || rec === void 0 ? void 0 : rec.product) === null || _11 === void 0 ? void 0 : _11.bindCta) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : '', fromKName, fromKPage: (_14 = location === null || location === void 0 ? void 0 : location.href) !== null && _14 !== void 0 ? _14 : '', contentFormat })
1299
+ 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 })
1318
1300
  });
1319
1301
  }, [bffEventReport, isFromHashtag]);
1320
1302
  const h5EnterLink = useCallback(() => {
@@ -1349,10 +1331,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1349
1331
  });
1350
1332
  }, [bffEventReport]);
1351
1333
  const getAccount = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
1352
- var _16, _17;
1334
+ var _13, _14;
1353
1335
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account', { method: 'GET' }));
1354
- setChatlabsId((_16 = res === null || res === void 0 ? void 0 : res.data) === null || _16 === void 0 ? void 0 : _16.chatLabsId);
1355
- return ((_17 = res === null || res === void 0 ? void 0 : res.data) === null || _17 === void 0 ? void 0 : _17.consentResult) === 'true';
1336
+ setChatlabsId((_13 = res === null || res === void 0 ? void 0 : res.data) === null || _13 === void 0 ? void 0 : _13.chatLabsId);
1337
+ return ((_14 = res === null || res === void 0 ? void 0 : res.data) === null || _14 === void 0 ? void 0 : _14.consentResult) === 'true';
1356
1338
  }), [bffFetch]);
1357
1339
  const accountSonsent = useCallback((consentResult) => __awaiter(void 0, void 0, void 0, function* () {
1358
1340
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account/consent', {
@@ -1416,9 +1398,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1416
1398
  }
1417
1399
  setRtcList(list);
1418
1400
  setCacheRtcList(list);
1419
- if (isDiyPage) {
1420
- setFirstRtcList(list);
1421
- }
1422
1401
  bffGetTagList(curData !== null && curData !== void 0 ? curData : finalPageData);
1423
1402
  if (channel) {
1424
1403
  const item = list === null || list === void 0 ? void 0 : list[0];
@@ -1438,7 +1417,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1438
1417
  });
1439
1418
  setLoading(false);
1440
1419
  });
1441
- }, [isShowConsent, channel, isDiyPage]);
1420
+ }, [isShowConsent, channel]);
1442
1421
  // cms预览
1443
1422
  useEffect(() => {
1444
1423
  if (!isPreview)
@@ -1454,15 +1433,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1454
1433
  }
1455
1434
  setRtcList(list);
1456
1435
  setCacheRtcList(list);
1457
- if (isDiyPage) {
1458
- setFirstRtcList(list);
1459
- }
1460
1436
  }
1461
1437
  })
1462
1438
  .finally(() => {
1463
1439
  setLoading(false);
1464
1440
  });
1465
- }, [getRecommendVideos, bffGetTagList, channel, isDiyPage]);
1441
+ }, [getRecommendVideos, bffGetTagList, channel]);
1466
1442
  const defaultLoadingImage = useIconLink('/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif', appDomain);
1467
1443
  return (React.createElement(SxpDataSourceContext.Provider, { value: {
1468
1444
  rtcList,
@@ -1520,8 +1496,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1520
1496
  refreshFeSession,
1521
1497
  getAccount,
1522
1498
  accountSonsent,
1523
- isDiyH5: isDiyPage,
1524
- firstRtcList
1499
+ isDiyH5
1525
1500
  } }, 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({
1526
1501
  rtcList,
1527
1502
  mutateLike: bffMutateLike,
@@ -1982,14 +1957,14 @@ var settingRender$f = [
1982
1957
  * @Author: binruan@chatlabs.com
1983
1958
  * @Date: 2024-03-12 10:59:06
1984
1959
  * @LastEditors: binruan@chatlabs.com
1985
- * @LastEditTime: 2025-05-09 15:30:59
1960
+ * @LastEditTime: 2024-11-28 11:17:16
1986
1961
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
1987
1962
  *
1988
1963
  */
1989
1964
  function useEventReport() {
1990
1965
  const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
1991
1966
  const jumpToWeb = useCallback((e, data, product, cta, position, traceInfo) => {
1992
- 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, _14, _15, _16;
1967
+ 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;
1993
1968
  const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
1994
1969
  if (i !== -1) {
1995
1970
  return;
@@ -2022,11 +1997,11 @@ function useEventReport() {
2022
1997
  contentFormat = 'image';
2023
1998
  }
2024
1999
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
2025
- 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 : '', sceneId: (_2 = (_1 = (_0 = data === null || data === void 0 ? void 0 : data.video) === null || _0 === void 0 ? void 0 : _0.scene) === null || _1 === void 0 ? void 0 : _1.sceneId) !== null && _2 !== void 0 ? _2 : '', ctatId: (_3 = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _3 !== void 0 ? _3 : '', traceInfo: (_16 = (_13 = (_11 = (_7 = (_4 = traceInfo !== null && traceInfo !== void 0 ? traceInfo : product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _4 !== void 0 ? _4 : (_6 = (_5 = data === null || data === void 0 ? void 0 : data.video) === null || _5 === void 0 ? void 0 : _5.bindProduct) === null || _6 === void 0 ? void 0 : _6.traceInfo) !== null && _7 !== void 0 ? _7 : (_10 = (_9 = (_8 = data === null || data === void 0 ? void 0 : data.video) === null || _8 === void 0 ? void 0 : _8.bindProducts) === null || _9 === void 0 ? void 0 : _9[0]) === null || _10 === void 0 ? void 0 : _10.traceInfo) !== null && _11 !== void 0 ? _11 : (_12 = data === null || data === void 0 ? void 0 : data.product) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : (_15 = (_14 = data === null || data === void 0 ? void 0 : data.video) === null || _14 === void 0 ? void 0 : _14.bindCta) === null || _15 === void 0 ? void 0 : _15.traceInfo) !== null && _16 !== void 0 ? _16 : '' }, (contentFormat && { contentFormat }))
2000
+ 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 }))
2026
2001
  });
2027
2002
  }, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
2028
2003
  const productView = useCallback((data, product, cta, viewTime, position) => {
2029
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2004
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
2030
2005
  let fromKName = '';
2031
2006
  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))) {
2032
2007
  fromKName = 'pdpPage';
@@ -2045,9 +2020,8 @@ function useEventReport() {
2045
2020
  contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
2046
2021
  position: position + '',
2047
2022
  contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
2048
- sceneId: (_g = (_f = (_e = data === null || data === void 0 ? void 0 : data.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
2049
2023
  ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
2050
- traceInfo: (_s = (_q = (_l = (_h = product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _h !== void 0 ? _h : (_k = (_j = data === null || data === void 0 ? void 0 : data.video) === null || _j === void 0 ? void 0 : _j.bindProduct) === null || _k === void 0 ? void 0 : _k.traceInfo) !== null && _l !== void 0 ? _l : (_p = (_o = (_m = data === null || data === void 0 ? void 0 : data.video) === null || _m === void 0 ? void 0 : _m.bindProducts) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.traceInfo) !== null && _q !== void 0 ? _q : (_r = data === null || data === void 0 ? void 0 : data.product) === null || _r === void 0 ? void 0 : _r.traceInfo) !== null && _s !== void 0 ? _s : '',
2024
+ traceInfo: (_p = (_m = (_h = (_e = product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _e !== void 0 ? _e : (_g = (_f = data === null || data === void 0 ? void 0 : data.video) === null || _f === void 0 ? void 0 : _f.bindProduct) === null || _g === void 0 ? void 0 : _g.traceInfo) !== null && _h !== void 0 ? _h : (_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.video) === null || _j === void 0 ? void 0 : _j.bindProducts) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.traceInfo) !== null && _m !== void 0 ? _m : (_o = data === null || data === void 0 ? void 0 : data.product) === null || _o === void 0 ? void 0 : _o.traceInfo) !== null && _p !== void 0 ? _p : '',
2051
2025
  timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
2052
2026
  eventSubject: 'productView',
2053
2027
  eventDescription: 'User browsed the product'
@@ -2643,6 +2617,35 @@ var settingRender$e = [
2643
2617
  }
2644
2618
  ];
2645
2619
 
2620
+ /*
2621
+ * @Author: binruan@chatlabs.com
2622
+ * @Date: 2024-07-09 14:35:10
2623
+ * @LastEditors: binruan@chatlabs.com
2624
+ * @LastEditTime: 2024-07-12 17:53:02
2625
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
2626
+ *
2627
+ */
2628
+ /*
2629
+ * @Author: binruan@chatlabs.com
2630
+ * @Date: 2024-07-05 14:08:41
2631
+ * @LastEditors: binruan@chatlabs.com
2632
+ * @LastEditTime: 2024-07-09 14:34:49
2633
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
2634
+ *
2635
+ */
2636
+ var interactionRender$g = [
2637
+ {
2638
+ title: '滑动事件',
2639
+ child: [
2640
+ {
2641
+ type: 'Switch',
2642
+ label: '滑动铺满全屏',
2643
+ name: ['isScrollFullScreen']
2644
+ }
2645
+ ]
2646
+ }
2647
+ ];
2648
+
2646
2649
  /**
2647
2650
  * SSR Window 4.0.2
2648
2651
  * Better handling for window object in SSR environment
@@ -10221,7 +10224,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
10221
10224
  return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css({
10222
10225
  width: '50px',
10223
10226
  height: '50px',
10224
- marginRight: '10px'
10227
+ marginInlineEnd: '10px'
10225
10228
  }), onClick: () => {
10226
10229
  handleClick(item, index);
10227
10230
  }, key: index },
@@ -10820,35 +10823,6 @@ const CommodityDetail$1 = (_a) => {
10820
10823
  };
10821
10824
  var CommodityDetailComponent = memo(CommodityDetail$1);
10822
10825
 
10823
- /*
10824
- * @Author: binruan@chatlabs.com
10825
- * @Date: 2024-07-09 14:35:10
10826
- * @LastEditors: binruan@chatlabs.com
10827
- * @LastEditTime: 2024-07-12 17:53:02
10828
- * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
10829
- *
10830
- */
10831
- /*
10832
- * @Author: binruan@chatlabs.com
10833
- * @Date: 2024-07-05 14:08:41
10834
- * @LastEditors: binruan@chatlabs.com
10835
- * @LastEditTime: 2024-07-09 14:34:49
10836
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10837
- *
10838
- */
10839
- var interactionRender$g = [
10840
- {
10841
- title: '滑动事件',
10842
- child: [
10843
- {
10844
- type: 'Switch',
10845
- label: '滑动铺满全屏',
10846
- name: ['isScrollFullScreen']
10847
- }
10848
- ]
10849
- }
10850
- ];
10851
-
10852
10826
  /*
10853
10827
  * @Author: binruan@chatlabs.com
10854
10828
  * @Date: 2023-07-28 18:29:57
@@ -10895,7 +10869,6 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10895
10869
  taxInfo: {
10896
10870
  color: '#000',
10897
10871
  fontSize: 13,
10898
- textAlign: 'left',
10899
10872
  marginBottom: '10px'
10900
10873
  }
10901
10874
  },
@@ -11987,7 +11960,7 @@ var settingRender$b = [
11987
11960
  type: 'Number',
11988
11961
  label: '与右侧边距',
11989
11962
  addonAfter: 'px',
11990
- name: ['props', 'commodityPicture', 'marginRight']
11963
+ name: ['props', 'commodityPicture', 'marginInlineEnd']
11991
11964
  },
11992
11965
  {
11993
11966
  label: '居中垂直偏移',
@@ -12273,12 +12246,11 @@ const CommodityList$1 = (_a) => {
12273
12246
  React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css({
12274
12247
  display: 'flex',
12275
12248
  alignItems: 'normal',
12276
- width: '100%',
12277
- textAlign: 'left'
12249
+ width: '100%'
12278
12250
  }) }, props),
12279
12251
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: commodityPicture, enableEventReport: false }),
12280
12252
  React.createElement("div", { style: {
12281
- width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginRight) !== null && _f !== void 0 ? _f : 0}px)`,
12253
+ width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginInlineEnd) !== null && _f !== void 0 ? _f : 0}px)`,
12282
12254
  display: 'flex',
12283
12255
  flexDirection: 'column',
12284
12256
  justifyContent: 'space-between'
@@ -12359,7 +12331,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12359
12331
  commodityPicture: {
12360
12332
  width: 100,
12361
12333
  height: 100,
12362
- marginRight: 10
12334
+ marginInlineEnd: 10
12363
12335
  },
12364
12336
  commodityStyles: {
12365
12337
  price: {
@@ -12605,7 +12577,7 @@ var settingRender$8 = [
12605
12577
  type: 'Number',
12606
12578
  label: '与右侧边距',
12607
12579
  addonAfter: 'px',
12608
- name: ['props', 'ctaTempStyles', 'img', 'marginRight']
12580
+ name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
12609
12581
  },
12610
12582
  {
12611
12583
  label: '居中垂直偏移',
@@ -12866,12 +12838,11 @@ const Commodity = createMaterial(CommodityComponent, {
12866
12838
  borderRadius: 3,
12867
12839
  width: 60,
12868
12840
  height: 60,
12869
- marginRight: 8
12841
+ marginInlineEnd: 8
12870
12842
  },
12871
12843
  title: {
12872
12844
  fontSize: 12,
12873
- color: '#fff',
12874
- textAlign: 'left'
12845
+ color: '#fff'
12875
12846
  },
12876
12847
  ctaTitle: {
12877
12848
  fontSize: 10,
@@ -12949,12 +12920,11 @@ const Appoint = createMaterial(AppointComponent, {
12949
12920
  borderRadius: 3,
12950
12921
  width: 30,
12951
12922
  height: 30,
12952
- marginRight: 8
12923
+ marginInlineEnd: 8
12953
12924
  },
12954
12925
  ctaTitle: {
12955
12926
  fontSize: 12,
12956
12927
  color: '#fff',
12957
- textAlign: 'left',
12958
12928
  width: 130,
12959
12929
  height: 20
12960
12930
  }
@@ -13090,6 +13060,27 @@ var linkSettingRender = [
13090
13060
  }
13091
13061
  ];
13092
13062
 
13063
+ /*
13064
+ * @Author: binruan@chatlabs.com
13065
+ * @Date: 2024-08-09 16:59:38
13066
+ * @LastEditors: binruan@chatlabs.com
13067
+ * @LastEditTime: 2024-09-09 13:59:50
13068
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13069
+ *
13070
+ */
13071
+ var interactionRender$a = [
13072
+ {
13073
+ title: '点击事件',
13074
+ child: [
13075
+ {
13076
+ type: 'link',
13077
+ name: 'onClick',
13078
+ hiddenUrl: true
13079
+ }
13080
+ ]
13081
+ }
13082
+ ];
13083
+
13093
13084
  var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
13094
13085
 
13095
13086
  const Link$1 = (_a) => {
@@ -13117,27 +13108,6 @@ const Link$1 = (_a) => {
13117
13108
  };
13118
13109
  var LinkComponent = memo(Link$1);
13119
13110
 
13120
- /*
13121
- * @Author: binruan@chatlabs.com
13122
- * @Date: 2024-08-09 16:59:38
13123
- * @LastEditors: binruan@chatlabs.com
13124
- * @LastEditTime: 2024-09-09 13:59:50
13125
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13126
- *
13127
- */
13128
- var interactionRender$a = [
13129
- {
13130
- title: '点击事件',
13131
- child: [
13132
- {
13133
- type: 'link',
13134
- name: 'onClick',
13135
- hiddenUrl: true
13136
- }
13137
- ]
13138
- }
13139
- ];
13140
-
13141
13111
  var _a;
13142
13112
  const Link = createMaterial(LinkComponent, {
13143
13113
  displayName: '普通CTA',
@@ -13156,19 +13126,17 @@ const Link = createMaterial(LinkComponent, {
13156
13126
  borderRadius: 3,
13157
13127
  width: 60,
13158
13128
  height: 60,
13159
- marginRight: 8
13129
+ marginInlineEnd: 8
13160
13130
  },
13161
13131
  ctaTitle: {
13162
13132
  fontSize: 12,
13163
13133
  color: '#fff',
13164
- textAlign: 'left',
13165
13134
  width: 130,
13166
13135
  height: 20
13167
13136
  }
13168
13137
  },
13169
13138
  customTitle: {
13170
13139
  style: {
13171
- textAlign: 'left',
13172
13140
  textDecoration: 'underline',
13173
13141
  fontWeight: 'bold',
13174
13142
  width: 130,
@@ -13258,12 +13226,11 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13258
13226
  borderRadius: 3,
13259
13227
  width: 60,
13260
13228
  height: 60,
13261
- marginRight: 8
13229
+ marginInlineEnd: 8
13262
13230
  },
13263
13231
  title: {
13264
13232
  fontSize: 12,
13265
- color: '#000',
13266
- textAlign: 'left'
13233
+ color: '#000'
13267
13234
  },
13268
13235
  ctaTitle: {
13269
13236
  fontSize: 10,
@@ -13354,19 +13321,17 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13354
13321
  borderRadius: 8,
13355
13322
  width: 78,
13356
13323
  height: 78,
13357
- marginRight: 16
13324
+ marginInlineEnd: 16
13358
13325
  },
13359
13326
  title: {
13360
13327
  fontSize: 13,
13361
- color: '#000',
13362
- textAlign: 'left'
13328
+ color: '#000'
13363
13329
  },
13364
13330
  ctaTitle: {
13365
13331
  textDecoration: 'underline',
13366
13332
  fontSize: 14,
13367
13333
  fontWeight: 'bold',
13368
13334
  color: '#000',
13369
- textAlign: 'left',
13370
13335
  width: 150,
13371
13336
  height: 20
13372
13337
  }
@@ -13408,7 +13373,7 @@ const MultiCommodityDiro$1 = (_a) => {
13408
13373
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13409
13374
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13410
13375
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13411
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13376
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13412
13377
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13413
13378
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13414
13379
  React.createElement("div", { className: css({
@@ -13454,12 +13419,11 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13454
13419
  borderRadius: 3,
13455
13420
  width: 60,
13456
13421
  height: 60,
13457
- marginRight: 8
13422
+ marginInlineEnd: 8
13458
13423
  },
13459
13424
  title: {
13460
13425
  fontSize: 12,
13461
- color: '#000',
13462
- textAlign: 'left'
13426
+ color: '#000'
13463
13427
  },
13464
13428
  ctaTitle: {
13465
13429
  fontSize: 10,
@@ -13507,7 +13471,7 @@ const MultiCommodity$1 = (_a) => {
13507
13471
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13508
13472
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13509
13473
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13510
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13474
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13511
13475
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13512
13476
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13513
13477
  React.createElement("div", { className: css({
@@ -13553,12 +13517,11 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13553
13517
  borderRadius: 3,
13554
13518
  width: 60,
13555
13519
  height: 60,
13556
- marginRight: 8
13520
+ marginInlineEnd: 8
13557
13521
  },
13558
13522
  title: {
13559
13523
  fontSize: 12,
13560
13524
  color: '#fff',
13561
- textAlign: 'left'
13562
13525
  },
13563
13526
  ctaTitle: {
13564
13527
  fontSize: 10,
@@ -13614,7 +13577,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
13614
13577
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13615
13578
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13616
13579
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13617
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13580
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13618
13581
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13619
13582
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13620
13583
  React.createElement("div", { className: css({
@@ -13661,19 +13624,17 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13661
13624
  borderRadius: 8,
13662
13625
  width: 78,
13663
13626
  height: 78,
13664
- marginRight: 16
13627
+ marginInlineEnd: 16
13665
13628
  },
13666
13629
  title: {
13667
13630
  fontSize: 12,
13668
- color: '#000',
13669
- textAlign: 'left'
13631
+ color: '#000'
13670
13632
  },
13671
13633
  ctaTitle: {
13672
13634
  textDecoration: 'underline',
13673
13635
  fontSize: 12,
13674
13636
  fontWeight: 'bold',
13675
13637
  color: '#000',
13676
- textAlign: 'left',
13677
13638
  width: 150,
13678
13639
  height: 20
13679
13640
  }
@@ -13768,12 +13729,11 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
13768
13729
  borderRadius: 3,
13769
13730
  width: 60,
13770
13731
  height: 60,
13771
- marginRight: 8
13732
+ marginInlineEnd: 8
13772
13733
  },
13773
13734
  title: {
13774
13735
  fontSize: 12,
13775
- color: '#fff',
13776
- textAlign: 'left'
13736
+ color: '#fff'
13777
13737
  },
13778
13738
  ctaTitle: {
13779
13739
  fontSize: 10,
@@ -15862,7 +15822,7 @@ function WaterfallList(_a) {
15862
15822
  * @Author: binruan@chatlabs.com
15863
15823
  * @Date: 2024-01-10 10:58:24
15864
15824
  * @LastEditors: binruan@chatlabs.com
15865
- * @LastEditTime: 2025-05-09 15:30:41
15825
+ * @LastEditTime: 2025-02-28 10:00:31
15866
15826
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15867
15827
  *
15868
15828
  */
@@ -15900,7 +15860,7 @@ const WaterFall = (props) => {
15900
15860
  }
15901
15861
  }, [waterFallData]);
15902
15862
  const reportTagsView = useCallback(() => {
15903
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15863
+ var _a, _b, _c, _d, _e, _f;
15904
15864
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
15905
15865
  if (!rec)
15906
15866
  return;
@@ -15920,10 +15880,9 @@ const WaterFall = (props) => {
15920
15880
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
15921
15881
  eventInfo: {
15922
15882
  contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
15923
- sceneId: (_g = (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
15924
15883
  position: cacheActiveIndex + '',
15925
- contentTags: JSON.stringify((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.tags),
15926
- traceInfo: (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.traceInfo,
15884
+ contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
15885
+ traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
15927
15886
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
15928
15887
  fromKName,
15929
15888
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
@@ -16694,6 +16653,60 @@ var settingRender$4 = [
16694
16653
  }
16695
16654
  ];
16696
16655
 
16656
+ /*
16657
+ * @Author: binruan@chatlabs.com
16658
+ * @Date: 2024-07-24 14:58:40
16659
+ * @LastEditors: binruan@chatlabs.com
16660
+ * @LastEditTime: 2024-09-09 13:54:35
16661
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16662
+ *
16663
+ */
16664
+ var interactionRender$2 = [
16665
+ {
16666
+ title: '点击事件',
16667
+ child: [
16668
+ {
16669
+ type: 'link',
16670
+ name: 'onClick',
16671
+ hiddenUrl: true
16672
+ }
16673
+ ]
16674
+ },
16675
+ {
16676
+ title: '动画效果',
16677
+ child: [
16678
+ {
16679
+ type: 'Select',
16680
+ name: ['animation', 'name'],
16681
+ label: '动画',
16682
+ options: [
16683
+ {
16684
+ label: '默认',
16685
+ value: 1
16686
+ }
16687
+ ],
16688
+ fieldProps: {
16689
+ style: {
16690
+ width: '100%'
16691
+ }
16692
+ }
16693
+ },
16694
+ {
16695
+ type: 'Number',
16696
+ label: '动画启动时间',
16697
+ name: ['animation', 'delay'],
16698
+ addonAfter: 'ms'
16699
+ },
16700
+ {
16701
+ type: 'Number',
16702
+ label: '动画持续时间',
16703
+ name: ['animation', 'duration'],
16704
+ addonAfter: 'ms'
16705
+ }
16706
+ ]
16707
+ }
16708
+ ];
16709
+
16697
16710
  var styles = {"aniLinkPopup":"index-module_aniLinkPopup__YT7kj","animated-fadeIn":"index-module_animated-fadeIn__8ZCbq","fadeIn":"index-module_fadeIn__2E-dk","animated-fadeOut":"index-module_animated-fadeOut__iK4oc","fadeOut":"index-module_fadeOut__MgevT","one-line-ellipsis":"index-module_one-line-ellipsis__NRiVV","two-line-ellipsis":"index-module_two-line-ellipsis__k-YGB","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
16698
16711
 
16699
16712
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
@@ -16766,60 +16779,6 @@ const AniLinkPopup$1 = (_a) => {
16766
16779
  };
16767
16780
  var AniLinkPopupComponent = memo(AniLinkPopup$1);
16768
16781
 
16769
- /*
16770
- * @Author: binruan@chatlabs.com
16771
- * @Date: 2024-07-24 14:58:40
16772
- * @LastEditors: binruan@chatlabs.com
16773
- * @LastEditTime: 2024-09-09 13:54:35
16774
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16775
- *
16776
- */
16777
- var interactionRender$2 = [
16778
- {
16779
- title: '点击事件',
16780
- child: [
16781
- {
16782
- type: 'link',
16783
- name: 'onClick',
16784
- hiddenUrl: true
16785
- }
16786
- ]
16787
- },
16788
- {
16789
- title: '动画效果',
16790
- child: [
16791
- {
16792
- type: 'Select',
16793
- name: ['animation', 'name'],
16794
- label: '动画',
16795
- options: [
16796
- {
16797
- label: '默认',
16798
- value: 1
16799
- }
16800
- ],
16801
- fieldProps: {
16802
- style: {
16803
- width: '100%'
16804
- }
16805
- }
16806
- },
16807
- {
16808
- type: 'Number',
16809
- label: '动画启动时间',
16810
- name: ['animation', 'delay'],
16811
- addonAfter: 'ms'
16812
- },
16813
- {
16814
- type: 'Number',
16815
- label: '动画持续时间',
16816
- name: ['animation', 'duration'],
16817
- addonAfter: 'ms'
16818
- }
16819
- ]
16820
- }
16821
- ];
16822
-
16823
16782
  /*
16824
16783
  * @Author: binruan@chatlabs.com
16825
16784
  * @Date: 2024-07-24 14:58:40
@@ -16858,7 +16817,6 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
16858
16817
  title: {
16859
16818
  fontSize: 14,
16860
16819
  color: '#000',
16861
- textAlign: 'left',
16862
16820
  lineHeight: 2.6
16863
16821
  },
16864
16822
  ctaTitle: {
@@ -17087,7 +17045,7 @@ const Display$1 = (_a) => {
17087
17045
  React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
17088
17046
  __html: setFontForText((_b = content === null || content === void 0 ? void 0 : content.text) === null || _b === void 0 ? void 0 : _b.replace(/\n/g, '</br>'), content === null || content === void 0 ? void 0 : content.style)
17089
17047
  } }),
17090
- React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
17048
+ React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
17091
17049
  __html: setFontForText((_c = interaction === null || interaction === void 0 ? void 0 : interaction.text) === null || _c === void 0 ? void 0 : _c.replace(/\n/g, '</br>'), interaction === null || interaction === void 0 ? void 0 : interaction.style)
17092
17050
  }, onClick: handleClick })),
17093
17051
  isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
@@ -18005,22 +17963,21 @@ const LikeButton = (_a) => {
18005
17963
  const likeIcon = useIconLink(defaultLikeIconPath$2);
18006
17964
  const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
18007
17965
  const handleClick = debounce(() => __awaiter(void 0, void 0, void 0, function* () {
18008
- var _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;
17966
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
18009
17967
  if (state) {
18010
17968
  // 先设置状态
18011
17969
  setState(false);
18012
- const result = (_e = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({ itemId: (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '' })))) !== null && _e !== void 0 ? _e : false;
17970
+ const result = (_e = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({ videoItemId: (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '' })))) !== null && _e !== void 0 ? _e : false;
18013
17971
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18014
17972
  eventInfo: {
18015
17973
  eventSubject: 'favoriteContentCanceled',
18016
17974
  eventDescription: 'This content was unfavorite by the user',
18017
17975
  contentId: (_g = (_f = recData === null || recData === void 0 ? void 0 : recData.video) === null || _f === void 0 ? void 0 : _f.itemId) !== null && _g !== void 0 ? _g : '',
18018
- sceneId: (_k = (_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.scene) === null || _j === void 0 ? void 0 : _j.sceneId) !== null && _k !== void 0 ? _k : '',
18019
- contentName: (_m = (_l = recData === null || recData === void 0 ? void 0 : recData.video) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : '',
18020
- contentTags: JSON.stringify((_p = (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : []),
17976
+ contentName: (_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '',
17977
+ contentTags: JSON.stringify((_l = (_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.tags) !== null && _l !== void 0 ? _l : []),
18021
17978
  position: position + '',
18022
- contentFormat: ((_q = recData === null || recData === void 0 ? void 0 : recData.video) === null || _q === void 0 ? void 0 : _q.url) ? 'video' : 'image',
18023
- traceInfo: (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.traceInfo
17979
+ contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
17980
+ traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
18024
17981
  }
18025
17982
  });
18026
17983
  // 如果接口调用失败,则回滚状态
@@ -18028,41 +17985,40 @@ const LikeButton = (_a) => {
18028
17985
  setState(true);
18029
17986
  }
18030
17987
  else {
18031
- const nRtcList = (_s = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17988
+ const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18032
17989
  if (index === position) {
18033
17990
  item.isCollected = false;
18034
17991
  }
18035
17992
  return item;
18036
- })) !== null && _s !== void 0 ? _s : [];
17993
+ })) !== null && _p !== void 0 ? _p : [];
18037
17994
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
18038
17995
  }
18039
17996
  }
18040
17997
  else {
18041
17998
  setState(true);
18042
- const result = (_v = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData), itemId: (_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '' })))) !== null && _v !== void 0 ? _v : false;
17999
+ const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
18043
18000
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18044
18001
  eventInfo: {
18045
18002
  eventSubject: 'favoriteContent',
18046
18003
  eventDescription: 'This content was favorite by the user',
18047
- contentId: (_x = (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
18048
- sceneId: (_0 = (_z = (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.scene) === null || _z === void 0 ? void 0 : _z.sceneId) !== null && _0 !== void 0 ? _0 : '',
18049
- contentName: (_2 = (_1 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _1 === void 0 ? void 0 : _1.title) !== null && _2 !== void 0 ? _2 : '',
18050
- contentTags: JSON.stringify((_4 = (_3 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _3 === void 0 ? void 0 : _3.tags) !== null && _4 !== void 0 ? _4 : []),
18004
+ contentId: (_s = (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.itemId) !== null && _s !== void 0 ? _s : '',
18005
+ contentName: (_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.title) !== null && _u !== void 0 ? _u : '',
18006
+ contentTags: JSON.stringify((_w = (_v = recData === null || recData === void 0 ? void 0 : recData.video) === null || _v === void 0 ? void 0 : _v.tags) !== null && _w !== void 0 ? _w : []),
18051
18007
  position: position + '',
18052
- contentFormat: ((_5 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _5 === void 0 ? void 0 : _5.url) ? 'video' : 'image',
18053
- traceInfo: (_6 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _6 === void 0 ? void 0 : _6.traceInfo
18008
+ contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
18009
+ traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
18054
18010
  }
18055
18011
  });
18056
18012
  if (!result) {
18057
18013
  setState(false);
18058
18014
  }
18059
18015
  else {
18060
- const nRtcList = (_7 = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18016
+ const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18061
18017
  if (index === position) {
18062
18018
  item.isCollected = true;
18063
18019
  }
18064
18020
  return item;
18065
- })) !== null && _7 !== void 0 ? _7 : [];
18021
+ })) !== null && _z !== void 0 ? _z : [];
18066
18022
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
18067
18023
  }
18068
18024
  }
@@ -18099,7 +18055,7 @@ const mountVideoPlayerAtNode = (() => {
18099
18055
  const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon, loopPlay, swiperRef }, ref) => {
18100
18056
  var _a, _b;
18101
18057
  const [isPauseVideo, setIsPauseVideo] = useState(false);
18102
- const { bffEventReport, sxpParameter, firstRtcList, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
18058
+ const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
18103
18059
  const videoStartTime = useRef(0);
18104
18060
  const [isLoadFinish, setIsLoadFinish] = useState(false);
18105
18061
  const { isActive } = useSwiperSlide();
@@ -18165,23 +18121,6 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18165
18121
  return;
18166
18122
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
18167
18123
  }, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18168
- const handleEnd = () => {
18169
- var _a, _b, _c, _d, _e, _f;
18170
- if (!videoRef.current)
18171
- return;
18172
- if (isDiyH5) {
18173
- (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
18174
- if (!loopPlayRef.current)
18175
- return;
18176
- if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
18177
- const i = (_c = (_b = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _b === void 0 ? void 0 : _b.swiper) === null || _c === void 0 ? void 0 : _c.activeIndex;
18178
- (_e = (_d = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _d === void 0 ? void 0 : _d.swiper) === null || _e === void 0 ? void 0 : _e.slideTo(i + 1);
18179
- }
18180
- }
18181
- else {
18182
- (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.play();
18183
- }
18184
- };
18185
18124
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
18186
18125
  const handlePlaying = useCallback(() => {
18187
18126
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -18190,7 +18129,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18190
18129
  setIsLoadFinish(true);
18191
18130
  }, []);
18192
18131
  const handleStartPlay = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
18193
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
18132
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18194
18133
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
18195
18134
  return;
18196
18135
  setIsPauseVideo(false);
@@ -18201,11 +18140,16 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18201
18140
  const videoCurrentTime = ((_h = (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.currentTime) !== null && _h !== void 0 ? _h : 0).toFixed(2);
18202
18141
  const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
18203
18142
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18204
- eventInfo: Object.assign({ eventSubject: 'playVideo', eventDescription: 'User played the video', contentId: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '', sceneId: (_o = (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.scene) === null || _m === void 0 ? void 0 : _m.sceneId) !== null && _o !== void 0 ? _o : '', contentName: (_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.title) !== null && _q !== void 0 ? _q : '', playType, startTime: videoCurrentTime, videoDuration, contentTags: JSON.stringify((_s = (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.tags) !== null && _s !== void 0 ? _s : []), position: index + '', contentFormat: 'video', traceInfo: (_t = item === null || item === void 0 ? void 0 : item.video) === null || _t === void 0 ? void 0 : _t.traceInfo }, ((isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) && { loadTime: (loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current) + '' }))
18143
+ eventInfo: Object.assign({ eventSubject: 'playVideo', eventDescription: 'User played the video', contentId: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '', contentName: (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : '', playType, startTime: videoCurrentTime, videoDuration, contentTags: JSON.stringify((_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : []), position: index + '', contentFormat: 'video', traceInfo: (_q = item === null || item === void 0 ? void 0 : item.video) === null || _q === void 0 ? void 0 : _q.traceInfo }, ((isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) && { loadTime: (loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current) + '' }))
18205
18144
  });
18206
18145
  isFirstPlayRef.current = false;
18207
18146
  }
18208
18147
  }), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18148
+ const setCurrentTimeByStartTime = useCallback(() => {
18149
+ if (isDiyH5) {
18150
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
18151
+ }
18152
+ }, []);
18209
18153
  const handLoadeddata = useCallback(() => {
18210
18154
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
18211
18155
  return;
@@ -18230,12 +18174,13 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18230
18174
  const handleLoadedmetadata = useCallback(() => {
18231
18175
  if (!videoRef.current)
18232
18176
  return;
18177
+ setCurrentTimeByStartTime();
18233
18178
  loadedTimeRef.current = new Date();
18234
18179
  handleStartPlay();
18235
18180
  handLoadeddata();
18236
18181
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
18237
18182
  const handleClickVideo = useCallback((type) => () => {
18238
- var _a, _b, _c, _d, _e;
18183
+ var _a, _b, _c, _d, _e, _f;
18239
18184
  if (!videoRef.current)
18240
18185
  return;
18241
18186
  if (!isLoadFinish)
@@ -18256,17 +18201,20 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18256
18201
  break;
18257
18202
  default:
18258
18203
  if (isPause) {
18259
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
18204
+ if (isDiyH5 && Math.round((_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.currentTime) >= (scene === null || scene === void 0 ? void 0 : scene.endTime)) {
18205
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
18206
+ }
18207
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
18260
18208
  }
18261
18209
  else {
18262
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
18210
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
18263
18211
  }
18264
18212
  setIsPauseVideo(!isPause);
18265
18213
  break;
18266
18214
  }
18267
18215
  }, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18268
18216
  const handlePause = useCallback(() => {
18269
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18217
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18270
18218
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
18271
18219
  return;
18272
18220
  if (activeIndex !== index)
@@ -18282,15 +18230,14 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18282
18230
  eventSubject: 'playOverVideo',
18283
18231
  eventDescription: 'User finished playing the video',
18284
18232
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
18285
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
18286
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
18233
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
18287
18234
  endTime: videoCurrentTime,
18288
18235
  videoDuration,
18289
18236
  playDuration,
18290
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
18237
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
18291
18238
  position: index + '',
18292
18239
  contentFormat: 'video',
18293
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
18240
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
18294
18241
  }
18295
18242
  });
18296
18243
  }
@@ -18298,8 +18245,27 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18298
18245
  const handleWaiting = useCallback(() => {
18299
18246
  setWaiting(true);
18300
18247
  }, []);
18248
+ const handleTimeUpload = () => {
18249
+ if (!videoRef.current || !isDiyH5)
18250
+ return;
18251
+ setTimeout(() => {
18252
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18253
+ if (Math.round((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) >= ((_b = scene === null || scene === void 0 ? void 0 : scene.endTime) !== null && _b !== void 0 ? _b : 0)) {
18254
+ (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
18255
+ if (!loopPlayRef.current)
18256
+ return;
18257
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18258
+ (_e = (_d = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _d === void 0 ? void 0 : _d.swiper) === null || _e === void 0 ? void 0 : _e.slideTo(0);
18259
+ }
18260
+ else {
18261
+ const i = (_g = (_f = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _f === void 0 ? void 0 : _f.swiper) === null || _g === void 0 ? void 0 : _g.activeIndex;
18262
+ (_j = (_h = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _h === void 0 ? void 0 : _h.swiper) === null || _j === void 0 ? void 0 : _j.slideTo(i + 1);
18263
+ }
18264
+ }
18265
+ });
18266
+ };
18301
18267
  useEffect(() => {
18302
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18268
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18303
18269
  if (!isActive)
18304
18270
  return;
18305
18271
  const videoSrc = videoUrl;
@@ -18320,6 +18286,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18320
18286
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
18321
18287
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
18322
18288
  var _a;
18289
+ setCurrentTimeByStartTime();
18323
18290
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
18324
18291
  });
18325
18292
  }
@@ -18333,11 +18300,12 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18333
18300
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
18334
18301
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
18335
18302
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
18336
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
18303
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
18337
18304
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
18338
18305
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
18306
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
18339
18307
  return () => {
18340
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18308
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18341
18309
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
18342
18310
  if (!isPause)
18343
18311
  handlePause();
@@ -18349,9 +18317,10 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
18349
18317
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
18350
18318
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
18351
18319
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
18352
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
18320
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
18353
18321
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
18354
18322
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
18323
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
18355
18324
  };
18356
18325
  }, [isActive]);
18357
18326
  useEffect(() => {
@@ -18562,45 +18531,19 @@ const Picture = (props) => {
18562
18531
  }, onLoad: onShowFirstImage }))));
18563
18532
  };
18564
18533
 
18565
- const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
18534
+ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
18566
18535
  var _a, _b;
18567
18536
  const { isActive } = useSwiperSlide();
18568
- const { firstRtcList, openHashtag, isDiyH5 } = useSxpDataSource();
18537
+ const { sxpParameter, openHashtag } = useSxpDataSource();
18569
18538
  const [isLoad, setIsLoad] = useState(false);
18570
18539
  const [imgInfo, setImgInfo] = useState();
18571
18540
  const [swiperActiveIndex, setSwiperActiveIndex] = useState(0);
18572
- const imgsSwiperRef = useRef();
18541
+ const swiperRef = useRef();
18573
18542
  const isFirstPlayRef = useRef(true);
18574
- const loopPlayRef = useRef(true);
18575
18543
  const initTime = new Date();
18576
- useImperativeHandle(ref, () => {
18577
- return {
18578
- setLoopPlay(v) {
18579
- loopPlayRef.current = v;
18580
- }
18581
- };
18582
- });
18583
- useEffect(() => {
18584
- let timerId;
18585
- if (isLoad && isActive && isDiyH5) {
18586
- timerId = setTimeout(() => {
18587
- var _a, _b, _c, _d;
18588
- if (!loopPlayRef.current)
18589
- return;
18590
- if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
18591
- const i = (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.activeIndex;
18592
- (_d = (_c = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper) === null || _d === void 0 ? void 0 : _d.slideTo(i + 1);
18593
- }
18594
- }, 3000);
18595
- }
18596
- return () => {
18597
- if (timerId)
18598
- clearTimeout(timerId);
18599
- };
18600
- }, [isLoad, isActive, isDiyH5, index, swiperRef, firstRtcList]);
18601
18544
  useEffect(() => {
18602
18545
  if (isLoad && isActive) {
18603
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
18546
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
18604
18547
  if (openHashtag) {
18605
18548
  onViewImageEndEvent(rec);
18606
18549
  }
@@ -18610,7 +18553,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18610
18553
  }
18611
18554
  }
18612
18555
  else {
18613
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
18556
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
18614
18557
  }
18615
18558
  }, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
18616
18559
  const showFirstImageFn = useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -18637,13 +18580,13 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18637
18580
  };
18638
18581
  }, [isActive, imgInfo]);
18639
18582
  const handleMouseEnter = useCallback(() => {
18640
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18641
- imgsSwiperRef.current.swiper.autoplay.stop();
18583
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18584
+ swiperRef.current.swiper.autoplay.stop();
18642
18585
  }
18643
18586
  }, []);
18644
18587
  const handleMouseLeave = useCallback(() => {
18645
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18646
- imgsSwiperRef.current.swiper.autoplay.start();
18588
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18589
+ swiperRef.current.swiper.autoplay.start();
18647
18590
  }
18648
18591
  }, []);
18649
18592
  const handleSlideChange = useCallback((swiper) => {
@@ -18664,7 +18607,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18664
18607
  enabled: true
18665
18608
  }
18666
18609
  }
18667
- : {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
18610
+ : {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
18668
18611
  bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
18669
18612
  fontSize: '14px'
18670
18613
  } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
@@ -18681,7 +18624,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18681
18624
  return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
18682
18625
  React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
18683
18626
  }))));
18684
- });
18627
+ };
18685
18628
  var PictureGroup$5 = memo(PictureGroup$4);
18686
18629
 
18687
18630
  /*
@@ -18802,10 +18745,22 @@ function withBindDataSource(Component) {
18802
18745
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18803
18746
  *
18804
18747
  */
18805
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18748
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
18749
+ var _a, _b, _c, _d, _e;
18806
18750
  const { schema } = useEditor();
18807
18751
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18808
18752
  return null;
18753
+ let cta = null;
18754
+ if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
18755
+ cta = '多商品CTA';
18756
+ }
18757
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18758
+ cta = '商品CTA';
18759
+ }
18760
+ else {
18761
+ cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
18762
+ }
18763
+ const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
18809
18764
  const renderComp = useMemo(() => {
18810
18765
  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;
18811
18766
  // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
@@ -18833,7 +18788,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
18833
18788
  const sbf = style.backdropFilter;
18834
18789
  style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18835
18790
  }
18836
- return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
18791
+ return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginInlineStart: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
18837
18792
  }
18838
18793
  else {
18839
18794
  return null;
@@ -18961,7 +18916,7 @@ var NavBack$1 = memo(NavBack);
18961
18916
  * @Author: binruan@chatlabs.com
18962
18917
  * @Date: 2024-03-20 10:27:31
18963
18918
  * @LastEditors: binruan@chatlabs.com
18964
- * @LastEditTime: 2025-05-12 14:26:15
18919
+ * @LastEditTime: 2025-05-09 15:51:40
18965
18920
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18966
18921
  *
18967
18922
  */
@@ -18981,7 +18936,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18981
18936
  const skipLinkRef = useRef(false);
18982
18937
  const [pageNum, setPageNum] = useState(2);
18983
18938
  const videoWidgetRef = useRef(null);
18984
- const pictureGroupRef = useRef(null);
18985
18939
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
18986
18940
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
18987
18941
  const isShowFingerTip = useMemo(() => {
@@ -19029,7 +18983,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19029
18983
  (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
19030
18984
  }, [data, ctaType, swiperRef]);
19031
18985
  const handleSessionCompleted = useCallback((fk) => {
19032
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
18986
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
19033
18987
  const item = data === null || data === void 0 ? void 0 : data[activeIndex];
19034
18988
  let fromKName = '';
19035
18989
  if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
@@ -19056,13 +19010,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19056
19010
  eventSubject: 'sessionCompleted',
19057
19011
  eventDescription: 'Session completed',
19058
19012
  contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
19059
- sceneId: (_q = (_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.scene) === null || _p === void 0 ? void 0 : _p.sceneId) !== null && _q !== void 0 ? _q : '',
19060
- productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
19013
+ productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
19061
19014
  position: activeIndex + '',
19062
19015
  fromKName: fk || fromKName,
19063
19016
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
19064
- ctatId: (_u = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.bindCta) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '',
19065
- traceInfo: (_y = (_w = (_v = item === null || item === void 0 ? void 0 : item.video) === null || _v === void 0 ? void 0 : _v.traceInfo) !== null && _w !== void 0 ? _w : (_x = item === null || item === void 0 ? void 0 : item.product) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : ''
19017
+ 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 : '',
19018
+ 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 : ''
19066
19019
  }
19067
19020
  });
19068
19021
  }, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
@@ -19121,9 +19074,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19121
19074
  refreshFeSession
19122
19075
  ]);
19123
19076
  const handleSessionExpire = useCallback(debounce(() => {
19124
- var _a, _b;
19077
+ var _a;
19125
19078
  (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
19126
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
19127
19079
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
19128
19080
  }, 1000), [handleSessionCompleted, refreshFeSession]);
19129
19081
  useEffect(() => {
@@ -19193,18 +19145,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19193
19145
  return null;
19194
19146
  }, [globalConfig, activeIndex, visList]);
19195
19147
  const renderContent = useCallback((rec, index) => {
19196
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
19148
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
19197
19149
  if (rec === 'organic menu') {
19198
19150
  return (React.createElement(MultiPosts$2, Object.assign({ recData: data === null || data === void 0 ? void 0 : data[1] }, (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props, (_f = (_e = (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.item) === null || _f === void 0 ? void 0 : _f.event)));
19199
19151
  }
19200
- if (((_h = (_g = rec.video) === null || _g === void 0 ? void 0 : _g.scene) === null || _h === void 0 ? void 0 : _h.mediaUrl) || ((_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.url)) {
19152
+ if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
19201
19153
  return (React.createElement(VideoWidget$5, Object.assign({ key: isReload }, (activeIndex === index && { ref: videoWidgetRef }), { rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoPlayIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPlayIcon, loopPlay: true, swiperRef: swiperRef })));
19202
19154
  }
19203
- if ((_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) {
19204
- return (React.createElement(PictureGroup$5, Object.assign({ data: data }, (activeIndex === index && { ref: pictureGroupRef }), { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost, swiperRef: swiperRef })));
19155
+ if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
19156
+ return (React.createElement(PictureGroup$5, { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
19205
19157
  }
19206
- if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_l = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _l === void 0 ? void 0 : _l.length) > 0) {
19207
- return (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _m === void 0 ? void 0 : _m.map((value, idx) => {
19158
+ if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _j === void 0 ? void 0 : _j.length) > 0) {
19159
+ return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
19208
19160
  var _a, _b, _c, _d, _e, _f, _g, _h;
19209
19161
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
19210
19162
  const Component = withBindDataSource(t);
@@ -19242,7 +19194,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19242
19194
  };
19243
19195
  }, [isShowMore]);
19244
19196
  const renderBottom = useCallback((rec, index) => {
19245
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19197
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19246
19198
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
19247
19199
  let cta = null;
19248
19200
  if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
@@ -19251,28 +19203,25 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19251
19203
  else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
19252
19204
  cta = '商品CTA';
19253
19205
  }
19254
- else if (tempMap && ((_d = Object.keys(tempMap)) === null || _d === void 0 ? void 0 : _d.includes('服务CTA')) && ((_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta) === null || _f === void 0 ? void 0 : _f.itemId)) {
19255
- cta = '服务CTA';
19256
- }
19257
19206
  else {
19258
- cta = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindCta) === null || _h === void 0 ? void 0 : _h.itemId;
19207
+ cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
19259
19208
  }
19260
19209
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
19261
19210
  const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
19262
19211
  index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19263
- ((_j = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _j === void 0 ? void 0 : _j.includes((_k = value === null || value === void 0 ? void 0 : value.item) === null || _k === void 0 ? void 0 : _k.type));
19212
+ ((_f = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _f === void 0 ? void 0 : _f.includes((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type));
19264
19213
  return (React.createElement(React.Fragment, null,
19265
- isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
19266
- ((_l = rec === null || rec === void 0 ? void 0 : rec.video) === null || _l === void 0 ? void 0 : _l.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
19267
- React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _m !== void 0 ? _m : 40}px` } },
19214
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
19215
+ ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
19216
+ React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _j !== void 0 ? _j : 40}px` } },
19268
19217
  React.createElement(Nudge, { nudge: nudge }),
19269
19218
  ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) && !isNineProduct ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19270
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
19219
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
19271
19220
  React.createElement("div", null,
19272
- React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_p = (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.title) !== null && _p !== void 0 ? _p : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
19273
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
19274
- React.createElement(Hashtag$1, { index: activeIndex, tags: (_r = (_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.hashTags) !== null && _r !== void 0 ? _r : [], itemId: (_s = rec === null || rec === void 0 ? void 0 : rec.video) === null || _s === void 0 ? void 0 : _s.itemId, itemType: ((_t = rec === null || rec === void 0 ? void 0 : rec.video) === null || _t === void 0 ? void 0 : _t.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
19275
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
19221
+ React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
19222
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
19223
+ React.createElement(Hashtag$1, { index: activeIndex, tags: (_o = (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.hashTags) !== null && _o !== void 0 ? _o : [], itemId: (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.itemId, itemType: ((_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
19224
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
19276
19225
  }
19277
19226
  return null;
19278
19227
  }, [
@@ -19310,7 +19259,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19310
19259
  return null;
19311
19260
  }, [globalConfig, waterFallData]);
19312
19261
  const handleViewImageStartEnd = (item) => {
19313
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19262
+ var _a, _b, _c, _d, _e, _f;
19314
19263
  if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
19315
19264
  const endTime = Date.now();
19316
19265
  const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
@@ -19319,11 +19268,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19319
19268
  eventSubject: 'viewImageCarouselEnd',
19320
19269
  eventDescription: 'User end view the image carousel',
19321
19270
  contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
19322
- sceneId: (_g = (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
19323
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19271
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19324
19272
  imageEndTime: `${endTime}`,
19325
19273
  playDuration: `${duration}`,
19326
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19274
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19327
19275
  position: activeIndex + '',
19328
19276
  contentFormat: 'image',
19329
19277
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
@@ -19332,7 +19280,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19332
19280
  }
19333
19281
  };
19334
19282
  const handleSlideSkip = (item, position) => {
19335
- 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;
19283
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
19336
19284
  if (isPreview || waterFallData)
19337
19285
  return;
19338
19286
  const t = new Date() - curTime.current;
@@ -19358,8 +19306,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19358
19306
  contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
19359
19307
  position: position + '',
19360
19308
  contentId: (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.itemId) !== null && _t !== void 0 ? _t : '',
19361
- sceneId: (_w = (_v = (_u = item === null || item === void 0 ? void 0 : item.video) === null || _u === void 0 ? void 0 : _u.scene) === null || _v === void 0 ? void 0 : _v.sceneId) !== null && _w !== void 0 ? _w : '',
19362
- 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 : '',
19309
+ traceInfo: (_x = (_v = (_u = item === null || item === void 0 ? void 0 : item.video) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : (_w = item === null || item === void 0 ? void 0 : item.product) === null || _w === void 0 ? void 0 : _w.traceInfo) !== null && _x !== void 0 ? _x : '',
19363
19310
  contentFormat
19364
19311
  }
19365
19312
  });
@@ -19369,7 +19316,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19369
19316
  }
19370
19317
  };
19371
19318
  const handleScrollEvent = (swiper) => {
19372
- 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;
19319
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19373
19320
  const item = data[swiper.previousIndex];
19374
19321
  if (!item)
19375
19322
  return;
@@ -19386,12 +19333,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19386
19333
  eventSubject: 'scrollDown',
19387
19334
  eventDescription: 'User scroll down',
19388
19335
  contentId: (_e = (_d = item === null || item === void 0 ? void 0 : item.video) === null || _d === void 0 ? void 0 : _d.itemId) !== null && _e !== void 0 ? _e : '',
19389
- sceneId: (_h = (_g = (_f = item === null || item === void 0 ? void 0 : item.video) === null || _f === void 0 ? void 0 : _f.scene) === null || _g === void 0 ? void 0 : _g.sceneId) !== null && _h !== void 0 ? _h : '',
19390
- productId: (_k = (_j = item === null || item === void 0 ? void 0 : item.product) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '',
19336
+ productId: (_g = (_f = item === null || item === void 0 ? void 0 : item.product) === null || _f === void 0 ? void 0 : _f.itemId) !== null && _g !== void 0 ? _g : '',
19391
19337
  requestId: null,
19392
- traceInfo: (_p = (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.traceInfo) !== null && _m !== void 0 ? _m : (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.traceInfo) !== null && _p !== void 0 ? _p : '',
19338
+ traceInfo: (_l = (_j = (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.traceInfo) !== null && _j !== void 0 ? _j : (_k = item === null || item === void 0 ? void 0 : item.product) === null || _k === void 0 ? void 0 : _k.traceInfo) !== null && _l !== void 0 ? _l : '',
19393
19339
  contentFormat,
19394
- position: ((_q = swiper.previousIndex) !== null && _q !== void 0 ? _q : 0) + ''
19340
+ position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
19395
19341
  }
19396
19342
  });
19397
19343
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19403,13 +19349,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19403
19349
  eventInfo: {
19404
19350
  eventSubject: 'scrollUp',
19405
19351
  eventDescription: 'User scroll up',
19406
- contentId: (_s = (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.itemId) !== null && _s !== void 0 ? _s : '',
19407
- sceneId: (_v = (_u = (_t = item === null || item === void 0 ? void 0 : item.video) === null || _t === void 0 ? void 0 : _t.scene) === null || _u === void 0 ? void 0 : _u.sceneId) !== null && _v !== void 0 ? _v : '',
19408
- productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
19352
+ contentId: (_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.itemId) !== null && _p !== void 0 ? _p : '',
19353
+ productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
19409
19354
  requestId: null,
19410
- traceInfo: (_1 = (_z = (_y = item === null || item === void 0 ? void 0 : item.video) === null || _y === void 0 ? void 0 : _y.traceInfo) !== null && _z !== void 0 ? _z : (_0 = item === null || item === void 0 ? void 0 : item.product) === null || _0 === void 0 ? void 0 : _0.traceInfo) !== null && _1 !== void 0 ? _1 : '',
19355
+ 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 : '',
19411
19356
  contentFormat,
19412
- position: ((_2 = swiper.previousIndex) !== null && _2 !== void 0 ? _2 : 0) + ''
19357
+ position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
19413
19358
  }
19414
19359
  });
19415
19360
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19435,7 +19380,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19435
19380
  }
19436
19381
  }, [openHashtag, data, activeIndex]);
19437
19382
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19438
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
19383
+ var _a, _b, _c, _d, _e, _f, _g, _h;
19439
19384
  const item = data[activeIndex];
19440
19385
  // 如果是图片集则上报事件
19441
19386
  if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
@@ -19446,10 +19391,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19446
19391
  eventSubject: 'viewImageCarouselStart',
19447
19392
  eventDescription: 'User start view the image carousel',
19448
19393
  contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
19449
- sceneId: (_g = (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
19450
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19394
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19451
19395
  imageStartTime: `${startTime}`,
19452
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19396
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19453
19397
  position: activeIndex + '',
19454
19398
  contentFormat: 'image',
19455
19399
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
@@ -19459,11 +19403,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19459
19403
  if (enableCapi) {
19460
19404
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19461
19405
  eventName: 'ViewContent',
19462
- product: (_k = item === null || item === void 0 ? void 0 : item.video) === null || _k === void 0 ? void 0 : _k.bindProduct
19406
+ product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
19463
19407
  });
19464
19408
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19465
19409
  eventName: 'PageView',
19466
- product: (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.bindProduct
19410
+ product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
19467
19411
  });
19468
19412
  }
19469
19413
  }
@@ -19555,20 +19499,15 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19555
19499
  swiperRef.current.swiper.allowTouchMove = true;
19556
19500
  }, 500);
19557
19501
  }, onActiveIndexChange: (swiper) => {
19558
- var _a, _b;
19559
19502
  setActiveIndex(swiper.activeIndex);
19560
19503
  if (openHashtag)
19561
19504
  return;
19562
19505
  // 处理上滑下滑事件
19563
19506
  handleScrollEvent(swiper);
19564
- if (waterFallData || isEditor)
19507
+ if (waterFallData || isEditor || isDiyH5)
19565
19508
  return;
19566
19509
  if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
19567
19510
  if (!isLoadMore) {
19568
- if (isDiyH5) {
19569
- (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
19570
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
19571
- }
19572
19511
  setIsLoadMore(true);
19573
19512
  loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
19574
19513
  var _a;
@@ -19621,7 +19560,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19621
19560
  }, []);
19622
19561
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
19623
19562
  const handlePlaying = useCallback(() => {
19624
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19563
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19625
19564
  setIsPauseVideo(false);
19626
19565
  const item = data[index];
19627
19566
  if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
@@ -19634,15 +19573,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19634
19573
  eventSubject: 'playVideo',
19635
19574
  eventDescription: 'User played the video',
19636
19575
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
19637
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
19638
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
19576
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
19639
19577
  playType,
19640
19578
  startTime: videoCurrentTime,
19641
19579
  videoDuration,
19642
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
19580
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
19643
19581
  position: index + '',
19644
19582
  contentFormat: 'video',
19645
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19583
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19646
19584
  }
19647
19585
  });
19648
19586
  setIsFirstPlay(false);
@@ -19681,7 +19619,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19681
19619
  }
19682
19620
  }, [isLoadFinish]);
19683
19621
  const onPause = useCallback(() => {
19684
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19622
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19685
19623
  const item = data[index];
19686
19624
  const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
19687
19625
  const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -19692,15 +19630,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19692
19630
  eventSubject: 'playOverVideo',
19693
19631
  eventDescription: 'User finished playing the video',
19694
19632
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
19695
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
19696
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
19633
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
19697
19634
  endTime: videoCurrentTime,
19698
19635
  videoDuration,
19699
19636
  playDuration,
19700
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
19637
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
19701
19638
  position: index + '',
19702
19639
  contentFormat: 'video',
19703
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19640
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19704
19641
  }
19705
19642
  });
19706
19643
  }
@@ -19886,7 +19823,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19886
19823
  const CTA = (rec, index) => {
19887
19824
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
19888
19825
  return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19889
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
19826
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
19890
19827
  }
19891
19828
  return null;
19892
19829
  };
@@ -19899,8 +19836,10 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19899
19836
  React.createElement(Nudge, { nudge: nudge }),
19900
19837
  CTA(rec, index),
19901
19838
  React.createElement("div", null,
19902
- React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }) })),
19903
- React.createElement(Hashtag$1, { index: index, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))));
19839
+ React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }) }),
19840
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
19841
+ React.createElement(Hashtag$1, { index: index, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })),
19842
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
19904
19843
  }
19905
19844
  return null;
19906
19845
  };
@@ -20290,21 +20229,10 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20290
20229
  return null;
20291
20230
  }, [globalConfig]);
20292
20231
  const renderBottom = (rec, index) => {
20293
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20232
+ var _a, _b, _c, _d;
20294
20233
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
20295
- let cta = null;
20296
- if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
20297
- cta = '多商品CTA';
20298
- }
20299
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
20300
- cta = '商品CTA';
20301
- }
20302
- else {
20303
- cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
20304
- }
20305
- const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
20306
20234
  return (React.createElement(React.Fragment, null,
20307
- ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
20235
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
20308
20236
  background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
20309
20237
  height: '130px',
20310
20238
  position: 'absolute',
@@ -20315,7 +20243,7 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20315
20243
  pointerEvents
20316
20244
  } })),
20317
20245
  React.createElement("div", { style: {
20318
- marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
20246
+ marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
20319
20247
  zIndex: 999,
20320
20248
  position: 'absolute',
20321
20249
  bottom: 0,
@@ -20324,15 +20252,15 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20324
20252
  paddingTop: '20px'
20325
20253
  } },
20326
20254
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
20327
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
20255
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
20328
20256
  React.createElement("div", null,
20329
20257
  React.createElement(ExpandableText$1
20330
20258
  // className='clc-sxp-bottom-text'
20331
20259
  , {
20332
20260
  // className='clc-sxp-bottom-text'
20333
- isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_j = (_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none', padding: '0 20px', fontSize: '12px' }) }),
20334
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
20335
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
20261
+ isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none', padding: '0 20px', fontSize: '12px' }) }),
20262
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
20263
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
20336
20264
  }
20337
20265
  return null;
20338
20266
  };