Browse code

Revert Test setting data attribute

Benjamin Roth authored on19/05/2020 15:07:03
Showing2 changed files
... ...
@@ -2651,7 +2651,7 @@ function () {
2651 2651
   }, {
2652 2652
     key: "buildBar",
2653 2653
     value: function buildBar() {
2654
-      return (0, _redom.el)('div#cconsent-bar.ccb--hidden', (0, _redom.el)("div.ccb__wrapper", (0, _redom.el)('div.ccb__left', (0, _redom.el)('div.cc-text', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barMainText'))), (0, _redom.el)('div.ccb__right', (0, _redom.el)('div.ccb__button', (0, _redom.el)('a.ccb__edit', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barLinkSetting')), (0, _redom.el)('button.consent-give', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barBtnAcceptAll')))))).setAttribute("data-nosnippet","");
2654
+      return (0, _redom.el)('div#cconsent-bar.ccb--hidden', (0, _redom.el)("div.ccb__wrapper", (0, _redom.el)('div.ccb__left', (0, _redom.el)('div.cc-text', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barMainText'))), (0, _redom.el)('div.ccb__right', (0, _redom.el)('div.ccb__button', (0, _redom.el)('a.ccb__edit', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barLinkSetting')), (0, _redom.el)('button.consent-give', _Language.default.getTranslation(window.CookieConsent.config, window.CookieConsent.config.language.current, 'barBtnAcceptAll'))))));
2655 2655
     }
2656 2656
   }, {
2657 2657
     key: "buildModal",
... ...
@@ -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")))))).setAttribute("data-nosnippet","")}},{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;
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) {