pb-sxp-ui 1.10.4 → 1.10.6
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 +53 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +53 -28
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +53 -28
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/Pagebuilder/type.d.ts +1 -0
- package/es/core/components/SxpPageRender/FingerSwipeTip/index.js +2 -1
- package/es/core/components/SxpPageRender/FormatImage.js +9 -7
- package/es/core/components/SxpPageRender/LikeButton/index.js +2 -1
- package/es/core/components/SxpPageRender/Modal/index.js +2 -1
- package/es/core/components/SxpPageRender/NavBack.js +2 -1
- package/es/core/components/SxpPageRender/Nudge/index.js +2 -2
- package/es/core/components/SxpPageRender/ToggleButton/index.js +2 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +3 -1
- package/es/core/components/SxpPageRender/index.js +8 -6
- package/es/core/context/EditorDataProvider.d.ts +2 -3
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/es/core/utils/tool.d.ts +2 -1
- package/es/core/utils/tool.js +14 -1
- package/es/materials/sxp/MultiPosts/index.js +3 -1
- package/es/materials/sxp/cta/AniLinkPopup/index.js +2 -2
- package/lib/core/Pagebuilder/type.d.ts +1 -0
- package/lib/core/components/SxpPageRender/FingerSwipeTip/index.js +2 -1
- package/lib/core/components/SxpPageRender/FormatImage.js +9 -7
- package/lib/core/components/SxpPageRender/LikeButton/index.js +2 -1
- package/lib/core/components/SxpPageRender/Modal/index.js +2 -1
- package/lib/core/components/SxpPageRender/NavBack.js +2 -1
- package/lib/core/components/SxpPageRender/Nudge/index.js +1 -1
- package/lib/core/components/SxpPageRender/ToggleButton/index.js +2 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +3 -1
- package/lib/core/components/SxpPageRender/index.js +8 -6
- package/lib/core/context/EditorDataProvider.d.ts +2 -3
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/utils/tool.d.ts +2 -1
- package/lib/core/utils/tool.js +15 -1
- package/lib/materials/sxp/MultiPosts/index.js +3 -1
- package/lib/materials/sxp/cta/AniLinkPopup/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -309,6 +309,19 @@ function getScreenReader() {
|
|
309
309
|
/JAWS/i.test(userAgent) ||
|
310
310
|
/ChromeVox/i.test(userAgent));
|
311
311
|
}
|
312
|
+
const getSpliceQueryUrl = (url) => {
|
313
|
+
if (!url)
|
314
|
+
return '';
|
315
|
+
if ((url === null || url === void 0 ? void 0 : url.indexOf('http')) === -1)
|
316
|
+
return url;
|
317
|
+
let query = 'x-im-piez=on';
|
318
|
+
if ((url === null || url === void 0 ? void 0 : url.indexOf('?')) !== -1) {
|
319
|
+
return url + ('&' + query );
|
320
|
+
}
|
321
|
+
else {
|
322
|
+
return url + ('?' + query );
|
323
|
+
}
|
324
|
+
};
|
312
325
|
|
313
326
|
function unzip(b64Data) {
|
314
327
|
const strData = atob(b64Data);
|
@@ -933,7 +946,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
933
946
|
body: jsonParams,
|
934
947
|
type: 'beacon'
|
935
948
|
});
|
936
|
-
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview]);
|
949
|
+
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview, globalConfig]);
|
937
950
|
const bffMutateLike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
938
951
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/recommend/like', { method: 'POST', body }));
|
939
952
|
return res === null || res === void 0 ? void 0 : res.success;
|
@@ -9765,7 +9778,7 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
9765
9778
|
* @Author: binruan@chatlabs.com
|
9766
9779
|
* @Date: 2023-11-02 18:34:34
|
9767
9780
|
* @LastEditors: binruan@chatlabs.com
|
9768
|
-
* @LastEditTime: 2024-
|
9781
|
+
* @LastEditTime: 2024-12-04 11:34:20
|
9769
9782
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
9770
9783
|
*
|
9771
9784
|
*/
|
@@ -9949,7 +9962,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
9949
9962
|
}
|
9950
9963
|
})), child()),
|
9951
9964
|
React.createElement("button", { className: 'modal-icon-wrapper', role: 'button', "aria-label": 'close button', onClick: onClose, style: { top: scrollTop } },
|
9952
|
-
React.createElement("img", { src: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) || closeIcon$1, alt: 'close button', className: 'modal-icon' }))))))), modalEleRef.current);
|
9965
|
+
React.createElement("img", { src: getSpliceQueryUrl((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) || closeIcon$1), alt: 'close button', className: 'modal-icon' }))))))), modalEleRef.current);
|
9953
9966
|
};
|
9954
9967
|
var Modal$1 = memo(Modal);
|
9955
9968
|
|
@@ -10022,19 +10035,20 @@ var ExpandableText$1 = memo(ExpandableText);
|
|
10022
10035
|
|
10023
10036
|
const FormatImage = forwardRef((props, ref) => {
|
10024
10037
|
const { src, onLoad, style, className, loading, alt = 'image' } = props;
|
10025
|
-
const
|
10038
|
+
const querySrc = src ? getSpliceQueryUrl(src) : '';
|
10039
|
+
const [imgSrc, setImgSrc] = useState(querySrc);
|
10026
10040
|
const imgRef = useRef(null);
|
10027
10041
|
const [visible, setVisible] = useState(false);
|
10028
10042
|
useImperativeHandle(ref, () => ({
|
10029
10043
|
setSrc: (v) => {
|
10030
10044
|
if (v)
|
10031
|
-
setImgSrc(v);
|
10045
|
+
setImgSrc(getSpliceQueryUrl(v));
|
10032
10046
|
}
|
10033
10047
|
}));
|
10034
10048
|
useEffect(() => {
|
10035
|
-
if (
|
10036
|
-
setImgSrc(
|
10037
|
-
}, [
|
10049
|
+
if (querySrc)
|
10050
|
+
setImgSrc(querySrc);
|
10051
|
+
}, [querySrc]);
|
10038
10052
|
useEffect(() => {
|
10039
10053
|
const onShow = () => {
|
10040
10054
|
if (src && !visible && imgRef.current) {
|
@@ -10051,8 +10065,8 @@ const FormatImage = forwardRef((props, ref) => {
|
|
10051
10065
|
!visible && !imgSrc && React.createElement("div", { style: { width: '100%', height: '100%', zIndex: 1, backgroundColor: '#fff' } }),
|
10052
10066
|
(imgSrc === null || imgSrc === void 0 ? void 0 : imgSrc.includes('.avif')) ? (React.createElement("picture", null,
|
10053
10067
|
React.createElement("source", { type: 'image/avif', srcSet: imgSrc }),
|
10054
|
-
React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}
|
10055
|
-
React.createElement("source", { type: 'image/jpeg', srcSet: `${imgSrc}
|
10068
|
+
React.createElement("source", { type: 'image/webp', srcSet: `${imgSrc}&imageMogr2/format/webp` }),
|
10069
|
+
React.createElement("source", { type: 'image/jpeg', srcSet: `${imgSrc}&imageMogr2/format/jpg` }),
|
10056
10070
|
React.createElement("img", { ref: imgRef, className: className, src: imgSrc, style: Object.assign({}, style), loading: loading, onLoad: (e) => {
|
10057
10071
|
setVisible(true);
|
10058
10072
|
onLoad === null || onLoad === void 0 ? void 0 : onLoad(e.target);
|
@@ -16287,7 +16301,7 @@ const AniLinkPopup$1 = (_a) => {
|
|
16287
16301
|
paddingLeft: '6px'
|
16288
16302
|
} }, "Cta Title")) : (React.createElement("div", Object.assign({}, props, { className: `${css(Object.assign(Object.assign({}, style), { '--transY': `translateY(calc(100% + ${(_r = style === null || style === void 0 ? void 0 : style.margin) !== null && _r !== void 0 ? _r : 0}px))` }))} ${styles['aniLinkPopup']} ${aniNamStyle} ${css(aniTimStyle)}`, onClick: handleTo }),
|
16289
16303
|
React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_s = style === null || style === void 0 ? void 0 : style['padding']) !== null && _s !== void 0 ? _s : 0 } },
|
16290
|
-
React.createElement("img", { src: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) || closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
|
16304
|
+
React.createElement("img", { src: getSpliceQueryUrl((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) || closeIcon), alt: 'close', className: styles['modal-icon-wrapper-img'] })),
|
16291
16305
|
React.createElement(Img$1, { src: src, rec: recData, item: (_x = (_v = (_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.bindProducts) === null || _u === void 0 ? void 0 : _u[0]) !== null && _v !== void 0 ? _v : (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.bindProduct) !== null && _x !== void 0 ? _x : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
16292
16306
|
(!recData || (product === null || product === void 0 ? void 0 : product.title)) && (React.createElement("div", { className: styles['one-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
16293
16307
|
__html: setFontForText((_y = product === null || product === void 0 ? void 0 : product.title) !== null && _y !== void 0 ? _y : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
|
@@ -16598,7 +16612,7 @@ var settingRender$1 = [
|
|
16598
16612
|
* @Author: binruan@chatlabs.com
|
16599
16613
|
* @Date: 2023-12-26 10:38:53
|
16600
16614
|
* @LastEditors: binruan@chatlabs.com
|
16601
|
-
* @LastEditTime: 2024-
|
16615
|
+
* @LastEditTime: 2024-12-03 16:43:47
|
16602
16616
|
* @FilePath: \pb-sxp-ui\src\core\context\EditorDataProvider.tsx
|
16603
16617
|
*
|
16604
16618
|
*/
|
@@ -16895,6 +16909,7 @@ const MultiPosts$1 = (_a) => {
|
|
16895
16909
|
});
|
16896
16910
|
}, []);
|
16897
16911
|
const endMultiPost = useCallback((nextStep) => {
|
16912
|
+
curTime.current = new Date();
|
16898
16913
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
16899
16914
|
eventInfo: {
|
16900
16915
|
eventSubject: 'endMultiPost',
|
@@ -16930,7 +16945,7 @@ const MultiPosts$1 = (_a) => {
|
|
16930
16945
|
}, [isActive]);
|
16931
16946
|
return (React.createElement("div", { className: 'multiposts', style: Object.assign(Object.assign({}, style), getBgStyle(bgImgUrl)) }, Array.from({ length: 4 }, (_, index) => {
|
16932
16947
|
return (React.createElement("button", { hidden: !getPropsVal(index, 'Url'), className: 'multiposts-btn', role: 'button', "aria-label": `multiposts-${index + 1}`, onClick: () => handleClick(index) },
|
16933
|
-
React.createElement("img", { className: 'multiposts-btn-img', src: getPropsVal(index, 'Url'), alt: `multiposts-img-${index + 1}` })));
|
16948
|
+
React.createElement("img", { className: 'multiposts-btn-img', src: getSpliceQueryUrl(getPropsVal(index, 'Url')), alt: `multiposts-img-${index + 1}` })));
|
16934
16949
|
})));
|
16935
16950
|
};
|
16936
16951
|
var MultiPosts$2 = memo(MultiPosts$1);
|
@@ -17117,7 +17132,7 @@ const LikeButton = (_a) => {
|
|
17117
17132
|
}
|
17118
17133
|
}), 200);
|
17119
17134
|
return (React.createElement("button", Object.assign({}, props, { "aria-label": 'like', onClick: handleClick }),
|
17120
|
-
React.createElement("img", { style: { width: '100%', height: '100%', objectFit: 'contain' }, src: state ? activeIcon || likeIcon : unActicveIcon || unlikeIcon, alt: 'icon' })));
|
17135
|
+
React.createElement("img", { style: { width: '100%', height: '100%', objectFit: 'contain' }, src: getSpliceQueryUrl(state ? activeIcon || likeIcon : unActicveIcon || unlikeIcon), alt: 'icon' })));
|
17121
17136
|
};
|
17122
17137
|
var LikeButton$1 = memo(LikeButton);
|
17123
17138
|
|
@@ -17331,9 +17346,10 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
17331
17346
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
17332
17347
|
if (!isActive)
|
17333
17348
|
return;
|
17334
|
-
|
17349
|
+
let videoSrc = rec === null || rec === void 0 ? void 0 : rec.video.url;
|
17335
17350
|
if (!videoSrc)
|
17336
17351
|
return;
|
17352
|
+
videoSrc = getSpliceQueryUrl(videoSrc);
|
17337
17353
|
const videoPlayerWrapperNode = document.querySelector(`#${videoId}`);
|
17338
17354
|
if (!videoPlayerWrapperNode)
|
17339
17355
|
return;
|
@@ -17517,7 +17533,7 @@ const ToggleButton = ({ defaultValue, activeIcon, unactiveIcon, onChange, style
|
|
17517
17533
|
setIsTure(defaultValue);
|
17518
17534
|
}, [defaultValue]);
|
17519
17535
|
return (React.createElement("button", { style: style, "aria-label": 'toggle button', className: 'pb-toggle-button', onClick: handleClick },
|
17520
|
-
React.createElement("img", { className: 'pb-toggle-button-icon', alt: 'toggle image', src: isTrue ? activeIcon : unactiveIcon })));
|
17536
|
+
React.createElement("img", { className: 'pb-toggle-button-icon', alt: 'toggle image', src: getSpliceQueryUrl(isTrue ? activeIcon : unactiveIcon) })));
|
17521
17537
|
};
|
17522
17538
|
var ToggleButton$1 = memo(ToggleButton);
|
17523
17539
|
|
@@ -17525,7 +17541,7 @@ var ToggleButton$1 = memo(ToggleButton);
|
|
17525
17541
|
* @Author: binruan@chatlabs.com
|
17526
17542
|
* @Date: 2024-01-15 19:03:09
|
17527
17543
|
* @LastEditors: binruan@chatlabs.com
|
17528
|
-
* @LastEditTime: 2024-
|
17544
|
+
* @LastEditTime: 2024-12-04 11:24:16
|
17529
17545
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FingerSwipeTip\index.tsx
|
17530
17546
|
*
|
17531
17547
|
*/
|
@@ -17542,7 +17558,7 @@ const FingerSwipeTip = ({ imageUrl, style, duration = 2000 }) => {
|
|
17542
17558
|
return show ? 'pb-fadeIn' : 'pb-fadeOut';
|
17543
17559
|
}, [show]);
|
17544
17560
|
return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: Object.assign(Object.assign({}, style), { animationDuration: `${duration / 1000}s` }) },
|
17545
|
-
React.createElement("img", { src: imageUrl || FINGER_SWIPE_ICON, alt: 'finger swiper' })));
|
17561
|
+
React.createElement("img", { src: getSpliceQueryUrl(imageUrl || FINGER_SWIPE_ICON), alt: 'finger swiper' })));
|
17546
17562
|
};
|
17547
17563
|
|
17548
17564
|
/*
|
@@ -17849,7 +17865,7 @@ var RenderCard$1 = memo(RenderCard);
|
|
17849
17865
|
* @Author: binruan@chatlabs.com
|
17850
17866
|
* @Date: 2024-03-26 10:07:41
|
17851
17867
|
* @LastEditors: binruan@chatlabs.com
|
17852
|
-
* @LastEditTime: 2024-
|
17868
|
+
* @LastEditTime: 2024-12-04 11:29:23
|
17853
17869
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Nudge\index.tsx
|
17854
17870
|
*
|
17855
17871
|
*/
|
@@ -17862,7 +17878,7 @@ const Nudge = ({ nudge }) => {
|
|
17862
17878
|
backgroundColor: nudge === null || nudge === void 0 ? void 0 : nudge.backgroundColor,
|
17863
17879
|
borderRadius: (_f = nudge === null || nudge === void 0 ? void 0 : nudge.borderRadius) !== null && _f !== void 0 ? _f : 4
|
17864
17880
|
} },
|
17865
|
-
(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,
|
17881
|
+
(nudge === null || nudge === void 0 ? void 0 : nudge.icon) ? (React.createElement("img", { src: getSpliceQueryUrl(nudge.icon), alt: 'nudge icon', style: { height: '100%', objectFit: 'cover', flexShrink: 0 } })) : null,
|
17866
17882
|
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: {
|
17867
17883
|
__html: setFontForText(nudge === null || nudge === void 0 ? void 0 : nudge.content, nudge === null || nudge === void 0 ? void 0 : nudge.textStyle)
|
17868
17884
|
} })))));
|
@@ -17955,7 +17971,7 @@ const NavBack = ({ data, minusHeight, tagHeight, onClick }) => {
|
|
17955
17971
|
padding: 0,
|
17956
17972
|
background: 'transparent'
|
17957
17973
|
}, role: 'button', "aria-label": 'back button', onClick: onClick },
|
17958
|
-
React.createElement("img", { src: (data === null || data === void 0 ? void 0 : data.icon) || img, alt: 'back button', width: 100, style: { objectFit: 'cover' } })));
|
17974
|
+
React.createElement("img", { src: getSpliceQueryUrl((data === null || data === void 0 ? void 0 : data.icon) || img), alt: 'back button', width: 100, style: { objectFit: 'cover' } })));
|
17959
17975
|
};
|
17960
17976
|
var NavBack$1 = memo(NavBack);
|
17961
17977
|
|
@@ -17963,7 +17979,15 @@ var NavBack$1 = memo(NavBack);
|
|
17963
17979
|
* @Author: binruan@chatlabs.com
|
17964
17980
|
* @Date: 2024-03-20 10:27:31
|
17965
17981
|
* @LastEditors: binruan@chatlabs.com
|
17966
|
-
* @LastEditTime: 2024-12-
|
17982
|
+
* @LastEditTime: 2024-12-04 16:13:02
|
17983
|
+
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
17984
|
+
*
|
17985
|
+
*/
|
17986
|
+
/*
|
17987
|
+
* @Author: binruan@chatlabs.com
|
17988
|
+
* @Date: 2024-03-20 10:27:31
|
17989
|
+
* @LastEditors: binruan@chatlabs.com
|
17990
|
+
* @LastEditTime: 2024-12-03 15:27:20
|
17967
17991
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
17968
17992
|
*
|
17969
17993
|
*/
|
@@ -18154,7 +18178,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18154
18178
|
new Function(link)();
|
18155
18179
|
}
|
18156
18180
|
})),
|
18157
|
-
React.createElement("img", { src: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl, alt: 'logo' })));
|
18181
|
+
React.createElement("img", { src: getSpliceQueryUrl(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl), alt: 'logo' })));
|
18158
18182
|
}
|
18159
18183
|
return null;
|
18160
18184
|
}, [globalConfig, activeIndex, visList]);
|
@@ -18444,7 +18468,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18444
18468
|
const renderView = useMemo(() => {
|
18445
18469
|
if (loading) {
|
18446
18470
|
return (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
18447
|
-
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } })));
|
18471
|
+
React.createElement("img", { width: 64, height: 64, src: getSpliceQueryUrl(loadingImage), alt: 'loading...', style: { objectFit: 'contain' } })));
|
18448
18472
|
}
|
18449
18473
|
return visList === null || visList === void 0 ? void 0 : visList.map((rec, index) => {
|
18450
18474
|
return (React.createElement(SwiperSlide, { key: index, virtualIndex: index, style: { overflow: 'hidden' } }, rec && (React.createElement(React.Fragment, null, (rec === null || rec === void 0 ? void 0 : rec.loading) ? (React.createElement("div", { style: {
|
@@ -18454,7 +18478,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18454
18478
|
justifyContent: 'center',
|
18455
18479
|
alignItems: 'center'
|
18456
18480
|
} },
|
18457
|
-
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement(React.Fragment, null,
|
18481
|
+
React.createElement("img", { width: 64, height: 64, src: getSpliceQueryUrl(loadingImage), alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement(React.Fragment, null,
|
18458
18482
|
renderBottom(rec, index),
|
18459
18483
|
renderLikeButton(rec, index, !(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
18460
18484
|
renderToggleButton(!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
|
@@ -18484,14 +18508,15 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18484
18508
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
18485
18509
|
top: minusHeight
|
18486
18510
|
} }),
|
18487
|
-
((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
|
18488
|
-
((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
|
18511
|
+
((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && !waterFallData && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
|
18512
|
+
((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
|
18513
|
+
!waterFallData && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
|
18489
18514
|
var _a, _b, _c;
|
18490
18515
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
18491
18516
|
eventInfo: {
|
18492
18517
|
eventSubject: 'backMultiPostClick',
|
18493
18518
|
eventDescription: 'backMultiPostClick',
|
18494
|
-
traceInfo: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[
|
18519
|
+
traceInfo: (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data[activeIndex]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.traceInfo) !== null && _c !== void 0 ? _c : ''
|
18495
18520
|
}
|
18496
18521
|
});
|
18497
18522
|
location === null || location === void 0 ? void 0 : location.reload();
|