pb-sxp-ui 1.15.44 → 1.16.1

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 (54) hide show
  1. package/dist/index.cjs +281 -210
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +125 -0
  4. package/dist/index.js +281 -210
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +6 -6
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +6 -6
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +281 -210
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +6 -6
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/DiyPortalPreview/VideoWidget.js +8 -10
  15. package/es/core/components/SxpPageRender/LikeButton/index.js +15 -17
  16. package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
  17. package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -42
  18. package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
  19. package/es/core/components/SxpPageRender/RenderCard.js +6 -6
  20. package/es/core/components/SxpPageRender/VideoWidget/index.js +44 -34
  21. package/es/core/components/SxpPageRender/WaterFall/index.js +3 -4
  22. package/es/core/components/SxpPageRender/index.d.ts +1 -0
  23. package/es/core/components/SxpPageRender/index.js +38 -47
  24. package/es/core/context/SxpDataSourceProvider.js +2 -2
  25. package/es/core/hooks/useEventReport.js +5 -6
  26. package/es/materials/sxp/template/NineCommodity/index.d.ts +18 -0
  27. package/es/materials/sxp/template/NineCommodity/index.js +39 -0
  28. package/es/materials/sxp/template/NineCommodity/interactionRender.d.ts +9 -0
  29. package/es/materials/sxp/template/NineCommodity/interactionRender.js +12 -0
  30. package/es/materials/sxp/template/NineCommodity/material.d.ts +2 -0
  31. package/es/materials/sxp/template/NineCommodity/material.js +52 -0
  32. package/es/materials/sxp/template/index.d.ts +1 -0
  33. package/es/materials/sxp/template/index.js +1 -0
  34. package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
  35. package/lib/core/components/SxpPageRender/LikeButton/index.js +15 -17
  36. package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
  37. package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -41
  38. package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
  39. package/lib/core/components/SxpPageRender/RenderCard.js +6 -6
  40. package/lib/core/components/SxpPageRender/VideoWidget/index.js +44 -34
  41. package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
  42. package/lib/core/components/SxpPageRender/index.d.ts +1 -0
  43. package/lib/core/components/SxpPageRender/index.js +38 -47
  44. package/lib/core/context/SxpDataSourceProvider.js +2 -2
  45. package/lib/core/hooks/useEventReport.js +5 -6
  46. package/lib/materials/sxp/template/NineCommodity/index.d.ts +18 -0
  47. package/lib/materials/sxp/template/NineCommodity/index.js +41 -0
  48. package/lib/materials/sxp/template/NineCommodity/interactionRender.d.ts +9 -0
  49. package/lib/materials/sxp/template/NineCommodity/interactionRender.js +14 -0
  50. package/lib/materials/sxp/template/NineCommodity/material.d.ts +2 -0
  51. package/lib/materials/sxp/template/NineCommodity/material.js +56 -0
  52. package/lib/materials/sxp/template/index.d.ts +1 -0
  53. package/lib/materials/sxp/template/index.js +1 -0
  54. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1064,7 +1064,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1064
1064
  }
1065
1065
  }), [bffFetch, utmVal]);
1066
1066
  const ctaEvent = useCallback((eventInfo, rec, product, position) => {
1067
- var _a, _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, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14;
1067
+ var _a, _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, _5, _6, _7, _8, _9, _10, _11;
1068
1068
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
1069
1069
  const isProd = ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) || (((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.bindProducts) && ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProducts) === null || _d === void 0 ? void 0 : _d.length) > 0);
1070
1070
  let fromKName = '';
@@ -1082,7 +1082,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1082
1082
  }
1083
1083
  const contentTags = (_p = (_m = (_h = product === null || product === void 0 ? void 0 : product.tags) !== null && _h !== void 0 ? _h : (_l = (_k = (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProducts) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : (_q = rec === null || rec === void 0 ? void 0 : rec.product) === null || _q === void 0 ? void 0 : _q.tags;
1084
1084
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1085
- eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_r = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _r !== void 0 ? _r : '', ctaName: (_s = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _s !== void 0 ? _s : '', contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_u = (_t = rec === null || rec === void 0 ? void 0 : rec.video) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '', sceneId: (_x = (_w = (_v = rec === null || rec === void 0 ? void 0 : rec.video) === null || _v === void 0 ? void 0 : _v.scene) === null || _w === void 0 ? void 0 : _w.sceneId) !== null && _x !== void 0 ? _x : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_13 = (_10 = (_5 = (_1 = (_y = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _y !== void 0 ? _y : (_0 = (_z = rec === null || rec === void 0 ? void 0 : rec.video) === null || _z === void 0 ? void 0 : _z.bindCta) === null || _0 === void 0 ? void 0 : _0.traceInfo) !== null && _1 !== void 0 ? _1 : (_4 = (_3 = (_2 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _2 === void 0 ? void 0 : _2.bindProduct) === null || _3 === void 0 ? void 0 : _3.bindCta) === null || _4 === void 0 ? void 0 : _4.traceInfo) !== null && _5 !== void 0 ? _5 : (_9 = (_8 = (_7 = (_6 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _6 === void 0 ? void 0 : _6.bindProducts) === null || _7 === void 0 ? void 0 : _7[0]) === null || _8 === void 0 ? void 0 : _8.bindCta) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = rec === null || rec === void 0 ? void 0 : rec.product) === null || _11 === void 0 ? void 0 : _11.bindCta) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : '', fromKName, fromKPage: (_14 = location === null || location === void 0 ? void 0 : location.href) !== null && _14 !== void 0 ? _14 : '', contentFormat })
1085
+ eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_r = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _r !== void 0 ? _r : '', ctaName: (_s = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _s !== void 0 ? _s : '', contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_u = (_t = rec === null || rec === void 0 ? void 0 : rec.video) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_10 = (_7 = (_2 = (_y = (_v = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _v !== void 0 ? _v : (_x = (_w = rec === null || rec === void 0 ? void 0 : rec.video) === null || _w === void 0 ? void 0 : _w.bindCta) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : (_1 = (_0 = (_z = rec === null || rec === void 0 ? void 0 : rec.video) === null || _z === void 0 ? void 0 : _z.bindProduct) === null || _0 === void 0 ? void 0 : _0.bindCta) === null || _1 === void 0 ? void 0 : _1.traceInfo) !== null && _2 !== void 0 ? _2 : (_6 = (_5 = (_4 = (_3 = rec === null || rec === void 0 ? void 0 : rec.video) === null || _3 === void 0 ? void 0 : _3.bindProducts) === null || _4 === void 0 ? void 0 : _4[0]) === null || _5 === void 0 ? void 0 : _5.bindCta) === null || _6 === void 0 ? void 0 : _6.traceInfo) !== null && _7 !== void 0 ? _7 : (_9 = (_8 = rec === null || rec === void 0 ? void 0 : rec.product) === null || _8 === void 0 ? void 0 : _8.bindCta) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : '', fromKName, fromKPage: (_11 = location === null || location === void 0 ? void 0 : location.href) !== null && _11 !== void 0 ? _11 : '', contentFormat })
1086
1086
  });
1087
1087
  }, [bffEventReport, isFromHashtag]);
1088
1088
  const h5EnterLink = useCallback(() => {
@@ -1521,7 +1521,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
1521
1521
  EditorCore: EditorCore
1522
1522
  });
1523
1523
 
1524
- var interactionRender$g = [
1524
+ var interactionRender$h = [
1525
1525
  {
1526
1526
  title: '点击事件',
1527
1527
  child: [
@@ -1743,14 +1743,14 @@ var settingRender$f = [
1743
1743
  * @Author: binruan@chatlabs.com
1744
1744
  * @Date: 2024-03-12 10:59:06
1745
1745
  * @LastEditors: binruan@chatlabs.com
1746
- * @LastEditTime: 2025-05-09 15:30:59
1746
+ * @LastEditTime: 2024-11-28 11:17:16
1747
1747
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
1748
1748
  *
1749
1749
  */
1750
1750
  function useEventReport() {
1751
1751
  const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
1752
1752
  const jumpToWeb = useCallback((e, data, product, cta, position, traceInfo) => {
1753
- var _a, _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, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
1753
+ var _a, _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, _5, _6, _7, _8, _9, _10, _11, _12, _13;
1754
1754
  const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
1755
1755
  if (i !== -1) {
1756
1756
  return;
@@ -1783,11 +1783,11 @@ function useEventReport() {
1783
1783
  contentFormat = 'image';
1784
1784
  }
1785
1785
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1786
- eventInfo: Object.assign({ eventSubject: 'jumpToWeb', eventDescription: 'User jumped to website', productId: (_v = product === null || product === void 0 ? void 0 : product.itemId) !== null && _v !== void 0 ? _v : '', productName: (_w = product === null || product === void 0 ? void 0 : product.title) !== null && _w !== void 0 ? _w : '', price: (product === null || product === void 0 ? void 0 : product.price) ? (product === null || product === void 0 ? void 0 : product.price) + '' : '0', productCollection: (_x = product === null || product === void 0 ? void 0 : product.collection) !== null && _x !== void 0 ? _x : '', fromKName, fromKPage: location === null || location === void 0 ? void 0 : location.href, contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_z = (_y = data === null || data === void 0 ? void 0 : data.video) === null || _y === void 0 ? void 0 : _y.itemId) !== null && _z !== void 0 ? _z : '', sceneId: (_2 = (_1 = (_0 = data === null || data === void 0 ? void 0 : data.video) === null || _0 === void 0 ? void 0 : _0.scene) === null || _1 === void 0 ? void 0 : _1.sceneId) !== null && _2 !== void 0 ? _2 : '', ctatId: (_3 = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _3 !== void 0 ? _3 : '', traceInfo: (_16 = (_13 = (_11 = (_7 = (_4 = traceInfo !== null && traceInfo !== void 0 ? traceInfo : product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _4 !== void 0 ? _4 : (_6 = (_5 = data === null || data === void 0 ? void 0 : data.video) === null || _5 === void 0 ? void 0 : _5.bindProduct) === null || _6 === void 0 ? void 0 : _6.traceInfo) !== null && _7 !== void 0 ? _7 : (_10 = (_9 = (_8 = data === null || data === void 0 ? void 0 : data.video) === null || _8 === void 0 ? void 0 : _8.bindProducts) === null || _9 === void 0 ? void 0 : _9[0]) === null || _10 === void 0 ? void 0 : _10.traceInfo) !== null && _11 !== void 0 ? _11 : (_12 = data === null || data === void 0 ? void 0 : data.product) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : (_15 = (_14 = data === null || data === void 0 ? void 0 : data.video) === null || _14 === void 0 ? void 0 : _14.bindCta) === null || _15 === void 0 ? void 0 : _15.traceInfo) !== null && _16 !== void 0 ? _16 : '' }, (contentFormat && { contentFormat }))
1786
+ eventInfo: Object.assign({ eventSubject: 'jumpToWeb', eventDescription: 'User jumped to website', productId: (_v = product === null || product === void 0 ? void 0 : product.itemId) !== null && _v !== void 0 ? _v : '', productName: (_w = product === null || product === void 0 ? void 0 : product.title) !== null && _w !== void 0 ? _w : '', price: (product === null || product === void 0 ? void 0 : product.price) ? (product === null || product === void 0 ? void 0 : product.price) + '' : '0', productCollection: (_x = product === null || product === void 0 ? void 0 : product.collection) !== null && _x !== void 0 ? _x : '', fromKName, fromKPage: location === null || location === void 0 ? void 0 : location.href, contentTags: contentTags ? JSON.stringify(contentTags) : '', position: position + '', contentId: (_z = (_y = data === null || data === void 0 ? void 0 : data.video) === null || _y === void 0 ? void 0 : _y.itemId) !== null && _z !== void 0 ? _z : '', ctatId: (_0 = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _0 !== void 0 ? _0 : '', traceInfo: (_13 = (_10 = (_8 = (_4 = (_1 = traceInfo !== null && traceInfo !== void 0 ? traceInfo : product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _1 !== void 0 ? _1 : (_3 = (_2 = data === null || data === void 0 ? void 0 : data.video) === null || _2 === void 0 ? void 0 : _2.bindProduct) === null || _3 === void 0 ? void 0 : _3.traceInfo) !== null && _4 !== void 0 ? _4 : (_7 = (_6 = (_5 = data === null || data === void 0 ? void 0 : data.video) === null || _5 === void 0 ? void 0 : _5.bindProducts) === null || _6 === void 0 ? void 0 : _6[0]) === null || _7 === void 0 ? void 0 : _7.traceInfo) !== null && _8 !== void 0 ? _8 : (_9 = data === null || data === void 0 ? void 0 : data.product) === null || _9 === void 0 ? void 0 : _9.traceInfo) !== null && _10 !== void 0 ? _10 : (_12 = (_11 = data === null || data === void 0 ? void 0 : data.video) === null || _11 === void 0 ? void 0 : _11.bindCta) === null || _12 === void 0 ? void 0 : _12.traceInfo) !== null && _13 !== void 0 ? _13 : '' }, (contentFormat && { contentFormat }))
1787
1787
  });
1788
1788
  }, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
1789
1789
  const productView = useCallback((data, product, cta, viewTime, position) => {
1790
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1790
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1791
1791
  let fromKName = '';
1792
1792
  if (popupDetailData && (((_b = (_a = data === null || data === void 0 ? void 0 : data.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = data === null || data === void 0 ? void 0 : data.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
1793
1793
  fromKName = 'pdpPage';
@@ -1806,9 +1806,8 @@ function useEventReport() {
1806
1806
  contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
1807
1807
  position: position + '',
1808
1808
  contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
1809
- sceneId: (_g = (_f = (_e = data === null || data === void 0 ? void 0 : data.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
1810
1809
  ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
1811
- traceInfo: (_s = (_q = (_l = (_h = product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _h !== void 0 ? _h : (_k = (_j = data === null || data === void 0 ? void 0 : data.video) === null || _j === void 0 ? void 0 : _j.bindProduct) === null || _k === void 0 ? void 0 : _k.traceInfo) !== null && _l !== void 0 ? _l : (_p = (_o = (_m = data === null || data === void 0 ? void 0 : data.video) === null || _m === void 0 ? void 0 : _m.bindProducts) === null || _o === void 0 ? void 0 : _o[0]) === null || _p === void 0 ? void 0 : _p.traceInfo) !== null && _q !== void 0 ? _q : (_r = data === null || data === void 0 ? void 0 : data.product) === null || _r === void 0 ? void 0 : _r.traceInfo) !== null && _s !== void 0 ? _s : '',
1810
+ traceInfo: (_p = (_m = (_h = (_e = product === null || product === void 0 ? void 0 : product.traceInfo) !== null && _e !== void 0 ? _e : (_g = (_f = data === null || data === void 0 ? void 0 : data.video) === null || _f === void 0 ? void 0 : _f.bindProduct) === null || _g === void 0 ? void 0 : _g.traceInfo) !== null && _h !== void 0 ? _h : (_l = (_k = (_j = data === null || data === void 0 ? void 0 : data.video) === null || _j === void 0 ? void 0 : _j.bindProducts) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.traceInfo) !== null && _m !== void 0 ? _m : (_o = data === null || data === void 0 ? void 0 : data.product) === null || _o === void 0 ? void 0 : _o.traceInfo) !== null && _p !== void 0 ? _p : '',
1812
1811
  timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
1813
1812
  eventSubject: 'productView',
1814
1813
  eventDescription: 'User browsed the product'
@@ -1980,7 +1979,7 @@ const AppointForm = createMaterial(AppointFormComponent, {
1980
1979
  related: {
1981
1980
  settingRender: settingRender$f,
1982
1981
  bindableProps: [],
1983
- interactionRender: interactionRender$g
1982
+ interactionRender: interactionRender$h
1984
1983
  },
1985
1984
  defaulSetting: {
1986
1985
  name: '表单',
@@ -10591,7 +10590,7 @@ var CommodityDetailComponent = memo(CommodityDetail$1);
10591
10590
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10592
10591
  *
10593
10592
  */
10594
- var interactionRender$f = [
10593
+ var interactionRender$g = [
10595
10594
  {
10596
10595
  title: '滑动事件',
10597
10596
  child: [
@@ -10619,7 +10618,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10619
10618
  type: 'CommodityDetail',
10620
10619
  related: {
10621
10620
  settingRender: settingRender$e,
10622
- interactionRender: interactionRender$f
10621
+ interactionRender: interactionRender$g
10623
10622
  },
10624
10623
  defaulSetting: {
10625
10624
  props: {
@@ -10675,7 +10674,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10675
10674
  sort: 1
10676
10675
  });
10677
10676
 
10678
- var interactionRender$e = [
10677
+ var interactionRender$f = [
10679
10678
  {
10680
10679
  title: '点击事件',
10681
10680
  child: [
@@ -10877,7 +10876,7 @@ const Prompt = createMaterial(PromptComponent, {
10877
10876
  related: {
10878
10877
  settingRender: settingRender$d,
10879
10878
  bindableProps: [],
10880
- interactionRender: interactionRender$e
10879
+ interactionRender: interactionRender$f
10881
10880
  },
10882
10881
  defaulSetting: {
10883
10882
  props: {
@@ -11571,7 +11570,7 @@ var CommodityDetailDiroNewComponent = memo(CommodityDetailDiroNew$1);
11571
11570
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
11572
11571
  *
11573
11572
  */
11574
- var interactionRender$d = [
11573
+ var interactionRender$e = [
11575
11574
  {
11576
11575
  title: '滑动事件',
11577
11576
  child: [
@@ -11599,7 +11598,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
11599
11598
  type: 'CommodityDetailDiroNew',
11600
11599
  related: {
11601
11600
  settingRender: settingRender$c,
11602
- interactionRender: interactionRender$d
11601
+ interactionRender: interactionRender$e
11603
11602
  },
11604
11603
  defaulSetting: {
11605
11604
  props: {
@@ -12073,7 +12072,7 @@ var CommodityListComponent = memo(CommodityList$1);
12073
12072
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
12074
12073
  *
12075
12074
  */
12076
- var interactionRender$c = [
12075
+ var interactionRender$d = [
12077
12076
  {
12078
12077
  title: '点击事件',
12079
12078
  child: [
@@ -12101,7 +12100,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12101
12100
  type: 'CommodityList',
12102
12101
  related: {
12103
12102
  settingRender: settingRender$b,
12104
- interactionRender: interactionRender$c
12103
+ interactionRender: interactionRender$d
12105
12104
  },
12106
12105
  defaulSetting: {
12107
12106
  props: {
@@ -12509,7 +12508,7 @@ var settingRender$8 = [
12509
12508
  }
12510
12509
  ];
12511
12510
 
12512
- var interactionRender$b = [
12511
+ var interactionRender$c = [
12513
12512
  {
12514
12513
  title: '点击事件',
12515
12514
  child: [
@@ -12563,7 +12562,7 @@ const EventProvider = (_a) => {
12563
12562
  };
12564
12563
  var EventProvider$1 = memo(EventProvider);
12565
12564
 
12566
- var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
12565
+ var styles$9 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
12567
12566
 
12568
12567
  const Commodity$1 = (_a) => {
12569
12568
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -12581,7 +12580,7 @@ const Commodity$1 = (_a) => {
12581
12580
  width: '100%',
12582
12581
  overflow: 'hidden'
12583
12582
  }) },
12584
- React.createElement("div", { className: styles$8['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12583
+ React.createElement("div", { className: styles$9['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12585
12584
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
12586
12585
  } }),
12587
12586
  React.createElement("button", { "aria-label": (_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_m = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _m === void 0 ? void 0 : _m.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -12604,7 +12603,7 @@ const Commodity = createMaterial(CommodityComponent, {
12604
12603
  category: 'template',
12605
12604
  type: 'Commodity',
12606
12605
  related: {
12607
- interactionRender: interactionRender$b,
12606
+ interactionRender: interactionRender$c,
12608
12607
  bindableProps: [],
12609
12608
  settingRender: settingRender$8
12610
12609
  },
@@ -12646,7 +12645,7 @@ const Commodity = createMaterial(CommodityComponent, {
12646
12645
  sort: 1
12647
12646
  });
12648
12647
 
12649
- var interactionRender$a = [
12648
+ var interactionRender$b = [
12650
12649
  {
12651
12650
  title: '点击事件',
12652
12651
  child: [
@@ -12687,7 +12686,7 @@ const Appoint = createMaterial(AppointComponent, {
12687
12686
  category: 'template',
12688
12687
  type: 'Appoint',
12689
12688
  related: {
12690
- interactionRender: interactionRender$a,
12689
+ interactionRender: interactionRender$b,
12691
12690
  settingRender: settingRender$8 === null || settingRender$8 === void 0 ? void 0 : settingRender$8.filter((i) => i.type !== 'commodityTitle'),
12692
12691
  bindableProps: []
12693
12692
  },
@@ -12839,7 +12838,7 @@ var linkSettingRender = [
12839
12838
  }
12840
12839
  ];
12841
12840
 
12842
- var styles$7 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
12841
+ var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
12843
12842
 
12844
12843
  const Link$1 = (_a) => {
12845
12844
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
@@ -12857,10 +12856,10 @@ const Link$1 = (_a) => {
12857
12856
  overflow: 'hidden'
12858
12857
  }) },
12859
12858
  React.createElement("div", null,
12860
- React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
12859
+ React.createElement("div", { className: styles$8['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
12861
12860
  __html: setFontForText((_j = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
12862
12861
  } }),
12863
- (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_k = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _k === void 0 ? void 0 : _k.height) + 'px' }), className: styles$7['one-line-ellipsis'], dangerouslySetInnerHTML: {
12862
+ (customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_k = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _k === void 0 ? void 0 : _k.height) + 'px' }), className: styles$8['one-line-ellipsis'], dangerouslySetInnerHTML: {
12864
12863
  __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
12865
12864
  } }))))));
12866
12865
  };
@@ -12874,7 +12873,7 @@ var LinkComponent = memo(Link$1);
12874
12873
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
12875
12874
  *
12876
12875
  */
12877
- var interactionRender$9 = [
12876
+ var interactionRender$a = [
12878
12877
  {
12879
12878
  title: '点击事件',
12880
12879
  child: [
@@ -12896,7 +12895,7 @@ const Link = createMaterial(LinkComponent, {
12896
12895
  related: {
12897
12896
  settingRender: (_a = settingRender$8 === null || settingRender$8 === void 0 ? void 0 : settingRender$8.filter((i) => i.type !== 'commodityTitle')) === null || _a === void 0 ? void 0 : _a.concat(linkSettingRender),
12898
12897
  bindableProps: [],
12899
- interactionRender: interactionRender$9
12898
+ interactionRender: interactionRender$a
12900
12899
  },
12901
12900
  defaulSetting: {
12902
12901
  props: {
@@ -12942,7 +12941,7 @@ const Link = createMaterial(LinkComponent, {
12942
12941
  sort: 5
12943
12942
  });
12944
12943
 
12945
- var interactionRender$8 = [
12944
+ var interactionRender$9 = [
12946
12945
  {
12947
12946
  title: '点击事件',
12948
12947
  child: [
@@ -12955,7 +12954,7 @@ var interactionRender$8 = [
12955
12954
  }
12956
12955
  ];
12957
12956
 
12958
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
12957
+ var styles$7 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
12959
12958
 
12960
12959
  const CommodityDiro$1 = (_a) => {
12961
12960
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -12973,7 +12972,7 @@ const CommodityDiro$1 = (_a) => {
12973
12972
  width: '100%',
12974
12973
  overflow: 'hidden'
12975
12974
  }) },
12976
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12975
+ React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12977
12976
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
12978
12977
  } }),
12979
12978
  React.createElement("button", { "aria-label": (_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap', lineHeight: ((_m = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _m === void 0 ? void 0 : _m.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -12996,7 +12995,7 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
12996
12995
  category: 'template',
12997
12996
  type: 'CommodityDiro',
12998
12997
  related: {
12999
- interactionRender: interactionRender$8,
12998
+ interactionRender: interactionRender$9,
13000
12999
  settingRender: settingRender$8,
13001
13000
  bindableProps: []
13002
13001
  },
@@ -13038,7 +13037,7 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13038
13037
  sort: 2
13039
13038
  });
13040
13039
 
13041
- var interactionRender$7 = [
13040
+ var interactionRender$8 = [
13042
13041
  {
13043
13042
  title: '点击事件',
13044
13043
  child: [
@@ -13051,7 +13050,7 @@ var interactionRender$7 = [
13051
13050
  }
13052
13051
  ];
13053
13052
 
13054
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
13053
+ var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
13055
13054
 
13056
13055
  const CommodityDiroNew$1 = (_a) => {
13057
13056
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
@@ -13069,7 +13068,7 @@ const CommodityDiroNew$1 = (_a) => {
13069
13068
  width: '100%',
13070
13069
  overflow: 'hidden'
13071
13070
  }) },
13072
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13071
+ React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13073
13072
  __html: setFontForText((_j = product === null || product === void 0 ? void 0 : product.title) !== null && _j !== void 0 ? _j : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
13074
13073
  } }),
13075
13074
  React.createElement("button", { "aria-label": (_l = (_k = product === null || product === void 0 ? void 0 : product.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', className: css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13092,7 +13091,7 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13092
13091
  category: 'template',
13093
13092
  type: 'CommodityDiroNew',
13094
13093
  related: {
13095
- interactionRender: interactionRender$7,
13094
+ interactionRender: interactionRender$8,
13096
13095
  bindableProps: [],
13097
13096
  settingRender: settingRender$8
13098
13097
  },
@@ -13135,7 +13134,7 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13135
13134
  sort: 2
13136
13135
  });
13137
13136
 
13138
- var interactionRender$6 = [
13137
+ var interactionRender$7 = [
13139
13138
  {
13140
13139
  title: '点击事件',
13141
13140
  child: [
@@ -13148,7 +13147,7 @@ var interactionRender$6 = [
13148
13147
  }
13149
13148
  ];
13150
13149
 
13151
- var styles$4 = {"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};
13150
+ var styles$5 = {"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};
13152
13151
 
13153
13152
  const MultiCommodityDiro$1 = (_a) => {
13154
13153
  var _b, _c;
@@ -13168,7 +13167,7 @@ const MultiCommodityDiro$1 = (_a) => {
13168
13167
  width: '100%',
13169
13168
  overflow: 'hidden'
13170
13169
  }) },
13171
- React.createElement("div", { className: styles$4['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13170
+ React.createElement("div", { className: styles$5['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13172
13171
  __html: setFontForText((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
13173
13172
  } }),
13174
13173
  React.createElement("button", { "aria-label": (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now', className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', borderRadius: '25px', whiteSpace: 'nowrap', lineHeight: ((_h = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _h === void 0 ? void 0 : _h.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13192,7 +13191,7 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13192
13191
  category: 'template',
13193
13192
  type: 'MultiCommodityDiro',
13194
13193
  related: {
13195
- interactionRender: interactionRender$6,
13194
+ interactionRender: interactionRender$7,
13196
13195
  bindableProps: [],
13197
13196
  settingRender: settingRender$8
13198
13197
  },
@@ -13234,7 +13233,7 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13234
13233
  sort: 4
13235
13234
  });
13236
13235
 
13237
- var interactionRender$5 = [
13236
+ var interactionRender$6 = [
13238
13237
  {
13239
13238
  title: '点击事件',
13240
13239
  child: [
@@ -13247,7 +13246,7 @@ var interactionRender$5 = [
13247
13246
  }
13248
13247
  ];
13249
13248
 
13250
- var styles$3 = {"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};
13249
+ var styles$4 = {"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};
13251
13250
 
13252
13251
  const MultiCommodity$1 = (_a) => {
13253
13252
  var _b, _c;
@@ -13267,7 +13266,7 @@ const MultiCommodity$1 = (_a) => {
13267
13266
  width: '100%',
13268
13267
  overflow: 'hidden'
13269
13268
  }) },
13270
- React.createElement("div", { className: styles$3['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13269
+ React.createElement("div", { className: styles$4['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13271
13270
  __html: setFontForText((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
13272
13271
  } }),
13273
13272
  React.createElement("button", { "aria-label": (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now', className: css(Object.assign({ padding: '0 7px', textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap', lineHeight: ((_h = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _h === void 0 ? void 0 : _h.height) + 'px' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13291,7 +13290,7 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13291
13290
  category: 'template',
13292
13291
  type: 'MultiCommodity',
13293
13292
  related: {
13294
- interactionRender: interactionRender$5,
13293
+ interactionRender: interactionRender$6,
13295
13294
  settingRender: settingRender$8,
13296
13295
  bindableProps: []
13297
13296
  },
@@ -13341,7 +13340,7 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13341
13340
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\interactionRender.tsx
13342
13341
  *
13343
13342
  */
13344
- var interactionRender$4 = [
13343
+ var interactionRender$5 = [
13345
13344
  {
13346
13345
  title: '点击事件',
13347
13346
  child: [
@@ -13354,7 +13353,7 @@ var interactionRender$4 = [
13354
13353
  }
13355
13354
  ];
13356
13355
 
13357
- var styles$2 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};
13356
+ var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};
13358
13357
 
13359
13358
  const MultiCommodityDiroNew$1 = (_a) => {
13360
13359
  var _b, _c;
@@ -13375,7 +13374,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
13375
13374
  overflow: 'hidden',
13376
13375
  lineHeight: '20px'
13377
13376
  }) },
13378
- React.createElement("div", { className: styles$2['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13377
+ React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13379
13378
  __html: setFontForText((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
13380
13379
  } }),
13381
13380
  React.createElement("button", { "aria-label": (_g = (_f = item === null || item === void 0 ? void 0 : item.bindCta) === null || _f === void 0 ? void 0 : _f.enTitle) !== null && _g !== void 0 ? _g : 'Shop Now', className: css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13399,7 +13398,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13399
13398
  category: 'template',
13400
13399
  type: 'MultiCommodityDiroNew',
13401
13400
  related: {
13402
- interactionRender: interactionRender$4,
13401
+ interactionRender: interactionRender$5,
13403
13402
  bindableProps: [],
13404
13403
  settingRender: settingRender$8
13405
13404
  },
@@ -13442,6 +13441,110 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13442
13441
  sort: 4
13443
13442
  });
13444
13443
 
13444
+ var interactionRender$4 = [
13445
+ {
13446
+ title: '点击事件',
13447
+ child: [
13448
+ {
13449
+ type: 'link',
13450
+ name: 'onClick',
13451
+ hiddenUrl: true
13452
+ }
13453
+ ]
13454
+ }
13455
+ ];
13456
+
13457
+ var styles$2 = {"two-line-ellipsis":"index-module_two-line-ellipsis__Mehkq","nineProduct":"index-module_nineProduct__jXbfu","gridContainer":"index-module_gridContainer__eEG-d","gridItem":"index-module_gridItem__KrJP6","gridBox":"index-module_gridBox__fS-fT","buttonWrapper":"index-module_buttonWrapper__jGJE7","rotate":"index-module_rotate__5zJec"};
13458
+
13459
+ const NineCommodity$1 = (_a) => {
13460
+ var _b, _c;
13461
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
13462
+ const { sxpParameter } = useSxpDataSource();
13463
+ const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [{}, {}, {}, {}, {}, {}, {}, {}, {}]);
13464
+ return (React.createElement("div", { className: styles$2.nineProduct },
13465
+ React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13466
+ var _a, _b, _c, _d, _e, _f;
13467
+ if (itemIndex < 9) {
13468
+ return (React.createElement(React.Fragment, { key: itemIndex }, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement("div", { className: styles$2.gridItem, role: 'listitem' },
13469
+ React.createElement("div", { className: styles$2.gridBox },
13470
+ React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props, { style: {
13471
+ flexDirection: 'column',
13472
+ width: '100%',
13473
+ height: 'auto'
13474
+ } }),
13475
+ React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: {
13476
+ aspectRatio: '1/1',
13477
+ objectFit: 'cover',
13478
+ width: '100%',
13479
+ display: 'block'
13480
+ }, isActive: isActive }),
13481
+ React.createElement("div", { className: styles$2.buttonWrapper, "aria-label": (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now', dangerouslySetInnerHTML: {
13482
+ __html: setFontForText("item?.bindCta?.enTitle ?? 'Shop Now', ctaTempStyles?.ctaTitle")
13483
+ } })))))));
13484
+ }
13485
+ else {
13486
+ return null;
13487
+ }
13488
+ }))));
13489
+ };
13490
+ var NineCommodityComponent = memo(NineCommodity$1);
13491
+
13492
+ /*
13493
+ * @Author: binruan@chatlabs.com
13494
+ * @Date: 2023-07-28 18:29:57
13495
+ * @LastEditors: binruan@chatlabs.com
13496
+ * @LastEditTime: 2024-03-29 16:43:35
13497
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\NineCommodity\material.tsx
13498
+ *
13499
+ */
13500
+ const NineCommodity = createMaterial(NineCommodityComponent, {
13501
+ displayName: '推荐多商品-透明底',
13502
+ icon: '',
13503
+ category: 'template',
13504
+ type: 'NineCommodity',
13505
+ related: {
13506
+ interactionRender: interactionRender$4,
13507
+ settingRender: settingRender$8,
13508
+ bindableProps: []
13509
+ },
13510
+ defaulSetting: {
13511
+ props: {
13512
+ ctaTempStyles: {
13513
+ img: {
13514
+ borderRadius: 3,
13515
+ width: 60,
13516
+ height: 60,
13517
+ marginRight: 8
13518
+ },
13519
+ title: {
13520
+ fontSize: 12,
13521
+ color: '#fff',
13522
+ textAlign: 'left'
13523
+ },
13524
+ ctaTitle: {
13525
+ fontSize: 10,
13526
+ color: '#fff',
13527
+ textAlign: 'center',
13528
+ width: 130,
13529
+ height: 20,
13530
+ backgroundColor: 'rgba(0,0,0,.5)'
13531
+ }
13532
+ }
13533
+ },
13534
+ style: {
13535
+ padding: 7,
13536
+ width: 236,
13537
+ height: 74,
13538
+ borderRadius: 3,
13539
+ backgroundColor: 'rgba(0,0,0,.3)',
13540
+ marginBottom: 8
13541
+ }
13542
+ },
13543
+ w: 100,
13544
+ h: 40,
13545
+ sort: 3
13546
+ });
13547
+
13445
13548
  /*
13446
13549
  * @Author: binruan@chatlabs.com
13447
13550
  * @Date: 2024-04-07 14:07:12
@@ -15505,7 +15608,7 @@ function WaterfallList(_a) {
15505
15608
  * @Author: binruan@chatlabs.com
15506
15609
  * @Date: 2024-01-10 10:58:24
15507
15610
  * @LastEditors: binruan@chatlabs.com
15508
- * @LastEditTime: 2025-05-09 15:30:41
15611
+ * @LastEditTime: 2025-02-28 10:00:31
15509
15612
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15510
15613
  *
15511
15614
  */
@@ -15543,7 +15646,7 @@ const WaterFall = (props) => {
15543
15646
  }
15544
15647
  }, [waterFallData]);
15545
15648
  const reportTagsView = useCallback(() => {
15546
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15649
+ var _a, _b, _c, _d, _e, _f;
15547
15650
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
15548
15651
  if (!rec)
15549
15652
  return;
@@ -15563,10 +15666,9 @@ const WaterFall = (props) => {
15563
15666
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
15564
15667
  eventInfo: {
15565
15668
  contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
15566
- sceneId: (_g = (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
15567
15669
  position: cacheActiveIndex + '',
15568
- contentTags: JSON.stringify((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.tags),
15569
- traceInfo: (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.traceInfo,
15670
+ contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
15671
+ traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
15570
15672
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
15571
15673
  fromKName,
15572
15674
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
@@ -17633,6 +17735,7 @@ var _materials_ = /*#__PURE__*/Object.freeze({
17633
17735
  MultiCommodityDiro: MultiCommodityDiro,
17634
17736
  MultiCommodityDiroNew: MultiCommodityDiroNew,
17635
17737
  MultiPosts: MultiPosts,
17738
+ NineCommodity: NineCommodity,
17636
17739
  Prompt: Prompt,
17637
17740
  Swipe: Swipe
17638
17741
  });
@@ -17647,7 +17750,7 @@ const LikeButton = (_a) => {
17647
17750
  const likeIcon = useIconLink(defaultLikeIconPath$2);
17648
17751
  const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
17649
17752
  const handleClick = debounce(() => __awaiter(void 0, void 0, void 0, function* () {
17650
- var _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, _5;
17753
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
17651
17754
  if (state) {
17652
17755
  // 先设置状态
17653
17756
  setState(false);
@@ -17657,12 +17760,11 @@ const LikeButton = (_a) => {
17657
17760
  eventSubject: 'favoriteContentCanceled',
17658
17761
  eventDescription: 'This content was unfavorite by the user',
17659
17762
  contentId: (_g = (_f = recData === null || recData === void 0 ? void 0 : recData.video) === null || _f === void 0 ? void 0 : _f.itemId) !== null && _g !== void 0 ? _g : '',
17660
- sceneId: (_k = (_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.scene) === null || _j === void 0 ? void 0 : _j.sceneId) !== null && _k !== void 0 ? _k : '',
17661
- contentName: (_m = (_l = recData === null || recData === void 0 ? void 0 : recData.video) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : '',
17662
- contentTags: JSON.stringify((_p = (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : []),
17763
+ contentName: (_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '',
17764
+ contentTags: JSON.stringify((_l = (_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.tags) !== null && _l !== void 0 ? _l : []),
17663
17765
  position: position + '',
17664
- contentFormat: ((_q = recData === null || recData === void 0 ? void 0 : recData.video) === null || _q === void 0 ? void 0 : _q.url) ? 'video' : 'image',
17665
- traceInfo: (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.traceInfo
17766
+ contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
17767
+ traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
17666
17768
  }
17667
17769
  });
17668
17770
  // 如果接口调用失败,则回滚状态
@@ -17670,41 +17772,40 @@ const LikeButton = (_a) => {
17670
17772
  setState(true);
17671
17773
  }
17672
17774
  else {
17673
- const nRtcList = (_s = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17775
+ const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17674
17776
  if (index === position) {
17675
17777
  item.isCollected = false;
17676
17778
  }
17677
17779
  return item;
17678
- })) !== null && _s !== void 0 ? _s : [];
17780
+ })) !== null && _p !== void 0 ? _p : [];
17679
17781
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
17680
17782
  }
17681
17783
  }
17682
17784
  else {
17683
17785
  setState(true);
17684
- const result = (_t = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _t !== void 0 ? _t : false;
17786
+ const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
17685
17787
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
17686
17788
  eventInfo: {
17687
17789
  eventSubject: 'favoriteContent',
17688
17790
  eventDescription: 'This content was favorite by the user',
17689
- contentId: (_v = (_u = recData === null || recData === void 0 ? void 0 : recData.video) === null || _u === void 0 ? void 0 : _u.itemId) !== null && _v !== void 0 ? _v : '',
17690
- sceneId: (_y = (_x = (_w = recData === null || recData === void 0 ? void 0 : recData.video) === null || _w === void 0 ? void 0 : _w.scene) === null || _x === void 0 ? void 0 : _x.sceneId) !== null && _y !== void 0 ? _y : '',
17691
- contentName: (_0 = (_z = recData === null || recData === void 0 ? void 0 : recData.video) === null || _z === void 0 ? void 0 : _z.title) !== null && _0 !== void 0 ? _0 : '',
17692
- contentTags: JSON.stringify((_2 = (_1 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _1 === void 0 ? void 0 : _1.tags) !== null && _2 !== void 0 ? _2 : []),
17791
+ contentId: (_s = (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.itemId) !== null && _s !== void 0 ? _s : '',
17792
+ contentName: (_u = (_t = recData === null || recData === void 0 ? void 0 : recData.video) === null || _t === void 0 ? void 0 : _t.title) !== null && _u !== void 0 ? _u : '',
17793
+ contentTags: JSON.stringify((_w = (_v = recData === null || recData === void 0 ? void 0 : recData.video) === null || _v === void 0 ? void 0 : _v.tags) !== null && _w !== void 0 ? _w : []),
17693
17794
  position: position + '',
17694
- contentFormat: ((_3 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _3 === void 0 ? void 0 : _3.url) ? 'video' : 'image',
17695
- traceInfo: (_4 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _4 === void 0 ? void 0 : _4.traceInfo
17795
+ contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
17796
+ traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
17696
17797
  }
17697
17798
  });
17698
17799
  if (!result) {
17699
17800
  setState(false);
17700
17801
  }
17701
17802
  else {
17702
- const nRtcList = (_5 = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17803
+ const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17703
17804
  if (index === position) {
17704
17805
  item.isCollected = true;
17705
17806
  }
17706
17807
  return item;
17707
- })) !== null && _5 !== void 0 ? _5 : [];
17808
+ })) !== null && _z !== void 0 ? _z : [];
17708
17809
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
17709
17810
  }
17710
17811
  }
@@ -17807,26 +17908,6 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17807
17908
  return;
17808
17909
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17809
17910
  }, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17810
- const handleEnd = () => {
17811
- var _a, _b, _c, _d, _e, _f, _g, _h;
17812
- if (!videoRef.current)
17813
- return;
17814
- if (isDiyH5) {
17815
- (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
17816
- if (!loopPlayRef.current)
17817
- return;
17818
- if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
17819
- (_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);
17820
- }
17821
- else {
17822
- 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;
17823
- (_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);
17824
- }
17825
- }
17826
- else {
17827
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.play();
17828
- }
17829
- };
17830
17911
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
17831
17912
  const handlePlaying = useCallback(() => {
17832
17913
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -17835,7 +17916,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17835
17916
  setIsLoadFinish(true);
17836
17917
  }, []);
17837
17918
  const handleStartPlay = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
17838
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
17919
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17839
17920
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
17840
17921
  return;
17841
17922
  setIsPauseVideo(false);
@@ -17846,11 +17927,16 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17846
17927
  const videoCurrentTime = ((_h = (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.currentTime) !== null && _h !== void 0 ? _h : 0).toFixed(2);
17847
17928
  const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
17848
17929
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
17849
- eventInfo: Object.assign({ eventSubject: 'playVideo', eventDescription: 'User played the video', contentId: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '', sceneId: (_o = (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.scene) === null || _m === void 0 ? void 0 : _m.sceneId) !== null && _o !== void 0 ? _o : '', contentName: (_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.title) !== null && _q !== void 0 ? _q : '', playType, startTime: videoCurrentTime, videoDuration, contentTags: JSON.stringify((_s = (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.tags) !== null && _s !== void 0 ? _s : []), position: index + '', contentFormat: 'video', traceInfo: (_t = item === null || item === void 0 ? void 0 : item.video) === null || _t === void 0 ? void 0 : _t.traceInfo }, ((isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) && { loadTime: (loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current) + '' }))
17930
+ eventInfo: Object.assign({ eventSubject: 'playVideo', eventDescription: 'User played the video', contentId: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '', contentName: (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : '', playType, startTime: videoCurrentTime, videoDuration, contentTags: JSON.stringify((_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.tags) !== null && _p !== void 0 ? _p : []), position: index + '', contentFormat: 'video', traceInfo: (_q = item === null || item === void 0 ? void 0 : item.video) === null || _q === void 0 ? void 0 : _q.traceInfo }, ((isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) && { loadTime: (loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current) + '' }))
17850
17931
  });
17851
17932
  isFirstPlayRef.current = false;
17852
17933
  }
17853
17934
  }), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17935
+ const setCurrentTimeByStartTime = useCallback(() => {
17936
+ if (isDiyH5) {
17937
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17938
+ }
17939
+ }, []);
17854
17940
  const handLoadeddata = useCallback(() => {
17855
17941
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
17856
17942
  return;
@@ -17875,12 +17961,13 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17875
17961
  const handleLoadedmetadata = useCallback(() => {
17876
17962
  if (!videoRef.current)
17877
17963
  return;
17964
+ setCurrentTimeByStartTime();
17878
17965
  loadedTimeRef.current = new Date();
17879
17966
  handleStartPlay();
17880
17967
  handLoadeddata();
17881
17968
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
17882
17969
  const handleClickVideo = useCallback((type) => () => {
17883
- var _a, _b, _c, _d, _e;
17970
+ var _a, _b, _c, _d, _e, _f;
17884
17971
  if (!videoRef.current)
17885
17972
  return;
17886
17973
  if (!isLoadFinish)
@@ -17901,17 +17988,20 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17901
17988
  break;
17902
17989
  default:
17903
17990
  if (isPause) {
17904
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
17991
+ 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)) {
17992
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17993
+ }
17994
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
17905
17995
  }
17906
17996
  else {
17907
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
17997
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
17908
17998
  }
17909
17999
  setIsPauseVideo(!isPause);
17910
18000
  break;
17911
18001
  }
17912
18002
  }, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17913
18003
  const handlePause = useCallback(() => {
17914
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18004
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17915
18005
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
17916
18006
  return;
17917
18007
  if (activeIndex !== index)
@@ -17927,15 +18017,14 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17927
18017
  eventSubject: 'playOverVideo',
17928
18018
  eventDescription: 'User finished playing the video',
17929
18019
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
17930
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
17931
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
18020
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
17932
18021
  endTime: videoCurrentTime,
17933
18022
  videoDuration,
17934
18023
  playDuration,
17935
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
18024
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
17936
18025
  position: index + '',
17937
18026
  contentFormat: 'video',
17938
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
18027
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
17939
18028
  }
17940
18029
  });
17941
18030
  }
@@ -17943,8 +18032,27 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17943
18032
  const handleWaiting = useCallback(() => {
17944
18033
  setWaiting(true);
17945
18034
  }, []);
18035
+ const handleTimeUpload = () => {
18036
+ if (!videoRef.current || !isDiyH5)
18037
+ return;
18038
+ setTimeout(() => {
18039
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18040
+ 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)) {
18041
+ (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
18042
+ if (!loopPlayRef.current)
18043
+ return;
18044
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18045
+ (_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);
18046
+ }
18047
+ else {
18048
+ 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;
18049
+ (_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);
18050
+ }
18051
+ }
18052
+ });
18053
+ };
17946
18054
  useEffect(() => {
17947
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18055
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17948
18056
  if (!isActive)
17949
18057
  return;
17950
18058
  const videoSrc = videoUrl;
@@ -17965,6 +18073,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17965
18073
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
17966
18074
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
17967
18075
  var _a;
18076
+ setCurrentTimeByStartTime();
17968
18077
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17969
18078
  });
17970
18079
  }
@@ -17978,11 +18087,12 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17978
18087
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
17979
18088
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
17980
18089
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
17981
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
18090
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
17982
18091
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
17983
18092
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
18093
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
17984
18094
  return () => {
17985
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18095
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17986
18096
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
17987
18097
  if (!isPause)
17988
18098
  handlePause();
@@ -17994,9 +18104,10 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
17994
18104
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
17995
18105
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
17996
18106
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
17997
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
18107
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
17998
18108
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
17999
18109
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
18110
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
18000
18111
  };
18001
18112
  }, [isActive]);
18002
18113
  useEffect(() => {
@@ -18207,48 +18318,19 @@ const Picture = (props) => {
18207
18318
  }, onLoad: onShowFirstImage }))));
18208
18319
  };
18209
18320
 
18210
- const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
18321
+ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
18211
18322
  var _a, _b;
18212
18323
  const { isActive } = useSwiperSlide();
18213
- const { sxpParameter, openHashtag, isDiyH5 } = useSxpDataSource();
18324
+ const { sxpParameter, openHashtag } = useSxpDataSource();
18214
18325
  const [isLoad, setIsLoad] = useState(false);
18215
18326
  const [imgInfo, setImgInfo] = useState();
18216
18327
  const [swiperActiveIndex, setSwiperActiveIndex] = useState(0);
18217
- const imgsSwiperRef = useRef();
18328
+ const swiperRef = useRef();
18218
18329
  const isFirstPlayRef = useRef(true);
18219
- const loopPlayRef = useRef(true);
18220
18330
  const initTime = new Date();
18221
- useImperativeHandle(ref, () => {
18222
- return {
18223
- setLoopPlay(v) {
18224
- loopPlayRef.current = v;
18225
- }
18226
- };
18227
- });
18228
- useEffect(() => {
18229
- let timerId;
18230
- if (isLoad && isActive && isDiyH5) {
18231
- timerId = setTimeout(() => {
18232
- var _a, _b, _c, _d, _e, _f;
18233
- if (!loopPlayRef.current)
18234
- return;
18235
- if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18236
- (_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);
18237
- }
18238
- else {
18239
- 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;
18240
- (_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);
18241
- }
18242
- }, 3000);
18243
- }
18244
- return () => {
18245
- if (timerId)
18246
- clearTimeout(timerId);
18247
- };
18248
- }, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
18249
18331
  useEffect(() => {
18250
18332
  if (isLoad && isActive) {
18251
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
18333
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
18252
18334
  if (openHashtag) {
18253
18335
  onViewImageEndEvent(rec);
18254
18336
  }
@@ -18258,7 +18340,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18258
18340
  }
18259
18341
  }
18260
18342
  else {
18261
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
18343
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
18262
18344
  }
18263
18345
  }, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
18264
18346
  const showFirstImageFn = useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -18285,13 +18367,13 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18285
18367
  };
18286
18368
  }, [isActive, imgInfo]);
18287
18369
  const handleMouseEnter = useCallback(() => {
18288
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18289
- imgsSwiperRef.current.swiper.autoplay.stop();
18370
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18371
+ swiperRef.current.swiper.autoplay.stop();
18290
18372
  }
18291
18373
  }, []);
18292
18374
  const handleMouseLeave = useCallback(() => {
18293
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18294
- imgsSwiperRef.current.swiper.autoplay.start();
18375
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18376
+ swiperRef.current.swiper.autoplay.start();
18295
18377
  }
18296
18378
  }, []);
18297
18379
  const handleSlideChange = useCallback((swiper) => {
@@ -18312,7 +18394,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18312
18394
  enabled: true
18313
18395
  }
18314
18396
  }
18315
- : {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
18397
+ : {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
18316
18398
  bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
18317
18399
  fontSize: '14px'
18318
18400
  } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
@@ -18329,7 +18411,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
18329
18411
  return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
18330
18412
  React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
18331
18413
  }))));
18332
- });
18414
+ };
18333
18415
  var PictureGroup$5 = memo(PictureGroup$4);
18334
18416
 
18335
18417
  /*
@@ -18450,16 +18532,16 @@ function withBindDataSource(Component) {
18450
18532
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18451
18533
  *
18452
18534
  */
18453
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
18535
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18454
18536
  const { schema } = useEditor();
18455
18537
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18456
18538
  return null;
18457
18539
  const renderComp = useMemo(() => {
18458
18540
  var _a, _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;
18459
- //如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
18541
+ // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
18460
18542
  if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type)))
18461
18543
  return;
18462
- //默认不渲染category为cta类型的组件,该类型的组件只用于某一处
18544
+ // 默认不渲染category为cta类型的组件,该类型的组件只用于某一处
18463
18545
  if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
18464
18546
  return;
18465
18547
  if ((((_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.type) === 'CommodityDiro' && !((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindProduct)) ||
@@ -18472,14 +18554,14 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
18472
18554
  return null;
18473
18555
  }
18474
18556
  if (value && resolver) {
18475
- const t = resolver[(_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
18557
+ const t = resolver[isNineProduct ? 'NineCommodity' : (_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
18476
18558
  const Component = withBindDataSource(t);
18477
18559
  const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
18478
18560
  const isExternalLink = ((_x = (_w = (_v = value === null || value === void 0 ? void 0 : value.item) === null || _v === void 0 ? void 0 : _v.event) === null || _w === void 0 ? void 0 : _w.onClick) === null || _x === void 0 ? void 0 : _x.linkType) === 'externalLink';
18479
- let style = cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
18561
+ const style = cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
18480
18562
  if (style.hasOwnProperty('backdropFilter')) {
18481
- let sbf = style['backdropFilter'];
18482
- style['backdropFilter'] = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18563
+ const sbf = style.backdropFilter;
18564
+ style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18483
18565
  }
18484
18566
  return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
18485
18567
  }
@@ -18609,7 +18691,7 @@ var NavBack$1 = memo(NavBack);
18609
18691
  * @Author: binruan@chatlabs.com
18610
18692
  * @Date: 2024-03-20 10:27:31
18611
18693
  * @LastEditors: binruan@chatlabs.com
18612
- * @LastEditTime: 2025-05-12 14:26:15
18694
+ * @LastEditTime: 2025-05-09 15:51:40
18613
18695
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18614
18696
  *
18615
18697
  */
@@ -18629,7 +18711,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18629
18711
  const skipLinkRef = useRef(false);
18630
18712
  const [pageNum, setPageNum] = useState(2);
18631
18713
  const videoWidgetRef = useRef(null);
18632
- const pictureGroupRef = useRef(null);
18633
18714
  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();
18634
18715
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
18635
18716
  const isShowFingerTip = useMemo(() => {
@@ -18677,7 +18758,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18677
18758
  (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
18678
18759
  }, [data, ctaType, swiperRef]);
18679
18760
  const handleSessionCompleted = useCallback((fk) => {
18680
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
18761
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
18681
18762
  const item = data === null || data === void 0 ? void 0 : data[activeIndex];
18682
18763
  let fromKName = '';
18683
18764
  if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
@@ -18704,13 +18785,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18704
18785
  eventSubject: 'sessionCompleted',
18705
18786
  eventDescription: 'Session completed',
18706
18787
  contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
18707
- sceneId: (_q = (_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.scene) === null || _p === void 0 ? void 0 : _p.sceneId) !== null && _q !== void 0 ? _q : '',
18708
- productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
18788
+ productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
18709
18789
  position: activeIndex + '',
18710
18790
  fromKName: fk || fromKName,
18711
18791
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
18712
- ctatId: (_u = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.bindCta) === null || _t === void 0 ? void 0 : _t.itemId) !== null && _u !== void 0 ? _u : '',
18713
- traceInfo: (_y = (_w = (_v = item === null || item === void 0 ? void 0 : item.video) === null || _v === void 0 ? void 0 : _v.traceInfo) !== null && _w !== void 0 ? _w : (_x = item === null || item === void 0 ? void 0 : item.product) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : ''
18792
+ ctatId: (_r = (_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.bindCta) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
18793
+ traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : ''
18714
18794
  }
18715
18795
  });
18716
18796
  }, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
@@ -18769,9 +18849,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18769
18849
  refreshFeSession
18770
18850
  ]);
18771
18851
  const handleSessionExpire = useCallback(debounce(() => {
18772
- var _a, _b;
18852
+ var _a;
18773
18853
  (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
18774
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
18775
18854
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
18776
18855
  }, 1000), [handleSessionCompleted, refreshFeSession]);
18777
18856
  useEffect(() => {
@@ -18841,18 +18920,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18841
18920
  return null;
18842
18921
  }, [globalConfig, activeIndex, visList]);
18843
18922
  const renderContent = useCallback((rec, index) => {
18844
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
18923
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18845
18924
  if (rec === 'organic menu') {
18846
18925
  return (React.createElement(MultiPosts$2, Object.assign({ recData: data === null || data === void 0 ? void 0 : data[1] }, (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props, (_f = (_e = (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.item) === null || _f === void 0 ? void 0 : _f.event)));
18847
18926
  }
18848
- if (((_h = (_g = rec.video) === null || _g === void 0 ? void 0 : _g.scene) === null || _h === void 0 ? void 0 : _h.mediaUrl) || ((_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.url)) {
18927
+ if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
18849
18928
  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 })));
18850
18929
  }
18851
- if ((_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) {
18852
- 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 })));
18930
+ if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
18931
+ 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 }));
18853
18932
  }
18854
- if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_l = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _l === void 0 ? void 0 : _l.length) > 0) {
18855
- return (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _m === void 0 ? void 0 : _m.map((value, idx) => {
18933
+ 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) {
18934
+ return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
18856
18935
  var _a, _b, _c, _d, _e, _f, _g, _h;
18857
18936
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
18858
18937
  const Component = withBindDataSource(t);
@@ -18890,7 +18969,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18890
18969
  };
18891
18970
  }, [isShowMore]);
18892
18971
  const renderBottom = useCallback((rec, index) => {
18893
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18972
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18894
18973
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
18895
18974
  let cta = null;
18896
18975
  if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
@@ -18899,23 +18978,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18899
18978
  else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18900
18979
  cta = '商品CTA';
18901
18980
  }
18902
- else if (tempMap && ((_d = Object.keys(tempMap)) === null || _d === void 0 ? void 0 : _d.includes('服务CTA')) && ((_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta) === null || _f === void 0 ? void 0 : _f.itemId)) {
18903
- cta = '服务CTA';
18904
- }
18905
18981
  else {
18906
- cta = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindCta) === null || _h === void 0 ? void 0 : _h.itemId;
18982
+ cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
18907
18983
  }
18908
18984
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
18985
+ const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) && index === 1;
18909
18986
  return (React.createElement(React.Fragment, null,
18910
- ((_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
18911
- React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _k !== void 0 ? _k : 40}px` } },
18987
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
18988
+ ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
18989
+ React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px` } },
18912
18990
  React.createElement(Nudge, { nudge: nudge }),
18913
- (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
18991
+ ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) && !isNineProduct ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
18914
18992
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
18915
18993
  React.createElement("div", null,
18916
- React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_m = (_l = rec === null || rec === void 0 ? void 0 : rec.video) === null || _l === void 0 ? void 0 : _l.title) !== null && _m !== void 0 ? _m : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
18994
+ React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_j = (_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
18917
18995
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
18918
- React.createElement(Hashtag$1, { index: activeIndex, tags: (_p = (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.hashTags) !== null && _p !== void 0 ? _p : [], itemId: (_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.itemId, itemType: ((_r = rec === null || rec === void 0 ? void 0 : rec.video) === null || _r === void 0 ? void 0 : _r.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
18996
+ React.createElement(Hashtag$1, { index: activeIndex, tags: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.hashTags) !== null && _l !== void 0 ? _l : [], itemId: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.itemId, itemType: ((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
18919
18997
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
18920
18998
  }
18921
18999
  return null;
@@ -18953,7 +19031,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18953
19031
  return null;
18954
19032
  }, [globalConfig, waterFallData]);
18955
19033
  const handleViewImageStartEnd = (item) => {
18956
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19034
+ var _a, _b, _c, _d, _e, _f;
18957
19035
  if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
18958
19036
  const endTime = Date.now();
18959
19037
  const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
@@ -18962,11 +19040,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18962
19040
  eventSubject: 'viewImageCarouselEnd',
18963
19041
  eventDescription: 'User end view the image carousel',
18964
19042
  contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
18965
- sceneId: (_g = (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
18966
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19043
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
18967
19044
  imageEndTime: `${endTime}`,
18968
19045
  playDuration: `${duration}`,
18969
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19046
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
18970
19047
  position: activeIndex + '',
18971
19048
  contentFormat: 'image',
18972
19049
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
@@ -18975,7 +19052,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18975
19052
  }
18976
19053
  };
18977
19054
  const handleSlideSkip = (item, position) => {
18978
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
19055
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
18979
19056
  if (isPreview || waterFallData)
18980
19057
  return;
18981
19058
  const t = new Date() - curTime.current;
@@ -19001,8 +19078,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19001
19078
  contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
19002
19079
  position: position + '',
19003
19080
  contentId: (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.itemId) !== null && _t !== void 0 ? _t : '',
19004
- sceneId: (_w = (_v = (_u = item === null || item === void 0 ? void 0 : item.video) === null || _u === void 0 ? void 0 : _u.scene) === null || _v === void 0 ? void 0 : _v.sceneId) !== null && _w !== void 0 ? _w : '',
19005
- traceInfo: (_0 = (_y = (_x = item === null || item === void 0 ? void 0 : item.video) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : (_z = item === null || item === void 0 ? void 0 : item.product) === null || _z === void 0 ? void 0 : _z.traceInfo) !== null && _0 !== void 0 ? _0 : '',
19081
+ traceInfo: (_x = (_v = (_u = item === null || item === void 0 ? void 0 : item.video) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : (_w = item === null || item === void 0 ? void 0 : item.product) === null || _w === void 0 ? void 0 : _w.traceInfo) !== null && _x !== void 0 ? _x : '',
19006
19082
  contentFormat
19007
19083
  }
19008
19084
  });
@@ -19012,7 +19088,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19012
19088
  }
19013
19089
  };
19014
19090
  const handleScrollEvent = (swiper) => {
19015
- var _a, _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;
19091
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19016
19092
  const item = data[swiper.previousIndex];
19017
19093
  if (!item)
19018
19094
  return;
@@ -19029,12 +19105,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19029
19105
  eventSubject: 'scrollDown',
19030
19106
  eventDescription: 'User scroll down',
19031
19107
  contentId: (_e = (_d = item === null || item === void 0 ? void 0 : item.video) === null || _d === void 0 ? void 0 : _d.itemId) !== null && _e !== void 0 ? _e : '',
19032
- sceneId: (_h = (_g = (_f = item === null || item === void 0 ? void 0 : item.video) === null || _f === void 0 ? void 0 : _f.scene) === null || _g === void 0 ? void 0 : _g.sceneId) !== null && _h !== void 0 ? _h : '',
19033
- productId: (_k = (_j = item === null || item === void 0 ? void 0 : item.product) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '',
19108
+ productId: (_g = (_f = item === null || item === void 0 ? void 0 : item.product) === null || _f === void 0 ? void 0 : _f.itemId) !== null && _g !== void 0 ? _g : '',
19034
19109
  requestId: null,
19035
- traceInfo: (_p = (_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.traceInfo) !== null && _m !== void 0 ? _m : (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.traceInfo) !== null && _p !== void 0 ? _p : '',
19110
+ traceInfo: (_l = (_j = (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.traceInfo) !== null && _j !== void 0 ? _j : (_k = item === null || item === void 0 ? void 0 : item.product) === null || _k === void 0 ? void 0 : _k.traceInfo) !== null && _l !== void 0 ? _l : '',
19036
19111
  contentFormat,
19037
- position: ((_q = swiper.previousIndex) !== null && _q !== void 0 ? _q : 0) + ''
19112
+ position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
19038
19113
  }
19039
19114
  });
19040
19115
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19046,13 +19121,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19046
19121
  eventInfo: {
19047
19122
  eventSubject: 'scrollUp',
19048
19123
  eventDescription: 'User scroll up',
19049
- contentId: (_s = (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.itemId) !== null && _s !== void 0 ? _s : '',
19050
- sceneId: (_v = (_u = (_t = item === null || item === void 0 ? void 0 : item.video) === null || _t === void 0 ? void 0 : _t.scene) === null || _u === void 0 ? void 0 : _u.sceneId) !== null && _v !== void 0 ? _v : '',
19051
- productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
19124
+ contentId: (_p = (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.itemId) !== null && _p !== void 0 ? _p : '',
19125
+ productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
19052
19126
  requestId: null,
19053
- traceInfo: (_1 = (_z = (_y = item === null || item === void 0 ? void 0 : item.video) === null || _y === void 0 ? void 0 : _y.traceInfo) !== null && _z !== void 0 ? _z : (_0 = item === null || item === void 0 ? void 0 : item.product) === null || _0 === void 0 ? void 0 : _0.traceInfo) !== null && _1 !== void 0 ? _1 : '',
19127
+ traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : '',
19054
19128
  contentFormat,
19055
- position: ((_2 = swiper.previousIndex) !== null && _2 !== void 0 ? _2 : 0) + ''
19129
+ position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
19056
19130
  }
19057
19131
  });
19058
19132
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19078,7 +19152,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19078
19152
  }
19079
19153
  }, [openHashtag, data, activeIndex]);
19080
19154
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19081
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
19155
+ var _a, _b, _c, _d, _e, _f, _g, _h;
19082
19156
  const item = data[activeIndex];
19083
19157
  // 如果是图片集则上报事件
19084
19158
  if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
@@ -19089,10 +19163,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19089
19163
  eventSubject: 'viewImageCarouselStart',
19090
19164
  eventDescription: 'User start view the image carousel',
19091
19165
  contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
19092
- sceneId: (_g = (_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.scene) === null || _f === void 0 ? void 0 : _f.sceneId) !== null && _g !== void 0 ? _g : '',
19093
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19166
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19094
19167
  imageStartTime: `${startTime}`,
19095
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19168
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19096
19169
  position: activeIndex + '',
19097
19170
  contentFormat: 'image',
19098
19171
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
@@ -19102,11 +19175,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19102
19175
  if (enableCapi) {
19103
19176
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19104
19177
  eventName: 'ViewContent',
19105
- product: (_k = item === null || item === void 0 ? void 0 : item.video) === null || _k === void 0 ? void 0 : _k.bindProduct
19178
+ product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
19106
19179
  });
19107
19180
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19108
19181
  eventName: 'PageView',
19109
- product: (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.bindProduct
19182
+ product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
19110
19183
  });
19111
19184
  }
19112
19185
  }
@@ -19259,7 +19332,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19259
19332
  }, []);
19260
19333
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
19261
19334
  const handlePlaying = useCallback(() => {
19262
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19335
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19263
19336
  setIsPauseVideo(false);
19264
19337
  const item = data[index];
19265
19338
  if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
@@ -19272,15 +19345,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19272
19345
  eventSubject: 'playVideo',
19273
19346
  eventDescription: 'User played the video',
19274
19347
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
19275
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
19276
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
19348
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
19277
19349
  playType,
19278
19350
  startTime: videoCurrentTime,
19279
19351
  videoDuration,
19280
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
19352
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
19281
19353
  position: index + '',
19282
19354
  contentFormat: 'video',
19283
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19355
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19284
19356
  }
19285
19357
  });
19286
19358
  setIsFirstPlay(false);
@@ -19319,7 +19391,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19319
19391
  }
19320
19392
  }, [isLoadFinish]);
19321
19393
  const onPause = useCallback(() => {
19322
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19394
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19323
19395
  const item = data[index];
19324
19396
  const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
19325
19397
  const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -19330,15 +19402,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19330
19402
  eventSubject: 'playOverVideo',
19331
19403
  eventDescription: 'User finished playing the video',
19332
19404
  contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
19333
- sceneId: (_l = (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.scene) === null || _k === void 0 ? void 0 : _k.sceneId) !== null && _l !== void 0 ? _l : '',
19334
- contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
19405
+ contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
19335
19406
  endTime: videoCurrentTime,
19336
19407
  videoDuration,
19337
19408
  playDuration,
19338
- contentTags: JSON.stringify((_q = (_p = item === null || item === void 0 ? void 0 : item.video) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []),
19409
+ contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
19339
19410
  position: index + '',
19340
19411
  contentFormat: 'video',
19341
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19412
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19342
19413
  }
19343
19414
  });
19344
19415
  }