pb-sxp-ui 1.19.0-alpha.2 → 1.19.0-alpha.4
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 +223 -197
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -7
- package/dist/index.js +223 -197
- 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 +223 -197
- 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 +5 -3
- package/es/core/components/DiyStoryPreview/index.js +7 -18
- package/es/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/es/core/components/SxpPageRender/RenderCard.js +14 -2
- package/es/core/components/SxpPageRender/index.js +44 -26
- package/es/core/context/SxpDataSourceProvider.js +2 -3
- package/es/materials/sxp/consentPopup/Display/index.js +1 -1
- package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
- package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/es/materials/sxp/popup/CommodityList/index.js +4 -5
- package/es/materials/sxp/popup/CommodityList/material.js +1 -1
- package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +1 -2
- package/es/materials/sxp/template/Commodity/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/Link/material.js +2 -4
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/es/materials/sxp/template/NineCommodity/material.js +2 -3
- package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +1 -1
- package/lib/core/components/DiyPortalPreview/index.js +5 -3
- package/lib/core/components/DiyStoryPreview/index.js +7 -18
- package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
- package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
- package/lib/core/components/SxpPageRender/index.js +44 -26
- package/lib/core/context/SxpDataSourceProvider.js +2 -3
- package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
- package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
- package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
- package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
- package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +1 -2
- package/lib/materials/sxp/template/Commodity/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/Link/material.js +2 -4
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
- package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
- package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -772,7 +772,27 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
772
772
|
return ((_a = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _a === void 0 ? void 0 : _a['x-app-id']) + storeAndLoadFeUserId();
|
|
773
773
|
}, [bffDataSource]);
|
|
774
774
|
const getTargetingCookie = () => {
|
|
775
|
-
var _a;
|
|
775
|
+
var _a, _b;
|
|
776
|
+
function isTargetingRejected(cookieValue) {
|
|
777
|
+
// 1. 从Cookie字符串中提取groups部分
|
|
778
|
+
const groupsMatch = cookieValue.match(/groups=([^&]+)/);
|
|
779
|
+
if (!groupsMatch || !groupsMatch[1]) {
|
|
780
|
+
return false;
|
|
781
|
+
}
|
|
782
|
+
const groupsString = groupsMatch[1];
|
|
783
|
+
// 2. 将groups字符串拆分为键值对数组
|
|
784
|
+
const groupsPairs = groupsString.split(',');
|
|
785
|
+
// 3. 遍历查找第四个类别(Targeting)的状态
|
|
786
|
+
for (const pair of groupsPairs) {
|
|
787
|
+
const [category, status] = pair.split(':');
|
|
788
|
+
if (category === '4') {
|
|
789
|
+
// 找到第四个类别,检查其状态
|
|
790
|
+
return status === '0'; // 如果状态为0则返回true
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
// 如果没有找到第四个类别
|
|
794
|
+
return false;
|
|
795
|
+
}
|
|
776
796
|
function getCookie(name) {
|
|
777
797
|
var _a;
|
|
778
798
|
const value = `; ${document.cookie}`;
|
|
@@ -781,9 +801,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
|
781
801
|
return (_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift();
|
|
782
802
|
return '';
|
|
783
803
|
}
|
|
784
|
-
decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
|
|
785
|
-
|
|
786
|
-
if (((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')))) {
|
|
804
|
+
const OptanonConsent = decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
|
|
805
|
+
if (((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && ((_b = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _b === void 0 ? void 0 : _b.length) > 2 && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')) && isTargetingRejected(OptanonConsent))) {
|
|
787
806
|
return true;
|
|
788
807
|
}
|
|
789
808
|
return false;
|
|
@@ -2706,6 +2725,35 @@ var settingRender$e = [
|
|
|
2706
2725
|
}
|
|
2707
2726
|
];
|
|
2708
2727
|
|
|
2728
|
+
/*
|
|
2729
|
+
* @Author: binruan@chatlabs.com
|
|
2730
|
+
* @Date: 2024-07-09 14:35:10
|
|
2731
|
+
* @LastEditors: binruan@chatlabs.com
|
|
2732
|
+
* @LastEditTime: 2024-07-12 17:53:02
|
|
2733
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
|
2734
|
+
*
|
|
2735
|
+
*/
|
|
2736
|
+
/*
|
|
2737
|
+
* @Author: binruan@chatlabs.com
|
|
2738
|
+
* @Date: 2024-07-05 14:08:41
|
|
2739
|
+
* @LastEditors: binruan@chatlabs.com
|
|
2740
|
+
* @LastEditTime: 2024-07-09 14:34:49
|
|
2741
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
|
2742
|
+
*
|
|
2743
|
+
*/
|
|
2744
|
+
var interactionRender$g = [
|
|
2745
|
+
{
|
|
2746
|
+
title: '滑动事件',
|
|
2747
|
+
child: [
|
|
2748
|
+
{
|
|
2749
|
+
type: 'Switch',
|
|
2750
|
+
label: '滑动铺满全屏',
|
|
2751
|
+
name: ['isScrollFullScreen']
|
|
2752
|
+
}
|
|
2753
|
+
]
|
|
2754
|
+
}
|
|
2755
|
+
];
|
|
2756
|
+
|
|
2709
2757
|
/**
|
|
2710
2758
|
* SSR Window 4.0.2
|
|
2711
2759
|
* Better handling for window object in SSR environment
|
|
@@ -10284,7 +10332,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
|
|
|
10284
10332
|
return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css.css({
|
|
10285
10333
|
width: '50px',
|
|
10286
10334
|
height: '50px',
|
|
10287
|
-
|
|
10335
|
+
marginInlineEnd: '10px'
|
|
10288
10336
|
}), onClick: () => {
|
|
10289
10337
|
handleClick(item, index);
|
|
10290
10338
|
}, key: index },
|
|
@@ -10883,35 +10931,6 @@ const CommodityDetail$1 = (_a) => {
|
|
|
10883
10931
|
};
|
|
10884
10932
|
var CommodityDetailComponent = React.memo(CommodityDetail$1);
|
|
10885
10933
|
|
|
10886
|
-
/*
|
|
10887
|
-
* @Author: binruan@chatlabs.com
|
|
10888
|
-
* @Date: 2024-07-09 14:35:10
|
|
10889
|
-
* @LastEditors: binruan@chatlabs.com
|
|
10890
|
-
* @LastEditTime: 2024-07-12 17:53:02
|
|
10891
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
|
|
10892
|
-
*
|
|
10893
|
-
*/
|
|
10894
|
-
/*
|
|
10895
|
-
* @Author: binruan@chatlabs.com
|
|
10896
|
-
* @Date: 2024-07-05 14:08:41
|
|
10897
|
-
* @LastEditors: binruan@chatlabs.com
|
|
10898
|
-
* @LastEditTime: 2024-07-09 14:34:49
|
|
10899
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
|
|
10900
|
-
*
|
|
10901
|
-
*/
|
|
10902
|
-
var interactionRender$g = [
|
|
10903
|
-
{
|
|
10904
|
-
title: '滑动事件',
|
|
10905
|
-
child: [
|
|
10906
|
-
{
|
|
10907
|
-
type: 'Switch',
|
|
10908
|
-
label: '滑动铺满全屏',
|
|
10909
|
-
name: ['isScrollFullScreen']
|
|
10910
|
-
}
|
|
10911
|
-
]
|
|
10912
|
-
}
|
|
10913
|
-
];
|
|
10914
|
-
|
|
10915
10934
|
/*
|
|
10916
10935
|
* @Author: binruan@chatlabs.com
|
|
10917
10936
|
* @Date: 2023-07-28 18:29:57
|
|
@@ -10958,7 +10977,6 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
|
|
|
10958
10977
|
taxInfo: {
|
|
10959
10978
|
color: '#000',
|
|
10960
10979
|
fontSize: 13,
|
|
10961
|
-
textAlign: 'left',
|
|
10962
10980
|
marginBottom: '10px'
|
|
10963
10981
|
}
|
|
10964
10982
|
},
|
|
@@ -12050,7 +12068,7 @@ var settingRender$b = [
|
|
|
12050
12068
|
type: 'Number',
|
|
12051
12069
|
label: '与右侧边距',
|
|
12052
12070
|
addonAfter: 'px',
|
|
12053
|
-
name: ['props', 'commodityPicture', '
|
|
12071
|
+
name: ['props', 'commodityPicture', 'marginInlineEnd']
|
|
12054
12072
|
},
|
|
12055
12073
|
{
|
|
12056
12074
|
label: '居中垂直偏移',
|
|
@@ -12336,12 +12354,11 @@ const CommodityList$1 = (_a) => {
|
|
|
12336
12354
|
React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css.css({
|
|
12337
12355
|
display: 'flex',
|
|
12338
12356
|
alignItems: 'normal',
|
|
12339
|
-
width: '100%'
|
|
12340
|
-
textAlign: 'left'
|
|
12357
|
+
width: '100%'
|
|
12341
12358
|
}) }, props),
|
|
12342
12359
|
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 }),
|
|
12343
12360
|
React.createElement("div", { style: {
|
|
12344
|
-
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.
|
|
12361
|
+
width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginInlineEnd) !== null && _f !== void 0 ? _f : 0}px)`,
|
|
12345
12362
|
display: 'flex',
|
|
12346
12363
|
flexDirection: 'column',
|
|
12347
12364
|
justifyContent: 'space-between'
|
|
@@ -12422,7 +12439,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
|
12422
12439
|
commodityPicture: {
|
|
12423
12440
|
width: 100,
|
|
12424
12441
|
height: 100,
|
|
12425
|
-
|
|
12442
|
+
marginInlineEnd: 10
|
|
12426
12443
|
},
|
|
12427
12444
|
commodityStyles: {
|
|
12428
12445
|
price: {
|
|
@@ -12668,7 +12685,7 @@ var settingRender$8 = [
|
|
|
12668
12685
|
type: 'Number',
|
|
12669
12686
|
label: '与右侧边距',
|
|
12670
12687
|
addonAfter: 'px',
|
|
12671
|
-
name: ['props', 'ctaTempStyles', 'img', '
|
|
12688
|
+
name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
|
|
12672
12689
|
},
|
|
12673
12690
|
{
|
|
12674
12691
|
label: '居中垂直偏移',
|
|
@@ -12929,12 +12946,11 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
|
12929
12946
|
borderRadius: 3,
|
|
12930
12947
|
width: 60,
|
|
12931
12948
|
height: 60,
|
|
12932
|
-
|
|
12949
|
+
marginInlineEnd: 8
|
|
12933
12950
|
},
|
|
12934
12951
|
title: {
|
|
12935
12952
|
fontSize: 12,
|
|
12936
|
-
color: '#fff'
|
|
12937
|
-
textAlign: 'left'
|
|
12953
|
+
color: '#fff'
|
|
12938
12954
|
},
|
|
12939
12955
|
ctaTitle: {
|
|
12940
12956
|
fontSize: 10,
|
|
@@ -13012,12 +13028,11 @@ const Appoint = createMaterial(AppointComponent, {
|
|
|
13012
13028
|
borderRadius: 3,
|
|
13013
13029
|
width: 30,
|
|
13014
13030
|
height: 30,
|
|
13015
|
-
|
|
13031
|
+
marginInlineEnd: 8
|
|
13016
13032
|
},
|
|
13017
13033
|
ctaTitle: {
|
|
13018
13034
|
fontSize: 12,
|
|
13019
13035
|
color: '#fff',
|
|
13020
|
-
textAlign: 'left',
|
|
13021
13036
|
width: 130,
|
|
13022
13037
|
height: 20
|
|
13023
13038
|
}
|
|
@@ -13153,6 +13168,27 @@ var linkSettingRender = [
|
|
|
13153
13168
|
}
|
|
13154
13169
|
];
|
|
13155
13170
|
|
|
13171
|
+
/*
|
|
13172
|
+
* @Author: binruan@chatlabs.com
|
|
13173
|
+
* @Date: 2024-08-09 16:59:38
|
|
13174
|
+
* @LastEditors: binruan@chatlabs.com
|
|
13175
|
+
* @LastEditTime: 2024-09-09 13:59:50
|
|
13176
|
+
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
|
13177
|
+
*
|
|
13178
|
+
*/
|
|
13179
|
+
var interactionRender$a = [
|
|
13180
|
+
{
|
|
13181
|
+
title: '点击事件',
|
|
13182
|
+
child: [
|
|
13183
|
+
{
|
|
13184
|
+
type: 'link',
|
|
13185
|
+
name: 'onClick',
|
|
13186
|
+
hiddenUrl: true
|
|
13187
|
+
}
|
|
13188
|
+
]
|
|
13189
|
+
}
|
|
13190
|
+
];
|
|
13191
|
+
|
|
13156
13192
|
var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
|
|
13157
13193
|
|
|
13158
13194
|
const Link$1 = (_a) => {
|
|
@@ -13180,27 +13216,6 @@ const Link$1 = (_a) => {
|
|
|
13180
13216
|
};
|
|
13181
13217
|
var LinkComponent = React.memo(Link$1);
|
|
13182
13218
|
|
|
13183
|
-
/*
|
|
13184
|
-
* @Author: binruan@chatlabs.com
|
|
13185
|
-
* @Date: 2024-08-09 16:59:38
|
|
13186
|
-
* @LastEditors: binruan@chatlabs.com
|
|
13187
|
-
* @LastEditTime: 2024-09-09 13:59:50
|
|
13188
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
|
|
13189
|
-
*
|
|
13190
|
-
*/
|
|
13191
|
-
var interactionRender$a = [
|
|
13192
|
-
{
|
|
13193
|
-
title: '点击事件',
|
|
13194
|
-
child: [
|
|
13195
|
-
{
|
|
13196
|
-
type: 'link',
|
|
13197
|
-
name: 'onClick',
|
|
13198
|
-
hiddenUrl: true
|
|
13199
|
-
}
|
|
13200
|
-
]
|
|
13201
|
-
}
|
|
13202
|
-
];
|
|
13203
|
-
|
|
13204
13219
|
var _a;
|
|
13205
13220
|
const Link = createMaterial(LinkComponent, {
|
|
13206
13221
|
displayName: '普通CTA',
|
|
@@ -13219,19 +13234,17 @@ const Link = createMaterial(LinkComponent, {
|
|
|
13219
13234
|
borderRadius: 3,
|
|
13220
13235
|
width: 60,
|
|
13221
13236
|
height: 60,
|
|
13222
|
-
|
|
13237
|
+
marginInlineEnd: 8
|
|
13223
13238
|
},
|
|
13224
13239
|
ctaTitle: {
|
|
13225
13240
|
fontSize: 12,
|
|
13226
13241
|
color: '#fff',
|
|
13227
|
-
textAlign: 'left',
|
|
13228
13242
|
width: 130,
|
|
13229
13243
|
height: 20
|
|
13230
13244
|
}
|
|
13231
13245
|
},
|
|
13232
13246
|
customTitle: {
|
|
13233
13247
|
style: {
|
|
13234
|
-
textAlign: 'left',
|
|
13235
13248
|
textDecoration: 'underline',
|
|
13236
13249
|
fontWeight: 'bold',
|
|
13237
13250
|
width: 130,
|
|
@@ -13321,12 +13334,11 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
|
13321
13334
|
borderRadius: 3,
|
|
13322
13335
|
width: 60,
|
|
13323
13336
|
height: 60,
|
|
13324
|
-
|
|
13337
|
+
marginInlineEnd: 8
|
|
13325
13338
|
},
|
|
13326
13339
|
title: {
|
|
13327
13340
|
fontSize: 12,
|
|
13328
|
-
color: '#000'
|
|
13329
|
-
textAlign: 'left'
|
|
13341
|
+
color: '#000'
|
|
13330
13342
|
},
|
|
13331
13343
|
ctaTitle: {
|
|
13332
13344
|
fontSize: 10,
|
|
@@ -13417,19 +13429,17 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
|
13417
13429
|
borderRadius: 8,
|
|
13418
13430
|
width: 78,
|
|
13419
13431
|
height: 78,
|
|
13420
|
-
|
|
13432
|
+
marginInlineEnd: 16
|
|
13421
13433
|
},
|
|
13422
13434
|
title: {
|
|
13423
13435
|
fontSize: 13,
|
|
13424
|
-
color: '#000'
|
|
13425
|
-
textAlign: 'left'
|
|
13436
|
+
color: '#000'
|
|
13426
13437
|
},
|
|
13427
13438
|
ctaTitle: {
|
|
13428
13439
|
textDecoration: 'underline',
|
|
13429
13440
|
fontSize: 14,
|
|
13430
13441
|
fontWeight: 'bold',
|
|
13431
13442
|
color: '#000',
|
|
13432
|
-
textAlign: 'left',
|
|
13433
13443
|
width: 150,
|
|
13434
13444
|
height: 20
|
|
13435
13445
|
}
|
|
@@ -13471,7 +13481,7 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
|
13471
13481
|
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]);
|
|
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.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.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '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.css({
|
|
@@ -13517,12 +13527,11 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
|
13517
13527
|
borderRadius: 3,
|
|
13518
13528
|
width: 60,
|
|
13519
13529
|
height: 60,
|
|
13520
|
-
|
|
13530
|
+
marginInlineEnd: 8
|
|
13521
13531
|
},
|
|
13522
13532
|
title: {
|
|
13523
13533
|
fontSize: 12,
|
|
13524
|
-
color: '#000'
|
|
13525
|
-
textAlign: 'left'
|
|
13534
|
+
color: '#000'
|
|
13526
13535
|
},
|
|
13527
13536
|
ctaTitle: {
|
|
13528
13537
|
fontSize: 10,
|
|
@@ -13570,7 +13579,7 @@ const MultiCommodity$1 = (_a) => {
|
|
|
13570
13579
|
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]);
|
|
13571
13580
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
13572
13581
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
13573
|
-
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,
|
|
13582
|
+
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, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
13574
13583
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
13575
13584
|
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 }),
|
|
13576
13585
|
React.createElement("div", { className: css.css({
|
|
@@ -13616,12 +13625,11 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
|
13616
13625
|
borderRadius: 3,
|
|
13617
13626
|
width: 60,
|
|
13618
13627
|
height: 60,
|
|
13619
|
-
|
|
13628
|
+
marginInlineEnd: 8
|
|
13620
13629
|
},
|
|
13621
13630
|
title: {
|
|
13622
13631
|
fontSize: 12,
|
|
13623
13632
|
color: '#fff',
|
|
13624
|
-
textAlign: 'left'
|
|
13625
13633
|
},
|
|
13626
13634
|
ctaTitle: {
|
|
13627
13635
|
fontSize: 10,
|
|
@@ -13677,7 +13685,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
|
13677
13685
|
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]);
|
|
13678
13686
|
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
|
13679
13687
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13680
|
-
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,
|
|
13688
|
+
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, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
|
|
13681
13689
|
React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
|
|
13682
13690
|
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 }),
|
|
13683
13691
|
React.createElement("div", { className: css.css({
|
|
@@ -13724,19 +13732,17 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
|
13724
13732
|
borderRadius: 8,
|
|
13725
13733
|
width: 78,
|
|
13726
13734
|
height: 78,
|
|
13727
|
-
|
|
13735
|
+
marginInlineEnd: 16
|
|
13728
13736
|
},
|
|
13729
13737
|
title: {
|
|
13730
13738
|
fontSize: 12,
|
|
13731
|
-
color: '#000'
|
|
13732
|
-
textAlign: 'left'
|
|
13739
|
+
color: '#000'
|
|
13733
13740
|
},
|
|
13734
13741
|
ctaTitle: {
|
|
13735
13742
|
textDecoration: 'underline',
|
|
13736
13743
|
fontSize: 12,
|
|
13737
13744
|
fontWeight: 'bold',
|
|
13738
13745
|
color: '#000',
|
|
13739
|
-
textAlign: 'left',
|
|
13740
13746
|
width: 150,
|
|
13741
13747
|
height: 20
|
|
13742
13748
|
}
|
|
@@ -13831,12 +13837,11 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
|
|
|
13831
13837
|
borderRadius: 3,
|
|
13832
13838
|
width: 60,
|
|
13833
13839
|
height: 60,
|
|
13834
|
-
|
|
13840
|
+
marginInlineEnd: 8
|
|
13835
13841
|
},
|
|
13836
13842
|
title: {
|
|
13837
13843
|
fontSize: 12,
|
|
13838
|
-
color: '#fff'
|
|
13839
|
-
textAlign: 'left'
|
|
13844
|
+
color: '#fff'
|
|
13840
13845
|
},
|
|
13841
13846
|
ctaTitle: {
|
|
13842
13847
|
fontSize: 10,
|
|
@@ -16756,6 +16761,60 @@ var settingRender$4 = [
|
|
|
16756
16761
|
}
|
|
16757
16762
|
];
|
|
16758
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
|
+
|
|
16759
16818
|
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"};
|
|
16760
16819
|
|
|
16761
16820
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
|
@@ -16828,60 +16887,6 @@ const AniLinkPopup$1 = (_a) => {
|
|
|
16828
16887
|
};
|
|
16829
16888
|
var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
|
|
16830
16889
|
|
|
16831
|
-
/*
|
|
16832
|
-
* @Author: binruan@chatlabs.com
|
|
16833
|
-
* @Date: 2024-07-24 14:58:40
|
|
16834
|
-
* @LastEditors: binruan@chatlabs.com
|
|
16835
|
-
* @LastEditTime: 2024-09-09 13:54:35
|
|
16836
|
-
* @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
|
|
16837
|
-
*
|
|
16838
|
-
*/
|
|
16839
|
-
var interactionRender$2 = [
|
|
16840
|
-
{
|
|
16841
|
-
title: '点击事件',
|
|
16842
|
-
child: [
|
|
16843
|
-
{
|
|
16844
|
-
type: 'link',
|
|
16845
|
-
name: 'onClick',
|
|
16846
|
-
hiddenUrl: true
|
|
16847
|
-
}
|
|
16848
|
-
]
|
|
16849
|
-
},
|
|
16850
|
-
{
|
|
16851
|
-
title: '动画效果',
|
|
16852
|
-
child: [
|
|
16853
|
-
{
|
|
16854
|
-
type: 'Select',
|
|
16855
|
-
name: ['animation', 'name'],
|
|
16856
|
-
label: '动画',
|
|
16857
|
-
options: [
|
|
16858
|
-
{
|
|
16859
|
-
label: '默认',
|
|
16860
|
-
value: 1
|
|
16861
|
-
}
|
|
16862
|
-
],
|
|
16863
|
-
fieldProps: {
|
|
16864
|
-
style: {
|
|
16865
|
-
width: '100%'
|
|
16866
|
-
}
|
|
16867
|
-
}
|
|
16868
|
-
},
|
|
16869
|
-
{
|
|
16870
|
-
type: 'Number',
|
|
16871
|
-
label: '动画启动时间',
|
|
16872
|
-
name: ['animation', 'delay'],
|
|
16873
|
-
addonAfter: 'ms'
|
|
16874
|
-
},
|
|
16875
|
-
{
|
|
16876
|
-
type: 'Number',
|
|
16877
|
-
label: '动画持续时间',
|
|
16878
|
-
name: ['animation', 'duration'],
|
|
16879
|
-
addonAfter: 'ms'
|
|
16880
|
-
}
|
|
16881
|
-
]
|
|
16882
|
-
}
|
|
16883
|
-
];
|
|
16884
|
-
|
|
16885
16890
|
/*
|
|
16886
16891
|
* @Author: binruan@chatlabs.com
|
|
16887
16892
|
* @Date: 2024-07-24 14:58:40
|
|
@@ -16920,7 +16925,6 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
|
|
|
16920
16925
|
title: {
|
|
16921
16926
|
fontSize: 14,
|
|
16922
16927
|
color: '#000',
|
|
16923
|
-
textAlign: 'left',
|
|
16924
16928
|
lineHeight: 2.6
|
|
16925
16929
|
},
|
|
16926
16930
|
ctaTitle: {
|
|
@@ -17149,7 +17153,7 @@ const Display$1 = (_a) => {
|
|
|
17149
17153
|
React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
|
|
17150
17154
|
__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)
|
|
17151
17155
|
} }),
|
|
17152
|
-
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), {
|
|
17156
|
+
React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
|
|
17153
17157
|
__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)
|
|
17154
17158
|
}, onClick: handleClick })),
|
|
17155
17159
|
isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
|
|
@@ -18849,10 +18853,22 @@ function withBindDataSource(Component) {
|
|
|
18849
18853
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
|
18850
18854
|
*
|
|
18851
18855
|
*/
|
|
18852
|
-
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
18856
|
+
const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
|
|
18857
|
+
var _a, _b, _c, _d, _e;
|
|
18853
18858
|
const { schema } = useEditor();
|
|
18854
18859
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
|
18855
18860
|
return null;
|
|
18861
|
+
let cta = null;
|
|
18862
|
+
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) {
|
|
18863
|
+
cta = '多商品CTA';
|
|
18864
|
+
}
|
|
18865
|
+
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
|
18866
|
+
cta = '商品CTA';
|
|
18867
|
+
}
|
|
18868
|
+
else {
|
|
18869
|
+
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;
|
|
18870
|
+
}
|
|
18871
|
+
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
18856
18872
|
const renderComp = React.useMemo(() => {
|
|
18857
18873
|
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;
|
|
18858
18874
|
// 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
|
|
@@ -18880,7 +18896,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
|
|
|
18880
18896
|
const sbf = style.backdropFilter;
|
|
18881
18897
|
style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
|
|
18882
18898
|
}
|
|
18883
|
-
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,
|
|
18899
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginInlineStart: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
|
|
18884
18900
|
}
|
|
18885
18901
|
else {
|
|
18886
18902
|
return null;
|
|
@@ -19027,6 +19043,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19027
19043
|
const [isReload, setIsReload] = React.useState(new Date().getTime());
|
|
19028
19044
|
const skipLinkRef = React.useRef(false);
|
|
19029
19045
|
const [pageNum, setPageNum] = React.useState(2);
|
|
19046
|
+
const [isShowCookieSetting, setIsShowCookieSetting] = React.useState(false);
|
|
19030
19047
|
const videoWidgetRef = React.useRef(null);
|
|
19031
19048
|
const fbcRef = React.useRef('');
|
|
19032
19049
|
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
|
|
@@ -19304,17 +19321,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19304
19321
|
index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
|
|
19305
19322
|
((_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));
|
|
19306
19323
|
return (React.createElement(React.Fragment, null,
|
|
19307
|
-
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex,
|
|
19324
|
+
isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
|
|
19308
19325
|
((_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' }),
|
|
19309
19326
|
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` } },
|
|
19310
19327
|
React.createElement(Nudge, { nudge: nudge }),
|
|
19311
19328
|
((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' },
|
|
19312
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex
|
|
19329
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
|
|
19313
19330
|
React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
|
|
19314
19331
|
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 }),
|
|
19315
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex
|
|
19332
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
|
|
19316
19333
|
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) }))),
|
|
19317
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex
|
|
19334
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
|
19318
19335
|
}
|
|
19319
19336
|
return null;
|
|
19320
19337
|
}, [
|
|
@@ -19476,30 +19493,48 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19476
19493
|
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
|
|
19477
19494
|
return;
|
|
19478
19495
|
window.OptanonWrapper = function () {
|
|
19479
|
-
var _a
|
|
19480
|
-
|
|
19481
|
-
if (
|
|
19482
|
-
|
|
19483
|
-
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19484
|
-
if (fbcRef.current) {
|
|
19485
|
-
setCookie('_fbc', fbcRef.current, 90);
|
|
19486
|
-
}
|
|
19496
|
+
var _a;
|
|
19497
|
+
console.log('OptanonWrapper');
|
|
19498
|
+
if ((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && ((_a = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _a === void 0 ? void 0 : _a.length) > 2) {
|
|
19499
|
+
setIsShowCookieSetting(true);
|
|
19487
19500
|
}
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
|
|
19497
|
-
|
|
19498
|
-
|
|
19499
|
-
|
|
19500
|
-
|
|
19501
|
+
};
|
|
19502
|
+
const handleClick = (event) => {
|
|
19503
|
+
var _a, _b;
|
|
19504
|
+
const beForeactiveGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
19505
|
+
if (((_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('.ot-pc-refuse-all-handler')) || ((_b = event.target) === null || _b === void 0 ? void 0 : _b.closest('.save-preference-btn-handler'))) {
|
|
19506
|
+
window.OptanonWrapper = function () {
|
|
19507
|
+
var _a, _b;
|
|
19508
|
+
// 这里可以添加保存选择后的处理逻辑
|
|
19509
|
+
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
19510
|
+
if (!activeGroups)
|
|
19511
|
+
return;
|
|
19512
|
+
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19513
|
+
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
|
|
19514
|
+
setCookie('_fbp', fbcRef.current, 90);
|
|
19515
|
+
}
|
|
19516
|
+
}
|
|
19517
|
+
else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19518
|
+
fbcRef.current = getCookie('_fbc');
|
|
19519
|
+
deleteCookie('_fbc');
|
|
19520
|
+
const item = data[activeIndex];
|
|
19521
|
+
const traceInfo = ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || '';
|
|
19522
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19523
|
+
eventInfo: {
|
|
19524
|
+
eventSubject: 'refuseCookie',
|
|
19525
|
+
eventDescription: 'refuseCookie',
|
|
19526
|
+
traceInfo
|
|
19527
|
+
},
|
|
19528
|
+
isActiveTargetingCookie: false
|
|
19529
|
+
});
|
|
19530
|
+
}
|
|
19531
|
+
};
|
|
19501
19532
|
}
|
|
19502
19533
|
};
|
|
19534
|
+
document.addEventListener('click', handleClick);
|
|
19535
|
+
return () => {
|
|
19536
|
+
document.removeEventListener('click', handleClick);
|
|
19537
|
+
};
|
|
19503
19538
|
}, [globalConfig, bffEventReport, data, activeIndex]);
|
|
19504
19539
|
const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
|
|
19505
19540
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -19648,7 +19683,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
19648
19683
|
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
|
|
19649
19684
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19650
19685
|
openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
|
|
19651
|
-
|
|
19686
|
+
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: { position: 'fixed', bottom: 0, left: 0, right: 0, width: '100%', zIndex: 10, backgroundColor: '#000', fontSize: 0 } },
|
|
19652
19687
|
React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: { textDecoration: 'underline', width: 'fit-content', border: 'none', lineHeight: '24px', fontSize: '10px', color: '#fff', padding: '0 20px' } }, "Cookie settings")))));
|
|
19653
19688
|
};
|
|
19654
19689
|
var SxpPageRender$1 = React.memo(SxpPageRender);
|
|
@@ -19948,7 +19983,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
|
19948
19983
|
const CTA = (rec, index) => {
|
|
19949
19984
|
if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
|
|
19950
19985
|
return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
|
19951
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
|
|
19986
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
|
|
19952
19987
|
}
|
|
19953
19988
|
return null;
|
|
19954
19989
|
};
|
|
@@ -19961,8 +19996,10 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
|
|
|
19961
19996
|
React.createElement(Nudge, { nudge: nudge }),
|
|
19962
19997
|
CTA(rec, index),
|
|
19963
19998
|
React.createElement("div", null,
|
|
19964
|
-
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' }) })
|
|
19965
|
-
|
|
19999
|
+
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' }) }),
|
|
20000
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
|
|
20001
|
+
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 })),
|
|
20002
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
|
|
19966
20003
|
}
|
|
19967
20004
|
return null;
|
|
19968
20005
|
};
|
|
@@ -20352,21 +20389,10 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
|
20352
20389
|
return null;
|
|
20353
20390
|
}, [globalConfig]);
|
|
20354
20391
|
const renderBottom = (rec, index) => {
|
|
20355
|
-
var _a, _b, _c, _d
|
|
20392
|
+
var _a, _b, _c, _d;
|
|
20356
20393
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
|
20357
|
-
let cta = null;
|
|
20358
|
-
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) {
|
|
20359
|
-
cta = '多商品CTA';
|
|
20360
|
-
}
|
|
20361
|
-
else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
|
|
20362
|
-
cta = '商品CTA';
|
|
20363
|
-
}
|
|
20364
|
-
else {
|
|
20365
|
-
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;
|
|
20366
|
-
}
|
|
20367
|
-
const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
|
|
20368
20394
|
return (React.createElement(React.Fragment, null,
|
|
20369
|
-
((
|
|
20395
|
+
((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
|
|
20370
20396
|
background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
|
|
20371
20397
|
height: '130px',
|
|
20372
20398
|
position: 'absolute',
|
|
@@ -20377,7 +20403,7 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
|
20377
20403
|
pointerEvents
|
|
20378
20404
|
} })),
|
|
20379
20405
|
React.createElement("div", { style: {
|
|
20380
|
-
marginBottom: `${(
|
|
20406
|
+
marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
|
|
20381
20407
|
zIndex: 999,
|
|
20382
20408
|
position: 'absolute',
|
|
20383
20409
|
bottom: 0,
|
|
@@ -20386,15 +20412,15 @@ const DiyStoryPreview = React.forwardRef(({ data = [], globalConfig, tipText, nu
|
|
|
20386
20412
|
paddingTop: '20px'
|
|
20387
20413
|
} },
|
|
20388
20414
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
|
|
20389
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex
|
|
20415
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
|
|
20390
20416
|
React.createElement("div", null,
|
|
20391
20417
|
React.createElement(ExpandableText$1
|
|
20392
20418
|
// className='clc-sxp-bottom-text'
|
|
20393
20419
|
, {
|
|
20394
20420
|
// className='clc-sxp-bottom-text'
|
|
20395
|
-
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (
|
|
20396
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex
|
|
20397
|
-
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex
|
|
20421
|
+
isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none', padding: '0 20px', fontSize: '12px' }) }),
|
|
20422
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
|
|
20423
|
+
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
|
|
20398
20424
|
}
|
|
20399
20425
|
return null;
|
|
20400
20426
|
};
|