pb-sxp-ui 1.19.2 → 1.19.4
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 +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- 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 +7 -3
- 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 +3 -3
- package/lib/core/components/SxpPageRender/index.js +3 -3
- package/package.json +1 -1
|
@@ -499,9 +499,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
499
499
|
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
500
500
|
if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
|
|
501
501
|
setIsShowCookieSetting(true);
|
|
502
|
-
if (!(activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4'))) {
|
|
503
|
-
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
504
|
-
}
|
|
505
502
|
}
|
|
506
503
|
};
|
|
507
504
|
const handleClick = (event) => {
|
|
@@ -514,10 +511,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
514
511
|
if (!activeGroups)
|
|
515
512
|
return;
|
|
516
513
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
514
|
+
window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
|
|
515
|
+
window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
|
|
517
516
|
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
|
|
518
517
|
}
|
|
519
518
|
}
|
|
520
519
|
else {
|
|
520
|
+
window === null || window === void 0 ? void 0 : window.fbq('consent', 'revoke');
|
|
521
521
|
fbcRef.current = getCookie('_fbp');
|
|
522
522
|
deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
523
523
|
const item = data[activeIndex];
|
|
@@ -502,9 +502,6 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
502
502
|
const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
|
|
503
503
|
if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
|
|
504
504
|
setIsShowCookieSetting(true);
|
|
505
|
-
if (!(activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4'))) {
|
|
506
|
-
(0, tool_1.deleteCookie)('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
507
|
-
}
|
|
508
505
|
}
|
|
509
506
|
};
|
|
510
507
|
const handleClick = (event) => {
|
|
@@ -517,10 +514,13 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
|
517
514
|
if (!activeGroups)
|
|
518
515
|
return;
|
|
519
516
|
if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
|
|
517
|
+
window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
|
|
518
|
+
window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
|
|
520
519
|
if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
|
|
521
520
|
}
|
|
522
521
|
}
|
|
523
522
|
else {
|
|
523
|
+
window === null || window === void 0 ? void 0 : window.fbq('consent', 'revoke');
|
|
524
524
|
fbcRef.current = (0, tool_1.getCookie)('_fbp');
|
|
525
525
|
(0, tool_1.deleteCookie)('_fbp', '/', extractRootDomain(window.location.hostname));
|
|
526
526
|
const item = data[activeIndex];
|