@duckduckgo/autoconsent 14.1.0 → 14.2.0

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.
@@ -1067,7 +1067,12 @@ var snippets = {
1067
1067
  ).consents.statistics,
1068
1068
  EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
1069
1069
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
1070
- EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
1070
+ EVAL_COOKIE_LAW_INFO_0: () => {
1071
+ if (CLI.disableAllCookies) CLI.disableAllCookies();
1072
+ if (CLI.reject_close) CLI.reject_close();
1073
+ document.body.classList.remove("cli-barmodal-open");
1074
+ return true;
1075
+ },
1071
1076
  EVAL_COOKIE_LAW_INFO_DETECT: () => !!window.CLI,
1072
1077
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(
1073
1078
  document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]
@@ -518,7 +518,12 @@ var snippets = {
518
518
  ).consents.statistics,
519
519
  EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
520
520
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
521
- EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
521
+ EVAL_COOKIE_LAW_INFO_0: () => {
522
+ if (CLI.disableAllCookies) CLI.disableAllCookies();
523
+ if (CLI.reject_close) CLI.reject_close();
524
+ document.body.classList.remove("cli-barmodal-open");
525
+ return true;
526
+ },
522
527
  EVAL_COOKIE_LAW_INFO_DETECT: () => !!window.CLI,
523
528
  EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(
524
529
  document.cookie.split(";").find((c) => c.trim().startsWith("CookieLevel")).split("=")[1]