gdprConsent.min.js 557 B

1
  1. define(["ccLogger","storageApi"],function(e,t){"use strict";var n="GDPRCookieP13nConsentGranted",r="GDPRCookieP13nConsentNotRequired",i=function(e){var t=[n,r];return s(e,t)},s=function(n,r){if(n===null||n===undefined)return e.warn("[gdprConsent] Could not determine site."),!0;if(!n.hasOwnProperty("requireGDPRCookieConsent"))return!0;var i=n.requireGDPRCookieConsent;if(!i)return!0;for(var s=0;s<r.length;s++){var o=r[s],u=t.getInstance().readFromCookies(o);if(u!==undefined&&u!==null)return!0}return!1};return{hasP13nCookieConsent:i,hasCookieConsent:s}})