pb-sxp-ui 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/index.cjs +112 -69
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +63 -31
  4. package/dist/index.js +112 -69
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +112 -69
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +1 -0
  15. package/es/core/components/SxpPageRender/FingerSwipeTip/index.js +3 -3
  16. package/es/core/components/SxpPageRender/Hashtag/index.js +3 -1
  17. package/es/core/components/SxpPageRender/Navbar.js +1 -1
  18. package/es/core/components/SxpPageRender/VideoWidget/index.js +13 -10
  19. package/es/core/components/SxpPageRender/WaterFall/List.js +1 -1
  20. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  21. package/es/core/components/SxpPageRender/index.d.ts +3 -0
  22. package/es/core/components/SxpPageRender/index.js +8 -8
  23. package/es/materials/sxp/HashTag/material.js +2 -1
  24. package/es/materials/sxp/cta/AniLink/index.js +27 -11
  25. package/es/materials/sxp/cta/AniLinkPopup/index.js +39 -22
  26. package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
  27. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  28. package/es/materials/sxp/template/Link/index.js +2 -2
  29. package/es/materials/sxp/template/components/Img.js +1 -1
  30. package/es/materials/sxp/template/components/settingRender.js +5 -0
  31. package/lib/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +1 -0
  32. package/lib/core/components/SxpPageRender/FingerSwipeTip/index.js +3 -3
  33. package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -1
  34. package/lib/core/components/SxpPageRender/Navbar.js +1 -1
  35. package/lib/core/components/SxpPageRender/VideoWidget/index.js +13 -10
  36. package/lib/core/components/SxpPageRender/WaterFall/List.js +1 -1
  37. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  38. package/lib/core/components/SxpPageRender/index.d.ts +3 -0
  39. package/lib/core/components/SxpPageRender/index.js +8 -8
  40. package/lib/materials/sxp/HashTag/material.js +2 -1
  41. package/lib/materials/sxp/cta/AniLink/index.js +26 -10
  42. package/lib/materials/sxp/cta/AniLinkPopup/index.js +38 -21
  43. package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
  44. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  45. package/lib/materials/sxp/template/Link/index.js +2 -2
  46. package/lib/materials/sxp/template/components/Img.js +1 -1
  47. package/lib/materials/sxp/template/components/settingRender.js +5 -0
  48. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -8988,7 +8988,7 @@ const CommodityDetail$1 = (_a) => {
8988
8988
  width: '100%',
8989
8989
  objectFit: 'cover',
8990
8990
  display: 'block',
8991
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8991
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8992
8992
  }, src: src }))));
8993
8993
  }))))),
8994
8994
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9716,7 +9716,7 @@ Made in Italy` })));
9716
9716
  width: '100%',
9717
9717
  objectFit: 'cover',
9718
9718
  display: 'block',
9719
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9719
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9720
9720
  }, src: src }))));
9721
9721
  }))),
9722
9722
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -10102,7 +10102,7 @@ function useOnScreen(ref) {
10102
10102
  * @Author: binruan@chatlabs.com
10103
10103
  * @Date: 2024-01-16 14:50:13
10104
10104
  * @LastEditors: binruan@chatlabs.com
10105
- * @LastEditTime: 2024-06-24 18:13:14
10105
+ * @LastEditTime: 2024-07-04 18:13:23
10106
10106
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
10107
10107
  *
10108
10108
  */
@@ -10123,7 +10123,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
10123
10123
  }, [src]);
10124
10124
  return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
10125
10125
  React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
10126
- React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? -translateY + 50 : 50}%` }, style)), src: src }))));
10126
+ React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
10127
10127
  };
10128
10128
  var Img$1 = React.memo(Img);
10129
10129
 
@@ -10293,7 +10293,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
10293
10293
  * @Author: binruan@chatlabs.com
10294
10294
  * @Date: 2024-03-26 16:50:25
10295
10295
  * @LastEditors: binruan@chatlabs.com
10296
- * @LastEditTime: 2024-06-27 09:55:59
10296
+ * @LastEditTime: 2024-07-04 17:47:52
10297
10297
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
10298
10298
  *
10299
10299
  */
@@ -10538,6 +10538,11 @@ var settingRender$4 = [
10538
10538
  label: '对齐',
10539
10539
  type: 'TextAlign',
10540
10540
  name: ['props', 'ctaTempStyles', 'ctaTitle']
10541
+ },
10542
+ {
10543
+ label: '间距',
10544
+ type: 'TextSpace',
10545
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
10541
10546
  }
10542
10547
  ]
10543
10548
  }
@@ -10850,7 +10855,7 @@ const Link$1 = (_a) => {
10850
10855
  overflow: 'hidden'
10851
10856
  }) },
10852
10857
  React.createElement("div", null,
10853
- React.createElement("div", { className: (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) ? styles$7['one-line-ellipsis'] : styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10858
+ React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10854
10859
  __html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
10855
10860
  } }),
10856
10861
  (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles$7['one-line-ellipsis'], dangerouslySetInnerHTML: {
@@ -11678,7 +11683,7 @@ var settingRender$3 = [
11678
11683
  * @Author: binruan@chatlabs.com
11679
11684
  * @Date: 2023-12-26 16:11:34
11680
11685
  * @LastEditors: binruan@chatlabs.com
11681
- * @LastEditTime: 2024-06-27 10:19:28
11686
+ * @LastEditTime: 2024-07-04 18:34:18
11682
11687
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
11683
11688
  *
11684
11689
  */
@@ -11687,7 +11692,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
11687
11692
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
11688
11693
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
11689
11694
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
11690
- React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
11695
+ React.createElement("div", { className: 'clc-sxp-nav-title', style: Object.assign(Object.assign({}, textStyle), { paddingLeft: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.textAlign) === 'left' ? '35px' : 0 }), dangerouslySetInnerHTML: {
11691
11696
  __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
11692
11697
  } })));
11693
11698
  };
@@ -13282,7 +13287,7 @@ function WaterfallList$1(_a) {
13282
13287
  var _a, _b;
13283
13288
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
13284
13289
  reportTagsView();
13285
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
13290
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
13286
13291
  }
13287
13292
  };
13288
13293
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -13517,7 +13522,7 @@ function WaterfallList(_a) {
13517
13522
  var _a, _b;
13518
13523
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
13519
13524
  reportTagsView();
13520
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
13525
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
13521
13526
  }
13522
13527
  };
13523
13528
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -13670,7 +13675,7 @@ var HashTagComponent = React.memo(HashTag$1);
13670
13675
  * @Author: binruan@chatlabs.com
13671
13676
  * @Date: 2023-07-28 18:29:57
13672
13677
  * @LastEditors: binruan@chatlabs.com
13673
- * @LastEditTime: 2024-04-30 10:13:13
13678
+ * @LastEditTime: 2024-07-04 18:38:10
13674
13679
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
13675
13680
  *
13676
13681
  */
@@ -13690,7 +13695,8 @@ const HashTag = createMaterial(HashTagComponent, {
13690
13695
  textStyles: {
13691
13696
  hashTagTitle: {
13692
13697
  fontSize: 16,
13693
- color: '#000'
13698
+ color: '#000',
13699
+ textAlign: 'center'
13694
13700
  },
13695
13701
  hashTagDesc: {
13696
13702
  fontSize: 12,
@@ -13930,16 +13936,17 @@ var settingRender$1 = [
13930
13936
  var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradientCover":"index-module_gradientCover__5iUag"};
13931
13937
 
13932
13938
  const AniLink$1 = (_a) => {
13933
- var _b, _c, _d, _e, _f, _g, _h, _j, _k;
13939
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
13934
13940
  var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink"]);
13935
13941
  const { ctaEvent, setPopupDetailData } = useSxpDataSource();
13936
13942
  const { jumpToWeb } = useEventReport();
13943
+ const [visible, setVisible] = React.useState(false);
13937
13944
  const ref = React.useRef(null);
13938
13945
  const isOnScreen = useOnScreen(ref);
13939
13946
  const cta = ((_d = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.bindCta) || ((_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.bindCta) || ((_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.bindCta);
13940
13947
  const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
13941
13948
  const handleTo = () => {
13942
- var _a, _b, _c;
13949
+ var _a, _b, _c, _d;
13943
13950
  const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
13944
13951
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
13945
13952
  eventSubject: 'clickCta',
@@ -13947,12 +13954,18 @@ const AniLink$1 = (_a) => {
13947
13954
  }, recData, item, index);
13948
13955
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
13949
13956
  if (isExternalLink) {
13950
- jumpToWeb(recData, product, cta, index);
13957
+ const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
13958
+ if (link) {
13959
+ jumpToWeb(recData, product, cta, index);
13960
+ window.location.href = window.getJointUtmLink(link);
13961
+ }
13962
+ }
13963
+ else {
13964
+ onClick === null || onClick === void 0 ? void 0 : onClick();
13951
13965
  }
13952
- onClick === null || onClick === void 0 ? void 0 : onClick();
13953
13966
  };
13954
- const title = (cta === null || cta === void 0 ? void 0 : cta.title) || '查看详情 >';
13955
- const aniStyle = React.useMemo(() => {
13967
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
13968
+ const aniTimStyle = React.useMemo(() => {
13956
13969
  var _a, _b;
13957
13970
  const ani = event === null || event === void 0 ? void 0 : event.animation;
13958
13971
  if (ani) {
@@ -13974,10 +13987,19 @@ const AniLink$1 = (_a) => {
13974
13987
  }, recData, product, index);
13975
13988
  }
13976
13989
  }, [isOnScreen]);
13977
- return (React.createElement("div", Object.assign({ ref: ref, style: Object.assign(Object.assign({}, style), { display: 'flex', alignItems: 'center' }) }, props, { className: `${styles$1['animated-button']} ${css.css(aniStyle)}`, onClick: handleTo }),
13978
- React.createElement("div", { className: 'one-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
13979
- __html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
13980
- } })));
13990
+ React.useEffect(() => {
13991
+ if (isOnScreen) {
13992
+ setVisible(true);
13993
+ }
13994
+ }, [isOnScreen]);
13995
+ const aniNamStyle = React.useMemo(() => {
13996
+ if (!visible)
13997
+ return null;
13998
+ return styles$1['animated-button'];
13999
+ }, [visible]);
14000
+ return (React.createElement("div", Object.assign({ ref: ref, style: Object.assign(Object.assign(Object.assign({}, style), ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: `${(_l = style === null || style === void 0 ? void 0 : style.height) !== null && _l !== void 0 ? _l : 0}px` }) }, props, { className: `${aniNamStyle} ${css.css(aniTimStyle)} one-line-ellipsis`, onClick: handleTo, dangerouslySetInnerHTML: {
14001
+ __html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
14002
+ } })));
13981
14003
  };
13982
14004
  var AniLinkComponent = React.memo(AniLink$1);
13983
14005
 
@@ -14340,19 +14362,23 @@ var settingRender = [
14340
14362
  }
14341
14363
  ];
14342
14364
 
14343
- var styles = {"animated-button":"index-module_animated-button__qI1lz","gradientCover":"index-module_gradientCover__nD6d9","tow-line-ellipsis":"index-module_tow-line-ellipsis__GKFXr","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
14365
+ var styles = {"aniLinkPopup":"index-module_aniLinkPopup__YT7kj","animated-fadeIn":"index-module_animated-fadeIn__8ZCbq","fadeIn":"index-module_fadeIn__2E-dk","animated-fadeOut":"index-module_animated-fadeOut__iK4oc","fadeOut":"index-module_fadeOut__MgevT","tow-line-ellipsis":"index-module_tow-line-ellipsis__GKFXr","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
14344
14366
 
14345
14367
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
14346
14368
  const AniLinkPopup$1 = (_a) => {
14347
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
14369
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
14348
14370
  var { style, recData, ctaTempStyles, index, event, bottom_image, translateY, isTel, onClick, isExternalLink = false } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "bottom_image", "translateY", "isTel", "onClick", "isExternalLink"]);
14371
+ style === null || style === void 0 ? true : delete style.transform;
14349
14372
  const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
14350
14373
  const { jumpToWeb } = useEventReport();
14351
- const [visible, setVisible] = React.useState(true);
14374
+ const ref = React.useRef(null);
14375
+ const isOnScreen = useOnScreen(ref);
14376
+ const [visible, setVisible] = React.useState(false);
14377
+ const [startAni, setStartAni] = React.useState(true);
14352
14378
  const cta = ((_d = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.bindCta) || ((_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.bindCta) || ((_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.bindCta);
14353
14379
  const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
14354
14380
  const handleTo = () => {
14355
- var _a, _b, _c;
14381
+ var _a, _b, _c, _d;
14356
14382
  const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
14357
14383
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
14358
14384
  eventSubject: 'clickCta',
@@ -14360,42 +14386,54 @@ const AniLinkPopup$1 = (_a) => {
14360
14386
  }, recData, item, index);
14361
14387
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
14362
14388
  if (isExternalLink) {
14363
- jumpToWeb(recData, product, cta, index);
14389
+ const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
14390
+ if (link) {
14391
+ jumpToWeb(recData, product, cta, index);
14392
+ window.location.href = window.getJointUtmLink(link);
14393
+ }
14394
+ }
14395
+ else {
14396
+ onClick === null || onClick === void 0 ? void 0 : onClick();
14364
14397
  }
14365
- onClick === null || onClick === void 0 ? void 0 : onClick();
14366
14398
  };
14367
- const title = (cta === null || cta === void 0 ? void 0 : cta.title) || '查看详情 >';
14368
- const aniStyle = React.useMemo(() => {
14369
- var _a, _b;
14399
+ const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
14400
+ const aniTimStyle = React.useMemo(() => {
14370
14401
  const ani = event === null || event === void 0 ? void 0 : event.animation;
14371
14402
  if (ani) {
14372
- const { delay, duration, backgroundColor } = ani;
14403
+ const { delay, duration } = ani;
14373
14404
  return {
14374
- ':after': {
14375
- animationDelay: `${(_a = delay / 1000) !== null && _a !== void 0 ? _a : 0}s`,
14376
- animationDuration: `${(_b = duration / 1000) !== null && _b !== void 0 ? _b : 0}s`,
14377
- backgroundColor: `${backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'transparent'}`
14378
- }
14405
+ animationDelay: `${delay ? delay / 1000 : 0}s`,
14406
+ animationDuration: `${duration ? duration / 1000 : 0}s`
14379
14407
  };
14380
14408
  }
14381
14409
  }, [event === null || event === void 0 ? void 0 : event.animation]);
14382
14410
  const src = (_q = (_p = (_o = (_l = product === null || product === void 0 ? void 0 : product.cover) !== null && _l !== void 0 ? _l : (_m = product === null || product === void 0 ? void 0 : product.homePage) === null || _m === void 0 ? void 0 : _m[0]) !== null && _o !== void 0 ? _o : cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _p !== void 0 ? _p : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _q !== void 0 ? _q : bottom_image;
14383
14411
  const onClose = (event) => {
14384
14412
  event.stopPropagation();
14385
- setVisible(false);
14413
+ setStartAni(false);
14386
14414
  };
14415
+ React.useEffect(() => {
14416
+ if (isOnScreen) {
14417
+ setVisible(true);
14418
+ }
14419
+ }, [isOnScreen]);
14420
+ const aniNamStyle = React.useMemo(() => {
14421
+ if (!visible)
14422
+ return null;
14423
+ return startAni ? styles['animated-fadeIn'] : styles['animated-fadeOut'];
14424
+ }, [visible, startAni]);
14387
14425
  return (React.createElement(React.Fragment, null, isTel ? (React.createElement("div", { style: {
14388
14426
  height: '40px',
14389
14427
  lineHeight: '40px',
14390
14428
  paddingLeft: '6px'
14391
- } }, "Cta Title")) : (React.createElement("div", Object.assign({ style: Object.assign(Object.assign({}, style), { position: 'absolute', right: 0, bottom: 0, zIndex: 1000, display: visible ? 'block' : 'none' }) }, props, { className: `${styles['animated-button']} ${css.css(aniStyle)}`, onClick: handleTo }),
14392
- React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_r = style === null || style === void 0 ? void 0 : style['padding']) !== null && _r !== void 0 ? _r : 0 } },
14393
- React.createElement("img", { src: (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _s !== void 0 ? _s : closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
14394
- React.createElement(Img$1, { src: src, rec: recData, item: (_x = (_v = (_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.bindProducts) === null || _u === void 0 ? void 0 : _u[0]) !== null && _v !== void 0 ? _v : (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.bindProduct) !== null && _x !== void 0 ? _x : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
14429
+ } }, "Cta Title")) : (React.createElement("div", Object.assign({ ref: ref }, props, { className: `${css.css(Object.assign(Object.assign({}, style), { '--transY': `translateY(calc(100% + ${(_r = style === null || style === void 0 ? void 0 : style.margin) !== null && _r !== void 0 ? _r : 0}px))` }))} ${styles['aniLinkPopup']} ${aniNamStyle} ${css.css(aniTimStyle)}`, onClick: handleTo }),
14430
+ React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_s = style === null || style === void 0 ? void 0 : style['padding']) !== null && _s !== void 0 ? _s : 0 } },
14431
+ React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
14432
+ React.createElement(Img$1, { src: src, rec: recData, item: (_y = (_w = (_v = (_u = recData === null || recData === void 0 ? void 0 : recData.video) === null || _u === void 0 ? void 0 : _u.bindProducts) === null || _v === void 0 ? void 0 : _v[0]) !== null && _w !== void 0 ? _w : (_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.bindProduct) !== null && _y !== void 0 ? _y : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
14395
14433
  React.createElement("div", { hidden: !!recData && !(product === null || product === void 0 ? void 0 : product.title), className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
14396
- __html: setFontForText((_y = product === null || product === void 0 ? void 0 : product.title) !== null && _y !== void 0 ? _y : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
14434
+ __html: setFontForText((_z = product === null || product === void 0 ? void 0 : product.title) !== null && _z !== void 0 ? _z : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
14397
14435
  } }),
14398
- React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_z = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _z === void 0 ? void 0 : _z.height) + 'px' }), dangerouslySetInnerHTML: {
14436
+ React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_0 = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _0 === void 0 ? void 0 : _0.height) + 'px' }), dangerouslySetInnerHTML: {
14399
14437
  __html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
14400
14438
  } })))));
14401
14439
  };
@@ -14841,20 +14879,23 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
14841
14879
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
14842
14880
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
14843
14881
  return () => {
14844
- var _a, _b, _c, _d, _e, _f, _g, _h;
14882
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
14883
+ const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
14884
+ if (!isPause)
14885
+ handlePause();
14845
14886
  if (hls)
14846
14887
  hls === null || hls === void 0 ? void 0 : hls.destroy();
14847
14888
  setIsLoadFinish(false);
14848
- (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('loadedmetadata', handleLoadedmetadata);
14849
- (_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('loadeddata', handLoadeddata);
14850
- (_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('play', handleStartPlay);
14851
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('playing', handlePlaying);
14852
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('pause', handlePause);
14853
- (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('ended', handlePlay);
14854
- (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('canplay', handlePlay);
14855
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('waiting', handleWaiting);
14889
+ (_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('loadedmetadata', handleLoadedmetadata);
14890
+ (_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('loadeddata', handLoadeddata);
14891
+ (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('play', handleStartPlay);
14892
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('playing', handlePlaying);
14893
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('pause', handlePause);
14894
+ (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('ended', handlePlay);
14895
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('canplay', handlePlay);
14896
+ (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('waiting', handleWaiting);
14856
14897
  };
14857
- }, [isActive, videoId, rec]);
14898
+ }, [isActive, videoId, rec, handlePause]);
14858
14899
  React.useEffect(() => {
14859
14900
  var _a, _b;
14860
14901
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || !isLoadFinish)
@@ -15000,23 +15041,23 @@ var ToggleButton$1 = React.memo(ToggleButton);
15000
15041
  * @Author: binruan@chatlabs.com
15001
15042
  * @Date: 2024-01-15 19:03:09
15002
15043
  * @LastEditors: binruan@chatlabs.com
15003
- * @LastEditTime: 2024-03-13 10:53:56
15044
+ * @LastEditTime: 2024-07-11 18:19:29
15004
15045
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FingerSwipeTip\index.tsx
15005
15046
  *
15006
15047
  */
15007
- const FingerSwipeTip = ({ imageUrl, style }) => {
15048
+ const FingerSwipeTip = ({ imageUrl, style, duration = 2000 }) => {
15008
15049
  const [show, setShow] = React.useState(true);
15009
15050
  useEditor();
15010
15051
  React.useEffect(() => {
15011
15052
  setTimeout(() => {
15012
15053
  setShow(false);
15013
- }, 2000);
15054
+ }, duration);
15014
15055
  }, []);
15015
15056
  const FINGER_SWIPE_ICON = useIconLink('/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png');
15016
15057
  const animationCls = React.useMemo(() => {
15017
15058
  return show ? 'pb-fadeIn' : 'pb-fadeOut';
15018
15059
  }, [show]);
15019
- return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: style },
15060
+ return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: Object.assign(Object.assign({}, style), { animationDuration: `${duration / 1000}s` }) },
15020
15061
  React.createElement("img", { src: imageUrl || FINGER_SWIPE_ICON, alt: 'finger swiper' })));
15021
15062
  };
15022
15063
 
@@ -15120,11 +15161,12 @@ var PictureGroup$3 = React.memo(PictureGroup$2);
15120
15161
  * @Author: binruan@chatlabs.com
15121
15162
  * @Date: 2024-01-15 19:03:09
15122
15163
  * @LastEditors: binruan@chatlabs.com
15123
- * @LastEditTime: 2024-06-26 18:52:46
15164
+ * @LastEditTime: 2024-07-09 18:47:05
15124
15165
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
15125
15166
  *
15126
15167
  */
15127
15168
  const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
15169
+ var _a;
15128
15170
  const [isShowMore, setIsShowMore] = React.useState(false);
15129
15171
  const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
15130
15172
  const handleClickTag = (data) => {
@@ -15156,7 +15198,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
15156
15198
  }
15157
15199
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
15158
15200
  }, [isShowMore, tags]);
15159
- return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag' },
15201
+ console.log(hashTagStyle, '111');
15202
+ return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: { marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px` } },
15160
15203
  React.createElement(Scroll$1, null, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item) },
15161
15204
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
15162
15205
  };
@@ -15360,7 +15403,7 @@ var Tagbar$1 = React.memo(Tagbar);
15360
15403
  * @Author: binruan@chatlabs.com
15361
15404
  * @Date: 2024-01-15 19:03:09
15362
15405
  * @LastEditors: binruan@chatlabs.com
15363
- * @LastEditTime: 2024-07-22 15:57:31
15406
+ * @LastEditTime: 2024-07-24 14:59:23
15364
15407
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15365
15408
  *
15366
15409
  */
@@ -15566,18 +15609,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15566
15609
  };
15567
15610
  }, [isShowMore]);
15568
15611
  const renderBottom = React.useCallback((rec, index) => {
15569
- var _a, _b, _c, _d, _e, _f, _g;
15612
+ var _a, _b, _c, _d, _e, _f, _g, _h;
15570
15613
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
15571
15614
  return (React.createElement(React.Fragment, null,
15572
15615
  ((_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' }),
15573
- React.createElement("div", { className: 'clc-sxp-bottom' },
15616
+ React.createElement("div", { className: 'clc-sxp-bottom', style: { paddingBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px` } },
15574
15617
  React.createElement(Nudge, { nudge: nudge }),
15575
15618
  (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' },
15576
15619
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
15577
15620
  React.createElement("div", null,
15578
- 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 }),
15621
+ 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: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
15579
15622
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'] }),
15580
- 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 }))),
15623
+ React.createElement(Hashtag$1, { index: activeIndex, tags: (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.hashTags) !== null && _f !== void 0 ? _f : [], itemId: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId, itemType: ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))),
15581
15624
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'] })));
15582
15625
  }
15583
15626
  return null;
@@ -15759,7 +15802,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15759
15802
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } })));
15760
15803
  }
15761
15804
  return visList === null || visList === void 0 ? void 0 : visList.map((rec, index) => {
15762
- return (React.createElement(SwiperSlide, { key: index, virtualIndex: index }, rec && (React.createElement(React.Fragment, null, (rec === null || rec === void 0 ? void 0 : rec.loading) ? (React.createElement("div", { style: {
15805
+ return (React.createElement(SwiperSlide, { key: index, virtualIndex: index, style: { overflow: 'hidden' } }, rec && (React.createElement(React.Fragment, null, (rec === null || rec === void 0 ? void 0 : rec.loading) ? (React.createElement("div", { style: {
15763
15806
  height,
15764
15807
  width: containerWidth,
15765
15808
  display: 'flex',
@@ -15782,7 +15825,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15782
15825
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
15783
15826
  top: minusHeight
15784
15827
  } }),
15785
- isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 + ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` } })) : null,
15828
+ isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
15786
15829
  React.createElement(Swiper, { style: {
15787
15830
  marginTop: tagHeight
15788
15831
  }, ref: swiperRef, onSlideChange: () => {
@@ -15807,13 +15850,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
15807
15850
  }
15808
15851
  }
15809
15852
  }, direction: 'vertical', height: height },
15810
- React.createElement(ToggleButton$1, { style: {
15853
+ ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === true) && (React.createElement(ToggleButton$1, { style: {
15811
15854
  position: 'fixed',
15812
15855
  visibility: ((_c = (_b = data === null || data === void 0 ? void 0 : data[activeIndex]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.url) ? 'visible' : 'hidden',
15813
15856
  zIndex: 999,
15814
15857
  [(_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconXPosit) !== null && _d !== void 0 ? _d : 'right']: (_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconX) !== null && _e !== void 0 ? _e : 0,
15815
15858
  [(_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) !== null && _f !== void 0 ? _f : 'bottom']: (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconY) !== null && _g !== void 0 ? _g : 23
15816
- }, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted }),
15859
+ }, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted })),
15817
15860
  renderView),
15818
15861
  React.createElement(WaterFall$1, Object.assign({}, (_k = (_j = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.item) === null || _k === void 0 ? void 0 : _k.props))));
15819
15862
  };