https://www.waal.de/_assets/d10172f0b489a4686909f133c4d13193/JavaScript/cookiehint.min.js?1782543342
1!function(){"use strict";function m(e,t){return(t||document).querySelector(e)}function v(e,t){return t=(t||document).querySelectorAll(e),Array.prototype.slice.call(t||[])}function n(e,t){if(!e)return null;if(e.closest)return e.closest(t);for(var o=e;o&&1===o.nodeType;){if(function(e,t){var o;if(e)return(o=(o=Element.prototype).matches||o.msMatchesSelector||o.webkitMatchesSelector)&&o.call(e,t)}(o,t))return o;o=o.parentElement}return null}function k(e,t,o,i){e.addEventListener(t,function(e){var t=n(e.target,o);t&&i.call(t,e,t)})}function g(e){e=e||{};for(var t=1;t<arguments.length;t++){var o,i=arguments[t]||{};for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}function y(e,t){if(e){if(e.dataset){if(void 0!==e.dataset[t])return e.dataset[t];var o=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});if(void 0!==e.dataset[o])return e.dataset[o]}o=e.getAttribute("data-"+t);return null!==o?o:void 0}}window.CookieHint=function(e){var a=this,s=g({wrapperSelector:document,debug:!1,mediaOverlaysExternalmedia:[".js-abavo_map",".embedvideo--youtube",".embedvideo--vimeo"],mediaOverlaysYoutube:[".embedvideo--youtube"],mediaOverlaysVimeo:[".embedvideo--vimeo"],mediaOverlaysGooglemaps:[".js-abavo_map"],mediaOverlayBgimageTmpl:'<div class="cookieconsent__mediaoverlay__bgimage"><img loading="lazy" src="{{src}}" /></div>',cookieExpireDays:183,cookieSameSite:"strict",cookieSecure:!0},e),t=(s.wrapperSelector&&s.wrapperSelector.jquery&&(s.wrapperSelector=s.wrapperSelector.get(0)||document),s.wrapperSelector&&s.wrapperSelector.querySelectorAll||(s.wrapperSelector=document),"cookieHasConsented"),i="cookieHasConsentedTstamp",n="cookieAcceptedGroups",r="cookieDeclinedGroups",c=m(".js-cookiehint-hint"),u=c?m(".cookiehint__checkboxes",c):null,o=m(".js-cookiehint-mediaoverlay-templates"),p=[],l=[],d=[],h=!(!c||"1"!=y(c,"loggingenable")),f=!(!c||void 0===y(c,"loggingurl"))&&y(c,"loggingurl");this.init=function(){if(c&&u){var e,t=!!this.getCookie(i)&&parseInt(this.getCookie(i),10),o=y(c,"resethasconsentedbeforetstamp"),o=!!o&&parseInt(o,10);for(e in this.hasConsented()&&t&&o&&t<o&&this.resetHasConsented(),v('input[type="checkbox"][name="cookiehint"]',u).forEach(function(e){p.push(e.value)}),l=this.getCookie(n)||[],d=this.getCookie(r)||[],s.debug&&(this.debugOutput("available optinGroups",p),this.debugOutput("accepted optinGroups",l),this.debugOutput("declined optinGroups",d)),p)this.executeCallbacksByOptinGroup(p[e]);this.hasConsented()||this.showCookieHint(),k(document,"click",".js-cookiehint-acceptselected",function(e){e.preventDefault(),v('input[type="checkbox"][name="cookiehint"]',u).forEach(function(e){var t=e.value;e.checked?a.addAcceptedGroup(t):a.addDeclinedGroup(t)}),a.setHasConsented(),a.updateLog(),a.reloadPageIfNecessary()}),k(document,"click",".js-cookiehint-acceptall",function(e){e.preventDefault();for(var t=0;t<p.length;t++)a.addAcceptedGroup(p[t]);a.setHasConsented(),a.updateLog(),a.reloadPageIfNecessary()}),k(document,"click",".js-cookiehint-acceptgroup",function(e,t){e.preventDefault();e=y(t,"cookieoptin-group");a.addAcceptedGroup(e),a.updateLog(),a.reloadPageIfNecessary(e)}),k(document,"click",".js-cookiehint-toggleinfotext",function(e,t){e.preventDefault();e=m('.cookiehint__checkboxes__accentry[data-group="'+y(t,"group")+'"]',c);e&&e.classList.toggle("open")}),k(document,"click",".js-cookiehint-togglecheckboxes",function(e,t){e.preventDefault(),t.blur(),c.classList.toggle("checkboxes--open")})}},this.setCookie=function(e,t){var o;o=t,Array.isArray(o)&&(t=JSON.stringify(t)),Cookies.set(e,t,{expires:s.cookieExpireDays,sameSite:s.cookieSameSite,secure:s.cookieSecure})},this.getCookie=function(e){e=Cookies.get(e);return e=this.tryParseJSON(e)?JSON.parse(e):e},this.updateLog=function(){h&&f&&fetch(f,{method:"POST",credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(e){return e.text()}).then(function(e){a.debugOutput("Logging to database response",e)}).catch(function(e){a.debugOutput("Logging to database error",e)})},this.tryParseJSON=function(e){try{var t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch(e){}return!1},this.reinitAfterContentAdd=function(){for(var e in this.debugOutput("reinit after content add"),p)this.executeCallbacksByOptinGroup(p[e])},this.setHasConsented=function(){a.hideCookieHint(),a.setCookie(t,"1"),a.setCookie(i,Math.floor(Date.now()/1e3))},this.resetHasConsented=function(){Cookies.remove(n),Cookies.remove(r),Cookies.remove(t),Cookies.remove(i),this.showCookieHint()},this.hasConsented=function(){return"1"===this.getCookie(t)},this.isGroupAccepted=function(e){return-1!==l.indexOf(e)},this.isGroupDeclined=function(e){return-1!==d.indexOf(e)},this.addAcceptedGroup=function(e){var t;this.isGroupDeclined(e)&&(-1<(t=d.indexOf(e))&&d.splice(t,1),this.setCookie(r,d)),this.isGroupAccepted(e)||(l.push(e),this.setCookie(n,l),this.debugOutput('adding group "'+e+'" to accepted groups. Accepted groups are now',l)),this.executeCallbacksByOptinGroup(e)},this.addDeclinedGroup=function(e){var t;this.isGroupAccepted(e)&&(-1<(t=l.indexOf(e))&&l.splice(t,1),this.setCookie(n,l)),this.isGroupDeclined(e)||(d.push(e),this.setCookie(r,d),this.debugOutput('adding group "'+e+'" to declined groups. Declined groups are now',d)),this.executeCallbacksByOptinGroup(e)},this.isCookieHintOpen=function(){return document.body.classList.contains("cookiehint--open")},this.showCookieHint=function(){this.fireEvent("cookiehintBeforeOpen"),document.body.classList.add("cookiehint--open"),this.fireEvent("cookiehintAfterOpen")},this.hideCookieHint=function(){this.fireEvent("cookiehintBeforeClose"),document.body.classList.remove("cookiehint--open"),this.fireEvent("cookiehintAfterClose")},this.toggleCookieHint=function(){this.isCookieHintOpen()?this.hideCookieHint():this.showCookieHint()},this.reloadPageIfNecessary=function(e){v(void 0!==e?'.js-cookiehint-reloadpage[data-cookieoptin-group="'+e+'"]':".js-cookiehint-reloadpage",s.wrapperSelector).length&&location.reload()},this.executeCallbacksByOptinGroup=function(e){var t;u&&((t=m('input[type="checkbox"][name="cookiehint"][value="'+e+'"]',u))&&(this.isGroupAccepted(e)?t.checked=!0:this.isGroupDeclined(e)&&(t.checked=!1)),this.isGroupAccepted(e)?(v(".cookiehint-contentwrap.cookiehint-contentwrap--"
1+e+"-decline",s.wrapperSelector).forEach(function(e){e.classList.remove("show")}),v(".cookiehint-contentwrap.cookiehint-contentwrap--"+e+"-accept",s.wrapperSelector).forEach(function(e){e.classList.add("show")}),a.executeCallback(e+"CallbackAccept"),a.fireEvent("cookiehint"+a.capitalizeFirstLetter(e)+"Accepted"),this.loadAssetsByOptinGroup(e).then(function(){a.fireEvent("cookiehint"+a.capitalizeFirstLetter(e)+"AcceptedAfterScriptLoad")})):(v(".cookiehint-contentwrap.cookiehint-contentwrap--"+e+"-accept",s.wrapperSelector).forEach(function(e){e.classList.remove("show")}),v(".cookiehint-contentwrap.cookiehint-contentwrap--"+e+"-decline",s.wrapperSelector).forEach(function(e){e.classList.add("show")}),a.executeCallback(e+"CallbackDecline"),a.fireEvent("cookiehint"+a.capitalizeFirstLetter(e)+"Declined")))},this.loadAssetsByOptinGroup=function(i){if(void 0===i)return Promise.resolve(!0);var e=s.wrapperSelector,o=[],n=1;return v('script[data-cookieoptin-group="'+i+'"]',e).forEach(function(e){var t={src:y(e,"src")?y(e,"src"):"",inlineScriptId:e.textContent||""?i+"-"+n:"",assetname:void 0!==y(e,"cookieoptin-assetname")&&y(e,"cookieoptin-assetname")};o.push(t),""!==t.inlineScriptId?(e.setAttribute("data-inlinescriptid",t.inlineScriptId),n++):e.remove()}),v('link[data-cookieoptin-group="'+i+'"]',e).forEach(function(e){var t=y(e,"href"),o=(a.debugOutput('inserting external stylesheet of group "'+i+'" to dom',t),e.cloneNode(!0));t&&o.setAttribute("href",t),o.removeAttribute("data-href"),o.removeAttribute("data-cookieoptin-group"),e.insertAdjacentElement("afterend",o),e.remove()}),v('iframe[data-cookieoptin-group="'+i+'"]',e).forEach(function(e){var t=y(e,"src"),o=(a.debugOutput('inserting iframe of group "'+i+'" to dom',t),e.cloneNode(!0));t&&o.setAttribute("src",t),o.removeAttribute("data-src"),o.removeAttribute("data-cookieoptin-group"),e.insertAdjacentElement("afterend",o),e.remove()}),v('img[data-cookieoptin-group="'+i+'"]',e).forEach(function(e){var t=y(e,"src"),o=(a.debugOutput('inserting image of group "'+i+'" to dom',t),e.cloneNode(!0));t&&o.setAttribute("src",t),o.removeAttribute("data-src"),o.removeAttribute("data-cookieoptin-group"),e.insertAdjacentElement("afterend",o),e.remove()}),o.length?(this.debugOutput('scripts of group "'+i+'"',o),this.loadJsArraySynchronously(o,0)):Promise.resolve(!0)},this.loadJsArraySynchronously=function(e,t){var o,i,n,r=e[t=t||0];return r?""!==r.src?(o=r.src,a.executeBeforeScriptLoad(e,t),a.debugOutput("loading external script synchronously [start]",o),new Promise(function(e){var t=document.createElement("script");t.src=o,t.async=!1,t.onload=function(){a.debugOutput("loading external script synchronously [complete]",o),e(!0)},t.onerror=function(){a.debugOutput("loading external script synchronously [error]",o),e(!0)},document.head.appendChild(t)}).then(function(){return a.executeAfterScriptLoad(e,t)})):(""!==r.inlineScriptId&&(i=(r=m('[data-inlinescriptid="'+r.inlineScriptId+'"]'))&&r.textContent||"",a.executeBeforeScriptLoad(e,t),a.debugOutput("executing inline script",i.trim().replace(/(\r\n|\n|\r)/gm,"").slice(0,150)),r&&((n=document.createElement("script")).appendChild(document.createTextNode(i)),r.insertAdjacentElement("afterend",n),r.remove())),Promise.resolve(!0).then(function(){return a.executeAfterScriptLoad(e,t)})):Promise.resolve(!0)},this.executeBeforeScriptLoad=function(e,t){e[t].assetname&&a.fireEvent("cookiehintBeforeLoad"+this.capitalizeFirstLetter(e[t].assetname))},this.executeAfterScriptLoad=function(e,t){return e[t].assetname&&a.fireEvent("cookiehintAfterLoad"+this.capitalizeFirstLetter(e[t].assetname)),void 0!==e[++t]?a.loadJsArraySynchronously(e,t):Promise.resolve(!0)},this.addMediaoverlaysByOptinGroup=function(r){var c,e=this.getMediaoverlaySelectorsByOptinGroup(r);""!==e&&(c=o?m(".cookieconsent__mediaoverlay--"+r,o):null,v(e,s.wrapperSelector).forEach(function(e){var t,o,i,n;c&&!e.classList.contains("has-cookiehint-mediaoverlay")&&(t=c.cloneNode(!0),e.classList.add("has-cookiehint-mediaoverlay","has-cookiehint-mediaoverlay--"+r),e.appendChild(t),(o=y(e,"cookieoptin-mediaoverlay-title"))&&(i=m(".cookieconsent__mediaoverlay__inner",t))&&((n=document.createElement("p")).className="
1cookieconsent__mediaoverlay__title",n.textContent=o,i.insertAdjacentElement("afterbegin",n)),(o=y(e,"cookieoptin-overlay-bgimage"))&&(i=a.fillTemplates(s.mediaOverlayBgimageTmpl,{src:o}),(n=document.createElement("div")).innerHTML=i,(e=n.firstElementChild)&&t.appendChild(e)))}))},this.removeMediaoverlaysByOptinGroup=function(t){var e=this.getMediaoverlaySelectorsByOptinGroup(t);""!==e&&v(e,s.wrapperSelector).forEach(function(e){e.classList.remove("has-cookiehint-mediaoverlay","has-cookiehint-mediaoverlay--"+t),v(".cookieconsent__mediaoverlay",e).forEach(function(e){e.remove()})})},this.getMediaoverlaySelectorsByOptinGroup=function(e){var e="mediaOverlays"+this.capitalizeFirstLetter(e),t="";return t=void 0!==s[e]?s[e].join():t},this.fillTemplates=function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e=e.replace("{{"+o+"}}",t[o]));return e},this.executeCallback=function(e){"function"==typeof a[e]&&(a.debugOutput("Executing callback",e),a[e](a))},this.fireEvent=function(o,i){i=g({self:a},i=void 0===i?{}:i),("loading"!==document.readyState?Promise.resolve(!0):new Promise(function(e){document.addEventListener("DOMContentLoaded",function(){e(!0)},{once:!0})})).then(function(){var t;a.debugOutput("firing event",o);try{t=new CustomEvent(o,{bubbles:!0,cancelable:!0,detail:i})}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent(o,!0,!0,i)}document.dispatchEvent(t)})},this.debugOutput=function(e,t){s.debug&&(void 0===t&&(t=""),console.log("%c[CookieHint] "+e+(""!==t?":":""),"color: blue;",t))},this.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},this.init()},CookieHint.prototype=Object.create({}),(CookieHint.prototype.constructor=CookieHint).prototype.externalmediaCallbackAccept=function(){this.removeMediaoverlaysByOptinGroup("externalmedia")},CookieHint.prototype.externalmediaCallbackDecline=function(){this.addMediaoverlaysByOptinGroup("externalmedia")},CookieHint.prototype.youtubeCallbackAccept=function(){this.removeMediaoverlaysByOptinGroup("youtube")},CookieHint.prototype.youtubeCallbackDecline=function(){this.addMediaoverlaysByOptinGroup("youtube")},CookieHint.prototype.vimeoCallbackAccept=function(){this.removeMediaoverlaysByOptinGroup("vimeo")},CookieHint.prototype.vimeoCallbackDecline=function(){this.addMediaoverlaysByOptinGroup("vimeo")},CookieHint.prototype.googlemapsCallbackAccept=function(){this.removeMediaoverlaysByOptinGroup("googlemaps")},CookieHint.prototype.googlemapsCallbackDecline=function(){this.addMediaoverlaysByOptinGroup("googlemaps")}}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.