pb-sxp-ui 1.19.0-alpha.6 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +44 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +44 -12
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/index.js +42 -12
- package/lib/core/components/SxpPageRender/index.js +42 -12
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
|
@@ -19478,19 +19478,33 @@ Made in Italy` })));
|
|
|
19478
19478
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
19479
19479
|
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
|
|
19480
19480
|
}
|
|
19481
|
-
else
|
|
19481
|
+
else {
|
|
19482
19482
|
fbcRef.current = getCookie('_fbp');
|
|
19483
|
-
|
|
19483
|
+
function extractRootDomain(hostname) {
|
|
19484
|
+
// 处理特殊情况
|
|
19485
|
+
if (!hostname || hostname.indexOf('.') === -1) {
|
|
19486
|
+
return '';
|
|
19487
|
+
}
|
|
19488
|
+
const parts = hostname.split('.');
|
|
19489
|
+
// 对于标准的域名格式(如 xxx.yyy.zzz)
|
|
19490
|
+
if (parts.length >= 2) {
|
|
19491
|
+
return '.' + parts.slice(-2).join('.');
|
|
19492
|
+
}
|
|
19493
|
+
return '';
|
|
19494
|
+
}
|
|
19495
|
+
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19484
19496
|
const item = data[activeIndex];
|
|
19485
19497
|
const traceInfo = ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || '';
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19498
|
+
if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
|
|
19499
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
|
19500
|
+
eventInfo: {
|
|
19501
|
+
eventSubject: 'refuseCookie',
|
|
19502
|
+
eventDescription: 'refuseCookie',
|
|
19503
|
+
traceInfo
|
|
19504
|
+
},
|
|
19505
|
+
isActiveTargetingCookie: false
|
|
19506
|
+
});
|
|
19507
|
+
}
|
|
19494
19508
|
}
|
|
19495
19509
|
};
|
|
19496
19510
|
}
|
|
@@ -19647,8 +19661,26 @@ Made in Italy` })));
|
|
|
19647
19661
|
React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
|
|
19648
19662
|
React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
|
|
19649
19663
|
openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
|
|
19650
|
-
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19651
|
-
|
|
19664
|
+
isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
|
|
19665
|
+
position: 'fixed',
|
|
19666
|
+
bottom: 0,
|
|
19667
|
+
left: 0,
|
|
19668
|
+
right: 0,
|
|
19669
|
+
width: '100%',
|
|
19670
|
+
zIndex: 10,
|
|
19671
|
+
backgroundColor: '#000',
|
|
19672
|
+
fontSize: 0
|
|
19673
|
+
} },
|
|
19674
|
+
React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: {
|
|
19675
|
+
textDecoration: 'underline',
|
|
19676
|
+
width: 'fit-content',
|
|
19677
|
+
border: 'none',
|
|
19678
|
+
lineHeight: '24px',
|
|
19679
|
+
fontSize: '10px',
|
|
19680
|
+
color: '#fff',
|
|
19681
|
+
padding: '0 20px',
|
|
19682
|
+
fontFamily: 'Helvetica-light'
|
|
19683
|
+
} }, "Cookie settings")))));
|
|
19652
19684
|
};
|
|
19653
19685
|
var SxpPageRender$1 = React.memo(SxpPageRender);
|
|
19654
19686
|
|