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.3 to 0.5.4

src/services/facebookpixel.js

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()}(window,(function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,a){const n=a(2).default;e.exports=n},function(e,t,a){},function(e,t,a){"use strict";a.r(t);a(1);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)}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."};var 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."};var u=()=>{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}},g=()=>({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")}}),p=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))}}),m=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},v=e=>({facebook:g(),googletagmanager:p(e),gtag:m(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")}}});const f={};function y(e,t){var a;for(a=0;a<e.length;a+=1)if(e[a]===t)return!0;return!1}function h(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 b={read:h,create:function(e,t,a){var n=new Date,i=n.getTime()+a.timeExpire,o=new RegExp("!"+e+"=(wait|true|false)","g"),r=h(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===f[i[n]]&&(f[i[n]]=[]),!1===y(f[i[n]],t.name)&&f[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 k(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 w(){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 E(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&&w(),a.services[e].cookies.length>0&&!1===t&&b.purge(a.services[e].cookies),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){b.checkCount(e,a.services[e],a.lang)}),2500)):b.checkCount(e,a.services[e],a.lang)}var C={jsSizing:k,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"),k("main"),n("tac.open_panel")},closeAlert:w,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:E,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,b.create(n,e,a),E(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,b.create(o,t,i),E(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)}))}};var B={keydownEvent:function(e,t){27===t.keyCode&&C.closePanel()},hashchangeEvent:function(e){document.location.hash===e.hashtag&&C.openPanel()},resizeEvent:function(){var e=document.getElementById("tarteaucitron");e&&"block"===e.style.display&&C.jsSizing("main")},scrollEvent: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?C.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 _={user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},reloadThePage:!1,alreadyLaunch:0,init:function(e){_.parameters=e||{},0===_.alreadyLaunch&&(_.alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){_.load()}),!1),window.addEventListener("scroll",(function(){B.scrollEvent(_,_.parameters,_.lang)}),!1),window.addEventListener("keydown",(function(e){B.keydownEvent(!1,e)}),!1),window.addEventListener("hashchange",(function(){B.hashchangeEvent(_.parameters)}),!1),window.addEventListener("resize",(function(){B.resizeEvent()}),!1)):(window.attachEvent("onload",(function(){_.load()})),window.attachEvent("onscroll",(function(){B.scrollEvent(_.parameters)})),window.attachEvent("onkeydown",(function(e){B.keydownEvent(!0,e)})),window.attachEvent("onhashchange",(function(){B.hashchangeEvent(_.parameters)})),window.attachEvent("onresize",(function(){B.resizeEvent()}))))},load:function(){var e={hashtag:"#tarteaucitron",cookieName:"tarteaucitron",timeExpire:31536e6,websiteName:void 0,highPrivacy:!1,AcceptAllCta:!0,moreInfoLink:!0,mandatory:!0};if(void 0!==_.parameters)for(var t in e)Object.prototype.hasOwnProperty.call(_.parameters,t)||(_.parameters[t]=e[t]);_.lang=u(),_.services=v(_.user);var a,i,o=document.body,r=document.createElement("div"),s="",l=["ads","analytic","api","comment","social","support","video","other"];for(l=l.sort((function(e,t){return _.lang[e].title>_.lang[t].title?1:_.lang[e].title<_.lang[t].title?-1:0})),s+='<button type="button" id="tarteaucitron-back" onclick="GDPRConsent.closePanel();" aria-label="'+_.lang.close+'"></button>',s+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',s+=' <button type="button" id="tarteaucitron-close-panel" onclick="GDPRConsent.closePanel();">&#128473;</button>',s+=' <div id="tarteaucitron-services">',s+=' <div id="tarteaucitron-main-line">',s+=' <span class="tarteaucitron-h1" role="heading" aria-level="1" id="dialogTitle">'+_.lang.title+"</span>",s+=' <div id="tarteaucitron-info">',s+=" "+_.lang.disclaimer,_.parameters.websiteName&&(s+=" "+_.lang.disclaimerWebsite+" "+_.parameters.websiteName+"."),s+=" </div>",s+=' <div class="tarteaucitron-line">',s+=' <div class="tarteaucitron-name">',s+=' <span class="tarteaucitron-h2" role="heading" aria-level="2">'+_.lang.all+"</span>",s+=" </div>",s+=' <div class="tarteaucitron-ask">',s+=' <button type="button" id="tarteaucitron-all-allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respondAll(true);">',s+=" &#10003; "+_.lang.allowAll,s+=" </button> ",s+=' <button type="button" id="tarteaucitron-all-denied" class="tarteaucitron-deny" onclick="GDPRConsent.respondAll(false);">',s+=" &#10007; "+_.lang.denyAll,s+=" </button>",s+=" </div>",s+=" </div>",s+=" </div>",s+=' <div class="tarteaucitron-services-list">',s+=' <div class="clear"></div><ul>',!0===_.parameters.mandatory&&(s+='<li id="tarteaucitron-services-title_mandatory">',s+='<div class="tarteaucitron-title">',s+=' <button type="button">&nbsp; '+_.lang.mandatoryTitle+"</button>",s+="</div>",s+='<ul id="tarteaucitron-services_mandatory">',s+='<li class="tarteaucitron-line">',s+=' <div class="tarteaucitron-name">',s+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+_.lang.mandatoryText+"</span>",s+=' <span class="tarteaucitron-list-cookies"></span><br/>',s+=" </div>",s+=' <div class="tarteaucitron-ask">',s+=' <button type="button" class="tarteaucitron-allow">',s+=" &#10003; "+_.lang.allow,s+=" </button> ",s+=" </div>",s+="</li>",s+="</ul></li>"),i=0;i<l.length;i+=1)s+=' <li id="tarteaucitron-services-title_'+l[i]+'" class="tarteaucitron-hidden">',s+=' <div class="tarteaucitron-title">',s+=' <button type="button" onclick="GDPRConsent.toggle(\'tarteaucitron-details'+l[i]+"', 'tarteaucitron-info-box');return false\">&#10011; "+_.lang[l[i]].title+"</button>",s+=" </div>",s+=' <div id="tarteaucitron-details'+l[i]+'" class="tarteaucitron-details tarteaucitron-info-box">',s+=" "+_.lang[l[i]].details,s+=" </div>",s+=' <ul id="tarteaucitron-services_'+l[i]+'"></ul></li>';if(s+=' <li id="tarteaucitron-no-services-title" class="tarteaucitron-line">'+_.lang.noServices+"</li>",s+=" </ul>",s+=' <div class="tarteaucitron-hidden" id="tarteaucitron-scrollbar-child" style="height:20px;display:block"></div>',s+=" </div>",s+=" </div>",s+="</div>",_.parameters.highPrivacy&&!_.parameters.AcceptAllCta?(s+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==_.lang.siteDisclaimerTitle&&""!==_.lang.siteDisclaimerMessage&&(s+=' <span id="tarteaucitron-site-disclaimer-title">',s+=" "+_.lang.siteDisclaimerTitle,s+=" </span>",s+=" <br />",s+=" <br />",s+=' <span id="tarteaucitron-site-disclaimer-message">',s+=" "+_.lang.siteDisclaimerMessage,s+=" </span>",s+=" <br />"),s+=' <span id="tarteaucitron-disclaimer-alert">',s+=" "+_.lang.alertBigPrivacy,s+=" </span>",s+=' <span id="tarteaucitron-disclaimer-buttons">',s+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.openPanel();">',s+=" "+_.lang.personalize,s+=" </button>",s+=" </span>",s+="</div>"):(s+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==_.lang.siteDisclaimerTitle&&""!==_.lang.siteDisclaimerMessage&&(s+=' <span id="tarteaucitron-site-disclaimer-title">',s+=" "+_.lang.siteDisclaimerTitle,s+=" </span>",s+=" <br />",s+=" <br />",s+=' <span id="tarteaucitron-site-disclaimer-message">',s+=" "+_.lang.siteDisclaimerMessage,s+=" </span>",s+=" <br />"),s+=' <span id="tarteaucitron-disclaimer-alert">',_.parameters.highPrivacy?s+=" "+_.lang.alertBigPrivacy:s+=" "+_.lang.alertBigClick+" "+_.lang.alertBig,s+=" </span>",s+=' <span id="tarteaucitron-disclaimer-buttons">',s+=' <button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.respondAll(true);">',s+=" &#10003; "+_.lang.acceptAll,s+=" </button>",s+=' <button type="button" id="tarteaucitron-close-alert" onclick="GDPRConsent.openPanel();">',s+=" "+_.lang.personalize,s+=" </button>",s+=" </span>",s+="</div>",s+='<div id="tarteaucitron-percentage"></div>'),r.id="tarteaucitron-root",o.appendChild(r,o),r.innerHTML=s,n("tac.root_available"),void 0!==_.job)for(_.job=_.cleanArray(_.job),a=0;a<_.job.length;a+=1)_.addService(_.job[a]);else _.job=[];_.job.push=function(e){void 0===_.job.indexOf&&(_.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===_.job.indexOf(e)&&Array.prototype.push.call(this,e),_.launch[e]=!1,_.addService(e)},document.location.hash===_.hashtag&&C.openPanel()},addService:function(e){var t="",a=_.services[e],i=b.read(_.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!==_.added[a.key]&&(_.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===_.parameters.moreInfoLink&&(t+=' <a href="'+a.uri+'" target="_blank" rel="noreferrer noopener" title="'+a.name+" "+_.lang.newWindow+'">',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; "+_.lang.allow,t+=" </button> ",t+=' <button type="button" id="'+a.key+'Denied" class="tarteaucitron-deny" onclick="GDPRConsent.respond(this, false);">',t+=" &#10007; "+_.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"),C.order(a.type,_)),!g&&(l||s&&c)&&!_.highPrivacy||u?(u||b.create(a.key,!0,_.parameters),!0!==_.launch[a.key]&&(_.launch[a.key]=!0,a.js(),n(a.key+"_loaded")),_.state[a.key]=!0,C.color(a.key,!0,_)):d?("function"==typeof a.fallback&&a.fallback(),_.state[a.key]=!1,C.color(a.key,!1,_)):!g&&p&&_.handleBrowserDNTRequest?(b.create(a.key,"false",_.parameters),"function"==typeof a.fallback&&a.fallback(),_.state[a.key]=!1,C.color(a.key,!1,_)):g||(b.create(a.key,"wait",_.parameters),"function"==typeof a.fallback&&a.fallback(),C.color(a.key,"wait",_),C.openAlert()),b.checkCount(a.key,a,_.lang),n(a.key+"_added")},cleanArray:function(e){var t,a=e.length,n=[],i={},o=_.services;for(t=0;t<a;t+=1)i[e[t]]||(i[e[t]]={},void 0!==_.services[e[t]]&&n.push(e[t]));return n=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(){C.closePanel(_)},openPanel:function(){C.openPanel()},respondAll:function(e){C.respondAll(e,_,_.parameters)},respond:function(e,t){C.respond(e,t,_,_.parameters)},toggle:function(e,t){C.toggle(e,t)}};t.default=_}])}));
!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)}()}));
{
"name": "gdpr-consent",
"version": "0.5.3",
"version": "0.5.4",
"description": "GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.",

@@ -14,4 +14,5 @@ "license": "MIT",

},
"browserslist": "> 0.5%, last 3 versions, Firefox ESR, iOS >= 9",
"scripts": {
"server": "webpack-dev-server --mode development --config webpack.config.js --hot --open",
"server": "webpack serve --mode development --config webpack.config.js --hot --open",
"build": "webpack --mode production --config webpack.config.js --progress"

@@ -31,17 +32,17 @@ },

"devDependencies": {
"@babel/core": "^7.11.4",
"@babel/preset-env": "^7.11.0",
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"css-loader": "^4.2.1",
"eslint": "^7.7.0",
"mini-css-extract-plugin": "^0.10.0",
"sass": "^1.26.10",
"babel-loader": "^8.2.2",
"css-loader": "^5.0.1",
"eslint": "^7.18.0",
"mini-css-extract-plugin": "^1.3.4",
"sass": "^1.32.5",
"sass-lint": "^1.13.1",
"sass-loader": "^9.0.3",
"style-loader": "^1.2.1",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.0"
"sass-loader": "^10.1.1",
"style-loader": "^2.0.0",
"webpack": "^5.16.0",
"webpack-cli": "^4.4.0",
"webpack-dev-server": "^3.11.2"
}
}
/* globals module:true, require:true */
const HelloWorld = require("./gdpr-consent").default;
module.exports = HelloWorld;
const GDPRConsent = require("./gdpr-consent").default;
module.exports = GDPRConsent;
import facebook from "./facebook";
import facebookpixel from "./facebookpixel";
import googletagmanager from "./googletagmanager";

@@ -10,2 +11,3 @@ import gtag from "./gtag";

facebook: facebook(GDPRConsentUser),
facebookpixel: facebookpixel(GDPRConsentUser),
googletagmanager: googletagmanager(GDPRConsentUser),

@@ -12,0 +14,0 @@ gtag: gtag(GDPRConsentUser),

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