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/pb-ui.js
CHANGED
@@ -8981,7 +8981,7 @@
|
|
8981
8981
|
width: '100%',
|
8982
8982
|
objectFit: 'cover',
|
8983
8983
|
display: 'block',
|
8984
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
8984
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
8985
8985
|
}, src: src }))));
|
8986
8986
|
}))))),
|
8987
8987
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -9709,7 +9709,7 @@ Made in Italy` })));
|
|
9709
9709
|
width: '100%',
|
9710
9710
|
objectFit: 'cover',
|
9711
9711
|
display: 'block',
|
9712
|
-
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ?
|
9712
|
+
objectPosition: `50% ${(swiper === null || swiper === void 0 ? void 0 : swiper.translateY) ? (swiper === null || swiper === void 0 ? void 0 : swiper.translateY) + 50 : 50}%`
|
9713
9713
|
}, src: src }))));
|
9714
9714
|
}))),
|
9715
9715
|
!((_j = product === null || product === void 0 ? void 0 : product.homePage) === null || _j === void 0 ? void 0 : _j.length) && (React.createElement("div", { className: css.css({
|
@@ -10095,7 +10095,7 @@ Made in Italy` })));
|
|
10095
10095
|
* @Author: binruan@chatlabs.com
|
10096
10096
|
* @Date: 2024-01-16 14:50:13
|
10097
10097
|
* @LastEditors: binruan@chatlabs.com
|
10098
|
-
* @LastEditTime: 2024-
|
10098
|
+
* @LastEditTime: 2024-07-04 18:13:23
|
10099
10099
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\Img.tsx
|
10100
10100
|
*
|
10101
10101
|
*/
|
@@ -10116,7 +10116,7 @@ Made in Italy` })));
|
|
10116
10116
|
}, [src]);
|
10117
10117
|
return (React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, imgStyle)) },
|
10118
10118
|
React.createElement("div", { ref: ref, hidden: !src, className: css.css({ width: '100%', height: '100%' }) },
|
10119
|
-
React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ?
|
10119
|
+
React.createElement(FormatImage$1, { className: css.css(Object.assign({ width: '100%', objectFit: 'cover', height: '100%', display: 'block', objectPosition: `50% ${translateY ? translateY + 50 : 50}%` }, style)), src: src }))));
|
10120
10120
|
};
|
10121
10121
|
var Img$1 = React.memo(Img);
|
10122
10122
|
|
@@ -10286,7 +10286,7 @@ Made in Italy` })));
|
|
10286
10286
|
* @Author: binruan@chatlabs.com
|
10287
10287
|
* @Date: 2024-03-26 16:50:25
|
10288
10288
|
* @LastEditors: binruan@chatlabs.com
|
10289
|
-
* @LastEditTime: 2024-
|
10289
|
+
* @LastEditTime: 2024-07-04 17:47:52
|
10290
10290
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
10291
10291
|
*
|
10292
10292
|
*/
|
@@ -10531,6 +10531,11 @@ Made in Italy` })));
|
|
10531
10531
|
label: '对齐',
|
10532
10532
|
type: 'TextAlign',
|
10533
10533
|
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
10534
|
+
},
|
10535
|
+
{
|
10536
|
+
label: '间距',
|
10537
|
+
type: 'TextSpace',
|
10538
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle']
|
10534
10539
|
}
|
10535
10540
|
]
|
10536
10541
|
}
|
@@ -10843,7 +10848,7 @@ Made in Italy` })));
|
|
10843
10848
|
overflow: 'hidden'
|
10844
10849
|
}) },
|
10845
10850
|
React.createElement("div", null,
|
10846
|
-
React.createElement("div", { className:
|
10851
|
+
React.createElement("div", { className: styles$7['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle, dangerouslySetInnerHTML: {
|
10847
10852
|
__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)
|
10848
10853
|
} }),
|
10849
10854
|
(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: {
|
@@ -11671,7 +11676,7 @@ Made in Italy` })));
|
|
11671
11676
|
* @Author: binruan@chatlabs.com
|
11672
11677
|
* @Date: 2023-12-26 16:11:34
|
11673
11678
|
* @LastEditors: binruan@chatlabs.com
|
11674
|
-
* @LastEditTime: 2024-
|
11679
|
+
* @LastEditTime: 2024-07-04 18:34:18
|
11675
11680
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Navbar.tsx
|
11676
11681
|
*
|
11677
11682
|
*/
|
@@ -11680,7 +11685,7 @@ Made in Italy` })));
|
|
11680
11685
|
const { waterFallData, setOpenHashtag } = useSxpDataSource();
|
11681
11686
|
return (React.createElement("div", { className: 'clc-sxp-nav', style: styles },
|
11682
11687
|
React.createElement("img", { className: 'clc-sxp-nav-left', src: icon, alt: 'back button', onClick: onClose }),
|
11683
|
-
React.createElement("div", { className: 'clc-sxp-nav-title', style: textStyle, dangerouslySetInnerHTML: {
|
11688
|
+
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: {
|
11684
11689
|
__html: setFontForText(`#${(_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag) !== null && _a !== void 0 ? _a : '标题'}`, textStyle)
|
11685
11690
|
} })));
|
11686
11691
|
};
|
@@ -13275,7 +13280,7 @@ Made in Italy` })));
|
|
13275
13280
|
var _a, _b;
|
13276
13281
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
13277
13282
|
reportTagsView();
|
13278
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
13283
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
13279
13284
|
}
|
13280
13285
|
};
|
13281
13286
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13510,7 +13515,7 @@ Made in Italy` })));
|
|
13510
13515
|
var _a, _b;
|
13511
13516
|
if ((_a = data === null || data === void 0 ? void 0 : data.tag) === null || _a === void 0 ? void 0 : _a.link) {
|
13512
13517
|
reportTagsView();
|
13513
|
-
window.location.href = (_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link;
|
13518
|
+
window.location.href = window.getJointUtmLink((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.link);
|
13514
13519
|
}
|
13515
13520
|
};
|
13516
13521
|
return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
@@ -13663,7 +13668,7 @@ Made in Italy` })));
|
|
13663
13668
|
* @Author: binruan@chatlabs.com
|
13664
13669
|
* @Date: 2023-07-28 18:29:57
|
13665
13670
|
* @LastEditors: binruan@chatlabs.com
|
13666
|
-
* @LastEditTime: 2024-04
|
13671
|
+
* @LastEditTime: 2024-07-04 18:38:10
|
13667
13672
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\material.tsx
|
13668
13673
|
*
|
13669
13674
|
*/
|
@@ -13683,7 +13688,8 @@ Made in Italy` })));
|
|
13683
13688
|
textStyles: {
|
13684
13689
|
hashTagTitle: {
|
13685
13690
|
fontSize: 16,
|
13686
|
-
color: '#000'
|
13691
|
+
color: '#000',
|
13692
|
+
textAlign: 'center'
|
13687
13693
|
},
|
13688
13694
|
hashTagDesc: {
|
13689
13695
|
fontSize: 12,
|
@@ -13923,16 +13929,17 @@ Made in Italy` })));
|
|
13923
13929
|
var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradientCover":"index-module_gradientCover__5iUag"};
|
13924
13930
|
|
13925
13931
|
const AniLink$1 = (_a) => {
|
13926
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
13932
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
13927
13933
|
var { style, recData, ctaTempStyles, index, event, onClick, isExternalLink = false } = _a, props = __rest(_a, ["style", "recData", "ctaTempStyles", "index", "event", "onClick", "isExternalLink"]);
|
13928
13934
|
const { ctaEvent, setPopupDetailData } = useSxpDataSource();
|
13929
13935
|
const { jumpToWeb } = useEventReport();
|
13936
|
+
const [visible, setVisible] = React.useState(false);
|
13930
13937
|
const ref = React.useRef(null);
|
13931
13938
|
const isOnScreen = useOnScreen(ref);
|
13932
13939
|
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);
|
13933
13940
|
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);
|
13934
13941
|
const handleTo = () => {
|
13935
|
-
var _a, _b, _c;
|
13942
|
+
var _a, _b, _c, _d;
|
13936
13943
|
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);
|
13937
13944
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
13938
13945
|
eventSubject: 'clickCta',
|
@@ -13940,12 +13947,18 @@ Made in Italy` })));
|
|
13940
13947
|
}, recData, item, index);
|
13941
13948
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
13942
13949
|
if (isExternalLink) {
|
13943
|
-
|
13950
|
+
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);
|
13951
|
+
if (link) {
|
13952
|
+
jumpToWeb(recData, product, cta, index);
|
13953
|
+
window.location.href = window.getJointUtmLink(link);
|
13954
|
+
}
|
13955
|
+
}
|
13956
|
+
else {
|
13957
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
13944
13958
|
}
|
13945
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
13946
13959
|
};
|
13947
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.
|
13948
|
-
const
|
13960
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
|
13961
|
+
const aniTimStyle = React.useMemo(() => {
|
13949
13962
|
var _a, _b;
|
13950
13963
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
13951
13964
|
if (ani) {
|
@@ -13967,10 +13980,19 @@ Made in Italy` })));
|
|
13967
13980
|
}, recData, product, index);
|
13968
13981
|
}
|
13969
13982
|
}, [isOnScreen]);
|
13970
|
-
|
13971
|
-
|
13972
|
-
|
13973
|
-
|
13983
|
+
React.useEffect(() => {
|
13984
|
+
if (isOnScreen) {
|
13985
|
+
setVisible(true);
|
13986
|
+
}
|
13987
|
+
}, [isOnScreen]);
|
13988
|
+
const aniNamStyle = React.useMemo(() => {
|
13989
|
+
if (!visible)
|
13990
|
+
return null;
|
13991
|
+
return styles$1['animated-button'];
|
13992
|
+
}, [visible]);
|
13993
|
+
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.css(aniTimStyle)} one-line-ellipsis`, onClick: handleTo, dangerouslySetInnerHTML: {
|
13994
|
+
__html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
13995
|
+
} })));
|
13974
13996
|
};
|
13975
13997
|
var AniLinkComponent = React.memo(AniLink$1);
|
13976
13998
|
|
@@ -14333,19 +14355,23 @@ Made in Italy` })));
|
|
14333
14355
|
}
|
14334
14356
|
];
|
14335
14357
|
|
14336
|
-
var styles = {"animated-
|
14358
|
+
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"};
|
14337
14359
|
|
14338
14360
|
const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
|
14339
14361
|
const AniLinkPopup$1 = (_a) => {
|
14340
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
14362
|
+
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;
|
14341
14363
|
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"]);
|
14364
|
+
style === null || style === void 0 ? true : delete style.transform;
|
14342
14365
|
const { sxpParameter, globalConfig, ctaEvent, setPopupDetailData } = useSxpDataSource();
|
14343
14366
|
const { jumpToWeb } = useEventReport();
|
14344
|
-
const
|
14367
|
+
const ref = React.useRef(null);
|
14368
|
+
const isOnScreen = useOnScreen(ref);
|
14369
|
+
const [visible, setVisible] = React.useState(false);
|
14370
|
+
const [startAni, setStartAni] = React.useState(true);
|
14345
14371
|
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);
|
14346
14372
|
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);
|
14347
14373
|
const handleTo = () => {
|
14348
|
-
var _a, _b, _c;
|
14374
|
+
var _a, _b, _c, _d;
|
14349
14375
|
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);
|
14350
14376
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
14351
14377
|
eventSubject: 'clickCta',
|
@@ -14353,42 +14379,54 @@ Made in Italy` })));
|
|
14353
14379
|
}, recData, item, index);
|
14354
14380
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { index }));
|
14355
14381
|
if (isExternalLink) {
|
14356
|
-
|
14382
|
+
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);
|
14383
|
+
if (link) {
|
14384
|
+
jumpToWeb(recData, product, cta, index);
|
14385
|
+
window.location.href = window.getJointUtmLink(link);
|
14386
|
+
}
|
14387
|
+
}
|
14388
|
+
else {
|
14389
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14357
14390
|
}
|
14358
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
14359
14391
|
};
|
14360
|
-
const title = (cta === null || cta === void 0 ? void 0 : cta.
|
14361
|
-
const
|
14362
|
-
var _a, _b;
|
14392
|
+
const title = (cta === null || cta === void 0 ? void 0 : cta.enTitle) || '查看详情 >';
|
14393
|
+
const aniTimStyle = React.useMemo(() => {
|
14363
14394
|
const ani = event === null || event === void 0 ? void 0 : event.animation;
|
14364
14395
|
if (ani) {
|
14365
|
-
const { delay, duration
|
14396
|
+
const { delay, duration } = ani;
|
14366
14397
|
return {
|
14367
|
-
|
14368
|
-
|
14369
|
-
animationDuration: `${(_b = duration / 1000) !== null && _b !== void 0 ? _b : 0}s`,
|
14370
|
-
backgroundColor: `${backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : 'transparent'}`
|
14371
|
-
}
|
14398
|
+
animationDelay: `${delay ? delay / 1000 : 0}s`,
|
14399
|
+
animationDuration: `${duration ? duration / 1000 : 0}s`
|
14372
14400
|
};
|
14373
14401
|
}
|
14374
14402
|
}, [event === null || event === void 0 ? void 0 : event.animation]);
|
14375
14403
|
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;
|
14376
14404
|
const onClose = (event) => {
|
14377
14405
|
event.stopPropagation();
|
14378
|
-
|
14406
|
+
setStartAni(false);
|
14379
14407
|
};
|
14408
|
+
React.useEffect(() => {
|
14409
|
+
if (isOnScreen) {
|
14410
|
+
setVisible(true);
|
14411
|
+
}
|
14412
|
+
}, [isOnScreen]);
|
14413
|
+
const aniNamStyle = React.useMemo(() => {
|
14414
|
+
if (!visible)
|
14415
|
+
return null;
|
14416
|
+
return startAni ? styles['animated-fadeIn'] : styles['animated-fadeOut'];
|
14417
|
+
}, [visible, startAni]);
|
14380
14418
|
return (React.createElement(React.Fragment, null, isTel ? (React.createElement("div", { style: {
|
14381
14419
|
height: '40px',
|
14382
14420
|
lineHeight: '40px',
|
14383
14421
|
paddingLeft: '6px'
|
14384
|
-
} }, "Cta Title")) : (React.createElement("div", Object.assign({
|
14385
|
-
React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (
|
14386
|
-
React.createElement("img", { src: (
|
14387
|
-
React.createElement(Img$1, { src: src, rec: recData, item: (
|
14422
|
+
} }, "Cta Title")) : (React.createElement("div", Object.assign({ ref: ref }, props, { className: `${css.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.css(aniTimStyle)}`, onClick: handleTo }),
|
14423
|
+
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 } },
|
14424
|
+
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'] })),
|
14425
|
+
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 }),
|
14388
14426
|
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: {
|
14389
|
-
__html: setFontForText((
|
14427
|
+
__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)
|
14390
14428
|
} }),
|
14391
|
-
React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((
|
14429
|
+
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: {
|
14392
14430
|
__html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
14393
14431
|
} })))));
|
14394
14432
|
};
|
@@ -14834,20 +14872,23 @@ Made in Italy` })));
|
|
14834
14872
|
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.addEventListener('canplay', handlePlay);
|
14835
14873
|
(_k = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _k === void 0 ? void 0 : _k.addEventListener('waiting', handleWaiting);
|
14836
14874
|
return () => {
|
14837
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
14875
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
14876
|
+
const isPause = (_a = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _a === void 0 ? void 0 : _a.paused;
|
14877
|
+
if (!isPause)
|
14878
|
+
handlePause();
|
14838
14879
|
if (hls)
|
14839
14880
|
hls === null || hls === void 0 ? void 0 : hls.destroy();
|
14840
14881
|
setIsLoadFinish(false);
|
14841
|
-
(
|
14842
|
-
(
|
14843
|
-
(
|
14844
|
-
(
|
14845
|
-
(
|
14846
|
-
(
|
14847
|
-
(
|
14848
|
-
(
|
14882
|
+
(_b = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _b === void 0 ? void 0 : _b.removeEventListener('loadedmetadata', handleLoadedmetadata);
|
14883
|
+
(_c = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _c === void 0 ? void 0 : _c.removeEventListener('loadeddata', handLoadeddata);
|
14884
|
+
(_d = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _d === void 0 ? void 0 : _d.removeEventListener('play', handleStartPlay);
|
14885
|
+
(_e = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _e === void 0 ? void 0 : _e.removeEventListener('playing', handlePlaying);
|
14886
|
+
(_f = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _f === void 0 ? void 0 : _f.removeEventListener('pause', handlePause);
|
14887
|
+
(_g = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _g === void 0 ? void 0 : _g.removeEventListener('ended', handlePlay);
|
14888
|
+
(_h = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _h === void 0 ? void 0 : _h.removeEventListener('canplay', handlePlay);
|
14889
|
+
(_j = videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) === null || _j === void 0 ? void 0 : _j.removeEventListener('waiting', handleWaiting);
|
14849
14890
|
};
|
14850
|
-
}, [isActive, videoId, rec]);
|
14891
|
+
}, [isActive, videoId, rec, handlePause]);
|
14851
14892
|
React.useEffect(() => {
|
14852
14893
|
var _a, _b;
|
14853
14894
|
if (!(videoRef === null || videoRef === void 0 ? void 0 : videoRef.current) || !isLoadFinish)
|
@@ -14993,23 +15034,23 @@ Made in Italy` })));
|
|
14993
15034
|
* @Author: binruan@chatlabs.com
|
14994
15035
|
* @Date: 2024-01-15 19:03:09
|
14995
15036
|
* @LastEditors: binruan@chatlabs.com
|
14996
|
-
* @LastEditTime: 2024-
|
15037
|
+
* @LastEditTime: 2024-07-11 18:19:29
|
14997
15038
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\FingerSwipeTip\index.tsx
|
14998
15039
|
*
|
14999
15040
|
*/
|
15000
|
-
const FingerSwipeTip = ({ imageUrl, style }) => {
|
15041
|
+
const FingerSwipeTip = ({ imageUrl, style, duration = 2000 }) => {
|
15001
15042
|
const [show, setShow] = React.useState(true);
|
15002
15043
|
useEditor();
|
15003
15044
|
React.useEffect(() => {
|
15004
15045
|
setTimeout(() => {
|
15005
15046
|
setShow(false);
|
15006
|
-
},
|
15047
|
+
}, duration);
|
15007
15048
|
}, []);
|
15008
15049
|
const FINGER_SWIPE_ICON = useIconLink('/pb_static/finger-swipe-tip.29dc3a48a3c746c906ea..png');
|
15009
15050
|
const animationCls = React.useMemo(() => {
|
15010
15051
|
return show ? 'pb-fadeIn' : 'pb-fadeOut';
|
15011
15052
|
}, [show]);
|
15012
|
-
return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: style },
|
15053
|
+
return (React.createElement("div", { hidden: !show, className: `pb-finger-wrap ${animationCls}`, style: Object.assign(Object.assign({}, style), { animationDuration: `${duration / 1000}s` }) },
|
15013
15054
|
React.createElement("img", { src: imageUrl || FINGER_SWIPE_ICON, alt: 'finger swiper' })));
|
15014
15055
|
};
|
15015
15056
|
|
@@ -15113,11 +15154,12 @@ Made in Italy` })));
|
|
15113
15154
|
* @Author: binruan@chatlabs.com
|
15114
15155
|
* @Date: 2024-01-15 19:03:09
|
15115
15156
|
* @LastEditors: binruan@chatlabs.com
|
15116
|
-
* @LastEditTime: 2024-
|
15157
|
+
* @LastEditTime: 2024-07-09 18:47:05
|
15117
15158
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
|
15118
15159
|
*
|
15119
15160
|
*/
|
15120
15161
|
const Hashtag = ({ tags, itemId, itemType, index, rec, hashTagStyle }) => {
|
15162
|
+
var _a;
|
15121
15163
|
const [isShowMore, setIsShowMore] = React.useState(false);
|
15122
15164
|
const { setWaterFallData, setOpenHashtag, setCacheActiveIndex, waterFallData, setIsFromHashtag } = useSxpDataSource();
|
15123
15165
|
const handleClickTag = (data) => {
|
@@ -15149,7 +15191,8 @@ Made in Italy` })));
|
|
15149
15191
|
}
|
15150
15192
|
return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
|
15151
15193
|
}, [isShowMore, tags]);
|
15152
|
-
|
15194
|
+
console.log(hashTagStyle, '111');
|
15195
|
+
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` } },
|
15153
15196
|
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) },
|
15154
15197
|
React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
|
15155
15198
|
};
|
@@ -15353,7 +15396,7 @@ Made in Italy` })));
|
|
15353
15396
|
* @Author: binruan@chatlabs.com
|
15354
15397
|
* @Date: 2024-01-15 19:03:09
|
15355
15398
|
* @LastEditors: binruan@chatlabs.com
|
15356
|
-
* @LastEditTime: 2024-07-
|
15399
|
+
* @LastEditTime: 2024-07-24 14:59:23
|
15357
15400
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
15358
15401
|
*
|
15359
15402
|
*/
|
@@ -15559,18 +15602,18 @@ Made in Italy` })));
|
|
15559
15602
|
};
|
15560
15603
|
}, [isShowMore]);
|
15561
15604
|
const renderBottom = React.useCallback((rec, index) => {
|
15562
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
15605
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
15563
15606
|
if (rec === null || rec === void 0 ? void 0 : rec.video) {
|
15564
15607
|
return (React.createElement(React.Fragment, null,
|
15565
15608
|
((_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' }),
|
15566
|
-
React.createElement("div", { className: 'clc-sxp-bottom' },
|
15609
|
+
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` } },
|
15567
15610
|
React.createElement(Nudge, { nudge: nudge }),
|
15568
15611
|
(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' },
|
15569
15612
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
|
15570
15613
|
React.createElement("div", null,
|
15571
|
-
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: (
|
15614
|
+
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 }),
|
15572
15615
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'] }),
|
15573
|
-
React.createElement(Hashtag$1, { index: activeIndex, tags: (
|
15616
|
+
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 }))),
|
15574
15617
|
React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'] })));
|
15575
15618
|
}
|
15576
15619
|
return null;
|
@@ -15752,7 +15795,7 @@ Made in Italy` })));
|
|
15752
15795
|
React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } })));
|
15753
15796
|
}
|
15754
15797
|
return visList === null || visList === void 0 ? void 0 : visList.map((rec, index) => {
|
15755
|
-
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: {
|
15798
|
+
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: {
|
15756
15799
|
height,
|
15757
15800
|
width: containerWidth,
|
15758
15801
|
display: 'flex',
|
@@ -15775,7 +15818,7 @@ Made in Italy` })));
|
|
15775
15818
|
React.createElement(Tagbar$1, { tagList: tagList, setActiveIndex: setActiveIndex, style: {
|
15776
15819
|
top: minusHeight
|
15777
15820
|
} }),
|
15778
|
-
isShowFingerTip ? (React.createElement(FingerSwipeTip, { imageUrl: globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.swipeTipIcon, style: { top: `${50
|
15821
|
+
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,
|
15779
15822
|
React.createElement(Swiper, { style: {
|
15780
15823
|
marginTop: tagHeight
|
15781
15824
|
}, ref: swiperRef, onSlideChange: () => {
|
@@ -15800,13 +15843,13 @@ Made in Italy` })));
|
|
15800
15843
|
}
|
15801
15844
|
}
|
15802
15845
|
}, direction: 'vertical', height: height },
|
15803
|
-
React.createElement(ToggleButton$1, { style: {
|
15846
|
+
((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: {
|
15804
15847
|
position: 'fixed',
|
15805
15848
|
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',
|
15806
15849
|
zIndex: 999,
|
15807
15850
|
[(_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,
|
15808
15851
|
[(_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
|
15809
|
-
}, 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 }),
|
15852
|
+
}, 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 })),
|
15810
15853
|
renderView),
|
15811
15854
|
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))));
|
15812
15855
|
};
|