pb-sxp-ui 1.4.0 → 1.4.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 (30) hide show
  1. package/dist/index.cjs +63 -42
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +0 -4
  4. package/dist/index.js +63 -42
  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 +63 -42
  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/Modal/index.js +12 -6
  15. package/es/core/components/SxpPageRender/PictureGroup/index.js +4 -5
  16. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  17. package/es/core/components/SxpPageRender/index.js +3 -3
  18. package/es/materials/sxp/popup/CommodityDetail/index.js +5 -9
  19. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  22. package/lib/core/components/SxpPageRender/Modal/index.js +12 -6
  23. package/lib/core/components/SxpPageRender/PictureGroup/index.js +4 -5
  24. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  25. package/lib/core/components/SxpPageRender/index.js +3 -3
  26. package/lib/materials/sxp/popup/CommodityDetail/index.js +5 -9
  27. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +10 -0
  28. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +15 -15
  29. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +10 -0
  30. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2053,6 +2053,16 @@ var settingRender$9 = [
2053
2053
  addonAfter: 'px'
2054
2054
  }
2055
2055
  ]
2056
+ },
2057
+ {
2058
+ title: '关闭按钮',
2059
+ child: [
2060
+ {
2061
+ label: '跟随弹窗滚动',
2062
+ type: 'Switch',
2063
+ name: ['props', 'enableFixedCloseButton']
2064
+ }
2065
+ ]
2056
2066
  }
2057
2067
  ];
2058
2068
 
@@ -8882,13 +8892,13 @@ SwiperSlide.displayName = 'SwiperSlide';
8882
8892
  * @Author: binruan@chatlabs.com
8883
8893
  * @Date: 2023-11-02 18:34:34
8884
8894
  * @LastEditors: binruan@chatlabs.com
8885
- * @LastEditTime: 2024-08-22 18:48:44
8895
+ * @LastEditTime: 2024-08-30 11:45:21
8886
8896
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8887
8897
  *
8888
8898
  */
8889
8899
  const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
8890
8900
  const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
8891
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
8901
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
8892
8902
  const touchRef = React.useRef(null);
8893
8903
  const fTouchRef = React.useRef(null);
8894
8904
  const touchMoveRef = React.useRef(null);
@@ -8900,6 +8910,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
8900
8910
  const modalEleRef = React.useRef(null);
8901
8911
  const { globalConfig, popupDetailData } = useSxpDataSource();
8902
8912
  const { schema: _schema } = useEditor();
8913
+ const [scrollTop, setScrollTop] = React.useState(15);
8903
8914
  React.useEffect(() => {
8904
8915
  const parentNode = document.getElementById('sxp-render');
8905
8916
  const node = document.getElementById('pb-modal');
@@ -9000,9 +9011,9 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
9000
9011
  width: `calc(100% - ${((_r = (_q = (_p = (_o = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _o === void 0 ? void 0 : _o.props) === null || _p === void 0 ? void 0 : _p.popupBg) === null || _q === void 0 ? void 0 : _q.horizontalMargin) !== null && _r !== void 0 ? _r : 0) * 2}px)`,
9001
9012
  height: '100%'
9002
9013
  } },
9003
- React.createElement("div", Object.assign({ className: `modal-container ${isOpen ? 'modal-popIn' : 'modal-popOut'}`, style: Object.assign({ padding, animationDuration: ((_s = popup === null || popup === void 0 ? void 0 : popup.duration) !== null && _s !== void 0 ? _s : 0) / 1000 + 's' }, (isScrollFullScreen && {
9014
+ React.createElement("div", Object.assign({ className: `modal-container ${isOpen ? 'modal-popIn' : 'modal-popOut'}`, style: Object.assign(Object.assign({ padding, animationDuration: ((_s = popup === null || popup === void 0 ? void 0 : popup.duration) !== null && _s !== void 0 ? _s : 0) / 1000 + 's' }, (isScrollFullScreen && {
9004
9015
  transform: `translateY(${modalTrans}px)`
9005
- })), onClick: (e) => {
9016
+ })), { overflow: 'hidden' }), onClick: (e) => {
9006
9017
  e.stopPropagation();
9007
9018
  e.preventDefault();
9008
9019
  } }, (isScrollFullScreen && {
@@ -9010,12 +9021,17 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
9010
9021
  onTouchStart: handleTouchStart,
9011
9022
  onTouchEnd: handleTouchEnd
9012
9023
  })),
9013
- React.createElement("div", { onClick: onClose, className: 'modal-icon-wrapper' },
9024
+ React.createElement("div", { className: 'modal-icon-wrapper', onClick: onClose, style: { top: scrollTop } },
9014
9025
  React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon$1, alt: 'close', className: 'modal-icon' })),
9015
- React.createElement("div", { ref: ref, style: {
9026
+ React.createElement("div", Object.assign({ ref: ref, style: {
9016
9027
  height: isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H,
9017
9028
  overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
9018
- } }, children)))))), modalEleRef.current);
9029
+ } }, (((_v = (_u = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _u === void 0 ? void 0 : _u.props) === null || _v === void 0 ? void 0 : _v.enableFixedCloseButton) && {
9030
+ onScroll: (e) => {
9031
+ var _a;
9032
+ setScrollTop(15 - ((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.scrollTop));
9033
+ }
9034
+ })), children)))))), modalEleRef.current);
9019
9035
  };
9020
9036
  var Modal$1 = React.memo(Modal);
9021
9037
 
@@ -9181,7 +9197,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
9181
9197
  var CommodityGroup$1 = React.memo(CommodityGroup);
9182
9198
 
9183
9199
  const CommodityDetail$1 = (_a) => {
9184
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9200
+ 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;
9185
9201
  var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
9186
9202
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9187
9203
  const { jumpToWeb, productView } = useEventReport();
@@ -9312,11 +9328,7 @@ const CommodityDetail$1 = (_a) => {
9312
9328
  clickableClass: getDotsAlign
9313
9329
  }, loop: true, autoplay: {
9314
9330
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
9315
- }, ref: ref, className: css.css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
9316
- '.swiper-pagination': {
9317
- bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
9318
- }
9319
- })), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
9331
+ }, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': { bottom: (_x = swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) !== null && _x !== void 0 ? _x : 0, fontSize: '14px' } }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
9320
9332
  '.swiper-pagination-bullet': {
9321
9333
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
9322
9334
  opacity: 1
@@ -9327,7 +9339,7 @@ const CommodityDetail$1 = (_a) => {
9327
9339
  opacity: 1
9328
9340
  }
9329
9341
  }))) },
9330
- React.createElement(React.Fragment, null, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
9342
+ React.createElement(React.Fragment, null, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
9331
9343
  var _a;
9332
9344
  return (React.createElement(SwiperSlide, { key: src },
9333
9345
  React.createElement("div", { style: {
@@ -9343,7 +9355,7 @@ const CommodityDetail$1 = (_a) => {
9343
9355
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
9344
9356
  }, src: (_a = src !== null && src !== void 0 ? src : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _a !== void 0 ? _a : bottom_image }))));
9345
9357
  })))),
9346
- !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css.css({
9358
+ !((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css.css({
9347
9359
  height,
9348
9360
  width
9349
9361
  }) },
@@ -9351,7 +9363,7 @@ const CommodityDetail$1 = (_a) => {
9351
9363
  objectFit: 'cover',
9352
9364
  width: '100%',
9353
9365
  height: '100%'
9354
- }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
9366
+ }), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
9355
9367
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9356
9368
  display: 'flex',
9357
9369
  alignItems: 'center',
@@ -9715,7 +9727,7 @@ const Prompt = createMaterial(PromptComponent, {
9715
9727
  * @Author: binruan@chatlabs.com
9716
9728
  * @Date: 2024-03-26 16:50:25
9717
9729
  * @LastEditors: binruan@chatlabs.com
9718
- * @LastEditTime: 2024-08-28 19:08:24
9730
+ * @LastEditTime: 2024-08-29 16:45:54
9719
9731
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9720
9732
  *
9721
9733
  */
@@ -10051,11 +10063,21 @@ var settingRender$7 = [
10051
10063
  addonAfter: 'px'
10052
10064
  }
10053
10065
  ]
10066
+ },
10067
+ {
10068
+ title: '关闭按钮',
10069
+ child: [
10070
+ {
10071
+ label: '跟随弹窗滚动',
10072
+ type: 'Switch',
10073
+ name: ['props', 'enableFixedCloseButton']
10074
+ }
10075
+ ]
10054
10076
  }
10055
10077
  ];
10056
10078
 
10057
10079
  const CommodityDetailDiroNew$1 = (_a) => {
10058
- 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, _1, _2, _3;
10080
+ 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, _1, _2, _3, _4;
10059
10081
  var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
10060
10082
  React.useState(true);
10061
10083
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
@@ -10213,15 +10235,14 @@ Made in Italy` })));
10213
10235
  React.createElement("div", { style: { position: 'relative' } },
10214
10236
  product && ((_w = product === null || product === void 0 ? void 0 : product.homePage) === null || _w === void 0 ? void 0 : _w.length) > 0 && (React.createElement(Swiper, { height: height, modules: [Pagination, Autoplay], pagination: {
10215
10237
  clickable: true,
10216
- bulletActiveClass: 'commondityDiroNew-swipe-item-active-bullet',
10238
+ bulletActiveClass: 'swipe-item-active-bullet',
10217
10239
  clickableClass: getDotsAlign
10218
10240
  }, loop: true, autoplay: {
10219
10241
  delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
10220
- }, ref: ref, className: css.css(Object.assign(Object.assign(Object.assign({}, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) && {
10221
- '.swiper-pagination': {
10222
- bottom: swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom
10223
- }
10224
- })), ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
10242
+ }, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
10243
+ bottom: (_x = swiper === null || swiper === void 0 ? void 0 : swiper.dotsMarginBottom) !== null && _x !== void 0 ? _x : 0,
10244
+ fontSize: '14px'
10245
+ } }, ((swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor) && {
10225
10246
  '.swiper-pagination-bullet': {
10226
10247
  backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
10227
10248
  opacity: 1
@@ -10231,7 +10252,7 @@ Made in Italy` })));
10231
10252
  backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
10232
10253
  opacity: 1
10233
10254
  }
10234
- }))) }, (_x = product === null || product === void 0 ? void 0 : product.homePage) === null || _x === void 0 ? void 0 : _x.map((src) => {
10255
+ }))) }, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
10235
10256
  var _a;
10236
10257
  return (React.createElement(SwiperSlide, { key: src },
10237
10258
  React.createElement("div", { style: {
@@ -10247,7 +10268,7 @@ Made in Italy` })));
10247
10268
  objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
10248
10269
  }, src: (_a = src !== null && src !== void 0 ? src : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _a !== void 0 ? _a : bottom_image }))));
10249
10270
  }))),
10250
- !((_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.length) && (React.createElement("div", { className: css.css({
10271
+ !((_z = product === null || product === void 0 ? void 0 : product.homePage) === null || _z === void 0 ? void 0 : _z.length) && (React.createElement("div", { className: css.css({
10251
10272
  height,
10252
10273
  width
10253
10274
  }) },
@@ -10255,7 +10276,7 @@ Made in Italy` })));
10255
10276
  objectFit: 'cover',
10256
10277
  width: '100%',
10257
10278
  height: '100%'
10258
- }), src: (_z = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _z !== void 0 ? _z : bottom_image, alt: 'pdp image' }))),
10279
+ }), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
10259
10280
  (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10260
10281
  display: 'flex',
10261
10282
  alignItems: 'center',
@@ -10272,7 +10293,7 @@ Made in Italy` })));
10272
10293
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
10273
10294
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
10274
10295
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
10275
- __html: setFontForText((_0 = product === null || product === void 0 ? void 0 : product.title) !== null && _0 !== void 0 ? _0 : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10296
+ __html: setFontForText((_1 = product === null || product === void 0 ? void 0 : product.title) !== null && _1 !== void 0 ? _1 : 'Large Dior Toujours BagLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10276
10297
  } }),
10277
10298
  React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection), dangerouslySetInnerHTML: {
10278
10299
  __html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
@@ -10282,14 +10303,15 @@ Made in Italy` })));
10282
10303
  __html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
10283
10304
  } }),
10284
10305
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.taxInfo), style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo), dangerouslySetInnerHTML: {
10285
- __html: setFontForText((_1 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _1 !== void 0 ? _1 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
10306
+ __html: setFontForText((_2 = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _2 !== void 0 ? _2 : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
10286
10307
  } }))),
10287
- (!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (_2 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _2 !== void 0 ? _2 : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
10308
+ (!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', onClick: handleLink, className: 'pb-commondityDiroNew-btn', style: buttonStyle },
10288
10309
  React.createElement("span", { dangerouslySetInnerHTML: {
10289
- __html: setFontForText((_3 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _3 !== void 0 ? _3 : 'Shop now', buttonStyle)
10310
+ __html: setFontForText((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
10290
10311
  } }))),
10291
10312
  productInfoText({ isPost }))),
10292
- React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10313
+ React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
10314
+ React.createElement("div", { style: { paddingTop: '20px' } }, productInfoText({ isPost: false }))),
10293
10315
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10294
10316
  React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10295
10317
  React.createElement("iframe", { src: iframeUrl, style: {
@@ -15839,7 +15861,7 @@ const Picture = (props) => {
15839
15861
  * @Author: lewinlu@chatlabs.com
15840
15862
  * @Date: 2024-01-03 14:39:09
15841
15863
  * @LastEditors: binruan@chatlabs.com
15842
- * @LastEditTime: 2024-08-29 09:34:13
15864
+ * @LastEditTime: 2024-08-30 13:58:51
15843
15865
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
15844
15866
  */
15845
15867
  const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
@@ -15873,11 +15895,10 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
15873
15895
  return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
15874
15896
  clickable: true,
15875
15897
  bulletActiveClass: 'swipe-item-active-bullet'
15876
- }, className: css.css(Object.assign(Object.assign(Object.assign({}, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) && {
15877
- '.swiper-pagination': {
15878
- bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0
15879
- }
15880
- })), ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
15898
+ }, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
15899
+ bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
15900
+ fontSize: '14px'
15901
+ } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
15881
15902
  '.swiper-pagination-bullet': {
15882
15903
  backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
15883
15904
  opacity: 1
@@ -16141,7 +16162,7 @@ var Tagbar$1 = React.memo(Tagbar);
16141
16162
  * @Author: binruan@chatlabs.com
16142
16163
  * @Date: 2024-01-15 19:03:09
16143
16164
  * @LastEditors: binruan@chatlabs.com
16144
- * @LastEditTime: 2024-08-28 19:13:38
16165
+ * @LastEditTime: 2024-08-30 11:42:11
16145
16166
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16146
16167
  *
16147
16168
  */
@@ -16158,6 +16179,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16158
16179
  const [isShowMore, setIsShowMore] = React.useState(false);
16159
16180
  const [isReload, setIsReload] = React.useState(new Date().getTime());
16160
16181
  const skipLinkRef = React.useRef(false);
16182
+ const [pageNum, setPageNum] = React.useState(2);
16161
16183
  const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData } = useSxpDataSource();
16162
16184
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
16163
16185
  const isShowFingerTip = React.useMemo(() => {
@@ -16607,7 +16629,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16607
16629
  isReload,
16608
16630
  renderToggleButton
16609
16631
  ]);
16610
- return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
16632
+ return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container', style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
16611
16633
  waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
16612
16634
  const isEq = lodash.isEqual(rtcList, cacheRtcList);
16613
16635
  if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
@@ -16637,13 +16659,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16637
16659
  return;
16638
16660
  if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
16639
16661
  if (!isLoadMore) {
16640
- let pageNum = 2;
16641
16662
  setIsLoadMore(true);
16642
16663
  loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
16643
16664
  var _a;
16644
16665
  setIsLoadMore(false);
16645
16666
  if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
16646
- pageNum++;
16667
+ setPageNum(pageNum + 1);
16647
16668
  }
16648
16669
  });
16649
16670
  }