pb-sxp-ui 1.2.1 → 1.2.2
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 +112 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +63 -31
- package/dist/index.js +112 -69
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +112 -69
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +1 -0
- package/es/core/components/SxpPageRender/FingerSwipeTip/index.js +3 -3
- package/es/core/components/SxpPageRender/Hashtag/index.js +3 -1
- package/es/core/components/SxpPageRender/Navbar.js +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +13 -10
- package/es/core/components/SxpPageRender/WaterFall/List.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/es/core/components/SxpPageRender/index.d.ts +3 -0
- package/es/core/components/SxpPageRender/index.js +8 -8
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/cta/AniLink/index.js +27 -11
- package/es/materials/sxp/cta/AniLinkPopup/index.js +39 -22
- package/es/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/es/materials/sxp/template/Link/index.js +2 -2
- package/es/materials/sxp/template/components/Img.js +1 -1
- package/es/materials/sxp/template/components/settingRender.js +5 -0
- package/lib/core/components/SxpPageRender/FingerSwipeTip/index.d.ts +1 -0
- package/lib/core/components/SxpPageRender/FingerSwipeTip/index.js +3 -3
- package/lib/core/components/SxpPageRender/Hashtag/index.js +3 -1
- package/lib/core/components/SxpPageRender/Navbar.js +1 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +13 -10
- package/lib/core/components/SxpPageRender/WaterFall/List.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/lib/core/components/SxpPageRender/index.d.ts +3 -0
- package/lib/core/components/SxpPageRender/index.js +8 -8
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/cta/AniLink/index.js +26 -10
- package/lib/materials/sxp/cta/AniLinkPopup/index.js +38 -21
- package/lib/materials/sxp/popup/CommodityDetail/index.js +1 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/Link/index.js +2 -2
- package/lib/materials/sxp/template/components/Img.js +1 -1
- package/lib/materials/sxp/template/components/settingRender.js +5 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -679,12 +679,10 @@
|
|
679
679
|
word-wrap: break-word;
|
680
680
|
}
|
681
681
|
.index-module_one-line-ellipsis__buFw1 {
|
682
|
-
display: -webkit-box;
|
683
|
-
-webkit-box-orient: vertical;
|
684
|
-
-webkit-line-clamp: 1;
|
685
682
|
text-overflow: ellipsis;
|
686
683
|
overflow: hidden;
|
687
684
|
word-break: break-all;
|
685
|
+
white-space: nowrap;
|
688
686
|
}
|
689
687
|
|
690
688
|
.index-module_tow-line-ellipsis__yyHVb {
|
@@ -1085,44 +1083,80 @@
|
|
1085
1083
|
display: inline-block;
|
1086
1084
|
-webkit-animation-name: index-module_gradientCover__5iUag;
|
1087
1085
|
animation-name: index-module_gradientCover__5iUag;
|
1086
|
+
-webkit-transform: scaleX(0);
|
1087
|
+
transform: scaleX(0);
|
1088
|
+
-webkit-animation-fill-mode: forwards;
|
1089
|
+
animation-fill-mode: forwards;
|
1088
1090
|
}
|
1089
1091
|
|
1090
|
-
@-webkit-keyframes index-
|
1092
|
+
@-webkit-keyframes index-module_fadeIn__2E-dk {
|
1091
1093
|
0% {
|
1092
|
-
-webkit-transform:
|
1093
|
-
transform:
|
1094
|
+
-webkit-transform: var(--transY);
|
1095
|
+
transform: var(--transY);
|
1096
|
+
z-index: 1000;
|
1094
1097
|
}
|
1095
1098
|
100% {
|
1096
|
-
-webkit-transform:
|
1097
|
-
transform:
|
1099
|
+
-webkit-transform: translateY(0);
|
1100
|
+
transform: translateY(0);
|
1101
|
+
z-index: 1000;
|
1098
1102
|
}
|
1099
1103
|
}
|
1100
|
-
@keyframes index-
|
1104
|
+
@keyframes index-module_fadeIn__2E-dk {
|
1101
1105
|
0% {
|
1102
|
-
-webkit-transform:
|
1103
|
-
transform:
|
1106
|
+
-webkit-transform: var(--transY);
|
1107
|
+
transform: var(--transY);
|
1108
|
+
z-index: 1000;
|
1104
1109
|
}
|
1105
1110
|
100% {
|
1106
|
-
-webkit-transform:
|
1107
|
-
transform:
|
1111
|
+
-webkit-transform: translateY(0);
|
1112
|
+
transform: translateY(0);
|
1113
|
+
z-index: 1000;
|
1108
1114
|
}
|
1109
1115
|
}
|
1110
|
-
|
1111
|
-
|
1116
|
+
@-webkit-keyframes index-module_fadeOut__MgevT {
|
1117
|
+
0% {
|
1118
|
+
-webkit-transform: translateY(0);
|
1119
|
+
transform: translateY(0);
|
1120
|
+
}
|
1121
|
+
100% {
|
1122
|
+
-webkit-transform: var(--transY);
|
1123
|
+
transform: var(--transY);
|
1124
|
+
z-index: -1;
|
1125
|
+
}
|
1112
1126
|
}
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1127
|
+
@keyframes index-module_fadeOut__MgevT {
|
1128
|
+
0% {
|
1129
|
+
-webkit-transform: translateY(0);
|
1130
|
+
transform: translateY(0);
|
1131
|
+
}
|
1132
|
+
100% {
|
1133
|
+
-webkit-transform: var(--transY);
|
1134
|
+
transform: var(--transY);
|
1135
|
+
z-index: -1;
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
.index-module_aniLinkPopup__YT7kj {
|
1116
1139
|
position: absolute;
|
1117
|
-
|
1140
|
+
right: 0;
|
1141
|
+
bottom: 0;
|
1142
|
+
-webkit-animation-fill-mode: forwards;
|
1143
|
+
animation-fill-mode: forwards;
|
1144
|
+
-webkit-transform: var(--transY);
|
1145
|
+
transform: var(--transY);
|
1146
|
+
}
|
1147
|
+
.index-module_animated-fadeIn__8ZCbq {
|
1148
|
+
-webkit-animation-name: index-module_fadeIn__2E-dk;
|
1149
|
+
animation-name: index-module_fadeIn__2E-dk;
|
1150
|
+
-webkit-transform: var(--transY);
|
1151
|
+
transform: var(--transY);
|
1118
1152
|
z-index: -1;
|
1119
|
-
|
1120
|
-
|
1121
|
-
-webkit-
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1153
|
+
}
|
1154
|
+
.index-module_animated-fadeOut__iK4oc {
|
1155
|
+
-webkit-animation-name: index-module_fadeOut__MgevT;
|
1156
|
+
animation-name: index-module_fadeOut__MgevT;
|
1157
|
+
-webkit-transform: translateY(0);
|
1158
|
+
transform: translateY(0);
|
1159
|
+
z-index: 1000;
|
1126
1160
|
}
|
1127
1161
|
.index-module_tow-line-ellipsis__GKFXr {
|
1128
1162
|
display: -webkit-box;
|
@@ -1773,7 +1807,7 @@ button.swiper-pagination-bullet {
|
|
1773
1807
|
bottom: 0;
|
1774
1808
|
left: 0;
|
1775
1809
|
right: 0;
|
1776
|
-
padding: 20px
|
1810
|
+
padding-top: 20px;
|
1777
1811
|
}
|
1778
1812
|
.clc-sxp-bottom-nudge {
|
1779
1813
|
display: -webkit-box;
|
@@ -1796,9 +1830,6 @@ button.swiper-pagination-bullet {
|
|
1796
1830
|
padding: 0 20px;
|
1797
1831
|
font-size: 14px;
|
1798
1832
|
}
|
1799
|
-
.clc-sxp-bottom-hashtag {
|
1800
|
-
margin-top: 16px;
|
1801
|
-
}
|
1802
1833
|
.clc-sxp-bottom-hashtag-item {
|
1803
1834
|
width: auto;
|
1804
1835
|
height: 26px;
|
@@ -1809,7 +1840,6 @@ button.swiper-pagination-bullet {
|
|
1809
1840
|
padding: 0 10px;
|
1810
1841
|
font-size: 10px;
|
1811
1842
|
margin-right: 8px;
|
1812
|
-
margin-bottom: 20px;
|
1813
1843
|
cursor: pointer;
|
1814
1844
|
}
|
1815
1845
|
.clc-sxp-bottom-shadow {
|
@@ -1850,6 +1880,8 @@ button.swiper-pagination-bullet {
|
|
1850
1880
|
}
|
1851
1881
|
.clc-sxp-nav-title {
|
1852
1882
|
font-size: 16px;
|
1883
|
+
width: 100%;
|
1884
|
+
text-align: center;
|
1853
1885
|
}
|
1854
1886
|
.clc-pb-video-pause {
|
1855
1887
|
position: absolute;
|
package/dist/index.js
CHANGED
@@ -8966,7 +8966,7 @@ const CommodityDetail$1 = (_a) => {
|
|
8966
8966
|
width: '100%',
|
8967
8967
|
objectFit: 'cover',
|
8968
8968
|
display: 'block',
|
8969
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
8969
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
8970
8970
|
}, src: src }))));
|
8971
8971
|
}))))),
|
8972
8972
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
|
@@ -9694,7 +9694,7 @@ Made in Italy` })));
|
|
9694
9694
|
width: '100%',
|
9695
9695
|
objectFit: 'cover',
|
9696
9696
|
display: 'block',
|
9697
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
9697
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9698
9698
|
}, src: src }))));
|
9699
9699
|
}))),
|
9700
9700
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css({
|
@@ -10080,7 +10080,7 @@ function useOnScreen(ref) {
|
|
10080
10080
|
* @Author: binruan@chatlabs.com
|
10081
10081
|
* @Date: 2024-01-16 14:50:13
|
10082
10082
|
* @LastEditors: binruan@chatlabs.com
|
10083
|
-
* @LastEditTime: 2024-
|
10083
|
+
* @LastEditTime: 2024-07-04 18:13:23
|
10084
10084
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
10085
10085
|
*
|
10086
10086
|
*/
|
@@ -10101,7 +10101,7 @@ const Img = ({ src, rec, item, index, style, translateY, imgStyle }) => {
|
|
10101
10101
|
}, [src]);
|
10102
10102
|
return (React.createElement("div", { className: css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
|
10103
10103
|
React.createElement("div", { ref: ref, hidden: !src, className: css({ width: '100%', height: '100%' }) },
|
10104
|
-
React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ?
|
10104
|
+
React.createElement(FormatImage$1, { className: css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
|
10105
10105
|
};
|
10106
10106
|
var Img$1 = memo(Img);
|
10107
10107
|
|
@@ -10271,7 +10271,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
|
|
10271
10271
|
* @Author: binruan@chatlabs.com
|
10272
10272
|
* @Date: 2024-03-26 16:50:25
|
10273
10273
|
* @LastEditors: binruan@chatlabs.com
|
10274
|
-
* @LastEditTime: 2024-
|
10274
|
+
* @LastEditTime: 2024-07-04 17:47:52
|
10275
10275
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
10276
10276
|
*
|
10277
10277
|
*/
|
@@ -10516,6 +10516,11 @@ var settingRender$4 = [
|
|
10516
10516
|
label: '对齐',
|
10517
10517
|
type: 'TextAlign',
|
10518
10518
|
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
10519
|
+
},
|
10520
|
+
{
|
10521
|
+
label: '间距',
|
10522
|
+
type: 'TextSpace',
|
10523
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
10519
10524
|
}
|
10520
10525
|
]
|
10521
10526
|
}
|
@@ -10828,7 +10833,7 @@ const Link$1 = (_a) => {
|
|
10828
10833
|
overflow: 'hidden'
|
10829
10834
|
}) },
|
10830
10835
|
React.createElement("div", null,
|
10831
|
-
React.createElement("div", { className:
|
10836
|
+
React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10832
10837
|
__html: setFontForText((_h = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _h !== void 0 ? _h : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
10833
10838
|
} }),
|
10834
10839
|
(customTitle === null || customTitle === void 0 ? void 0 : customTitle.display) && (React.createElement("div", { style: Object.assign(Object.assign({}, customTitle === null || customTitle === void 0 ? void 0 : customTitle.style), { lineHeight: ((_j = customTitle === null || customTitle === void 0 ? void 0 : customTitle.style) === null || _j === void 0 ? void 0 : _j.height) + 'px' }), className: styles$7['one-line-ellipsis'], dangerouslySetInnerHTML: {
|
@@ -11656,7 +11661,7 @@ var settingRender$3 = [
|
|
11656
11661
|
* @Author: binruan@chatlabs.com
|
11657
11662
|
* @Date: 2023-12-26 16:11:34
|
11658
11663
|
* @LastEditors: binruan@chatlabs.com
|
11659
|
-
* @LastEditTime: 2024-
|
11664
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
11660
11665
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
11661
11666
|
*
|
11662
11667
|
*/
|
@@ -11665,7 +11670,7 @@ const Navbar = ({ icon, styles, textStyle, onClose }) => {
|
|
11665
11670
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11666
11671
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11667
11672
|
React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
|
11668
|
-
React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
|
11673
|
+
React.createElement("div", { className: 'clc-sxp-nav-title', style: Object.assign(Object.assign({}, textStyle), { paddingLeft: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.textAlign) === 'left' ? '35px' : 0 }), dangerouslySetInnerHTML: {
|
11669
11674
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11670
11675
|
} })));
|
11671
11676
|
};
|
@@ -13260,7 +13265,7 @@ function WaterfallList$1(_a) {
|
|
13260
13265
|
var _a, _b;
|
13261
13266
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
13262
13267
|
reportTagsView();
|
13263
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
13268
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
13264
13269
|
}
|
13265
13270
|
};
|
13266
13271
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13495,7 +13500,7 @@ function WaterfallList(_a) {
|
|
13495
13500
|
var _a, _b;
|
13496
13501
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
13497
13502
|
reportTagsView();
|
13498
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
13503
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
13499
13504
|
}
|
13500
13505
|
};
|
13501
13506
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13648,7 +13653,7 @@ var HashTagComponent = memo(HashTag$1);
|
|
13648
13653
|
* @Author: binruan@chatlabs.com
|
13649
13654
|
* @Date: 2023-07-28 18:29:57
|
13650
13655
|
* @LastEditors: binruan@chatlabs.com
|
13651
|
-
* @LastEditTime: 2024-04
|
13656
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
13652
13657
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
13653
13658
|
*
|
13654
13659
|
*/
|
@@ -13668,7 +13673,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
13668
13673
|
textStyles: {
|
13669
13674
|
hashTagTitle: {
|
13670
13675
|
fontSize: 16,
|
13671
|
-
color: '#000'
|
13676
|
+
color: '#000',
|
13677
|
+
textAlign: 'center'
|
13672
13678
|
},
|
13673
13679
|
hashTagDesc: {
|
13674
13680
|
fontSize: 12,
|
@@ -13908,16 +13914,17 @@ var settingRender$1 = [
|
|
13908
13914
|
var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradientCover":"index-module_gradientCover__5iUag"};
|
13909
13915
|
|
13910
13916
|
const AniLink$1 = (_a) => {
|
13911
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13917
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
13912
13918
|
var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink"]);
|
13913
13919
|
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
13914
13920
|
const { jumpToWeb } = useEventReport();
|
13921
|
+
const [visible, setVisible] = useState(false);
|
13915
13922
|
const ref = useRef(null);
|
13916
13923
|
const isOnScreen = useOnScreen(ref);
|
13917
13924
|
const cta = ((_d = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.bindCta) || ((_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.bindCta) || ((_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.bindCta);
|
13918
13925
|
const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
|
13919
13926
|
const handleTo = () => {
|
13920
|
-
var _a, _b, _c;
|
13927
|
+
var _a, _b, _c, _d;
|
13921
13928
|
const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
|
13922
13929
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
13923
13930
|
eventSubject: 'clickCta',
|
@@ -13925,12 +13932,18 @@ const AniLink$1 = (_a) => {
|
|
13925
13932
|
}, recData, item, index);
|
13926
13933
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
13927
13934
|
if (isExternalLink) {
|
13928
|
-
|
13935
|
+
const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
|
13936
|
+
if (link) {
|
13937
|
+
jumpToWeb(recData, product, cta, index);
|
13938
|
+
window.location.href = window.getJointUtmLink(link);
|
13939
|
+
}
|
13940
|
+
}
|
13941
|
+
else {
|
13942
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
13929
13943
|
}
|
13930
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
13931
13944
|
};
|
13932
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.
|
13933
|
-
const
|
13945
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
|
13946
|
+
const aniTimStyle = useMemo(() => {
|
13934
13947
|
var _a, _b;
|
13935
13948
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
13936
13949
|
if (ani) {
|
@@ -13952,10 +13965,19 @@ const AniLink$1 = (_a) => {
|
|
13952
13965
|
}, recData, product, index);
|
13953
13966
|
}
|
13954
13967
|
}, [isOnScreen]);
|
13955
|
-
|
13956
|
-
|
13957
|
-
|
13958
|
-
|
13968
|
+
useEffect(() => {
|
13969
|
+
if (isOnScreen) {
|
13970
|
+
setVisible(true);
|
13971
|
+
}
|
13972
|
+
}, [isOnScreen]);
|
13973
|
+
const aniNamStyle = useMemo(() => {
|
13974
|
+
if (!visible)
|
13975
|
+
return null;
|
13976
|
+
return styles$1['animated-button'];
|
13977
|
+
}, [visible]);
|
13978
|
+
return (React.createElement("div", Object.assign({ ref: ref, style: Object.assign(Object.assign(Object.assign({}, style), ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: `${(_l = style === null || style === void 0 ? void 0 : style.height) !== null && _l !== void 0 ? _l : 0}px` }) }, props, { className: `${aniNamStyle} ${css(aniTimStyle)} one-line-ellipsis`, onClick: handleTo, dangerouslySetInnerHTML: {
|
13979
|
+
__html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
13980
|
+
} })));
|
13959
13981
|
};
|
13960
13982
|
var AniLinkComponent = memo(AniLink$1);
|
13961
13983
|
|
@@ -14318,19 +14340,23 @@ var settingRender = [
|
|
14318
14340
|
}
|
14319
14341
|
];
|
14320
14342
|
|
14321
|
-
var styles = {"animated-
|
14343
|
+
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","tow-line-ellipsis":"index-module_tow-line-ellipsis__GKFXr","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
|
14322
14344
|
|
14323
14345
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
14324
14346
|
const AniLinkPopup$1 = (_a) => {
|
14325
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
14347
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
14326
14348
|
var { style, recData, ctaTempStyles, index, event, bottom_image, translateY, isTel, onClick, isExternalLink = false } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "bottom_image", "translateY", "isTel", "onClick", "isExternalLink"]);
|
14349
|
+
style === null || style === void 0 ? true : delete style.transform;
|
14327
14350
|
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
14328
14351
|
const { jumpToWeb } = useEventReport();
|
14329
|
-
const
|
14352
|
+
const ref = useRef(null);
|
14353
|
+
const isOnScreen = useOnScreen(ref);
|
14354
|
+
const [visible, setVisible] = useState(false);
|
14355
|
+
const [startAni, setStartAni] = useState(true);
|
14330
14356
|
const cta = ((_d = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.bindCta) || ((_f = (_e = recData === null || recData === void 0 ? void 0 : recData.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.bindCta) || ((_g = recData === null || recData === void 0 ? void 0 : recData.video) === null || _g === void 0 ? void 0 : _g.bindCta);
|
14331
14357
|
const product = ((_j = (_h = recData === null || recData === void 0 ? void 0 : recData.video) === null || _h === void 0 ? void 0 : _h.bindProducts) === null || _j === void 0 ? void 0 : _j[0]) || ((_k = recData === null || recData === void 0 ? void 0 : recData.video) === null || _k === void 0 ? void 0 : _k.bindProduct);
|
14332
14358
|
const handleTo = () => {
|
14333
|
-
var _a, _b, _c;
|
14359
|
+
var _a, _b, _c, _d;
|
14334
14360
|
const item = ((_b = (_a = recData === null || recData === void 0 ? void 0 : recData.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b[0]) || ((_c = recData === null || recData === void 0 ? void 0 : recData.video) === null || _c === void 0 ? void 0 : _c.bindProduct) || (recData === null || recData === void 0 ? void 0 : recData.video);
|
14335
14361
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
14336
14362
|
eventSubject: 'clickCta',
|
@@ -14338,42 +14364,54 @@ const AniLinkPopup$1 = (_a) => {
|
|
14338
14364
|
}, recData, item, index);
|
14339
14365
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
14340
14366
|
if (isExternalLink) {
|
14341
|
-
|
14367
|
+
const link = (product === null || product === void 0 ? void 0 : product.link) || ((_d = item === null || item === void 0 ? void 0 : item.bindCta) === null || _d === void 0 ? void 0 : _d.link);
|
14368
|
+
if (link) {
|
14369
|
+
jumpToWeb(recData, product, cta, index);
|
14370
|
+
window.location.href = window.getJointUtmLink(link);
|
14371
|
+
}
|
14372
|
+
}
|
14373
|
+
else {
|
14374
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14342
14375
|
}
|
14343
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14344
14376
|
};
|
14345
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.
|
14346
|
-
const
|
14347
|
-
var _a, _b;
|
14377
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
|
14378
|
+
const aniTimStyle = useMemo(() => {
|
14348
14379
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
14349
14380
|
if (ani) {
|
14350
|
-
const { delay, duration
|
14381
|
+
const { delay, duration } = ani;
|
14351
14382
|
return {
|
14352
|
-
|
14353
|
-
|
14354
|
-
animationDuration: `${(_b = duration / 1000) !== null && _b !== void 0 ? _b : 0}s`,
|
14355
|
-
backgroundColor: `${backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'transparent'}`
|
14356
|
-
}
|
14383
|
+
animationDelay: `${delay ? delay / 1000 : 0}s`,
|
14384
|
+
animationDuration: `${duration ? duration / 1000 : 0}s`
|
14357
14385
|
};
|
14358
14386
|
}
|
14359
14387
|
}, [event === null || event === void 0 ? void 0 : event.animation]);
|
14360
14388
|
const src = (_q = (_p = (_o = (_l = product === null || product === void 0 ? void 0 : product.cover) !== null && _l !== void 0 ? _l : (_m = product === null || product === void 0 ? void 0 : product.homePage) === null || _m === void 0 ? void 0 : _m[0]) !== null && _o !== void 0 ? _o : cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _p !== void 0 ? _p : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _q !== void 0 ? _q : bottom_image;
|
14361
14389
|
const onClose = (event) => {
|
14362
14390
|
event.stopPropagation();
|
14363
|
-
|
14391
|
+
setStartAni(false);
|
14364
14392
|
};
|
14393
|
+
useEffect(() => {
|
14394
|
+
if (isOnScreen) {
|
14395
|
+
setVisible(true);
|
14396
|
+
}
|
14397
|
+
}, [isOnScreen]);
|
14398
|
+
const aniNamStyle = useMemo(() => {
|
14399
|
+
if (!visible)
|
14400
|
+
return null;
|
14401
|
+
return startAni ? styles['animated-fadeIn'] : styles['animated-fadeOut'];
|
14402
|
+
}, [visible, startAni]);
|
14365
14403
|
return (React.createElement(React.Fragment, null, isTel ? (React.createElement("div", { style: {
|
14366
14404
|
height: '40px',
|
14367
14405
|
lineHeight: '40px',
|
14368
14406
|
paddingLeft: '6px'
|
14369
|
-
} }, "Cta Title")) : (React.createElement("div", Object.assign({
|
14370
|
-
React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (
|
14371
|
-
React.createElement("img", { src: (
|
14372
|
-
React.createElement(Img$1, { src: src, rec: recData, item: (
|
14407
|
+
} }, "Cta Title")) : (React.createElement("div", Object.assign({ ref: ref }, props, { className: `${css(Object.assign(Object.assign({}, style), { '--transY': `translateY(calc(100% + ${(_r = style === null || style === void 0 ? void 0 : style.margin) !== null && _r !== void 0 ? _r : 0}px))` }))} ${styles['aniLinkPopup']} ${aniNamStyle} ${css(aniTimStyle)}`, onClick: handleTo }),
|
14408
|
+
React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_s = style === null || style === void 0 ? void 0 : style['padding']) !== null && _s !== void 0 ? _s : 0 } },
|
14409
|
+
React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
|
14410
|
+
React.createElement(Img$1, { src: src, rec: recData, item: (_y = (_w = (_v = (_u = recData === null || recData === void 0 ? void 0 : recData.video) === null || _u === void 0 ? void 0 : _u.bindProducts) === null || _v === void 0 ? void 0 : _v[0]) !== null && _w !== void 0 ? _w : (_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.bindProduct) !== null && _y !== void 0 ? _y : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
|
14373
14411
|
React.createElement("div", { hidden: !!recData && !(product === null || product === void 0 ? void 0 : product.title), className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
|
14374
|
-
__html: setFontForText((
|
14412
|
+
__html: setFontForText((_z = product === null || product === void 0 ? void 0 : product.title) !== null && _z !== void 0 ? _z : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
|
14375
14413
|
} }),
|
14376
|
-
React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((
|
14414
|
+
React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_0 = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _0 === void 0 ? void 0 : _0.height) + 'px' }), dangerouslySetInnerHTML: {
|
14377
14415
|
__html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
14378
14416
|
} })))));
|
14379
14417
|
};
|
@@ -14819,20 +14857,23 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
14819
14857
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
14820
14858
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
14821
14859
|
return () => {
|
14822
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
14860
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
14861
|
+
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
14862
|
+
if (!isPause)
|
14863
|
+
handlePause();
|
14823
14864
|
if (hls)
|
14824
14865
|
hls === null || hls === void 0 ? void 0 : hls.destroy();
|
14825
14866
|
setIsLoadFinish(false);
|
14826
|
-
(
|
14827
|
-
(
|
14828
|
-
(
|
14829
|
-
(
|
14830
|
-
(
|
14831
|
-
(
|
14832
|
-
(
|
14833
|
-
(
|
14867
|
+
(_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('loadedmetadata', handleLoadedmetadata);
|
14868
|
+
(_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('loadeddata', handLoadeddata);
|
14869
|
+
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('play', handleStartPlay);
|
14870
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('playing', handlePlaying);
|
14871
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('pause', handlePause);
|
14872
|
+
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('ended', handlePlay);
|
14873
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('canplay', handlePlay);
|
14874
|
+
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('waiting', handleWaiting);
|
14834
14875
|
};
|
14835
|
-
}, [isActive, videoId, rec]);
|
14876
|
+
}, [isActive, videoId, rec, handlePause]);
|
14836
14877
|
useEffect(() => {
|
14837
14878
|
var _a, _b;
|
14838
14879
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || !isLoadFinish)
|
@@ -14978,23 +15019,23 @@ var ToggleButton$1 = memo(ToggleButton);
|
|
14978
15019
|
* @Author: binruan@chatlabs.com
|
14979
15020
|
* @Date: 2024-01-15 19:03:09
|
14980
15021
|
* @LastEditors: binruan@chatlabs.com
|
14981
|
-
* @LastEditTime: 2024-
|
15022
|
+
* @LastEditTime: 2024-07-11 18:19:29
|
14982
15023
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FingerSwipeTip\index.tsx
|
14983
15024
|
*
|
14984
15025
|
*/
|
14985
|
-
const FingerSwipeTip = ({ imageUrl, style }) => {
|
15026
|
+
const FingerSwipeTip = ({ imageUrl, style, duration = 2000 }) => {
|
14986
15027
|
const [show, setShow] = useState(true);
|
14987
15028
|
useEditor();
|
14988
15029
|
useEffect(() => {
|
14989
15030
|
setTimeout(() => {
|
14990
15031
|
setShow(false);
|
14991
|
-
},
|
15032
|
+
}, duration);
|
14992
15033
|
}, []);
|
14993
15034
|
const FINGER_SWIPE_ICON = useIconLink('/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png');
|
14994
15035
|
const animationCls = useMemo(() => {
|
14995
15036
|
return show ? 'pb-fadeIn' : 'pb-fadeOut';
|
14996
15037
|
}, [show]);
|
14997
|
-
return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: style },
|
15038
|
+
return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: Object.assign(Object.assign({}, style), { animationDuration: `${duration / 1000}s` }) },
|
14998
15039
|
React.createElement("img", { src: imageUrl || FINGER_SWIPE_ICON, alt: 'finger swiper' })));
|
14999
15040
|
};
|
15000
15041
|
|
@@ -15098,11 +15139,12 @@ var PictureGroup$3 = memo(PictureGroup$2);
|
|
15098
15139
|
* @Author: binruan@chatlabs.com
|
15099
15140
|
* @Date: 2024-01-15 19:03:09
|
15100
15141
|
* @LastEditors: binruan@chatlabs.com
|
15101
|
-
* @LastEditTime: 2024-
|
15142
|
+
* @LastEditTime: 2024-07-09 18:47:05
|
15102
15143
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
15103
15144
|
*
|
15104
15145
|
*/
|
15105
15146
|
const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
15147
|
+
var _a;
|
15106
15148
|
const [isShowMore, setIsShowMore] = useState(false);
|
15107
15149
|
const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
|
15108
15150
|
const handleClickTag = (data) => {
|
@@ -15134,7 +15176,8 @@ const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
|
15134
15176
|
}
|
15135
15177
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
15136
15178
|
}, [isShowMore, tags]);
|
15137
|
-
|
15179
|
+
console.log(hashTagStyle, '111');
|
15180
|
+
return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: { marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px` } },
|
15138
15181
|
React.createElement(Scroll$1, null, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item) },
|
15139
15182
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
15140
15183
|
};
|
@@ -15338,7 +15381,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
15338
15381
|
* @Author: binruan@chatlabs.com
|
15339
15382
|
* @Date: 2024-01-15 19:03:09
|
15340
15383
|
* @LastEditors: binruan@chatlabs.com
|
15341
|
-
* @LastEditTime: 2024-07-
|
15384
|
+
* @LastEditTime: 2024-07-24 14:59:23
|
15342
15385
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
15343
15386
|
*
|
15344
15387
|
*/
|
@@ -15544,18 +15587,18 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15544
15587
|
};
|
15545
15588
|
}, [isShowMore]);
|
15546
15589
|
const renderBottom = useCallback((rec, index) => {
|
15547
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
15590
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
15548
15591
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
15549
15592
|
return (React.createElement(React.Fragment, null,
|
15550
15593
|
((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
|
15551
|
-
React.createElement("div", { className: 'clc-sxp-bottom' },
|
15594
|
+
React.createElement("div", { className: 'clc-sxp-bottom', style: { paddingBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px` } },
|
15552
15595
|
React.createElement(Nudge, { nudge: nudge }),
|
15553
15596
|
(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
|
15554
15597
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
|
15555
15598
|
React.createElement("div", null,
|
15556
|
-
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: (
|
15599
|
+
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: (_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' }), onChange: onExpandableChange }),
|
15557
15600
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'] }),
|
15558
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
15601
|
+
React.createElement(Hashtag$1, { index: activeIndex, tags: (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.hashTags) !== null && _f !== void 0 ? _f : [], itemId: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId, itemType: ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))),
|
15559
15602
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'] })));
|
15560
15603
|
}
|
15561
15604
|
return null;
|
@@ -15737,7 +15780,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15737
15780
|
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } })));
|
15738
15781
|
}
|
15739
15782
|
return visList === null || visList === void 0 ? void 0 : visList.map((rec, index) => {
|
15740
|
-
return (React.createElement(SwiperSlide, { key: index, virtualIndex: index }, rec && (React.createElement(React.Fragment, null, (rec === null || rec === void 0 ? void 0 : rec.loading) ? (React.createElement("div", { style: {
|
15783
|
+
return (React.createElement(SwiperSlide, { key: index, virtualIndex: index, style: { overflow: 'hidden' } }, rec && (React.createElement(React.Fragment, null, (rec === null || rec === void 0 ? void 0 : rec.loading) ? (React.createElement("div", { style: {
|
15741
15784
|
height,
|
15742
15785
|
width: containerWidth,
|
15743
15786
|
display: 'flex',
|
@@ -15760,7 +15803,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15760
15803
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
15761
15804
|
top: minusHeight
|
15762
15805
|
} }),
|
15763
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
15806
|
+
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50 - ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipOffset) !== null && _a !== void 0 ? _a : 0)}%` }, duration: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swiperTipAniDur })) : null,
|
15764
15807
|
React.createElement(Swiper, { style: {
|
15765
15808
|
marginTop: tagHeight
|
15766
15809
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -15785,13 +15828,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
15785
15828
|
}
|
15786
15829
|
}
|
15787
15830
|
}, direction: 'vertical', height: height },
|
15788
|
-
React.createElement(ToggleButton$1, { style: {
|
15831
|
+
((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowMute) === true) && (React.createElement(ToggleButton$1, { style: {
|
15789
15832
|
position: 'fixed',
|
15790
15833
|
visibility: ((_c = (_b = data === null || data === void 0 ? void 0 : data[activeIndex]) === null || _b === void 0 ? void 0 : _b.video) === null || _c === void 0 ? void 0 : _c.url) ? 'visible' : 'hidden',
|
15791
15834
|
zIndex: 999,
|
15792
15835
|
[(_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconXPosit) !== null && _d !== void 0 ? _d : 'right']: (_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconX) !== null && _e !== void 0 ? _e : 0,
|
15793
15836
|
[(_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) !== null && _f !== void 0 ? _f : 'bottom']: (_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconY) !== null && _g !== void 0 ? _g : 23
|
15794
|
-
}, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted }),
|
15837
|
+
}, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted })),
|
15795
15838
|
renderView),
|
15796
15839
|
React.createElement(WaterFall$1, Object.assign({}, (_k = (_j = (_h = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.item) === null || _k === void 0 ? void 0 : _k.props))));
|
15797
15840
|
};
|