"+this.cookieConsent.i18n.$t("i18n","pc_yprivacy_text_2")+"
"+this.cookieConsent.i18n.$t("i18n","pc_yprivacy_text_3")+"
"}],this.cookieLevels=[{id:"strictly-necessary",title:this.cookieConsent.i18n.$t("i18n","pc_sncssr_text_1"),content:""+this.cookieConsent.i18n.$t("i18n","pc_sncssr_text_2")+"
"+this.cookieConsent.i18n.$t("i18n","pc_sncssr_text_3")+"
"},{id:"functionality",title:this.cookieConsent.i18n.$t("i18n","pc_fnct_text_1"),content:""+this.cookieConsent.i18n.$t("i18n","pc_fnct_text_2")+"
"+this.cookieConsent.i18n.$t("i18n","pc_fnct_text_3")+"
"},{id:"tracking",title:this.cookieConsent.i18n.$t("i18n","pc_trck_text_1"),content:""+this.cookieConsent.i18n.$t("i18n","pc_trck_text_2")+"
"+this.cookieConsent.i18n.$t("i18n","pc_trck_text_3")+"
"+this.cookieConsent.i18n.$t("i18n","pc_trck_text_4")+"
"},{id:"targeting",title:this.cookieConsent.i18n.$t("i18n","pc_trgt_text_1"),content:""+this.cookieConsent.i18n.$t("i18n","pc_trgt_text_2")+"
"+this.cookieConsent.i18n.$t("i18n","pc_trgt_text_3")+"
"+this.cookieConsent.i18n.$t("i18n","pc_trgt_text_4")+"
"}];try{for(var i=Z(this.cookieLevels),n=i.next();!n.done;n=i.next()){var a=n.value;!this.cookieConsent.ownerNoticeBannerPurposesLevels.includes(a.id)&&"strictly-necessary"!==a.id||this.preferenceItems.push({id:a.id,title:a.title,title_container:"title_"+a.id,content_container:"content_"+a.id,content:a.content})}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.preferenceItems.push({title:this.cookieConsent.i18n.$t("i18n","pc_minfo_text_1"),title_container:"title_more_information",content_container:"content_more_information",content:""+this.cookieConsent.i18n.$t("i18n","pc_minfo_text_2")+"
"}),null!==this.cookieConsent.ownerWebsitePrivacyPolicyUrl&&r.isValidUrl(this.cookieConsent.ownerWebsitePrivacyPolicyUrl)&&(this.preferenceItems[this.preferenceItems.length-1].content=this.preferenceItems[this.preferenceItems.length-1].content+""+this.cookieConsent.i18n.$t("i18n","pc_minfo_text_3",this.cookieConsent.ownerWebsitePrivacyPolicyUrl)+"
")},e}(),ie=function(){function e(e){this.preferencesCenterOverlay=null,this.cookieConsent=e}return e.prototype.listenToUserButtonToOpenPreferences=function(e){var t=this,i=document.querySelectorAll(e);t.cookieConsent.log("userButton detected: "+i,"info"),i&&i.forEach((function(e){e.addEventListener("click",(function(){document.dispatchEvent(t.cookieConsent.events.cc_noticeBannerChangePreferencesPressed),t.showPreferencesCenter()}))}))},e.prototype.showPreferencesCenter=function(){var e,t=this;null===this.preferencesCenterOverlay&&(this.preferencesCenterOverlay=this.createPreferencesCenterOverlayAndDialog(),r.appendChild("body",this.preferencesCenterOverlay)),this.preferencesCenterOverlay.classList.add(K+"---is-visible"),t.cookieConsent.log("Preferences Center shown","info"),this.preferencesCenterOverlay.setAttribute("role","dialog"),this.preferencesCenterOverlay.setAttribute("aria-labelledby","cc-pc-head-title-headline"),this.preferencesCenterOverlay.setAttribute("tabindex","-1"),this.preferencesCenterOverlay.focus();var i=document.querySelector("#"+K+"---preferences-center"),n=i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0],a=i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=a[a.length-1];t.cookieConsent.log("preferencesCenterOverlayModal_firstFocusableElement: "+n,"info"),t.cookieConsent.log("preferencesCenterOverlayModal_focusableContent: "+a,"info"),t.cookieConsent.log("preferencesCenterOverlayModal_lastFocusableElement: "+o,"info"),document.addEventListener("keydown",(function(e){var i,a;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(t.cookieConsent.log("preferencesCenterOverlayModal_lastFocusableElement before focus: "+o,"info"),null===(i=o)||void 0===i||i.focus(),e.preventDefault()):document.activeElement===o&&(t.cookieConsent.log("preferencesCenterOverlayModal_firstFocusableElement before focus: "+n,"info"),null===(a=n)||void 0===a||a.focus(),e.preventDefault()))})),t.cookieConsent.log("preferencesCenterOverlayModal_firstFocusableElement before focus: "+n,"info"),null===(e=n)||void 0===e||e.focus(),this.preferencesCenterOverlay.classList.add(K+"---lang-"+t.cookieConsent.i18n.userLang)},e.prototype.hidePreferencesCenter=function(){this.preferencesCenterOverlay.classList.remove(K+"---is-visible"),this.cookieConsent.log("Preferences Center hidden","info")},e.prototype.refreshPreferencesCenter=function(){if(null!==this.preferencesCenterOverlay)return this.preferencesCenterOverlay.parentNode.removeChild(this.preferencesCenterOverlay),this.preferencesCenterOverlay=null,this.showPreferencesCenter()},e.prototype.createPreferencesCenterOverlayAndDialog=function(){var e=this,t=document.createElement("div");t.classList.add(K+"---pc-overlay"),t.classList.add(e.cookieConsent.colorPalette.getClass()),t.classList.add(K+"---reset"),t.id=K+"---preferences-center",t.setAttribute("id",K+"---preferences-center");var i=document.createElement("div");i.classList.add(K+"---pc-dialog");var n=document.createElement("div");n.classList.add("cc-pc-container");var a=document.createElement("div");a.classList.add("cc-pc-head");var o=document.createElement("div");if(o.classList.add("cc-pc-head-title"),e.cookieConsent.ownerWebsiteName.length>2){var s=document.createElement("p");s.classList.add("cc-pc-head-title-text"),s.innerText=e.cookieConsent.ownerWebsiteName,r.appendChild(o,s)}var c=document.createElement("p");c.classList.add("cc-pc-head-title-headline"),c.setAttribute("id","cc-pc-head-title-headline"),c.innerHTML=e.cookieConsent.i18n.$t("i18n","pc_title"),r.appendChild(o,c);var l=document.createElement("div");l.classList.add("cc-pc-head-lang");var p=this.obtainLanguageSelector();r.appendChild(l,p);var u=document.createElement("button");u.classList.add("cc-pc-head-close"),u.innerHTML="✕",u.addEventListener("click",(function(){document.dispatchEvent(e.cookieConsent.events.cc_preferencesCenterClosePressed)})),r.appendChild(a,o),r.appendChild(a,l),!1===e.cookieConsent.ownerPreferencesCenterCloseButtonHide&&r.appendChild(l,u,"afterbegin");var _=document.createElement("div");_.classList.add("cc-cp-body");var d=this.getMenuContainer(),k=this.getContentContainer();r.appendChild(_,d),r.appendChild(_,k);var m=this.getFooterContainer();return r.appendChild(n,a),r.appendChild(n,_),r.appendChild(n,m),r.appendChild(i,n),r.appendChild(t,i),t},e.prototype.obtainLanguageSelector=function(){var e=this,t=document.createElement("select");return t.classList.add("cc-pc-head-lang-select"),t.setAttribute("aria-label","Language selection"),[].forEach.call(e.cookieConsent.i18n.availableLanguages,(function(i){var n=document.createElement("option");n.text=i.title,n.value=i.value,e.cookieConsent.i18n.userLang===n.value&&n.setAttribute("selected","selected"),t.add(n)})),t.addEventListener("change",(function(){e.cookieConsent.i18n.userLang=t.value,e.cookieConsent.cookieLevels.languageChanged(),e.refreshPreferencesCenter(),document.dispatchEvent(e.cookieConsent.events.cc_userLanguageChanged)})),t},e.prototype.getContentContainer=function(){var e=this,t=document.createElement("div");t.classList.add("cc-cp-body-content");var i=0;return e.cookieConsent.cookieLevels.preferenceItems.forEach((function(n){var a=document.createElement("div");if(a.classList.add("cc-cp-body-content-entry"),a.setAttribute("id",n.content_container),a.setAttribute("role","tabpanel"),a.setAttribute("aria-labelledby",n.title_container),a.setAttribute("hidden",""),a.setAttribute("tabindex","0"),a.setAttribute("content_layout",n.content_container),a.setAttribute("active","false"),a.innerHTML=n.content,0===i&&(a.setAttribute("active","true"),a.removeAttribute("hidden")),i++,n.id){var o=e._getLevelCheckbox(n);r.appendChild(a,o)}r.appendChild(t,a)})),t},e.prototype.getMenuContainer=function(){var e=this,t=document.createElement("div");t.classList.add("cc-cp-body-tabs"),t.setAttribute("role","tablist"),t.setAttribute("aria-label","Menu");var i=0;return e.cookieConsent.cookieLevels.preferenceItems.forEach((function(n){var a=document.createElement("button");a.classList.add("cc-cp-body-tabs-item"),a.classList.add("cc-cp-body-tabs-item-link"),a.setAttribute("id",n.title_container),a.setAttribute("role","tab"),a.setAttribute("aria-selected","false"),a.setAttribute("aria-controls",n.content_container),a.setAttribute("tabindex","-1"),a.setAttribute("t",n.content_container),a.innerHTML=""+n.title+"",0===i&&(a.setAttribute("active","true"),a.setAttribute("aria-selected","true"),a.setAttribute("tabindex","0")),i++,a.addEventListener("click",(function(t){t.preventDefault(),e.cookieConsent.log("Preferences Center tab item clicked: "+n.title,"info");var i=document.querySelectorAll('button[active="true"]');[].forEach.call(i,(function(e){e.setAttribute("active","false"),e.setAttribute("aria-selected","false"),e.setAttribute("tabindex","-1")})),a.setAttribute("active","true"),a.setAttribute("aria-selected","true"),a.setAttribute("tabindex","0");try{var o=document.querySelectorAll("div[content_layout]");[].forEach.call(o,(function(e){e.setAttribute("active","false"),e.setAttribute("hidden","")}));var s=document.querySelector('div[content_layout="'+n.content_container+'"]');s&&(s.setAttribute("active","true"),s.removeAttribute("hidden"))}catch(t){}}));var o=0,s=document.getElementsByClassName("cc-cp-body-tabs-item-link");t.addEventListener("keydown",(function(e){"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||(s[o].setAttribute("tabindex","-1"),"ArrowDown"===e.key||"ArrowRight"===e.key?++o>=s.length&&(o=0):"ArrowUp"!==e.key&&"ArrowLeft"!==e.key||--o<0&&(o=s.length-1),s[o].setAttribute("tabindex","0"),s[o].focus())})),r.appendChild(t,a)})),t},e.prototype.getFooterContainer=function(){var e=this,t=document.createElement("div");t.classList.add("cc-cp-foot");var i=document.createElement("div");i.classList.add("cc-cp-foot-byline"),i.innerHTML=r.magicTransform("Q29va2llIENvbnNlbnQgYnkgPGEgaHJlZj0iaHR0cHM6Ly93d3cuZnJlZXByaXZhY3lwb2xpY3kuY29tL2ZyZWUtY29va2llLWNvbnNlbnQvIiB0YXJnZXQ9Il9ibGFuayI+RnJlZVByaXZhY3lQb2xpY3kuY29tPC9hPg==");var n=document.createElement("div");n.classList.add("cc-cp-foot-button");var a=document.createElement("button");return a.classList.add("cc-cp-foot-save"),a.innerHTML=e.cookieConsent.i18n.$t("i18n","pc_save"),a.addEventListener("click",(function(){document.dispatchEvent(e.cookieConsent.events.cc_preferencesCenterSavePressed)})),r.appendChild(n,a),r.appendChild(t,i),r.appendChild(t,n),t},e.prototype._getLevelCheckbox=function(e){var t=this,i=document.createElement("div");if(i.classList.add("cc-custom-checkbox"),"strictly-necessary"!==e.id){var n=t.cookieConsent.userConsent.acceptedLevels,a=document.createElement("input");a.setAttribute("cookie_consent_toggler","true"),a.setAttribute("type","checkbox"),a.setAttribute("class","cc-custom-checkbox"),a.setAttribute("id",e.id),a.setAttribute("name",e.id),a.setAttribute("aria-labelledby",e.id+"_label"),(o=document.createElement("label")).setAttribute("for",e.id),o.setAttribute("id",e.id+"_label"),n[e.id]?(a.setAttribute("checked","checked"),a.setAttribute("aria-checked","true"),o.setAttribute("class","is-active"),o.innerHTML=t.cookieConsent.i18n.$t("i18n","active")):(a.setAttribute("aria-checked","false"),o.setAttribute("class","is-inactive"),o.innerHTML=t.cookieConsent.i18n.$t("i18n","inactive")),a.addEventListener("change",(function(){var i=a.checked,n=e.id,o=document.querySelector('label[for="'+n+'"]');t.cookieConsent.log("User changed cookie level ["+n+"], new status: "+i,"info"),document.dispatchEvent(t.cookieConsent.events.cc_userChangedConsent),!0===i?(t.cookieConsent.userConsent.acceptLevel(n,!1),o&&(o.innerHTML=t.cookieConsent.i18n.$t("i18n","active"))):(t.cookieConsent.userConsent.rejectLevel(n,!1),o&&(o.innerHTML=t.cookieConsent.i18n.$t("i18n","inactive")))})),a.addEventListener("keypress",(function(e){if(" "===e.key||"Spacebar"===e.key)switch(a.getAttribute("aria-checked")){case"true":a.setAttribute("aria-checked","false");break;case"false":a.setAttribute("aria-checked","true")}})),r.appendChild(i,a),r.appendChild(i,o)}else{var o,s=document.createElement("input");s.setAttribute("cookie_consent_toggler","true"),s.setAttribute("type","checkbox"),s.setAttribute("checked","checked"),s.setAttribute("aria-checked","true"),s.setAttribute("disabled","disabled"),s.setAttribute("class","cc-custom-checkbox"),s.setAttribute("id",e.id),s.setAttribute("name",e.id),s.setAttribute("aria-labelledby",e.id+"_label"),s.setAttribute("tabindex","0"),(o=document.createElement("label")).setAttribute("for",e.id),o.setAttribute("id",e.id+"_label"),o.innerHTML=t.cookieConsent.i18n.$t("i18n","always_active"),r.appendChild(i,s),r.appendChild(i,o)}return i},e}(),ne=function(){function e(e){this.noticeBanner=null,this.noticeBannerOverlay=null,this.noticeBannerExtraCss=[],this.cookieConsent=e,this.noticeBannerExtraCss.push(e.colorPalette.getClass())}return e.prototype.initNoticeBanner=function(){var e,t;if(null===this.noticeBanner&&(this.noticeBanner=this.createNoticeBanner()),t="afterbegin"===this.cookieConsent.ownerNoticeBannerAppendContentPosition||"beforeend"===this.cookieConsent.ownerNoticeBannerAppendContentPosition?this.cookieConsent.ownerNoticeBannerAppendContentPosition:"afterbegin",r.appendChild("body",this.noticeBanner,t),this.cookieConsent.log("Notice Banner shown "+t,"info"),document.dispatchEvent(this.cookieConsent.events.cc_noticeBannerShown),"interstitial"===this.cookieConsent.ownerNoticeBannerType||"standalone"===this.cookieConsent.ownerNoticeBannerType){var i=document.querySelector("#"+K+"---nb");if(i){var n=i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0],a=i.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=a[a.length-1];document.addEventListener("keydown",(function(e){var t,i;("Tab"===e.key||9===e.keyCode)&&(e.shiftKey?document.activeElement===n&&(null===(t=o)||void 0===t||t.focus(),e.preventDefault()):document.activeElement===o&&(null===(i=n)||void 0===i||i.focus(),e.preventDefault()))})),null===(e=n)||void 0===e||e.focus()}}return!0},e.prototype.hideNoticeBanner=function(){try{this.noticeBanner&&(this.noticeBanner.classList.add(K+"---is-hidden"),this.cookieConsent.log("Notice Banner hidden","info"))}catch(e){}},e.prototype.createNoticeBanner=function(){var e,t,i=document.createElement("div");if(i.classList.add(K+"---reset"),i.classList.add(K+"---nb"),i.setAttribute("id",K+"---nb"),i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-labelledby","cc-nb-title"),i.setAttribute("aria-describedby","cc-nb-text"),this.noticeBannerExtraCss.length)try{for(var n=Z(this.noticeBannerExtraCss),a=n.next();!a.done;a=n.next()){var o=a.value;i.classList.add(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}if(i.classList.add(K+"---lang-"+this.cookieConsent.i18n.userLang),r.appendChild(i,this.createNoticeBannerContent()),"interstitial"===this.cookieConsent.ownerNoticeBannerType){var s=document.createElement("div");return s.classList.add(K+"---nb-interstitial-overlay"),r.appendChild(s,i),s}return i},e.prototype.getUniquePurposesText=function(e){var t=this,i=t.cookieConsent.ownerNoticeBannerPurposesLevels.map((function(e){var i=t.cookieConsent.i18n.$t("i18n","nb_text_purposes_"+e).toString();if(!(i=i.charAt(0).toLowerCase()+i.slice(1)))throw new Error("Purpose category description not found: "+e);return''+i+""}));return!0===e?i.join(', '):i},e.prototype.createNoticeBannerContent=function(){var e=this,t=document.createElement("div");t.classList.add("cc-nb-main-container");var i=document.createElement("div");i.classList.add("cc-nb-title-container");var n=document.createElement("p");n.classList.add("cc-nb-title"),n.setAttribute("id","cc-nb-title"),n.innerText=e.cookieConsent.i18n.$t("i18n","nb_title"),r.appendChild(i,n);var a=document.createElement("div");a.classList.add("cc-nb-text-container");var o=document.createElement("p");o.classList.add("cc-nb-text"),o.setAttribute("id","cc-nb-text");try{var s=''+e.getUniquePurposesText(!0)+"",c=e.cookieConsent.i18n.$t("i18n","nb_text",[s]);o.innerHTML=''+c+""}catch(t){e.cookieConsent.log("Error while replacing purposes in notice banner text: "+t,"error")}var l=document.createElement("span");l.classList.add("cc-nb-text-urls"),l.innerHTML=" ";var p=document.createElement("span");p.classList.add("cc-nb-text-urls-privacy"),p.setAttribute("role","link");var u=document.createElement("span");u.classList.add("cc-nb-text-urls-impressum"),u.setAttribute("role","link");var _=document.createElement("span");_.classList.add("cc-nb-text-urls-separator"),_.innerHTML=" | ",e.cookieConsent.noticeBannerInsertLegalUrls&&(e.cookieConsent.ownerWebsitePrivacyPolicyUrl&&e.cookieConsent.ownerWebsiteImpressumUrl?r.isValidUrl(e.cookieConsent.ownerWebsitePrivacyPolicyUrl)&&r.isValidUrl(e.cookieConsent.ownerWebsiteImpressumUrl)&&(p.innerHTML=e.cookieConsent.i18n.$t("i18n","privacy_policy",e.cookieConsent.ownerWebsitePrivacyPolicyUrl),u.innerHTML=e.cookieConsent.i18n.$t("i18n","impressum",e.cookieConsent.ownerWebsiteImpressumUrl),r.appendChild(l,p),r.appendChild(p,_),r.appendChild(l,u)):e.cookieConsent.ownerWebsitePrivacyPolicyUrl&&r.isValidUrl(e.cookieConsent.ownerWebsitePrivacyPolicyUrl)?(p.innerHTML=e.cookieConsent.i18n.$t("i18n","privacy_policy",e.cookieConsent.ownerWebsitePrivacyPolicyUrl),r.appendChild(l,p)):e.cookieConsent.ownerWebsiteImpressumUrl&&r.isValidUrl(e.cookieConsent.ownerWebsiteImpressumUrl)&&(u.innerHTML=e.cookieConsent.i18n.$t("i18n","impressum",e.cookieConsent.ownerWebsiteImpressumUrl),r.appendChild(l,u)),r.appendChild(o,l)),r.appendChild(a,o);var d=document.createElement("div");d.classList.add("cc-nb-buttons-container");var k=document.createElement("button");k.classList.add("cc-nb-okagree"),k.setAttribute("role","button"),"express"==e.cookieConsent.ownerConsentType?k.innerHTML=e.cookieConsent.i18n.$t("i18n","nb_agree"):k.innerHTML=e.cookieConsent.i18n.$t("i18n","nb_ok"),k.addEventListener("click",(function(){document.dispatchEvent(e.cookieConsent.events.cc_noticeBannerOkOrAgreePressed)})),r.appendChild(d,k);var m=document.createElement("button");m.classList.add("cc-nb-reject"),m.setAttribute("role","button"),m.innerHTML=e.cookieConsent.i18n.$t("i18n","nb_reject"),m.addEventListener("click",(function(){document.dispatchEvent(e.cookieConsent.events.cc_noticeBannerRejectPressed)})),"express"==e.cookieConsent.ownerConsentType&&!1===e.cookieConsent.ownerNoticeBannerRejectButtonHide&&r.appendChild(d,m);var v=document.createElement("button");return v.classList.add("cc-nb-changep"),v.setAttribute("role","button"),v.innerHTML=e.cookieConsent.i18n.$t("i18n","nb_changep"),v.addEventListener("click",(function(){document.dispatchEvent(e.cookieConsent.events.cc_noticeBannerChangePreferencesPressed)})),r.appendChild(d,v),r.appendChild(t,i),r.appendChild(t,a),r.appendChild(t,d),t},e}(),ae=function(e){function t(t){var i=e.call(this,t)||this;return i.noticeBannerExtraCss.push(K+"---nb-simple"),i}return $(t,e),t}(ne),oe=function(e){function t(t){var i=e.call(this,t)||this;return i.noticeBannerExtraCss.push(K+"---nb-headline"),i}return $(t,e),t}(ne),se=function(e){function t(t){var i=e.call(this,t)||this;return i.noticeBannerExtraCss.push(K+"---nb-interstitial"),i}return $(t,e),t}(ne),re=function(e){function t(t){var i=e.call(this,t)||this;return i.noticeBannerExtraCss.push(K+"---nb-standalone"),i}return $(t,e),t}(ne),ce=function(){function e(e){e.log("ConsentType main class initialized","info")}return e.prototype.loadInitialCookiesForNewUser=function(){},e}(),le=function(e){function t(t){var i=e.call(this,t)||this;return i.cookieConsent=t,i}return $(t,e),t.prototype.loadInitialCookiesForNewUser=function(){var e=this;e.cookieConsent.log("consentImplied loadInitialCookiesForNewUser triggered","info");var t=!1,i=!1,n=!1;if(null!==e.cookieConsent.ownerPageLoadConsentLevels)for(var a in e.cookieConsent.ownerPageLoadConsentLevels){var o=e.cookieConsent.ownerPageLoadConsentLevels[a];"functionality"==o&&(t=!0),"tracking"==o&&(i=!0),"targeting"==o&&(n=!0)}else t=!0,i=!0,n=!0;new Promise((function(a,o){e.cookieConsent.javascriptItems.enableScriptsByLevel("strictly-necessary"),t?(e.cookieConsent.userConsent.acceptLevel("functionality",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("functionality")):e.cookieConsent.userConsent.rejectLevel("functionality",!1),i?(e.cookieConsent.userConsent.acceptLevel("tracking",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("tracking")):e.cookieConsent.userConsent.rejectLevel("tracking",!1),n?(e.cookieConsent.userConsent.acceptLevel("targeting",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("targeting")):e.cookieConsent.userConsent.rejectLevel("targeting",!1),a(!0)})).then((function(){e.cookieConsent.userConsent.saveCookie(),e.cookieConsent.log("consentImplied loadInitialCookiesForNewUser: strictly-necessary (true), functionality ("+t+"), tracking ("+i+"), targeting ("+n+")","info")}))},t}(ce),pe=function(e){function t(t){var i=e.call(this,t)||this;return i.cookieConsent=t,i}return $(t,e),t.prototype.loadInitialCookiesForNewUser=function(){var e=this;e.cookieConsent.log("consentExpress loadInitialCookiesForNewUser triggered","info");var t=!1,i=!1,n=!1;if(null!==e.cookieConsent.ownerPageLoadConsentLevels)for(var a in e.cookieConsent.ownerPageLoadConsentLevels){var o=e.cookieConsent.ownerPageLoadConsentLevels[a];"functionality"==o&&(t=!0),"tracking"==o&&(i=!0),"targeting"==o&&(n=!0)}else t=!1,i=!1,n=!1;new Promise((function(a,o){e.cookieConsent.javascriptItems.enableScriptsByLevel("strictly-necessary"),t?(e.cookieConsent.userConsent.acceptLevel("functionality",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("functionality")):e.cookieConsent.userConsent.rejectLevel("functionality",!1),i?(e.cookieConsent.userConsent.acceptLevel("tracking",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("tracking")):e.cookieConsent.userConsent.rejectLevel("tracking",!1),n?(e.cookieConsent.userConsent.acceptLevel("targeting",!1),e.cookieConsent.javascriptItems.enableScriptsByLevel("targeting")):e.cookieConsent.userConsent.rejectLevel("targeting",!1),a(!0)})).then((function(){e.cookieConsent.userConsent.saveCookie(),e.cookieConsent.log("consentExpress loadInitialCookiesForNewUser: strictly-necessary (true), functionality ("+t+"), tracking ("+i+"), targeting ("+n+")","info")}))},t}(ce),ue=function(){function e(e){this.cookieConsent=e}return e.prototype.getClass=function(){return K+"---palette-light"},e}(),_e=function(e){function t(t){var i=e.call(this,t)||this;return i.cookieConsent=t,i}return $(t,e),t.prototype.getClass=function(){return K+"---palette-dark"},t}(ue),de=function(e){function t(t){var i=e.call(this,t)||this;return i.cookieConsent=t,i}return $(t,e),t.prototype.getClass=function(){return K+"---palette-light"},t}(ue),ke=function(){function e(e){this.USER_TOKEN_COOKIE_NAME="cookie_consent_user_consent_token",this.cookieConsent=e,this.initUserConsentToken()}return e.prototype.initUserConsentToken=function(){var e=H("ABCDEFGHIJKLMNOPQRSTUVWXYZ"),t=H("abcdefghijklmnopqrstuvwxyz"),i=H("0123456789"),n=H(e,i,t);this.cookieConsent.userConsentToken=r.getCookie(this.USER_TOKEN_COOKIE_NAME)||this.cookieConsent.configUserConsentToken||function(e,t){return H(Array(t)).map((function(t){return e[Math.random()*e.length|0]})).join("")}(n,12),r.setCookie(this.USER_TOKEN_COOKIE_NAME,this.cookieConsent.userConsentToken,this.cookieConsent.ownerDomain,this.cookieConsent.cookieSecure,this.cookieConsent.cookieDuration)},e}(),me=function(){function e(e){switch(this.defaultNoticeBannerPurposesLevels=["strictly-necessary","functionality","tracking","targeting"],this.forceCallbacksDispatching=!0,this.configUserConsentToken=void 0,this.userConsentToken=void 0,this.logger=new o("true"==e.debug),s.getInstance(this.logger).loadStyles(),this.ownerConsentType=e.consent_type||"express",this.ownerWebsiteName=e.website_name||"",this.ownerWebsitePrivacyPolicyUrl=e.website_privacy_policy_url||null,this.ownerColorPalette=e.palette||"light",this.ownerSiteLanguage=e.language||"en",this.ownerDomain=e.cookie_domain||"",this.ownerWebsiteImpressumUrl=e.website_impressum_url||null,this.noticeBannerInsertLegalUrls=e.notice_banner_insert_legal_urls||!1,this.cookieSecure=e.cookie_secure||!1,this.ownerPageLoadConsentLevels=e.page_load_consent_levels||null,this.ownerNoticeBannerType=e.notice_banner_type||"headline",this.ownerNoticeBannerRejectButtonHide=e.notice_banner_reject_button_hide||!1,this.ownerNoticeBannerAppendContentPosition=e.notice_banner_append||"afterbegin",this.ownerNoticeBannerPurposesLevels=e.notice_banner_purposes_levels&&e.notice_banner_purposes_levels.length>0?e.notice_banner_purposes_levels:this.defaultNoticeBannerPurposesLevels,this.ownerOpenPreferencesCenterSelector=e.open_preferences_center_selector||"#open_preferences_center",this.ownerPreferencesCenterCloseButtonHide=e.preferences_center_close_button_hide||!1,this.pageRefreshConfirmationButtons=e.page_refresh_confirmation_buttons||!1,this.configUserConsentToken=e.user_consent_token||null,this.cookieDuration=parseInt(e.cookie_duration||3650),this.userDefinedNonce=r.getNonceFromScriptTag(),this.isDemo="true"==e.demo,this.ownerConsentType){default:case"express":this.consentType=new pe(this);break;case"implied":this.consentType=new le(this),this.userConsentTokenClass=new ke(this)}switch(this.ownerColorPalette){default:case"dark":this.colorPalette=new _e(this);break;case"light":this.colorPalette=new de(this)}switch(this.ownerNoticeBannerType){default:case"simple":this.noticeBannerContainer=new ae(this);break;case"headline":this.noticeBannerContainer=new oe(this);break;case"interstitial":this.noticeBannerContainer=new se(this);break;case"standalone":this.noticeBannerContainer=new re(this)}this.events=new G,this.eventsListeners=new X(this),this.customerCallbacks=new ee(this,e.callbacks),this.forceCallbacksDispatching=e.callbacks_force||!1,this.i18n=new V(this),this.cookieLevels=new te(this),this.userConsent=new Y(this),this.javascriptItems=new Q(this),this.preferencesCenterContainer=new ie(this),null!==this.ownerOpenPreferencesCenterSelector&&this.preferencesCenterContainer.listenToUserButtonToOpenPreferences(this.ownerOpenPreferencesCenterSelector),!0===this.userConsent.userAccepted?(this.userConsent.loadAcceptedCookies(),!0===this.isDemo&&this.noticeBannerContainer.initNoticeBanner()):(this.noticeBannerContainer.initNoticeBanner(),this.consentType.loadInitialCookiesForNewUser())}return e.prototype.log=function(e,t,i){void 0===i&&(i="log"),this.logger.log(e,t,i)},e.prototype.openPreferencesCenter=function(){this.preferencesCenterContainer.showPreferencesCenter()},e}(),ve=function(e){return a=new me(e),window.cookieconsent.openPreferencesCenter=function(){a.openPreferencesCenter()},a}}]); //# sourceMappingURL=cookie-consent.js.map