"use strict";(self.webpackChunkconfig_npm=self.webpackChunkconfig_npm||[]).push([[143],{18520:function(e,t,n){var o=window.matchMedia("(min-width: 992px)").matches?150:100,r=document.getElementById("header"),l=new XMLHttpRequest;function c(e){e.preventDefault(),document.querySelector("#header .search").classList.contains("open")?(document.querySelector("#site .solr-container").classList.remove("active"),n.e(373).then(n.bind(n,10373)).then((function(e){e.default.enableScroll()})),document.querySelector("#header .search").classList.remove("open"),document.querySelector("#site .solr-container .tx-solr-q").blur()):(document.querySelector("#header .search").classList.add("open"),document.querySelectorAll("#site .solr-container > div").length>0?(document.querySelector("#site .solr-container").classList.add("active"),n.e(373).then(n.bind(n,10373)).then((function(e){e.default.disableScroll()})),document.getElementById("header").classList.remove("menuOpen"),document.querySelector("#site .solr-container .tx-solr-q").focus()):(document.querySelector("#header .search").classList.add("open"),l.send(),n.e(620).then(n.bind(n,23620))))}var i=null,a=null,u=function(e){document.getElementById("main-nav").parentElement.outerHTML=e.outerHTML,document.querySelector(".mobileMenu").classList.remove("loading"),document.querySelector(".mobileMenu .mobileMenuButton").setAttribute("title","");var t=document.querySelector("#site").getAttribute("data-pid");document.querySelectorAll('#main-nav li[data-uid="'+t+'"]').forEach((function(e){for(;e;)e.classList.add("active"),e.querySelector("a").classList.add("active"),e.querySelector("a").setAttribute("aria-expanded",!0),e=e.parentElement.closest("li")})),n.e(224).then(n.bind(n,56224)).then((function(e){e.default.handleAccessibility(r)}))},s=function(){if(null==i&&(i=document.getElementById("main-nav").parentElement.outerHTML),null===a){if(!document.querySelector(".mobileMenu").classList.contains("loading")){document.querySelector(".mobileMenu").classList.add("loading");var e=new XMLHttpRequest;e.onreadystatechange=function(){if(4===e.readyState)if(200===e.status){var t=new DOMParser;u(t.parseFromString(e.responseText,"text/html").documentElement.querySelector("nav")),a=document.getElementById("main-nav").parentElement.outerHTML,document.querySelector("#header .search").addEventListener("click",c,{passive:!1}),n.e(358).then(n.bind(n,5358)).then((function(e){e.default.init()}))}else document.querySelector(".mobileMenu").classList.remove("loading"),document.querySelector(".mobileMenu .mobileMenuButton").setAttribute("title",""),n.e(224).then(n.bind(n,56224)).then((function(e){var t=e.default;t.handleAccessibility(r),t.initializeMenubar(document.getElementById("main-nav"))})),document.querySelectorAll("#header .search").length>0&&document.querySelector("#header .search").addEventListener("click",c,{passive:!1})},e.open("Get",document.querySelector("#site").getAttribute("data-ajaxMenu")),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.send()}}else{var t=new DOMParser;u(t.parseFromString(a,"text/html").documentElement.querySelector("nav"))}},d=function(){if(null!==i){var e=new DOMParser;document.getElementById("main-nav").parentElement.outerHTML=e.parseFromString(i,"text/html").documentElement.querySelector("nav").outerHTML,n.e(224).then(n.bind(n,56224)).then((function(e){var t=e.default;t.handleAccessibility(r),t.initializeMenubar(document.getElementById("main-nav"))})),document.querySelectorAll("#header .search").length>0&&document.querySelector("#header .search").addEventListener("click",c,{passive:!1})}};(function(){function e(){if(document.getElementById("toTop")&&n.e(47).then(n.bind(n,86047)).then((function(e){e.default.init(document.getElementById("toTop"))})),window.matchMedia("(max-width: 991px)").matches?s():n.e(224).then(n.bind(n,56224)).then((function(e){var t=e.default;t.handleAccessibility(r),t.initializeMenubar(document.getElementById("main-nav"))})),document.querySelectorAll(".mobileSearchButton").length>0&&document.querySelector(".mobileSearchButton").addEventListener("click",(function(e){if(e.preventDefault(),document.querySelectorAll("#header .search").length>0){var t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),document.querySelector("#header .search").dispatchEvent(t)}})),n.e(550).then(n.bind(n,76550)).then((function(e){var t=e.default;t.initSmoothScrollOnHashClick(o),t.initSkiplinks(o)})),(document.querySelectorAll('form input[type="number"]').length>0||document.querySelectorAll("table.contenttable, .ce-table").length>0)&&n.e(373).then(n.bind(n,10373)).then((function(e){var t=e.default;t.lockMousewheelOnNumberInputs(),t.initializeResponsiveTables(document.querySelectorAll("table.contenttable, .ce-table"))})),document.querySelectorAll("#header .search").length>0&&(l.onreadystatechange=function(){4===l.readyState&&(200===l.status?(document.querySelector("#site .solr-container").innerHTML+=l.responseText,n.e(380).then(n.bind(n,23380)).then((function(e){e.default.autosuggest()})),document.querySelector("#site .solr-container").classList.add("active"),n.e(373).then(n.bind(n,10373)).then((function(e){e.default.disableScroll()})),document.querySelector("#site .solr-container .tx-solr-q").focus()):document.querySelector("#site .solr-container").innerHTML+="An error occurred during your request: "+l.status+" "+l.statusText,document.querySelector("#site .solr-container").innerHTML+='<span class="close" tabindex="0" role="button">Close</span>',document.querySelector("#site .solr-container .close").addEventListener("click",(function(e){document.querySelector("#site .solr-container").classList.remove("active"),n.e(373).then(n.bind(n,10373)).then((function(e){e.default.enableScroll()})),document.querySelector("#header .search").classList.remove("open")})),document.querySelector("#header .search").addEventListener("click",c,{passive:!1}),document.querySelector("#site .solr-container .tx-solr-q").focus())},l.open("Get",document.querySelector("#header .search").getAttribute("href")),l.setRequestHeader("X-Requested-With","XMLHttpRequest"),document.querySelector("#header .search").addEventListener("click",c,{passive:!1})),document.querySelectorAll(".lightbox").length>0&&n.e(321).then(n.t.bind(n,21321,23)).then((function(e){new(0,e.default)({selector:".lightbox",touchNavigation:!0,loop:!0,autoplayVideos:!0})})),[].forEach.call(document.querySelectorAll(".frame-layout-select ul"),(function(e){e.style.display="none";var t=document.createElement("select");e.parentNode.insertBefore(t,e),t.addEventListener("change",(function(e){var t=e.target||e.srcElement;window.location.href=t.value}));var n=document.createElement("option");n.innerHTML="Bitte wählen ...",t.appendChild(n),[].forEach.call(e.querySelectorAll("li a"),(function(e){var n=document.createElement("option");n.value=e.getAttribute("href"),n.innerHTML=e.innerHTML,t.appendChild(n),"selected"===e.getAttribute("class")&&n.setAttribute("selected","selected")})),e.remove()})),document.querySelectorAll("#site > .popup .close").length>0){0==document.querySelectorAll('#site > .popup [style*="background-image"]').length&&document.querySelector("#site > .popup .close").classList.add("dark"),document.querySelector("#site > .popup .close").addEventListener("click",(function(){document.querySelector("#site > .popup").style.display="none"})),1==(e="popup",!((t=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))&&t.pop()))&&(document.cookie="popup = 1",document.querySelector("#site > .popup").style.display="block")}var e,t}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()})),document.body.addEventListener("click",(function(e){var n=e.target||e.srcElement;if(n.closest(".toggleSound")){var o=n.closest(".toggleSound");o.classList.toggle("active"),-1!==o.getAttribute("data-playerid").indexOf("youtube")?(p=t[o.getAttribute("data-playerid")],p.isMuted()?p.unMute():p.mute()):(p=i[o.getAttribute("data-playerid")],p.getVolume().then((function(e){0==e?p.setVolume(1):p.setVolume(0)})))}}));var t=[],i=[];window.addEventListener("resize",(function(){window.matchMedia("(max-width: 1199px)").matches?document.querySelector(".main-navigation").classList.contains("mobile")||s():document.querySelector(".main-navigation").classList.contains("mobile")&&d()}),{passive:!0}),document.querySelectorAll("#site > .terminvergabe-container").length>0&&window.addEventListener("scroll",(function(){window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop?document.querySelector("#site > .terminvergabe-container").classList.remove("open"):document.querySelector("#site > .terminvergabe-container").classList.add("open")}),{passive:!0}),window.addEventListener("load",(function(){[].forEach.call(document.querySelectorAll('iframe[src*="youtube"]'),(function(e,o){e.setAttribute("id","player-youtube-"+o);var r=document.createElement("button");r.setAttribute("data-playerid","player-youtube-"+o),r.setAttribute("class","toggleSound"),e.closest(".frame").appendChild(r),n.e(469).then(n.t.bind(n,81469,23)).then((function(n){var o=n.default;t[e.getAttribute("id")]=new o,t[e.getAttribute("id")].loadAPI((function(){t[e.getAttribute("id")].create({element:e,events:{onPlayerReady:function(e){e.mute()}}})}))}))})),[].forEach.call(document.querySelectorAll('iframe[src*="vimeo"]'),(function(e,t){e.setAttribute("id","player-vimeo-"+t);var o=document.createElement("button");o.setAttribute("data-playerid","player-vimeo-"+t),o.setAttribute("class","toggleSound"),e.closest(".frame").appendChild(o),Promise.all([n.e(755),n.e(333)]).then(n.bind(n,48333)).then((function(t){t.default,i[e.getAttribute("id")]=new Vimeo.Player(e.getAttribute("id"),{autoplay:!0,muted:!0})}))})),window.location.hash.length>0&&n.e(645).then(n.bind(n,62645)).then((function(e){e.default.autoscroll(document.querySelector(window.location.hash),o)}))}),{passive:!0}),n.e(361).then(n.bind(n,97361)).then((function(e){e.default.initializeShrinkingHeader(r)}))})()}},function(e){e.O(0,[143],(function(){[47,224,550,373,380,321,469,755,333,645,361,620,358].map(e.E)}),5);var t;t=18520,e(e.s=t)}]);