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.8.0 to 0.8.1

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={20: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)}a.d(t,{Z:function(){return _}});var r={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:"Tout autoriser",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:"Tout autoriser",denyAll:"Tout interdire",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."},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:"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."},l=e=>({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 t;window.fbq||(t=window.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)},window._fbq||(window._fbq=t),t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],i("//connect.facebook.net/en_US/fbevents.js","facebook-fbevents",(function(){fbq("init",e.fbPixelId),fbq("track","PageView")})))}}),d=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))}}),u=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 g={};function p(e,t){var a;for(a=0;a<e.length;a+=1)if(e[a]===t)return!0;return!1}function m(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 v={read:m,create:function(e,t,a){var n=new Date,i=n.getTime()+a.timeExpire,o=new RegExp("!"+e+"=(wait|true|false)","g"),s=m(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="",c=document.cookie.indexOf(e+"=true");if(c>=0&&0===o)r+=a.useNoCookie;else if(c>=0){for(n=0;n<o;n+=1)-1!==document.cookie.indexOf(i[n]+"=")&&(s+=1,void 0===g[i[n]]&&(g[i[n]]=[]),!1===p(g[i[n]],t.name)&&g[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 f(){var e,t="tarteaucitron";s(t+"-percentage","display","none"),s(t+"-alert-big","display","none"),e=t+"-root",null!==document.getElementById(e)&&document.getElementById(e).classList.remove("tarteaucitron-before-visible"),n("tac.close_alert")}function y(e,t,a){var n,i=document.getElementById(e),o=document.getElementById(e+"Allowed"),s=document.getElementById(e+"Denied"),r=a.job.length,c=0,l=0;for(i.classList.remove("switch-denied"),i.classList.remove("switch-allowed"),o.classList.remove("active"),s.classList.remove("active"),!0===t?(i.classList.add("switch-allowed"),i.children[0].innerHTML="&#10003;",o.classList.add("active")):(i.classList.add("switch-denied"),i.children[0].innerHTML="&#10007;",s.classList.add("active")),n=0;n<a.job.length;n++)void 0!==a.state[a.job[n]]&&(r-=1,!0===a.state[a.job[n]]?c+=1:l+=1);0===r&&f(),c===a.job.length?(document.getElementById("tarteaucitron-all-denied").classList.remove("tarteaucitron-is-selected"),document.getElementById("tarteaucitron-all-allowed").classList.add("tarteaucitron-is-selected")):l===a.job.length&&(document.getElementById("tarteaucitron-all-allowed").classList.remove("tarteaucitron-is-selected"),document.getElementById("tarteaucitron-all-denied").classList.add("tarteaucitron-is-selected")),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){v.checkCount(e,a.services[e],a.lang)}),2500)):v.checkCount(e,a.services[e],a.lang)}var 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(e){var t;for(s("tarteaucitron","display","block"),s("tarteaucitron-back","display","block"),document.getElementById("tarteaucitron-close-panel").focus(),document.getElementsByTagName("body")[0].classList.add("modal-open"),t=0;t<e.job.length;t++)void 0!==e.state[e.job[t]]&&y(e.job[t],e.state[e.job[t]],e);n("tac.open_panel")},closeAlert:f,openAlert:function(){var e,t="tarteaucitron";s(t+"-percentage","display","block"),s(t+"-alert-big","display","block"),e=t+"-root",null!==document.getElementById(e)&&document.getElementById(e).classList.add("tarteaucitron-before-visible"),n("tac.open_alert")},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,v.create(n,e,a),y(n,e,t))},respond:function(e,t,a){var i,o=e.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed","g"),""),s=function(e){return e.clientX}(event),r=e.getBoundingClientRect();if(e.classList.contains("tarteaucitron-switch"))i=void 0!==t.state[o]?!!e.classList.contains("switch-denied"):s<r.left+e.clientWidth/2;else if(e.classList.contains("tarteaucitron-switch-state"))if(e.id.includes("Allowed")&&!0!==t.state[o])i=!0;else{if(!e.id.includes("Denied")||!1===t.state[o])return;i=!1}!0===i&&!0!==t.launch[o]&&(t.launch[o]=!0,n(o+"_loaded"),t.services[o].js()),t.state[o]=i,v.create(o,i,a),y(o,i,t),!1===i&&!0===t.launch[o]&&window.location.reload()},activate:function(e,t,a,i){var o=e.id;void 0===a.state[o]|!1&&!0!==a.launch[o]&&(a.launch[o]=t,n(o+"_loaded"),a.services[o].js(),a.state[o]=t,v.create(o,t,i),y(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)}))}},b=function(e,t){27===t.keyCode&&h.closePanel()},k=function(e){document.location.hash===e.hashtag&&h.openPanel()};const w={user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},reloadThePage:!1,alreadyLaunch:0,init:function(e){w.parameters=e||{},0===w.alreadyLaunch&&(w.alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){w.load()}),!1),window.addEventListener("keydown",(function(e){b(!1,e)}),!1),window.addEventListener("hashchange",(function(){k(w.parameters)}),!1)):(window.attachEvent("onload",(function(){w.load()})),window.attachEvent("onkeydown",(function(e){b(!0,e)})),window.attachEvent("onhashchange",(function(){k(w.parameters)}))))},load:function(){var e,t={hashtag:"#tarteaucitron",cookieName:"tarteaucitron",timeExpire:31536e6,websiteName:void 0,AcceptAllCta:!0,moreInfoLink:!0,mandatory:!0};if(void 0!==w.parameters)for(var a in t)Object.prototype.hasOwnProperty.call(w.parameters,a)||(w.parameters[a]=t[a]);w.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 r;default:return c}})(),w.services=(e=w.user,{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:l(e),googletagmanager:d(e),gtag:u(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")}},vimeo:{key:"vimeo",type:"video",name:"Vimeo",uri:"https://vimeo.com/privacy",needConsent:!0,cookies:["__utmt_player","__utma","__utmb","__utmc","__utmv","vuid","__utmz","player"],js:function(){var e,t,a=document.getElementsByTagName("div");for(e=0;e<a.length;e++)a[e].classList.contains("tarteaucitron-vimeo")&&(t=a[e].getAttribute("data-tarteaucitron-src"),a[e].innerHTML='<iframe src="'+t+'" frameborder="0" allowfullscreen="true"></iframe>')},fallback:function(){var e,t,a=document.getElementsByTagName("div");for(e=0;e<a.length;e++)a[e].classList.contains("tarteaucitron-vimeo")&&(t=a[e].getAttribute("data-tarteaucitron-src"),a[e].innerHTML='<div class="tarteaucitron-card-mask"><span>Le dépôt de cookies pour <span class="tarteaucitron-card-type">vimeo</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l’activer.</span><button onclick="GDPRConsent.activate(vimeo, true);">Autoriser</button><a class="tarteaucitron-card-url" href="'+t+'" target="_blank">&rarr; '+t+"</a></div>")}},youtube:{key:"youtube",type:"video",name:"YouTube",uri:"https://policies.google.com/privacy",needConsent:!0,cookies:["VISITOR_INFO1_LIVE","YSC","PREF","GEUP"],js:function(){var e,t,a=document.getElementsByTagName("div");for(t=0;t<a.length;t++)a[t].classList.contains("tarteaucitron-youtube")&&(e=a[t].getAttribute("data-tarteaucitron-src"),a[t].innerHTML='<iframe src="'+e+'" frameborder="0" allowfullscreen="true"></iframe>')},fallback:function(){var e,t,a=document.getElementsByTagName("div"),n="youtube";for(t=0;t<a.length;t++)a[t].classList.contains("tarteaucitron-youtube")&&(e=a[t].getAttribute("data-tarteaucitron-src"),a[t].innerHTML='<div class="tarteaucitron-card-mask"><span>Le dépôt de cookies pour <span class="tarteaucitron-card-type">'+n+'</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l’activer.</span><button onclick="GDPRConsent.activate('+n+', true);">Autoriser</button><a class="tarteaucitron-card-url" href="'+e+'" target="_blank">&rarr; '+e+"</a></div>")}}});var o,s,g=document.body,p=document.createElement("div"),m="",v=["ads","analytic","api","comment","social","support","video","other"];for(v=v.sort((function(e,t){return w.lang[e].title>w.lang[t].title?1:w.lang[e].title<w.lang[t].title?-1:0})),m+='<button type="button" id="tarteaucitron-back" onclick="GDPRConsent.closePanel();" aria-label="'+w.lang.close+'"></button>',m+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',m+=' <button type="button" id="tarteaucitron-close-panel" onclick="GDPRConsent.closePanel();">&#128473;</button>',m+='\t<div id="tarteaucitron-services">',m+='\t\t<div id="tarteaucitron-services-top">',m+=' \t\t<span class="tarteaucitron-h1" role="heading" aria-level="1" id="dialogTitle">'+w.lang.title+"</span>",m+='\t\t\t<div id="tarteaucitron-info">',m+=" \t"+w.lang.disclaimer,w.parameters.websiteName&&(m+=" \t"+w.lang.disclaimerWebsite+" "+w.parameters.websiteName+"."),m+=" \t</div>",m+='\t\t\t<div class="tarteaucitron-line">',m+=' <span class="tarteaucitron-h3" role="heading" aria-level="2">'+w.lang.all+"</span>",m+=' \t<div class="tarteaucitron-ask">',m+=' \t<button type="button" id="tarteaucitron-all-allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respondAll(true);">',m+=" \t\t&#10003; "+w.lang.allowAll,m+=" \t</button> ",m+=' \t<button type="button" id="tarteaucitron-all-denied" class="tarteaucitron-deny" onclick="GDPRConsent.respondAll(false);">',m+=" \t\t&#10007; "+w.lang.denyAll,m+=" \t</button>",m+=" \t</div>",m+=" \t</div>",m+="\t\t</div>",m+='\t\t<div id="tarteaucitron-services-list">',m+=' <div class="clear"></div>',!0===w.parameters.mandatory&&(m+='<div class="tarteaucitron-cookie-group">',m+='\t<div class="tarteaucitron-cookie-text">',m+=' \t<span class="tarteaucitron-h3" role="heading" aria-level="2">'+w.lang.mandatoryTitle+"</span>",m+='\t\t<span class="tarteaucitron-description">'+w.lang.mandatoryText+"</span>",m+="\t</div>",m+='\t<div class="tarteaucitron-cookie-buttons">',m+=' <button type="button" class="tarteaucitron-allow solo">',m+=" &#10003; "+w.lang.allow,m+=" </button> ",m+="\t</div>",m+="</div>"),s=0;s<v.length;s+=1)m+=' <li id="tarteaucitron-services-title_'+v[s]+'" class="tarteaucitron-hidden">',m+=' <div class="tarteaucitron-title">',m+=' <button type="button" onclick="GDPRConsent.toggle(\'tarteaucitron-details'+v[s]+"', 'tarteaucitron-info-box');return false\">&#10011; "+w.lang[v[s]].title+"</button>",m+=" </div>",m+=' <div id="tarteaucitron-details'+v[s]+'" class="tarteaucitron-details tarteaucitron-info-box">',m+=" "+w.lang[v[s]].details,m+=" </div>",m+=' <ul id="tarteaucitron-services_'+v[s]+'"></ul></li>';if(m+=' <li id="tarteaucitron-no-services-title" class="tarteaucitron-line">'+w.lang.noServices+"</li>",m+=" </ul>",m+=' <div class="tarteaucitron-hidden" id="tarteaucitron-scrollbar-child" style="height:20px;display:block"></div>',m+="\t\t</div>",m+="\t</div>",m+="</div>",w.parameters.AcceptAllCta?(m+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==w.lang.siteDisclaimerTitle&&""!==w.lang.siteDisclaimerMessage&&(m+='<div id="tarteaucitron-wrapper">',m+='\t<div id="tarteaucitron-disclaimer-texte">',m+='\t\t<span id="tarteaucitron-site-disclaimer-title">',m+="\t\t\t"+w.lang.siteDisclaimerTitle,m+="\t\t</span>",m+='\t\t<span id="tarteaucitron-site-disclaimer-message">',m+=" \t"+w.lang.siteDisclaimerMessage,m+="\t\t</span>"),m+=' \t\t<span id="tarteaucitron-disclaimer-alert">',m+="\t \t"+w.lang.alertBigPrivacy,m+=" \t\t</span>",m+="\t\t</div>",m+=' \t<div id="tarteaucitron-disclaimer-buttons">',m+=' \t<button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.respondAll(true);">',m+=" \t&#10003; "+w.lang.acceptAll,m+=" \t</button>",m+=' \t<button type="button" id="tarteaucitron-close-alert" onclick="GDPRConsent.openPanel();">',m+=" \t"+w.lang.personalize,m+=" \t</button>",m+=" \t</div>",m+="\t</div>",m+="</div>"):(m+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==w.lang.siteDisclaimerTitle&&""!==w.lang.siteDisclaimerMessage&&(m+='<div id="tarteaucitron-wrapper">',m+='\t<div id="tarteaucitron-disclaimer-texte">',m+='\t\t<span id="tarteaucitron-site-disclaimer-title">',m+="\t\t\t"+w.lang.siteDisclaimerTitle,m+="\t\t</span>",m+='\t\t<span id="tarteaucitron-site-disclaimer-message">',m+=" \t"+w.lang.siteDisclaimerMessage,m+="\t\t</span>"),m+=' \t\t<span id="tarteaucitron-disclaimer-alert">',m+=" \t\t"+w.lang.alertBigPrivacy,m+=" \t\t</span>",m+="\t\t</div>",m+=' \t<div id="tarteaucitron-disclaimer-buttons">',m+=' \t<button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.openPanel();">',m+=" \t"+w.lang.personalize,m+=" \t</button>",m+=" \t</div>",m+="\t</div>",m+="</div>"),p.id="tarteaucitron-root",g.appendChild(p,g),p.innerHTML=m,n("tac.root_available"),void 0!==w.job)for(w.job=w.cleanArray(w.job),o=0;o<w.job.length;o+=1)w.addService(w.job[o]);else w.job=[];w.job.push=function(e){void 0===w.job.indexOf&&(w.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===w.job.indexOf(e)&&Array.prototype.push.call(this,e),w.launch[e]=!1,w.addService(e)},document.location.hash===w.hashtag&&h.openPanel(w)},addService:function(e){var t="",a=w.services[e],i=v.read(w.parameters),o=(document.location.hostname,document.referrer.split("/")[2],a.needConsent,i.indexOf(a.key+"=wait"),i.indexOf(a.key+"=false")>=0),r=i.indexOf(a.key+"=true")>=0||!a.needConsent&&i.indexOf(a.key+"=false")<0,c=i.indexOf(a.key+"=false")>=0||i.indexOf(a.key+"=true")>=0,l="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack;!0!==w.added[a.key]&&(w.added[a.key]=!0,t+='<div id="'+a.key+'-line" class="tarteaucitron-cookie-group">',t+=' <div class="tarteaucitron-cookie-text">',t+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+a.name+"</span>",t+=' <span id="tacCL'+a.key+'" class="tarteaucitron-description"></span>',!0===w.parameters.moreInfoLink&&(t+=' <a href="'+a.uri+'" target="_blank" rel="noreferrer noopener" title="'+a.name+" "+w.lang.newWindow+'">',t+=" "+w.lang.source,t+=" </a>"),t+=" </div>",t+=' <div class="tarteaucitron-cookie-buttons">',t+=' <span id="'+a.key+'Allowed" class="tarteaucitron-switch-state" onclick="GDPRConsent.respond(this);">'+w.lang.allow+"</span>",t+=' <div class="tarteaucitron-switch" id="'+a.key+'" onclick="GDPRConsent.respond(this);">',t+='\t\t\t<button type="button" class="tarteaucitron-switch-button"></button>',t+=" </div> ",t+=' <span id="'+a.key+'Denied" class="tarteaucitron-switch-state" onclick="GDPRConsent.respond(this);">'+w.lang.deny+"</span>",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"),h.order(a.type,w)),r?(!0!==w.launch[a.key]&&(w.launch[a.key]=!0,a.js(),n(a.key+"_loaded")),w.state[a.key]=!0):o?("function"==typeof a.fallback&&a.fallback(),w.state[a.key]=!1):!c&&l&&w.handleBrowserDNTRequest?(v.create(a.key,"false",w.parameters),"function"==typeof a.fallback&&a.fallback(),w.state[a.key]=!1):c||(v.create(a.key,"wait",w.parameters),"function"==typeof a.fallback&&a.fallback(),h.openAlert()),v.checkCount(a.key,a,w.lang),n(a.key+"_added")},cleanArray:function(e){var t,a=e.length,n=[],i={},o=w.services;for(t=0;t<a;t+=1)i[e[t]]||(i[e[t]]={},void 0!==w.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(){h.closePanel(w)},openPanel:function(){h.openPanel(w)},respondEffect:function(e,t){h.respondEffect(e,t,w)},respondAll:function(e){h.respondAll(e,w,w.parameters)},respond:function(e){h.respond(e,w,w.parameters)},activate:function(e,t){h.activate(e,t,w,w.parameters)},toggle:function(e,t){h.toggle(e,t)}};var _=w},579:function(e,t,a){const n=a(20).Z;e.exports=n}},t={};function a(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,a),o.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={20:function(e,t,a){"use strict";function i(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 n(e,t,a,i,n,o){var s,r=!1;!1===i?"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!==n&&void 0!==o&&s.setAttribute(n,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,i=document.getElementsByTagName("*"),n=0;for(a in i)if(void 0!==i[a])for(n=0;n<e.length;n+=1)(" "+i[a].className+" ").indexOf(" "+e[n]+" ")>-1&&t(i[a])}function s(e,t,a){null!==document.getElementById(e)&&(document.getElementById(e).style[t]=a)}a.d(t,{Z:function(){return _}});var r={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:"Tout autoriser",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:"Tout autoriser",denyAll:"Tout interdire",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."},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:"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."},l=e=>({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 t;window.fbq||(t=window.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)},window._fbq||(window._fbq=t),t.push=t,t.loaded=!0,t.version="2.0",t.queue=[],n("//connect.facebook.net/en_US/fbevents.js","facebook-fbevents",(function(){fbq("init",e.fbPixelId),fbq("track","PageView")})))}}),d=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"}),n("https://www.googletagmanager.com/gtm.js?id="+e.googletagmanagerId))}}),u=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||[],n("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 g={};function p(e,t){var a;for(a=0;a<e.length;a+=1)if(e[a]===t)return!0;return!1}function m(e){var t,a,i=e.cookieName+"=",n=document.cookie.split(";");for(t=0;t<n.length;t+=1){for(a=n[t];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(i))return a.substring(i.length,a.length)}return""}var v={read:m,create:function(e,t,a){var i=new Date,n=i.getTime()+a.timeExpire,o=new RegExp("!"+e+"=(wait|true|false)","g"),s=m(a).replace(o,""),r=a.cookieName+"="+s+"!"+e+"="+t;i.setTime(n),document.cookie=r+"; expires="+i.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 i,n=t.cookies,o=n.length,s=0,r="",c=document.cookie.indexOf(e+"=true");if(c>=0&&0===o)r+=a.useNoCookie;else if(c>=0){for(i=0;i<o;i+=1)-1!==document.cookie.indexOf(n[i]+"=")&&(s+=1,void 0===g[n[i]]&&(g[n[i]]=[]),!1===p(g[n[i]],t.name)&&g[n[i]].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 f(){var e,t="tarteaucitron";s(t+"-percentage","display","none"),s(t+"-alert-big","display","none"),e=t+"-root",null!==document.getElementById(e)&&document.getElementById(e).classList.remove("tarteaucitron-before-visible"),i("tac.close_alert")}function y(e,t,a){var i,n=document.getElementById(e+"Switch"),o=document.getElementById(e+"Allowed"),s=document.getElementById(e+"Denied"),r=a.job.length,c=0,l=0;for(n.classList.remove("switch-denied"),n.classList.remove("switch-allowed"),o.classList.remove("active"),s.classList.remove("active"),!0===t?(n.classList.add("switch-allowed"),n.children[0].innerHTML="&#10003;",o.classList.add("active")):(n.classList.add("switch-denied"),n.children[0].innerHTML="&#10007;",s.classList.add("active")),i=0;i<a.job.length;i++)void 0!==a.state[a.job[i]]&&(r-=1,!0===a.state[a.job[i]]?c+=1:l+=1);0===r&&f(),c===a.job.length?(document.getElementById("tarteaucitron-all-denied").classList.remove("tarteaucitron-is-selected"),document.getElementById("tarteaucitron-all-allowed").classList.add("tarteaucitron-is-selected")):l===a.job.length&&(document.getElementById("tarteaucitron-all-allowed").classList.remove("tarteaucitron-is-selected"),document.getElementById("tarteaucitron-all-denied").classList.add("tarteaucitron-is-selected")),!0===t?(null!==document.getElementById("tacCL"+e)&&(document.getElementById("tacCL"+e).innerHTML="..."),setTimeout((function(){v.checkCount(e,a.services[e],a.lang)}),2500)):v.checkCount(e,a.services[e],a.lang)}var h={closeAlert:f,openAlert:function(){var e,t="tarteaucitron";s(t+"-percentage","display","block"),s(t+"-alert-big","display","block"),e=t+"-root",null!==document.getElementById(e)&&document.getElementById(e).classList.add("tarteaucitron-before-visible"),i("tac.open_alert")},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"),i("tac.close_panel")},openPanel:function(e){var t;for(s("tarteaucitron","display","block"),s("tarteaucitron-back","display","block"),document.getElementById("tarteaucitron-close-panel").focus(),document.getElementsByTagName("body")[0].classList.add("modal-open"),t=0;t<e.job.length;t++)void 0!==e.state[e.job[t]]&&y(e.job[t],e.state[e.job[t]],e);i("tac.open_panel")},respondAll:function(e,t,a){var i,n=t.services,o=0;for(o=0;o<t.job.length;o+=1)i=n[t.job[o]].key,t.state[i]!==e&&(!1===e&&!0===t.launch[i]&&(t.reloadThePage=!0),!0!==t.launch[i]&&!0===e&&(t.launch[i]=!0,t.services[i].js()),t.state[i]=e,v.create(i,e,a),y(i,e,t))},respond:function(e,t,a,n){var o,s=e.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed|Switch","g"),""),r=function(e){return e.clientX}(n),c=e.getBoundingClientRect();if(e.classList.contains("tarteaucitron-switch"))o=void 0!==t.state[s]?!!e.classList.contains("switch-denied"):r<c.left+e.clientWidth/2;else if(e.classList.contains("tarteaucitron-switch-state"))if(e.id.includes("Allowed")&&!0!==t.state[s])o=!0;else{if(!e.id.includes("Denied")||!1===t.state[s])return;o=!1}!0===o&&!0!==t.launch[s]&&(t.launch[s]=!0,i(s+"_loaded"),t.services[s].js()),t.state[s]=o,v.create(s,o,a),y(s,o,t),!1===o&&!0===t.launch[s]&&window.location.reload()},activate:function(e,t,a,n){void 0===a.state[e]|!1&&!0!==a.launch[e]&&(a.launch[e]=t,i(e+"_loaded"),a.services[e].js(),a.state[e]=t,v.create(e,t,n),y(e,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)}))}},b=function(e,t){27===t.keyCode&&h.closePanel()},k=function(e){document.location.hash===e.hashtag&&h.openPanel()};const w={user:{},lang:{},services:{},added:[],idprocessed:[],state:[],launch:[],parameters:{},reloadThePage:!1,alreadyLaunch:0,init:function(e){w.parameters=e||{},0===w.alreadyLaunch&&(w.alreadyLaunch=1,window.addEventListener?(window.addEventListener("load",(function(){w.load()}),!1),window.addEventListener("keydown",(function(e){b(!1,e)}),!1),window.addEventListener("hashchange",(function(){k(w.parameters)}),!1)):(window.attachEvent("onload",(function(){w.load()})),window.attachEvent("onkeydown",(function(e){b(!0,e)})),window.attachEvent("onhashchange",(function(){k(w.parameters)}))))},load:function(){var e,t={hashtag:"#tarteaucitron",cookieName:"tarteaucitron",timeExpire:31536e6,websiteName:void 0,AcceptAllCta:!0,moreInfoLink:!0,mandatory:!0};if(void 0!==w.parameters)for(var a in t)Object.prototype.hasOwnProperty.call(w.parameters,a)||(w.parameters[a]=t[a]);w.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 r;default:return c}})(),w.services=(e=w.user,{facebook:{key:"facebook",type:"social",name:"Facebook",uri:"https://www.facebook.com/policies/cookies/",needConsent:!0,cookies:[],js:function(){n("//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:l(e),googletagmanager:d(e),gtag:u(e),twitter:{key:"twitter",type:"social",name:"Twitter",uri:"https://support.twitter.com/articles/20170514",needConsent:!0,cookies:[],js:function(){n("//platform.twitter.com/widgets.js","twitter-wjs")}},vimeo:{key:"vimeo",type:"video",name:"Vimeo",uri:"https://vimeo.com/privacy",needConsent:!0,cookies:["__utmt_player","__utma","__utmb","__utmc","__utmv","vuid","__utmz","player"],js:function(){var e,t,a=document.getElementsByTagName("div");for(e=0;e<a.length;e++)a[e].classList.contains("tarteaucitron-vimeo")&&(t=a[e].getAttribute("data-tarteaucitron-src"),a[e].innerHTML='<iframe src="'+t+'" frameborder="0" allowfullscreen="true"></iframe>')},fallback:function(){var e,t,a=document.getElementsByTagName("div");for(e=0;e<a.length;e++)a[e].classList.contains("tarteaucitron-vimeo")&&(t=a[e].getAttribute("data-tarteaucitron-src"),a[e].innerHTML='<div class="tarteaucitron-card-mask"><span>Le dépôt de cookies pour <span class="tarteaucitron-card-type">vimeo</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l\'activer.</span><button onclick="GDPRConsent.activate(\'vimeo\', true)">Autoriser</button><a href="'+t+'" class="tarteaucitron-card-url" target="_blank">&rarr; '+t+"</a></div>")}},youtube:{key:"youtube",type:"video",name:"YouTube",uri:"https://policies.google.com/privacy",needConsent:!0,cookies:["VISITOR_INFO1_LIVE","YSC","PREF","GEUP"],js:function(){var e,t,a=document.getElementsByTagName("div");for(t=0;t<a.length;t++)a[t].classList.contains("tarteaucitron-youtube")&&(e=a[t].getAttribute("data-tarteaucitron-src"),a[t].innerHTML='<iframe src="'+e+'" frameborder="0" allowfullscreen="true"></iframe>')},fallback:function(){var e,t,a=document.getElementsByTagName("div"),i="youtube";for(t=0;t<a.length;t++)a[t].classList.contains("tarteaucitron-youtube")&&(e=a[t].getAttribute("data-tarteaucitron-src"),a[t].innerHTML='<div class="tarteaucitron-card-mask"><span>Le dépôt de cookies pour <span class="tarteaucitron-card-type">'+i+"</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l'activer.</span><button onclick=\"GDPRConsent.activate('"+i+'\', true)">Autoriser</button><a href="'+e+'" class="tarteaucitron-card-url" target="_blank">&rarr; '+e+"</a></div>")}}});var o,s,g=document.body,p=document.createElement("div"),m="",v=["ads","analytic","api","comment","social","support","video","other"];for(v=v.sort((function(e,t){return w.lang[e].title>w.lang[t].title?1:w.lang[e].title<w.lang[t].title?-1:0})),m+='<button type="button" id="tarteaucitron-back" onclick="GDPRConsent.closePanel();" aria-label="'+w.lang.close+'"></button>',m+='<div id="tarteaucitron" role="dialog" aria-labelledby="dialogTitle">',m+=' <button type="button" id="tarteaucitron-close-panel" onclick="GDPRConsent.closePanel();">X</button>',m+='\t<div id="tarteaucitron-services">',m+='\t\t<div id="tarteaucitron-services-top">',m+=' \t\t<span class="tarteaucitron-h1" role="heading" aria-level="1" id="dialogTitle">'+w.lang.title+"</span>",m+='\t\t\t<div id="tarteaucitron-info">',m+=" \t"+w.lang.disclaimer,w.parameters.websiteName&&(m+=" \t"+w.lang.disclaimerWebsite+" "+w.parameters.websiteName+"."),m+=" \t</div>",m+='\t\t\t<div class="tarteaucitron-line">',m+=' <span class="tarteaucitron-h3" role="heading" aria-level="2">'+w.lang.all+"</span>",m+=' \t<div class="tarteaucitron-ask">',m+=' \t<button type="button" id="tarteaucitron-all-allowed" class="tarteaucitron-allow" onclick="GDPRConsent.respondAll(true);">',m+=" \t\t&#10003; "+w.lang.allowAll,m+=" \t</button> ",m+=' \t<button type="button" id="tarteaucitron-all-denied" class="tarteaucitron-deny" onclick="GDPRConsent.respondAll(false);">',m+=" \t\t&#10007; "+w.lang.denyAll,m+=" \t</button>",m+=" \t</div>",m+=" \t</div>",m+="\t\t</div>",m+='\t\t<div id="tarteaucitron-services-list">',m+=' <div class="clear"></div>',!0===w.parameters.mandatory&&(m+='<div class="tarteaucitron-cookie-group">',m+='\t<div class="tarteaucitron-cookie-text">',m+=' \t<span class="tarteaucitron-h3" role="heading" aria-level="2">'+w.lang.mandatoryTitle+"</span>",m+='\t\t<span class="tarteaucitron-description">'+w.lang.mandatoryText+"</span>",m+="\t</div>",m+='\t<div class="tarteaucitron-cookie-buttons">',m+=' <button type="button" class="tarteaucitron-allow solo">',m+=" &#10003; "+w.lang.allow,m+=" </button> ",m+="\t</div>",m+="</div>"),s=0;s<v.length;s+=1)m+=' <li id="tarteaucitron-services-title_'+v[s]+'" class="tarteaucitron-hidden">',m+=' <div class="tarteaucitron-title">',m+=' <button type="button" onclick="GDPRConsent.toggle(\'tarteaucitron-details'+v[s]+"', 'tarteaucitron-info-box');return false\">&#10011; "+w.lang[v[s]].title+"</button>",m+=" </div>",m+=' <div id="tarteaucitron-details'+v[s]+'" class="tarteaucitron-details tarteaucitron-info-box">',m+=" "+w.lang[v[s]].details,m+=" </div>",m+=' <ul id="tarteaucitron-services_'+v[s]+'"></ul></li>';if(m+=' <li id="tarteaucitron-no-services-title" class="tarteaucitron-line">'+w.lang.noServices+"</li>",m+=" </ul>",m+=' <div class="tarteaucitron-hidden" id="tarteaucitron-scrollbar-child" style="height:20px;display:block"></div>',m+="\t\t</div>",m+="\t</div>",m+="</div>",w.parameters.AcceptAllCta?(m+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==w.lang.siteDisclaimerTitle&&""!==w.lang.siteDisclaimerMessage&&(m+='<div id="tarteaucitron-wrapper">',m+='\t<div id="tarteaucitron-disclaimer-texte">',m+='\t\t<span id="tarteaucitron-site-disclaimer-title">',m+="\t\t\t"+w.lang.siteDisclaimerTitle,m+="\t\t</span>",m+='\t\t<span id="tarteaucitron-site-disclaimer-message">',m+=" \t"+w.lang.siteDisclaimerMessage,m+="\t\t</span>"),m+=' \t\t<span id="tarteaucitron-disclaimer-alert">',m+="\t \t"+w.lang.alertBigPrivacy,m+=" \t\t</span>",m+="\t\t</div>",m+=' \t<div id="tarteaucitron-disclaimer-buttons">',m+=' \t<button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.respondAll(true);">',m+=" \t&#10003; "+w.lang.acceptAll,m+=" \t</button>",m+=' \t<button type="button" id="tarteaucitron-close-alert" onclick="GDPRConsent.openPanel();">',m+=" \t"+w.lang.personalize,m+=" \t</button>",m+=" \t</div>",m+="\t</div>",m+="</div>"):(m+='<div id="tarteaucitron-alert-big" class="tarteaucitron-alert-big-bottom">',""!==w.lang.siteDisclaimerTitle&&""!==w.lang.siteDisclaimerMessage&&(m+='<div id="tarteaucitron-wrapper">',m+='\t<div id="tarteaucitron-disclaimer-texte">',m+='\t\t<span id="tarteaucitron-site-disclaimer-title">',m+="\t\t\t"+w.lang.siteDisclaimerTitle,m+="\t\t</span>",m+='\t\t<span id="tarteaucitron-site-disclaimer-message">',m+=" \t"+w.lang.siteDisclaimerMessage,m+="\t\t</span>"),m+=' \t\t<span id="tarteaucitron-disclaimer-alert">',m+=" \t\t"+w.lang.alertBigPrivacy,m+=" \t\t</span>",m+="\t\t</div>",m+=' \t<div id="tarteaucitron-disclaimer-buttons">',m+=' \t<button type="button" id="tarteaucitron-personalize" onclick="GDPRConsent.openPanel();">',m+=" \t"+w.lang.personalize,m+=" \t</button>",m+=" \t</div>",m+="\t</div>",m+="</div>"),p.id="tarteaucitron-root",g.appendChild(p,g),p.innerHTML=m,i("tac.root_available"),void 0!==w.job)for(w.job=w.cleanArray(w.job),o=0;o<w.job.length;o+=1)w.addService(w.job[o]);else w.job=[];w.job.push=function(e){void 0===w.job.indexOf&&(w.job.indexOf=function(e,t){var a,i=this.length;for(a=t||0;a<i;a+=1)if(this[a]===e)return a;return-1}),-1===w.job.indexOf(e)&&Array.prototype.push.call(this,e),w.launch[e]=!1,w.addService(e)},document.location.hash===w.hashtag&&h.openPanel(w)},addService:function(e){var t="",a=w.services[e],n=v.read(w.parameters),o=n.indexOf(a.key+"=false")>=0,r=n.indexOf(a.key+"=true")>=0||!a.needConsent&&n.indexOf(a.key+"=false")<0,c=n.indexOf(a.key+"=false")>=0||n.indexOf(a.key+"=true")>=0,l="1"===navigator.doNotTrack||"yes"===navigator.doNotTrack||"1"===navigator.msDoNotTrack||"1"===window.doNotTrack;!0!==w.added[a.key]&&(w.added[a.key]=!0,t+='<div id="'+a.key+'-line" class="tarteaucitron-cookie-group">',t+=' <div class="tarteaucitron-cookie-text">',t+=' <span class="tarteaucitron-h3" role="heading" aria-level="3">'+a.name+"</span>",t+=' <span id="tacCL'+a.key+'" class="tarteaucitron-description"></span>',!0===w.parameters.moreInfoLink&&(t+=' <a href="'+a.uri+'" target="_blank" rel="noreferrer noopener" title="'+a.name+" "+w.lang.newWindow+'">',t+=" "+w.lang.source,t+=" </a>"),t+=" </div>",t+=' <div class="tarteaucitron-cookie-buttons">',t+=' <span id="'+a.key+'Allowed" class="tarteaucitron-switch-state" onclick="GDPRConsent.respond(this, event);">'+w.lang.allow+"</span>",t+=' <div class="tarteaucitron-switch" id="'+a.key+'Switch" onclick="GDPRConsent.respond(this, event);">',t+='\t\t\t<button type="button" class="tarteaucitron-switch-button"></button>',t+=" </div> ",t+=' <span id="'+a.key+'Denied" class="tarteaucitron-switch-state" onclick="GDPRConsent.respond(this, event);">'+w.lang.deny+"</span>",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"),h.order(a.type,w)),r?(!0!==w.launch[a.key]&&(w.launch[a.key]=!0,a.js(),i(a.key+"_loaded")),w.state[a.key]=!0):o?("function"==typeof a.fallback&&a.fallback(),w.state[a.key]=!1):!c&&l&&w.handleBrowserDNTRequest?(v.create(a.key,"false",w.parameters),"function"==typeof a.fallback&&a.fallback(),w.state[a.key]=!1):c||(v.create(a.key,"wait",w.parameters),"function"==typeof a.fallback&&a.fallback(),h.openAlert()),v.checkCount(a.key,a,w.lang),i(a.key+"_added")},cleanArray:function(e){var t,a=e.length,i=[],n={},o=w.services;for(t=0;t<a;t+=1)n[e[t]]||(n[e[t]]={},void 0!==w.services[e[t]]&&i.push(e[t]));return i.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(){h.closePanel(w)},openPanel:function(){h.openPanel(w)},respondEffect:function(e,t){h.respondEffect(e,t,w)},respondAll:function(e){h.respondAll(e,w,w.parameters)},respond:function(e,t){h.respond(e,w,w.parameters,t)},activate:function(e,t){h.activate(e,t,w,w.parameters)},toggle:function(e,t){h.toggle(e,t)}};var _=w},579:function(e,t,a){const i=a(20).Z;e.exports=i}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,a),o.exports}return a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a(579)}()}));
{
"name": "gdpr-consent",
"version": "0.8.0",
"version": "0.8.1",
"description": "GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.",

@@ -34,3 +34,3 @@ "license": "MIT",

"babel-loader": "^8.2.2",
"css-loader": "^5.1.2",
"css-loader": "^5.1.3",
"eslint": "^7.22.0",

@@ -42,3 +42,3 @@ "mini-css-extract-plugin": "^1.3.9",

"style-loader": "^2.0.0",
"webpack": "^5.25.1",
"webpack": "^5.26.2",
"webpack-cli": "^4.5.0",

@@ -45,0 +45,0 @@ "webpack-dev-server": "^4.0.0-beta.0"

@@ -88,3 +88,3 @@ import "./css/main.scss";

return 0;
});
});

@@ -95,3 +95,3 @@ // Prepare the html

html += "<div id=\"tarteaucitron\" role=\"dialog\" aria-labelledby=\"dialogTitle\">";
html += " <button type=\"button\" id=\"tarteaucitron-close-panel\" onclick=\"GDPRConsent.closePanel();\">&#128473;</button>";
html += " <button type=\"button\" id=\"tarteaucitron-close-panel\" onclick=\"GDPRConsent.closePanel();\">X</button>";
html += " <div id=\"tarteaucitron-services\">";

@@ -136,3 +136,3 @@

html += " </div>";
html += "</div>";
html += "</div>";
}

@@ -257,7 +257,2 @@ for (i = 0; i < cat.length; i += 1) {

cookie = cookies.read(GDPRConsent.parameters),
hostname = document.location.hostname,
hostRef = document.referrer.split("/")[2],
isNavigating = (hostRef === hostname),
isAutostart = (!service.needConsent),
isWaiting = (cookie.indexOf(service.key + "=wait") >= 0),
isDenied = (cookie.indexOf(service.key + "=false") >= 0),

@@ -267,3 +262,2 @@ isAllowed = ((cookie.indexOf(service.key + "=true") >= 0) || (!service.needConsent && cookie.indexOf(service.key + "=false") < 0)),

isDNTRequested = (navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1" || window.doNotTrack === "1");
if (GDPRConsent.added[service.key] !== true) {

@@ -283,7 +277,7 @@ GDPRConsent.added[service.key] = true;

html += " <div class=\"tarteaucitron-cookie-buttons\">";
html += " <span id=\"" + service.key + "Allowed\" class=\"tarteaucitron-switch-state\" onclick=\"GDPRConsent.respond(this);\">" + GDPRConsent.lang.allow + "</span>";
html += " <div class=\"tarteaucitron-switch\" id=\"" + service.key + "\" onclick=\"GDPRConsent.respond(this);\">";
html += " <span id=\"" + service.key + "Allowed\" class=\"tarteaucitron-switch-state\" onclick=\"GDPRConsent.respond(this, event);\">" + GDPRConsent.lang.allow + "</span>";
html += " <div class=\"tarteaucitron-switch\" id=\"" + service.key + "Switch\" onclick=\"GDPRConsent.respond(this, event);\">";
html += " <button type=\"button\" class=\"tarteaucitron-switch-button\"></button>";
html += " </div> ";
html += " <span id=\"" + service.key + "Denied\" class=\"tarteaucitron-switch-state\" onclick=\"GDPRConsent.respond(this);\">" + GDPRConsent.lang.deny + "</span>";
html += " <span id=\"" + service.key + "Denied\" class=\"tarteaucitron-switch-state\" onclick=\"GDPRConsent.respond(this, event);\">" + GDPRConsent.lang.deny + "</span>";
html += " </div>";

@@ -369,4 +363,4 @@ html += "</li>";

},
respond: function(el) {
userInterface.respond(el, GDPRConsent, GDPRConsent.parameters);
respond: function(el, evt) {
userInterface.respond(el, GDPRConsent, GDPRConsent.parameters, evt);
},

@@ -373,0 +367,0 @@ activate: function(id, status) {

@@ -5,2 +5,22 @@ import { searchElements, css, addClass, removeClass } from "../utils/dom";

function closeAlert() {
"use strict";
var c = "tarteaucitron";
css(c + "-percentage", "display", "none");
css(c + "-alert-big", "display", "none");
removeClass(c + "-root", "tarteaucitron-before-visible");
sendEvent("tac.close_alert");
}
function openAlert() {
"use strict";
var c = "tarteaucitron";
css(c + "-percentage", "display", "block");
css(c + "-alert-big", "display", "block");
addClass(c + "-root", "tarteaucitron-before-visible");
sendEvent("tac.open_alert");
}
function closePanel(GDPRConsentState) {

@@ -35,48 +55,5 @@ "use strict";

function openPanel(GDPRConsentState) {
function respondEffect(key, choice, GDPRConsentState) {
"use strict";
var index;
css("tarteaucitron", "display", "block");
css("tarteaucitron-back", "display", "block");
document.getElementById("tarteaucitron-close-panel").focus();
document.getElementsByTagName("body")[0].classList.add("modal-open");
for (index = 0; index < GDPRConsentState.job.length; index++) {
if (GDPRConsentState.state[GDPRConsentState.job[index]] !== undefined) {
respondEffect(GDPRConsentState.job[index], GDPRConsentState.state[GDPRConsentState.job[index]], GDPRConsentState);
}
}
sendEvent("tac.open_panel");
}
function closeAlert() {
"use strict";
var c = "tarteaucitron";
css(c + "-percentage", "display", "none");
css(c + "-alert-big", "display", "none");
removeClass(c + "-root", "tarteaucitron-before-visible");
sendEvent("tac.close_alert");
}
function openAlert() {
"use strict";
var c = "tarteaucitron";
css(c + "-percentage", "display", "block");
css(c + "-alert-big", "display", "block");
addClass(c + "-root", "tarteaucitron-before-visible");
sendEvent("tac.open_alert");
}
function mouseXEvent(event) {
var e = event;
return e.clientX;
}
function respondEffect(key, choice, GDPRConsentState) {
var switchBtn = document.getElementById(key),
var switchBtn = document.getElementById(key + "Switch"),
allowedState = document.getElementById(key + "Allowed"),

@@ -93,3 +70,3 @@ deniedState = document.getElementById(key + "Denied"),

deniedState.classList.remove("active");
// Style des switch

@@ -145,2 +122,26 @@ if (choice === true) {

function openPanel(GDPRConsentState) {
"use strict";
var index;
css("tarteaucitron", "display", "block");
css("tarteaucitron-back", "display", "block");
document.getElementById("tarteaucitron-close-panel").focus();
document.getElementsByTagName("body")[0].classList.add("modal-open");
for (index = 0; index < GDPRConsentState.job.length; index++) {
if (GDPRConsentState.state[GDPRConsentState.job[index]] !== undefined) {
respondEffect(GDPRConsentState.job[index], GDPRConsentState.state[GDPRConsentState.job[index]], GDPRConsentState);
}
}
sendEvent("tac.open_panel");
}
function mouseXEvent(event) {
"use strict";
var e = event;
return e.clientX;
}
function respondAll(status, GDPRConsentState, GDPRConsentParameters) {

@@ -166,4 +167,4 @@ "use strict";

GDPRConsentState.state[key] = status;
cookies.create(key, status, GDPRConsentParameters);
respondEffect(key, status, GDPRConsentState);
cookies.create(key, status, GDPRConsentParameters);
respondEffect(key, status, GDPRConsentState);
}

@@ -173,11 +174,10 @@ }

function respond(el, GDPRConsentState, GDPRConsentParameters) {
function respond(el, GDPRConsentState, GDPRConsentParameters, event) {
"use strict";
var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed", "g"), ""),
var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed|Switch", "g"), ""),
status,
mousePosition = mouseXEvent(event),
mousePosition = mouseXEvent(event),
elPos = el.getBoundingClientRect();
// Cas 1 : Je clique sur le switch
if (el.classList.contains("tarteaucitron-switch")) {
if (el.classList.contains("tarteaucitron-switch")) { // Cas 1 : Je clique sur le switch
// Je regarde si il a déjà été activé ou refusé...

@@ -195,5 +195,3 @@ if (GDPRConsentState.state[key] !== undefined) {

}
}
// Cas 2 : Je clique sur "Autoriser" ou "Interdire"
else if (el.classList.contains("tarteaucitron-switch-state")) {
} else if (el.classList.contains("tarteaucitron-switch-state")) { // Cas 2 : Je clique sur "Autoriser" ou "Interdire"
// Je vérifie que je ne reclique pas sur la même valeur

@@ -206,3 +204,3 @@ if ((el.id.includes("Allowed")) && (GDPRConsentState.state[key] !== true)) {

return;
}
}
}

@@ -225,11 +223,11 @@

function activate(el, status, GDPRConsentState, GDPRConsentParameters) {
var key = el.id;
if ((GDPRConsentState.state[key] === undefined|false) && (GDPRConsentState.launch[key] !== true)) {
GDPRConsentState.launch[key] = status;
sendEvent(key + "_loaded");
GDPRConsentState.services[key].js();
GDPRConsentState.state[key] = status;
cookies.create(key, status, GDPRConsentParameters);
respondEffect(key, status, GDPRConsentState);
function activate(id, status, GDPRConsentState, GDPRConsentParameters) {
"use strict";
if ((GDPRConsentState.state[id] === undefined|false) && (GDPRConsentState.launch[id] !== true)) {
GDPRConsentState.launch[id] = status;
sendEvent(id + "_loaded");
GDPRConsentState.services[id].js();
GDPRConsentState.state[id] = status;
cookies.create(id, status, GDPRConsentParameters);
respondEffect(id, status, GDPRConsentState);
} else {

@@ -283,6 +281,6 @@ return;

export default {
closeAlert: closeAlert,
openAlert: openAlert,
closePanel: closePanel,
openPanel: openPanel,
closeAlert: closeAlert,
openAlert: openAlert,
respondAll: respondAll,

@@ -289,0 +287,0 @@ respond: respond,

@@ -33,3 +33,3 @@ export default () => ({

videoUrl = div[i].getAttribute("data-tarteaucitron-src");
div[i].innerHTML = "<div class=\"tarteaucitron-card-mask\"><span>Le dépôt de cookies pour <span class=\"tarteaucitron-card-type\">" + id + "</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l’activer.</span><button onclick=\"GDPRConsent.activate(" + id + ", true);\">Autoriser</button><a class=\"tarteaucitron-card-url\" href=\"" + videoUrl + "\" target=\"_blank\">&rarr; " + videoUrl + "</a></div>";
div[i].innerHTML = "<div class=\"tarteaucitron-card-mask\"><span>Le dépôt de cookies pour <span class=\"tarteaucitron-card-type\">" + id + "</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l'activer.</span><button onclick=\"GDPRConsent.activate('" + id + "', true)\">Autoriser</button><a href=\"" + videoUrl + "\" class=\"tarteaucitron-card-url\" target=\"_blank\">&rarr; " + videoUrl + "</a></div>";
}

@@ -36,0 +36,0 @@ }

@@ -32,4 +32,4 @@ export default () => ({

if (div[i].classList.contains(cardClass)) {
videoUrl = div[i].getAttribute("data-tarteaucitron-src");
div[i].innerHTML = "<div class=\"tarteaucitron-card-mask\"><span>Le dépôt de cookies pour <span class=\"tarteaucitron-card-type\">" + id + "</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l’activer.</span><button onclick=\"GDPRConsent.activate(" + id + ", true);\">Autoriser</button><a class=\"tarteaucitron-card-url\" href=\"" + videoUrl + "\" target=\"_blank\">&rarr; " + videoUrl + "</a></div>";
videoUrl = div[i].getAttribute("data-tarteaucitron-src");
div[i].innerHTML = "<div class=\"tarteaucitron-card-mask\"><span>Le dépôt de cookies pour <span class=\"tarteaucitron-card-type\">" + id + "</span> est désactivé. Si vous souhaitez accéder à ce contenu, merci de l'activer.</span><button onclick=\"GDPRConsent.activate('" + id + "', true)\">Autoriser</button><a href=\"" + videoUrl + "\" class=\"tarteaucitron-card-url\" target=\"_blank\">&rarr; " + videoUrl + "</a></div>";
}

@@ -36,0 +36,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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