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.
Files changed (33) hide show
  1. package/dist/index.cjs +108 -53
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +108 -53
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +6 -6
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +6 -6
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +108 -53
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +6 -6
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +5 -0
  14. package/es/core/components/SxpPageRender/PictureGroup/index.js +37 -13
  15. package/es/core/components/SxpPageRender/VideoWidget/index.js +27 -38
  16. package/es/core/components/SxpPageRender/index.js +4 -2
  17. package/es/materials/sxp/popup/CommodityDetail/material.js +2 -1
  18. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +16 -0
  19. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +19 -0
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +2 -1
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
  22. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +19 -0
  23. package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +5 -0
  24. package/lib/core/components/SxpPageRender/PictureGroup/index.js +36 -12
  25. package/lib/core/components/SxpPageRender/VideoWidget/index.js +27 -38
  26. package/lib/core/components/SxpPageRender/index.js +4 -2
  27. package/lib/materials/sxp/popup/CommodityDetail/material.js +2 -1
  28. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +16 -0
  29. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +19 -0
  30. package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +2 -1
  31. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +16 -0
  32. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +19 -0
  33. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -2270,6 +2270,25 @@ var settingRender$e = [
2270
2270
  {
2271
2271
  title: '购买按钮样式',
2272
2272
  child: [
2273
+ {
2274
+ label: '英文大小写',
2275
+ type: 'Select',
2276
+ name: ['props', 'buttonStyle', 'textTransform'],
2277
+ options: [
2278
+ {
2279
+ label: '默认',
2280
+ value: 'unset'
2281
+ },
2282
+ {
2283
+ label: '小写',
2284
+ value: 'lowercase'
2285
+ },
2286
+ {
2287
+ label: '大写',
2288
+ value: 'uppercase'
2289
+ }
2290
+ ]
2291
+ },
2273
2292
  {
2274
2293
  type: 'Color',
2275
2294
  label: '背景色',
@@ -10662,7 +10681,8 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10662
10681
  height: 45,
10663
10682
  fontWeight: 'bold',
10664
10683
  textAlign: 'center',
10665
- color: 'rgba(255, 255, 255, 0.9)'
10684
+ color: 'rgba(255, 255, 255, 0.9)',
10685
+ textTransform: 'unset'
10666
10686
  },
10667
10687
  commodityImgRatio: {
10668
10688
  w: 1,
@@ -11130,6 +11150,25 @@ var settingRender$c = [
11130
11150
  {
11131
11151
  title: '购买按钮样式',
11132
11152
  child: [
11153
+ {
11154
+ label: '英文大小写',
11155
+ type: 'Select',
11156
+ name: ['props', 'buttonStyle', 'textTransform'],
11157
+ options: [
11158
+ {
11159
+ label: '默认',
11160
+ value: 'unset'
11161
+ },
11162
+ {
11163
+ label: '小写',
11164
+ value: 'lowercase'
11165
+ },
11166
+ {
11167
+ label: '大写',
11168
+ value: 'uppercase'
11169
+ }
11170
+ ]
11171
+ },
11133
11172
  {
11134
11173
  type: 'Color',
11135
11174
  label: '背景色',
@@ -11622,7 +11661,8 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
11622
11661
  color: '#fff',
11623
11662
  borderRadius: 25,
11624
11663
  marginTop: 16,
11625
- marginBottom: 16
11664
+ marginBottom: 16,
11665
+ textTransform: 'unset'
11626
11666
  },
11627
11667
  commodityImgRatio: {
11628
11668
  w: 1,
@@ -17785,6 +17825,26 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17785
17825
  return;
17786
17826
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17787
17827
  }, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17828
+ const handleEnd = () => {
17829
+ var _a, _b, _c, _d, _e, _f, _g, _h;
17830
+ if (!videoRef.current)
17831
+ return;
17832
+ if (isDiyH5) {
17833
+ (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
17834
+ if (!loopPlayRef.current)
17835
+ return;
17836
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
17837
+ (_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);
17838
+ }
17839
+ else {
17840
+ 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;
17841
+ (_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);
17842
+ }
17843
+ }
17844
+ else {
17845
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.play();
17846
+ }
17847
+ };
17788
17848
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
17789
17849
  const handlePlaying = React.useCallback(() => {
17790
17850
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -17809,11 +17869,6 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17809
17869
  isFirstPlayRef.current = false;
17810
17870
  }
17811
17871
  }), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17812
- const setCurrentTimeByStartTime = React.useCallback(() => {
17813
- if (isDiyH5) {
17814
- videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17815
- }
17816
- }, []);
17817
17872
  const handLoadeddata = React.useCallback(() => {
17818
17873
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
17819
17874
  return;
@@ -17838,13 +17893,12 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17838
17893
  const handleLoadedmetadata = React.useCallback(() => {
17839
17894
  if (!videoRef.current)
17840
17895
  return;
17841
- setCurrentTimeByStartTime();
17842
17896
  loadedTimeRef.current = new Date();
17843
17897
  handleStartPlay();
17844
17898
  handLoadeddata();
17845
17899
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
17846
17900
  const handleClickVideo = React.useCallback((type) => () => {
17847
- var _a, _b, _c, _d, _e, _f;
17901
+ var _a, _b, _c, _d, _e;
17848
17902
  if (!videoRef.current)
17849
17903
  return;
17850
17904
  if (!isLoadFinish)
@@ -17865,13 +17919,10 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17865
17919
  break;
17866
17920
  default:
17867
17921
  if (isPause) {
17868
- if (isDiyH5 && Math.round((_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.currentTime) >= (scene === null || scene === void 0 ? void 0 : scene.endTime)) {
17869
- videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17870
- }
17871
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
17922
+ (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
17872
17923
  }
17873
17924
  else {
17874
- (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
17925
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
17875
17926
  }
17876
17927
  setIsPauseVideo(!isPause);
17877
17928
  break;
@@ -17909,27 +17960,8 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17909
17960
  const handleWaiting = React.useCallback(() => {
17910
17961
  setWaiting(true);
17911
17962
  }, []);
17912
- const handleTimeUpload = () => {
17913
- if (!videoRef.current || !isDiyH5)
17914
- return;
17915
- setTimeout(() => {
17916
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
17917
- 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)) {
17918
- (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
17919
- if (!loopPlayRef.current)
17920
- return;
17921
- if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
17922
- (_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);
17923
- }
17924
- else {
17925
- 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;
17926
- (_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);
17927
- }
17928
- }
17929
- });
17930
- };
17931
17963
  React.useEffect(() => {
17932
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17964
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17933
17965
  if (!isActive)
17934
17966
  return;
17935
17967
  const videoSrc = videoUrl;
@@ -17950,7 +17982,6 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17950
17982
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
17951
17983
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
17952
17984
  var _a;
17953
- setCurrentTimeByStartTime();
17954
17985
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17955
17986
  });
17956
17987
  }
@@ -17964,12 +17995,11 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17964
17995
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
17965
17996
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
17966
17997
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
17967
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
17998
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
17968
17999
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
17969
18000
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
17970
- (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
17971
18001
  return () => {
17972
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18002
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17973
18003
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
17974
18004
  if (!isPause)
17975
18005
  handlePause();
@@ -17981,10 +18011,9 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17981
18011
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
17982
18012
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
17983
18013
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
17984
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
18014
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
17985
18015
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
17986
18016
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
17987
- (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
17988
18017
  };
17989
18018
  }, [isActive]);
17990
18019
  React.useEffect(() => {
@@ -18195,19 +18224,43 @@ const Picture = (props) => {
18195
18224
  }, onLoad: onShowFirstImage }))));
18196
18225
  };
18197
18226
 
18198
- const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
18227
+ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
18199
18228
  var _a, _b;
18200
18229
  const { isActive } = useSwiperSlide();
18201
- const { sxpParameter, openHashtag } = useSxpDataSource();
18230
+ const { sxpParameter, openHashtag, isDiyH5 } = useSxpDataSource();
18202
18231
  const [isLoad, setIsLoad] = React.useState(false);
18203
18232
  const [imgInfo, setImgInfo] = React.useState();
18204
18233
  const [swiperActiveIndex, setSwiperActiveIndex] = React.useState(0);
18205
- const swiperRef = React.useRef();
18234
+ const imgsSwiperRef = React.useRef();
18206
18235
  const isFirstPlayRef = React.useRef(true);
18236
+ const loopPlayRef = React.useRef(true);
18207
18237
  const initTime = new Date();
18238
+ React.useImperativeHandle(ref, () => {
18239
+ return {
18240
+ setLoopPlay(v) {
18241
+ loopPlayRef.current = v;
18242
+ }
18243
+ };
18244
+ });
18245
+ React.useEffect(() => {
18246
+ if (isLoad && isActive && isDiyH5) {
18247
+ setTimeout(() => {
18248
+ var _a, _b, _c, _d, _e, _f;
18249
+ if (!loopPlayRef.current)
18250
+ return;
18251
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18252
+ (_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);
18253
+ }
18254
+ else {
18255
+ 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;
18256
+ (_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);
18257
+ }
18258
+ }, 3000);
18259
+ }
18260
+ }, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
18208
18261
  React.useEffect(() => {
18209
18262
  if (isLoad && isActive) {
18210
- (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
18263
+ (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
18211
18264
  if (openHashtag) {
18212
18265
  onViewImageEndEvent(rec);
18213
18266
  }
@@ -18217,7 +18270,7 @@ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
18217
18270
  }
18218
18271
  }
18219
18272
  else {
18220
- (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
18273
+ (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
18221
18274
  }
18222
18275
  }, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
18223
18276
  const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -18244,13 +18297,13 @@ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
18244
18297
  };
18245
18298
  }, [isActive, imgInfo]);
18246
18299
  const handleMouseEnter = React.useCallback(() => {
18247
- if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18248
- swiperRef.current.swiper.autoplay.stop();
18300
+ if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18301
+ imgsSwiperRef.current.swiper.autoplay.stop();
18249
18302
  }
18250
18303
  }, []);
18251
18304
  const handleMouseLeave = React.useCallback(() => {
18252
- if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18253
- swiperRef.current.swiper.autoplay.start();
18305
+ if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18306
+ imgsSwiperRef.current.swiper.autoplay.start();
18254
18307
  }
18255
18308
  }, []);
18256
18309
  const handleSlideChange = React.useCallback((swiper) => {
@@ -18271,7 +18324,7 @@ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
18271
18324
  enabled: true
18272
18325
  }
18273
18326
  }
18274
- : {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18327
+ : {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18275
18328
  bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
18276
18329
  fontSize: '14px'
18277
18330
  } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
@@ -18288,7 +18341,7 @@ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
18288
18341
  return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
18289
18342
  React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
18290
18343
  }))));
18291
- };
18344
+ });
18292
18345
  var PictureGroup$5 = React.memo(PictureGroup$4);
18293
18346
 
18294
18347
  /*
@@ -18588,6 +18641,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18588
18641
  const skipLinkRef = React.useRef(false);
18589
18642
  const [pageNum, setPageNum] = React.useState(2);
18590
18643
  const videoWidgetRef = React.useRef(null);
18644
+ const pictureGroupRef = React.useRef(null);
18591
18645
  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();
18592
18646
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
18593
18647
  const isShowFingerTip = React.useMemo(() => {
@@ -18726,8 +18780,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18726
18780
  refreshFeSession
18727
18781
  ]);
18728
18782
  const handleSessionExpire = React.useCallback(lodash.debounce(() => {
18729
- var _a;
18783
+ var _a, _b;
18730
18784
  (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
18785
+ (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
18731
18786
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
18732
18787
  }, 1000), [handleSessionCompleted, refreshFeSession]);
18733
18788
  React.useEffect(() => {
@@ -18805,7 +18860,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18805
18860
  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 })));
18806
18861
  }
18807
18862
  if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
18808
- 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 }));
18863
+ 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 })));
18809
18864
  }
18810
18865
  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) {
18811
18866
  return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {