pb-sxp-ui 1.0.102 → 1.0.104

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 +168 -37
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +4 -9
  4. package/dist/index.js +168 -37
  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 +168 -37
  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/Navbar.js +1 -1
  15. package/es/core/components/SxpPageRender/Nudge/index.js +1 -1
  16. package/es/core/components/SxpPageRender/PictureGroup/index.js +10 -2
  17. package/es/core/components/SxpPageRender/WaterFall/List.js +1 -1
  18. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  19. package/es/core/components/SxpPageRender/index.d.ts +2 -0
  20. package/es/core/components/SxpPageRender/index.js +3 -3
  21. package/es/materials/sxp/HashTag/material.js +2 -1
  22. package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
  23. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  24. package/es/materials/sxp/template/Link/index.d.ts +6 -1
  25. package/es/materials/sxp/template/Link/index.js +9 -6
  26. package/es/materials/sxp/template/Link/material.js +15 -1
  27. package/es/materials/sxp/template/Link/settingRender.d.ts +57 -0
  28. package/es/materials/sxp/template/Link/settingRender.js +102 -0
  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/Navbar.js +1 -1
  32. package/lib/core/components/SxpPageRender/Nudge/index.js +1 -1
  33. package/lib/core/components/SxpPageRender/PictureGroup/index.js +10 -2
  34. package/lib/core/components/SxpPageRender/WaterFall/List.js +1 -1
  35. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
  36. package/lib/core/components/SxpPageRender/index.d.ts +2 -0
  37. package/lib/core/components/SxpPageRender/index.js +3 -3
  38. package/lib/materials/sxp/HashTag/material.js +2 -1
  39. package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
  40. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
  41. package/lib/materials/sxp/template/Link/index.d.ts +6 -1
  42. package/lib/materials/sxp/template/Link/index.js +9 -6
  43. package/lib/materials/sxp/template/Link/material.js +15 -1
  44. package/lib/materials/sxp/template/Link/settingRender.d.ts +57 -0
  45. package/lib/materials/sxp/template/Link/settingRender.js +104 -0
  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
@@ -8828,7 +8828,7 @@ const CommodityDetail$1 = (_a) => {
8828
8828
  width: '100%',
8829
8829
  objectFit: 'cover',
8830
8830
  display: 'block',
8831
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8831
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8832
8832
  }, src: src }))));
8833
8833
  }))),
8834
8834
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9425,7 +9425,7 @@ Made in Italy` })));
9425
9425
  width: '100%',
9426
9426
  objectFit: 'cover',
9427
9427
  display: 'block',
9428
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9428
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9429
9429
  }, src: src }))));
9430
9430
  }))),
9431
9431
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9537,7 +9537,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
9537
9537
  * @Author: binruan@chatlabs.com
9538
9538
  * @Date: 2024-03-26 16:50:25
9539
9539
  * @LastEditors: binruan@chatlabs.com
9540
- * @LastEditTime: 2024-06-27 09:55:59
9540
+ * @LastEditTime: 2024-07-04 17:47:52
9541
9541
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
9542
9542
  *
9543
9543
  */
@@ -9782,6 +9782,11 @@ var settingRender$2 = [
9782
9782
  label: '对齐',
9783
9783
  type: 'TextAlign',
9784
9784
  name: ['props', 'ctaTempStyles', 'ctaTitle']
9785
+ },
9786
+ {
9787
+ label: '间距',
9788
+ type: 'TextSpace',
9789
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
9785
9790
  }
9786
9791
  ]
9787
9792
  }
@@ -9829,7 +9834,7 @@ const EventProvider = (_a) => {
9829
9834
  };
9830
9835
  var EventProvider$1 = React.memo(EventProvider);
9831
9836
 
9832
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9837
+ var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9833
9838
 
9834
9839
  /*
9835
9840
  * @Author: binruan@chatlabs.com
@@ -9862,7 +9867,7 @@ function useOnScreen(ref) {
9862
9867
  * @Author: binruan@chatlabs.com
9863
9868
  * @Date: 2024-01-16 14:50:13
9864
9869
  * @LastEditors: binruan@chatlabs.com
9865
- * @LastEditTime: 2024-06-24 18:13:14
9870
+ * @LastEditTime: 2024-07-04 18:13:23
9866
9871
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
9867
9872
  *
9868
9873
  */
@@ -9883,7 +9888,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
9883
9888
  }, [src]);
9884
9889
  return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
9885
9890
  React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
9886
- 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 }))));
9891
+ 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 }))));
9887
9892
  };
9888
9893
  var Img$1 = React.memo(Img);
9889
9894
 
@@ -9903,7 +9908,7 @@ const Commodity$1 = (_a) => {
9903
9908
  width: '100%',
9904
9909
  overflow: 'hidden'
9905
9910
  }) },
9906
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9911
+ React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9907
9912
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
9908
9913
  } }),
9909
9914
  React.createElement("div", { className: css.css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_k = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _k === void 0 ? void 0 : _k.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -10044,11 +10049,120 @@ const Appoint = createMaterial(AppointComponent, {
10044
10049
  sort: 6
10045
10050
  });
10046
10051
 
10047
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};
10052
+ /*
10053
+ * @Author: binruan@chatlabs.com
10054
+ * @Date: 2024-07-02 14:51:32
10055
+ * @LastEditors: binruan@chatlabs.com
10056
+ * @LastEditTime: 2024-07-02 16:44:34
10057
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\settingRender.tsx
10058
+ *
10059
+ */
10060
+ var linkSettingRender = [
10061
+ {
10062
+ title: '自定义标题',
10063
+ child: [
10064
+ {
10065
+ type: 'Switch',
10066
+ label: '自定义标题开关',
10067
+ name: ['props', 'customTitle', 'display']
10068
+ },
10069
+ {
10070
+ type: 'Text',
10071
+ label: '标题文案',
10072
+ name: ['props', 'customTitle', 'text']
10073
+ },
10074
+ {
10075
+ type: 'Group',
10076
+ label: '尺寸',
10077
+ child: [
10078
+ {
10079
+ type: 'Number',
10080
+ name: ['props', 'customTitle', 'style', 'width'],
10081
+ addonAfter: 'W'
10082
+ },
10083
+ {
10084
+ type: 'Number',
10085
+ name: ['props', 'customTitle', 'style', 'height'],
10086
+ addonAfter: 'H'
10087
+ }
10088
+ ]
10089
+ },
10090
+ {
10091
+ type: 'Group',
10092
+ label: '圆角',
10093
+ child: [
10094
+ {
10095
+ type: 'Slider',
10096
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10097
+ max: 100
10098
+ },
10099
+ {
10100
+ type: 'Number',
10101
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10102
+ addonAfter: 'px',
10103
+ max: 100
10104
+ }
10105
+ ]
10106
+ },
10107
+ {
10108
+ type: 'Color',
10109
+ label: '背景色',
10110
+ name: ['props', 'customTitle', 'style', 'backgroundColor']
10111
+ },
10112
+ {
10113
+ type: 'Group',
10114
+ label: '字体',
10115
+ child: [
10116
+ {
10117
+ type: 'Select',
10118
+ name: ['props', 'customTitle', 'style', 'fontFamily-cn'],
10119
+ bottomText: '中文字体'
10120
+ },
10121
+ {
10122
+ type: 'Select',
10123
+ name: ['props', 'customTitle', 'style', 'fontFamily-en'],
10124
+ bottomText: '英文/其他字体'
10125
+ }
10126
+ ]
10127
+ },
10128
+ {
10129
+ type: 'Group',
10130
+ label: '',
10131
+ child: [
10132
+ {
10133
+ type: 'Color',
10134
+ name: ['props', 'customTitle', 'style', 'color']
10135
+ },
10136
+ {
10137
+ type: 'Number',
10138
+ addonAfter: 'px',
10139
+ name: ['props', 'customTitle', 'style', 'fontSize']
10140
+ }
10141
+ ]
10142
+ },
10143
+ {
10144
+ label: '样式',
10145
+ type: 'TextStyle',
10146
+ name: ['props', 'customTitle', 'style']
10147
+ },
10148
+ {
10149
+ label: '对齐',
10150
+ type: 'TextAlign',
10151
+ name: ['props', 'customTitle', 'style']
10152
+ },
10153
+ {
10154
+ label: '上边距',
10155
+ type: 'Number',
10156
+ name: ['props', 'customTitle', 'style', 'marginTop'],
10157
+ addonAfter: 'px'
10158
+ }
10159
+ ]
10160
+ }
10161
+ ];
10048
10162
 
10049
10163
  const Link$1 = (_a) => {
10050
- var _b, _c, _d, _e, _f, _g, _h;
10051
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
10164
+ var _b, _c, _d, _e, _f, _g, _h, _j;
10165
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
10052
10166
  const { sxpParameter, bffEventReport } = useSxpDataSource();
10053
10167
  const { jumpToWeb } = useEventReport();
10054
10168
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
@@ -10068,27 +10182,24 @@ const Link$1 = (_a) => {
10068
10182
  width: '100%',
10069
10183
  overflow: 'hidden'
10070
10184
  }) },
10071
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10072
- __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)
10073
- } }))));
10185
+ React.createElement("div", null,
10186
+ React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10187
+ __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)
10188
+ } }),
10189
+ (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: 'one-line-ellipsis', dangerouslySetInnerHTML: {
10190
+ __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
10191
+ } }))))));
10074
10192
  };
10075
10193
  var LinkComponent = React.memo(Link$1);
10076
10194
 
10077
- /*
10078
- * @Author: binruan@chatlabs.com
10079
- * @Date: 2023-07-28 18:29:57
10080
- * @LastEditors: binruan@chatlabs.com
10081
- * @LastEditTime: 2024-03-29 17:04:57
10082
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\material.tsx
10083
- *
10084
- */
10195
+ var _a;
10085
10196
  const Link = createMaterial(LinkComponent, {
10086
10197
  displayName: '跳转指引',
10087
10198
  icon: '',
10088
10199
  category: 'template',
10089
10200
  type: 'Link',
10090
10201
  related: {
10091
- settingRender: settingRender$2 === null || settingRender$2 === void 0 ? void 0 : settingRender$2.filter((i) => i.type !== 'commodityTitle'),
10202
+ settingRender: (_a = settingRender$2 === null || settingRender$2 === void 0 ? void 0 : settingRender$2.filter((i) => i.type !== 'commodityTitle')) === null || _a === void 0 ? void 0 : _a.concat(linkSettingRender),
10092
10203
  bindableProps: []
10093
10204
  },
10094
10205
  defaulSetting: {
@@ -10107,6 +10218,18 @@ const Link = createMaterial(LinkComponent, {
10107
10218
  width: 130,
10108
10219
  height: 20
10109
10220
  }
10221
+ },
10222
+ customTitle: {
10223
+ style: {
10224
+ textAlign: 'left',
10225
+ textDecoration: 'underline',
10226
+ fontWeight: 'bold',
10227
+ width: 130,
10228
+ height: 20,
10229
+ fontSize: 12,
10230
+ color: '#000'
10231
+ },
10232
+ text: '探索更多'
10110
10233
  }
10111
10234
  },
10112
10235
  style: {
@@ -10892,7 +11015,7 @@ var settingRender$1 = [
10892
11015
  * @Author: binruan@chatlabs.com
10893
11016
  * @Date: 2023-12-26 16:11:34
10894
11017
  * @LastEditors: binruan@chatlabs.com
10895
- * @LastEditTime: 2024-06-27 10:19:28
11018
+ * @LastEditTime: 2024-07-04 18:34:18
10896
11019
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
10897
11020
  *
10898
11021
  */
@@ -10901,7 +11024,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
10901
11024
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
10902
11025
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
10903
11026
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
10904
- React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
11027
+ 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: {
10905
11028
  __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
10906
11029
  } })));
10907
11030
  };
@@ -12496,7 +12619,7 @@ function WaterfallList$1(_a) {
12496
12619
  var _a, _b;
12497
12620
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12498
12621
  reportTagsView();
12499
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12622
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12500
12623
  }
12501
12624
  };
12502
12625
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12731,7 +12854,7 @@ function WaterfallList(_a) {
12731
12854
  var _a, _b;
12732
12855
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12733
12856
  reportTagsView();
12734
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12857
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12735
12858
  }
12736
12859
  };
12737
12860
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12884,7 +13007,7 @@ var HashTagComponent = React.memo(HashTag$1);
12884
13007
  * @Author: binruan@chatlabs.com
12885
13008
  * @Date: 2023-07-28 18:29:57
12886
13009
  * @LastEditors: binruan@chatlabs.com
12887
- * @LastEditTime: 2024-04-30 10:13:13
13010
+ * @LastEditTime: 2024-07-04 18:38:10
12888
13011
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
12889
13012
  *
12890
13013
  */
@@ -12904,7 +13027,8 @@ const HashTag = createMaterial(HashTagComponent, {
12904
13027
  textStyles: {
12905
13028
  hashTagTitle: {
12906
13029
  fontSize: 16,
12907
- color: '#000'
13030
+ color: '#000',
13031
+ textAlign: 'center'
12908
13032
  },
12909
13033
  hashTagDesc: {
12910
13034
  fontSize: 12,
@@ -13581,11 +13705,11 @@ const Picture = (props) => {
13581
13705
  * @Author: lewinlu@chatlabs.com
13582
13706
  * @Date: 2024-01-03 14:39:09
13583
13707
  * @LastEditors: binruan@chatlabs.com
13584
- * @LastEditTime: 2024-06-07 14:05:08
13708
+ * @LastEditTime: 2024-07-02 18:25:17
13585
13709
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
13586
13710
  */
13587
13711
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
13588
- var _a;
13712
+ var _a, _b;
13589
13713
  const ref = React.useRef();
13590
13714
  const { isActive } = useSwiperSlide();
13591
13715
  const { sxpParameter, openHashtag } = useSxpDataSource();
@@ -13612,7 +13736,14 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
13612
13736
  // if (!isActive) {
13613
13737
  // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
13614
13738
  // }
13615
- return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: { clickable: true, bulletActiveClass: 'swipe-item-active-bullet' }, height: height, loop: true, autoplay: { delay: ((_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _a !== void 0 ? _a : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
13739
+ return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
13740
+ clickable: true,
13741
+ bulletActiveClass: 'swipe-item-active-bullet'
13742
+ }, className: css.css(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
13743
+ '.swiper-pagination': {
13744
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
13745
+ }
13746
+ }))), height: height, loop: true, autoplay: { delay: ((_b = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.delay) !== null && _b !== void 0 ? _b : 3) * 1000 } }, imgUrls === null || imgUrls === void 0 ? void 0 : imgUrls.map((url, index) => {
13616
13747
  return (React.createElement(SwiperSlide, { key: index },
13617
13748
  React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
13618
13749
  })));
@@ -13777,7 +13908,7 @@ var RenderCard$1 = React.memo(RenderCard);
13777
13908
  * @Author: binruan@chatlabs.com
13778
13909
  * @Date: 2024-03-26 10:07:41
13779
13910
  * @LastEditors: binruan@chatlabs.com
13780
- * @LastEditTime: 2024-07-01 17:47:33
13911
+ * @LastEditTime: 2024-07-03 10:07:29
13781
13912
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
13782
13913
  *
13783
13914
  */
@@ -13791,7 +13922,7 @@ const Nudge = ({ nudge }) => {
13791
13922
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
13792
13923
  } },
13793
13924
  (nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? (React.createElement("img", { src: nudge.icon, alt: 'nudge icon', style: { height: '100%', objectFit: 'cover', flexShrink: 0 } })) : null,
13794
- React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0 }), dangerouslySetInnerHTML: {
13925
+ React.createElement("p", { style: Object.assign(Object.assign({}, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle), { textWrap: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', flex: 1, marginBottom: 0, marginTop: 0 }), dangerouslySetInnerHTML: {
13795
13926
  __html: setFontForText(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
13796
13927
  } })))));
13797
13928
  };
@@ -13856,7 +13987,7 @@ var Tagbar$1 = React.memo(Tagbar);
13856
13987
  * @Author: binruan@chatlabs.com
13857
13988
  * @Date: 2024-01-15 19:03:09
13858
13989
  * @LastEditors: binruan@chatlabs.com
13859
- * @LastEditTime: 2024-07-01 11:49:58
13990
+ * @LastEditTime: 2024-07-04 18:04:10
13860
13991
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13861
13992
  *
13862
13993
  */
@@ -14244,7 +14375,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14244
14375
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
14245
14376
  top: minusHeight
14246
14377
  } }),
14247
- 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,
14378
+ 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,
14248
14379
  React.createElement(Swiper, { style: {
14249
14380
  marginTop: tagHeight
14250
14381
  }, ref: swiperRef, onSlideChange: () => {
@@ -14269,13 +14400,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14269
14400
  }
14270
14401
  }
14271
14402
  }, direction: 'vertical', height: height },
14272
- React.createElement(ToggleButton$1, { style: {
14403
+ ((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: {
14273
14404
  position: 'fixed',
14274
14405
  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',
14275
14406
  zIndex: 999,
14276
14407
  [(_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,
14277
14408
  [(_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
14278
- }, 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 }),
14409
+ }, 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 })),
14279
14410
  renderView),
14280
14411
  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))));
14281
14412
  };