pb-sxp-ui 1.19.1 → 1.19.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 +17 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -15
- 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 +17 -15
- 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 +15 -13
- package/lib/core/components/SxpPageRender/index.js +15 -13
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
|
@@ -19458,11 +19458,25 @@ Made in Italy` })));
|
|
|
19458
19458
|
React.useEffect(() => {
|
|
19459
19459
|
if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
|
|
19460
19460
|
return;
|
|
19461
|
+
function extractRootDomain(hostname) {
|
|
19462
|
+
// 处理特殊情况
|
|
19463
|
+
if (!hostname || hostname.indexOf('.') === -1) {
|
|
19464
|
+
return '';
|
|
19465
|
+
}
|
|
19466
|
+
const parts = hostname.split('.');
|
|
19467
|
+
// 对于标准的域名格式(如 xxx.yyy.zzz)
|
|
19468
|
+
if (parts.length >= 2) {
|
|
19469
|
+
return '.' + parts.slice(-2).join('.');
|
|
19470
|
+
}
|
|
19471
|
+
return '';
|
|
19472
|
+
}
|
|
19461
19473
|
window.OptanonWrapper = function () {
|
|
19462
|
-
|
|
19463
|
-
|
|
19464
|
-
if ((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && ((_a = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _a === void 0 ? void 0 : _a.length) > 2) {
|
|
19474
|
+
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
19475
|
+
if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
|
|
19465
19476
|
setIsShowCookieSetting(true);
|
|
19477
|
+
if (!(activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4'))) {
|
|
19478
|
+
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19479
|
+
}
|
|
19466
19480
|
}
|
|
19467
19481
|
};
|
|
19468
19482
|
const handleClick = (event) => {
|
|
@@ -19480,18 +19494,6 @@ Made in Italy` })));
|
|
|
19480
19494
|
}
|
|
19481
19495
|
else {
|
|
19482
19496
|
fbcRef.current = getCookie('_fbp');
|
|
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
19497
|
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
19496
19498
|
const item = data[activeIndex];
|
|
19497
19499
|
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) || '';
|