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.css CHANGED
@@ -238,15 +238,6 @@
238
238
  word-wrap: break-word;
239
239
  }
240
240
 
241
- .index-module_tow-line-ellipsis__nkBlU {
242
- display: -webkit-box;
243
- -webkit-box-orient: vertical;
244
- -webkit-line-clamp: 2;
245
- text-overflow: ellipsis;
246
- overflow: hidden;
247
- word-wrap: break-word;
248
- }
249
-
250
241
  .index-module_tow-line-ellipsis__yyHVb {
251
242
  display: -webkit-box;
252
243
  -webkit-box-orient: vertical;
@@ -1604,6 +1595,8 @@ button.swiper-pagination-bullet {
1604
1595
  box-sizing: border-box;
1605
1596
  gap: 6px;
1606
1597
  margin-left: 20px;
1598
+ -webkit-transform: translate3d(0px, 0px, 0px);
1599
+ transform: translate3d(0px, 0px, 0px);
1607
1600
  }
1608
1601
  .clc-sxp-bottom-text {
1609
1602
  padding: 0 20px;
@@ -1663,6 +1656,8 @@ button.swiper-pagination-bullet {
1663
1656
  }
1664
1657
  .clc-sxp-nav-title {
1665
1658
  font-size: 16px;
1659
+ width: 100%;
1660
+ text-align: center;
1666
1661
  }
1667
1662
  .clc-pb-video-pause {
1668
1663
  position: absolute;
package/dist/index.js CHANGED
@@ -8806,7 +8806,7 @@ const CommodityDetail$1 = (_a) => {
8806
8806
  width: '100%',
8807
8807
  objectFit: 'cover',
8808
8808
  display: 'block',
8809
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8809
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
8810
8810
  }, src: src }))));
8811
8811
  }))),
8812
8812
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -9403,7 +9403,7 @@ Made in Italy` })));
9403
9403
  width: '100%',
9404
9404
  objectFit: 'cover',
9405
9405
  display: 'block',
9406
- objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? -(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9406
+ objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9407
9407
  }, src: src }))));
9408
9408
  }))),
9409
9409
  !((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
@@ -9515,7 +9515,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
9515
9515
  * @Author: binruan@chatlabs.com
9516
9516
  * @Date: 2024-03-26 16:50:25
9517
9517
  * @LastEditors: binruan@chatlabs.com
9518
- * @LastEditTime: 2024-06-27 09:55:59
9518
+ * @LastEditTime: 2024-07-04 17:47:52
9519
9519
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
9520
9520
  *
9521
9521
  */
@@ -9760,6 +9760,11 @@ var settingRender$2 = [
9760
9760
  label: '对齐',
9761
9761
  type: 'TextAlign',
9762
9762
  name: ['props', 'ctaTempStyles', 'ctaTitle']
9763
+ },
9764
+ {
9765
+ label: '间距',
9766
+ type: 'TextSpace',
9767
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
9763
9768
  }
9764
9769
  ]
9765
9770
  }
@@ -9807,7 +9812,7 @@ const EventProvider = (_a) => {
9807
9812
  };
9808
9813
  var EventProvider$1 = memo(EventProvider);
9809
9814
 
9810
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9815
+ var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9811
9816
 
9812
9817
  /*
9813
9818
  * @Author: binruan@chatlabs.com
@@ -9840,7 +9845,7 @@ function useOnScreen(ref) {
9840
9845
  * @Author: binruan@chatlabs.com
9841
9846
  * @Date: 2024-01-16 14:50:13
9842
9847
  * @LastEditors: binruan@chatlabs.com
9843
- * @LastEditTime: 2024-06-24 18:13:14
9848
+ * @LastEditTime: 2024-07-04 18:13:23
9844
9849
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
9845
9850
  *
9846
9851
  */
@@ -9861,7 +9866,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
9861
9866
  }, [src]);
9862
9867
  return (React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
9863
9868
  React.createElement("div", { ref: ref, hidden: !src, className: css({ width: '100%', height: '100%' }) },
9864
- React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? -translateY + 50 : 50}%` }, style)), src: src }))));
9869
+ React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
9865
9870
  };
9866
9871
  var Img$1 = memo(Img);
9867
9872
 
@@ -9881,7 +9886,7 @@ const Commodity$1 = (_a) => {
9881
9886
  width: '100%',
9882
9887
  overflow: 'hidden'
9883
9888
  }) },
9884
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9889
+ React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
9885
9890
  __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)
9886
9891
  } }),
9887
9892
  React.createElement("div", { className: 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: {
@@ -10022,11 +10027,120 @@ const Appoint = createMaterial(AppointComponent, {
10022
10027
  sort: 6
10023
10028
  });
10024
10029
 
10025
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU"};
10030
+ /*
10031
+ * @Author: binruan@chatlabs.com
10032
+ * @Date: 2024-07-02 14:51:32
10033
+ * @LastEditors: binruan@chatlabs.com
10034
+ * @LastEditTime: 2024-07-02 16:44:34
10035
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\settingRender.tsx
10036
+ *
10037
+ */
10038
+ var linkSettingRender = [
10039
+ {
10040
+ title: '自定义标题',
10041
+ child: [
10042
+ {
10043
+ type: 'Switch',
10044
+ label: '自定义标题开关',
10045
+ name: ['props', 'customTitle', 'display']
10046
+ },
10047
+ {
10048
+ type: 'Text',
10049
+ label: '标题文案',
10050
+ name: ['props', 'customTitle', 'text']
10051
+ },
10052
+ {
10053
+ type: 'Group',
10054
+ label: '尺寸',
10055
+ child: [
10056
+ {
10057
+ type: 'Number',
10058
+ name: ['props', 'customTitle', 'style', 'width'],
10059
+ addonAfter: 'W'
10060
+ },
10061
+ {
10062
+ type: 'Number',
10063
+ name: ['props', 'customTitle', 'style', 'height'],
10064
+ addonAfter: 'H'
10065
+ }
10066
+ ]
10067
+ },
10068
+ {
10069
+ type: 'Group',
10070
+ label: '圆角',
10071
+ child: [
10072
+ {
10073
+ type: 'Slider',
10074
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10075
+ max: 100
10076
+ },
10077
+ {
10078
+ type: 'Number',
10079
+ name: ['props', 'customTitle', 'style', 'borderRadius'],
10080
+ addonAfter: 'px',
10081
+ max: 100
10082
+ }
10083
+ ]
10084
+ },
10085
+ {
10086
+ type: 'Color',
10087
+ label: '背景色',
10088
+ name: ['props', 'customTitle', 'style', 'backgroundColor']
10089
+ },
10090
+ {
10091
+ type: 'Group',
10092
+ label: '字体',
10093
+ child: [
10094
+ {
10095
+ type: 'Select',
10096
+ name: ['props', 'customTitle', 'style', 'fontFamily-cn'],
10097
+ bottomText: '中文字体'
10098
+ },
10099
+ {
10100
+ type: 'Select',
10101
+ name: ['props', 'customTitle', 'style', 'fontFamily-en'],
10102
+ bottomText: '英文/其他字体'
10103
+ }
10104
+ ]
10105
+ },
10106
+ {
10107
+ type: 'Group',
10108
+ label: '',
10109
+ child: [
10110
+ {
10111
+ type: 'Color',
10112
+ name: ['props', 'customTitle', 'style', 'color']
10113
+ },
10114
+ {
10115
+ type: 'Number',
10116
+ addonAfter: 'px',
10117
+ name: ['props', 'customTitle', 'style', 'fontSize']
10118
+ }
10119
+ ]
10120
+ },
10121
+ {
10122
+ label: '样式',
10123
+ type: 'TextStyle',
10124
+ name: ['props', 'customTitle', 'style']
10125
+ },
10126
+ {
10127
+ label: '对齐',
10128
+ type: 'TextAlign',
10129
+ name: ['props', 'customTitle', 'style']
10130
+ },
10131
+ {
10132
+ label: '上边距',
10133
+ type: 'Number',
10134
+ name: ['props', 'customTitle', 'style', 'marginTop'],
10135
+ addonAfter: 'px'
10136
+ }
10137
+ ]
10138
+ }
10139
+ ];
10026
10140
 
10027
10141
  const Link$1 = (_a) => {
10028
- var _b, _c, _d, _e, _f, _g, _h;
10029
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index"]);
10142
+ var _b, _c, _d, _e, _f, _g, _h, _j;
10143
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, index, customTitle } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "index", "customTitle"]);
10030
10144
  const { sxpParameter, bffEventReport } = useSxpDataSource();
10031
10145
  const { jumpToWeb } = useEventReport();
10032
10146
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
@@ -10046,27 +10160,24 @@ const Link$1 = (_a) => {
10046
10160
  width: '100%',
10047
10161
  overflow: 'hidden'
10048
10162
  }) },
10049
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10050
- __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)
10051
- } }))));
10163
+ React.createElement("div", null,
10164
+ React.createElement("div", { className: 'tow-line-ellipsis', style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
10165
+ __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)
10166
+ } }),
10167
+ (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: {
10168
+ __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
10169
+ } }))))));
10052
10170
  };
10053
10171
  var LinkComponent = memo(Link$1);
10054
10172
 
10055
- /*
10056
- * @Author: binruan@chatlabs.com
10057
- * @Date: 2023-07-28 18:29:57
10058
- * @LastEditors: binruan@chatlabs.com
10059
- * @LastEditTime: 2024-03-29 17:04:57
10060
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\material.tsx
10061
- *
10062
- */
10173
+ var _a;
10063
10174
  const Link = createMaterial(LinkComponent, {
10064
10175
  displayName: '跳转指引',
10065
10176
  icon: '',
10066
10177
  category: 'template',
10067
10178
  type: 'Link',
10068
10179
  related: {
10069
- settingRender: settingRender$2 === null || settingRender$2 === void 0 ? void 0 : settingRender$2.filter((i) => i.type !== 'commodityTitle'),
10180
+ 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),
10070
10181
  bindableProps: []
10071
10182
  },
10072
10183
  defaulSetting: {
@@ -10085,6 +10196,18 @@ const Link = createMaterial(LinkComponent, {
10085
10196
  width: 130,
10086
10197
  height: 20
10087
10198
  }
10199
+ },
10200
+ customTitle: {
10201
+ style: {
10202
+ textAlign: 'left',
10203
+ textDecoration: 'underline',
10204
+ fontWeight: 'bold',
10205
+ width: 130,
10206
+ height: 20,
10207
+ fontSize: 12,
10208
+ color: '#000'
10209
+ },
10210
+ text: '探索更多'
10088
10211
  }
10089
10212
  },
10090
10213
  style: {
@@ -10870,7 +10993,7 @@ var settingRender$1 = [
10870
10993
  * @Author: binruan@chatlabs.com
10871
10994
  * @Date: 2023-12-26 16:11:34
10872
10995
  * @LastEditors: binruan@chatlabs.com
10873
- * @LastEditTime: 2024-06-27 10:19:28
10996
+ * @LastEditTime: 2024-07-04 18:34:18
10874
10997
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
10875
10998
  *
10876
10999
  */
@@ -10879,7 +11002,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
10879
11002
  const { waterFallData, setOpenHashtag } = useSxpDataSource();
10880
11003
  return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
10881
11004
  React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
10882
- React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
11005
+ 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: {
10883
11006
  __html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
10884
11007
  } })));
10885
11008
  };
@@ -12474,7 +12597,7 @@ function WaterfallList$1(_a) {
12474
12597
  var _a, _b;
12475
12598
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12476
12599
  reportTagsView();
12477
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12600
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12478
12601
  }
12479
12602
  };
12480
12603
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12709,7 +12832,7 @@ function WaterfallList(_a) {
12709
12832
  var _a, _b;
12710
12833
  if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
12711
12834
  reportTagsView();
12712
- window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
12835
+ window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
12713
12836
  }
12714
12837
  };
12715
12838
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
@@ -12862,7 +12985,7 @@ var HashTagComponent = memo(HashTag$1);
12862
12985
  * @Author: binruan@chatlabs.com
12863
12986
  * @Date: 2023-07-28 18:29:57
12864
12987
  * @LastEditors: binruan@chatlabs.com
12865
- * @LastEditTime: 2024-04-30 10:13:13
12988
+ * @LastEditTime: 2024-07-04 18:38:10
12866
12989
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
12867
12990
  *
12868
12991
  */
@@ -12882,7 +13005,8 @@ const HashTag = createMaterial(HashTagComponent, {
12882
13005
  textStyles: {
12883
13006
  hashTagTitle: {
12884
13007
  fontSize: 16,
12885
- color: '#000'
13008
+ color: '#000',
13009
+ textAlign: 'center'
12886
13010
  },
12887
13011
  hashTagDesc: {
12888
13012
  fontSize: 12,
@@ -13559,11 +13683,11 @@ const Picture = (props) => {
13559
13683
  * @Author: lewinlu@chatlabs.com
13560
13684
  * @Date: 2024-01-03 14:39:09
13561
13685
  * @LastEditors: binruan@chatlabs.com
13562
- * @LastEditTime: 2024-06-07 14:05:08
13686
+ * @LastEditTime: 2024-07-02 18:25:17
13563
13687
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
13564
13688
  */
13565
13689
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
13566
- var _a;
13690
+ var _a, _b;
13567
13691
  const ref = useRef();
13568
13692
  const { isActive } = useSwiperSlide();
13569
13693
  const { sxpParameter, openHashtag } = useSxpDataSource();
@@ -13590,7 +13714,14 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
13590
13714
  // if (!isActive) {
13591
13715
  // return <img src={sxpParameter?.placeholder_image} style={{ width, height, objectFit: 'cover' }} />;
13592
13716
  // }
13593
- 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) => {
13717
+ return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
13718
+ clickable: true,
13719
+ bulletActiveClass: 'swipe-item-active-bullet'
13720
+ }, className: css(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
13721
+ '.swiper-pagination': {
13722
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
13723
+ }
13724
+ }))), 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) => {
13594
13725
  return (React.createElement(SwiperSlide, { key: index },
13595
13726
  React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
13596
13727
  })));
@@ -13755,7 +13886,7 @@ var RenderCard$1 = memo(RenderCard);
13755
13886
  * @Author: binruan@chatlabs.com
13756
13887
  * @Date: 2024-03-26 10:07:41
13757
13888
  * @LastEditors: binruan@chatlabs.com
13758
- * @LastEditTime: 2024-07-01 17:47:33
13889
+ * @LastEditTime: 2024-07-03 10:07:29
13759
13890
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
13760
13891
  *
13761
13892
  */
@@ -13769,7 +13900,7 @@ const Nudge = ({ nudge }) => {
13769
13900
  borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
13770
13901
  } },
13771
13902
  (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,
13772
- 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: {
13903
+ 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: {
13773
13904
  __html: setFontForText(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
13774
13905
  } })))));
13775
13906
  };
@@ -13834,7 +13965,7 @@ var Tagbar$1 = memo(Tagbar);
13834
13965
  * @Author: binruan@chatlabs.com
13835
13966
  * @Date: 2024-01-15 19:03:09
13836
13967
  * @LastEditors: binruan@chatlabs.com
13837
- * @LastEditTime: 2024-07-01 11:49:58
13968
+ * @LastEditTime: 2024-07-04 18:04:10
13838
13969
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
13839
13970
  *
13840
13971
  */
@@ -14222,7 +14353,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14222
14353
  React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
14223
14354
  top: minusHeight
14224
14355
  } }),
14225
- 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,
14356
+ 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,
14226
14357
  React.createElement(Swiper, { style: {
14227
14358
  marginTop: tagHeight
14228
14359
  }, ref: swiperRef, onSlideChange: () => {
@@ -14247,13 +14378,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
14247
14378
  }
14248
14379
  }
14249
14380
  }, direction: 'vertical', height: height },
14250
- React.createElement(ToggleButton$1, { style: {
14381
+ ((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: {
14251
14382
  position: 'fixed',
14252
14383
  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',
14253
14384
  zIndex: 999,
14254
14385
  [(_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,
14255
14386
  [(_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
14256
- }, 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 }),
14387
+ }, 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 })),
14257
14388
  renderView),
14258
14389
  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))));
14259
14390
  };