pb-sxp-ui 1.0.71 → 1.0.72

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 (31) hide show
  1. package/dist/index.cjs +111 -82
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +111 -82
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +115 -85
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/DiyPortalPreview/VideoWidget.js +15 -16
  14. package/es/core/components/DiyPortalPreview/index.js +8 -8
  15. package/es/core/components/SxpPageCore/index.js +2 -2
  16. package/es/core/components/SxpPageRender/FormatImage.js +2 -1
  17. package/es/core/components/SxpPageRender/LikeButton/index.js +11 -11
  18. package/es/core/components/SxpPageRender/VideoWidget/index.js +13 -13
  19. package/es/core/components/SxpPageRender/index.js +32 -26
  20. package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
  21. package/es/core/context/SxpDataSourceProvider.js +3 -3
  22. package/lib/core/components/DiyPortalPreview/VideoWidget.js +15 -16
  23. package/lib/core/components/DiyPortalPreview/index.js +8 -8
  24. package/lib/core/components/SxpPageCore/index.js +2 -2
  25. package/lib/core/components/SxpPageRender/FormatImage.js +1 -0
  26. package/lib/core/components/SxpPageRender/LikeButton/index.js +11 -11
  27. package/lib/core/components/SxpPageRender/VideoWidget/index.js +13 -13
  28. package/lib/core/components/SxpPageRender/index.js +32 -26
  29. package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
  30. package/lib/core/context/SxpDataSourceProvider.js +3 -3
  31. package/package.json +1 -2
package/dist/pb-ui.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('react-dom'), require('hls.js')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', 'react-dom', 'hls.js'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.ReactDOM, global.Hls));
5
- })(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, ReactDOM, Hls) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('react-dom')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', 'react-dom'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.ReactDOM));
5
+ })(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, ReactDOM) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -438,7 +438,7 @@
438
438
  DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
439
439
  })(DataSourceType || (DataSourceType = {}));
440
440
  const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_id', 'utm_content', 'cl_source'];
441
- const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false }) => {
441
+ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, isShowTag = true }) => {
442
442
  const [rtcList, setRtcList] = React.useState([]);
443
443
  const [tagList, setTagList] = React.useState([]);
444
444
  const [loading, setLoading] = React.useState(false);
@@ -600,7 +600,7 @@
600
600
  // 获取 Tag
601
601
  const bffGetTagList = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
602
602
  var _h, _j, _k, _l, _m;
603
- if (!utmVal)
603
+ if (!utmVal || !isShowTag)
604
604
  return;
605
605
  try {
606
606
  const val = (_k = (_j = (_h = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _h === void 0 ? void 0 : _h.filter((val) => {
@@ -613,7 +613,7 @@
613
613
  catch (e) {
614
614
  console.log('e', e);
615
615
  }
616
- }), [bffFetch, utmVal]);
616
+ }), [bffFetch, utmVal, isShowTag]);
617
617
  const ctaEvent = React.useCallback((eventInfo, rec, product, position) => {
618
618
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
619
619
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
@@ -8439,7 +8439,7 @@
8439
8439
  * @Author: binruan@chatlabs.com
8440
8440
  * @Date: 2024-03-20 10:27:31
8441
8441
  * @LastEditors: binruan@chatlabs.com
8442
- * @LastEditTime: 2024-04-19 14:12:55
8442
+ * @LastEditTime: 2024-05-20 15:53:04
8443
8443
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FormatImage.tsx
8444
8444
  *
8445
8445
  */
@@ -8454,6 +8454,30 @@
8454
8454
  React.useEffect(() => {
8455
8455
  setImgSrc(src);
8456
8456
  }, [src]);
8457
+ React.useRef(null);
8458
+ // useEffect(() => {
8459
+ // let observer: any = null;
8460
+ // const { current } = imgRef;
8461
+ // if (current) {
8462
+ // observer = new IntersectionObserver(
8463
+ // (entries) => {
8464
+ // entries.forEach((entry) => {
8465
+ // if (entry.isIntersecting) {
8466
+ // setImgSrc(src);
8467
+ // observer.unobserve(current);
8468
+ // }
8469
+ // });
8470
+ // },
8471
+ // { threshold: 0.1 } // 触发阈值,可根据需要调整
8472
+ // );
8473
+ // observer.observe(current);
8474
+ // }
8475
+ // return () => {
8476
+ // if (observer && current) {
8477
+ // observer.unobserve(current);
8478
+ // }
8479
+ // };
8480
+ // }, [src]);
8457
8481
  return (React.createElement(React.Fragment, null, (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
8458
8482
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
8459
8483
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -12234,17 +12258,17 @@ Made in Italy` })));
12234
12258
  if (state) {
12235
12259
  // 先设置状态
12236
12260
  setState(false);
12237
- const result = (_d = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({ videoItemId: (_c = (_b = recData.video) === null || _b === void 0 ? void 0 : _b.itemId) !== null && _c !== void 0 ? _c : '' })))) !== null && _d !== void 0 ? _d : false;
12261
+ const result = (_d = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({ videoItemId: (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.itemId) !== null && _c !== void 0 ? _c : '' })))) !== null && _d !== void 0 ? _d : false;
12238
12262
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
12239
12263
  eventInfo: {
12240
12264
  eventSubject: 'favoriteContentCanceled',
12241
12265
  eventDescription: 'This content was unfavorite by the user',
12242
- contentId: (_f = (_e = recData.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
12243
- contentName: (_h = (_g = recData.video) === null || _g === void 0 ? void 0 : _g.title) !== null && _h !== void 0 ? _h : '',
12244
- contentTags: JSON.stringify((_k = (_j = recData.video) === null || _j === void 0 ? void 0 : _j.tags) !== null && _k !== void 0 ? _k : []),
12266
+ contentId: (_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
12267
+ contentName: (_h = (_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.title) !== null && _h !== void 0 ? _h : '',
12268
+ contentTags: JSON.stringify((_k = (_j = recData === null || recData === void 0 ? void 0 : recData.video) === null || _j === void 0 ? void 0 : _j.tags) !== null && _k !== void 0 ? _k : []),
12245
12269
  position: position + '',
12246
- contentFormat: ((_l = recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12247
- traceInfo: (_m = recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12270
+ contentFormat: ((_l = recData === null || recData === void 0 ? void 0 : recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12271
+ traceInfo: (_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12248
12272
  }
12249
12273
  });
12250
12274
  // 如果接口调用失败,则回滚状态
@@ -12259,12 +12283,12 @@ Made in Italy` })));
12259
12283
  eventInfo: {
12260
12284
  eventSubject: 'favoriteContent',
12261
12285
  eventDescription: 'This content was favorite by the user',
12262
- contentId: (_q = (_p = recData.video) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : '',
12263
- contentName: (_s = (_r = recData.video) === null || _r === void 0 ? void 0 : _r.title) !== null && _s !== void 0 ? _s : '',
12264
- contentTags: JSON.stringify((_u = (_t = recData.video) === null || _t === void 0 ? void 0 : _t.tags) !== null && _u !== void 0 ? _u : []),
12286
+ contentId: (_q = (_p = recData === null || recData === void 0 ? void 0 : recData.video) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : '',
12287
+ contentName: (_s = (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.title) !== null && _s !== void 0 ? _s : '',
12288
+ contentTags: JSON.stringify((_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.tags) !== null && _u !== void 0 ? _u : []),
12265
12289
  position: position + '',
12266
- contentFormat: ((_v = recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12267
- traceInfo: (_w = recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12290
+ contentFormat: ((_v = recData === null || recData === void 0 ? void 0 : recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12291
+ traceInfo: (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12268
12292
  }
12269
12293
  });
12270
12294
  if (!result) {
@@ -12342,15 +12366,15 @@ Made in Italy` })));
12342
12366
  eventInfo: {
12343
12367
  eventSubject: 'playVideo',
12344
12368
  eventDescription: 'User played the video',
12345
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12346
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12369
+ 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 : '',
12370
+ contentName: (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12347
12371
  playType,
12348
12372
  startTime: videoCurrentTime,
12349
12373
  videoDuration,
12350
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12374
+ contentTags: JSON.stringify((_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12351
12375
  position: index + '',
12352
12376
  contentFormat: 'video',
12353
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12377
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12354
12378
  }
12355
12379
  });
12356
12380
  setIsFirstPlay(false);
@@ -12440,15 +12464,15 @@ Made in Italy` })));
12440
12464
  eventInfo: {
12441
12465
  eventSubject: 'playOverVideo',
12442
12466
  eventDescription: 'User finished playing the video',
12443
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12444
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12467
+ 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 : '',
12468
+ contentName: (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12445
12469
  endTime: videoCurrentTime,
12446
12470
  videoDuration,
12447
12471
  playDuration,
12448
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12472
+ contentTags: JSON.stringify((_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12449
12473
  position: index + '',
12450
12474
  contentFormat: 'video',
12451
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12475
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12452
12476
  }
12453
12477
  });
12454
12478
  }
@@ -12456,9 +12480,10 @@ Made in Italy` })));
12456
12480
  React.useEffect(() => {
12457
12481
  if (!isActive || !videoRef)
12458
12482
  return;
12459
- const videoSrc = rec.video.url;
12483
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
12460
12484
  if (!videoSrc)
12461
12485
  return;
12486
+ videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12462
12487
  setIsPauseVideo(false);
12463
12488
  const videoPlayerWrapperNode = document.querySelector(`#${videoId}`);
12464
12489
  const dom = document.querySelector('#player-container-id');
@@ -12466,7 +12491,6 @@ Made in Italy` })));
12466
12491
  if (!dom && !dom2)
12467
12492
  return;
12468
12493
  videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
12469
- videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12470
12494
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
12471
12495
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
12472
12496
  // videoRef?.on('canplay', handleCanplay);
@@ -12547,10 +12571,10 @@ Made in Italy` })));
12547
12571
  window.removeEventListener('beforeunload', handleBeforeUnload);
12548
12572
  };
12549
12573
  }, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
12550
- if (!rec.video) {
12574
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
12551
12575
  return null;
12552
12576
  }
12553
- return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: Object.assign({ position: 'relative', width: '100%', height, overflow: 'hidden' }, bgStyle) },
12577
+ return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: Object.assign({ position: 'relative', width: '100%', height, overflow: 'hidden' }, bgStyle) },
12554
12578
  !isBgColor && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
12555
12579
  React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
12556
12580
  React.createElement("div", { style: {
@@ -12565,7 +12589,7 @@ Made in Italy` })));
12565
12589
  React.createElement("div", { style: { position: 'relative', width: '100%', height: '100%' } },
12566
12590
  React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
12567
12591
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
12568
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, style: {
12592
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, style: {
12569
12593
  position: 'relative',
12570
12594
  width: '100%',
12571
12595
  height,
@@ -12922,7 +12946,7 @@ Made in Italy` })));
12922
12946
  * @Author: binruan@chatlabs.com
12923
12947
  * @Date: 2024-01-15 19:03:09
12924
12948
  * @LastEditors: binruan@chatlabs.com
12925
- * @LastEditTime: 2024-05-23 10:41:27
12949
+ * @LastEditTime: 2024-05-24 16:32:06
12926
12950
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12927
12951
  *
12928
12952
  */
@@ -12982,23 +13006,29 @@ Made in Italy` })));
12982
13006
  };
12983
13007
  const firstRef = React.useRef();
12984
13008
  React.useEffect(() => {
12985
- if (!firstRef.current && !videoRef) {
13009
+ var _a, _b, _c;
13010
+ if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
12986
13011
  firstRef.current = true;
12987
13012
  const player = TCPlayer('player-container-id', {
12988
13013
  licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12989
13014
  controls: false,
12990
- autoplay: false,
12991
13015
  loop: false,
13016
+ autoplay: true,
12992
13017
  muted: true,
12993
13018
  preload: 'auto',
12994
13019
  posterImage: false,
12995
- bigPlayButton: true
13020
+ bigPlayButton: true,
13021
+ sources: [
13022
+ {
13023
+ src: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[0]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : ''
13024
+ }
13025
+ ]
12996
13026
  });
12997
13027
  player === null || player === void 0 ? void 0 : player.ready(() => {
12998
13028
  setVideoRef(player);
12999
13029
  });
13000
13030
  }
13001
- }, [videoRef, licenseUrl]);
13031
+ }, [videoRef, licenseUrl, data]);
13002
13032
  React.useEffect(() => {
13003
13033
  if (!isInit)
13004
13034
  handleH5EnterLink();
@@ -13053,7 +13083,7 @@ Made in Italy` })));
13053
13083
  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))) {
13054
13084
  fromKName = 'pdpPage';
13055
13085
  }
13056
- else if (popupDetailData && (tempMap === null || tempMap === void 0 ? void 0 : tempMap[(_f = (_e = (_d = item.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : ''].item.type) === 'Appoint') {
13086
+ else if (popupDetailData && (tempMap === null || tempMap === void 0 ? void 0 : tempMap[(_f = (_e = (_d = item === null || item === void 0 ? void 0 : item.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : ''].item.type) === 'Appoint') {
13057
13087
  fromKName = 'formPage';
13058
13088
  }
13059
13089
  else if (isFromHashtag) {
@@ -13078,7 +13108,7 @@ Made in Italy` })));
13078
13108
  position: activeIndex + '',
13079
13109
  fromKName,
13080
13110
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
13081
- ctatId: (_q = (_p = (_o = item.video) === null || _o === void 0 ? void 0 : _o.bindCta) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : ''
13111
+ ctatId: (_q = (_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.bindCta) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : ''
13082
13112
  }
13083
13113
  });
13084
13114
  }
@@ -13116,11 +13146,11 @@ Made in Italy` })));
13116
13146
  }, [globalConfig]);
13117
13147
  const renderContent = React.useCallback((rec, index) => {
13118
13148
  var _a, _b, _c, _d;
13119
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13149
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13120
13150
  return (React.createElement(VideoWidget$3, { rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoRef: videoRef }));
13121
13151
  }
13122
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13123
- return (React.createElement(PictureGroup$3, { key: rec.video.itemId, imgUrls: rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onReportViewImageEnd: handleReportViewImageEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
13152
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13153
+ return (React.createElement(PictureGroup$3, { 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, onReportViewImageEnd: handleReportViewImageEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
13124
13154
  }
13125
13155
  if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
13126
13156
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, idx) => {
@@ -13161,16 +13191,16 @@ Made in Italy` })));
13161
13191
  }, [isShowMore]);
13162
13192
  const renderBottom = React.useCallback((rec, index) => {
13163
13193
  var _a, _b, _c, _d, _e, _f, _g;
13164
- if (rec.video) {
13194
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13165
13195
  return (React.createElement(React.Fragment, null,
13166
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13196
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13167
13197
  React.createElement("div", { className: 'clc-sxp-bottom' },
13168
13198
  React.createElement(Nudge, { nudge: nudge }),
13169
13199
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
13170
13200
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
13171
13201
  React.createElement("div", null,
13172
- 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.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' }), onChange: onExpandableChange }),
13173
- React.createElement(Hashtag$1, { index: activeIndex, 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.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })))));
13202
+ 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' }), onChange: onExpandableChange }),
13203
+ React.createElement(Hashtag$1, { index: activeIndex, 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 })))));
13174
13204
  }
13175
13205
  return null;
13176
13206
  }, [
@@ -13194,7 +13224,7 @@ Made in Italy` })));
13194
13224
  if (waterFallData && top < 40) {
13195
13225
  top += 40;
13196
13226
  }
13197
- if (rec.video) {
13227
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13198
13228
  return (React.createElement(LikeButton$1, { key: rec.position, activeIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon, unActicveIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
13199
13229
  [(_b = globalConfig.likeIconXPosit) !== null && _b !== void 0 ? _b : 'right']: (_c = globalConfig.likeIconX) !== null && _c !== void 0 ? _c : 0,
13200
13230
  [(_d = globalConfig.likeIconYPosit) !== null && _d !== void 0 ? _d : 'bottom']: top
@@ -13204,21 +13234,21 @@ Made in Italy` })));
13204
13234
  }, [globalConfig, waterFallData]);
13205
13235
  const handleReportViewImageEnd = (item) => {
13206
13236
  var _a, _b, _c, _d, _e, _f;
13207
- if (!((_a = item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
13237
+ 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)) {
13208
13238
  const endTime = Date.now();
13209
13239
  const duration = (endTime - viewImageStartTime.current) / 1000;
13210
13240
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
13211
13241
  eventInfo: {
13212
13242
  eventSubject: 'viewImageCarouselEnd',
13213
13243
  eventDescription: 'User end view the image carousel',
13214
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13215
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13244
+ 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 : '',
13245
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13216
13246
  imageEndTime: `${endTime}`,
13217
13247
  playDuration: `${duration}`,
13218
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13248
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13219
13249
  position: activeIndex + '',
13220
13250
  contentFormat: 'image',
13221
- traceInfo: item.video.traceInfo
13251
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13222
13252
  }
13223
13253
  });
13224
13254
  }
@@ -13234,8 +13264,8 @@ Made in Italy` })));
13234
13264
  eventInfo: {
13235
13265
  eventSubject: 'scrollDown',
13236
13266
  eventDescription: 'User scroll down',
13237
- contentId: (_b = (_a = item.video) === null || _a === void 0 ? void 0 : _a.itemId) !== null && _b !== void 0 ? _b : '',
13238
- productId: (_d = (_c = item.product) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13267
+ contentId: (_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.itemId) !== null && _b !== void 0 ? _b : '',
13268
+ productId: (_d = (_c = item === null || item === void 0 ? void 0 : item.product) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13239
13269
  requestId: null
13240
13270
  }
13241
13271
  });
@@ -13247,7 +13277,7 @@ Made in Italy` })));
13247
13277
  eventInfo: {
13248
13278
  eventSubject: 'scrollUp',
13249
13279
  eventDescription: 'User scroll up',
13250
- contentId: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
13280
+ contentId: (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
13251
13281
  productId: (_h = (_g = item.product) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13252
13282
  requestId: null
13253
13283
  }
@@ -13286,13 +13316,13 @@ Made in Italy` })));
13286
13316
  eventInfo: {
13287
13317
  eventSubject: 'viewImageCarouselStart',
13288
13318
  eventDescription: 'User start view the image carousel',
13289
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13290
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13319
+ 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 : '',
13320
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13291
13321
  imageStartTime: `${startTime}`,
13292
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13322
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13293
13323
  position: activeIndex + '',
13294
13324
  contentFormat: 'image',
13295
- traceInfo: item.video.traceInfo
13325
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13296
13326
  }
13297
13327
  });
13298
13328
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
@@ -13438,15 +13468,15 @@ Made in Italy` })));
13438
13468
  eventInfo: {
13439
13469
  eventSubject: 'playVideo',
13440
13470
  eventDescription: 'User played the video',
13441
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13442
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13471
+ 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 : '',
13472
+ 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 : '',
13443
13473
  playType,
13444
13474
  startTime: videoCurrentTime,
13445
13475
  videoDuration,
13446
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13476
+ 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 : []),
13447
13477
  position: index + '',
13448
13478
  contentFormat: 'video',
13449
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13479
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13450
13480
  }
13451
13481
  });
13452
13482
  setIsFirstPlay(false);
@@ -13495,15 +13525,15 @@ Made in Italy` })));
13495
13525
  eventInfo: {
13496
13526
  eventSubject: 'playOverVideo',
13497
13527
  eventDescription: 'User finished playing the video',
13498
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13499
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13528
+ 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 : '',
13529
+ 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 : '',
13500
13530
  endTime: videoCurrentTime,
13501
13531
  videoDuration,
13502
13532
  playDuration,
13503
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13533
+ 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 : []),
13504
13534
  position: index + '',
13505
13535
  contentFormat: 'video',
13506
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13536
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13507
13537
  }
13508
13538
  });
13509
13539
  }
@@ -13540,10 +13570,10 @@ Made in Italy` })));
13540
13570
  return;
13541
13571
  setIsPauseVideo(false);
13542
13572
  if (!videoRef.current.src) {
13543
- const videoSrc = rec.video.url;
13573
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
13544
13574
  if (videoSrc.includes('.m3u8')) {
13545
- if (Hls.isSupported()) {
13546
- const hls = new Hls();
13575
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.Hls.isSupported())) {
13576
+ const hls = new window.Hls();
13547
13577
  hls.loadSource(videoSrc);
13548
13578
  hls.attachMedia(videoRef.current);
13549
13579
  }
@@ -13571,7 +13601,7 @@ Made in Italy` })));
13571
13601
  (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('playing', handlePlaying);
13572
13602
  (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('loadeddata', handLoadeddata);
13573
13603
  };
13574
- }, [handleLoadedMetadata, handlePlaying, rec.video, handLoadeddata]);
13604
+ }, [handleLoadedMetadata, handlePlaying, rec === null || rec === void 0 ? void 0 : rec.video, handLoadeddata]);
13575
13605
  const renderPoster = React.useMemo(() => {
13576
13606
  if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
13577
13607
  return null;
@@ -13598,10 +13628,10 @@ Made in Italy` })));
13598
13628
  }
13599
13629
  : {};
13600
13630
  }, [blur]);
13601
- if (!rec.video) {
13631
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
13602
13632
  return null;
13603
13633
  }
13604
- return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13634
+ return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: {
13605
13635
  position: 'relative',
13606
13636
  width,
13607
13637
  height,
@@ -13626,7 +13656,7 @@ Made in Italy` })));
13626
13656
  objectFit: 'contain'
13627
13657
  } }),
13628
13658
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
13629
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13659
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: {
13630
13660
  position: 'relative',
13631
13661
  width,
13632
13662
  height,
@@ -13657,11 +13687,11 @@ Made in Italy` })));
13657
13687
  }, [globalConfig, containerHeight, tagList]);
13658
13688
  const renderContent = (rec, index) => {
13659
13689
  var _a, _b, _c, _d;
13660
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13690
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13661
13691
  return (React.createElement(VideoWidget$1, { rec: rec, index: index, muted: true, width: containerWidth, data: data !== null && data !== void 0 ? data : [], height: height, activeIndex: index, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost }));
13662
13692
  }
13663
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13664
- return (React.createElement(PictureGroup$1, { key: rec.video.itemId, imgUrls: rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
13693
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13694
+ return (React.createElement(PictureGroup$1, { 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, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
13665
13695
  }
13666
13696
  if (rec.product) {
13667
13697
  if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
@@ -13695,15 +13725,15 @@ Made in Italy` })));
13695
13725
  };
13696
13726
  const renderBottom = (rec, index) => {
13697
13727
  var _a, _b, _c, _d, _e, _f, _g;
13698
- if (rec.video) {
13728
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13699
13729
  return (React.createElement(React.Fragment, null,
13700
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13730
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13701
13731
  React.createElement("div", { className: 'clc-sxp-bottom' },
13702
13732
  React.createElement(Nudge, { nudge: nudge }),
13703
13733
  CTA(rec, index),
13704
13734
  React.createElement("div", null,
13705
- 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.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' }) })),
13706
- 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.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))));
13735
+ 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' }) })),
13736
+ 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 }))));
13707
13737
  }
13708
13738
  return null;
13709
13739
  };
@@ -13717,7 +13747,7 @@ Made in Italy` })));
13717
13747
  if (top < 40) {
13718
13748
  top += 40;
13719
13749
  }
13720
- if (rec.video) {
13750
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13721
13751
  return (React.createElement(LikeButton$1, { key: rec.position, activeIcon: (_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIcon) !== null && _b !== void 0 ? _b : likeIcon, unActicveIcon: (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unlikeIcon) !== null && _c !== void 0 ? _c : unlikeIcon, position: index, active: rec.isCollected, recData: rec, className: 'clc-sxp-like-button', style: {
13722
13752
  top,
13723
13753
  right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
@@ -13829,7 +13859,7 @@ Made in Italy` })));
13829
13859
  * @Author: binruan@chatlabs.com
13830
13860
  * @Date: 2024-01-15 19:03:09
13831
13861
  * @LastEditors: binruan@chatlabs.com
13832
- * @LastEditTime: 2024-05-06 17:26:37
13862
+ * @LastEditTime: 2024-05-17 18:41:05
13833
13863
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
13834
13864
  *
13835
13865
  */
@@ -13846,14 +13876,14 @@ Made in Italy` })));
13846
13876
  RESOLVER[v.extend.type] = v;
13847
13877
  });
13848
13878
  const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl, enabledMetaConversionApi }) => {
13849
- var _a, _b, _c, _d, _e, _f;
13879
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13850
13880
  const utmVal = React.useMemo(() => {
13851
13881
  var _a;
13852
13882
  const searchParams = (location === null || location === void 0 ? void 0 : location.search) ? (_a = location === null || location === void 0 ? void 0 : location.search) === null || _a === void 0 ? void 0 : _a.replace('?', '') : '';
13853
13883
  return searchParams;
13854
13884
  }, []);
13855
13885
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
13856
- React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, render: ({ rtcList, tagList }) => {
13886
+ React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, isShowTag: (_j = (_h = (_g = data === null || data === void 0 ? void 0 : data.data) === null || _g === void 0 ? void 0 : _g.sxpPageConf) === null || _h === void 0 ? void 0 : _h.globalConfig) === null || _j === void 0 ? void 0 : _j.isShowTag, render: ({ rtcList, tagList }) => {
13857
13887
  var _a;
13858
13888
  return (React.createElement(React.Fragment, null,
13859
13889
  React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),