68publishers-cookie-consent
Advanced tools
Comparing version 0.3.2-beta.1 to 0.3.2-beta.2
@@ -1,1 +0,1 @@ | ||
var CookieConsentWrapper;(()=>{var e={10:(e,t,n)=>{"use strict";const o=n(336);e.exports=(new o).create()},868:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,o,i;return n=e,(o=[{key:"merge",value:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},2:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(406),r=n(3),a=n(570),s=n(990),c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginOptions=new i,this.consentModalOptions=new r,this.settingsModalOptions=new a,this.uiOptions=new s}var t,n,c;return t=e,(n=[{key:"exportCookieConsentConfig",value:function(){var e=this.pluginOptions.exportCookieConsentConfig();return e.gui_options={consent_modal:this.consentModalOptions.exportCookieConsentConfig(),settings_modal:this.settingsModalOptions.exportCookieConsentConfig()},e}}])&&o(t.prototype,n),c&&o(t,c),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=c},3:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}(c,e);var t,n,o,s=a(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this)).layout="box",e.position="bottom center",e.transition="zoom",e.primary_button_role="accept_all",e.secondary_button_role="settings",e.swap_buttons=!1,e}return t=c,(n=[{key:"exportCookieConsentConfig",value:function(){return{layout:this.layout,position:this.position,transition:this.transition,swap_buttons:this.swap_buttons}}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(868));e.exports=l},406:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=l.call(this)).autorun=!0,e.delay=0,e.cookie_name="cc-settings",e.cookie_expiration=182,e.cookie_path="/",e.cookie_domain=window.location.hostname,e.cookie_same_site="Lax",e.use_rfc_cookie=!1,e.force_consent=!1,e.revision=0,e.current_lang="en",e.auto_language="document",e.autoclear_cookies=!1,e.page_scripts=!1,e.script_selector="data-cookiecategory",e.remove_cookie_tables=!1,e.hide_from_bots=!1,e}return t=u,n=[{key:"exportCookieConsentConfig",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this)}}],n&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(n(868));e.exports=p},570:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=l.call(this)).layout="box",e.position=void 0,e.transition="zoom",e}return t=u,n=[{key:"exportCookieConsentConfig",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this)}}],n&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(n(868));e.exports=p},990:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}(c,e);var t,n,o,s=a(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this)).include_default_stylesheets=!0,e.external_stylesheets=[],e.internal_stylesheets=[],e.modal_trigger_selector=null,e}return t=c,(n=[{key:"defaultStylesheets",get:function(){return!0===this.include_default_stylesheets?["https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.1/dist/cookieconsent.css"]:[]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(868));e.exports=l},857:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(t,n,o,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cookieConsent=t,this._storagePool=n,this._eventTriggers=o,this._gtag=i}var n,o,i;return n=e,(o=[{key:"onAccept",value:function(){this._updateConsent()}},{key:"onChange",value:function(){this._updateConsent()}},{key:"_updateConsent",value:function(){var e,t=this._storagePool.all(),n={},o=[];for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],a=null!==r.syncConsentWith?r.syncConsentWith:r.name,s=this._cookieConsent.allowedCategory(a);n[r.name]=s?"granted":"denied",s&&o.push(r.name)}if(this._gtag("consent","update",n),!(0>=o.length))for(e in this._eventTriggers)this._eventTriggers.hasOwnProperty(e)&&this._eventTriggers[e].tryInvoke(this._gtag,o)&&delete this._eventTriggers[e]}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},229:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}n(686);var i=n(2),r=n(903),a=n(914),s=n(857),c=n(619),l=n(683),u=n(217),p=n(41),d=n(968),f=n(745),_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._initialized=!1,this._gtag=t,this._config=new i,this._storagePool=new a,this._dictionary=new c,this._eventBus=new p,this._eventTriggers={},this._cookieConsent=null}var t,_,y;return t=e,_=[{key:"setPluginOptions",value:function(e){this._config.pluginOptions.merge(e||{})}},{key:"setConsentModalOptions",value:function(e){this._config.consentModalOptions.merge(e||{})}},{key:"setSettingsModalOptions",value:function(e){this._config.settingsModalOptions.merge(e||{})}},{key:"setUiOptions",value:function(e){this._config.uiOptions.merge(e||{})}},{key:"addStorage",value:function(e){this._storagePool.add(new r(e||{}))}},{key:"addEventTrigger",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.TYPE_OR;this._eventTriggers[e]=new f(e,t,n)}},{key:"addTranslations",value:function(e,t){this._dictionary.addTranslations(e,t||{})}},{key:"loadTranslations",value:function(e){var t;try{t=n(598)("./".concat(e))}catch(e){t={}}this.addTranslations(e,t)}},{key:"unwrap",value:function(){if(null===this._cookieConsent)throw new Error("Cookie consent is not created, please call method CookieConsentWrapper.init().");return this._cookieConsent}},{key:"allowedCategory",value:function(e){return this.unwrap().allowedCategory(e)}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return d.ON_INIT===e&&this._initialized&&null!==this._cookieConsent?(t.call(n,this),function(){}):this._eventBus.subscribe(e,t,n)}},{key:"init",value:function(e,t){if(!this._initialized){var n=this;if(e.CookieConsentWrapper=n,t){var o=function(){l.loadFromConfig(t,n._config.uiOptions)};"loading"!==t.readyState?o():t.addEventListener("DOMContentLoaded",o)}var i=function(){n._cookieConsent=initCookieConsent();var e,o=new s(n._cookieConsent,n._storagePool,Object.values(n._eventTriggers),n._gtag),i=n._config.exportCookieConsentConfig();i.onAccept=function(){return o.onAccept()},i.onChange=function(){return o.onChange()},i.languages=n._dictionary.exportTranslations(n._storagePool,n._config),t&&"string"==typeof n._config.uiOptions.modal_trigger_selector&&(e=new u(t,n._dictionary).create(n._config.uiOptions.modal_trigger_selector,n._config.pluginOptions.current_lang||t.documentElement.lang)),n._cookieConsent.run(i),e&&e.textElement&&(e.textElement.innerHTML=n._dictionary.translate(n._cookieConsent.getConfig("current_lang"),"modal_trigger_title")),n._eventBus.dispatch(d.ON_INIT,n)};"complete"===t.readyState?i():e.addEventListener("load",i),this._initialized=!0}}}],_&&o(t.prototype,_),y&&o(t,y),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=_},336:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(229),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,n=[{key:"create",value:function(){if(void 0===window)throw new Error("the window is not accessible.");var e=new r(this._createGtagFunction()),t=window.cc_wrapper_config||{};return this._setupPluginOptions(e,t),this._setupConsentModalOptions(e,t),this._setupSettingsModalOptions(e,t),this._setupUiOptions(e,t),this._setupStoragePool(e,t),this._setupEventTriggers(e,t),this._setupLocales(e,t),this._setupTranslations(e,t),e.init(window,document),e}},{key:"_createGtagFunction",value:function(){var e=window.gtag;return e||(window.dataLayer=window.dataLayer||[],e=function(){dataLayer.push(arguments)}),e}},{key:"_setupPluginOptions",value:function(e,t){t.hasOwnProperty("plugin_options")&&"object"===o(t.plugin_options)&&e.setPluginOptions(t.plugin_options)}},{key:"_setupConsentModalOptions",value:function(e,t){t.hasOwnProperty("consent_modal_options")&&"object"===o(t.consent_modal_options)&&e.setConsentModalOptions(t.consent_modal_options)}},{key:"_setupSettingsModalOptions",value:function(e,t){t.hasOwnProperty("settings_modal_options")&&"object"===o(t.settings_modal_options)&&e.setSettingsModalOptions(t.settings_modal_options)}},{key:"_setupUiOptions",value:function(e,t){t.hasOwnProperty("ui_options")&&"object"===o(t.ui_options)&&e.setUiOptions(t.ui_options)}},{key:"_setupStoragePool",value:function(e,t){if(t.hasOwnProperty("storage_pool")&&Array.isArray(t.storage_pool)){var n=t.storage_pool;for(var o in n)n.hasOwnProperty(o)&&e.addStorage(n[o]||{})}}},{key:"_setupEventTriggers",value:function(e,t){if(t.hasOwnProperty("event_triggers")&&Array.isArray(t.event_triggers)){var n=t.event_triggers;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];e.addEventTrigger(i.name,i.storage_names,i.type)}}}},{key:"_setupLocales",value:function(e,t){if(t.hasOwnProperty("locales")&&Array.isArray(t.locales)){var n,o=t.locales;for(n in o)o.hasOwnProperty(n)&&e.loadTranslations(o[n])}}},{key:"_setupTranslations",value:function(e,t){if(t.hasOwnProperty("translations")&&"object"===o(t.translations)){var n,i=t.translations;for(n in i)i.hasOwnProperty(n)&&e.addTranslations(n,i[n]||{})}}}],n&&i(t.prototype,n),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=a},41:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._generator=(t=0,{getNextIdentifier:function(){return t++}}),this._listeners={}}var n,o,i;return n=e,o=[{key:"subscribe",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("function"!=typeof t)throw new TypeError("Listener must be of type function.");var o="idx_"+this._generator.getNextIdentifier();return this._listeners[e]=this._listeners[e]||{},this._listeners[e][o]={callback:t,scope:n},function(){e in this._listeners&&o in this._listeners[e]&&delete this._listeners[e][o]}}},{key:"dispatch",value:function(e){for(var t,n,o=this._listeners[e]||{},i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];for(t in o){var s;o.hasOwnProperty(t)&&(s=(n=o[t]).callback).call.apply(s,[n.scope].concat(r))}}}],o&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},968:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,o,i;return n=e,i=[{key:"ON_INIT",get:function(){return"init"}}],(o=null)&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},745:e=>{"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var o=function(){function e(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.TYPE_OR;if(t(this,e),!Array.isArray(o)){if("string"!=typeof o)throw new TypeError("Invalid argument $storageNames passed, the argument must be string or array of strings.");o=[o]}if(0>=o.length)throw new Error("Storage names can't be an empty array.");if(-1===[e.TYPE_OR,e.TYPE_AND].indexOf(i))throw new Error("Invalid event trigger type ".concat(i,"."));this._name=n,this._type=i,this._storageNames=o}var o,i,r;return o=e,r=[{key:"TYPE_OR",get:function(){return"or"}},{key:"TYPE_AND",get:function(){return"and"}}],(i=[{key:"tryInvoke",value:function(t,n){var o,i=!1;for(o in this._storageNames)if(this._storageNames.hasOwnProperty(o)&&((i=-1!==n.indexOf(this._storageNames[o]))&&e.TYPE_OR===this._type||!i&&e.TYPE_AND===this._type))break;return i&&t("event",this._name,{}),i}}])&&n(o.prototype,i),r&&n(o,r),Object.defineProperty(o,"prototype",{writable:!1}),e}();e.exports=o},903:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(196),r=(n(745),function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config=new i(t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return this._config.name}},{key:"enabledByDefault",get:function(){return this._config.enabled_by_default}},{key:"displayInWidget",get:function(){return this._config.display_in_widget}},{key:"readonly",get:function(){return this._config.readonly}},{key:"syncConsentWith",get:function(){return this._config.sync_consent_with}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());e.exports=r},196:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=n((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.hasOwnProperty("name")||""===t.name)throw new Error('Missing required property "name".');this.name=t.name,this.enabled_by_default=t.enabled_by_default||!1,this.display_in_widget=t.display_in_widget||!1,this.readonly=t.readonly||!1,this.sync_consent_with=t.sync_consent_with||null}));e.exports=o},914:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._items=[]}var n,o,i;return n=e,(o=[{key:"add",value:function(e){this._items[e.name]=e}},{key:"has",value:function(e){return this._items.hasOwnProperty(e)}},{key:"get",value:function(e){if(!this.has(e))throw new Error('Missing storage "'.concat(e,'".'));return this._items[e]}},{key:"all",value:function(){return this._items}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},106:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._locale=t,this.modal_trigger_title="",this.consent_modal_title="",this.consent_modal_description="",this.consent_modal_revision_message="",this.consent_modal_primary_btn="",this.consent_modal_secondary_btn_settings="",this.consent_modal_secondary_btn_accept_necessary="",this.settings_modal_title="",this.settings_modal_save_settings_btn="",this.settings_modal_accept_all_btn="",this.settings_modal_reject_all_btn="",this.settings_modal_close_btn_label="",this.settings_modal_before_consent_title="",this.settings_modal_before_consent_description="",this.settings_modal_after_consent_title="",this.settings_modal_after_consent_description="",this.functionality_storage_title="",this.functionality_storage_description="",this.personalization_storage_title="",this.personalization_storage_description="",this.security_storage_title="",this.security_storage_description="",this.ad_storage_title="",this.ad_storage_description="",this.analytics_storage_title="",this.analytics_storage_description=""}var n,o,i;return n=e,(o=[{key:"locale",get:function(){return this._locale}},{key:"translate",value:function(e){return this.hasOwnProperty(e)?this[e]:e}},{key:"merge",value:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}},{key:"exportTranslations",value:function(e,t){var n=[];""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||n.push({title:this.settings_modal_before_consent_title,description:this.settings_modal_before_consent_description});var o,i,r=e.all();for(i in r)r.hasOwnProperty(i)&&(o=r[i]).displayInWidget&&this.hasOwnProperty(o.name+"_title")&&n.push({title:this[o.name+"_title"],description:this[o.name+"_description"],toggle:{value:o.name,enabled:o.enabledByDefault,readonly:o.readonly}});return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||n.push({title:this.settings_modal_after_consent_title,description:this.settings_modal_after_consent_description}),{consent_modal:{title:this.consent_modal_title,description:this.consent_modal_description.replace("[[revision_message]]","{{revision_message}}"),revision_message:this.consent_modal_revision_message,primary_btn:{text:this.consent_modal_primary_btn,role:t.consentModalOptions.primary_button_role},secondary_btn:{text:"accept_necessary"===t.consentModalOptions.secondary_button_role?this.consent_modal_secondary_btn_accept_necessary:this.consent_modal_secondary_btn_settings,role:t.consentModalOptions.secondary_button_role}},settings_modal:{title:this.settings_modal_title,save_settings_btn:this.settings_modal_save_settings_btn,accept_all_btn:this.settings_modal_accept_all_btn,reject_all_btn:this.settings_modal_reject_all_btn,close_btn_label:this.settings_modal_close_btn_label,blocks:n}}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},619:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(106),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._catalogues={}}var t,n,r;return t=e,n=[{key:"addTranslations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._catalogues.hasOwnProperty(e)?t=this._catalogues[e]:(t=new i(e),this._catalogues[e]=t),t.merge(n)}},{key:"translate",value:function(e,t){return this._catalogues.hasOwnProperty(e)?this._catalogues[e].translate(t):t}},{key:"exportTranslations",value:function(e,t){var n,o,i={};for(n in this._catalogues)this._catalogues.hasOwnProperty(n)&&(i[(o=this._catalogues[n]).locale]=o.exportTranslations(e,t));return i}}],n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},217:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._document=t,this._dictionary=n}var n,o,i;return n=e,(o=[{key:"create",value:function(e,t){var n=this._document.querySelectorAll(e),o=n.length?n[n.length-1]:void 0;if(!o)return console.log("HTML element with selector ".concat(e," not found.")),{itemElement:void 0,linkElement:void 0};var i,r=o.cloneNode(!0);if(!(i="A"===r.nodeName?r:r.getElementsByTagName("a")[0]||void 0)){i=this._document.createElement("a");var a=r.querySelectorAll("*"),s=a.length?a[a.length-1]:r;s.innerHTML="",s.appendChild(i)}var c=i.querySelectorAll("*"),l=c.length?c[c.length-1]:i;return l.innerHTML=this._dictionary.translate(t,"modal_trigger_title"),i.setAttribute("data-cc","c-settings"),i.setAttribute("href","#cookie-settings"),o.parentNode.appendChild(r),{itemElement:r,textElement:l}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},683:e=>{"use strict";function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._document=t}var n,i,r;return n=e,r=[{key:"loadFromConfig",value:function(n,o){var i,r=new e(n),a=o.internal_stylesheets,s=o.defaultStylesheets;for(i in s=[].concat(t(s),t(o.external_stylesheets)))s.hasOwnProperty(i)&&r.loadExternal(s[i]);for(i in a)a.hasOwnProperty(i)&&r.loadInternal(a[i])}}],(i=[{key:"loadExternal",value:function(e){var t=this._document.createElement("link");t.rel="stylesheet",t.href=e,this._appendStylesheet(t)}},{key:"loadInternal",value:function(e){var t=this._document.createElement("style");t.innerText=e.replace(/ {2}|\r\n|\n|\r/gm,""),this._appendStylesheet(t)}},{key:"_appendStylesheet",value:function(e){this._document.getElementsByTagName("head")[0].appendChild(e)}}])&&o(n.prototype,i),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=i},686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(e){var t,n,o,i,r,a,s,c,l,u,p,d,f,_,y,h,g={current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},b={},v={},m=!1,k=!1,w=!1,O=!1,j=!1,C=!0,P=!1,x=null,T=[],S=[],A=!1,z=[],E=[],N=[],M=[],L=[],R=document.documentElement,D=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<G(t).length?Object.prototype.hasOwnProperty.call(t,g.current_lang)?g.current_lang:G(t)[0]:void 0},I=function(){function e(e,n){var o=!1,i=!1;try{for(var r,a=e.querySelectorAll(t.join(':not([tabindex="-1"]), ')),s=a.length,c=0;c<s;)r=a[c].getAttribute("data-focus"),i||"1"!==r?"0"===r&&(o=a[c],i||"0"===a[c+1].getAttribute("data-focus")||(i=a[c+1])):i=a[c],c++}catch(n){return e.querySelectorAll(t.join(", "))}n[0]=a[0],n[1]=a[a.length-1],n[2]=o,n[3]=i}var t=["[href]","button","input","details",'[tabindex="0"]'];e(f,E),m&&e(p,z)},B="",H=function(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return o;return-1},U=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},J=function(e,t){function n(e,t,n,o,i,r,a){if(r=r&&r.split(" ")||[],-1<H(t,i)&&($(e,i),("bar"!==i||"middle"!==r[0])&&-1<H(n,r[0])))for(t=0;t<r.length;t++)$(e,r[t]);-1<H(o,a)&&$(e,a)}if("object"==typeof e){var o=e.consent_modal;e=e.settings_modal,m&&o&&n(p,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],o.layout,o.position,o.transition),!t&&e&&n(d,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition)}};b.allowedCategory=function(e){return-1<H(JSON.parse(F(g.cookie_name,"one",!0)||"{}").level||[],e)},b.run=function(s){if(!document.getElementById("cc_div")&&(function(e){"number"==typeof e.cookie_expiration&&(g.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(g.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(g.autorun=e.autorun),"string"==typeof e.cookie_domain&&(g.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(g.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(g.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(g.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(i=e.onAccept),"function"==typeof e.onFirstAction&&(a=e.onFirstAction),"function"==typeof e.onChange&&(r=e.onChange),"number"==typeof e.revision&&(-1<e.revision&&(g.revision=e.revision),P=!0),!0===e.autoclear_cookies&&(g.autoclear_cookies=!0),!0===e.use_rfc_cookie&&(g.use_rfc_cookie=!0),!0===e.hide_from_bots&&(A=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),g.page_scripts=!0===e.page_scripts,g.page_scripts_order=!1!==e.page_scripts_order,"browser"===e.auto_language||!0===e.auto_language?g.auto_language="browser":"document"===e.auto_language&&(g.auto_language="document");var t=e.languages;e=e.current_lang,"browser"===g.auto_language?(2<(e=navigator.language||navigator.browserLanguage).length&&(e=e[0]+e[1]),e=e.toLowerCase(),t=D(e,t)):t="document"===g.auto_language?D(document.documentElement.lang,t):"string"==typeof e?g.current_lang=D(e,t):g.current_lang,g.current_lang=t}(s),!A&&(v=JSON.parse(F(g.cookie_name,"one",!0)||"{}"),k=void 0!==v.level,x=void 0!==v.data?v.data:null,C=!("number"==typeof s.revision&&k&&-1<s.revision&&v.revision!==g.revision),function(t,i){(u=U("div")).id="cc--main",u.style.position="fixed",u.style.zIndex="1000000",u.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var r=u.children[0],a=g.current_lang,s="string"==typeof R.textContent?"textContent":"innerText";_=i,y=function(e){!0===e.force_consent&&$(R,"force--consent");var t=e.languages[a].consent_modal.description;if(P&&(t=C?t.replace("{{revision_message}}",""):t.replace("{{revision_message}}",B||e.languages[a].consent_modal.revision_message||"")),p)h.innerHTML=t;else{p=U("div");var n=U("div"),o=U("div");h=U("div");var i=U("div"),c=U("div");p.id="cm",n.id="c-inr",o.id="c-inr-i",h.id="c-txt",i.id="c-bns",c.id="cm-ov",p.setAttribute("role","dialog"),p.setAttribute("aria-modal","true"),p.setAttribute("aria-hidden","false"),p.setAttribute("aria-labelledby","c-ttl"),p.setAttribute("aria-describedby","c-txt"),p.style.visibility=c.style.visibility="hidden",c.style.opacity=0;var l=e.languages[a].consent_modal.title;if(l){var u=U("div");u.id="c-ttl",u.setAttribute("role","heading"),u.setAttribute("aria-level","2"),u.insertAdjacentHTML("beforeend",l),o.appendChild(u)}if(h.insertAdjacentHTML("beforeend",t),o.appendChild(h),t=e.languages[a].consent_modal.primary_btn,l=e.languages[a].consent_modal.secondary_btn,t){var d,f=U("button");f.id="c-p-bn",f.className="c-bn",f[s]=e.languages[a].consent_modal.primary_btn.text,"accept_all"===t.role&&(d="all"),V(f,"click",(function(){b.hide(),b.accept(d)}))}if(l){var _=U("button");_.id="c-s-bn",_.className="c-bn c_link",_[s]=e.languages[a].consent_modal.secondary_btn.text,"accept_necessary"===l.role?V(_,"click",(function(){b.hide(),b.accept([])})):V(_,"click",(function(){b.showSettings(0)}))}(e=e.gui_options)&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(l&&i.appendChild(_),t&&i.appendChild(f),i.className="swap"):(t&&i.appendChild(f),l&&i.appendChild(_)),n.appendChild(o),(t||l)&&n.appendChild(i),p.appendChild(n),r.appendChild(p),r.appendChild(c),m=!0}},t||y(i),d=U("div");var c=U("div"),l=U("div"),k=U("div");f=U("div");var w=U("div"),O=U("div"),j=U("button"),x=U("div"),T=U("div"),S=U("div");d.id="s-cnt",c.id="c-vln",k.id="c-s-in",l.id="cs",w.id="s-ttl",f.id="s-inr",O.id="s-hdr",T.id="s-bl",j.id="s-c-bn",S.id="cs-ov",x.id="s-c-bnc",j.className="c-bn",j.setAttribute("aria-label",i.languages[a].settings_modal.close_btn_label||"Close"),d.setAttribute("role","dialog"),d.setAttribute("aria-modal","true"),d.setAttribute("aria-hidden","true"),d.setAttribute("aria-labelledby","s-ttl"),w.setAttribute("role","heading"),d.style.visibility=S.style.visibility="hidden",S.style.opacity=0,x.appendChild(j),V(c,"keydown",(function(e){27===(e=e||window.event).keyCode&&b.hideSettings(0)}),!0),V(j,"click",(function(){b.hideSettings(0)})),o=i.languages[g.current_lang].settings_modal.blocks,n=i.languages[g.current_lang].settings_modal.cookie_table_headers,j=o.length,w.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.title);for(var A=0;A<j;++A){var z=o[A].title,E=o[A].description,D=o[A].toggle,I=o[A].cookie_table,J=!0===i.remove_cookie_tables,W=(E||!J&&I)&&"truthy",q=U("div"),F=U("div");if(E){var Y=U("div");Y.className="p",Y.insertAdjacentHTML("beforeend",E)}var X=U("div");if(X.className="title",q.className="c-bl",F.className="desc",void 0!==D){var Q="c-ac-"+A,ee=U(W?"button":"div"),te=U("label"),ne=U("input"),oe=U("span"),ie=U("span"),re=U("span"),ae=U("span");ee.className=W?"b-tl exp":"b-tl",te.className="b-tg",ne.className="c-tgl",re.className="on-i",ae.className="off-i",oe.className="c-tg",ie.className="t-lb",W&&(ee.setAttribute("aria-expanded","false"),ee.setAttribute("aria-controls",Q)),ne.type="checkbox",oe.setAttribute("aria-hidden","true");var se=D.value;ne.value=se,ie[s]=z,ee.insertAdjacentHTML("beforeend",z),X.appendChild(ee),oe.appendChild(re),oe.appendChild(ae),t?-1<H(v.level,se)?(ne.checked=!0,N.push(!0)):N.push(!1):D.enabled?(ne.checked=!0,N.push(!0)):N.push(!1),M.push(se),D.readonly?(ne.disabled=!0,$(oe,"c-ro"),L.push(!0)):L.push(!1),$(F,"b-acc"),$(X,"b-bn"),$(q,"b-ex"),F.id=Q,F.setAttribute("aria-hidden","true"),te.appendChild(ne),te.appendChild(oe),te.appendChild(ie),X.appendChild(te),W&&function(e,t,n){V(ee,"click",(function(){Z(t,"act")?(K(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):($(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(F,q,ee)}else z&&((W=U("div")).className="b-tl",W.setAttribute("role","heading"),W.setAttribute("aria-level","3"),W.insertAdjacentHTML("beforeend",z),X.appendChild(W));if(z&&q.appendChild(X),E&&F.appendChild(Y),!J&&void 0!==I){for(W=document.createDocumentFragment(),Q=0;Q<n.length;++Q)te=U("th"),J=n[Q],te.setAttribute("scope","col"),J&&(X=J&&G(J)[0],te[s]=n[Q][X],W.appendChild(te));for((J=U("tr")).appendChild(W),(X=U("thead")).appendChild(J),(W=U("table")).appendChild(X),Q=document.createDocumentFragment(),te=0;te<I.length;te++){for(ne=U("tr"),oe=0;oe<n.length;++oe)(J=n[oe])&&(X=G(J)[0],(ie=U("td")).insertAdjacentHTML("beforeend",I[te][X]),ie.setAttribute("data-column",J[X]),ne.appendChild(ie));Q.appendChild(ne)}(I=U("tbody")).appendChild(Q),W.appendChild(I),F.appendChild(W)}(D&&z||!D&&(z||E))&&(q.appendChild(F),T.appendChild(q))}t=U("div"),Y=U("button"),j=U("button"),t.id="s-bns",Y.id="s-sv-bn",j.id="s-all-bn",Y.className="c-bn",j.className="c-bn",Y.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.save_settings_btn),j.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.accept_all_btn),t.appendChild(j),(i=i.languages[g.current_lang].settings_modal.reject_all_btn)&&((A=U("button")).id="s-rall-bn",A.className="c-bn",A.insertAdjacentHTML("beforeend",i),V(A,"click",(function(){b.hideSettings(),b.hide(),b.accept([])})),f.className="bns-t",t.appendChild(A)),t.appendChild(Y),V(Y,"click",(function(){b.hideSettings(),b.hide(),b.accept()})),V(j,"click",(function(){b.hideSettings(),b.hide(),b.accept("all")})),O.appendChild(w),O.appendChild(x),f.appendChild(O),f.appendChild(T),f.appendChild(t),k.appendChild(f),l.appendChild(k),c.appendChild(l),d.appendChild(c),r.appendChild(d),r.appendChild(S),(e||document.body).appendChild(u)}(!(m=!k||!C),s),function(e,t){if("string"!=typeof e||""===e||document.getElementById("cc--style"))t();else{var n=U("style");n.id="cc--style";var o=new XMLHttpRequest;o.onreadystatechange=function(){4===this.readyState&&200===this.status&&(n.setAttribute("type","text/css"),n.styleSheet?n.styleSheet.cssText=this.responseText:n.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(n),t())},o.open("GET",e),o.send()}}(s.theme_css,(function(){I(),J(s.gui_options),function(){for(var e=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),t=0;t<e.length;t++)e[t].setAttribute("aria-haspopup","dialog"),V(e[t],"click",(function(e){b.showSettings(0),e.preventDefault?e.preventDefault():e.returnValue=!1}))}(),g.autorun&&m&&b.show(s.delay||0),setTimeout((function(){$(u,"c--anim")}),30),setTimeout((function(){!function(){var e=!1,n=!1;V(document,"keydown",(function(o){"Tab"===(o=o||window.event).key&&(t&&(o.shiftKey?document.activeElement===t[0]&&(t[1].focus(),o.preventDefault()):document.activeElement===t[1]&&(t[0].focus(),o.preventDefault()),n||j||(n=!0,!e&&o.preventDefault(),o.shiftKey?t[3]?t[2]?t[2].focus():t[0].focus():t[1].focus():t[3]?t[3].focus():t[0].focus())),!n&&(e=!0))})),document.contains&&V(u,"click",(function(e){e=e||window.event,O?f.contains(e.target)?j=!0:(b.hideSettings(0),j=!1):w&&p.contains(e.target)&&(j=!0)}),!0)}()}),100)})),k&&C))){var c="boolean"==typeof v.rfc_cookie;(!c||c&&v.rfc_cookie!==g.use_rfc_cookie)&&(v.rfc_cookie=g.use_rfc_cookie,q(g.cookie_name,JSON.stringify(v))),W(),"function"==typeof s.onAccept&&s.onAccept(v)}},b.showSettings=function(e){setTimeout((function(){$(R,"show--settings"),d.setAttribute("aria-hidden","false"),O=!0,setTimeout((function(){w?l=document.activeElement:c=document.activeElement,0!==E.length&&(E[3]?E[3].focus():E[0].focus(),t=E)}),200)}),0<e?e:0)};var W=function(){if(g.page_scripts){var e=document.querySelectorAll("script["+g.script_selector+"]"),t=g.page_scripts_order,n=v.level||[],o=function(e,i){if(i<e.length){var r=e[i],a=r.getAttribute(g.script_selector);if(-1<H(n,a)){r.type="text/javascript",r.removeAttribute(g.script_selector),a=r.getAttribute("data-src");var s=U("script");if(s.textContent=r.innerHTML,function(e,t){for(var n=t.attributes,o=n.length,i=0;i<o;i++)t=n[i],e.setAttribute(t.nodeName,t.nodeValue)}(s,r),a?s.src=a:a=r.src,a&&(t?s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,o(e,++i))}:s.onload=function(){s.onload=null,o(e,++i)}:a=!1),r.parentNode.replaceChild(s,r),a)return}o(e,++i)}};o(e,0)}};b.set=function(e,t){switch(e){case"data":e=t.value;var n=!1;if("update"===t.mode)if((t=typeof(x=b.get("data"))==typeof e)&&"object"==typeof x)for(var o in!x&&(x={}),e)x[o]!==e[o]&&(x[o]=e[o],n=!0);else!t&&x||x===e||(x=e,n=!0);else x=e,n=!0;return n&&(v.data=x,q(g.cookie_name,JSON.stringify(v))),n;case"revision":return o=t.value,e=t.prompt_consent,t=t.message,u&&"number"==typeof o&&v.revision!==o?(P=!0,B=t,C=!1,g.revision=o,!0===e?(y(_),J(_.gui_options,!0),I(),b.show()):b.accept(),t=!0):t=!1,t;default:return!1}},b.get=function(e,t){return JSON.parse(F(t||g.cookie_name,"one",!0)||"{}")[e]},b.getConfig=function(e){return g[e]},b.getUserPreferences=function(){T=v.level||[];var e=L.filter((function(e){return!0===e})).length;return S=M.filter((function(e){return-1===H(T,e)})),{accept_type:s=T.length===M.length?"all":0<=S.length&&T.length===e?"necessary":"custom",accepted_categories:T,rejected_categories:S}},b.loadScript=function(e,t,n){var o="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))o&&t();else{var i=U("script");if(n&&0<n.length)for(var r=0;r<n.length;++r)n[r]&&i.setAttribute(n[r].name,n[r].value);o&&(i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,t())}:i.onload=t),i.src=e,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(i)}},b.updateScripts=function(){W()},b.show=function(e){m&&setTimeout((function(){$(R,"show--consent"),p.setAttribute("aria-hidden","false"),w=!0,setTimeout((function(){c=document.activeElement,t=z}),200)}),0<e?e:0)},b.hide=function(){m&&(K(R,"show--consent"),p.setAttribute("aria-hidden","true"),w=!1,setTimeout((function(){c.focus(),t=null}),200))},b.hideSettings=function(){K(R,"show--settings"),O=!1,d.setAttribute("aria-hidden","true"),setTimeout((function(){w?(l&&l.focus(),t=z):(c.focus(),t=null),j=!1}),200)},b.accept=function(e,t){var s=t||[];if(t=[],e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var c=0;c<e.length;c++)-1!==H(M,e[c])&&t.push(e[c]);else"string"==typeof e&&("all"===e?t=M.slice():-1!==H(M,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(1<=s.length)for(c=0;c<s.length;c++)t=t.filter((function(e){return e!==s[c]}));for(c=0;c<M.length;c++)!0===L[c]&&-1===H(t,M[c])&&t.push(M[c]);!function(e){var t=document.querySelectorAll(".c-tgl")||[],s=[],c=!1;if(0<t.length){for(var l=0;l<t.length;l++)-1!==H(e,M[l])?(t[l].checked=!0,N[l]||(s.push(M[l]),N[l]=!0)):(t[l].checked=!1,N[l]&&(s.push(M[l]),N[l]=!1));if(g.autoclear_cookies&&k&&0<s.length){t=o.length,l=-1;var u=F("","all"),p=[g.cookie_domain,"."+g.cookie_domain];if("www."===g.cookie_domain.slice(0,4)){var d=g.cookie_domain.substr(4);p.push(d),p.push("."+d)}for(d=0;d<t;d++){var f=o[d];if(Object.prototype.hasOwnProperty.call(f,"toggle")&&!N[++l]&&Object.prototype.hasOwnProperty.call(f,"cookie_table")&&-1<H(s,f.toggle.value)){var _=f.cookie_table,y=G(n[0])[0],h=_.length;"on_disable"===f.toggle.reload&&(c=!0);for(var m=0;m<h;m++){var w=_[m],O=[],j=w[y],P=w.is_regex||!1,T=w.domain||null;if(w=w.path||!1,T&&(p=[T,"."+T]),P)for(P=0;P<u.length;P++)u[P].match(j)&&O.push(u[P]);else-1<(j=H(u,j))&&O.push(u[j]);0<O.length&&(Y(O,w,p),"on_clear"===f.toggle.reload&&(c=!0))}}}}}v={level:e,revision:g.revision,data:x,rfc_cookie:g.use_rfc_cookie},(!k||0<s.length||!C)&&(C=!0,q(g.cookie_name,JSON.stringify(v)),W()),k?("function"==typeof r&&0<s.length&&r(v,s),c&&window.location.reload()):("function"==typeof a&&a(b.getUserPreferences(),v),"function"==typeof i&&i(v),k=!0)}(t)},b.eraseCookies=function(e,t,n){var o=[];if(n=n?[n,"."+n]:[g.cookie_domain,"."+g.cookie_domain],"object"==typeof e&&0<e.length)for(var i=0;i<e.length;i++)this.validCookie(e[i])&&o.push(e[i]);else this.validCookie(e)&&o.push(e);Y(o,t,n)};var q=function(e,t){var n=g.cookie_expiration;"number"==typeof g.cookie_necessary_only_expiration&&"necessary"===s&&(n=g.cookie_necessary_only_expiration),t=g.use_rfc_cookie?encodeURIComponent(t):t;var o=new Date;o.setTime(o.getTime()+864e5*n),e=e+"="+(t||"")+(n="; expires="+o.toUTCString())+"; Path="+g.cookie_path+";",e+=" SameSite="+g.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+g.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},F=function(e,t,n){var o;if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===g.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),o=[],t=0;t<e.length;t++)o.push(e[t].split("=")[0]);return o},Y=function(e,t,n){t=t||"/";for(var o=0;o<e.length;o++)for(var i=0;i<n.length;i++)document.cookie=e[o]+"=; path="+t+(-1<n[i].indexOf(".")?"; domain="+n[i]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};b.validCookie=function(e){return""!==F(e,"one",!0)};var V=function(e,t,n,o){e.addEventListener?!0===o?e.addEventListener(t,n,{passive:!0}):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},G=function(e){if("object"==typeof e){var t=[],n=0;for(t[n++]in e);return t}},$=function(e,t){e.classList?e.classList.add(t):Z(e,t)||(e.className+=" "+t)},K=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},Z=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return b})},598:(e,t,n)=>{var o={"./cs":247,"./cs.json":247,"./en":453,"./en.json":453,"./sk":705,"./sk.json":705};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=598},247:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Nastavení cookies","consent_modal_title":"Používáme cookies!","consent_modal_description":"Na našich webových stránkách používáme soubory cookies. Některé z nich jsou nezbytné, zatímco jiné nám pomáhají vylepšít tento web a váš uživatelský zážitek.","consent_modal_primary_btn":"Souhlasím","consent_modal_secondary_btn_settings":"Přizpůsobit","consent_modal_secondary_btn_accept_necessary":"Povolit nezbytné cookies","settings_modal_title":"Nastavení cookies","settings_modal_save_settings_btn":"Uložit nastavení","settings_modal_accept_all_btn":"Povolit všechny cookies","settings_modal_reject_all_btn":"Povolit nezbytné cookies","settings_modal_close_btn_label":"Zavřít","settings_modal_before_consent_title":"Použití cookies","settings_modal_before_consent_description":"Soubory cookie používáme k zajištění základních funkcí webu a ke zlepšení vašeho uživatelského zážitku. Souhlas pro každou kategorii můžete kdykoliv změnit.","settings_modal_after_consent_title":"Více informací","settings_modal_after_consent_description":"Máte-li jakékoli dotazy týkající se používání souborů cookie a vašich voleb, kontaktujte nás prosím.","functionality_storage_title":"Nezbytně nutné soubory cookies","functionality_storage_description":"Tyto soubory cookie jsou nezbytné pro správné fungování našich webových stránek. Bez těchto souborů cookie by webové stránky nefungovaly správně.","personalization_storage_title":"Personalizační cookies","personalization_storage_description":"Personalizační soubory cookie mohou používat soubory cookie třetích stran, které jim pomáhají přizpůsobit obsah a umožňují sledovat uživatele na různých webových stránkách a zařízeních.","security_storage_title":"Bezpečnostní cookies","security_storage_description":"Bezpečnostní soubory cookie umožňují ukládání informací souvisejících se zabezpečením, např. ověřování, ochrana před podvody a další prostředky na ochranu uživatele.","ad_storage_title":"Reklamní cookies","ad_storage_description":"Reklamní cookies používáme my nebo naši partneři, abychom Vám mohli zobrazit vhodné obsahy nebo reklamy jak na našich stránkách, tak na stránkách třetích subjektů. Díky tomu můžeme vytvářet profily založené na Vašich zájmech, tak zvané pseudonymizované profily. Na základě těchto informací není zpravidla možná bezprostřední identifikace Vaší osoby, protože jsou používány pouze pseudonymizované údaje. Pokud nevyjádříte souhlas, nebudete příjemcem obsahů a reklam přizpůsobených Vašim zájmům.","analytics_storage_title":"Analytické cookies","analytics_storage_description":"Analytické cookies nám umožňují měření výkonu našeho webu a našich reklamních kampaní. Jejich pomocí určujeme počet návštěv a zdroje návštěv našich internetových stránek. Data získaná pomocí těchto cookies zpracováváme souhrnně, bez použití identifikátorů, které ukazují na konkrétní uživatelé našeho webu. Pokud vypnete používání analytických cookies ve vztahu k Vaší návštěvě, ztrácíme možnost analýzy výkonu a optimalizace našich opatření."}')},453:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Cookie settings","consent_modal_title":"We use cookies!","consent_modal_description":"This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.","consent_modal_primary_btn":"I agree","consent_modal_secondary_btn_settings":"Customize","consent_modal_secondary_btn_accept_necessary":"Accept necessary","settings_modal_title":"Cookie settings","settings_modal_save_settings_btn":"Save settings","settings_modal_accept_all_btn":"Accept all","settings_modal_reject_all_btn":"Accept necessary","settings_modal_close_btn_label":"Close","settings_modal_before_consent_title":"Cookie usage","settings_modal_before_consent_description":"We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want.","settings_modal_after_consent_title":"More information","settings_modal_after_consent_description":"For any queries in relation to my policy on cookies and your choices, please contact us.","functionality_storage_title":"Functionality cookies","functionality_storage_description":"These cookies are necessary for the proper functioning of our website. Without these cookies, the website might not be working properly.","personalization_storage_title":"Personalization cookies","personalization_storage_description":"Personalisation cookies may use third party cookies to help them personalise content and track users across different websites and devices.","security_storage_title":"Security cookies","security_storage_description":"Security cookies allows storage of security-related information, such as authentication, fraud protection, and other means to protect the user.","ad_storage_title":"Ad cookies","ad_storage_description":"Advertising cookies are used by us or our partners to show you relevant content or advertisements both on our site and on third party sites. This enables us to create profiles based on your interests, so-called pseudonymised profiles. Based on this information, it is generally not possible to directly identify you as a person, as only pseudonymised data is used. Unless you express your consent, you will not receive content and advertisements tailored to your interests.","analytics_storage_title":"Analytics cookies","analytics_storage_description":"Analytics cookies allow us to measure the performance of our website and our advertising campaigns. We use them to determine the number of visits and sources of visits to our website. We process the data obtained through these cookies in aggregate, without using identifiers that point to specific users of our website. If you disable the use of analytics cookies in relation to your visit, we lose the ability to analyse performance and optimise our measures."}')},705:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Nastavenia cookies","consent_modal_title":"Používame súbory cookies!","consent_modal_description":"Na našich webových stránkach používame súbory cookies. Niektoré sú nevyhnutné, iné nám pomáhajú zlepšovať túto webovú stránku a váš používateľský zážitok.","consent_modal_primary_btn":"Súhlasím","consent_modal_secondary_btn_settings":"Prispôsobiť","consent_modal_secondary_btn_accept_necessary":"Povoliť potrebné súbory cookies","settings_modal_title":"Nastavenia cookies","settings_modal_save_settings_btn":"Uložiť nastavenia","settings_modal_accept_all_btn":"Povoliť všetky cookies","settings_modal_reject_all_btn":"Povoliť potrebné cookies","settings_modal_close_btn_label":"Zavrieť","settings_modal_before_consent_title":"Používanie súborov cookies","settings_modal_before_consent_description":"Súbory cookie používame na zabezpečenie základných funkcií stránky a na zlepšenie vášho používateľského zážitku. Svoj súhlas pre každú kategóriu môžete kedykoľvek zmeniť.","settings_modal_after_consent_title":"Ďalšie informácie","settings_modal_after_consent_description":"Ak máte akékoľvek otázky týkajúce sa používania súborov cookie a vašich volieb, kontaktujte nás.","functionality_storage_title":"Potrebné cookies","functionality_storage_description":"Tieto súbory cookie sú potrebné na správne fungovanie našej webovej stránky. Bez týchto súborov cookie by webová stránka nefungovala správne.","personalization_storage_title":"Súbory cookie na prispôsobenie obsahu","personalization_storage_description":"Súbory cookie na prispôsobenie obsahu môžu používať súbory cookie tretích strán, ktoré im pomáhajú prispôsobiť obsah a umožňujú im sledovať používateľov na rôznych webových stránkach a zariadeniach.","security_storage_title":"Bezpečnostné cookie","security_storage_description":"Bezpečnostné súbory cookie umožňujú ukladanie informácií súvisiacich s bezpečnosťou, ako je overovanie, ochrana pred podvodmi a iné prostriedky ochrany používateľa.","ad_storage_title":"Reklamné cookies","ad_storage_description":"Reklamné súbory cookie používame my alebo naši partneri na zobrazovanie relevantného obsahu alebo reklám na našej stránke aj na stránkach tretích strán. To nám umožňuje vytvárať profily na základe vašich záujmov, tzv. pseudonymizované profily. Na základe týchto informácií vás vo všeobecnosti nie je možné priamo identifikovať ako osobu, pretože sa používajú len pseudonymizované údaje. Ak nevyjadríte svoj súhlas, nebudete dostávať obsah a reklamy prispôsobené vašim záujmom.","analytics_storage_title":"Analytické cookies","analytics_storage_description":"Analytické súbory cookie nám umožňujú merať výkonnosť našej webovej stránky a našich reklamných kampaní. Používame ich na určenie počtu návštev a zdrojov návštev našich webových stránok. Údaje získané prostredníctvom týchto súborov cookie spracúvame súhrnne bez použitia identifikátorov, ktoré by poukazovali na konkrétnych používateľov našej webovej stránky. Ak zakážete používanie analytických súborov cookie v súvislosti s vašou návštevou, stratíme možnosť analyzovať výkon a optimalizovať naše opatrenia."}')}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=n(10);CookieConsentWrapper=o})(); | ||
var CookieConsentWrapper;(()=>{var e={10:(e,t,n)=>{"use strict";const o=n(336);e.exports=(new o).create()},868:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,o,i;return n=e,(o=[{key:"merge",value:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},540:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(){return r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=a(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},r.apply(this,arguments)}function a(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=u(e)););return e}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&s(e,t)}(l,e);var t,n,o,a=c(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=a.call(this)).enabled=!1,e.strategy=l.STRATEGY_CLEAR_ALL_EXCEPT_DEFINED,e.cookie_names=[],e}return t=l,o=[{key:"STRATEGY_CLEAR_ALL_EXCEPT_DEFINED",get:function(){return"clear_all_except_defined"}},{key:"STRATEGY_CLEAR_DEFINED_ONLY",get:function(){return"clear_defined_only"}}],(n=[{key:"merge",value:function(e){if(e.hasOwnProperty("strategy")&&-1===[l.STRATEGY_CLEAR_ALL_EXCEPT_DEFINED,l.STRATEGY_CLEAR_DEFINED_ONLY].indexOf(e.strategy))throw new Error("AutoClear strategy ".concat("string"==typeof e.strategy?e.strategy:e.strategy.toString()," is not supported."));r(u(l.prototype),"merge",this).call(this,e)}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),l}(n(868));e.exports=p},2:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(406),r=n(3),a=n(570),s=n(990),c=n(540),l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.pluginOptions=new i,this.consentModalOptions=new r,this.settingsModalOptions=new a,this.uiOptions=new s,this.autoClearOptions=new c}var t,n,l;return t=e,(n=[{key:"exportCookieConsentConfig",value:function(){var e=this.pluginOptions.exportCookieConsentConfig();return e.gui_options={consent_modal:this.consentModalOptions.exportCookieConsentConfig(),settings_modal:this.settingsModalOptions.exportCookieConsentConfig()},e}}])&&o(t.prototype,n),l&&o(t,l),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=l},3:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}(c,e);var t,n,o,s=a(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this)).layout="box",e.position="bottom center",e.transition="zoom",e.primary_button_role="accept_all",e.secondary_button_role="settings",e.swap_buttons=!1,e}return t=c,(n=[{key:"exportCookieConsentConfig",value:function(){return{layout:this.layout,position:this.position,transition:this.transition,swap_buttons:this.swap_buttons}}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(868));e.exports=l},406:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(e=l.call(this)).autorun=!0,e.delay=0,e.hide_from_bots=!1,e.cookie_name="cc-settings",e.cookie_expiration=182,e.force_consent=!1,e.revision=0,e.current_lang="en",e.auto_language="document",e.page_scripts=!1,e.script_selector="data-cookiecategory",e.cookie_path="/",e.cookie_domain=window.location.hostname,e.cookie_same_site="Lax",e.use_rfc_cookie=!1,e.remove_cookie_tables=!1,e}return t=u,n=[{key:"exportCookieConsentConfig",value:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this)}}],n&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(n(868));e.exports=p},570:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}(c,e);var t,n,o,s=a(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this)).layout="box",e.position=void 0,e.transition="zoom",e.modal_trigger_selector=null,e}return t=c,(n=[{key:"exportCookieConsentConfig",value:function(){return{layout:this.layout,position:this.position,transition:this.transition}}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(868));e.exports=l},990:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}(c,e);var t,n,o,s=a(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=s.call(this)).include_default_stylesheets=!0,e.external_stylesheets=[],e.internal_stylesheets=[],e}return t=c,(n=[{key:"defaultStylesheets",get:function(){return!0===this.include_default_stylesheets?["https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.7.1/dist/cookieconsent.css"]:[]}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),c}(n(868));e.exports=l},857:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(540),r=function(){function e(t,n,o,i,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._cookieConsent=t,this._config=n,this._storagePool=o,this._eventTriggers=i,this._gtag=r}var t,n,r;return t=e,(n=[{key:"onFirstAction",value:function(e){"all"!==e.accept_type&&0<e.rejected_categories.length&&this._autoClearCookies()}},{key:"onAccept",value:function(){this._updateConsent()}},{key:"onChange",value:function(e,t){var n=this._updateConsent();if(0<t.length)for(var o in t)if(t.hasOwnProperty(o)&&n.hasOwnProperty(t[o])&&"denied"===n[t[o]]){this._autoClearCookies();break}}},{key:"_updateConsent",value:function(){var e=this._storagePool.all(),t={},n=[];for(var o in e)if(e.hasOwnProperty(o)){var i=e[o],r=null!==i.syncConsentWith?i.syncConsentWith:i.name,a=this._cookieConsent.allowedCategory(r);t[i.name]=a?"granted":"denied",a&&n.push(i.name)}if(this._gtag("consent","update",t),!(0>=n.length)){var s;for(s in this._eventTriggers)this._eventTriggers.hasOwnProperty(s)&&this._eventTriggers[s].tryInvoke(this._gtag,n)&&delete this._eventTriggers[s];return t}}},{key:"_autoClearCookies",value:function(){if(this._config.autoClearOptions.enabled){for(var e=document.cookie.split(/;\s*/),t=[],n=this._config.autoClearOptions.strategy,o=this._config.autoClearOptions.cookie_names||[],r=0;r<e.length;r++){var a=e[r].split("=")[0];this._config.pluginOptions.cookie_name!==a&&(i.STRATEGY_CLEAR_ALL_EXCEPT_DEFINED===n&&-1===o.indexOf(a)||i.STRATEGY_CLEAR_DEFINED_ONLY===n&&-1!==o.indexOf(a))&&t.push(a)}0<t.length&&this._cookieConsent.eraseCookies(t)}}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},229:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}n(686);var i=n(2),r=n(903),a=n(914),s=n(857),c=n(619),l=n(683),u=n(217),p=n(41),f=n(968),d=n(745),_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._initialized=!1,this._gtag=t,this._config=new i,this._storagePool=new a,this._dictionary=new c,this._eventBus=new p,this._eventTriggers={},this._cookieConsent=null}var t,_,y;return t=e,_=[{key:"setPluginOptions",value:function(e){this._config.pluginOptions.merge(e||{})}},{key:"setAutoClearOptions",value:function(e){this._config.autoClearOptions.merge(e||{})}},{key:"setConsentModalOptions",value:function(e){this._config.consentModalOptions.merge(e||{})}},{key:"setSettingsModalOptions",value:function(e){this._config.settingsModalOptions.merge(e||{})}},{key:"setUiOptions",value:function(e){this._config.uiOptions.merge(e||{})}},{key:"addStorage",value:function(e){this._storagePool.add(new r(e||{}))}},{key:"addEventTrigger",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.TYPE_OR;this._eventTriggers[e]=new d(e,t,n)}},{key:"addTranslations",value:function(e,t){this._dictionary.addTranslations(e,t||{})}},{key:"loadTranslations",value:function(e){var t;try{t=n(598)("./".concat(e))}catch(e){t={}}this.addTranslations(e,t)}},{key:"unwrap",value:function(){if(null===this._cookieConsent)throw new Error("Cookie consent is not created, please call method CookieConsentWrapper.init().");return this._cookieConsent}},{key:"allowedCategory",value:function(e){return this.unwrap().allowedCategory(e)}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return f.ON_INIT===e&&this._initialized&&null!==this._cookieConsent?(t.call(n,this),function(){}):this._eventBus.subscribe(e,t,n)}},{key:"init",value:function(e,t){if(!this._initialized){var n=this;if(e.CookieConsentWrapper=n,t){var o=function(){l.loadFromConfig(t,n._config.uiOptions)};"loading"!==t.readyState?o():t.addEventListener("DOMContentLoaded",o)}var i=function(){n._cookieConsent=initCookieConsent();var e,o=new s(n._cookieConsent,n._config,n._storagePool,Object.values(n._eventTriggers),n._gtag),i=n._config.exportCookieConsentConfig();i.onFirstAction=function(e){return o.onFirstAction(e)},i.onAccept=function(){return o.onAccept()},i.onChange=function(e,t){return o.onChange(e,t)},i.languages=n._dictionary.exportTranslations(n._storagePool,n._config),t&&"string"==typeof n._config.settingsModalOptions.modal_trigger_selector&&(e=new u(t,n._dictionary).create(n._config.settingsModalOptions.modal_trigger_selector,n._config.pluginOptions.current_lang||t.documentElement.lang)),n._cookieConsent.run(i),e&&e.textElement&&(e.textElement.innerHTML=n._dictionary.translate(n._cookieConsent.getConfig("current_lang"),"modal_trigger_title")),n._eventBus.dispatch(f.ON_INIT,n)};"complete"===t.readyState?i():e.addEventListener("load",i),this._initialized=!0}}}],_&&o(t.prototype,_),y&&o(t,y),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=_},336:(e,t,n)=>{"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var r=n(229),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,n=[{key:"create",value:function(){if(void 0===window)throw new Error("the window is not accessible.");var e=new r(this._createGtagFunction()),t=window.cc_wrapper_config||{};return this._setupPluginOptions(e,t),this._setupAutoClearOptions(e,t),this._setupConsentModalOptions(e,t),this._setupSettingsModalOptions(e,t),this._setupUiOptions(e,t),this._setupStoragePool(e,t),this._setupEventTriggers(e,t),this._setupLocales(e,t),this._setupTranslations(e,t),e.init(window,document),e}},{key:"_createGtagFunction",value:function(){var e=window.gtag;return e||(window.dataLayer=window.dataLayer||[],e=function(){dataLayer.push(arguments)}),e}},{key:"_setupPluginOptions",value:function(e,t){t.hasOwnProperty("plugin_options")&&"object"===o(t.plugin_options)&&e.setPluginOptions(t.plugin_options)}},{key:"_setupAutoClearOptions",value:function(e,t){t.hasOwnProperty("auto_clear_options")&&"object"===o(t.auto_clear_options)&&e.setAutoClearOptions(t.auto_clear_options)}},{key:"_setupConsentModalOptions",value:function(e,t){t.hasOwnProperty("consent_modal_options")&&"object"===o(t.consent_modal_options)&&e.setConsentModalOptions(t.consent_modal_options)}},{key:"_setupSettingsModalOptions",value:function(e,t){t.hasOwnProperty("settings_modal_options")&&"object"===o(t.settings_modal_options)&&e.setSettingsModalOptions(t.settings_modal_options)}},{key:"_setupUiOptions",value:function(e,t){t.hasOwnProperty("ui_options")&&"object"===o(t.ui_options)&&e.setUiOptions(t.ui_options)}},{key:"_setupStoragePool",value:function(e,t){if(t.hasOwnProperty("storage_pool")&&Array.isArray(t.storage_pool)){var n=t.storage_pool;for(var o in n)n.hasOwnProperty(o)&&e.addStorage(n[o]||{})}}},{key:"_setupEventTriggers",value:function(e,t){if(t.hasOwnProperty("event_triggers")&&Array.isArray(t.event_triggers)){var n=t.event_triggers;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];e.addEventTrigger(i.name,i.storage_names,i.type)}}}},{key:"_setupLocales",value:function(e,t){if(t.hasOwnProperty("locales")&&Array.isArray(t.locales)){var n,o=t.locales;for(n in o)o.hasOwnProperty(n)&&e.loadTranslations(o[n])}}},{key:"_setupTranslations",value:function(e,t){if(t.hasOwnProperty("translations")&&"object"===o(t.translations)){var n,i=t.translations;for(n in i)i.hasOwnProperty(n)&&e.addTranslations(n,i[n]||{})}}}],n&&i(t.prototype,n),a&&i(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=a},41:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._generator=(t=0,{getNextIdentifier:function(){return t++}}),this._listeners={}}var n,o,i;return n=e,o=[{key:"subscribe",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("function"!=typeof t)throw new TypeError("Listener must be of type function.");var o="idx_"+this._generator.getNextIdentifier();return this._listeners[e]=this._listeners[e]||{},this._listeners[e][o]={callback:t,scope:n},function(){e in this._listeners&&o in this._listeners[e]&&delete this._listeners[e][o]}}},{key:"dispatch",value:function(e){for(var t,n,o=this._listeners[e]||{},i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];for(t in o){var s;o.hasOwnProperty(t)&&(s=(n=o[t]).callback).call.apply(s,[n.scope].concat(r))}}}],o&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},968:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,o,i;return n=e,i=[{key:"ON_INIT",get:function(){return"init"}}],(o=null)&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},745:e=>{"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var o=function(){function e(n,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.TYPE_OR;if(t(this,e),!Array.isArray(o)){if("string"!=typeof o)throw new TypeError("Invalid argument $storageNames passed, the argument must be string or array of strings.");o=[o]}if(0>=o.length)throw new Error("Storage names can't be an empty array.");if(-1===[e.TYPE_OR,e.TYPE_AND].indexOf(i))throw new Error("Invalid event trigger type ".concat(i,"."));this._name=n,this._type=i,this._storageNames=o}var o,i,r;return o=e,r=[{key:"TYPE_OR",get:function(){return"or"}},{key:"TYPE_AND",get:function(){return"and"}}],(i=[{key:"tryInvoke",value:function(t,n){var o,i=!1;for(o in this._storageNames)if(this._storageNames.hasOwnProperty(o)&&((i=-1!==n.indexOf(this._storageNames[o]))&&e.TYPE_OR===this._type||!i&&e.TYPE_AND===this._type))break;return i&&t("event",this._name,{}),i}}])&&n(o.prototype,i),r&&n(o,r),Object.defineProperty(o,"prototype",{writable:!1}),e}();e.exports=o},903:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(196),r=(n(745),function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._config=new i(t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return this._config.name}},{key:"enabledByDefault",get:function(){return this._config.enabled_by_default}},{key:"displayInWidget",get:function(){return this._config.display_in_widget}},{key:"readonly",get:function(){return this._config.readonly}},{key:"syncConsentWith",get:function(){return this._config.sync_consent_with}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}());e.exports=r},196:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}var o=n((function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t.hasOwnProperty("name")||""===t.name)throw new Error('Missing required property "name".');this.name=t.name,this.enabled_by_default=t.enabled_by_default||!1,this.display_in_widget=t.display_in_widget||!1,this.readonly=t.readonly||!1,this.sync_consent_with=t.sync_consent_with||null}));e.exports=o},914:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._items=[]}var n,o,i;return n=e,(o=[{key:"add",value:function(e){this._items[e.name]=e}},{key:"has",value:function(e){return this._items.hasOwnProperty(e)}},{key:"get",value:function(e){if(!this.has(e))throw new Error('Missing storage "'.concat(e,'".'));return this._items[e]}},{key:"all",value:function(){return this._items}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},106:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._locale=t,this.modal_trigger_title="",this.consent_modal_title="",this.consent_modal_description="",this.consent_modal_revision_message="",this.consent_modal_primary_btn="",this.consent_modal_secondary_btn_settings="",this.consent_modal_secondary_btn_accept_necessary="",this.settings_modal_title="",this.settings_modal_save_settings_btn="",this.settings_modal_accept_all_btn="",this.settings_modal_reject_all_btn="",this.settings_modal_close_btn_label="",this.settings_modal_before_consent_title="",this.settings_modal_before_consent_description="",this.settings_modal_after_consent_title="",this.settings_modal_after_consent_description="",this.functionality_storage_title="",this.functionality_storage_description="",this.personalization_storage_title="",this.personalization_storage_description="",this.security_storage_title="",this.security_storage_description="",this.ad_storage_title="",this.ad_storage_description="",this.analytics_storage_title="",this.analytics_storage_description=""}var n,o,i;return n=e,(o=[{key:"locale",get:function(){return this._locale}},{key:"translate",value:function(e){return this.hasOwnProperty(e)?this[e]:e}},{key:"merge",value:function(e){var t;for(t in e)e.hasOwnProperty(t)&&this.hasOwnProperty(t)&&(this[t]=e[t])}},{key:"exportTranslations",value:function(e,t){var n=[];""===this.settings_modal_before_consent_title&&""===this.settings_modal_before_consent_description||n.push({title:this.settings_modal_before_consent_title,description:this.settings_modal_before_consent_description});var o,i,r=e.all();for(i in r)r.hasOwnProperty(i)&&(o=r[i]).displayInWidget&&this.hasOwnProperty(o.name+"_title")&&n.push({title:this[o.name+"_title"],description:this[o.name+"_description"],toggle:{value:o.name,enabled:o.enabledByDefault,readonly:o.readonly}});return""===this.settings_modal_after_consent_title&&""===this.settings_modal_after_consent_description||n.push({title:this.settings_modal_after_consent_title,description:this.settings_modal_after_consent_description}),{consent_modal:{title:this.consent_modal_title,description:this.consent_modal_description.replace("[[revision_message]]","{{revision_message}}"),revision_message:this.consent_modal_revision_message,primary_btn:{text:this.consent_modal_primary_btn,role:t.consentModalOptions.primary_button_role},secondary_btn:{text:"accept_necessary"===t.consentModalOptions.secondary_button_role?this.consent_modal_secondary_btn_accept_necessary:this.consent_modal_secondary_btn_settings,role:t.consentModalOptions.secondary_button_role}},settings_modal:{title:this.settings_modal_title,save_settings_btn:this.settings_modal_save_settings_btn,accept_all_btn:this.settings_modal_accept_all_btn,reject_all_btn:this.settings_modal_reject_all_btn,close_btn_label:this.settings_modal_close_btn_label,blocks:n}}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},619:(e,t,n)=>{"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=n(106),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._catalogues={}}var t,n,r;return t=e,n=[{key:"addTranslations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._catalogues.hasOwnProperty(e)?t=this._catalogues[e]:(t=new i(e),this._catalogues[e]=t),t.merge(n)}},{key:"translate",value:function(e,t){return this._catalogues.hasOwnProperty(e)?this._catalogues[e].translate(t):t}},{key:"exportTranslations",value:function(e,t){var n,o,i={};for(n in this._catalogues)this._catalogues.hasOwnProperty(n)&&(i[(o=this._catalogues[n]).locale]=o.exportTranslations(e,t));return i}}],n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},217:e=>{"use strict";function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var n=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._document=t,this._dictionary=n}var n,o,i;return n=e,(o=[{key:"create",value:function(e,t){var n=this._document.querySelectorAll(e),o=n.length?n[n.length-1]:void 0;if(!o)return console.log("HTML element with selector ".concat(e," not found.")),{itemElement:void 0,linkElement:void 0};var i,r=o.cloneNode(!0);if(!(i="A"===r.nodeName?r:r.getElementsByTagName("a")[0]||void 0)){i=this._document.createElement("a");var a=r.querySelectorAll("*"),s=a.length?a[a.length-1]:r;s.innerHTML="",s.appendChild(i)}var c=i.querySelectorAll("*"),l=c.length?c[c.length-1]:i;return l.innerHTML=this._dictionary.translate(t,"modal_trigger_title"),i.setAttribute("data-cc","c-settings"),i.setAttribute("href","#cookie-settings"),o.parentNode.appendChild(r),{itemElement:r,textElement:l}}}])&&t(n.prototype,o),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=n},683:e=>{"use strict";function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._document=t}var n,i,r;return n=e,r=[{key:"loadFromConfig",value:function(n,o){var i,r=new e(n),a=o.internal_stylesheets,s=o.defaultStylesheets;for(i in s=[].concat(t(s),t(o.external_stylesheets)))s.hasOwnProperty(i)&&r.loadExternal(s[i]);for(i in a)a.hasOwnProperty(i)&&r.loadInternal(a[i])}}],(i=[{key:"loadExternal",value:function(e){var t=this._document.createElement("link");t.rel="stylesheet",t.href=e,this._appendStylesheet(t)}},{key:"loadInternal",value:function(e){var t=this._document.createElement("style");t.innerText=e.replace(/ {2}|\r\n|\n|\r/gm,""),this._appendStylesheet(t)}},{key:"_appendStylesheet",value:function(e){this._document.getElementsByTagName("head")[0].appendChild(e)}}])&&o(n.prototype,i),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.exports=i},686:()=>{"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(e){var t,n,o,i,r,a,s,c,l,u,p,f,d,_,y,h,g={current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},v={},b={},m=!1,k=!1,w=!1,O=!1,C=!1,j=!0,P=!1,T=null,E=[],A=[],x=!1,S=[],z=[],N=[],R=[],L=[],M=document.documentElement,D=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:0<V(t).length?Object.prototype.hasOwnProperty.call(t,g.current_lang)?g.current_lang:V(t)[0]:void 0},I=function(){function e(e,n){var o=!1,i=!1;try{for(var r,a=e.querySelectorAll(t.join(':not([tabindex="-1"]), ')),s=a.length,c=0;c<s;)r=a[c].getAttribute("data-focus"),i||"1"!==r?"0"===r&&(o=a[c],i||"0"===a[c+1].getAttribute("data-focus")||(i=a[c+1])):i=a[c],c++}catch(n){return e.querySelectorAll(t.join(", "))}n[0]=a[0],n[1]=a[a.length-1],n[2]=o,n[3]=i}var t=["[href]","button","input","details",'[tabindex="0"]'];e(d,z),m&&e(p,S)},B="",F=function(e,t){for(var n=e.length,o=0;o<n;o++)if(e[o]===t)return o;return-1},Y=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},H=function(e,t){function n(e,t,n,o,i,r,a){if(r=r&&r.split(" ")||[],-1<F(t,i)&&(X(e,i),("bar"!==i||"middle"!==r[0])&&-1<F(n,r[0])))for(t=0;t<r.length;t++)X(e,r[t]);-1<F(o,a)&&X(e,a)}if("object"==typeof e){var o=e.consent_modal;e=e.settings_modal,m&&o&&n(p,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],o.layout,o.position,o.transition),!t&&e&&n(f,["bar"],["left","right"],["zoom","slide"],e.layout,e.position,e.transition)}};v.allowedCategory=function(e){return-1<F(JSON.parse(W(g.cookie_name,"one",!0)||"{}").level||[],e)},v.run=function(s){if(!document.getElementById("cc_div")&&(function(e){"number"==typeof e.cookie_expiration&&(g.cookie_expiration=e.cookie_expiration),"number"==typeof e.cookie_necessary_only_expiration&&(g.cookie_necessary_only_expiration=e.cookie_necessary_only_expiration),"boolean"==typeof e.autorun&&(g.autorun=e.autorun),"string"==typeof e.cookie_domain&&(g.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(g.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(g.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(g.cookie_name=e.cookie_name),"function"==typeof e.onAccept&&(i=e.onAccept),"function"==typeof e.onFirstAction&&(a=e.onFirstAction),"function"==typeof e.onChange&&(r=e.onChange),"number"==typeof e.revision&&(-1<e.revision&&(g.revision=e.revision),P=!0),!0===e.autoclear_cookies&&(g.autoclear_cookies=!0),!0===e.use_rfc_cookie&&(g.use_rfc_cookie=!0),!0===e.hide_from_bots&&(x=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),g.page_scripts=!0===e.page_scripts,g.page_scripts_order=!1!==e.page_scripts_order,"browser"===e.auto_language||!0===e.auto_language?g.auto_language="browser":"document"===e.auto_language&&(g.auto_language="document");var t=e.languages;e=e.current_lang,"browser"===g.auto_language?(2<(e=navigator.language||navigator.browserLanguage).length&&(e=e[0]+e[1]),e=e.toLowerCase(),t=D(e,t)):t="document"===g.auto_language?D(document.documentElement.lang,t):"string"==typeof e?g.current_lang=D(e,t):g.current_lang,g.current_lang=t}(s),!x&&(b=JSON.parse(W(g.cookie_name,"one",!0)||"{}"),k=void 0!==b.level,T=void 0!==b.data?b.data:null,j=!("number"==typeof s.revision&&k&&-1<s.revision&&b.revision!==g.revision),function(t,i){(u=Y("div")).id="cc--main",u.style.position="fixed",u.style.zIndex="1000000",u.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var r=u.children[0],a=g.current_lang,s="string"==typeof M.textContent?"textContent":"innerText";_=i,y=function(e){!0===e.force_consent&&X(M,"force--consent");var t=e.languages[a].consent_modal.description;if(P&&(t=j?t.replace("{{revision_message}}",""):t.replace("{{revision_message}}",B||e.languages[a].consent_modal.revision_message||"")),p)h.innerHTML=t;else{p=Y("div");var n=Y("div"),o=Y("div");h=Y("div");var i=Y("div"),c=Y("div");p.id="cm",n.id="c-inr",o.id="c-inr-i",h.id="c-txt",i.id="c-bns",c.id="cm-ov",p.setAttribute("role","dialog"),p.setAttribute("aria-modal","true"),p.setAttribute("aria-hidden","false"),p.setAttribute("aria-labelledby","c-ttl"),p.setAttribute("aria-describedby","c-txt"),p.style.visibility=c.style.visibility="hidden",c.style.opacity=0;var l=e.languages[a].consent_modal.title;if(l){var u=Y("div");u.id="c-ttl",u.setAttribute("role","heading"),u.setAttribute("aria-level","2"),u.insertAdjacentHTML("beforeend",l),o.appendChild(u)}if(h.insertAdjacentHTML("beforeend",t),o.appendChild(h),t=e.languages[a].consent_modal.primary_btn,l=e.languages[a].consent_modal.secondary_btn,t){var f,d=Y("button");d.id="c-p-bn",d.className="c-bn",d[s]=e.languages[a].consent_modal.primary_btn.text,"accept_all"===t.role&&(f="all"),G(d,"click",(function(){v.hide(),v.accept(f)}))}if(l){var _=Y("button");_.id="c-s-bn",_.className="c-bn c_link",_[s]=e.languages[a].consent_modal.secondary_btn.text,"accept_necessary"===l.role?G(_,"click",(function(){v.hide(),v.accept([])})):G(_,"click",(function(){v.showSettings(0)}))}(e=e.gui_options)&&e.consent_modal&&!0===e.consent_modal.swap_buttons?(l&&i.appendChild(_),t&&i.appendChild(d),i.className="swap"):(t&&i.appendChild(d),l&&i.appendChild(_)),n.appendChild(o),(t||l)&&n.appendChild(i),p.appendChild(n),r.appendChild(p),r.appendChild(c),m=!0}},t||y(i),f=Y("div");var c=Y("div"),l=Y("div"),k=Y("div");d=Y("div");var w=Y("div"),O=Y("div"),C=Y("button"),T=Y("div"),E=Y("div"),A=Y("div");f.id="s-cnt",c.id="c-vln",k.id="c-s-in",l.id="cs",w.id="s-ttl",d.id="s-inr",O.id="s-hdr",E.id="s-bl",C.id="s-c-bn",A.id="cs-ov",T.id="s-c-bnc",C.className="c-bn",C.setAttribute("aria-label",i.languages[a].settings_modal.close_btn_label||"Close"),f.setAttribute("role","dialog"),f.setAttribute("aria-modal","true"),f.setAttribute("aria-hidden","true"),f.setAttribute("aria-labelledby","s-ttl"),w.setAttribute("role","heading"),f.style.visibility=A.style.visibility="hidden",A.style.opacity=0,T.appendChild(C),G(c,"keydown",(function(e){27===(e=e||window.event).keyCode&&v.hideSettings(0)}),!0),G(C,"click",(function(){v.hideSettings(0)})),o=i.languages[g.current_lang].settings_modal.blocks,n=i.languages[g.current_lang].settings_modal.cookie_table_headers,C=o.length,w.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.title);for(var x=0;x<C;++x){var S=o[x].title,z=o[x].description,D=o[x].toggle,I=o[x].cookie_table,H=!0===i.remove_cookie_tables,U=(z||!H&&I)&&"truthy",J=Y("div"),W=Y("div");if(z){var q=Y("div");q.className="p",q.insertAdjacentHTML("beforeend",z)}var Z=Y("div");if(Z.className="title",J.className="c-bl",W.className="desc",void 0!==D){var Q="c-ac-"+x,ee=Y(U?"button":"div"),te=Y("label"),ne=Y("input"),oe=Y("span"),ie=Y("span"),re=Y("span"),ae=Y("span");ee.className=U?"b-tl exp":"b-tl",te.className="b-tg",ne.className="c-tgl",re.className="on-i",ae.className="off-i",oe.className="c-tg",ie.className="t-lb",U&&(ee.setAttribute("aria-expanded","false"),ee.setAttribute("aria-controls",Q)),ne.type="checkbox",oe.setAttribute("aria-hidden","true");var se=D.value;ne.value=se,ie[s]=S,ee.insertAdjacentHTML("beforeend",S),Z.appendChild(ee),oe.appendChild(re),oe.appendChild(ae),t?-1<F(b.level,se)?(ne.checked=!0,N.push(!0)):N.push(!1):D.enabled?(ne.checked=!0,N.push(!0)):N.push(!1),R.push(se),D.readonly?(ne.disabled=!0,X(oe,"c-ro"),L.push(!0)):L.push(!1),X(W,"b-acc"),X(Z,"b-bn"),X(J,"b-ex"),W.id=Q,W.setAttribute("aria-hidden","true"),te.appendChild(ne),te.appendChild(oe),te.appendChild(ie),Z.appendChild(te),U&&function(e,t,n){G(ee,"click",(function(){K(t,"act")?($(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(X(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(W,J,ee)}else S&&((U=Y("div")).className="b-tl",U.setAttribute("role","heading"),U.setAttribute("aria-level","3"),U.insertAdjacentHTML("beforeend",S),Z.appendChild(U));if(S&&J.appendChild(Z),z&&W.appendChild(q),!H&&void 0!==I){for(U=document.createDocumentFragment(),Q=0;Q<n.length;++Q)te=Y("th"),H=n[Q],te.setAttribute("scope","col"),H&&(Z=H&&V(H)[0],te[s]=n[Q][Z],U.appendChild(te));for((H=Y("tr")).appendChild(U),(Z=Y("thead")).appendChild(H),(U=Y("table")).appendChild(Z),Q=document.createDocumentFragment(),te=0;te<I.length;te++){for(ne=Y("tr"),oe=0;oe<n.length;++oe)(H=n[oe])&&(Z=V(H)[0],(ie=Y("td")).insertAdjacentHTML("beforeend",I[te][Z]),ie.setAttribute("data-column",H[Z]),ne.appendChild(ie));Q.appendChild(ne)}(I=Y("tbody")).appendChild(Q),U.appendChild(I),W.appendChild(U)}(D&&S||!D&&(S||z))&&(J.appendChild(W),E.appendChild(J))}t=Y("div"),q=Y("button"),C=Y("button"),t.id="s-bns",q.id="s-sv-bn",C.id="s-all-bn",q.className="c-bn",C.className="c-bn",q.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.save_settings_btn),C.insertAdjacentHTML("beforeend",i.languages[g.current_lang].settings_modal.accept_all_btn),t.appendChild(C),(i=i.languages[g.current_lang].settings_modal.reject_all_btn)&&((x=Y("button")).id="s-rall-bn",x.className="c-bn",x.insertAdjacentHTML("beforeend",i),G(x,"click",(function(){v.hideSettings(),v.hide(),v.accept([])})),d.className="bns-t",t.appendChild(x)),t.appendChild(q),G(q,"click",(function(){v.hideSettings(),v.hide(),v.accept()})),G(C,"click",(function(){v.hideSettings(),v.hide(),v.accept("all")})),O.appendChild(w),O.appendChild(T),d.appendChild(O),d.appendChild(E),d.appendChild(t),k.appendChild(d),l.appendChild(k),c.appendChild(l),f.appendChild(c),r.appendChild(f),r.appendChild(A),(e||document.body).appendChild(u)}(!(m=!k||!j),s),function(e,t){if("string"!=typeof e||""===e||document.getElementById("cc--style"))t();else{var n=Y("style");n.id="cc--style";var o=new XMLHttpRequest;o.onreadystatechange=function(){4===this.readyState&&200===this.status&&(n.setAttribute("type","text/css"),n.styleSheet?n.styleSheet.cssText=this.responseText:n.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(n),t())},o.open("GET",e),o.send()}}(s.theme_css,(function(){I(),H(s.gui_options),function(){for(var e=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),t=0;t<e.length;t++)e[t].setAttribute("aria-haspopup","dialog"),G(e[t],"click",(function(e){v.showSettings(0),e.preventDefault?e.preventDefault():e.returnValue=!1}))}(),g.autorun&&m&&v.show(s.delay||0),setTimeout((function(){X(u,"c--anim")}),30),setTimeout((function(){!function(){var e=!1,n=!1;G(document,"keydown",(function(o){"Tab"===(o=o||window.event).key&&(t&&(o.shiftKey?document.activeElement===t[0]&&(t[1].focus(),o.preventDefault()):document.activeElement===t[1]&&(t[0].focus(),o.preventDefault()),n||C||(n=!0,!e&&o.preventDefault(),o.shiftKey?t[3]?t[2]?t[2].focus():t[0].focus():t[1].focus():t[3]?t[3].focus():t[0].focus())),!n&&(e=!0))})),document.contains&&G(u,"click",(function(e){e=e||window.event,O?d.contains(e.target)?C=!0:(v.hideSettings(0),C=!1):w&&p.contains(e.target)&&(C=!0)}),!0)}()}),100)})),k&&j))){var c="boolean"==typeof b.rfc_cookie;(!c||c&&b.rfc_cookie!==g.use_rfc_cookie)&&(b.rfc_cookie=g.use_rfc_cookie,J(g.cookie_name,JSON.stringify(b))),U(),"function"==typeof s.onAccept&&s.onAccept(b)}},v.showSettings=function(e){setTimeout((function(){X(M,"show--settings"),f.setAttribute("aria-hidden","false"),O=!0,setTimeout((function(){w?l=document.activeElement:c=document.activeElement,0!==z.length&&(z[3]?z[3].focus():z[0].focus(),t=z)}),200)}),0<e?e:0)};var U=function(){if(g.page_scripts){var e=document.querySelectorAll("script["+g.script_selector+"]"),t=g.page_scripts_order,n=b.level||[],o=function(e,i){if(i<e.length){var r=e[i],a=r.getAttribute(g.script_selector);if(-1<F(n,a)){r.type="text/javascript",r.removeAttribute(g.script_selector),a=r.getAttribute("data-src");var s=Y("script");if(s.textContent=r.innerHTML,function(e,t){for(var n=t.attributes,o=n.length,i=0;i<o;i++)t=n[i],e.setAttribute(t.nodeName,t.nodeValue)}(s,r),a?s.src=a:a=r.src,a&&(t?s.readyState?s.onreadystatechange=function(){"loaded"!==s.readyState&&"complete"!==s.readyState||(s.onreadystatechange=null,o(e,++i))}:s.onload=function(){s.onload=null,o(e,++i)}:a=!1),r.parentNode.replaceChild(s,r),a)return}o(e,++i)}};o(e,0)}};v.set=function(e,t){switch(e){case"data":e=t.value;var n=!1;if("update"===t.mode)if((t=typeof(T=v.get("data"))==typeof e)&&"object"==typeof T)for(var o in!T&&(T={}),e)T[o]!==e[o]&&(T[o]=e[o],n=!0);else!t&&T||T===e||(T=e,n=!0);else T=e,n=!0;return n&&(b.data=T,J(g.cookie_name,JSON.stringify(b))),n;case"revision":return o=t.value,e=t.prompt_consent,t=t.message,u&&"number"==typeof o&&b.revision!==o?(P=!0,B=t,j=!1,g.revision=o,!0===e?(y(_),H(_.gui_options,!0),I(),v.show()):v.accept(),t=!0):t=!1,t;default:return!1}},v.get=function(e,t){return JSON.parse(W(t||g.cookie_name,"one",!0)||"{}")[e]},v.getConfig=function(e){return g[e]},v.getUserPreferences=function(){E=b.level||[];var e=L.filter((function(e){return!0===e})).length;return A=R.filter((function(e){return-1===F(E,e)})),{accept_type:s=E.length===R.length?"all":0<=A.length&&E.length===e?"necessary":"custom",accepted_categories:E,rejected_categories:A}},v.loadScript=function(e,t,n){var o="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))o&&t();else{var i=Y("script");if(n&&0<n.length)for(var r=0;r<n.length;++r)n[r]&&i.setAttribute(n[r].name,n[r].value);o&&(i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,t())}:i.onload=t),i.src=e,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(i)}},v.updateScripts=function(){U()},v.show=function(e){m&&setTimeout((function(){X(M,"show--consent"),p.setAttribute("aria-hidden","false"),w=!0,setTimeout((function(){c=document.activeElement,t=S}),200)}),0<e?e:0)},v.hide=function(){m&&($(M,"show--consent"),p.setAttribute("aria-hidden","true"),w=!1,setTimeout((function(){c.focus(),t=null}),200))},v.hideSettings=function(){$(M,"show--settings"),O=!1,f.setAttribute("aria-hidden","true"),setTimeout((function(){w?(l&&l.focus(),t=S):(c.focus(),t=null),C=!1}),200)},v.accept=function(e,t){var s=t||[];if(t=[],e=e||void 0)if("object"==typeof e&&"number"==typeof e.length)for(var c=0;c<e.length;c++)-1!==F(R,e[c])&&t.push(e[c]);else"string"==typeof e&&("all"===e?t=R.slice():-1!==F(R,e)&&t.push(e));else t=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(1<=s.length)for(c=0;c<s.length;c++)t=t.filter((function(e){return e!==s[c]}));for(c=0;c<R.length;c++)!0===L[c]&&-1===F(t,R[c])&&t.push(R[c]);!function(e){var t=document.querySelectorAll(".c-tgl")||[],s=[],c=!1;if(0<t.length){for(var l=0;l<t.length;l++)-1!==F(e,R[l])?(t[l].checked=!0,N[l]||(s.push(R[l]),N[l]=!0)):(t[l].checked=!1,N[l]&&(s.push(R[l]),N[l]=!1));if(g.autoclear_cookies&&k&&0<s.length){t=o.length,l=-1;var u=W("","all"),p=[g.cookie_domain,"."+g.cookie_domain];if("www."===g.cookie_domain.slice(0,4)){var f=g.cookie_domain.substr(4);p.push(f),p.push("."+f)}for(f=0;f<t;f++){var d=o[f];if(Object.prototype.hasOwnProperty.call(d,"toggle")&&!N[++l]&&Object.prototype.hasOwnProperty.call(d,"cookie_table")&&-1<F(s,d.toggle.value)){var _=d.cookie_table,y=V(n[0])[0],h=_.length;"on_disable"===d.toggle.reload&&(c=!0);for(var m=0;m<h;m++){var w=_[m],O=[],C=w[y],P=w.is_regex||!1,E=w.domain||null;if(w=w.path||!1,E&&(p=[E,"."+E]),P)for(P=0;P<u.length;P++)u[P].match(C)&&O.push(u[P]);else-1<(C=F(u,C))&&O.push(u[C]);0<O.length&&(q(O,w,p),"on_clear"===d.toggle.reload&&(c=!0))}}}}}b={level:e,revision:g.revision,data:T,rfc_cookie:g.use_rfc_cookie},(!k||0<s.length||!j)&&(j=!0,J(g.cookie_name,JSON.stringify(b)),U()),k?("function"==typeof r&&0<s.length&&r(b,s),c&&window.location.reload()):("function"==typeof a&&a(v.getUserPreferences(),b),"function"==typeof i&&i(b),k=!0)}(t)},v.eraseCookies=function(e,t,n){var o=[];if(n=n?[n,"."+n]:[g.cookie_domain,"."+g.cookie_domain],"object"==typeof e&&0<e.length)for(var i=0;i<e.length;i++)this.validCookie(e[i])&&o.push(e[i]);else this.validCookie(e)&&o.push(e);q(o,t,n)};var J=function(e,t){var n=g.cookie_expiration;"number"==typeof g.cookie_necessary_only_expiration&&"necessary"===s&&(n=g.cookie_necessary_only_expiration),t=g.use_rfc_cookie?encodeURIComponent(t):t;var o=new Date;o.setTime(o.getTime()+864e5*n),e=e+"="+(t||"")+(n="; expires="+o.toUTCString())+"; Path="+g.cookie_path+";",e+=" SameSite="+g.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(e+=" Domain="+g.cookie_domain+";"),"https:"===window.location.protocol&&(e+=" Secure;"),document.cookie=e},W=function(e,t,n){var o;if("one"===t){if((o=(o=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?o.pop():e:"")&&e===g.cookie_name){try{o=JSON.parse(o)}catch(e){try{o=JSON.parse(decodeURIComponent(o))}catch(e){o={}}}o=JSON.stringify(o)}}else if("all"===t)for(e=document.cookie.split(/;\s*/),o=[],t=0;t<e.length;t++)o.push(e[t].split("=")[0]);return o},q=function(e,t,n){t=t||"/";for(var o=0;o<e.length;o++)for(var i=0;i<n.length;i++)document.cookie=e[o]+"=; path="+t+(-1<n[i].indexOf(".")?"; domain="+n[i]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};v.validCookie=function(e){return""!==W(e,"one",!0)};var G=function(e,t,n,o){e.addEventListener?!0===o?e.addEventListener(t,n,{passive:!0}):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},V=function(e){if("object"==typeof e){var t=[],n=0;for(t[n++]in e);return t}},X=function(e,t){e.classList?e.classList.add(t):K(e,t)||(e.className+=" "+t)},$=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},K=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return v})},598:(e,t,n)=>{var o={"./cs":247,"./cs.json":247,"./en":453,"./en.json":453,"./sk":705,"./sk.json":705};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id=598},247:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Nastavení cookies","consent_modal_title":"Používáme cookies!","consent_modal_description":"Na našich webových stránkách používáme soubory cookies. Některé z nich jsou nezbytné, zatímco jiné nám pomáhají vylepšít tento web a váš uživatelský zážitek.","consent_modal_primary_btn":"Souhlasím","consent_modal_secondary_btn_settings":"Přizpůsobit","consent_modal_secondary_btn_accept_necessary":"Povolit nezbytné cookies","settings_modal_title":"Nastavení cookies","settings_modal_save_settings_btn":"Uložit nastavení","settings_modal_accept_all_btn":"Povolit všechny cookies","settings_modal_reject_all_btn":"Povolit nezbytné cookies","settings_modal_close_btn_label":"Zavřít","settings_modal_before_consent_title":"Použití cookies","settings_modal_before_consent_description":"Soubory cookie používáme k zajištění základních funkcí webu a ke zlepšení vašeho uživatelského zážitku. Souhlas pro každou kategorii můžete kdykoliv změnit.","settings_modal_after_consent_title":"Více informací","settings_modal_after_consent_description":"Máte-li jakékoli dotazy týkající se používání souborů cookie a vašich voleb, kontaktujte nás prosím.","functionality_storage_title":"Nezbytně nutné soubory cookies","functionality_storage_description":"Tyto soubory cookie jsou nezbytné pro správné fungování našich webových stránek. Bez těchto souborů cookie by webové stránky nefungovaly správně.","personalization_storage_title":"Personalizační cookies","personalization_storage_description":"Personalizační soubory cookie mohou používat soubory cookie třetích stran, které jim pomáhají přizpůsobit obsah a umožňují sledovat uživatele na různých webových stránkách a zařízeních.","security_storage_title":"Bezpečnostní cookies","security_storage_description":"Bezpečnostní soubory cookie umožňují ukládání informací souvisejících se zabezpečením, např. ověřování, ochrana před podvody a další prostředky na ochranu uživatele.","ad_storage_title":"Reklamní cookies","ad_storage_description":"Reklamní cookies používáme my nebo naši partneři, abychom Vám mohli zobrazit vhodné obsahy nebo reklamy jak na našich stránkách, tak na stránkách třetích subjektů. Díky tomu můžeme vytvářet profily založené na Vašich zájmech, tak zvané pseudonymizované profily. Na základě těchto informací není zpravidla možná bezprostřední identifikace Vaší osoby, protože jsou používány pouze pseudonymizované údaje. Pokud nevyjádříte souhlas, nebudete příjemcem obsahů a reklam přizpůsobených Vašim zájmům.","analytics_storage_title":"Analytické cookies","analytics_storage_description":"Analytické cookies nám umožňují měření výkonu našeho webu a našich reklamních kampaní. Jejich pomocí určujeme počet návštěv a zdroje návštěv našich internetových stránek. Data získaná pomocí těchto cookies zpracováváme souhrnně, bez použití identifikátorů, které ukazují na konkrétní uživatelé našeho webu. Pokud vypnete používání analytických cookies ve vztahu k Vaší návštěvě, ztrácíme možnost analýzy výkonu a optimalizace našich opatření."}')},453:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Cookie settings","consent_modal_title":"We use cookies!","consent_modal_description":"This website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent.","consent_modal_primary_btn":"I agree","consent_modal_secondary_btn_settings":"Customize","consent_modal_secondary_btn_accept_necessary":"Accept necessary","settings_modal_title":"Cookie settings","settings_modal_save_settings_btn":"Save settings","settings_modal_accept_all_btn":"Accept all","settings_modal_reject_all_btn":"Accept necessary","settings_modal_close_btn_label":"Close","settings_modal_before_consent_title":"Cookie usage","settings_modal_before_consent_description":"We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want.","settings_modal_after_consent_title":"More information","settings_modal_after_consent_description":"For any queries in relation to my policy on cookies and your choices, please contact us.","functionality_storage_title":"Functionality cookies","functionality_storage_description":"These cookies are necessary for the proper functioning of our website. Without these cookies, the website might not be working properly.","personalization_storage_title":"Personalization cookies","personalization_storage_description":"Personalisation cookies may use third party cookies to help them personalise content and track users across different websites and devices.","security_storage_title":"Security cookies","security_storage_description":"Security cookies allows storage of security-related information, such as authentication, fraud protection, and other means to protect the user.","ad_storage_title":"Ad cookies","ad_storage_description":"Advertising cookies are used by us or our partners to show you relevant content or advertisements both on our site and on third party sites. This enables us to create profiles based on your interests, so-called pseudonymised profiles. Based on this information, it is generally not possible to directly identify you as a person, as only pseudonymised data is used. Unless you express your consent, you will not receive content and advertisements tailored to your interests.","analytics_storage_title":"Analytics cookies","analytics_storage_description":"Analytics cookies allow us to measure the performance of our website and our advertising campaigns. We use them to determine the number of visits and sources of visits to our website. We process the data obtained through these cookies in aggregate, without using identifiers that point to specific users of our website. If you disable the use of analytics cookies in relation to your visit, we lose the ability to analyse performance and optimise our measures."}')},705:e=>{"use strict";e.exports=JSON.parse('{"modal_trigger_title":"Nastavenia cookies","consent_modal_title":"Používame súbory cookies!","consent_modal_description":"Na našich webových stránkach používame súbory cookies. Niektoré sú nevyhnutné, iné nám pomáhajú zlepšovať túto webovú stránku a váš používateľský zážitok.","consent_modal_primary_btn":"Súhlasím","consent_modal_secondary_btn_settings":"Prispôsobiť","consent_modal_secondary_btn_accept_necessary":"Povoliť potrebné súbory cookies","settings_modal_title":"Nastavenia cookies","settings_modal_save_settings_btn":"Uložiť nastavenia","settings_modal_accept_all_btn":"Povoliť všetky cookies","settings_modal_reject_all_btn":"Povoliť potrebné cookies","settings_modal_close_btn_label":"Zavrieť","settings_modal_before_consent_title":"Používanie súborov cookies","settings_modal_before_consent_description":"Súbory cookie používame na zabezpečenie základných funkcií stránky a na zlepšenie vášho používateľského zážitku. Svoj súhlas pre každú kategóriu môžete kedykoľvek zmeniť.","settings_modal_after_consent_title":"Ďalšie informácie","settings_modal_after_consent_description":"Ak máte akékoľvek otázky týkajúce sa používania súborov cookie a vašich volieb, kontaktujte nás.","functionality_storage_title":"Potrebné cookies","functionality_storage_description":"Tieto súbory cookie sú potrebné na správne fungovanie našej webovej stránky. Bez týchto súborov cookie by webová stránka nefungovala správne.","personalization_storage_title":"Súbory cookie na prispôsobenie obsahu","personalization_storage_description":"Súbory cookie na prispôsobenie obsahu môžu používať súbory cookie tretích strán, ktoré im pomáhajú prispôsobiť obsah a umožňujú im sledovať používateľov na rôznych webových stránkach a zariadeniach.","security_storage_title":"Bezpečnostné cookie","security_storage_description":"Bezpečnostné súbory cookie umožňujú ukladanie informácií súvisiacich s bezpečnosťou, ako je overovanie, ochrana pred podvodmi a iné prostriedky ochrany používateľa.","ad_storage_title":"Reklamné cookies","ad_storage_description":"Reklamné súbory cookie používame my alebo naši partneri na zobrazovanie relevantného obsahu alebo reklám na našej stránke aj na stránkach tretích strán. To nám umožňuje vytvárať profily na základe vašich záujmov, tzv. pseudonymizované profily. Na základe týchto informácií vás vo všeobecnosti nie je možné priamo identifikovať ako osobu, pretože sa používajú len pseudonymizované údaje. Ak nevyjadríte svoj súhlas, nebudete dostávať obsah a reklamy prispôsobené vašim záujmom.","analytics_storage_title":"Analytické cookies","analytics_storage_description":"Analytické súbory cookie nám umožňujú merať výkonnosť našej webovej stránky a našich reklamných kampaní. Používame ich na určenie počtu návštev a zdrojov návštev našich webových stránok. Údaje získané prostredníctvom týchto súborov cookie spracúvame súhrnne bez použitia identifikátorov, ktoré by poukazovali na konkrétnych používateľov našej webovej stránky. Ak zakážete používanie analytických súborov cookie v súvislosti s vašou návštevou, stratíme možnosť analyzovať výkon a optimalizovať naše opatrenia."}')}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=n(10);CookieConsentWrapper=o})(); |
{ | ||
"name": "68publishers-cookie-consent", | ||
"version": "0.3.2-beta.1", | ||
"version": "0.3.2-beta.2", | ||
"description": "Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://www.68publishers.io/", |
@@ -7,2 +7,3 @@ 'use strict'; | ||
const UiOptions = require('./UiOptions'); | ||
const AutoClearOptions = require('./AutoClearOptions'); | ||
@@ -15,2 +16,3 @@ class Config { | ||
this.uiOptions = new UiOptions(); | ||
this.autoClearOptions = new AutoClearOptions(); | ||
} | ||
@@ -17,0 +19,0 @@ |
@@ -7,24 +7,25 @@ 'use strict'; | ||
// options managed by the GTM template: | ||
this.autorun = true; | ||
this.delay = 0; | ||
this.hide_from_bots = false; | ||
this.cookie_name = 'cc-settings'; | ||
this.cookie_expiration = 182; // 6 months in days | ||
this.cookie_path = '/'; | ||
this.cookie_domain = window.location.hostname; | ||
this.cookie_same_site = 'Lax'; | ||
this.use_rfc_cookie = false; | ||
//this.theme_css = ''; useless of our use case | ||
this.force_consent = false; | ||
this.revision = 0; | ||
this.current_lang = 'en'; | ||
this.auto_language = 'document'; | ||
this.autoclear_cookies = false; | ||
this.page_scripts = false; | ||
this.script_selector = 'data-cookiecategory'; | ||
// another options for the original plugin | ||
this.cookie_path = '/'; | ||
this.cookie_domain = window.location.hostname; | ||
this.cookie_same_site = 'Lax'; | ||
this.use_rfc_cookie = false; | ||
this.remove_cookie_tables = false; | ||
this.hide_from_bots = false; | ||
// unsupported options (custom reimplementation) | ||
//this.theme_css = ''; useless for our use case | ||
//this.autoclear_cookies = false; implemented in the AutoClearOptions | ||
} | ||
@@ -31,0 +32,0 @@ |
@@ -10,6 +10,11 @@ 'use strict'; | ||
this.transition = 'zoom'; | ||
this.modal_trigger_selector = null; | ||
} | ||
exportCookieConsentConfig() { | ||
return {...this}; | ||
return { | ||
layout: this.layout, | ||
position: this.position, | ||
transition: this.transition | ||
}; | ||
} | ||
@@ -16,0 +21,0 @@ } |
@@ -10,4 +10,2 @@ 'use strict'; | ||
this.internal_stylesheets = []; | ||
this.modal_trigger_selector = null; | ||
} | ||
@@ -14,0 +12,0 @@ |
'use strict'; | ||
const AutoClearOptions = require('./Config/AutoClearOptions'); | ||
class ConsentManager { | ||
constructor(cookieConsent, storagePool, eventTriggers, gtag) { | ||
constructor(cookieConsent, config, storagePool, eventTriggers, gtag) { | ||
this._cookieConsent = cookieConsent; | ||
this._config = config; | ||
this._storagePool = storagePool; | ||
@@ -11,2 +14,8 @@ this._eventTriggers = eventTriggers; | ||
onFirstAction(userPreferences) { | ||
if ('all' !== userPreferences.accept_type && 0 < userPreferences.rejected_categories.length) { | ||
this._autoClearCookies(); | ||
} | ||
} | ||
onAccept() { | ||
@@ -16,4 +25,18 @@ this._updateConsent(); | ||
onChange() { | ||
this._updateConsent(); | ||
onChange(cookie, changedCategories) { | ||
const consent = this._updateConsent(); | ||
if (0 < changedCategories.length) { | ||
for (let changedCategoryKey in changedCategories) { | ||
if (!changedCategories.hasOwnProperty(changedCategoryKey) || !consent.hasOwnProperty(changedCategories[changedCategoryKey])) { | ||
continue; | ||
} | ||
if ('denied' === consent[changedCategories[changedCategoryKey]]) { | ||
this._autoClearCookies(); | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
@@ -62,5 +85,37 @@ | ||
} | ||
return consent; | ||
} | ||
_autoClearCookies() { | ||
if (!this._config.autoClearOptions.enabled) { | ||
return; | ||
} | ||
const allCookies = document.cookie.split(/;\s*/); | ||
const cookiesForDeletion = []; | ||
const strategy = this._config.autoClearOptions.strategy; | ||
const cookieNames = this._config.autoClearOptions.cookie_names || []; | ||
for(let i = 0; i < allCookies.length; i++){ | ||
const name = allCookies[i].split("=")[0]; | ||
if (this._config.pluginOptions.cookie_name === name) { | ||
continue; | ||
} | ||
if ((AutoClearOptions.STRATEGY_CLEAR_ALL_EXCEPT_DEFINED === strategy && -1 === cookieNames.indexOf(name)) | ||
|| AutoClearOptions.STRATEGY_CLEAR_DEFINED_ONLY === strategy && -1 !== cookieNames.indexOf(name) | ||
) { | ||
cookiesForDeletion.push(name); | ||
} | ||
} | ||
if (0 < cookiesForDeletion.length) { | ||
this._cookieConsent.eraseCookies(cookiesForDeletion); | ||
} | ||
} | ||
} | ||
module.exports = ConsentManager; |
@@ -33,2 +33,6 @@ 'use strict'; | ||
setAutoClearOptions(options) { | ||
this._config.autoClearOptions.merge(options || {}); | ||
} | ||
setConsentModalOptions(options) { | ||
@@ -116,8 +120,9 @@ this._config.consentModalOptions.merge(options || {}); | ||
self._cookieConsent = initCookieConsent(); | ||
const consentManager = new ConsentManager(self._cookieConsent, self._storagePool, Object.values(self._eventTriggers), self._gtag); | ||
const consentManager = new ConsentManager(self._cookieConsent, self._config, self._storagePool, Object.values(self._eventTriggers), self._gtag); | ||
// build cookie consent config | ||
const config = self._config.exportCookieConsentConfig(); | ||
config.onFirstAction = (userPreferences) => consentManager.onFirstAction(userPreferences); | ||
config.onAccept = () => consentManager.onAccept(); | ||
config.onChange = () => consentManager.onChange(); | ||
config.onChange = (cookie, changedCategories) => consentManager.onChange(cookie, changedCategories); | ||
config.languages = self._dictionary.exportTranslations(self._storagePool, self._config); | ||
@@ -128,6 +133,6 @@ | ||
// load modal trigger, must be created before cookieconsent.run() | ||
if (document && 'string' === typeof self._config.uiOptions.modal_trigger_selector) { | ||
if (document && 'string' === typeof self._config.settingsModalOptions.modal_trigger_selector) { | ||
const modalTriggerFactory = new ModalTriggerFactory(document, self._dictionary); | ||
modalTriggerElements = modalTriggerFactory.create(self._config.uiOptions.modal_trigger_selector, self._config.pluginOptions.current_lang || document.documentElement.lang); | ||
modalTriggerElements = modalTriggerFactory.create(self._config.settingsModalOptions.modal_trigger_selector, self._config.pluginOptions.current_lang || document.documentElement.lang); | ||
} | ||
@@ -134,0 +139,0 @@ |
@@ -15,2 +15,3 @@ 'use strict'; | ||
this._setupPluginOptions(cookieConsentWrapper, wrapperConfig); | ||
this._setupAutoClearOptions(cookieConsentWrapper, wrapperConfig); | ||
this._setupConsentModalOptions(cookieConsentWrapper, wrapperConfig); | ||
@@ -49,2 +50,8 @@ this._setupSettingsModalOptions(cookieConsentWrapper, wrapperConfig); | ||
_setupAutoClearOptions(wrapper, wrapperConfig) { | ||
if (wrapperConfig.hasOwnProperty('auto_clear_options') && 'object' === typeof wrapperConfig.auto_clear_options) { | ||
wrapper.setAutoClearOptions(wrapperConfig.auto_clear_options); | ||
} | ||
} | ||
_setupConsentModalOptions(wrapper, wrapperConfig) { | ||
@@ -51,0 +58,0 @@ if (wrapperConfig.hasOwnProperty('consent_modal_options') && 'object' === typeof wrapperConfig.consent_modal_options) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121163
28
944