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/pb-ui.js CHANGED
@@ -8821,7 +8821,7 @@
8821
8821
  width: '100%',
8822
8822
  objectFit: 'cover',
8823
8823
  display: 'block',
8824
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8824
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8825
8825
  }, src: src }))));
8826
8826
  }))),
8827
8827
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9418,7 +9418,7 @@ Made in Italy` })));
9418
9418
  width: '100%',
9419
9419
  objectFit: 'cover',
9420
9420
  display: 'block',
9421
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9421
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9422
9422
  }, src: src }))));
9423
9423
  }))),
9424
9424
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
@@ -9530,7 +9530,7 @@ Made in Italy` })));
9530
9530
  * @Author: binruan@chatlabs.com
9531
9531
  * @Date: 2024-03-26 16:50:25
9532
9532
  * @LastEditors: binruan@chatlabs.com
9533
- * @LastEditTime: 2024-06-27 09:55:59
9533
+ * @LastEditTime: 2024-07-04 17:47:52
9534
9534
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
9535
9535
  *
9536
9536
  */
@@ -9775,6 +9775,11 @@ Made in Italy` })));
9775
9775
  label: '对齐',
9776
9776
  type: 'TextAlign',
9777
9777
  name: ['props', 'ctaTempStyles', 'ctaTitle']
9778
+ },
9779
+ {
9780
+ label: '间距',
9781
+ type: 'TextSpace',
9782
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
9778
9783
  }
9779
9784
  ]
9780
9785
  }
@@ -9822,7 +9827,7 @@ Made in Italy` })));
9822
9827
  };
9823
9828
  var EventProvider$1 = React.memo(EventProvider);
9824
9829
 
9825
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9830
+ var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9826
9831
 
9827
9832
  /*
9828
9833
  * @Author: binruan@chatlabs.com
@@ -9855,7 +9860,7 @@ Made in Italy` })));
9855
9860
  * @Author: binruan@chatlabs.com
9856
9861
  * @Date: 2024-01-16 14:50:13
9857
9862
  * @LastEditors: binruan@chatlabs.com
9858
- * @LastEditTime: 2024-06-24 18:13:14
9863
+ * @LastEditTime: 2024-07-04 18:13:23
9859
9864
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
9860
9865
  *
9861
9866
  */
@@ -9876,7 +9881,7 @@ Made in Italy` })));
9876
9881
  }, [src]);
9877
9882
  return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
9878
9883
  React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
9879
- 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 }))));
9884
+ 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 }))));
9880
9885
  };
9881
9886
  var Img$1 = React.memo(Img);
9882
9887
 
@@ -9896,7 +9901,7 @@ Made in Italy` })));
9896
9901
  width: '100%',
9897
9902
  overflow: 'hidden'
9898
9903
  }) },
9899
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9904
+ React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9900
9905
  __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)
9901
9906
  } }),
9902
9907
  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: {
@@ -10037,11 +10042,120 @@ Made in Italy` })));
10037
10042
  sort: 6
10038
10043
  });
10039
10044
 
10040
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};
10045
+ /*
10046
+ * @Author: binruan@chatlabs.com
10047
+ * @Date: 2024-07-02 14:51:32
10048
+ * @LastEditors: binruan@chatlabs.com
10049
+ * @LastEditTime: 2024-07-02 16:44:34
10050
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\settingRender.tsx
10051
+ *
10052
+ */
10053
+ var linkSettingRender = [
10054
+ {
10055
+ title: '自定义标题',
10056
+ child: [
10057
+ {
10058
+ type: 'Switch',
10059
+ label: '自定义标题开关',
10060
+ name: ['props', 'customTitle', 'display']
10061
+ },
10062
+ {
10063
+ type: 'Text',
10064
+ label: '标题文案',
10065
+ name: ['props', 'customTitle', 'text']
10066
+ },
10067
+ {
10068
+ type: 'Group',
10069
+ label: '尺寸',
10070
+ child: [
10071
+ {
10072
+ type: 'Number',
10073
+ name: ['props', 'customTitle', 'style', 'width'],
10074
+ addonAfter: 'W'
10075
+ },
10076
+ {
10077
+ type: 'Number',
10078
+ name: ['props', 'customTitle', 'style', 'height'],
10079
+ addonAfter: 'H'
10080
+ }
10081
+ ]
10082
+ },
10083
+ {
10084
+ type: 'Group',
10085
+ label: '圆角',
10086
+ child: [
10087
+ {
10088
+ type: 'Slider',
10089
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10090
+ max: 100
10091
+ },
10092
+ {
10093
+ type: 'Number',
10094
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10095
+ addonAfter: 'px',
10096
+ max: 100
10097
+ }
10098
+ ]
10099
+ },
10100
+ {
10101
+ type: 'Color',
10102
+ label: '背景色',
10103
+ name: ['props', 'customTitle', 'style', 'backgroundColor']
10104
+ },
10105
+ {
10106
+ type: 'Group',
10107
+ label: '字体',
10108
+ child: [
10109
+ {
10110
+ type: 'Select',
10111
+ name: ['props', 'customTitle', 'style', 'fontFamily-cn'],
10112
+ bottomText: '中文字体'
10113
+ },
10114
+ {
10115
+ type: 'Select',
10116
+ name: ['props', 'customTitle', 'style', 'fontFamily-en'],
10117
+ bottomText: '英文/其他字体'
10118
+ }
10119
+ ]
10120
+ },
10121
+ {
10122
+ type: 'Group',
10123
+ label: '',
10124
+ child: [
10125
+ {
10126
+ type: 'Color',
10127
+ name: ['props', 'customTitle', 'style', 'color']
10128
+ },
10129
+ {
10130
+ type: 'Number',
10131
+ addonAfter: 'px',
10132
+ name: ['props', 'customTitle', 'style', 'fontSize']
10133
+ }
10134
+ ]
10135
+ },
10136
+ {
10137
+ label: '样式',
10138
+ type: 'TextStyle',
10139
+ name: ['props', 'customTitle', 'style']
10140
+ },
10141
+ {
10142
+ label: '对齐',
10143
+ type: 'TextAlign',
10144
+ name: ['props', 'customTitle', 'style']
10145
+ },
10146
+ {
10147
+ label: '上边距',
10148
+ type: 'Number',
10149
+ name: ['props', 'customTitle', 'style', 'marginTop'],
10150
+ addonAfter: 'px'
10151
+ }
10152
+ ]
10153
+ }
10154
+ ];
10041
10155
 
10042
10156
  const Link$1 = (_a) => {
10043
- var _b, _c, _d, _e, _f, _g, _h;
10044
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
10157
+ var _b, _c, _d, _e, _f, _g, _h, _j;
10158
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
10045
10159
  const { sxpParameter, bffEventReport } = useSxpDataSource();
10046
10160
  const { jumpToWeb } = useEventReport();
10047
10161
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
@@ -10061,27 +10175,24 @@ Made in Italy` })));
10061
10175
  width: '100%',
10062
10176
  overflow: 'hidden'
10063
10177
  }) },
10064
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10065
- __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)
10066
- } }))));
10178
+ React.createElement("div", null,
10179
+ React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10180
+ __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)
10181
+ } }),
10182
+ (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: {
10183
+ __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
10184
+ } }))))));
10067
10185
  };
10068
10186
  var LinkComponent = React.memo(Link$1);
10069
10187
 
10070
- /*
10071
- * @Author: binruan@chatlabs.com
10072
- * @Date: 2023-07-28 18:29:57
10073
- * @LastEditors: binruan@chatlabs.com
10074
- * @LastEditTime: 2024-03-29 17:04:57
10075
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\material.tsx
10076
- *
10077
- */
10188
+ var _a;
10078
10189
  const Link = createMaterial(LinkComponent, {
10079
10190
  displayName: '跳转指引',
10080
10191
  icon: '',
10081
10192
  category: 'template',
10082
10193
  type: 'Link',
10083
10194
  related: {
10084
- settingRender: settingRender$2 === null || settingRender$2 === void 0 ? void 0 : settingRender$2.filter((i) => i.type !== 'commodityTitle'),
10195
+ 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),
10085
10196
  bindableProps: []
10086
10197
  },
10087
10198
  defaulSetting: {
@@ -10100,6 +10211,18 @@ Made in Italy` })));
10100
10211
  width: 130,
10101
10212
  height: 20
10102
10213
  }
10214
+ },
10215
+ customTitle: {
10216
+ style: {
10217
+ textAlign: 'left',
10218
+ textDecoration: 'underline',
10219
+ fontWeight: 'bold',
10220
+ width: 130,
10221
+ height: 20,
10222
+ fontSize: 12,
10223
+ color: '#000'
10224
+ },
10225
+ text: '探索更多'
10103
10226
  }
10104
10227
  },
10105
10228
  style: {
@@ -10885,7 +11008,7 @@ Made in Italy` })));
10885
11008
  * @Author: binruan@chatlabs.com
10886
11009
  * @Date: 2023-12-26 16:11:34
10887
11010
  * @LastEditors: binruan@chatlabs.com
10888
- * @LastEditTime: 2024-06-27 10:19:28
11011
+ * @LastEditTime: 2024-07-04 18:34:18
10889
11012
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
10890
11013
  *
10891
11014
  */
@@ -10894,7 +11017,7 @@ Made in Italy` })));
10894
11017
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
10895
11018
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
10896
11019
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
10897
- React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
11020
+ 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: {
10898
11021
  __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
10899
11022
  } })));
10900
11023
  };
@@ -12489,7 +12612,7 @@ Made in Italy` })));
12489
12612
  var _a, _b;
12490
12613
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12491
12614
  reportTagsView();
12492
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12615
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12493
12616
  }
12494
12617
  };
12495
12618
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12724,7 +12847,7 @@ Made in Italy` })));
12724
12847
  var _a, _b;
12725
12848
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12726
12849
  reportTagsView();
12727
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12850
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12728
12851
  }
12729
12852
  };
12730
12853
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12877,7 +13000,7 @@ Made in Italy` })));
12877
13000
  * @Author: binruan@chatlabs.com
12878
13001
  * @Date: 2023-07-28 18:29:57
12879
13002
  * @LastEditors: binruan@chatlabs.com
12880
- * @LastEditTime: 2024-04-30 10:13:13
13003
+ * @LastEditTime: 2024-07-04 18:38:10
12881
13004
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
12882
13005
  *
12883
13006
  */
@@ -12897,7 +13020,8 @@ Made in Italy` })));
12897
13020
  textStyles: {
12898
13021
  hashTagTitle: {
12899
13022
  fontSize: 16,
12900
- color: '#000'
13023
+ color: '#000',
13024
+ textAlign: 'center'
12901
13025
  },
12902
13026
  hashTagDesc: {
12903
13027
  fontSize: 12,
@@ -13574,11 +13698,11 @@ Made in Italy` })));
13574
13698
  * @Author: lewinlu@chatlabs.com
13575
13699
  * @Date: 2024-01-03 14:39:09
13576
13700
  * @LastEditors: binruan@chatlabs.com
13577
- * @LastEditTime: 2024-06-07 14:05:08
13701
+ * @LastEditTime: 2024-07-02 18:25:17
13578
13702
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
13579
13703
  */
13580
13704
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
13581
- var _a;
13705
+ var _a, _b;
13582
13706
  const ref = React.useRef();
13583
13707
  const { isActive } = useSwiperSlide();
13584
13708
  const { sxpParameter, openHashtag } = useSxpDataSource();
@@ -13605,7 +13729,14 @@ Made in Italy` })));
13605
13729
  // if (!isActive) {
13606
13730
  // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
13607
13731
  // }
13608
- 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) => {
13732
+ return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
13733
+ clickable: true,
13734
+ bulletActiveClass: 'swipe-item-active-bullet'
13735
+ }, className: css.css(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
13736
+ '.swiper-pagination': {
13737
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
13738
+ }
13739
+ }))), 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) => {
13609
13740
  return (React.createElement(SwiperSlide, { key: index },
13610
13741
  React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
13611
13742
  })));
@@ -13770,7 +13901,7 @@ Made in Italy` })));
13770
13901
  * @Author: binruan@chatlabs.com
13771
13902
  * @Date: 2024-03-26 10:07:41
13772
13903
  * @LastEditors: binruan@chatlabs.com
13773
- * @LastEditTime: 2024-07-01 17:47:33
13904
+ * @LastEditTime: 2024-07-03 10:07:29
13774
13905
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
13775
13906
  *
13776
13907
  */
@@ -13784,7 +13915,7 @@ Made in Italy` })));
13784
13915
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
13785
13916
  } },
13786
13917
  (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,
13787
- 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: {
13918
+ 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: {
13788
13919
  __html: setFontForText(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
13789
13920
  } })))));
13790
13921
  };
@@ -13849,7 +13980,7 @@ Made in Italy` })));
13849
13980
  * @Author: binruan@chatlabs.com
13850
13981
  * @Date: 2024-01-15 19:03:09
13851
13982
  * @LastEditors: binruan@chatlabs.com
13852
- * @LastEditTime: 2024-07-01 11:49:58
13983
+ * @LastEditTime: 2024-07-04 18:04:10
13853
13984
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13854
13985
  *
13855
13986
  */
@@ -14237,7 +14368,7 @@ Made in Italy` })));
14237
14368
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
14238
14369
  top: minusHeight
14239
14370
  } }),
14240
- 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,
14371
+ 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,
14241
14372
  React.createElement(Swiper, { style: {
14242
14373
  marginTop: tagHeight
14243
14374
  }, ref: swiperRef, onSlideChange: () => {
@@ -14262,13 +14393,13 @@ Made in Italy` })));
14262
14393
  }
14263
14394
  }
14264
14395
  }, direction: 'vertical', height: height },
14265
- React.createElement(ToggleButton$1, { style: {
14396
+ ((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: {
14266
14397
  position: 'fixed',
14267
14398
  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',
14268
14399
  zIndex: 999,
14269
14400
  [(_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,
14270
14401
  [(_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
14271
- }, 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 }),
14402
+ }, 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 })),
14272
14403
  renderView),
14273
14404
  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))));
14274
14405
  };