pb-sxp-ui 1.18.1 → 1.19.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +504 -489
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -7
- package/dist/index.js +504 -489
- 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 +504 -489
- 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/DiyPortalPreview/index.js +5 -3
- package/es/core/components/DiyStoryPreview/index.js +7 -18
- package/es/core/components/SxpPageRender/LikeButton/index.js +16 -18
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/es/core/components/SxpPageRender/PictureGroup/index.js +13 -39
- package/es/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/es/core/components/SxpPageRender/RenderCard.js +14 -2
- package/es/core/components/SxpPageRender/VideoWidget/index.js +45 -32
- 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 +102 -115
- package/es/core/context/SxpDataSourceProvider.d.ts +12 -5
- package/es/core/context/SxpDataSourceProvider.js +128 -94
- package/es/core/hooks/useEventReport.js +5 -6
- package/es/core/utils/tool.d.ts +3 -1
- package/es/core/utils/tool.js +29 -1
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
- package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/es/materials/sxp/popup/CommodityList/index.js +4 -5
- package/es/materials/sxp/popup/CommodityList/material.js +1 -1
- package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +1 -2
- package/es/materials/sxp/template/Commodity/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/Link/material.js +2 -4
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/NineCommodity/material.js +2 -3
- package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +1 -1
- package/lib/core/components/DiyPortalPreview/VideoWidget.js +8 -10
- package/lib/core/components/DiyPortalPreview/index.js +5 -3
- package/lib/core/components/DiyStoryPreview/index.js +7 -18
- package/lib/core/components/SxpPageRender/LikeButton/index.js +16 -18
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -5
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +12 -38
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +45 -32
- 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 +102 -115
- package/lib/core/context/SxpDataSourceProvider.d.ts +12 -5
- package/lib/core/context/SxpDataSourceProvider.js +127 -93
- package/lib/core/hooks/useEventReport.js +5 -6
- package/lib/core/utils/tool.d.ts +3 -1
- package/lib/core/utils/tool.js +31 -1
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
- package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
- package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +1 -2
- package/lib/materials/sxp/template/Commodity/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/Link/material.js +2 -4
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
- package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -276,6 +276,42 @@ function splitUrlParams(urlParams) {
|
|
|
276
276
|
});
|
|
277
277
|
return splitList !== null && splitList !== void 0 ? splitList : [];
|
|
278
278
|
}
|
|
279
|
+
function deleteCookie(name, path = '/', domain = '') {
|
|
280
|
+
// 设置过期时间为过去的时间
|
|
281
|
+
const expiration = 'expires=Thu, 01 Jan 1970 00:00:00 GMT';
|
|
282
|
+
const pathPart = path ? `; path=${path}` : '';
|
|
283
|
+
const domainPart = domain ? `; domain=${domain}` : '';
|
|
284
|
+
// 设置Cookie值为空,过期时间设为过去
|
|
285
|
+
document.cookie = `${name}=; ${expiration}${pathPart}${domainPart}`;
|
|
286
|
+
console.log(`已尝试删除Cookie: ${name}`);
|
|
287
|
+
}
|
|
288
|
+
function setCookie(name, value, days = 0, path = '/', domain = '', secure = false, sameSite = 'Lax') {
|
|
289
|
+
let cookieString = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`;
|
|
290
|
+
// 设置过期时间
|
|
291
|
+
if (days) {
|
|
292
|
+
const date = new Date();
|
|
293
|
+
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
294
|
+
cookieString += `; expires=${date.toUTCString()}`;
|
|
295
|
+
}
|
|
296
|
+
// 设置路径
|
|
297
|
+
if (path) {
|
|
298
|
+
cookieString += `; path=${path}`;
|
|
299
|
+
}
|
|
300
|
+
// 设置域名
|
|
301
|
+
if (domain) {
|
|
302
|
+
cookieString += `; domain=${domain}`;
|
|
303
|
+
}
|
|
304
|
+
// 设置Secure标志
|
|
305
|
+
if (secure) {
|
|
306
|
+
cookieString += '; secure';
|
|
307
|
+
}
|
|
308
|
+
// 设置SameSite属性
|
|
309
|
+
if (sameSite) {
|
|
310
|
+
cookieString += `; samesite=${sameSite}`;
|
|
311
|
+
}
|
|
312
|
+
// 设置Cookie
|
|
313
|
+
document.cookie = cookieString;
|
|
314
|
+
}
|
|
279
315
|
|
|
280
316
|
function unzip(b64Data) {
|
|
281
317
|
const strData = atob(b64Data);
|
|
@@ -622,7 +658,6 @@ const DEFAULT_TAG = 'FOR U';
|
|
|
622
658
|
const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, consentHeight, consentWidth, isOpenConsent = false, isEditor = false, utmParameter, channelQueryList, data, dataList, isDiyH5, onUpdateSchema, onUpdateChannel }) => {
|
|
623
659
|
var _a, _b, _c, _d, _e;
|
|
624
660
|
const [rtcList, setRtcList] = useState([]);
|
|
625
|
-
const [firstRtcList, setFirstRtcList] = useState([]);
|
|
626
661
|
const [tagList, setTagList] = useState([]);
|
|
627
662
|
const [loading, setLoading] = useState(true);
|
|
628
663
|
const [curReqInfo, setCurReqInfo] = useState({ rtc: '', requestId: '' });
|
|
@@ -654,10 +689,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
654
689
|
const [chatlabsId, setChatlabsId] = useState();
|
|
655
690
|
const finalPageData = useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
|
|
656
691
|
const pixelPvStatusRef = useRef(false);
|
|
657
|
-
const
|
|
658
|
-
var _a, _b, _c;
|
|
659
|
-
return isDiyH5 && !((_c = (_b = (_a = finalPageData === null || finalPageData === void 0 ? void 0 : finalPageData.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf) === null || _b === void 0 ? void 0 : _b.globalConfig) === null || _c === void 0 ? void 0 : _c.enablePreview);
|
|
660
|
-
}, [isDiyH5, finalPageData]);
|
|
692
|
+
const fbcRef = useRef('');
|
|
661
693
|
const isShowConsent = useMemo(() => {
|
|
662
694
|
var _a, _b, _c, _d;
|
|
663
695
|
return (((((_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.privacy_necessity) && !isAgreePolicy && !isEditor) || isOpenConsent) &&
|
|
@@ -718,9 +750,41 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
718
750
|
var _a;
|
|
719
751
|
return ((_a = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _a === void 0 ? void 0 : _a['x-app-id']) + storeAndLoadFeUserId();
|
|
720
752
|
}, [bffDataSource]);
|
|
753
|
+
useEffect(() => {
|
|
754
|
+
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
|
|
755
|
+
return;
|
|
756
|
+
fbcRef.current = getCookie('_fbc');
|
|
757
|
+
window.OptanonWrapper = function () {
|
|
758
|
+
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
759
|
+
if (!activeGroups)
|
|
760
|
+
return;
|
|
761
|
+
if (!(activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4'))) {
|
|
762
|
+
deleteCookie('_fbc');
|
|
763
|
+
}
|
|
764
|
+
else if (fbcRef.current) {
|
|
765
|
+
setCookie('_fbc', fbcRef.current, 90);
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
}, [globalConfig]);
|
|
769
|
+
const isActiveTargetingCookie = useMemo(() => {
|
|
770
|
+
var _a;
|
|
771
|
+
function getCookie(name) {
|
|
772
|
+
var _a;
|
|
773
|
+
const value = `; ${document.cookie}`;
|
|
774
|
+
const parts = value.split(`; ${name}=`);
|
|
775
|
+
if (parts.length === 2)
|
|
776
|
+
return (_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift();
|
|
777
|
+
return '';
|
|
778
|
+
}
|
|
779
|
+
decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
|
|
780
|
+
if (((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')))) {
|
|
781
|
+
return true;
|
|
782
|
+
}
|
|
783
|
+
return false;
|
|
784
|
+
}, [globalConfig]);
|
|
721
785
|
// bff API 请求方法
|
|
722
786
|
const bffFetch = useCallback((path, options, isBota = true) => {
|
|
723
|
-
var _a
|
|
787
|
+
var _a;
|
|
724
788
|
if (!bffDataSource)
|
|
725
789
|
return;
|
|
726
790
|
const url = bffDataSource.url;
|
|
@@ -733,9 +797,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
733
797
|
val.split('=')[0];
|
|
734
798
|
val.split('=')[1];
|
|
735
799
|
});
|
|
736
|
-
options.body = Object.assign(Object.assign({}, options.body), { productUserId: fakeUserId });
|
|
737
800
|
return window
|
|
738
|
-
.fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId
|
|
801
|
+
.fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers), method: options.method, body: options.type === 'beacon' && isBota
|
|
739
802
|
? JSON.stringify({
|
|
740
803
|
body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
|
|
741
804
|
})
|
|
@@ -745,6 +808,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
745
808
|
}, [bffDataSource, fakeUserId]);
|
|
746
809
|
const bffCollectEvent = useCallback((params) => {
|
|
747
810
|
var _a;
|
|
811
|
+
if (isActiveTargetingCookie)
|
|
812
|
+
return Promise.resolve();
|
|
748
813
|
const body = {
|
|
749
814
|
eventName: params === null || params === void 0 ? void 0 : params.eventName,
|
|
750
815
|
eventSource: params === null || params === void 0 ? void 0 : params.eventSource
|
|
@@ -755,39 +820,42 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
755
820
|
body,
|
|
756
821
|
type: 'beacon'
|
|
757
822
|
}, false);
|
|
758
|
-
}, [bffFetch, bffDataSource]);
|
|
823
|
+
}, [bffFetch, bffDataSource, isActiveTargetingCookie]);
|
|
759
824
|
useEffect(() => {
|
|
760
|
-
if (typeof (window
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
// img.onload = function () {
|
|
771
|
-
// 检查是否是目标 URL
|
|
772
|
-
if (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/')) {
|
|
773
|
-
// 解析 URL 参数
|
|
774
|
-
const url = new URL(value);
|
|
775
|
-
const params = Object.fromEntries(url.searchParams.entries());
|
|
776
|
-
bffCollectEvent({
|
|
777
|
-
eventName: params === null || params === void 0 ? void 0 : params.ev,
|
|
778
|
-
eventSource: 'Meta Pixel'
|
|
779
|
-
});
|
|
780
|
-
// }
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
get() {
|
|
784
|
-
return originalSrcDescriptor.get.call(this);
|
|
825
|
+
// if (typeof (window as any)?.fbq === 'function') {
|
|
826
|
+
const OriginalImage = window.Image;
|
|
827
|
+
window.Image = function () {
|
|
828
|
+
const img = new OriginalImage();
|
|
829
|
+
// 劫持 src 的 setter
|
|
830
|
+
const originalSrcDescriptor = Object.getOwnPropertyDescriptor(HTMLImageElement.prototype, 'src');
|
|
831
|
+
Object.defineProperty(img, 'src', {
|
|
832
|
+
set(value) {
|
|
833
|
+
if (isActiveTargetingCookie && (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/') || value.includes('https://www.facebook.com/tr'))) {
|
|
834
|
+
return;
|
|
785
835
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
836
|
+
// 继续正常设置 src
|
|
837
|
+
originalSrcDescriptor.set.call(this, value);
|
|
838
|
+
// img.onload = function () {
|
|
839
|
+
// 检查是否是目标 URL
|
|
840
|
+
if (value.includes('https://www.facebook.com/privacy_sandbox/pixel/register/trigger/')) {
|
|
841
|
+
// 解析 URL 参数
|
|
842
|
+
const url = new URL(value);
|
|
843
|
+
const params = Object.fromEntries(url.searchParams.entries());
|
|
844
|
+
bffCollectEvent({
|
|
845
|
+
eventName: params === null || params === void 0 ? void 0 : params.ev,
|
|
846
|
+
eventSource: 'Meta Pixel'
|
|
847
|
+
});
|
|
848
|
+
// }
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
get() {
|
|
852
|
+
return originalSrcDescriptor.get.call(this);
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
return img;
|
|
856
|
+
};
|
|
857
|
+
// }
|
|
858
|
+
}, [bffCollectEvent, isActiveTargetingCookie]);
|
|
791
859
|
useEffect(() => {
|
|
792
860
|
// 类型安全声明
|
|
793
861
|
const navigatorWithBeacon = navigator;
|
|
@@ -800,6 +868,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
800
868
|
// 覆盖方法
|
|
801
869
|
navigatorWithBeacon.sendBeacon = function (url, data) {
|
|
802
870
|
const urlString = url instanceof URL ? url.href : url.toString();
|
|
871
|
+
if (isActiveTargetingCookie && (urlString.includes('https://tr.snapchat.com/p') || urlString.includes('https://analytics.tiktok.com/api/v2/pixel'))) {
|
|
872
|
+
return true;
|
|
873
|
+
}
|
|
803
874
|
const success = originalSendBeacon(url, data);
|
|
804
875
|
function parseBeaconData(data) {
|
|
805
876
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -849,7 +920,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
849
920
|
return () => {
|
|
850
921
|
navigatorWithBeacon.sendBeacon = originalSendBeacon;
|
|
851
922
|
};
|
|
852
|
-
}, [bffCollectEvent]);
|
|
923
|
+
}, [bffCollectEvent, isActiveTargetingCookie]);
|
|
853
924
|
useEffect(() => {
|
|
854
925
|
const _originalFetch = window.fetch;
|
|
855
926
|
// 覆盖 fetch 方法
|
|
@@ -871,6 +942,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
871
942
|
return _originalFetch.apply(this, arguments_1);
|
|
872
943
|
}
|
|
873
944
|
try {
|
|
945
|
+
if (isActiveTargetingCookie && (url.includes('https://www.google-analytics.com/g/collect') || url.includes('https://arms-retcode.aliyuncs.com/r.png'))) {
|
|
946
|
+
return Promise.resolve(new Response(''));
|
|
947
|
+
}
|
|
874
948
|
// 1. 先执行原始请求
|
|
875
949
|
const response = _originalFetch.apply(this, arguments_1);
|
|
876
950
|
// 检查是否是 GA4 收集端点
|
|
@@ -914,7 +988,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
914
988
|
}
|
|
915
989
|
});
|
|
916
990
|
};
|
|
917
|
-
}, [bffCollectEvent]);
|
|
991
|
+
}, [bffCollectEvent, isActiveTargetingCookie]);
|
|
918
992
|
useEffect(() => {
|
|
919
993
|
const originalOpen = XMLHttpRequest.prototype.open;
|
|
920
994
|
const originalSend = XMLHttpRequest.prototype.send;
|
|
@@ -924,6 +998,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
924
998
|
};
|
|
925
999
|
XMLHttpRequest.prototype.send = function (body) {
|
|
926
1000
|
var _a;
|
|
1001
|
+
if (isActiveTargetingCookie && this._url && typeof this._url === 'string' && (this._url.includes('https://rumcollector.uptime.com') || this._url.includes('https://arms-retcode.aliyuncs.com/r.png') || this._url.includes('https://i.giesswein.com/nb-collector'))) {
|
|
1002
|
+
return;
|
|
1003
|
+
}
|
|
927
1004
|
if (this._url && typeof this._url === 'string' && this._url.includes('https://i.giesswein.com/nb-collector')) {
|
|
928
1005
|
if (body && typeof body === 'string') {
|
|
929
1006
|
try {
|
|
@@ -949,7 +1026,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
949
1026
|
XMLHttpRequest.prototype.open = originalOpen;
|
|
950
1027
|
XMLHttpRequest.prototype.send = originalSend;
|
|
951
1028
|
};
|
|
952
|
-
}, [bffCollectEvent]);
|
|
1029
|
+
}, [bffCollectEvent, isActiveTargetingCookie]);
|
|
953
1030
|
useEffect(() => {
|
|
954
1031
|
if (typeof (window === null || window === void 0 ? void 0 : window.fbq) === 'function') {
|
|
955
1032
|
window === null || window === void 0 ? void 0 : window.fbq('track', 'PageView');
|
|
@@ -975,8 +1052,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
975
1052
|
}, [bffDataSource]);
|
|
976
1053
|
// 获取推荐视频数据
|
|
977
1054
|
const getRecommendVideos = useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
978
|
-
var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u
|
|
979
|
-
query = Object.assign(Object.assign({ maxSize: (_f = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _f !== void 0 ? _f : maxSize, defaultSize: (_g = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _g !== void 0 ? _g : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag, pageNum: query === null || query === void 0 ? void 0 : query.pageNum, contentFilter: query === null || query === void 0 ? void 0 : query.contentFilter, productFilter: query === null || query === void 0 ? void 0 : query.productFilter }, (chatlabsId && { chatlabsId })), (
|
|
1055
|
+
var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1056
|
+
query = Object.assign(Object.assign({ maxSize: (_f = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _f !== void 0 ? _f : maxSize, defaultSize: (_g = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _g !== void 0 ? _g : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag, pageNum: query === null || query === void 0 ? void 0 : query.pageNum, contentFilter: query === null || query === void 0 ? void 0 : query.contentFilter, productFilter: query === null || query === void 0 ? void 0 : query.productFilter }, (chatlabsId && { chatlabsId })), (isDiyH5 && { type: 'story' }));
|
|
980
1057
|
if (channel) {
|
|
981
1058
|
query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(channel) });
|
|
982
1059
|
}
|
|
@@ -989,10 +1066,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
989
1066
|
if (val)
|
|
990
1067
|
query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(val) });
|
|
991
1068
|
}
|
|
992
|
-
const isDiy = isDiyH5 && ((_o = (_m = (_l = finalPageData === null || finalPageData === void 0 ? void 0 : finalPageData.data) === null || _l === void 0 ? void 0 : _l.sxpPageConf) === null || _m === void 0 ? void 0 : _m.globalConfig) === null || _o === void 0 ? void 0 : _o.enablePreview);
|
|
993
1069
|
if (isEditor) {
|
|
994
1070
|
let pageNum = 1;
|
|
995
|
-
query = Object.assign(Object.assign(Object.assign(
|
|
1071
|
+
query = Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1 }), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
|
|
996
1072
|
if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current) {
|
|
997
1073
|
return undefined;
|
|
998
1074
|
}
|
|
@@ -1000,22 +1076,19 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1000
1076
|
let list = [];
|
|
1001
1077
|
let result = null;
|
|
1002
1078
|
const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1003
|
-
var
|
|
1079
|
+
var _v, _w, _x, _y, _z, _0;
|
|
1004
1080
|
query.pageNum = pageNum;
|
|
1005
|
-
result =
|
|
1081
|
+
result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
|
|
1006
1082
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
|
1007
1083
|
return undefined;
|
|
1008
1084
|
}
|
|
1009
1085
|
setLoading(false);
|
|
1010
|
-
list = list.concat((
|
|
1086
|
+
list = list.concat((_y = (_x = (_w = (_v = result === null || result === void 0 ? void 0 : result.data) === null || _v === void 0 ? void 0 : _v.recList) === null || _w === void 0 ? void 0 : _w.filter) === null || _x === void 0 ? void 0 : _x.call(_w, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _y !== void 0 ? _y : []);
|
|
1011
1087
|
if ((rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) === 0) {
|
|
1012
1088
|
setRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
|
|
1013
1089
|
setCacheRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
|
|
1014
|
-
if (isDiyPage) {
|
|
1015
|
-
setFirstRtcList(getFilterRecList(Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list })));
|
|
1016
|
-
}
|
|
1017
1090
|
}
|
|
1018
|
-
const isNotNullList = (
|
|
1091
|
+
const isNotNullList = (_0 = (_z = result === null || result === void 0 ? void 0 : result.data) === null || _z === void 0 ? void 0 : _z.recList) === null || _0 === void 0 ? void 0 : _0.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
|
|
1019
1092
|
if (isNotNullList) {
|
|
1020
1093
|
pageNum = pageNum + 1;
|
|
1021
1094
|
yield recurveRecList(query);
|
|
@@ -1023,13 +1096,13 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1023
1096
|
});
|
|
1024
1097
|
yield recurveRecList(query);
|
|
1025
1098
|
if (!(query === null || query === void 0 ? void 0 : query.hashTag) && result)
|
|
1026
|
-
setCurReqInfo({ rtc: (
|
|
1099
|
+
setCurReqInfo({ rtc: (_l = result === null || result === void 0 ? void 0 : result.data) === null || _l === void 0 ? void 0 : _l.rtc, requestId: (_m = result === null || result === void 0 ? void 0 : result.data) === null || _m === void 0 ? void 0 : _m.requestId });
|
|
1027
1100
|
return Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.data), { recList: list });
|
|
1028
1101
|
}
|
|
1029
1102
|
if (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) {
|
|
1030
|
-
query = Object.assign(Object.assign(
|
|
1103
|
+
query = Object.assign(Object.assign({}, query), { directPage: true, level: 1, pageNum: (_o = query === null || query === void 0 ? void 0 : query.pageNum) !== null && _o !== void 0 ? _o : 1 });
|
|
1031
1104
|
}
|
|
1032
|
-
const result =
|
|
1105
|
+
const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/list', {
|
|
1033
1106
|
method: 'POST',
|
|
1034
1107
|
body: query
|
|
1035
1108
|
}));
|
|
@@ -1039,31 +1112,26 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1039
1112
|
if (!(query === null || query === void 0 ? void 0 : query.hashTag))
|
|
1040
1113
|
setCurReqInfo({ rtc: result.data.rtc, requestId: result.data.requestId });
|
|
1041
1114
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor) {
|
|
1042
|
-
const isNotNullList = (
|
|
1115
|
+
const isNotNullList = (_q = (_p = result === null || result === void 0 ? void 0 : result.data) === null || _p === void 0 ? void 0 : _p.recList) === null || _q === void 0 ? void 0 : _q.some((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
|
|
1043
1116
|
if (!isNotNullList) {
|
|
1044
1117
|
setIsNoMoreData(true);
|
|
1045
1118
|
}
|
|
1046
1119
|
}
|
|
1047
1120
|
let list = [];
|
|
1048
|
-
list = list.concat((
|
|
1121
|
+
list = list.concat((_u = (_t = (_s = (_r = result === null || result === void 0 ? void 0 : result.data) === null || _r === void 0 ? void 0 : _r.recList) === null || _s === void 0 ? void 0 : _s.filter) === null || _t === void 0 ? void 0 : _t.call(_s, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _u !== void 0 ? _u : []);
|
|
1049
1122
|
return Object.assign(Object.assign({}, result.data), { recList: list });
|
|
1050
|
-
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin
|
|
1123
|
+
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
|
|
1051
1124
|
const loadVideos = useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1052
|
-
var
|
|
1125
|
+
var _1, _2, _3, _4;
|
|
1053
1126
|
if (rtcList.length <= 0) {
|
|
1054
1127
|
return;
|
|
1055
1128
|
}
|
|
1056
|
-
if (isDiyPage && (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) > 0) {
|
|
1057
|
-
setRtcList(rtcList.concat(firstRtcList));
|
|
1058
|
-
setCacheRtcList(cacheRtcList.concat(firstRtcList));
|
|
1059
|
-
return;
|
|
1060
|
-
}
|
|
1061
1129
|
const lastItem = rtcList === null || rtcList === void 0 ? void 0 : rtcList[(rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) - 1];
|
|
1062
|
-
const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((
|
|
1130
|
+
const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_1 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _1 === void 0 ? void 0 : _1.itemId) && { productFilter: [(_2 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _2 === void 0 ? void 0 : _2.itemId] })), (((_3 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _3 === void 0 ? void 0 : _3.itemId) && { contentFilter: [(_4 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _4 === void 0 ? void 0 : _4.itemId] })), { themeTag: themeTag.current }), ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor && { pageNum })));
|
|
1063
1131
|
setRtcList(rtcList.concat(getFilterRecList(data)));
|
|
1064
1132
|
setCacheRtcList(cacheRtcList.concat(getFilterRecList(data)));
|
|
1065
1133
|
return data;
|
|
1066
|
-
}), [getRecommendVideos, rtcList, waterFallData, cacheRtcList
|
|
1134
|
+
}), [getRecommendVideos, rtcList, waterFallData, cacheRtcList]);
|
|
1067
1135
|
const refreshFeSession = useCallback((enableReSid, event) => {
|
|
1068
1136
|
var _a, _b, _c, _d, _e;
|
|
1069
1137
|
let expire = false;
|
|
@@ -1088,14 +1156,14 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1088
1156
|
const bffEventReport = useCallback(({ userInfo, eventInfo, reportLayId = true }) => {
|
|
1089
1157
|
var _a, _b;
|
|
1090
1158
|
// 关闭 BFF 事件上报
|
|
1091
|
-
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
|
1159
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) || isActiveTargetingCookie) {
|
|
1092
1160
|
return;
|
|
1093
1161
|
}
|
|
1094
1162
|
// 用户信息都是公共的
|
|
1095
1163
|
if (!userInfo) {
|
|
1096
1164
|
userInfo = {
|
|
1097
|
-
|
|
1098
|
-
|
|
1165
|
+
// productUserId: fakeUserId, // 后端逻辑会从请求头获取,所以不需要传
|
|
1166
|
+
// tpChannelId: 'H5' // 后端处理
|
|
1099
1167
|
};
|
|
1100
1168
|
}
|
|
1101
1169
|
const sessionID = storeAndLoadFeSessionId();
|
|
@@ -1130,7 +1198,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1130
1198
|
globalConfig,
|
|
1131
1199
|
playbookType,
|
|
1132
1200
|
bffDataSource,
|
|
1133
|
-
|
|
1201
|
+
isActiveTargetingCookie
|
|
1134
1202
|
]);
|
|
1135
1203
|
const getEventParamsByJson = useCallback((json, product) => {
|
|
1136
1204
|
var _a, _b, _c;
|
|
@@ -1195,7 +1263,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1195
1263
|
}, [fakeUserId]);
|
|
1196
1264
|
const bffFbReport = useCallback(({ eventName, product }) => {
|
|
1197
1265
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1198
|
-
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
|
|
1266
|
+
if (!enableReportEvent || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) || isActiveTargetingCookie) {
|
|
1199
1267
|
return;
|
|
1200
1268
|
}
|
|
1201
1269
|
let isPushState = false;
|
|
@@ -1261,42 +1329,40 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1261
1329
|
type: 'beacon'
|
|
1262
1330
|
});
|
|
1263
1331
|
}
|
|
1264
|
-
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson]);
|
|
1332
|
+
}, [bffFetch, enableReportEvent, enabledMetaConversionApi, globalConfig, bffDataSource, getEventParamsByJson, isActiveTargetingCookie]);
|
|
1265
1333
|
const bffMutateLike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1266
|
-
body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
|
|
1267
1334
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/like', { method: 'POST', body }));
|
|
1268
1335
|
return res === null || res === void 0 ? void 0 : res.success;
|
|
1269
|
-
}), [bffFetch
|
|
1336
|
+
}), [bffFetch]);
|
|
1270
1337
|
const bffMutateUnlike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1271
|
-
body = Object.assign(Object.assign({}, body), { productUserId: fakeUserId });
|
|
1272
1338
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/unlike', { method: 'POST', body }));
|
|
1273
1339
|
return res === null || res === void 0 ? void 0 : res.success;
|
|
1274
|
-
}), [bffFetch
|
|
1340
|
+
}), [bffFetch]);
|
|
1275
1341
|
const bffSubmitForm = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1276
1342
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/customform', { method: 'POST', body }));
|
|
1277
1343
|
return res === null || res === void 0 ? void 0 : res.success;
|
|
1278
1344
|
}), [bffFetch]);
|
|
1279
1345
|
// 获取 Tag
|
|
1280
1346
|
const bffGetTagList = useCallback((data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1281
|
-
var
|
|
1282
|
-
const isShowTag = !!((
|
|
1347
|
+
var _5, _6, _7, _8, _9, _10, _11, _12;
|
|
1348
|
+
const isShowTag = !!((_7 = (_6 = (_5 = data === null || data === void 0 ? void 0 : data.data) === null || _5 === void 0 ? void 0 : _5.sxpPageConf) === null || _6 === void 0 ? void 0 : _6.globalConfig) === null || _7 === void 0 ? void 0 : _7.isShowTag);
|
|
1283
1349
|
if (!utmVal || !isShowTag)
|
|
1284
1350
|
return;
|
|
1285
1351
|
try {
|
|
1286
|
-
const val = (
|
|
1352
|
+
const val = (_10 = (_9 = (_8 = splitUrlParams(utmVal)) === null || _8 === void 0 ? void 0 : _8.filter((val) => {
|
|
1287
1353
|
var _a, _b;
|
|
1288
1354
|
const key = val.split('=')[0];
|
|
1289
1355
|
return (_b = ((_a = utmParameter === null || utmParameter === void 0 ? void 0 : utmParameter.channels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.includes(key);
|
|
1290
|
-
})) === null ||
|
|
1356
|
+
})) === null || _9 === void 0 ? void 0 : _9.join('&')) !== null && _10 !== void 0 ? _10 : '';
|
|
1291
1357
|
const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/tag/list', { method: 'GET', query: { channel: decodeURIComponent(val) } }));
|
|
1292
|
-
setTagList((
|
|
1358
|
+
setTagList((_12 = (_11 = result === null || result === void 0 ? void 0 : result.data) === null || _11 === void 0 ? void 0 : _11.tags) !== null && _12 !== void 0 ? _12 : []);
|
|
1293
1359
|
}
|
|
1294
1360
|
catch (e) {
|
|
1295
1361
|
console.log('e', e);
|
|
1296
1362
|
}
|
|
1297
1363
|
}), [bffFetch, utmVal]);
|
|
1298
1364
|
const ctaEvent = useCallback((eventInfo, rec, product, position) => {
|
|
1299
|
-
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
|
|
1365
|
+
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;
|
|
1300
1366
|
const cta = product === null || product === void 0 ? void 0 : product.bindCta;
|
|
1301
1367
|
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);
|
|
1302
1368
|
let fromKName = '';
|
|
@@ -1314,7 +1380,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1314
1380
|
}
|
|
1315
1381
|
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;
|
|
1316
1382
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
1317
|
-
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 : '',
|
|
1383
|
+
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 })
|
|
1318
1384
|
});
|
|
1319
1385
|
}, [bffEventReport, isFromHashtag]);
|
|
1320
1386
|
const h5EnterLink = useCallback(() => {
|
|
@@ -1349,10 +1415,10 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1349
1415
|
});
|
|
1350
1416
|
}, [bffEventReport]);
|
|
1351
1417
|
const getAccount = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
1352
|
-
var
|
|
1418
|
+
var _13, _14;
|
|
1353
1419
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account', { method: 'GET' }));
|
|
1354
|
-
setChatlabsId((
|
|
1355
|
-
return ((
|
|
1420
|
+
setChatlabsId((_13 = res === null || res === void 0 ? void 0 : res.data) === null || _13 === void 0 ? void 0 : _13.chatLabsId);
|
|
1421
|
+
return ((_14 = res === null || res === void 0 ? void 0 : res.data) === null || _14 === void 0 ? void 0 : _14.consentResult) === 'true';
|
|
1356
1422
|
}), [bffFetch]);
|
|
1357
1423
|
const accountSonsent = useCallback((consentResult) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1358
1424
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/account/consent', {
|
|
@@ -1416,9 +1482,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1416
1482
|
}
|
|
1417
1483
|
setRtcList(list);
|
|
1418
1484
|
setCacheRtcList(list);
|
|
1419
|
-
if (isDiyPage) {
|
|
1420
|
-
setFirstRtcList(list);
|
|
1421
|
-
}
|
|
1422
1485
|
bffGetTagList(curData !== null && curData !== void 0 ? curData : finalPageData);
|
|
1423
1486
|
if (channel) {
|
|
1424
1487
|
const item = list === null || list === void 0 ? void 0 : list[0];
|
|
@@ -1438,7 +1501,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1438
1501
|
});
|
|
1439
1502
|
setLoading(false);
|
|
1440
1503
|
});
|
|
1441
|
-
}, [isShowConsent, channel
|
|
1504
|
+
}, [isShowConsent, channel]);
|
|
1442
1505
|
// cms预览
|
|
1443
1506
|
useEffect(() => {
|
|
1444
1507
|
if (!isPreview)
|
|
@@ -1454,15 +1517,12 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1454
1517
|
}
|
|
1455
1518
|
setRtcList(list);
|
|
1456
1519
|
setCacheRtcList(list);
|
|
1457
|
-
if (isDiyPage) {
|
|
1458
|
-
setFirstRtcList(list);
|
|
1459
|
-
}
|
|
1460
1520
|
}
|
|
1461
1521
|
})
|
|
1462
1522
|
.finally(() => {
|
|
1463
1523
|
setLoading(false);
|
|
1464
1524
|
});
|
|
1465
|
-
}, [getRecommendVideos, bffGetTagList, channel
|
|
1525
|
+
}, [getRecommendVideos, bffGetTagList, channel]);
|
|
1466
1526
|
const defaultLoadingImage = useIconLink('/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif', appDomain);
|
|
1467
1527
|
return (React.createElement(SxpDataSourceContext.Provider, { value: {
|
|
1468
1528
|
rtcList,
|
|
@@ -1520,8 +1580,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
1520
1580
|
refreshFeSession,
|
|
1521
1581
|
getAccount,
|
|
1522
1582
|
accountSonsent,
|
|
1523
|
-
isDiyH5
|
|
1524
|
-
firstRtcList
|
|
1583
|
+
isDiyH5
|
|
1525
1584
|
} }, isShowConsent ? (React.createElement(Consent$4, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
|
|
1526
1585
|
rtcList,
|
|
1527
1586
|
mutateLike: bffMutateLike,
|
|
@@ -1982,14 +2041,14 @@ var settingRender$f = [
|
|
|
1982
2041
|
* @Author: binruan@chatlabs.com
|
|
1983
2042
|
* @Date: 2024-03-12 10:59:06
|
|
1984
2043
|
* @LastEditors: binruan@chatlabs.com
|
|
1985
|
-
* @LastEditTime:
|
|
2044
|
+
* @LastEditTime: 2024-11-28 11:17:16
|
|
1986
2045
|
* @FilePath: \pb-sxp-ui\src\core\hooks\useEventReport.ts
|
|
1987
2046
|
*
|
|
1988
2047
|
*/
|
|
1989
2048
|
function useEventReport() {
|
|
1990
2049
|
const { bffEventReport, popupDetailData, isFromHashtag, eventTimeList, setEventTimeList } = useSxpDataSource();
|
|
1991
2050
|
const jumpToWeb = useCallback((e, data, product, cta, position, traceInfo) => {
|
|
1992
|
-
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
|
|
2051
|
+
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;
|
|
1993
2052
|
const i = eventTimeList === null || eventTimeList === void 0 ? void 0 : eventTimeList.findIndex((item) => item.target === (e === null || e === void 0 ? void 0 : e.target));
|
|
1994
2053
|
if (i !== -1) {
|
|
1995
2054
|
return;
|
|
@@ -2022,11 +2081,11 @@ function useEventReport() {
|
|
|
2022
2081
|
contentFormat = 'image';
|
|
2023
2082
|
}
|
|
2024
2083
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
2025
|
-
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 : '',
|
|
2084
|
+
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 }))
|
|
2026
2085
|
});
|
|
2027
2086
|
}, [bffEventReport, popupDetailData, isFromHashtag, eventTimeList]);
|
|
2028
2087
|
const productView = useCallback((data, product, cta, viewTime, position) => {
|
|
2029
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p
|
|
2088
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
2030
2089
|
let fromKName = '';
|
|
2031
2090
|
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))) {
|
|
2032
2091
|
fromKName = 'pdpPage';
|
|
@@ -2045,9 +2104,8 @@ function useEventReport() {
|
|
|
2045
2104
|
contentTags: JSON.stringify(product === null || product === void 0 ? void 0 : product.tags),
|
|
2046
2105
|
position: position + '',
|
|
2047
2106
|
contentId: (_d = data === null || data === void 0 ? void 0 : data.video) === null || _d === void 0 ? void 0 : _d.itemId,
|
|
2048
|
-
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 : '',
|
|
2049
2107
|
ctatId: cta === null || cta === void 0 ? void 0 : cta.itemId,
|
|
2050
|
-
traceInfo: (
|
|
2108
|
+
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 : '',
|
|
2051
2109
|
timeOnSite: Math.floor((new Date() - viewTime) / 1000) + '',
|
|
2052
2110
|
eventSubject: 'productView',
|
|
2053
2111
|
eventDescription: 'User browsed the product'
|
|
@@ -2643,6 +2701,35 @@ var settingRender$e = [
|
|
|
2643
2701
|
}
|
|
2644
2702
|
];
|
|
2645
2703
|
|
|
2704
|
+
/*
|
|
2705
|
+
* @Author: binruan@chatlabs.com
|
|
2706
|
+
* @Date: 2024-07-09 14:35:10
|
|
2707
|
+
* @LastEditors: binruan@chatlabs.com
|
|
2708
|
+
* @LastEditTime: 2024-07-12 17:53:02
|
|
2709
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
|
2710
|
+
*
|
|
2711
|
+
*/
|
|
2712
|
+
/*
|
|
2713
|
+
* @Author: binruan@chatlabs.com
|
|
2714
|
+
* @Date: 2024-07-05 14:08:41
|
|
2715
|
+
* @LastEditors: binruan@chatlabs.com
|
|
2716
|
+
* @LastEditTime: 2024-07-09 14:34:49
|
|
2717
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
|
2718
|
+
*
|
|
2719
|
+
*/
|
|
2720
|
+
var interactionRender$g = [
|
|
2721
|
+
{
|
|
2722
|
+
title: '滑动事件',
|
|
2723
|
+
child: [
|
|
2724
|
+
{
|
|
2725
|
+
type: 'Switch',
|
|
2726
|
+
label: '滑动铺满全屏',
|
|
2727
|
+
name: ['isScrollFullScreen']
|
|
2728
|
+
}
|
|
2729
|
+
]
|
|
2730
|
+
}
|
|
2731
|
+
];
|
|
2732
|
+
|
|
2646
2733
|
/**
|
|
2647
2734
|
* SSR Window 4.0.2
|
|
2648
2735
|
* Better handling for window object in SSR environment
|
|
@@ -10221,7 +10308,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
|
10221
10308
|
return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css({
|
|
10222
10309
|
width: '50px',
|
|
10223
10310
|
height: '50px',
|
|
10224
|
-
|
|
10311
|
+
marginInlineEnd: '10px'
|
|
10225
10312
|
}), onClick: () => {
|
|
10226
10313
|
handleClick(item, index);
|
|
10227
10314
|
}, key: index },
|
|
@@ -10820,35 +10907,6 @@ const CommodityDetail$1 = (_a) => {
|
|
|
10820
10907
|
};
|
|
10821
10908
|
var CommodityDetailComponent = memo(CommodityDetail$1);
|
|
10822
10909
|
|
|
10823
|
-
/*
|
|
10824
|
-
* @Author: binruan@chatlabs.com
|
|
10825
|
-
* @Date: 2024-07-09 14:35:10
|
|
10826
|
-
* @LastEditors: binruan@chatlabs.com
|
|
10827
|
-
* @LastEditTime: 2024-07-12 17:53:02
|
|
10828
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
|
10829
|
-
*
|
|
10830
|
-
*/
|
|
10831
|
-
/*
|
|
10832
|
-
* @Author: binruan@chatlabs.com
|
|
10833
|
-
* @Date: 2024-07-05 14:08:41
|
|
10834
|
-
* @LastEditors: binruan@chatlabs.com
|
|
10835
|
-
* @LastEditTime: 2024-07-09 14:34:49
|
|
10836
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
|
10837
|
-
*
|
|
10838
|
-
*/
|
|
10839
|
-
var interactionRender$g = [
|
|
10840
|
-
{
|
|
10841
|
-
title: '滑动事件',
|
|
10842
|
-
child: [
|
|
10843
|
-
{
|
|
10844
|
-
type: 'Switch',
|
|
10845
|
-
label: '滑动铺满全屏',
|
|
10846
|
-
name: ['isScrollFullScreen']
|
|
10847
|
-
}
|
|
10848
|
-
]
|
|
10849
|
-
}
|
|
10850
|
-
];
|
|
10851
|
-
|
|
10852
10910
|
/*
|
|
10853
10911
|
* @Author: binruan@chatlabs.com
|
|
10854
10912
|
* @Date: 2023-07-28 18:29:57
|
|
@@ -10895,7 +10953,6 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
|
|
|
10895
10953
|
taxInfo: {
|
|
10896
10954
|
color: '#000',
|
|
10897
10955
|
fontSize: 13,
|
|
10898
|
-
textAlign: 'left',
|
|
10899
10956
|
marginBottom: '10px'
|
|
10900
10957
|
}
|
|
10901
10958
|
},
|
|
@@ -11987,7 +12044,7 @@ var settingRender$b = [
|
|
|
11987
12044
|
type: 'Number',
|
|
11988
12045
|
label: '与右侧边距',
|
|
11989
12046
|
addonAfter: 'px',
|
|
11990
|
-
name: ['props', 'commodityPicture', '
|
|
12047
|
+
name: ['props', 'commodityPicture', 'marginInlineEnd']
|
|
11991
12048
|
},
|
|
11992
12049
|
{
|
|
11993
12050
|
label: '居中垂直偏移',
|
|
@@ -12273,12 +12330,11 @@ const CommodityList$1 = (_a) => {
|
|
|
12273
12330
|
React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css({
|
|
12274
12331
|
display: 'flex',
|
|
12275
12332
|
alignItems: 'normal',
|
|
12276
|
-
width: '100%'
|
|
12277
|
-
textAlign: 'left'
|
|
12333
|
+
width: '100%'
|
|
12278
12334
|
}) }, props),
|
|
12279
12335
|
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: commodityPicture, enableEventReport: false }),
|
|
12280
12336
|
React.createElement("div", { style: {
|
|
12281
|
-
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.
|
|
12337
|
+
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginInlineEnd) !== null && _f !== void 0 ? _f : 0}px)`,
|
|
12282
12338
|
display: 'flex',
|
|
12283
12339
|
flexDirection: 'column',
|
|
12284
12340
|
justifyContent: 'space-between'
|
|
@@ -12359,7 +12415,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
|
12359
12415
|
commodityPicture: {
|
|
12360
12416
|
width: 100,
|
|
12361
12417
|
height: 100,
|
|
12362
|
-
|
|
12418
|
+
marginInlineEnd: 10
|
|
12363
12419
|
},
|
|
12364
12420
|
commodityStyles: {
|
|
12365
12421
|
price: {
|
|
@@ -12605,7 +12661,7 @@ var settingRender$8 = [
|
|
|
12605
12661
|
type: 'Number',
|
|
12606
12662
|
label: '与右侧边距',
|
|
12607
12663
|
addonAfter: 'px',
|
|
12608
|
-
name: ['props', 'ctaTempStyles', 'img', '
|
|
12664
|
+
name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
|
|
12609
12665
|
},
|
|
12610
12666
|
{
|
|
12611
12667
|
label: '居中垂直偏移',
|
|
@@ -12866,12 +12922,11 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
|
12866
12922
|
borderRadius: 3,
|
|
12867
12923
|
width: 60,
|
|
12868
12924
|
height: 60,
|
|
12869
|
-
|
|
12925
|
+
marginInlineEnd: 8
|
|
12870
12926
|
},
|
|
12871
12927
|
title: {
|
|
12872
12928
|
fontSize: 12,
|
|
12873
|
-
color: '#fff'
|
|
12874
|
-
textAlign: 'left'
|
|
12929
|
+
color: '#fff'
|
|
12875
12930
|
},
|
|
12876
12931
|
ctaTitle: {
|
|
12877
12932
|
fontSize: 10,
|
|
@@ -12949,12 +13004,11 @@ const Appoint = createMaterial(AppointComponent, {
|
|
|
12949
13004
|
borderRadius: 3,
|
|
12950
13005
|
width: 30,
|
|
12951
13006
|
height: 30,
|
|
12952
|
-
|
|
13007
|
+
marginInlineEnd: 8
|
|
12953
13008
|
},
|
|
12954
13009
|
ctaTitle: {
|
|
12955
13010
|
fontSize: 12,
|
|
12956
13011
|
color: '#fff',
|
|
12957
|
-
textAlign: 'left',
|
|
12958
13012
|
width: 130,
|
|
12959
13013
|
height: 20
|
|
12960
13014
|
}
|
|
@@ -13090,6 +13144,27 @@ var linkSettingRender = [
|
|
|
13090
13144
|
}
|
|
13091
13145
|
];
|
|
13092
13146
|
|
|
13147
|
+
/*
|
|
13148
|
+
* @Author: binruan@chatlabs.com
|
|
13149
|
+
* @Date: 2024-08-09 16:59:38
|
|
13150
|
+
* @LastEditors: binruan@chatlabs.com
|
|
13151
|
+
* @LastEditTime: 2024-09-09 13:59:50
|
|
13152
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
|
13153
|
+
*
|
|
13154
|
+
*/
|
|
13155
|
+
var interactionRender$a = [
|
|
13156
|
+
{
|
|
13157
|
+
title: '点击事件',
|
|
13158
|
+
child: [
|
|
13159
|
+
{
|
|
13160
|
+
type: 'link',
|
|
13161
|
+
name: 'onClick',
|
|
13162
|
+
hiddenUrl: true
|
|
13163
|
+
}
|
|
13164
|
+
]
|
|
13165
|
+
}
|
|
13166
|
+
];
|
|
13167
|
+
|
|
13093
13168
|
var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
|
13094
13169
|
|
|
13095
13170
|
const Link$1 = (_a) => {
|
|
@@ -13117,27 +13192,6 @@ const Link$1 = (_a) => {
|
|
|
13117
13192
|
};
|
|
13118
13193
|
var LinkComponent = memo(Link$1);
|
|
13119
13194
|
|
|
13120
|
-
/*
|
|
13121
|
-
* @Author: binruan@chatlabs.com
|
|
13122
|
-
* @Date: 2024-08-09 16:59:38
|
|
13123
|
-
* @LastEditors: binruan@chatlabs.com
|
|
13124
|
-
* @LastEditTime: 2024-09-09 13:59:50
|
|
13125
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
|
13126
|
-
*
|
|
13127
|
-
*/
|
|
13128
|
-
var interactionRender$a = [
|
|
13129
|
-
{
|
|
13130
|
-
title: '点击事件',
|
|
13131
|
-
child: [
|
|
13132
|
-
{
|
|
13133
|
-
type: 'link',
|
|
13134
|
-
name: 'onClick',
|
|
13135
|
-
hiddenUrl: true
|
|
13136
|
-
}
|
|
13137
|
-
]
|
|
13138
|
-
}
|
|
13139
|
-
];
|
|
13140
|
-
|
|
13141
13195
|
var _a;
|
|
13142
13196
|
const Link = createMaterial(LinkComponent, {
|
|
13143
13197
|
displayName: '普通CTA',
|
|
@@ -13156,19 +13210,17 @@ const Link = createMaterial(LinkComponent, {
|
|
|
13156
13210
|
borderRadius: 3,
|
|
13157
13211
|
width: 60,
|
|
13158
13212
|
height: 60,
|
|
13159
|
-
|
|
13213
|
+
marginInlineEnd: 8
|
|
13160
13214
|
},
|
|
13161
13215
|
ctaTitle: {
|
|
13162
13216
|
fontSize: 12,
|
|
13163
13217
|
color: '#fff',
|
|
13164
|
-
textAlign: 'left',
|
|
13165
13218
|
width: 130,
|
|
13166
13219
|
height: 20
|
|
13167
13220
|
}
|
|
13168
13221
|
},
|
|
13169
13222
|
customTitle: {
|
|
13170
13223
|
style: {
|
|
13171
|
-
textAlign: 'left',
|
|
13172
13224
|
textDecoration: 'underline',
|
|
13173
13225
|
fontWeight: 'bold',
|
|
13174
13226
|
width: 130,
|
|
@@ -13258,12 +13310,11 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
|
13258
13310
|
borderRadius: 3,
|
|
13259
13311
|
width: 60,
|
|
13260
13312
|
height: 60,
|
|
13261
|
-
|
|
13313
|
+
marginInlineEnd: 8
|
|
13262
13314
|
},
|
|
13263
13315
|
title: {
|
|
13264
13316
|
fontSize: 12,
|
|
13265
|
-
color: '#000'
|
|
13266
|
-
textAlign: 'left'
|
|
13317
|
+
color: '#000'
|
|
13267
13318
|
},
|
|
13268
13319
|
ctaTitle: {
|
|
13269
13320
|
fontSize: 10,
|
|
@@ -13354,19 +13405,17 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
|
13354
13405
|
borderRadius: 8,
|
|
13355
13406
|
width: 78,
|
|
13356
13407
|
height: 78,
|
|
13357
|
-
|
|
13408
|
+
marginInlineEnd: 16
|
|
13358
13409
|
},
|
|
13359
13410
|
title: {
|
|
13360
13411
|
fontSize: 13,
|
|
13361
|
-
color: '#000'
|
|
13362
|
-
textAlign: 'left'
|
|
13412
|
+
color: '#000'
|
|
13363
13413
|
},
|
|
13364
13414
|
ctaTitle: {
|
|
13365
13415
|
textDecoration: 'underline',
|
|
13366
13416
|
fontSize: 14,
|
|
13367
13417
|
fontWeight: 'bold',
|
|
13368
13418
|
color: '#000',
|
|
13369
|
-
textAlign: 'left',
|
|
13370
13419
|
width: 150,
|
|
13371
13420
|
height: 20
|
|
13372
13421
|
}
|
|
@@ -13408,7 +13457,7 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
|
13408
13457
|
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 : [1, 2]);
|
|
13409
13458
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
13410
13459
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
13411
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
13460
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
13412
13461
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
13413
13462
|
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: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
13414
13463
|
React.createElement("div", { className: css({
|
|
@@ -13454,12 +13503,11 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
|
13454
13503
|
borderRadius: 3,
|
|
13455
13504
|
width: 60,
|
|
13456
13505
|
height: 60,
|
|
13457
|
-
|
|
13506
|
+
marginInlineEnd: 8
|
|
13458
13507
|
},
|
|
13459
13508
|
title: {
|
|
13460
13509
|
fontSize: 12,
|
|
13461
|
-
color: '#000'
|
|
13462
|
-
textAlign: 'left'
|
|
13510
|
+
color: '#000'
|
|
13463
13511
|
},
|
|
13464
13512
|
ctaTitle: {
|
|
13465
13513
|
fontSize: 10,
|
|
@@ -13507,7 +13555,7 @@ const MultiCommodity$1 = (_a) => {
|
|
|
13507
13555
|
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 : [1, 2]);
|
|
13508
13556
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
13509
13557
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
13510
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
13558
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
13511
13559
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
13512
13560
|
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: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
13513
13561
|
React.createElement("div", { className: css({
|
|
@@ -13553,12 +13601,11 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
|
13553
13601
|
borderRadius: 3,
|
|
13554
13602
|
width: 60,
|
|
13555
13603
|
height: 60,
|
|
13556
|
-
|
|
13604
|
+
marginInlineEnd: 8
|
|
13557
13605
|
},
|
|
13558
13606
|
title: {
|
|
13559
13607
|
fontSize: 12,
|
|
13560
13608
|
color: '#fff',
|
|
13561
|
-
textAlign: 'left'
|
|
13562
13609
|
},
|
|
13563
13610
|
ctaTitle: {
|
|
13564
13611
|
fontSize: 10,
|
|
@@ -13614,7 +13661,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
|
13614
13661
|
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 : [1, 2]);
|
|
13615
13662
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
13616
13663
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13617
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
|
13664
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
13618
13665
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
13619
13666
|
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: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
|
|
13620
13667
|
React.createElement("div", { className: css({
|
|
@@ -13661,19 +13708,17 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
|
13661
13708
|
borderRadius: 8,
|
|
13662
13709
|
width: 78,
|
|
13663
13710
|
height: 78,
|
|
13664
|
-
|
|
13711
|
+
marginInlineEnd: 16
|
|
13665
13712
|
},
|
|
13666
13713
|
title: {
|
|
13667
13714
|
fontSize: 12,
|
|
13668
|
-
color: '#000'
|
|
13669
|
-
textAlign: 'left'
|
|
13715
|
+
color: '#000'
|
|
13670
13716
|
},
|
|
13671
13717
|
ctaTitle: {
|
|
13672
13718
|
textDecoration: 'underline',
|
|
13673
13719
|
fontSize: 12,
|
|
13674
13720
|
fontWeight: 'bold',
|
|
13675
13721
|
color: '#000',
|
|
13676
|
-
textAlign: 'left',
|
|
13677
13722
|
width: 150,
|
|
13678
13723
|
height: 20
|
|
13679
13724
|
}
|
|
@@ -13768,12 +13813,11 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
|
|
|
13768
13813
|
borderRadius: 3,
|
|
13769
13814
|
width: 60,
|
|
13770
13815
|
height: 60,
|
|
13771
|
-
|
|
13816
|
+
marginInlineEnd: 8
|
|
13772
13817
|
},
|
|
13773
13818
|
title: {
|
|
13774
13819
|
fontSize: 12,
|
|
13775
|
-
color: '#fff'
|
|
13776
|
-
textAlign: 'left'
|
|
13820
|
+
color: '#fff'
|
|
13777
13821
|
},
|
|
13778
13822
|
ctaTitle: {
|
|
13779
13823
|
fontSize: 10,
|
|
@@ -15862,7 +15906,7 @@ function WaterfallList(_a) {
|
|
|
15862
15906
|
* @Author: binruan@chatlabs.com
|
|
15863
15907
|
* @Date: 2024-01-10 10:58:24
|
|
15864
15908
|
* @LastEditors: binruan@chatlabs.com
|
|
15865
|
-
* @LastEditTime: 2025-
|
|
15909
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
|
15866
15910
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
|
15867
15911
|
*
|
|
15868
15912
|
*/
|
|
@@ -15900,7 +15944,7 @@ const WaterFall = (props) => {
|
|
|
15900
15944
|
}
|
|
15901
15945
|
}, [waterFallData]);
|
|
15902
15946
|
const reportTagsView = useCallback(() => {
|
|
15903
|
-
var _a, _b, _c, _d, _e, _f
|
|
15947
|
+
var _a, _b, _c, _d, _e, _f;
|
|
15904
15948
|
const rec = recData === null || recData === void 0 ? void 0 : recData.rec;
|
|
15905
15949
|
if (!rec)
|
|
15906
15950
|
return;
|
|
@@ -15920,10 +15964,9 @@ const WaterFall = (props) => {
|
|
|
15920
15964
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
15921
15965
|
eventInfo: {
|
|
15922
15966
|
contentId: (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.itemId,
|
|
15923
|
-
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 : '',
|
|
15924
15967
|
position: cacheActiveIndex + '',
|
|
15925
|
-
contentTags: JSON.stringify((
|
|
15926
|
-
traceInfo: (
|
|
15968
|
+
contentTags: JSON.stringify((_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.tags),
|
|
15969
|
+
traceInfo: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.traceInfo,
|
|
15927
15970
|
hashTags: JSON.stringify([recData === null || recData === void 0 ? void 0 : recData.hashTag]),
|
|
15928
15971
|
fromKName,
|
|
15929
15972
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
|
@@ -16694,6 +16737,60 @@ var settingRender$4 = [
|
|
|
16694
16737
|
}
|
|
16695
16738
|
];
|
|
16696
16739
|
|
|
16740
|
+
/*
|
|
16741
|
+
* @Author: binruan@chatlabs.com
|
|
16742
|
+
* @Date: 2024-07-24 14:58:40
|
|
16743
|
+
* @LastEditors: binruan@chatlabs.com
|
|
16744
|
+
* @LastEditTime: 2024-09-09 13:54:35
|
|
16745
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
|
16746
|
+
*
|
|
16747
|
+
*/
|
|
16748
|
+
var interactionRender$2 = [
|
|
16749
|
+
{
|
|
16750
|
+
title: '点击事件',
|
|
16751
|
+
child: [
|
|
16752
|
+
{
|
|
16753
|
+
type: 'link',
|
|
16754
|
+
name: 'onClick',
|
|
16755
|
+
hiddenUrl: true
|
|
16756
|
+
}
|
|
16757
|
+
]
|
|
16758
|
+
},
|
|
16759
|
+
{
|
|
16760
|
+
title: '动画效果',
|
|
16761
|
+
child: [
|
|
16762
|
+
{
|
|
16763
|
+
type: 'Select',
|
|
16764
|
+
name: ['animation', 'name'],
|
|
16765
|
+
label: '动画',
|
|
16766
|
+
options: [
|
|
16767
|
+
{
|
|
16768
|
+
label: '默认',
|
|
16769
|
+
value: 1
|
|
16770
|
+
}
|
|
16771
|
+
],
|
|
16772
|
+
fieldProps: {
|
|
16773
|
+
style: {
|
|
16774
|
+
width: '100%'
|
|
16775
|
+
}
|
|
16776
|
+
}
|
|
16777
|
+
},
|
|
16778
|
+
{
|
|
16779
|
+
type: 'Number',
|
|
16780
|
+
label: '动画启动时间',
|
|
16781
|
+
name: ['animation', 'delay'],
|
|
16782
|
+
addonAfter: 'ms'
|
|
16783
|
+
},
|
|
16784
|
+
{
|
|
16785
|
+
type: 'Number',
|
|
16786
|
+
label: '动画持续时间',
|
|
16787
|
+
name: ['animation', 'duration'],
|
|
16788
|
+
addonAfter: 'ms'
|
|
16789
|
+
}
|
|
16790
|
+
]
|
|
16791
|
+
}
|
|
16792
|
+
];
|
|
16793
|
+
|
|
16697
16794
|
var styles = {"aniLinkPopup":"index-module_aniLinkPopup__YT7kj","animated-fadeIn":"index-module_animated-fadeIn__8ZCbq","fadeIn":"index-module_fadeIn__2E-dk","animated-fadeOut":"index-module_animated-fadeOut__iK4oc","fadeOut":"index-module_fadeOut__MgevT","one-line-ellipsis":"index-module_one-line-ellipsis__NRiVV","two-line-ellipsis":"index-module_two-line-ellipsis__k-YGB","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
|
|
16698
16795
|
|
|
16699
16796
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
|
@@ -16766,60 +16863,6 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
16766
16863
|
};
|
|
16767
16864
|
var AniLinkPopupComponent = memo(AniLinkPopup$1);
|
|
16768
16865
|
|
|
16769
|
-
/*
|
|
16770
|
-
* @Author: binruan@chatlabs.com
|
|
16771
|
-
* @Date: 2024-07-24 14:58:40
|
|
16772
|
-
* @LastEditors: binruan@chatlabs.com
|
|
16773
|
-
* @LastEditTime: 2024-09-09 13:54:35
|
|
16774
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
|
16775
|
-
*
|
|
16776
|
-
*/
|
|
16777
|
-
var interactionRender$2 = [
|
|
16778
|
-
{
|
|
16779
|
-
title: '点击事件',
|
|
16780
|
-
child: [
|
|
16781
|
-
{
|
|
16782
|
-
type: 'link',
|
|
16783
|
-
name: 'onClick',
|
|
16784
|
-
hiddenUrl: true
|
|
16785
|
-
}
|
|
16786
|
-
]
|
|
16787
|
-
},
|
|
16788
|
-
{
|
|
16789
|
-
title: '动画效果',
|
|
16790
|
-
child: [
|
|
16791
|
-
{
|
|
16792
|
-
type: 'Select',
|
|
16793
|
-
name: ['animation', 'name'],
|
|
16794
|
-
label: '动画',
|
|
16795
|
-
options: [
|
|
16796
|
-
{
|
|
16797
|
-
label: '默认',
|
|
16798
|
-
value: 1
|
|
16799
|
-
}
|
|
16800
|
-
],
|
|
16801
|
-
fieldProps: {
|
|
16802
|
-
style: {
|
|
16803
|
-
width: '100%'
|
|
16804
|
-
}
|
|
16805
|
-
}
|
|
16806
|
-
},
|
|
16807
|
-
{
|
|
16808
|
-
type: 'Number',
|
|
16809
|
-
label: '动画启动时间',
|
|
16810
|
-
name: ['animation', 'delay'],
|
|
16811
|
-
addonAfter: 'ms'
|
|
16812
|
-
},
|
|
16813
|
-
{
|
|
16814
|
-
type: 'Number',
|
|
16815
|
-
label: '动画持续时间',
|
|
16816
|
-
name: ['animation', 'duration'],
|
|
16817
|
-
addonAfter: 'ms'
|
|
16818
|
-
}
|
|
16819
|
-
]
|
|
16820
|
-
}
|
|
16821
|
-
];
|
|
16822
|
-
|
|
16823
16866
|
/*
|
|
16824
16867
|
* @Author: binruan@chatlabs.com
|
|
16825
16868
|
* @Date: 2024-07-24 14:58:40
|
|
@@ -16858,7 +16901,6 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
|
|
|
16858
16901
|
title: {
|
|
16859
16902
|
fontSize: 14,
|
|
16860
16903
|
color: '#000',
|
|
16861
|
-
textAlign: 'left',
|
|
16862
16904
|
lineHeight: 2.6
|
|
16863
16905
|
},
|
|
16864
16906
|
ctaTitle: {
|
|
@@ -17087,7 +17129,7 @@ const Display$1 = (_a) => {
|
|
|
17087
17129
|
React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
|
17088
17130
|
__html: setFontForText((_b = content === null || content === void 0 ? void 0 : content.text) === null || _b === void 0 ? void 0 : _b.replace(/\n/g, '</br>'), content === null || content === void 0 ? void 0 : content.style)
|
|
17089
17131
|
} }),
|
|
17090
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
|
17132
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
|
|
17091
17133
|
__html: setFontForText((_c = interaction === null || interaction === void 0 ? void 0 : interaction.text) === null || _c === void 0 ? void 0 : _c.replace(/\n/g, '</br>'), interaction === null || interaction === void 0 ? void 0 : interaction.style)
|
|
17092
17134
|
}, onClick: handleClick })),
|
|
17093
17135
|
isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
|
@@ -18005,22 +18047,21 @@ const LikeButton = (_a) => {
|
|
|
18005
18047
|
const likeIcon = useIconLink(defaultLikeIconPath$2);
|
|
18006
18048
|
const unlikeIcon = useIconLink(defaultUnLikeIconPath$2);
|
|
18007
18049
|
const handleClick = debounce(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
18008
|
-
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z
|
|
18050
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
18009
18051
|
if (state) {
|
|
18010
18052
|
// 先设置状态
|
|
18011
18053
|
setState(false);
|
|
18012
|
-
const result = (_e = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({
|
|
18054
|
+
const result = (_e = (yield (mutateUnlike === null || mutateUnlike === void 0 ? void 0 : mutateUnlike({ videoItemId: (_d = (_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.itemId) !== null && _d !== void 0 ? _d : '' })))) !== null && _e !== void 0 ? _e : false;
|
|
18013
18055
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
18014
18056
|
eventInfo: {
|
|
18015
18057
|
eventSubject: 'favoriteContentCanceled',
|
|
18016
18058
|
eventDescription: 'This content was unfavorite by the user',
|
|
18017
18059
|
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 : '',
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
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 : []),
|
|
18060
|
+
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 : '',
|
|
18061
|
+
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 : []),
|
|
18021
18062
|
position: position + '',
|
|
18022
|
-
contentFormat: ((
|
|
18023
|
-
traceInfo: (
|
|
18063
|
+
contentFormat: ((_m = recData === null || recData === void 0 ? void 0 : recData.video) === null || _m === void 0 ? void 0 : _m.url) ? 'video' : 'image',
|
|
18064
|
+
traceInfo: (_o = recData === null || recData === void 0 ? void 0 : recData.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
|
18024
18065
|
}
|
|
18025
18066
|
});
|
|
18026
18067
|
// 如果接口调用失败,则回滚状态
|
|
@@ -18028,41 +18069,40 @@ const LikeButton = (_a) => {
|
|
|
18028
18069
|
setState(true);
|
|
18029
18070
|
}
|
|
18030
18071
|
else {
|
|
18031
|
-
const nRtcList = (
|
|
18072
|
+
const nRtcList = (_p = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
|
18032
18073
|
if (index === position) {
|
|
18033
18074
|
item.isCollected = false;
|
|
18034
18075
|
}
|
|
18035
18076
|
return item;
|
|
18036
|
-
})) !== null &&
|
|
18077
|
+
})) !== null && _p !== void 0 ? _p : [];
|
|
18037
18078
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
|
18038
18079
|
}
|
|
18039
18080
|
}
|
|
18040
18081
|
else {
|
|
18041
18082
|
setState(true);
|
|
18042
|
-
const result = (
|
|
18083
|
+
const result = (_q = (yield (mutateLike === null || mutateLike === void 0 ? void 0 : mutateLike({ content: JSON.stringify(recData) })))) !== null && _q !== void 0 ? _q : false;
|
|
18043
18084
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
18044
18085
|
eventInfo: {
|
|
18045
18086
|
eventSubject: 'favoriteContent',
|
|
18046
18087
|
eventDescription: 'This content was favorite by the user',
|
|
18047
|
-
contentId: (
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
contentTags: JSON.stringify((_4 = (_3 = recData === null || recData === void 0 ? void 0 : recData.video) === null || _3 === void 0 ? void 0 : _3.tags) !== null && _4 !== void 0 ? _4 : []),
|
|
18088
|
+
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 : '',
|
|
18089
|
+
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 : '',
|
|
18090
|
+
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 : []),
|
|
18051
18091
|
position: position + '',
|
|
18052
|
-
contentFormat: ((
|
|
18053
|
-
traceInfo: (
|
|
18092
|
+
contentFormat: ((_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.url) ? 'video' : 'image',
|
|
18093
|
+
traceInfo: (_y = recData === null || recData === void 0 ? void 0 : recData.video) === null || _y === void 0 ? void 0 : _y.traceInfo
|
|
18054
18094
|
}
|
|
18055
18095
|
});
|
|
18056
18096
|
if (!result) {
|
|
18057
18097
|
setState(false);
|
|
18058
18098
|
}
|
|
18059
18099
|
else {
|
|
18060
|
-
const nRtcList = (
|
|
18100
|
+
const nRtcList = (_z = cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.map((item, index) => {
|
|
18061
18101
|
if (index === position) {
|
|
18062
18102
|
item.isCollected = true;
|
|
18063
18103
|
}
|
|
18064
18104
|
return item;
|
|
18065
|
-
})) !== null &&
|
|
18105
|
+
})) !== null && _z !== void 0 ? _z : [];
|
|
18066
18106
|
setCacheRtcList === null || setCacheRtcList === void 0 ? void 0 : setCacheRtcList(nRtcList);
|
|
18067
18107
|
}
|
|
18068
18108
|
}
|
|
@@ -18099,7 +18139,7 @@ const mountVideoPlayerAtNode = (() => {
|
|
|
18099
18139
|
const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoPlayIcon, loopPlay, swiperRef }, ref) => {
|
|
18100
18140
|
var _a, _b;
|
|
18101
18141
|
const [isPauseVideo, setIsPauseVideo] = useState(false);
|
|
18102
|
-
const { bffEventReport, sxpParameter,
|
|
18142
|
+
const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport, isDiyH5 } = useSxpDataSource();
|
|
18103
18143
|
const videoStartTime = useRef(0);
|
|
18104
18144
|
const [isLoadFinish, setIsLoadFinish] = useState(false);
|
|
18105
18145
|
const { isActive } = useSwiperSlide();
|
|
@@ -18165,23 +18205,6 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18165
18205
|
return;
|
|
18166
18206
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
|
18167
18207
|
}, [videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
|
18168
|
-
const handleEnd = () => {
|
|
18169
|
-
var _a, _b, _c, _d, _e, _f;
|
|
18170
|
-
if (!videoRef.current)
|
|
18171
|
-
return;
|
|
18172
|
-
if (isDiyH5) {
|
|
18173
|
-
(_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.pause();
|
|
18174
|
-
if (!loopPlayRef.current)
|
|
18175
|
-
return;
|
|
18176
|
-
if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
|
|
18177
|
-
const i = (_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.activeIndex;
|
|
18178
|
-
(_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(i + 1);
|
|
18179
|
-
}
|
|
18180
|
-
}
|
|
18181
|
-
else {
|
|
18182
|
-
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.play();
|
|
18183
|
-
}
|
|
18184
|
-
};
|
|
18185
18208
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
|
18186
18209
|
const handlePlaying = useCallback(() => {
|
|
18187
18210
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
|
@@ -18190,7 +18213,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18190
18213
|
setIsLoadFinish(true);
|
|
18191
18214
|
}, []);
|
|
18192
18215
|
const handleStartPlay = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
18193
|
-
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
18216
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18194
18217
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
|
18195
18218
|
return;
|
|
18196
18219
|
setIsPauseVideo(false);
|
|
@@ -18201,11 +18224,16 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18201
18224
|
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);
|
|
18202
18225
|
const playType = (isFirstPlayRef === null || isFirstPlayRef === void 0 ? void 0 : isFirstPlayRef.current) ? '0' : '1';
|
|
18203
18226
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
18204
|
-
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 : '',
|
|
18227
|
+
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) + '' }))
|
|
18205
18228
|
});
|
|
18206
18229
|
isFirstPlayRef.current = false;
|
|
18207
18230
|
}
|
|
18208
18231
|
}), [bffEventReport, data, index, isFirstPlayRef, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
|
18232
|
+
const setCurrentTimeByStartTime = useCallback(() => {
|
|
18233
|
+
if (isDiyH5) {
|
|
18234
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
|
18235
|
+
}
|
|
18236
|
+
}, []);
|
|
18209
18237
|
const handLoadeddata = useCallback(() => {
|
|
18210
18238
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || firstFrameSrc || !blur)
|
|
18211
18239
|
return;
|
|
@@ -18230,12 +18258,13 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18230
18258
|
const handleLoadedmetadata = useCallback(() => {
|
|
18231
18259
|
if (!videoRef.current)
|
|
18232
18260
|
return;
|
|
18261
|
+
setCurrentTimeByStartTime();
|
|
18233
18262
|
loadedTimeRef.current = new Date();
|
|
18234
18263
|
handleStartPlay();
|
|
18235
18264
|
handLoadeddata();
|
|
18236
18265
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
|
18237
18266
|
const handleClickVideo = useCallback((type) => () => {
|
|
18238
|
-
var _a, _b, _c, _d, _e;
|
|
18267
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18239
18268
|
if (!videoRef.current)
|
|
18240
18269
|
return;
|
|
18241
18270
|
if (!isLoadFinish)
|
|
@@ -18256,17 +18285,20 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18256
18285
|
break;
|
|
18257
18286
|
default:
|
|
18258
18287
|
if (isPause) {
|
|
18259
|
-
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.
|
|
18288
|
+
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)) {
|
|
18289
|
+
videoRef.current.currentTime = scene === null || scene === void 0 ? void 0 : scene.startTime;
|
|
18290
|
+
}
|
|
18291
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.play();
|
|
18260
18292
|
}
|
|
18261
18293
|
else {
|
|
18262
|
-
(
|
|
18294
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.pause();
|
|
18263
18295
|
}
|
|
18264
18296
|
setIsPauseVideo(!isPause);
|
|
18265
18297
|
break;
|
|
18266
18298
|
}
|
|
18267
18299
|
}, [isLoadFinish, videoRef === null || videoRef === void 0 ? void 0 : videoRef.current]);
|
|
18268
18300
|
const handlePause = useCallback(() => {
|
|
18269
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
18301
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
18270
18302
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
|
18271
18303
|
return;
|
|
18272
18304
|
if (activeIndex !== index)
|
|
@@ -18282,15 +18314,14 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18282
18314
|
eventSubject: 'playOverVideo',
|
|
18283
18315
|
eventDescription: 'User finished playing the video',
|
|
18284
18316
|
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 : '',
|
|
18285
|
-
|
|
18286
|
-
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 : '',
|
|
18317
|
+
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 : '',
|
|
18287
18318
|
endTime: videoCurrentTime,
|
|
18288
18319
|
videoDuration,
|
|
18289
18320
|
playDuration,
|
|
18290
|
-
contentTags: JSON.stringify((
|
|
18321
|
+
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 : []),
|
|
18291
18322
|
position: index + '',
|
|
18292
18323
|
contentFormat: 'video',
|
|
18293
|
-
traceInfo: (
|
|
18324
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
|
18294
18325
|
}
|
|
18295
18326
|
});
|
|
18296
18327
|
}
|
|
@@ -18298,8 +18329,27 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18298
18329
|
const handleWaiting = useCallback(() => {
|
|
18299
18330
|
setWaiting(true);
|
|
18300
18331
|
}, []);
|
|
18332
|
+
const handleTimeUpload = () => {
|
|
18333
|
+
if (!videoRef.current || !isDiyH5)
|
|
18334
|
+
return;
|
|
18335
|
+
setTimeout(() => {
|
|
18336
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
18337
|
+
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)) {
|
|
18338
|
+
(_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.pause();
|
|
18339
|
+
if (!loopPlayRef.current)
|
|
18340
|
+
return;
|
|
18341
|
+
if (index === (data === null || data === void 0 ? void 0 : data.length) - 1) {
|
|
18342
|
+
(_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);
|
|
18343
|
+
}
|
|
18344
|
+
else {
|
|
18345
|
+
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;
|
|
18346
|
+
(_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);
|
|
18347
|
+
}
|
|
18348
|
+
}
|
|
18349
|
+
});
|
|
18350
|
+
};
|
|
18301
18351
|
useEffect(() => {
|
|
18302
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
18352
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
18303
18353
|
if (!isActive)
|
|
18304
18354
|
return;
|
|
18305
18355
|
const videoSrc = videoUrl;
|
|
@@ -18320,6 +18370,7 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18320
18370
|
hls === null || hls === void 0 ? void 0 : hls.attachMedia(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current);
|
|
18321
18371
|
hls === null || hls === void 0 ? void 0 : hls.on(Hls.Events.MANIFEST_PARSED, function () {
|
|
18322
18372
|
var _a;
|
|
18373
|
+
setCurrentTimeByStartTime();
|
|
18323
18374
|
(_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.play();
|
|
18324
18375
|
});
|
|
18325
18376
|
}
|
|
@@ -18333,11 +18384,12 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18333
18384
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.addEventListener('play', handleStartPlay);
|
|
18334
18385
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.addEventListener('playing', handlePlaying);
|
|
18335
18386
|
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.addEventListener('pause', handlePause);
|
|
18336
|
-
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended',
|
|
18387
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.addEventListener('ended', handlePlay);
|
|
18337
18388
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
|
18338
18389
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
|
18390
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.addEventListener('timeupdate', handleTimeUpload);
|
|
18339
18391
|
return () => {
|
|
18340
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
18392
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
18341
18393
|
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
|
18342
18394
|
if (!isPause)
|
|
18343
18395
|
handlePause();
|
|
@@ -18349,9 +18401,10 @@ const VideoWidget$4 = forwardRef(({ rec, index, height, data, muted, activeIndex
|
|
|
18349
18401
|
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('play', handleStartPlay);
|
|
18350
18402
|
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('playing', handlePlaying);
|
|
18351
18403
|
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('pause', handlePause);
|
|
18352
|
-
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended',
|
|
18404
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('ended', handlePlay);
|
|
18353
18405
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('canplay', handlePlay);
|
|
18354
18406
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.removeEventListener('waiting', handleWaiting);
|
|
18407
|
+
(_l = videoRef.current) === null || _l === void 0 ? void 0 : _l.removeEventListener('timeupdate', handleTimeUpload);
|
|
18355
18408
|
};
|
|
18356
18409
|
}, [isActive]);
|
|
18357
18410
|
useEffect(() => {
|
|
@@ -18562,45 +18615,19 @@ const Picture = (props) => {
|
|
|
18562
18615
|
}, onLoad: onShowFirstImage }))));
|
|
18563
18616
|
};
|
|
18564
18617
|
|
|
18565
|
-
const PictureGroup$4 =
|
|
18618
|
+
const PictureGroup$4 = ({ imgUrls, width, height, rec, index, onViewImageEndEvent, onViewImageStartEvent, imgUrlsPostConfig }) => {
|
|
18566
18619
|
var _a, _b;
|
|
18567
18620
|
const { isActive } = useSwiperSlide();
|
|
18568
|
-
const {
|
|
18621
|
+
const { sxpParameter, openHashtag } = useSxpDataSource();
|
|
18569
18622
|
const [isLoad, setIsLoad] = useState(false);
|
|
18570
18623
|
const [imgInfo, setImgInfo] = useState();
|
|
18571
18624
|
const [swiperActiveIndex, setSwiperActiveIndex] = useState(0);
|
|
18572
|
-
const
|
|
18625
|
+
const swiperRef = useRef();
|
|
18573
18626
|
const isFirstPlayRef = useRef(true);
|
|
18574
|
-
const loopPlayRef = useRef(true);
|
|
18575
18627
|
const initTime = new Date();
|
|
18576
|
-
useImperativeHandle(ref, () => {
|
|
18577
|
-
return {
|
|
18578
|
-
setLoopPlay(v) {
|
|
18579
|
-
loopPlayRef.current = v;
|
|
18580
|
-
}
|
|
18581
|
-
};
|
|
18582
|
-
});
|
|
18583
|
-
useEffect(() => {
|
|
18584
|
-
let timerId;
|
|
18585
|
-
if (isLoad && isActive && isDiyH5) {
|
|
18586
|
-
timerId = setTimeout(() => {
|
|
18587
|
-
var _a, _b, _c, _d;
|
|
18588
|
-
if (!loopPlayRef.current)
|
|
18589
|
-
return;
|
|
18590
|
-
if (firstRtcList && index < (firstRtcList === null || firstRtcList === void 0 ? void 0 : firstRtcList.length) - 1) {
|
|
18591
|
-
const i = (_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.activeIndex;
|
|
18592
|
-
(_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.slideTo(i + 1);
|
|
18593
|
-
}
|
|
18594
|
-
}, 3000);
|
|
18595
|
-
}
|
|
18596
|
-
return () => {
|
|
18597
|
-
if (timerId)
|
|
18598
|
-
clearTimeout(timerId);
|
|
18599
|
-
};
|
|
18600
|
-
}, [isLoad, isActive, isDiyH5, index, swiperRef, firstRtcList]);
|
|
18601
18628
|
useEffect(() => {
|
|
18602
18629
|
if (isLoad && isActive) {
|
|
18603
|
-
(
|
|
18630
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.start();
|
|
18604
18631
|
if (openHashtag) {
|
|
18605
18632
|
onViewImageEndEvent(rec);
|
|
18606
18633
|
}
|
|
@@ -18610,7 +18637,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
|
18610
18637
|
}
|
|
18611
18638
|
}
|
|
18612
18639
|
else {
|
|
18613
|
-
(
|
|
18640
|
+
(swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) && swiperRef.current.swiper.autoplay.stop();
|
|
18614
18641
|
}
|
|
18615
18642
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
|
18616
18643
|
const showFirstImageFn = useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -18637,13 +18664,13 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
|
18637
18664
|
};
|
|
18638
18665
|
}, [isActive, imgInfo]);
|
|
18639
18666
|
const handleMouseEnter = useCallback(() => {
|
|
18640
|
-
if (
|
|
18641
|
-
|
|
18667
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
|
18668
|
+
swiperRef.current.swiper.autoplay.stop();
|
|
18642
18669
|
}
|
|
18643
18670
|
}, []);
|
|
18644
18671
|
const handleMouseLeave = useCallback(() => {
|
|
18645
|
-
if (
|
|
18646
|
-
|
|
18672
|
+
if (swiperRef.current && swiperRef.current.swiper && isAlly) {
|
|
18673
|
+
swiperRef.current.swiper.autoplay.start();
|
|
18647
18674
|
}
|
|
18648
18675
|
}, []);
|
|
18649
18676
|
const handleSlideChange = useCallback((swiper) => {
|
|
@@ -18664,7 +18691,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
|
18664
18691
|
enabled: true
|
|
18665
18692
|
}
|
|
18666
18693
|
}
|
|
18667
|
-
: {}), { loop: true, ref:
|
|
18694
|
+
: {}), { loop: true, ref: swiperRef, onSlideChange: handleSlideChange, className: css(Object.assign(Object.assign({ '.swiper-pagination': {
|
|
18668
18695
|
bottom: (_a = imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.marginBottom) !== null && _a !== void 0 ? _a : 0,
|
|
18669
18696
|
fontSize: '14px'
|
|
18670
18697
|
} }, ((imgUrlsPostConfig === null || imgUrlsPostConfig === void 0 ? void 0 : imgUrlsPostConfig.dotsBgColor) && {
|
|
@@ -18681,7 +18708,7 @@ const PictureGroup$4 = forwardRef(({ imgUrls, data, height, rec, index, onViewIm
|
|
|
18681
18708
|
return (React.createElement(SwiperSlide, { key: srcKey, "aria-hidden": srcKey !== swiperActiveIndex },
|
|
18682
18709
|
React.createElement(Picture, { src: !isLoad && srcKey > 0 ? '' : url, height: height, imgUrlsPostConfig: imgUrlsPostConfig, onShowFirstImage: showFirstImageFn })));
|
|
18683
18710
|
}))));
|
|
18684
|
-
}
|
|
18711
|
+
};
|
|
18685
18712
|
var PictureGroup$5 = memo(PictureGroup$4);
|
|
18686
18713
|
|
|
18687
18714
|
/*
|
|
@@ -18802,10 +18829,22 @@ function withBindDataSource(Component) {
|
|
|
18802
18829
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
|
18803
18830
|
*
|
|
18804
18831
|
*/
|
|
18805
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18832
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
|
|
18833
|
+
var _a, _b, _c, _d, _e;
|
|
18806
18834
|
const { schema } = useEditor();
|
|
18807
18835
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
|
18808
18836
|
return null;
|
|
18837
|
+
let cta = null;
|
|
18838
|
+
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) {
|
|
18839
|
+
cta = '多商品CTA';
|
|
18840
|
+
}
|
|
18841
|
+
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
|
18842
|
+
cta = '商品CTA';
|
|
18843
|
+
}
|
|
18844
|
+
else {
|
|
18845
|
+
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;
|
|
18846
|
+
}
|
|
18847
|
+
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
18809
18848
|
const renderComp = useMemo(() => {
|
|
18810
18849
|
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;
|
|
18811
18850
|
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
|
@@ -18833,7 +18872,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
|
18833
18872
|
const sbf = style.backdropFilter;
|
|
18834
18873
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
|
18835
18874
|
}
|
|
18836
|
-
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,
|
|
18875
|
+
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, marginInlineStart: '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 })));
|
|
18837
18876
|
}
|
|
18838
18877
|
else {
|
|
18839
18878
|
return null;
|
|
@@ -18961,7 +19000,7 @@ var NavBack$1 = memo(NavBack);
|
|
|
18961
19000
|
* @Author: binruan@chatlabs.com
|
|
18962
19001
|
* @Date: 2024-03-20 10:27:31
|
|
18963
19002
|
* @LastEditors: binruan@chatlabs.com
|
|
18964
|
-
* @LastEditTime: 2025-05-
|
|
19003
|
+
* @LastEditTime: 2025-05-09 15:51:40
|
|
18965
19004
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
|
18966
19005
|
*
|
|
18967
19006
|
*/
|
|
@@ -18981,7 +19020,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
18981
19020
|
const skipLinkRef = useRef(false);
|
|
18982
19021
|
const [pageNum, setPageNum] = useState(2);
|
|
18983
19022
|
const videoWidgetRef = useRef(null);
|
|
18984
|
-
const pictureGroupRef = useRef(null);
|
|
18985
19023
|
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();
|
|
18986
19024
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
|
18987
19025
|
const isShowFingerTip = useMemo(() => {
|
|
@@ -19029,7 +19067,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19029
19067
|
(_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
|
|
19030
19068
|
}, [data, ctaType, swiperRef]);
|
|
19031
19069
|
const handleSessionCompleted = useCallback((fk) => {
|
|
19032
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v
|
|
19070
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
19033
19071
|
const item = data === null || data === void 0 ? void 0 : data[activeIndex];
|
|
19034
19072
|
let fromKName = '';
|
|
19035
19073
|
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))) {
|
|
@@ -19056,13 +19094,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19056
19094
|
eventSubject: 'sessionCompleted',
|
|
19057
19095
|
eventDescription: 'Session completed',
|
|
19058
19096
|
contentId: (_m = item === null || item === void 0 ? void 0 : item.video) === null || _m === void 0 ? void 0 : _m.itemId,
|
|
19059
|
-
|
|
19060
|
-
productId: (_r = item === null || item === void 0 ? void 0 : item.product) === null || _r === void 0 ? void 0 : _r.itemId,
|
|
19097
|
+
productId: (_o = item === null || item === void 0 ? void 0 : item.product) === null || _o === void 0 ? void 0 : _o.itemId,
|
|
19061
19098
|
position: activeIndex + '',
|
|
19062
19099
|
fromKName: fk || fromKName,
|
|
19063
19100
|
fromKPage: location === null || location === void 0 ? void 0 : location.href,
|
|
19064
|
-
ctatId: (
|
|
19065
|
-
traceInfo: (
|
|
19101
|
+
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 : '',
|
|
19102
|
+
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 : ''
|
|
19066
19103
|
}
|
|
19067
19104
|
});
|
|
19068
19105
|
}, [data, bffEventReport, activeIndex, popupDetailData, tempMap, isFromHashtag, curTime]);
|
|
@@ -19121,9 +19158,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19121
19158
|
refreshFeSession
|
|
19122
19159
|
]);
|
|
19123
19160
|
const handleSessionExpire = useCallback(debounce(() => {
|
|
19124
|
-
var _a
|
|
19161
|
+
var _a;
|
|
19125
19162
|
(_a = videoWidgetRef.current) === null || _a === void 0 ? void 0 : _a.setLoopPlay(false);
|
|
19126
|
-
(_b = pictureGroupRef.current) === null || _b === void 0 ? void 0 : _b.setLoopPlay(false);
|
|
19127
19163
|
refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
|
|
19128
19164
|
}, 1000), [handleSessionCompleted, refreshFeSession]);
|
|
19129
19165
|
useEffect(() => {
|
|
@@ -19193,18 +19229,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19193
19229
|
return null;
|
|
19194
19230
|
}, [globalConfig, activeIndex, visList]);
|
|
19195
19231
|
const renderContent = useCallback((rec, index) => {
|
|
19196
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
19232
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
19197
19233
|
if (rec === 'organic menu') {
|
|
19198
19234
|
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)));
|
|
19199
19235
|
}
|
|
19200
|
-
if ((
|
|
19236
|
+
if ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.url) {
|
|
19201
19237
|
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 })));
|
|
19202
19238
|
}
|
|
19203
|
-
if ((
|
|
19204
|
-
return (React.createElement(PictureGroup$5,
|
|
19239
|
+
if ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.imgUrls) {
|
|
19240
|
+
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 }));
|
|
19205
19241
|
}
|
|
19206
|
-
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((
|
|
19207
|
-
return (
|
|
19242
|
+
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) {
|
|
19243
|
+
return (_k = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _k === void 0 ? void 0 : _k.map((value, idx) => {
|
|
19208
19244
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
19209
19245
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
|
19210
19246
|
const Component = withBindDataSource(t);
|
|
@@ -19242,7 +19278,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19242
19278
|
};
|
|
19243
19279
|
}, [isShowMore]);
|
|
19244
19280
|
const renderBottom = useCallback((rec, index) => {
|
|
19245
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q
|
|
19281
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19246
19282
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
|
19247
19283
|
let cta = null;
|
|
19248
19284
|
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) {
|
|
@@ -19251,28 +19287,25 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19251
19287
|
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
|
19252
19288
|
cta = '商品CTA';
|
|
19253
19289
|
}
|
|
19254
|
-
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)) {
|
|
19255
|
-
cta = '服务CTA';
|
|
19256
|
-
}
|
|
19257
19290
|
else {
|
|
19258
|
-
cta = (
|
|
19291
|
+
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;
|
|
19259
19292
|
}
|
|
19260
19293
|
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
19261
19294
|
const isNineProduct = (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.nineProductEnable) &&
|
|
19262
19295
|
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
|
|
19263
|
-
((
|
|
19296
|
+
((_f = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _f === void 0 ? void 0 : _f.includes((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type));
|
|
19264
19297
|
return (React.createElement(React.Fragment, null,
|
|
19265
|
-
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex,
|
|
19266
|
-
((
|
|
19267
|
-
React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(
|
|
19298
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
|
19299
|
+
((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
|
|
19300
|
+
React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _j !== void 0 ? _j : 40}px` } },
|
|
19268
19301
|
React.createElement(Nudge, { nudge: nudge }),
|
|
19269
19302
|
((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' },
|
|
19270
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex
|
|
19271
|
-
React.createElement("div",
|
|
19272
|
-
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: (
|
|
19273
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex
|
|
19274
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
|
19275
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex
|
|
19303
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
|
19304
|
+
React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
|
|
19305
|
+
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: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : '', 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 }),
|
|
19306
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
|
19307
|
+
React.createElement(Hashtag$1, { index: activeIndex, tags: (_o = (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.hashTags) !== null && _o !== void 0 ? _o : [], itemId: (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.itemId, itemType: ((_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
|
|
19308
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
|
19276
19309
|
}
|
|
19277
19310
|
return null;
|
|
19278
19311
|
}, [
|
|
@@ -19310,7 +19343,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19310
19343
|
return null;
|
|
19311
19344
|
}, [globalConfig, waterFallData]);
|
|
19312
19345
|
const handleViewImageStartEnd = (item) => {
|
|
19313
|
-
var _a, _b, _c, _d, _e, _f
|
|
19346
|
+
var _a, _b, _c, _d, _e, _f;
|
|
19314
19347
|
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)) {
|
|
19315
19348
|
const endTime = Date.now();
|
|
19316
19349
|
const duration = viewImageStartTime.current === 0 ? 0 : (endTime - viewImageStartTime.current) / 1000;
|
|
@@ -19319,11 +19352,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19319
19352
|
eventSubject: 'viewImageCarouselEnd',
|
|
19320
19353
|
eventDescription: 'User end view the image carousel',
|
|
19321
19354
|
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 : '',
|
|
19322
|
-
|
|
19323
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
|
19355
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
|
19324
19356
|
imageEndTime: `${endTime}`,
|
|
19325
19357
|
playDuration: `${duration}`,
|
|
19326
|
-
contentTags: JSON.stringify((
|
|
19358
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
|
19327
19359
|
position: activeIndex + '',
|
|
19328
19360
|
contentFormat: 'image',
|
|
19329
19361
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo
|
|
@@ -19332,7 +19364,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19332
19364
|
}
|
|
19333
19365
|
};
|
|
19334
19366
|
const handleSlideSkip = (item, position) => {
|
|
19335
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x
|
|
19367
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
19336
19368
|
if (isPreview || waterFallData)
|
|
19337
19369
|
return;
|
|
19338
19370
|
const t = new Date() - curTime.current;
|
|
@@ -19358,8 +19390,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19358
19390
|
contentTags: (product === null || product === void 0 ? void 0 : product.tags) ? JSON.stringify(product === null || product === void 0 ? void 0 : product.tags) : '',
|
|
19359
19391
|
position: position + '',
|
|
19360
19392
|
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 : '',
|
|
19361
|
-
|
|
19362
|
-
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 : '',
|
|
19393
|
+
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 : '',
|
|
19363
19394
|
contentFormat
|
|
19364
19395
|
}
|
|
19365
19396
|
});
|
|
@@ -19369,7 +19400,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19369
19400
|
}
|
|
19370
19401
|
};
|
|
19371
19402
|
const handleScrollEvent = (swiper) => {
|
|
19372
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w
|
|
19403
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
19373
19404
|
const item = data[swiper.previousIndex];
|
|
19374
19405
|
if (!item)
|
|
19375
19406
|
return;
|
|
@@ -19386,12 +19417,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19386
19417
|
eventSubject: 'scrollDown',
|
|
19387
19418
|
eventDescription: 'User scroll down',
|
|
19388
19419
|
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 : '',
|
|
19389
|
-
|
|
19390
|
-
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 : '',
|
|
19420
|
+
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 : '',
|
|
19391
19421
|
requestId: null,
|
|
19392
|
-
traceInfo: (
|
|
19422
|
+
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 : '',
|
|
19393
19423
|
contentFormat,
|
|
19394
|
-
position: ((
|
|
19424
|
+
position: ((_m = swiper.previousIndex) !== null && _m !== void 0 ? _m : 0) + ''
|
|
19395
19425
|
}
|
|
19396
19426
|
});
|
|
19397
19427
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19403,13 +19433,12 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19403
19433
|
eventInfo: {
|
|
19404
19434
|
eventSubject: 'scrollUp',
|
|
19405
19435
|
eventDescription: 'User scroll up',
|
|
19406
|
-
contentId: (
|
|
19407
|
-
|
|
19408
|
-
productId: (_x = (_w = item.product) === null || _w === void 0 ? void 0 : _w.itemId) !== null && _x !== void 0 ? _x : '',
|
|
19436
|
+
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 : '',
|
|
19437
|
+
productId: (_r = (_q = item.product) === null || _q === void 0 ? void 0 : _q.itemId) !== null && _r !== void 0 ? _r : '',
|
|
19409
19438
|
requestId: null,
|
|
19410
|
-
traceInfo: (
|
|
19439
|
+
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 : '',
|
|
19411
19440
|
contentFormat,
|
|
19412
|
-
position: ((
|
|
19441
|
+
position: ((_w = swiper.previousIndex) !== null && _w !== void 0 ? _w : 0) + ''
|
|
19413
19442
|
}
|
|
19414
19443
|
});
|
|
19415
19444
|
// 如果上一个商品是图片集,需上报 浏览图片集结结束 事件
|
|
@@ -19435,7 +19464,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19435
19464
|
}
|
|
19436
19465
|
}, [openHashtag, data, activeIndex]);
|
|
19437
19466
|
const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
|
|
19438
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
19467
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
19439
19468
|
const item = data[activeIndex];
|
|
19440
19469
|
// 如果是图片集则上报事件
|
|
19441
19470
|
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)) {
|
|
@@ -19446,10 +19475,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19446
19475
|
eventSubject: 'viewImageCarouselStart',
|
|
19447
19476
|
eventDescription: 'User start view the image carousel',
|
|
19448
19477
|
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 : '',
|
|
19449
|
-
|
|
19450
|
-
contentName: (_h = item === null || item === void 0 ? void 0 : item.video.title) !== null && _h !== void 0 ? _h : '',
|
|
19478
|
+
contentName: (_e = item === null || item === void 0 ? void 0 : item.video.title) !== null && _e !== void 0 ? _e : '',
|
|
19451
19479
|
imageStartTime: `${startTime}`,
|
|
19452
|
-
contentTags: JSON.stringify((
|
|
19480
|
+
contentTags: JSON.stringify((_f = item === null || item === void 0 ? void 0 : item.video.tags) !== null && _f !== void 0 ? _f : []),
|
|
19453
19481
|
position: activeIndex + '',
|
|
19454
19482
|
contentFormat: 'image',
|
|
19455
19483
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
|
|
@@ -19459,11 +19487,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19459
19487
|
if (enableCapi) {
|
|
19460
19488
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
19461
19489
|
eventName: 'ViewContent',
|
|
19462
|
-
product: (
|
|
19490
|
+
product: (_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.bindProduct
|
|
19463
19491
|
});
|
|
19464
19492
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
|
19465
19493
|
eventName: 'PageView',
|
|
19466
|
-
product: (
|
|
19494
|
+
product: (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct
|
|
19467
19495
|
});
|
|
19468
19496
|
}
|
|
19469
19497
|
}
|
|
@@ -19519,73 +19547,71 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19519
19547
|
isReload,
|
|
19520
19548
|
renderToggleButton
|
|
19521
19549
|
]);
|
|
19522
|
-
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
|
|
19530
|
-
} })),
|
|
19531
|
-
renderLogo,
|
|
19532
|
-
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
|
19533
|
-
top: minusHeight
|
|
19534
|
-
} }),
|
|
19535
|
-
((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && !waterFallData && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
|
|
19536
|
-
((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
|
|
19537
|
-
!waterFallData && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
|
|
19538
|
-
var _a, _b;
|
|
19539
|
-
const item = visList === null || visList === void 0 ? void 0 : visList[activeIndex];
|
|
19540
|
-
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19541
|
-
eventInfo: {
|
|
19542
|
-
eventSubject: 'backMultiPostClick',
|
|
19543
|
-
eventDescription: 'backMultiPostClick',
|
|
19544
|
-
traceInfo: ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || ''
|
|
19550
|
+
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|
|
19551
|
+
(data === null || data === void 0 ? void 0 : data.length) < 1 && loading ? (React.createElement("div", { style: { height, width: containerWidth, display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
19552
|
+
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { style: Object.assign({}, ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset) && { textUnderlineOffset: `${globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.textUnderlineOffset}px` })) },
|
|
19553
|
+
waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff', top: `${minusHeight}px` }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
|
|
19554
|
+
const isEq = isEqual(rtcList, cacheRtcList);
|
|
19555
|
+
if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
|
|
19556
|
+
setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
|
|
19545
19557
|
}
|
|
19546
|
-
|
|
19547
|
-
|
|
19548
|
-
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
|
|
19556
|
-
|
|
19557
|
-
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
-
|
|
19561
|
-
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
|
|
19567
|
-
|
|
19568
|
-
|
|
19569
|
-
|
|
19570
|
-
|
|
19558
|
+
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
|
|
19559
|
+
} })),
|
|
19560
|
+
renderLogo,
|
|
19561
|
+
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
|
19562
|
+
top: minusHeight
|
|
19563
|
+
} }),
|
|
19564
|
+
((_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton) === null || _f === void 0 ? void 0 : _f.enable) && !channel && !openMultiPosts && !waterFallData && (React.createElement(NavBack$1, { data: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => history === null || history === void 0 ? void 0 : history.back() })),
|
|
19565
|
+
((((_l = (_k = (_j = (_h = (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.item) === null || _j === void 0 ? void 0 : _j.props) === null || _k === void 0 ? void 0 : _k.backButton) === null || _l === void 0 ? void 0 : _l.enable) && channel) || openMultiPosts) &&
|
|
19566
|
+
!waterFallData && (React.createElement(NavBack$1, { data: (_q = (_p = (_o = (_m = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.item) === null || _p === void 0 ? void 0 : _p.props) === null || _q === void 0 ? void 0 : _q.backButton, minusHeight: minusHeight, tagHeight: tagHeight, onClick: () => {
|
|
19567
|
+
var _a, _b;
|
|
19568
|
+
const item = visList === null || visList === void 0 ? void 0 : visList[activeIndex];
|
|
19569
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19570
|
+
eventInfo: {
|
|
19571
|
+
eventSubject: 'backMultiPostClick',
|
|
19572
|
+
eventDescription: 'backMultiPostClick',
|
|
19573
|
+
traceInfo: ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || ''
|
|
19574
|
+
}
|
|
19575
|
+
});
|
|
19576
|
+
location === null || location === void 0 ? void 0 : location.reload();
|
|
19577
|
+
} })),
|
|
19578
|
+
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_r = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _r !== void 0 ? _r : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
|
|
19579
|
+
React.createElement(Swiper, { style: {
|
|
19580
|
+
marginTop: tagHeight
|
|
19581
|
+
}, ref: swiperRef, onSlideChange: () => {
|
|
19582
|
+
swiperRef.current.swiper.allowTouchMove = false;
|
|
19583
|
+
setTimeout(() => {
|
|
19584
|
+
swiperRef.current.swiper.allowTouchMove = true;
|
|
19585
|
+
}, 500);
|
|
19586
|
+
}, onActiveIndexChange: (swiper) => {
|
|
19587
|
+
setActiveIndex(swiper.activeIndex);
|
|
19588
|
+
if (openHashtag)
|
|
19589
|
+
return;
|
|
19590
|
+
// 处理上滑下滑事件
|
|
19591
|
+
handleScrollEvent(swiper);
|
|
19592
|
+
if (waterFallData || isEditor || isDiyH5)
|
|
19593
|
+
return;
|
|
19594
|
+
if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
|
|
19595
|
+
if (!isLoadMore) {
|
|
19596
|
+
setIsLoadMore(true);
|
|
19597
|
+
loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
|
|
19598
|
+
var _a;
|
|
19599
|
+
setIsLoadMore(false);
|
|
19600
|
+
if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
19601
|
+
setPageNum(pageNum + 1);
|
|
19602
|
+
}
|
|
19603
|
+
});
|
|
19571
19604
|
}
|
|
19572
|
-
setIsLoadMore(true);
|
|
19573
|
-
loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(pageNum).then((res) => {
|
|
19574
|
-
var _a;
|
|
19575
|
-
setIsLoadMore(false);
|
|
19576
|
-
if (res && ((_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
19577
|
-
setPageNum(pageNum + 1);
|
|
19578
|
-
}
|
|
19579
|
-
});
|
|
19580
19605
|
}
|
|
19581
|
-
}
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19606
|
+
}, direction: 'vertical', height: height },
|
|
19607
|
+
renderView,
|
|
19608
|
+
renderLikeButton(visList[activeIndex], activeIndex, !!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
|
|
19609
|
+
renderToggleButton(!!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))),
|
|
19610
|
+
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
|
|
19611
|
+
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19612
|
+
openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
|
|
19613
|
+
(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: { position: 'fixed', bottom: 0, left: 0, right: 0, width: '100%', zIndex: 10, backgroundColor: '#000', fontSize: 0 } },
|
|
19614
|
+
React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: { textDecoration: 'underline', width: 'fit-content', border: 'none', lineHeight: '24px', fontSize: '10px', color: '#fff', padding: '0 20px' } }, "Cookie settings")))));
|
|
19589
19615
|
};
|
|
19590
19616
|
var SxpPageRender$1 = memo(SxpPageRender);
|
|
19591
19617
|
|
|
@@ -19621,7 +19647,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
|
19621
19647
|
}, []);
|
|
19622
19648
|
const PAUSE_ICON = useIconLink('/pb_static/06f28a2025c74c1cb49be6767316d827.png');
|
|
19623
19649
|
const handlePlaying = useCallback(() => {
|
|
19624
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
19650
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
19625
19651
|
setIsPauseVideo(false);
|
|
19626
19652
|
const item = data[index];
|
|
19627
19653
|
if (item && ((_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.duration)) {
|
|
@@ -19634,15 +19660,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
|
19634
19660
|
eventSubject: 'playVideo',
|
|
19635
19661
|
eventDescription: 'User played the video',
|
|
19636
19662
|
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 : '',
|
|
19637
|
-
|
|
19638
|
-
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 : '',
|
|
19663
|
+
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 : '',
|
|
19639
19664
|
playType,
|
|
19640
19665
|
startTime: videoCurrentTime,
|
|
19641
19666
|
videoDuration,
|
|
19642
|
-
contentTags: JSON.stringify((
|
|
19667
|
+
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 : []),
|
|
19643
19668
|
position: index + '',
|
|
19644
19669
|
contentFormat: 'video',
|
|
19645
|
-
traceInfo: (
|
|
19670
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
|
19646
19671
|
}
|
|
19647
19672
|
});
|
|
19648
19673
|
setIsFirstPlay(false);
|
|
@@ -19681,7 +19706,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
|
19681
19706
|
}
|
|
19682
19707
|
}, [isLoadFinish]);
|
|
19683
19708
|
const onPause = useCallback(() => {
|
|
19684
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
|
19709
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
19685
19710
|
const item = data[index];
|
|
19686
19711
|
const videoDuration = ((_b = (_a = videoRef.current) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0).toFixed(2);
|
|
19687
19712
|
const videoCurrentTime = ((_d = (_c = videoRef.current) === null || _c === void 0 ? void 0 : _c.currentTime) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
|
@@ -19692,15 +19717,14 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
|
19692
19717
|
eventSubject: 'playOverVideo',
|
|
19693
19718
|
eventDescription: 'User finished playing the video',
|
|
19694
19719
|
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 : '',
|
|
19695
|
-
|
|
19696
|
-
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 : '',
|
|
19720
|
+
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 : '',
|
|
19697
19721
|
endTime: videoCurrentTime,
|
|
19698
19722
|
videoDuration,
|
|
19699
19723
|
playDuration,
|
|
19700
|
-
contentTags: JSON.stringify((
|
|
19724
|
+
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 : []),
|
|
19701
19725
|
position: index + '',
|
|
19702
19726
|
contentFormat: 'video',
|
|
19703
|
-
traceInfo: (
|
|
19727
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo
|
|
19704
19728
|
}
|
|
19705
19729
|
});
|
|
19706
19730
|
}
|
|
@@ -19886,7 +19910,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
|
19886
19910
|
const CTA = (rec, index) => {
|
|
19887
19911
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
|
|
19888
19912
|
return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
|
19889
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
|
|
19913
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
|
|
19890
19914
|
}
|
|
19891
19915
|
return null;
|
|
19892
19916
|
};
|
|
@@ -19899,8 +19923,10 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
|
19899
19923
|
React.createElement(Nudge, { nudge: nudge }),
|
|
19900
19924
|
CTA(rec, index),
|
|
19901
19925
|
React.createElement("div", null,
|
|
19902
|
-
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: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', 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' }) })
|
|
19903
|
-
|
|
19926
|
+
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: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', 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' }) }),
|
|
19927
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
|
|
19928
|
+
React.createElement(Hashtag$1, { index: index, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })),
|
|
19929
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
|
|
19904
19930
|
}
|
|
19905
19931
|
return null;
|
|
19906
19932
|
};
|
|
@@ -20290,21 +20316,10 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
|
20290
20316
|
return null;
|
|
20291
20317
|
}, [globalConfig]);
|
|
20292
20318
|
const renderBottom = (rec, index) => {
|
|
20293
|
-
var _a, _b, _c, _d
|
|
20319
|
+
var _a, _b, _c, _d;
|
|
20294
20320
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
|
20295
|
-
let cta = null;
|
|
20296
|
-
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) {
|
|
20297
|
-
cta = '多商品CTA';
|
|
20298
|
-
}
|
|
20299
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
|
20300
|
-
cta = '商品CTA';
|
|
20301
|
-
}
|
|
20302
|
-
else {
|
|
20303
|
-
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;
|
|
20304
|
-
}
|
|
20305
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
20306
20321
|
return (React.createElement(React.Fragment, null,
|
|
20307
|
-
((
|
|
20322
|
+
((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
|
|
20308
20323
|
background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
|
|
20309
20324
|
height: '130px',
|
|
20310
20325
|
position: 'absolute',
|
|
@@ -20315,7 +20330,7 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
|
20315
20330
|
pointerEvents
|
|
20316
20331
|
} })),
|
|
20317
20332
|
React.createElement("div", { style: {
|
|
20318
|
-
marginBottom: `${(
|
|
20333
|
+
marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
|
|
20319
20334
|
zIndex: 999,
|
|
20320
20335
|
position: 'absolute',
|
|
20321
20336
|
bottom: 0,
|
|
@@ -20324,15 +20339,15 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
|
20324
20339
|
paddingTop: '20px'
|
|
20325
20340
|
} },
|
|
20326
20341
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
|
|
20327
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex
|
|
20342
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
|
|
20328
20343
|
React.createElement("div", null,
|
|
20329
20344
|
React.createElement(ExpandableText$1
|
|
20330
20345
|
// className='clc-sxp-bottom-text'
|
|
20331
20346
|
, {
|
|
20332
20347
|
// className='clc-sxp-bottom-text'
|
|
20333
|
-
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
|
20334
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex
|
|
20335
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex
|
|
20348
|
+
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', 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', padding: '0 20px', fontSize: '12px' }) }),
|
|
20349
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
|
|
20350
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
|
20336
20351
|
}
|
|
20337
20352
|
return null;
|
|
20338
20353
|
};
|