pb-sxp-ui 1.15.43 → 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 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +125 -0
- package/dist/index.js +281 -205
- 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 -205
- 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 -37
- 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 -36
- 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,43 +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
|
-
if (isLoad && isActive && isDiyH5) {
|
18252
|
-
setTimeout(() => {
|
18253
|
-
var _a, _b, _c, _d, _e, _f;
|
18254
|
-
if (!loopPlayRef.current)
|
18255
|
-
return;
|
18256
|
-
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
18257
|
-
(_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);
|
18258
|
-
}
|
18259
|
-
else {
|
18260
|
-
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;
|
18261
|
-
(_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);
|
18262
|
-
}
|
18263
|
-
}, 3000);
|
18264
|
-
}
|
18265
|
-
}, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
|
18266
18353
|
React.useEffect(() => {
|
18267
18354
|
if (isLoad && isActive) {
|
18268
|
-
(
|
18355
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
|
18269
18356
|
if (openHashtag) {
|
18270
18357
|
onViewImageEndEvent(rec);
|
18271
18358
|
}
|
@@ -18275,7 +18362,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18275
18362
|
}
|
18276
18363
|
}
|
18277
18364
|
else {
|
18278
|
-
(
|
18365
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
|
18279
18366
|
}
|
18280
18367
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
18281
18368
|
const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -18302,13 +18389,13 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18302
18389
|
};
|
18303
18390
|
}, [isActive, imgInfo]);
|
18304
18391
|
const handleMouseEnter = React.useCallback(() => {
|
18305
|
-
if (
|
18306
|
-
|
18392
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18393
|
+
swiperRef.current.swiper.autoplay.stop();
|
18307
18394
|
}
|
18308
18395
|
}, []);
|
18309
18396
|
const handleMouseLeave = React.useCallback(() => {
|
18310
|
-
if (
|
18311
|
-
|
18397
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18398
|
+
swiperRef.current.swiper.autoplay.start();
|
18312
18399
|
}
|
18313
18400
|
}, []);
|
18314
18401
|
const handleSlideChange = React.useCallback((swiper) => {
|
@@ -18329,7 +18416,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18329
18416
|
enabled: true
|
18330
18417
|
}
|
18331
18418
|
}
|
18332
|
-
: {}), { loop: true, ref:
|
18419
|
+
: {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css.css(Object.assign(Object.assign({ '.swiper-pagination': {
|
18333
18420
|
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
18334
18421
|
fontSize: '14px'
|
18335
18422
|
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
@@ -18346,7 +18433,7 @@ const PictureGroup$4 = React.forwardRef(({ imgUrls, data, height, rec, index, on
|
|
18346
18433
|
return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
|
18347
18434
|
React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
18348
18435
|
}))));
|
18349
|
-
}
|
18436
|
+
};
|
18350
18437
|
var PictureGroup$5 = React.memo(PictureGroup$4);
|
18351
18438
|
|
18352
18439
|
/*
|
@@ -18467,16 +18554,16 @@ function withBindDataSource(Component) {
|
|
18467
18554
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
18468
18555
|
*
|
18469
18556
|
*/
|
18470
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
|
18557
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
18471
18558
|
const { schema } = useEditor();
|
18472
18559
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
18473
18560
|
return null;
|
18474
18561
|
const renderComp = React.useMemo(() => {
|
18475
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;
|
18476
|
-
|
18563
|
+
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
18477
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)))
|
18478
18565
|
return;
|
18479
|
-
|
18566
|
+
// 默认不渲染category为cta类型的组件,该类型的组件只用于某一处
|
18480
18567
|
if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
|
18481
18568
|
return;
|
18482
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)) ||
|
@@ -18489,14 +18576,14 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18489
18576
|
return null;
|
18490
18577
|
}
|
18491
18578
|
if (value && resolver) {
|
18492
|
-
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];
|
18493
18580
|
const Component = withBindDataSource(t);
|
18494
18581
|
const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
|
18495
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';
|
18496
|
-
|
18583
|
+
const style = lodash.cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
|
18497
18584
|
if (style.hasOwnProperty('backdropFilter')) {
|
18498
|
-
|
18499
|
-
style
|
18585
|
+
const sbf = style.backdropFilter;
|
18586
|
+
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18500
18587
|
}
|
18501
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 })));
|
18502
18589
|
}
|
@@ -18626,7 +18713,7 @@ var NavBack$1 = React.memo(NavBack);
|
|
18626
18713
|
* @Author: binruan@chatlabs.com
|
18627
18714
|
* @Date: 2024-03-20 10:27:31
|
18628
18715
|
* @LastEditors: binruan@chatlabs.com
|
18629
|
-
* @LastEditTime: 2025-05-
|
18716
|
+
* @LastEditTime: 2025-05-09 15:51:40
|
18630
18717
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18631
18718
|
*
|
18632
18719
|
*/
|
@@ -18646,7 +18733,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18646
18733
|
const skipLinkRef = React.useRef(false);
|
18647
18734
|
const [pageNum, setPageNum] = React.useState(2);
|
18648
18735
|
const videoWidgetRef = React.useRef(null);
|
18649
|
-
const pictureGroupRef = React.useRef(null);
|
18650
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();
|
18651
18737
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
18652
18738
|
const isShowFingerTip = React.useMemo(() => {
|
@@ -18694,7 +18780,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18694
18780
|
(_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
|
18695
18781
|
}, [data, ctaType, swiperRef]);
|
18696
18782
|
const handleSessionCompleted = React.useCallback((fk) => {
|
18697
|
-
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;
|
18698
18784
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
18699
18785
|
let fromKName = '';
|
18700
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))) {
|
@@ -18721,13 +18807,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18721
18807
|
eventSubject: 'sessionCompleted',
|
18722
18808
|
eventDescription: 'Session completed',
|
18723
18809
|
contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
|
18724
|
-
|
18725
|
-
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,
|
18726
18811
|
position: activeIndex + '',
|
18727
18812
|
fromKName: fk || fromKName,
|
18728
18813
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
18729
|
-
ctatId: (
|
18730
|
-
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 : ''
|
18731
18816
|
}
|
18732
18817
|
});
|
18733
18818
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
|
@@ -18786,9 +18871,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18786
18871
|
refreshFeSession
|
18787
18872
|
]);
|
18788
18873
|
const handleSessionExpire = React.useCallback(lodash.debounce(() => {
|
18789
|
-
var _a
|
18874
|
+
var _a;
|
18790
18875
|
(_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
|
18791
|
-
(_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
|
18792
18876
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
18793
18877
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
18794
18878
|
React.useEffect(() => {
|
@@ -18858,18 +18942,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18858
18942
|
return null;
|
18859
18943
|
}, [globalConfig, activeIndex, visList]);
|
18860
18944
|
const renderContent = React.useCallback((rec, index) => {
|
18861
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
18945
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18862
18946
|
if (rec === 'organic menu') {
|
18863
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)));
|
18864
18948
|
}
|
18865
|
-
if ((
|
18949
|
+
if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
|
18866
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 })));
|
18867
18951
|
}
|
18868
|
-
if ((
|
18869
|
-
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 }));
|
18870
18954
|
}
|
18871
|
-
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((
|
18872
|
-
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) => {
|
18873
18957
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
18874
18958
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
18875
18959
|
const Component = withBindDataSource(t);
|
@@ -18907,7 +18991,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18907
18991
|
};
|
18908
18992
|
}, [isShowMore]);
|
18909
18993
|
const renderBottom = React.useCallback((rec, index) => {
|
18910
|
-
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;
|
18911
18995
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
18912
18996
|
let cta = null;
|
18913
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) {
|
@@ -18916,23 +19000,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18916
19000
|
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
18917
19001
|
cta = '商品CTA';
|
18918
19002
|
}
|
18919
|
-
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)) {
|
18920
|
-
cta = '服务CTA';
|
18921
|
-
}
|
18922
19003
|
else {
|
18923
|
-
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;
|
18924
19005
|
}
|
18925
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;
|
18926
19008
|
return (React.createElement(React.Fragment, null,
|
18927
|
-
((
|
18928
|
-
|
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` } },
|
18929
19012
|
React.createElement(Nudge, { nudge: nudge }),
|
18930
|
-
(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' },
|
18931
19014
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
18932
19015
|
React.createElement("div", null,
|
18933
|
-
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 }),
|
18934
19017
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
18935
|
-
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) }))),
|
18936
19019
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
18937
19020
|
}
|
18938
19021
|
return null;
|
@@ -18970,7 +19053,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18970
19053
|
return null;
|
18971
19054
|
}, [globalConfig, waterFallData]);
|
18972
19055
|
const handleViewImageStartEnd = (item) => {
|
18973
|
-
var _a, _b, _c, _d, _e, _f
|
19056
|
+
var _a, _b, _c, _d, _e, _f;
|
18974
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)) {
|
18975
19058
|
const endTime = Date.now();
|
18976
19059
|
const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
|
@@ -18979,11 +19062,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18979
19062
|
eventSubject: 'viewImageCarouselEnd',
|
18980
19063
|
eventDescription: 'User end view the image carousel',
|
18981
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 : '',
|
18982
|
-
|
18983
|
-
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 : '',
|
18984
19066
|
imageEndTime: `${endTime}`,
|
18985
19067
|
playDuration: `${duration}`,
|
18986
|
-
contentTags: JSON.stringify((
|
19068
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
18987
19069
|
position: activeIndex + '',
|
18988
19070
|
contentFormat: 'image',
|
18989
19071
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
|
@@ -18992,7 +19074,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18992
19074
|
}
|
18993
19075
|
};
|
18994
19076
|
const handleSlideSkip = (item, position) => {
|
18995
|
-
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;
|
18996
19078
|
if (isPreview || waterFallData)
|
18997
19079
|
return;
|
18998
19080
|
const t = new Date() - curTime.current;
|
@@ -19018,8 +19100,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19018
19100
|
contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
|
19019
19101
|
position: position + '',
|
19020
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 : '',
|
19021
|
-
|
19022
|
-
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 : '',
|
19023
19104
|
contentFormat
|
19024
19105
|
}
|
19025
19106
|
});
|
@@ -19029,7 +19110,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19029
19110
|
}
|
19030
19111
|
};
|
19031
19112
|
const handleScrollEvent = (swiper) => {
|
19032
|
-
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;
|
19033
19114
|
const item = data[swiper.previousIndex];
|
19034
19115
|
if (!item)
|
19035
19116
|
return;
|
@@ -19046,12 +19127,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19046
19127
|
eventSubject: 'scrollDown',
|
19047
19128
|
eventDescription: 'User scroll down',
|
19048
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 : '',
|
19049
|
-
|
19050
|
-
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 : '',
|
19051
19131
|
requestId: null,
|
19052
|
-
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 : '',
|
19053
19133
|
contentFormat,
|
19054
|
-
position: ((
|
19134
|
+
position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
|
19055
19135
|
}
|
19056
19136
|
});
|
19057
19137
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19063,13 +19143,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19063
19143
|
eventInfo: {
|
19064
19144
|
eventSubject: 'scrollUp',
|
19065
19145
|
eventDescription: 'User scroll up',
|
19066
|
-
contentId: (
|
19067
|
-
|
19068
|
-
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 : '',
|
19069
19148
|
requestId: null,
|
19070
|
-
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 : '',
|
19071
19150
|
contentFormat,
|
19072
|
-
position: ((
|
19151
|
+
position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
|
19073
19152
|
}
|
19074
19153
|
});
|
19075
19154
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19095,7 +19174,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19095
19174
|
}
|
19096
19175
|
}, [openHashtag, data, activeIndex]);
|
19097
19176
|
const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
|
19098
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
19177
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
19099
19178
|
const item = data[activeIndex];
|
19100
19179
|
// 如果是图片集则上报事件
|
19101
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)) {
|
@@ -19106,10 +19185,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19106
19185
|
eventSubject: 'viewImageCarouselStart',
|
19107
19186
|
eventDescription: 'User start view the image carousel',
|
19108
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 : '',
|
19109
|
-
|
19110
|
-
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 : '',
|
19111
19189
|
imageStartTime: `${startTime}`,
|
19112
|
-
contentTags: JSON.stringify((
|
19190
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
19113
19191
|
position: activeIndex + '',
|
19114
19192
|
contentFormat: 'image',
|
19115
19193
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
|
@@ -19119,11 +19197,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19119
19197
|
if (enableCapi) {
|
19120
19198
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19121
19199
|
eventName: 'ViewContent',
|
19122
|
-
product: (
|
19200
|
+
product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
|
19123
19201
|
});
|
19124
19202
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19125
19203
|
eventName: 'PageView',
|
19126
|
-
product: (
|
19204
|
+
product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
|
19127
19205
|
});
|
19128
19206
|
}
|
19129
19207
|
}
|
@@ -19276,7 +19354,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19276
19354
|
}, []);
|
19277
19355
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
19278
19356
|
const handlePlaying = React.useCallback(() => {
|
19279
|
-
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;
|
19280
19358
|
setIsPauseVideo(false);
|
19281
19359
|
const item = data[index];
|
19282
19360
|
if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
@@ -19289,15 +19367,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19289
19367
|
eventSubject: 'playVideo',
|
19290
19368
|
eventDescription: 'User played the video',
|
19291
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 : '',
|
19292
|
-
|
19293
|
-
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 : '',
|
19294
19371
|
playType,
|
19295
19372
|
startTime: videoCurrentTime,
|
19296
19373
|
videoDuration,
|
19297
|
-
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 : []),
|
19298
19375
|
position: index + '',
|
19299
19376
|
contentFormat: 'video',
|
19300
|
-
traceInfo: (
|
19377
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19301
19378
|
}
|
19302
19379
|
});
|
19303
19380
|
setIsFirstPlay(false);
|
@@ -19336,7 +19413,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19336
19413
|
}
|
19337
19414
|
}, [isLoadFinish]);
|
19338
19415
|
const onPause = React.useCallback(() => {
|
19339
|
-
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;
|
19340
19417
|
const item = data[index];
|
19341
19418
|
const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
|
19342
19419
|
const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
@@ -19347,15 +19424,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19347
19424
|
eventSubject: 'playOverVideo',
|
19348
19425
|
eventDescription: 'User finished playing the video',
|
19349
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 : '',
|
19350
|
-
|
19351
|
-
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 : '',
|
19352
19428
|
endTime: videoCurrentTime,
|
19353
19429
|
videoDuration,
|
19354
19430
|
playDuration,
|
19355
|
-
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 : []),
|
19356
19432
|
position: index + '',
|
19357
19433
|
contentFormat: 'video',
|
19358
|
-
traceInfo: (
|
19434
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19359
19435
|
}
|
19360
19436
|
});
|
19361
19437
|
}
|