pb-sxp-ui 1.15.44 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +283 -210
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +125 -0
- package/dist/index.js +283 -210
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +283 -210
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/es/core/components/SxpPageRender/LikeButton/index.js +15 -17
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -42
- package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/es/core/components/SxpPageRender/RenderCard.js +6 -6
- package/es/core/components/SxpPageRender/VideoWidget/index.js +44 -34
- package/es/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/es/core/components/SxpPageRender/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/index.js +38 -47
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/es/core/hooks/useEventReport.js +5 -6
- package/es/materials/sxp/template/NineCommodity/index.d.ts +18 -0
- package/es/materials/sxp/template/NineCommodity/index.js +41 -0
- package/es/materials/sxp/template/NineCommodity/interactionRender.d.ts +9 -0
- package/es/materials/sxp/template/NineCommodity/interactionRender.js +12 -0
- package/es/materials/sxp/template/NineCommodity/material.d.ts +2 -0
- package/es/materials/sxp/template/NineCommodity/material.js +52 -0
- package/es/materials/sxp/template/index.d.ts +1 -0
- package/es/materials/sxp/template/index.js +1 -0
- package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/lib/core/components/SxpPageRender/LikeButton/index.js +15 -17
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -41
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/lib/core/components/SxpPageRender/RenderCard.js +6 -6
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +44 -34
- package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -4
- package/lib/core/components/SxpPageRender/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/index.js +38 -47
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/core/hooks/useEventReport.js +5 -6
- package/lib/materials/sxp/template/NineCommodity/index.d.ts +18 -0
- package/lib/materials/sxp/template/NineCommodity/index.js +43 -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,112 @@ 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
|
+
if (!(products === null || products === void 0 ? void 0 : products.length) || (products === null || products === void 0 ? void 0 : products.length) < 1)
|
13465
|
+
return null;
|
13466
|
+
return (React.createElement("div", { className: styles$2.nineProduct },
|
13467
|
+
React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13468
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
13469
|
+
if (itemIndex < 9) {
|
13470
|
+
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' },
|
13471
|
+
React.createElement("div", { className: styles$2.gridBox },
|
13472
|
+
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props, { style: {
|
13473
|
+
flexDirection: 'column',
|
13474
|
+
width: '100%',
|
13475
|
+
height: 'auto'
|
13476
|
+
} }),
|
13477
|
+
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: {
|
13478
|
+
aspectRatio: '1/1',
|
13479
|
+
objectFit: 'cover',
|
13480
|
+
width: '100%',
|
13481
|
+
display: 'block'
|
13482
|
+
}, isActive: isActive }),
|
13483
|
+
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: {
|
13484
|
+
__html: setFontForText((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
13485
|
+
} })))))));
|
13486
|
+
}
|
13487
|
+
else {
|
13488
|
+
return null;
|
13489
|
+
}
|
13490
|
+
}))));
|
13491
|
+
};
|
13492
|
+
var NineCommodityComponent = memo(NineCommodity$1);
|
13493
|
+
|
13494
|
+
/*
|
13495
|
+
* @Author: binruan@chatlabs.com
|
13496
|
+
* @Date: 2023-07-28 18:29:57
|
13497
|
+
* @LastEditors: binruan@chatlabs.com
|
13498
|
+
* @LastEditTime: 2024-03-29 16:43:35
|
13499
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\NineCommodity\material.tsx
|
13500
|
+
*
|
13501
|
+
*/
|
13502
|
+
const NineCommodity = createMaterial(NineCommodityComponent, {
|
13503
|
+
displayName: '推荐多商品-透明底',
|
13504
|
+
icon: '',
|
13505
|
+
category: 'template',
|
13506
|
+
type: 'NineCommodity',
|
13507
|
+
related: {
|
13508
|
+
interactionRender: interactionRender$4,
|
13509
|
+
settingRender: settingRender$8,
|
13510
|
+
bindableProps: []
|
13511
|
+
},
|
13512
|
+
defaulSetting: {
|
13513
|
+
props: {
|
13514
|
+
ctaTempStyles: {
|
13515
|
+
img: {
|
13516
|
+
borderRadius: 3,
|
13517
|
+
width: 60,
|
13518
|
+
height: 60,
|
13519
|
+
marginRight: 8
|
13520
|
+
},
|
13521
|
+
title: {
|
13522
|
+
fontSize: 12,
|
13523
|
+
color: '#fff',
|
13524
|
+
textAlign: 'left'
|
13525
|
+
},
|
13526
|
+
ctaTitle: {
|
13527
|
+
fontSize: 10,
|
13528
|
+
color: '#fff',
|
13529
|
+
textAlign: 'center',
|
13530
|
+
width: 130,
|
13531
|
+
height: 20,
|
13532
|
+
backgroundColor: 'rgba(0,0,0,.5)'
|
13533
|
+
}
|
13534
|
+
}
|
13535
|
+
},
|
13536
|
+
style: {
|
13537
|
+
padding: 7,
|
13538
|
+
width: 236,
|
13539
|
+
height: 74,
|
13540
|
+
borderRadius: 3,
|
13541
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
13542
|
+
marginBottom: 8
|
13543
|
+
}
|
13544
|
+
},
|
13545
|
+
w: 100,
|
13546
|
+
h: 40,
|
13547
|
+
sort: 3
|
13548
|
+
});
|
13549
|
+
|
13445
13550
|
/*
|
13446
13551
|
* @Author: binruan@chatlabs.com
|
13447
13552
|
* @Date: 2024-04-07 14:07:12
|
@@ -15505,7 +15610,7 @@ function WaterfallList(_a) {
|
|
15505
15610
|
* @Author: binruan@chatlabs.com
|
15506
15611
|
* @Date: 2024-01-10 10:58:24
|
15507
15612
|
* @LastEditors: binruan@chatlabs.com
|
15508
|
-
* @LastEditTime: 2025-
|
15613
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
15509
15614
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15510
15615
|
*
|
15511
15616
|
*/
|
@@ -15543,7 +15648,7 @@ const WaterFall = (props) => {
|
|
15543
15648
|
}
|
15544
15649
|
}, [waterFallData]);
|
15545
15650
|
const reportTagsView = useCallback(() => {
|
15546
|
-
var _a, _b, _c, _d, _e, _f
|
15651
|
+
var _a, _b, _c, _d, _e, _f;
|
15547
15652
|
const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
|
15548
15653
|
if (!rec)
|
15549
15654
|
return;
|
@@ -15563,10 +15668,9 @@ const WaterFall = (props) => {
|
|
15563
15668
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
15564
15669
|
eventInfo: {
|
15565
15670
|
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
15671
|
position: cacheActiveIndex + '',
|
15568
|
-
contentTags: JSON.stringify((
|
15569
|
-
traceInfo: (
|
15672
|
+
contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
|
15673
|
+
traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
|
15570
15674
|
hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
|
15571
15675
|
fromKName,
|
15572
15676
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
@@ -17633,6 +17737,7 @@ var _materials_ = /*#__PURE__*/Object.freeze({
|
|
17633
17737
|
MultiCommodityDiro: MultiCommodityDiro,
|
17634
17738
|
MultiCommodityDiroNew: MultiCommodityDiroNew,
|
17635
17739
|
MultiPosts: MultiPosts,
|
17740
|
+
NineCommodity: NineCommodity,
|
17636
17741
|
Prompt: Prompt,
|
17637
17742
|
Swipe: Swipe
|
17638
17743
|
});
|
@@ -17647,7 +17752,7 @@ const LikeButton = (_a) => {
|
|
17647
17752
|
const likeIcon = useIconLink(defaultLikeIconPath$2);
|
17648
17753
|
const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
|
17649
17754
|
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
|
17755
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
17651
17756
|
if (state) {
|
17652
17757
|
// 先设置状态
|
17653
17758
|
setState(false);
|
@@ -17657,12 +17762,11 @@ const LikeButton = (_a) => {
|
|
17657
17762
|
eventSubject: 'favoriteContentCanceled',
|
17658
17763
|
eventDescription: 'This content was unfavorite by the user',
|
17659
17764
|
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 : []),
|
17765
|
+
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 : '',
|
17766
|
+
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
17767
|
position: position + '',
|
17664
|
-
contentFormat: ((
|
17665
|
-
traceInfo: (
|
17768
|
+
contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
|
17769
|
+
traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
17666
17770
|
}
|
17667
17771
|
});
|
17668
17772
|
// 如果接口调用失败,则回滚状态
|
@@ -17670,41 +17774,40 @@ const LikeButton = (_a) => {
|
|
17670
17774
|
setState(true);
|
17671
17775
|
}
|
17672
17776
|
else {
|
17673
|
-
const nRtcList = (
|
17777
|
+
const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
17674
17778
|
if (index === position) {
|
17675
17779
|
item.isCollected = false;
|
17676
17780
|
}
|
17677
17781
|
return item;
|
17678
|
-
})) !== null &&
|
17782
|
+
})) !== null && _p !== void 0 ? _p : [];
|
17679
17783
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
17680
17784
|
}
|
17681
17785
|
}
|
17682
17786
|
else {
|
17683
17787
|
setState(true);
|
17684
|
-
const result = (
|
17788
|
+
const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
|
17685
17789
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
17686
17790
|
eventInfo: {
|
17687
17791
|
eventSubject: 'favoriteContent',
|
17688
17792
|
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 : []),
|
17793
|
+
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 : '',
|
17794
|
+
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 : '',
|
17795
|
+
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
17796
|
position: position + '',
|
17694
|
-
contentFormat: ((
|
17695
|
-
traceInfo: (
|
17797
|
+
contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
|
17798
|
+
traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
|
17696
17799
|
}
|
17697
17800
|
});
|
17698
17801
|
if (!result) {
|
17699
17802
|
setState(false);
|
17700
17803
|
}
|
17701
17804
|
else {
|
17702
|
-
const nRtcList = (
|
17805
|
+
const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
17703
17806
|
if (index === position) {
|
17704
17807
|
item.isCollected = true;
|
17705
17808
|
}
|
17706
17809
|
return item;
|
17707
|
-
})) !== null &&
|
17810
|
+
})) !== null && _z !== void 0 ? _z : [];
|
17708
17811
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
17709
17812
|
}
|
17710
17813
|
}
|
@@ -17807,26 +17910,6 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17807
17910
|
return;
|
17808
17911
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17809
17912
|
}, [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
17913
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
17831
17914
|
const handlePlaying = useCallback(() => {
|
17832
17915
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
@@ -17835,7 +17918,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17835
17918
|
setIsLoadFinish(true);
|
17836
17919
|
}, []);
|
17837
17920
|
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
|
17921
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
17839
17922
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
17840
17923
|
return;
|
17841
17924
|
setIsPauseVideo(false);
|
@@ -17846,11 +17929,16 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17846
17929
|
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
17930
|
const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
|
17848
17931
|
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 : '',
|
17932
|
+
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
17933
|
});
|
17851
17934
|
isFirstPlayRef.current = false;
|
17852
17935
|
}
|
17853
17936
|
}), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17937
|
+
const setCurrentTimeByStartTime = useCallback(() => {
|
17938
|
+
if (isDiyH5) {
|
17939
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17940
|
+
}
|
17941
|
+
}, []);
|
17854
17942
|
const handLoadeddata = useCallback(() => {
|
17855
17943
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
|
17856
17944
|
return;
|
@@ -17875,12 +17963,13 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17875
17963
|
const handleLoadedmetadata = useCallback(() => {
|
17876
17964
|
if (!videoRef.current)
|
17877
17965
|
return;
|
17966
|
+
setCurrentTimeByStartTime();
|
17878
17967
|
loadedTimeRef.current = new Date();
|
17879
17968
|
handleStartPlay();
|
17880
17969
|
handLoadeddata();
|
17881
17970
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
17882
17971
|
const handleClickVideo = useCallback((type) => () => {
|
17883
|
-
var _a, _b, _c, _d, _e;
|
17972
|
+
var _a, _b, _c, _d, _e, _f;
|
17884
17973
|
if (!videoRef.current)
|
17885
17974
|
return;
|
17886
17975
|
if (!isLoadFinish)
|
@@ -17901,17 +17990,20 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17901
17990
|
break;
|
17902
17991
|
default:
|
17903
17992
|
if (isPause) {
|
17904
|
-
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.
|
17993
|
+
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)) {
|
17994
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
17995
|
+
}
|
17996
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
|
17905
17997
|
}
|
17906
17998
|
else {
|
17907
|
-
(
|
17999
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
|
17908
18000
|
}
|
17909
18001
|
setIsPauseVideo(!isPause);
|
17910
18002
|
break;
|
17911
18003
|
}
|
17912
18004
|
}, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
17913
18005
|
const handlePause = useCallback(() => {
|
17914
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
18006
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
17915
18007
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
17916
18008
|
return;
|
17917
18009
|
if (activeIndex !== index)
|
@@ -17927,15 +18019,14 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17927
18019
|
eventSubject: 'playOverVideo',
|
17928
18020
|
eventDescription: 'User finished playing the video',
|
17929
18021
|
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 : '',
|
18022
|
+
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
18023
|
endTime: videoCurrentTime,
|
17933
18024
|
videoDuration,
|
17934
18025
|
playDuration,
|
17935
|
-
contentTags: JSON.stringify((
|
18026
|
+
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
18027
|
position: index + '',
|
17937
18028
|
contentFormat: 'video',
|
17938
|
-
traceInfo: (
|
18029
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
17939
18030
|
}
|
17940
18031
|
});
|
17941
18032
|
}
|
@@ -17943,8 +18034,27 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17943
18034
|
const handleWaiting = useCallback(() => {
|
17944
18035
|
setWaiting(true);
|
17945
18036
|
}, []);
|
18037
|
+
const handleTimeUpload = () => {
|
18038
|
+
if (!videoRef.current || !isDiyH5)
|
18039
|
+
return;
|
18040
|
+
setTimeout(() => {
|
18041
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
18042
|
+
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)) {
|
18043
|
+
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
18044
|
+
if (!loopPlayRef.current)
|
18045
|
+
return;
|
18046
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
18047
|
+
(_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);
|
18048
|
+
}
|
18049
|
+
else {
|
18050
|
+
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;
|
18051
|
+
(_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);
|
18052
|
+
}
|
18053
|
+
}
|
18054
|
+
});
|
18055
|
+
};
|
17946
18056
|
useEffect(() => {
|
17947
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18057
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
17948
18058
|
if (!isActive)
|
17949
18059
|
return;
|
17950
18060
|
const videoSrc = videoUrl;
|
@@ -17965,6 +18075,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17965
18075
|
hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
|
17966
18076
|
hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
17967
18077
|
var _a;
|
18078
|
+
setCurrentTimeByStartTime();
|
17968
18079
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
17969
18080
|
});
|
17970
18081
|
}
|
@@ -17978,11 +18089,12 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17978
18089
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
|
17979
18090
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
|
17980
18091
|
(_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',
|
18092
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
|
17982
18093
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
17983
18094
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
18095
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
|
17984
18096
|
return () => {
|
17985
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18097
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
17986
18098
|
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
17987
18099
|
if (!isPause)
|
17988
18100
|
handlePause();
|
@@ -17994,9 +18106,10 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
17994
18106
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
|
17995
18107
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
|
17996
18108
|
(_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',
|
18109
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
|
17998
18110
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
|
17999
18111
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
|
18112
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
|
18000
18113
|
};
|
18001
18114
|
}, [isActive]);
|
18002
18115
|
useEffect(() => {
|
@@ -18207,48 +18320,19 @@ const Picture = (props) => {
|
|
18207
18320
|
}, onLoad: onShowFirstImage }))));
|
18208
18321
|
};
|
18209
18322
|
|
18210
|
-
const PictureGroup$4 =
|
18323
|
+
const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
18211
18324
|
var _a, _b;
|
18212
18325
|
const { isActive } = useSwiperSlide();
|
18213
|
-
const { sxpParameter, openHashtag
|
18326
|
+
const { sxpParameter, openHashtag } = useSxpDataSource();
|
18214
18327
|
const [isLoad, setIsLoad] = useState(false);
|
18215
18328
|
const [imgInfo, setImgInfo] = useState();
|
18216
18329
|
const [swiperActiveIndex, setSwiperActiveIndex] = useState(0);
|
18217
|
-
const
|
18330
|
+
const swiperRef = useRef();
|
18218
18331
|
const isFirstPlayRef = useRef(true);
|
18219
|
-
const loopPlayRef = useRef(true);
|
18220
18332
|
const initTime = new Date();
|
18221
|
-
useImperativeHandle(ref, () => {
|
18222
|
-
return {
|
18223
|
-
setLoopPlay(v) {
|
18224
|
-
loopPlayRef.current = v;
|
18225
|
-
}
|
18226
|
-
};
|
18227
|
-
});
|
18228
|
-
useEffect(() => {
|
18229
|
-
let timerId;
|
18230
|
-
if (isLoad && isActive && isDiyH5) {
|
18231
|
-
timerId = setTimeout(() => {
|
18232
|
-
var _a, _b, _c, _d, _e, _f;
|
18233
|
-
if (!loopPlayRef.current)
|
18234
|
-
return;
|
18235
|
-
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
18236
|
-
(_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(0);
|
18237
|
-
}
|
18238
|
-
else {
|
18239
|
-
const i = (_d = (_c = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _c === void 0 ? void 0 : _c.swiper) === null || _d === void 0 ? void 0 : _d.activeIndex;
|
18240
|
-
(_f = (_e = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _e === void 0 ? void 0 : _e.swiper) === null || _f === void 0 ? void 0 : _f.slideTo(i + 1);
|
18241
|
-
}
|
18242
|
-
}, 3000);
|
18243
|
-
}
|
18244
|
-
return () => {
|
18245
|
-
if (timerId)
|
18246
|
-
clearTimeout(timerId);
|
18247
|
-
};
|
18248
|
-
}, [isLoad, isActive, isDiyH5, data, index, swiperRef]);
|
18249
18333
|
useEffect(() => {
|
18250
18334
|
if (isLoad && isActive) {
|
18251
|
-
(
|
18335
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
|
18252
18336
|
if (openHashtag) {
|
18253
18337
|
onViewImageEndEvent(rec);
|
18254
18338
|
}
|
@@ -18258,7 +18342,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
18258
18342
|
}
|
18259
18343
|
}
|
18260
18344
|
else {
|
18261
|
-
(
|
18345
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
|
18262
18346
|
}
|
18263
18347
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
18264
18348
|
const showFirstImageFn = useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
@@ -18285,13 +18369,13 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
18285
18369
|
};
|
18286
18370
|
}, [isActive, imgInfo]);
|
18287
18371
|
const handleMouseEnter = useCallback(() => {
|
18288
|
-
if (
|
18289
|
-
|
18372
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18373
|
+
swiperRef.current.swiper.autoplay.stop();
|
18290
18374
|
}
|
18291
18375
|
}, []);
|
18292
18376
|
const handleMouseLeave = useCallback(() => {
|
18293
|
-
if (
|
18294
|
-
|
18377
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
18378
|
+
swiperRef.current.swiper.autoplay.start();
|
18295
18379
|
}
|
18296
18380
|
}, []);
|
18297
18381
|
const handleSlideChange = useCallback((swiper) => {
|
@@ -18312,7 +18396,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
18312
18396
|
enabled: true
|
18313
18397
|
}
|
18314
18398
|
}
|
18315
|
-
: {}), { loop: true, ref:
|
18399
|
+
: {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
|
18316
18400
|
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
18317
18401
|
fontSize: '14px'
|
18318
18402
|
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
@@ -18329,7 +18413,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
18329
18413
|
return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
|
18330
18414
|
React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
18331
18415
|
}))));
|
18332
|
-
}
|
18416
|
+
};
|
18333
18417
|
var PictureGroup$5 = memo(PictureGroup$4);
|
18334
18418
|
|
18335
18419
|
/*
|
@@ -18450,16 +18534,16 @@ function withBindDataSource(Component) {
|
|
18450
18534
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
18451
18535
|
*
|
18452
18536
|
*/
|
18453
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
|
18537
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
18454
18538
|
const { schema } = useEditor();
|
18455
18539
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
18456
18540
|
return null;
|
18457
18541
|
const renderComp = useMemo(() => {
|
18458
18542
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
18459
|
-
|
18543
|
+
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
18460
18544
|
if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type)))
|
18461
18545
|
return;
|
18462
|
-
|
18546
|
+
// 默认不渲染category为cta类型的组件,该类型的组件只用于某一处
|
18463
18547
|
if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
|
18464
18548
|
return;
|
18465
18549
|
if ((((_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.type) === 'CommodityDiro' && !((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindProduct)) ||
|
@@ -18472,14 +18556,14 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18472
18556
|
return null;
|
18473
18557
|
}
|
18474
18558
|
if (value && resolver) {
|
18475
|
-
const t = resolver[(_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
|
18559
|
+
const t = resolver[isNineProduct ? 'NineCommodity' : (_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
|
18476
18560
|
const Component = withBindDataSource(t);
|
18477
18561
|
const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
|
18478
18562
|
const isExternalLink = ((_x = (_w = (_v = value === null || value === void 0 ? void 0 : value.item) === null || _v === void 0 ? void 0 : _v.event) === null || _w === void 0 ? void 0 : _w.onClick) === null || _x === void 0 ? void 0 : _x.linkType) === 'externalLink';
|
18479
|
-
|
18563
|
+
const style = cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
|
18480
18564
|
if (style.hasOwnProperty('backdropFilter')) {
|
18481
|
-
|
18482
|
-
style
|
18565
|
+
const sbf = style.backdropFilter;
|
18566
|
+
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18483
18567
|
}
|
18484
18568
|
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
|
18485
18569
|
}
|
@@ -18609,7 +18693,7 @@ var NavBack$1 = memo(NavBack);
|
|
18609
18693
|
* @Author: binruan@chatlabs.com
|
18610
18694
|
* @Date: 2024-03-20 10:27:31
|
18611
18695
|
* @LastEditors: binruan@chatlabs.com
|
18612
|
-
* @LastEditTime: 2025-05-
|
18696
|
+
* @LastEditTime: 2025-05-09 15:51:40
|
18613
18697
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
18614
18698
|
*
|
18615
18699
|
*/
|
@@ -18629,7 +18713,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18629
18713
|
const skipLinkRef = useRef(false);
|
18630
18714
|
const [pageNum, setPageNum] = useState(2);
|
18631
18715
|
const videoWidgetRef = useRef(null);
|
18632
|
-
const pictureGroupRef = useRef(null);
|
18633
18716
|
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
|
18634
18717
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
18635
18718
|
const isShowFingerTip = useMemo(() => {
|
@@ -18677,7 +18760,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18677
18760
|
(_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
|
18678
18761
|
}, [data, ctaType, swiperRef]);
|
18679
18762
|
const handleSessionCompleted = useCallback((fk) => {
|
18680
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
18763
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
18681
18764
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
18682
18765
|
let fromKName = '';
|
18683
18766
|
if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
|
@@ -18704,13 +18787,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18704
18787
|
eventSubject: 'sessionCompleted',
|
18705
18788
|
eventDescription: 'Session completed',
|
18706
18789
|
contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
|
18707
|
-
|
18708
|
-
productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
|
18790
|
+
productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
|
18709
18791
|
position: activeIndex + '',
|
18710
18792
|
fromKName: fk || fromKName,
|
18711
18793
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
18712
|
-
ctatId: (
|
18713
|
-
traceInfo: (
|
18794
|
+
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 : '',
|
18795
|
+
traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : ''
|
18714
18796
|
}
|
18715
18797
|
});
|
18716
18798
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
|
@@ -18769,9 +18851,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18769
18851
|
refreshFeSession
|
18770
18852
|
]);
|
18771
18853
|
const handleSessionExpire = useCallback(debounce(() => {
|
18772
|
-
var _a
|
18854
|
+
var _a;
|
18773
18855
|
(_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
|
18774
|
-
(_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
|
18775
18856
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
18776
18857
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
18777
18858
|
useEffect(() => {
|
@@ -18841,18 +18922,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18841
18922
|
return null;
|
18842
18923
|
}, [globalConfig, activeIndex, visList]);
|
18843
18924
|
const renderContent = useCallback((rec, index) => {
|
18844
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
18925
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
18845
18926
|
if (rec === 'organic menu') {
|
18846
18927
|
return (React.createElement(MultiPosts$2, Object.assign({ recData: data === null || data === void 0 ? void 0 : data[1] }, (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props, (_f = (_e = (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.item) === null || _f === void 0 ? void 0 : _f.event)));
|
18847
18928
|
}
|
18848
|
-
if ((
|
18929
|
+
if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
|
18849
18930
|
return (React.createElement(VideoWidget$5, Object.assign({ key: isReload }, (activeIndex === index && { ref: videoWidgetRef }), { rec: rec, index: index, muted: isMuted, data: data, height: height, activeIndex: activeIndex, videoPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPost, videoPlayIcon: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.videoPlayIcon, loopPlay: true, swiperRef: swiperRef })));
|
18850
18931
|
}
|
18851
|
-
if ((
|
18852
|
-
return (React.createElement(PictureGroup$5,
|
18932
|
+
if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
|
18933
|
+
return (React.createElement(PictureGroup$5, { key: rec === null || rec === void 0 ? void 0 : rec.video.itemId, imgUrls: rec === null || rec === void 0 ? void 0 : rec.video.imgUrls, width: containerWidth, height: height, rec: rec, index: index, onViewImageEndEvent: handleViewImageStartEnd, onViewImageStartEvent: handleViewImageStartEvent, imgUrlsPostConfig: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.imgUrlsPost }));
|
18853
18934
|
}
|
18854
|
-
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((
|
18855
|
-
return (
|
18935
|
+
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) {
|
18936
|
+
return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
|
18856
18937
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
18857
18938
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
18858
18939
|
const Component = withBindDataSource(t);
|
@@ -18890,7 +18971,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18890
18971
|
};
|
18891
18972
|
}, [isShowMore]);
|
18892
18973
|
const renderBottom = useCallback((rec, index) => {
|
18893
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
18974
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
18894
18975
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
18895
18976
|
let cta = null;
|
18896
18977
|
if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
|
@@ -18899,23 +18980,22 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18899
18980
|
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
18900
18981
|
cta = '商品CTA';
|
18901
18982
|
}
|
18902
|
-
else if (tempMap && ((_d = Object.keys(tempMap)) === null || _d === void 0 ? void 0 : _d.includes('服务CTA')) && ((_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta) === null || _f === void 0 ? void 0 : _f.itemId)) {
|
18903
|
-
cta = '服务CTA';
|
18904
|
-
}
|
18905
18983
|
else {
|
18906
|
-
cta = (
|
18984
|
+
cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
|
18907
18985
|
}
|
18908
18986
|
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
18987
|
+
const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) && index === 1;
|
18909
18988
|
return (React.createElement(React.Fragment, null,
|
18910
|
-
((
|
18911
|
-
|
18989
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
|
18990
|
+
((_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' }),
|
18991
|
+
React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px` } },
|
18912
18992
|
React.createElement(Nudge, { nudge: nudge }),
|
18913
|
-
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
18993
|
+
((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) && !isNineProduct ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
18914
18994
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
18915
18995
|
React.createElement("div", null,
|
18916
|
-
React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
18996
|
+
React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_j = (_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
|
18917
18997
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
18918
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
18998
|
+
React.createElement(Hashtag$1, { index: activeIndex, tags: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.hashTags) !== null && _l !== void 0 ? _l : [], itemId: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.itemId, itemType: ((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
|
18919
18999
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
18920
19000
|
}
|
18921
19001
|
return null;
|
@@ -18953,7 +19033,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18953
19033
|
return null;
|
18954
19034
|
}, [globalConfig, waterFallData]);
|
18955
19035
|
const handleViewImageStartEnd = (item) => {
|
18956
|
-
var _a, _b, _c, _d, _e, _f
|
19036
|
+
var _a, _b, _c, _d, _e, _f;
|
18957
19037
|
if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
|
18958
19038
|
const endTime = Date.now();
|
18959
19039
|
const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
|
@@ -18962,11 +19042,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18962
19042
|
eventSubject: 'viewImageCarouselEnd',
|
18963
19043
|
eventDescription: 'User end view the image carousel',
|
18964
19044
|
contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
|
18965
|
-
|
18966
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
19045
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
18967
19046
|
imageEndTime: `${endTime}`,
|
18968
19047
|
playDuration: `${duration}`,
|
18969
|
-
contentTags: JSON.stringify((
|
19048
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
18970
19049
|
position: activeIndex + '',
|
18971
19050
|
contentFormat: 'image',
|
18972
19051
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
|
@@ -18975,7 +19054,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
18975
19054
|
}
|
18976
19055
|
};
|
18977
19056
|
const handleSlideSkip = (item, position) => {
|
18978
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x
|
19057
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
18979
19058
|
if (isPreview || waterFallData)
|
18980
19059
|
return;
|
18981
19060
|
const t = new Date() - curTime.current;
|
@@ -19001,8 +19080,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19001
19080
|
contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
|
19002
19081
|
position: position + '',
|
19003
19082
|
contentId: (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.itemId) !== null && _t !== void 0 ? _t : '',
|
19004
|
-
|
19005
|
-
traceInfo: (_0 = (_y = (_x = item === null || item === void 0 ? void 0 : item.video) === null || _x === void 0 ? void 0 : _x.traceInfo) !== null && _y !== void 0 ? _y : (_z = item === null || item === void 0 ? void 0 : item.product) === null || _z === void 0 ? void 0 : _z.traceInfo) !== null && _0 !== void 0 ? _0 : '',
|
19083
|
+
traceInfo: (_x = (_v = (_u = item === null || item === void 0 ? void 0 : item.video) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : (_w = item === null || item === void 0 ? void 0 : item.product) === null || _w === void 0 ? void 0 : _w.traceInfo) !== null && _x !== void 0 ? _x : '',
|
19006
19084
|
contentFormat
|
19007
19085
|
}
|
19008
19086
|
});
|
@@ -19012,7 +19090,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19012
19090
|
}
|
19013
19091
|
};
|
19014
19092
|
const handleScrollEvent = (swiper) => {
|
19015
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w
|
19093
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
19016
19094
|
const item = data[swiper.previousIndex];
|
19017
19095
|
if (!item)
|
19018
19096
|
return;
|
@@ -19029,12 +19107,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19029
19107
|
eventSubject: 'scrollDown',
|
19030
19108
|
eventDescription: 'User scroll down',
|
19031
19109
|
contentId: (_e = (_d = item === null || item === void 0 ? void 0 : item.video) === null || _d === void 0 ? void 0 : _d.itemId) !== null && _e !== void 0 ? _e : '',
|
19032
|
-
|
19033
|
-
productId: (_k = (_j = item === null || item === void 0 ? void 0 : item.product) === null || _j === void 0 ? void 0 : _j.itemId) !== null && _k !== void 0 ? _k : '',
|
19110
|
+
productId: (_g = (_f = item === null || item === void 0 ? void 0 : item.product) === null || _f === void 0 ? void 0 : _f.itemId) !== null && _g !== void 0 ? _g : '',
|
19034
19111
|
requestId: null,
|
19035
|
-
traceInfo: (
|
19112
|
+
traceInfo: (_l = (_j = (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.traceInfo) !== null && _j !== void 0 ? _j : (_k = item === null || item === void 0 ? void 0 : item.product) === null || _k === void 0 ? void 0 : _k.traceInfo) !== null && _l !== void 0 ? _l : '',
|
19036
19113
|
contentFormat,
|
19037
|
-
position: ((
|
19114
|
+
position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
|
19038
19115
|
}
|
19039
19116
|
});
|
19040
19117
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19046,13 +19123,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19046
19123
|
eventInfo: {
|
19047
19124
|
eventSubject: 'scrollUp',
|
19048
19125
|
eventDescription: 'User scroll up',
|
19049
|
-
contentId: (
|
19050
|
-
|
19051
|
-
productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
|
19126
|
+
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 : '',
|
19127
|
+
productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
|
19052
19128
|
requestId: null,
|
19053
|
-
traceInfo: (
|
19129
|
+
traceInfo: (_v = (_t = (_s = item === null || item === void 0 ? void 0 : item.video) === null || _s === void 0 ? void 0 : _s.traceInfo) !== null && _t !== void 0 ? _t : (_u = item === null || item === void 0 ? void 0 : item.product) === null || _u === void 0 ? void 0 : _u.traceInfo) !== null && _v !== void 0 ? _v : '',
|
19054
19130
|
contentFormat,
|
19055
|
-
position: ((
|
19131
|
+
position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
|
19056
19132
|
}
|
19057
19133
|
});
|
19058
19134
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
@@ -19078,7 +19154,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19078
19154
|
}
|
19079
19155
|
}, [openHashtag, data, activeIndex]);
|
19080
19156
|
const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
|
19081
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
19157
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
19082
19158
|
const item = data[activeIndex];
|
19083
19159
|
// 如果是图片集则上报事件
|
19084
19160
|
if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && ((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls)) {
|
@@ -19089,10 +19165,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19089
19165
|
eventSubject: 'viewImageCarouselStart',
|
19090
19166
|
eventDescription: 'User start view the image carousel',
|
19091
19167
|
contentId: (_d = (_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '',
|
19092
|
-
|
19093
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
19168
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
19094
19169
|
imageStartTime: `${startTime}`,
|
19095
|
-
contentTags: JSON.stringify((
|
19170
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
19096
19171
|
position: activeIndex + '',
|
19097
19172
|
contentFormat: 'image',
|
19098
19173
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
|
@@ -19102,11 +19177,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19102
19177
|
if (enableCapi) {
|
19103
19178
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19104
19179
|
eventName: 'ViewContent',
|
19105
|
-
product: (
|
19180
|
+
product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
|
19106
19181
|
});
|
19107
19182
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
19108
19183
|
eventName: 'PageView',
|
19109
|
-
product: (
|
19184
|
+
product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
|
19110
19185
|
});
|
19111
19186
|
}
|
19112
19187
|
}
|
@@ -19259,7 +19334,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19259
19334
|
}, []);
|
19260
19335
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
19261
19336
|
const handlePlaying = useCallback(() => {
|
19262
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
19337
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
19263
19338
|
setIsPauseVideo(false);
|
19264
19339
|
const item = data[index];
|
19265
19340
|
if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
@@ -19272,15 +19347,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19272
19347
|
eventSubject: 'playVideo',
|
19273
19348
|
eventDescription: 'User played the video',
|
19274
19349
|
contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
|
19275
|
-
|
19276
|
-
contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
|
19350
|
+
contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
|
19277
19351
|
playType,
|
19278
19352
|
startTime: videoCurrentTime,
|
19279
19353
|
videoDuration,
|
19280
|
-
contentTags: JSON.stringify((
|
19354
|
+
contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
|
19281
19355
|
position: index + '',
|
19282
19356
|
contentFormat: 'video',
|
19283
|
-
traceInfo: (
|
19357
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19284
19358
|
}
|
19285
19359
|
});
|
19286
19360
|
setIsFirstPlay(false);
|
@@ -19319,7 +19393,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19319
19393
|
}
|
19320
19394
|
}, [isLoadFinish]);
|
19321
19395
|
const onPause = useCallback(() => {
|
19322
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
19396
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
19323
19397
|
const item = data[index];
|
19324
19398
|
const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
|
19325
19399
|
const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
@@ -19330,15 +19404,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
19330
19404
|
eventSubject: 'playOverVideo',
|
19331
19405
|
eventDescription: 'User finished playing the video',
|
19332
19406
|
contentId: (_h = (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.itemId) !== null && _h !== void 0 ? _h : '',
|
19333
|
-
|
19334
|
-
contentName: (_o = (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.title) !== null && _o !== void 0 ? _o : '',
|
19407
|
+
contentName: (_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.title) !== null && _k !== void 0 ? _k : '',
|
19335
19408
|
endTime: videoCurrentTime,
|
19336
19409
|
videoDuration,
|
19337
19410
|
playDuration,
|
19338
|
-
contentTags: JSON.stringify((
|
19411
|
+
contentTags: JSON.stringify((_m = (_l = item === null || item === void 0 ? void 0 : item.video) === null || _l === void 0 ? void 0 : _l.tags) !== null && _m !== void 0 ? _m : []),
|
19339
19412
|
position: index + '',
|
19340
19413
|
contentFormat: 'video',
|
19341
|
-
traceInfo: (
|
19414
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
19342
19415
|
}
|
19343
19416
|
});
|
19344
19417
|
}
|