UNPKG

@gouvfr/dsfr-roller

Version:

Le module `dsfr-roller` permet de publier le site de documentation du Système de Design de l’État - DSFR

1,724 lines (1,569 loc) 278 kB
/* eslint-disable */ import { tarteaucitron } from './tarteaucitron'; // generic iframe export const iframe = { key: 'iframe', type: 'other', name: 'Web content', uri: '', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['tac_iframe'], function (x) { var frame_title = tarteaucitron.getElemAttr(x, 'title') ? tarteaucitron.getElemAttr(x, 'title') : '', width = tarteaucitron.getElemAttr(x, 'width'), height = tarteaucitron.getElemAttr(x, 'height'), allowfullscreen = tarteaucitron.getElemAttr( x, 'allowfullscreen' ), scrolling = tarteaucitron.getElemAttr(x, 'scrolling'), url = tarteaucitron.getElemAttr(x, 'url'); if (!scrolling) { scrolling = 'no'; } return ( '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="' + scrolling + '" allowtransparency' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>' ); }); }, fallback: function () { 'use strict'; var id = 'iframe'; tarteaucitron.fallback(['tac_iframe'], function (elem) { elem.style.width = tarteaucitron.getElemAttr(elem, 'width') + 'px'; elem.style.height = tarteaucitron.getElemAttr(elem, 'height') + 'px'; return tarteaucitron.engage(id); }); }, }; // screeb export const screeb = { key: 'screeb', type: 'support', name: 'Screeb', uri: 'https://screeb.app/gdpr-privacy', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.screebId === undefined) { return; } window['ScreebObject'] = '$screeb'; window['$screeb'] = window['$screeb'] || function () { var d = arguments; return new Promise(function (a, b) { (window['$screeb'].q = window['$screeb'].q || []).push({ v: 1, args: d, ok: a, ko: b, }); }); }; tarteaucitron.addScript('https://t.screeb.app/tag.js', '$screeb'); window.$screeb('init', tarteaucitron.user.screebId); }, }; // pipedrive export const pipedrive = { key: 'pipedrive', type: 'support', name: 'Pipedrive', uri: 'https://www.pipedrive.com/en/cookie-notice', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.pipedriveCompany === undefined || tarteaucitron.user.pipedrivePlaybook === undefined ) { return; } window.pipedriveLeadboosterConfig = { base: 'leadbooster-chat.pipedrive.com', companyId: tarteaucitron.user.pipedriveCompany, playbookUuid: tarteaucitron.user.pipedrivePlaybook, version: 2, }; if (!window.LeadBooster) { window.LeadBooster = { q: [], on: function (n, h) { this.q.push({ t: 'o', n: n, h: h, }); }, trigger: function (n) { this.q.push({ t: 't', n: n, }); }, }; } tarteaucitron.addScript( 'https://leadbooster-chat.pipedrive.com/assets/loader.js' ); }, fallback: function () { 'use strict'; var id = ''; tarteaucitron.fallback(['proactiveChat'], function (elem) { return tarteaucitron.engage(id); }); }, }; // dynatrace export const dynatrace = { key: 'dynatrace', type: 'api', name: 'Dynatrace', uri: 'https://www.dynatrace.com/company/trust-center/privacy/', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.dynatraceJSPath === undefined || tarteaucitron.user.dynatraceConfig === undefined ) { return; } tarteaucitron.addScript( tarteaucitron.user.dynatraceJSPath, '', '', '', 'data-dtconfig', tarteaucitron.user.dynatraceConfig ); }, }; // mixpanel export const mixpanel = { key: 'mixpanel', type: 'analytic', name: 'Mixpanel', uri: 'https://docs.mixpanel.com/docs/privacy/overview', needConsent: true, cookies: [], js: function () { 'use strict'; (function (f, b) { if (!b.__SV) { var e, g, i, h; window.mixpanel = b; b._i = []; b.init = function (e, f, c) { function g(a, d) { var b = d.split('.'); 2 == b.length && ((a = a[b[0]]), (d = b[1])); a[d] = function () { a.push( [d].concat( Array.prototype.slice.call(arguments, 0) ) ); }; } var a = b; 'undefined' !== typeof c ? (a = b[c] = []) : (c = 'mixpanel'); a.people = a.people || []; a.toString = function (a) { var d = 'mixpanel'; 'mixpanel' !== c && (d += '.' + c); a || (d += ' (stub)'); return d; }; a.people.toString = function () { return a.toString(1) + '.people (stub)'; }; i = 'disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove'.split( ' ' ); for (h = 0; h < i.length; h++) g(a, i[h]); var j = 'set set_once union unset remove delete'.split(' '); a.get_group = function () { function b(c) { d[c] = function () { call2_args = arguments; call2 = [c].concat( Array.prototype.slice.call(call2_args, 0) ); a.push([e, call2]); }; } for ( var d = {}, e = ['get_group'].concat( Array.prototype.slice.call(arguments, 0) ), c = 0; c < j.length; c++ ) b(j[c]); return d; }; b._i.push([e, f, c]); }; b.__SV = 1.2; e = f.createElement('script'); e.type = 'text/javascript'; e.async = !0; e.src = 'undefined' !== typeof MIXPANEL_CUSTOM_LIB_URL ? MIXPANEL_CUSTOM_LIB_URL : 'file:' === f.location.protocol && '//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js'.match( /^\/\// ) ? 'https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js' : '//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js'; g = f.getElementsByTagName('script')[0]; g.parentNode.insertBefore(e, g); } })(document, window.mixpanel || []); }, }; // freshsalescrm export const freshsalescrm = { key: 'freshsalescrm', type: 'analytic', name: 'FreshSales (CRM)', uri: 'https://www.freshworks.com/gdpr/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.freshsalescrmId === undefined) { return; } tarteaucitron.addScript( 'https://eu.fw-cdn.com/' + tarteaucitron.user.freshsalescrmId + '.js' ); }, }; // equativ export const equativ = { key: 'equativ', type: 'ads', name: 'Equativ', uri: 'https://equativ.com/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.equativId === undefined) { return; } tarteaucitron.addScript( 'https://ced.sascdn.com/tag/' + tarteaucitron.user.equativId + '/smart.js' ); }, }; // twitch export const twitch = { key: 'twitch', type: 'video', name: 'Twitch', needConsent: true, cookies: [], uri: 'https://www.twitch.tv/p/en/legal/privacy-notice', js: function () { 'use strict'; tarteaucitron.fallback(['twitch_player'], function (x) { var id = tarteaucitron.getElemAttr(x, 'videoID'), parent = tarteaucitron.getElemAttr(x, 'parent'), width = tarteaucitron.getElemAttr(x, 'width'), height = tarteaucitron.getElemAttr(x, 'height'); var embedURL = 'https://player.twitch.tv/?video=' + id + '&parent=' + parent; return ( '<iframe width="' + width + '" height="' + height + '" src="' + embedURL + '" scrolling="no" frameborder="0"></iframe>' ); }); }, fallback: function () { 'use strict'; var id = 'twitch'; tarteaucitron.fallback(['twitch_player'], tarteaucitron.engage(id)); }, }; // eskimi export const eskimi = { key: 'eskimi', type: 'ads', name: 'Eskimi', uri: 'https://fr.eskimi.com/privacy-policy', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.eskimiInit === undefined) { return; } window.___esk = window.esk = function () { window.___esk.callMethod ? window.___esk.callMethod.apply(window.___esk, arguments) : window.___esk.queue.push(arguments); }; window.___esk.push = window.___esk; window.___esk.loaded = true; window.___esk.queue = []; tarteaucitron.addScript( 'https://dsp-media.eskimi.com/assets/js/e/gtr.min.js', '', function () { esk('init', tarteaucitron.user.eskimiInit); } ); }, }; // sharethissticky export const sharethissticky = { key: 'sharethissticky', type: 'social', name: 'ShareThis Sticky', uri: 'https://sharethis.com/fr/privacy/', needConsent: true, cookies: ['_stid', '_stidv', 'pubconsent'], js: function () { 'use strict'; if (tarteaucitron.user.sharethisStickyProperty === undefined) { return; } tarteaucitron.addScript( 'https://platform-api.sharethis.com/js/sharethis.js#property=' + tarteaucitron.user.sharethisStickyProperty + '&product=sticky-share-buttons' ); }, }; // pianoanalytics export const pianoanalytics = { key: 'pianoanalytics', type: 'analytic', name: 'Piano Analytics', uri: 'https://piano.io/privacy-policy/', needConsent: true, cookies: ['_pcid', '_pctx', '_pctx', 'pa_user', 'pa_privacy'], js: function () { 'use strict'; if ( tarteaucitron.user.pianoCollectDomain === undefined || tarteaucitron.user.pianoSite === undefined ) { return; } tarteaucitron.addScript( 'https://tag.aticdn.net/piano-analytics.js', '', function () { pa.setConfigurations({ site: tarteaucitron.user.pianoSite, collectDomain: tarteaucitron.user.pianoCollectDomain, }); if (tarteaucitron.user.pianoSendData !== false) { pa.sendEvent('page.display', { page: document.title, }); } } ); }, }; // actistat export const actistat = { key: 'actistat', type: 'analytic', name: 'ActiSTAT', uri: 'https://actigraph.com/actistat', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.actistatId === undefined) { return; } tarteaucitron.addScript( 'https://actistat.fr/umami.js', '', '', '', 'data-website-id', tarteaucitron.user.actistatId ); }, }; // outbrainamplify export const outbrainamplify = { key: 'outbrainamplify', type: 'ads', name: 'Outbrain Amplify', uri: 'https://www.outbrain.com/privacy/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.outbrainamplifyId === undefined) { return; } var OB_ADV_ID = tarteaucitron.user.outbrainamplifyId; if (window.obApi) { var toArray = function (object) { return Object.prototype.toString.call(object) === '[object Array]' ? object : [object]; }; window.obApi.marketerId = toArray(_window.obApi.marketerId).concat( toArray(OB_ADV_ID) ); return; } var api = (window.obApi = function () { api.dispatch ? api.dispatch.apply(api, arguments) : api.queue.push(arguments); }); api.version = '1.1'; api.loaded = true; api.marketerId = OB_ADV_ID; api.queue = []; tarteaucitron.addScript( 'https://amplify.outbrain.com/cp/obtp.js', '', function () { obApi('track', 'PAGE_VIEW'); } ); }, }; // playplay export const playplay = { key: 'playplay', type: 'video', name: 'PlayPlay', uri: 'https://playplay.com/fr/confidentialite', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['tac_playplay'], function (x) { var id = tarteaucitron.getElemAttr(x, 'data-id'), width = tarteaucitron.getElemAttr(x, 'width'), height = tarteaucitron.getElemAttr(x, 'height'); var playURL = 'https://playplay.com/app/embed-video/' + id; return ( '<iframe width="' + width + '" height="' + height + '" src="' + playURL + '" style="border:0;" allowfullscreen=""></iframe>' ); }); }, fallback: function () { 'use strict'; var id = 'playplay'; tarteaucitron.fallback(['tac_playplay'], function (elem) { return tarteaucitron.engage(id); }); }, }; // adobeworkspace export const adobeworkspace = { key: 'adobeworkspace', type: 'analytic', name: 'Adobe - Analysis Workspace', uri: 'https://www.adobe.com/privacy/policy.html', needConsent: true, cookies: ['s_ecid', 's_cc', 's_sq', 's_vi', 's_fid'], js: function () { 'use strict'; if ( tarteaucitron.user.adobeworkspaceId1 === undefined || tarteaucitron.user.adobeworkspaceId2 === undefined || tarteaucitron.user.adobeworkspaceId3 === undefined ) { return; } tarteaucitron.addScript( 'https://assets.adobedtm.com/' + tarteaucitron.user.adobeworkspaceId1 + '/' + tarteaucitron.user.adobeworkspaceId2 + '/launch-' + tarteaucitron.user.adobeworkspaceId3 + '.min.js' ); }, }; // zohopagesense export const zohopagesense = { key: 'zohopagesense', type: 'analytic', name: 'Zoho PageSense', uri: 'https://www.zoho.com/pagesense/cookie-policy.html', needConsent: true, cookies: [ 'zab_g_', 'zabUserID', 'zabVisitID', 'zabSplit', 'zabBucket', 'zabHMBucket', 'zpsfa_', 'zfa', 'zsr', 'zabme', 'zsd', 'ps_payloadSeqId', 'zabPZBucket', 'zPersonalization', 'zia_', 'zpc', 'zps_permission_status', 'zps-tgr-dts', 'zpspolls_', 'zpsPollsBucket', 'zpspb', 'zpsPopupBucket', 'zpssr', 'zab_g_', 'zab_', 'zPersonalization', ], js: function () { 'use strict'; if ( tarteaucitron.user.zohoPageSenseProjectId === undefined || tarteaucitron.user.zohoPageSenseScriptHash === undefined ) { return; } tarteaucitron.addScript( 'https://cdn-eu.pagesense.io/js/' + tarteaucitron.user.zohoPageSenseProjectId + '/' + tarteaucitron.user.zohoPageSenseScriptHash + '.js' ); }, }; // leadinfo export const leadinfo = { key: 'leadinfo', type: 'analytic', name: 'Leadinfo', uri: 'https://www.leadinfo.com/en/privacy/', needConsent: true, cookies: ['_li_id', '_li_ses'], js: function () { 'use strict'; if (tarteaucitron.user.leadinfoId === undefined) { return; } window.GlobalLeadinfoNamespace = window.GlobalLeadinfoNamespace || []; window.GlobalLeadinfoNamespace.push('leadinfo'); window['leadinfo'] = function () { (window['leadinfo'].q = window['leadinfo'].q || []).push(arguments); }; window['leadinfo'].t = window['leadinfo'].t || tarteaucitron.user.leadinfoId; window['leadinfo'].q = window['leadinfo'].q || []; tarteaucitron.addScript('https://cdn.leadinfo.net/ping.js'); }, }; // force24 export const force24 = { key: 'force24', type: 'analytic', name: 'Force24', uri: 'https://support.force24.co.uk/support/solutions/articles/79000128057-cookie-policies', needConsent: true, cookies: ['F24_autoID', 'F24_personID'], js: function () { 'use strict'; if ( tarteaucitron.user.force24trackingId === undefined || tarteaucitron.user.force24clientId === undefined ) { return; } (window.Force24Object = 'f24'), (window['f24'] = window['f24'] || function () { (window['f24'].q = window['f24'].q || []), window['f24'].q.push(arguments); }), (window['f24'].l = 1 * new Date()); tarteaucitron.addScript( 'https://static.websites.data-crypt.com/scripts/activity/v3/inject-v3.min.js' ); f24('config', 'set_tracking_id', tarteaucitron.user.force24trackingId); f24('config', 'set_client_id', tarteaucitron.user.force24clientId); }, }; // tiktokvideo export const tiktokvideo = { key: 'tiktokvideo', type: 'video', name: 'Tiktok Video', uri: 'https://www.tiktok.com/legal/page/eea/privacy-policy/en', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.addScript('https://www.tiktok.com/embed.js'); }, fallback: function () { 'use strict'; var id = 'tiktokvideo'; tarteaucitron.fallback(['tiktok-embed'], function (elem) { return tarteaucitron.engage(id); }); }, }; // shinystat export const shinystat = { key: 'shinystat', type: 'analytic', name: 'Shinystat', uri: 'https://www.shinystat.com/en/opt-out.html', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.shinystatUser === undefined) { return; } tarteaucitron.addScript( 'https://codice.shinystat.com/cgi-bin/getcod.cgi?USER=' + tarteaucitron.user.shinystatUser ); }, }; // activecampaignvgo export const activecampaignvgo = { key: 'activecampaignvgo', type: 'other', name: 'Active Campaign', uri: 'https://www.activecampaign.com/legal/privacy-policy/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.activecampaignAccount === undefined) { return; } window.visitorGlobalObjectAlias = 'vgo'; window[window.visitorGlobalObjectAlias] = window[window.visitorGlobalObjectAlias] || function () { (window[window.visitorGlobalObjectAlias].q = window[window.visitorGlobalObjectAlias].q || []).push( arguments ); }; window[window.visitorGlobalObjectAlias].l = new Date().getTime(); tarteaucitron.addScript( 'https://diffuser-cdn.app-us1.com/diffuser/diffuser.js', '', function () { vgo('setAccount', tarteaucitron.user.activecampaignAccount); vgo('setTrackByDefault', true); vgo('process'); } ); }, }; // Brevo (formerly sendinblue) export const sendinblue = { key: 'sendinblue', type: 'other', name: 'Brevo (formerly sendinblue)', uri: 'https://www.brevo.com/fr/legal/cookies/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.sendinblueKey === undefined) { return; } window.sib = { equeue: [], client_key: tarteaucitron.user.sendinblueKey, }; window.sendinblue = {}; for ( var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++ ) { (function (k) { window.sendinblue[k] = function () { var arg = Array.prototype.slice.call(arguments); ( window.sib[k] || function () { var t = {}; t[k] = arg; window.sib.equeue.push(t); } )(arg[0], arg[1], arg[2], arg[3]); }; })(j[i]); } tarteaucitron.addScript( 'https://sibautomation.com/sa.js?key=' + window.sib.client_key, 'sendinblue-js', function () { window.sendinblue.page(); } ); }, }; // collectchat export const collectchat = { key: 'collectchat', type: 'other', name: 'Collect Chat', uri: 'https://collect.chat/privacy/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.collectchatId === undefined) { return; } window.CollectId = tarteaucitron.user.collectchatId; tarteaucitron.addScript('https://collectcdn.com/launcher.js'); }, }; // eulerian export const eulerian = { key: 'eulerian', type: 'analytic', name: 'Eulerian', uri: 'https://www.eulerian.com/rgpd', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.eulerianHost === undefined) { return; } (function (e, a) { var i = e.length, y = 5381, k = 'script', s = window, v = document, o = v.createElement(k); for (; i; ) { i -= 1; y = (y * 33) ^ e.charCodeAt(i); } y = '_EA_' + (y >>>= 0); (function (e, a, s, y) { s[a] = s[a] || function () { (s[y] = s[y] || []).push(arguments); s[y].eah = e; }; })(e, a, s, y); i = (new Date() / 1e7) | 0; o.ea = y; y = i % 26; o.async = 1; o.src = '//' + e + '/' + String.fromCharCode(97 + y, 122 - y, 65 + y) + (i % 1e3) + '.js?2'; s = v.getElementsByTagName(k)[0]; s.parentNode.insertBefore(o, s); })(tarteaucitron.user.eulerianHost, 'EA_push'); EA_push(); }, }; // posthog export const posthog = { key: 'posthog', type: 'other', name: 'Posthog', uri: 'https://posthog.com/privacy', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.posthogApiKey === undefined || tarteaucitron.user.posthogHost === undefined ) { return; } !(function (t, e) { var o, n, p, r; e.__SV || ((window.posthog = e), (e._i = []), (e.init = function (i, s, a) { function g(t, e) { var o = e.split('.'); 2 == o.length && ((t = t[o[0]]), (e = o[1])), (t[e] = function () { t.push( [e].concat( Array.prototype.slice.call(arguments, 0) ) ); }); } ((p = t.createElement('script')).type = 'text/javascript'), (p.async = !0), (p.src = s.api_host + '/static/array.js'), (r = t.getElementsByTagName( 'script' )[0]).parentNode.insertBefore(p, r); var u = e; for ( void 0 !== a ? (u = e[a] = []) : (a = 'posthog'), u.people = u.people || [], u.toString = function (t) { var e = 'posthog'; return ( 'posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e ); }, u.people.toString = function () { return u.toString(1) + '.people (stub)'; }, o = 'capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags'.split( ' ' ), n = 0; n < o.length; n++ ) g(u, o[n]); e._i.push([i, s, a]); }), (e.__SV = 1)); })(document, window.posthog || []); posthog.init(tarteaucitron.user.posthogApiKey, { api_host: tarteaucitron.user.posthogHost, }); }, }; // googlesignin export const googlesignin = { key: 'googlesignin', type: 'other', name: 'Google Signin', uri: 'https://policies.google.com/technologies/cookies#types-of-cookies', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.addScript('https://accounts.google.com/gsi/client'); }, }; // calendly export const calendly = { key: 'calendly', type: 'other', name: 'Calendly', uri: 'https://calendly.com/privacy', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.addScript( 'https://assets.calendly.com/assets/external/widget.js' ); }, }; // tolkai export const tolkai = { key: 'tolkai', type: 'other', name: 'tolk.ai', uri: 'https://www.tolk.ai/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.tolkaiBot === undefined) { return; } window.tcfbot = tarteaucitron.user.tolkaiBot; window.TcfWbchtParams = { behaviour: 'default' }; window.display = 'iframe'; tarteaucitron.addScript('https://script.tolk.ai/iframe-latest.js'); }, }; // kwanko export const kwanko = { key: 'kwanko', type: 'ads', name: 'Kwanko', uri: 'https://www.kwanko.com/fr/rgpd/politique-gestion-donnees/', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['tac_kwanko'], function (x) { var mclic = tarteaucitron.getElemAttr(x, 'data-mclic'); return ( '<img src="https://action.metaffiliation.com/trk.php?mclic=' + mclic + '" width="1" height="1" border="0" />' ); }); }, fallback: function () { 'use strict'; var id = 'kwanko'; tarteaucitron.fallback(['tac_kwanko'], function (elem) { return tarteaucitron.engage(id); }); }, }; // leadforensics export const leadforensics = { key: 'leadforensics', type: 'ads', name: 'Lead Forensics', uri: 'https://www.leadforensics.com/cookie-policy/', needConsent: true, cookies: ['ifuuid'], js: function () { 'use strict'; if (tarteaucitron.user.leadforensicsId === undefined) { return; } tarteaucitron.addScript( 'https://secure.team8save.com/js/sc/' + tarteaucitron.user.leadforensicsId + '.js' ); }, }; // ubib export const ubib = { key: 'ubib', type: 'support', name: 'Ubib Chatbot', uri: 'https://ubib.libanswers.com/', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.ubibId === undefined || tarteaucitron.user.ubibHash === undefined ) { return; } tarteaucitron.addScript( 'https://' + tarteaucitron.user.ubibId + '.libanswers.com/load_chat.php?hash=' + tarteaucitron.user.ubibHash ); }, }; // wysistathightrack export const wysistathightrack = { key: 'wysistathightrack', type: 'analytic', name: 'Wysistat (privacy by design)', uri: 'https://www.wysistat.net/webanalytics/exemption-cnil/', needConsent: false, cookies: ['wysistat'], js: function () { 'use strict'; if (tarteaucitron.user.wysistatNom === undefined) { return; } window._wsq = window._wsq || []; window._wsq.push(['_setNom', tarteaucitron.user.wysistatNom]); window._wsq.push(['_wysistat']); tarteaucitron.addScript('https://www.wysistat.com/ws.jsa'); }, }; // robofabrica export const robofabrica = { key: 'robofabrica', type: 'support', name: 'Robo Fabrica Chatbot', uri: 'https://robofabrica.tech/charte-vie-privee/', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.robofabricaUuid === undefined) { return; } tarteaucitron.addScript( 'https://app.robofabrica.tech/widget/script', 'inceptive-cw-script', function () { document .getElementById('inceptive-cw-script') .setAttribute( 'unique-url', tarteaucitron.user.robofabricaUuid ); document .getElementById('inceptive-cw-script') .setAttribute('label', 'start'); document .getElementById('inceptive-cw-script') .setAttribute('launch-btn-id', 'inceptive-cw-launch'); document .getElementById('inceptive-cw-script') .setAttribute( 'chat-server-url', 'https://app.robofabrica.tech:443' ); } ); }, }; // trustpilot export const trustpilot = { key: 'trustpilot', type: 'other', name: 'Trustpilot', uri: 'https://fr.legal.trustpilot.com/for-reviewers/end-user-privacy-terms', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['trustpilot-widget'], ''); tarteaucitron.addScript( 'https://widget.trustpilot.com/bootstrap/v5/tp.widget.sync.bootstrap.min.js' ); }, fallback: function () { 'use strict'; var id = 'trustpilot'; tarteaucitron.fallback(['trustpilot-widget'], function (elem) { elem.style.width = elem.getAttribute('data-style-width'); elem.style.height = elem.getAttribute('data-style-height'); return tarteaucitron.engage(id); }); }, }; // snapchat export const snapchat = { key: 'snapchat', type: 'analytic', name: 'Snapchat', uri: 'https://snap.com/fr-FR/privacy/privacy-policy', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.snapchatId === undefined || tarteaucitron.user.snapchatEmail === undefined ) { return; } var a = (window.snaptr = function () { a.handleRequest ? a.handleRequest.apply(a, arguments) : a.queue.push(arguments); }); a.queue = []; window.snaptr('init', tarteaucitron.user.snapchatId, { user_email: tarteaucitron.user.snapchatEmail, }); window.snaptr('track', 'PAGE_VIEW'); tarteaucitron.addScript('https://sc-static.net/scevent.min.js'); if (typeof tarteaucitron.user.snapchatMore === 'function') { tarteaucitron.user.snapchatMore(); } }, }; // antvoice export const antvoice = { key: 'antvoice', type: 'ads', name: 'antvoice', uri: 'https://www.antvoice.com/fr/privacy-policy/', needConsent: true, cookies: ['antvoice'], js: function () { 'use strict'; if (tarteaucitron.user.antvoiceId === undefined) { return; } window.avDataLayer = window.avDataLayer || []; window.avtag = window.avtag || function (_cmd, _p) { window.avDataLayer.push({ cmd: _cmd, p: _p }); }; window.avtag('setConsent', { consent: true }); window.avtag('init', { id: tarteaucitron.user.antvoiceId }); tarteaucitron.addScript('https://static.avads.net/avtag.min.js'); }, }; // plausible export const plausible = { key: 'plausible', type: 'analytic', name: 'Plausible', uri: 'https://plausible.io/privacy', needConsent: false, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.plausibleDomain === undefined) { return; } tarteaucitron.addScript( 'https://plausible.io/js/script.js', '', '', '', 'data-domain', tarteaucitron.user.plausibleDomain ); }, }; // videas export const videas = { key: 'videas', type: 'video', name: 'Videas', uri: 'https://videas.fr/fr/legal', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['tac_videas'], function (x) { var frame_title = tarteaucitron.getElemAttr(x, 'title') || 'Videas iframe', width = tarteaucitron.getElemAttr(x, 'width'), height = tarteaucitron.getElemAttr(x, 'height'), id = tarteaucitron.getElemAttr(x, 'data-id'), allowfullscreen = tarteaucitron.getElemAttr( x, 'allowfullscreen' ); return ( '<iframe title="' + frame_title + '" src="https://app.videas.fr/embed/' + id + '/" width="' + width + '" height="' + height + '" allowtransparency ' + (allowfullscreen == '0' ? '' : ' webkitallowfullscreen mozallowfullscreen allowfullscreen') + '></iframe>' ); }); }, fallback: function () { 'use strict'; var id = 'videas'; tarteaucitron.fallback(['tac_videas'], function (elem) { elem.style.width = elem.getAttribute('width') + 'px'; elem.style.height = elem.getAttribute('height') + 'px'; return tarteaucitron.engage(id); }); }, }; // myfeelback export const myfeelback = { key: 'myfeelback', type: 'api', name: 'MyFeelBack (Skeepers)', uri: 'https://help.myfeelback.com/fr/quels-sont-les-cookies-d%C3%A9pos%C3%A9s-par-un-dispositif-de-collecte-myfeelback', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.myfeelbackId === undefined) { return; } window._Mfb_useCookie = true; window._Mfb_ud = { var1: undefined, var2: undefined, varN: undefined, _context: { lang: undefined, privacyMode: false, _page: { url: location.pathname, storageDuration: 30, }, }, }; tarteaucitron.addScript( 'https://actorssl-5637.kxcdn.com/actor/' + tarteaucitron.user.myfeelbackId + '/action', 'MFBActor' ); }, }; // arcio export const arcio = { key: 'arcio', type: 'api', name: 'Arc.io', uri: 'https://arc.io/about', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.arcId === undefined) { return; } tarteaucitron.addScript( 'https://arc.io/widget.min.js#' + tarteaucitron.user.arcId ); }, }; // doubleclick export const doubleclick = { key: 'doubleclick', type: 'ads', name: 'DoubleClick', uri: 'https://support.google.com/admanager/answer/2839090', needConsent: true, cookies: [], js: function () { 'use strict'; tarteaucitron.fallback(['doubleclick_container'], function (x) { var id1 = tarteaucitron.getElemAttr(x, 'data-id1'), id2 = tarteaucitron.getElemAttr(x, 'data-id2'), type = tarteaucitron.getElemAttr(x, 'data-type'), cat = tarteaucitron.getElemAttr(x, 'data-cat'), item = tarteaucitron.getElemAttr(x, 'data-item'), quantity = tarteaucitron.getElemAttr(x, 'data-quantity'), price = tarteaucitron.getElemAttr(x, 'data-price'), postage = tarteaucitron.getElemAttr(x, 'data-postage'), seller = tarteaucitron.getElemAttr(x, 'data-seller'), gdpr = tarteaucitron.getElemAttr(x, 'data-gdpr'), gdpr_consent = tarteaucitron.getElemAttr( x, 'data-gdpr-consent' ), ord = tarteaucitron.getElemAttr(x, 'data-ord'), num = tarteaucitron.getElemAttr(x, 'data-num'); return ( '<iframe src="https://' + id1 + '.fls.doubleclick.net/activityi;src=' + id2 + ';type=' + type + ';cat=' + cat + ';item=' + item + ';quantity=' + quantity + ';price=' + price + ';postage=' + postage + ';seller=' + seller + ';gdpr=' + gdpr + ';gdpr_consent=' + gdpr_consent + ';num=' + num + ';ord=' + ord + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>' ); }); }, }; // userpilot export const userpilot = { key: 'userpilot', type: 'analytic', name: 'UserPilot', uri: 'https://userpilot.com/privacy-policy', needConsent: true, cookies: [], js: function () { 'use strict'; if (tarteaucitron.user.userpilotToken === undefined) { return; } window.userpilotSettings = { token: tarteaucitron.user.userpilotToken }; tarteaucitron.addScript('https://js.userpilot.io/sdk/latest.js'); }, }; export const piwikpro = { key: 'piwikpro', type: 'analytic', name: 'Piwik Pro', uri: 'https://piwik.pro/privacy-policy/', needConsent: true, cookies: [ '_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid', ], js: function () { 'use strict'; if ( tarteaucitron.user.piwikProId === undefined || tarteaucitron.user.piwikProContainer === undefined ) { return; } (window['dataLayer'] = window['dataLayer'] || []), window['dataLayer'].push({ start: new Date().getTime(), event: 'stg.start', }); function stgCreateCookie(a, b, c) { var d = ''; if (c) { var e = new Date(); e.setTime(e.getTime() + 24 * c * 60 * 60 * 1e3), (d = '; expires=' + e.toUTCString()); } document.cookie = a + '=' + b + d + '; path=/'; } var isStgDebug = (window.location.href.match('stg_debug') || document.cookie.match('stg_debug')) && !window.location.href.match('stg_disable_debug'); stgCreateCookie('stg_debug', isStgDebug ? 1 : '', isStgDebug ? 14 : -1); var qP = []; var qPString = qP.length > 0 ? '?' + qP.join('&') : ''; tarteaucitron.addScript( 'https://' + tarteaucitron.user.piwikProContainer + '.containers.piwik.pro/' + tarteaucitron.user.piwikProId + '.js' + qPString ); !(function (a, n, i) { a[n] = a[n] || {}; for (var c = 0; c < i.length; c++) !(function (i) { (a[n][i] = a[n][i] || {}), (a[n][i].api = a[n][i].api || function () { var a = [].slice.call(arguments, 0); 'string' == typeof a[0] && window['dataLayer'].push({ event: n + '.' + i + ':' + a[0], parameters: [].slice.call(arguments, 1), }); }); })(i[c]); })(window, 'ppms', ['tm', 'cm']); }, }; // pinterestpixel export const pinterestpixel = { key: 'pinterestpixel', type: 'ads', name: 'Pinterest Pixel', uri: 'https://help.pinterest.com/fr/business/article/track-conversions-with-pinterest-tag', needConsent: true, cookies: [ '_pinterest_sess', '_pinterest_ct', '_pinterest_ct_mw', '_pinterest_ct_rt', '_epik', '_derived_epik', '_pin_unauth', '_pinterest_ct_ua', ], js: function () { 'use strict'; if (tarteaucitron.user.pinterestpixelId === undefined) { return; } if (!window.pintrk) { window.pintrk = function () { window.pintrk.queue.push(Array.prototype.slice.call(arguments)); }; var n = window.pintrk; n.queue = []; n.version = '3.0'; tarteaucitron.addScript( 'https://s.pinimg.com/ct/core.js', '', function () { window.pintrk('load', tarteaucitron.user.pinterestpixelId); window.pintrk('page'); } ); } }, }; // elfsight export const elfsight = { key: 'elfsight', type: 'support', name: 'Elfsight', uri: 'https://elfsight.com/privacy-policy/', needConsent: true, cookies: ['__cfduid', '_p_hfp_client_id', 'session_id'], js: function () { 'use strict'; tarteaucitron.addScript('https://apps.elfsight.com/p/platform.js'); }, }; // plezi export const plezi = { key: 'plezi', type: 'analytic', name: 'Plezi', uri: 'https://www.plezi.co/fr/mentions-legales/', needConsent: true, cookies: [], js: function () { 'use strict'; if ( tarteaucitron.user.pleziTenant === undefined || tarteaucitron.user.pleziTw === undefined ) { return; } tarteaucitron.addScript( 'https://brain.plezi.co/api/v1/analytics?tenant=' + tarteaucitron.user.pleziTenant + '&tw=' + tarteaucitron.user.pleziTw ); }, }; // smartsupp export const smartsupp = { key: 'smartsupp', type: 'support', name: 'Smartsupp', uri: 'https://www.smartsupp.com/help/privacy/', needConsent: true, cookies: ['ssupp.vid', 'ssupp.visits', 'AWSALB', 'AWSALBCORS'], js: function () { 'use strict'; if (tarteaucitron.user.smartsuppKey === undefined) { return; } window._smartsupp = window._smartsupp || {}; window._smartsupp.key = tarteaucitron.user.smartsuppKey; window.smartsupp = function () { window.smartsupp._.push(arguments); }; window.smartsupp._ = []; tarteaucitron.addScript('https://www.smartsuppchat.com/loader.js'); }, }; // sharpspring export const sharpspring = { key: 'sharpspring', type: 'analytic', name: 'SharpSpring', uri: 'https://sharpspring.com/legal/sharpspring-cookie-policy/', needConsent: true, cookies: ['koitk', '__ss', '__ss_tk', '__ss_referrer'], js: function () { 'use strict'; if ( tarteaucitron.user.ssId === undefined || tarteaucitron.user.ssAccount === undefined ) { return; } window._ss = window._ss || []; window._ss.push([ '_setDomain', 'https://' + tarteaucitron.user.ssId + '.marketingautomation.services/net', ]); window._ss.push(['_setAccount', tarteaucitron.user.ssAccount]); window._ss.push(['_trackPageView']); window._pa = window._pa || {}; tarteaucitron.addScript( 'https://' + tarteaucitron.user.ssId + '.marketingautomation.services/client/ss.js' ); }, }; // pardot export const pard