pb-sxp-ui 1.0.71 → 1.0.73

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 (61) hide show
  1. package/dist/index.cjs +138 -107
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +138 -107
  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 +141 -110
  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 +9 -3
  17. package/es/core/components/SxpPageRender/LikeButton/index.js +11 -11
  18. package/es/core/components/SxpPageRender/Popup/index.js +2 -2
  19. package/es/core/components/SxpPageRender/VideoWidget/index.js +13 -13
  20. package/es/core/components/SxpPageRender/index.js +32 -26
  21. package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
  22. package/es/core/context/SxpDataSourceProvider.js +3 -3
  23. package/es/materials/sxp/popup/AppointForm/index.js +3 -1
  24. package/es/materials/sxp/popup/AppointForm/settingRender.js +0 -5
  25. package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
  26. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
  27. package/es/materials/sxp/popup/CommodityDetailDiro/index.js +2 -3
  28. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  29. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +1 -1
  30. package/es/materials/sxp/template/Commodity/index.js +1 -1
  31. package/es/materials/sxp/template/CommodityDiro/index.js +1 -1
  32. package/es/materials/sxp/template/CommodityDiroNew/index.js +1 -1
  33. package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
  34. package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
  35. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
  36. package/es/materials/sxp/template/components/settingRender.js +1 -1
  37. package/lib/core/components/DiyPortalPreview/VideoWidget.js +15 -16
  38. package/lib/core/components/DiyPortalPreview/index.js +8 -8
  39. package/lib/core/components/SxpPageCore/index.js +2 -2
  40. package/lib/core/components/SxpPageRender/FormatImage.js +8 -2
  41. package/lib/core/components/SxpPageRender/LikeButton/index.js +11 -11
  42. package/lib/core/components/SxpPageRender/Popup/index.js +2 -2
  43. package/lib/core/components/SxpPageRender/VideoWidget/index.js +13 -13
  44. package/lib/core/components/SxpPageRender/index.js +32 -26
  45. package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
  46. package/lib/core/context/SxpDataSourceProvider.js +3 -3
  47. package/lib/materials/sxp/popup/AppointForm/index.js +3 -1
  48. package/lib/materials/sxp/popup/AppointForm/settingRender.js +0 -5
  49. package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
  50. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +1 -1
  51. package/lib/materials/sxp/popup/CommodityDetailDiro/index.js +2 -3
  52. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  53. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +1 -1
  54. package/lib/materials/sxp/template/Commodity/index.js +1 -1
  55. package/lib/materials/sxp/template/CommodityDiro/index.js +1 -1
  56. package/lib/materials/sxp/template/CommodityDiroNew/index.js +1 -1
  57. package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
  58. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
  59. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
  60. package/lib/materials/sxp/template/components/settingRender.js +1 -1
  61. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import React, { useContext, useMemo, createContext, memo, useState, useRef, useE
5
5
  import qs from 'qs';
6
6
  import EventEmitter from 'eventemitter3';
7
7
  import { css } from '@emotion/css';
8
+ import { BetaSchemaForm } from '@ant-design/pro-components';
8
9
  import * as ReactDOM from 'react-dom';
9
- import Hls from 'hls.js';
10
10
 
11
11
  /******************************************************************************
12
12
  Copyright (c) Microsoft Corporation.
@@ -423,7 +423,7 @@ var DataSourceType;
423
423
  DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
424
424
  })(DataSourceType || (DataSourceType = {}));
425
425
  const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_id', 'utm_content', 'cl_source'];
426
- const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false }) => {
426
+ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, isShowTag = true }) => {
427
427
  const [rtcList, setRtcList] = useState([]);
428
428
  const [tagList, setTagList] = useState([]);
429
429
  const [loading, setLoading] = useState(false);
@@ -585,7 +585,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
585
585
  // 获取 Tag
586
586
  const bffGetTagList = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
587
587
  var _h, _j, _k, _l, _m;
588
- if (!utmVal)
588
+ if (!utmVal || !isShowTag)
589
589
  return;
590
590
  try {
591
591
  const val = (_k = (_j = (_h = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _h === void 0 ? void 0 : _h.filter((val) => {
@@ -598,7 +598,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
598
598
  catch (e) {
599
599
  console.log('e', e);
600
600
  }
601
- }), [bffFetch, utmVal]);
601
+ }), [bffFetch, utmVal, isShowTag]);
602
602
  const ctaEvent = useCallback((eventInfo, rec, product, position) => {
603
603
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
604
604
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
@@ -950,7 +950,7 @@ var defaultSetting = {
950
950
  * @Author: binruan@chatlabs.com
951
951
  * @Date: 2023-07-28 18:29:57
952
952
  * @LastEditors: binruan@chatlabs.com
953
- * @LastEditTime: 2024-05-17 10:11:41
953
+ * @LastEditTime: 2024-05-27 11:48:04
954
954
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\AppointForm\settingRender.tsx
955
955
  *
956
956
  */
@@ -1055,11 +1055,6 @@ var settingRender$5 = [
1055
1055
  type: 'TextAlign',
1056
1056
  name: ['props', 'submitButtonStyle']
1057
1057
  },
1058
- {
1059
- label: '提交文本颜色',
1060
- type: 'Color',
1061
- name: ['props', 'submitColor']
1062
- },
1063
1058
  {
1064
1059
  label: '提交按钮颜色',
1065
1060
  type: 'Color',
@@ -1206,7 +1201,7 @@ const AppointForm$1 = (_a) => {
1206
1201
  key: '4'
1207
1202
  }
1208
1203
  ], []);
1209
- useMemo(() => {
1204
+ const columnsData = useMemo(() => {
1210
1205
  if (layoutType === undefined) {
1211
1206
  const list = cloneDeep(columns) || defaultColumns;
1212
1207
  return list === null || list === void 0 ? void 0 : list.map((obj) => (Object.assign(Object.assign({}, obj), { title: undefined, fieldProps: { placeholder: obj === null || obj === void 0 ? void 0 : obj.title } })));
@@ -1249,7 +1244,8 @@ const AppointForm$1 = (_a) => {
1249
1244
  return (React.createElement("div", { className: 'pb-appoint-form' },
1250
1245
  React.createElement("div", { className: `pb-appoint-form-title ${css(Object.assign({}, textStyle))}` }, title),
1251
1246
  React.createElement("div", Object.assign({ className: css(Object.assign({}, style)) }, props),
1252
- React.createElement("div", { className: 'pb-appoint-form-container' })),
1247
+ React.createElement("div", { className: 'pb-appoint-form-container' },
1248
+ React.createElement(BetaSchemaForm, { columns: columnsData, submitter: false, layout: layoutType, autoFocusFirstInput: false, size: 'large', formRef: formRef, className: 'panel-reset' }))),
1253
1249
  React.createElement("div", { className: 'pb-appoint-form-btn-wrapper' },
1254
1250
  React.createElement("button", { onClick: handleSubmit, className: 'pb-appoint-form-btn', style: Object.assign({ color: submitColor, background: submitBgColor }, submitButtonStyle) }, loading ? React.createElement(React.Fragment, null, "loading...") : submitText))));
1255
1251
  };
@@ -1331,7 +1327,7 @@ var settingRender$4 = [
1331
1327
  label: '居中垂直偏移',
1332
1328
  type: 'Number',
1333
1329
  name: ['props', 'swiper', 'translateY'],
1334
- min: -100,
1330
+ min: -1000,
1335
1331
  addonAfter: '%',
1336
1332
  initialValue: 0
1337
1333
  }
@@ -8424,21 +8420,50 @@ var ExpandableText$1 = memo(ExpandableText);
8424
8420
  * @Author: binruan@chatlabs.com
8425
8421
  * @Date: 2024-03-20 10:27:31
8426
8422
  * @LastEditors: binruan@chatlabs.com
8427
- * @LastEditTime: 2024-04-19 14:12:55
8423
+ * @LastEditTime: 2024-05-27 09:47:19
8428
8424
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FormatImage.tsx
8429
8425
  *
8430
8426
  */
8431
8427
  const FormatImage = forwardRef((props, ref) => {
8432
8428
  const { src, onLoad, style, className, loading } = props;
8433
8429
  const [imgSrc, setImgSrc] = useState();
8430
+ const { swiperRef } = useSxpDataSource();
8434
8431
  useImperativeHandle(ref, () => ({
8435
8432
  setSrc: (v) => {
8436
8433
  setImgSrc(v);
8437
8434
  }
8438
8435
  }));
8439
8436
  useEffect(() => {
8440
- setImgSrc(src);
8441
- }, [src]);
8437
+ var _a, _b;
8438
+ // 首屏不加载第二屏之后的图片
8439
+ const index = (_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;
8440
+ if (index === 0 || index > 0)
8441
+ setImgSrc(src);
8442
+ }, [src, swiperRef]);
8443
+ useRef(null);
8444
+ // useEffect(() => {
8445
+ // let observer: any = null;
8446
+ // const { current } = imgRef;
8447
+ // if (current) {
8448
+ // observer = new IntersectionObserver(
8449
+ // (entries) => {
8450
+ // entries.forEach((entry) => {
8451
+ // if (entry.isIntersecting) {
8452
+ // setImgSrc(src);
8453
+ // observer.unobserve(current);
8454
+ // }
8455
+ // });
8456
+ // },
8457
+ // { threshold: 0.1 } // 触发阈值,可根据需要调整
8458
+ // );
8459
+ // observer.observe(current);
8460
+ // }
8461
+ // return () => {
8462
+ // if (observer && current) {
8463
+ // observer.unobserve(current);
8464
+ // }
8465
+ // };
8466
+ // }, [src]);
8442
8467
  return (React.createElement(React.Fragment, null, (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
8443
8468
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
8444
8469
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -8540,7 +8565,7 @@ const CommodityDetail$1 = (_a) => {
8540
8565
  width: '100%',
8541
8566
  objectFit: 'cover',
8542
8567
  display: 'block',
8543
- transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
8568
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8544
8569
  }, src: src }))));
8545
8570
  }))),
8546
8571
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -8794,7 +8819,7 @@ var _a$2, _b$2;
8794
8819
  * @Author: binruan@chatlabs.com
8795
8820
  * @Date: 2024-03-26 16:50:25
8796
8821
  * @LastEditors: binruan@chatlabs.com
8797
- * @LastEditTime: 2024-04-12 17:37:19
8822
+ * @LastEditTime: 2024-05-27 17:31:27
8798
8823
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
8799
8824
  *
8800
8825
  */
@@ -8829,7 +8854,7 @@ var settingRender$2 = [
8829
8854
  label: '居中垂直偏移',
8830
8855
  type: 'Number',
8831
8856
  name: ['props', 'swiper', 'translateY'],
8832
- min: -100,
8857
+ min: -1000,
8833
8858
  addonAfter: '%',
8834
8859
  initialValue: 0
8835
8860
  }
@@ -9070,7 +9095,7 @@ Made in Italy` })));
9070
9095
  width: '100%',
9071
9096
  objectFit: 'cover',
9072
9097
  display: 'block',
9073
- transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
9098
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9074
9099
  }, src: src }))));
9075
9100
  }))),
9076
9101
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -9278,7 +9303,7 @@ var settingRender$1 = [
9278
9303
  label: '居中垂直偏移',
9279
9304
  type: 'Number',
9280
9305
  name: ['props', 'translateY'],
9281
- min: -100,
9306
+ min: -1000,
9282
9307
  addonAfter: '%',
9283
9308
  initialValue: 0
9284
9309
  }
@@ -9497,7 +9522,7 @@ const Commodity$1 = (_a) => {
9497
9522
  objectFit: 'cover',
9498
9523
  height: '100%',
9499
9524
  display: 'block',
9500
- transform: `translateY(${translateY}%)`
9525
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9501
9526
  }), src: src })),
9502
9527
  React.createElement("div", { className: css({
9503
9528
  color: '#fff',
@@ -9746,7 +9771,7 @@ const CommodityDiro$1 = (_a) => {
9746
9771
  objectFit: 'cover',
9747
9772
  height: '100%',
9748
9773
  display: 'block',
9749
- transform: `translateY(${translateY}%)`
9774
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9750
9775
  }), src: src })),
9751
9776
  React.createElement("div", { className: css({
9752
9777
  color: '#fff',
@@ -9844,7 +9869,7 @@ const CommodityDiroNew$1 = (_a) => {
9844
9869
  objectFit: 'cover',
9845
9870
  height: '100%',
9846
9871
  display: 'block',
9847
- transform: `translateY(${translateY}%)`
9872
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9848
9873
  }), src: src })),
9849
9874
  React.createElement("div", { className: css({
9850
9875
  color: '#fff',
@@ -9988,7 +10013,7 @@ const MultiCommodityDiro$1 = (_a) => {
9988
10013
  return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9989
10014
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9990
10015
  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, style: {
9991
- transform: `translateY(${translateY}%)`
10016
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9992
10017
  } })),
9993
10018
  React.createElement("div", { className: css({
9994
10019
  color: '#000',
@@ -10103,7 +10128,7 @@ const MultiCommodity$1 = (_a) => {
10103
10128
  return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
10104
10129
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10105
10130
  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, style: {
10106
- transform: `translateY(${translateY}%)`
10131
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
10107
10132
  } })),
10108
10133
  React.createElement("div", { className: css({
10109
10134
  color: '#fff',
@@ -10217,7 +10242,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
10217
10242
  return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
10218
10243
  React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10219
10244
  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, style: {
10220
- transform: `translateY(${translateY}%)`
10245
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
10221
10246
  } })),
10222
10247
  React.createElement("div", { className: css({
10223
10248
  color: '#fff',
@@ -12219,17 +12244,17 @@ const LikeButton = (_a) => {
12219
12244
  if (state) {
12220
12245
  // 先设置状态
12221
12246
  setState(false);
12222
- 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;
12247
+ 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;
12223
12248
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
12224
12249
  eventInfo: {
12225
12250
  eventSubject: 'favoriteContentCanceled',
12226
12251
  eventDescription: 'This content was unfavorite by the user',
12227
- contentId: (_f = (_e = recData.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
12228
- contentName: (_h = (_g = recData.video) === null || _g === void 0 ? void 0 : _g.title) !== null && _h !== void 0 ? _h : '',
12229
- contentTags: JSON.stringify((_k = (_j = recData.video) === null || _j === void 0 ? void 0 : _j.tags) !== null && _k !== void 0 ? _k : []),
12252
+ 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 : '',
12253
+ 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 : '',
12254
+ 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 : []),
12230
12255
  position: position + '',
12231
- contentFormat: ((_l = recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12232
- traceInfo: (_m = recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12256
+ contentFormat: ((_l = recData === null || recData === void 0 ? void 0 : recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12257
+ traceInfo: (_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12233
12258
  }
12234
12259
  });
12235
12260
  // 如果接口调用失败,则回滚状态
@@ -12244,12 +12269,12 @@ const LikeButton = (_a) => {
12244
12269
  eventInfo: {
12245
12270
  eventSubject: 'favoriteContent',
12246
12271
  eventDescription: 'This content was favorite by the user',
12247
- contentId: (_q = (_p = recData.video) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : '',
12248
- contentName: (_s = (_r = recData.video) === null || _r === void 0 ? void 0 : _r.title) !== null && _s !== void 0 ? _s : '',
12249
- contentTags: JSON.stringify((_u = (_t = recData.video) === null || _t === void 0 ? void 0 : _t.tags) !== null && _u !== void 0 ? _u : []),
12272
+ 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 : '',
12273
+ 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 : '',
12274
+ 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 : []),
12250
12275
  position: position + '',
12251
- contentFormat: ((_v = recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12252
- traceInfo: (_w = recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12276
+ contentFormat: ((_v = recData === null || recData === void 0 ? void 0 : recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12277
+ traceInfo: (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12253
12278
  }
12254
12279
  });
12255
12280
  if (!result) {
@@ -12327,15 +12352,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12327
12352
  eventInfo: {
12328
12353
  eventSubject: 'playVideo',
12329
12354
  eventDescription: 'User played the video',
12330
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12331
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12355
+ 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 : '',
12356
+ 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 : '',
12332
12357
  playType,
12333
12358
  startTime: videoCurrentTime,
12334
12359
  videoDuration,
12335
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12360
+ 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 : []),
12336
12361
  position: index + '',
12337
12362
  contentFormat: 'video',
12338
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12363
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12339
12364
  }
12340
12365
  });
12341
12366
  setIsFirstPlay(false);
@@ -12425,15 +12450,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12425
12450
  eventInfo: {
12426
12451
  eventSubject: 'playOverVideo',
12427
12452
  eventDescription: 'User finished playing the video',
12428
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12429
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12453
+ 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 : '',
12454
+ 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 : '',
12430
12455
  endTime: videoCurrentTime,
12431
12456
  videoDuration,
12432
12457
  playDuration,
12433
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12458
+ 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 : []),
12434
12459
  position: index + '',
12435
12460
  contentFormat: 'video',
12436
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12461
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12437
12462
  }
12438
12463
  });
12439
12464
  }
@@ -12441,9 +12466,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12441
12466
  useEffect(() => {
12442
12467
  if (!isActive || !videoRef)
12443
12468
  return;
12444
- const videoSrc = rec.video.url;
12469
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
12445
12470
  if (!videoSrc)
12446
12471
  return;
12472
+ videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12447
12473
  setIsPauseVideo(false);
12448
12474
  const videoPlayerWrapperNode = document.querySelector(`#${videoId}`);
12449
12475
  const dom = document.querySelector('#player-container-id');
@@ -12451,7 +12477,6 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12451
12477
  if (!dom && !dom2)
12452
12478
  return;
12453
12479
  videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
12454
- videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12455
12480
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
12456
12481
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
12457
12482
  // videoRef?.on('canplay', handleCanplay);
@@ -12532,10 +12557,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12532
12557
  window.removeEventListener('beforeunload', handleBeforeUnload);
12533
12558
  };
12534
12559
  }, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
12535
- if (!rec.video) {
12560
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
12536
12561
  return null;
12537
12562
  }
12538
- 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) },
12563
+ 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) },
12539
12564
  !isBgColor && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
12540
12565
  React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
12541
12566
  React.createElement("div", { style: {
@@ -12550,7 +12575,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12550
12575
  React.createElement("div", { style: { position: 'relative', width: '100%', height: '100%' } },
12551
12576
  React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
12552
12577
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
12553
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, style: {
12578
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, style: {
12554
12579
  position: 'relative',
12555
12580
  width: '100%',
12556
12581
  height,
@@ -12907,7 +12932,7 @@ var Tagbar$1 = memo(Tagbar);
12907
12932
  * @Author: binruan@chatlabs.com
12908
12933
  * @Date: 2024-01-15 19:03:09
12909
12934
  * @LastEditors: binruan@chatlabs.com
12910
- * @LastEditTime: 2024-05-23 10:41:27
12935
+ * @LastEditTime: 2024-05-24 16:32:06
12911
12936
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12912
12937
  *
12913
12938
  */
@@ -12967,23 +12992,29 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12967
12992
  };
12968
12993
  const firstRef = useRef();
12969
12994
  useEffect(() => {
12970
- if (!firstRef.current && !videoRef) {
12995
+ var _a, _b, _c;
12996
+ if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
12971
12997
  firstRef.current = true;
12972
12998
  const player = TCPlayer('player-container-id', {
12973
12999
  licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12974
13000
  controls: false,
12975
- autoplay: false,
12976
13001
  loop: false,
13002
+ autoplay: true,
12977
13003
  muted: true,
12978
13004
  preload: 'auto',
12979
13005
  posterImage: false,
12980
- bigPlayButton: true
13006
+ bigPlayButton: true,
13007
+ sources: [
13008
+ {
13009
+ 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 : ''
13010
+ }
13011
+ ]
12981
13012
  });
12982
13013
  player === null || player === void 0 ? void 0 : player.ready(() => {
12983
13014
  setVideoRef(player);
12984
13015
  });
12985
13016
  }
12986
- }, [videoRef, licenseUrl]);
13017
+ }, [videoRef, licenseUrl, data]);
12987
13018
  useEffect(() => {
12988
13019
  if (!isInit)
12989
13020
  handleH5EnterLink();
@@ -13038,7 +13069,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13038
13069
  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))) {
13039
13070
  fromKName = 'pdpPage';
13040
13071
  }
13041
- 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') {
13072
+ 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') {
13042
13073
  fromKName = 'formPage';
13043
13074
  }
13044
13075
  else if (isFromHashtag) {
@@ -13063,7 +13094,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13063
13094
  position: activeIndex + '',
13064
13095
  fromKName,
13065
13096
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
13066
- 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 : ''
13097
+ 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 : ''
13067
13098
  }
13068
13099
  });
13069
13100
  }
@@ -13101,11 +13132,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13101
13132
  }, [globalConfig]);
13102
13133
  const renderContent = useCallback((rec, index) => {
13103
13134
  var _a, _b, _c, _d;
13104
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13135
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13105
13136
  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 }));
13106
13137
  }
13107
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13108
- 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 }));
13138
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13139
+ 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 }));
13109
13140
  }
13110
13141
  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) {
13111
13142
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, idx) => {
@@ -13146,16 +13177,16 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13146
13177
  }, [isShowMore]);
13147
13178
  const renderBottom = useCallback((rec, index) => {
13148
13179
  var _a, _b, _c, _d, _e, _f, _g;
13149
- if (rec.video) {
13180
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13150
13181
  return (React.createElement(React.Fragment, null,
13151
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13182
+ ((_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' }),
13152
13183
  React.createElement("div", { className: 'clc-sxp-bottom' },
13153
13184
  React.createElement(Nudge, { nudge: nudge }),
13154
13185
  (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' },
13155
13186
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
13156
13187
  React.createElement("div", null,
13157
- 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 }),
13158
- 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 })))));
13188
+ 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 }),
13189
+ 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 })))));
13159
13190
  }
13160
13191
  return null;
13161
13192
  }, [
@@ -13179,7 +13210,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13179
13210
  if (waterFallData && top < 40) {
13180
13211
  top += 40;
13181
13212
  }
13182
- if (rec.video) {
13213
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13183
13214
  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: {
13184
13215
  [(_b = globalConfig.likeIconXPosit) !== null && _b !== void 0 ? _b : 'right']: (_c = globalConfig.likeIconX) !== null && _c !== void 0 ? _c : 0,
13185
13216
  [(_d = globalConfig.likeIconYPosit) !== null && _d !== void 0 ? _d : 'bottom']: top
@@ -13189,21 +13220,21 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13189
13220
  }, [globalConfig, waterFallData]);
13190
13221
  const handleReportViewImageEnd = (item) => {
13191
13222
  var _a, _b, _c, _d, _e, _f;
13192
- if (!((_a = item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
13223
+ 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)) {
13193
13224
  const endTime = Date.now();
13194
13225
  const duration = (endTime - viewImageStartTime.current) / 1000;
13195
13226
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
13196
13227
  eventInfo: {
13197
13228
  eventSubject: 'viewImageCarouselEnd',
13198
13229
  eventDescription: 'User end view the image carousel',
13199
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13200
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13230
+ 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 : '',
13231
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13201
13232
  imageEndTime: `${endTime}`,
13202
13233
  playDuration: `${duration}`,
13203
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13234
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13204
13235
  position: activeIndex + '',
13205
13236
  contentFormat: 'image',
13206
- traceInfo: item.video.traceInfo
13237
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13207
13238
  }
13208
13239
  });
13209
13240
  }
@@ -13219,8 +13250,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13219
13250
  eventInfo: {
13220
13251
  eventSubject: 'scrollDown',
13221
13252
  eventDescription: 'User scroll down',
13222
- contentId: (_b = (_a = item.video) === null || _a === void 0 ? void 0 : _a.itemId) !== null && _b !== void 0 ? _b : '',
13223
- productId: (_d = (_c = item.product) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13253
+ 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 : '',
13254
+ 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 : '',
13224
13255
  requestId: null
13225
13256
  }
13226
13257
  });
@@ -13232,7 +13263,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13232
13263
  eventInfo: {
13233
13264
  eventSubject: 'scrollUp',
13234
13265
  eventDescription: 'User scroll up',
13235
- contentId: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
13266
+ 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 : '',
13236
13267
  productId: (_h = (_g = item.product) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13237
13268
  requestId: null
13238
13269
  }
@@ -13271,13 +13302,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13271
13302
  eventInfo: {
13272
13303
  eventSubject: 'viewImageCarouselStart',
13273
13304
  eventDescription: 'User start view the image carousel',
13274
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13275
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13305
+ 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 : '',
13306
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13276
13307
  imageStartTime: `${startTime}`,
13277
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13308
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13278
13309
  position: activeIndex + '',
13279
13310
  contentFormat: 'image',
13280
- traceInfo: item.video.traceInfo
13311
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13281
13312
  }
13282
13313
  });
13283
13314
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
@@ -13423,15 +13454,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13423
13454
  eventInfo: {
13424
13455
  eventSubject: 'playVideo',
13425
13456
  eventDescription: 'User played the video',
13426
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13427
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13457
+ 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 : '',
13458
+ 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 : '',
13428
13459
  playType,
13429
13460
  startTime: videoCurrentTime,
13430
13461
  videoDuration,
13431
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13462
+ 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 : []),
13432
13463
  position: index + '',
13433
13464
  contentFormat: 'video',
13434
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13465
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13435
13466
  }
13436
13467
  });
13437
13468
  setIsFirstPlay(false);
@@ -13480,15 +13511,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13480
13511
  eventInfo: {
13481
13512
  eventSubject: 'playOverVideo',
13482
13513
  eventDescription: 'User finished playing the video',
13483
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13484
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13514
+ 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 : '',
13515
+ 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 : '',
13485
13516
  endTime: videoCurrentTime,
13486
13517
  videoDuration,
13487
13518
  playDuration,
13488
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13519
+ 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 : []),
13489
13520
  position: index + '',
13490
13521
  contentFormat: 'video',
13491
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13522
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13492
13523
  }
13493
13524
  });
13494
13525
  }
@@ -13525,10 +13556,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13525
13556
  return;
13526
13557
  setIsPauseVideo(false);
13527
13558
  if (!videoRef.current.src) {
13528
- const videoSrc = rec.video.url;
13559
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
13529
13560
  if (videoSrc.includes('.m3u8')) {
13530
- if (Hls.isSupported()) {
13531
- const hls = new Hls();
13561
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.Hls.isSupported())) {
13562
+ const hls = new window.Hls();
13532
13563
  hls.loadSource(videoSrc);
13533
13564
  hls.attachMedia(videoRef.current);
13534
13565
  }
@@ -13556,7 +13587,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13556
13587
  (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('playing', handlePlaying);
13557
13588
  (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('loadeddata', handLoadeddata);
13558
13589
  };
13559
- }, [handleLoadedMetadata, handlePlaying, rec.video, handLoadeddata]);
13590
+ }, [handleLoadedMetadata, handlePlaying, rec === null || rec === void 0 ? void 0 : rec.video, handLoadeddata]);
13560
13591
  const renderPoster = useMemo(() => {
13561
13592
  if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
13562
13593
  return null;
@@ -13583,10 +13614,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13583
13614
  }
13584
13615
  : {};
13585
13616
  }, [blur]);
13586
- if (!rec.video) {
13617
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
13587
13618
  return null;
13588
13619
  }
13589
- return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13620
+ 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: {
13590
13621
  position: 'relative',
13591
13622
  width,
13592
13623
  height,
@@ -13611,7 +13642,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13611
13642
  objectFit: 'contain'
13612
13643
  } }),
13613
13644
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
13614
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13645
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: {
13615
13646
  position: 'relative',
13616
13647
  width,
13617
13648
  height,
@@ -13642,11 +13673,11 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13642
13673
  }, [globalConfig, containerHeight, tagList]);
13643
13674
  const renderContent = (rec, index) => {
13644
13675
  var _a, _b, _c, _d;
13645
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13676
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13646
13677
  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 }));
13647
13678
  }
13648
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13649
- 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 }));
13679
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13680
+ 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 }));
13650
13681
  }
13651
13682
  if (rec.product) {
13652
13683
  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) {
@@ -13680,15 +13711,15 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13680
13711
  };
13681
13712
  const renderBottom = (rec, index) => {
13682
13713
  var _a, _b, _c, _d, _e, _f, _g;
13683
- if (rec.video) {
13714
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13684
13715
  return (React.createElement(React.Fragment, null,
13685
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13716
+ ((_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' }),
13686
13717
  React.createElement("div", { className: 'clc-sxp-bottom' },
13687
13718
  React.createElement(Nudge, { nudge: nudge }),
13688
13719
  CTA(rec, index),
13689
13720
  React.createElement("div", null,
13690
- 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' }) })),
13691
- 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 }))));
13721
+ 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' }) })),
13722
+ 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 }))));
13692
13723
  }
13693
13724
  return null;
13694
13725
  };
@@ -13702,7 +13733,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13702
13733
  if (top < 40) {
13703
13734
  top += 40;
13704
13735
  }
13705
- if (rec.video) {
13736
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13706
13737
  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: {
13707
13738
  top,
13708
13739
  right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
@@ -13747,7 +13778,7 @@ var index$1 = memo(DiyPortalPreview);
13747
13778
  * @Author: binruan@chatlabs.com
13748
13779
  * @Date: 2023-10-31 10:56:01
13749
13780
  * @LastEditors: binruan@chatlabs.com
13750
- * @LastEditTime: 2024-05-14 10:12:52
13781
+ * @LastEditTime: 2024-05-27 18:19:31
13751
13782
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
13752
13783
  *
13753
13784
  */
@@ -13793,14 +13824,14 @@ const Popup = () => {
13793
13824
  const renderPopupDetail = useMemo(() => {
13794
13825
  var _a, _b, _c;
13795
13826
  return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
13796
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
13827
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
13797
13828
  if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
13798
13829
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
13799
13830
  const Component = withBindDataSource(t);
13800
13831
  const isExternalLink = ((_d = (_c = (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.event) === null || _c === void 0 ? void 0 : _c.onClick) === null || _d === void 0 ? void 0 : _d.linkType) === 'externalLink';
13801
13832
  const isPopup = ((_g = (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.event) === null || _f === void 0 ? void 0 : _f.onClick) === null || _g === void 0 ? void 0 : _g.linkType) === 'popup';
13802
13833
  const defaulSetting = (_h = t === null || t === void 0 ? void 0 : t.extend) === null || _h === void 0 ? void 0 : _h.defaulSetting;
13803
- return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_k = value === null || value === void 0 ? void 0 : value.item) === null || _k === void 0 ? void 0 : _k.textStyle), bindDatas: (_m = (_l = value === null || value === void 0 ? void 0 : value.item) === null || _l === void 0 ? void 0 : _l.bindDatas) !== null && _m !== void 0 ? _m : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_o = value === null || value === void 0 ? void 0 : value.item) === null || _o === void 0 ? void 0 : _o.props, { event: ((_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, isExternalLink: isExternalLink, isPopup: isPopup, onClose: handleClose })));
13834
+ return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.style), { width: (_k = window.innerWidth) !== null && _k !== void 0 ? _k : '100vw', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_l = value === null || value === void 0 ? void 0 : value.item) === null || _l === void 0 ? void 0 : _l.textStyle), bindDatas: (_o = (_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.bindDatas) !== null && _o !== void 0 ? _o : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.props, { event: ((_q = value === null || value === void 0 ? void 0 : value.item) === null || _q === void 0 ? void 0 : _q.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, isExternalLink: isExternalLink, isPopup: isPopup, onClose: handleClose })));
13804
13835
  }
13805
13836
  else {
13806
13837
  return React.createElement(React.Fragment, null);
@@ -13814,7 +13845,7 @@ const Popup = () => {
13814
13845
  * @Author: binruan@chatlabs.com
13815
13846
  * @Date: 2024-01-15 19:03:09
13816
13847
  * @LastEditors: binruan@chatlabs.com
13817
- * @LastEditTime: 2024-05-06 17:26:37
13848
+ * @LastEditTime: 2024-05-17 18:41:05
13818
13849
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
13819
13850
  *
13820
13851
  */
@@ -13831,14 +13862,14 @@ Object.values(_materials_).forEach((v) => {
13831
13862
  RESOLVER[v.extend.type] = v;
13832
13863
  });
13833
13864
  const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl, enabledMetaConversionApi }) => {
13834
- var _a, _b, _c, _d, _e, _f;
13865
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13835
13866
  const utmVal = useMemo(() => {
13836
13867
  var _a;
13837
13868
  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('?', '') : '';
13838
13869
  return searchParams;
13839
13870
  }, []);
13840
13871
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
13841
- 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 }) => {
13872
+ 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 }) => {
13842
13873
  var _a;
13843
13874
  return (React.createElement(React.Fragment, null,
13844
13875
  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 })),