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.cjs CHANGED
@@ -9,8 +9,8 @@ var React = require('react');
9
9
  var qs = require('qs');
10
10
  var EventEmitter = require('eventemitter3');
11
11
  var css = require('@emotion/css');
12
+ var proComponents = require('@ant-design/pro-components');
12
13
  var ReactDOM = require('react-dom');
13
- var Hls = require('hls.js');
14
14
 
15
15
  function _interopNamespaceDefault(e) {
16
16
  var n = Object.create(null);
@@ -446,7 +446,7 @@ var DataSourceType;
446
446
  DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
447
447
  })(DataSourceType || (DataSourceType = {}));
448
448
  const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_id', 'utm_content', 'cl_source'];
449
- const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false }) => {
449
+ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, isShowTag = true }) => {
450
450
  const [rtcList, setRtcList] = React.useState([]);
451
451
  const [tagList, setTagList] = React.useState([]);
452
452
  const [loading, setLoading] = React.useState(false);
@@ -608,7 +608,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
608
608
  // 获取 Tag
609
609
  const bffGetTagList = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
610
610
  var _h, _j, _k, _l, _m;
611
- if (!utmVal)
611
+ if (!utmVal || !isShowTag)
612
612
  return;
613
613
  try {
614
614
  const val = (_k = (_j = (_h = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _h === void 0 ? void 0 : _h.filter((val) => {
@@ -621,7 +621,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
621
621
  catch (e) {
622
622
  console.log('e', e);
623
623
  }
624
- }), [bffFetch, utmVal]);
624
+ }), [bffFetch, utmVal, isShowTag]);
625
625
  const ctaEvent = React.useCallback((eventInfo, rec, product, position) => {
626
626
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
627
627
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
@@ -973,7 +973,7 @@ var defaultSetting = {
973
973
  * @Author: binruan@chatlabs.com
974
974
  * @Date: 2023-07-28 18:29:57
975
975
  * @LastEditors: binruan@chatlabs.com
976
- * @LastEditTime: 2024-05-17 10:11:41
976
+ * @LastEditTime: 2024-05-27 11:48:04
977
977
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\AppointForm\settingRender.tsx
978
978
  *
979
979
  */
@@ -1078,11 +1078,6 @@ var settingRender$5 = [
1078
1078
  type: 'TextAlign',
1079
1079
  name: ['props', 'submitButtonStyle']
1080
1080
  },
1081
- {
1082
- label: '提交文本颜色',
1083
- type: 'Color',
1084
- name: ['props', 'submitColor']
1085
- },
1086
1081
  {
1087
1082
  label: '提交按钮颜色',
1088
1083
  type: 'Color',
@@ -1229,7 +1224,7 @@ const AppointForm$1 = (_a) => {
1229
1224
  key: '4'
1230
1225
  }
1231
1226
  ], []);
1232
- React.useMemo(() => {
1227
+ const columnsData = React.useMemo(() => {
1233
1228
  if (layoutType === undefined) {
1234
1229
  const list = lodash.cloneDeep(columns) || defaultColumns;
1235
1230
  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 } })));
@@ -1272,7 +1267,8 @@ const AppointForm$1 = (_a) => {
1272
1267
  return (React.createElement("div", { className: 'pb-appoint-form' },
1273
1268
  React.createElement("div", { className: `pb-appoint-form-title ${css.css(Object.assign({}, textStyle))}` }, title),
1274
1269
  React.createElement("div", Object.assign({ className: css.css(Object.assign({}, style)) }, props),
1275
- React.createElement("div", { className: 'pb-appoint-form-container' })),
1270
+ React.createElement("div", { className: 'pb-appoint-form-container' },
1271
+ React.createElement(proComponents.BetaSchemaForm, { columns: columnsData, submitter: false, layout: layoutType, autoFocusFirstInput: false, size: 'large', formRef: formRef, className: 'panel-reset' }))),
1276
1272
  React.createElement("div", { className: 'pb-appoint-form-btn-wrapper' },
1277
1273
  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))));
1278
1274
  };
@@ -1354,7 +1350,7 @@ var settingRender$4 = [
1354
1350
  label: '居中垂直偏移',
1355
1351
  type: 'Number',
1356
1352
  name: ['props', 'swiper', 'translateY'],
1357
- min: -100,
1353
+ min: -1000,
1358
1354
  addonAfter: '%',
1359
1355
  initialValue: 0
1360
1356
  }
@@ -8447,21 +8443,50 @@ var ExpandableText$1 = React.memo(ExpandableText);
8447
8443
  * @Author: binruan@chatlabs.com
8448
8444
  * @Date: 2024-03-20 10:27:31
8449
8445
  * @LastEditors: binruan@chatlabs.com
8450
- * @LastEditTime: 2024-04-19 14:12:55
8446
+ * @LastEditTime: 2024-05-27 09:47:19
8451
8447
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FormatImage.tsx
8452
8448
  *
8453
8449
  */
8454
8450
  const FormatImage = React.forwardRef((props, ref) => {
8455
8451
  const { src, onLoad, style, className, loading } = props;
8456
8452
  const [imgSrc, setImgSrc] = React.useState();
8453
+ const { swiperRef } = useSxpDataSource();
8457
8454
  React.useImperativeHandle(ref, () => ({
8458
8455
  setSrc: (v) => {
8459
8456
  setImgSrc(v);
8460
8457
  }
8461
8458
  }));
8462
8459
  React.useEffect(() => {
8463
- setImgSrc(src);
8464
- }, [src]);
8460
+ var _a, _b;
8461
+ // 首屏不加载第二屏之后的图片
8462
+ 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;
8463
+ if (index === 0 || index > 0)
8464
+ setImgSrc(src);
8465
+ }, [src, swiperRef]);
8466
+ React.useRef(null);
8467
+ // useEffect(() => {
8468
+ // let observer: any = null;
8469
+ // const { current } = imgRef;
8470
+ // if (current) {
8471
+ // observer = new IntersectionObserver(
8472
+ // (entries) => {
8473
+ // entries.forEach((entry) => {
8474
+ // if (entry.isIntersecting) {
8475
+ // setImgSrc(src);
8476
+ // observer.unobserve(current);
8477
+ // }
8478
+ // });
8479
+ // },
8480
+ // { threshold: 0.1 } // 触发阈值,可根据需要调整
8481
+ // );
8482
+ // observer.observe(current);
8483
+ // }
8484
+ // return () => {
8485
+ // if (observer && current) {
8486
+ // observer.unobserve(current);
8487
+ // }
8488
+ // };
8489
+ // }, [src]);
8465
8490
  return (React.createElement(React.Fragment, null, (imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
8466
8491
  React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
8467
8492
  React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
@@ -8563,7 +8588,7 @@ const CommodityDetail$1 = (_a) => {
8563
8588
  width: '100%',
8564
8589
  objectFit: 'cover',
8565
8590
  display: 'block',
8566
- transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
8591
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8567
8592
  }, src: src }))));
8568
8593
  }))),
8569
8594
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -8817,7 +8842,7 @@ var _a$2, _b$2;
8817
8842
  * @Author: binruan@chatlabs.com
8818
8843
  * @Date: 2024-03-26 16:50:25
8819
8844
  * @LastEditors: binruan@chatlabs.com
8820
- * @LastEditTime: 2024-04-12 17:37:19
8845
+ * @LastEditTime: 2024-05-27 17:31:27
8821
8846
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
8822
8847
  *
8823
8848
  */
@@ -8852,7 +8877,7 @@ var settingRender$2 = [
8852
8877
  label: '居中垂直偏移',
8853
8878
  type: 'Number',
8854
8879
  name: ['props', 'swiper', 'translateY'],
8855
- min: -100,
8880
+ min: -1000,
8856
8881
  addonAfter: '%',
8857
8882
  initialValue: 0
8858
8883
  }
@@ -9093,7 +9118,7 @@ Made in Italy` })));
9093
9118
  width: '100%',
9094
9119
  objectFit: 'cover',
9095
9120
  display: 'block',
9096
- transform: `translateY(${swiper === null || swiper === void 0 ? void 0 : swiper.translateY})%`
9121
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9097
9122
  }, src: src }))));
9098
9123
  }))),
9099
9124
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9301,7 +9326,7 @@ var settingRender$1 = [
9301
9326
  label: '居中垂直偏移',
9302
9327
  type: 'Number',
9303
9328
  name: ['props', 'translateY'],
9304
- min: -100,
9329
+ min: -1000,
9305
9330
  addonAfter: '%',
9306
9331
  initialValue: 0
9307
9332
  }
@@ -9520,7 +9545,7 @@ const Commodity$1 = (_a) => {
9520
9545
  objectFit: 'cover',
9521
9546
  height: '100%',
9522
9547
  display: 'block',
9523
- transform: `translateY(${translateY}%)`
9548
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9524
9549
  }), src: src })),
9525
9550
  React.createElement("div", { className: css.css({
9526
9551
  color: '#fff',
@@ -9769,7 +9794,7 @@ const CommodityDiro$1 = (_a) => {
9769
9794
  objectFit: 'cover',
9770
9795
  height: '100%',
9771
9796
  display: 'block',
9772
- transform: `translateY(${translateY}%)`
9797
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9773
9798
  }), src: src })),
9774
9799
  React.createElement("div", { className: css.css({
9775
9800
  color: '#fff',
@@ -9867,7 +9892,7 @@ const CommodityDiroNew$1 = (_a) => {
9867
9892
  objectFit: 'cover',
9868
9893
  height: '100%',
9869
9894
  display: 'block',
9870
- transform: `translateY(${translateY}%)`
9895
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
9871
9896
  }), src: src })),
9872
9897
  React.createElement("div", { className: css.css({
9873
9898
  color: '#fff',
@@ -10011,7 +10036,7 @@ const MultiCommodityDiro$1 = (_a) => {
10011
10036
  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.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
10012
10037
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10013
10038
  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: {
10014
- transform: `translateY(${translateY}%)`
10039
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
10015
10040
  } })),
10016
10041
  React.createElement("div", { className: css.css({
10017
10042
  color: '#000',
@@ -10126,7 +10151,7 @@ const MultiCommodity$1 = (_a) => {
10126
10151
  return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
10127
10152
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10128
10153
  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: {
10129
- transform: `translateY(${translateY}%)`
10154
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
10130
10155
  } })),
10131
10156
  React.createElement("div", { className: css.css({
10132
10157
  color: '#fff',
@@ -10240,7 +10265,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
10240
10265
  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.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
10241
10266
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
10242
10267
  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: {
10243
- transform: `translateY(${translateY}%)`
10268
+ objectPosition: `50% ${translateY ? -translateY + 50 : 50}%`
10244
10269
  } })),
10245
10270
  React.createElement("div", { className: css.css({
10246
10271
  color: '#fff',
@@ -12242,17 +12267,17 @@ const LikeButton = (_a) => {
12242
12267
  if (state) {
12243
12268
  // 先设置状态
12244
12269
  setState(false);
12245
- 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;
12270
+ 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;
12246
12271
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
12247
12272
  eventInfo: {
12248
12273
  eventSubject: 'favoriteContentCanceled',
12249
12274
  eventDescription: 'This content was unfavorite by the user',
12250
- contentId: (_f = (_e = recData.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
12251
- contentName: (_h = (_g = recData.video) === null || _g === void 0 ? void 0 : _g.title) !== null && _h !== void 0 ? _h : '',
12252
- contentTags: JSON.stringify((_k = (_j = recData.video) === null || _j === void 0 ? void 0 : _j.tags) !== null && _k !== void 0 ? _k : []),
12275
+ 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 : '',
12276
+ 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 : '',
12277
+ 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 : []),
12253
12278
  position: position + '',
12254
- contentFormat: ((_l = recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12255
- traceInfo: (_m = recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12279
+ contentFormat: ((_l = recData === null || recData === void 0 ? void 0 : recData.video) === null || _l === void 0 ? void 0 : _l.url) ? 'video' : 'image',
12280
+ traceInfo: (_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.traceInfo
12256
12281
  }
12257
12282
  });
12258
12283
  // 如果接口调用失败,则回滚状态
@@ -12267,12 +12292,12 @@ const LikeButton = (_a) => {
12267
12292
  eventInfo: {
12268
12293
  eventSubject: 'favoriteContent',
12269
12294
  eventDescription: 'This content was favorite by the user',
12270
- contentId: (_q = (_p = recData.video) === null || _p === void 0 ? void 0 : _p.itemId) !== null && _q !== void 0 ? _q : '',
12271
- contentName: (_s = (_r = recData.video) === null || _r === void 0 ? void 0 : _r.title) !== null && _s !== void 0 ? _s : '',
12272
- contentTags: JSON.stringify((_u = (_t = recData.video) === null || _t === void 0 ? void 0 : _t.tags) !== null && _u !== void 0 ? _u : []),
12295
+ 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 : '',
12296
+ 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 : '',
12297
+ 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 : []),
12273
12298
  position: position + '',
12274
- contentFormat: ((_v = recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12275
- traceInfo: (_w = recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12299
+ contentFormat: ((_v = recData === null || recData === void 0 ? void 0 : recData.video) === null || _v === void 0 ? void 0 : _v.url) ? 'video' : 'image',
12300
+ traceInfo: (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.traceInfo
12276
12301
  }
12277
12302
  });
12278
12303
  if (!result) {
@@ -12350,15 +12375,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12350
12375
  eventInfo: {
12351
12376
  eventSubject: 'playVideo',
12352
12377
  eventDescription: 'User played the video',
12353
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12354
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12378
+ 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 : '',
12379
+ 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 : '',
12355
12380
  playType,
12356
12381
  startTime: videoCurrentTime,
12357
12382
  videoDuration,
12358
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12383
+ 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 : []),
12359
12384
  position: index + '',
12360
12385
  contentFormat: 'video',
12361
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12386
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12362
12387
  }
12363
12388
  });
12364
12389
  setIsFirstPlay(false);
@@ -12448,15 +12473,15 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12448
12473
  eventInfo: {
12449
12474
  eventSubject: 'playOverVideo',
12450
12475
  eventDescription: 'User finished playing the video',
12451
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
12452
- contentName: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.title) !== null && _f !== void 0 ? _f : '',
12476
+ 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 : '',
12477
+ 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 : '',
12453
12478
  endTime: videoCurrentTime,
12454
12479
  videoDuration,
12455
12480
  playDuration,
12456
- contentTags: JSON.stringify((_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.tags) !== null && _h !== void 0 ? _h : []),
12481
+ 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 : []),
12457
12482
  position: index + '',
12458
12483
  contentFormat: 'video',
12459
- traceInfo: (_j = item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12484
+ traceInfo: (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.traceInfo
12460
12485
  }
12461
12486
  });
12462
12487
  }
@@ -12464,9 +12489,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12464
12489
  React.useEffect(() => {
12465
12490
  if (!isActive || !videoRef)
12466
12491
  return;
12467
- const videoSrc = rec.video.url;
12492
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
12468
12493
  if (!videoSrc)
12469
12494
  return;
12495
+ videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12470
12496
  setIsPauseVideo(false);
12471
12497
  const videoPlayerWrapperNode = document.querySelector(`#${videoId}`);
12472
12498
  const dom = document.querySelector('#player-container-id');
@@ -12474,7 +12500,6 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12474
12500
  if (!dom && !dom2)
12475
12501
  return;
12476
12502
  videoPlayerWrapperNode === null || videoPlayerWrapperNode === void 0 ? void 0 : videoPlayerWrapperNode.appendChild(dom || dom2);
12477
- videoRef === null || videoRef === void 0 ? void 0 : videoRef.src(videoSrc);
12478
12503
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadedmetadata', handleLoadedmetadata);
12479
12504
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.on('loadeddata', handLoadeddata);
12480
12505
  // videoRef?.on('canplay', handleCanplay);
@@ -12555,10 +12580,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12555
12580
  window.removeEventListener('beforeunload', handleBeforeUnload);
12556
12581
  };
12557
12582
  }, [activeIndex, index, rec, videoRef, handleClickVideo, isPauseVideo]);
12558
- if (!rec.video) {
12583
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
12559
12584
  return null;
12560
12585
  }
12561
- 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) },
12586
+ 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) },
12562
12587
  !isBgColor && (React.createElement(FormatImage$1, { src: blurBgSrc, style: Object.assign({ height: '100%', width: '100%', objectFit: 'cover' }, blurStyle) })),
12563
12588
  React.createElement("canvas", { ref: canvasRef, style: { display: 'none' } }),
12564
12589
  React.createElement("div", { style: {
@@ -12573,7 +12598,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
12573
12598
  React.createElement("div", { style: { position: 'relative', width: '100%', height: '100%' } },
12574
12599
  React.createElement("div", { className: 'n-full-screen', ref: videoEleRef, id: videoId, style: { width: '100%', height: '100%' } }),
12575
12600
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
12576
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, style: {
12601
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, style: {
12577
12602
  position: 'relative',
12578
12603
  width: '100%',
12579
12604
  height,
@@ -12930,7 +12955,7 @@ var Tagbar$1 = React.memo(Tagbar);
12930
12955
  * @Author: binruan@chatlabs.com
12931
12956
  * @Date: 2024-01-15 19:03:09
12932
12957
  * @LastEditors: binruan@chatlabs.com
12933
- * @LastEditTime: 2024-05-23 10:41:27
12958
+ * @LastEditTime: 2024-05-24 16:32:06
12934
12959
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12935
12960
  *
12936
12961
  */
@@ -12990,23 +13015,29 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12990
13015
  };
12991
13016
  const firstRef = React.useRef();
12992
13017
  React.useEffect(() => {
12993
- if (!firstRef.current && !videoRef) {
13018
+ var _a, _b, _c;
13019
+ if (!firstRef.current && !videoRef && (playerRef === null || playerRef === void 0 ? void 0 : playerRef.current) && (data === null || data === void 0 ? void 0 : data.length) > 0) {
12994
13020
  firstRef.current = true;
12995
13021
  const player = TCPlayer('player-container-id', {
12996
13022
  licenseUrl, // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
12997
13023
  controls: false,
12998
- autoplay: false,
12999
13024
  loop: false,
13025
+ autoplay: true,
13000
13026
  muted: true,
13001
13027
  preload: 'auto',
13002
13028
  posterImage: false,
13003
- bigPlayButton: true
13029
+ bigPlayButton: true,
13030
+ sources: [
13031
+ {
13032
+ 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 : ''
13033
+ }
13034
+ ]
13004
13035
  });
13005
13036
  player === null || player === void 0 ? void 0 : player.ready(() => {
13006
13037
  setVideoRef(player);
13007
13038
  });
13008
13039
  }
13009
- }, [videoRef, licenseUrl]);
13040
+ }, [videoRef, licenseUrl, data]);
13010
13041
  React.useEffect(() => {
13011
13042
  if (!isInit)
13012
13043
  handleH5EnterLink();
@@ -13061,7 +13092,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13061
13092
  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))) {
13062
13093
  fromKName = 'pdpPage';
13063
13094
  }
13064
- 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') {
13095
+ 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') {
13065
13096
  fromKName = 'formPage';
13066
13097
  }
13067
13098
  else if (isFromHashtag) {
@@ -13086,7 +13117,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13086
13117
  position: activeIndex + '',
13087
13118
  fromKName,
13088
13119
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
13089
- 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 : ''
13120
+ 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 : ''
13090
13121
  }
13091
13122
  });
13092
13123
  }
@@ -13124,11 +13155,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13124
13155
  }, [globalConfig]);
13125
13156
  const renderContent = React.useCallback((rec, index) => {
13126
13157
  var _a, _b, _c, _d;
13127
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13158
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13128
13159
  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 }));
13129
13160
  }
13130
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13131
- 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 }));
13161
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13162
+ 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 }));
13132
13163
  }
13133
13164
  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) {
13134
13165
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, idx) => {
@@ -13169,16 +13200,16 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13169
13200
  }, [isShowMore]);
13170
13201
  const renderBottom = React.useCallback((rec, index) => {
13171
13202
  var _a, _b, _c, _d, _e, _f, _g;
13172
- if (rec.video) {
13203
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13173
13204
  return (React.createElement(React.Fragment, null,
13174
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13205
+ ((_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' }),
13175
13206
  React.createElement("div", { className: 'clc-sxp-bottom' },
13176
13207
  React.createElement(Nudge, { nudge: nudge }),
13177
13208
  (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' },
13178
13209
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
13179
13210
  React.createElement("div", null,
13180
- 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 }),
13181
- 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 })))));
13211
+ 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 }),
13212
+ 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 })))));
13182
13213
  }
13183
13214
  return null;
13184
13215
  }, [
@@ -13202,7 +13233,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13202
13233
  if (waterFallData && top < 40) {
13203
13234
  top += 40;
13204
13235
  }
13205
- if (rec.video) {
13236
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13206
13237
  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: {
13207
13238
  [(_b = globalConfig.likeIconXPosit) !== null && _b !== void 0 ? _b : 'right']: (_c = globalConfig.likeIconX) !== null && _c !== void 0 ? _c : 0,
13208
13239
  [(_d = globalConfig.likeIconYPosit) !== null && _d !== void 0 ? _d : 'bottom']: top
@@ -13212,21 +13243,21 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13212
13243
  }, [globalConfig, waterFallData]);
13213
13244
  const handleReportViewImageEnd = (item) => {
13214
13245
  var _a, _b, _c, _d, _e, _f;
13215
- if (!((_a = item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
13246
+ 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)) {
13216
13247
  const endTime = Date.now();
13217
13248
  const duration = (endTime - viewImageStartTime.current) / 1000;
13218
13249
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
13219
13250
  eventInfo: {
13220
13251
  eventSubject: 'viewImageCarouselEnd',
13221
13252
  eventDescription: 'User end view the image carousel',
13222
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13223
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13253
+ 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 : '',
13254
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13224
13255
  imageEndTime: `${endTime}`,
13225
13256
  playDuration: `${duration}`,
13226
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13257
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13227
13258
  position: activeIndex + '',
13228
13259
  contentFormat: 'image',
13229
- traceInfo: item.video.traceInfo
13260
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13230
13261
  }
13231
13262
  });
13232
13263
  }
@@ -13242,8 +13273,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13242
13273
  eventInfo: {
13243
13274
  eventSubject: 'scrollDown',
13244
13275
  eventDescription: 'User scroll down',
13245
- contentId: (_b = (_a = item.video) === null || _a === void 0 ? void 0 : _a.itemId) !== null && _b !== void 0 ? _b : '',
13246
- productId: (_d = (_c = item.product) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13276
+ 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 : '',
13277
+ 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 : '',
13247
13278
  requestId: null
13248
13279
  }
13249
13280
  });
@@ -13255,7 +13286,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13255
13286
  eventInfo: {
13256
13287
  eventSubject: 'scrollUp',
13257
13288
  eventDescription: 'User scroll up',
13258
- contentId: (_f = (_e = item.video) === null || _e === void 0 ? void 0 : _e.itemId) !== null && _f !== void 0 ? _f : '',
13289
+ 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 : '',
13259
13290
  productId: (_h = (_g = item.product) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13260
13291
  requestId: null
13261
13292
  }
@@ -13294,13 +13325,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
13294
13325
  eventInfo: {
13295
13326
  eventSubject: 'viewImageCarouselStart',
13296
13327
  eventDescription: 'User start view the image carousel',
13297
- contentId: (_d = (_c = item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
13298
- contentName: (_e = item.video.title) !== null && _e !== void 0 ? _e : '',
13328
+ 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 : '',
13329
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
13299
13330
  imageStartTime: `${startTime}`,
13300
- contentTags: JSON.stringify((_f = item.video.tags) !== null && _f !== void 0 ? _f : []),
13331
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
13301
13332
  position: activeIndex + '',
13302
13333
  contentFormat: 'image',
13303
- traceInfo: item.video.traceInfo
13334
+ traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
13304
13335
  }
13305
13336
  });
13306
13337
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
@@ -13446,15 +13477,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13446
13477
  eventInfo: {
13447
13478
  eventSubject: 'playVideo',
13448
13479
  eventDescription: 'User played the video',
13449
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13450
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13480
+ 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 : '',
13481
+ 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 : '',
13451
13482
  playType,
13452
13483
  startTime: videoCurrentTime,
13453
13484
  videoDuration,
13454
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13485
+ 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 : []),
13455
13486
  position: index + '',
13456
13487
  contentFormat: 'video',
13457
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13488
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13458
13489
  }
13459
13490
  });
13460
13491
  setIsFirstPlay(false);
@@ -13503,15 +13534,15 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13503
13534
  eventInfo: {
13504
13535
  eventSubject: 'playOverVideo',
13505
13536
  eventDescription: 'User finished playing the video',
13506
- contentId: (_h = (_g = item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
13507
- contentName: (_k = (_j = item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
13537
+ 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 : '',
13538
+ 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 : '',
13508
13539
  endTime: videoCurrentTime,
13509
13540
  videoDuration,
13510
13541
  playDuration,
13511
- contentTags: JSON.stringify((_m = (_l = item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
13542
+ 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 : []),
13512
13543
  position: index + '',
13513
13544
  contentFormat: 'video',
13514
- traceInfo: (_o = item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13545
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
13515
13546
  }
13516
13547
  });
13517
13548
  }
@@ -13548,10 +13579,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13548
13579
  return;
13549
13580
  setIsPauseVideo(false);
13550
13581
  if (!videoRef.current.src) {
13551
- const videoSrc = rec.video.url;
13582
+ const videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
13552
13583
  if (videoSrc.includes('.m3u8')) {
13553
- if (Hls.isSupported()) {
13554
- const hls = new Hls();
13584
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.Hls.isSupported())) {
13585
+ const hls = new window.Hls();
13555
13586
  hls.loadSource(videoSrc);
13556
13587
  hls.attachMedia(videoRef.current);
13557
13588
  }
@@ -13579,7 +13610,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13579
13610
  (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('playing', handlePlaying);
13580
13611
  (_d = videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('loadeddata', handLoadeddata);
13581
13612
  };
13582
- }, [handleLoadedMetadata, handlePlaying, rec.video, handLoadeddata]);
13613
+ }, [handleLoadedMetadata, handlePlaying, rec === null || rec === void 0 ? void 0 : rec.video, handLoadeddata]);
13583
13614
  const renderPoster = React.useMemo(() => {
13584
13615
  if (!(sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.placeholder_image) || isLoadFinish) {
13585
13616
  return null;
@@ -13606,10 +13637,10 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13606
13637
  }
13607
13638
  : {};
13608
13639
  }, [blur]);
13609
- if (!rec.video) {
13640
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video)) {
13610
13641
  return null;
13611
13642
  }
13612
- return (React.createElement(React.Fragment, null, blur ? (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13643
+ 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: {
13613
13644
  position: 'relative',
13614
13645
  width,
13615
13646
  height,
@@ -13634,7 +13665,7 @@ const VideoWidget = ({ rec, index, height, data, muted, activeIndex, videoPostCo
13634
13665
  objectFit: 'contain'
13635
13666
  } }),
13636
13667
  React.createElement("img", { hidden: !isPauseVideo, className: 'clc-pb-video-pause', src: PAUSE_ICON }))),
13637
- renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec.video.itemId, onClick: handleClickVideo(), style: {
13668
+ renderPoster)) : (React.createElement("div", { className: 'video-container', key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, onClick: handleClickVideo(), style: {
13638
13669
  position: 'relative',
13639
13670
  width,
13640
13671
  height,
@@ -13665,11 +13696,11 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13665
13696
  }, [globalConfig, containerHeight, tagList]);
13666
13697
  const renderContent = (rec, index) => {
13667
13698
  var _a, _b, _c, _d;
13668
- if ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13699
+ if ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.url) {
13669
13700
  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 }));
13670
13701
  }
13671
- if ((_b = rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13672
- 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 }));
13702
+ if ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.imgUrls) {
13703
+ 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 }));
13673
13704
  }
13674
13705
  if (rec.product) {
13675
13706
  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) {
@@ -13703,15 +13734,15 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13703
13734
  };
13704
13735
  const renderBottom = (rec, index) => {
13705
13736
  var _a, _b, _c, _d, _e, _f, _g;
13706
- if (rec.video) {
13737
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13707
13738
  return (React.createElement(React.Fragment, null,
13708
- ((_a = rec.video) === null || _a === void 0 ? void 0 : _a.title) && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
13739
+ ((_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' }),
13709
13740
  React.createElement("div", { className: 'clc-sxp-bottom' },
13710
13741
  React.createElement(Nudge, { nudge: nudge }),
13711
13742
  CTA(rec, index),
13712
13743
  React.createElement("div", null,
13713
- 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' }) })),
13714
- 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 }))));
13744
+ 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' }) })),
13745
+ 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 }))));
13715
13746
  }
13716
13747
  return null;
13717
13748
  };
@@ -13725,7 +13756,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
13725
13756
  if (top < 40) {
13726
13757
  top += 40;
13727
13758
  }
13728
- if (rec.video) {
13759
+ if (rec === null || rec === void 0 ? void 0 : rec.video) {
13729
13760
  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: {
13730
13761
  top,
13731
13762
  right: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconX) !== null && _d !== void 0 ? _d : 0
@@ -13770,7 +13801,7 @@ var index$1 = React.memo(DiyPortalPreview);
13770
13801
  * @Author: binruan@chatlabs.com
13771
13802
  * @Date: 2023-10-31 10:56:01
13772
13803
  * @LastEditors: binruan@chatlabs.com
13773
- * @LastEditTime: 2024-05-14 10:12:52
13804
+ * @LastEditTime: 2024-05-27 18:19:31
13774
13805
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
13775
13806
  *
13776
13807
  */
@@ -13816,14 +13847,14 @@ const Popup = () => {
13816
13847
  const renderPopupDetail = React.useMemo(() => {
13817
13848
  var _a, _b, _c;
13818
13849
  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) => {
13819
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
13850
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
13820
13851
  if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
13821
13852
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
13822
13853
  const Component = withBindDataSource(t);
13823
13854
  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';
13824
13855
  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';
13825
13856
  const defaulSetting = (_h = t === null || t === void 0 ? void 0 : t.extend) === null || _h === void 0 ? void 0 : _h.defaulSetting;
13826
- 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 })));
13857
+ 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 })));
13827
13858
  }
13828
13859
  else {
13829
13860
  return React.createElement(React.Fragment, null);
@@ -13837,7 +13868,7 @@ const Popup = () => {
13837
13868
  * @Author: binruan@chatlabs.com
13838
13869
  * @Date: 2024-01-15 19:03:09
13839
13870
  * @LastEditors: binruan@chatlabs.com
13840
- * @LastEditTime: 2024-05-06 17:26:37
13871
+ * @LastEditTime: 2024-05-17 18:41:05
13841
13872
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
13842
13873
  *
13843
13874
  */
@@ -13854,14 +13885,14 @@ Object.values(_materials_).forEach((v) => {
13854
13885
  RESOLVER[v.extend.type] = v;
13855
13886
  });
13856
13887
  const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl, enabledMetaConversionApi }) => {
13857
- var _a, _b, _c, _d, _e, _f;
13888
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13858
13889
  const utmVal = React.useMemo(() => {
13859
13890
  var _a;
13860
13891
  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('?', '') : '';
13861
13892
  return searchParams;
13862
13893
  }, []);
13863
13894
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
13864
- 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 }) => {
13895
+ 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 }) => {
13865
13896
  var _a;
13866
13897
  return (React.createElement(React.Fragment, null,
13867
13898
  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 })),