"use strict";(self.webpackChunkconfig_npm=self.webpackChunkconfig_npm||[]).push([[143],{7830:function(e,t,n){let o=new XMLHttpRequest,r=new XMLHttpRequest,l=new XMLHttpRequest,i=new XMLHttpRequest;function a(e,t){if(document.querySelectorAll(".newsletter-form."+e).length>0){let n=document.querySelector(".newsletter-form."+e);n.querySelectorAll("input, select").forEach((function(e){if(t.target.querySelector('[name="tx_powermail_pi1[field]['+e.getAttribute("data-field")+']"]'))if(e.hasAttribute("data-piece")){let n=t.target.querySelector('[name="tx_powermail_pi1[field]['+e.getAttribute("data-field")+']"]').value.split("-");"month"==e.getAttribute("data-piece")?e.setAttribute("value",n[1]):"day"==e.getAttribute("data-piece")&&e.setAttribute("value",n[2])}else e.setAttribute("value",t.target.querySelector('[name="tx_powermail_pi1[field]['+e.getAttribute("data-field")+']"]').value)})),n.submit()}}function c(e){e.preventDefault(),document.querySelector("#header .layout-20").classList.contains("open")?(document.querySelector("#site .solr-container").classList.remove("active"),document.querySelector("#header .layout-20").classList.remove("open"),document.querySelector("#header").classList.remove("searchOpen")):document.querySelectorAll("#site .solr-container > div").length>0?(document.querySelector("#header .layout-20").classList.add("open"),document.querySelector("#header").classList.add("searchOpen"),document.querySelector("#site .solr-container").classList.add("active"),window.matchMedia("(max-width: 991px)").matches?document.querySelector("#site .solr-container").style.top=document.querySelector("#header .layout-20").getBoundingClientRect().bottom+"px":document.querySelector("#site .solr-container").style.top=(document.querySelector("#site").classList.contains("scrolling")?document.querySelector("#header .header-container").clientHeight:document.querySelector("#header").clientHeight)+"px"):(document.querySelector("#header .layout-20").classList.add("load"),o.send(),n.e(620).then(n.bind(n,3620)))}let u=null,s=null;const d=function(e){document.getElementById("main-nav").parentElement.outerHTML=e.outerHTML,document.querySelector(".mobileMenu").classList.remove("loading"),document.querySelector(".mobileMenu .mobileMenuButton").setAttribute("title","");let 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=e.parentElement.closest("li")})),n.e(224).then(n.bind(n,6224)).then((({default:e})=>{e.handleAccessibility(document.getElementById("header"))}))},m=function(){if(null==u&&(u=document.getElementById("main-nav").parentElement.outerHTML),null===s){if(!document.querySelector(".mobileMenu").classList.contains("loading")){document.querySelector(".mobileMenu").classList.add("loading");let e=new XMLHttpRequest;e.onreadystatechange=function(){if(4===e.readyState)if(200===e.status){let t=new DOMParser;d(t.parseFromString(e.responseText,"text/html").documentElement.querySelector("nav")),s=document.getElementById("main-nav").parentElement.outerHTML}else document.querySelector(".mobileMenu").classList.remove("loading"),document.querySelector(".mobileMenu .mobileMenuButton").setAttribute("title",""),n.e(224).then(n.bind(n,6224)).then((({default:e})=>{e.handleAccessibility(document.getElementById("header")),e.initializeMenubar(document.getElementById("main-nav"))}))},e.open("Get",document.querySelector("#site").getAttribute("data-ajaxMenu")),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.send()}}else{let e=new DOMParser;d(e.parseFromString(s,"text/html").documentElement.querySelector("nav"))}},y=function(){if(null!==u){let e=new DOMParser;document.getElementById("main-nav").parentElement.outerHTML=e.parseFromString(u,"text/html").documentElement.querySelector("nav").outerHTML,n.e(224).then(n.bind(n,6224)).then((({default:e})=>{e.handleAccessibility(document.getElementById("header")),e.initializeMenubar(document.getElementById("main-nav"))}))}};var h=function(){"loading"!==document.readyState||document.addEventListener("DOMContentLoaded",(function(){}))};(function(){function e(){document.querySelectorAll(".imgFullCover")&&n.e(363).then(n.bind(n,3363)).then((({default:e})=>{e.init(document.querySelectorAll(".imgFullCover"))})),window.matchMedia("(max-width: 991px)").matches&&document.querySelector("#site").hasAttribute("data-ajaxMenu")?m():n.e(224).then(n.bind(n,6224)).then((({default:e})=>{e.initializeMenubar(document.getElementById("main-nav")),e.handleAccessibility(document.getElementById("header"))})),n.e(358).then(n.bind(n,5358)).then((({default:e})=>{e.init()})),document.querySelectorAll(".content-sub-navigation").length>0&&document.querySelector(".content-sub-navigation span").addEventListener("click",(function(e){e.target.closest("ul").classList.toggle("open")})),n.e(550).then(n.bind(n,6550)).then((({default:e})=>{e.initSmoothScrollOnHashClick(),e.initSkiplinks()})),n.e(373).then(n.bind(n,373)).then((({default:e})=>{e.lockMousewheelOnNumberInputs(),e.initializeResponsiveTables(document.querySelectorAll("table.contenttable, .ce-table"))})),document.querySelectorAll("#header .layout-20").length>0&&(o.onreadystatechange=function(){4===o.readyState&&(200===o.status?(document.querySelector("#site .solr-container").innerHTML+=o.responseText,n.e(380).then(n.bind(n,3380)).then((({default:e})=>{e.autosuggest(),document.querySelector("#header .layout-20").classList.remove("load"),document.querySelector("#header .layout-20").classList.add("open"),document.querySelector("#header").classList.add("searchOpen"),document.querySelector("#site .solr-container").classList.add("active"),window.matchMedia("(max-width: 991px)").matches?document.querySelector("#site .solr-container").style.top=document.querySelector("#header .layout-20").getBoundingClientRect().bottom+"px":document.querySelector("#site .solr-container").style.top=(document.querySelector("#site").classList.contains("scrolling")?document.querySelector("#header .header-container").clientHeight:document.querySelector("#header").clientHeight)+"px",document.querySelector("#site .solr-container .tx-solr-q").focus(),document.querySelector(".close-search").addEventListener("click",(function(){document.querySelector("#header .layout-20").classList.remove("open"),document.querySelector("#header").classList.remove("searchOpen"),document.querySelector("#site .solr-container").classList.remove("active"),document.querySelector("#site .solr-container .tx-solr-q").blur()}))}))):document.querySelector("#site .solr-container").innerHTML+="Ein Fehler ist aufgetreten: "+o.status+" "+o.statusText)},o.open("Get",document.querySelector("#header .layout-20").getAttribute("data-link")),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),document.querySelector("#header .layout-20").addEventListener("click",c,{passive:!1})),""!=document.querySelector("#site").getAttribute("data-weather")&&document.querySelectorAll("#site .weather-container").length>0&&(r.onreadystatechange=function(){4===r.readyState&&(200===r.status?(document.querySelector("#site .weather-container").style.top=(document.querySelector("#header").clientHeight>150?200:document.querySelector("#header").clientHeight)+30+"px",document.querySelector("#site .weather-container").innerHTML+=r.responseText,n.e(485).then(n.bind(n,3485)),n.e(830).then(n.bind(n,3010)).then((({default:e})=>{e.init()}))):(document.querySelector("#site .weather-container").innerHTML+="Ein Fehler ist aufgetreten: "+r.status+" "+r.statusText,document.querySelector("#site .weather-container").style.display="none"))},r.open("Get",document.querySelector("#site").getAttribute("data-weather")),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send()),document.querySelectorAll("body >.openings-container").length>0&&""!=document.querySelector("body > .openings-container").getAttribute("data-overlay")&&(n.e(729).then(n.bind(n,729)),document.querySelector(".openings-open").addEventListener("click",(function(e){e.preventDefault(),document.querySelectorAll("body > .openings-container .frame").length>0?document.querySelector(".openings-container").classList.add("open"):(l.onreadystatechange=function(){4===l.readyState&&(200===l.status?(document.querySelector("body > .openings-container #openings-widget").insertAdjacentHTML("afterbegin",l.responseText),document.querySelector(".openings-container").classList.add("open"),document.querySelector(".openings-close").addEventListener("click",(function(e){e.preventDefault(),document.querySelector(".openings-container").classList.remove("open")})),document.querySelector(".openings-container li").addEventListener("click",(function(e){e.preventDefault(),window.open(e.target.getAttribute("data-link"),"_blank")})),document.querySelector(".openings-container li").addEventListener("keypress",(function(e){13==e.keyCode&&(e.preventDefault(),window.open(e.target.getAttribute("data-link"),"_blank"))}))):(document.querySelector("body > .openings-container").innerHTML+="Ein Fehler ist aufgetreten: "+l.status+" "+l.statusText,document.querySelector("body > .openings-container").style.display="none"))},l.open("Get",e.target.closest(".openings-container").getAttribute("data-overlay")),l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.send())}))),document.querySelectorAll(".tx-openings").length>0&&""!=document.querySelector(".tx-openings").getAttribute("data-load")&&(n.e(729).then(n.bind(n,729)),i.onreadystatechange=function(){4===i.readyState&&(200===i.status?document.querySelector(".tx-openings").innerHTML=i.responseText:document.querySelector(".tx-openings").innerHTML+="Ein Fehler ist aufgetreten: "+i.status+" "+i.statusText)},i.open("Get",document.querySelector(".tx-openings").getAttribute("data-load")),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send()),document.querySelectorAll(".lightbox").length>0&&n.e(321).then(n.t.bind(n,1321,23)).then((({default:e})=>{new e({selector:".lightbox",touchNavigation:!0,loop:!0,autoplayVideos:!0})})),document.querySelectorAll("lite-vimeo").length>0&&n.e(932).then(n.bind(n,9932)),document.querySelectorAll("lite-youtube").length>0&&n.e(960).then(n.bind(n,3960)),document.querySelectorAll(".newsletter-form").length>0&&document.querySelectorAll(".powermail_form").length>0&&document.querySelector(".powermail_form").addEventListener("submit",(function(e){e.target.querySelectorAll('.powermail_fieldwrap_newsletter_sites [type="checkbox"]:checked').forEach((function(t){a(t.value,e)})),e.target.closest("form").classList.contains("powermail_form_6")&&a("seefestspiele",e),e.target.closest("form").classList.contains("powermail_form_10")&&(a("liszt",e),a("schloss-tabor",e)),e.target.closest("form").classList.contains("powermail_form_13")&&a("schlossspiele",e)}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",(function(){e()})),window.addEventListener("resize",(function(){n.e(363).then(n.bind(n,3363)).then((({default:e})=>{e.init(document.querySelectorAll(".imgFullCover"))})),document.getElementById("site").classList.contains("with-info")&&(document.getElementById("site").style.paddingTop=document.querySelector("#header").offsetHeight+"px"),window.matchMedia("(max-width: 991px)").matches&&document.querySelector("#site").hasAttribute("data-ajaxMenu")?document.querySelector(".main-navigation").classList.contains("mobile")||m():document.querySelector(".main-navigation").classList.contains("mobile")&&y()}),{passive:!0}),window.addEventListener("scroll",(function(){window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop?(document.querySelector("#site").classList.add("scrolling"),document.querySelectorAll("#header-info").length>0&&(document.querySelector("#header").style.transform="translateY(-"+document.querySelector("#header-info").offsetHeight+"px)")):(document.querySelector("#site").classList.remove("scrolling"),document.querySelector("#header").style.transform="translateY(0)")}),{passive:!0}),window.addEventListener("load",(function(){document.getElementById("site").classList.contains("with-info")&&(document.getElementById("site").style.paddingTop=document.querySelector("#header").offsetHeight+"px"),document.getElementById("to-top")&&(n.e(47).then(n.bind(n,6047)).then((({default:e})=>{e.init(document.getElementById("to-top"))})),n.e(620).then(n.bind(n,3620))),window.location.hash.length>0&&document.querySelector(window.location.hash)&&n.e(645).then(n.bind(n,2645)).then((({default:e})=>{e.autoscroll(document.querySelector(window.location.hash),document.getElementById("header").clientHeight+30,600)}),{passive:!0})}),{passive:!0})})(),h()}},function(e){e.O(0,[143],(function(){[363,224,358,550,373,380,485,830,729,321,932,960,47,620,645].map(e.E)}),5);var t;t=7830,e(e.s=t)}]);