Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gdpr-consent

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdpr-consent - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

2

build/gdpr-consent.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GDPRConsent=t():e.GDPRConsent=t()}(self,(function(){return function(){var e={927:function(e,t,a){"use strict";function n(e){if(void 0!==e){let t;"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),window.dispatchEvent(t)}}function i(e,t,a,n,i,o){var s,r=!1;!1===n?"function"==typeof a&&a():((s=document.createElement("script")).type="text/javascript",s.id=void 0!==t?t:"",s.async=!0,s.src=e,void 0!==i&&void 0!==o&&s.setAttribute(i,o),"function"==typeof a&&(s.onreadystatechange=s.onload=function(){var e=s.readyState;r||e&&!/loaded|complete/.test(e)||(r=!0,a())}),document.getElementsByTagName("head")[0].appendChild(s))}function o(e,t){var a,n=document.getElementsByTagName("*"),i=0;for(a in n)if(void 0!==n[a])for(i=0;i<e.length;i+=1)(" "+n[a].className+" ").indexOf(" "+e[i]+" ")>-1&&t(n[a])}function s(e,t,a){null!==document.getElementById(e)&&(document.getElementById(e).style[t]=a)}function r(e,t){null!==document.getElementById(e)&&document.getElementById(e).classList.add(t)}function l(e,t){null!==document.getElementById(e)&&document.getElementById(e).classList.remove(t)}a.d(t,{Z:function(){return _}});var c={siteDisclaimerTitle:"«&nbsp;Le site qui raconte l’actualité en séries&nbsp;»",siteDisclaimerMessage:'<i>Les&nbsp;Jours</i> sont un média <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours c’est quoi ?" href="/les-jours-c-quoi/">indépendant et sans pub</a> accessible par <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Abonnement" href="/abonnement/jouriste">abonnement</a>. Découvrez <a data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours en Clair" href="/les-jours-en-clair/">notre zone gratuite</a>&nbsp;: l’actualité en profondeur, avec des épisodes, des personnages, des lieux.',alertBigScroll:"En continuant de défiler,",alertBigClick:"En poursuivant votre navigation,",alertBig:"vous acceptez l’utilisation de services tiers pouvant installer des cookies",alertBigPrivacy:"Ce site utilise des cookies et vous donne le contrôle sur ce que vous souhaitez activer",personalize:"Personnaliser",acceptAll:"OK, tout accepter",close:"Fermer",all:"Préférences pour tous les services",disclaimer:"En autorisant ces services tiers, vous acceptez le dépôt et la lecture de cookies et l’utilisation de technologies de suivi nécessaires à leur bon fonctionnement.",disclaimerWebsite:"Ces services nous aident à améliorer",allow:"Autoriser",deny:"Interdire",noCookie:"Ce service ne dépose aucun cookie.",useCookie:"Ce service peut déposer",useCookieCurrent:"Ce service a déposé",useNoCookie:"Ce service n’a déposé aucun cookie.",source:"Voir le site officiel",noServices:"Ce site n’utilise aucun cookie nécessitant votre consentement.",title:"Panneau de gestion des cookies",newWindow:"(nouvelle fenêtre)",allowAll:"Autoriser tous les cookies",denyAll:"Interdire tous les cookies",ads:{title:"Régies publicitaires (pour nous faire connaître)",details:"Les régies publicitaires permettent de générer des revenus en commercialisant les espaces publicitaires du site."},analytic:{title:"Mesure de navigation (ergonomie) et d’audience",details:"Les services de mesure d’audience permettent de générer des statistiques de fréquentation utiles à l’amélioration du site."},social:{title:"Réseaux sociaux (boutons de partage et Twitter cards)",details:"Les réseaux sociaux permettent d’améliorer la convivialité du site et aident à sa promotion via les partages."},video:{title:"Vidéos",details:"Les services de partage de vidéo permettent d’enrichir le site de contenu multimédia et augmentent sa visibilité."},comment:{title:"Commentaires",details:"Les gestionnaires de commentaires facilitent le dépôt de vos commentaires et luttent contre le spam."},support:{title:"Support",details:"Les services de support vous permettent d’entrer en contact avec l’équipe du site et d’aider à son amélioration."},api:{title:"Services",details:"Les APIs permettent de charger des scripts : géolocalisation, moteurs de recherche, traductions, ..."},other:{title:"Autre",details:"Services visant à afficher du contenu web."},mandatoryTitle:"Cookies obligatoires",mandatoryText:"Ce site utilise des cookies nécessaires à son bon fonctionnement qui ne peuvent pas être désactivés."},d={siteDisclaimerTitle:"«&nbsp;Le site qui raconte l’actualité en séries&nbsp;»",siteDisclaimerMessage:'<i>Les&nbsp;Jours</i> sont un média <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours c’est quoi ?" href="/les-jours-c-quoi/">indépendant et sans pub</a> accessible par <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Abonnement" href="/abonnement/jouriste">abonnement</a>. Découvrez <a data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours en Clair" href="/les-jours-en-clair/">notre zone gratuite</a>&nbsp;: l’actualité en profondeur, avec des épisodes, des personnages, des lieux.',alertBigScroll:"By continuing to scroll,",alertBigClick:"If you continue to browse this website,",alertBig:"you are allowing all third-party services",alertBigPrivacy:"This site uses cookies and gives you control over what you want to activate",personalize:"Personalize",acceptAll:"OK, accept all",close:"Close",all:"Preference for all services",disclaimer:"By allowing these third party services, you accept their cookies and the use of tracking technologies necessary for their proper functioning.",disclaimerWebsite:"These services help us improve",allow:"Allow",deny:"Deny",noCookie:"This service does not use cookie.",useCookie:"This service can install",useCookieCurrent:"This service has installed",useNoCookie:"This service has not installed any cookie.",source:"View the official website",noServices:"This website does not use any cookie requiring your consent.",title:"Cookies management panel",newWindow:"(new window)",allowAll:"Allow all cookies",denyAll:"Deny all cookies",ads:{title:"Advertising network (to let us know)",details:"Ad networks can generate revenue by selling advertising space on the site."},analytic:{title:"Navigation (ergonomics) and audience measurement",details:"The audience measurement services used to generate useful statistics attendance to improve the site."},social:{title:"Social networks (sharing buttons and Twitter cards)",details:"Social networks can improve the usability of the site and help to promote it via the shares."},video:{title:"Videos",details:"Video sharing services help to add rich media on the site and increase its visibility."},comment:{title:"Comments",details:"Comments managers facilitate the filing of comments and fight against spam."},support:{title:"Support",details:"Support services allow you to get in touch with the site team and help to improve it."},api:{title:"Services",details:"APIs are used to load scripts: geolocation, search engines, translations, ..."},other:{title:"Other",details:"Services to display web content."},mandatoryTitle:"Mandatory cookies",mandatoryText:"This site uses cookies necessary for its proper functioning which cannot be deactivated."},u=()=>({key:"facebookpixel",type:"ads",name:"Facebook Pixel",uri:"https://www.facebook.com/policies/cookies/",needConsent:!0,cookies:[],js:function(){i("//connect.facebook.net/en_US/fbevents.js","facebook-fbevents",(function(){fbq("init",GDPRConsentUser.fbPixelId),fbq("track","PageView")}))}}),g=e=>({key:"googletagmanager",type:"api",name:"Google Tag Manager",uri:"https://adssettings.google.com/",needConsent:!0,cookies:["_ga","_gat","__utma","__utmb","__utmc","__utmt","__utmz","__gads","_drt_","FLC","exchange_uid","id","fc","rrs","rds","rv","uid","UIDR","UID","clid","ipinfo","acs"],js:function(){void 0!==e.googletagmanagerId&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),i("https://www.googletagmanager.com/gtm.js?id="+e.googletagmanagerId))}}),p=e=>{return{key:"gtag",type:"analytic",name:"Google Analytics (gtag.js)",uri:"https://support.google.com/analytics/answer/6004245",needConsent:!0,cookies:(t="_gat_gtag_"+e.gtagUa,["_ga","_gat","_gid","__utma","__utmb","__utmc","__utmt","__utmz",t=t.replace(/-/g,"_")]),js:function(){window.dataLayer=window.dataLayer||[],i("https://www.googletagmanager.com/gtag/js?id="+e.gtagUa,"",(function(){window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),e.gtagInitOptions?gtag("config",e.gtagUa,e.gtagInitOptions):gtag("config",e.gtagUa),"function"==typeof e.gtagMore&&e.gtagMore()}))}};var t};const m={};function v(e,t){var a;for(a=0;a<e.length;a+=1)if(e[a]===t)return!0;return!1}function f(e){var t,a,n=e.cookieName+"=",i=document.cookie.split(";");for(t=0;t<i.length;t+=1){for(a=i[t];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(n))return a.substring(n.length,a.length)}return""}var y={read:f,create:function(e,t,a){var n=new Date,i=n.getTime()+a.timeExpire,o=new RegExp("!"+e+"=(wait|true|false)","g"),s=f(a).replace(o,""),r=a.cookieName+"="+s+"!"+e+"="+t;n.setTime(i),document.cookie=r+"; expires="+n.toGMTString()+"; path=/;"},purge:function(e){var t;for(t=0;t<e.length;t+=1)document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname+";",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname.split(".").slice(-2).join(".")+";"},checkCount:function(e,t,a){var n,i=t.cookies,o=i.length,s=0,r="",l=document.cookie.indexOf(e+"=true");if(l>=0&&0===o)r+=a.useNoCookie;else if(l>=0){for(n=0;n<o;n+=1)-1!==document.cookie.indexOf(i[n]+"=")&&(s+=1,void 0===m[i[n]]&&(m[i[n]]=[]),!1===v(m[i[n]],t.name)&&m[i[n]].push(t.name));s>0?(r+=a.useCookieCurrent+" "+s+" cookie",s>1&&(r+="s"),r+="."):r+=a.useNoCookie}else 0===o?r=a.noCookie:(r+=a.useCookie+" "+o+" cookie",o>1&&(r+="s"),r+=".");null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML=r)}};function h(e){"main"===e&&null!==document.getElementById("tarteaucitron")&&null!==document.getElementById("tarteaucitron-main-line")&&(s("tarteaucitron-services","height","auto"),s("tarteaucitron-services","height",document.getElementById("tarteaucitron").offsetHeight+"px"),s("tarteaucitron-services","overflow-x","auto"))}function b(){var e="tarteaucitron";s(e+"-percentage","display","none"),s(e+"-alert-big","display","none"),l(e+"-root","tarteaucitron-before-visible"),n("tac.close_alert")}function k(e,t,a){var n,i="tarteaucitron",o=0,c=0,d=0,u=a.job.length;for(!0===t?(document.getElementById(e+"-line").classList.add("tarteaucitron-is-allowed"),document.getElementById(e+"-line").classList.remove("tarteaucitron-is-denied")):!1===t&&(document.getElementById(e+"-line").classList.remove("tarteaucitron-is-allowed"),document.getElementById(e+"-line").classList.add("tarteaucitron-is-denied")),n=0;n<u;n+=1)!1===a.state[a.job[n]]?o+=1:void 0===a.state[a.job[n]]?c+=1:!0===a.state[a.job[n]]&&(d+=1);s(i+"-dot-green","width",100/u*d+"%"),s(i+"-dot-yellow","width",100/u*c+"%"),s(i+"-dot-red","width",100/u*o+"%"),0===o&&0===c?(l(i+"-all-denied",i+"-is-selected"),r(i+"-all-allowed",i+"-is-selected"),r(i+"-main-line-offset",i+"-is-allowed"),l(i+"-main-line-offset",i+"-is-denied")):0===d&&0===c?(l(i+"-all-allowed",i+"-is-selected"),r(i+"-all-denied",i+"-is-selected"),l(i+"-main-line-offset",i+"-is-allowed"),r(i+"-main-line-offset",i+"-is-denied")):(l(i+"-all-allowed",i+"-is-selected"),l(i+"-all-denied",i+"-is-selected"),l(i+"-main-line-offset",i+"-is-allowed"),l(i+"-main-line-offset",i+"-is-denied")),0===c&&b(),a.services[e].cookies.length>0&&!1===t&&y.purge(a.services[e].cookies),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){y.checkCount(e,a.services[e],a.lang)}),2500)):y.checkCount(e,a.services[e],a.lang)}var w={jsSizing:h,closePanel:function(e){document.location.hash===e.hashtag&&(window.history?window.history.replaceState("",document.title,window.location.pathname+window.location.search):document.location.hash=""),s("tarteaucitron","display","none"),o(["tarteaucitron-info-box"],(function(e){e.style.display="none"})),!0===e.reloadThePage?window.location.reload():s("tarteaucitron-back","display","none"),null!==document.getElementById("tarteaucitron-close-alert")&&document.getElementById("tarteaucitron-close-alert").focus(),document.getElementsByTagName("body")[0].classList.remove("modal-open"),n("tac.close_panel")},openPanel:function(){s("tarteaucitron","display","block"),s("tarteaucitron-back","display","block"),document.getElementById("tarteaucitron-close-panel").focus(),document.getElementsByTagName("body")[0].classList.add("modal-open"),h("main"),n("tac.open_panel")},closeAlert:b,openAlert:function(){var e="tarteaucitron";s(e+"-percentage","display","block"),s(e+"-alert-big","display","block"),r(e+"-root","tarteaucitron-before-visible"),n("tac.open_alert")},color:k,respondAll:function(e,t,a){var n,i=t.services,o=0;for(o=0;o<t.job.length;o+=1)n=i[t.job[o]].key,t.state[n]!==e&&(!1===e&&!0===t.launch[n]&&(t.reloadThePage=!0),!0!==t.launch[n]&&!0===e&&(t.launch[n]=!0,t.services[n].js()),t.state[n]=e,y.create(n,e,a),k(n,e,t))},respond:function(e,t,a,i){var o=e.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed","g"),"");a.state[o]!==t&&(!1===t&&!0===a.launch[o]&&(a.reloadThePage=!0),!0===t&&!0!==a.launch[o]&&(a.launch[o]=!0,n(o+"_loaded"),a.services[o].js()),a.state[o]=t,y.create(o,t,i),k(o,t,a))},toggle:function(e,t){var a=document.getElementById(e);null!==a&&(void 0!==t&&o([t],(function(t){t.id!==e&&(t.style.display="none")})),"block"!==a.style.display?a.style.display="block":a.style.display="none")},order:function(e,t){var a=document.getElementById("tarteaucitron-services_"+e);null!==a&&"function"==typeof Array.prototype.map&&"undefined"==typeof Enumerable&&Array.prototype.map.call(a.children,Object).sort((function(e,a){return t.services[e.id.replace(/-line/g,"")].name>t.services[a.id.replace(/-line/g,"")].name?1:t.services[e.id.replace(/-line/g,"")].name<t.services[a.id.replace(/-line/g,"")].name?-1:0})).forEach((function(e){a.appendChild(e)}))}},C=function(e,t){27===t.keyCode&&w.closePanel()},E=function(e){document.location.hash===e.hashtag&&w.openPanel()},B=function(){var e=document.getElementById("tarteaucitron");e&&"block"===e.style.display&&w.jsSizing("main")},L=function(e,t,a){var n,i=window.pageYOffset||document.documentElement.scrollTop,o=document.getElementById("tarteaucitron-percentage"),s=document.getElementById("tarteaucitron-alert-big");s&&!t.highPrivacy&&"block"===s.style.display&&(n=s.offsetHeight+"px",i>2*screen.height?w.respondAll(!0,e,t):i>screen.height/2&&(document.getElementById("tarteaucitron-disclaimer-alert").innerHTML="<strong>"+a.alertBigScroll+"</strong> "+a.alertBig),o&&(o.style.bottom=n,o.style.width=100/(2*screen.height)*i+"%"))};const T={user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},reloadThePage:!1,alreadyLaunch:0,init:function(e){T.parameters=e||{},0===T.alreadyLaunch&&(T.alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){T.load()}),!1),window.addEventListener("scroll",(function(){L(T,T.parameters,T.lang)}),!1),window.addEventListener("keydown",(function(e){C(!1,e)}),!1),window.addEventListener("hashchange",(function(){E(T.parameters)}),!1),window.addEventListener("resize",(function(){B()}),!1)):(window.attachEvent("onload",(function(){T.load()})),window.attachEvent("onscroll",(function(){L(T.parameters)})),window.attachEvent("onkeydown",(function(e){C(!0,e)})),window.attachEvent("onhashchange",(function(){E(T.parameters)})),window.attachEvent("onresize",(function(){B()}))))},load:function(){var e={hashtag:"#tarteaucitron",cookieName:"tarteaucitron",timeExpire:31536e6,websiteName:void 0,highPrivacy:!1,AcceptAllCta:!0,moreInfoLink:!0,mandatory:!0};if(void 0!==T.parameters)for(var t in e)Object.prototype.hasOwnProperty.call(T.parameters,t)||(T.parameters[t]=e[t]);T.lang=(()=>{switch(function(){if(!navigator)return"en";let e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null,t=e?e.substr(0,2):null;return-1==="en,fr".indexOf(t)?"en":t}()){case"fr":return c;default:return d}})(),T.services=(e=>({facebook:{key:"facebook",type:"social",name:"Facebook",uri:"https://www.facebook.com/policies/cookies/",needConsent:!0,cookies:[],js:function(){i("//connect.facebook.net/"+function(){if(!navigator)return"en_US";let e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null;return"fr"===(e?e.substr(0,2):null)?"fr_FR":"en_US"}()+"/sdk.js","facebook-jssdk")}},facebookpixel:u(),googletagmanager:g(e),gtag:p(e),twitter:{key:"twitter",type:"social",name:"Twitter",uri:"https://support.twitter.com/articles/20170514",needConsent:!0,cookies:[],js:function(){i("//platform.twitter.com/widgets.js","twitter-wjs")}}}))(T.user);var a,o,s=document.body,r=document.createElement("div"),l="",m=["ads","analytic","api","comment","social","support","video","other"];for(m=m.sort((function(e,t){return T.lang[e].title>T.lang[t].title?1:T.lang[e].title<T.lang[t].title?-1:0})),l+='<button type="button" id="tarteaucitron-back" onclick="GDPRConsent.closePanel();" aria-label="'+T.lang.close+'"></button>',l+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',l+=' <button type="button" id="tarteaucitron-close-panel" onclick="GDPRConsent.closePanel();">&#128473;</button>',l+=' <div id="tarteaucitron-services">',l+=' <div id="tarteaucitron-main-line">',l+=' <span class="tarteaucitron-h1" role="heading" aria-level="1" id="dialogTitle">'+T.lang.title+"</span>",l+=' <div id="tarteaucitron-info">',l+=" "+T.lang.disclaimer,T.parameters.websiteName&&(l+=" "+T.lang.disclaimerWebsite+" "+T.parameters.websiteName+"."),l+=" </div>",l+=' <div class="tarteaucitron-line">',l+=' <div class="tarteaucitron-name">',l+=' <span class="tarteaucitron-h2" role="heading" aria-level="2">'+T.lang.all+"</span>",l+=" </div>",l+=' <div class="tarteaucitron-ask">',l+=' <button type="button" id="tarteaucitron-all-allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respondAll(true);">',l+=" &#10003; "+T.lang.allowAll,l+=" </button> ",l+=' <button type="button" id="tarteaucitron-all-denied" class="tarteaucitron-deny" onclick="GDPRConsent.respondAll(false);">',l+=" &#10007; "+T.lang.denyAll,l+=" </button>",l+=" </div>",l+=" </div>",l+=" </div>",l+=' <div class="tarteaucitron-services-list">',l+=' <div class="clear"></div><ul>',!0===T.parameters.mandatory&&(l+='<li id="tarteaucitron-services-title_mandatory">',l+='<div class="tarteaucitron-title">',l+=' <button type="button">&nbsp; '+T.lang.mandatoryTitle+"</button>",l+="</div>",l+='<ul id="tarteaucitron-services_mandatory">',l+='<li class="tarteaucitron-line">',l+=' <div class="tarteaucitron-name">',l+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+T.lang.mandatoryText+"</span>",l+=' <span class="tarteaucitron-list-cookies"></span><br/>',l+=" </div>",l+=' <div class="tarteaucitron-ask">',l+=' <button type="button" class="tarteaucitron-allow">',l+=" &#10003; "+T.lang.allow,l+=" </button> ",l+=" </div>",l+="</li>",l+="</ul></li>"),o=0;o<m.length;o+=1)l+=' <li id="tarteaucitron-services-title_'+m[o]+'" class="tarteaucitron-hidden">',l+=' <div class="tarteaucitron-title">',l+=' <button type="button" onclick="GDPRConsent.toggle(\'tarteaucitron-details'+m[o]+"', 'tarteaucitron-info-box');return false\">&#10011; "+T.lang[m[o]].title+"</button>",l+=" </div>",l+=' <div id="tarteaucitron-details'+m[o]+'" class="tarteaucitron-details tarteaucitron-info-box">',l+=" "+T.lang[m[o]].details,l+=" </div>",l+=' <ul id="tarteaucitron-services_'+m[o]+'"></ul></li>';if(l+=' <li id="tarteaucitron-no-services-title" class="tarteaucitron-line">'+T.lang.noServices+"</li>",l+=" </ul>",l+=' <div class="tarteaucitron-hidden" id="tarteaucitron-scrollbar-child" style="height:20px;display:block"></div>',l+=" </div>",l+=" </div>",l+="</div>",T.parameters.highPrivacy&&!T.parameters.AcceptAllCta?(l+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==T.lang.siteDisclaimerTitle&&""!==T.lang.siteDisclaimerMessage&&(l+=' <span id="tarteaucitron-site-disclaimer-title">',l+=" "+T.lang.siteDisclaimerTitle,l+=" </span>",l+=" <br />",l+=" <br />",l+=' <span id="tarteaucitron-site-disclaimer-message">',l+=" "+T.lang.siteDisclaimerMessage,l+=" </span>",l+=" <br />"),l+=' <span id="tarteaucitron-disclaimer-alert">',l+=" "+T.lang.alertBigPrivacy,l+=" </span>",l+=' <span id="tarteaucitron-disclaimer-buttons">',l+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.openPanel();">',l+=" "+T.lang.personalize,l+=" </button>",l+=" </span>",l+="</div>"):(l+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==T.lang.siteDisclaimerTitle&&""!==T.lang.siteDisclaimerMessage&&(l+=' <span id="tarteaucitron-site-disclaimer-title">',l+=" "+T.lang.siteDisclaimerTitle,l+=" </span>",l+=" <br />",l+=" <br />",l+=' <span id="tarteaucitron-site-disclaimer-message">',l+=" "+T.lang.siteDisclaimerMessage,l+=" </span>",l+=" <br />"),l+=' <span id="tarteaucitron-disclaimer-alert">',T.parameters.highPrivacy?l+=" "+T.lang.alertBigPrivacy:l+=" "+T.lang.alertBigClick+" "+T.lang.alertBig,l+=" </span>",l+=' <span id="tarteaucitron-disclaimer-buttons">',l+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.respondAll(true);">',l+=" &#10003; "+T.lang.acceptAll,l+=" </button>",l+=' <button type="button" id="tarteaucitron-close-alert" onclick="GDPRConsent.openPanel();">',l+=" "+T.lang.personalize,l+=" </button>",l+=" </span>",l+="</div>",l+='<div id="tarteaucitron-percentage"></div>'),r.id="tarteaucitron-root",s.appendChild(r,s),r.innerHTML=l,n("tac.root_available"),void 0!==T.job)for(T.job=T.cleanArray(T.job),a=0;a<T.job.length;a+=1)T.addService(T.job[a]);else T.job=[];T.job.push=function(e){void 0===T.job.indexOf&&(T.job.indexOf=function(e,t){var a,n=this.length;for(a=t||0;a<n;a+=1)if(this[a]===e)return a;return-1}),-1===T.job.indexOf(e)&&Array.prototype.push.call(this,e),T.launch[e]=!1,T.addService(e)},document.location.hash===T.hashtag&&w.openPanel()},addService:function(e){var t="",a=T.services[e],i=y.read(T.parameters),o=document.location.hostname,r=document.referrer.split("/")[2]===o,l=!a.needConsent,c=i.indexOf(a.key+"=wait")>=0,d=i.indexOf(a.key+"=false")>=0,u=i.indexOf(a.key+"=true")>=0||!a.needConsent&&i.indexOf(a.key+"=false")<0,g=i.indexOf(a.key+"=false")>=0||i.indexOf(a.key+"=true")>=0,p="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack;!0!==T.added[a.key]&&(T.added[a.key]=!0,t+='<li id="'+a.key+'-line" class="tarteaucitron-line">',t+=' <div class="tarteaucitron-name">',t+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+a.name+"</span>",t+=' <span id="tacCL'+a.key+'" class="tarteaucitron-list-cookies"></span><br/>',!0===T.parameters.moreInfoLink&&(t+=' <a href="'+a.uri+'" target="_blank" rel="noreferrer noopener" title="'+a.name+" "+T.lang.newWindow+'">',t+=" "+T.lang.source,t+=" </a>"),t+=" </div>",t+=' <div class="tarteaucitron-ask">',t+=' <button type="button" id="'+a.key+'Allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respond(this, true);">',t+=" &#10003; "+T.lang.allow,t+=" </button> ",t+=' <button type="button" id="'+a.key+'Denied" class="tarteaucitron-deny" onclick="GDPRConsent.respond(this, false);">',t+=" &#10007; "+T.lang.deny,t+=" </button>",t+=" </div>",t+="</li>",s("tarteaucitron-services-title_"+a.type,"display","block"),null!==document.getElementById("tarteaucitron-services_"+a.type)&&(document.getElementById("tarteaucitron-services_"+a.type).innerHTML+=t),s("tarteaucitron-no-services-title","display","none"),w.order(a.type,T)),!g&&(l||r&&c)&&!T.highPrivacy||u?(u||y.create(a.key,!0,T.parameters),!0!==T.launch[a.key]&&(T.launch[a.key]=!0,a.js(),n(a.key+"_loaded")),T.state[a.key]=!0,w.color(a.key,!0,T)):d?("function"==typeof a.fallback&&a.fallback(),T.state[a.key]=!1,w.color(a.key,!1,T)):!g&&p&&T.handleBrowserDNTRequest?(y.create(a.key,"false",T.parameters),"function"==typeof a.fallback&&a.fallback(),T.state[a.key]=!1,w.color(a.key,!1,T)):g||(y.create(a.key,"wait",T.parameters),"function"==typeof a.fallback&&a.fallback(),w.color(a.key,"wait",T),w.openAlert()),y.checkCount(a.key,a,T.lang),n(a.key+"_added")},cleanArray:function(e){var t,a=e.length,n=[],i={},o=T.services;for(t=0;t<a;t+=1)i[e[t]]||(i[e[t]]={},void 0!==T.services[e[t]]&&n.push(e[t]));return n.sort((function(e,t){return o[e].type+o[e].key>o[t].type+o[t].key?1:o[e].type+o[e].key<o[t].type+o[t].key?-1:0}))},closePanel:function(){w.closePanel(T)},openPanel:function(){w.openPanel()},respondAll:function(e){w.respondAll(e,T,T.parameters)},respond:function(e,t){w.respond(e,t,T,T.parameters)},toggle:function(e,t){w.toggle(e,t)}};var _=T},579:function(e,t,a){const n=a(927).Z;e.exports=n}},t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,a),i.exports}return a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a(579)}()}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.GDPRConsent=t():e.GDPRConsent=t()}(self,(function(){return function(){var e={927:function(e,t,a){"use strict";function n(e){if(void 0!==e){let t;"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),window.dispatchEvent(t)}}function i(e,t,a,n,i,o){var r,s=!1;!1===n?"function"==typeof a&&a():((r=document.createElement("script")).type="text/javascript",r.id=void 0!==t?t:"",r.async=!0,r.src=e,void 0!==i&&void 0!==o&&r.setAttribute(i,o),"function"==typeof a&&(r.onreadystatechange=r.onload=function(){var e=r.readyState;s||e&&!/loaded|complete/.test(e)||(s=!0,a())}),document.getElementsByTagName("head")[0].appendChild(r))}function o(e,t){var a,n=document.getElementsByTagName("*"),i=0;for(a in n)if(void 0!==n[a])for(i=0;i<e.length;i+=1)(" "+n[a].className+" ").indexOf(" "+e[i]+" ")>-1&&t(n[a])}function r(e,t,a){null!==document.getElementById(e)&&(document.getElementById(e).style[t]=a)}function s(e,t){null!==document.getElementById(e)&&document.getElementById(e).classList.add(t)}function l(e,t){null!==document.getElementById(e)&&document.getElementById(e).classList.remove(t)}a.d(t,{Z:function(){return T}});var c={siteDisclaimerTitle:"«&nbsp;Le site qui raconte l’actualité en séries&nbsp;»",siteDisclaimerMessage:'<i>Les&nbsp;Jours</i> sont un média <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours c’est quoi ?" href="/les-jours-c-quoi/">indépendant et sans pub</a> accessible par <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Abonnement" href="/abonnement/jouriste">abonnement</a>. Découvrez <a data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours en Clair" href="/les-jours-en-clair/">notre zone gratuite</a>&nbsp;: l’actualité en profondeur, avec des épisodes, des personnages, des lieux.',alertBigScroll:"En continuant de défiler,",alertBigClick:"En poursuivant votre navigation,",alertBig:"vous acceptez l’utilisation de services tiers pouvant installer des cookies",alertBigPrivacy:"Ce site utilise des cookies et vous donne le contrôle sur ce que vous souhaitez activer",personalize:"Personnaliser",acceptAll:"OK, tout accepter",close:"Fermer",all:"Préférences pour tous les services",disclaimer:"En autorisant ces services tiers, vous acceptez le dépôt et la lecture de cookies et l’utilisation de technologies de suivi nécessaires à leur bon fonctionnement.",disclaimerWebsite:"Ces services nous aident à améliorer",allow:"Autoriser",deny:"Interdire",noCookie:"Ce service ne dépose aucun cookie.",useCookie:"Ce service peut déposer",useCookieCurrent:"Ce service a déposé",useNoCookie:"Ce service n’a déposé aucun cookie.",source:"Voir le site officiel",noServices:"Ce site n’utilise aucun cookie nécessitant votre consentement.",title:"Panneau de gestion des cookies",newWindow:"(nouvelle fenêtre)",allowAll:"Autoriser tous les cookies",denyAll:"Interdire tous les cookies",ads:{title:"Régies publicitaires (pour nous faire connaître)",details:"Les régies publicitaires permettent de générer des revenus en commercialisant les espaces publicitaires du site."},analytic:{title:"Mesure de navigation (ergonomie) et d’audience",details:"Les services de mesure d’audience permettent de générer des statistiques de fréquentation utiles à l’amélioration du site."},social:{title:"Réseaux sociaux (boutons de partage et Twitter cards)",details:"Les réseaux sociaux permettent d’améliorer la convivialité du site et aident à sa promotion via les partages."},video:{title:"Vidéos",details:"Les services de partage de vidéo permettent d’enrichir le site de contenu multimédia et augmentent sa visibilité."},comment:{title:"Commentaires",details:"Les gestionnaires de commentaires facilitent le dépôt de vos commentaires et luttent contre le spam."},support:{title:"Support",details:"Les services de support vous permettent d’entrer en contact avec l’équipe du site et d’aider à son amélioration."},api:{title:"Services",details:"Les APIs permettent de charger des scripts : géolocalisation, moteurs de recherche, traductions, ..."},other:{title:"Autre",details:"Services visant à afficher du contenu web."},mandatoryTitle:"Cookies obligatoires",mandatoryText:"Ce site utilise des cookies nécessaires à son bon fonctionnement qui ne peuvent pas être désactivés."},d={siteDisclaimerTitle:"«&nbsp;Le site qui raconte l’actualité en séries&nbsp;»",siteDisclaimerMessage:'<i>Les&nbsp;Jours</i> sont un média <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours c’est quoi ?" href="/les-jours-c-quoi/">indépendant et sans pub</a> accessible par <a data-ga-type="click" data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Abonnement" href="/abonnement/jouriste">abonnement</a>. Découvrez <a data-ga-category="Bottom Bar" data-ga-action="Navigate" data-ga-label="Les Jours en Clair" href="/les-jours-en-clair/">notre zone gratuite</a>&nbsp;: l’actualité en profondeur, avec des épisodes, des personnages, des lieux.',alertBigScroll:"By continuing to scroll,",alertBigClick:"If you continue to browse this website,",alertBig:"you are allowing all third-party services",alertBigPrivacy:"This site uses cookies and gives you control over what you want to activate",personalize:"Personalize",acceptAll:"OK, accept all",close:"Close",all:"Preference for all services",disclaimer:"By allowing these third party services, you accept their cookies and the use of tracking technologies necessary for their proper functioning.",disclaimerWebsite:"These services help us improve",allow:"Allow",deny:"Deny",noCookie:"This service does not use cookie.",useCookie:"This service can install",useCookieCurrent:"This service has installed",useNoCookie:"This service has not installed any cookie.",source:"View the official website",noServices:"This website does not use any cookie requiring your consent.",title:"Cookies management panel",newWindow:"(new window)",allowAll:"Allow all cookies",denyAll:"Deny all cookies",ads:{title:"Advertising network (to let us know)",details:"Ad networks can generate revenue by selling advertising space on the site."},analytic:{title:"Navigation (ergonomics) and audience measurement",details:"The audience measurement services used to generate useful statistics attendance to improve the site."},social:{title:"Social networks (sharing buttons and Twitter cards)",details:"Social networks can improve the usability of the site and help to promote it via the shares."},video:{title:"Videos",details:"Video sharing services help to add rich media on the site and increase its visibility."},comment:{title:"Comments",details:"Comments managers facilitate the filing of comments and fight against spam."},support:{title:"Support",details:"Support services allow you to get in touch with the site team and help to improve it."},api:{title:"Services",details:"APIs are used to load scripts: geolocation, search engines, translations, ..."},other:{title:"Other",details:"Services to display web content."},mandatoryTitle:"Mandatory cookies",mandatoryText:"This site uses cookies necessary for its proper functioning which cannot be deactivated."},u=()=>({key:"facebookpixel",type:"ads",name:"Facebook Pixel",uri:"https://www.facebook.com/policies/cookies/",needConsent:!0,cookies:["datr","fr","reg_ext_ref","reg_fb_gate","reg_fb_ref","sb","wd","x-src"],js:function(){var e;window.fbq||(e=window.fbq=function(){e.callMethod?e.callMethod.apply(e,arguments):e.queue.push(arguments)},window._fbq||(window._fbq=e),e.push=e,e.loaded=!0,e.version="2.0",e.queue=[],i("//connect.facebook.net/en_US/fbevents.js","facebook-fbevents",(function(){fbq("init",GDPRConsentUser.fbPixelId),fbq("track","PageView")})))}}),g=e=>({key:"googletagmanager",type:"api",name:"Google Tag Manager",uri:"https://adssettings.google.com/",needConsent:!0,cookies:["_ga","_gat","__utma","__utmb","__utmc","__utmt","__utmz","__gads","_drt_","FLC","exchange_uid","id","fc","rrs","rds","rv","uid","UIDR","UID","clid","ipinfo","acs"],js:function(){void 0!==e.googletagmanagerId&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),i("https://www.googletagmanager.com/gtm.js?id="+e.googletagmanagerId))}}),p=e=>{return{key:"gtag",type:"analytic",name:"Google Analytics (gtag.js)",uri:"https://support.google.com/analytics/answer/6004245",needConsent:!0,cookies:(t="_gat_gtag_"+e.gtagUa,["_ga","_gat","_gid","__utma","__utmb","__utmc","__utmt","__utmz",t=t.replace(/-/g,"_")]),js:function(){window.dataLayer=window.dataLayer||[],i("https://www.googletagmanager.com/gtag/js?id="+e.gtagUa,"",(function(){window.gtag=function(){dataLayer.push(arguments)},gtag("js",new Date),e.gtagInitOptions?gtag("config",e.gtagUa,e.gtagInitOptions):gtag("config",e.gtagUa),"function"==typeof e.gtagMore&&e.gtagMore()}))}};var t};const m={};function f(e,t){var a;for(a=0;a<e.length;a+=1)if(e[a]===t)return!0;return!1}function v(e){var t,a,n=e.cookieName+"=",i=document.cookie.split(";");for(t=0;t<i.length;t+=1){for(a=i[t];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(n))return a.substring(n.length,a.length)}return""}var y={read:v,create:function(e,t,a){var n=new Date,i=n.getTime()+a.timeExpire,o=new RegExp("!"+e+"=(wait|true|false)","g"),r=v(a).replace(o,""),s=a.cookieName+"="+r+"!"+e+"="+t;n.setTime(i),document.cookie=s+"; expires="+n.toGMTString()+"; path=/;"},purge:function(e){var t;for(t=0;t<e.length;t+=1)document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname+";",document.cookie=e[t]+"=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=."+location.hostname.split(".").slice(-2).join(".")+";"},checkCount:function(e,t,a){var n,i=t.cookies,o=i.length,r=0,s="",l=document.cookie.indexOf(e+"=true");if(l>=0&&0===o)s+=a.useNoCookie;else if(l>=0){for(n=0;n<o;n+=1)-1!==document.cookie.indexOf(i[n]+"=")&&(r+=1,void 0===m[i[n]]&&(m[i[n]]=[]),!1===f(m[i[n]],t.name)&&m[i[n]].push(t.name));r>0?(s+=a.useCookieCurrent+" "+r+" cookie",r>1&&(s+="s"),s+="."):s+=a.useNoCookie}else 0===o?s=a.noCookie:(s+=a.useCookie+" "+o+" cookie",o>1&&(s+="s"),s+=".");null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML=s)}};function h(e){"main"===e&&null!==document.getElementById("tarteaucitron")&&null!==document.getElementById("tarteaucitron-main-line")&&(r("tarteaucitron-services","height","auto"),r("tarteaucitron-services","height",document.getElementById("tarteaucitron").offsetHeight+"px"),r("tarteaucitron-services","overflow-x","auto"))}function b(){var e="tarteaucitron";r(e+"-percentage","display","none"),r(e+"-alert-big","display","none"),l(e+"-root","tarteaucitron-before-visible"),n("tac.close_alert")}function k(e,t,a){var n,i="tarteaucitron",o=0,c=0,d=0,u=a.job.length;for(!0===t?(document.getElementById(e+"-line").classList.add("tarteaucitron-is-allowed"),document.getElementById(e+"-line").classList.remove("tarteaucitron-is-denied")):!1===t&&(document.getElementById(e+"-line").classList.remove("tarteaucitron-is-allowed"),document.getElementById(e+"-line").classList.add("tarteaucitron-is-denied")),n=0;n<u;n+=1)!1===a.state[a.job[n]]?o+=1:void 0===a.state[a.job[n]]?c+=1:!0===a.state[a.job[n]]&&(d+=1);r(i+"-dot-green","width",100/u*d+"%"),r(i+"-dot-yellow","width",100/u*c+"%"),r(i+"-dot-red","width",100/u*o+"%"),0===o&&0===c?(l(i+"-all-denied",i+"-is-selected"),s(i+"-all-allowed",i+"-is-selected"),s(i+"-main-line-offset",i+"-is-allowed"),l(i+"-main-line-offset",i+"-is-denied")):0===d&&0===c?(l(i+"-all-allowed",i+"-is-selected"),s(i+"-all-denied",i+"-is-selected"),l(i+"-main-line-offset",i+"-is-allowed"),s(i+"-main-line-offset",i+"-is-denied")):(l(i+"-all-allowed",i+"-is-selected"),l(i+"-all-denied",i+"-is-selected"),l(i+"-main-line-offset",i+"-is-allowed"),l(i+"-main-line-offset",i+"-is-denied")),0===c&&b(),a.services[e].cookies.length>0&&!1===t&&y.purge(a.services[e].cookies),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){y.checkCount(e,a.services[e],a.lang)}),2500)):y.checkCount(e,a.services[e],a.lang)}var w={jsSizing:h,closePanel:function(e){document.location.hash===e.hashtag&&(window.history?window.history.replaceState("",document.title,window.location.pathname+window.location.search):document.location.hash=""),r("tarteaucitron","display","none"),o(["tarteaucitron-info-box"],(function(e){e.style.display="none"})),!0===e.reloadThePage?window.location.reload():r("tarteaucitron-back","display","none"),null!==document.getElementById("tarteaucitron-close-alert")&&document.getElementById("tarteaucitron-close-alert").focus(),document.getElementsByTagName("body")[0].classList.remove("modal-open"),n("tac.close_panel")},openPanel:function(){r("tarteaucitron","display","block"),r("tarteaucitron-back","display","block"),document.getElementById("tarteaucitron-close-panel").focus(),document.getElementsByTagName("body")[0].classList.add("modal-open"),h("main"),n("tac.open_panel")},closeAlert:b,openAlert:function(){var e="tarteaucitron";r(e+"-percentage","display","block"),r(e+"-alert-big","display","block"),s(e+"-root","tarteaucitron-before-visible"),n("tac.open_alert")},color:k,respondAll:function(e,t,a){var n,i=t.services,o=0;for(o=0;o<t.job.length;o+=1)n=i[t.job[o]].key,t.state[n]!==e&&(!1===e&&!0===t.launch[n]&&(t.reloadThePage=!0),!0!==t.launch[n]&&!0===e&&(t.launch[n]=!0,t.services[n].js()),t.state[n]=e,y.create(n,e,a),k(n,e,t))},respond:function(e,t,a,i){var o=e.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed","g"),"");a.state[o]!==t&&(!1===t&&!0===a.launch[o]&&(a.reloadThePage=!0),!0===t&&!0!==a.launch[o]&&(a.launch[o]=!0,n(o+"_loaded"),a.services[o].js()),a.state[o]=t,y.create(o,t,i),k(o,t,a))},toggle:function(e,t){var a=document.getElementById(e);null!==a&&(void 0!==t&&o([t],(function(t){t.id!==e&&(t.style.display="none")})),"block"!==a.style.display?a.style.display="block":a.style.display="none")},order:function(e,t){var a=document.getElementById("tarteaucitron-services_"+e);null!==a&&"function"==typeof Array.prototype.map&&"undefined"==typeof Enumerable&&Array.prototype.map.call(a.children,Object).sort((function(e,a){return t.services[e.id.replace(/-line/g,"")].name>t.services[a.id.replace(/-line/g,"")].name?1:t.services[e.id.replace(/-line/g,"")].name<t.services[a.id.replace(/-line/g,"")].name?-1:0})).forEach((function(e){a.appendChild(e)}))}},C=function(e,t){27===t.keyCode&&w.closePanel()},_=function(e){document.location.hash===e.hashtag&&w.openPanel()},E=function(){var e=document.getElementById("tarteaucitron");e&&"block"===e.style.display&&w.jsSizing("main")},B=function(e,t,a){var n,i=window.pageYOffset||document.documentElement.scrollTop,o=document.getElementById("tarteaucitron-percentage"),r=document.getElementById("tarteaucitron-alert-big");r&&!t.highPrivacy&&"block"===r.style.display&&(n=r.offsetHeight+"px",i>2*screen.height?w.respondAll(!0,e,t):i>screen.height/2&&(document.getElementById("tarteaucitron-disclaimer-alert").innerHTML="<strong>"+a.alertBigScroll+"</strong> "+a.alertBig),o&&(o.style.bottom=n,o.style.width=100/(2*screen.height)*i+"%"))};const L={user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},reloadThePage:!1,alreadyLaunch:0,init:function(e){L.parameters=e||{},0===L.alreadyLaunch&&(L.alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){L.load()}),!1),window.addEventListener("scroll",(function(){B(L,L.parameters,L.lang)}),!1),window.addEventListener("keydown",(function(e){C(!1,e)}),!1),window.addEventListener("hashchange",(function(){_(L.parameters)}),!1),window.addEventListener("resize",(function(){E()}),!1)):(window.attachEvent("onload",(function(){L.load()})),window.attachEvent("onscroll",(function(){B(L.parameters)})),window.attachEvent("onkeydown",(function(e){C(!0,e)})),window.attachEvent("onhashchange",(function(){_(L.parameters)})),window.attachEvent("onresize",(function(){E()}))))},load:function(){var e={hashtag:"#tarteaucitron",cookieName:"tarteaucitron",timeExpire:31536e6,websiteName:void 0,highPrivacy:!1,AcceptAllCta:!0,moreInfoLink:!0,mandatory:!0};if(void 0!==L.parameters)for(var t in e)Object.prototype.hasOwnProperty.call(L.parameters,t)||(L.parameters[t]=e[t]);L.lang=(()=>{switch(function(){if(!navigator)return"en";let e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null,t=e?e.substr(0,2):null;return-1==="en,fr".indexOf(t)?"en":t}()){case"fr":return c;default:return d}})(),L.services=(e=>({facebook:{key:"facebook",type:"social",name:"Facebook",uri:"https://www.facebook.com/policies/cookies/",needConsent:!0,cookies:[],js:function(){i("//connect.facebook.net/"+function(){if(!navigator)return"en_US";let e=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLang||null;return"fr"===(e?e.substr(0,2):null)?"fr_FR":"en_US"}()+"/sdk.js","facebook-jssdk")}},facebookpixel:u(),googletagmanager:g(e),gtag:p(e),twitter:{key:"twitter",type:"social",name:"Twitter",uri:"https://support.twitter.com/articles/20170514",needConsent:!0,cookies:[],js:function(){i("//platform.twitter.com/widgets.js","twitter-wjs")}}}))(L.user);var a,o,r=document.body,s=document.createElement("div"),l="",m=["ads","analytic","api","comment","social","support","video","other"];for(m=m.sort((function(e,t){return L.lang[e].title>L.lang[t].title?1:L.lang[e].title<L.lang[t].title?-1:0})),l+='<button type="button" id="tarteaucitron-back" onclick="GDPRConsent.closePanel();" aria-label="'+L.lang.close+'"></button>',l+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',l+=' <button type="button" id="tarteaucitron-close-panel" onclick="GDPRConsent.closePanel();">&#128473;</button>',l+=' <div id="tarteaucitron-services">',l+=' <div id="tarteaucitron-main-line">',l+=' <span class="tarteaucitron-h1" role="heading" aria-level="1" id="dialogTitle">'+L.lang.title+"</span>",l+=' <div id="tarteaucitron-info">',l+=" "+L.lang.disclaimer,L.parameters.websiteName&&(l+=" "+L.lang.disclaimerWebsite+" "+L.parameters.websiteName+"."),l+=" </div>",l+=' <div class="tarteaucitron-line">',l+=' <div class="tarteaucitron-name">',l+=' <span class="tarteaucitron-h2" role="heading" aria-level="2">'+L.lang.all+"</span>",l+=" </div>",l+=' <div class="tarteaucitron-ask">',l+=' <button type="button" id="tarteaucitron-all-allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respondAll(true);">',l+=" &#10003; "+L.lang.allowAll,l+=" </button> ",l+=' <button type="button" id="tarteaucitron-all-denied" class="tarteaucitron-deny" onclick="GDPRConsent.respondAll(false);">',l+=" &#10007; "+L.lang.denyAll,l+=" </button>",l+=" </div>",l+=" </div>",l+=" </div>",l+=' <div class="tarteaucitron-services-list">',l+=' <div class="clear"></div><ul>',!0===L.parameters.mandatory&&(l+='<li id="tarteaucitron-services-title_mandatory">',l+='<div class="tarteaucitron-title">',l+=' <button type="button">&nbsp; '+L.lang.mandatoryTitle+"</button>",l+="</div>",l+='<ul id="tarteaucitron-services_mandatory">',l+='<li class="tarteaucitron-line">',l+=' <div class="tarteaucitron-name">',l+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+L.lang.mandatoryText+"</span>",l+=' <span class="tarteaucitron-list-cookies"></span><br/>',l+=" </div>",l+=' <div class="tarteaucitron-ask">',l+=' <button type="button" class="tarteaucitron-allow">',l+=" &#10003; "+L.lang.allow,l+=" </button> ",l+=" </div>",l+="</li>",l+="</ul></li>"),o=0;o<m.length;o+=1)l+=' <li id="tarteaucitron-services-title_'+m[o]+'" class="tarteaucitron-hidden">',l+=' <div class="tarteaucitron-title">',l+=' <button type="button" onclick="GDPRConsent.toggle(\'tarteaucitron-details'+m[o]+"', 'tarteaucitron-info-box');return false\">&#10011; "+L.lang[m[o]].title+"</button>",l+=" </div>",l+=' <div id="tarteaucitron-details'+m[o]+'" class="tarteaucitron-details tarteaucitron-info-box">',l+=" "+L.lang[m[o]].details,l+=" </div>",l+=' <ul id="tarteaucitron-services_'+m[o]+'"></ul></li>';if(l+=' <li id="tarteaucitron-no-services-title" class="tarteaucitron-line">'+L.lang.noServices+"</li>",l+=" </ul>",l+=' <div class="tarteaucitron-hidden" id="tarteaucitron-scrollbar-child" style="height:20px;display:block"></div>',l+=" </div>",l+=" </div>",l+="</div>",L.parameters.highPrivacy&&!L.parameters.AcceptAllCta?(l+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==L.lang.siteDisclaimerTitle&&""!==L.lang.siteDisclaimerMessage&&(l+=' <span id="tarteaucitron-site-disclaimer-title">',l+=" "+L.lang.siteDisclaimerTitle,l+=" </span>",l+=" <br />",l+=" <br />",l+=' <span id="tarteaucitron-site-disclaimer-message">',l+=" "+L.lang.siteDisclaimerMessage,l+=" </span>",l+=" <br />"),l+=' <span id="tarteaucitron-disclaimer-alert">',l+=" "+L.lang.alertBigPrivacy,l+=" </span>",l+=' <span id="tarteaucitron-disclaimer-buttons">',l+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.openPanel();">',l+=" "+L.lang.personalize,l+=" </button>",l+=" </span>",l+="</div>"):(l+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==L.lang.siteDisclaimerTitle&&""!==L.lang.siteDisclaimerMessage&&(l+=' <span id="tarteaucitron-site-disclaimer-title">',l+=" "+L.lang.siteDisclaimerTitle,l+=" </span>",l+=" <br />",l+=" <br />",l+=' <span id="tarteaucitron-site-disclaimer-message">',l+=" "+L.lang.siteDisclaimerMessage,l+=" </span>",l+=" <br />"),l+=' <span id="tarteaucitron-disclaimer-alert">',L.parameters.highPrivacy?l+=" "+L.lang.alertBigPrivacy:l+=" "+L.lang.alertBigClick+" "+L.lang.alertBig,l+=" </span>",l+=' <span id="tarteaucitron-disclaimer-buttons">',l+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.respondAll(true);">',l+=" &#10003; "+L.lang.acceptAll,l+=" </button>",l+=' <button type="button" id="tarteaucitron-close-alert" onclick="GDPRConsent.openPanel();">',l+=" "+L.lang.personalize,l+=" </button>",l+=" </span>",l+="</div>",l+='<div id="tarteaucitron-percentage"></div>'),s.id="tarteaucitron-root",r.appendChild(s,r),s.innerHTML=l,n("tac.root_available"),void 0!==L.job)for(L.job=L.cleanArray(L.job),a=0;a<L.job.length;a+=1)L.addService(L.job[a]);else L.job=[];L.job.push=function(e){void 0===L.job.indexOf&&(L.job.indexOf=function(e,t){var a,n=this.length;for(a=t||0;a<n;a+=1)if(this[a]===e)return a;return-1}),-1===L.job.indexOf(e)&&Array.prototype.push.call(this,e),L.launch[e]=!1,L.addService(e)},document.location.hash===L.hashtag&&w.openPanel()},addService:function(e){var t="",a=L.services[e],i=y.read(L.parameters),o=document.location.hostname,s=document.referrer.split("/")[2]===o,l=!a.needConsent,c=i.indexOf(a.key+"=wait")>=0,d=i.indexOf(a.key+"=false")>=0,u=i.indexOf(a.key+"=true")>=0||!a.needConsent&&i.indexOf(a.key+"=false")<0,g=i.indexOf(a.key+"=false")>=0||i.indexOf(a.key+"=true")>=0,p="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack;!0!==L.added[a.key]&&(L.added[a.key]=!0,t+='<li id="'+a.key+'-line" class="tarteaucitron-line">',t+=' <div class="tarteaucitron-name">',t+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+a.name+"</span>",t+=' <span id="tacCL'+a.key+'" class="tarteaucitron-list-cookies"></span><br/>',!0===L.parameters.moreInfoLink&&(t+=' <a href="'+a.uri+'" target="_blank" rel="noreferrer noopener" title="'+a.name+" "+L.lang.newWindow+'">',t+=" "+L.lang.source,t+=" </a>"),t+=" </div>",t+=' <div class="tarteaucitron-ask">',t+=' <button type="button" id="'+a.key+'Allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respond(this, true);">',t+=" &#10003; "+L.lang.allow,t+=" </button> ",t+=' <button type="button" id="'+a.key+'Denied" class="tarteaucitron-deny" onclick="GDPRConsent.respond(this, false);">',t+=" &#10007; "+L.lang.deny,t+=" </button>",t+=" </div>",t+="</li>",r("tarteaucitron-services-title_"+a.type,"display","block"),null!==document.getElementById("tarteaucitron-services_"+a.type)&&(document.getElementById("tarteaucitron-services_"+a.type).innerHTML+=t),r("tarteaucitron-no-services-title","display","none"),w.order(a.type,L)),!g&&(l||s&&c)&&!L.highPrivacy||u?(u||y.create(a.key,!0,L.parameters),!0!==L.launch[a.key]&&(L.launch[a.key]=!0,a.js(),n(a.key+"_loaded")),L.state[a.key]=!0,w.color(a.key,!0,L)):d?("function"==typeof a.fallback&&a.fallback(),L.state[a.key]=!1,w.color(a.key,!1,L)):!g&&p&&L.handleBrowserDNTRequest?(y.create(a.key,"false",L.parameters),"function"==typeof a.fallback&&a.fallback(),L.state[a.key]=!1,w.color(a.key,!1,L)):g||(y.create(a.key,"wait",L.parameters),"function"==typeof a.fallback&&a.fallback(),w.color(a.key,"wait",L),w.openAlert()),y.checkCount(a.key,a,L.lang),n(a.key+"_added")},cleanArray:function(e){var t,a=e.length,n=[],i={},o=L.services;for(t=0;t<a;t+=1)i[e[t]]||(i[e[t]]={},void 0!==L.services[e[t]]&&n.push(e[t]));return n.sort((function(e,t){return o[e].type+o[e].key>o[t].type+o[t].key?1:o[e].type+o[e].key<o[t].type+o[t].key?-1:0}))},closePanel:function(){w.closePanel(L)},openPanel:function(){w.openPanel()},respondAll:function(e){w.respondAll(e,L,L.parameters)},respond:function(e,t){w.respond(e,t,L,L.parameters)},toggle:function(e,t){w.toggle(e,t)}};var T=L},579:function(e,t,a){const n=a(927).Z;e.exports=n}},t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,a),i.exports}return a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a(579)}()}));
{
"name": "gdpr-consent",
"version": "0.5.4",
"version": "0.5.5",
"description": "GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -10,5 +10,16 @@ /* globals fbq: true */

needConsent: true,
cookies: [],
cookies: ["datr", "fr", "reg_ext_ref", "reg_fb_gate", "reg_fb_ref", "sb", "wd", "x-src"],
js: function() {
"use strict";
var n;
if (window.fbq) {return;}
n = window.fbq = function() {
n.callMethod ?
n.callMethod.apply(n, arguments) : n.queue.push(arguments);
};
if (!window._fbq) {window._fbq = n;}
n.push = n;
n.loaded = !0;
n.version = "2.0";
n.queue = [];
addScript("//connect.facebook.net/en_US/fbevents.js", "facebook-fbevents", function() {

@@ -15,0 +26,0 @@ // eslint-disable-next-line no-undef

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc