pb-sxp-ui 1.18.1 → 1.19.0-alpha.1

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 (88) hide show
  1. package/dist/index.cjs +504 -489
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +15 -7
  4. package/dist/index.js +504 -489
  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 +504 -489
  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.d.ts +1 -0
  25. package/es/core/components/SxpPageRender/index.js +102 -115
  26. package/es/core/context/SxpDataSourceProvider.d.ts +12 -5
  27. package/es/core/context/SxpDataSourceProvider.js +128 -94
  28. package/es/core/hooks/useEventReport.js +5 -6
  29. package/es/core/utils/tool.d.ts +3 -1
  30. package/es/core/utils/tool.js +29 -1
  31. package/es/materials/sxp/consentPopup/Display/index.js +1 -1
  32. package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
  33. package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
  34. package/es/materials/sxp/popup/CommodityList/index.js +4 -5
  35. package/es/materials/sxp/popup/CommodityList/material.js +1 -1
  36. package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  37. package/es/materials/sxp/template/Appoint/material.js +1 -2
  38. package/es/materials/sxp/template/Commodity/material.js +2 -3
  39. package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
  40. package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  41. package/es/materials/sxp/template/Link/material.js +2 -4
  42. package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
  43. package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
  44. package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  45. package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  46. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  47. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  48. package/es/materials/sxp/template/NineCommodity/material.js +2 -3
  49. package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
  50. package/es/materials/sxp/template/components/settingRender.js +1 -1
  51. package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
  52. package/lib/core/components/DiyPortalPreview/index.js +5 -3
  53. package/lib/core/components/DiyStoryPreview/index.js +7 -18
  54. package/lib/core/components/SxpPageRender/LikeButton/index.js +16 -18
  55. package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
  56. package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -38
  57. package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
  58. package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
  59. package/lib/core/components/SxpPageRender/VideoWidget/index.js +45 -32
  60. package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
  61. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  62. package/lib/core/components/SxpPageRender/index.js +102 -115
  63. package/lib/core/context/SxpDataSourceProvider.d.ts +12 -5
  64. package/lib/core/context/SxpDataSourceProvider.js +127 -93
  65. package/lib/core/hooks/useEventReport.js +5 -6
  66. package/lib/core/utils/tool.d.ts +3 -1
  67. package/lib/core/utils/tool.js +31 -1
  68. package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
  69. package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
  70. package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
  71. package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
  72. package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
  73. package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  74. package/lib/materials/sxp/template/Appoint/material.js +1 -2
  75. package/lib/materials/sxp/template/Commodity/material.js +2 -3
  76. package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
  77. package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  78. package/lib/materials/sxp/template/Link/material.js +2 -4
  79. package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
  80. package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
  81. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  82. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  83. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  84. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  85. package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
  86. package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
  87. package/lib/materials/sxp/template/components/settingRender.js +1 -1
  88. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -298,6 +298,42 @@ function splitUrlParams(urlParams) {
298
298
  });
299
299
  return splitList !== null && splitList !== void 0 ? splitList : [];
300
300
  }
301
+ function deleteCookie(name, path = '/', domain = '') {
302
+ // 设置过期时间为过去的时间
303
+ const expiration = 'expires=Thu, 01 Jan 1970 00:00:00 GMT';
304
+ const pathPart = path ? `; path=${path}` : '';
305
+ const domainPart = domain ? `; domain=${domain}` : '';
306
+ // 设置Cookie值为空,过期时间设为过去
307
+ document.cookie = `${name}=; ${expiration}${pathPart}${domainPart}`;
308
+ console.log(`已尝试删除Cookie: ${name}`);
309
+ }
310
+ function setCookie(name, value, days = 0, path = '/', domain = '', secure = false, sameSite = 'Lax') {
311
+ let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
312
+ // 设置过期时间
313
+ if (days) {
314
+ const date = new Date();
315
+ date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
316
+ cookieString += `; expires=${date.toUTCString()}`;
317
+ }
318
+ // 设置路径
319
+ if (path) {
320
+ cookieString += `; path=${path}`;
321
+ }
322
+ // 设置域名
323
+ if (domain) {
324
+ cookieString += `; domain=${domain}`;
325
+ }
326
+ // 设置Secure标志
327
+ if (secure) {
328
+ cookieString += '; secure';
329
+ }
330
+ // 设置SameSite属性
331
+ if (sameSite) {
332
+ cookieString += `; samesite=${sameSite}`;
333
+ }
334
+ // 设置Cookie
335
+ document.cookie = cookieString;
336
+ }
301
337
 
302
338
  function unzip(b64Data) {
303
339
  const strData = atob(b64Data);
@@ -644,7 +680,6 @@ const DEFAULT_TAG = 'FOR U';
644
680
  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 }) => {
645
681
  var _a, _b, _c, _d, _e;
646
682
  const [rtcList, setRtcList] = React.useState([]);
647
- const [firstRtcList, setFirstRtcList] = React.useState([]);
648
683
  const [tagList, setTagList] = React.useState([]);
649
684
  const [loading, setLoading] = React.useState(true);
650
685
  const [curReqInfo, setCurReqInfo] = React.useState({ rtc: '', requestId: '' });
@@ -676,10 +711,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
676
711
  const [chatlabsId, setChatlabsId] = React.useState();
677
712
  const finalPageData = React.useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
678
713
  const pixelPvStatusRef = React.useRef(false);
679
- const isDiyPage = React.useMemo(() => {
680
- var _a, _b, _c;
681
- 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);
682
- }, [isDiyH5, finalPageData]);
714
+ const fbcRef = React.useRef('');
683
715
  const isShowConsent = React.useMemo(() => {
684
716
  var _a, _b, _c, _d;
685
717
  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) &&
@@ -740,9 +772,41 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
740
772
  var _a;
741
773
  return ((_a = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _a === void 0 ? void 0 : _a['x-app-id']) + storeAndLoadFeUserId();
742
774
  }, [bffDataSource]);
775
+ React.useEffect(() => {
776
+ if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
777
+ return;
778
+ fbcRef.current = getCookie('_fbc');
779
+ window.OptanonWrapper = function () {
780
+ const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
781
+ if (!activeGroups)
782
+ return;
783
+ if (!(activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4'))) {
784
+ deleteCookie('_fbc');
785
+ }
786
+ else if (fbcRef.current) {
787
+ setCookie('_fbc', fbcRef.current, 90);
788
+ }
789
+ };
790
+ }, [globalConfig]);
791
+ const isActiveTargetingCookie = React.useMemo(() => {
792
+ var _a;
793
+ function getCookie(name) {
794
+ var _a;
795
+ const value = `; ${document.cookie}`;
796
+ const parts = value.split(`; ${name}=`);
797
+ if (parts.length === 2)
798
+ return (_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift();
799
+ return '';
800
+ }
801
+ decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
802
+ if (((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')))) {
803
+ return true;
804
+ }
805
+ return false;
806
+ }, [globalConfig]);
743
807
  // bff API 请求方法
744
808
  const bffFetch = React.useCallback((path, options, isBota = true) => {
745
- var _a, _b;
809
+ var _a;
746
810
  if (!bffDataSource)
747
811
  return;
748
812
  const url = bffDataSource.url;
@@ -755,9 +819,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
755
819
  val.split('=')[0];
756
820
  val.split('=')[1];
757
821
  });
758
- options.body = Object.assign(Object.assign({}, options.body), { productUserId: fakeUserId });
759
822
  return window
760
- .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
823
+ .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
761
824
  ? JSON.stringify({
762
825
  body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
763
826
  })
@@ -767,6 +830,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
767
830
  }, [bffDataSource, fakeUserId]);
768
831
  const bffCollectEvent = React.useCallback((params) => {
769
832
  var _a;
833
+ if (isActiveTargetingCookie)
834
+ return Promise.resolve();
770
835
  const body = {
771
836
  eventName: params === null || params === void 0 ? void 0 : params.eventName,
772
837
  eventSource: params === null || params === void 0 ? void 0 : params.eventSource
@@ -777,39 +842,42 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
777
842
  body,
778
843
  type: 'beacon'
779
844
  }, false);
780
- }, [bffFetch, bffDataSource]);
845
+ }, [bffFetch, bffDataSource, isActiveTargetingCookie]);
781
846
  React.useEffect(() => {
782
- if (typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
783
- const OriginalImage = window.Image;
784
- window.Image = function () {
785
- const img = new OriginalImage();
786
- // 劫持 src 的 setter
787
- const originalSrcDescriptor = Object.getOwnPropertyDescriptor(HTMLImageElement.prototype, 'src');
788
- Object.defineProperty(img, 'src', {
789
- set(value) {
790
- // 继续正常设置 src
791
- originalSrcDescriptor.set.call(this, value);
792
- // img.onload = function () {
793
- // 检查是否是目标 URL
794
- if (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/')) {
795
- // 解析 URL 参数
796
- const url = new URL(value);
797
- const params = Object.fromEntries(url.searchParams.entries());
798
- bffCollectEvent({
799
- eventName: params === null || params === void 0 ? void 0 : params.ev,
800
- eventSource: 'Meta Pixel'
801
- });
802
- // }
803
- }
804
- },
805
- get() {
806
- return originalSrcDescriptor.get.call(this);
847
+ // if (typeof (window as any)?.fbq === 'function') {
848
+ const OriginalImage = window.Image;
849
+ window.Image = function () {
850
+ const img = new OriginalImage();
851
+ // 劫持 src 的 setter
852
+ const originalSrcDescriptor = Object.getOwnPropertyDescriptor(HTMLImageElement.prototype, 'src');
853
+ Object.defineProperty(img, 'src', {
854
+ set(value) {
855
+ if (isActiveTargetingCookie && (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/') || value.includes('https://www.facebook.com/tr'))) {
856
+ return;
807
857
  }
808
- });
809
- return img;
810
- };
811
- }
812
- }, [bffCollectEvent]);
858
+ // 继续正常设置 src
859
+ originalSrcDescriptor.set.call(this, value);
860
+ // img.onload = function () {
861
+ // 检查是否是目标 URL
862
+ if (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/')) {
863
+ // 解析 URL 参数
864
+ const url = new URL(value);
865
+ const params = Object.fromEntries(url.searchParams.entries());
866
+ bffCollectEvent({
867
+ eventName: params === null || params === void 0 ? void 0 : params.ev,
868
+ eventSource: 'Meta Pixel'
869
+ });
870
+ // }
871
+ }
872
+ },
873
+ get() {
874
+ return originalSrcDescriptor.get.call(this);
875
+ }
876
+ });
877
+ return img;
878
+ };
879
+ // }
880
+ }, [bffCollectEvent, isActiveTargetingCookie]);
813
881
  React.useEffect(() => {
814
882
  // 类型安全声明
815
883
  const navigatorWithBeacon = navigator;
@@ -822,6 +890,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
822
890
  // 覆盖方法
823
891
  navigatorWithBeacon.sendBeacon = function (url, data) {
824
892
  const urlString = url instanceof URL ? url.href : url.toString();
893
+ if (isActiveTargetingCookie && (urlString.includes('https://tr.snapchat.com/p') || urlString.includes('https://analytics.tiktok.com/api/v2/pixel'))) {
894
+ return true;
895
+ }
825
896
  const success = originalSendBeacon(url, data);
826
897
  function parseBeaconData(data) {
827
898
  return __awaiter(this, void 0, void 0, function* () {
@@ -871,7 +942,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
871
942
  return () => {
872
943
  navigatorWithBeacon.sendBeacon = originalSendBeacon;
873
944
  };
874
- }, [bffCollectEvent]);
945
+ }, [bffCollectEvent, isActiveTargetingCookie]);
875
946
  React.useEffect(() => {
876
947
  const _originalFetch = window.fetch;
877
948
  // 覆盖 fetch 方法
@@ -893,6 +964,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
893
964
  return _originalFetch.apply(this, arguments_1);
894
965
  }
895
966
  try {
967
+ if (isActiveTargetingCookie && (url.includes('https://www.google-analytics.com/g/collect') || url.includes('https://arms-retcode.aliyuncs.com/r.png'))) {
968
+ return Promise.resolve(new Response(''));
969
+ }
896
970
  // 1. 先执行原始请求
897
971
  const response = _originalFetch.apply(this, arguments_1);
898
972
  // 检查是否是 GA4 收集端点
@@ -936,7 +1010,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
936
1010
  }
937
1011
  });
938
1012
  };
939
- }, [bffCollectEvent]);
1013
+ }, [bffCollectEvent, isActiveTargetingCookie]);
940
1014
  React.useEffect(() => {
941
1015
  const originalOpen = XMLHttpRequest.prototype.open;
942
1016
  const originalSend = XMLHttpRequest.prototype.send;
@@ -946,6 +1020,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
946
1020
  };
947
1021
  XMLHttpRequest.prototype.send = function (body) {
948
1022
  var _a;
1023
+ if (isActiveTargetingCookie && this._url && typeof this._url === 'string' && (this._url.includes('https://rumcollector.uptime.com') || this._url.includes('https://arms-retcode.aliyuncs.com/r.png') || this._url.includes('https://i.giesswein.com/nb-collector'))) {
1024
+ return;
1025
+ }
949
1026
  if (this._url && typeof this._url === 'string' && this._url.includes('https://i.giesswein.com/nb-collector')) {
950
1027
  if (body && typeof body === 'string') {
951
1028
  try {
@@ -971,7 +1048,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
971
1048
  XMLHttpRequest.prototype.open = originalOpen;
972
1049
  XMLHttpRequest.prototype.send = originalSend;
973
1050
  };
974
- }, [bffCollectEvent]);
1051
+ }, [bffCollectEvent, isActiveTargetingCookie]);
975
1052
  React.useEffect(() => {
976
1053
  if (typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
977
1054
  window === null || window === void 0 ? void 0 : window.fbq('track', 'PageView');
@@ -997,8 +1074,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
997
1074
  }, [bffDataSource]);
998
1075
  // 获取推荐视频数据
999
1076
  const getRecommendVideos = React.useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
1000
- var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
1001
- 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' }));
1077
+ var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
1078
+ 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' }));
1002
1079
  if (channel) {
1003
1080
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(channel) });
1004
1081
  }
@@ -1011,10 +1088,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1011
1088
  if (val)
1012
1089
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(val) });
1013
1090
  }
1014
- 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);
1015
1091
  if (isEditor) {
1016
1092
  let pageNum = 1;
1017
- 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 }));
1093
+ 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] }));
1018
1094
  if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current) {
1019
1095
  return undefined;
1020
1096
  }
@@ -1022,22 +1098,19 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1022
1098
  let list = [];
1023
1099
  let result = null;
1024
1100
  const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
1025
- var _y, _z, _0, _1, _2, _3;
1101
+ var _v, _w, _x, _y, _z, _0;
1026
1102
  query.pageNum = pageNum;
1027
- result = isDiyH5 ? 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 }));
1103
+ result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
1028
1104
  if (!(result === null || result === void 0 ? void 0 : result.success)) {
1029
1105
  return undefined;
1030
1106
  }
1031
1107
  setLoading(false);
1032
- 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 : []);
1108
+ 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 : []);
1033
1109
  if ((rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) === 0) {
1034
1110
  setRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1035
1111
  setCacheRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1036
- if (isDiyPage) {
1037
- setFirstRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
1038
- }
1039
1112
  }
1040
- 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));
1113
+ 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));
1041
1114
  if (isNotNullList) {
1042
1115
  pageNum = pageNum + 1;
1043
1116
  yield recurveRecList(query);
@@ -1045,13 +1118,13 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1045
1118
  });
1046
1119
  yield recurveRecList(query);
1047
1120
  if (!(query === null || query === void 0 ? void 0 : query.hashTag) && result)
1048
- 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 });
1121
+ 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 });
1049
1122
  return Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list });
1050
1123
  }
1051
1124
  if (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) {
1052
- 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 }));
1125
+ 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 });
1053
1126
  }
1054
- 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', {
1127
+ const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/list', {
1055
1128
  method: 'POST',
1056
1129
  body: query
1057
1130
  }));
@@ -1061,31 +1134,26 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1061
1134
  if (!(query === null || query === void 0 ? void 0 : query.hashTag))
1062
1135
  setCurReqInfo({ rtc: result.data.rtc, requestId: result.data.requestId });
1063
1136
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor) {
1064
- 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));
1137
+ 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));
1065
1138
  if (!isNotNullList) {
1066
1139
  setIsNoMoreData(true);
1067
1140
  }
1068
1141
  }
1069
1142
  let list = [];
1070
- 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 : []);
1143
+ 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 : []);
1071
1144
  return Object.assign(Object.assign({}, result.data), { recList: list });
1072
- }), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin, isDiyPage, finalPageData, isDiyH5]);
1145
+ }), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
1073
1146
  const loadVideos = React.useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
1074
- var _4, _5, _6, _7;
1147
+ var _1, _2, _3, _4;
1075
1148
  if (rtcList.length <= 0) {
1076
1149
  return;
1077
1150
  }
1078
- if (isDiyPage && (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) > 0) {
1079
- setRtcList(rtcList.concat(firstRtcList));
1080
- setCacheRtcList(cacheRtcList.concat(firstRtcList));
1081
- return;
1082
- }
1083
1151
  const lastItem = rtcList === null || rtcList === void 0 ? void 0 : rtcList[(rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) - 1];
1084
- 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 })));
1152
+ 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 })));
1085
1153
  setRtcList(rtcList.concat(getFilterRecList(data)));
1086
1154
  setCacheRtcList(cacheRtcList.concat(getFilterRecList(data)));
1087
1155
  return data;
1088
- }), [getRecommendVideos, rtcList, waterFallData, cacheRtcList, isDiyPage, firstRtcList]);
1156
+ }), [getRecommendVideos, rtcList, waterFallData, cacheRtcList]);
1089
1157
  const refreshFeSession = React.useCallback((enableReSid, event) => {
1090
1158
  var _a, _b, _c, _d, _e;
1091
1159
  let expire = false;
@@ -1110,14 +1178,14 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1110
1178
  const bffEventReport = React.useCallback(({ userInfo, eventInfo, reportLayId = true }) => {
1111
1179
  var _a, _b;
1112
1180
  // 关闭 BFF 事件上报
1113
- if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
1181
+ if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) || isActiveTargetingCookie) {
1114
1182
  return;
1115
1183
  }
1116
1184
  // 用户信息都是公共的
1117
1185
  if (!userInfo) {
1118
1186
  userInfo = {
1119
- productUserId: fakeUserId // 后端逻辑会从请求头获取,所以不需要传
1120
- // tpChannelId: 'H5' // 后端处理
1187
+ // productUserId: fakeUserId, // 后端逻辑会从请求头获取,所以不需要传
1188
+ // tpChannelId: 'H5' // 后端处理
1121
1189
  };
1122
1190
  }
1123
1191
  const sessionID = storeAndLoadFeSessionId();
@@ -1152,7 +1220,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1152
1220
  globalConfig,
1153
1221
  playbookType,
1154
1222
  bffDataSource,
1155
- fakeUserId
1223
+ isActiveTargetingCookie
1156
1224
  ]);
1157
1225
  const getEventParamsByJson = React.useCallback((json, product) => {
1158
1226
  var _a, _b, _c;
@@ -1217,7 +1285,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1217
1285
  }, [fakeUserId]);
1218
1286
  const bffFbReport = React.useCallback(({ eventName, product }) => {
1219
1287
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1220
- if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
1288
+ if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) || isActiveTargetingCookie) {
1221
1289
  return;
1222
1290
  }
1223
1291
  let isPushState = false;
@@ -1283,42 +1351,40 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1283
1351
  type: 'beacon'
1284
1352
  });
1285
1353
  }
1286
- }, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson]);
1354
+ }, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson, isActiveTargetingCookie]);
1287
1355
  const bffMutateLike = React.useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1288
- body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
1289
1356
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/like', { method: 'POST', body }));
1290
1357
  return res === null || res === void 0 ? void 0 : res.success;
1291
- }), [bffFetch, fakeUserId]);
1358
+ }), [bffFetch]);
1292
1359
  const bffMutateUnlike = React.useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1293
- body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
1294
1360
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/unlike', { method: 'POST', body }));
1295
1361
  return res === null || res === void 0 ? void 0 : res.success;
1296
- }), [bffFetch, fakeUserId]);
1362
+ }), [bffFetch]);
1297
1363
  const bffSubmitForm = React.useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
1298
1364
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/customform', { method: 'POST', body }));
1299
1365
  return res === null || res === void 0 ? void 0 : res.success;
1300
1366
  }), [bffFetch]);
1301
1367
  // 获取 Tag
1302
1368
  const bffGetTagList = React.useCallback((data) => __awaiter(void 0, void 0, void 0, function* () {
1303
- var _8, _9, _10, _11, _12, _13, _14, _15;
1304
- 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);
1369
+ var _5, _6, _7, _8, _9, _10, _11, _12;
1370
+ 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);
1305
1371
  if (!utmVal || !isShowTag)
1306
1372
  return;
1307
1373
  try {
1308
- const val = (_13 = (_12 = (_11 = splitUrlParams(utmVal)) === null || _11 === void 0 ? void 0 : _11.filter((val) => {
1374
+ const val = (_10 = (_9 = (_8 = splitUrlParams(utmVal)) === null || _8 === void 0 ? void 0 : _8.filter((val) => {
1309
1375
  var _a, _b;
1310
1376
  const key = val.split('=')[0];
1311
1377
  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);
1312
- })) === null || _12 === void 0 ? void 0 : _12.join('&')) !== null && _13 !== void 0 ? _13 : '';
1378
+ })) === null || _9 === void 0 ? void 0 : _9.join('&')) !== null && _10 !== void 0 ? _10 : '';
1313
1379
  const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/tag/list', { method: 'GET', query: { channel: decodeURIComponent(val) } }));
1314
- 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 : []);
1380
+ 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 : []);
1315
1381
  }
1316
1382
  catch (e) {
1317
1383
  console.log('e', e);
1318
1384
  }
1319
1385
  }), [bffFetch, utmVal]);
1320
1386
  const ctaEvent = React.useCallback((eventInfo, rec, product, position) => {
1321
- 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;
1387
+ 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;
1322
1388
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
1323
1389
  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);
1324
1390
  let fromKName = '';
@@ -1336,7 +1402,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1336
1402
  }
1337
1403
  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;
1338
1404
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1339
- 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 })
1405
+ 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 })
1340
1406
  });
1341
1407
  }, [bffEventReport, isFromHashtag]);
1342
1408
  const h5EnterLink = React.useCallback(() => {
@@ -1371,10 +1437,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1371
1437
  });
1372
1438
  }, [bffEventReport]);
1373
1439
  const getAccount = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
1374
- var _16, _17;
1440
+ var _13, _14;
1375
1441
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account', { method: 'GET' }));
1376
- setChatlabsId((_16 = res === null || res === void 0 ? void 0 : res.data) === null || _16 === void 0 ? void 0 : _16.chatLabsId);
1377
- return ((_17 = res === null || res === void 0 ? void 0 : res.data) === null || _17 === void 0 ? void 0 : _17.consentResult) === 'true';
1442
+ setChatlabsId((_13 = res === null || res === void 0 ? void 0 : res.data) === null || _13 === void 0 ? void 0 : _13.chatLabsId);
1443
+ return ((_14 = res === null || res === void 0 ? void 0 : res.data) === null || _14 === void 0 ? void 0 : _14.consentResult) === 'true';
1378
1444
  }), [bffFetch]);
1379
1445
  const accountSonsent = React.useCallback((consentResult) => __awaiter(void 0, void 0, void 0, function* () {
1380
1446
  const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account/consent', {
@@ -1438,9 +1504,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1438
1504
  }
1439
1505
  setRtcList(list);
1440
1506
  setCacheRtcList(list);
1441
- if (isDiyPage) {
1442
- setFirstRtcList(list);
1443
- }
1444
1507
  bffGetTagList(curData !== null && curData !== void 0 ? curData : finalPageData);
1445
1508
  if (channel) {
1446
1509
  const item = list === null || list === void 0 ? void 0 : list[0];
@@ -1460,7 +1523,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1460
1523
  });
1461
1524
  setLoading(false);
1462
1525
  });
1463
- }, [isShowConsent, channel, isDiyPage]);
1526
+ }, [isShowConsent, channel]);
1464
1527
  // cms预览
1465
1528
  React.useEffect(() => {
1466
1529
  if (!isPreview)
@@ -1476,15 +1539,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1476
1539
  }
1477
1540
  setRtcList(list);
1478
1541
  setCacheRtcList(list);
1479
- if (isDiyPage) {
1480
- setFirstRtcList(list);
1481
- }
1482
1542
  }
1483
1543
  })
1484
1544
  .finally(() => {
1485
1545
  setLoading(false);
1486
1546
  });
1487
- }, [getRecommendVideos, bffGetTagList, channel, isDiyPage]);
1547
+ }, [getRecommendVideos, bffGetTagList, channel]);
1488
1548
  const defaultLoadingImage = useIconLink('/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif', appDomain);
1489
1549
  return (React.createElement(SxpDataSourceContext.Provider, { value: {
1490
1550
  rtcList,
@@ -1542,8 +1602,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1542
1602
  refreshFeSession,
1543
1603
  getAccount,
1544
1604
  accountSonsent,
1545
- isDiyH5: isDiyPage,
1546
- firstRtcList
1605
+ isDiyH5
1547
1606
  } }, 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({
1548
1607
  rtcList,
1549
1608
  mutateLike: bffMutateLike,
@@ -2004,14 +2063,14 @@ var settingRender$f = [
2004
2063
  * @Author: binruan@chatlabs.com
2005
2064
  * @Date: 2024-03-12 10:59:06
2006
2065
  * @LastEditors: binruan@chatlabs.com
2007
- * @LastEditTime: 2025-05-09 15:30:59
2066
+ * @LastEditTime: 2024-11-28 11:17:16
2008
2067
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
2009
2068
  *
2010
2069
  */
2011
2070
  function useEventReport() {
2012
2071
  const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
2013
2072
  const jumpToWeb = React.useCallback((e, data, product, cta, position, traceInfo) => {
2014
- 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;
2073
+ 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;
2015
2074
  const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
2016
2075
  if (i !== -1) {
2017
2076
  return;
@@ -2044,11 +2103,11 @@ function useEventReport() {
2044
2103
  contentFormat = 'image';
2045
2104
  }
2046
2105
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
2047
- 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 }))
2106
+ 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 }))
2048
2107
  });
2049
2108
  }, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
2050
2109
  const productView = React.useCallback((data, product, cta, viewTime, position) => {
2051
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
2110
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
2052
2111
  let fromKName = '';
2053
2112
  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))) {
2054
2113
  fromKName = 'pdpPage';
@@ -2067,9 +2126,8 @@ function useEventReport() {
2067
2126
  contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
2068
2127
  position: position + '',
2069
2128
  contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
2070
- 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 : '',
2071
2129
  ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
2072
- 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 : '',
2130
+ 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 : '',
2073
2131
  timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
2074
2132
  eventSubject: 'productView',
2075
2133
  eventDescription: 'User browsed the product'
@@ -2665,6 +2723,35 @@ var settingRender$e = [
2665
2723
  }
2666
2724
  ];
2667
2725
 
2726
+ /*
2727
+ * @Author: binruan@chatlabs.com
2728
+ * @Date: 2024-07-09 14:35:10
2729
+ * @LastEditors: binruan@chatlabs.com
2730
+ * @LastEditTime: 2024-07-12 17:53:02
2731
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
2732
+ *
2733
+ */
2734
+ /*
2735
+ * @Author: binruan@chatlabs.com
2736
+ * @Date: 2024-07-05 14:08:41
2737
+ * @LastEditors: binruan@chatlabs.com
2738
+ * @LastEditTime: 2024-07-09 14:34:49
2739
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
2740
+ *
2741
+ */
2742
+ var interactionRender$g = [
2743
+ {
2744
+ title: '滑动事件',
2745
+ child: [
2746
+ {
2747
+ type: 'Switch',
2748
+ label: '滑动铺满全屏',
2749
+ name: ['isScrollFullScreen']
2750
+ }
2751
+ ]
2752
+ }
2753
+ ];
2754
+
2668
2755
  /**
2669
2756
  * SSR Window 4.0.2
2670
2757
  * Better handling for window object in SSR environment
@@ -10243,7 +10330,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
10243
10330
  return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css.css({
10244
10331
  width: '50px',
10245
10332
  height: '50px',
10246
- marginRight: '10px'
10333
+ marginInlineEnd: '10px'
10247
10334
  }), onClick: () => {
10248
10335
  handleClick(item, index);
10249
10336
  }, key: index },
@@ -10842,35 +10929,6 @@ const CommodityDetail$1 = (_a) => {
10842
10929
  };
10843
10930
  var CommodityDetailComponent = React.memo(CommodityDetail$1);
10844
10931
 
10845
- /*
10846
- * @Author: binruan@chatlabs.com
10847
- * @Date: 2024-07-09 14:35:10
10848
- * @LastEditors: binruan@chatlabs.com
10849
- * @LastEditTime: 2024-07-12 17:53:02
10850
- * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
10851
- *
10852
- */
10853
- /*
10854
- * @Author: binruan@chatlabs.com
10855
- * @Date: 2024-07-05 14:08:41
10856
- * @LastEditors: binruan@chatlabs.com
10857
- * @LastEditTime: 2024-07-09 14:34:49
10858
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10859
- *
10860
- */
10861
- var interactionRender$g = [
10862
- {
10863
- title: '滑动事件',
10864
- child: [
10865
- {
10866
- type: 'Switch',
10867
- label: '滑动铺满全屏',
10868
- name: ['isScrollFullScreen']
10869
- }
10870
- ]
10871
- }
10872
- ];
10873
-
10874
10932
  /*
10875
10933
  * @Author: binruan@chatlabs.com
10876
10934
  * @Date: 2023-07-28 18:29:57
@@ -10917,7 +10975,6 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10917
10975
  taxInfo: {
10918
10976
  color: '#000',
10919
10977
  fontSize: 13,
10920
- textAlign: 'left',
10921
10978
  marginBottom: '10px'
10922
10979
  }
10923
10980
  },
@@ -12009,7 +12066,7 @@ var settingRender$b = [
12009
12066
  type: 'Number',
12010
12067
  label: '与右侧边距',
12011
12068
  addonAfter: 'px',
12012
- name: ['props', 'commodityPicture', 'marginRight']
12069
+ name: ['props', 'commodityPicture', 'marginInlineEnd']
12013
12070
  },
12014
12071
  {
12015
12072
  label: '居中垂直偏移',
@@ -12295,12 +12352,11 @@ const CommodityList$1 = (_a) => {
12295
12352
  React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css.css({
12296
12353
  display: 'flex',
12297
12354
  alignItems: 'normal',
12298
- width: '100%',
12299
- textAlign: 'left'
12355
+ width: '100%'
12300
12356
  }) }, props),
12301
12357
  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 }),
12302
12358
  React.createElement("div", { style: {
12303
- 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)`,
12359
+ 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)`,
12304
12360
  display: 'flex',
12305
12361
  flexDirection: 'column',
12306
12362
  justifyContent: 'space-between'
@@ -12381,7 +12437,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12381
12437
  commodityPicture: {
12382
12438
  width: 100,
12383
12439
  height: 100,
12384
- marginRight: 10
12440
+ marginInlineEnd: 10
12385
12441
  },
12386
12442
  commodityStyles: {
12387
12443
  price: {
@@ -12627,7 +12683,7 @@ var settingRender$8 = [
12627
12683
  type: 'Number',
12628
12684
  label: '与右侧边距',
12629
12685
  addonAfter: 'px',
12630
- name: ['props', 'ctaTempStyles', 'img', 'marginRight']
12686
+ name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
12631
12687
  },
12632
12688
  {
12633
12689
  label: '居中垂直偏移',
@@ -12888,12 +12944,11 @@ const Commodity = createMaterial(CommodityComponent, {
12888
12944
  borderRadius: 3,
12889
12945
  width: 60,
12890
12946
  height: 60,
12891
- marginRight: 8
12947
+ marginInlineEnd: 8
12892
12948
  },
12893
12949
  title: {
12894
12950
  fontSize: 12,
12895
- color: '#fff',
12896
- textAlign: 'left'
12951
+ color: '#fff'
12897
12952
  },
12898
12953
  ctaTitle: {
12899
12954
  fontSize: 10,
@@ -12971,12 +13026,11 @@ const Appoint = createMaterial(AppointComponent, {
12971
13026
  borderRadius: 3,
12972
13027
  width: 30,
12973
13028
  height: 30,
12974
- marginRight: 8
13029
+ marginInlineEnd: 8
12975
13030
  },
12976
13031
  ctaTitle: {
12977
13032
  fontSize: 12,
12978
13033
  color: '#fff',
12979
- textAlign: 'left',
12980
13034
  width: 130,
12981
13035
  height: 20
12982
13036
  }
@@ -13112,6 +13166,27 @@ var linkSettingRender = [
13112
13166
  }
13113
13167
  ];
13114
13168
 
13169
+ /*
13170
+ * @Author: binruan@chatlabs.com
13171
+ * @Date: 2024-08-09 16:59:38
13172
+ * @LastEditors: binruan@chatlabs.com
13173
+ * @LastEditTime: 2024-09-09 13:59:50
13174
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13175
+ *
13176
+ */
13177
+ var interactionRender$a = [
13178
+ {
13179
+ title: '点击事件',
13180
+ child: [
13181
+ {
13182
+ type: 'link',
13183
+ name: 'onClick',
13184
+ hiddenUrl: true
13185
+ }
13186
+ ]
13187
+ }
13188
+ ];
13189
+
13115
13190
  var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
13116
13191
 
13117
13192
  const Link$1 = (_a) => {
@@ -13139,27 +13214,6 @@ const Link$1 = (_a) => {
13139
13214
  };
13140
13215
  var LinkComponent = React.memo(Link$1);
13141
13216
 
13142
- /*
13143
- * @Author: binruan@chatlabs.com
13144
- * @Date: 2024-08-09 16:59:38
13145
- * @LastEditors: binruan@chatlabs.com
13146
- * @LastEditTime: 2024-09-09 13:59:50
13147
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13148
- *
13149
- */
13150
- var interactionRender$a = [
13151
- {
13152
- title: '点击事件',
13153
- child: [
13154
- {
13155
- type: 'link',
13156
- name: 'onClick',
13157
- hiddenUrl: true
13158
- }
13159
- ]
13160
- }
13161
- ];
13162
-
13163
13217
  var _a;
13164
13218
  const Link = createMaterial(LinkComponent, {
13165
13219
  displayName: '普通CTA',
@@ -13178,19 +13232,17 @@ const Link = createMaterial(LinkComponent, {
13178
13232
  borderRadius: 3,
13179
13233
  width: 60,
13180
13234
  height: 60,
13181
- marginRight: 8
13235
+ marginInlineEnd: 8
13182
13236
  },
13183
13237
  ctaTitle: {
13184
13238
  fontSize: 12,
13185
13239
  color: '#fff',
13186
- textAlign: 'left',
13187
13240
  width: 130,
13188
13241
  height: 20
13189
13242
  }
13190
13243
  },
13191
13244
  customTitle: {
13192
13245
  style: {
13193
- textAlign: 'left',
13194
13246
  textDecoration: 'underline',
13195
13247
  fontWeight: 'bold',
13196
13248
  width: 130,
@@ -13280,12 +13332,11 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13280
13332
  borderRadius: 3,
13281
13333
  width: 60,
13282
13334
  height: 60,
13283
- marginRight: 8
13335
+ marginInlineEnd: 8
13284
13336
  },
13285
13337
  title: {
13286
13338
  fontSize: 12,
13287
- color: '#000',
13288
- textAlign: 'left'
13339
+ color: '#000'
13289
13340
  },
13290
13341
  ctaTitle: {
13291
13342
  fontSize: 10,
@@ -13376,19 +13427,17 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13376
13427
  borderRadius: 8,
13377
13428
  width: 78,
13378
13429
  height: 78,
13379
- marginRight: 16
13430
+ marginInlineEnd: 16
13380
13431
  },
13381
13432
  title: {
13382
13433
  fontSize: 13,
13383
- color: '#000',
13384
- textAlign: 'left'
13434
+ color: '#000'
13385
13435
  },
13386
13436
  ctaTitle: {
13387
13437
  textDecoration: 'underline',
13388
13438
  fontSize: 14,
13389
13439
  fontWeight: 'bold',
13390
13440
  color: '#000',
13391
- textAlign: 'left',
13392
13441
  width: 150,
13393
13442
  height: 20
13394
13443
  }
@@ -13430,7 +13479,7 @@ const MultiCommodityDiro$1 = (_a) => {
13430
13479
  const [products] = React.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]);
13431
13480
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13432
13481
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13433
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13482
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13434
13483
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13435
13484
  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 }),
13436
13485
  React.createElement("div", { className: css.css({
@@ -13476,12 +13525,11 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13476
13525
  borderRadius: 3,
13477
13526
  width: 60,
13478
13527
  height: 60,
13479
- marginRight: 8
13528
+ marginInlineEnd: 8
13480
13529
  },
13481
13530
  title: {
13482
13531
  fontSize: 12,
13483
- color: '#000',
13484
- textAlign: 'left'
13532
+ color: '#000'
13485
13533
  },
13486
13534
  ctaTitle: {
13487
13535
  fontSize: 10,
@@ -13529,7 +13577,7 @@ const MultiCommodity$1 = (_a) => {
13529
13577
  const [products] = React.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]);
13530
13578
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13531
13579
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13532
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.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.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13533
13581
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13534
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 }),
13535
13583
  React.createElement("div", { className: css.css({
@@ -13575,12 +13623,11 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13575
13623
  borderRadius: 3,
13576
13624
  width: 60,
13577
13625
  height: 60,
13578
- marginRight: 8
13626
+ marginInlineEnd: 8
13579
13627
  },
13580
13628
  title: {
13581
13629
  fontSize: 12,
13582
13630
  color: '#fff',
13583
- textAlign: 'left'
13584
13631
  },
13585
13632
  ctaTitle: {
13586
13633
  fontSize: 10,
@@ -13636,7 +13683,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
13636
13683
  const [products] = React.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]);
13637
13684
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13638
13685
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13639
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13686
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13640
13687
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13641
13688
  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 }),
13642
13689
  React.createElement("div", { className: css.css({
@@ -13683,19 +13730,17 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13683
13730
  borderRadius: 8,
13684
13731
  width: 78,
13685
13732
  height: 78,
13686
- marginRight: 16
13733
+ marginInlineEnd: 16
13687
13734
  },
13688
13735
  title: {
13689
13736
  fontSize: 12,
13690
- color: '#000',
13691
- textAlign: 'left'
13737
+ color: '#000'
13692
13738
  },
13693
13739
  ctaTitle: {
13694
13740
  textDecoration: 'underline',
13695
13741
  fontSize: 12,
13696
13742
  fontWeight: 'bold',
13697
13743
  color: '#000',
13698
- textAlign: 'left',
13699
13744
  width: 150,
13700
13745
  height: 20
13701
13746
  }
@@ -13790,12 +13835,11 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
13790
13835
  borderRadius: 3,
13791
13836
  width: 60,
13792
13837
  height: 60,
13793
- marginRight: 8
13838
+ marginInlineEnd: 8
13794
13839
  },
13795
13840
  title: {
13796
13841
  fontSize: 12,
13797
- color: '#fff',
13798
- textAlign: 'left'
13842
+ color: '#fff'
13799
13843
  },
13800
13844
  ctaTitle: {
13801
13845
  fontSize: 10,
@@ -15884,7 +15928,7 @@ function WaterfallList(_a) {
15884
15928
  * @Author: binruan@chatlabs.com
15885
15929
  * @Date: 2024-01-10 10:58:24
15886
15930
  * @LastEditors: binruan@chatlabs.com
15887
- * @LastEditTime: 2025-05-09 15:30:41
15931
+ * @LastEditTime: 2025-02-28 10:00:31
15888
15932
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15889
15933
  *
15890
15934
  */
@@ -15922,7 +15966,7 @@ const WaterFall = (props) => {
15922
15966
  }
15923
15967
  }, [waterFallData]);
15924
15968
  const reportTagsView = React.useCallback(() => {
15925
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15969
+ var _a, _b, _c, _d, _e, _f;
15926
15970
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
15927
15971
  if (!rec)
15928
15972
  return;
@@ -15942,10 +15986,9 @@ const WaterFall = (props) => {
15942
15986
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
15943
15987
  eventInfo: {
15944
15988
  contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
15945
- 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 : '',
15946
15989
  position: cacheActiveIndex + '',
15947
- contentTags: JSON.stringify((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.tags),
15948
- traceInfo: (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.traceInfo,
15990
+ contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
15991
+ traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
15949
15992
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
15950
15993
  fromKName,
15951
15994
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
@@ -16716,6 +16759,60 @@ var settingRender$4 = [
16716
16759
  }
16717
16760
  ];
16718
16761
 
16762
+ /*
16763
+ * @Author: binruan@chatlabs.com
16764
+ * @Date: 2024-07-24 14:58:40
16765
+ * @LastEditors: binruan@chatlabs.com
16766
+ * @LastEditTime: 2024-09-09 13:54:35
16767
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16768
+ *
16769
+ */
16770
+ var interactionRender$2 = [
16771
+ {
16772
+ title: '点击事件',
16773
+ child: [
16774
+ {
16775
+ type: 'link',
16776
+ name: 'onClick',
16777
+ hiddenUrl: true
16778
+ }
16779
+ ]
16780
+ },
16781
+ {
16782
+ title: '动画效果',
16783
+ child: [
16784
+ {
16785
+ type: 'Select',
16786
+ name: ['animation', 'name'],
16787
+ label: '动画',
16788
+ options: [
16789
+ {
16790
+ label: '默认',
16791
+ value: 1
16792
+ }
16793
+ ],
16794
+ fieldProps: {
16795
+ style: {
16796
+ width: '100%'
16797
+ }
16798
+ }
16799
+ },
16800
+ {
16801
+ type: 'Number',
16802
+ label: '动画启动时间',
16803
+ name: ['animation', 'delay'],
16804
+ addonAfter: 'ms'
16805
+ },
16806
+ {
16807
+ type: 'Number',
16808
+ label: '动画持续时间',
16809
+ name: ['animation', 'duration'],
16810
+ addonAfter: 'ms'
16811
+ }
16812
+ ]
16813
+ }
16814
+ ];
16815
+
16719
16816
  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"};
16720
16817
 
16721
16818
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
@@ -16788,60 +16885,6 @@ const AniLinkPopup$1 = (_a) => {
16788
16885
  };
16789
16886
  var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
16790
16887
 
16791
- /*
16792
- * @Author: binruan@chatlabs.com
16793
- * @Date: 2024-07-24 14:58:40
16794
- * @LastEditors: binruan@chatlabs.com
16795
- * @LastEditTime: 2024-09-09 13:54:35
16796
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16797
- *
16798
- */
16799
- var interactionRender$2 = [
16800
- {
16801
- title: '点击事件',
16802
- child: [
16803
- {
16804
- type: 'link',
16805
- name: 'onClick',
16806
- hiddenUrl: true
16807
- }
16808
- ]
16809
- },
16810
- {
16811
- title: '动画效果',
16812
- child: [
16813
- {
16814
- type: 'Select',
16815
- name: ['animation', 'name'],
16816
- label: '动画',
16817
- options: [
16818
- {
16819
- label: '默认',
16820
- value: 1
16821
- }
16822
- ],
16823
- fieldProps: {
16824
- style: {
16825
- width: '100%'
16826
- }
16827
- }
16828
- },
16829
- {
16830
- type: 'Number',
16831
- label: '动画启动时间',
16832
- name: ['animation', 'delay'],
16833
- addonAfter: 'ms'
16834
- },
16835
- {
16836
- type: 'Number',
16837
- label: '动画持续时间',
16838
- name: ['animation', 'duration'],
16839
- addonAfter: 'ms'
16840
- }
16841
- ]
16842
- }
16843
- ];
16844
-
16845
16888
  /*
16846
16889
  * @Author: binruan@chatlabs.com
16847
16890
  * @Date: 2024-07-24 14:58:40
@@ -16880,7 +16923,6 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
16880
16923
  title: {
16881
16924
  fontSize: 14,
16882
16925
  color: '#000',
16883
- textAlign: 'left',
16884
16926
  lineHeight: 2.6
16885
16927
  },
16886
16928
  ctaTitle: {
@@ -17109,7 +17151,7 @@ const Display$1 = (_a) => {
17109
17151
  React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
17110
17152
  __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)
17111
17153
  } }),
17112
- React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
17154
+ React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
17113
17155
  __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)
17114
17156
  }, onClick: handleClick })),
17115
17157
  isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
@@ -18027,22 +18069,21 @@ const LikeButton = (_a) => {
18027
18069
  const likeIcon = useIconLink(defaultLikeIconPath$2);
18028
18070
  const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
18029
18071
  const handleClick = lodash.debounce(() => __awaiter(void 0, void 0, void 0, function* () {
18030
- 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;
18072
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
18031
18073
  if (state) {
18032
18074
  // 先设置状态
18033
18075
  setState(false);
18034
- 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;
18076
+ 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;
18035
18077
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18036
18078
  eventInfo: {
18037
18079
  eventSubject: 'favoriteContentCanceled',
18038
18080
  eventDescription: 'This content was unfavorite by the user',
18039
18081
  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 : '',
18040
- 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 : '',
18041
- 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 : '',
18042
- 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 : []),
18082
+ 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 : '',
18083
+ 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 : []),
18043
18084
  position: position + '',
18044
- contentFormat: ((_q = recData === null || recData === void 0 ? void 0 : recData.video) === null || _q === void 0 ? void 0 : _q.url) ? 'video' : 'image',
18045
- traceInfo: (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.traceInfo
18085
+ contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
18086
+ traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
18046
18087
  }
18047
18088
  });
18048
18089
  // 如果接口调用失败,则回滚状态
@@ -18050,41 +18091,40 @@ const LikeButton = (_a) => {
18050
18091
  setState(true);
18051
18092
  }
18052
18093
  else {
18053
- const nRtcList = (_s = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18094
+ const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18054
18095
  if (index === position) {
18055
18096
  item.isCollected = false;
18056
18097
  }
18057
18098
  return item;
18058
- })) !== null && _s !== void 0 ? _s : [];
18099
+ })) !== null && _p !== void 0 ? _p : [];
18059
18100
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
18060
18101
  }
18061
18102
  }
18062
18103
  else {
18063
18104
  setState(true);
18064
- 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;
18105
+ const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
18065
18106
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18066
18107
  eventInfo: {
18067
18108
  eventSubject: 'favoriteContent',
18068
18109
  eventDescription: 'This content was favorite by the user',
18069
- 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 : '',
18070
- 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 : '',
18071
- 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 : '',
18072
- 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 : []),
18110
+ 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 : '',
18111
+ 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 : '',
18112
+ 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 : []),
18073
18113
  position: position + '',
18074
- contentFormat: ((_5 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _5 === void 0 ? void 0 : _5.url) ? 'video' : 'image',
18075
- traceInfo: (_6 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _6 === void 0 ? void 0 : _6.traceInfo
18114
+ contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
18115
+ traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
18076
18116
  }
18077
18117
  });
18078
18118
  if (!result) {
18079
18119
  setState(false);
18080
18120
  }
18081
18121
  else {
18082
- const nRtcList = (_7 = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18122
+ const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
18083
18123
  if (index === position) {
18084
18124
  item.isCollected = true;
18085
18125
  }
18086
18126
  return item;
18087
- })) !== null && _7 !== void 0 ? _7 : [];
18127
+ })) !== null && _z !== void 0 ? _z : [];
18088
18128
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
18089
18129
  }
18090
18130
  }
@@ -18121,7 +18161,7 @@ const mountVideoPlayerAtNode = (() => {
18121
18161
  const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon, loopPlay, swiperRef }, ref) => {
18122
18162
  var _a, _b;
18123
18163
  const [isPauseVideo, setIsPauseVideo] = React.useState(false);
18124
- const { bffEventReport, sxpParameter, firstRtcList, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
18164
+ const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
18125
18165
  const videoStartTime = React.useRef(0);
18126
18166
  const [isLoadFinish, setIsLoadFinish] = React.useState(false);
18127
18167
  const { isActive } = useSwiperSlide();
@@ -18187,23 +18227,6 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18187
18227
  return;
18188
18228
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
18189
18229
  }, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18190
- const handleEnd = () => {
18191
- var _a, _b, _c, _d, _e, _f;
18192
- if (!videoRef.current)
18193
- return;
18194
- if (isDiyH5) {
18195
- (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
18196
- if (!loopPlayRef.current)
18197
- return;
18198
- if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
18199
- 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;
18200
- (_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);
18201
- }
18202
- }
18203
- else {
18204
- (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.play();
18205
- }
18206
- };
18207
18230
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
18208
18231
  const handlePlaying = React.useCallback(() => {
18209
18232
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -18212,7 +18235,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18212
18235
  setIsLoadFinish(true);
18213
18236
  }, []);
18214
18237
  const handleStartPlay = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
18215
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
18238
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18216
18239
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
18217
18240
  return;
18218
18241
  setIsPauseVideo(false);
@@ -18223,11 +18246,16 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18223
18246
  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);
18224
18247
  const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
18225
18248
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
18226
- 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) + '' }))
18249
+ 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) + '' }))
18227
18250
  });
18228
18251
  isFirstPlayRef.current = false;
18229
18252
  }
18230
18253
  }), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18254
+ const setCurrentTimeByStartTime = React.useCallback(() => {
18255
+ if (isDiyH5) {
18256
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
18257
+ }
18258
+ }, []);
18231
18259
  const handLoadeddata = React.useCallback(() => {
18232
18260
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
18233
18261
  return;
@@ -18252,12 +18280,13 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18252
18280
  const handleLoadedmetadata = React.useCallback(() => {
18253
18281
  if (!videoRef.current)
18254
18282
  return;
18283
+ setCurrentTimeByStartTime();
18255
18284
  loadedTimeRef.current = new Date();
18256
18285
  handleStartPlay();
18257
18286
  handLoadeddata();
18258
18287
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
18259
18288
  const handleClickVideo = React.useCallback((type) => () => {
18260
- var _a, _b, _c, _d, _e;
18289
+ var _a, _b, _c, _d, _e, _f;
18261
18290
  if (!videoRef.current)
18262
18291
  return;
18263
18292
  if (!isLoadFinish)
@@ -18278,17 +18307,20 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18278
18307
  break;
18279
18308
  default:
18280
18309
  if (isPause) {
18281
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
18310
+ 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)) {
18311
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
18312
+ }
18313
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
18282
18314
  }
18283
18315
  else {
18284
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
18316
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
18285
18317
  }
18286
18318
  setIsPauseVideo(!isPause);
18287
18319
  break;
18288
18320
  }
18289
18321
  }, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
18290
18322
  const handlePause = React.useCallback(() => {
18291
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18323
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18292
18324
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
18293
18325
  return;
18294
18326
  if (activeIndex !== index)
@@ -18304,15 +18336,14 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18304
18336
  eventSubject: 'playOverVideo',
18305
18337
  eventDescription: 'User finished playing the video',
18306
18338
  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 : '',
18307
- 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 : '',
18308
- 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 : '',
18339
+ 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 : '',
18309
18340
  endTime: videoCurrentTime,
18310
18341
  videoDuration,
18311
18342
  playDuration,
18312
- 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 : []),
18343
+ 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 : []),
18313
18344
  position: index + '',
18314
18345
  contentFormat: 'video',
18315
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
18346
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
18316
18347
  }
18317
18348
  });
18318
18349
  }
@@ -18320,8 +18351,27 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18320
18351
  const handleWaiting = React.useCallback(() => {
18321
18352
  setWaiting(true);
18322
18353
  }, []);
18354
+ const handleTimeUpload = () => {
18355
+ if (!videoRef.current || !isDiyH5)
18356
+ return;
18357
+ setTimeout(() => {
18358
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18359
+ 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)) {
18360
+ (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
18361
+ if (!loopPlayRef.current)
18362
+ return;
18363
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18364
+ (_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);
18365
+ }
18366
+ else {
18367
+ 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;
18368
+ (_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);
18369
+ }
18370
+ }
18371
+ });
18372
+ };
18323
18373
  React.useEffect(() => {
18324
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18374
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18325
18375
  if (!isActive)
18326
18376
  return;
18327
18377
  const videoSrc = videoUrl;
@@ -18342,6 +18392,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18342
18392
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
18343
18393
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
18344
18394
  var _a;
18395
+ setCurrentTimeByStartTime();
18345
18396
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
18346
18397
  });
18347
18398
  }
@@ -18355,11 +18406,12 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18355
18406
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
18356
18407
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
18357
18408
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
18358
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
18409
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
18359
18410
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
18360
18411
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
18412
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
18361
18413
  return () => {
18362
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18414
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18363
18415
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
18364
18416
  if (!isPause)
18365
18417
  handlePause();
@@ -18371,9 +18423,10 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18371
18423
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
18372
18424
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
18373
18425
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
18374
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
18426
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
18375
18427
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
18376
18428
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
18429
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
18377
18430
  };
18378
18431
  }, [isActive]);
18379
18432
  React.useEffect(() => {
@@ -18584,45 +18637,19 @@ const Picture = (props) => {
18584
18637
  }, onLoad: onShowFirstImage }))));
18585
18638
  };
18586
18639
 
18587
- const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
18640
+ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
18588
18641
  var _a, _b;
18589
18642
  const { isActive } = useSwiperSlide();
18590
- const { firstRtcList, openHashtag, isDiyH5 } = useSxpDataSource();
18643
+ const { sxpParameter, openHashtag } = useSxpDataSource();
18591
18644
  const [isLoad, setIsLoad] = React.useState(false);
18592
18645
  const [imgInfo, setImgInfo] = React.useState();
18593
18646
  const [swiperActiveIndex, setSwiperActiveIndex] = React.useState(0);
18594
- const imgsSwiperRef = React.useRef();
18647
+ const swiperRef = React.useRef();
18595
18648
  const isFirstPlayRef = React.useRef(true);
18596
- const loopPlayRef = React.useRef(true);
18597
18649
  const initTime = new Date();
18598
- React.useImperativeHandle(ref, () => {
18599
- return {
18600
- setLoopPlay(v) {
18601
- loopPlayRef.current = v;
18602
- }
18603
- };
18604
- });
18605
- React.useEffect(() => {
18606
- let timerId;
18607
- if (isLoad && isActive && isDiyH5) {
18608
- timerId = setTimeout(() => {
18609
- var _a, _b, _c, _d;
18610
- if (!loopPlayRef.current)
18611
- return;
18612
- if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
18613
- 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;
18614
- (_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);
18615
- }
18616
- }, 3000);
18617
- }
18618
- return () => {
18619
- if (timerId)
18620
- clearTimeout(timerId);
18621
- };
18622
- }, [isLoad, isActive, isDiyH5, index, swiperRef, firstRtcList]);
18623
18650
  React.useEffect(() => {
18624
18651
  if (isLoad && isActive) {
18625
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
18652
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
18626
18653
  if (openHashtag) {
18627
18654
  onViewImageEndEvent(rec);
18628
18655
  }
@@ -18632,7 +18659,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18632
18659
  }
18633
18660
  }
18634
18661
  else {
18635
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
18662
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
18636
18663
  }
18637
18664
  }, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
18638
18665
  const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -18659,13 +18686,13 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18659
18686
  };
18660
18687
  }, [isActive, imgInfo]);
18661
18688
  const handleMouseEnter = React.useCallback(() => {
18662
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18663
- imgsSwiperRef.current.swiper.autoplay.stop();
18689
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18690
+ swiperRef.current.swiper.autoplay.stop();
18664
18691
  }
18665
18692
  }, []);
18666
18693
  const handleMouseLeave = React.useCallback(() => {
18667
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18668
- imgsSwiperRef.current.swiper.autoplay.start();
18694
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18695
+ swiperRef.current.swiper.autoplay.start();
18669
18696
  }
18670
18697
  }, []);
18671
18698
  const handleSlideChange = React.useCallback((swiper) => {
@@ -18686,7 +18713,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18686
18713
  enabled: true
18687
18714
  }
18688
18715
  }
18689
- : {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18716
+ : {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18690
18717
  bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
18691
18718
  fontSize: '14px'
18692
18719
  } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
@@ -18703,7 +18730,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18703
18730
  return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
18704
18731
  React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
18705
18732
  }))));
18706
- });
18733
+ };
18707
18734
  var PictureGroup$5 = React.memo(PictureGroup$4);
18708
18735
 
18709
18736
  /*
@@ -18824,10 +18851,22 @@ function withBindDataSource(Component) {
18824
18851
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18825
18852
  *
18826
18853
  */
18827
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18854
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
18855
+ var _a, _b, _c, _d, _e;
18828
18856
  const { schema } = useEditor();
18829
18857
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18830
18858
  return null;
18859
+ let cta = null;
18860
+ 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) {
18861
+ cta = '多商品CTA';
18862
+ }
18863
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18864
+ cta = '商品CTA';
18865
+ }
18866
+ else {
18867
+ 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;
18868
+ }
18869
+ const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
18831
18870
  const renderComp = React.useMemo(() => {
18832
18871
  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;
18833
18872
  // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
@@ -18855,7 +18894,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
18855
18894
  const sbf = style.backdropFilter;
18856
18895
  style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18857
18896
  }
18858
- 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 })));
18897
+ 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 })));
18859
18898
  }
18860
18899
  else {
18861
18900
  return null;
@@ -18983,7 +19022,7 @@ var NavBack$1 = React.memo(NavBack);
18983
19022
  * @Author: binruan@chatlabs.com
18984
19023
  * @Date: 2024-03-20 10:27:31
18985
19024
  * @LastEditors: binruan@chatlabs.com
18986
- * @LastEditTime: 2025-05-12 14:26:15
19025
+ * @LastEditTime: 2025-05-09 15:51:40
18987
19026
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18988
19027
  *
18989
19028
  */
@@ -19003,7 +19042,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19003
19042
  const skipLinkRef = React.useRef(false);
19004
19043
  const [pageNum, setPageNum] = React.useState(2);
19005
19044
  const videoWidgetRef = React.useRef(null);
19006
- const pictureGroupRef = React.useRef(null);
19007
19045
  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();
19008
19046
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
19009
19047
  const isShowFingerTip = React.useMemo(() => {
@@ -19051,7 +19089,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19051
19089
  (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
19052
19090
  }, [data, ctaType, swiperRef]);
19053
19091
  const handleSessionCompleted = React.useCallback((fk) => {
19054
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
19092
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
19055
19093
  const item = data === null || data === void 0 ? void 0 : data[activeIndex];
19056
19094
  let fromKName = '';
19057
19095
  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))) {
@@ -19078,13 +19116,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19078
19116
  eventSubject: 'sessionCompleted',
19079
19117
  eventDescription: 'Session completed',
19080
19118
  contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
19081
- 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 : '',
19082
- productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
19119
+ productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
19083
19120
  position: activeIndex + '',
19084
19121
  fromKName: fk || fromKName,
19085
19122
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
19086
- 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 : '',
19087
- 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 : ''
19123
+ 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 : '',
19124
+ 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 : ''
19088
19125
  }
19089
19126
  });
19090
19127
  }, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
@@ -19143,9 +19180,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19143
19180
  refreshFeSession
19144
19181
  ]);
19145
19182
  const handleSessionExpire = React.useCallback(lodash.debounce(() => {
19146
- var _a, _b;
19183
+ var _a;
19147
19184
  (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
19148
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
19149
19185
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
19150
19186
  }, 1000), [handleSessionCompleted, refreshFeSession]);
19151
19187
  React.useEffect(() => {
@@ -19215,18 +19251,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19215
19251
  return null;
19216
19252
  }, [globalConfig, activeIndex, visList]);
19217
19253
  const renderContent = React.useCallback((rec, index) => {
19218
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
19254
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
19219
19255
  if (rec === 'organic menu') {
19220
19256
  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)));
19221
19257
  }
19222
- 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)) {
19258
+ if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
19223
19259
  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 })));
19224
19260
  }
19225
- if ((_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) {
19226
- 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 })));
19261
+ if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
19262
+ 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 }));
19227
19263
  }
19228
- 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) {
19229
- return (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _m === void 0 ? void 0 : _m.map((value, idx) => {
19264
+ 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) {
19265
+ return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
19230
19266
  var _a, _b, _c, _d, _e, _f, _g, _h;
19231
19267
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
19232
19268
  const Component = withBindDataSource(t);
@@ -19264,7 +19300,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19264
19300
  };
19265
19301
  }, [isShowMore]);
19266
19302
  const renderBottom = React.useCallback((rec, index) => {
19267
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
19303
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19268
19304
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
19269
19305
  let cta = null;
19270
19306
  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) {
@@ -19273,28 +19309,25 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19273
19309
  else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
19274
19310
  cta = '商品CTA';
19275
19311
  }
19276
- 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)) {
19277
- cta = '服务CTA';
19278
- }
19279
19312
  else {
19280
- 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;
19313
+ 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;
19281
19314
  }
19282
19315
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
19283
19316
  const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
19284
19317
  index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19285
- ((_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));
19318
+ ((_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));
19286
19319
  return (React.createElement(React.Fragment, null,
19287
- isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
19288
- ((_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' }),
19289
- 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` } },
19320
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
19321
+ ((_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' }),
19322
+ 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` } },
19290
19323
  React.createElement(Nudge, { nudge: nudge }),
19291
19324
  ((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' },
19292
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
19293
- React.createElement("div", null,
19294
- 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 }),
19295
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
19296
- 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) }))),
19297
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
19325
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
19326
+ React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
19327
+ 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 }),
19328
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
19329
+ 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) }))),
19330
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
19298
19331
  }
19299
19332
  return null;
19300
19333
  }, [
@@ -19332,7 +19365,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19332
19365
  return null;
19333
19366
  }, [globalConfig, waterFallData]);
19334
19367
  const handleViewImageStartEnd = (item) => {
19335
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19368
+ var _a, _b, _c, _d, _e, _f;
19336
19369
  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)) {
19337
19370
  const endTime = Date.now();
19338
19371
  const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
@@ -19341,11 +19374,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19341
19374
  eventSubject: 'viewImageCarouselEnd',
19342
19375
  eventDescription: 'User end view the image carousel',
19343
19376
  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 : '',
19344
- 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 : '',
19345
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19377
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19346
19378
  imageEndTime: `${endTime}`,
19347
19379
  playDuration: `${duration}`,
19348
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19380
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19349
19381
  position: activeIndex + '',
19350
19382
  contentFormat: 'image',
19351
19383
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
@@ -19354,7 +19386,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19354
19386
  }
19355
19387
  };
19356
19388
  const handleSlideSkip = (item, position) => {
19357
- 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;
19389
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
19358
19390
  if (isPreview || waterFallData)
19359
19391
  return;
19360
19392
  const t = new Date() - curTime.current;
@@ -19380,8 +19412,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19380
19412
  contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
19381
19413
  position: position + '',
19382
19414
  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 : '',
19383
- 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 : '',
19384
- 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 : '',
19415
+ 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 : '',
19385
19416
  contentFormat
19386
19417
  }
19387
19418
  });
@@ -19391,7 +19422,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19391
19422
  }
19392
19423
  };
19393
19424
  const handleScrollEvent = (swiper) => {
19394
- 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;
19425
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19395
19426
  const item = data[swiper.previousIndex];
19396
19427
  if (!item)
19397
19428
  return;
@@ -19408,12 +19439,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19408
19439
  eventSubject: 'scrollDown',
19409
19440
  eventDescription: 'User scroll down',
19410
19441
  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 : '',
19411
- 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 : '',
19412
- 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 : '',
19442
+ 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 : '',
19413
19443
  requestId: null,
19414
- 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 : '',
19444
+ 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 : '',
19415
19445
  contentFormat,
19416
- position: ((_q = swiper.previousIndex) !== null && _q !== void 0 ? _q : 0) + ''
19446
+ position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
19417
19447
  }
19418
19448
  });
19419
19449
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19425,13 +19455,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19425
19455
  eventInfo: {
19426
19456
  eventSubject: 'scrollUp',
19427
19457
  eventDescription: 'User scroll up',
19428
- 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 : '',
19429
- 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 : '',
19430
- productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
19458
+ 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 : '',
19459
+ productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
19431
19460
  requestId: null,
19432
- 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 : '',
19461
+ 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 : '',
19433
19462
  contentFormat,
19434
- position: ((_2 = swiper.previousIndex) !== null && _2 !== void 0 ? _2 : 0) + ''
19463
+ position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
19435
19464
  }
19436
19465
  });
19437
19466
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19457,7 +19486,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19457
19486
  }
19458
19487
  }, [openHashtag, data, activeIndex]);
19459
19488
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19460
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
19489
+ var _a, _b, _c, _d, _e, _f, _g, _h;
19461
19490
  const item = data[activeIndex];
19462
19491
  // 如果是图片集则上报事件
19463
19492
  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)) {
@@ -19468,10 +19497,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19468
19497
  eventSubject: 'viewImageCarouselStart',
19469
19498
  eventDescription: 'User start view the image carousel',
19470
19499
  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 : '',
19471
- 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 : '',
19472
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19500
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19473
19501
  imageStartTime: `${startTime}`,
19474
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19502
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19475
19503
  position: activeIndex + '',
19476
19504
  contentFormat: 'image',
19477
19505
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
@@ -19481,11 +19509,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19481
19509
  if (enableCapi) {
19482
19510
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19483
19511
  eventName: 'ViewContent',
19484
- product: (_k = item === null || item === void 0 ? void 0 : item.video) === null || _k === void 0 ? void 0 : _k.bindProduct
19512
+ product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
19485
19513
  });
19486
19514
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19487
19515
  eventName: 'PageView',
19488
- product: (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.bindProduct
19516
+ product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
19489
19517
  });
19490
19518
  }
19491
19519
  }
@@ -19541,73 +19569,71 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19541
19569
  isReload,
19542
19570
  renderToggleButton
19543
19571
  ]);
19544
- return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' }, (data === null || data === void 0 ? void 0 : data.length) < 1 && loading ? (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
19545
- React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
19546
- waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff', top: `${minusHeight}px` }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === 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.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
19547
- const isEq = lodash.isEqual(rtcList, cacheRtcList);
19548
- if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
19549
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
19550
- }
19551
- setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
19552
- } })),
19553
- renderLogo,
19554
- React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
19555
- top: minusHeight
19556
- } }),
19557
- ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && !waterFallData && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
19558
- ((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
19559
- !waterFallData && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
19560
- var _a, _b;
19561
- const item = visList === null || visList === void 0 ? void 0 : visList[activeIndex];
19562
- bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19563
- eventInfo: {
19564
- eventSubject: 'backMultiPostClick',
19565
- eventDescription: 'backMultiPostClick',
19566
- traceInfo: ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || ''
19572
+ return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
19573
+ (data === null || data === void 0 ? void 0 : data.length) < 1 && loading ? (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
19574
+ React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
19575
+ waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff', top: `${minusHeight}px` }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === 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.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
19576
+ const isEq = lodash.isEqual(rtcList, cacheRtcList);
19577
+ if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
19578
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
19567
19579
  }
19568
- });
19569
- location === null || location === void 0 ? void 0 : location.reload();
19570
- } })),
19571
- isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _r !== void 0 ? _r : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
19572
- React.createElement(Swiper, { style: {
19573
- marginTop: tagHeight
19574
- }, ref: swiperRef, onSlideChange: () => {
19575
- swiperRef.current.swiper.allowTouchMove = false;
19576
- setTimeout(() => {
19577
- swiperRef.current.swiper.allowTouchMove = true;
19578
- }, 500);
19579
- }, onActiveIndexChange: (swiper) => {
19580
- var _a, _b;
19581
- setActiveIndex(swiper.activeIndex);
19582
- if (openHashtag)
19583
- return;
19584
- // 处理上滑下滑事件
19585
- handleScrollEvent(swiper);
19586
- if (waterFallData || isEditor)
19587
- return;
19588
- if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
19589
- if (!isLoadMore) {
19590
- if (isDiyH5) {
19591
- (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
19592
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
19580
+ setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
19581
+ } })),
19582
+ renderLogo,
19583
+ React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
19584
+ top: minusHeight
19585
+ } }),
19586
+ ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && !waterFallData && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
19587
+ ((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
19588
+ !waterFallData && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
19589
+ var _a, _b;
19590
+ const item = visList === null || visList === void 0 ? void 0 : visList[activeIndex];
19591
+ bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19592
+ eventInfo: {
19593
+ eventSubject: 'backMultiPostClick',
19594
+ eventDescription: 'backMultiPostClick',
19595
+ traceInfo: ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || ''
19596
+ }
19597
+ });
19598
+ location === null || location === void 0 ? void 0 : location.reload();
19599
+ } })),
19600
+ isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _r !== void 0 ? _r : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
19601
+ React.createElement(Swiper, { style: {
19602
+ marginTop: tagHeight
19603
+ }, ref: swiperRef, onSlideChange: () => {
19604
+ swiperRef.current.swiper.allowTouchMove = false;
19605
+ setTimeout(() => {
19606
+ swiperRef.current.swiper.allowTouchMove = true;
19607
+ }, 500);
19608
+ }, onActiveIndexChange: (swiper) => {
19609
+ setActiveIndex(swiper.activeIndex);
19610
+ if (openHashtag)
19611
+ return;
19612
+ // 处理上滑下滑事件
19613
+ handleScrollEvent(swiper);
19614
+ if (waterFallData || isEditor || isDiyH5)
19615
+ return;
19616
+ if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
19617
+ if (!isLoadMore) {
19618
+ setIsLoadMore(true);
19619
+ loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
19620
+ var _a;
19621
+ setIsLoadMore(false);
19622
+ if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
19623
+ setPageNum(pageNum + 1);
19624
+ }
19625
+ });
19593
19626
  }
19594
- setIsLoadMore(true);
19595
- loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
19596
- var _a;
19597
- setIsLoadMore(false);
19598
- if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
19599
- setPageNum(pageNum + 1);
19600
- }
19601
- });
19602
19627
  }
19603
- }
19604
- }, direction: 'vertical', height: height },
19605
- renderView,
19606
- renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
19607
- renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
19608
- React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
19609
- React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19610
- openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } })))))));
19628
+ }, direction: 'vertical', height: height },
19629
+ renderView,
19630
+ renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
19631
+ renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
19632
+ React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
19633
+ React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19634
+ openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
19635
+ (window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: { position: 'fixed', bottom: 0, left: 0, right: 0, width: '100%', zIndex: 10, backgroundColor: '#000', fontSize: 0 } },
19636
+ React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: { textDecoration: 'underline', width: 'fit-content', border: 'none', lineHeight: '24px', fontSize: '10px', color: '#fff', padding: '0 20px' } }, "Cookie settings")))));
19611
19637
  };
19612
19638
  var SxpPageRender$1 = React.memo(SxpPageRender);
19613
19639
 
@@ -19643,7 +19669,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19643
19669
  }, []);
19644
19670
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
19645
19671
  const handlePlaying = React.useCallback(() => {
19646
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19672
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19647
19673
  setIsPauseVideo(false);
19648
19674
  const item = data[index];
19649
19675
  if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
@@ -19656,15 +19682,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19656
19682
  eventSubject: 'playVideo',
19657
19683
  eventDescription: 'User played the video',
19658
19684
  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 : '',
19659
- 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 : '',
19660
- 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 : '',
19685
+ 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 : '',
19661
19686
  playType,
19662
19687
  startTime: videoCurrentTime,
19663
19688
  videoDuration,
19664
- 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 : []),
19689
+ 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 : []),
19665
19690
  position: index + '',
19666
19691
  contentFormat: 'video',
19667
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19692
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19668
19693
  }
19669
19694
  });
19670
19695
  setIsFirstPlay(false);
@@ -19703,7 +19728,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19703
19728
  }
19704
19729
  }, [isLoadFinish]);
19705
19730
  const onPause = React.useCallback(() => {
19706
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19731
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19707
19732
  const item = data[index];
19708
19733
  const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
19709
19734
  const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -19714,15 +19739,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19714
19739
  eventSubject: 'playOverVideo',
19715
19740
  eventDescription: 'User finished playing the video',
19716
19741
  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 : '',
19717
- 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 : '',
19718
- 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 : '',
19742
+ 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 : '',
19719
19743
  endTime: videoCurrentTime,
19720
19744
  videoDuration,
19721
19745
  playDuration,
19722
- 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 : []),
19746
+ 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 : []),
19723
19747
  position: index + '',
19724
19748
  contentFormat: 'video',
19725
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19749
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19726
19750
  }
19727
19751
  });
19728
19752
  }
@@ -19908,7 +19932,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19908
19932
  const CTA = (rec, index) => {
19909
19933
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
19910
19934
  return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19911
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
19935
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
19912
19936
  }
19913
19937
  return null;
19914
19938
  };
@@ -19921,8 +19945,10 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19921
19945
  React.createElement(Nudge, { nudge: nudge }),
19922
19946
  CTA(rec, index),
19923
19947
  React.createElement("div", null,
19924
- 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' }) })),
19925
- 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 }))));
19948
+ 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' }) }),
19949
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
19950
+ 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 })),
19951
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
19926
19952
  }
19927
19953
  return null;
19928
19954
  };
@@ -20312,21 +20338,10 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
20312
20338
  return null;
20313
20339
  }, [globalConfig]);
20314
20340
  const renderBottom = (rec, index) => {
20315
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20341
+ var _a, _b, _c, _d;
20316
20342
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
20317
- let cta = null;
20318
- 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) {
20319
- cta = '多商品CTA';
20320
- }
20321
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
20322
- cta = '商品CTA';
20323
- }
20324
- else {
20325
- 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;
20326
- }
20327
- const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
20328
20343
  return (React.createElement(React.Fragment, null,
20329
- ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
20344
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
20330
20345
  background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
20331
20346
  height: '130px',
20332
20347
  position: 'absolute',
@@ -20337,7 +20352,7 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
20337
20352
  pointerEvents
20338
20353
  } })),
20339
20354
  React.createElement("div", { style: {
20340
- marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
20355
+ marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
20341
20356
  zIndex: 999,
20342
20357
  position: 'absolute',
20343
20358
  bottom: 0,
@@ -20346,15 +20361,15 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
20346
20361
  paddingTop: '20px'
20347
20362
  } },
20348
20363
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
20349
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
20364
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
20350
20365
  React.createElement("div", null,
20351
20366
  React.createElement(ExpandableText$1
20352
20367
  // className='clc-sxp-bottom-text'
20353
20368
  , {
20354
20369
  // className='clc-sxp-bottom-text'
20355
- 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' }) }),
20356
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
20357
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
20370
+ 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' }) }),
20371
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
20372
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
20358
20373
  }
20359
20374
  return null;
20360
20375
  };