chefcookie 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [2.6.1](https://github.com/vielhuber/chefcookie/compare/2.6.1...2.6.1)
7
+ #### [2.6.2](https://github.com/vielhuber/chefcookie/compare/2.6.2...2.6.2)
8
+
9
+ #### [2.6.2](https://github.com/vielhuber/chefcookie/compare/2.6.1...2.6.2)
10
+
11
+ > 20 April 2022
12
+
13
+ - Reset styles. [`77951ab`](https://github.com/vielhuber/chefcookie/commit/77951abaa2bd0a8c0545c7272ac1af907b4b7b7a)
14
+ - Update changelog. [`80f129e`](https://github.com/vielhuber/chefcookie/commit/80f129e8590a1575e4071fc526ae2573616bfd15)
8
15
 
9
16
  #### [2.6.1](https://github.com/vielhuber/chefcookie/compare/2.6.0...2.6.1)
10
17
 
package/_build/script.js CHANGED
@@ -665,6 +665,7 @@ var chefcookie = /*#__PURE__*/function () {
665
665
  document.cookie = _cookie.default.serialize(cookie_name, value, _objectSpread({
666
666
  httpOnly: false,
667
667
  maxAge: 60 * 60 * 24 * days,
668
+ path: '/',
668
669
  domain: cookie_domain && window.location.hostname.endsWith(cookie_domain) ? cookie_domain : undefined
669
670
  }, options));
670
671
  }
package/chefcookie.min.js CHANGED
@@ -1,4 +1,4 @@
1
- !function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[c]={exports:{}};t[c][0].call(l.exports,(function(e){return r(t[c][1][e]||e)}),l,l.exports,e,t,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c<o.length;c++)r(o[c]);return r}({1:[function(e,t,n){"use strict";var o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("@babel/runtime/helpers/classCallCheck")),i=o(e("@babel/runtime/helpers/createClass")),c=function(){function e(){(0,r.default)(this,e)}return(0,i.default)(e,null,[{key:"getParam",value:function(e){var t=window.location.search;if(""==t)return null;for(var n=t.substring(1).split("&"),o=0;o<n.length;o++){var r=n[o].split("=");if(r[0]==e&&""!=r[1])return r[1]}return null}},{key:"urlHostTopLevel",value:function(){var e=window.location.hostname;if(e.match(/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/))return e;for(e=e.split(".");e.length>2;)e.shift();return e=e.join(".")}}]),e}();n.default=c},{"@babel/runtime/helpers/classCallCheck":7,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/interopRequireDefault":10}],2:[function(e,t,n){"use strict";var o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("@babel/runtime/helpers/slicedToArray")),i=o(e("@babel/runtime/helpers/typeof")),c=o(e("@babel/runtime/helpers/defineProperty")),s=o(e("@babel/runtime/helpers/classCallCheck")),a=o(e("@babel/runtime/helpers/createClass"));e("mdn-polyfills/Object.entries"),e("mdn-polyfills/Object.values"),e("mdn-polyfills/Number.isInteger"),e("mdn-polyfills/Element.prototype.closest"),e("mdn-polyfills/Node.prototype.remove"),e("@babel/polyfill/noConflict");var u=o(e("./_helper")),l=o(e("cookie"));function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(this,e);var n={exclude_ua_regex:/(Speed Insights|Chrome-Lighthouse|PSTS[\d\.]+)/,domain:u.default.urlHostTopLevel()};this.config=p(p({},n),t),this.config.settings.forEach((function(e,t){"scripts"in e&&0!==Object.keys(e.scripts).length||(e.scripts={},e.scripts["dummy_group_"+t]={})})),this.isDestroyed=!1,this.isOpened=!1,"chefcookie_loaded"in window||(window.chefcookie_loaded=[]),this.scrollDepthTriggeredOnce=!1,this.scrollDepthTriggered={1:!1,10:!1,25:!1,50:!1,75:!1,100:!1},this.eventListeners=[],this.animationSpeed=300,this.scrollPosition=0}return(0,a.default)(e,[{key:"init",value:function(){if(!0===this.config.exclude_google_pagespeed&&(this.config.exclude_ua_regex=/(Speed Insights|Chrome-Lighthouse)/),void 0===this.config.exclude_ua_regex||!navigator.userAgent.match(this.config.exclude_ua_regex)){if(this.isExcluded())return this.bindOptOutOptIn(),void this.updateOptOutOptIn();this.forceAccept()&&(this.autoAcceptAllScripts(),this.setCookieToHideOverlay()),this.isCookieSetToHideOverlay()?this.addEnabledScripts(!1):(this.autoAcceptBasicScripts(),this.open(),this.trackFirstUserInteraction()),this.bindOptOutOptIn(),this.updateOptOutOptIn()}}},{key:"open",value:function(){!0!==this.isOpened&&(this.isOpened=!0,this.addStyle(),this.buildDom(),this.addHtmlClasses(),this.animationIn(),this.bindButtons(),this.fixMaxHeight(),this.logTracking("open"))}},{key:"close",value:function(){if(!1!==this.isOpened){if(this.isOpened=!1,document.documentElement.classList.remove("chefcookie--visible"),document.documentElement.classList.remove("chefcookie--fade"),document.documentElement.classList.remove("chefcookie--noscroll"),"topbar"!==this.config.style.layout){var e=null,t=null;"auto"!==window.getComputedStyle(document.body).scrollBehavior&&(e=window.getComputedStyle(document.body).scrollBehavior,document.body.style.scrollBehavior="auto"),"auto"!==window.getComputedStyle(document.documentElement).scrollBehavior&&(t=window.getComputedStyle(document.documentElement).scrollBehavior,document.documentElement.style.scrollBehavior="auto"),document.body.style.top="auto",window.scrollTo(0,this.scrollPosition),null!==e&&(document.body.style.scrollBehavior=e),null!==t&&(document.documentElement.style.scrollBehavior=t)}document.documentElement.classList.remove("chefcookie--blur"),this.animationOut(),setTimeout((function(){document.querySelector(".chefcookie").remove(),document.querySelector(".chefcookie-styles").remove()}),this.animationSpeed)}}},{key:"isOpen",value:function(){return this.isOpened}},{key:"isClosed",value:function(){return!this.isOpened}},{key:"animationIn",value:function(){var e=this;document.querySelector(".chefcookie__inner").style.overflowY="hidden","topbar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"bottombar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"overlay"===this.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="scale(0.7)"),requestAnimationFrame((function(){setTimeout((function(){document.querySelector(".chefcookie").style.transition="opacity "+e.animationSpeed/1e3+"s ease-in-out, margin "+e.animationSpeed/1e3+"s ease-in-out",document.querySelector(".chefcookie__box").style.transition="transform "+e.animationSpeed/1e3+"s ease-in-out",document.querySelector(".chefcookie").classList.remove("chefcookie--hidden"),"topbar"===e.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop="0px"),"bottombar"===e.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom="0px"),"overlay"===e.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="none"),requestAnimationFrame((function(){setTimeout((function(){document.querySelector(".chefcookie__inner").style.overflowY="auto"}),e.animationSpeed+30)}))}),30)}))}},{key:"animationOut",value:function(){document.querySelector(".chefcookie__inner").style.overflowY="hidden",document.querySelector(".chefcookie").classList.add("chefcookie--hidden"),"topbar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"bottombar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"overlay"===this.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="scale(0.7)")}},{key:"destroy",value:function(){this.close(),this.config={},this.isDestroyed=!0,this.isOpened=!1,this.unregisterAllEventListeners(),this.eventListeners=[]}},{key:"forceAccept",value:function(){return"1"===u.default.getParam("accept")}},{key:"bindOptOutOptIn",value:function(){var e=this;this.registerEventListener(document,"click",(function(t){if(t.target.hasAttribute("data-cc-disable")||"A"!==t.target.tagName&&t.target.closest("[data-cc-disable]")){var n=t.target.closest("[data-cc-disable]");e.isAccepted(n.getAttribute("data-cc-disable"))?e.decline(n.getAttribute("data-cc-disable"),!0):e.accept(n.getAttribute("data-cc-disable"),!0),e.updateOptOutOptIn(),t.preventDefault()}})),this.registerEventListener(document,"click",(function(t){if(t.target.hasAttribute("data-cc-enable")||"A"!==t.target.tagName&&t.target.closest("[data-cc-enable]")){var n=t.target.closest("[data-cc-enable]");e.isAccepted(n.getAttribute("data-cc-enable"))||e.accept(n.getAttribute("data-cc-enable"),!0),e.updateOptOutOptIn(),t.preventDefault()}})),this.registerEventListener(document,"click",(function(t){(t.target.hasAttribute("data-cc-open")||"A"!==t.target.tagName&&t.target.closest("[data-cc-open]"))&&(e.open(),t.preventDefault())}))}},{key:"updateOptOutOptIn",value:function(){var e=this;null!==document.querySelector("[data-disable]")&&[].forEach.call(document.querySelectorAll("[data-disable]"),(function(e){e.hasAttribute("data-cc-disable")||e.setAttribute("data-cc-disable",e.getAttribute("data-disable"))})),null!==document.querySelector("[data-message]")&&[].forEach.call(document.querySelectorAll("[data-message]"),(function(e){e.hasAttribute("data-cc-message")||e.setAttribute("data-cc-message",e.getAttribute("data-message"))})),null!==document.querySelector("[data-cc-disable]")&&[].forEach.call(document.querySelectorAll("[data-cc-disable]"),(function(e){e.hasAttribute("data-cc-message-original")||e.setAttribute("data-cc-message-original",e.textContent)})),null!==document.querySelector("[data-cc-disable]")&&[].forEach.call(document.querySelectorAll("[data-cc-disable]"),(function(t){e.isAccepted(t.getAttribute("data-cc-disable"))?(t.textContent=t.getAttribute("data-cc-message-original"),t.classList.remove("disabled")):(t.textContent=t.getAttribute("data-cc-message"),t.classList.add("disabled"))})),null!==document.querySelector("[data-cc-enable]")&&[].forEach.call(document.querySelectorAll("[data-cc-enable]"),(function(t){e.isAccepted(t.getAttribute("data-cc-enable"))&&t.remove()}))}},{key:"isExcluded",value:function(){if(void 0===this.config.exclude)return!1;var e=!1;return this.config.exclude.forEach((function(t){"function"==typeof t&&!0===t()&&(e=!0),"string"==typeof t&&(0===t.indexOf("http")&&t===window.location.protocol+"//"+window.location.host+window.location.pathname||0!==t.indexOf("http")&&t===window.location.pathname||0!==t.indexOf("http")&&t+"/"===window.location.pathname)&&(e=!0)})),e}},{key:"addStyle",value:function(){var e,t,n,o,r,i,c,s,a,u,l,f,p,d,_,h,g,m,b,y,v="\n .chefcookie, .chefcookie *\n {\n box-sizing: border-box;\n margin:0;\n padding:0;\n }\n /* try to reset styles */\n .chefcookie h2,\n .chefcookie a:link,\n .chefcookie a:hover,\n .chefcookie a:visited\n {\n color:inherit;\n }\n .chefcookie\n {\n position: fixed;\n z-index: 2147483647;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateZ(0);\n }\n .chefcookie--hidden\n {\n opacity: 0;\n pointer-events:none;\n }\n .chefcookie__inner\n {\n width:100%;\n height:100%;\n text-align: center;\n white-space: nowrap;\n font-size: 0;\n overflow-y:auto;\n overflow-x:hidden;\n max-height:100vh;\n }\n .chefcookie__box\n {\n font-size: ".concat(this.config.style.size-3+15,"px;\n line-height:1.6;\n color:").concat(null!==(e=this.config.style.color_text)&&void 0!==e?e:"#595f60",";\n width: 100%;\n margin: 0 auto;\n display: inline-block;\n vertical-align: middle;\n white-space: normal;\n border-radius: 0;\n padding-top: 2em;\n padding-bottom: 2em;\n padding-left: 3em;\n padding-right: 3em;\n text-align: left;\n }\n .chefcookie__message\n {\n margin-bottom:1.5em;\n text-align:justify;\n }\n .chefcookie__message h2\n {\n margin-bottom:0.5em;\n font-size:2em;\n line-height:1.4;\n text-transform:uppercase;\n font-weight:700;\n text-align:left;\n }\n .chefcookie__message p {\n font-size: 1em;\n line-height:1.6;\n }\n .chefcookie__message a,\n .chefcookie__message a:focus\n {\n color:inherit;\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n text-decoration:underline;\n font-size: 1em;\n line-height:1.6;\n }\n .chefcookie__message a:focus\n {\n outline:none;\n }\n @media (hover: hover) {\n .chefcookie__message a:hover\n {\n opacity: 0.5;\n color: inherit;\n }\n }\n .chefcookie__message a:active\n {\n opacity: 0.1;\n color: inherit;\n }\n .chefcookie__buttons\n {\n margin-top:0.5em;\n }\n .chefcookie__button,\n .chefcookie__button:focus\n {\n padding: 1em 0.5em;\n border: 2px solid ").concat(null!==(t=this.config.style.color_text)&&void 0!==t?t:"#595f60",";\n font-weight: bold;\n display: block;\n color: inherit;\n text-decoration: none;\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n text-transform: uppercase;\n float: left;\n text-align: center;\n min-width: 21em;\n margin-right:3em;\n }\n .chefcookie__buttons--count-3 .chefcookie__button,\n .chefcookie__buttons--count-3 .chefcookie__button:focus {\n min-width:15em;\n margin-right:1em;\n }\n .chefcookie__button:last-child\n {\n margin-right:0;\n }\n .chefcookie__button:focus\n {\n outline:none;\n }\n @media (hover: hover) {\n .chefcookie__button:hover\n {\n opacity: 0.5;\n text-decoration:none;\n color: inherit;\n }\n }\n .chefcookie__button:active\n {\n opacity: 0.1;\n color: inherit;\n }\n .chefcookie__buttons:after\n {\n clear:both;\n display:table;\n content:"";\n }\n ').concat(void 0===this.config.style.highlight_accept||!0===this.config.style.highlight_accept?"\n .chefcookie__button--accept\n {\n background-color:".concat(null!==(n=null!==(o=this.config.style.color_highlight)&&void 0!==o?o:this.config.style.color)&&void 0!==n?n:"#ff0000",";\n border-color:transparent;\n }\n .chefcookie__button--accept.chefcookie__button--accept,\n .chefcookie__button--accept.chefcookie__button--accept:hover,\n .chefcookie__button--accept.chefcookie__button--accept:focus,\n .chefcookie__button--accept.chefcookie__button--accept:link,\n .chefcookie__button--accept.chefcookie__button--accept:visited\n {\n color:").concat(null!==(r=this.config.style.color_background)&&void 0!==r?r:"#eeeeee",";\n }\n "):"","\n .chefcookie__settings-container\n {\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,'s ease-out;\n }\n .chefcookie__groups\n {\n list-style-type:none;\n }\n .chefcookie__groups:after\n {\n clear:both;\n display:table;\n content:"";\n }\n .chefcookie__group\n {\n float: left;\n }\n .chefcookie__group:before\n {\n display:none;\n }\n .chefcookie__group-title\n {\n float:left;\n width:70%;\n min-height: 1.66em;\n line-height: 1.66;\n display: block;\n font-weight:bold;\n font-size:1.2em;\n line-height:1.7;\n text-transform:uppercase;\n }\n .chefcookie__group-label\n {\n cursor: pointer;\n display:block;\n width:100%;\n height:100%;\n font-size:1em;\n line-height:1.6;\n }\n .chefcookie__group-label:after\n {\n clear:both;\n display:table;\n content:""\n }\n .chefcookie__group--disabled .chefcookie__group-label\n {\n cursor:default;\n }\n .chefcookie__group-checkbox\n {\n opacity: 0;\n position:absolute;\n display: block;\n pointer-events:none;\n }\n .chefcookie__group--disabled .chefcookie__group-checkbox-icon\n {\n ').concat(void 0===this.config.style.show_disabled_checkbox||!1===this.config.style.show_disabled_checkbox?"display:none;":"opacity: 0.75 !important;","\n }\n .chefcookie__group-checkbox-icon\n {\n line-height:2;\n display: block;\n width: 4em;\n height: 2em;\n background-color: ").concat(null!==(i=this.config.style.color_background)&&void 0!==i?i:"#eeeeee",";\n border: 2px solid ").concat(null!==(c=this.config.style.color_text)&&void 0!==c?c:"#595f60",';\n margin: 0;\n padding: 0;\n position: relative;\n border-radius: 2em;\n float: right;\n }\n .chefcookie__group-checkbox-icon:before\n {\n content: "0";\n position: absolute;\n top: 0;\n left: 45%;\n width: 50%;\n bottom: 0;\n transition: all ').concat(this.animationSpeed/1e3,"s ease-in-out;\n text-align: center;\n font-weight: bold;\n font-size: 1em;\n line-height: 2;\n opacity: 0.25;\n color: ").concat(null!==(s=this.config.style.color_text)&&void 0!==s?s:"#595f60",';\n }\n .chefcookie__group-checkbox-icon:after\n {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n bottom: 0;\n box-shadow: 0 0 0px 1px ').concat(null!==(a=this.config.style.color_text)&&void 0!==a?a:"#595f60",";\n background-color: ").concat(null!==(u=this.config.style.color_text)&&void 0!==u?u:"#595f60",";\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n border-radius: 50%;\n }\n .chefcookie__group-checkbox ~ *\n {\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n }\n .chefcookie__group-checkbox[data-status="0"] ~ *\n {\n opacity: 0.75;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon\n {\n opacity: 0.85;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon:after\n {\n left:25%;\n }\n .chefcookie__group-checkbox[data-status="2"] ~ .chefcookie__group-checkbox-icon:after\n {\n left:50%;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon:before,\n .chefcookie__group-checkbox[data-status="2"] ~ .chefcookie__group-checkbox-icon:before\n {\n content: "";\n background-color: ').concat(null!==(l=this.config.style.color_text)&&void 0!==l?l:"#595f60",";\n top: 30%;\n bottom: 30%;\n left: 27%;\n width: 3px;\n }\n .chefcookie__group-description\n {\n width:100%;\n clear:both;\n padding-top:1em;\n display: block;\n font-size:0.9em;\n line-height:1.5;\n text-align:justify;\n font-weight: normal;\n }\n .chefcookie__group-collapse,\n .chefcookie__group-collapse:focus {\n color:inherit;\n text-decoration:underline;\n padding-top: 0.5em;\n display: block;\n }\n @media (hover: hover) {\n .chefcookie__group-collapse:hover\n {\n opacity: 0.9;\n color: inherit;\n text-decoration:underline;\n }\n }\n .chefcookie__scripts\n {\n list-style-type:none;\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,'s ease-out;\n }\n .chefcookie__scripts--visible {\n height:auto;\n }\n .chefcookie__script {\n margin-bottom:0.5em;\n }\n .chefcookie__script:before\n {\n display:none;\n }\n .chefcookie__script:first-child {\n margin-top:1em;\n }\n .chefcookie__script:last-child {\n margin-bottom:0;\n }\n .chefcookie__script-title\n {\n float:left;\n width:70%;\n min-height: 1.66em;\n line-height: 1.66;\n display: block;\n }\n .chefcookie__script-label\n {\n cursor: pointer;\n display:block;\n width:100%;\n height:100%;\n }\n .chefcookie__script-label:after\n {\n clear:both;\n display:table;\n content:""\n }\n .chefcookie__script--disabled .chefcookie__script-label\n {\n cursor:default;\n }\n .chefcookie__script-checkbox\n {\n opacity: 0;\n position:absolute;\n display: block;\n pointer-events:none;\n }\n .chefcookie__script--disabled .chefcookie__script-checkbox-icon\n {\n ').concat(void 0===this.config.style.show_disabled_checkbox||!1===this.config.style.show_disabled_checkbox?"display:none;":"opacity: 0.75 !important;","\n }\n .chefcookie__script-checkbox-icon\n {\n line-height:1.5;\n display: block;\n width: 3em;\n height: 1.5em;\n background-color: ").concat(null!==(f=this.config.style.color_background)&&void 0!==f?f:"#eeeeee",";\n border: 1px solid ").concat(null!==(p=this.config.style.color_text)&&void 0!==p?p:"#595f60",';\n margin: 0;\n padding: 0;\n position: relative;\n border-radius: 2em;\n float: right;\n }\n .chefcookie__script-checkbox-icon:before\n {\n content: "0";\n position: absolute;\n top: 0;\n left: 45%;\n width: 50%;\n bottom: 0;\n transition: all ').concat(this.animationSpeed/1e3,"s ease-in-out;\n text-align: center;\n font-size: 0.7em;\n line-height: 2;\n opacity: 0.25;\n color: ").concat(null!==(d=this.config.style.color_text)&&void 0!==d?d:"#595f60",';\n }\n .chefcookie__script-checkbox-icon:after\n {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n bottom: 0;\n box-shadow: 0 0 0px 1px ').concat(null!==(_=this.config.style.color_text)&&void 0!==_?_:"#595f60",";\n background-color: ").concat(null!==(h=this.config.style.color_text)&&void 0!==h?h:"#595f60",";\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n border-radius: 50%;\n }\n .chefcookie__script-checkbox ~ *\n {\n opacity: 0.75;\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n }\n .chefcookie__script-checkbox:checked ~ *\n {\n opacity:1;\n }\n .chefcookie__script-checkbox:checked ~ .chefcookie__script-checkbox-icon:after\n {\n left:50%;\n }\n .chefcookie__script-checkbox:checked ~ .chefcookie__script-checkbox-icon:before\n {\n content: "";\n background-color: ').concat(null!==(g=this.config.style.color_text)&&void 0!==g?g:"#595f60",";\n top: 30%;\n bottom: 30%;\n left: 27%;\n width: 2px;\n }\n\n .chefcookie__script-description\n {\n width: 100%;\n clear: both;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n display: block;\n font-size: 0.8em;\n line-height:1.4;\n text-align: justify;\n }\n .chefcookie__script-description-collapse,\n .chefcookie__script-description-collapse:focus {\n color:inherit;\n text-decoration:underline;\n padding-top: 0.25em;\n padding-bottom: 0.5em;\n display: block;\n }\n @media (hover: hover) {\n .chefcookie__script-description-collapse:hover\n {\n opacity: 0.9;\n color: inherit;\n text-decoration:underline;\n }\n }\n .chefcookie__script-description-content {\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,"s ease-out;\n }\n .chefcookie__script-description-content > *:not(:last-child) {\n margin-bottom:0.5em;\n }\n .chefcookie__script-description-content table {\n width:100%;\n border-collapse: collapse;\n table-layout: fixed;\n }\n .chefcookie__script-description-content table td {\n border:1px solid ").concat(this.hexToRgbaStr(null!==(m=this.config.style.color_text)&&void 0!==m?m:"#595f60",.1),";\n padding: 0.3em 0.5em;\n vertical-align:top;\n }\n\n .chefcookie--noscroll body\n {\n position:fixed;\n width: 100%;\n overflow:hidden;\n }\n .chefcookie--fade body:after,\n .chefcookie--blur body:after\n {\n content:\"\";\n position:fixed;\n z-index: 2147483644;\n top:0;\n left:0;\n width:100%;\n height:100%;\n }\n .chefcookie--fade body:after\n {\n background-color: rgba(0, 0, 0, 0.65);\n }\n .chefcookie--blur body:after\n {\n backdrop-filter: grayscale(50%) blur(5px);\n }\n .chefcookie--overlay\n {\n top: 0;\n }\n .chefcookie--overlay .chefcookie__inner:before\n {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n }\n .chefcookie--overlay .chefcookie__box\n {\n width: 95%;\n max-width: 60em;\n box-shadow: 0 1em 5em -0.5em #000;\n background-color: ").concat(null!==(b=this.config.style.color_background)&&void 0!==b?b:"#eeeeee",";\n }\n .chefcookie--overlay .chefcookie__group\n {\n height: 13em;\n margin-bottom: 4%;\n background-color: rgba(").concat(""!=this.config.style.color_background&&["#000","#000000","black"].indexOf(this.config.style.color_background)>-1?"255, 255, 255":"0, 0, 0",", 0.05);\n border: 1px solid rgba(").concat(""!=this.config.style.color_background&&["#000","#000000","black"].indexOf(this.config.style.color_background)>-1?"255, 255, 255":"0, 0, 0",", 0.01);\n width: 48%;\n margin-right: 4%;\n }\n .chefcookie--overlay .chefcookie__group:nth-child(2n)\n {\n margin-right:0;\n }\n .chefcookie--overlay.chefcookie--has-scripts .chefcookie__group\n {\n height:auto;\n width: 100%;\n margin-right: 0;\n margin-bottom: 1em;\n }\n .chefcookie--overlay .chefcookie__group\n {\n padding: 1em 1.25em;\n }\n .chefcookie--bottombar,\n .chefcookie--topbar\n {\n background-color:").concat(null!==(y=this.config.style.color_background)&&void 0!==y?y:"#eeeeee",";\n box-shadow: 0 1em 5em -0.5em #000;\n }\n .chefcookie--bottombar\n {\n bottom:0;\n top:auto;\n }\n .chefcookie--topbar\n {\n bottom:auto;\n top:0;\n position:relative;\n }\n .chefcookie--bottombar .chefcookie__box,\n .chefcookie--topbar .chefcookie__box\n {\n max-width: 1280px;\n }\n .chefcookie--bottombar .chefcookie__group,\n .chefcookie--topbar .chefcookie__group\n {\n margin-bottom: 40px;\n margin-top: 40px;\n width: 22%;\n margin-right: 4%;\n }\n .chefcookie--bottombar .chefcookie__group:last-child,\n .chefcookie--topbar .chefcookie__group:last-child\n {\n margin-right:0;\n }\n .chefcookie--bottombar .chefcookie__groups--count-9 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-9 .chefcookie__group { width: 7.55%; }\n .chefcookie--bottombar .chefcookie__groups--count-8 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-8 .chefcookie__group { width: 9.00%; }\n .chefcookie--bottombar .chefcookie__groups--count-7 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-7 .chefcookie__group { width: 10.85%; }\n .chefcookie--bottombar .chefcookie__groups--count-6 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-6 .chefcookie__group { width: 13.33%; }\n .chefcookie--bottombar .chefcookie__groups--count-5 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-5 .chefcookie__group { width: 16.80%; }\n .chefcookie--bottombar .chefcookie__groups--count-4 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-4 .chefcookie__group { width: 22.00%; }\n .chefcookie--bottombar .chefcookie__groups--count-3 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-3 .chefcookie__group { width: 30.66%; }\n .chefcookie--bottombar .chefcookie__groups--count-2 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-2 .chefcookie__group { width: 48%; }\n .chefcookie--bottombar .chefcookie__groups--count-1 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-1 .chefcookie__group { width: 100%; }\n @media screen and (max-width: 940px)\n {\n .chefcookie__button,\n .chefcookie__button:focus\n {\n float: none;\n margin: 0 0 1em;\n text-align: center;\n width: 100%;\n min-width:0;\n }\n }\n @media screen and (max-width: 840px)\n {\n .chefcookie__box\n {\n padding:1em;\n }\n .chefcookie__message h2\n {\n font-size:1.5em;\n line-height:1.4;\n }\n .chefcookie .chefcookie__group,\n .chefcookie--overlay .chefcookie__group,\n .chefcookie--bottombar .chefcookie__group,\n .chefcookie--topbar .chefcookie__group\n {\n float:none;\n margin-right:0;\n width:100% !important;\n height:auto;\n }\n }\n ");"css_replace"in this.config.style&&void 0!==this.config.style.css_replace&&null!==this.config.style.css_replace&&""!==this.config.style.css_replace&&(v=this.config.style.css_replace),"css_add"in this.config.style&&void 0!==this.config.style.css_add&&null!==this.config.style.css_add&&""!==this.config.style.css_add&&(v+=this.config.style.css_add),document.head.insertAdjacentHTML("beforeend",'<style class="chefcookie-styles">'+v+"</style>")}},{key:"addHtmlClasses",value:function(){document.documentElement.classList.add("chefcookie--visible"),1==this.config.style.noscroll&&("topbar"!==this.config.style.layout&&(this.scrollPosition=window.pageYOffset,document.body.style.top=-this.scrollPosition+"px"),document.documentElement.classList.add("chefcookie--noscroll")),1==this.config.style.fade&&document.documentElement.classList.add("chefcookie--fade"),1==this.config.style.blur&&document.documentElement.classList.add("chefcookie--blur")}},{key:"buildDom",value:function(){var e=this;document.body.insertAdjacentHTML("afterbegin",'\n <div class="chefcookie chefcookie--'.concat(this.config.style.layout," chefcookie--columns-").concat("columns"in this.config.style?this.config.style.columns:"auto").concat("scripts_selection"in this.config&&!1!==this.config.scripts_selection?" chefcookie--has-scripts":"",' chefcookie--hidden">\n <div class="chefcookie__inner">\n <div class="chefcookie__box">\n <div class="chefcookie__message">').concat(this.translate(this.config.message),'</div>\n <div class="chefcookie__settings-container">\n <ul class="chefcookie__groups chefcookie__groups--count-').concat(this.config.settings.length,'">\n ').concat(this.config.settings.map((function(t,n){return'\n <li class="chefcookie__group'.concat(t.cannot_be_modified?" chefcookie__group--disabled":"",'">\n <label class="chefcookie__group-label" for="chefcookie_group_').concat(n,'">\n <input').concat(t.cannot_be_modified?' disabled="disabled"':"",' class="chefcookie__group-checkbox" data-status="').concat(e.isCheckboxActiveForGroup(n),'" id="chefcookie_group_').concat(n,'" type="checkbox" name="chefcookie_group[]" value="').concat(n,'"').concat(2===e.isCheckboxActiveForGroup(n)?' checked="checked"':"",' />\n <span class="chefcookie__group-title">').concat(e.translate(t.title),'</span>\n <span class="chefcookie__group-checkbox-icon"></span>\n ').concat("description"in t&&""!=t.description?'\n <span class="chefcookie__group-description">'.concat(e.translate(t.description),"</span>\n "):"","\n ").concat("scripts_selection"in e.config&&"collapse"===e.config.scripts_selection&&"scripts"in t&&Object.keys(t.scripts).length>0&&-1===Object.keys(t.scripts)[0].indexOf("dummy_")?'\n <a href="#" class="chefcookie__group-collapse">'.concat(""!=e.getLabel("group_open")?e.getLabel("group_open"):e.getLabel("settings_open"),"</a>\n "):"","\n </label>\n ").concat("scripts_selection"in e.config&&!1!==e.config.scripts_selection&&"scripts"in t&&Object.keys(t.scripts).length>0&&-1===Object.keys(t.scripts)[0].indexOf("dummy_")?'\n <ul class="chefcookie__scripts chefcookie__scripts--count-'.concat(Object.keys(t.scripts).length).concat("collapse"!==e.config.scripts_selection?" chefcookie__scripts--visible":"",'">\n ').concat(Object.keys(t.scripts).map((function(o){return'\n <li class="chefcookie__script'.concat(t.cannot_be_modified?" chefcookie__script--disabled":"",'">\n <label class="chefcookie__script-label" for="chefcookie_script_').concat(n,"_").concat(o,'">\n <input').concat(t.cannot_be_modified?' disabled="disabled"':"",' class="chefcookie__script-checkbox" id="chefcookie_script_').concat(n,"_").concat(o,'" type="checkbox" name="chefcookie_script[]" value="').concat(n,"|").concat(o,'"').concat(e.isCheckboxActiveForProvider(n,o)?' checked="checked"':"",' />\n <span class="chefcookie__script-title">').concat("object"===(0,i.default)(t.scripts[o])&&null!==t.scripts[o]&&"title"in t.scripts[o]&&""!=t.scripts[o].title?e.translate(t.scripts[o].title):o,'</span>\n <span class="chefcookie__script-checkbox-icon"></span>\n </label>\n ').concat("object"===(0,i.default)(t.scripts[o])&&null!==t.scripts[o]&&"description"in t.scripts[o]&&""!=t.scripts[o].description?'<div class="chefcookie__script-description"><a href="#" class="chefcookie__script-description-collapse">'+e.getLabel("details_open")+'</a><div class="chefcookie__script-description-content">'+e.translate(t.scripts[o].description)+"</div></div>":"","\n </li>\n ")})).join(""),"\n </ul>\n "):"","\n </li>\n ")})).join(""),'\n </ul>\n </div>\n <div class="chefcookie__buttons chefcookie__buttons--count-').concat("show_decline_button"in this.config&&!0===this.config.show_decline_button?"3":"2",'">\n <a href="#chefcookie__settings" class="chefcookie__button chefcookie__button--settings">').concat(this.getLabel("settings_open"),'</a>\n <a href="#chefcookie__accept" class="chefcookie__button chefcookie__button--accept">').concat(this.getLabel(void 0===this.config.accept_all_if_settings_closed||!1===this.config.accept_all_if_settings_closed?"accept":"accept_all"),"</a>\n ").concat("show_decline_button"in this.config&&!0===this.config.show_decline_button?'\n <a href="#chefcookie__decline" class="chefcookie__button chefcookie__button--decline">'.concat(this.getLabel("decline"),"</a>\n "):"","\n </div>\n </div>\n </div>\n </div>\n "))}},{key:"getLabel",value:function(e){return void 0===this.config.labels[e]?"":this.translate(this.config.labels[e])}},{key:"bindButtons",value:function(){var e=this;null!==document.querySelector('a[href="#chefcookie__decline"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__decline"]'),(function(t){e.registerEventListener(t,"click",(function(t){e.logTracking("decline"),e.uncheckAllOptIns(),e.saveInCookie(),e.close(),e.setCookieToHideOverlay(),e.updateOptOutOptIn(),t.preventDefault()}))})),null!==document.querySelector('a[href="#chefcookie__accept"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__accept"]'),(function(t){e.registerEventListener(t,"click",(function(t){"accept_all_if_settings_closed"in e.config&&!0!==e.config.accept_all_if_settings_closed||e.settingsVisible()||e.checkAllOptIns(),e.saveInCookie(),e.addEnabledScripts(!0),e.close(),e.setCookieToHideOverlay(),e.updateOptOutOptIn(),t.preventDefault()}))})),null!==document.querySelector('a[href="#chefcookie__settings"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__settings"]'),(function(t){e.registerEventListener(t,"click",(function(t){e.settingsVisible()?(e.hideSettings(),e.switchSettingsLabelsClose()):(e.showSettings(),e.switchSettingsLabelsOpen()),t.preventDefault()}))})),null!==document.querySelector(".chefcookie__script-checkbox")&&[].forEach.call(document.querySelectorAll(".chefcookie__script-checkbox"),(function(t){e.registerEventListener(t,"change",(function(e){var n=t.closest(".chefcookie__group").querySelector(".chefcookie__group-checkbox"),o=t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox:checked").length;o===t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox").length?(n.checked=!0,n.setAttribute("data-status",2)):(n.checked=!1,n.setAttribute("data-status",o>0?1:0)),e.preventDefault()}))})),null!==document.querySelector(".chefcookie__group-checkbox")&&[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox"),(function(t){e.registerEventListener(t,"change",(function(e){t.setAttribute("data-status",t.checked?2:0),null!==t.closest(".chefcookie__group").querySelector(".chefcookie__script-checkbox")&&[].forEach.call(t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox"),(function(e){e.checked=t.checked})),e.preventDefault()}))})),null!==document.querySelector(".chefcookie__group-collapse")&&[].forEach.call(document.querySelectorAll(".chefcookie__group-collapse"),(function(t){e.registerEventListener(t,"click",(function(n){var o=t.closest(".chefcookie__group");e.scriptsVisible(o)?(e.hideScripts(o),e.switchScriptsLabelsClose(o)):(e.showScripts(o),e.switchScriptsLabelsOpen(o)),n.preventDefault()}))})),null!==document.querySelector(".chefcookie__script-description-collapse")&&[].forEach.call(document.querySelectorAll(".chefcookie__script-description-collapse"),(function(t){e.registerEventListener(t,"click",(function(n){var o=t.closest(".chefcookie__script-description");e.scriptDescriptionVisible(o)?(e.hideScriptDescription(o),e.switchScriptDescriptionLabelsClose(o)):(e.showScriptDescription(o),e.switchScriptDescriptionLabelsOpen(o)),n.preventDefault()}))}))}},{key:"switchSettingsLabelsOpen",value:function(){document.querySelector(".chefcookie__button--settings").textContent=this.getLabel("settings_close"),!0===this.config.accept_all_if_settings_closed&&(document.querySelector(".chefcookie__button--accept").textContent=this.getLabel("accept"))}},{key:"switchSettingsLabelsClose",value:function(){document.querySelector(".chefcookie__button--settings").textContent=this.getLabel("settings_open"),!0===this.config.accept_all_if_settings_closed&&(document.querySelector(".chefcookie__button--accept").textContent=this.getLabel("accept_all"))}},{key:"switchScriptsLabelsOpen",value:function(e){e.querySelector(".chefcookie__group-collapse").textContent=""!=this.getLabel("group_close")?this.getLabel("group_close"):this.getLabel("settings_close")}},{key:"switchScriptsLabelsClose",value:function(e){e.querySelector(".chefcookie__group-collapse").textContent=""!=this.getLabel("group_open")?this.getLabel("group_open"):this.getLabel("settings_open")}},{key:"switchScriptDescriptionLabelsOpen",value:function(e){e.querySelector(".chefcookie__script-description-collapse").textContent=this.getLabel("details_close")}},{key:"switchScriptDescriptionLabelsClose",value:function(e){e.querySelector(".chefcookie__script-description-collapse").textContent=this.getLabel("details_open")}},{key:"checkAllOptIns",value:function(){[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox, .chefcookie__script-checkbox"),(function(e){e.checked=!0}))}},{key:"uncheckAllOptIns",value:function(){[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox:not([disabled]), .chefcookie__script-checkbox:not([disabled])"),(function(e){e.checked=!1}))}},{key:"getCookieExpiration",value:function(){var e=30;return"expiration"in this.config&&Number.isInteger(this.config.expiration)&&(e=this.config.expiration),e}},{key:"getCookieName",value:function(e){return(this.config.cookie_prefix||"cc_")+e}},{key:"setCookie",value:function(e,t){var n=this.getCookieName(e),o=this.getCookieExpiration(),r=this.config.domain,i=window.location.protocol.indexOf("https")>-1?{secure:!0,samesite:"None"}:{};document.cookie=l.default.serialize(n,t,p({httpOnly:!1,maxAge:86400*o,domain:r&&window.location.hostname.endsWith(r)?r:void 0},i))}},{key:"getCookie",value:function(e){var t=this.getCookieName(e);return l.default.parse(document.cookie)[t]}},{key:"isCheckboxActiveForGroup",value:function(e){var t,n=this;if(void 0===this.config.settings[e])return 0;if(t=this.config.settings[e],"scripts"in this.config.settings[e]){var o=!0,r=!1;if(Object.keys(t.scripts).forEach((function(e){n.isAccepted(e)||(o=!1),n.isAccepted(e)&&(r=!0)})),!0===o)return 2;if(this.isCookieSetToHideOverlay())return!0===r?1:0}return t.checked_by_default||t.active?2:0}},{key:"isCheckboxActiveForProvider",value:function(e,t){if(this.isAccepted(t))return!0;if(this.isCookieSetToHideOverlay())return!1;if(void 0!==this.config.settings[e]){var n=this.config.settings[e];return n.checked_by_default||n.active}return!1}},{key:"setCookieToHideOverlay",value:function(){this.setCookie("hide_prompt","1")}},{key:"isCookieSetToHideOverlay",value:function(){return void 0!==this.getCookie("hide_prompt")}},{key:"saveInCookie",value:function(){var e=this,t=[];[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox"),(function(n){null===n.closest(".chefcookie__group").querySelector(".chefcookie__script-checkbox")?!0===n.checked&&void 0!==e.config.settings[n.value].scripts&&Object.entries(e.config.settings[n.value].scripts).forEach((function(e){var n=(0,r.default)(e,2),o=n[0];n[1];t.push(o)})):[].forEach.call(n.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox"),(function(n){!0===n.checked&&void 0!==e.config.settings[n.value.split("|")[0]].scripts[n.value.split("|")[1]]&&t.push(n.value.split("|")[1])}))})),0===t.length&&t.push("null"),this.setCookie("accepted_providers",t.join(","))}},{key:"addToCookie",value:function(e){var t;-1===(t=void 0===this.getCookie("accepted_providers")||"null"===this.getCookie("accepted_providers")?[]:this.getCookie("accepted_providers").split(",")).indexOf(e)&&(t.push(e),this.setCookie("accepted_providers",t.join(",")))}},{key:"deleteFromCookie",value:function(e){if(void 0!==this.getCookie("accepted_providers")){var t=this.getCookie("accepted_providers").split(","),n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0?this.setCookie("accepted_providers",t.join(",")):this.setCookie("accepted_providers","null")}}},{key:"addEnabledScripts",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0!==this.getCookie("accepted_providers")){var n=this.getCookie("accepted_providers");if("null"!=n){var o=!0;this.config.settings.forEach((function(i){void 0!==i.scripts&&Object.entries(i.scripts).forEach((function(i){var c=(0,r.default)(i,2),s=c[0],a=c[1];-1!==n.split(",").indexOf(s)?e.load(s,a,t):o=!1}))})),!0===t&&this.logTracking(o?"accept_all":"accept_partially",n)}}}},{key:"addScript",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==this.getCookie("accepted_providers")){var o=this.getCookie("accepted_providers").split(",");o!==["null"]&&this.config.settings.forEach((function(i){void 0!==i.scripts&&Object.entries(i.scripts).forEach((function(i){var c=(0,r.default)(i,2),s=c[0],a=c[1];s===e&&-1!==o.indexOf(s)&&t.load(s,a,n)}))}))}}},{key:"autoAcceptBasicScripts",value:function(){var e=this;this.config.settings.forEach((function(t){void 0!==t.scripts&&!0===t.initial_tracking&&Object.entries(t.scripts).forEach((function(t){var n=(0,r.default)(t,2),o=n[0];n[1];e.accept(o,!1)}))}))}},{key:"autoAcceptAllScripts",value:function(){var e=this;this.config.settings.forEach((function(t){void 0!==t.scripts&&Object.entries(t.scripts).forEach((function(t){var n=(0,r.default)(t,2),o=n[0];n[1];e.accept(o,!1)}))}))}},{key:"load",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isLoaded(e)||"object"===(0,i.default)(t)&&null!==t&&"exclude"in t&&"function"==typeof t.exclude&&!0===t.exclude()||("string"==typeof t||t instanceof String?this.loadAuto(e,t):"object"===(0,i.default)(t)&&null!==t&&"id"in t&&!("accept"in t)?this.loadAuto(e,t.id):"object"===(0,i.default)(t)&&null!==t&&"accept"in t&&"function"==typeof t.accept?new Promise((function(e){t.accept(n,e,o)})).then((function(){n.setLoaded(e)})):this.setLoaded(e),this.logDebug("added script "+e))}},{key:"loadAuto",value:function(e,t){var n=this;if("analytics"===e||"google"===e){var o=document.createElement("script");o.onload=function(){n.setLoaded(e)},o.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(o),(o=document.createElement("script")).innerHTML="window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '"+t+"', { 'anonymize_ip': true, cookie_flags: 'SameSite=None;Secure' });",document.head.appendChild(o)}if("tagmanager"===e){var r=document.createElement("script"),i="";i+="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','"+t+"');",i+="function gtag(){dataLayer.push(arguments);}",r.innerHTML=i,document.head.appendChild(r),this.setLoaded(e)}if("facebook"===e){var c=document.createElement("script");c.innerHTML="!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', '"+t+"');fbq('track', 'PageView');fbq('track', 'ViewContent');",document.head.appendChild(c),this.setLoaded(e)}if("twitter"===e){var s=document.createElement("script");s.onload=function(){n.setLoaded(e)},s.src="//platform.twitter.com/oct.js",document.head.appendChild(s)}if("taboola"===e){var a=document.createElement("script");a.innerHTML="window._tfa = window._tfa || [];window._tfa.push({notify: 'event', name: 'page_view'});!function (t, f, a, x) { if (!document.getElementById(x)) { t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f); } }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/unip/"+t+"/tfa.js', 'tb_tfa_script');",document.head.appendChild(a),this.setLoaded(e)}if("match2one"===e){var u=document.createElement("script");u.onload=function(){n.setLoaded(e)},u.src="https://secure.adnxs.com/seg?add="+t+"&t=1",document.head.appendChild(u),(u=document.createElement("script")).innerHTML="window.m2o = true;",document.head.appendChild(u)}if("linkedin"===e){var l=document.createElement("script");l.innerHTML='\n _linkedin_partner_id = "'.concat(t,'";\n window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\n window._linkedin_data_partner_ids.push(_linkedin_partner_id);\n '),document.body.appendChild(l),(l=document.createElement("script")).innerHTML='\n (function(){var s = document.getElementsByTagName("script")[0];\n var b = document.createElement("script");\n b.type = "text/javascript";b.async = true;\n b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";\n s.parentNode.insertBefore(b, s);})();\n ',document.body.appendChild(l),(l=document.createElement("noscript")).innerHTML='\n <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid='.concat(t,'&fmt=gif" />\n '),document.body.appendChild(l),this.setLoaded(e)}if("smartlook"===e){var f=document.createElement("script");f.innerHTML="window.smartlook||(function(d) {var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';c.charset='utf-8';c.src='https://web-sdk.smartlook.com/recorder.js';h.appendChild(c);})(document);smartlook('init', '"+t+"', { region: 'eu' });",document.head.appendChild(f),this.setLoaded(e)}if("crazyegg"===e){var p=document.createElement("script");p.onload=function(){n.setLoaded(e)},p.src="//script.crazyegg.com/pages/scripts/"+t+".js",document.head.appendChild(p)}if("google_maps"===e){var d=document.createElement("script");d.src="https://maps.googleapis.com/maps/api/js?key="+t+"&callback=initMapCC",d.defer=!0,d.async=!0,window.initMapCC=function(){n.setLoaded(e)},document.head.appendChild(d)}if("etracker"===e){var _=document.createElement("script");_.onload=function(){n.setLoaded(e)},_.id="_etLoader",_.type="text/javascript",_.charset="UTF-8",_.setAttribute("data-block-cookies","true"),_.setAttribute("data-respect-dnt","true"),_.setAttribute("data-secure-code",t),_.src="//static.etracker.com/code/e.js",document.head.appendChild(_)}if("matomo"===e){var h=document.createElement("script");h.innerHTML='\n var _paq = window._paq = window._paq || [];\n /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n _paq.push([\'trackPageView\']);\n _paq.push([\'enableLinkTracking\']);\n (function() {\n var u="//'.concat(t.split("#")[0],"/\";\n _paq.push(['setTrackerUrl', u+'matomo.php']);\n _paq.push(['setSiteId', '").concat(t.split("#")[1],"']);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n })();\n "),document.head.appendChild(h),this.setLoaded(e)}}},{key:"isAccepted",value:function(e){return void 0!==this.getCookie("accepted_providers")&&this.getCookie("accepted_providers").split(",").indexOf(e)>-1}},{key:"isLoaded",value:function(e){return"chefcookie_loaded"in window&&window.chefcookie_loaded.indexOf(e)>-1}},{key:"setLoaded",value:function(e){window.chefcookie_loaded.push(e)}},{key:"settingsVisible",value:function(){return document.querySelector(".chefcookie__settings-container").classList.contains("chefcookie__settings-container--visible")}},{key:"showSettings",value:function(){this.logTracking("settings_open");var e=document.querySelector(".chefcookie__settings-container");e.classList.add("chefcookie__settings-container--visible"),e.style.height=e.scrollHeight+"px",setTimeout((function(){e.classList.contains("chefcookie__settings-container--visible")&&(e.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideSettings",value:function(){this.logTracking("settings_close");var e=document.querySelector(".chefcookie__settings-container");e.classList.remove("chefcookie__settings-container--visible"),e.style.height=e.scrollHeight+"px",setTimeout((function(){e.style.height=0}),30)}},{key:"scriptsVisible",value:function(e){return e.querySelector(".chefcookie__scripts").classList.contains("chefcookie__scripts--visible")}},{key:"showScripts",value:function(e){var t=e.querySelector(".chefcookie__scripts");t.style.height=t.scrollHeight+"px",t.classList.add("chefcookie__scripts--visible"),setTimeout((function(){t.classList.contains("chefcookie__scripts--visible")&&(t.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideScripts",value:function(e){var t=e.querySelector(".chefcookie__scripts");t.style.height=t.scrollHeight+"px",t.classList.remove("chefcookie__scripts--visible"),setTimeout((function(){t.style.height=0}),30)}},{key:"scriptDescriptionVisible",value:function(e){return e.querySelector(".chefcookie__script-description-content").classList.contains("chefcookie__script-description-content--visible")}},{key:"showScriptDescription",value:function(e){var t=e.querySelector(".chefcookie__script-description-content");t.style.height=t.scrollHeight+"px",t.classList.add("chefcookie__script-description-content--visible"),setTimeout((function(){t.classList.contains("chefcookie__script-description-content--visible")&&(t.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideScriptDescription",value:function(e){var t=e.querySelector(".chefcookie__script-description-content");t.style.height=t.scrollHeight+"px",t.classList.remove("chefcookie__script-description-content--visible"),setTimeout((function(){t.style.height=0}),30)}},{key:"fixMaxHeight",value:function(){document.querySelector(".chefcookie__inner").style.maxHeight=window.innerHeight+"px"}},{key:"eventAnalytics",value:function(e,t){"function"==typeof gtag&&(void 0===t?(gtag("event",e),this.logDebug("analytics "+e)):(gtag("event",t,{event_category:e}),this.logDebug("analytics "+e+" "+t)))}},{key:"eventGoogle",value:function(e,t){this.eventAnalytics(e,t)}},{key:"eventFacebook",value:function(e){"function"==typeof fbq&&(fbq("trackCustom",e),this.logDebug("facebook "+e))}},{key:"eventTwitter",value:function(e){"undefined"!=typeof twttr&&void 0!==twttr.conversion&&"function"==typeof twttr.conversion.trackPid&&(twttr.conversion.trackPid(e),this.logDebug("twitter "+e))}},{key:"eventTaboola",value:function(e){"object"==("undefined"==typeof _tfa?"undefined":(0,i.default)(_tfa))&&(_tfa.push({notify:"event",name:e}),this.logDebug("taboola "+e))}},{key:"eventMatch2one",value:function(e){if("undefined"!=typeof m2o){var t=document.createElement("script");t.src="https://secure.adnxs.com/px?"+e+"&t=1",document.head.appendChild(t),this.logDebug("match2one "+e)}}},{key:"eventLinkedin",value:function(e,t){document.body.insertAdjacentHTML("beforeend",'<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid='+e+"&conversionId="+t+'&fmt=gif" />'),this.logDebug("linkedin "+e+" "+t)}},{key:"eventEtracker",value:function(e,t){"undefined"!=typeof _etracker&&(void 0===t?(_etracker.sendEvent(new et_UserDefinedEvent(null,null,e,null)),this.logDebug("etracker "+e)):(_etracker.sendEvent(new et_UserDefinedEvent(null,e,t,null)),this.logDebug("etracker "+e+" "+t)))}},{key:"trackDuration",value:function(){for(var e=this,t=30;t/60<=8;)!function(t){window.setTimeout((function(){!0!==this.isDestroyed&&(e.eventAnalytics("duration_time",t+"s"),e.eventEtracker("duration_time",t+"s"))}),1e3*t)}(t),t+=30}},{key:"trackDurationCustom",value:function(e,t){setTimeout(t,1e3*e)}},{key:"trackScrollDepth",value:function(){var e=this;this.eventAnalytics("scroll_depth","0%"),this.eventEtracker("scroll_depth","0%"),this.registerEventListener(window,"scroll",(function(){var t=e.scrollPos();for(var n in e.scrollDepthTriggered)!1===e.scrollDepthTriggered[n]&&t>=n&&(e.scrollDepthTriggered[n]=!0,e.eventAnalytics("scroll_depth",n+"%"),e.eventEtracker("scroll_depth",n+"%"))}))}},{key:"registerEventListener",value:function(e,t,n){e.addEventListener(t,n),this.eventListeners.push({obj:e,type:t,fn:n})}},{key:"unregisterAllEventListeners",value:function(){this.eventListeners.forEach((function(e){e.obj.removeEventListener(e.type,e.fn)}))}},{key:"trackScrollDepthCustom",value:function(e,t){var n=this;this.registerEventListener(window,"scroll",(function(){var o=n.scrollPos();!1===n.scrollDepthTriggeredOnce&&o>=e&&(n.scrollDepthTriggeredOnce=!0,t())}))}},{key:"scrollPos",value:function(){var e=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop,t=Math.max(document.body.offsetHeight,document.body.scrollHeight,document.documentElement.clientHeight,document.documentElement.offsetHeight,document.documentElement.scrollHeight),n=window.innerHeight;return Math.round(e/(t-n)*100)}},{key:"waitFor",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(o,r){var i=setInterval((function(){t.isLoaded(e)&&(window.clearInterval(i),null!==n&&"function"==typeof n&&n(),o())}),1e3)}))}},{key:"loadJs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;("string"==typeof e||e instanceof String)&&(e=[e]);var n=[];if(e.forEach((function(e){n.push(new Promise((function(t,n){var o=document.createElement("script");o.src=e,o.onload=function(){t()},document.head.appendChild(o)})))})),null===t||"function"!=typeof t)return Promise.all(n);Promise.all(n).then((function(){t()}))}},{key:"translate",value:function(e){if("string"==typeof e||e instanceof String)return e;var t=this.lng();return t in e?e[t]:Object.values(e)[0]}},{key:"lng",value:function(){var e="en";return document.documentElement.hasAttribute("lang")&&(e=document.documentElement.getAttribute("lang").substring(0,2).toLowerCase()),e}},{key:"url",value:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname}},{key:"urlFull",value:function(){return window.location.href}},{key:"urlBase",value:function(){return window.location.protocol+"//"+window.location.host}},{key:"trim",value:function(e,t){var n=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","​","\u2028","\u2029"," "].join(""),o=0,r=0;for(e+="",t&&(n=(t+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),o=e.length,r=0;r<o;r++)if(-1===n.indexOf(e.charAt(r))){e=e.substring(r);break}for(r=(o=e.length)-1;r>=0;r--)if(-1===n.indexOf(e.charAt(r))){e=e.substring(0,r+1);break}return-1===n.indexOf(e.charAt(0))?e:""}},{key:"accept",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.addToCookie(e),this.isExcluded()||this.addScript(e,t)}},{key:"decline",value:function(e){this.deleteFromCookie(e)}},{key:"logDebug",value:function(e){"debug_log"in this.config&&!0===this.config.debug_log&&console.log(e)}},{key:"logTrackingActive",value:function(){return!(!("consent_tracking"in this.config)||!1===this.config.consent_tracking||void 0===this.config.consent_tracking||null===this.config.consent_tracking||""==this.config.consent_tracking)}},{key:"logTracking",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.logTrackingActive()){var n=new XMLHttpRequest,o=null,r=(-1===this.config.consent_tracking.indexOf("//")?this.trim(this.urlBase(),"/"):"")+"/"+this.trim(this.config.consent_tracking,"/");o={action:e,date:(new Date).getFullYear()+"-"+("0"+((new Date).getMonth()+1)).slice(-2)+"-"+("0"+(new Date).getDate()).slice(-2)+" "+("0"+(new Date).getHours()).slice(-2)+":"+("0"+(new Date).getMinutes()).slice(-2)+":"+("0"+(new Date).getSeconds()).slice(-2),url:this.urlFull(),providers:t,viewport:window.innerWidth+"x"+window.innerHeight},n.open("POST",r,!0),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(o))}}},{key:"trackFirstUserInteraction",value:function(){var e=this;this.logTrackingActive()&&["mousedown","mousemove","keydown","scroll","touchstart","click"].forEach((function(t){document.addEventListener(t,(function(){!0!==e.first_user_interaction&&(e.first_user_interaction=!0,e.logTracking("first_user_interaction"))}),!0)}))}},{key:"hexToRgb",value:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},{key:"hexToRgbaStr",value:function(e,t){var n=this.hexToRgb(e);return null===n?"":"rgba("+n.r+","+n.g+","+n.b+","+t+")"}}]),e}();n.default=d,window.chefcookie=d},{"./_helper":1,"@babel/polyfill/noConflict":4,"@babel/runtime/helpers/classCallCheck":7,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/slicedToArray":13,"@babel/runtime/helpers/typeof":14,cookie:16,"mdn-polyfills/Element.prototype.closest":303,"mdn-polyfills/Node.prototype.remove":304,"mdn-polyfills/Number.isInteger":305,"mdn-polyfills/Object.entries":306,"mdn-polyfills/Object.values":307}],3:[function(e,t,n){"use strict";e("core-js/es6"),e("core-js/fn/array/includes"),e("core-js/fn/array/flat-map"),e("core-js/fn/string/pad-start"),e("core-js/fn/string/pad-end"),e("core-js/fn/string/trim-start"),e("core-js/fn/string/trim-end"),e("core-js/fn/symbol/async-iterator"),e("core-js/fn/object/get-own-property-descriptors"),e("core-js/fn/object/values"),e("core-js/fn/object/entries"),e("core-js/fn/promise/finally"),e("core-js/web"),e("regenerator-runtime/runtime")},{"core-js/es6":17,"core-js/fn/array/flat-map":18,"core-js/fn/array/includes":19,"core-js/fn/object/entries":20,"core-js/fn/object/get-own-property-descriptors":21,"core-js/fn/object/values":22,"core-js/fn/promise/finally":23,"core-js/fn/string/pad-end":24,"core-js/fn/string/pad-start":25,"core-js/fn/string/trim-end":26,"core-js/fn/string/trim-start":27,"core-js/fn/symbol/async-iterator":28,"core-js/web":302,"regenerator-runtime/runtime":308}],4:[function(e,t,n){e("./lib/noConflict")},{"./lib/noConflict":3}],5:[function(e,t,n){t.exports=function(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},t.exports.__esModule=!0,t.exports.default=t.exports},{}],6:[function(e,t,n){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],7:[function(e,t,n){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],8:[function(e,t,n){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)}}t.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],9:[function(e,t,n){t.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],10:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],11:[function(e,t,n){t.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],c=!0,s=!1;try{for(n=n.call(e);!(c=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{c||null==n.return||n.return()}finally{if(s)throw r}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],12:[function(e,t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],13:[function(e,t,n){var o=e("./arrayWithHoles.js"),r=e("./iterableToArrayLimit.js"),i=e("./unsupportedIterableToArray.js"),c=e("./nonIterableRest.js");t.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||c()},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayWithHoles.js":6,"./iterableToArrayLimit.js":11,"./nonIterableRest.js":12,"./unsupportedIterableToArray.js":15}],14:[function(e,t,n){function o(e){return t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},{}],15:[function(e,t,n){var o=e("./arrayLikeToArray.js");t.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":5}],16:[function(e,t,n){
1
+ !function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[c]={exports:{}};t[c][0].call(l.exports,(function(e){return r(t[c][1][e]||e)}),l,l.exports,e,t,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c<o.length;c++)r(o[c]);return r}({1:[function(e,t,n){"use strict";var o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("@babel/runtime/helpers/classCallCheck")),i=o(e("@babel/runtime/helpers/createClass")),c=function(){function e(){(0,r.default)(this,e)}return(0,i.default)(e,null,[{key:"getParam",value:function(e){var t=window.location.search;if(""==t)return null;for(var n=t.substring(1).split("&"),o=0;o<n.length;o++){var r=n[o].split("=");if(r[0]==e&&""!=r[1])return r[1]}return null}},{key:"urlHostTopLevel",value:function(){var e=window.location.hostname;if(e.match(/^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/))return e;for(e=e.split(".");e.length>2;)e.shift();return e=e.join(".")}}]),e}();n.default=c},{"@babel/runtime/helpers/classCallCheck":7,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/interopRequireDefault":10}],2:[function(e,t,n){"use strict";var o=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(e("@babel/runtime/helpers/slicedToArray")),i=o(e("@babel/runtime/helpers/typeof")),c=o(e("@babel/runtime/helpers/defineProperty")),s=o(e("@babel/runtime/helpers/classCallCheck")),a=o(e("@babel/runtime/helpers/createClass"));e("mdn-polyfills/Object.entries"),e("mdn-polyfills/Object.values"),e("mdn-polyfills/Number.isInteger"),e("mdn-polyfills/Element.prototype.closest"),e("mdn-polyfills/Node.prototype.remove"),e("@babel/polyfill/noConflict");var u=o(e("./_helper")),l=o(e("cookie"));function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(this,e);var n={exclude_ua_regex:/(Speed Insights|Chrome-Lighthouse|PSTS[\d\.]+)/,domain:u.default.urlHostTopLevel()};this.config=p(p({},n),t),this.config.settings.forEach((function(e,t){"scripts"in e&&0!==Object.keys(e.scripts).length||(e.scripts={},e.scripts["dummy_group_"+t]={})})),this.isDestroyed=!1,this.isOpened=!1,"chefcookie_loaded"in window||(window.chefcookie_loaded=[]),this.scrollDepthTriggeredOnce=!1,this.scrollDepthTriggered={1:!1,10:!1,25:!1,50:!1,75:!1,100:!1},this.eventListeners=[],this.animationSpeed=300,this.scrollPosition=0}return(0,a.default)(e,[{key:"init",value:function(){if(!0===this.config.exclude_google_pagespeed&&(this.config.exclude_ua_regex=/(Speed Insights|Chrome-Lighthouse)/),void 0===this.config.exclude_ua_regex||!navigator.userAgent.match(this.config.exclude_ua_regex)){if(this.isExcluded())return this.bindOptOutOptIn(),void this.updateOptOutOptIn();this.forceAccept()&&(this.autoAcceptAllScripts(),this.setCookieToHideOverlay()),this.isCookieSetToHideOverlay()?this.addEnabledScripts(!1):(this.autoAcceptBasicScripts(),this.open(),this.trackFirstUserInteraction()),this.bindOptOutOptIn(),this.updateOptOutOptIn()}}},{key:"open",value:function(){!0!==this.isOpened&&(this.isOpened=!0,this.addStyle(),this.buildDom(),this.addHtmlClasses(),this.animationIn(),this.bindButtons(),this.fixMaxHeight(),this.logTracking("open"))}},{key:"close",value:function(){if(!1!==this.isOpened){if(this.isOpened=!1,document.documentElement.classList.remove("chefcookie--visible"),document.documentElement.classList.remove("chefcookie--fade"),document.documentElement.classList.remove("chefcookie--noscroll"),"topbar"!==this.config.style.layout){var e=null,t=null;"auto"!==window.getComputedStyle(document.body).scrollBehavior&&(e=window.getComputedStyle(document.body).scrollBehavior,document.body.style.scrollBehavior="auto"),"auto"!==window.getComputedStyle(document.documentElement).scrollBehavior&&(t=window.getComputedStyle(document.documentElement).scrollBehavior,document.documentElement.style.scrollBehavior="auto"),document.body.style.top="auto",window.scrollTo(0,this.scrollPosition),null!==e&&(document.body.style.scrollBehavior=e),null!==t&&(document.documentElement.style.scrollBehavior=t)}document.documentElement.classList.remove("chefcookie--blur"),this.animationOut(),setTimeout((function(){document.querySelector(".chefcookie").remove(),document.querySelector(".chefcookie-styles").remove()}),this.animationSpeed)}}},{key:"isOpen",value:function(){return this.isOpened}},{key:"isClosed",value:function(){return!this.isOpened}},{key:"animationIn",value:function(){var e=this;document.querySelector(".chefcookie__inner").style.overflowY="hidden","topbar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"bottombar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"overlay"===this.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="scale(0.7)"),requestAnimationFrame((function(){setTimeout((function(){document.querySelector(".chefcookie").style.transition="opacity "+e.animationSpeed/1e3+"s ease-in-out, margin "+e.animationSpeed/1e3+"s ease-in-out",document.querySelector(".chefcookie__box").style.transition="transform "+e.animationSpeed/1e3+"s ease-in-out",document.querySelector(".chefcookie").classList.remove("chefcookie--hidden"),"topbar"===e.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop="0px"),"bottombar"===e.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom="0px"),"overlay"===e.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="none"),requestAnimationFrame((function(){setTimeout((function(){document.querySelector(".chefcookie__inner").style.overflowY="auto"}),e.animationSpeed+30)}))}),30)}))}},{key:"animationOut",value:function(){document.querySelector(".chefcookie__inner").style.overflowY="hidden",document.querySelector(".chefcookie").classList.add("chefcookie--hidden"),"topbar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginTop=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"bottombar"===this.config.style.layout&&(document.querySelector(".chefcookie").style.marginBottom=-1*document.querySelector(".chefcookie").offsetHeight+"px"),"overlay"===this.config.style.layout&&(document.querySelector(".chefcookie__box").style.transform="scale(0.7)")}},{key:"destroy",value:function(){this.close(),this.config={},this.isDestroyed=!0,this.isOpened=!1,this.unregisterAllEventListeners(),this.eventListeners=[]}},{key:"forceAccept",value:function(){return"1"===u.default.getParam("accept")}},{key:"bindOptOutOptIn",value:function(){var e=this;this.registerEventListener(document,"click",(function(t){if(t.target.hasAttribute("data-cc-disable")||"A"!==t.target.tagName&&t.target.closest("[data-cc-disable]")){var n=t.target.closest("[data-cc-disable]");e.isAccepted(n.getAttribute("data-cc-disable"))?e.decline(n.getAttribute("data-cc-disable"),!0):e.accept(n.getAttribute("data-cc-disable"),!0),e.updateOptOutOptIn(),t.preventDefault()}})),this.registerEventListener(document,"click",(function(t){if(t.target.hasAttribute("data-cc-enable")||"A"!==t.target.tagName&&t.target.closest("[data-cc-enable]")){var n=t.target.closest("[data-cc-enable]");e.isAccepted(n.getAttribute("data-cc-enable"))||e.accept(n.getAttribute("data-cc-enable"),!0),e.updateOptOutOptIn(),t.preventDefault()}})),this.registerEventListener(document,"click",(function(t){(t.target.hasAttribute("data-cc-open")||"A"!==t.target.tagName&&t.target.closest("[data-cc-open]"))&&(e.open(),t.preventDefault())}))}},{key:"updateOptOutOptIn",value:function(){var e=this;null!==document.querySelector("[data-disable]")&&[].forEach.call(document.querySelectorAll("[data-disable]"),(function(e){e.hasAttribute("data-cc-disable")||e.setAttribute("data-cc-disable",e.getAttribute("data-disable"))})),null!==document.querySelector("[data-message]")&&[].forEach.call(document.querySelectorAll("[data-message]"),(function(e){e.hasAttribute("data-cc-message")||e.setAttribute("data-cc-message",e.getAttribute("data-message"))})),null!==document.querySelector("[data-cc-disable]")&&[].forEach.call(document.querySelectorAll("[data-cc-disable]"),(function(e){e.hasAttribute("data-cc-message-original")||e.setAttribute("data-cc-message-original",e.textContent)})),null!==document.querySelector("[data-cc-disable]")&&[].forEach.call(document.querySelectorAll("[data-cc-disable]"),(function(t){e.isAccepted(t.getAttribute("data-cc-disable"))?(t.textContent=t.getAttribute("data-cc-message-original"),t.classList.remove("disabled")):(t.textContent=t.getAttribute("data-cc-message"),t.classList.add("disabled"))})),null!==document.querySelector("[data-cc-enable]")&&[].forEach.call(document.querySelectorAll("[data-cc-enable]"),(function(t){e.isAccepted(t.getAttribute("data-cc-enable"))&&t.remove()}))}},{key:"isExcluded",value:function(){if(void 0===this.config.exclude)return!1;var e=!1;return this.config.exclude.forEach((function(t){"function"==typeof t&&!0===t()&&(e=!0),"string"==typeof t&&(0===t.indexOf("http")&&t===window.location.protocol+"//"+window.location.host+window.location.pathname||0!==t.indexOf("http")&&t===window.location.pathname||0!==t.indexOf("http")&&t+"/"===window.location.pathname)&&(e=!0)})),e}},{key:"addStyle",value:function(){var e,t,n,o,r,i,c,s,a,u,l,f,p,d,_,h,g,m,b,y,v="\n .chefcookie, .chefcookie *\n {\n box-sizing: border-box;\n margin:0;\n padding:0;\n }\n /* try to reset styles */\n .chefcookie h2,\n .chefcookie a:link,\n .chefcookie a:hover,\n .chefcookie a:visited\n {\n color:inherit;\n }\n .chefcookie\n {\n position: fixed;\n z-index: 2147483647;\n left: 0;\n right: 0;\n bottom: 0;\n transform: translateZ(0);\n }\n .chefcookie--hidden\n {\n opacity: 0;\n pointer-events:none;\n }\n .chefcookie__inner\n {\n width:100%;\n height:100%;\n text-align: center;\n white-space: nowrap;\n font-size: 0;\n overflow-y:auto;\n overflow-x:hidden;\n max-height:100vh;\n }\n .chefcookie__box\n {\n font-size: ".concat(this.config.style.size-3+15,"px;\n line-height:1.6;\n color:").concat(null!==(e=this.config.style.color_text)&&void 0!==e?e:"#595f60",";\n width: 100%;\n margin: 0 auto;\n display: inline-block;\n vertical-align: middle;\n white-space: normal;\n border-radius: 0;\n padding-top: 2em;\n padding-bottom: 2em;\n padding-left: 3em;\n padding-right: 3em;\n text-align: left;\n }\n .chefcookie__message\n {\n margin-bottom:1.5em;\n text-align:justify;\n }\n .chefcookie__message h2\n {\n margin-bottom:0.5em;\n font-size:2em;\n line-height:1.4;\n text-transform:uppercase;\n font-weight:700;\n text-align:left;\n }\n .chefcookie__message p {\n font-size: 1em;\n line-height:1.6;\n }\n .chefcookie__message a,\n .chefcookie__message a:focus\n {\n color:inherit;\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n text-decoration:underline;\n font-size: 1em;\n line-height:1.6;\n }\n .chefcookie__message a:focus\n {\n outline:none;\n }\n @media (hover: hover) {\n .chefcookie__message a:hover\n {\n opacity: 0.5;\n color: inherit;\n }\n }\n .chefcookie__message a:active\n {\n opacity: 0.1;\n color: inherit;\n }\n .chefcookie__buttons\n {\n margin-top:0.5em;\n }\n .chefcookie__button,\n .chefcookie__button:focus\n {\n padding: 1em 0.5em;\n border: 2px solid ").concat(null!==(t=this.config.style.color_text)&&void 0!==t?t:"#595f60",";\n font-weight: bold;\n display: block;\n color: inherit;\n text-decoration: none;\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n text-transform: uppercase;\n float: left;\n text-align: center;\n min-width: 21em;\n margin-right:3em;\n }\n .chefcookie__buttons--count-3 .chefcookie__button,\n .chefcookie__buttons--count-3 .chefcookie__button:focus {\n min-width:15em;\n margin-right:1em;\n }\n .chefcookie__button:last-child\n {\n margin-right:0;\n }\n .chefcookie__button:focus\n {\n outline:none;\n }\n @media (hover: hover) {\n .chefcookie__button:hover\n {\n opacity: 0.5;\n text-decoration:none;\n color: inherit;\n }\n }\n .chefcookie__button:active\n {\n opacity: 0.1;\n color: inherit;\n }\n .chefcookie__buttons:after\n {\n clear:both;\n display:table;\n content:"";\n }\n ').concat(void 0===this.config.style.highlight_accept||!0===this.config.style.highlight_accept?"\n .chefcookie__button--accept\n {\n background-color:".concat(null!==(n=null!==(o=this.config.style.color_highlight)&&void 0!==o?o:this.config.style.color)&&void 0!==n?n:"#ff0000",";\n border-color:transparent;\n }\n .chefcookie__button--accept.chefcookie__button--accept,\n .chefcookie__button--accept.chefcookie__button--accept:hover,\n .chefcookie__button--accept.chefcookie__button--accept:focus,\n .chefcookie__button--accept.chefcookie__button--accept:link,\n .chefcookie__button--accept.chefcookie__button--accept:visited\n {\n color:").concat(null!==(r=this.config.style.color_background)&&void 0!==r?r:"#eeeeee",";\n }\n "):"","\n .chefcookie__settings-container\n {\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,'s ease-out;\n }\n .chefcookie__groups\n {\n list-style-type:none;\n }\n .chefcookie__groups:after\n {\n clear:both;\n display:table;\n content:"";\n }\n .chefcookie__group\n {\n float: left;\n }\n .chefcookie__group:before\n {\n display:none;\n }\n .chefcookie__group-title\n {\n float:left;\n width:70%;\n min-height: 1.66em;\n line-height: 1.66;\n display: block;\n font-weight:bold;\n font-size:1.2em;\n line-height:1.7;\n text-transform:uppercase;\n }\n .chefcookie__group-label\n {\n cursor: pointer;\n display:block;\n width:100%;\n height:100%;\n font-size:1em;\n line-height:1.6;\n }\n .chefcookie__group-label:after\n {\n clear:both;\n display:table;\n content:""\n }\n .chefcookie__group--disabled .chefcookie__group-label\n {\n cursor:default;\n }\n .chefcookie__group-checkbox\n {\n opacity: 0;\n position:absolute;\n display: block;\n pointer-events:none;\n }\n .chefcookie__group--disabled .chefcookie__group-checkbox-icon\n {\n ').concat(void 0===this.config.style.show_disabled_checkbox||!1===this.config.style.show_disabled_checkbox?"display:none;":"opacity: 0.75 !important;","\n }\n .chefcookie__group-checkbox-icon\n {\n line-height:2;\n display: block;\n width: 4em;\n height: 2em;\n background-color: ").concat(null!==(i=this.config.style.color_background)&&void 0!==i?i:"#eeeeee",";\n border: 2px solid ").concat(null!==(c=this.config.style.color_text)&&void 0!==c?c:"#595f60",';\n margin: 0;\n padding: 0;\n position: relative;\n border-radius: 2em;\n float: right;\n }\n .chefcookie__group-checkbox-icon:before\n {\n content: "0";\n position: absolute;\n top: 0;\n left: 45%;\n width: 50%;\n bottom: 0;\n transition: all ').concat(this.animationSpeed/1e3,"s ease-in-out;\n text-align: center;\n font-weight: bold;\n font-size: 1em;\n line-height: 2;\n opacity: 0.25;\n color: ").concat(null!==(s=this.config.style.color_text)&&void 0!==s?s:"#595f60",';\n }\n .chefcookie__group-checkbox-icon:after\n {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n bottom: 0;\n box-shadow: 0 0 0px 1px ').concat(null!==(a=this.config.style.color_text)&&void 0!==a?a:"#595f60",";\n background-color: ").concat(null!==(u=this.config.style.color_text)&&void 0!==u?u:"#595f60",";\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n border-radius: 50%;\n }\n .chefcookie__group-checkbox ~ *\n {\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n }\n .chefcookie__group-checkbox[data-status="0"] ~ *\n {\n opacity: 0.75;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon\n {\n opacity: 0.85;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon:after\n {\n left:25%;\n }\n .chefcookie__group-checkbox[data-status="2"] ~ .chefcookie__group-checkbox-icon:after\n {\n left:50%;\n }\n .chefcookie__group-checkbox[data-status="1"] ~ .chefcookie__group-checkbox-icon:before,\n .chefcookie__group-checkbox[data-status="2"] ~ .chefcookie__group-checkbox-icon:before\n {\n content: "";\n background-color: ').concat(null!==(l=this.config.style.color_text)&&void 0!==l?l:"#595f60",";\n top: 30%;\n bottom: 30%;\n left: 27%;\n width: 3px;\n }\n .chefcookie__group-description\n {\n width:100%;\n clear:both;\n padding-top:1em;\n display: block;\n font-size:0.9em;\n line-height:1.5;\n text-align:justify;\n font-weight: normal;\n }\n .chefcookie__group-collapse,\n .chefcookie__group-collapse:focus {\n color:inherit;\n text-decoration:underline;\n padding-top: 0.5em;\n display: block;\n }\n @media (hover: hover) {\n .chefcookie__group-collapse:hover\n {\n opacity: 0.9;\n color: inherit;\n text-decoration:underline;\n }\n }\n .chefcookie__scripts\n {\n list-style-type:none;\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,'s ease-out;\n }\n .chefcookie__scripts--visible {\n height:auto;\n }\n .chefcookie__script {\n margin-bottom:0.5em;\n }\n .chefcookie__script:before\n {\n display:none;\n }\n .chefcookie__script:first-child {\n margin-top:1em;\n }\n .chefcookie__script:last-child {\n margin-bottom:0;\n }\n .chefcookie__script-title\n {\n float:left;\n width:70%;\n min-height: 1.66em;\n line-height: 1.66;\n display: block;\n }\n .chefcookie__script-label\n {\n cursor: pointer;\n display:block;\n width:100%;\n height:100%;\n }\n .chefcookie__script-label:after\n {\n clear:both;\n display:table;\n content:""\n }\n .chefcookie__script--disabled .chefcookie__script-label\n {\n cursor:default;\n }\n .chefcookie__script-checkbox\n {\n opacity: 0;\n position:absolute;\n display: block;\n pointer-events:none;\n }\n .chefcookie__script--disabled .chefcookie__script-checkbox-icon\n {\n ').concat(void 0===this.config.style.show_disabled_checkbox||!1===this.config.style.show_disabled_checkbox?"display:none;":"opacity: 0.75 !important;","\n }\n .chefcookie__script-checkbox-icon\n {\n line-height:1.5;\n display: block;\n width: 3em;\n height: 1.5em;\n background-color: ").concat(null!==(f=this.config.style.color_background)&&void 0!==f?f:"#eeeeee",";\n border: 1px solid ").concat(null!==(p=this.config.style.color_text)&&void 0!==p?p:"#595f60",';\n margin: 0;\n padding: 0;\n position: relative;\n border-radius: 2em;\n float: right;\n }\n .chefcookie__script-checkbox-icon:before\n {\n content: "0";\n position: absolute;\n top: 0;\n left: 45%;\n width: 50%;\n bottom: 0;\n transition: all ').concat(this.animationSpeed/1e3,"s ease-in-out;\n text-align: center;\n font-size: 0.7em;\n line-height: 2;\n opacity: 0.25;\n color: ").concat(null!==(d=this.config.style.color_text)&&void 0!==d?d:"#595f60",';\n }\n .chefcookie__script-checkbox-icon:after\n {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 50%;\n bottom: 0;\n box-shadow: 0 0 0px 1px ').concat(null!==(_=this.config.style.color_text)&&void 0!==_?_:"#595f60",";\n background-color: ").concat(null!==(h=this.config.style.color_text)&&void 0!==h?h:"#595f60",";\n transition: all ").concat(this.animationSpeed/1e3,"s ease-in-out;\n border-radius: 50%;\n }\n .chefcookie__script-checkbox ~ *\n {\n opacity: 0.75;\n transition: all ").concat(this.animationSpeed/1e3,'s ease-in-out;\n }\n .chefcookie__script-checkbox:checked ~ *\n {\n opacity:1;\n }\n .chefcookie__script-checkbox:checked ~ .chefcookie__script-checkbox-icon:after\n {\n left:50%;\n }\n .chefcookie__script-checkbox:checked ~ .chefcookie__script-checkbox-icon:before\n {\n content: "";\n background-color: ').concat(null!==(g=this.config.style.color_text)&&void 0!==g?g:"#595f60",";\n top: 30%;\n bottom: 30%;\n left: 27%;\n width: 2px;\n }\n\n .chefcookie__script-description\n {\n width: 100%;\n clear: both;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n display: block;\n font-size: 0.8em;\n line-height:1.4;\n text-align: justify;\n }\n .chefcookie__script-description-collapse,\n .chefcookie__script-description-collapse:focus {\n color:inherit;\n text-decoration:underline;\n padding-top: 0.25em;\n padding-bottom: 0.5em;\n display: block;\n }\n @media (hover: hover) {\n .chefcookie__script-description-collapse:hover\n {\n opacity: 0.9;\n color: inherit;\n text-decoration:underline;\n }\n }\n .chefcookie__script-description-content {\n height:0;\n overflow:hidden;\n transition: height ").concat(this.animationSpeed/1e3,"s ease-out;\n }\n .chefcookie__script-description-content > *:not(:last-child) {\n margin-bottom:0.5em;\n }\n .chefcookie__script-description-content table {\n width:100%;\n border-collapse: collapse;\n table-layout: fixed;\n }\n .chefcookie__script-description-content table td {\n border:1px solid ").concat(this.hexToRgbaStr(null!==(m=this.config.style.color_text)&&void 0!==m?m:"#595f60",.1),";\n padding: 0.3em 0.5em;\n vertical-align:top;\n }\n\n .chefcookie--noscroll body\n {\n position:fixed;\n width: 100%;\n overflow:hidden;\n }\n .chefcookie--fade body:after,\n .chefcookie--blur body:after\n {\n content:\"\";\n position:fixed;\n z-index: 2147483644;\n top:0;\n left:0;\n width:100%;\n height:100%;\n }\n .chefcookie--fade body:after\n {\n background-color: rgba(0, 0, 0, 0.65);\n }\n .chefcookie--blur body:after\n {\n backdrop-filter: grayscale(50%) blur(5px);\n }\n .chefcookie--overlay\n {\n top: 0;\n }\n .chefcookie--overlay .chefcookie__inner:before\n {\n content: '';\n display: inline-block;\n height: 100%;\n vertical-align: middle;\n }\n .chefcookie--overlay .chefcookie__box\n {\n width: 95%;\n max-width: 60em;\n box-shadow: 0 1em 5em -0.5em #000;\n background-color: ").concat(null!==(b=this.config.style.color_background)&&void 0!==b?b:"#eeeeee",";\n }\n .chefcookie--overlay .chefcookie__group\n {\n height: 13em;\n margin-bottom: 4%;\n background-color: rgba(").concat(""!=this.config.style.color_background&&["#000","#000000","black"].indexOf(this.config.style.color_background)>-1?"255, 255, 255":"0, 0, 0",", 0.05);\n border: 1px solid rgba(").concat(""!=this.config.style.color_background&&["#000","#000000","black"].indexOf(this.config.style.color_background)>-1?"255, 255, 255":"0, 0, 0",", 0.01);\n width: 48%;\n margin-right: 4%;\n }\n .chefcookie--overlay .chefcookie__group:nth-child(2n)\n {\n margin-right:0;\n }\n .chefcookie--overlay.chefcookie--has-scripts .chefcookie__group\n {\n height:auto;\n width: 100%;\n margin-right: 0;\n margin-bottom: 1em;\n }\n .chefcookie--overlay .chefcookie__group\n {\n padding: 1em 1.25em;\n }\n .chefcookie--bottombar,\n .chefcookie--topbar\n {\n background-color:").concat(null!==(y=this.config.style.color_background)&&void 0!==y?y:"#eeeeee",";\n box-shadow: 0 1em 5em -0.5em #000;\n }\n .chefcookie--bottombar\n {\n bottom:0;\n top:auto;\n }\n .chefcookie--topbar\n {\n bottom:auto;\n top:0;\n position:relative;\n }\n .chefcookie--bottombar .chefcookie__box,\n .chefcookie--topbar .chefcookie__box\n {\n max-width: 1280px;\n }\n .chefcookie--bottombar .chefcookie__group,\n .chefcookie--topbar .chefcookie__group\n {\n margin-bottom: 40px;\n margin-top: 40px;\n width: 22%;\n margin-right: 4%;\n }\n .chefcookie--bottombar .chefcookie__group:last-child,\n .chefcookie--topbar .chefcookie__group:last-child\n {\n margin-right:0;\n }\n .chefcookie--bottombar .chefcookie__groups--count-9 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-9 .chefcookie__group { width: 7.55%; }\n .chefcookie--bottombar .chefcookie__groups--count-8 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-8 .chefcookie__group { width: 9.00%; }\n .chefcookie--bottombar .chefcookie__groups--count-7 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-7 .chefcookie__group { width: 10.85%; }\n .chefcookie--bottombar .chefcookie__groups--count-6 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-6 .chefcookie__group { width: 13.33%; }\n .chefcookie--bottombar .chefcookie__groups--count-5 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-5 .chefcookie__group { width: 16.80%; }\n .chefcookie--bottombar .chefcookie__groups--count-4 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-4 .chefcookie__group { width: 22.00%; }\n .chefcookie--bottombar .chefcookie__groups--count-3 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-3 .chefcookie__group { width: 30.66%; }\n .chefcookie--bottombar .chefcookie__groups--count-2 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-2 .chefcookie__group { width: 48%; }\n .chefcookie--bottombar .chefcookie__groups--count-1 .chefcookie__group,\n .chefcookie--topbar .chefcookie__groups--count-1 .chefcookie__group { width: 100%; }\n @media screen and (max-width: 940px)\n {\n .chefcookie__button,\n .chefcookie__button:focus\n {\n float: none;\n margin: 0 0 1em;\n text-align: center;\n width: 100%;\n min-width:0;\n }\n }\n @media screen and (max-width: 840px)\n {\n .chefcookie__box\n {\n padding:1em;\n }\n .chefcookie__message h2\n {\n font-size:1.5em;\n line-height:1.4;\n }\n .chefcookie .chefcookie__group,\n .chefcookie--overlay .chefcookie__group,\n .chefcookie--bottombar .chefcookie__group,\n .chefcookie--topbar .chefcookie__group\n {\n float:none;\n margin-right:0;\n width:100% !important;\n height:auto;\n }\n }\n ");"css_replace"in this.config.style&&void 0!==this.config.style.css_replace&&null!==this.config.style.css_replace&&""!==this.config.style.css_replace&&(v=this.config.style.css_replace),"css_add"in this.config.style&&void 0!==this.config.style.css_add&&null!==this.config.style.css_add&&""!==this.config.style.css_add&&(v+=this.config.style.css_add),document.head.insertAdjacentHTML("beforeend",'<style class="chefcookie-styles">'+v+"</style>")}},{key:"addHtmlClasses",value:function(){document.documentElement.classList.add("chefcookie--visible"),1==this.config.style.noscroll&&("topbar"!==this.config.style.layout&&(this.scrollPosition=window.pageYOffset,document.body.style.top=-this.scrollPosition+"px"),document.documentElement.classList.add("chefcookie--noscroll")),1==this.config.style.fade&&document.documentElement.classList.add("chefcookie--fade"),1==this.config.style.blur&&document.documentElement.classList.add("chefcookie--blur")}},{key:"buildDom",value:function(){var e=this;document.body.insertAdjacentHTML("afterbegin",'\n <div class="chefcookie chefcookie--'.concat(this.config.style.layout," chefcookie--columns-").concat("columns"in this.config.style?this.config.style.columns:"auto").concat("scripts_selection"in this.config&&!1!==this.config.scripts_selection?" chefcookie--has-scripts":"",' chefcookie--hidden">\n <div class="chefcookie__inner">\n <div class="chefcookie__box">\n <div class="chefcookie__message">').concat(this.translate(this.config.message),'</div>\n <div class="chefcookie__settings-container">\n <ul class="chefcookie__groups chefcookie__groups--count-').concat(this.config.settings.length,'">\n ').concat(this.config.settings.map((function(t,n){return'\n <li class="chefcookie__group'.concat(t.cannot_be_modified?" chefcookie__group--disabled":"",'">\n <label class="chefcookie__group-label" for="chefcookie_group_').concat(n,'">\n <input').concat(t.cannot_be_modified?' disabled="disabled"':"",' class="chefcookie__group-checkbox" data-status="').concat(e.isCheckboxActiveForGroup(n),'" id="chefcookie_group_').concat(n,'" type="checkbox" name="chefcookie_group[]" value="').concat(n,'"').concat(2===e.isCheckboxActiveForGroup(n)?' checked="checked"':"",' />\n <span class="chefcookie__group-title">').concat(e.translate(t.title),'</span>\n <span class="chefcookie__group-checkbox-icon"></span>\n ').concat("description"in t&&""!=t.description?'\n <span class="chefcookie__group-description">'.concat(e.translate(t.description),"</span>\n "):"","\n ").concat("scripts_selection"in e.config&&"collapse"===e.config.scripts_selection&&"scripts"in t&&Object.keys(t.scripts).length>0&&-1===Object.keys(t.scripts)[0].indexOf("dummy_")?'\n <a href="#" class="chefcookie__group-collapse">'.concat(""!=e.getLabel("group_open")?e.getLabel("group_open"):e.getLabel("settings_open"),"</a>\n "):"","\n </label>\n ").concat("scripts_selection"in e.config&&!1!==e.config.scripts_selection&&"scripts"in t&&Object.keys(t.scripts).length>0&&-1===Object.keys(t.scripts)[0].indexOf("dummy_")?'\n <ul class="chefcookie__scripts chefcookie__scripts--count-'.concat(Object.keys(t.scripts).length).concat("collapse"!==e.config.scripts_selection?" chefcookie__scripts--visible":"",'">\n ').concat(Object.keys(t.scripts).map((function(o){return'\n <li class="chefcookie__script'.concat(t.cannot_be_modified?" chefcookie__script--disabled":"",'">\n <label class="chefcookie__script-label" for="chefcookie_script_').concat(n,"_").concat(o,'">\n <input').concat(t.cannot_be_modified?' disabled="disabled"':"",' class="chefcookie__script-checkbox" id="chefcookie_script_').concat(n,"_").concat(o,'" type="checkbox" name="chefcookie_script[]" value="').concat(n,"|").concat(o,'"').concat(e.isCheckboxActiveForProvider(n,o)?' checked="checked"':"",' />\n <span class="chefcookie__script-title">').concat("object"===(0,i.default)(t.scripts[o])&&null!==t.scripts[o]&&"title"in t.scripts[o]&&""!=t.scripts[o].title?e.translate(t.scripts[o].title):o,'</span>\n <span class="chefcookie__script-checkbox-icon"></span>\n </label>\n ').concat("object"===(0,i.default)(t.scripts[o])&&null!==t.scripts[o]&&"description"in t.scripts[o]&&""!=t.scripts[o].description?'<div class="chefcookie__script-description"><a href="#" class="chefcookie__script-description-collapse">'+e.getLabel("details_open")+'</a><div class="chefcookie__script-description-content">'+e.translate(t.scripts[o].description)+"</div></div>":"","\n </li>\n ")})).join(""),"\n </ul>\n "):"","\n </li>\n ")})).join(""),'\n </ul>\n </div>\n <div class="chefcookie__buttons chefcookie__buttons--count-').concat("show_decline_button"in this.config&&!0===this.config.show_decline_button?"3":"2",'">\n <a href="#chefcookie__settings" class="chefcookie__button chefcookie__button--settings">').concat(this.getLabel("settings_open"),'</a>\n <a href="#chefcookie__accept" class="chefcookie__button chefcookie__button--accept">').concat(this.getLabel(void 0===this.config.accept_all_if_settings_closed||!1===this.config.accept_all_if_settings_closed?"accept":"accept_all"),"</a>\n ").concat("show_decline_button"in this.config&&!0===this.config.show_decline_button?'\n <a href="#chefcookie__decline" class="chefcookie__button chefcookie__button--decline">'.concat(this.getLabel("decline"),"</a>\n "):"","\n </div>\n </div>\n </div>\n </div>\n "))}},{key:"getLabel",value:function(e){return void 0===this.config.labels[e]?"":this.translate(this.config.labels[e])}},{key:"bindButtons",value:function(){var e=this;null!==document.querySelector('a[href="#chefcookie__decline"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__decline"]'),(function(t){e.registerEventListener(t,"click",(function(t){e.logTracking("decline"),e.uncheckAllOptIns(),e.saveInCookie(),e.close(),e.setCookieToHideOverlay(),e.updateOptOutOptIn(),t.preventDefault()}))})),null!==document.querySelector('a[href="#chefcookie__accept"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__accept"]'),(function(t){e.registerEventListener(t,"click",(function(t){"accept_all_if_settings_closed"in e.config&&!0!==e.config.accept_all_if_settings_closed||e.settingsVisible()||e.checkAllOptIns(),e.saveInCookie(),e.addEnabledScripts(!0),e.close(),e.setCookieToHideOverlay(),e.updateOptOutOptIn(),t.preventDefault()}))})),null!==document.querySelector('a[href="#chefcookie__settings"]')&&[].forEach.call(document.querySelectorAll('a[href="#chefcookie__settings"]'),(function(t){e.registerEventListener(t,"click",(function(t){e.settingsVisible()?(e.hideSettings(),e.switchSettingsLabelsClose()):(e.showSettings(),e.switchSettingsLabelsOpen()),t.preventDefault()}))})),null!==document.querySelector(".chefcookie__script-checkbox")&&[].forEach.call(document.querySelectorAll(".chefcookie__script-checkbox"),(function(t){e.registerEventListener(t,"change",(function(e){var n=t.closest(".chefcookie__group").querySelector(".chefcookie__group-checkbox"),o=t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox:checked").length;o===t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox").length?(n.checked=!0,n.setAttribute("data-status",2)):(n.checked=!1,n.setAttribute("data-status",o>0?1:0)),e.preventDefault()}))})),null!==document.querySelector(".chefcookie__group-checkbox")&&[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox"),(function(t){e.registerEventListener(t,"change",(function(e){t.setAttribute("data-status",t.checked?2:0),null!==t.closest(".chefcookie__group").querySelector(".chefcookie__script-checkbox")&&[].forEach.call(t.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox"),(function(e){e.checked=t.checked})),e.preventDefault()}))})),null!==document.querySelector(".chefcookie__group-collapse")&&[].forEach.call(document.querySelectorAll(".chefcookie__group-collapse"),(function(t){e.registerEventListener(t,"click",(function(n){var o=t.closest(".chefcookie__group");e.scriptsVisible(o)?(e.hideScripts(o),e.switchScriptsLabelsClose(o)):(e.showScripts(o),e.switchScriptsLabelsOpen(o)),n.preventDefault()}))})),null!==document.querySelector(".chefcookie__script-description-collapse")&&[].forEach.call(document.querySelectorAll(".chefcookie__script-description-collapse"),(function(t){e.registerEventListener(t,"click",(function(n){var o=t.closest(".chefcookie__script-description");e.scriptDescriptionVisible(o)?(e.hideScriptDescription(o),e.switchScriptDescriptionLabelsClose(o)):(e.showScriptDescription(o),e.switchScriptDescriptionLabelsOpen(o)),n.preventDefault()}))}))}},{key:"switchSettingsLabelsOpen",value:function(){document.querySelector(".chefcookie__button--settings").textContent=this.getLabel("settings_close"),!0===this.config.accept_all_if_settings_closed&&(document.querySelector(".chefcookie__button--accept").textContent=this.getLabel("accept"))}},{key:"switchSettingsLabelsClose",value:function(){document.querySelector(".chefcookie__button--settings").textContent=this.getLabel("settings_open"),!0===this.config.accept_all_if_settings_closed&&(document.querySelector(".chefcookie__button--accept").textContent=this.getLabel("accept_all"))}},{key:"switchScriptsLabelsOpen",value:function(e){e.querySelector(".chefcookie__group-collapse").textContent=""!=this.getLabel("group_close")?this.getLabel("group_close"):this.getLabel("settings_close")}},{key:"switchScriptsLabelsClose",value:function(e){e.querySelector(".chefcookie__group-collapse").textContent=""!=this.getLabel("group_open")?this.getLabel("group_open"):this.getLabel("settings_open")}},{key:"switchScriptDescriptionLabelsOpen",value:function(e){e.querySelector(".chefcookie__script-description-collapse").textContent=this.getLabel("details_close")}},{key:"switchScriptDescriptionLabelsClose",value:function(e){e.querySelector(".chefcookie__script-description-collapse").textContent=this.getLabel("details_open")}},{key:"checkAllOptIns",value:function(){[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox, .chefcookie__script-checkbox"),(function(e){e.checked=!0}))}},{key:"uncheckAllOptIns",value:function(){[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox:not([disabled]), .chefcookie__script-checkbox:not([disabled])"),(function(e){e.checked=!1}))}},{key:"getCookieExpiration",value:function(){var e=30;return"expiration"in this.config&&Number.isInteger(this.config.expiration)&&(e=this.config.expiration),e}},{key:"getCookieName",value:function(e){return(this.config.cookie_prefix||"cc_")+e}},{key:"setCookie",value:function(e,t){var n=this.getCookieName(e),o=this.getCookieExpiration(),r=this.config.domain,i=window.location.protocol.indexOf("https")>-1?{secure:!0,samesite:"None"}:{};document.cookie=l.default.serialize(n,t,p({httpOnly:!1,maxAge:86400*o,path:"/",domain:r&&window.location.hostname.endsWith(r)?r:void 0},i))}},{key:"getCookie",value:function(e){var t=this.getCookieName(e);return l.default.parse(document.cookie)[t]}},{key:"isCheckboxActiveForGroup",value:function(e){var t,n=this;if(void 0===this.config.settings[e])return 0;if(t=this.config.settings[e],"scripts"in this.config.settings[e]){var o=!0,r=!1;if(Object.keys(t.scripts).forEach((function(e){n.isAccepted(e)||(o=!1),n.isAccepted(e)&&(r=!0)})),!0===o)return 2;if(this.isCookieSetToHideOverlay())return!0===r?1:0}return t.checked_by_default||t.active?2:0}},{key:"isCheckboxActiveForProvider",value:function(e,t){if(this.isAccepted(t))return!0;if(this.isCookieSetToHideOverlay())return!1;if(void 0!==this.config.settings[e]){var n=this.config.settings[e];return n.checked_by_default||n.active}return!1}},{key:"setCookieToHideOverlay",value:function(){this.setCookie("hide_prompt","1")}},{key:"isCookieSetToHideOverlay",value:function(){return void 0!==this.getCookie("hide_prompt")}},{key:"saveInCookie",value:function(){var e=this,t=[];[].forEach.call(document.querySelectorAll(".chefcookie__group-checkbox"),(function(n){null===n.closest(".chefcookie__group").querySelector(".chefcookie__script-checkbox")?!0===n.checked&&void 0!==e.config.settings[n.value].scripts&&Object.entries(e.config.settings[n.value].scripts).forEach((function(e){var n=(0,r.default)(e,2),o=n[0];n[1];t.push(o)})):[].forEach.call(n.closest(".chefcookie__group").querySelectorAll(".chefcookie__script-checkbox"),(function(n){!0===n.checked&&void 0!==e.config.settings[n.value.split("|")[0]].scripts[n.value.split("|")[1]]&&t.push(n.value.split("|")[1])}))})),0===t.length&&t.push("null"),this.setCookie("accepted_providers",t.join(","))}},{key:"addToCookie",value:function(e){var t;-1===(t=void 0===this.getCookie("accepted_providers")||"null"===this.getCookie("accepted_providers")?[]:this.getCookie("accepted_providers").split(",")).indexOf(e)&&(t.push(e),this.setCookie("accepted_providers",t.join(",")))}},{key:"deleteFromCookie",value:function(e){if(void 0!==this.getCookie("accepted_providers")){var t=this.getCookie("accepted_providers").split(","),n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0?this.setCookie("accepted_providers",t.join(",")):this.setCookie("accepted_providers","null")}}},{key:"addEnabledScripts",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0!==this.getCookie("accepted_providers")){var n=this.getCookie("accepted_providers");if("null"!=n){var o=!0;this.config.settings.forEach((function(i){void 0!==i.scripts&&Object.entries(i.scripts).forEach((function(i){var c=(0,r.default)(i,2),s=c[0],a=c[1];-1!==n.split(",").indexOf(s)?e.load(s,a,t):o=!1}))})),!0===t&&this.logTracking(o?"accept_all":"accept_partially",n)}}}},{key:"addScript",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==this.getCookie("accepted_providers")){var o=this.getCookie("accepted_providers").split(",");o!==["null"]&&this.config.settings.forEach((function(i){void 0!==i.scripts&&Object.entries(i.scripts).forEach((function(i){var c=(0,r.default)(i,2),s=c[0],a=c[1];s===e&&-1!==o.indexOf(s)&&t.load(s,a,n)}))}))}}},{key:"autoAcceptBasicScripts",value:function(){var e=this;this.config.settings.forEach((function(t){void 0!==t.scripts&&!0===t.initial_tracking&&Object.entries(t.scripts).forEach((function(t){var n=(0,r.default)(t,2),o=n[0];n[1];e.accept(o,!1)}))}))}},{key:"autoAcceptAllScripts",value:function(){var e=this;this.config.settings.forEach((function(t){void 0!==t.scripts&&Object.entries(t.scripts).forEach((function(t){var n=(0,r.default)(t,2),o=n[0];n[1];e.accept(o,!1)}))}))}},{key:"load",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isLoaded(e)||"object"===(0,i.default)(t)&&null!==t&&"exclude"in t&&"function"==typeof t.exclude&&!0===t.exclude()||("string"==typeof t||t instanceof String?this.loadAuto(e,t):"object"===(0,i.default)(t)&&null!==t&&"id"in t&&!("accept"in t)?this.loadAuto(e,t.id):"object"===(0,i.default)(t)&&null!==t&&"accept"in t&&"function"==typeof t.accept?new Promise((function(e){t.accept(n,e,o)})).then((function(){n.setLoaded(e)})):this.setLoaded(e),this.logDebug("added script "+e))}},{key:"loadAuto",value:function(e,t){var n=this;if("analytics"===e||"google"===e){var o=document.createElement("script");o.onload=function(){n.setLoaded(e)},o.src="https://www.googletagmanager.com/gtag/js?id="+t,document.head.appendChild(o),(o=document.createElement("script")).innerHTML="window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '"+t+"', { 'anonymize_ip': true, cookie_flags: 'SameSite=None;Secure' });",document.head.appendChild(o)}if("tagmanager"===e){var r=document.createElement("script"),i="";i+="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','"+t+"');",i+="function gtag(){dataLayer.push(arguments);}",r.innerHTML=i,document.head.appendChild(r),this.setLoaded(e)}if("facebook"===e){var c=document.createElement("script");c.innerHTML="!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', '"+t+"');fbq('track', 'PageView');fbq('track', 'ViewContent');",document.head.appendChild(c),this.setLoaded(e)}if("twitter"===e){var s=document.createElement("script");s.onload=function(){n.setLoaded(e)},s.src="//platform.twitter.com/oct.js",document.head.appendChild(s)}if("taboola"===e){var a=document.createElement("script");a.innerHTML="window._tfa = window._tfa || [];window._tfa.push({notify: 'event', name: 'page_view'});!function (t, f, a, x) { if (!document.getElementById(x)) { t.async = 1;t.src = a;t.id=x;f.parentNode.insertBefore(t, f); } }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/unip/"+t+"/tfa.js', 'tb_tfa_script');",document.head.appendChild(a),this.setLoaded(e)}if("match2one"===e){var u=document.createElement("script");u.onload=function(){n.setLoaded(e)},u.src="https://secure.adnxs.com/seg?add="+t+"&t=1",document.head.appendChild(u),(u=document.createElement("script")).innerHTML="window.m2o = true;",document.head.appendChild(u)}if("linkedin"===e){var l=document.createElement("script");l.innerHTML='\n _linkedin_partner_id = "'.concat(t,'";\n window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\n window._linkedin_data_partner_ids.push(_linkedin_partner_id);\n '),document.body.appendChild(l),(l=document.createElement("script")).innerHTML='\n (function(){var s = document.getElementsByTagName("script")[0];\n var b = document.createElement("script");\n b.type = "text/javascript";b.async = true;\n b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";\n s.parentNode.insertBefore(b, s);})();\n ',document.body.appendChild(l),(l=document.createElement("noscript")).innerHTML='\n <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid='.concat(t,'&fmt=gif" />\n '),document.body.appendChild(l),this.setLoaded(e)}if("smartlook"===e){var f=document.createElement("script");f.innerHTML="window.smartlook||(function(d) {var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';c.charset='utf-8';c.src='https://web-sdk.smartlook.com/recorder.js';h.appendChild(c);})(document);smartlook('init', '"+t+"', { region: 'eu' });",document.head.appendChild(f),this.setLoaded(e)}if("crazyegg"===e){var p=document.createElement("script");p.onload=function(){n.setLoaded(e)},p.src="//script.crazyegg.com/pages/scripts/"+t+".js",document.head.appendChild(p)}if("google_maps"===e){var d=document.createElement("script");d.src="https://maps.googleapis.com/maps/api/js?key="+t+"&callback=initMapCC",d.defer=!0,d.async=!0,window.initMapCC=function(){n.setLoaded(e)},document.head.appendChild(d)}if("etracker"===e){var _=document.createElement("script");_.onload=function(){n.setLoaded(e)},_.id="_etLoader",_.type="text/javascript",_.charset="UTF-8",_.setAttribute("data-block-cookies","true"),_.setAttribute("data-respect-dnt","true"),_.setAttribute("data-secure-code",t),_.src="//static.etracker.com/code/e.js",document.head.appendChild(_)}if("matomo"===e){var h=document.createElement("script");h.innerHTML='\n var _paq = window._paq = window._paq || [];\n /* tracker methods like "setCustomDimension" should be called before "trackPageView" */\n _paq.push([\'trackPageView\']);\n _paq.push([\'enableLinkTracking\']);\n (function() {\n var u="//'.concat(t.split("#")[0],"/\";\n _paq.push(['setTrackerUrl', u+'matomo.php']);\n _paq.push(['setSiteId', '").concat(t.split("#")[1],"']);\n var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n })();\n "),document.head.appendChild(h),this.setLoaded(e)}}},{key:"isAccepted",value:function(e){return void 0!==this.getCookie("accepted_providers")&&this.getCookie("accepted_providers").split(",").indexOf(e)>-1}},{key:"isLoaded",value:function(e){return"chefcookie_loaded"in window&&window.chefcookie_loaded.indexOf(e)>-1}},{key:"setLoaded",value:function(e){window.chefcookie_loaded.push(e)}},{key:"settingsVisible",value:function(){return document.querySelector(".chefcookie__settings-container").classList.contains("chefcookie__settings-container--visible")}},{key:"showSettings",value:function(){this.logTracking("settings_open");var e=document.querySelector(".chefcookie__settings-container");e.classList.add("chefcookie__settings-container--visible"),e.style.height=e.scrollHeight+"px",setTimeout((function(){e.classList.contains("chefcookie__settings-container--visible")&&(e.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideSettings",value:function(){this.logTracking("settings_close");var e=document.querySelector(".chefcookie__settings-container");e.classList.remove("chefcookie__settings-container--visible"),e.style.height=e.scrollHeight+"px",setTimeout((function(){e.style.height=0}),30)}},{key:"scriptsVisible",value:function(e){return e.querySelector(".chefcookie__scripts").classList.contains("chefcookie__scripts--visible")}},{key:"showScripts",value:function(e){var t=e.querySelector(".chefcookie__scripts");t.style.height=t.scrollHeight+"px",t.classList.add("chefcookie__scripts--visible"),setTimeout((function(){t.classList.contains("chefcookie__scripts--visible")&&(t.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideScripts",value:function(e){var t=e.querySelector(".chefcookie__scripts");t.style.height=t.scrollHeight+"px",t.classList.remove("chefcookie__scripts--visible"),setTimeout((function(){t.style.height=0}),30)}},{key:"scriptDescriptionVisible",value:function(e){return e.querySelector(".chefcookie__script-description-content").classList.contains("chefcookie__script-description-content--visible")}},{key:"showScriptDescription",value:function(e){var t=e.querySelector(".chefcookie__script-description-content");t.style.height=t.scrollHeight+"px",t.classList.add("chefcookie__script-description-content--visible"),setTimeout((function(){t.classList.contains("chefcookie__script-description-content--visible")&&(t.style.height="auto")}),this.animationSpeed),this.fixMaxHeight()}},{key:"hideScriptDescription",value:function(e){var t=e.querySelector(".chefcookie__script-description-content");t.style.height=t.scrollHeight+"px",t.classList.remove("chefcookie__script-description-content--visible"),setTimeout((function(){t.style.height=0}),30)}},{key:"fixMaxHeight",value:function(){document.querySelector(".chefcookie__inner").style.maxHeight=window.innerHeight+"px"}},{key:"eventAnalytics",value:function(e,t){"function"==typeof gtag&&(void 0===t?(gtag("event",e),this.logDebug("analytics "+e)):(gtag("event",t,{event_category:e}),this.logDebug("analytics "+e+" "+t)))}},{key:"eventGoogle",value:function(e,t){this.eventAnalytics(e,t)}},{key:"eventFacebook",value:function(e){"function"==typeof fbq&&(fbq("trackCustom",e),this.logDebug("facebook "+e))}},{key:"eventTwitter",value:function(e){"undefined"!=typeof twttr&&void 0!==twttr.conversion&&"function"==typeof twttr.conversion.trackPid&&(twttr.conversion.trackPid(e),this.logDebug("twitter "+e))}},{key:"eventTaboola",value:function(e){"object"==("undefined"==typeof _tfa?"undefined":(0,i.default)(_tfa))&&(_tfa.push({notify:"event",name:e}),this.logDebug("taboola "+e))}},{key:"eventMatch2one",value:function(e){if("undefined"!=typeof m2o){var t=document.createElement("script");t.src="https://secure.adnxs.com/px?"+e+"&t=1",document.head.appendChild(t),this.logDebug("match2one "+e)}}},{key:"eventLinkedin",value:function(e,t){document.body.insertAdjacentHTML("beforeend",'<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid='+e+"&conversionId="+t+'&fmt=gif" />'),this.logDebug("linkedin "+e+" "+t)}},{key:"eventEtracker",value:function(e,t){"undefined"!=typeof _etracker&&(void 0===t?(_etracker.sendEvent(new et_UserDefinedEvent(null,null,e,null)),this.logDebug("etracker "+e)):(_etracker.sendEvent(new et_UserDefinedEvent(null,e,t,null)),this.logDebug("etracker "+e+" "+t)))}},{key:"trackDuration",value:function(){for(var e=this,t=30;t/60<=8;)!function(t){window.setTimeout((function(){!0!==this.isDestroyed&&(e.eventAnalytics("duration_time",t+"s"),e.eventEtracker("duration_time",t+"s"))}),1e3*t)}(t),t+=30}},{key:"trackDurationCustom",value:function(e,t){setTimeout(t,1e3*e)}},{key:"trackScrollDepth",value:function(){var e=this;this.eventAnalytics("scroll_depth","0%"),this.eventEtracker("scroll_depth","0%"),this.registerEventListener(window,"scroll",(function(){var t=e.scrollPos();for(var n in e.scrollDepthTriggered)!1===e.scrollDepthTriggered[n]&&t>=n&&(e.scrollDepthTriggered[n]=!0,e.eventAnalytics("scroll_depth",n+"%"),e.eventEtracker("scroll_depth",n+"%"))}))}},{key:"registerEventListener",value:function(e,t,n){e.addEventListener(t,n),this.eventListeners.push({obj:e,type:t,fn:n})}},{key:"unregisterAllEventListeners",value:function(){this.eventListeners.forEach((function(e){e.obj.removeEventListener(e.type,e.fn)}))}},{key:"trackScrollDepthCustom",value:function(e,t){var n=this;this.registerEventListener(window,"scroll",(function(){var o=n.scrollPos();!1===n.scrollDepthTriggeredOnce&&o>=e&&(n.scrollDepthTriggeredOnce=!0,t())}))}},{key:"scrollPos",value:function(){var e=document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop,t=Math.max(document.body.offsetHeight,document.body.scrollHeight,document.documentElement.clientHeight,document.documentElement.offsetHeight,document.documentElement.scrollHeight),n=window.innerHeight;return Math.round(e/(t-n)*100)}},{key:"waitFor",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(o,r){var i=setInterval((function(){t.isLoaded(e)&&(window.clearInterval(i),null!==n&&"function"==typeof n&&n(),o())}),1e3)}))}},{key:"loadJs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;("string"==typeof e||e instanceof String)&&(e=[e]);var n=[];if(e.forEach((function(e){n.push(new Promise((function(t,n){var o=document.createElement("script");o.src=e,o.onload=function(){t()},document.head.appendChild(o)})))})),null===t||"function"!=typeof t)return Promise.all(n);Promise.all(n).then((function(){t()}))}},{key:"translate",value:function(e){if("string"==typeof e||e instanceof String)return e;var t=this.lng();return t in e?e[t]:Object.values(e)[0]}},{key:"lng",value:function(){var e="en";return document.documentElement.hasAttribute("lang")&&(e=document.documentElement.getAttribute("lang").substring(0,2).toLowerCase()),e}},{key:"url",value:function(){return window.location.protocol+"//"+window.location.host+window.location.pathname}},{key:"urlFull",value:function(){return window.location.href}},{key:"urlBase",value:function(){return window.location.protocol+"//"+window.location.host}},{key:"trim",value:function(e,t){var n=[" ","\n","\r","\t","\f","\v"," "," "," "," "," "," "," "," "," "," "," "," ","​","\u2028","\u2029"," "].join(""),o=0,r=0;for(e+="",t&&(n=(t+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),o=e.length,r=0;r<o;r++)if(-1===n.indexOf(e.charAt(r))){e=e.substring(r);break}for(r=(o=e.length)-1;r>=0;r--)if(-1===n.indexOf(e.charAt(r))){e=e.substring(0,r+1);break}return-1===n.indexOf(e.charAt(0))?e:""}},{key:"accept",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.addToCookie(e),this.isExcluded()||this.addScript(e,t)}},{key:"decline",value:function(e){this.deleteFromCookie(e)}},{key:"logDebug",value:function(e){"debug_log"in this.config&&!0===this.config.debug_log&&console.log(e)}},{key:"logTrackingActive",value:function(){return!(!("consent_tracking"in this.config)||!1===this.config.consent_tracking||void 0===this.config.consent_tracking||null===this.config.consent_tracking||""==this.config.consent_tracking)}},{key:"logTracking",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.logTrackingActive()){var n=new XMLHttpRequest,o=null,r=(-1===this.config.consent_tracking.indexOf("//")?this.trim(this.urlBase(),"/"):"")+"/"+this.trim(this.config.consent_tracking,"/");o={action:e,date:(new Date).getFullYear()+"-"+("0"+((new Date).getMonth()+1)).slice(-2)+"-"+("0"+(new Date).getDate()).slice(-2)+" "+("0"+(new Date).getHours()).slice(-2)+":"+("0"+(new Date).getMinutes()).slice(-2)+":"+("0"+(new Date).getSeconds()).slice(-2),url:this.urlFull(),providers:t,viewport:window.innerWidth+"x"+window.innerHeight},n.open("POST",r,!0),n.setRequestHeader("Content-type","application/json"),n.send(JSON.stringify(o))}}},{key:"trackFirstUserInteraction",value:function(){var e=this;this.logTrackingActive()&&["mousedown","mousemove","keydown","scroll","touchstart","click"].forEach((function(t){document.addEventListener(t,(function(){!0!==e.first_user_interaction&&(e.first_user_interaction=!0,e.logTracking("first_user_interaction"))}),!0)}))}},{key:"hexToRgb",value:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},{key:"hexToRgbaStr",value:function(e,t){var n=this.hexToRgb(e);return null===n?"":"rgba("+n.r+","+n.g+","+n.b+","+t+")"}}]),e}();n.default=d,window.chefcookie=d},{"./_helper":1,"@babel/polyfill/noConflict":4,"@babel/runtime/helpers/classCallCheck":7,"@babel/runtime/helpers/createClass":8,"@babel/runtime/helpers/defineProperty":9,"@babel/runtime/helpers/interopRequireDefault":10,"@babel/runtime/helpers/slicedToArray":13,"@babel/runtime/helpers/typeof":14,cookie:16,"mdn-polyfills/Element.prototype.closest":303,"mdn-polyfills/Node.prototype.remove":304,"mdn-polyfills/Number.isInteger":305,"mdn-polyfills/Object.entries":306,"mdn-polyfills/Object.values":307}],3:[function(e,t,n){"use strict";e("core-js/es6"),e("core-js/fn/array/includes"),e("core-js/fn/array/flat-map"),e("core-js/fn/string/pad-start"),e("core-js/fn/string/pad-end"),e("core-js/fn/string/trim-start"),e("core-js/fn/string/trim-end"),e("core-js/fn/symbol/async-iterator"),e("core-js/fn/object/get-own-property-descriptors"),e("core-js/fn/object/values"),e("core-js/fn/object/entries"),e("core-js/fn/promise/finally"),e("core-js/web"),e("regenerator-runtime/runtime")},{"core-js/es6":17,"core-js/fn/array/flat-map":18,"core-js/fn/array/includes":19,"core-js/fn/object/entries":20,"core-js/fn/object/get-own-property-descriptors":21,"core-js/fn/object/values":22,"core-js/fn/promise/finally":23,"core-js/fn/string/pad-end":24,"core-js/fn/string/pad-start":25,"core-js/fn/string/trim-end":26,"core-js/fn/string/trim-start":27,"core-js/fn/symbol/async-iterator":28,"core-js/web":302,"regenerator-runtime/runtime":308}],4:[function(e,t,n){e("./lib/noConflict")},{"./lib/noConflict":3}],5:[function(e,t,n){t.exports=function(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},t.exports.__esModule=!0,t.exports.default=t.exports},{}],6:[function(e,t,n){t.exports=function(e){if(Array.isArray(e))return e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],7:[function(e,t,n){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],8:[function(e,t,n){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)}}t.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],9:[function(e,t,n){t.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],10:[function(e,t,n){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],11:[function(e,t,n){t.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],c=!0,s=!1;try{for(n=n.call(e);!(c=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{c||null==n.return||n.return()}finally{if(s)throw r}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],12:[function(e,t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],13:[function(e,t,n){var o=e("./arrayWithHoles.js"),r=e("./iterableToArrayLimit.js"),i=e("./unsupportedIterableToArray.js"),c=e("./nonIterableRest.js");t.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||c()},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayWithHoles.js":6,"./iterableToArrayLimit.js":11,"./nonIterableRest.js":12,"./unsupportedIterableToArray.js":15}],14:[function(e,t,n){function o(e){return t.exports=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},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},{}],15:[function(e,t,n){var o=e("./arrayLikeToArray.js");t.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":5}],16:[function(e,t,n){
2
2
  /*!
3
3
  * cookie
4
4
  * Copyright(c) 2012-2014 Roman Shtylman
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chefcookie",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "main": "_build/script.js",
5
5
  "files": [
6
6
  "_build/*.js",