diff --git a/README.md b/README.md index 2e5561e..b3f1e4e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ gdpr-cookies.js 69ko (~19ko gzip) ## Add style in page ```html - + ``` ## Init Gdpr Cookie @@ -31,6 +31,7 @@ Set this code in the head of your page ```js ``` + Add your script service (see example google tag bellow ) ```js @@ -40,8 +41,8 @@ _gdpr.push([.....]); And use global function for init GdprCookie (footer) ```js -document.addEventListener('DOMContentLoaded', function() { - window.initGdprCookie.default('fr'); +document.addEventListener('DOMContentLoaded', function () { + window.initGdprCookie.default('fr'); }); ``` @@ -73,7 +74,7 @@ import sass files ## Declare external script -Push array in _gdpr array. +Push array in \_gdpr array. ```js _gdpr.push([ @@ -87,6 +88,7 @@ _gdpr.push([ ``` First element is object: + - name : string (unique and required) - type : string (type of service) required, default: Stats | Ads | Others - description : string (text for describe service) optional @@ -96,9 +98,10 @@ Second element is Array of Functions All the callback function called if service is allowed You can use argument helpers in function. -- ```createScript(src)``` for create script tag in head -- ```createStyle(href)``` for create style tag in head -- ```createIframe('id', {href: '', width: '200px'});``` for create iframe tag in target element. Add attribute for iframe with second argument options object + +- `createScript(src)` for create script tag in head +- `createStyle(href)` for create style tag in head +- `createIframe('id', {href: '', width: '200px'});` for create iframe tag in target element. Add attribute for iframe with second argument options object #### Example for google tag @@ -148,7 +151,6 @@ myCB.push(function(helpers){ return true;}); ``` - # Options for init Gdpr Cookie ## language @@ -162,12 +164,13 @@ var _gdpr_lang = 'fr'; ## options Gdpr Service ```js - var _gdpr_options = { - name: 'gdpr_cookie', // name of cookie gdpr - keepCookies: ['TEST'], // cookie not to delete - types: ['ads', 'stats', 'others'], // type of services - expires: 395, // cookie duration (in days) - }; +var _gdpr_options = { + name: 'gdpr_cookie', // name of cookie gdpr + keepCookies: ['TEST'], // cookie not to delete + types: ['ads', 'stats', 'others'], // type of services + expires: 395, // cookie duration (in days) + optout: true, // default undefined. If true, the services is optout. +}; ``` ## i18n messages @@ -177,7 +180,7 @@ If you want to add or define your messages, you can create a messages in your ht ```js var _gdpr_messages = { - fr: { + fr: { banner_title: "Information sur l'utilisation de cookies sur le site", alert_text: "En poursuivant votre navigation, vous acceptez l'utilisation de services tiers pouvant installer des cookies", @@ -199,7 +202,7 @@ var _gdpr_messages = { activate: 'activer', deactivate: 'désactiver', }, -} +}; ``` ## Add link for open modal (sorry for the onclick 😅) @@ -207,6 +210,7 @@ var _gdpr_messages = { ```js window._gdpr_showModal(); ``` + ex: ```html @@ -218,19 +222,23 @@ ex: Add just class (gdpr-mask) and name of service with data-gdpr. Ex: ```html -
+
``` - # 🤓 Dev The code use : + - ES2018 - Webpack - Flow - Babel - For UI : - Preact @@ -241,6 +249,7 @@ For UI : # Browsers Compatibility - Desktop: + - Chrome 🆗 - Firefox 🆗 - Edge 🆗 diff --git a/dist/gdpr-cookies.js b/dist/gdpr-cookies.js index dc5b302..e7cd5c4 100644 --- a/dist/gdpr-cookies.js +++ b/dist/gdpr-cookies.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.initGdprCookie=e():t.initGdprCookie=e()}(self,(function(){var t={4746:function(t){t.exports=function(t,e,n){var r=e.content,o=e.attributes;return function(e){return t("svg",Object.assign({dangerouslySetInnerHTML:{__html:r}},o,e),e&&e.children)}}},1277:function(t,e,n){var r=n(4746);n=n(6400).h,t.exports=r.bind(null,n)},4794:function(t,e,n){n(9826),n=n(2649),t.exports=n("Array","find")},4370:function(t,e,n){n(8783),n(1038),n=n(857),t.exports=n.Array.from},3662:function(t,e,n){n(6992),n(1532),n(1539),n(8783),n=n(857),t.exports=n.Map},9116:function(t,e,n){n(9601),n=n(857),t.exports=n.Object.assign},8188:function(t,e,n){n(6992),n(1539),n(189),n(8783),n=n(857),t.exports=n.Set},9266:function(t,e,n){n(2222),n(1539),n(2526),n(2443),n(1817),n(2401),n(8722),n(2165),n(9007),n(6066),n(3510),n(1840),n(6982),n(2159),n(6649),n(9341),n(543),n(3706),n(408),n(1299),n=n(857),t.exports=n.Symbol},9662:function(t,e,n){var r=n(614),o=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(o(t)+" is not a function")}},6077:function(t,e,n){var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=(n=n(3070),r("unscopables")),c=Array.prototype;null==c[i]&&n.f(c,i,{configurable:!0,value:o(null)}),t.exports=function(t){c[i][t]=!0}},5787:function(t){t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8457:function(t,e,n){"use strict";var r=n(9974),o=n(7908),i=n(3411),c=n(7659),a=n(4411),u=n(7466),s=n(6135),l=n(8554),f=n(1246);t.exports=function(t){var e=o(t),n=a(this),p=1<(t=arguments.length)?arguments[1]:void 0,d=void 0!==p;d&&(p=r(p,2"+t+""},_=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t;_="undefined"==typeof document||document.domain&&o?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(o):((t=l("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var e=a.length;e--;)delete _[f][a[e]];return _()};u[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[f]=i(t),n=new r,r[f]=null,n[d]=t):n=_(),void 0===e?n:c(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3070),i=n(9670),c=n(1956);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),a=r.length,u=0;uu;)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){return!!(t=r(this,t))&&t.enumerable}:n},7674:function(t,e,n){var r=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(n){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(614),o=n(111);t.exports=function(t,e){var n,i;if("string"===e&&r(n=t.toString)&&!o(i=n.call(t)))return i;if(r(n=t.valueOf)&&!o(i=n.call(t)))return i;if("string"!==e&&r(n=t.toString)&&!o(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(8006),i=n(5181),c=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},857:function(t,e,n){n=n(7854),t.exports=n},2248:function(t,e,n){var r=n(1320);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},1320:function(t,e,n){var r=n(7854),o=n(614),i=n(6656),c=n(8880),a=n(3505),u=n(2788),s=n(9909),l=n(6530).CONFIGURABLE,f=s.get,p=s.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var s=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,_=u&&void 0!==u.name?u.name:e;o(n)&&("Symbol("===String(_).slice(0,7)&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==_)&&c(n,"name",_),(u=p(n)).source||(u.source=d.join("string"==typeof _?_:""))),t!==r?(s?!v&&t[e]&&(f=!0):delete t[e],f?t[e]=n:c(t,e,n)):f?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||u(this)}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),c=n(9781),a=i("species");t.exports=function(t){var e=r(t);t=o.f,c&&e&&!e[a]&&t(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(6656),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505);n=r[n="__core-js_shared__"]||o(n,{}),t.exports=n},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8710:function(t,e,n){var r=n(9958),o=n(1340),i=n(4488);n=function(t){return function(e,n){var c,a=o(i(e)),u=r(n);return e=a.length,u<0||e<=u?t?"":void 0:(n=a.charCodeAt(u))<55296||56319=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},1532:function(t,e,n){"use strict";var r=n(7710);n=n(5631),t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n)},408:function(t,e,n){n(8003)(Math,"Math",!0)},9601:function(t,e,n){var r=n(2109);n=n(1574),r({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},1539:function(t,e,n){var r=n(1694),o=n(1320);n=n(288),r||o(Object.prototype,"toString",n,{unsafe:!0})},1299:function(t,e,n){var r=n(2109),o=n(7854);n=n(8003),r({global:!0},{Reflect:{}}),n(o.Reflect,"Reflect",!0)},189:function(t,e,n){"use strict";var r=n(7710);n=n(5631),t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n)},8783:function(t,e,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),c=(n=n(654),"String Iterator"),a=i.set,u=i.getterFor(c);n(String,"String",(function(t){a(this,{type:c,string:o(t),index:0})}),(function(){var t=u(this),e=t.string,n=t.index;return n>=e.length?{value:void 0,done:!0}:(n=r(e,n),t.index+=n.length,{value:n,done:!1})}))},2443:function(t,e,n){n(7235)("asyncIterator")},1817:function(t,e,n){"use strict";var r,o,i,c,a,u=n(2109),s=n(9781),l=n(7854),f=n(6656),p=n(614),d=n(111),v=n(3070).f,_=(n=n(9920),l.Symbol);!s||!p(_)||"description"in _.prototype&&void 0===_().description||(r={},n(o=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof o?new _(t):void 0===t?_():_(t);return""===t&&(r[e]=!0),e},_),(n=o.prototype=_.prototype).constructor=o,i=n.toString,c="Symbol(test)"==String(_("test")),a=/^Symbol\((.*)\)[^)]+$/,v(n,"description",{configurable:!0,get:function(){var t=d(this)?this.valueOf():this,e=i.call(t);return f(r,t)?"":""===(e=c?e.slice(7,-1):e.replace(a,"$1"))?void 0:e}}),u({global:!0,forced:!0},{Symbol:o}))},2401:function(t,e,n){n(7235)("hasInstance")},8722:function(t,e,n){n(7235)("isConcatSpreadable")},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){"use strict";function r(t,e){var n=et[t]=w(K[V]);return $(n,{type:W,tag:t,description:e}),l||(n.description=e),n}function o(t,e){m(t);var n=b(e);return e=O(n).concat(st(n)),U(e,(function(e){l&&!ut.call(n,e)||at(t,e,n[e])})),t}var i,c=n(2109),a=n(7854),u=n(5005),s=n(1913),l=n(9781),f=n(133),p=n(7293),d=n(6656),v=n(3157),_=n(614),h=n(111),y=n(2190),m=n(9670),g=n(7908),b=n(5656),x=n(4948),S=n(1340),k=n(9114),w=n(30),O=n(1956),A=n(8006),j=n(1156),E=n(5181),C=n(1236),P=n(3070),T=n(5296),N=n(1320),M=n(2309),I=n(6200),L=n(3501),F=n(9711),D=n(5112),R=n(6061),G=n(7235),B=n(8003),z=n(9909),U=n(2092).forEach,H=I("hidden"),W="Symbol",V="prototype",$=(I=D("toPrimitive"),z.set),q=z.getterFor(W),J=Object[V],K=a.Symbol,Y=u("JSON","stringify"),X=C.f,Q=P.f,Z=j.f,tt=T.f,et=M("symbols"),nt=M("op-symbols"),rt=M("string-to-symbol-registry"),ot=M("symbol-to-string-registry"),it=(u=M("wks"),!(M=a.QObject)||!M[V]||!M[V].findChild),ct=l&&p((function(){return 7!=w(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(J,e);r&&delete J[e],Q(t,e,n),r&&t!==J&&Q(J,e,r)}:Q,at=function(t,e,n){return t===J&&at(nt,e,n),m(t),e=x(e),m(n),d(et,e)?(n.enumerable?(d(t,H)&&t[H][e]&&(t[H][e]=!1),n=w(n,{enumerable:k(0,!1)})):(d(t,H)||Q(t,H,k(1,{})),t[H][e]=!0),ct(t,e,n)):Q(t,e,n)},ut=function(t){var e=x(t);return t=tt.call(this,e),!(this===J&&d(et,e)&&!d(nt,e))&&(!(t||!d(this,e)||!d(et,e)||d(this,H)&&this[H][e])||t)},st=(a=function(t,e){var n=b(t);if(t=x(e),n!==J||!d(et,t)||d(nt,t))return!(e=X(n,t))||!d(et,t)||d(n,H)&&n[H][t]||(e.enumerable=!0),e},M=function(t){t=Z(b(t));var e=[];return U(t,(function(t){d(et,t)||d(L,t)||e.push(t)})),e},function(t){var e=t===J,n=(t=Z(e?nt:b(t)),[]);return U(t,(function(t){!d(et,t)||e&&!d(J,t)||n.push(et[t])})),n});f||(N((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=F(t),n=function(t){this===J&&n.call(nt,t),d(this,H)&&d(this[H],e)&&(this[H][e]=!1),ct(this,e,k(1,t))};return l&&it&&ct(J,e,{configurable:!0,set:n}),r(e,t)})[V],"toString",(function(){return q(this).tag})),N(K,"withoutSetter",(function(t){return r(F(t),t)})),T.f=ut,P.f=at,C.f=a,A.f=j.f=M,E.f=st,R.f=function(t){return r(D(t),t)},l&&(Q(K[V],"description",{configurable:!0,get:function(){return q(this).description}}),s||N(J,"propertyIsEnumerable",ut,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),U(O(u),(function(t){G(t)})),c({target:W,stat:!0,forced:!f},{for:function(t){var e=S(t);return d(rt,e)?rt[e]:(t=K(e),rt[e]=t,ot[t]=e,t)},keyFor:function(t){if(!y(t))throw TypeError(t+" is not a symbol");if(d(ot,t))return ot[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),c({target:"Object",stat:!0,forced:!f,sham:!l},{create:function(t,e){return void 0===e?w(t):o(w(t),e)},defineProperty:at,defineProperties:o,getOwnPropertyDescriptor:a}),c({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:M,getOwnPropertySymbols:st}),c({target:"Object",stat:!0,forced:p((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(g(t))}}),Y&&c({target:"JSON",stat:!0,forced:!f||p((function(){var t=K();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;i'},n=n(1277),t.exports=n(t.exports)},1733:function(t,e,n){t.exports={attributes:{xmlns:"http://www.w3.org/2000/svg","aria-label":"",alt:"","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",style:"enable-background:new 0 0 100 100;","xml:space":"preserve"},content:''},n=n(1277),t.exports=n(t.exports)},6400:function(t,e,n){"use strict";n.r(e),n.d(e,{render:function(){return L},hydrate:function(){return F},createElement:function(){return h},h:function(){return h},Fragment:function(){return g},createRef:function(){return m},isValidElement:function(){return c},Component:function(){return b},cloneElement:function(){return D},createContext:function(){return R},toChildArray:function(){return O},options:function(){return o}});var r,o,i,c,a,u,s,l,f={},p=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,c,a={};for(c in e)"key"==c?o=e[c]:"ref"==c?i=e[c]:a[c]=e[c];if(2t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ne.type?1:0}))}},{key:"updateServiceByName",value:function(t,e){this.activated.has(t)&&"boolean"==typeof e&&this.activated.set(t,e)}},{key:"updateServiceByType",value:function(t,e){var n=this;this.globalGdpr.forEach((function(r){r=(o=r[0]).name;var o=o.type;t===o&&"boolean"==typeof e&&n.activated.set(r,e)}))}},{key:"toggleService",value:function(t){var e,n=this,r=1=(n=C.__H||(C.__H={__:[],__h:[]})).__.length&&n.__.push({}),n.__[t]}function B(t){return N=1,e=K,t=t,(n=G(E++,2)).t=e,n.__c||(n.__=[K(void 0,t),function(t){t=n.t(n.__[0],t),n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=C),n.__;var e,n}function z(t,n){var r=G(E++,3);!e.options.__s&&J(r.__H,n)&&(r.__=t,r.__H=n,C.__H.__h.push(r))}function U(t,n){var r=G(E++,4);!e.options.__s&&J(r.__H,n)&&(r.__=t,r.__H=n,C.__h.push(r))}function H(t){return N=5,function(t,e){var n=G(E++,7);return J(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}((function(){return{current:t}}),[])}function W(){M.forEach((function(t){if(t.__P)try{t.__H.__h.forEach($),t.__H.__h.forEach(q),t.__H.__h=[]}catch(n){t.__H.__h=[],e.options.__e(n,t.__v)}})),M=[]}e.options.__b=function(t){C=null,I&&I(t)},e.options.__r=function(t){L&&L(t),E=0,(t=(C=t.__c).__H)&&(t.__h.forEach($),t.__h.forEach(q),t.__h=[])},e.options.diffed=function(t){F&&F(t),(t=t.__c)&&t.__H&&t.__H.__h.length&&(1!==M.push(t)&&P===e.options.requestAnimationFrame||((P=e.options.requestAnimationFrame)||function(t){function e(){clearTimeout(r),V&&cancelAnimationFrame(n),setTimeout(t)}var n,r=setTimeout(e,100);V&&(n=requestAnimationFrame(e))})(W)),C=void 0},e.options.__c=function(t,n){n.some((function(t){try{t.__h.forEach($),t.__h=t.__h.filter((function(t){return!t.__||q(t)}))}catch(r){n.some((function(t){t.__h&&(t.__h=[])})),n=[],e.options.__e(r,t.__v)}})),D&&D(t,n)},e.options.unmount=function(t){R&&R(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach($)}catch(t){e.options.__e(t,n.__v)}};var V="function"==typeof requestAnimationFrame;function $(t){var e=C;"function"==typeof t.__c&&t.__c(),C=e}function q(t){var e=C;t.__c=t.__(),C=e}function J(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function K(t,e){return"function"==typeof e?e(t):e}v=function(t){var n=t.className,r=t.onClick,o=t.children;return(0,e.h)("button",{"aria-label":t["aria-label"]||null,className:"gdpr_btn ".concat(n),onClick:r},o)},v.defaultProps={onClick:function(){return!0},className:"","aria-label":null};var Y=v,X=(v=function(t){var n=t.t,r=t.toggleModal,o=t.toggleBanner,i=t.showBanner,c=t.saveStateInGdpr,a=H(null);return U((function(){var t,e;a.current&&(t=a.current.children[0],e=a.current.children[1],t.focus(),e.addEventListener("keydown",(function(e){if("Tab"===e.code)return t.focus(),e.preventDefault()})))}),[]),!1===i?null:(0,e.h)("div",{role:"alertdialog","aria-modal":"true","aria-label":n("banner_title"),"aria-describedby":"gdpr_text",className:"gdpr_banner"},(0,e.h)("div",{className:"gdpr_banner-content",role:"document"},(0,e.h)("div",{id:"gdpr_text",className:"gdpr_banner-text"},n("alert_text")),(0,e.h)("div",{className:"gdpr_banner-actions",ref:a},(0,e.h)(Y,{className:"gdpr_btn-success",onClick:function(t){t.preventDefault(),o(!1),r(!1),c()},"aria-label":n("banner_ok_bt")},n("banner_ok_bt")),(0,e.h)(Y,{className:"gdpr_btn-default",onClick:function(t){t.preventDefault(),r(!0),o(!1)},"aria-label":n("banner_custom_bt")},n("banner_custom_bt")))))},(0,o.$j)((function(t){return{showBanner:t.showBanner}}),u)(v));function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}v=function(t){var n=t.className,r=t.name,o=t.children,i=t.showChildren,c=t.onChange,a=t.state,u=t.t,s=(f=Q(B(a),2))[0],l=f[1],f=(t=Q(B(""),2))[0],p=t[1];return z((function(){p(r.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),[r]),z((function(){l(a)}),[a]),(0,e.h)(e.Fragment,null,(0,e.h)("label",{for:f,className:"gdpr_switch ".concat(n)},(0,e.h)("input",{id:f,onChange:function(t){t.preventDefault(),c(!s)},checked:s,type:"checkbox"}),(0,e.h)("span",{className:"gdpr_switch","aria-label":"".concat(u(!1===s?"activate":"deactivate")," ").concat(r),role:"switch","aria-checked":s},(0,e.h)("span",{className:"gdpr_shadow"})),(0,e.h)("span",{className:"gdpr_children ".concat(!0===s?"switch_activated":"","\n ").concat(!1===i?"gdpr_text_switch":"")},o)))},v.defaultProps={onChange:function(){return!0},showChildren:!0,className:"",state:!1,name:""};var Z=v;v=function(t){var n=t.onChange,r=t.t,o=t.status,i=t.showChildren;return t=t.name,(0,e.h)("div",{class:"gdpr_element-action"},(0,e.h)(Z,{showChildren:i,name:t,state:o,onChange:function(t){n(t)},t:r,className:""},r(!1===o?"service_blocked":"service_activated")))},v.defaultProps={onChange:function(){return!0},showDisable:!0,showChildren:!0,name:""},v=v;var tt=(0,o.$j)(null,u)(v),et=(v=function(t){var n=t.t,r=t.service,o=t.toggleServiceByName,i=r.name;return t=r.description,r=r.state,(0,e.h)("div",{className:"gdpr_list_element ".concat(!0===r?"gdpr_list_element-activate":"gdpr_list_element-disabled")},(0,e.h)("div",{className:"gdpr_list_element-title"},(0,e.h)("strong",null,i),(0,e.h)(tt,{name:i,status:r,showChildren:!1,onChange:function(t){return o({name:i,state:t})},t:n})),t?(0,e.h)("div",{className:"gdpr_list_element-desc"},(0,e.h)("p",null,t)):null)},(0,o.$j)((function(t){return{showModal:t.showModal,listService:t.listService}}),u)(v));function nt(t){var r,i,c,u=t||window._gdpr_lang||"en";(t=function(){var t=document.getElementById("gdpr-cookie");if(t)return t;var e=document.createElement("div");return e.id="gdpr-cookie",(t=document.body)?(t.appendChild(e),e):null}())&&(u=function(t,e,r){!1===(t=(j=void 0===j?new T(t):j).isFirstVisit())&&j.toggleService(),r={gdpr:j,showModal:!1,showBanner:t,locale:e,messages:r,prevListService:j.getListServices(),listService:j.getListServices(),isFirstVisit:t};var o=s()(r);return!0===t&&function(t){function e(){!0===t.getState().isFirstVisit&&(n.toggleService(),n.updateCookie(),t.setState({showModal:!1,showBanner:!1,isFirstVisit:!1})),r.forEach((function(t){t.removeEventListener("click",e)}))}var n=t.getState().gdpr,r=[],o=document.getElementsByTagName("a"),i=document.getElementsByTagName("button");o=o?Array.from(o):[],i=i?Array.from(i):[],[].concat(a(o),a(i)).forEach((function(t){t.addEventListener("click",e),r.push(t)}))}(o),n.g._gdpr_showModal=function(){o.setState({showModal:!0})},o}(st,u,lt),(0,e.render)((0,e.h)(o.zt,{store:u},(0,e.h)(at,null)),t),r=u,t=document.getElementsByClassName("gdpr-mask"),t=Array.from(t),u=r.getState(),i=u.listService,c=u.isFirstVisit,t.forEach((function(t){var n,a;void 0!==t&&(n=t.dataset.gdpr,!(a=i.find((function(t){return t.name===n})))||!1!==a.state&&!0!==c||(0,e.render)((0,e.h)(o.zt,{store:r},(0,e.h)(ut,{service:a})),t))})))}v=function(t){function n(t){i&&i(t)}var r=t.status,o=t.t,i=t.onChange;return t=t.showDisable,(0,e.h)("div",{class:"gdpr_element-action"},!0===t?(0,e.h)(Y,{onClick:function(t){t.preventDefault(),n(!1)},className:"gdpr_btn-round ".concat(!1===r?"gdpr_btn-error":"gdpr_btn-default"),"aria-label":o("service_bloc_all")},o("service_bloc_all")):"",(0,e.h)(Y,{onClick:function(t){t.preventDefault(),n(!0)},className:"gdpr_btn-round ".concat(!0===r?"gdpr_btn-success":"gdpr_btn-default"),"aria-label":o("service_accept_all")},o("service_accept_all")))},v.defaultProps={onChange:function(){return!0},showDisable:!0},v=v;var rt=(0,o.$j)(null,u)(v),ot=(v=n(1733),n.n(v)),it=(v=n(338),n.n(v)),ct=(v=function(t){var n,r=t.toggleModal,o=t.listService,i=t.t,c=t.saveStateInGdpr,a=t.showModal,u=t.toggleAllService,s=H(null),l=H(null);return t=function(t){t.preventDefault(),r(!1),c()},U((function(){var t,e;s.current&&l.current&&(t=s.current.querySelector("button"),e=l.current.querySelector("button"),t.focus(),e.addEventListener("keydown",(function(e){if("Tab"===e.code)return t.focus(),e.preventDefault()})))}),[]),!1===a?null:(0,e.h)("div",{role:"dialog","aria-label":i("modal_header_txt"),"aria-modal":"true",className:"gdpr_modal"},(0,e.h)("div",{className:"gdpr_modal_content"},(0,e.h)("div",{className:"gdpr_modal_head"},(0,e.h)("div",{className:"gdpr_modal_head-content"},(0,e.h)("header",{ref:s},(0,e.h)("strong",{id:"gm_modal_title"},i("modal_header_txt")),(0,e.h)(Y,{"aria-label":i("close_modale_label"),className:"",onClick:t},(0,e.h)(ot(),{width:"20px",height:"20px",alt:""})))),(0,e.h)("div",{className:"gdpr_modal_button-all"},(0,e.h)(rt,{t:i,onChange:function(t){return u(t)}}))),(0,e.h)("div",{className:"gdpr_modal_list-content"},(n="",o.map((function(t){var r=[];return t.type!==n&&r.push((0,e.h)("div",{key:t.type,class:"gdpr_modal_list-head"},(0,e.h)("div",{className:"gdpr_modal_list-head-text"},(0,e.h)(it(),{width:"24px",height:"24px"}),i(t.type)))),r.push((0,e.h)(et,{key:t.name,t:i,service:t})),n=t.type,r})))),(0,e.h)("div",{ref:l,className:"gdpr_modal_action"},(0,e.h)(Y,{"aria-label":i("modal_valid"),className:"gdpr_btn-success",onClick:t},i("modal_valid")))))},(0,o.$j)((function(t){return{showModal:t.showModal,listService:t.listService}}),u)(v)),at=(0,o.$j)((function(t){return{locale:t.locale,messages:t.messages}}),u)((function(t){var n=t.messages,r=t.locale;return t=function(t){return void 0!==n&&void 0!==r&&void 0!==n[r]&&n[r][t]||t},(0,e.h)("div",null,(0,e.h)(ct,{t:t}),(0,e.h)(X,{t:t}))})),ut=(v=function(t){var n=t.messages,r=t.locale,o=t.service,i=t.listService,c=t.isFirstVisit,a=t.toggleServiceByName,u=t.toggleModal,s=t.toggleBanner,l=t.saveStateInGdpr,f=(t=function(t){return void 0!==n&&void 0!==r&&void 0!==n[r]&&n[r][t]||t},o.name);return i=i.find((function(t){return t.name===f})),!i||!0===i.state&&!1===c?null:(0,e.h)("div",{className:"gdpr_mask-content"},(0,e.h)("div",{className:"gdpr_mask-desc"},t("mask_text_start")," ".concat(f," "),t("mask_text_end")),(0,e.h)("div",{className:"gdpr_mask-action"},(0,e.h)(Y,{onClick:function(t){t.preventDefault(),a({name:f,state:!0}),l(),!0===c&&(u(!1),s(!1))},className:"gdpr_btn-round gdpr_btn-success"},t("service_accept"))))},(0,o.$j)((function(t){return{showModal:t.showModal,isFirstVisit:t.isFirstVisit,listService:t.listService,messages:t.messages,locale:t.locale}}),u)(v)),st=window._gdpr_options||{},lt=window._gdpr_messages||{en:{banner_title:"Information on the use of cookies on the site",alert_text:"If you continue to browse this website, you are allowing all third-party services",banner_ok_bt:"Ok, accept everything",banner_custom_bt:"Personalize cookies",modal_header_txt:"Preference for all services",close_modale_label:"Close modal",service_accept:"Allow",service_accept_all:"Allow all",service_bloc_all:"Refuse all",service_activated:"Activated",service_blocked:"Blocked",modal_valid:"Apply",ads:"Advertising",stats:"Statistics",others:"Other services",mask_text_start:"The service",mask_text_end:"is disabled",activate:"activate",deactivate:"deactivate"},fr:{banner_title:"Information sur l'utilisation de cookies sur le site",alert_text:"En poursuivant votre navigation, vous acceptez l'utilisation de services tiers pouvant installer des cookies",banner_ok_bt:"Ok, tout accepter",banner_custom_bt:"Personnaliser les cookies",modal_header_txt:"Préférence pour tous les services",close_modale_label:"Fermer la fenêtre",service_accept:"Activer",service_accept_all:"Activer tous les services",service_bloc_all:"Bloquer tous les services",service_activated:"Service activé",service_blocked:"Service bloqué",modal_valid:"Appliquer les reglages",ads:"Publicités",stats:"Statistiques",others:"Autres services",mask_text_start:"Le service",mask_text_end:"est désactivé",activate:"activer",deactivate:"désactiver"},es:{banner_title:"Información sobre la utilización de cookies en el sitio",alert_text:"Si continúa navegando en este sitio web, está permitiendo todos los servicios de terceros.",banner_ok_bt:"Ok acepta todo",banner_custom_bt:"Personalizar",modal_header_txt:"Preferencia por todos los servicios.",close_modale_label:"Close modal",service_accept:"Permitir",service_accept_all:"Permitir todo",service_bloc_all:"Bloquear todo",modal_valid:"Aplicar",ads:"Anuncios",stats:"Estadística",others:"Otros servicios",mask_text_start:"El servicio",mask_text_end:"esta deshabilitado",activate:"activar",deactivate:"desactivar"},de_formal:{banner_title:"Informationen zur Verwendung von Cookies auf der Website",alert_text:"Wenn Sie weiter auf der Seite surfen, stimmen Sie der Nutzung aller Drittanbieter-Cookies zu.",banner_ok_bt:"Ok, alles akzeptieren",banner_custom_bt:"Einstellen",modal_header_txt:"Einstellungen für alle Services",close_modale_label:"Close modal",service_accept:"Akzeptieren",service_accept_all:"Alle akzeptieren",service_bloc_all:"Alle löschen",service_activated:"aktiv",service_blocked:"blockiert",modal_valid:"speichern",ads:"Werbung",stats:"Statistik",others:"Andere Services",mask_text_start:"Der Service",mask_text_end:"ist blockiert.",activate:"aktiviere",deactivate:"deaktivieren"},de:{banner_title:"Informationen zur Verwendung von Cookies auf der Website",alert_text:"Wenn du weiter auf der Seite surfst, stimmst du der Nutzung aller Drittanbieter-Cookies zu.",banner_ok_bt:"Ok, alles akzeptieren",banner_custom_bt:"Einstellen",modal_header_txt:"Einstellungen für alle Services",close_modale_label:"Close modal",service_accept:"Akzeptieren",service_accept_all:"Alle akzeptieren",service_bloc_all:"Alle löschen",service_activated:"aktiv",service_blocked:"blockiert",modal_valid:"speichern",ads:"Werbung",stats:"Statistik",others:"Andere Services",mask_text_start:"Der Service",mask_text_end:"ist blockiert.",activate:"aktiviere",deactivate:"deaktivieren"}},ft=nt;window.initGdprCookie=nt,window.changeLangGdpr=function(t){var e=document.getElementById("gdpr-cookie");e&&(e.innerHTML=""),nt(t)}}(),r})); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.initGdprCookie=e():t.initGdprCookie=e()}(self,(function(){var t={4746:function(t){t.exports=function(t,e,n){var r=e.content,o=e.attributes;return function(e){return t("svg",Object.assign({dangerouslySetInnerHTML:{__html:r}},o,e),e&&e.children)}}},1277:function(t,e,n){var r=n(4746);n=n(6400).h,t.exports=r.bind(null,n)},4794:function(t,e,n){n(9826),n=n(2649),t.exports=n("Array","find")},4370:function(t,e,n){n(8783),n(1038),n=n(857),t.exports=n.Array.from},3662:function(t,e,n){n(6992),n(1532),n(1539),n(8783),n=n(857),t.exports=n.Map},9116:function(t,e,n){n(9601),n=n(857),t.exports=n.Object.assign},8188:function(t,e,n){n(6992),n(1539),n(189),n(8783),n=n(857),t.exports=n.Set},9266:function(t,e,n){n(2222),n(1539),n(2526),n(2443),n(1817),n(2401),n(8722),n(2165),n(9007),n(6066),n(3510),n(1840),n(6982),n(2159),n(6649),n(9341),n(543),n(3706),n(408),n(1299),n=n(857),t.exports=n.Symbol},9662:function(t,e,n){var r=n(614),o=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(o(t)+" is not a function")}},6077:function(t,e,n){var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=(n=n(3070),r("unscopables")),c=Array.prototype;null==c[i]&&n.f(c,i,{configurable:!0,value:o(null)}),t.exports=function(t){c[i][t]=!0}},5787:function(t){t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8457:function(t,e,n){"use strict";var r=n(9974),o=n(7908),i=n(3411),c=n(7659),a=n(4411),u=n(7466),s=n(6135),l=n(8554),f=n(1246);t.exports=function(t){var e=o(t),n=a(this),p=1<(t=arguments.length)?arguments[1]:void 0,d=void 0!==p;d&&(p=r(p,2"+t+""},_=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t;_="undefined"==typeof document||document.domain&&o?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(o):((t=l("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(t=t.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var e=a.length;e--;)delete _[f][a[e]];return _()};u[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[f]=i(t),n=new r,r[f]=null,n[d]=t):n=_(),void 0===e?n:c(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3070),i=n(9670),c=n(1956);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),a=r.length,u=0;uu;)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){return!!(t=r(this,t))&&t.enumerable}:n},7674:function(t,e,n){var r=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(n){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(614),o=n(111);t.exports=function(t,e){var n,i;if("string"===e&&r(n=t.toString)&&!o(i=n.call(t)))return i;if(r(n=t.valueOf)&&!o(i=n.call(t)))return i;if("string"!==e&&r(n=t.toString)&&!o(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(8006),i=n(5181),c=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},857:function(t,e,n){n=n(7854),t.exports=n},2248:function(t,e,n){var r=n(1320);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},1320:function(t,e,n){var r=n(7854),o=n(614),i=n(6656),c=n(8880),a=n(3505),u=n(2788),s=n(9909),l=n(6530).CONFIGURABLE,f=s.get,p=s.enforce,d=String(String).split("String");(t.exports=function(t,e,n,u){var s=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,v=!!u&&!!u.noTargetGet,_=u&&void 0!==u.name?u.name:e;o(n)&&("Symbol("===String(_).slice(0,7)&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||l&&n.name!==_)&&c(n,"name",_),(u=p(n)).source||(u.source=d.join("string"==typeof _?_:""))),t!==r?(s?!v&&t[e]&&(f=!0):delete t[e],f?t[e]=n:c(t,e,n)):f?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||u(this)}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:function(t,e,n){"use strict";var r=n(5005),o=n(3070),i=n(5112),c=n(9781),a=i("species");t.exports=function(t){var e=r(t);t=o.f,c&&e&&!e[a]&&t(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,n){var r=n(3070).f,o=n(6656),i=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505);n=r[n="__core-js_shared__"]||o(n,{}),t.exports=n},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8710:function(t,e,n){var r=n(9958),o=n(1340),i=n(4488);n=function(t){return function(e,n){var c,a=o(i(e)),u=r(n);return e=a.length,u<0||e<=u?t?"":void 0:(n=a.charCodeAt(u))<55296||56319=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},3706:function(t,e,n){var r=n(7854);n(8003)(r.JSON,"JSON",!0)},1532:function(t,e,n){"use strict";var r=n(7710);n=n(5631),t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n)},408:function(t,e,n){n(8003)(Math,"Math",!0)},9601:function(t,e,n){var r=n(2109);n=n(1574),r({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},1539:function(t,e,n){var r=n(1694),o=n(1320);n=n(288),r||o(Object.prototype,"toString",n,{unsafe:!0})},1299:function(t,e,n){var r=n(2109),o=n(7854);n=n(8003),r({global:!0},{Reflect:{}}),n(o.Reflect,"Reflect",!0)},189:function(t,e,n){"use strict";var r=n(7710);n=n(5631),t.exports=r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n)},8783:function(t,e,n){"use strict";var r=n(8710).charAt,o=n(1340),i=n(9909),c=(n=n(654),"String Iterator"),a=i.set,u=i.getterFor(c);n(String,"String",(function(t){a(this,{type:c,string:o(t),index:0})}),(function(){var t=u(this),e=t.string,n=t.index;return n>=e.length?{value:void 0,done:!0}:(n=r(e,n),t.index+=n.length,{value:n,done:!1})}))},2443:function(t,e,n){n(7235)("asyncIterator")},1817:function(t,e,n){"use strict";var r,o,i,c,a,u=n(2109),s=n(9781),l=n(7854),f=n(6656),p=n(614),d=n(111),v=n(3070).f,_=(n=n(9920),l.Symbol);!s||!p(_)||"description"in _.prototype&&void 0===_().description||(r={},n(o=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof o?new _(t):void 0===t?_():_(t);return""===t&&(r[e]=!0),e},_),(n=o.prototype=_.prototype).constructor=o,i=n.toString,c="Symbol(test)"==String(_("test")),a=/^Symbol\((.*)\)[^)]+$/,v(n,"description",{configurable:!0,get:function(){var t=d(this)?this.valueOf():this,e=i.call(t);return f(r,t)?"":""===(e=c?e.slice(7,-1):e.replace(a,"$1"))?void 0:e}}),u({global:!0,forced:!0},{Symbol:o}))},2401:function(t,e,n){n(7235)("hasInstance")},8722:function(t,e,n){n(7235)("isConcatSpreadable")},2165:function(t,e,n){n(7235)("iterator")},2526:function(t,e,n){"use strict";function r(t,e){var n=et[t]=w(K[V]);return $(n,{type:W,tag:t,description:e}),l||(n.description=e),n}function o(t,e){m(t);var n=b(e);return e=O(n).concat(st(n)),U(e,(function(e){l&&!ut.call(n,e)||at(t,e,n[e])})),t}var i,c=n(2109),a=n(7854),u=n(5005),s=n(1913),l=n(9781),f=n(133),p=n(7293),d=n(6656),v=n(3157),_=n(614),h=n(111),y=n(2190),m=n(9670),g=n(7908),b=n(5656),x=n(4948),S=n(1340),k=n(9114),w=n(30),O=n(1956),A=n(8006),j=n(1156),E=n(5181),C=n(1236),P=n(3070),T=n(5296),N=n(1320),M=n(2309),I=n(6200),L=n(3501),F=n(9711),D=n(5112),R=n(6061),G=n(7235),B=n(8003),z=n(9909),U=n(2092).forEach,H=I("hidden"),W="Symbol",V="prototype",$=(I=D("toPrimitive"),z.set),q=z.getterFor(W),J=Object[V],K=a.Symbol,Y=u("JSON","stringify"),X=C.f,Q=P.f,Z=j.f,tt=T.f,et=M("symbols"),nt=M("op-symbols"),rt=M("string-to-symbol-registry"),ot=M("symbol-to-string-registry"),it=(u=M("wks"),!(M=a.QObject)||!M[V]||!M[V].findChild),ct=l&&p((function(){return 7!=w(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(J,e);r&&delete J[e],Q(t,e,n),r&&t!==J&&Q(J,e,r)}:Q,at=function(t,e,n){return t===J&&at(nt,e,n),m(t),e=x(e),m(n),d(et,e)?(n.enumerable?(d(t,H)&&t[H][e]&&(t[H][e]=!1),n=w(n,{enumerable:k(0,!1)})):(d(t,H)||Q(t,H,k(1,{})),t[H][e]=!0),ct(t,e,n)):Q(t,e,n)},ut=function(t){var e=x(t);return t=tt.call(this,e),!(this===J&&d(et,e)&&!d(nt,e))&&(!(t||!d(this,e)||!d(et,e)||d(this,H)&&this[H][e])||t)},st=(a=function(t,e){var n=b(t);if(t=x(e),n!==J||!d(et,t)||d(nt,t))return!(e=X(n,t))||!d(et,t)||d(n,H)&&n[H][t]||(e.enumerable=!0),e},M=function(t){t=Z(b(t));var e=[];return U(t,(function(t){d(et,t)||d(L,t)||e.push(t)})),e},function(t){var e=t===J,n=(t=Z(e?nt:b(t)),[]);return U(t,(function(t){!d(et,t)||e&&!d(J,t)||n.push(et[t])})),n});f||(N((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=F(t),n=function(t){this===J&&n.call(nt,t),d(this,H)&&d(this[H],e)&&(this[H][e]=!1),ct(this,e,k(1,t))};return l&&it&&ct(J,e,{configurable:!0,set:n}),r(e,t)})[V],"toString",(function(){return q(this).tag})),N(K,"withoutSetter",(function(t){return r(F(t),t)})),T.f=ut,P.f=at,C.f=a,A.f=j.f=M,E.f=st,R.f=function(t){return r(D(t),t)},l&&(Q(K[V],"description",{configurable:!0,get:function(){return q(this).description}}),s||N(J,"propertyIsEnumerable",ut,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),U(O(u),(function(t){G(t)})),c({target:W,stat:!0,forced:!f},{for:function(t){var e=S(t);return d(rt,e)?rt[e]:(t=K(e),rt[e]=t,ot[t]=e,t)},keyFor:function(t){if(!y(t))throw TypeError(t+" is not a symbol");if(d(ot,t))return ot[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),c({target:"Object",stat:!0,forced:!f,sham:!l},{create:function(t,e){return void 0===e?w(t):o(w(t),e)},defineProperty:at,defineProperties:o,getOwnPropertyDescriptor:a}),c({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:M,getOwnPropertySymbols:st}),c({target:"Object",stat:!0,forced:p((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(g(t))}}),Y&&c({target:"JSON",stat:!0,forced:!f||p((function(){var t=K();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;i'},n=n(1277),t.exports=n(t.exports)},1733:function(t,e,n){t.exports={attributes:{xmlns:"http://www.w3.org/2000/svg","aria-label":"",alt:"","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 100",style:"enable-background:new 0 0 100 100;","xml:space":"preserve"},content:''},n=n(1277),t.exports=n(t.exports)},6400:function(t,e,n){"use strict";n.r(e),n.d(e,{render:function(){return L},hydrate:function(){return F},createElement:function(){return h},h:function(){return h},Fragment:function(){return g},createRef:function(){return m},isValidElement:function(){return c},Component:function(){return b},cloneElement:function(){return D},createContext:function(){return R},toChildArray:function(){return O},options:function(){return o}});var r,o,i,c,a,u,s,l,f={},p=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function v(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,c,a={};for(c in e)"key"==c?o=e[c]:"ref"==c?i=e[c]:a[c]=e[c];if(2t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);ne.type?1:0}))}},{key:"updateServiceByName",value:function(t,e){this.activated.has(t)&&"boolean"==typeof e&&this.activated.set(t,e)}},{key:"updateServiceByType",value:function(t,e){var n=this;this.globalGdpr.forEach((function(r){r=(o=r[0]).name;var o=o.type;t===o&&"boolean"==typeof e&&n.activated.set(r,e)}))}},{key:"toggleService",value:function(t){var e,n=this,r=1=(n=C.__H||(C.__H={__:[],__h:[]})).__.length&&n.__.push({}),n.__[t]}function B(t){return N=1,e=K,t=t,(n=G(E++,2)).t=e,n.__c||(n.__=[K(void 0,t),function(t){t=n.t(n.__[0],t),n.__[0]!==t&&(n.__=[t,n.__[1]],n.__c.setState({}))}],n.__c=C),n.__;var e,n}function z(t,n){var r=G(E++,3);!e.options.__s&&J(r.__H,n)&&(r.__=t,r.__H=n,C.__H.__h.push(r))}function U(t,n){var r=G(E++,4);!e.options.__s&&J(r.__H,n)&&(r.__=t,r.__H=n,C.__h.push(r))}function H(t){return N=5,function(t,e){var n=G(E++,7);return J(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}((function(){return{current:t}}),[])}function W(){M.forEach((function(t){if(t.__P)try{t.__H.__h.forEach($),t.__H.__h.forEach(q),t.__H.__h=[]}catch(n){t.__H.__h=[],e.options.__e(n,t.__v)}})),M=[]}e.options.__b=function(t){C=null,I&&I(t)},e.options.__r=function(t){L&&L(t),E=0,(t=(C=t.__c).__H)&&(t.__h.forEach($),t.__h.forEach(q),t.__h=[])},e.options.diffed=function(t){F&&F(t),(t=t.__c)&&t.__H&&t.__H.__h.length&&(1!==M.push(t)&&P===e.options.requestAnimationFrame||((P=e.options.requestAnimationFrame)||function(t){function e(){clearTimeout(r),V&&cancelAnimationFrame(n),setTimeout(t)}var n,r=setTimeout(e,100);V&&(n=requestAnimationFrame(e))})(W)),C=void 0},e.options.__c=function(t,n){n.some((function(t){try{t.__h.forEach($),t.__h=t.__h.filter((function(t){return!t.__||q(t)}))}catch(r){n.some((function(t){t.__h&&(t.__h=[])})),n=[],e.options.__e(r,t.__v)}})),D&&D(t,n)},e.options.unmount=function(t){R&&R(t);var n=t.__c;if(n&&n.__H)try{n.__H.__.forEach($)}catch(t){e.options.__e(t,n.__v)}};var V="function"==typeof requestAnimationFrame;function $(t){var e=C;"function"==typeof t.__c&&t.__c(),C=e}function q(t){var e=C;t.__c=t.__(),C=e}function J(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function K(t,e){return"function"==typeof e?e(t):e}v=function(t){var n=t.className,r=t.onClick,o=t.children;return(0,e.h)("button",{"aria-label":t["aria-label"]||null,className:"gdpr_btn ".concat(n),onClick:r},o)},v.defaultProps={onClick:function(){return!0},className:"","aria-label":null};var Y=v,X=(v=function(t){var n=t.t,r=t.toggleModal,o=t.toggleBanner,i=t.showBanner,c=t.saveStateInGdpr,a=H(null);return U((function(){var t,e;a.current&&(t=a.current.children[0],e=a.current.children[1],t.focus(),e.addEventListener("keydown",(function(e){if("Tab"===e.code)return t.focus(),e.preventDefault()})))}),[]),!1===i?null:(0,e.h)("div",{role:"alertdialog","aria-modal":"true","aria-label":n("banner_title"),"aria-describedby":"gdpr_text",className:"gdpr_banner"},(0,e.h)("div",{className:"gdpr_banner-content",role:"document"},(0,e.h)("div",{id:"gdpr_text",className:"gdpr_banner-text"},n("alert_text")),(0,e.h)("div",{className:"gdpr_banner-actions",ref:a},(0,e.h)(Y,{className:"gdpr_btn-success",onClick:function(t){t.preventDefault(),o(!1),r(!1),c()},"aria-label":n("banner_ok_bt")},n("banner_ok_bt")),(0,e.h)(Y,{className:"gdpr_btn-default",onClick:function(t){t.preventDefault(),r(!0),o(!1)},"aria-label":n("banner_custom_bt")},n("banner_custom_bt")))))},(0,o.$j)((function(t){return{showBanner:t.showBanner}}),u)(v));function Q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}v=function(t){var n=t.className,r=t.name,o=t.children,i=t.showChildren,c=t.onChange,a=t.state,u=t.t,s=(f=Q(B(a),2))[0],l=f[1],f=(t=Q(B(""),2))[0],p=t[1];return z((function(){p(r.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""))}),[r]),z((function(){l(a)}),[a]),(0,e.h)(e.Fragment,null,(0,e.h)("label",{for:f,className:"gdpr_switch ".concat(n)},(0,e.h)("input",{id:f,onChange:function(t){t.preventDefault(),c(!s)},checked:s,type:"checkbox"}),(0,e.h)("span",{className:"gdpr_switch","aria-label":"".concat(u(!1===s?"activate":"deactivate")," ").concat(r),role:"switch","aria-checked":s},(0,e.h)("span",{className:"gdpr_shadow"})),(0,e.h)("span",{className:"gdpr_children ".concat(!0===s?"switch_activated":"","\n ").concat(!1===i?"gdpr_text_switch":"")},o)))},v.defaultProps={onChange:function(){return!0},showChildren:!0,className:"",state:!1,name:""};var Z=v;v=function(t){var n=t.onChange,r=t.t,o=t.status,i=t.showChildren;return t=t.name,(0,e.h)("div",{class:"gdpr_element-action"},(0,e.h)(Z,{showChildren:i,name:t,state:o,onChange:function(t){n(t)},t:r,className:""},r(!1===o?"service_blocked":"service_activated")))},v.defaultProps={onChange:function(){return!0},showDisable:!0,showChildren:!0,name:""},v=v;var tt=(0,o.$j)(null,u)(v),et=(v=function(t){var n=t.t,r=t.service,o=t.toggleServiceByName,i=r.name;return t=r.description,r=r.state,(0,e.h)("div",{className:"gdpr_list_element ".concat(!0===r?"gdpr_list_element-activate":"gdpr_list_element-disabled")},(0,e.h)("div",{className:"gdpr_list_element-title"},(0,e.h)("strong",null,i),(0,e.h)(tt,{name:i,status:r,showChildren:!1,onChange:function(t){return o({name:i,state:t})},t:n})),t?(0,e.h)("div",{className:"gdpr_list_element-desc"},(0,e.h)("p",null,t)):null)},(0,o.$j)((function(t){return{showModal:t.showModal,listService:t.listService}}),u)(v));function nt(t){var r,i,c,u=t||window._gdpr_lang||"en";(t=function(){var t=document.getElementById("gdpr-cookie");if(t)return t;var e=document.createElement("div");return e.id="gdpr-cookie",(t=document.body)?(t.appendChild(e),e):null}())&&(u=function(t,e,r){var o=(j=void 0===j?new T(t):j).isFirstVisit();!1===o&&j.toggleService(),!0===o&&!0===t.optout&&(j.toggleService(),j.updateCookie()),t={gdpr:j,showModal:!1,showBanner:o,locale:e,messages:r,prevListService:j.getListServices(),listService:j.getListServices(),isFirstVisit:o,optout:t.optout||!1};var i=s()(t);return!0===o&&function(t){function e(){!0===t.getState().isFirstVisit&&(n.toggleService(),n.updateCookie(),t.setState({showModal:!1,showBanner:!1,isFirstVisit:!1})),r.forEach((function(t){t.removeEventListener("click",e)}))}var n=t.getState().gdpr,r=[],o=document.getElementsByTagName("a"),i=document.getElementsByTagName("button");o=o?Array.from(o):[],i=i?Array.from(i):[],[].concat(a(o),a(i)).forEach((function(t){t.addEventListener("click",e),r.push(t)}))}(i),n.g._gdpr_showModal=function(){i.setState({showModal:!0})},i}(st,u,lt),(0,e.render)((0,e.h)(o.zt,{store:u},(0,e.h)(at,null)),t),r=u,t=document.getElementsByClassName("gdpr-mask"),t=Array.from(t),u=r.getState(),i=u.listService,c=u.isFirstVisit,t.forEach((function(t){var n,a;void 0!==t&&(n=t.dataset.gdpr,!(a=i.find((function(t){return t.name===n})))||!1!==a.state&&!0!==c||(0,e.render)((0,e.h)(o.zt,{store:r},(0,e.h)(ut,{service:a})),t))})))}v=function(t){function n(t){i&&i(t)}var r=t.status,o=t.t,i=t.onChange;return t=t.showDisable,(0,e.h)("div",{class:"gdpr_element-action"},!0===t?(0,e.h)(Y,{onClick:function(t){t.preventDefault(),n(!1)},className:"gdpr_btn-round ".concat(!1===r?"gdpr_btn-error":"gdpr_btn-default"),"aria-label":o("service_bloc_all")},o("service_bloc_all")):"",(0,e.h)(Y,{onClick:function(t){t.preventDefault(),n(!0)},className:"gdpr_btn-round ".concat(!0===r?"gdpr_btn-success":"gdpr_btn-default"),"aria-label":o("service_accept_all")},o("service_accept_all")))},v.defaultProps={onChange:function(){return!0},showDisable:!0},v=v;var rt=(0,o.$j)(null,u)(v),ot=(v=n(1733),n.n(v)),it=(v=n(338),n.n(v)),ct=(v=function(t){var n,r=t.toggleModal,o=t.listService,i=t.t,c=t.saveStateInGdpr,a=t.showModal,u=t.toggleAllService,s=H(null),l=H(null);return t=function(t){t.preventDefault(),r(!1),c()},U((function(){var t,e;s.current&&l.current&&(t=s.current.querySelector("button"),e=l.current.querySelector("button"),t.focus(),e.addEventListener("keydown",(function(e){if("Tab"===e.code)return t.focus(),e.preventDefault()})))}),[]),!1===a?null:(0,e.h)("div",{role:"dialog","aria-label":i("modal_header_txt"),"aria-modal":"true",className:"gdpr_modal"},(0,e.h)("div",{className:"gdpr_modal_content"},(0,e.h)("div",{className:"gdpr_modal_head"},(0,e.h)("div",{className:"gdpr_modal_head-content"},(0,e.h)("header",{ref:s},(0,e.h)("strong",{id:"gm_modal_title"},i("modal_header_txt")),(0,e.h)(Y,{"aria-label":i("close_modale_label"),className:"",onClick:t},(0,e.h)(ot(),{width:"20px",height:"20px",alt:""})))),(0,e.h)("div",{className:"gdpr_modal_button-all"},(0,e.h)(rt,{t:i,onChange:function(t){return u(t)}}))),(0,e.h)("div",{className:"gdpr_modal_list-content"},(n="",o.map((function(t){var r=[];return t.type!==n&&r.push((0,e.h)("div",{key:t.type,class:"gdpr_modal_list-head"},(0,e.h)("div",{className:"gdpr_modal_list-head-text"},(0,e.h)(it(),{width:"24px",height:"24px"}),i(t.type)))),r.push((0,e.h)(et,{key:t.name,t:i,service:t})),n=t.type,r})))),(0,e.h)("div",{ref:l,className:"gdpr_modal_action"},(0,e.h)(Y,{"aria-label":i("modal_valid"),className:"gdpr_btn-success",onClick:t},i("modal_valid")))))},(0,o.$j)((function(t){return{showModal:t.showModal,listService:t.listService}}),u)(v)),at=(0,o.$j)((function(t){return{locale:t.locale,messages:t.messages}}),u)((function(t){var n=t.messages,r=t.locale;return t=function(t){return void 0!==n&&void 0!==r&&void 0!==n[r]&&n[r][t]||t},(0,e.h)("div",null,(0,e.h)(ct,{t:t}),(0,e.h)(X,{t:t}))})),ut=(v=function(t){var n=t.messages,r=t.locale,o=t.service,i=t.listService,c=t.isFirstVisit,a=t.toggleServiceByName,u=t.toggleModal,s=t.toggleBanner,l=t.saveStateInGdpr,f=(t=function(t){return void 0!==n&&void 0!==r&&void 0!==n[r]&&n[r][t]||t},o.name);return i=i.find((function(t){return t.name===f})),!i||!0===i.state&&!1===c?null:(0,e.h)("div",{className:"gdpr_mask-content"},(0,e.h)("div",{className:"gdpr_mask-desc"},t("mask_text_start")," ".concat(f," "),t("mask_text_end")),(0,e.h)("div",{className:"gdpr_mask-action"},(0,e.h)(Y,{onClick:function(t){t.preventDefault(),a({name:f,state:!0}),l(),!0===c&&(u(!1),s(!1))},className:"gdpr_btn-round gdpr_btn-success"},t("service_accept"))))},(0,o.$j)((function(t){return{showModal:t.showModal,isFirstVisit:t.isFirstVisit,listService:t.listService,messages:t.messages,locale:t.locale}}),u)(v)),st=window._gdpr_options||{},lt=window._gdpr_messages||{en:{banner_title:"Information on the use of cookies on the site",alert_text:"If you continue to browse this website, you are allowing all third-party services",banner_ok_bt:"Ok, accept everything",banner_custom_bt:"Personalize cookies",modal_header_txt:"Preference for all services",close_modale_label:"Close modal",service_accept:"Allow",service_accept_all:"Allow all",service_bloc_all:"Refuse all",service_activated:"Activated",service_blocked:"Blocked",modal_valid:"Apply",ads:"Advertising",stats:"Statistics",others:"Other services",mask_text_start:"The service",mask_text_end:"is disabled",activate:"activate",deactivate:"deactivate"},fr:{banner_title:"Information sur l'utilisation de cookies sur le site",alert_text:"En poursuivant votre navigation, vous acceptez l'utilisation de services tiers pouvant installer des cookies",banner_ok_bt:"Ok, tout accepter",banner_custom_bt:"Personnaliser les cookies",modal_header_txt:"Préférence pour tous les services",close_modale_label:"Fermer la fenêtre",service_accept:"Activer",service_accept_all:"Activer tous les services",service_bloc_all:"Bloquer tous les services",service_activated:"Service activé",service_blocked:"Service bloqué",modal_valid:"Appliquer les reglages",ads:"Publicités",stats:"Statistiques",others:"Autres services",mask_text_start:"Le service",mask_text_end:"est désactivé",activate:"activer",deactivate:"désactiver"},es:{banner_title:"Información sobre la utilización de cookies en el sitio",alert_text:"Si continúa navegando en este sitio web, está permitiendo todos los servicios de terceros.",banner_ok_bt:"Ok acepta todo",banner_custom_bt:"Personalizar",modal_header_txt:"Preferencia por todos los servicios.",close_modale_label:"Close modal",service_accept:"Permitir",service_accept_all:"Permitir todo",service_bloc_all:"Bloquear todo",modal_valid:"Aplicar",ads:"Anuncios",stats:"Estadística",others:"Otros servicios",mask_text_start:"El servicio",mask_text_end:"esta deshabilitado",activate:"activar",deactivate:"desactivar"},de_formal:{banner_title:"Informationen zur Verwendung von Cookies auf der Website",alert_text:"Wenn Sie weiter auf der Seite surfen, stimmen Sie der Nutzung aller Drittanbieter-Cookies zu.",banner_ok_bt:"Ok, alles akzeptieren",banner_custom_bt:"Einstellen",modal_header_txt:"Einstellungen für alle Services",close_modale_label:"Close modal",service_accept:"Akzeptieren",service_accept_all:"Alle akzeptieren",service_bloc_all:"Alle löschen",service_activated:"aktiv",service_blocked:"blockiert",modal_valid:"speichern",ads:"Werbung",stats:"Statistik",others:"Andere Services",mask_text_start:"Der Service",mask_text_end:"ist blockiert.",activate:"aktiviere",deactivate:"deaktivieren"},de:{banner_title:"Informationen zur Verwendung von Cookies auf der Website",alert_text:"Wenn du weiter auf der Seite surfst, stimmst du der Nutzung aller Drittanbieter-Cookies zu.",banner_ok_bt:"Ok, alles akzeptieren",banner_custom_bt:"Einstellen",modal_header_txt:"Einstellungen für alle Services",close_modale_label:"Close modal",service_accept:"Akzeptieren",service_accept_all:"Alle akzeptieren",service_bloc_all:"Alle löschen",service_activated:"aktiv",service_blocked:"blockiert",modal_valid:"speichern",ads:"Werbung",stats:"Statistik",others:"Andere Services",mask_text_start:"Der Service",mask_text_end:"ist blockiert.",activate:"aktiviere",deactivate:"deaktivieren"}},ft=nt;window.initGdprCookie=nt,window.changeLangGdpr=function(t){var e=document.getElementById("gdpr-cookie");e&&(e.innerHTML=""),nt(t)}}(),r})); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 5500a58..7cc474b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,132 +1,245 @@ -Document

Example for library Gdpr cookies 1.1.0 beta
https://github.com/ipatate/gdpr-cookies



Link



Vidéo FaceBook


Vidéo YouTube



Open modal cookies settings
\ No newline at end of file + src: 'https://www.youtube.com/embed/XqmDRRZjaeU', + width: '560', + height: '315', + frameborder: '0', + allowTransparency: 'true', + allow: + 'accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture', + allowFullScreen: 'true', + }); + });

Example for library Gdpr cookies 1.1.0 beta
https://github.com/ipatate/gdpr-cookies



Link



Vidéo FaceBook


Vidéo YouTube



Open modal cookies settings
\ No newline at end of file diff --git a/src/UI/Store/Actions.js b/src/UI/Store/Actions.js index e778e23..8b9cb5c 100644 --- a/src/UI/Store/Actions.js +++ b/src/UI/Store/Actions.js @@ -42,7 +42,7 @@ const actions = () => ({ return {listService}; }, saveStateInGdpr: (state: StoreType) => { - const {gdpr, listService, isFirstVisit, prevListService} = state; + const {gdpr, listService, isFirstVisit, prevListService, optout} = state; // update activated in gdpr class listService.forEach((value: Service) => { gdpr.updateServiceByName(value.name, value.state); @@ -54,7 +54,10 @@ const actions = () => ({ // if state pass to true to false in service => reload page for delete cookie const reload = reloadIsNeeded(prevListService, listService); // if fist visit, not reload because cookie not exist - if (reload === true && isFirstVisit === false) { + if ( + (reload === true && isFirstVisit === false) || + (isFirstVisit === true && optout === true) + ) { window.location.reload(); } else { gdpr.toggleService(prevListService, isFirstVisit); diff --git a/src/UI/Store/index.js b/src/UI/Store/index.js index cb19a9e..605829d 100644 --- a/src/UI/Store/index.js +++ b/src/UI/Store/index.js @@ -15,6 +15,14 @@ export default (options: ?OptionsGdpr, locale: string, messages: Object) => { gdpr.toggleService(); } + // if mode optout, install cookie before accept or refuse + if (isFirstVisit === true && options.optout === true) { + // active service allowed + gdpr.toggleService(); + // save cookie + gdpr.updateCookie(); + } + const initialState: StoreType = { gdpr, showModal: false, @@ -25,6 +33,7 @@ export default (options: ?OptionsGdpr, locale: string, messages: Object) => { prevListService: gdpr.getListServices(), listService: gdpr.getListServices(), isFirstVisit, + optout: options.optout || false, }; const store = createStore(initialState); diff --git a/src/index.html b/src/index.html index a4a17ca..224d418 100644 --- a/src/index.html +++ b/src/index.html @@ -1,173 +1,301 @@ - - - + + + Document - - - -
-

- Example for library Gdpr cookies 1.1.0 beta -
https://github.com/ipatate/gdpr-cookies -


-
- Link -
-
- -
-
-

Vidéo FaceBook

-
-
-

Vidéo YouTube

-
-
-
- Open modal cookies settings +

+ Example for library Gdpr cookies 1.1.0 beta +
https://github.com/ipatate/gdpr-cookies +

+
+
+ Link +
+
+ +
+
+

Vidéo FaceBook

+
+
+

Vidéo YouTube

+
+
+
+ Open modal cookies settings
- +