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