pb-sxp-ui 1.4.1 → 1.4.3
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.
- package/dist/index.cjs +36 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -30
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +36 -30
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/FormatImage.js +2 -2
- package/es/core/components/SxpPageRender/Modal/index.js +2 -2
- package/es/core/components/SxpPageRender/PictureGroup/index.js +6 -3
- package/es/core/components/SxpPageRender/index.js +6 -6
- package/es/materials/sxp/popup/CommodityDetail/index.js +5 -5
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +12 -9
- package/lib/core/components/SxpPageRender/FormatImage.js +2 -2
- package/lib/core/components/SxpPageRender/Modal/index.js +2 -2
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +6 -3
- package/lib/core/components/SxpPageRender/index.js +6 -6
- package/lib/materials/sxp/popup/CommodityDetail/index.js +5 -5
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +12 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -8892,7 +8892,7 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
8892
8892
|
* @Author: binruan@chatlabs.com
|
8893
8893
|
* @Date: 2023-11-02 18:34:34
|
8894
8894
|
* @LastEditors: binruan@chatlabs.com
|
8895
|
-
* @LastEditTime: 2024-08-
|
8895
|
+
* @LastEditTime: 2024-08-30 11:45:21
|
8896
8896
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8897
8897
|
*
|
8898
8898
|
*/
|
@@ -9011,9 +9011,9 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
9011
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)`,
|
9012
9012
|
height: '100%'
|
9013
9013
|
} },
|
9014
|
-
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 && {
|
9015
9015
|
transform: `translateY(${modalTrans}px)`
|
9016
|
-
})), onClick: (e) => {
|
9016
|
+
})), { overflow: 'hidden' }), onClick: (e) => {
|
9017
9017
|
e.stopPropagation();
|
9018
9018
|
e.preventDefault();
|
9019
9019
|
} }, (isScrollFullScreen && {
|
@@ -9102,7 +9102,7 @@ var ExpandableText$1 = React.memo(ExpandableText);
|
|
9102
9102
|
|
9103
9103
|
const FormatImage = React.forwardRef((props, ref) => {
|
9104
9104
|
const { src, onLoad, style, className, loading, alt = 'image' } = props;
|
9105
|
-
const [imgSrc, setImgSrc] = React.useState();
|
9105
|
+
const [imgSrc, setImgSrc] = React.useState(src);
|
9106
9106
|
const imgRef = React.useRef(null);
|
9107
9107
|
const [visible, setVisible] = React.useState(false);
|
9108
9108
|
React.useImperativeHandle(ref, () => ({
|
@@ -9128,7 +9128,7 @@ const FormatImage = React.forwardRef((props, ref) => {
|
|
9128
9128
|
};
|
9129
9129
|
}, [src, visible]);
|
9130
9130
|
return (React.createElement(React.Fragment, null,
|
9131
|
-
!visible && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
|
9131
|
+
!visible && !imgSrc && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
|
9132
9132
|
(imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
|
9133
9133
|
React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
|
9134
9134
|
React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}?imageMogr2/format/webp` }),
|
@@ -9197,7 +9197,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
9197
9197
|
var CommodityGroup$1 = React.memo(CommodityGroup);
|
9198
9198
|
|
9199
9199
|
const CommodityDetail$1 = (_a) => {
|
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;
|
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;
|
9201
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"]);
|
9202
9202
|
const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
|
9203
9203
|
const { jumpToWeb, productView } = useEventReport();
|
@@ -9328,7 +9328,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9328
9328
|
clickableClass: getDotsAlign
|
9329
9329
|
}, loop: true, autoplay: {
|
9330
9330
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
9331
|
-
}, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination':
|
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) && {
|
9332
9332
|
'.swiper-pagination-bullet': {
|
9333
9333
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
9334
9334
|
opacity: 1
|
@@ -9339,7 +9339,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9339
9339
|
opacity: 1
|
9340
9340
|
}
|
9341
9341
|
}))) },
|
9342
|
-
React.createElement(React.Fragment, null, (
|
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) => {
|
9343
9343
|
var _a;
|
9344
9344
|
return (React.createElement(SwiperSlide, { key: src },
|
9345
9345
|
React.createElement("div", { style: {
|
@@ -9355,7 +9355,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9355
9355
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9356
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 }))));
|
9357
9357
|
})))),
|
9358
|
-
!((
|
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({
|
9359
9359
|
height,
|
9360
9360
|
width
|
9361
9361
|
}) },
|
@@ -9363,7 +9363,7 @@ const CommodityDetail$1 = (_a) => {
|
|
9363
9363
|
objectFit: 'cover',
|
9364
9364
|
width: '100%',
|
9365
9365
|
height: '100%'
|
9366
|
-
}), src: (
|
9366
|
+
}), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
|
9367
9367
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
9368
9368
|
display: 'flex',
|
9369
9369
|
alignItems: 'center',
|
@@ -10077,7 +10077,7 @@ var settingRender$7 = [
|
|
10077
10077
|
];
|
10078
10078
|
|
10079
10079
|
const CommodityDetailDiroNew$1 = (_a) => {
|
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;
|
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;
|
10081
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"]);
|
10082
10082
|
React.useState(true);
|
10083
10083
|
const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
|
@@ -10239,7 +10239,10 @@ Made in Italy` })));
|
|
10239
10239
|
clickableClass: getDotsAlign
|
10240
10240
|
}, loop: true, autoplay: {
|
10241
10241
|
delay: (swiper === null || swiper === void 0 ? void 0 : swiper.delay) * 1000
|
10242
|
-
}, ref: ref, className: css.css(Object.assign(Object.assign({ '.swiper-pagination':
|
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) && {
|
10243
10246
|
'.swiper-pagination-bullet': {
|
10244
10247
|
backgroundColor: swiper === null || swiper === void 0 ? void 0 : swiper.dotsBgColor,
|
10245
10248
|
opacity: 1
|
@@ -10249,7 +10252,7 @@ Made in Italy` })));
|
|
10249
10252
|
backgroundColor: `${swiper === null || swiper === void 0 ? void 0 : swiper.dotsActiveColor}!important`,
|
10250
10253
|
opacity: 1
|
10251
10254
|
}
|
10252
|
-
}))) }, (
|
10255
|
+
}))) }, (_y = product === null || product === void 0 ? void 0 : product.homePage) === null || _y === void 0 ? void 0 : _y.map((src) => {
|
10253
10256
|
var _a;
|
10254
10257
|
return (React.createElement(SwiperSlide, { key: src },
|
10255
10258
|
React.createElement("div", { style: {
|
@@ -10265,7 +10268,7 @@ Made in Italy` })));
|
|
10265
10268
|
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
10266
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 }))));
|
10267
10270
|
}))),
|
10268
|
-
!((
|
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({
|
10269
10272
|
height,
|
10270
10273
|
width
|
10271
10274
|
}) },
|
@@ -10273,7 +10276,7 @@ Made in Italy` })));
|
|
10273
10276
|
objectFit: 'cover',
|
10274
10277
|
width: '100%',
|
10275
10278
|
height: '100%'
|
10276
|
-
}), src: (
|
10279
|
+
}), src: (_0 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _0 !== void 0 ? _0 : bottom_image, alt: 'pdp image' }))),
|
10277
10280
|
(iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
|
10278
10281
|
display: 'flex',
|
10279
10282
|
alignItems: 'center',
|
@@ -10290,7 +10293,7 @@ Made in Italy` })));
|
|
10290
10293
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
10291
10294
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
10292
10295
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: getStyle(commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title), dangerouslySetInnerHTML: {
|
10293
|
-
__html: setFontForText((
|
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)
|
10294
10297
|
} }),
|
10295
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: {
|
10296
10299
|
__html: setFontForText((product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage CalfskinLarge', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
|
@@ -10300,11 +10303,11 @@ Made in Italy` })));
|
|
10300
10303
|
__html: setFontForText(priceText, commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
|
10301
10304
|
} }),
|
10302
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: {
|
10303
|
-
__html: setFontForText((
|
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)
|
10304
10307
|
} }))),
|
10305
|
-
(!product || (product === null || product === void 0 ? void 0 : product.link)) && (React.createElement("button", { "aria-label": (
|
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 },
|
10306
10309
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
10307
|
-
__html: setFontForText((
|
10310
|
+
__html: setFontForText((_4 = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _4 !== void 0 ? _4 : 'Shop now', buttonStyle)
|
10308
10311
|
} }))),
|
10309
10312
|
productInfoText({ isPost }))),
|
10310
10313
|
React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) },
|
@@ -15858,11 +15861,11 @@ const Picture = (props) => {
|
|
15858
15861
|
* @Author: lewinlu@chatlabs.com
|
15859
15862
|
* @Date: 2024-01-03 14:39:09
|
15860
15863
|
* @LastEditors: binruan@chatlabs.com
|
15861
|
-
* @LastEditTime: 2024-08-
|
15864
|
+
* @LastEditTime: 2024-08-30 13:58:51
|
15862
15865
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\index.tsx
|
15863
15866
|
*/
|
15864
15867
|
const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageEnd, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
15865
|
-
var _a;
|
15868
|
+
var _a, _b;
|
15866
15869
|
const ref = React.useRef();
|
15867
15870
|
const { isActive } = useSwiperSlide();
|
15868
15871
|
const { sxpParameter, openHashtag } = useSxpDataSource();
|
@@ -15892,7 +15895,10 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
|
|
15892
15895
|
return (React.createElement(Swiper, { ref: ref, defaultValue: 0, direction: 'horizontal', modules: [Pagination, Autoplay], pagination: {
|
15893
15896
|
clickable: true,
|
15894
15897
|
bulletActiveClass: 'swipe-item-active-bullet'
|
15895
|
-
}, className: css.css(Object.assign(Object.assign({ '.swiper-pagination':
|
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) && {
|
15896
15902
|
'.swiper-pagination-bullet': {
|
15897
15903
|
backgroundColor: imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor,
|
15898
15904
|
opacity: 1
|
@@ -15902,7 +15908,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onReportViewImageE
|
|
15902
15908
|
backgroundColor: `${imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsActiveColor}!important`,
|
15903
15909
|
opacity: 1
|
15904
15910
|
}
|
15905
|
-
}))), height: height, loop: true, autoplay: { delay: ((
|
15911
|
+
}))), 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) => {
|
15906
15912
|
return (React.createElement(SwiperSlide, { key: index },
|
15907
15913
|
React.createElement(Picture, { src: !isLoad && index > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
15908
15914
|
})));
|
@@ -16156,12 +16162,12 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
16156
16162
|
* @Author: binruan@chatlabs.com
|
16157
16163
|
* @Date: 2024-01-15 19:03:09
|
16158
16164
|
* @LastEditors: binruan@chatlabs.com
|
16159
|
-
* @LastEditTime: 2024-08-
|
16165
|
+
* @LastEditTime: 2024-08-30 11:42:11
|
16160
16166
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16161
16167
|
*
|
16162
16168
|
*/
|
16163
16169
|
const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.innerHeight, containerWidth = window.innerWidth, tempMap, resolver, data = [], ctaType, tipText, nudge, _schema, hashTagStyle, tagList = [], licenseUrl }) => {
|
16164
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
16170
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
16165
16171
|
const mutedIcon = useIconLink('/pb_static/5beaaa5ce7f3477b99db3838619cc471.png');
|
16166
16172
|
const unmutedIcon = useIconLink('/pb_static/fea8668a8a894e4aa3a86bcc775e895e.png');
|
16167
16173
|
const { schema } = useEditor();
|
@@ -16623,8 +16629,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16623
16629
|
isReload,
|
16624
16630
|
renderToggleButton
|
16625
16631
|
]);
|
16626
|
-
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container', style: {
|
16627
|
-
waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (
|
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` })) },
|
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: () => {
|
16628
16634
|
const isEq = lodash.isEqual(rtcList, cacheRtcList);
|
16629
16635
|
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
16630
16636
|
setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
|
@@ -16635,7 +16641,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16635
16641
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
16636
16642
|
top: minusHeight
|
16637
16643
|
} }),
|
16638
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((
|
16644
|
+
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _f !== void 0 ? _f : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
|
16639
16645
|
React.createElement(Swiper, { style: {
|
16640
16646
|
marginTop: tagHeight
|
16641
16647
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -16658,7 +16664,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16658
16664
|
var _a;
|
16659
16665
|
setIsLoadMore(false);
|
16660
16666
|
if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
16661
|
-
setPageNum(
|
16667
|
+
setPageNum(pageNum + 1);
|
16662
16668
|
}
|
16663
16669
|
});
|
16664
16670
|
}
|
@@ -16667,7 +16673,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16667
16673
|
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
16668
16674
|
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
|
16669
16675
|
renderView),
|
16670
|
-
React.createElement(WaterFall$1, Object.assign({}, (
|
16676
|
+
React.createElement(WaterFall$1, Object.assign({}, (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props))));
|
16671
16677
|
};
|
16672
16678
|
|
16673
16679
|
const PictureGroup = ({ imgUrls, width, height, imgUrlsPostConfig, rec, index }) => {
|