Browse code

Update js

Benjamin Roth authored on19/05/2020 12:44:21
Showing2 changed files
... ...
@@ -2691,7 +2691,7 @@ function () {
2691 2691
             style: "opacity: 1; mix-blend-mode: normal; fill: rgb(51, 51, 51); width: 32px; height: 32px;"
2692 2692
           }, (0, _redom.el)(document.createElementNS("http://www.w3.org/2000/svg", "path"), {
2693 2693
             'xmlns:default': "http://www.w3.org/2000/svg",
2694
-            id: "angle-down",
2694
+            class: "icon-wedge-angle-down",
2695 2695
             d: "M17.2,9.84c0-0.09-0.04-0.18-0.1-0.24l-0.52-0.52c-0.13-0.13-0.33-0.14-0.47-0.01c0,0-0.01,0.01-0.01,0.01  l-4.1,4.1l-4.09-4.1C7.78,8.94,7.57,8.94,7.44,9.06c0,0-0.01,0.01-0.01,0.01L6.91,9.6c-0.13,0.13-0.14,0.33-0.01,0.47  c0,0,0.01,0.01,0.01,0.01l4.85,4.85c0.13,0.13,0.33,0.14,0.47,0.01c0,0,0.01-0.01,0.01-0.01l4.85-4.85c0.06-0.06,0.1-0.15,0.1-0.24  l0,0H17.2z",
2696 2696
             style: "fill: rgb(51, 51, 51);"
2697 2697
           })))), (0, _redom.el)('dd.ccm__tab-content', (0, _redom.el)('div.ccm__tab-content__left', !window.CookieConsent.config.categories[key].needed && (0, _redom.el)('div.ccm__switch-component', (0, _redom.el)('div.status-off', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'off')), (0, _redom.el)('div.ccm__switch-group', (0, _redom.el)('label.ccm__switch', (0, _redom.el)('input.category-onoff', {
... ...
@@ -5751,7 +5751,88 @@ function () {
5751 5751
 }();
5752 5752
 
5753 5753
 exports.default = Configuration;
5754
-},{"./Utilities":"/6wJ","lodash/merge":"yubd"}],"ylk/":[function(require,module,exports) {
5754
+},{"./Utilities":"/6wJ","lodash/merge":"yubd"}],"xR4A":[function(require,module,exports) {
5755
+  "use strict";
5756
+
5757
+  Object.defineProperty(exports, "__esModule", {
5758
+    value: true
5759
+  });
5760
+  exports.default = void 0;
5761
+
5762
+  var _Utilities = _interopRequireDefault(require("./Utilities"));
5763
+
5764
+  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5765
+
5766
+  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5767
+
5768
+  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
5769
+
5770
+  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
5771
+
5772
+  var RemoveCookies =
5773
+    /*#__PURE__*/
5774
+    function () {
5775
+      function RemoveCookies() {
5776
+        _classCallCheck(this, RemoveCookies);
5777
+      }
5778
+
5779
+      _createClass(RemoveCookies, [{
5780
+        key: "init",
5781
+        value: function init() {
5782
+          this.removeUnwantedCookies();
5783
+        }
5784
+      }, {
5785
+        key: "removeUnwantedCookies",
5786
+        value: function removeUnwantedCookies() {
5787
+          var cookieList = [];
5788
+          var config = window.CookieConsent.config;
5789
+          document.cookie.split(';').map(function (a) {
5790
+            cookieList.push(a.split('=')[0].replace(/(^\s*)|(\s*&)/, ''));
5791
+          });
5792
+
5793
+          for (var service in config.services) {
5794
+            if (_Utilities.default.objectType(config.services[service].cookies) === 'Array') {
5795
+              // Remove cookies if they are not wanted by user
5796
+              if (!config.categories[config.services[service].category].wanted) {
5797
+                for (var i in config.services[service].cookies) {
5798
+                  var type = _Utilities.default.objectType(config.services[service].cookies[i].name);
5799
+
5800
+                  if (type === 'String') {
5801
+                    if (cookieList.indexOf(config.services[service].cookies[i].name) > -1) {
5802
+                      this.removeCookie(config.services[service].cookies[i]);
5803
+                    }
5804
+                  } else if (type === 'RegExp') {
5805
+                    // Searching cookie list for cookies matching specified RegExp
5806
+                    var cookieDef = config.services[service].cookies[i];
5807
+
5808
+                    for (var c in cookieList) {
5809
+                      if (cookieList[c].match(cookieDef.name)) {
5810
+                        this.removeCookie({
5811
+                          name: cookieList[c],
5812
+                          domain: _Utilities.default.objectType(cookieDef.domain) === 'String' ? cookieDef.domain : null
5813
+                        });
5814
+                      }
5815
+                    }
5816
+                  }
5817
+                }
5818
+              }
5819
+            }
5820
+          }
5821
+        }
5822
+      }, {
5823
+        key: "removeCookie",
5824
+        value: function removeCookie(cookie) {
5825
+          // Removing cookies from domain and .domain
5826
+          var domain = _Utilities.default.objectType(cookie.domain) === 'String' ? "domain=".concat(cookie.domain, ";") : '';
5827
+          document.cookie = "".concat(cookie.name, "=; expires=Thu, 01 Jan 1980 00:00:00 UTC; ").concat(domain, " path=/;");
5828
+        }
5829
+      }]);
5830
+
5831
+      return RemoveCookies;
5832
+    }();
5833
+
5834
+  exports.default = RemoveCookies;
5835
+},{"./Utilities":"/6wJ"}],"ylk/":[function(require,module,exports) {
5755 5836
 "use strict";
5756 5837
 
5757 5838
 Object.defineProperty(exports, "__esModule", {
... ...
@@ -5771,6 +5852,8 @@ var _Interface = _interopRequireDefault(require("./Interface"));
5771 5852
 
5772 5853
 var _Configuration = _interopRequireDefault(require("./Configuration"));
5773 5854
 
5855
+var _RemoveCookies = _interopRequireDefault(require("./RemoveCookies"));
5856
+
5774 5857
 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
5775 5858
 
5776 5859
 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
... ...
@@ -5790,10 +5873,12 @@ function () {
5790 5873
     key: "init",
5791 5874
     value: function init(configObject) {
5792 5875
       new _Configuration.default(configObject);
5876
+      var removeCookies = new _RemoveCookies.default();
5793 5877
       var insertScriptFilter = new _InsertScriptFilter.default();
5794 5878
       var scriptTagFilter = new _ScriptTagFilter.default();
5795 5879
       var wrapperFilter = new _WrapperFilter.default();
5796 5880
       var localCookieFilter = new _LocalCookieFilter.default();
5881
+      removeCookies.init();
5797 5882
       insertScriptFilter.init();
5798 5883
       scriptTagFilter.init();
5799 5884
       wrapperFilter.init();
... ...
@@ -5809,7 +5894,7 @@ function () {
5809 5894
 }();
5810 5895
 
5811 5896
 exports.default = CookieConsent;
5812
-},{"./InsertScriptFilter":"UWvR","./ScriptTagFilter":"ob2e","./WrapperFilter":"935K","./LocalCookieFilter":"2E//","./Interface":"/Qw2","./Configuration":"duLQ"}],"Focm":[function(require,module,exports) {
5897
+},{"./InsertScriptFilter":"UWvR","./ScriptTagFilter":"ob2e","./WrapperFilter":"935K","./LocalCookieFilter":"2E//","./Interface":"/Qw2","./Configuration":"duLQ","./RemoveCookies":"xR4A"}],"Focm":[function(require,module,exports) {
5813 5898
 "use strict";
5814 5899
 
5815 5900
 require("core-js/es6/symbol");
... ...
@@ -150,7 +150,7 @@ require("../../modules/es6.string.iterator"),require("../../modules/web.dom.iter
150 150
 },{}],"4LWe":[function(require,module,exports) {
151 151
 "use strict";function e(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function n(e,n){for(var a=0;a<n.length;a++){var t=n[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function a(e,a,t){return a&&n(e.prototype,a),t&&n(e,t),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=function(){function n(){e(this,n)}return a(n,[{key:"setLocale",value:function(e){window.CookieConsent.config.language.current=e}}],[{key:"getTranslation",value:function(e,n,a){var t;return e.hasOwnProperty("language")?e.language.hasOwnProperty("locale")?(t=e.language.locale.hasOwnProperty(n)?n:"en",e.language.locale[t].hasOwnProperty(a)?e.language.locale[t][a]:"[Missing translation]"):"[Missing locale object]":"[Missing language object]"}}]),n}();exports.default=t;
152 152
 },{}],"/Qw2":[function(require,module,exports) {
153
-"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("redom"),o=n(require("./Language")),t=n(require("./Utilities"));function n(e){return e&&e.__esModule?e:{default:e}}function c(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function i(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,o,t){return o&&i(e.prototype,o),t&&i(e,t),e}var r=function(){function n(){c(this,n),this.elements={}}return a(n,[{key:"buildStyle",value:function(){return(0,e.el)("style","#cconsent-bar, #cconsent-bar * { box-sizing:border-box }","#cconsent-bar { background-color:"+window.CookieConsent.config.theme.barColor+"; color:"+window.CookieConsent.config.theme.barTextColor+"; padding:15px; text-align:right; font-family:sans-serif; font-size:14px; line-height:18px; position:fixed; bottom:0; left:0; width:100%; z-index:9998; transform: translateY(0); transition: transform .6s ease-in-out; transition-delay: .3s;}","#cconsent-bar.ccb--hidden {transform: translateY(100%); display:block;}","#cconsent-bar .ccb__wrapper { display:flex; flex-wrap:wrap; justify-content:space-between; max-width:1800px; margin:0 auto;}","#cconsent-bar .ccb__left { align-self:center; text-align:left; margin: 15px 0;}","#cconsent-bar .ccb__right { align-self:center; white-space: nowrap;}","#cconsent-bar .ccb__right > div {display:inline-block; color:#FFF;}","#cconsent-bar a { text-decoration:underline; color:"+window.CookieConsent.config.theme.barTextColor+"; }","#cconsent-bar .ccb__button button, #cconsent-bar .ccb__button a { line-height:normal; font-size:14px; border:none; text-decoration: none; padding:10px 10px; color:' + window.CookieConsent.config.theme.barMainButtonTextColor + '; background-color:' + window.CookieConsent.config.theme.barMainButtonColor + ';}","#cconsent-bar a.ccb__edit { margin-right:15px }","#cconsent-bar a:hover, #cconsent-bar button:hover { cursor:pointer; }","#cconsent-modal { display:none; font-size:14px; line-height:18px; color:#666; width: 100vw; height: 100vh; position:fixed; left:0; top:0; right:0; bottom:0; font-family:sans-serif; font-size:14px; background-color:rgba(0,0,0,0.6); z-index:9999; align-items:center; justify-content:center;}","@media (max-width: 600px) { #cconsent-modal { height: 100% } }","#cconsent-modal h2, #cconsent-modal h3 {color:#333}","#cconsent-modal.ccm--visible {display:flex}","#cconsent-modal .ccm__content { max-width:600px; min-height:500px; max-height:600px; overflow-Y:auto; background-color:#EFEFEF; }","@media (max-width: 600px) { #cconsent-modal .ccm__content { max-width:100vw; height:100%; max-height:initial; }}","#cconsent-modal .ccm__content > .ccm__content__heading { border-bottom:1px solid #D8D8D8; padding:35px 35px 20px; background-color:#EFEFEF; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__heading h2 { font-size:21px; font-weight:600; color:#333; margin:0 }","#cconsent-modal .ccm__content > .ccm__content__heading .ccm__cheading__close {font-weight:600; color:#888; cursor:pointer; font-size:26px; position: absolute; right:15px; top: 15px;}","#cconsent-modal h2, #cconsent-modal h3 {margin-top:0}","#cconsent-modal .ccm__content > .ccm__content__body { background-color:#FFF;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup {margin:0; border-bottom: 1px solid #D8D8D8; }",'#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head::before { position:absolute; left:35px; font-size:1.4em; font-weight: 600; color:#E56385; content:"×"; display:inline-block; margin-right: 20px;}','#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.checked-5jhk .ccm__tab-head::before {font-size:1em; content:"✔"; color:#28A834}',"#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head .ccm__tab-head__icon-wedge { transition: transform .3s ease-out; transform-origin: 16px 6px 0; position:absolute;right:25px; top:50%; transform:rotate(0deg); transform:translateY(-50%)}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head .ccm__tab-head__icon-wedge > svg { pointer-events: none; }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-head .ccm__tab-head__icon-wedge {transform:rotate(-180deg)}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head {color:#333; padding:17px 35px 17px 56px; margin:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content {padding:25px 35px; margin:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head { transition: background-color .5s ease-out }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head:hover { background-color:#F9F9F9 }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head {font-weight:600; cursor:pointer; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-content {display:none;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-head { background-color:#F9F9F9 }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-content {display:flex;}","@media (max-width: 600px) { #cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-content {flex-direction:column} }","@media (max-width: 600px) { #cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left { margin-bottom:20px; } }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-component {display:flex; margin-right:35px; align-items:center;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-component > div {font-weight:600;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-group {width:40px; height:20px; margin:0 10px; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch {position: absolute; top:0; right:0; display: inline-block; width: 40px; height: 20px;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input {display:none;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch .ccm__switch__slider  {position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius:10px; -webkit-transition: .4s; transition: .4s;}",'#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch .ccm__switch__slider:before  {position: absolute; content: ""; height: 12px; width: 12px; left: 4px; bottom: 4px; background-color: white; border-radius:50%; -webkit-transition: .4s; transition: .4s;}',"#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:checked + .ccm__switch__slider  {background-color: #28A834;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:focus + .ccm__switch__slider  {box-shadow: 0 0 1px #28A834;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:checked + .ccm__switch__slider:before  {-webkit-transform: translateX(20px); -ms-transform: translateX(20px); transform: translateX(20px);}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content h3 {font-size:18px; margin-bottom:10px; line-height:1;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content p {color:#444; margin-bottom:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list:not(:empty) {margin-top:30px;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list .ccm__list__title {color:#333; font-weight:600;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list ul { margin:15px 0; padding-left:15px }","#cconsent-modal .ccm__footer { padding:35px; background-color:#EFEFEF; text-align:center; display: flex; align-items:center; justify-content:flex-end; }","#cconsent-modal .ccm__footer button { line-height:normal; font-size:14px; transition: background-color .5s ease-out; background-color:"+window.CookieConsent.config.theme.modalMainButtonColor+"; color:"+window.CookieConsent.config.theme.modalMainButtonTextColor+"; border:none; padding:13px; min-width:110px; border-radius: 2px; cursor:pointer; }","#cconsent-modal .ccm__footer button:hover { background-color:"+t.default.lightenDarkenColor(window.CookieConsent.config.theme.modalMainButtonColor,-20)+"; }","#cconsent-modal .ccm__footer button#ccm__footer__consent-modal-submit {  margin-right:10px; }")}},{key:"buildBar",value:function(){return(0,e.el)("div#cconsent-bar.ccb--hidden",(0,e.el)("div.ccb__wrapper",(0,e.el)("div.ccb__left",(0,e.el)("div.cc-text",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barMainText"))),(0,e.el)("div.ccb__right",(0,e.el)("div.ccb__button",(0,e.el)("a.ccb__edit",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barLinkSetting")),(0,e.el)("button.consent-give",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barBtnAcceptAll"))))))}},{key:"buildModal",value:function(){var t=function(t){var n=[];for(var c in window.CookieConsent.config.services)window.CookieConsent.config.services[c].category===t&&n.push(window.CookieConsent.config.services[c]);if(n.length){var i=[];for(var a in n)i.push((0,e.el)("li",o.default.getTranslation(n[a],window.CookieConsent.config.language.current,"name")));return[(0,e.el)("div.ccm__list",(0,e.el)("span.ccm__list__title",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalAffectedSolutions")),(0,e.el)("ul",i))]}};return(0,e.el)("div#cconsent-modal",(0,e.el)("div.ccm__content",(0,e.el)("div.ccm__content__heading",(0,e.el)("h2",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalMainTitle")),(0,e.el)("p",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalMainText"),window.CookieConsent.config.modalMainTextMoreLink?(0,e.el)("a",{href:window.CookieConsent.config.modalMainTextMoreLink,target:"_blank",rel:"noopener noreferrer"},o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"learnMore")):null),(0,e.el)("div.ccm__cheading__close","×")),(0,e.el)("div.ccm__content__body",(0,e.el)("div.ccm__tabs",function(){var n=[];for(var c in window.CookieConsent.config.categories)n.push((0,e.el)("dl.ccm__tabgroup."+c+(window.CookieConsent.config.categories[c].checked?".checked-5jhk":""),{"data-category":c},(0,e.el)("dt.ccm__tab-head",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"name"),(0,e.el)("a.ccm__tab-head__icon-wedge",(0,e.el)(document.createElementNS("http://www.w3.org/2000/svg","svg"),{version:"1.2",preserveAspectRatio:"none",viewBox:"0 0 24 24",class:"icon-wedge-svg","data-id":"e9b3c566e8c14cfea38af128759b91a3",style:"opacity: 1; mix-blend-mode: normal; fill: rgb(51, 51, 51); width: 32px; height: 32px;"},(0,e.el)(document.createElementNS("http://www.w3.org/2000/svg","path"),{"xmlns:default":"http://www.w3.org/2000/svg",id:"angle-down",d:"M17.2,9.84c0-0.09-0.04-0.18-0.1-0.24l-0.52-0.52c-0.13-0.13-0.33-0.14-0.47-0.01c0,0-0.01,0.01-0.01,0.01  l-4.1,4.1l-4.09-4.1C7.78,8.94,7.57,8.94,7.44,9.06c0,0-0.01,0.01-0.01,0.01L6.91,9.6c-0.13,0.13-0.14,0.33-0.01,0.47  c0,0,0.01,0.01,0.01,0.01l4.85,4.85c0.13,0.13,0.33,0.14,0.47,0.01c0,0,0.01-0.01,0.01-0.01l4.85-4.85c0.06-0.06,0.1-0.15,0.1-0.24  l0,0H17.2z",style:"fill: rgb(51, 51, 51);"})))),(0,e.el)("dd.ccm__tab-content",(0,e.el)("div.ccm__tab-content__left",!window.CookieConsent.config.categories[c].needed&&(0,e.el)("div.ccm__switch-component",(0,e.el)("div.status-off",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"off")),(0,e.el)("div.ccm__switch-group",(0,e.el)("label.ccm__switch",(0,e.el)("input.category-onoff",{type:"checkbox","data-category":c,checked:window.CookieConsent.config.categories[c].checked}),(0,e.el)("span.ccm__switch__slider"))),(0,e.el)("div.status-on",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"on")))),(0,e.el)("div.right",(0,e.el)("h3",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"name")),(0,e.el)("p",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"description")),(0,e.el)("div.ccm__list",t(c))))));return n}())),(0,e.el)("div.ccm__footer",(0,e.el)("button#ccm__footer__consent-modal-submit",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalBtnSave")),(0,e.el)("button.consent-give",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalBtnAcceptAll")))))}},{key:"modalRedrawIcons",value:function(){var e=this.elements.modal.querySelectorAll(".ccm__tabgroup"),o=!0,t=!1,n=void 0;try{for(var c,i=e[Symbol.iterator]();!(o=(c=i.next()).done);o=!0){var a=c.value;window.CookieConsent.config.categories[a.dataset.category].checked?a.classList.contains("checked-5jhk")||(a.classList.add("checked-5jhk"),a.querySelector("input.category-onoff").checked=!0):(a.classList.contains("checked-5jhk")&&a.classList.remove("checked-5jhk"),a.querySelector("input.category-onoff").checked=!1)}}catch(r){t=!0,n=r}finally{try{o||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"render",value:function(o,t,n){if(void 0===n&&(n=function(){}),void 0!==this.elements[o])return this.elements[o].parentNode.replaceChild(t,this.elements[o]),this.elements[o]=t,n(t),t;var c=(0,e.mount)(document.body,t);return c&&(this.elements[o]=c),n(c),c}},{key:"buildInterface",value:function(e){void 0===e&&(e=function(){});var o=this;t.default.ready(function(){o.render("style",o.buildStyle()),o.render("bar",o.buildBar(),function(e){window.CookieConsent.config.cookieExists||setTimeout(function(){e.classList.remove("ccb--hidden")},window.CookieConsent.config.barTimeout)}),o.render("modal",o.buildModal()),e()})}},{key:"addEventListeners",value:function(e){var o=this,t=document.querySelectorAll(".consent-give"),n=!0,c=!1,i=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){a.value.addEventListener("click",function(){for(var e in window.CookieConsent.config.categories)window.CookieConsent.config.categories[e].wanted=window.CookieConsent.config.categories[e].checked=!0;o.writeBufferToDOM(),o.buildCookie(function(e){o.setCookie(e)}),o.elements.bar.classList.add("ccb--hidden"),o.elements.modal.classList.remove("ccm--visible"),o.modalRedrawIcons()})}}catch(_){c=!0,i=_}finally{try{n||null==r.return||r.return()}finally{if(c)throw i}}Array.prototype.forEach.call(document.getElementsByClassName("ccb__edit"),function(e){e.addEventListener("click",function(){o.elements.modal.classList.add("ccm--visible")})}),this.elements.modal.querySelector(".ccm__tabs").addEventListener("click",function(e){if(e.target.classList.contains("ccm__tab-head")||e.target.classList.contains("ccm__tab-head__icon-wedge")){var o=function e(o){var t=o.parentNode;return"DL"!==t.nodeName?e(t):t}(e.target);o.classList.contains("ccm__tabgroup--open")?o.classList.remove("ccm__tabgroup--open"):o.classList.add("ccm__tabgroup--open")}if(e.target.classList.contains("category-onoff")){window.CookieConsent.config.categories[e.target.dataset.category].wanted=window.CookieConsent.config.categories[e.target.dataset.category].checked=!0===e.target.checked;var t=document.querySelector(".ccm__tabgroup."+e.target.dataset.category);!1===e.target.checked&&t.classList.contains("checked-5jhk")?t.classList.remove("checked-5jhk"):t.classList.add("checked-5jhk")}}),this.elements.modal.querySelector(".ccm__cheading__close").addEventListener("click",function(e){o.elements.modal.classList.remove("ccm--visible")}),document.getElementById("ccm__footer__consent-modal-submit").addEventListener("click",function(){var e=o.elements.modal.querySelectorAll(".ccm__switch input");Array.prototype.forEach.call(e,function(e){window.CookieConsent.config.categories[e.dataset.category].wanted=e.checked}),o.buildCookie(function(e){o.setCookie(e,function(){o.elements.modal.classList.remove("ccm--visible"),o.elements.bar.classList.add("ccb--hidden")})}),o.writeBufferToDOM()})}},{key:"writeBufferToDOM",value:function(){var e=!0,o=!1,t=void 0;try{for(var n,c=window.CookieConsent.buffer.appendChild[Symbol.iterator]();!(e=(n=c.next()).done);e=!0){var i=n.value;!0===window.CookieConsent.config.categories[i.category].wanted&&Node.prototype.appendChild.apply(i.this,i.arguments)}}catch(m){o=!0,t=m}finally{try{e||null==c.return||c.return()}finally{if(o)throw t}}var a=!0,r=!1,_=void 0;try{for(var s,l=window.CookieConsent.buffer.insertBefore[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var d=s.value;!0===window.CookieConsent.config.categories[d.category].wanted&&(d.arguments[1]=null===d.arguments[0].parentNode?d.this.lastChild:d.arguments[1],Node.prototype.insertBefore.apply(d.this,d.arguments))}}catch(m){r=!0,_=m}finally{try{a||null==l.return||l.return()}finally{if(r)throw _}}}},{key:"buildCookie",value:function(e){var o={version:window.CookieConsent.config.cookieVersion,categories:{},services:[]};for(var n in window.CookieConsent.config.categories)o.categories[n]={wanted:window.CookieConsent.config.categories[n].wanted};return o.services=t.default.listGlobalServices(),e&&e(o),o}},{key:"setCookie",value:function(e,o){document.cookie="cconsent=".concat(JSON.stringify(e),"; expires=Thu, 01 Jan 2099 00:00:00 UTC; path=/;"),o&&o()}}]),n}();exports.default=r;
153
+"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("redom"),o=n(require("./Language")),t=n(require("./Utilities"));function n(e){return e&&e.__esModule?e:{default:e}}function c(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function i(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,o,t){return o&&i(e.prototype,o),t&&i(e,t),e}var r=function(){function n(){c(this,n),this.elements={}}return a(n,[{key:"buildStyle",value:function(){return(0,e.el)("style","#cconsent-bar, #cconsent-bar * { box-sizing:border-box }","#cconsent-bar { background-color:"+window.CookieConsent.config.theme.barColor+"; color:"+window.CookieConsent.config.theme.barTextColor+"; padding:15px; text-align:right; font-family:sans-serif; font-size:14px; line-height:18px; position:fixed; bottom:0; left:0; width:100%; z-index:9998; transform: translateY(0); transition: transform .6s ease-in-out; transition-delay: .3s;}","#cconsent-bar.ccb--hidden {transform: translateY(100%); display:block;}","#cconsent-bar .ccb__wrapper { display:flex; flex-wrap:wrap; justify-content:space-between; max-width:1800px; margin:0 auto;}","#cconsent-bar .ccb__left { align-self:center; text-align:left; margin: 15px 0;}","#cconsent-bar .ccb__right { align-self:center; white-space: nowrap;}","#cconsent-bar .ccb__right > div {display:inline-block; color:#FFF;}","#cconsent-bar a { text-decoration:underline; color:"+window.CookieConsent.config.theme.barTextColor+"; }","#cconsent-bar .ccb__button button, #cconsent-bar .ccb__button a { line-height:normal; font-size:14px; border:none; text-decoration: none; padding:10px 10px; color:' + window.CookieConsent.config.theme.barMainButtonTextColor + '; background-color:' + window.CookieConsent.config.theme.barMainButtonColor + ';}","#cconsent-bar a.ccb__edit { margin-right:15px }","#cconsent-bar a:hover, #cconsent-bar button:hover { cursor:pointer; }","#cconsent-modal { display:none; font-size:14px; line-height:18px; color:#666; width: 100vw; height: 100vh; position:fixed; left:0; top:0; right:0; bottom:0; font-family:sans-serif; font-size:14px; background-color:rgba(0,0,0,0.6); z-index:9999; align-items:center; justify-content:center;}","@media (max-width: 600px) { #cconsent-modal { height: 100% } }","#cconsent-modal h2, #cconsent-modal h3 {color:#333}","#cconsent-modal.ccm--visible {display:flex}","#cconsent-modal .ccm__content { max-width:600px; min-height:500px; max-height:600px; overflow-Y:auto; background-color:#EFEFEF; }","@media (max-width: 600px) { #cconsent-modal .ccm__content { max-width:100vw; height:100%; max-height:initial; }}","#cconsent-modal .ccm__content > .ccm__content__heading { border-bottom:1px solid #D8D8D8; padding:35px 35px 20px; background-color:#EFEFEF; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__heading h2 { font-size:21px; font-weight:600; color:#333; margin:0 }","#cconsent-modal .ccm__content > .ccm__content__heading .ccm__cheading__close {font-weight:600; color:#888; cursor:pointer; font-size:26px; position: absolute; right:15px; top: 15px;}","#cconsent-modal h2, #cconsent-modal h3 {margin-top:0}","#cconsent-modal .ccm__content > .ccm__content__body { background-color:#FFF;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup {margin:0; border-bottom: 1px solid #D8D8D8; }",'#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head::before { position:absolute; left:35px; font-size:1.4em; font-weight: 600; color:#E56385; content:"×"; display:inline-block; margin-right: 20px;}','#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.checked-5jhk .ccm__tab-head::before {font-size:1em; content:"✔"; color:#28A834}',"#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head .ccm__tab-head__icon-wedge { transition: transform .3s ease-out; transform-origin: 16px 6px 0; position:absolute;right:25px; top:50%; transform:rotate(0deg); transform:translateY(-50%)}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-head .ccm__tab-head__icon-wedge > svg { pointer-events: none; }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-head .ccm__tab-head__icon-wedge {transform:rotate(-180deg)}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head {color:#333; padding:17px 35px 17px 56px; margin:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content {padding:25px 35px; margin:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head { transition: background-color .5s ease-out }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head:hover { background-color:#F9F9F9 }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-head {font-weight:600; cursor:pointer; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup .ccm__tab-content {display:none;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-head { background-color:#F9F9F9 }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-content {display:flex;}","@media (max-width: 600px) { #cconsent-modal .ccm__content > .ccm__content__body .ccm__tabgroup.ccm__tabgroup--open .ccm__tab-content {flex-direction:column} }","@media (max-width: 600px) { #cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left { margin-bottom:20px; } }","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-component {display:flex; margin-right:35px; align-items:center;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-component > div {font-weight:600;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch-group {width:40px; height:20px; margin:0 10px; position:relative;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch {position: absolute; top:0; right:0; display: inline-block; width: 40px; height: 20px;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input {display:none;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch .ccm__switch__slider  {position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius:10px; -webkit-transition: .4s; transition: .4s;}",'#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch .ccm__switch__slider:before  {position: absolute; content: ""; height: 12px; width: 12px; left: 4px; bottom: 4px; background-color: white; border-radius:50%; -webkit-transition: .4s; transition: .4s;}',"#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:checked + .ccm__switch__slider  {background-color: #28A834;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:focus + .ccm__switch__slider  {box-shadow: 0 0 1px #28A834;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__tab-content__left .ccm__switch input:checked + .ccm__switch__slider:before  {-webkit-transform: translateX(20px); -ms-transform: translateX(20px); transform: translateX(20px);}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content h3 {font-size:18px; margin-bottom:10px; line-height:1;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content p {color:#444; margin-bottom:0}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list:not(:empty) {margin-top:30px;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list .ccm__list__title {color:#333; font-weight:600;}","#cconsent-modal .ccm__content > .ccm__content__body .ccm__tab-content .ccm__list ul { margin:15px 0; padding-left:15px }","#cconsent-modal .ccm__footer { padding:35px; background-color:#EFEFEF; text-align:center; display: flex; align-items:center; justify-content:flex-end; }","#cconsent-modal .ccm__footer button { line-height:normal; font-size:14px; transition: background-color .5s ease-out; background-color:"+window.CookieConsent.config.theme.modalMainButtonColor+"; color:"+window.CookieConsent.config.theme.modalMainButtonTextColor+"; border:none; padding:13px; min-width:110px; border-radius: 2px; cursor:pointer; }","#cconsent-modal .ccm__footer button:hover { background-color:"+t.default.lightenDarkenColor(window.CookieConsent.config.theme.modalMainButtonColor,-20)+"; }","#cconsent-modal .ccm__footer button#ccm__footer__consent-modal-submit {  margin-right:10px; }")}},{key:"buildBar",value:function(){return(0,e.el)("div#cconsent-bar.ccb--hidden",(0,e.el)("div.ccb__wrapper",(0,e.el)("div.ccb__left",(0,e.el)("div.cc-text",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barMainText"))),(0,e.el)("div.ccb__right",(0,e.el)("div.ccb__button",(0,e.el)("a.ccb__edit",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barLinkSetting")),(0,e.el)("button.consent-give",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"barBtnAcceptAll"))))))}},{key:"buildModal",value:function(){var t=function(t){var n=[];for(var c in window.CookieConsent.config.services)window.CookieConsent.config.services[c].category===t&&n.push(window.CookieConsent.config.services[c]);if(n.length){var i=[];for(var a in n)i.push((0,e.el)("li",o.default.getTranslation(n[a],window.CookieConsent.config.language.current,"name")));return[(0,e.el)("div.ccm__list",(0,e.el)("span.ccm__list__title",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalAffectedSolutions")),(0,e.el)("ul",i))]}};return(0,e.el)("div#cconsent-modal",(0,e.el)("div.ccm__content",(0,e.el)("div.ccm__content__heading",(0,e.el)("h2",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalMainTitle")),(0,e.el)("p",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalMainText"),window.CookieConsent.config.modalMainTextMoreLink?(0,e.el)("a",{href:window.CookieConsent.config.modalMainTextMoreLink,target:"_blank",rel:"noopener noreferrer"},o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"learnMore")):null),(0,e.el)("div.ccm__cheading__close","×")),(0,e.el)("div.ccm__content__body",(0,e.el)("div.ccm__tabs",function(){var n=[];for(var c in window.CookieConsent.config.categories)n.push((0,e.el)("dl.ccm__tabgroup."+c+(window.CookieConsent.config.categories[c].checked?".checked-5jhk":""),{"data-category":c},(0,e.el)("dt.ccm__tab-head",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"name"),(0,e.el)("a.ccm__tab-head__icon-wedge",(0,e.el)(document.createElementNS("http://www.w3.org/2000/svg","svg"),{version:"1.2",preserveAspectRatio:"none",viewBox:"0 0 24 24",class:"icon-wedge-svg","data-id":"e9b3c566e8c14cfea38af128759b91a3",style:"opacity: 1; mix-blend-mode: normal; fill: rgb(51, 51, 51); width: 32px; height: 32px;"},(0,e.el)(document.createElementNS("http://www.w3.org/2000/svg","path"),{"xmlns:default":"http://www.w3.org/2000/svg",class:"icon-wedge-angle-down",d:"M17.2,9.84c0-0.09-0.04-0.18-0.1-0.24l-0.52-0.52c-0.13-0.13-0.33-0.14-0.47-0.01c0,0-0.01,0.01-0.01,0.01  l-4.1,4.1l-4.09-4.1C7.78,8.94,7.57,8.94,7.44,9.06c0,0-0.01,0.01-0.01,0.01L6.91,9.6c-0.13,0.13-0.14,0.33-0.01,0.47  c0,0,0.01,0.01,0.01,0.01l4.85,4.85c0.13,0.13,0.33,0.14,0.47,0.01c0,0,0.01-0.01,0.01-0.01l4.85-4.85c0.06-0.06,0.1-0.15,0.1-0.24  l0,0H17.2z",style:"fill: rgb(51, 51, 51);"})))),(0,e.el)("dd.ccm__tab-content",(0,e.el)("div.ccm__tab-content__left",!window.CookieConsent.config.categories[c].needed&&(0,e.el)("div.ccm__switch-component",(0,e.el)("div.status-off",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"off")),(0,e.el)("div.ccm__switch-group",(0,e.el)("label.ccm__switch",(0,e.el)("input.category-onoff",{type:"checkbox","data-category":c,checked:window.CookieConsent.config.categories[c].checked}),(0,e.el)("span.ccm__switch__slider"))),(0,e.el)("div.status-on",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"on")))),(0,e.el)("div.right",(0,e.el)("h3",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"name")),(0,e.el)("p",o.default.getTranslation(window.CookieConsent.config.categories[c],window.CookieConsent.config.language.current,"description")),(0,e.el)("div.ccm__list",t(c))))));return n}())),(0,e.el)("div.ccm__footer",(0,e.el)("button#ccm__footer__consent-modal-submit",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalBtnSave")),(0,e.el)("button.consent-give",o.default.getTranslation(window.CookieConsent.config,window.CookieConsent.config.language.current,"modalBtnAcceptAll")))))}},{key:"modalRedrawIcons",value:function(){var e=this.elements.modal.querySelectorAll(".ccm__tabgroup"),o=!0,t=!1,n=void 0;try{for(var c,i=e[Symbol.iterator]();!(o=(c=i.next()).done);o=!0){var a=c.value;window.CookieConsent.config.categories[a.dataset.category].checked?a.classList.contains("checked-5jhk")||(a.classList.add("checked-5jhk"),a.querySelector("input.category-onoff").checked=!0):(a.classList.contains("checked-5jhk")&&a.classList.remove("checked-5jhk"),a.querySelector("input.category-onoff").checked=!1)}}catch(r){t=!0,n=r}finally{try{o||null==i.return||i.return()}finally{if(t)throw n}}}},{key:"render",value:function(o,t,n){if(void 0===n&&(n=function(){}),void 0!==this.elements[o])return this.elements[o].parentNode.replaceChild(t,this.elements[o]),this.elements[o]=t,n(t),t;var c=(0,e.mount)(document.body,t);return c&&(this.elements[o]=c),n(c),c}},{key:"buildInterface",value:function(e){void 0===e&&(e=function(){});var o=this;t.default.ready(function(){o.render("style",o.buildStyle()),o.render("bar",o.buildBar(),function(e){window.CookieConsent.config.cookieExists||setTimeout(function(){e.classList.remove("ccb--hidden")},window.CookieConsent.config.barTimeout)}),o.render("modal",o.buildModal()),e()})}},{key:"addEventListeners",value:function(e){var o=this,t=document.querySelectorAll(".consent-give"),n=!0,c=!1,i=void 0;try{for(var a,r=t[Symbol.iterator]();!(n=(a=r.next()).done);n=!0){a.value.addEventListener("click",function(){for(var e in window.CookieConsent.config.categories)window.CookieConsent.config.categories[e].wanted=window.CookieConsent.config.categories[e].checked=!0;o.writeBufferToDOM(),o.buildCookie(function(e){o.setCookie(e)}),o.elements.bar.classList.add("ccb--hidden"),o.elements.modal.classList.remove("ccm--visible"),o.modalRedrawIcons()})}}catch(_){c=!0,i=_}finally{try{n||null==r.return||r.return()}finally{if(c)throw i}}Array.prototype.forEach.call(document.getElementsByClassName("ccb__edit"),function(e){e.addEventListener("click",function(){o.elements.modal.classList.add("ccm--visible")})}),this.elements.modal.querySelector(".ccm__tabs").addEventListener("click",function(e){if(e.target.classList.contains("ccm__tab-head")||e.target.classList.contains("ccm__tab-head__icon-wedge")){var o=function e(o){var t=o.parentNode;return"DL"!==t.nodeName?e(t):t}(e.target);o.classList.contains("ccm__tabgroup--open")?o.classList.remove("ccm__tabgroup--open"):o.classList.add("ccm__tabgroup--open")}if(e.target.classList.contains("category-onoff")){window.CookieConsent.config.categories[e.target.dataset.category].wanted=window.CookieConsent.config.categories[e.target.dataset.category].checked=!0===e.target.checked;var t=document.querySelector(".ccm__tabgroup."+e.target.dataset.category);!1===e.target.checked&&t.classList.contains("checked-5jhk")?t.classList.remove("checked-5jhk"):t.classList.add("checked-5jhk")}}),this.elements.modal.querySelector(".ccm__cheading__close").addEventListener("click",function(e){o.elements.modal.classList.remove("ccm--visible")}),document.getElementById("ccm__footer__consent-modal-submit").addEventListener("click",function(){var e=o.elements.modal.querySelectorAll(".ccm__switch input");Array.prototype.forEach.call(e,function(e){window.CookieConsent.config.categories[e.dataset.category].wanted=e.checked}),o.buildCookie(function(e){o.setCookie(e,function(){o.elements.modal.classList.remove("ccm--visible"),o.elements.bar.classList.add("ccb--hidden")})}),o.writeBufferToDOM()})}},{key:"writeBufferToDOM",value:function(){var e=!0,o=!1,t=void 0;try{for(var n,c=window.CookieConsent.buffer.appendChild[Symbol.iterator]();!(e=(n=c.next()).done);e=!0){var i=n.value;!0===window.CookieConsent.config.categories[i.category].wanted&&Node.prototype.appendChild.apply(i.this,i.arguments)}}catch(m){o=!0,t=m}finally{try{e||null==c.return||c.return()}finally{if(o)throw t}}var a=!0,r=!1,_=void 0;try{for(var s,l=window.CookieConsent.buffer.insertBefore[Symbol.iterator]();!(a=(s=l.next()).done);a=!0){var d=s.value;!0===window.CookieConsent.config.categories[d.category].wanted&&(d.arguments[1]=null===d.arguments[0].parentNode?d.this.lastChild:d.arguments[1],Node.prototype.insertBefore.apply(d.this,d.arguments))}}catch(m){r=!0,_=m}finally{try{a||null==l.return||l.return()}finally{if(r)throw _}}}},{key:"buildCookie",value:function(e){var o={version:window.CookieConsent.config.cookieVersion,categories:{},services:[]};for(var n in window.CookieConsent.config.categories)o.categories[n]={wanted:window.CookieConsent.config.categories[n].wanted};return o.services=t.default.listGlobalServices(),e&&e(o),o}},{key:"setCookie",value:function(e,o){document.cookie="cconsent=".concat(JSON.stringify(e),"; expires=Thu, 01 Jan 2099 00:00:00 UTC; path=/;"),o&&o()}}]),n}();exports.default=r;
154 154
 },{"redom":"GuEK","./Language":"4LWe","./Utilities":"/6wJ"}],"s9iF":[function(require,module,exports) {
155 155
 function t(){this.__data__=[],this.size=0}module.exports=t;
156 156
 },{}],"LIpy":[function(require,module,exports) {
... ...
@@ -348,9 +348,11 @@ var e=require("./_baseRest"),r=require("./_isIterateeCall");function t(t){return
348 348
 var e=require("./_baseMerge"),r=require("./_createAssigner"),i=r(function(r,i,s){e(r,i,s)});module.exports=i;
349 349
 },{"./_baseMerge":"WqwZ","./_createAssigner":"gmQJ"}],"duLQ":[function(require,module,exports) {
350 350
 "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("./Utilities")),o=t(require("lodash/merge"));function t(e){return e&&e.__esModule?e:{default:e}}function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function i(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,o,t){return o&&i(e.prototype,o),t&&i(e,t),e}var a=function(){function t(e){n(this,t),window.CookieConsent.buffer={appendChild:[],insertBefore:[]},window.CookieConsent.wrapper=function(){},window.CookieConsent.setConfiguration=this.setConfiguration.bind(this),window.CookieConsent.config={active:!0,cookieExists:!1,cookieVersion:1,modalMainTextMoreLink:null,barTimeout:1e3,theme:{barColor:"#2C7CBF",barTextColor:"#FFF",barMainButtonColor:"#FFF",barMainButtonTextColor:"#2C7CBF",modalMainButtonColor:"#4285F4",modalMainButtonTextColor:"#FFF"},language:{current:"en",locale:{en:{barMainText:"This website uses cookies to ensure you get the best experience on our website.",barLinkSetting:"Cookie Settings",barBtnAcceptAll:"Accept all cookies",modalMainTitle:"Cookie settings",modalMainText:"Cookies are small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. Your browser stores each message in a small file, called cookie. When you request another page from the server, your browser sends the cookie back to the server. Cookies were designed to be a reliable mechanism for websites to remember information or to record the user's browsing activity.",modalBtnSave:"Save current settings",modalBtnAcceptAll:"Accept all cookies and close",modalAffectedSolutions:"Affected solutions:",learnMore:"Learn More",on:"On",off:"Off"},hu:{barMainText:"Ez a weboldal Sütiket használ a jobb felhasználói élmény érdekében.",barLinkSetting:"Süti beállítások",barBtnAcceptAll:"Minden süti elfogadása",modalMainTitle:"Süti beállítások",modalMainText:"A HTTP-süti (általában egyszerűen süti, illetve angolul cookie) egy információcsomag, amelyet a szerver küld a webböngészőnek, majd a böngésző visszaküld a szervernek minden, a szerver felé irányított kérés alkalmával. Amikor egy weboldalt kérünk le a szervertől, akkor a böngésző elküldi a számára elérhető sütiket. A süti-ket úgy tervezték, hogy megbízható mechanizmust biztosítsanak a webhelyek számára az információk megőrzésére vagy a felhasználók böngészési tevékenységének rögzítésére.",modalBtnSave:"Beállítások mentése",modalBtnAcceptAll:"Minden Süti elfogadása",modalAffectedSolutions:"Mire lesz ez hatással:",learnMore:"Tudj meg többet",on:"Be",off:"Ki"}}},categories:{},services:{}},this.setConfiguration(e)}return r(t,[{key:"setConfiguration",value:function(t){(0,o.default)(window.CookieConsent.config,t),this.cookieToConfig(),e.default.dispatchEvent(document,"CCConfigSet")}},{key:"cookieToConfig",value:function(){function o(){return e.default.removeCookie(),location.reload(),!1}return document.cookie.split(";").filter(function(e){if(e.indexOf("cconsent")>=0){var t=JSON.parse(e.split("=")[1]);if(void 0===t.version)return o();if(t.version!==window.CookieConsent.config.cookieVersion)return o();for(var n in t.categories)if(void 0===window.CookieConsent.config.categories[n])return o();for(var i in t.services.forEach(function(e){if(void 0===window.CookieConsent.config.services[e])return o()}),t.categories)window.CookieConsent.config.categories[i].checked=window.CookieConsent.config.categories[i].wanted=!0===t.categories[i].wanted;return window.CookieConsent.config.cookieExists=!0,!0}}),!1}}]),t}();exports.default=a;
351
-},{"./Utilities":"/6wJ","lodash/merge":"yubd"}],"ylk/":[function(require,module,exports) {
352
-"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("./InsertScriptFilter")),r=a(require("./ScriptTagFilter")),t=a(require("./WrapperFilter")),n=a(require("./LocalCookieFilter")),i=a(require("./Interface")),u=a(require("./Configuration"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function l(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,r,t){return r&&l(e.prototype,r),t&&l(e,t),e}var c=function(){function a(){o(this,a)}return f(a,[{key:"init",value:function(a){new u.default(a);var o=new e.default,l=new r.default,f=new t.default,c=new n.default;o.init(),l.init(),f.init(),c.init();var d=new i.default;d.buildInterface(function(){d.addEventListeners()})}}]),a}();exports.default=c;
353
-},{"./InsertScriptFilter":"UWvR","./ScriptTagFilter":"ob2e","./WrapperFilter":"935K","./LocalCookieFilter":"2E//","./Interface":"/Qw2","./Configuration":"duLQ"}],"Focm":[function(require,module,exports) {
351
+},{"./Utilities":"/6wJ","lodash/merge":"yubd"}],"xR4A":[function(require,module,exports) {
352
+"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("./Utilities"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function n(e,o){for(var i=0;i<o.length;i++){var n=o[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function t(e,o,i){return o&&n(e.prototype,o),i&&n(e,i),e}var r=function(){function o(){i(this,o)}return t(o,[{key:"init",value:function(){this.removeUnwantedCookies()}},{key:"removeUnwantedCookies",value:function(){var o=[],i=window.CookieConsent.config;for(var n in document.cookie.split(";").map(function(e){o.push(e.split("=")[0].replace(/(^\s*)|(\s*&)/,""))}),i.services)if("Array"===e.default.objectType(i.services[n].cookies)&&!i.categories[i.services[n].category].wanted)for(var t in i.services[n].cookies){var r=e.default.objectType(i.services[n].cookies[t].name);if("String"===r)o.indexOf(i.services[n].cookies[t].name)>-1&&this.removeCookie(i.services[n].cookies[t]);else if("RegExp"===r){var a=i.services[n].cookies[t];for(var c in o)o[c].match(a.name)&&this.removeCookie({name:o[c],domain:"String"===e.default.objectType(a.domain)?a.domain:null})}}}},{key:"removeCookie",value:function(o){var i="String"===e.default.objectType(o.domain)?"domain=".concat(o.domain,";"):"";document.cookie="".concat(o.name,"=; expires=Thu, 01 Jan 1980 00:00:00 UTC; ").concat(i," path=/;")}}]),o}();exports.default=r;
353
+},{"./Utilities":"/6wJ"}],"ylk/":[function(require,module,exports) {
354
+"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("./InsertScriptFilter")),r=o(require("./ScriptTagFilter")),t=o(require("./WrapperFilter")),n=o(require("./LocalCookieFilter")),i=o(require("./Interface")),u=o(require("./Configuration")),a=o(require("./RemoveCookies"));function o(e){return e&&e.__esModule?e:{default:e}}function l(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function f(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,r,t){return r&&f(e.prototype,r),t&&f(e,t),e}var d=function(){function o(){l(this,o)}return c(o,[{key:"init",value:function(o){new u.default(o);var l=new a.default,f=new e.default,c=new r.default,d=new t.default,s=new n.default;l.init(),f.init(),c.init(),d.init(),s.init();var p=new i.default;p.buildInterface(function(){p.addEventListeners()})}}]),o}();exports.default=d;
355
+},{"./InsertScriptFilter":"UWvR","./ScriptTagFilter":"ob2e","./WrapperFilter":"935K","./LocalCookieFilter":"2E//","./Interface":"/Qw2","./Configuration":"duLQ","./RemoveCookies":"xR4A"}],"Focm":[function(require,module,exports) {
354 356
 "use strict";require("core-js/es6/symbol"),require("core-js/fn/symbol/iterator");var e=o(require("./lib/CookieConsent"));function o(e){return e&&e.__esModule?e:{default:e}}var i=new e.default;window.CookieConsent=window.CookieConsent||{},window.CookieConsent.init=i.init;
355 357
 },{"core-js/es6/symbol":"CtPZ","core-js/fn/symbol/iterator":"KQqW","./lib/CookieConsent":"ylk/"}]},{},["Focm"], null)
356 358
 //# sourceMappingURL=cookieconsent.min.map
357 359
\ No newline at end of file