pb-sxp-ui 1.15.40 → 1.15.42
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 +108 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +108 -53
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +108 -53
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +5 -0
- package/es/core/components/SxpPageRender/PictureGroup/index.js +37 -13
- package/es/core/components/SxpPageRender/VideoWidget/index.js +27 -38
- package/es/core/components/SxpPageRender/index.js +4 -2
- package/es/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +16 -0
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +19 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +2 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +19 -0
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +5 -0
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +36 -12
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +27 -38
- package/lib/core/components/SxpPageRender/index.js +4 -2
- package/lib/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +16 -0
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +19 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +19 -0
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -2263,6 +2263,25 @@
|
|
2263
2263
|
{
|
2264
2264
|
title: '购买按钮样式',
|
2265
2265
|
child: [
|
2266
|
+
{
|
2267
|
+
label: '英文大小写',
|
2268
|
+
type: 'Select',
|
2269
|
+
name: ['props', 'buttonStyle', 'textTransform'],
|
2270
|
+
options: [
|
2271
|
+
{
|
2272
|
+
label: '默认',
|
2273
|
+
value: 'unset'
|
2274
|
+
},
|
2275
|
+
{
|
2276
|
+
label: '小写',
|
2277
|
+
value: 'lowercase'
|
2278
|
+
},
|
2279
|
+
{
|
2280
|
+
label: '大写',
|
2281
|
+
value: 'uppercase'
|
2282
|
+
}
|
2283
|
+
]
|
2284
|
+
},
|
2266
2285
|
{
|
2267
2286
|
type: 'Color',
|
2268
2287
|
label: '背景色',
|
@@ -10655,7 +10674,8 @@
|
|
10655
10674
|
height: 45,
|
10656
10675
|
fontWeight: 'bold',
|
10657
10676
|
textAlign: 'center',
|
10658
|
-
color: 'rgba(255, 255, 255, 0.9)'
|
10677
|
+
color: 'rgba(255, 255, 255, 0.9)',
|
10678
|
+
textTransform: 'unset'
|
10659
10679
|
},
|
10660
10680
|
commodityImgRatio: {
|
10661
10681
|
w: 1,
|
@@ -11123,6 +11143,25 @@
|
|
11123
11143
|
{
|
11124
11144
|
title: '购买按钮样式',
|
11125
11145
|
child: [
|
11146
|
+
{
|
11147
|
+
label: '英文大小写',
|
11148
|
+
type: 'Select',
|
11149
|
+
name: ['props', 'buttonStyle', 'textTransform'],
|
11150
|
+
options: [
|
11151
|
+
{
|
11152
|
+
label: '默认',
|
11153
|
+
value: 'unset'
|
11154
|
+
},
|
11155
|
+
{
|
11156
|
+
label: '小写',
|
11157
|
+
value: 'lowercase'
|
11158
|
+
},
|
11159
|
+
{
|
11160
|
+
label: '大写',
|
11161
|
+
value: 'uppercase'
|
11162
|
+
}
|
11163
|
+
]
|
11164
|
+
},
|
11126
11165
|
{
|
11127
11166
|
type: 'Color',
|
11128
11167
|
label: '背景色',
|
@@ -11615,7 +11654,8 @@ Made in Italy` })));
|
|
11615
11654
|
color: '#fff',
|
11616
11655
|
borderRadius: 25,
|
11617
11656
|
marginTop: 16,
|
11618
|
-
marginBottom: 16
|
11657
|
+
marginBottom: 16,
|
11658
|
+
textTransform: 'unset'
|
11619
11659
|
},
|
11620
11660
|
commodityImgRatio: {
|
11621
11661
|
w: 1,
|
@@ -17778,6 +17818,26 @@ Made in Italy` })));
|
|
17778
17818
|
return;
|
17779
17819
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17780
17820
|
}, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17821
|
+
const handleEnd = () => {
|
17822
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
17823
|
+
if (!videoRef.current)
|
17824
|
+
return;
|
17825
|
+
if (isDiyH5) {
|
17826
|
+
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
17827
|
+
if (!loopPlayRef.current)
|
17828
|
+
return;
|
17829
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
17830
|
+
(_c = (_b = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _b === void 0 ? void 0 : _b.swiper) === null || _c === void 0 ? void 0 : _c.slideTo(0);
|
17831
|
+
}
|
17832
|
+
else {
|
17833
|
+
const i = (_e = (_d = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _d === void 0 ? void 0 : _d.swiper) === null || _e === void 0 ? void 0 : _e.activeIndex;
|
17834
|
+
(_g = (_f = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _f === void 0 ? void 0 : _f.swiper) === null || _g === void 0 ? void 0 : _g.slideTo(i + 1);
|
17835
|
+
}
|
17836
|
+
}
|
17837
|
+
else {
|
17838
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.play();
|
17839
|
+
}
|
17840
|
+
};
|
17781
17841
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
17782
17842
|
const handlePlaying = React.useCallback(() => {
|
17783
17843
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
@@ -17802,11 +17862,6 @@ Made in Italy` })));
|
|
17802
17862
|
isFirstPlayRef.current = false;
|
17803
17863
|
}
|
17804
17864
|
}), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17805
|
-
const setCurrentTimeByStartTime = React.useCallback(() => {
|
17806
|
-
if (isDiyH5) {
|
17807
|
-
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17808
|
-
}
|
17809
|
-
}, []);
|
17810
17865
|
const handLoadeddata = React.useCallback(() => {
|
17811
17866
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
|
17812
17867
|
return;
|
@@ -17831,13 +17886,12 @@ Made in Italy` })));
|
|
17831
17886
|
const handleLoadedmetadata = React.useCallback(() => {
|
17832
17887
|
if (!videoRef.current)
|
17833
17888
|
return;
|
17834
|
-
setCurrentTimeByStartTime();
|
17835
17889
|
loadedTimeRef.current = new Date();
|
17836
17890
|
handleStartPlay();
|
17837
17891
|
handLoadeddata();
|
17838
17892
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
17839
17893
|
const handleClickVideo = React.useCallback((type) => () => {
|
17840
|
-
var _a, _b, _c, _d, _e
|
17894
|
+
var _a, _b, _c, _d, _e;
|
17841
17895
|
if (!videoRef.current)
|
17842
17896
|
return;
|
17843
17897
|
if (!isLoadFinish)
|
@@ -17858,13 +17912,10 @@ Made in Italy` })));
|
|
17858
17912
|
break;
|
17859
17913
|
default:
|
17860
17914
|
if (isPause) {
|
17861
|
-
|
17862
|
-
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17863
|
-
}
|
17864
|
-
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
|
17915
|
+
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
|
17865
17916
|
}
|
17866
17917
|
else {
|
17867
|
-
(
|
17918
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
|
17868
17919
|
}
|
17869
17920
|
setIsPauseVideo(!isPause);
|
17870
17921
|
break;
|
@@ -17902,27 +17953,8 @@ Made in Italy` })));
|
|
17902
17953
|
const handleWaiting = React.useCallback(() => {
|
17903
17954
|
setWaiting(true);
|
17904
17955
|
}, []);
|
17905
|
-
const handleTimeUpload = () => {
|
17906
|
-
if (!videoRef.current || !isDiyH5)
|
17907
|
-
return;
|
17908
|
-
setTimeout(() => {
|
17909
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
17910
|
-
if (Math.round((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.currentTime) >= ((_b = scene === null || scene === void 0 ? void 0 : scene.endTime) !== null && _b !== void 0 ? _b : 0)) {
|
17911
|
-
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
17912
|
-
if (!loopPlayRef.current)
|
17913
|
-
return;
|
17914
|
-
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
17915
|
-
(_e = (_d = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _d === void 0 ? void 0 : _d.swiper) === null || _e === void 0 ? void 0 : _e.slideTo(0);
|
17916
|
-
}
|
17917
|
-
else {
|
17918
|
-
const i = (_g = (_f = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _f === void 0 ? void 0 : _f.swiper) === null || _g === void 0 ? void 0 : _g.activeIndex;
|
17919
|
-
(_j = (_h = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _h === void 0 ? void 0 : _h.swiper) === null || _j === void 0 ? void 0 : _j.slideTo(i + 1);
|
17920
|
-
}
|
17921
|
-
}
|
17922
|
-
});
|
17923
|
-
};
|
17924
17956
|
React.useEffect(() => {
|
17925
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
17957
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
17926
17958
|
if (!isActive)
|
17927
17959
|
return;
|
17928
17960
|
const videoSrc = videoUrl;
|
@@ -17943,7 +17975,6 @@ Made in Italy` })));
|
|
17943
17975
|
hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
|
17944
17976
|
hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
17945
17977
|
var _a;
|
17946
|
-
setCurrentTimeByStartTime();
|
17947
17978
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17948
17979
|
});
|
17949
17980
|
}
|
@@ -17957,12 +17988,11 @@ Made in Italy` })));
|
|
17957
17988
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
|
17958
17989
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
|
17959
17990
|
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
|
17960
|
-
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended',
|
17991
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
|
17961
17992
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
17962
17993
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
17963
|
-
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
|
17964
17994
|
return () => {
|
17965
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
17995
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
17966
17996
|
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
17967
17997
|
if (!isPause)
|
17968
17998
|
handlePause();
|
@@ -17974,10 +18004,9 @@ Made in Italy` })));
|
|
17974
18004
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
|
17975
18005
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
|
17976
18006
|
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
|
17977
|
-
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended',
|
18007
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
|
17978
18008
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
|
17979
18009
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
|
17980
|
-
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
|
17981
18010
|
};
|
17982
18011
|
}, [isActive]);
|
17983
18012
|
React.useEffect(() => {
|
@@ -18188,19 +18217,43 @@ Made in Italy` })));
|
|
18188
18217
|
}, onLoad: onShowFirstImage }))));
|
18189
18218
|
};
|
18190
18219
|
|
18191
|
-
const PictureGroup$4 = ({ imgUrls,
|
18220
|
+
const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
|
18192
18221
|
var _a, _b;
|
18193
18222
|
const { isActive } = useSwiperSlide();
|
18194
|
-
const { sxpParameter, openHashtag } = useSxpDataSource();
|
18223
|
+
const { sxpParameter, openHashtag, isDiyH5 } = useSxpDataSource();
|
18195
18224
|
const [isLoad, setIsLoad] = React.useState(false);
|
18196
18225
|
const [imgInfo, setImgInfo] = React.useState();
|
18197
18226
|
const [swiperActiveIndex, setSwiperActiveIndex] = React.useState(0);
|
18198
|
-
const
|
18227
|
+
const imgsSwiperRef = React.useRef();
|
18199
18228
|
const isFirstPlayRef = React.useRef(true);
|
18229
|
+
const loopPlayRef = React.useRef(true);
|
18200
18230
|
const initTime = new Date();
|
18231
|
+
React.useImperativeHandle(ref, () => {
|
18232
|
+
return {
|
18233
|
+
setLoopPlay(v) {
|
18234
|
+
loopPlayRef.current = v;
|
18235
|
+
}
|
18236
|
+
};
|
18237
|
+
});
|
18238
|
+
React.useEffect(() => {
|
18239
|
+
if (isLoad && isActive && isDiyH5) {
|
18240
|
+
setTimeout(() => {
|
18241
|
+
var _a, _b, _c, _d, _e, _f;
|
18242
|
+
if (!loopPlayRef.current)
|
18243
|
+
return;
|
18244
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
18245
|
+
(_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(0);
|
18246
|
+
}
|
18247
|
+
else {
|
18248
|
+
const i = (_d = (_c = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper) === null || _d === void 0 ? void 0 : _d.activeIndex;
|
18249
|
+
(_f = (_e = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _e === void 0 ? void 0 : _e.swiper) === null || _f === void 0 ? void 0 : _f.slideTo(i + 1);
|
18250
|
+
}
|
18251
|
+
}, 3000);
|
18252
|
+
}
|
18253
|
+
}, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
|
18201
18254
|
React.useEffect(() => {
|
18202
18255
|
if (isLoad && isActive) {
|
18203
|
-
(
|
18256
|
+
(imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
|
18204
18257
|
if (openHashtag) {
|
18205
18258
|
onViewImageEndEvent(rec);
|
18206
18259
|
}
|
@@ -18210,7 +18263,7 @@ Made in Italy` })));
|
|
18210
18263
|
}
|
18211
18264
|
}
|
18212
18265
|
else {
|
18213
|
-
(
|
18266
|
+
(imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
|
18214
18267
|
}
|
18215
18268
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
18216
18269
|
const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -18237,13 +18290,13 @@ Made in Italy` })));
|
|
18237
18290
|
};
|
18238
18291
|
}, [isActive, imgInfo]);
|
18239
18292
|
const handleMouseEnter = React.useCallback(() => {
|
18240
|
-
if (
|
18241
|
-
|
18293
|
+
if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
|
18294
|
+
imgsSwiperRef.current.swiper.autoplay.stop();
|
18242
18295
|
}
|
18243
18296
|
}, []);
|
18244
18297
|
const handleMouseLeave = React.useCallback(() => {
|
18245
|
-
if (
|
18246
|
-
|
18298
|
+
if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
|
18299
|
+
imgsSwiperRef.current.swiper.autoplay.start();
|
18247
18300
|
}
|
18248
18301
|
}, []);
|
18249
18302
|
const handleSlideChange = React.useCallback((swiper) => {
|
@@ -18264,7 +18317,7 @@ Made in Italy` })));
|
|
18264
18317
|
enabled: true
|
18265
18318
|
}
|
18266
18319
|
}
|
18267
|
-
: {}), { loop: true, ref:
|
18320
|
+
: {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
|
18268
18321
|
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
18269
18322
|
fontSize: '14px'
|
18270
18323
|
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
@@ -18281,7 +18334,7 @@ Made in Italy` })));
|
|
18281
18334
|
return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
|
18282
18335
|
React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
18283
18336
|
}))));
|
18284
|
-
};
|
18337
|
+
});
|
18285
18338
|
var PictureGroup$5 = React.memo(PictureGroup$4);
|
18286
18339
|
|
18287
18340
|
/*
|
@@ -18581,6 +18634,7 @@ Made in Italy` })));
|
|
18581
18634
|
const skipLinkRef = React.useRef(false);
|
18582
18635
|
const [pageNum, setPageNum] = React.useState(2);
|
18583
18636
|
const videoWidgetRef = React.useRef(null);
|
18637
|
+
const pictureGroupRef = React.useRef(null);
|
18584
18638
|
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, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
|
18585
18639
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
18586
18640
|
const isShowFingerTip = React.useMemo(() => {
|
@@ -18719,8 +18773,9 @@ Made in Italy` })));
|
|
18719
18773
|
refreshFeSession
|
18720
18774
|
]);
|
18721
18775
|
const handleSessionExpire = React.useCallback(lodash.debounce(() => {
|
18722
|
-
var _a;
|
18776
|
+
var _a, _b;
|
18723
18777
|
(_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
|
18778
|
+
(_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
|
18724
18779
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
18725
18780
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
18726
18781
|
React.useEffect(() => {
|
@@ -18798,7 +18853,7 @@ Made in Italy` })));
|
|
18798
18853
|
return (React.createElement(VideoWidget$5, Object.assign({ key: isReload }, (activeIndex === index && { ref: videoWidgetRef }), { rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoPlayIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPlayIcon, loopPlay: true, swiperRef: swiperRef })));
|
18799
18854
|
}
|
18800
18855
|
if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
|
18801
|
-
return (React.createElement(PictureGroup$5, { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
|
18856
|
+
return (React.createElement(PictureGroup$5, Object.assign({ data: data }, (activeIndex === index && { ref: pictureGroupRef }), { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost, swiperRef: swiperRef })));
|
18802
18857
|
}
|
18803
18858
|
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _j === void 0 ? void 0 : _j.length) > 0) {
|
18804
18859
|
return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
|