pb-sxp-ui 1.15.44 → 1.16.2

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 +283 -210
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +125 -0
  4. package/dist/index.js +283 -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 +283 -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 +41 -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 +43 -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.cjs CHANGED
@@ -1086,7 +1086,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1086
1086
  }
1087
1087
  }), [bffFetch, utmVal]);
1088
1088
  const ctaEvent = React.useCallback((eventInfo, rec, product, position) => {
1089
- 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;
1089
+ 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;
1090
1090
  const cta = product === null || product === void 0 ? void 0 : product.bindCta;
1091
1091
  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);
1092
1092
  let fromKName = '';
@@ -1104,7 +1104,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1104
1104
  }
1105
1105
  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;
1106
1106
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1107
- 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 })
1107
+ 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 })
1108
1108
  });
1109
1109
  }, [bffEventReport, isFromHashtag]);
1110
1110
  const h5EnterLink = React.useCallback(() => {
@@ -1543,7 +1543,7 @@ var index$3 = /*#__PURE__*/Object.freeze({
1543
1543
  EditorCore: EditorCore
1544
1544
  });
1545
1545
 
1546
- var interactionRender$g = [
1546
+ var interactionRender$h = [
1547
1547
  {
1548
1548
  title: '点击事件',
1549
1549
  child: [
@@ -1765,14 +1765,14 @@ var settingRender$f = [
1765
1765
  * @Author: binruan@chatlabs.com
1766
1766
  * @Date: 2024-03-12 10:59:06
1767
1767
  * @LastEditors: binruan@chatlabs.com
1768
- * @LastEditTime: 2025-05-09 15:30:59
1768
+ * @LastEditTime: 2024-11-28 11:17:16
1769
1769
  * @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
1770
1770
  *
1771
1771
  */
1772
1772
  function useEventReport() {
1773
1773
  const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
1774
1774
  const jumpToWeb = React.useCallback((e, data, product, cta, position, traceInfo) => {
1775
- 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;
1775
+ 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;
1776
1776
  const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
1777
1777
  if (i !== -1) {
1778
1778
  return;
@@ -1805,11 +1805,11 @@ function useEventReport() {
1805
1805
  contentFormat = 'image';
1806
1806
  }
1807
1807
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
1808
- 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 }))
1808
+ 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 }))
1809
1809
  });
1810
1810
  }, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
1811
1811
  const productView = React.useCallback((data, product, cta, viewTime, position) => {
1812
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
1812
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
1813
1813
  let fromKName = '';
1814
1814
  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))) {
1815
1815
  fromKName = 'pdpPage';
@@ -1828,9 +1828,8 @@ function useEventReport() {
1828
1828
  contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
1829
1829
  position: position + '',
1830
1830
  contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
1831
- 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 : '',
1832
1831
  ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
1833
- 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 : '',
1832
+ 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 : '',
1834
1833
  timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
1835
1834
  eventSubject: 'productView',
1836
1835
  eventDescription: 'User browsed the product'
@@ -2002,7 +2001,7 @@ const AppointForm = createMaterial(AppointFormComponent, {
2002
2001
  related: {
2003
2002
  settingRender: settingRender$f,
2004
2003
  bindableProps: [],
2005
- interactionRender: interactionRender$g
2004
+ interactionRender: interactionRender$h
2006
2005
  },
2007
2006
  defaulSetting: {
2008
2007
  name: '表单',
@@ -10613,7 +10612,7 @@ var CommodityDetailComponent = React.memo(CommodityDetail$1);
10613
10612
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10614
10613
  *
10615
10614
  */
10616
- var interactionRender$f = [
10615
+ var interactionRender$g = [
10617
10616
  {
10618
10617
  title: '滑动事件',
10619
10618
  child: [
@@ -10641,7 +10640,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10641
10640
  type: 'CommodityDetail',
10642
10641
  related: {
10643
10642
  settingRender: settingRender$e,
10644
- interactionRender: interactionRender$f
10643
+ interactionRender: interactionRender$g
10645
10644
  },
10646
10645
  defaulSetting: {
10647
10646
  props: {
@@ -10697,7 +10696,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10697
10696
  sort: 1
10698
10697
  });
10699
10698
 
10700
- var interactionRender$e = [
10699
+ var interactionRender$f = [
10701
10700
  {
10702
10701
  title: '点击事件',
10703
10702
  child: [
@@ -10899,7 +10898,7 @@ const Prompt = createMaterial(PromptComponent, {
10899
10898
  related: {
10900
10899
  settingRender: settingRender$d,
10901
10900
  bindableProps: [],
10902
- interactionRender: interactionRender$e
10901
+ interactionRender: interactionRender$f
10903
10902
  },
10904
10903
  defaulSetting: {
10905
10904
  props: {
@@ -11593,7 +11592,7 @@ var CommodityDetailDiroNewComponent = React.memo(CommodityDetailDiroNew$1);
11593
11592
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
11594
11593
  *
11595
11594
  */
11596
- var interactionRender$d = [
11595
+ var interactionRender$e = [
11597
11596
  {
11598
11597
  title: '滑动事件',
11599
11598
  child: [
@@ -11621,7 +11620,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
11621
11620
  type: 'CommodityDetailDiroNew',
11622
11621
  related: {
11623
11622
  settingRender: settingRender$c,
11624
- interactionRender: interactionRender$d
11623
+ interactionRender: interactionRender$e
11625
11624
  },
11626
11625
  defaulSetting: {
11627
11626
  props: {
@@ -12095,7 +12094,7 @@ var CommodityListComponent = React.memo(CommodityList$1);
12095
12094
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
12096
12095
  *
12097
12096
  */
12098
- var interactionRender$c = [
12097
+ var interactionRender$d = [
12099
12098
  {
12100
12099
  title: '点击事件',
12101
12100
  child: [
@@ -12123,7 +12122,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12123
12122
  type: 'CommodityList',
12124
12123
  related: {
12125
12124
  settingRender: settingRender$b,
12126
- interactionRender: interactionRender$c
12125
+ interactionRender: interactionRender$d
12127
12126
  },
12128
12127
  defaulSetting: {
12129
12128
  props: {
@@ -12531,7 +12530,7 @@ var settingRender$8 = [
12531
12530
  }
12532
12531
  ];
12533
12532
 
12534
- var interactionRender$b = [
12533
+ var interactionRender$c = [
12535
12534
  {
12536
12535
  title: '点击事件',
12537
12536
  child: [
@@ -12585,7 +12584,7 @@ const EventProvider = (_a) => {
12585
12584
  };
12586
12585
  var EventProvider$1 = React.memo(EventProvider);
12587
12586
 
12588
- var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
12587
+ var styles$9 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
12589
12588
 
12590
12589
  const Commodity$1 = (_a) => {
12591
12590
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -12603,7 +12602,7 @@ const Commodity$1 = (_a) => {
12603
12602
  width: '100%',
12604
12603
  overflow: 'hidden'
12605
12604
  }) },
12606
- React.createElement("div", { className: styles$8['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12605
+ React.createElement("div", { className: styles$9['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12607
12606
  __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)
12608
12607
  } }),
12609
12608
  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.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: {
@@ -12626,7 +12625,7 @@ const Commodity = createMaterial(CommodityComponent, {
12626
12625
  category: 'template',
12627
12626
  type: 'Commodity',
12628
12627
  related: {
12629
- interactionRender: interactionRender$b,
12628
+ interactionRender: interactionRender$c,
12630
12629
  bindableProps: [],
12631
12630
  settingRender: settingRender$8
12632
12631
  },
@@ -12668,7 +12667,7 @@ const Commodity = createMaterial(CommodityComponent, {
12668
12667
  sort: 1
12669
12668
  });
12670
12669
 
12671
- var interactionRender$a = [
12670
+ var interactionRender$b = [
12672
12671
  {
12673
12672
  title: '点击事件',
12674
12673
  child: [
@@ -12709,7 +12708,7 @@ const Appoint = createMaterial(AppointComponent, {
12709
12708
  category: 'template',
12710
12709
  type: 'Appoint',
12711
12710
  related: {
12712
- interactionRender: interactionRender$a,
12711
+ interactionRender: interactionRender$b,
12713
12712
  settingRender: settingRender$8 === null || settingRender$8 === void 0 ? void 0 : settingRender$8.filter((i) => i.type !== 'commodityTitle'),
12714
12713
  bindableProps: []
12715
12714
  },
@@ -12861,7 +12860,7 @@ var linkSettingRender = [
12861
12860
  }
12862
12861
  ];
12863
12862
 
12864
- var styles$7 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
12863
+ var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
12865
12864
 
12866
12865
  const Link$1 = (_a) => {
12867
12866
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
@@ -12879,10 +12878,10 @@ const Link$1 = (_a) => {
12879
12878
  overflow: 'hidden'
12880
12879
  }) },
12881
12880
  React.createElement("div", null,
12882
- React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
12881
+ React.createElement("div", { className: styles$8['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
12883
12882
  __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)
12884
12883
  } }),
12885
- (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: {
12884
+ (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: {
12886
12885
  __html: setFontForText(customTitle === null || customTitle === void 0 ? void 0 : customTitle.text, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style)
12887
12886
  } }))))));
12888
12887
  };
@@ -12896,7 +12895,7 @@ var LinkComponent = React.memo(Link$1);
12896
12895
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
12897
12896
  *
12898
12897
  */
12899
- var interactionRender$9 = [
12898
+ var interactionRender$a = [
12900
12899
  {
12901
12900
  title: '点击事件',
12902
12901
  child: [
@@ -12918,7 +12917,7 @@ const Link = createMaterial(LinkComponent, {
12918
12917
  related: {
12919
12918
  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),
12920
12919
  bindableProps: [],
12921
- interactionRender: interactionRender$9
12920
+ interactionRender: interactionRender$a
12922
12921
  },
12923
12922
  defaulSetting: {
12924
12923
  props: {
@@ -12964,7 +12963,7 @@ const Link = createMaterial(LinkComponent, {
12964
12963
  sort: 5
12965
12964
  });
12966
12965
 
12967
- var interactionRender$8 = [
12966
+ var interactionRender$9 = [
12968
12967
  {
12969
12968
  title: '点击事件',
12970
12969
  child: [
@@ -12977,7 +12976,7 @@ var interactionRender$8 = [
12977
12976
  }
12978
12977
  ];
12979
12978
 
12980
- var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
12979
+ var styles$7 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
12981
12980
 
12982
12981
  const CommodityDiro$1 = (_a) => {
12983
12982
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
@@ -12995,7 +12994,7 @@ const CommodityDiro$1 = (_a) => {
12995
12994
  width: '100%',
12996
12995
  overflow: 'hidden'
12997
12996
  }) },
12998
- React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12997
+ React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
12999
12998
  __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)
13000
12999
  } }),
13001
13000
  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.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: {
@@ -13018,7 +13017,7 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13018
13017
  category: 'template',
13019
13018
  type: 'CommodityDiro',
13020
13019
  related: {
13021
- interactionRender: interactionRender$8,
13020
+ interactionRender: interactionRender$9,
13022
13021
  settingRender: settingRender$8,
13023
13022
  bindableProps: []
13024
13023
  },
@@ -13060,7 +13059,7 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13060
13059
  sort: 2
13061
13060
  });
13062
13061
 
13063
- var interactionRender$7 = [
13062
+ var interactionRender$8 = [
13064
13063
  {
13065
13064
  title: '点击事件',
13066
13065
  child: [
@@ -13073,7 +13072,7 @@ var interactionRender$7 = [
13073
13072
  }
13074
13073
  ];
13075
13074
 
13076
- var styles$5 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
13075
+ var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
13077
13076
 
13078
13077
  const CommodityDiroNew$1 = (_a) => {
13079
13078
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
@@ -13091,7 +13090,7 @@ const CommodityDiroNew$1 = (_a) => {
13091
13090
  width: '100%',
13092
13091
  overflow: 'hidden'
13093
13092
  }) },
13094
- React.createElement("div", { className: styles$5['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13093
+ React.createElement("div", { className: styles$6['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13095
13094
  __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)
13096
13095
  } }),
13097
13096
  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.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13114,7 +13113,7 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13114
13113
  category: 'template',
13115
13114
  type: 'CommodityDiroNew',
13116
13115
  related: {
13117
- interactionRender: interactionRender$7,
13116
+ interactionRender: interactionRender$8,
13118
13117
  bindableProps: [],
13119
13118
  settingRender: settingRender$8
13120
13119
  },
@@ -13157,7 +13156,7 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13157
13156
  sort: 2
13158
13157
  });
13159
13158
 
13160
- var interactionRender$6 = [
13159
+ var interactionRender$7 = [
13161
13160
  {
13162
13161
  title: '点击事件',
13163
13162
  child: [
@@ -13170,7 +13169,7 @@ var interactionRender$6 = [
13170
13169
  }
13171
13170
  ];
13172
13171
 
13173
- var styles$4 = {"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};
13172
+ var styles$5 = {"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};
13174
13173
 
13175
13174
  const MultiCommodityDiro$1 = (_a) => {
13176
13175
  var _b, _c;
@@ -13190,7 +13189,7 @@ const MultiCommodityDiro$1 = (_a) => {
13190
13189
  width: '100%',
13191
13190
  overflow: 'hidden'
13192
13191
  }) },
13193
- React.createElement("div", { className: styles$4['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13192
+ React.createElement("div", { className: styles$5['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13194
13193
  __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)
13195
13194
  } }),
13196
13195
  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.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: {
@@ -13214,7 +13213,7 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13214
13213
  category: 'template',
13215
13214
  type: 'MultiCommodityDiro',
13216
13215
  related: {
13217
- interactionRender: interactionRender$6,
13216
+ interactionRender: interactionRender$7,
13218
13217
  bindableProps: [],
13219
13218
  settingRender: settingRender$8
13220
13219
  },
@@ -13256,7 +13255,7 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13256
13255
  sort: 4
13257
13256
  });
13258
13257
 
13259
- var interactionRender$5 = [
13258
+ var interactionRender$6 = [
13260
13259
  {
13261
13260
  title: '点击事件',
13262
13261
  child: [
@@ -13269,7 +13268,7 @@ var interactionRender$5 = [
13269
13268
  }
13270
13269
  ];
13271
13270
 
13272
- var styles$3 = {"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};
13271
+ var styles$4 = {"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};
13273
13272
 
13274
13273
  const MultiCommodity$1 = (_a) => {
13275
13274
  var _b, _c;
@@ -13289,7 +13288,7 @@ const MultiCommodity$1 = (_a) => {
13289
13288
  width: '100%',
13290
13289
  overflow: 'hidden'
13291
13290
  }) },
13292
- React.createElement("div", { className: styles$3['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13291
+ React.createElement("div", { className: styles$4['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13293
13292
  __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)
13294
13293
  } }),
13295
13294
  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.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: {
@@ -13313,7 +13312,7 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13313
13312
  category: 'template',
13314
13313
  type: 'MultiCommodity',
13315
13314
  related: {
13316
- interactionRender: interactionRender$5,
13315
+ interactionRender: interactionRender$6,
13317
13316
  settingRender: settingRender$8,
13318
13317
  bindableProps: []
13319
13318
  },
@@ -13363,7 +13362,7 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13363
13362
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\interactionRender.tsx
13364
13363
  *
13365
13364
  */
13366
- var interactionRender$4 = [
13365
+ var interactionRender$5 = [
13367
13366
  {
13368
13367
  title: '点击事件',
13369
13368
  child: [
@@ -13376,7 +13375,7 @@ var interactionRender$4 = [
13376
13375
  }
13377
13376
  ];
13378
13377
 
13379
- var styles$2 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};
13378
+ var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};
13380
13379
 
13381
13380
  const MultiCommodityDiroNew$1 = (_a) => {
13382
13381
  var _b, _c;
@@ -13397,7 +13396,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
13397
13396
  overflow: 'hidden',
13398
13397
  lineHeight: '20px'
13399
13398
  }) },
13400
- React.createElement("div", { className: styles$2['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13399
+ React.createElement("div", { className: styles$3['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
13401
13400
  __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)
13402
13401
  } }),
13403
13402
  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.css(Object.assign({ textOverflow: 'ellipsis', overflow: 'hidden', whiteSpace: 'nowrap' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)), dangerouslySetInnerHTML: {
@@ -13421,7 +13420,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13421
13420
  category: 'template',
13422
13421
  type: 'MultiCommodityDiroNew',
13423
13422
  related: {
13424
- interactionRender: interactionRender$4,
13423
+ interactionRender: interactionRender$5,
13425
13424
  bindableProps: [],
13426
13425
  settingRender: settingRender$8
13427
13426
  },
@@ -13464,6 +13463,112 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13464
13463
  sort: 4
13465
13464
  });
13466
13465
 
13466
+ var interactionRender$4 = [
13467
+ {
13468
+ title: '点击事件',
13469
+ child: [
13470
+ {
13471
+ type: 'link',
13472
+ name: 'onClick',
13473
+ hiddenUrl: true
13474
+ }
13475
+ ]
13476
+ }
13477
+ ];
13478
+
13479
+ 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"};
13480
+
13481
+ const NineCommodity$1 = (_a) => {
13482
+ var _b, _c;
13483
+ 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"]);
13484
+ const { sxpParameter } = useSxpDataSource();
13485
+ const [products] = React.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 : [{}, {}, {}, {}, {}, {}, {}, {}, {}]);
13486
+ if (!(products === null || products === void 0 ? void 0 : products.length) || (products === null || products === void 0 ? void 0 : products.length) < 1)
13487
+ return null;
13488
+ return (React.createElement("div", { className: styles$2.nineProduct },
13489
+ React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13490
+ var _a, _b, _c, _d, _e, _f, _g, _h;
13491
+ if (itemIndex < 9) {
13492
+ 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' },
13493
+ React.createElement("div", { className: styles$2.gridBox },
13494
+ React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props, { style: {
13495
+ flexDirection: 'column',
13496
+ width: '100%',
13497
+ height: 'auto'
13498
+ } }),
13499
+ 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: {
13500
+ aspectRatio: '1/1',
13501
+ objectFit: 'cover',
13502
+ width: '100%',
13503
+ display: 'block'
13504
+ }, isActive: isActive }),
13505
+ 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: {
13506
+ __html: setFontForText((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
13507
+ } })))))));
13508
+ }
13509
+ else {
13510
+ return null;
13511
+ }
13512
+ }))));
13513
+ };
13514
+ var NineCommodityComponent = React.memo(NineCommodity$1);
13515
+
13516
+ /*
13517
+ * @Author: binruan@chatlabs.com
13518
+ * @Date: 2023-07-28 18:29:57
13519
+ * @LastEditors: binruan@chatlabs.com
13520
+ * @LastEditTime: 2024-03-29 16:43:35
13521
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\NineCommodity\material.tsx
13522
+ *
13523
+ */
13524
+ const NineCommodity = createMaterial(NineCommodityComponent, {
13525
+ displayName: '推荐多商品-透明底',
13526
+ icon: '',
13527
+ category: 'template',
13528
+ type: 'NineCommodity',
13529
+ related: {
13530
+ interactionRender: interactionRender$4,
13531
+ settingRender: settingRender$8,
13532
+ bindableProps: []
13533
+ },
13534
+ defaulSetting: {
13535
+ props: {
13536
+ ctaTempStyles: {
13537
+ img: {
13538
+ borderRadius: 3,
13539
+ width: 60,
13540
+ height: 60,
13541
+ marginRight: 8
13542
+ },
13543
+ title: {
13544
+ fontSize: 12,
13545
+ color: '#fff',
13546
+ textAlign: 'left'
13547
+ },
13548
+ ctaTitle: {
13549
+ fontSize: 10,
13550
+ color: '#fff',
13551
+ textAlign: 'center',
13552
+ width: 130,
13553
+ height: 20,
13554
+ backgroundColor: 'rgba(0,0,0,.5)'
13555
+ }
13556
+ }
13557
+ },
13558
+ style: {
13559
+ padding: 7,
13560
+ width: 236,
13561
+ height: 74,
13562
+ borderRadius: 3,
13563
+ backgroundColor: 'rgba(0,0,0,.3)',
13564
+ marginBottom: 8
13565
+ }
13566
+ },
13567
+ w: 100,
13568
+ h: 40,
13569
+ sort: 3
13570
+ });
13571
+
13467
13572
  /*
13468
13573
  * @Author: binruan@chatlabs.com
13469
13574
  * @Date: 2024-04-07 14:07:12
@@ -15527,7 +15632,7 @@ function WaterfallList(_a) {
15527
15632
  * @Author: binruan@chatlabs.com
15528
15633
  * @Date: 2024-01-10 10:58:24
15529
15634
  * @LastEditors: binruan@chatlabs.com
15530
- * @LastEditTime: 2025-05-09 15:30:41
15635
+ * @LastEditTime: 2025-02-28 10:00:31
15531
15636
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
15532
15637
  *
15533
15638
  */
@@ -15565,7 +15670,7 @@ const WaterFall = (props) => {
15565
15670
  }
15566
15671
  }, [waterFallData]);
15567
15672
  const reportTagsView = React.useCallback(() => {
15568
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
15673
+ var _a, _b, _c, _d, _e, _f;
15569
15674
  const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
15570
15675
  if (!rec)
15571
15676
  return;
@@ -15585,10 +15690,9 @@ const WaterFall = (props) => {
15585
15690
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
15586
15691
  eventInfo: {
15587
15692
  contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
15588
- 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 : '',
15589
15693
  position: cacheActiveIndex + '',
15590
- contentTags: JSON.stringify((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.tags),
15591
- traceInfo: (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.traceInfo,
15694
+ contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
15695
+ traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
15592
15696
  hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
15593
15697
  fromKName,
15594
15698
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
@@ -17655,6 +17759,7 @@ var _materials_ = /*#__PURE__*/Object.freeze({
17655
17759
  MultiCommodityDiro: MultiCommodityDiro,
17656
17760
  MultiCommodityDiroNew: MultiCommodityDiroNew,
17657
17761
  MultiPosts: MultiPosts,
17762
+ NineCommodity: NineCommodity,
17658
17763
  Prompt: Prompt,
17659
17764
  Swipe: Swipe
17660
17765
  });
@@ -17669,7 +17774,7 @@ const LikeButton = (_a) => {
17669
17774
  const likeIcon = useIconLink(defaultLikeIconPath$2);
17670
17775
  const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
17671
17776
  const handleClick = lodash.debounce(() => __awaiter(void 0, void 0, void 0, function* () {
17672
- 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;
17777
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
17673
17778
  if (state) {
17674
17779
  // 先设置状态
17675
17780
  setState(false);
@@ -17679,12 +17784,11 @@ const LikeButton = (_a) => {
17679
17784
  eventSubject: 'favoriteContentCanceled',
17680
17785
  eventDescription: 'This content was unfavorite by the user',
17681
17786
  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 : '',
17682
- 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 : '',
17683
- 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 : '',
17684
- 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 : []),
17787
+ 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 : '',
17788
+ 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 : []),
17685
17789
  position: position + '',
17686
- contentFormat: ((_q = recData === null || recData === void 0 ? void 0 : recData.video) === null || _q === void 0 ? void 0 : _q.url) ? 'video' : 'image',
17687
- traceInfo: (_r = recData === null || recData === void 0 ? void 0 : recData.video) === null || _r === void 0 ? void 0 : _r.traceInfo
17790
+ contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
17791
+ traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
17688
17792
  }
17689
17793
  });
17690
17794
  // 如果接口调用失败,则回滚状态
@@ -17692,41 +17796,40 @@ const LikeButton = (_a) => {
17692
17796
  setState(true);
17693
17797
  }
17694
17798
  else {
17695
- const nRtcList = (_s = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17799
+ const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17696
17800
  if (index === position) {
17697
17801
  item.isCollected = false;
17698
17802
  }
17699
17803
  return item;
17700
- })) !== null && _s !== void 0 ? _s : [];
17804
+ })) !== null && _p !== void 0 ? _p : [];
17701
17805
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
17702
17806
  }
17703
17807
  }
17704
17808
  else {
17705
17809
  setState(true);
17706
- const result = (_t = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _t !== void 0 ? _t : false;
17810
+ const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
17707
17811
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
17708
17812
  eventInfo: {
17709
17813
  eventSubject: 'favoriteContent',
17710
17814
  eventDescription: 'This content was favorite by the user',
17711
- 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 : '',
17712
- 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 : '',
17713
- 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 : '',
17714
- 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 : []),
17815
+ 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 : '',
17816
+ 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 : '',
17817
+ 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 : []),
17715
17818
  position: position + '',
17716
- contentFormat: ((_3 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _3 === void 0 ? void 0 : _3.url) ? 'video' : 'image',
17717
- traceInfo: (_4 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _4 === void 0 ? void 0 : _4.traceInfo
17819
+ contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
17820
+ traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
17718
17821
  }
17719
17822
  });
17720
17823
  if (!result) {
17721
17824
  setState(false);
17722
17825
  }
17723
17826
  else {
17724
- const nRtcList = (_5 = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17827
+ const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
17725
17828
  if (index === position) {
17726
17829
  item.isCollected = true;
17727
17830
  }
17728
17831
  return item;
17729
- })) !== null && _5 !== void 0 ? _5 : [];
17832
+ })) !== null && _z !== void 0 ? _z : [];
17730
17833
  setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
17731
17834
  }
17732
17835
  }
@@ -17829,26 +17932,6 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17829
17932
  return;
17830
17933
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17831
17934
  }, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17832
- const handleEnd = () => {
17833
- var _a, _b, _c, _d, _e, _f, _g, _h;
17834
- if (!videoRef.current)
17835
- return;
17836
- if (isDiyH5) {
17837
- (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
17838
- if (!loopPlayRef.current)
17839
- return;
17840
- if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
17841
- (_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);
17842
- }
17843
- else {
17844
- 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;
17845
- (_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);
17846
- }
17847
- }
17848
- else {
17849
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.play();
17850
- }
17851
- };
17852
17935
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
17853
17936
  const handlePlaying = React.useCallback(() => {
17854
17937
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
@@ -17857,7 +17940,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17857
17940
  setIsLoadFinish(true);
17858
17941
  }, []);
17859
17942
  const handleStartPlay = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
17860
- var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
17943
+ var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17861
17944
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
17862
17945
  return;
17863
17946
  setIsPauseVideo(false);
@@ -17868,11 +17951,16 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17868
17951
  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);
17869
17952
  const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
17870
17953
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
17871
- 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) + '' }))
17954
+ 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) + '' }))
17872
17955
  });
17873
17956
  isFirstPlayRef.current = false;
17874
17957
  }
17875
17958
  }), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17959
+ const setCurrentTimeByStartTime = React.useCallback(() => {
17960
+ if (isDiyH5) {
17961
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
17962
+ }
17963
+ }, []);
17876
17964
  const handLoadeddata = React.useCallback(() => {
17877
17965
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
17878
17966
  return;
@@ -17897,12 +17985,13 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17897
17985
  const handleLoadedmetadata = React.useCallback(() => {
17898
17986
  if (!videoRef.current)
17899
17987
  return;
17988
+ setCurrentTimeByStartTime();
17900
17989
  loadedTimeRef.current = new Date();
17901
17990
  handleStartPlay();
17902
17991
  handLoadeddata();
17903
17992
  }, [videoRef.current, handLoadeddata, handleStartPlay]);
17904
17993
  const handleClickVideo = React.useCallback((type) => () => {
17905
- var _a, _b, _c, _d, _e;
17994
+ var _a, _b, _c, _d, _e, _f;
17906
17995
  if (!videoRef.current)
17907
17996
  return;
17908
17997
  if (!isLoadFinish)
@@ -17923,17 +18012,20 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17923
18012
  break;
17924
18013
  default:
17925
18014
  if (isPause) {
17926
- (_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.play();
18015
+ 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)) {
18016
+ videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
18017
+ }
18018
+ (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
17927
18019
  }
17928
18020
  else {
17929
- (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.pause();
18021
+ (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
17930
18022
  }
17931
18023
  setIsPauseVideo(!isPause);
17932
18024
  break;
17933
18025
  }
17934
18026
  }, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
17935
18027
  const handlePause = React.useCallback(() => {
17936
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18028
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17937
18029
  if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
17938
18030
  return;
17939
18031
  if (activeIndex !== index)
@@ -17949,15 +18041,14 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17949
18041
  eventSubject: 'playOverVideo',
17950
18042
  eventDescription: 'User finished playing the video',
17951
18043
  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 : '',
17952
- 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 : '',
17953
- 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 : '',
18044
+ 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 : '',
17954
18045
  endTime: videoCurrentTime,
17955
18046
  videoDuration,
17956
18047
  playDuration,
17957
- 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 : []),
18048
+ 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 : []),
17958
18049
  position: index + '',
17959
18050
  contentFormat: 'video',
17960
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
18051
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
17961
18052
  }
17962
18053
  });
17963
18054
  }
@@ -17965,8 +18056,27 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17965
18056
  const handleWaiting = React.useCallback(() => {
17966
18057
  setWaiting(true);
17967
18058
  }, []);
18059
+ const handleTimeUpload = () => {
18060
+ if (!videoRef.current || !isDiyH5)
18061
+ return;
18062
+ setTimeout(() => {
18063
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
18064
+ 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)) {
18065
+ (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
18066
+ if (!loopPlayRef.current)
18067
+ return;
18068
+ if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18069
+ (_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);
18070
+ }
18071
+ else {
18072
+ 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;
18073
+ (_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);
18074
+ }
18075
+ }
18076
+ });
18077
+ };
17968
18078
  React.useEffect(() => {
17969
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18079
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
17970
18080
  if (!isActive)
17971
18081
  return;
17972
18082
  const videoSrc = videoUrl;
@@ -17987,6 +18097,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
17987
18097
  hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
17988
18098
  hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
17989
18099
  var _a;
18100
+ setCurrentTimeByStartTime();
17990
18101
  (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
17991
18102
  });
17992
18103
  }
@@ -18000,11 +18111,12 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18000
18111
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
18001
18112
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
18002
18113
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
18003
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handleEnd);
18114
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
18004
18115
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
18005
18116
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
18117
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
18006
18118
  return () => {
18007
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
18008
18120
  const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
18009
18121
  if (!isPause)
18010
18122
  handlePause();
@@ -18016,9 +18128,10 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
18016
18128
  (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
18017
18129
  (_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
18018
18130
  (_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
18019
- (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handleEnd);
18131
+ (_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
18020
18132
  (_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
18021
18133
  (_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
18134
+ (_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
18022
18135
  };
18023
18136
  }, [isActive]);
18024
18137
  React.useEffect(() => {
@@ -18229,48 +18342,19 @@ const Picture = (props) => {
18229
18342
  }, onLoad: onShowFirstImage }))));
18230
18343
  };
18231
18344
 
18232
- const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig, swiperRef }, ref) => {
18345
+ const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
18233
18346
  var _a, _b;
18234
18347
  const { isActive } = useSwiperSlide();
18235
- const { sxpParameter, openHashtag, isDiyH5 } = useSxpDataSource();
18348
+ const { sxpParameter, openHashtag } = useSxpDataSource();
18236
18349
  const [isLoad, setIsLoad] = React.useState(false);
18237
18350
  const [imgInfo, setImgInfo] = React.useState();
18238
18351
  const [swiperActiveIndex, setSwiperActiveIndex] = React.useState(0);
18239
- const imgsSwiperRef = React.useRef();
18352
+ const swiperRef = React.useRef();
18240
18353
  const isFirstPlayRef = React.useRef(true);
18241
- const loopPlayRef = React.useRef(true);
18242
18354
  const initTime = new Date();
18243
- React.useImperativeHandle(ref, () => {
18244
- return {
18245
- setLoopPlay(v) {
18246
- loopPlayRef.current = v;
18247
- }
18248
- };
18249
- });
18250
- React.useEffect(() => {
18251
- let timerId;
18252
- if (isLoad && isActive && isDiyH5) {
18253
- timerId = setTimeout(() => {
18254
- var _a, _b, _c, _d, _e, _f;
18255
- if (!loopPlayRef.current)
18256
- return;
18257
- if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
18258
- (_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);
18259
- }
18260
- else {
18261
- 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;
18262
- (_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);
18263
- }
18264
- }, 3000);
18265
- }
18266
- return () => {
18267
- if (timerId)
18268
- clearTimeout(timerId);
18269
- };
18270
- }, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
18271
18355
  React.useEffect(() => {
18272
18356
  if (isLoad && isActive) {
18273
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.start();
18357
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
18274
18358
  if (openHashtag) {
18275
18359
  onViewImageEndEvent(rec);
18276
18360
  }
@@ -18280,7 +18364,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18280
18364
  }
18281
18365
  }
18282
18366
  else {
18283
- (imgsSwiperRef === null || imgsSwiperRef === void 0 ? void 0 : imgsSwiperRef.current) && imgsSwiperRef.current.swiper.autoplay.stop();
18367
+ (swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
18284
18368
  }
18285
18369
  }, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
18286
18370
  const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
@@ -18307,13 +18391,13 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18307
18391
  };
18308
18392
  }, [isActive, imgInfo]);
18309
18393
  const handleMouseEnter = React.useCallback(() => {
18310
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18311
- imgsSwiperRef.current.swiper.autoplay.stop();
18394
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18395
+ swiperRef.current.swiper.autoplay.stop();
18312
18396
  }
18313
18397
  }, []);
18314
18398
  const handleMouseLeave = React.useCallback(() => {
18315
- if (imgsSwiperRef.current && imgsSwiperRef.current.swiper && isAlly) {
18316
- imgsSwiperRef.current.swiper.autoplay.start();
18399
+ if (swiperRef.current && swiperRef.current.swiper && isAlly) {
18400
+ swiperRef.current.swiper.autoplay.start();
18317
18401
  }
18318
18402
  }, []);
18319
18403
  const handleSlideChange = React.useCallback((swiper) => {
@@ -18334,7 +18418,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18334
18418
  enabled: true
18335
18419
  }
18336
18420
  }
18337
- : {}), { loop: true, ref: imgsSwiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18421
+ : {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
18338
18422
  bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
18339
18423
  fontSize: '14px'
18340
18424
  } }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
@@ -18351,7 +18435,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
18351
18435
  return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
18352
18436
  React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
18353
18437
  }))));
18354
- });
18438
+ };
18355
18439
  var PictureGroup$5 = React.memo(PictureGroup$4);
18356
18440
 
18357
18441
  /*
@@ -18472,16 +18556,16 @@ function withBindDataSource(Component) {
18472
18556
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18473
18557
  *
18474
18558
  */
18475
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
18559
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18476
18560
  const { schema } = useEditor();
18477
18561
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18478
18562
  return null;
18479
18563
  const renderComp = React.useMemo(() => {
18480
18564
  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;
18481
- //如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
18565
+ // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
18482
18566
  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)))
18483
18567
  return;
18484
- //默认不渲染category为cta类型的组件,该类型的组件只用于某一处
18568
+ // 默认不渲染category为cta类型的组件,该类型的组件只用于某一处
18485
18569
  if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
18486
18570
  return;
18487
18571
  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)) ||
@@ -18494,14 +18578,14 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
18494
18578
  return null;
18495
18579
  }
18496
18580
  if (value && resolver) {
18497
- const t = resolver[(_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
18581
+ const t = resolver[isNineProduct ? 'NineCommodity' : (_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
18498
18582
  const Component = withBindDataSource(t);
18499
18583
  const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
18500
18584
  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';
18501
- let style = lodash.cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
18585
+ const style = lodash.cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
18502
18586
  if (style.hasOwnProperty('backdropFilter')) {
18503
- let sbf = style['backdropFilter'];
18504
- style['backdropFilter'] = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18587
+ const sbf = style.backdropFilter;
18588
+ style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18505
18589
  }
18506
18590
  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 })));
18507
18591
  }
@@ -18631,7 +18715,7 @@ var NavBack$1 = React.memo(NavBack);
18631
18715
  * @Author: binruan@chatlabs.com
18632
18716
  * @Date: 2024-03-20 10:27:31
18633
18717
  * @LastEditors: binruan@chatlabs.com
18634
- * @LastEditTime: 2025-05-12 14:26:15
18718
+ * @LastEditTime: 2025-05-09 15:51:40
18635
18719
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
18636
18720
  *
18637
18721
  */
@@ -18651,7 +18735,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18651
18735
  const skipLinkRef = React.useRef(false);
18652
18736
  const [pageNum, setPageNum] = React.useState(2);
18653
18737
  const videoWidgetRef = React.useRef(null);
18654
- const pictureGroupRef = React.useRef(null);
18655
18738
  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();
18656
18739
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
18657
18740
  const isShowFingerTip = React.useMemo(() => {
@@ -18699,7 +18782,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18699
18782
  (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
18700
18783
  }, [data, ctaType, swiperRef]);
18701
18784
  const handleSessionCompleted = React.useCallback((fk) => {
18702
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
18785
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
18703
18786
  const item = data === null || data === void 0 ? void 0 : data[activeIndex];
18704
18787
  let fromKName = '';
18705
18788
  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))) {
@@ -18726,13 +18809,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18726
18809
  eventSubject: 'sessionCompleted',
18727
18810
  eventDescription: 'Session completed',
18728
18811
  contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
18729
- 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 : '',
18730
- productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
18812
+ productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
18731
18813
  position: activeIndex + '',
18732
18814
  fromKName: fk || fromKName,
18733
18815
  fromKPage: location === null || location === void 0 ? void 0 : location.href,
18734
- 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 : '',
18735
- 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 : ''
18816
+ 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 : '',
18817
+ 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 : ''
18736
18818
  }
18737
18819
  });
18738
18820
  }, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
@@ -18791,9 +18873,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18791
18873
  refreshFeSession
18792
18874
  ]);
18793
18875
  const handleSessionExpire = React.useCallback(lodash.debounce(() => {
18794
- var _a, _b;
18876
+ var _a;
18795
18877
  (_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
18796
- (_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
18797
18878
  refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
18798
18879
  }, 1000), [handleSessionCompleted, refreshFeSession]);
18799
18880
  React.useEffect(() => {
@@ -18863,18 +18944,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18863
18944
  return null;
18864
18945
  }, [globalConfig, activeIndex, visList]);
18865
18946
  const renderContent = React.useCallback((rec, index) => {
18866
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
18947
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
18867
18948
  if (rec === 'organic menu') {
18868
18949
  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)));
18869
18950
  }
18870
- 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)) {
18951
+ if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
18871
18952
  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 })));
18872
18953
  }
18873
- if ((_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.imgUrls) {
18874
- 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 })));
18954
+ if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
18955
+ 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 }));
18875
18956
  }
18876
- 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) {
18877
- return (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _m === void 0 ? void 0 : _m.map((value, idx) => {
18957
+ 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) {
18958
+ return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
18878
18959
  var _a, _b, _c, _d, _e, _f, _g, _h;
18879
18960
  const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
18880
18961
  const Component = withBindDataSource(t);
@@ -18912,7 +18993,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18912
18993
  };
18913
18994
  }, [isShowMore]);
18914
18995
  const renderBottom = React.useCallback((rec, index) => {
18915
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
18996
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18916
18997
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
18917
18998
  let cta = null;
18918
18999
  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) {
@@ -18921,23 +19002,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18921
19002
  else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18922
19003
  cta = '商品CTA';
18923
19004
  }
18924
- 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)) {
18925
- cta = '服务CTA';
18926
- }
18927
19005
  else {
18928
- 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;
19006
+ 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;
18929
19007
  }
18930
19008
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
19009
+ const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) && index === 1;
18931
19010
  return (React.createElement(React.Fragment, null,
18932
- ((_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' }),
18933
- 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` } },
19011
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
19012
+ ((_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' }),
19013
+ 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` } },
18934
19014
  React.createElement(Nudge, { nudge: nudge }),
18935
- (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' },
19015
+ ((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' },
18936
19016
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
18937
19017
  React.createElement("div", null,
18938
- 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 }),
19018
+ 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 }),
18939
19019
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
18940
- 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) }))),
19020
+ 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) }))),
18941
19021
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
18942
19022
  }
18943
19023
  return null;
@@ -18975,7 +19055,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18975
19055
  return null;
18976
19056
  }, [globalConfig, waterFallData]);
18977
19057
  const handleViewImageStartEnd = (item) => {
18978
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
19058
+ var _a, _b, _c, _d, _e, _f;
18979
19059
  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)) {
18980
19060
  const endTime = Date.now();
18981
19061
  const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
@@ -18984,11 +19064,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18984
19064
  eventSubject: 'viewImageCarouselEnd',
18985
19065
  eventDescription: 'User end view the image carousel',
18986
19066
  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 : '',
18987
- 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 : '',
18988
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19067
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
18989
19068
  imageEndTime: `${endTime}`,
18990
19069
  playDuration: `${duration}`,
18991
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19070
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
18992
19071
  position: activeIndex + '',
18993
19072
  contentFormat: 'image',
18994
19073
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
@@ -18997,7 +19076,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18997
19076
  }
18998
19077
  };
18999
19078
  const handleSlideSkip = (item, position) => {
19000
- 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;
19079
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
19001
19080
  if (isPreview || waterFallData)
19002
19081
  return;
19003
19082
  const t = new Date() - curTime.current;
@@ -19023,8 +19102,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19023
19102
  contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
19024
19103
  position: position + '',
19025
19104
  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 : '',
19026
- 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 : '',
19027
- 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 : '',
19105
+ 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 : '',
19028
19106
  contentFormat
19029
19107
  }
19030
19108
  });
@@ -19034,7 +19112,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19034
19112
  }
19035
19113
  };
19036
19114
  const handleScrollEvent = (swiper) => {
19037
- 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;
19115
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19038
19116
  const item = data[swiper.previousIndex];
19039
19117
  if (!item)
19040
19118
  return;
@@ -19051,12 +19129,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19051
19129
  eventSubject: 'scrollDown',
19052
19130
  eventDescription: 'User scroll down',
19053
19131
  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 : '',
19054
- 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 : '',
19055
- 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 : '',
19132
+ 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 : '',
19056
19133
  requestId: null,
19057
- 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 : '',
19134
+ 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 : '',
19058
19135
  contentFormat,
19059
- position: ((_q = swiper.previousIndex) !== null && _q !== void 0 ? _q : 0) + ''
19136
+ position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
19060
19137
  }
19061
19138
  });
19062
19139
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19068,13 +19145,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19068
19145
  eventInfo: {
19069
19146
  eventSubject: 'scrollUp',
19070
19147
  eventDescription: 'User scroll up',
19071
- 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 : '',
19072
- 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 : '',
19073
- productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
19148
+ 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 : '',
19149
+ productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
19074
19150
  requestId: null,
19075
- 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 : '',
19151
+ 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 : '',
19076
19152
  contentFormat,
19077
- position: ((_2 = swiper.previousIndex) !== null && _2 !== void 0 ? _2 : 0) + ''
19153
+ position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
19078
19154
  }
19079
19155
  });
19080
19156
  // 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
@@ -19100,7 +19176,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19100
19176
  }
19101
19177
  }, [openHashtag, data, activeIndex]);
19102
19178
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19103
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
19179
+ var _a, _b, _c, _d, _e, _f, _g, _h;
19104
19180
  const item = data[activeIndex];
19105
19181
  // 如果是图片集则上报事件
19106
19182
  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)) {
@@ -19111,10 +19187,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19111
19187
  eventSubject: 'viewImageCarouselStart',
19112
19188
  eventDescription: 'User start view the image carousel',
19113
19189
  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 : '',
19114
- 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 : '',
19115
- contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
19190
+ contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
19116
19191
  imageStartTime: `${startTime}`,
19117
- contentTags: JSON.stringify((_j = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _j !== void 0 ? _j : []),
19192
+ contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
19118
19193
  position: activeIndex + '',
19119
19194
  contentFormat: 'image',
19120
19195
  traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
@@ -19124,11 +19199,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19124
19199
  if (enableCapi) {
19125
19200
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19126
19201
  eventName: 'ViewContent',
19127
- product: (_k = item === null || item === void 0 ? void 0 : item.video) === null || _k === void 0 ? void 0 : _k.bindProduct
19202
+ product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
19128
19203
  });
19129
19204
  bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
19130
19205
  eventName: 'PageView',
19131
- product: (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.bindProduct
19206
+ product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
19132
19207
  });
19133
19208
  }
19134
19209
  }
@@ -19281,7 +19356,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19281
19356
  }, []);
19282
19357
  const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
19283
19358
  const handlePlaying = React.useCallback(() => {
19284
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19359
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19285
19360
  setIsPauseVideo(false);
19286
19361
  const item = data[index];
19287
19362
  if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
@@ -19294,15 +19369,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19294
19369
  eventSubject: 'playVideo',
19295
19370
  eventDescription: 'User played the video',
19296
19371
  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 : '',
19297
- 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 : '',
19298
- 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 : '',
19372
+ 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 : '',
19299
19373
  playType,
19300
19374
  startTime: videoCurrentTime,
19301
19375
  videoDuration,
19302
- 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 : []),
19376
+ 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 : []),
19303
19377
  position: index + '',
19304
19378
  contentFormat: 'video',
19305
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19379
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19306
19380
  }
19307
19381
  });
19308
19382
  setIsFirstPlay(false);
@@ -19341,7 +19415,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19341
19415
  }
19342
19416
  }, [isLoadFinish]);
19343
19417
  const onPause = React.useCallback(() => {
19344
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
19418
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
19345
19419
  const item = data[index];
19346
19420
  const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
19347
19421
  const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
@@ -19352,15 +19426,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
19352
19426
  eventSubject: 'playOverVideo',
19353
19427
  eventDescription: 'User finished playing the video',
19354
19428
  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 : '',
19355
- 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 : '',
19356
- 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 : '',
19429
+ 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 : '',
19357
19430
  endTime: videoCurrentTime,
19358
19431
  videoDuration,
19359
19432
  playDuration,
19360
- 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 : []),
19433
+ 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 : []),
19361
19434
  position: index + '',
19362
19435
  contentFormat: 'video',
19363
- traceInfo: (_r = item === null || item === void 0 ? void 0 : item.video) === null || _r === void 0 ? void 0 : _r.traceInfo
19436
+ traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
19364
19437
  }
19365
19438
  });
19366
19439
  }