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.js
CHANGED
@@ -2617,35 +2617,6 @@ var settingRender$e = [
|
|
2617
2617
|
}
|
2618
2618
|
];
|
2619
2619
|
|
2620
|
-
/*
|
2621
|
-
* @Author: binruan@chatlabs.com
|
2622
|
-
* @Date: 2024-07-09 14:35:10
|
2623
|
-
* @LastEditors: binruan@chatlabs.com
|
2624
|
-
* @LastEditTime: 2024-07-12 17:53:02
|
2625
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
2626
|
-
*
|
2627
|
-
*/
|
2628
|
-
/*
|
2629
|
-
* @Author: binruan@chatlabs.com
|
2630
|
-
* @Date: 2024-07-05 14:08:41
|
2631
|
-
* @LastEditors: binruan@chatlabs.com
|
2632
|
-
* @LastEditTime: 2024-07-09 14:34:49
|
2633
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
2634
|
-
*
|
2635
|
-
*/
|
2636
|
-
var interactionRender$g = [
|
2637
|
-
{
|
2638
|
-
title: '滑动事件',
|
2639
|
-
child: [
|
2640
|
-
{
|
2641
|
-
type: 'Switch',
|
2642
|
-
label: '滑动铺满全屏',
|
2643
|
-
name: ['isScrollFullScreen']
|
2644
|
-
}
|
2645
|
-
]
|
2646
|
-
}
|
2647
|
-
];
|
2648
|
-
|
2649
2620
|
/**
|
2650
2621
|
* SSR Window 4.0.2
|
2651
2622
|
* Better handling for window object in SSR environment
|
@@ -10224,7 +10195,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
10224
10195
|
return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css({
|
10225
10196
|
width: '50px',
|
10226
10197
|
height: '50px',
|
10227
|
-
|
10198
|
+
marginRight: '10px'
|
10228
10199
|
}), onClick: () => {
|
10229
10200
|
handleClick(item, index);
|
10230
10201
|
}, key: index },
|
@@ -10478,7 +10449,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10478
10449
|
display: '-webkit-box',
|
10479
10450
|
WebkitBoxOrient: 'vertical'
|
10480
10451
|
})), { 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) } }),
|
10481
|
-
React.createElement("div", { ref: realRef, style: {
|
10452
|
+
isPost && (React.createElement("div", { ref: realRef, style: {
|
10482
10453
|
wordBreak: 'break-word',
|
10483
10454
|
textRendering: 'geometricPrecision',
|
10484
10455
|
fontKerning: 'none',
|
@@ -10490,7 +10461,7 @@ const ExpandableText = ({ text, maxStr = 108, style, className, onClick, foldTex
|
|
10490
10461
|
clipPath: 'inset(100%)',
|
10491
10462
|
transform: 'translateX(-9999px)'
|
10492
10463
|
// position: 'absolute'
|
10493
|
-
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } }),
|
10464
|
+
}, dangerouslySetInnerHTML: { __html: setFontForText(text === null || text === void 0 ? void 0 : text.replace(/\n/g, '</br>'), textStyle) } })),
|
10494
10465
|
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: {
|
10495
10466
|
__html: setFontForText(isShowMore ? unfoldText || 'show less' : foldText || 'show more', textStyle)
|
10496
10467
|
} }))));
|
@@ -10823,6 +10794,35 @@ const CommodityDetail$1 = (_a) => {
|
|
10823
10794
|
};
|
10824
10795
|
var CommodityDetailComponent = memo(CommodityDetail$1);
|
10825
10796
|
|
10797
|
+
/*
|
10798
|
+
* @Author: binruan@chatlabs.com
|
10799
|
+
* @Date: 2024-07-09 14:35:10
|
10800
|
+
* @LastEditors: binruan@chatlabs.com
|
10801
|
+
* @LastEditTime: 2024-07-12 17:53:02
|
10802
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
10803
|
+
*
|
10804
|
+
*/
|
10805
|
+
/*
|
10806
|
+
* @Author: binruan@chatlabs.com
|
10807
|
+
* @Date: 2024-07-05 14:08:41
|
10808
|
+
* @LastEditors: binruan@chatlabs.com
|
10809
|
+
* @LastEditTime: 2024-07-09 14:34:49
|
10810
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
10811
|
+
*
|
10812
|
+
*/
|
10813
|
+
var interactionRender$g = [
|
10814
|
+
{
|
10815
|
+
title: '滑动事件',
|
10816
|
+
child: [
|
10817
|
+
{
|
10818
|
+
type: 'Switch',
|
10819
|
+
label: '滑动铺满全屏',
|
10820
|
+
name: ['isScrollFullScreen']
|
10821
|
+
}
|
10822
|
+
]
|
10823
|
+
}
|
10824
|
+
];
|
10825
|
+
|
10826
10826
|
/*
|
10827
10827
|
* @Author: binruan@chatlabs.com
|
10828
10828
|
* @Date: 2023-07-28 18:29:57
|
@@ -10869,6 +10869,7 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
|
|
10869
10869
|
taxInfo: {
|
10870
10870
|
color: '#000',
|
10871
10871
|
fontSize: 13,
|
10872
|
+
textAlign: 'left',
|
10872
10873
|
marginBottom: '10px'
|
10873
10874
|
}
|
10874
10875
|
},
|
@@ -11960,7 +11961,7 @@ var settingRender$b = [
|
|
11960
11961
|
type: 'Number',
|
11961
11962
|
label: '与右侧边距',
|
11962
11963
|
addonAfter: 'px',
|
11963
|
-
name: ['props', 'commodityPicture', '
|
11964
|
+
name: ['props', 'commodityPicture', 'marginRight']
|
11964
11965
|
},
|
11965
11966
|
{
|
11966
11967
|
label: '居中垂直偏移',
|
@@ -12246,11 +12247,12 @@ const CommodityList$1 = (_a) => {
|
|
12246
12247
|
React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css({
|
12247
12248
|
display: 'flex',
|
12248
12249
|
alignItems: 'normal',
|
12249
|
-
width: '100%'
|
12250
|
+
width: '100%',
|
12251
|
+
textAlign: 'left'
|
12250
12252
|
}) }, props),
|
12251
12253
|
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 }),
|
12252
12254
|
React.createElement("div", { style: {
|
12253
|
-
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.
|
12255
|
+
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)`,
|
12254
12256
|
display: 'flex',
|
12255
12257
|
flexDirection: 'column',
|
12256
12258
|
justifyContent: 'space-between'
|
@@ -12331,7 +12333,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
12331
12333
|
commodityPicture: {
|
12332
12334
|
width: 100,
|
12333
12335
|
height: 100,
|
12334
|
-
|
12336
|
+
marginRight: 10
|
12335
12337
|
},
|
12336
12338
|
commodityStyles: {
|
12337
12339
|
price: {
|
@@ -12577,7 +12579,7 @@ var settingRender$8 = [
|
|
12577
12579
|
type: 'Number',
|
12578
12580
|
label: '与右侧边距',
|
12579
12581
|
addonAfter: 'px',
|
12580
|
-
name: ['props', 'ctaTempStyles', 'img', '
|
12582
|
+
name: ['props', 'ctaTempStyles', 'img', 'marginRight']
|
12581
12583
|
},
|
12582
12584
|
{
|
12583
12585
|
label: '居中垂直偏移',
|
@@ -12838,11 +12840,12 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
12838
12840
|
borderRadius: 3,
|
12839
12841
|
width: 60,
|
12840
12842
|
height: 60,
|
12841
|
-
|
12843
|
+
marginRight: 8
|
12842
12844
|
},
|
12843
12845
|
title: {
|
12844
12846
|
fontSize: 12,
|
12845
|
-
color: '#fff'
|
12847
|
+
color: '#fff',
|
12848
|
+
textAlign: 'left'
|
12846
12849
|
},
|
12847
12850
|
ctaTitle: {
|
12848
12851
|
fontSize: 10,
|
@@ -12920,11 +12923,12 @@ const Appoint = createMaterial(AppointComponent, {
|
|
12920
12923
|
borderRadius: 3,
|
12921
12924
|
width: 30,
|
12922
12925
|
height: 30,
|
12923
|
-
|
12926
|
+
marginRight: 8
|
12924
12927
|
},
|
12925
12928
|
ctaTitle: {
|
12926
12929
|
fontSize: 12,
|
12927
12930
|
color: '#fff',
|
12931
|
+
textAlign: 'left',
|
12928
12932
|
width: 130,
|
12929
12933
|
height: 20
|
12930
12934
|
}
|
@@ -13060,27 +13064,6 @@ var linkSettingRender = [
|
|
13060
13064
|
}
|
13061
13065
|
];
|
13062
13066
|
|
13063
|
-
/*
|
13064
|
-
* @Author: binruan@chatlabs.com
|
13065
|
-
* @Date: 2024-08-09 16:59:38
|
13066
|
-
* @LastEditors: binruan@chatlabs.com
|
13067
|
-
* @LastEditTime: 2024-09-09 13:59:50
|
13068
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13069
|
-
*
|
13070
|
-
*/
|
13071
|
-
var interactionRender$a = [
|
13072
|
-
{
|
13073
|
-
title: '点击事件',
|
13074
|
-
child: [
|
13075
|
-
{
|
13076
|
-
type: 'link',
|
13077
|
-
name: 'onClick',
|
13078
|
-
hiddenUrl: true
|
13079
|
-
}
|
13080
|
-
]
|
13081
|
-
}
|
13082
|
-
];
|
13083
|
-
|
13084
13067
|
var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
13085
13068
|
|
13086
13069
|
const Link$1 = (_a) => {
|
@@ -13108,6 +13091,27 @@ const Link$1 = (_a) => {
|
|
13108
13091
|
};
|
13109
13092
|
var LinkComponent = memo(Link$1);
|
13110
13093
|
|
13094
|
+
/*
|
13095
|
+
* @Author: binruan@chatlabs.com
|
13096
|
+
* @Date: 2024-08-09 16:59:38
|
13097
|
+
* @LastEditors: binruan@chatlabs.com
|
13098
|
+
* @LastEditTime: 2024-09-09 13:59:50
|
13099
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
13100
|
+
*
|
13101
|
+
*/
|
13102
|
+
var interactionRender$a = [
|
13103
|
+
{
|
13104
|
+
title: '点击事件',
|
13105
|
+
child: [
|
13106
|
+
{
|
13107
|
+
type: 'link',
|
13108
|
+
name: 'onClick',
|
13109
|
+
hiddenUrl: true
|
13110
|
+
}
|
13111
|
+
]
|
13112
|
+
}
|
13113
|
+
];
|
13114
|
+
|
13111
13115
|
var _a;
|
13112
13116
|
const Link = createMaterial(LinkComponent, {
|
13113
13117
|
displayName: '普通CTA',
|
@@ -13126,17 +13130,19 @@ const Link = createMaterial(LinkComponent, {
|
|
13126
13130
|
borderRadius: 3,
|
13127
13131
|
width: 60,
|
13128
13132
|
height: 60,
|
13129
|
-
|
13133
|
+
marginRight: 8
|
13130
13134
|
},
|
13131
13135
|
ctaTitle: {
|
13132
13136
|
fontSize: 12,
|
13133
13137
|
color: '#fff',
|
13138
|
+
textAlign: 'left',
|
13134
13139
|
width: 130,
|
13135
13140
|
height: 20
|
13136
13141
|
}
|
13137
13142
|
},
|
13138
13143
|
customTitle: {
|
13139
13144
|
style: {
|
13145
|
+
textAlign: 'left',
|
13140
13146
|
textDecoration: 'underline',
|
13141
13147
|
fontWeight: 'bold',
|
13142
13148
|
width: 130,
|
@@ -13226,11 +13232,12 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
13226
13232
|
borderRadius: 3,
|
13227
13233
|
width: 60,
|
13228
13234
|
height: 60,
|
13229
|
-
|
13235
|
+
marginRight: 8
|
13230
13236
|
},
|
13231
13237
|
title: {
|
13232
13238
|
fontSize: 12,
|
13233
|
-
color: '#000'
|
13239
|
+
color: '#000',
|
13240
|
+
textAlign: 'left'
|
13234
13241
|
},
|
13235
13242
|
ctaTitle: {
|
13236
13243
|
fontSize: 10,
|
@@ -13321,17 +13328,19 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
13321
13328
|
borderRadius: 8,
|
13322
13329
|
width: 78,
|
13323
13330
|
height: 78,
|
13324
|
-
|
13331
|
+
marginRight: 16
|
13325
13332
|
},
|
13326
13333
|
title: {
|
13327
13334
|
fontSize: 13,
|
13328
|
-
color: '#000'
|
13335
|
+
color: '#000',
|
13336
|
+
textAlign: 'left'
|
13329
13337
|
},
|
13330
13338
|
ctaTitle: {
|
13331
13339
|
textDecoration: 'underline',
|
13332
13340
|
fontSize: 14,
|
13333
13341
|
fontWeight: 'bold',
|
13334
13342
|
color: '#000',
|
13343
|
+
textAlign: 'left',
|
13335
13344
|
width: 150,
|
13336
13345
|
height: 20
|
13337
13346
|
}
|
@@ -13373,7 +13382,7 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
13373
13382
|
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]);
|
13374
13383
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13375
13384
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13376
|
-
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,
|
13385
|
+
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, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13377
13386
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13378
13387
|
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 }),
|
13379
13388
|
React.createElement("div", { className: css({
|
@@ -13419,11 +13428,12 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
13419
13428
|
borderRadius: 3,
|
13420
13429
|
width: 60,
|
13421
13430
|
height: 60,
|
13422
|
-
|
13431
|
+
marginRight: 8
|
13423
13432
|
},
|
13424
13433
|
title: {
|
13425
13434
|
fontSize: 12,
|
13426
|
-
color: '#000'
|
13435
|
+
color: '#000',
|
13436
|
+
textAlign: 'left'
|
13427
13437
|
},
|
13428
13438
|
ctaTitle: {
|
13429
13439
|
fontSize: 10,
|
@@ -13471,7 +13481,7 @@ const MultiCommodity$1 = (_a) => {
|
|
13471
13481
|
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]);
|
13472
13482
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13473
13483
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13474
|
-
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,
|
13484
|
+
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, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13475
13485
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13476
13486
|
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 }),
|
13477
13487
|
React.createElement("div", { className: css({
|
@@ -13517,11 +13527,12 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
13517
13527
|
borderRadius: 3,
|
13518
13528
|
width: 60,
|
13519
13529
|
height: 60,
|
13520
|
-
|
13530
|
+
marginRight: 8
|
13521
13531
|
},
|
13522
13532
|
title: {
|
13523
13533
|
fontSize: 12,
|
13524
13534
|
color: '#fff',
|
13535
|
+
textAlign: 'left'
|
13525
13536
|
},
|
13526
13537
|
ctaTitle: {
|
13527
13538
|
fontSize: 10,
|
@@ -13577,7 +13588,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
13577
13588
|
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]);
|
13578
13589
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13579
13590
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
13580
|
-
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,
|
13591
|
+
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, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
|
13581
13592
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
13582
13593
|
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 }),
|
13583
13594
|
React.createElement("div", { className: css({
|
@@ -13624,17 +13635,19 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
13624
13635
|
borderRadius: 8,
|
13625
13636
|
width: 78,
|
13626
13637
|
height: 78,
|
13627
|
-
|
13638
|
+
marginRight: 16
|
13628
13639
|
},
|
13629
13640
|
title: {
|
13630
13641
|
fontSize: 12,
|
13631
|
-
color: '#000'
|
13642
|
+
color: '#000',
|
13643
|
+
textAlign: 'left'
|
13632
13644
|
},
|
13633
13645
|
ctaTitle: {
|
13634
13646
|
textDecoration: 'underline',
|
13635
13647
|
fontSize: 12,
|
13636
13648
|
fontWeight: 'bold',
|
13637
13649
|
color: '#000',
|
13650
|
+
textAlign: 'left',
|
13638
13651
|
width: 150,
|
13639
13652
|
height: 20
|
13640
13653
|
}
|
@@ -13729,11 +13742,12 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
|
|
13729
13742
|
borderRadius: 3,
|
13730
13743
|
width: 60,
|
13731
13744
|
height: 60,
|
13732
|
-
|
13745
|
+
marginRight: 8
|
13733
13746
|
},
|
13734
13747
|
title: {
|
13735
13748
|
fontSize: 12,
|
13736
|
-
color: '#fff'
|
13749
|
+
color: '#fff',
|
13750
|
+
textAlign: 'left'
|
13737
13751
|
},
|
13738
13752
|
ctaTitle: {
|
13739
13753
|
fontSize: 10,
|
@@ -16653,60 +16667,6 @@ var settingRender$4 = [
|
|
16653
16667
|
}
|
16654
16668
|
];
|
16655
16669
|
|
16656
|
-
/*
|
16657
|
-
* @Author: binruan@chatlabs.com
|
16658
|
-
* @Date: 2024-07-24 14:58:40
|
16659
|
-
* @LastEditors: binruan@chatlabs.com
|
16660
|
-
* @LastEditTime: 2024-09-09 13:54:35
|
16661
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16662
|
-
*
|
16663
|
-
*/
|
16664
|
-
var interactionRender$2 = [
|
16665
|
-
{
|
16666
|
-
title: '点击事件',
|
16667
|
-
child: [
|
16668
|
-
{
|
16669
|
-
type: 'link',
|
16670
|
-
name: 'onClick',
|
16671
|
-
hiddenUrl: true
|
16672
|
-
}
|
16673
|
-
]
|
16674
|
-
},
|
16675
|
-
{
|
16676
|
-
title: '动画效果',
|
16677
|
-
child: [
|
16678
|
-
{
|
16679
|
-
type: 'Select',
|
16680
|
-
name: ['animation', 'name'],
|
16681
|
-
label: '动画',
|
16682
|
-
options: [
|
16683
|
-
{
|
16684
|
-
label: '默认',
|
16685
|
-
value: 1
|
16686
|
-
}
|
16687
|
-
],
|
16688
|
-
fieldProps: {
|
16689
|
-
style: {
|
16690
|
-
width: '100%'
|
16691
|
-
}
|
16692
|
-
}
|
16693
|
-
},
|
16694
|
-
{
|
16695
|
-
type: 'Number',
|
16696
|
-
label: '动画启动时间',
|
16697
|
-
name: ['animation', 'delay'],
|
16698
|
-
addonAfter: 'ms'
|
16699
|
-
},
|
16700
|
-
{
|
16701
|
-
type: 'Number',
|
16702
|
-
label: '动画持续时间',
|
16703
|
-
name: ['animation', 'duration'],
|
16704
|
-
addonAfter: 'ms'
|
16705
|
-
}
|
16706
|
-
]
|
16707
|
-
}
|
16708
|
-
];
|
16709
|
-
|
16710
16670
|
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"};
|
16711
16671
|
|
16712
16672
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
@@ -16779,6 +16739,60 @@ const AniLinkPopup$1 = (_a) => {
|
|
16779
16739
|
};
|
16780
16740
|
var AniLinkPopupComponent = memo(AniLinkPopup$1);
|
16781
16741
|
|
16742
|
+
/*
|
16743
|
+
* @Author: binruan@chatlabs.com
|
16744
|
+
* @Date: 2024-07-24 14:58:40
|
16745
|
+
* @LastEditors: binruan@chatlabs.com
|
16746
|
+
* @LastEditTime: 2024-09-09 13:54:35
|
16747
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
16748
|
+
*
|
16749
|
+
*/
|
16750
|
+
var interactionRender$2 = [
|
16751
|
+
{
|
16752
|
+
title: '点击事件',
|
16753
|
+
child: [
|
16754
|
+
{
|
16755
|
+
type: 'link',
|
16756
|
+
name: 'onClick',
|
16757
|
+
hiddenUrl: true
|
16758
|
+
}
|
16759
|
+
]
|
16760
|
+
},
|
16761
|
+
{
|
16762
|
+
title: '动画效果',
|
16763
|
+
child: [
|
16764
|
+
{
|
16765
|
+
type: 'Select',
|
16766
|
+
name: ['animation', 'name'],
|
16767
|
+
label: '动画',
|
16768
|
+
options: [
|
16769
|
+
{
|
16770
|
+
label: '默认',
|
16771
|
+
value: 1
|
16772
|
+
}
|
16773
|
+
],
|
16774
|
+
fieldProps: {
|
16775
|
+
style: {
|
16776
|
+
width: '100%'
|
16777
|
+
}
|
16778
|
+
}
|
16779
|
+
},
|
16780
|
+
{
|
16781
|
+
type: 'Number',
|
16782
|
+
label: '动画启动时间',
|
16783
|
+
name: ['animation', 'delay'],
|
16784
|
+
addonAfter: 'ms'
|
16785
|
+
},
|
16786
|
+
{
|
16787
|
+
type: 'Number',
|
16788
|
+
label: '动画持续时间',
|
16789
|
+
name: ['animation', 'duration'],
|
16790
|
+
addonAfter: 'ms'
|
16791
|
+
}
|
16792
|
+
]
|
16793
|
+
}
|
16794
|
+
];
|
16795
|
+
|
16782
16796
|
/*
|
16783
16797
|
* @Author: binruan@chatlabs.com
|
16784
16798
|
* @Date: 2024-07-24 14:58:40
|
@@ -16817,6 +16831,7 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
|
|
16817
16831
|
title: {
|
16818
16832
|
fontSize: 14,
|
16819
16833
|
color: '#000',
|
16834
|
+
textAlign: 'left',
|
16820
16835
|
lineHeight: 2.6
|
16821
16836
|
},
|
16822
16837
|
ctaTitle: {
|
@@ -17045,7 +17060,7 @@ const Display$1 = (_a) => {
|
|
17045
17060
|
React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
17046
17061
|
__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)
|
17047
17062
|
} }),
|
17048
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
17063
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
|
17049
17064
|
__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)
|
17050
17065
|
}, onClick: handleClick })),
|
17051
17066
|
isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
@@ -18745,22 +18760,10 @@ function withBindDataSource(Component) {
|
|
18745
18760
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
18746
18761
|
*
|
18747
18762
|
*/
|
18748
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
|
18749
|
-
var _a, _b, _c, _d, _e;
|
18763
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
|
18750
18764
|
const { schema } = useEditor();
|
18751
18765
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
18752
18766
|
return null;
|
18753
|
-
let cta = null;
|
18754
|
-
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) {
|
18755
|
-
cta = '多商品CTA';
|
18756
|
-
}
|
18757
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
18758
|
-
cta = '商品CTA';
|
18759
|
-
}
|
18760
|
-
else {
|
18761
|
-
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;
|
18762
|
-
}
|
18763
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
18764
18767
|
const renderComp = useMemo(() => {
|
18765
18768
|
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;
|
18766
18769
|
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
@@ -18788,7 +18791,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18788
18791
|
const sbf = style.backdropFilter;
|
18789
18792
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
18790
18793
|
}
|
18791
|
-
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,
|
18794
|
+
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 })));
|
18792
18795
|
}
|
18793
18796
|
else {
|
18794
18797
|
return null;
|
@@ -19211,17 +19214,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
19211
19214
|
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
|
19212
19215
|
((_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));
|
19213
19216
|
return (React.createElement(React.Fragment, null,
|
19214
|
-
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
19217
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
|
19215
19218
|
((_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' }),
|
19216
19219
|
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` } },
|
19217
19220
|
React.createElement(Nudge, { nudge: nudge }),
|
19218
19221
|
((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' },
|
19219
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
19222
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
|
19220
19223
|
React.createElement("div", null,
|
19221
19224
|
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 }),
|
19222
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
19225
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
|
19223
19226
|
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) }))),
|
19224
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
19227
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
19225
19228
|
}
|
19226
19229
|
return null;
|
19227
19230
|
}, [
|
@@ -19823,7 +19826,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
19823
19826
|
const CTA = (rec, index) => {
|
19824
19827
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
|
19825
19828
|
return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
19826
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2
|
19829
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
|
19827
19830
|
}
|
19828
19831
|
return null;
|
19829
19832
|
};
|
@@ -19836,10 +19839,8 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
19836
19839
|
React.createElement(Nudge, { nudge: nudge }),
|
19837
19840
|
CTA(rec, index),
|
19838
19841
|
React.createElement("div", null,
|
19839
|
-
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' }) }),
|
19840
|
-
|
19841
|
-
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 })),
|
19842
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
|
19842
|
+
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' }) })),
|
19843
|
+
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 }))));
|
19843
19844
|
}
|
19844
19845
|
return null;
|
19845
19846
|
};
|
@@ -20229,10 +20230,21 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
20229
20230
|
return null;
|
20230
20231
|
}, [globalConfig]);
|
20231
20232
|
const renderBottom = (rec, index) => {
|
20232
|
-
var _a, _b, _c, _d;
|
20233
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
20233
20234
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
20235
|
+
let cta = null;
|
20236
|
+
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) {
|
20237
|
+
cta = '多商品CTA';
|
20238
|
+
}
|
20239
|
+
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
20240
|
+
cta = '商品CTA';
|
20241
|
+
}
|
20242
|
+
else {
|
20243
|
+
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;
|
20244
|
+
}
|
20245
|
+
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
20234
20246
|
return (React.createElement(React.Fragment, null,
|
20235
|
-
((
|
20247
|
+
((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
|
20236
20248
|
background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
|
20237
20249
|
height: '130px',
|
20238
20250
|
position: 'absolute',
|
@@ -20243,7 +20255,7 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
20243
20255
|
pointerEvents
|
20244
20256
|
} })),
|
20245
20257
|
React.createElement("div", { style: {
|
20246
|
-
marginBottom: `${(
|
20258
|
+
marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
|
20247
20259
|
zIndex: 999,
|
20248
20260
|
position: 'absolute',
|
20249
20261
|
bottom: 0,
|
@@ -20252,15 +20264,15 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
|
|
20252
20264
|
paddingTop: '20px'
|
20253
20265
|
} },
|
20254
20266
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
|
20255
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
|
20267
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
|
20256
20268
|
React.createElement("div", null,
|
20257
20269
|
React.createElement(ExpandableText$1
|
20258
20270
|
// className='clc-sxp-bottom-text'
|
20259
20271
|
, {
|
20260
20272
|
// className='clc-sxp-bottom-text'
|
20261
|
-
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
20262
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
|
20263
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
20273
|
+
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' }) }),
|
20274
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
|
20275
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
|
20264
20276
|
}
|
20265
20277
|
return null;
|
20266
20278
|
};
|