pb-sxp-ui 1.7.4 → 1.7.6
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 +47 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +47 -68
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +47 -68
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/Modal/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/Modal/index.js +2 -2
- package/es/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -1
- package/es/core/components/SxpPageRender/PictureGroup/index.js +0 -3
- package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/es/core/components/SxpPageRender/RenderCard.js +16 -39
- package/es/core/components/SxpPageRender/VideoWidget/index.js +8 -9
- package/es/core/components/SxpPageRender/index.js +19 -9
- package/es/core/utils/tool.d.ts +1 -2
- package/es/core/utils/tool.js +1 -11
- package/lib/core/components/SxpPageRender/Modal/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/Modal/index.js +2 -2
- package/lib/core/components/SxpPageRender/PictureGroup/index.d.ts +0 -1
- package/lib/core/components/SxpPageRender/PictureGroup/index.js +0 -3
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/lib/core/components/SxpPageRender/RenderCard.js +16 -39
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +8 -9
- package/lib/core/components/SxpPageRender/index.js +19 -9
- package/lib/core/utils/tool.d.ts +1 -2
- package/lib/core/utils/tool.js +1 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -298,16 +298,6 @@ function getCookie(val) {
|
|
298
298
|
});
|
299
299
|
return value !== null && value !== void 0 ? value : '';
|
300
300
|
}
|
301
|
-
const getResFileSizeFromSrc = (imageSrc) => {
|
302
|
-
if (!imageSrc)
|
303
|
-
return '';
|
304
|
-
return fetch(imageSrc)
|
305
|
-
.then((response) => response.blob())
|
306
|
-
.then((blob) => {
|
307
|
-
const fileSizeInMB = blob.size / (1024 * 1024); // 将文件大小转换为 MB
|
308
|
-
return fileSizeInMB.toFixed(2) + '';
|
309
|
-
});
|
310
|
-
};
|
311
301
|
|
312
302
|
function unzip(b64Data) {
|
313
303
|
const strData = atob(b64Data);
|
@@ -8967,12 +8957,12 @@ SwiperSlide.displayName = 'SwiperSlide';
|
|
8967
8957
|
* @Author: binruan@chatlabs.com
|
8968
8958
|
* @Date: 2023-11-02 18:34:34
|
8969
8959
|
* @LastEditors: binruan@chatlabs.com
|
8970
|
-
* @LastEditTime: 2024-10-
|
8960
|
+
* @LastEditTime: 2024-10-30 19:22:59
|
8971
8961
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8972
8962
|
*
|
8973
8963
|
*/
|
8974
8964
|
const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
8975
|
-
const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
|
8965
|
+
const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false, openState }) => {
|
8976
8966
|
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;
|
8977
8967
|
const touchRef = useRef(null);
|
8978
8968
|
const fTouchRef = useRef(null);
|
@@ -9024,7 +9014,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
|
|
9024
9014
|
}, [isOpen, popup]);
|
9025
9015
|
const child = useCallback(() => {
|
9026
9016
|
return children;
|
9027
|
-
}, [_popup]);
|
9017
|
+
}, [_popup, openState]);
|
9028
9018
|
if (!modalEleRef.current)
|
9029
9019
|
return null;
|
9030
9020
|
const handleClose = debounce(() => {
|
@@ -15664,6 +15654,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15664
15654
|
const videoEleRef = useRef(null);
|
15665
15655
|
const hlsRef = useRef(null);
|
15666
15656
|
const initTimeRef = useRef();
|
15657
|
+
const loadedTimeRef = useRef();
|
15667
15658
|
const blur = useMemo(() => {
|
15668
15659
|
return (videoPostConfig === null || videoPostConfig === void 0 ? void 0 : videoPostConfig.mode) === '2';
|
15669
15660
|
}, [videoPostConfig]);
|
@@ -15710,7 +15701,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15710
15701
|
setIsLoadFinish(true);
|
15711
15702
|
}, []);
|
15712
15703
|
const handleStartPlay = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
15713
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o
|
15704
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
15714
15705
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current))
|
15715
15706
|
return;
|
15716
15707
|
setIsPauseVideo(false);
|
@@ -15720,22 +15711,20 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15720
15711
|
const videoDuration = ((_d = (_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.duration) !== null && _d !== void 0 ? _d : 0).toFixed(2);
|
15721
15712
|
const videoCurrentTime = ((_f = (_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.currentTime) !== null && _f !== void 0 ? _f : 0).toFixed(2);
|
15722
15713
|
const playType = isFirstPlay ? '0' : '1';
|
15723
|
-
const contentSize = yield getResFileSizeFromSrc((_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.url);
|
15724
15714
|
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
15725
15715
|
eventInfo: {
|
15726
15716
|
eventSubject: 'playVideo',
|
15727
15717
|
eventDescription: 'User played the video',
|
15728
|
-
contentId: (
|
15729
|
-
contentName: (
|
15718
|
+
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 : '',
|
15719
|
+
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 : '',
|
15730
15720
|
playType,
|
15731
15721
|
startTime: videoCurrentTime,
|
15732
15722
|
videoDuration,
|
15733
|
-
contentTags: JSON.stringify((
|
15723
|
+
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 : []),
|
15734
15724
|
position: index + '',
|
15735
15725
|
contentFormat: 'video',
|
15736
|
-
traceInfo: (
|
15737
|
-
|
15738
|
-
loadTime: (new Date() - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current)).toFixed(2) + ''
|
15726
|
+
traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo,
|
15727
|
+
loadTime: ((loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current)).toFixed(2) + ''
|
15739
15728
|
}
|
15740
15729
|
});
|
15741
15730
|
setIsFirstPlay(false);
|
@@ -15766,6 +15755,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
15766
15755
|
const handleLoadedmetadata = useCallback(() => {
|
15767
15756
|
if (!videoRef.current)
|
15768
15757
|
return;
|
15758
|
+
loadedTimeRef.current = new Date();
|
15769
15759
|
handleStartPlay();
|
15770
15760
|
handLoadeddata();
|
15771
15761
|
}, [videoRef.current, handLoadeddata, handleStartPlay]);
|
@@ -16120,9 +16110,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
|
|
16120
16110
|
}, [rec, isActive, onViewImageEndEvent, openHashtag, index, onViewImageStartEvent, isLoad, imgInfo]);
|
16121
16111
|
const showFirstImageFn = useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
|
16122
16112
|
if (!isLoad) {
|
16123
|
-
const contentSize = yield getResFileSizeFromSrc(e.src);
|
16124
16113
|
setImgInfo({
|
16125
|
-
contentSize,
|
16126
16114
|
loadTime: (new Date() - initTime).toFixed(2) + ''
|
16127
16115
|
});
|
16128
16116
|
setIsLoad(true);
|
@@ -16279,61 +16267,42 @@ function withBindDataSource(Component) {
|
|
16279
16267
|
* @Author: binruan@chatlabs.com
|
16280
16268
|
* @Date: 2023-12-26 16:11:34
|
16281
16269
|
* @LastEditors: binruan@chatlabs.com
|
16282
|
-
* @LastEditTime: 2024-10-
|
16270
|
+
* @LastEditTime: 2024-10-31 10:30:55
|
16283
16271
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
16284
16272
|
*
|
16285
16273
|
*/
|
16286
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive }) => {
|
16287
|
-
var _a, _b, _c, _d, _e;
|
16274
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value }) => {
|
16288
16275
|
const { schema } = useEditor();
|
16289
16276
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
16290
16277
|
return null;
|
16291
|
-
let cta = null;
|
16292
|
-
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) {
|
16293
|
-
cta = '多商品CTA';
|
16294
|
-
}
|
16295
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
16296
|
-
cta = '商品CTA';
|
16297
|
-
}
|
16298
|
-
else {
|
16299
|
-
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;
|
16300
|
-
}
|
16301
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
16302
16278
|
const renderComp = useMemo(() => {
|
16303
|
-
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
|
16304
|
-
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
16305
|
-
return null;
|
16306
|
-
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) ;
|
16307
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) ;
|
16308
|
-
else {
|
16309
|
-
(_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;
|
16310
|
-
}
|
16279
|
+
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;
|
16311
16280
|
//如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
16312
|
-
if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((
|
16281
|
+
if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type)))
|
16313
16282
|
return;
|
16314
16283
|
//默认不渲染category为cta类型的组件,该类型的组件只用于某一处
|
16315
|
-
if (!includesCtaType && ((
|
16284
|
+
if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
|
16316
16285
|
return;
|
16317
|
-
if ((((
|
16318
|
-
(((
|
16319
|
-
(((
|
16320
|
-
(((
|
16321
|
-
(((
|
16322
|
-
(((
|
16286
|
+
if ((((_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.type) === 'CommodityDiro' && !((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindProduct)) ||
|
16287
|
+
(((_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.type) === 'Commodity' && !((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct)) ||
|
16288
|
+
(((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type) === 'CommodityDiroNew' && !((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.bindProduct)) ||
|
16289
|
+
(((_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.type) === 'MultiCommodity' && !((_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.bindProducts) === null || _l === void 0 ? void 0 : _l.length)) ||
|
16290
|
+
(((_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.type) === 'MultiCommodityDiro' && !((_p = (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.bindProducts) === null || _p === void 0 ? void 0 : _p.length)) ||
|
16291
|
+
(((_q = value === null || value === void 0 ? void 0 : value.item) === null || _q === void 0 ? void 0 : _q.type) === 'MultiCommodityDiroNew' && !((_s = (_r = rec === null || rec === void 0 ? void 0 : rec.video) === null || _r === void 0 ? void 0 : _r.bindProducts) === null || _s === void 0 ? void 0 : _s.length))) {
|
16323
16292
|
//
|
16324
16293
|
return null;
|
16325
16294
|
}
|
16326
16295
|
if (value && resolver) {
|
16327
|
-
const t = resolver[(
|
16296
|
+
const t = resolver[(_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
|
16328
16297
|
const Component = withBindDataSource(t);
|
16329
|
-
const defaulSetting = (
|
16330
|
-
const isExternalLink = ((
|
16331
|
-
let style = (
|
16298
|
+
const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
|
16299
|
+
const isExternalLink = ((_x = (_w = (_v = value === null || value === void 0 ? void 0 : value.item) === null || _v === void 0 ? void 0 : _v.event) === null || _w === void 0 ? void 0 : _w.onClick) === null || _x === void 0 ? void 0 : _x.linkType) === 'externalLink';
|
16300
|
+
let style = cloneDeep((_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style);
|
16332
16301
|
if (style.hasOwnProperty('backdropFilter')) {
|
16333
16302
|
let sbf = style['backdropFilter'];
|
16334
16303
|
style['backdropFilter'] = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
16335
16304
|
}
|
16336
|
-
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (
|
16305
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
|
16337
16306
|
}
|
16338
16307
|
else {
|
16339
16308
|
return null;
|
@@ -16426,7 +16395,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
16426
16395
|
* @Author: binruan@chatlabs.com
|
16427
16396
|
* @Date: 2024-01-15 19:03:09
|
16428
16397
|
* @LastEditors: binruan@chatlabs.com
|
16429
|
-
* @LastEditTime: 2024-10-
|
16398
|
+
* @LastEditTime: 2024-10-31 10:23:31
|
16430
16399
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16431
16400
|
*
|
16432
16401
|
*/
|
@@ -16665,19 +16634,30 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16665
16634
|
};
|
16666
16635
|
}, [isShowMore]);
|
16667
16636
|
const renderBottom = useCallback((rec, index) => {
|
16668
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
16637
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
16669
16638
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
16639
|
+
let cta = null;
|
16640
|
+
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) {
|
16641
|
+
cta = '多商品CTA';
|
16642
|
+
}
|
16643
|
+
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
16644
|
+
cta = '商品CTA';
|
16645
|
+
}
|
16646
|
+
else {
|
16647
|
+
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;
|
16648
|
+
}
|
16649
|
+
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
16670
16650
|
return (React.createElement(React.Fragment, null,
|
16671
|
-
((
|
16672
|
-
React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(
|
16651
|
+
((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
|
16652
|
+
React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px` } },
|
16673
16653
|
React.createElement(Nudge, { nudge: nudge }),
|
16674
16654
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
16675
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
16655
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
16676
16656
|
React.createElement("div", null,
|
16677
|
-
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: (
|
16678
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
16679
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
16680
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
16657
|
+
React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_j = (_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
|
16658
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
16659
|
+
React.createElement(Hashtag$1, { index: activeIndex, tags: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.hashTags) !== null && _l !== void 0 ? _l : [], itemId: (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.itemId, itemType: ((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
|
16660
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
16681
16661
|
}
|
16682
16662
|
return null;
|
16683
16663
|
}, [
|
@@ -16849,7 +16829,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16849
16829
|
position: activeIndex + '',
|
16850
16830
|
contentFormat: 'image',
|
16851
16831
|
traceInfo: item === null || item === void 0 ? void 0 : item.video.traceInfo,
|
16852
|
-
contentSize: imgInfo === null || imgInfo === void 0 ? void 0 : imgInfo.contentSize,
|
16853
16832
|
loadTime: imgInfo === null || imgInfo === void 0 ? void 0 : imgInfo.loadTime
|
16854
16833
|
}
|
16855
16834
|
});
|