pb-sxp-ui 1.15.44 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +281 -210
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +125 -0
- package/dist/index.js +281 -210
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +281 -210
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/es/core/components/SxpPageRender/LikeButton/index.js +15 -17
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -42
- package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/es/core/components/SxpPageRender/RenderCard.js +6 -6
- package/es/core/components/SxpPageRender/VideoWidget/index.js +44 -34
- package/es/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +38 -47
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/es/core/hooks/useEventReport.js +5 -6
- package/es/materials/sxp/template/NineCommodity/index.d.ts +18 -0
- package/es/materials/sxp/template/NineCommodity/index.js +39 -0
- package/es/materials/sxp/template/NineCommodity/interactionRender.d.ts +9 -0
- package/es/materials/sxp/template/NineCommodity/interactionRender.js +12 -0
- package/es/materials/sxp/template/NineCommodity/material.d.ts +2 -0
- package/es/materials/sxp/template/NineCommodity/material.js +52 -0
- package/es/materials/sxp/template/index.d.ts +1 -0
- package/es/materials/sxp/template/index.js +1 -0
- package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/lib/core/components/SxpPageRender/LikeButton/index.js +15 -17
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -41
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/lib/core/components/SxpPageRender/RenderCard.js +6 -6
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +44 -34
- package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +38 -47
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/core/hooks/useEventReport.js +5 -6
- package/lib/materials/sxp/template/NineCommodity/index.d.ts +18 -0
- package/lib/materials/sxp/template/NineCommodity/index.js +41 -0
- package/lib/materials/sxp/template/NineCommodity/interactionRender.d.ts +9 -0
- package/lib/materials/sxp/template/NineCommodity/interactionRender.js +14 -0
- package/lib/materials/sxp/template/NineCommodity/material.d.ts +2 -0
- package/lib/materials/sxp/template/NineCommodity/material.js +56 -0
- package/lib/materials/sxp/template/index.d.ts +1 -0
- package/lib/materials/sxp/template/index.js +1 -0
- 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
|
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 : '',
|
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$
|
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:
|
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
|
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 : '',
|
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
|
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: (
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
13423
|
+
interactionRender: interactionRender$5,
|
13425
13424
|
bindableProps: [],
|
13426
13425
|
settingRender: settingRender$8
|
13427
13426
|
},
|
@@ -13464,6 +13463,110 @@ 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
|
+
return (React.createElement("div", { className: styles$2.nineProduct },
|
13487
|
+
React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13488
|
+
var _a, _b, _c, _d, _e, _f;
|
13489
|
+
if (itemIndex < 9) {
|
13490
|
+
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' },
|
13491
|
+
React.createElement("div", { className: styles$2.gridBox },
|
13492
|
+
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props, { style: {
|
13493
|
+
flexDirection: 'column',
|
13494
|
+
width: '100%',
|
13495
|
+
height: 'auto'
|
13496
|
+
} }),
|
13497
|
+
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: {
|
13498
|
+
aspectRatio: '1/1',
|
13499
|
+
objectFit: 'cover',
|
13500
|
+
width: '100%',
|
13501
|
+
display: 'block'
|
13502
|
+
}, isActive: isActive }),
|
13503
|
+
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: {
|
13504
|
+
__html: setFontForText("item?.bindCta?.enTitle ?? 'Shop Now', ctaTempStyles?.ctaTitle")
|
13505
|
+
} })))))));
|
13506
|
+
}
|
13507
|
+
else {
|
13508
|
+
return null;
|
13509
|
+
}
|
13510
|
+
}))));
|
13511
|
+
};
|
13512
|
+
var NineCommodityComponent = React.memo(NineCommodity$1);
|
13513
|
+
|
13514
|
+
/*
|
13515
|
+
* @Author: binruan@chatlabs.com
|
13516
|
+
* @Date: 2023-07-28 18:29:57
|
13517
|
+
* @LastEditors: binruan@chatlabs.com
|
13518
|
+
* @LastEditTime: 2024-03-29 16:43:35
|
13519
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\NineCommodity\material.tsx
|
13520
|
+
*
|
13521
|
+
*/
|
13522
|
+
const NineCommodity = createMaterial(NineCommodityComponent, {
|
13523
|
+
displayName: '推荐多商品-透明底',
|
13524
|
+
icon: '',
|
13525
|
+
category: 'template',
|
13526
|
+
type: 'NineCommodity',
|
13527
|
+
related: {
|
13528
|
+
interactionRender: interactionRender$4,
|
13529
|
+
settingRender: settingRender$8,
|
13530
|
+
bindableProps: []
|
13531
|
+
},
|
13532
|
+
defaulSetting: {
|
13533
|
+
props: {
|
13534
|
+
ctaTempStyles: {
|
13535
|
+
img: {
|
13536
|
+
borderRadius: 3,
|
13537
|
+
width: 60,
|
13538
|
+
height: 60,
|
13539
|
+
marginRight: 8
|
13540
|
+
},
|
13541
|
+
title: {
|
13542
|
+
fontSize: 12,
|
13543
|
+
color: '#fff',
|
13544
|
+
textAlign: 'left'
|
13545
|
+
},
|
13546
|
+
ctaTitle: {
|
13547
|
+
fontSize: 10,
|
13548
|
+
color: '#fff',
|
13549
|
+
textAlign: 'center',
|
13550
|
+
width: 130,
|
13551
|
+
height: 20,
|
13552
|
+
backgroundColor: 'rgba(0,0,0,.5)'
|
13553
|
+
}
|
13554
|
+
}
|
13555
|
+
},
|
13556
|
+
style: {
|
13557
|
+
padding: 7,
|
13558
|
+
width: 236,
|
13559
|
+
height: 74,
|
13560
|
+
borderRadius: 3,
|
13561
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
13562
|
+
marginBottom: 8
|
13563
|
+
}
|
13564
|
+
},
|
13565
|
+
w: 100,
|
13566
|
+
h: 40,
|
13567
|
+
sort: 3
|
13568
|
+
});
|
13569
|
+
|
13467
13570
|
/*
|
13468
13571
|
* @Author: binruan@chatlabs.com
|
13469
13572
|
* @Date: 2024-04-07 14:07:12
|
@@ -15527,7 +15630,7 @@ function WaterfallList(_a) {
|
|
15527
15630
|
* @Author: binruan@chatlabs.com
|
15528
15631
|
* @Date: 2024-01-10 10:58:24
|
15529
15632
|
* @LastEditors: binruan@chatlabs.com
|
15530
|
-
* @LastEditTime: 2025-
|
15633
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
15531
15634
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15532
15635
|
*
|
15533
15636
|
*/
|
@@ -15565,7 +15668,7 @@ const WaterFall = (props) => {
|
|
15565
15668
|
}
|
15566
15669
|
}, [waterFallData]);
|
15567
15670
|
const reportTagsView = React.useCallback(() => {
|
15568
|
-
var _a, _b, _c, _d, _e, _f
|
15671
|
+
var _a, _b, _c, _d, _e, _f;
|
15569
15672
|
const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
|
15570
15673
|
if (!rec)
|
15571
15674
|
return;
|
@@ -15585,10 +15688,9 @@ const WaterFall = (props) => {
|
|
15585
15688
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
15586
15689
|
eventInfo: {
|
15587
15690
|
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
15691
|
position: cacheActiveIndex + '',
|
15590
|
-
contentTags: JSON.stringify((
|
15591
|
-
traceInfo: (
|
15692
|
+
contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
|
15693
|
+
traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
|
15592
15694
|
hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
|
15593
15695
|
fromKName,
|
15594
15696
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
@@ -17655,6 +17757,7 @@ var _materials_ = /*#__PURE__*/Object.freeze({
|
|
17655
17757
|
MultiCommodityDiro: MultiCommodityDiro,
|
17656
17758
|
MultiCommodityDiroNew: MultiCommodityDiroNew,
|
17657
17759
|
MultiPosts: MultiPosts,
|
17760
|
+
NineCommodity: NineCommodity,
|
17658
17761
|
Prompt: Prompt,
|
17659
17762
|
Swipe: Swipe
|
17660
17763
|
});
|
@@ -17669,7 +17772,7 @@ const LikeButton = (_a) => {
|
|
17669
17772
|
const likeIcon = useIconLink(defaultLikeIconPath$2);
|
17670
17773
|
const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
|
17671
17774
|
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
|
17775
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
17673
17776
|
if (state) {
|
17674
17777
|
// 先设置状态
|
17675
17778
|
setState(false);
|
@@ -17679,12 +17782,11 @@ const LikeButton = (_a) => {
|
|
17679
17782
|
eventSubject: 'favoriteContentCanceled',
|
17680
17783
|
eventDescription: 'This content was unfavorite by the user',
|
17681
17784
|
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
|
-
|
17683
|
-
|
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 : []),
|
17785
|
+
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 : '',
|
17786
|
+
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
17787
|
position: position + '',
|
17686
|
-
contentFormat: ((
|
17687
|
-
traceInfo: (
|
17788
|
+
contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
|
17789
|
+
traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
17688
17790
|
}
|
17689
17791
|
});
|
17690
17792
|
// 如果接口调用失败,则回滚状态
|
@@ -17692,41 +17794,40 @@ const LikeButton = (_a) => {
|
|
17692
17794
|
setState(true);
|
17693
17795
|
}
|
17694
17796
|
else {
|
17695
|
-
const nRtcList = (
|
17797
|
+
const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
17696
17798
|
if (index === position) {
|
17697
17799
|
item.isCollected = false;
|
17698
17800
|
}
|
17699
17801
|
return item;
|
17700
|
-
})) !== null &&
|
17802
|
+
})) !== null && _p !== void 0 ? _p : [];
|
17701
17803
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
17702
17804
|
}
|
17703
17805
|
}
|
17704
17806
|
else {
|
17705
17807
|
setState(true);
|
17706
|
-
const result = (
|
17808
|
+
const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
|
17707
17809
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
17708
17810
|
eventInfo: {
|
17709
17811
|
eventSubject: 'favoriteContent',
|
17710
17812
|
eventDescription: 'This content was favorite by the user',
|
17711
|
-
contentId: (
|
17712
|
-
|
17713
|
-
|
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 : []),
|
17813
|
+
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 : '',
|
17814
|
+
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 : '',
|
17815
|
+
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
17816
|
position: position + '',
|
17716
|
-
contentFormat: ((
|
17717
|
-
traceInfo: (
|
17817
|
+
contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
|
17818
|
+
traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
|
17718
17819
|
}
|
17719
17820
|
});
|
17720
17821
|
if (!result) {
|
17721
17822
|
setState(false);
|
17722
17823
|
}
|
17723
17824
|
else {
|
17724
|
-
const nRtcList = (
|
17825
|
+
const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
17725
17826
|
if (index === position) {
|
17726
17827
|
item.isCollected = true;
|
17727
17828
|
}
|
17728
17829
|
return item;
|
17729
|
-
})) !== null &&
|
17830
|
+
})) !== null && _z !== void 0 ? _z : [];
|
17730
17831
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
17731
17832
|
}
|
17732
17833
|
}
|
@@ -17829,26 +17930,6 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17829
17930
|
return;
|
17830
17931
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17831
17932
|
}, [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
17933
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
17853
17934
|
const handlePlaying = React.useCallback(() => {
|
17854
17935
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
@@ -17857,7 +17938,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17857
17938
|
setIsLoadFinish(true);
|
17858
17939
|
}, []);
|
17859
17940
|
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
|
17941
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
17861
17942
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
17862
17943
|
return;
|
17863
17944
|
setIsPauseVideo(false);
|
@@ -17868,11 +17949,16 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17868
17949
|
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
17950
|
const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
|
17870
17951
|
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 : '',
|
17952
|
+
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
17953
|
});
|
17873
17954
|
isFirstPlayRef.current = false;
|
17874
17955
|
}
|
17875
17956
|
}), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17957
|
+
const setCurrentTimeByStartTime = React.useCallback(() => {
|
17958
|
+
if (isDiyH5) {
|
17959
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17960
|
+
}
|
17961
|
+
}, []);
|
17876
17962
|
const handLoadeddata = React.useCallback(() => {
|
17877
17963
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
|
17878
17964
|
return;
|
@@ -17897,12 +17983,13 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17897
17983
|
const handleLoadedmetadata = React.useCallback(() => {
|
17898
17984
|
if (!videoRef.current)
|
17899
17985
|
return;
|
17986
|
+
setCurrentTimeByStartTime();
|
17900
17987
|
loadedTimeRef.current = new Date();
|
17901
17988
|
handleStartPlay();
|
17902
17989
|
handLoadeddata();
|
17903
17990
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
17904
17991
|
const handleClickVideo = React.useCallback((type) => () => {
|
17905
|
-
var _a, _b, _c, _d, _e;
|
17992
|
+
var _a, _b, _c, _d, _e, _f;
|
17906
17993
|
if (!videoRef.current)
|
17907
17994
|
return;
|
17908
17995
|
if (!isLoadFinish)
|
@@ -17923,17 +18010,20 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17923
18010
|
break;
|
17924
18011
|
default:
|
17925
18012
|
if (isPause) {
|
17926
|
-
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.
|
18013
|
+
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)) {
|
18014
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
18015
|
+
}
|
18016
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
|
17927
18017
|
}
|
17928
18018
|
else {
|
17929
|
-
(
|
18019
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
|
17930
18020
|
}
|
17931
18021
|
setIsPauseVideo(!isPause);
|
17932
18022
|
break;
|
17933
18023
|
}
|
17934
18024
|
}, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17935
18025
|
const handlePause = React.useCallback(() => {
|
17936
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
18026
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
17937
18027
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
17938
18028
|
return;
|
17939
18029
|
if (activeIndex !== index)
|
@@ -17949,15 +18039,14 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17949
18039
|
eventSubject: 'playOverVideo',
|
17950
18040
|
eventDescription: 'User finished playing the video',
|
17951
18041
|
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
|
-
|
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 : '',
|
18042
|
+
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
18043
|
endTime: videoCurrentTime,
|
17955
18044
|
videoDuration,
|
17956
18045
|
playDuration,
|
17957
|
-
contentTags: JSON.stringify((
|
18046
|
+
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
18047
|
position: index + '',
|
17959
18048
|
contentFormat: 'video',
|
17960
|
-
traceInfo: (
|
18049
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
17961
18050
|
}
|
17962
18051
|
});
|
17963
18052
|
}
|
@@ -17965,8 +18054,27 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17965
18054
|
const handleWaiting = React.useCallback(() => {
|
17966
18055
|
setWaiting(true);
|
17967
18056
|
}, []);
|
18057
|
+
const handleTimeUpload = () => {
|
18058
|
+
if (!videoRef.current || !isDiyH5)
|
18059
|
+
return;
|
18060
|
+
setTimeout(() => {
|
18061
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
18062
|
+
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)) {
|
18063
|
+
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
18064
|
+
if (!loopPlayRef.current)
|
18065
|
+
return;
|
18066
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
18067
|
+
(_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);
|
18068
|
+
}
|
18069
|
+
else {
|
18070
|
+
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;
|
18071
|
+
(_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);
|
18072
|
+
}
|
18073
|
+
}
|
18074
|
+
});
|
18075
|
+
};
|
17968
18076
|
React.useEffect(() => {
|
17969
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18077
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
17970
18078
|
if (!isActive)
|
17971
18079
|
return;
|
17972
18080
|
const videoSrc = videoUrl;
|
@@ -17987,6 +18095,7 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
17987
18095
|
hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
|
17988
18096
|
hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
17989
18097
|
var _a;
|
18098
|
+
setCurrentTimeByStartTime();
|
17990
18099
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17991
18100
|
});
|
17992
18101
|
}
|
@@ -18000,11 +18109,12 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
18000
18109
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
|
18001
18110
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
|
18002
18111
|
(_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',
|
18112
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
|
18004
18113
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
18005
18114
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
18115
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
|
18006
18116
|
return () => {
|
18007
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18117
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
18008
18118
|
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
18009
18119
|
if (!isPause)
|
18010
18120
|
handlePause();
|
@@ -18016,9 +18126,10 @@ const VideoWidget$4 = React.forwardRef(({ rec, index, height, data, muted, activ
|
|
18016
18126
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
|
18017
18127
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
|
18018
18128
|
(_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',
|
18129
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
|
18020
18130
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
|
18021
18131
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
|
18132
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
|
18022
18133
|
};
|
18023
18134
|
}, [isActive]);
|
18024
18135
|
React.useEffect(() => {
|
@@ -18229,48 +18340,19 @@ const Picture = (props) => {
|
|
18229
18340
|
}, onLoad: onShowFirstImage }))));
|
18230
18341
|
};
|
18231
18342
|
|
18232
|
-
const PictureGroup$4 =
|
18343
|
+
const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
18233
18344
|
var _a, _b;
|
18234
18345
|
const { isActive } = useSwiperSlide();
|
18235
|
-
const { sxpParameter, openHashtag
|
18346
|
+
const { sxpParameter, openHashtag } = useSxpDataSource();
|
18236
18347
|
const [isLoad, setIsLoad] = React.useState(false);
|
18237
18348
|
const [imgInfo, setImgInfo] = React.useState();
|
18238
18349
|
const [swiperActiveIndex, setSwiperActiveIndex] = React.useState(0);
|
18239
|
-
const
|
18350
|
+
const swiperRef = React.useRef();
|
18240
18351
|
const isFirstPlayRef = React.useRef(true);
|
18241
|
-
const loopPlayRef = React.useRef(true);
|
18242
18352
|
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
18353
|
React.useEffect(() => {
|
18272
18354
|
if (isLoad && isActive) {
|
18273
|
-
(
|
18355
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
|
18274
18356
|
if (openHashtag) {
|
18275
18357
|
onViewImageEndEvent(rec);
|
18276
18358
|
}
|
@@ -18280,7 +18362,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18280
18362
|
}
|
18281
18363
|
}
|
18282
18364
|
else {
|
18283
|
-
(
|
18365
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
|
18284
18366
|
}
|
18285
18367
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
18286
18368
|
const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -18307,13 +18389,13 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18307
18389
|
};
|
18308
18390
|
}, [isActive, imgInfo]);
|
18309
18391
|
const handleMouseEnter = React.useCallback(() => {
|
18310
|
-
if (
|
18311
|
-
|
18392
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18393
|
+
swiperRef.current.swiper.autoplay.stop();
|
18312
18394
|
}
|
18313
18395
|
}, []);
|
18314
18396
|
const handleMouseLeave = React.useCallback(() => {
|
18315
|
-
if (
|
18316
|
-
|
18397
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18398
|
+
swiperRef.current.swiper.autoplay.start();
|
18317
18399
|
}
|
18318
18400
|
}, []);
|
18319
18401
|
const handleSlideChange = React.useCallback((swiper) => {
|
@@ -18334,7 +18416,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18334
18416
|
enabled: true
|
18335
18417
|
}
|
18336
18418
|
}
|
18337
|
-
: {}), { loop: true, ref:
|
18419
|
+
: {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
|
18338
18420
|
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
18339
18421
|
fontSize: '14px'
|
18340
18422
|
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
@@ -18351,7 +18433,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18351
18433
|
return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
|
18352
18434
|
React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
18353
18435
|
}))));
|
18354
|
-
}
|
18436
|
+
};
|
18355
18437
|
var PictureGroup$5 = React.memo(PictureGroup$4);
|
18356
18438
|
|
18357
18439
|
/*
|
@@ -18472,16 +18554,16 @@ function withBindDataSource(Component) {
|
|
18472
18554
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
18473
18555
|
*
|
18474
18556
|
*/
|
18475
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
|
18557
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
18476
18558
|
const { schema } = useEditor();
|
18477
18559
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
18478
18560
|
return null;
|
18479
18561
|
const renderComp = React.useMemo(() => {
|
18480
18562
|
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
|
-
|
18563
|
+
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
18482
18564
|
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
18565
|
return;
|
18484
|
-
|
18566
|
+
// 默认不渲染category为cta类型的组件,该类型的组件只用于某一处
|
18485
18567
|
if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
|
18486
18568
|
return;
|
18487
18569
|
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 +18576,14 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18494
18576
|
return null;
|
18495
18577
|
}
|
18496
18578
|
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];
|
18579
|
+
const t = resolver[isNineProduct ? 'NineCommodity' : (_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
|
18498
18580
|
const Component = withBindDataSource(t);
|
18499
18581
|
const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
|
18500
18582
|
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
|
-
|
18583
|
+
const style = lodash.cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
|
18502
18584
|
if (style.hasOwnProperty('backdropFilter')) {
|
18503
|
-
|
18504
|
-
style
|
18585
|
+
const sbf = style.backdropFilter;
|
18586
|
+
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18505
18587
|
}
|
18506
18588
|
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
18589
|
}
|
@@ -18631,7 +18713,7 @@ var NavBack$1 = React.memo(NavBack);
|
|
18631
18713
|
* @Author: binruan@chatlabs.com
|
18632
18714
|
* @Date: 2024-03-20 10:27:31
|
18633
18715
|
* @LastEditors: binruan@chatlabs.com
|
18634
|
-
* @LastEditTime: 2025-05-
|
18716
|
+
* @LastEditTime: 2025-05-09 15:51:40
|
18635
18717
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18636
18718
|
*
|
18637
18719
|
*/
|
@@ -18651,7 +18733,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18651
18733
|
const skipLinkRef = React.useRef(false);
|
18652
18734
|
const [pageNum, setPageNum] = React.useState(2);
|
18653
18735
|
const videoWidgetRef = React.useRef(null);
|
18654
|
-
const pictureGroupRef = React.useRef(null);
|
18655
18736
|
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
18737
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
18657
18738
|
const isShowFingerTip = React.useMemo(() => {
|
@@ -18699,7 +18780,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18699
18780
|
(_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
|
18700
18781
|
}, [data, ctaType, swiperRef]);
|
18701
18782
|
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
|
18783
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
18703
18784
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
18704
18785
|
let fromKName = '';
|
18705
18786
|
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 +18807,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18726
18807
|
eventSubject: 'sessionCompleted',
|
18727
18808
|
eventDescription: 'Session completed',
|
18728
18809
|
contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
|
18729
|
-
|
18730
|
-
productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
|
18810
|
+
productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
|
18731
18811
|
position: activeIndex + '',
|
18732
18812
|
fromKName: fk || fromKName,
|
18733
18813
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
18734
|
-
ctatId: (
|
18735
|
-
traceInfo: (
|
18814
|
+
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 : '',
|
18815
|
+
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
18816
|
}
|
18737
18817
|
});
|
18738
18818
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
|
@@ -18791,9 +18871,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18791
18871
|
refreshFeSession
|
18792
18872
|
]);
|
18793
18873
|
const handleSessionExpire = React.useCallback(lodash.debounce(() => {
|
18794
|
-
var _a
|
18874
|
+
var _a;
|
18795
18875
|
(_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
18876
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
18798
18877
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
18799
18878
|
React.useEffect(() => {
|
@@ -18863,18 +18942,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18863
18942
|
return null;
|
18864
18943
|
}, [globalConfig, activeIndex, visList]);
|
18865
18944
|
const renderContent = React.useCallback((rec, index) => {
|
18866
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
18945
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18867
18946
|
if (rec === 'organic menu') {
|
18868
18947
|
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
18948
|
}
|
18870
|
-
if ((
|
18949
|
+
if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
|
18871
18950
|
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
18951
|
}
|
18873
|
-
if ((
|
18874
|
-
return (React.createElement(PictureGroup$5,
|
18952
|
+
if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
|
18953
|
+
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
18954
|
}
|
18876
|
-
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((
|
18877
|
-
return (
|
18955
|
+
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) {
|
18956
|
+
return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
|
18878
18957
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
18879
18958
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
18880
18959
|
const Component = withBindDataSource(t);
|
@@ -18912,7 +18991,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18912
18991
|
};
|
18913
18992
|
}, [isShowMore]);
|
18914
18993
|
const renderBottom = React.useCallback((rec, index) => {
|
18915
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
18994
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
18916
18995
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
18917
18996
|
let cta = null;
|
18918
18997
|
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 +19000,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18921
19000
|
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
18922
19001
|
cta = '商品CTA';
|
18923
19002
|
}
|
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
19003
|
else {
|
18928
|
-
cta = (
|
19004
|
+
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
19005
|
}
|
18930
19006
|
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
19007
|
+
const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) && index === 1;
|
18931
19008
|
return (React.createElement(React.Fragment, null,
|
18932
|
-
((
|
18933
|
-
|
19009
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
|
19010
|
+
((_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' }),
|
19011
|
+
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
19012
|
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' },
|
19013
|
+
((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
19014
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
18937
19015
|
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: (
|
19016
|
+
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
19017
|
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: (
|
19018
|
+
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
19019
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
18942
19020
|
}
|
18943
19021
|
return null;
|
@@ -18975,7 +19053,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18975
19053
|
return null;
|
18976
19054
|
}, [globalConfig, waterFallData]);
|
18977
19055
|
const handleViewImageStartEnd = (item) => {
|
18978
|
-
var _a, _b, _c, _d, _e, _f
|
19056
|
+
var _a, _b, _c, _d, _e, _f;
|
18979
19057
|
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
19058
|
const endTime = Date.now();
|
18981
19059
|
const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
|
@@ -18984,11 +19062,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18984
19062
|
eventSubject: 'viewImageCarouselEnd',
|
18985
19063
|
eventDescription: 'User end view the image carousel',
|
18986
19064
|
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
|
-
|
18988
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
19065
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
18989
19066
|
imageEndTime: `${endTime}`,
|
18990
19067
|
playDuration: `${duration}`,
|
18991
|
-
contentTags: JSON.stringify((
|
19068
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
18992
19069
|
position: activeIndex + '',
|
18993
19070
|
contentFormat: 'image',
|
18994
19071
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
|
@@ -18997,7 +19074,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18997
19074
|
}
|
18998
19075
|
};
|
18999
19076
|
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
|
19077
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
19001
19078
|
if (isPreview || waterFallData)
|
19002
19079
|
return;
|
19003
19080
|
const t = new Date() - curTime.current;
|
@@ -19023,8 +19100,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19023
19100
|
contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
|
19024
19101
|
position: position + '',
|
19025
19102
|
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
|
-
|
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 : '',
|
19103
|
+
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
19104
|
contentFormat
|
19029
19105
|
}
|
19030
19106
|
});
|
@@ -19034,7 +19110,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19034
19110
|
}
|
19035
19111
|
};
|
19036
19112
|
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
|
19113
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
19038
19114
|
const item = data[swiper.previousIndex];
|
19039
19115
|
if (!item)
|
19040
19116
|
return;
|
@@ -19051,12 +19127,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19051
19127
|
eventSubject: 'scrollDown',
|
19052
19128
|
eventDescription: 'User scroll down',
|
19053
19129
|
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
|
-
|
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 : '',
|
19130
|
+
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
19131
|
requestId: null,
|
19057
|
-
traceInfo: (
|
19132
|
+
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
19133
|
contentFormat,
|
19059
|
-
position: ((
|
19134
|
+
position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
|
19060
19135
|
}
|
19061
19136
|
});
|
19062
19137
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19068,13 +19143,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19068
19143
|
eventInfo: {
|
19069
19144
|
eventSubject: 'scrollUp',
|
19070
19145
|
eventDescription: 'User scroll up',
|
19071
|
-
contentId: (
|
19072
|
-
|
19073
|
-
productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
|
19146
|
+
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 : '',
|
19147
|
+
productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
|
19074
19148
|
requestId: null,
|
19075
|
-
traceInfo: (
|
19149
|
+
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
19150
|
contentFormat,
|
19077
|
-
position: ((
|
19151
|
+
position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
|
19078
19152
|
}
|
19079
19153
|
});
|
19080
19154
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19100,7 +19174,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19100
19174
|
}
|
19101
19175
|
}, [openHashtag, data, activeIndex]);
|
19102
19176
|
const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
|
19103
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
19177
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
19104
19178
|
const item = data[activeIndex];
|
19105
19179
|
// 如果是图片集则上报事件
|
19106
19180
|
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 +19185,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19111
19185
|
eventSubject: 'viewImageCarouselStart',
|
19112
19186
|
eventDescription: 'User start view the image carousel',
|
19113
19187
|
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
|
-
|
19115
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
19188
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
19116
19189
|
imageStartTime: `${startTime}`,
|
19117
|
-
contentTags: JSON.stringify((
|
19190
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
19118
19191
|
position: activeIndex + '',
|
19119
19192
|
contentFormat: 'image',
|
19120
19193
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
|
@@ -19124,11 +19197,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19124
19197
|
if (enableCapi) {
|
19125
19198
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19126
19199
|
eventName: 'ViewContent',
|
19127
|
-
product: (
|
19200
|
+
product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
|
19128
19201
|
});
|
19129
19202
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19130
19203
|
eventName: 'PageView',
|
19131
|
-
product: (
|
19204
|
+
product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
|
19132
19205
|
});
|
19133
19206
|
}
|
19134
19207
|
}
|
@@ -19281,7 +19354,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19281
19354
|
}, []);
|
19282
19355
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
19283
19356
|
const handlePlaying = React.useCallback(() => {
|
19284
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
19357
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
19285
19358
|
setIsPauseVideo(false);
|
19286
19359
|
const item = data[index];
|
19287
19360
|
if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
@@ -19294,15 +19367,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19294
19367
|
eventSubject: 'playVideo',
|
19295
19368
|
eventDescription: 'User played the video',
|
19296
19369
|
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
|
-
|
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 : '',
|
19370
|
+
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
19371
|
playType,
|
19300
19372
|
startTime: videoCurrentTime,
|
19301
19373
|
videoDuration,
|
19302
|
-
contentTags: JSON.stringify((
|
19374
|
+
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
19375
|
position: index + '',
|
19304
19376
|
contentFormat: 'video',
|
19305
|
-
traceInfo: (
|
19377
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19306
19378
|
}
|
19307
19379
|
});
|
19308
19380
|
setIsFirstPlay(false);
|
@@ -19341,7 +19413,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19341
19413
|
}
|
19342
19414
|
}, [isLoadFinish]);
|
19343
19415
|
const onPause = React.useCallback(() => {
|
19344
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
19416
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
19345
19417
|
const item = data[index];
|
19346
19418
|
const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
|
19347
19419
|
const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
@@ -19352,15 +19424,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19352
19424
|
eventSubject: 'playOverVideo',
|
19353
19425
|
eventDescription: 'User finished playing the video',
|
19354
19426
|
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
|
-
|
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 : '',
|
19427
|
+
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
19428
|
endTime: videoCurrentTime,
|
19358
19429
|
videoDuration,
|
19359
19430
|
playDuration,
|
19360
|
-
contentTags: JSON.stringify((
|
19431
|
+
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
19432
|
position: index + '',
|
19362
19433
|
contentFormat: 'video',
|
19363
|
-
traceInfo: (
|
19434
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19364
19435
|
}
|
19365
19436
|
});
|
19366
19437
|
}
|