pb-sxp-ui 1.17.0 → 1.17.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 +173 -161
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +7 -15
- package/dist/index.js +173 -161
- 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 +173 -161
- 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/index.js +3 -5
- package/es/core/components/DiyStoryPreview/index.js +18 -7
- package/es/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/es/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/es/core/components/SxpPageRender/RenderCard.js +2 -14
- package/es/core/components/SxpPageRender/index.js +4 -4
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +3 -2
- package/es/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/es/materials/sxp/popup/CommodityList/index.js +5 -4
- 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 +2 -1
- package/es/materials/sxp/template/Commodity/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/Link/material.js +4 -2
- package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/es/materials/sxp/template/NineCommodity/material.js +3 -2
- 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/index.js +3 -5
- package/lib/core/components/DiyStoryPreview/index.js +18 -7
- package/lib/core/components/SxpPageRender/ExpandableText.js +2 -2
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +1 -0
- package/lib/core/components/SxpPageRender/RenderCard.js +2 -14
- package/lib/core/components/SxpPageRender/index.js +4 -4
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityDetail/material.js +2 -1
- package/lib/materials/sxp/popup/CommodityList/index.js +5 -4
- 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 +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/Link/material.js +4 -2
- package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +3 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +4 -2
- package/lib/materials/sxp/template/NineCommodity/material.js +3 -2
- 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.cjs
CHANGED
@@ -2639,35 +2639,6 @@ var settingRender$e = [
|
|
2639
2639
|
}
|
2640
2640
|
];
|
2641
2641
|
|
2642
|
-
/*
|
2643
|
-
* @Author: binruan@chatlabs.com
|
2644
|
-
* @Date: 2024-07-09 14:35:10
|
2645
|
-
* @LastEditors: binruan@chatlabs.com
|
2646
|
-
* @LastEditTime: 2024-07-12 17:53:02
|
2647
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
2648
|
-
*
|
2649
|
-
*/
|
2650
|
-
/*
|
2651
|
-
* @Author: binruan@chatlabs.com
|
2652
|
-
* @Date: 2024-07-05 14:08:41
|
2653
|
-
* @LastEditors: binruan@chatlabs.com
|
2654
|
-
* @LastEditTime: 2024-07-09 14:34:49
|
2655
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
2656
|
-
*
|
2657
|
-
*/
|
2658
|
-
var interactionRender$g = [
|
2659
|
-
{
|
2660
|
-
title: '滑动事件',
|
2661
|
-
child: [
|
2662
|
-
{
|
2663
|
-
type: 'Switch',
|
2664
|
-
label: '滑动铺满全屏',
|
2665
|
-
name: ['isScrollFullScreen']
|
2666
|
-
}
|
2667
|
-
]
|
2668
|
-
}
|
2669
|
-
];
|
2670
|
-
|
2671
2642
|
/**
|
2672
2643
|
* SSR Window 4.0.2
|
2673
2644
|
* Better handling for window object in SSR environment
|
@@ -10246,7 +10217,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
10246
10217
|
return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css.css({
|
10247
10218
|
width: '50px',
|
10248
10219
|
height: '50px',
|
10249
|
-
|
10220
|
+
marginRight: '10px'
|
10250
10221
|
}), onClick: () => {
|
10251
10222
|
handleClick(item, index);
|
10252
10223
|
}, key: index },
|
@@ -10500,7 +10471,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10500
10471
|
display: '-webkit-box',
|
10501
10472
|
WebkitBoxOrient: 'vertical'
|
10502
10473
|
})), { wordBreak: 'break-word', textRendering: 'geometricPrecision', fontKerning: 'none', textSizeAdjust: '100%', boxSizing: 'border-box', contain: 'content' }), dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10503
|
-
React.createElement("div", { ref: realRef, style: {
|
10474
|
+
isPost && (React.createElement("div", { ref: realRef, style: {
|
10504
10475
|
wordBreak: 'break-word',
|
10505
10476
|
textRendering: 'geometricPrecision',
|
10506
10477
|
fontKerning: 'none',
|
@@ -10512,7 +10483,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10512
10483
|
clipPath: 'inset(100%)',
|
10513
10484
|
transform: 'translateX(-9999px)'
|
10514
10485
|
// position: 'absolute'
|
10515
|
-
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10486
|
+
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } })),
|
10516
10487
|
text && isPost && isShow && (React.createElement("button", { "aria-label": isShowMore ? unfoldText || 'show less' : foldText || 'show more', style: { textDecoration: 'underline', cursor: 'pointer' }, onClick: onClick !== null && onClick !== void 0 ? onClick : handleClick, dangerouslySetInnerHTML: {
|
10517
10488
|
__html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
10518
10489
|
} }))));
|
@@ -10845,6 +10816,35 @@ const CommodityDetail$1 = (_a) => {
|
|
10845
10816
|
};
|
10846
10817
|
var CommodityDetailComponent = React.memo(CommodityDetail$1);
|
10847
10818
|
|
10819
|
+
/*
|
10820
|
+
* @Author: binruan@chatlabs.com
|
10821
|
+
* @Date: 2024-07-09 14:35:10
|
10822
|
+
* @LastEditors: binruan@chatlabs.com
|
10823
|
+
* @LastEditTime: 2024-07-12 17:53:02
|
10824
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
10825
|
+
*
|
10826
|
+
*/
|
10827
|
+
/*
|
10828
|
+
* @Author: binruan@chatlabs.com
|
10829
|
+
* @Date: 2024-07-05 14:08:41
|
10830
|
+
* @LastEditors: binruan@chatlabs.com
|
10831
|
+
* @LastEditTime: 2024-07-09 14:34:49
|
10832
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
10833
|
+
*
|
10834
|
+
*/
|
10835
|
+
var interactionRender$g = [
|
10836
|
+
{
|
10837
|
+
title: '滑动事件',
|
10838
|
+
child: [
|
10839
|
+
{
|
10840
|
+
type: 'Switch',
|
10841
|
+
label: '滑动铺满全屏',
|
10842
|
+
name: ['isScrollFullScreen']
|
10843
|
+
}
|
10844
|
+
]
|
10845
|
+
}
|
10846
|
+
];
|
10847
|
+
|
10848
10848
|
/*
|
10849
10849
|
* @Author: binruan@chatlabs.com
|
10850
10850
|
* @Date: 2023-07-28 18:29:57
|
@@ -10891,6 +10891,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
|
|
10891
10891
|
taxInfo: {
|
10892
10892
|
color: '#000',
|
10893
10893
|
fontSize: 13,
|
10894
|
+
textAlign: 'left',
|
10894
10895
|
marginBottom: '10px'
|
10895
10896
|
}
|
10896
10897
|
},
|
@@ -11982,7 +11983,7 @@ var settingRender$b = [
|
|
11982
11983
|
type: 'Number',
|
11983
11984
|
label: '与右侧边距',
|
11984
11985
|
addonAfter: 'px',
|
11985
|
-
name: ['props', 'commodityPicture', '
|
11986
|
+
name: ['props', 'commodityPicture', 'marginRight']
|
11986
11987
|
},
|
11987
11988
|
{
|
11988
11989
|
label: '居中垂直偏移',
|
@@ -12268,11 +12269,12 @@ const CommodityList$1 = (_a) => {
|
|
12268
12269
|
React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css.css({
|
12269
12270
|
display: 'flex',
|
12270
12271
|
alignItems: 'normal',
|
12271
|
-
width: '100%'
|
12272
|
+
width: '100%',
|
12273
|
+
textAlign: 'left'
|
12272
12274
|
}) }, props),
|
12273
12275
|
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 }),
|
12274
12276
|
React.createElement("div", { style: {
|
12275
|
-
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.
|
12277
|
+
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.marginRight) !== null && _f !== void 0 ? _f : 0}px)`,
|
12276
12278
|
display: 'flex',
|
12277
12279
|
flexDirection: 'column',
|
12278
12280
|
justifyContent: 'space-between'
|
@@ -12353,7 +12355,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
12353
12355
|
commodityPicture: {
|
12354
12356
|
width: 100,
|
12355
12357
|
height: 100,
|
12356
|
-
|
12358
|
+
marginRight: 10
|
12357
12359
|
},
|
12358
12360
|
commodityStyles: {
|
12359
12361
|
price: {
|
@@ -12599,7 +12601,7 @@ var settingRender$8 = [
|
|
12599
12601
|
type: 'Number',
|
12600
12602
|
label: '与右侧边距',
|
12601
12603
|
addonAfter: 'px',
|
12602
|
-
name: ['props', 'ctaTempStyles', 'img', '
|
12604
|
+
name: ['props', 'ctaTempStyles', 'img', 'marginRight']
|
12603
12605
|
},
|
12604
12606
|
{
|
12605
12607
|
label: '居中垂直偏移',
|
@@ -12860,11 +12862,12 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
12860
12862
|
borderRadius: 3,
|
12861
12863
|
width: 60,
|
12862
12864
|
height: 60,
|
12863
|
-
|
12865
|
+
marginRight: 8
|
12864
12866
|
},
|
12865
12867
|
title: {
|
12866
12868
|
fontSize: 12,
|
12867
|
-
color: '#fff'
|
12869
|
+
color: '#fff',
|
12870
|
+
textAlign: 'left'
|
12868
12871
|
},
|
12869
12872
|
ctaTitle: {
|
12870
12873
|
fontSize: 10,
|
@@ -12942,11 +12945,12 @@ const Appoint = createMaterial(AppointComponent, {
|
|
12942
12945
|
borderRadius: 3,
|
12943
12946
|
width: 30,
|
12944
12947
|
height: 30,
|
12945
|
-
|
12948
|
+
marginRight: 8
|
12946
12949
|
},
|
12947
12950
|
ctaTitle: {
|
12948
12951
|
fontSize: 12,
|
12949
12952
|
color: '#fff',
|
12953
|
+
textAlign: 'left',
|
12950
12954
|
width: 130,
|
12951
12955
|
height: 20
|
12952
12956
|
}
|
@@ -13082,27 +13086,6 @@ var linkSettingRender = [
|
|
13082
13086
|
}
|
13083
13087
|
];
|
13084
13088
|
|
13085
|
-
/*
|
13086
|
-
* @Author: binruan@chatlabs.com
|
13087
|
-
* @Date: 2024-08-09 16:59:38
|
13088
|
-
* @LastEditors: binruan@chatlabs.com
|
13089
|
-
* @LastEditTime: 2024-09-09 13:59:50
|
13090
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13091
|
-
*
|
13092
|
-
*/
|
13093
|
-
var interactionRender$a = [
|
13094
|
-
{
|
13095
|
-
title: '点击事件',
|
13096
|
-
child: [
|
13097
|
-
{
|
13098
|
-
type: 'link',
|
13099
|
-
name: 'onClick',
|
13100
|
-
hiddenUrl: true
|
13101
|
-
}
|
13102
|
-
]
|
13103
|
-
}
|
13104
|
-
];
|
13105
|
-
|
13106
13089
|
var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
13107
13090
|
|
13108
13091
|
const Link$1 = (_a) => {
|
@@ -13130,6 +13113,27 @@ const Link$1 = (_a) => {
|
|
13130
13113
|
};
|
13131
13114
|
var LinkComponent = React.memo(Link$1);
|
13132
13115
|
|
13116
|
+
/*
|
13117
|
+
* @Author: binruan@chatlabs.com
|
13118
|
+
* @Date: 2024-08-09 16:59:38
|
13119
|
+
* @LastEditors: binruan@chatlabs.com
|
13120
|
+
* @LastEditTime: 2024-09-09 13:59:50
|
13121
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13122
|
+
*
|
13123
|
+
*/
|
13124
|
+
var interactionRender$a = [
|
13125
|
+
{
|
13126
|
+
title: '点击事件',
|
13127
|
+
child: [
|
13128
|
+
{
|
13129
|
+
type: 'link',
|
13130
|
+
name: 'onClick',
|
13131
|
+
hiddenUrl: true
|
13132
|
+
}
|
13133
|
+
]
|
13134
|
+
}
|
13135
|
+
];
|
13136
|
+
|
13133
13137
|
var _a;
|
13134
13138
|
const Link = createMaterial(LinkComponent, {
|
13135
13139
|
displayName: '普通CTA',
|
@@ -13148,17 +13152,19 @@ const Link = createMaterial(LinkComponent, {
|
|
13148
13152
|
borderRadius: 3,
|
13149
13153
|
width: 60,
|
13150
13154
|
height: 60,
|
13151
|
-
|
13155
|
+
marginRight: 8
|
13152
13156
|
},
|
13153
13157
|
ctaTitle: {
|
13154
13158
|
fontSize: 12,
|
13155
13159
|
color: '#fff',
|
13160
|
+
textAlign: 'left',
|
13156
13161
|
width: 130,
|
13157
13162
|
height: 20
|
13158
13163
|
}
|
13159
13164
|
},
|
13160
13165
|
customTitle: {
|
13161
13166
|
style: {
|
13167
|
+
textAlign: 'left',
|
13162
13168
|
textDecoration: 'underline',
|
13163
13169
|
fontWeight: 'bold',
|
13164
13170
|
width: 130,
|
@@ -13248,11 +13254,12 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
13248
13254
|
borderRadius: 3,
|
13249
13255
|
width: 60,
|
13250
13256
|
height: 60,
|
13251
|
-
|
13257
|
+
marginRight: 8
|
13252
13258
|
},
|
13253
13259
|
title: {
|
13254
13260
|
fontSize: 12,
|
13255
|
-
color: '#000'
|
13261
|
+
color: '#000',
|
13262
|
+
textAlign: 'left'
|
13256
13263
|
},
|
13257
13264
|
ctaTitle: {
|
13258
13265
|
fontSize: 10,
|
@@ -13343,17 +13350,19 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
13343
13350
|
borderRadius: 8,
|
13344
13351
|
width: 78,
|
13345
13352
|
height: 78,
|
13346
|
-
|
13353
|
+
marginRight: 16
|
13347
13354
|
},
|
13348
13355
|
title: {
|
13349
13356
|
fontSize: 13,
|
13350
|
-
color: '#000'
|
13357
|
+
color: '#000',
|
13358
|
+
textAlign: 'left'
|
13351
13359
|
},
|
13352
13360
|
ctaTitle: {
|
13353
13361
|
textDecoration: 'underline',
|
13354
13362
|
fontSize: 14,
|
13355
13363
|
fontWeight: 'bold',
|
13356
13364
|
color: '#000',
|
13365
|
+
textAlign: 'left',
|
13357
13366
|
width: 150,
|
13358
13367
|
height: 20
|
13359
13368
|
}
|
@@ -13395,7 +13404,7 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
13395
13404
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13396
13405
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13397
13406
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13398
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13407
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13399
13408
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13400
13409
|
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 }),
|
13401
13410
|
React.createElement("div", { className: css.css({
|
@@ -13441,11 +13450,12 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
13441
13450
|
borderRadius: 3,
|
13442
13451
|
width: 60,
|
13443
13452
|
height: 60,
|
13444
|
-
|
13453
|
+
marginRight: 8
|
13445
13454
|
},
|
13446
13455
|
title: {
|
13447
13456
|
fontSize: 12,
|
13448
|
-
color: '#000'
|
13457
|
+
color: '#000',
|
13458
|
+
textAlign: 'left'
|
13449
13459
|
},
|
13450
13460
|
ctaTitle: {
|
13451
13461
|
fontSize: 10,
|
@@ -13493,7 +13503,7 @@ const MultiCommodity$1 = (_a) => {
|
|
13493
13503
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13494
13504
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13495
13505
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13496
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13506
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13497
13507
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13498
13508
|
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 }),
|
13499
13509
|
React.createElement("div", { className: css.css({
|
@@ -13539,11 +13549,12 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
13539
13549
|
borderRadius: 3,
|
13540
13550
|
width: 60,
|
13541
13551
|
height: 60,
|
13542
|
-
|
13552
|
+
marginRight: 8
|
13543
13553
|
},
|
13544
13554
|
title: {
|
13545
13555
|
fontSize: 12,
|
13546
13556
|
color: '#fff',
|
13557
|
+
textAlign: 'left'
|
13547
13558
|
},
|
13548
13559
|
ctaTitle: {
|
13549
13560
|
fontSize: 10,
|
@@ -13599,7 +13610,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
13599
13610
|
const [products] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
13600
13611
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13601
13612
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13602
|
-
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0,
|
13613
|
+
return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13603
13614
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13604
13615
|
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 }),
|
13605
13616
|
React.createElement("div", { className: css.css({
|
@@ -13646,17 +13657,19 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
13646
13657
|
borderRadius: 8,
|
13647
13658
|
width: 78,
|
13648
13659
|
height: 78,
|
13649
|
-
|
13660
|
+
marginRight: 16
|
13650
13661
|
},
|
13651
13662
|
title: {
|
13652
13663
|
fontSize: 12,
|
13653
|
-
color: '#000'
|
13664
|
+
color: '#000',
|
13665
|
+
textAlign: 'left'
|
13654
13666
|
},
|
13655
13667
|
ctaTitle: {
|
13656
13668
|
textDecoration: 'underline',
|
13657
13669
|
fontSize: 12,
|
13658
13670
|
fontWeight: 'bold',
|
13659
13671
|
color: '#000',
|
13672
|
+
textAlign: 'left',
|
13660
13673
|
width: 150,
|
13661
13674
|
height: 20
|
13662
13675
|
}
|
@@ -13751,11 +13764,12 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
|
|
13751
13764
|
borderRadius: 3,
|
13752
13765
|
width: 60,
|
13753
13766
|
height: 60,
|
13754
|
-
|
13767
|
+
marginRight: 8
|
13755
13768
|
},
|
13756
13769
|
title: {
|
13757
13770
|
fontSize: 12,
|
13758
|
-
color: '#fff'
|
13771
|
+
color: '#fff',
|
13772
|
+
textAlign: 'left'
|
13759
13773
|
},
|
13760
13774
|
ctaTitle: {
|
13761
13775
|
fontSize: 10,
|
@@ -16675,60 +16689,6 @@ var settingRender$4 = [
|
|
16675
16689
|
}
|
16676
16690
|
];
|
16677
16691
|
|
16678
|
-
/*
|
16679
|
-
* @Author: binruan@chatlabs.com
|
16680
|
-
* @Date: 2024-07-24 14:58:40
|
16681
|
-
* @LastEditors: binruan@chatlabs.com
|
16682
|
-
* @LastEditTime: 2024-09-09 13:54:35
|
16683
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16684
|
-
*
|
16685
|
-
*/
|
16686
|
-
var interactionRender$2 = [
|
16687
|
-
{
|
16688
|
-
title: '点击事件',
|
16689
|
-
child: [
|
16690
|
-
{
|
16691
|
-
type: 'link',
|
16692
|
-
name: 'onClick',
|
16693
|
-
hiddenUrl: true
|
16694
|
-
}
|
16695
|
-
]
|
16696
|
-
},
|
16697
|
-
{
|
16698
|
-
title: '动画效果',
|
16699
|
-
child: [
|
16700
|
-
{
|
16701
|
-
type: 'Select',
|
16702
|
-
name: ['animation', 'name'],
|
16703
|
-
label: '动画',
|
16704
|
-
options: [
|
16705
|
-
{
|
16706
|
-
label: '默认',
|
16707
|
-
value: 1
|
16708
|
-
}
|
16709
|
-
],
|
16710
|
-
fieldProps: {
|
16711
|
-
style: {
|
16712
|
-
width: '100%'
|
16713
|
-
}
|
16714
|
-
}
|
16715
|
-
},
|
16716
|
-
{
|
16717
|
-
type: 'Number',
|
16718
|
-
label: '动画启动时间',
|
16719
|
-
name: ['animation', 'delay'],
|
16720
|
-
addonAfter: 'ms'
|
16721
|
-
},
|
16722
|
-
{
|
16723
|
-
type: 'Number',
|
16724
|
-
label: '动画持续时间',
|
16725
|
-
name: ['animation', 'duration'],
|
16726
|
-
addonAfter: 'ms'
|
16727
|
-
}
|
16728
|
-
]
|
16729
|
-
}
|
16730
|
-
];
|
16731
|
-
|
16732
16692
|
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"};
|
16733
16693
|
|
16734
16694
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
@@ -16801,6 +16761,60 @@ const AniLinkPopup$1 = (_a) => {
|
|
16801
16761
|
};
|
16802
16762
|
var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
|
16803
16763
|
|
16764
|
+
/*
|
16765
|
+
* @Author: binruan@chatlabs.com
|
16766
|
+
* @Date: 2024-07-24 14:58:40
|
16767
|
+
* @LastEditors: binruan@chatlabs.com
|
16768
|
+
* @LastEditTime: 2024-09-09 13:54:35
|
16769
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16770
|
+
*
|
16771
|
+
*/
|
16772
|
+
var interactionRender$2 = [
|
16773
|
+
{
|
16774
|
+
title: '点击事件',
|
16775
|
+
child: [
|
16776
|
+
{
|
16777
|
+
type: 'link',
|
16778
|
+
name: 'onClick',
|
16779
|
+
hiddenUrl: true
|
16780
|
+
}
|
16781
|
+
]
|
16782
|
+
},
|
16783
|
+
{
|
16784
|
+
title: '动画效果',
|
16785
|
+
child: [
|
16786
|
+
{
|
16787
|
+
type: 'Select',
|
16788
|
+
name: ['animation', 'name'],
|
16789
|
+
label: '动画',
|
16790
|
+
options: [
|
16791
|
+
{
|
16792
|
+
label: '默认',
|
16793
|
+
value: 1
|
16794
|
+
}
|
16795
|
+
],
|
16796
|
+
fieldProps: {
|
16797
|
+
style: {
|
16798
|
+
width: '100%'
|
16799
|
+
}
|
16800
|
+
}
|
16801
|
+
},
|
16802
|
+
{
|
16803
|
+
type: 'Number',
|
16804
|
+
label: '动画启动时间',
|
16805
|
+
name: ['animation', 'delay'],
|
16806
|
+
addonAfter: 'ms'
|
16807
|
+
},
|
16808
|
+
{
|
16809
|
+
type: 'Number',
|
16810
|
+
label: '动画持续时间',
|
16811
|
+
name: ['animation', 'duration'],
|
16812
|
+
addonAfter: 'ms'
|
16813
|
+
}
|
16814
|
+
]
|
16815
|
+
}
|
16816
|
+
];
|
16817
|
+
|
16804
16818
|
/*
|
16805
16819
|
* @Author: binruan@chatlabs.com
|
16806
16820
|
* @Date: 2024-07-24 14:58:40
|
@@ -16839,6 +16853,7 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
|
|
16839
16853
|
title: {
|
16840
16854
|
fontSize: 14,
|
16841
16855
|
color: '#000',
|
16856
|
+
textAlign: 'left',
|
16842
16857
|
lineHeight: 2.6
|
16843
16858
|
},
|
16844
16859
|
ctaTitle: {
|
@@ -17067,7 +17082,7 @@ const Display$1 = (_a) => {
|
|
17067
17082
|
React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
17068
17083
|
__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)
|
17069
17084
|
} }),
|
17070
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
17085
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
|
17071
17086
|
__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)
|
17072
17087
|
}, onClick: handleClick })),
|
17073
17088
|
isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
@@ -18767,22 +18782,10 @@ function withBindDataSource(Component) {
|
|
18767
18782
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
18768
18783
|
*
|
18769
18784
|
*/
|
18770
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
|
18771
|
-
var _a, _b, _c, _d, _e;
|
18785
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
18772
18786
|
const { schema } = useEditor();
|
18773
18787
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
18774
18788
|
return null;
|
18775
|
-
let cta = null;
|
18776
|
-
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) {
|
18777
|
-
cta = '多商品CTA';
|
18778
|
-
}
|
18779
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
18780
|
-
cta = '商品CTA';
|
18781
|
-
}
|
18782
|
-
else {
|
18783
|
-
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;
|
18784
|
-
}
|
18785
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
18786
18789
|
const renderComp = React.useMemo(() => {
|
18787
18790
|
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;
|
18788
18791
|
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
@@ -18810,7 +18813,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18810
18813
|
const sbf = style.backdropFilter;
|
18811
18814
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18812
18815
|
}
|
18813
|
-
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,
|
18816
|
+
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 })));
|
18814
18817
|
}
|
18815
18818
|
else {
|
18816
18819
|
return null;
|
@@ -19233,17 +19236,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19233
19236
|
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
|
19234
19237
|
((_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));
|
19235
19238
|
return (React.createElement(React.Fragment, null,
|
19236
|
-
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
19239
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
|
19237
19240
|
((_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' }),
|
19238
19241
|
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` } },
|
19239
19242
|
React.createElement(Nudge, { nudge: nudge }),
|
19240
19243
|
((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' },
|
19241
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
19244
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
19242
19245
|
React.createElement("div", null,
|
19243
19246
|
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 }),
|
19244
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
19247
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
19245
19248
|
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) }))),
|
19246
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
19249
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
19247
19250
|
}
|
19248
19251
|
return null;
|
19249
19252
|
}, [
|
@@ -19845,7 +19848,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
19845
19848
|
const CTA = (rec, index) => {
|
19846
19849
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
|
19847
19850
|
return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
19848
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2
|
19851
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
|
19849
19852
|
}
|
19850
19853
|
return null;
|
19851
19854
|
};
|
@@ -19858,10 +19861,8 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
19858
19861
|
React.createElement(Nudge, { nudge: nudge }),
|
19859
19862
|
CTA(rec, index),
|
19860
19863
|
React.createElement("div", null,
|
19861
|
-
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' }) }),
|
19862
|
-
|
19863
|
-
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 })),
|
19864
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
|
19864
|
+
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' }) })),
|
19865
|
+
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 }))));
|
19865
19866
|
}
|
19866
19867
|
return null;
|
19867
19868
|
};
|
@@ -20251,10 +20252,21 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
20251
20252
|
return null;
|
20252
20253
|
}, [globalConfig]);
|
20253
20254
|
const renderBottom = (rec, index) => {
|
20254
|
-
var _a, _b, _c, _d;
|
20255
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
20255
20256
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
20257
|
+
let cta = null;
|
20258
|
+
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) {
|
20259
|
+
cta = '多商品CTA';
|
20260
|
+
}
|
20261
|
+
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
20262
|
+
cta = '商品CTA';
|
20263
|
+
}
|
20264
|
+
else {
|
20265
|
+
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;
|
20266
|
+
}
|
20267
|
+
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
20256
20268
|
return (React.createElement(React.Fragment, null,
|
20257
|
-
((
|
20269
|
+
((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
|
20258
20270
|
background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
|
20259
20271
|
height: '130px',
|
20260
20272
|
position: 'absolute',
|
@@ -20265,7 +20277,7 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
20265
20277
|
pointerEvents
|
20266
20278
|
} })),
|
20267
20279
|
React.createElement("div", { style: {
|
20268
|
-
marginBottom: `${(
|
20280
|
+
marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
|
20269
20281
|
zIndex: 999,
|
20270
20282
|
position: 'absolute',
|
20271
20283
|
bottom: 0,
|
@@ -20274,15 +20286,15 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
20274
20286
|
paddingTop: '20px'
|
20275
20287
|
} },
|
20276
20288
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
|
20277
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
|
20289
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
|
20278
20290
|
React.createElement("div", null,
|
20279
20291
|
React.createElement(ExpandableText$1
|
20280
20292
|
// className='clc-sxp-bottom-text'
|
20281
20293
|
, {
|
20282
20294
|
// className='clc-sxp-bottom-text'
|
20283
|
-
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
20284
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
|
20285
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
20295
|
+
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', padding: '0 20px', fontSize: '12px' }) }),
|
20296
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
|
20297
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
20286
20298
|
}
|
20287
20299
|
return null;
|
20288
20300
|
};
|