pb-sxp-ui 1.0.52 → 1.0.54
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 +72 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +72 -23
- 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 +72 -23
- 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/SxpPageCore/index.d.ts +1 -0
- package/es/core/components/SxpPageCore/index.js +2 -2
- package/es/core/components/SxpPageRender/Popup/index.js +1 -1
- package/es/core/components/SxpPageRender/VideoWidget/index.js +10 -2
- package/es/core/components/SxpPageRender/index.js +11 -2
- package/es/core/context/SxpDataSourceProvider.d.ts +7 -0
- package/es/core/context/SxpDataSourceProvider.js +15 -2
- package/es/materials/sxp/popup/AppointForm/index.d.ts +1 -0
- package/es/materials/sxp/popup/AppointForm/index.js +14 -9
- package/es/materials/sxp/popup/CommodityDetail/index.js +8 -1
- package/es/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
- package/lib/core/components/SxpPageCore/index.d.ts +1 -0
- package/lib/core/components/SxpPageCore/index.js +2 -2
- package/lib/core/components/SxpPageRender/Popup/index.js +1 -1
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +10 -2
- package/lib/core/components/SxpPageRender/index.js +11 -2
- package/lib/core/context/SxpDataSourceProvider.d.ts +7 -0
- package/lib/core/context/SxpDataSourceProvider.js +15 -2
- package/lib/materials/sxp/popup/AppointForm/index.d.ts +1 -0
- package/lib/materials/sxp/popup/AppointForm/index.js +14 -9
- package/lib/materials/sxp/popup/CommodityDetail/index.js +8 -1
- package/lib/materials/sxp/popup/CommodityDetailDiro/index.js +8 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +8 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
@@ -416,7 +416,7 @@ var DataSourceType;
|
|
416
416
|
DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
|
417
417
|
})(DataSourceType || (DataSourceType = {}));
|
418
418
|
const UTM_KEYS = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_id', 'utm_content', 'cl_source'];
|
419
|
-
const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false }) => {
|
419
|
+
const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false }) => {
|
420
420
|
const [rtcList, setRtcList] = useState([]);
|
421
421
|
const [tagList, setTagList] = useState([]);
|
422
422
|
const [loading, setLoading] = useState(false);
|
@@ -531,6 +531,18 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
531
531
|
type: 'beacon'
|
532
532
|
});
|
533
533
|
}, [bffFetch, curReqInfo, enableReportEvent]);
|
534
|
+
const bffFbReport = useCallback((_a) => {
|
535
|
+
var _b;
|
536
|
+
var { eventName, actionSource = 'website', eventSourceUrl = (_b = window === null || window === void 0 ? void 0 : window.location) === null || _b === void 0 ? void 0 : _b.href, externalId } = _a;
|
537
|
+
if (!enableReportEvent || !enabledMetaConversionApi) {
|
538
|
+
return;
|
539
|
+
}
|
540
|
+
return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
|
541
|
+
method: 'POST',
|
542
|
+
body: { eventName, actionSource, eventSourceUrl, 'userData.externalId': externalId },
|
543
|
+
type: 'beacon'
|
544
|
+
});
|
545
|
+
}, [bffFetch, enableReportEvent, enabledMetaConversionApi]);
|
534
546
|
const bffMutateLike = useCallback((body) => __awaiter(void 0, void 0, void 0, function* () {
|
535
547
|
const res = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/recommend/like', { method: 'POST', body }));
|
536
548
|
return res === null || res === void 0 ? void 0 : res.success;
|
@@ -638,7 +650,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
638
650
|
tagList,
|
639
651
|
setLoading,
|
640
652
|
videoRef,
|
641
|
-
setVideoRef
|
653
|
+
setVideoRef,
|
654
|
+
bffFbReport
|
642
655
|
} }, render({
|
643
656
|
rtcList,
|
644
657
|
mutateLike: bffMutateLike,
|
@@ -1013,7 +1026,7 @@ var settingRender$5 = [
|
|
1013
1026
|
];
|
1014
1027
|
|
1015
1028
|
const AppointForm$1 = (_a) => {
|
1016
|
-
var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, onClick } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "onClick"]);
|
1029
|
+
var { columns, style, title, textStyle, submitBgColor, submitColor, submitText, layoutType, onClick, onClose } = _a, props = __rest(_a, ["columns", "style", "title", "textStyle", "submitBgColor", "submitColor", "submitText", "layoutType", "onClick", "onClose"]);
|
1017
1030
|
const { submitForm } = useSxpDataSource();
|
1018
1031
|
const formRef = useRef();
|
1019
1032
|
const [loading, setLoading] = useState(false);
|
@@ -1054,19 +1067,24 @@ const AppointForm$1 = (_a) => {
|
|
1054
1067
|
}, [layoutType, columns, defaultColumns]);
|
1055
1068
|
const handleSubmit = debounce(() => __awaiter(void 0, void 0, void 0, function* () {
|
1056
1069
|
var _b, _c, _d;
|
1057
|
-
setLoading(true);
|
1058
1070
|
const vals = yield ((_b = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _b === void 0 ? void 0 : _b.getFieldsValue());
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1071
|
+
if (!vals)
|
1072
|
+
return;
|
1073
|
+
const arr = (_d = (_c = Object.keys(vals)) === null || _c === void 0 ? void 0 : _c.map((key) => {
|
1074
|
+
var _a;
|
1075
|
+
return ({
|
1076
|
+
name: key,
|
1077
|
+
value: (_a = vals[key]) !== null && _a !== void 0 ? _a : ''
|
1078
|
+
});
|
1079
|
+
})) === null || _d === void 0 ? void 0 : _d.filter((item) => item === null || item === void 0 ? void 0 : item.value);
|
1063
1080
|
if (!arr || !(arr === null || arr === void 0 ? void 0 : arr.length))
|
1064
1081
|
return;
|
1065
|
-
|
1082
|
+
setLoading(true);
|
1083
|
+
const res = (yield (submitForm === null || submitForm === void 0 ? void 0 : submitForm({ attributes: arr })));
|
1066
1084
|
setLoading(false);
|
1067
1085
|
if (res) {
|
1068
|
-
|
1069
|
-
|
1086
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
1087
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
1070
1088
|
}
|
1071
1089
|
}), 1000);
|
1072
1090
|
return (React.createElement("div", { className: 'pb-appoint-form' },
|
@@ -8348,7 +8366,7 @@ const CommodityDetail$1 = (_a) => {
|
|
8348
8366
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
8349
8367
|
var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index"]);
|
8350
8368
|
const { sxpParameter } = useSxpDataSource();
|
8351
|
-
const { popupDetailData, bffEventReport, isPreview,
|
8369
|
+
const { popupDetailData, bffEventReport, isPreview, bffFbReport } = useSxpDataSource();
|
8352
8370
|
const { jumpToWeb, productView } = useEventReport();
|
8353
8371
|
const curTimeRef = useRef(null);
|
8354
8372
|
const [showModal, setShowModal] = useState(false);
|
@@ -8365,6 +8383,13 @@ const CommodityDetail$1 = (_a) => {
|
|
8365
8383
|
window.location.href = window.getJointUtmLink(product.link);
|
8366
8384
|
}
|
8367
8385
|
};
|
8386
|
+
useEffect(() => {
|
8387
|
+
if (!isPost) {
|
8388
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
8389
|
+
eventName: 'ProductView'
|
8390
|
+
});
|
8391
|
+
}
|
8392
|
+
}, [isPost, bffFbReport]);
|
8368
8393
|
useEffect(() => {
|
8369
8394
|
const initTime = () => {
|
8370
8395
|
curTimeRef.current = new Date();
|
@@ -8800,7 +8825,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
8800
8825
|
var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index"]);
|
8801
8826
|
useState(true);
|
8802
8827
|
const { sxpParameter } = useSxpDataSource();
|
8803
|
-
const { popupDetailData, bffEventReport, isPreview, swiperRef,
|
8828
|
+
const { popupDetailData, bffEventReport, isPreview, swiperRef, bffFbReport } = useSxpDataSource();
|
8804
8829
|
const { jumpToWeb, productView } = useEventReport();
|
8805
8830
|
const scrollRef = useRef(null);
|
8806
8831
|
useRef(null);
|
@@ -8823,6 +8848,13 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
8823
8848
|
window.location.href = window.getJointUtmLink(product.link);
|
8824
8849
|
}
|
8825
8850
|
};
|
8851
|
+
useEffect(() => {
|
8852
|
+
if (!isPost) {
|
8853
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
8854
|
+
eventName: 'ProductView'
|
8855
|
+
});
|
8856
|
+
}
|
8857
|
+
}, [isPost, bffFbReport]);
|
8826
8858
|
useEffect(() => {
|
8827
8859
|
const initTime = () => {
|
8828
8860
|
curTimeRef.current = new Date();
|
@@ -12041,7 +12073,7 @@ var SXP_EVENT_TYPE;
|
|
12041
12073
|
|
12042
12074
|
const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPostConfig, videoRef }) => {
|
12043
12075
|
const [isPauseVideo, setIsPauseVideo] = useState(false);
|
12044
|
-
const { bffEventReport, sxpParameter, waterFallData, openHashtag } = useSxpDataSource();
|
12076
|
+
const { bffEventReport, sxpParameter, waterFallData, openHashtag, bffFbReport } = useSxpDataSource();
|
12045
12077
|
const videoStartTime = useRef(0);
|
12046
12078
|
const [isLoadFinish, setIsLoadFinish] = useState(false);
|
12047
12079
|
const [isFirstPlay, setIsFirstPlay] = useState(true);
|
@@ -12249,6 +12281,9 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12249
12281
|
if (!videoRef || !isLoadFinish)
|
12250
12282
|
return;
|
12251
12283
|
if (isActive) {
|
12284
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
12285
|
+
eventName: 'ViewContent'
|
12286
|
+
});
|
12252
12287
|
videoRef === null || videoRef === void 0 ? void 0 : videoRef.play();
|
12253
12288
|
}
|
12254
12289
|
else {
|
@@ -12272,7 +12307,12 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
|
|
12272
12307
|
useEffect(() => {
|
12273
12308
|
if (!isActive)
|
12274
12309
|
return;
|
12275
|
-
const onShow =
|
12310
|
+
const onShow = () => {
|
12311
|
+
handleClickVideo('start')();
|
12312
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
12313
|
+
eventName: 'ViewContent'
|
12314
|
+
});
|
12315
|
+
};
|
12276
12316
|
const onHide = handleClickVideo('pause');
|
12277
12317
|
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_SHOW, onShow);
|
12278
12318
|
SXP_EVENT_BUS.on(SXP_EVENT_TYPE.PAGE_DID_HIDE, onHide);
|
@@ -12639,7 +12679,7 @@ const Nudge = ({ nudge }) => {
|
|
12639
12679
|
* @Author: binruan@chatlabs.com
|
12640
12680
|
* @Date: 2024-01-15 19:03:09
|
12641
12681
|
* @LastEditors: binruan@chatlabs.com
|
12642
|
-
* @LastEditTime: 2024-
|
12682
|
+
* @LastEditTime: 2024-05-07 17:16:06
|
12643
12683
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12644
12684
|
*
|
12645
12685
|
*/
|
@@ -12654,7 +12694,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12654
12694
|
const viewTime = useRef();
|
12655
12695
|
const [isLoadMore, setIsLoadMore] = useState(false);
|
12656
12696
|
const [isShowMore, setIsShowMore] = useState(false);
|
12657
|
-
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData } = useSxpDataSource();
|
12697
|
+
const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport } = useSxpDataSource();
|
12658
12698
|
const [videoRef, setVideoRef] = useState(null);
|
12659
12699
|
const playerRef = useRef();
|
12660
12700
|
const { productView } = useEventReport();
|
@@ -12687,8 +12727,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12687
12727
|
requestId: null
|
12688
12728
|
}
|
12689
12729
|
});
|
12730
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
12731
|
+
eventName: 'PageView'
|
12732
|
+
});
|
12690
12733
|
setIsInit(true);
|
12691
|
-
}, [bffEventReport, data.length]);
|
12734
|
+
}, [bffEventReport, data.length, bffFbReport]);
|
12692
12735
|
const initTime = () => {
|
12693
12736
|
curTime.current = new Date();
|
12694
12737
|
viewTime.current = new Date();
|
@@ -12973,6 +13016,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12973
13016
|
var _a, _b, _c;
|
12974
13017
|
if (!((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.url) && !((_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.imgUrls) && (item === null || item === void 0 ? void 0 : item.product)) {
|
12975
13018
|
productView(item, item.product, (_c = item === null || item === void 0 ? void 0 : item.product) === null || _c === void 0 ? void 0 : _c.bindCta, viewTime.current, activeIndex);
|
13019
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13020
|
+
eventName: 'ProductView'
|
13021
|
+
});
|
12976
13022
|
}
|
12977
13023
|
};
|
12978
13024
|
useEffect(() => {
|
@@ -13000,6 +13046,9 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13000
13046
|
traceInfo: item.video.traceInfo
|
13001
13047
|
}
|
13002
13048
|
});
|
13049
|
+
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13050
|
+
eventName: 'ViewContent'
|
13051
|
+
});
|
13003
13052
|
}
|
13004
13053
|
};
|
13005
13054
|
const visList = useMemo(() => {
|
@@ -13499,7 +13548,7 @@ var index$1 = memo(DiyPortalPreview);
|
|
13499
13548
|
* @Author: binruan@chatlabs.com
|
13500
13549
|
* @Date: 2023-10-31 10:56:01
|
13501
13550
|
* @LastEditors: binruan@chatlabs.com
|
13502
|
-
* @LastEditTime: 2024-
|
13551
|
+
* @LastEditTime: 2024-05-08 17:41:44
|
13503
13552
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
13504
13553
|
*
|
13505
13554
|
*/
|
@@ -13550,7 +13599,7 @@ const Popup = () => {
|
|
13550
13599
|
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
13551
13600
|
const Component = withBindDataSource(t);
|
13552
13601
|
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
13553
|
-
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
|
13602
|
+
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, onClose: handleClose })));
|
13554
13603
|
}
|
13555
13604
|
else {
|
13556
13605
|
return React.createElement(React.Fragment, null);
|
@@ -13564,7 +13613,7 @@ const Popup = () => {
|
|
13564
13613
|
* @Author: binruan@chatlabs.com
|
13565
13614
|
* @Date: 2024-01-15 19:03:09
|
13566
13615
|
* @LastEditors: binruan@chatlabs.com
|
13567
|
-
* @LastEditTime: 2024-
|
13616
|
+
* @LastEditTime: 2024-05-06 17:26:37
|
13568
13617
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
|
13569
13618
|
*
|
13570
13619
|
*/
|
@@ -13580,7 +13629,7 @@ const RESOLVER = {};
|
|
13580
13629
|
Object.values(_materials_).forEach((v) => {
|
13581
13630
|
RESOLVER[v.extend.type] = v;
|
13582
13631
|
});
|
13583
|
-
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl }) => {
|
13632
|
+
const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, loadingImage, appDomain, licenseUrl, enabledMetaConversionApi }) => {
|
13584
13633
|
var _a, _b, _c, _d, _e, _f;
|
13585
13634
|
const utmVal = useMemo(() => {
|
13586
13635
|
var _a;
|
@@ -13588,7 +13637,7 @@ const SxpPageCore = ({ data, maxSize = 10, defaultSize = 10, hashTagSize = 20, l
|
|
13588
13637
|
return searchParams;
|
13589
13638
|
}, []);
|
13590
13639
|
return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
|
13591
|
-
React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, render: ({ rtcList, tagList }) => {
|
13640
|
+
React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, render: ({ rtcList, tagList }) => {
|
13592
13641
|
var _a;
|
13593
13642
|
return (React.createElement(React.Fragment, null,
|
13594
13643
|
React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),
|