(window.webpackJsonp=window.webpackJsonp||[]).push([[153,113],{1027:function(t,e,n){"use strict";var r=n(4),o=(n(27),n(34),n(7));function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a={data:()=>({btnEl:null,hideArea:null}),computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(o.e)({showStickyEvent:t=>t.basic.showStickyEvent})),beforeDestroy(){this.removeListener(),this.$store.commit("basic/setField",{field:"showStickyEvent",value:!1})},methods:{initStickyBtn(){this.getButtonEl(),this.btnEl&&this.hideArea&&this.addListener()},getButtonEl(){this.btnEl=this.$route.name.includes("productions-slug-id")?document.querySelector("page-production-details__header--inner .page-production-details__termine-button"):document.querySelector(".event-detail__actions .event-item__ticket-link"),this.hideArea=document.querySelector("event-detail-page__events")},onScroll(t){var e=this.hideArea.getBoundingClientRect().top,n=this.btnEl.getBoundingClientRect().top<=0,r=e<window.innerHeight;!n||r||this.showStickyEvent?(!n&&this.showStickyEvent||r&&this.showStickyEvent)&&this.$store.commit("basic/setField",{field:"showStickyEvent",value:!1}):this.$store.commit("basic/setField",{field:"showStickyEvent",value:!0})},addListener(){window.addEventListener("scroll",this.onScroll,{passive:!0})},removeListener(){window.removeEventListener("scroll",this.onScroll)}}}},1446:function(t,e,n){"use strict";n.r(e);var r=n(4);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(2),d=(n(18),n(563),n(7)),f=n(186),h=n(880),m=n(889),v=n(1027);function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var O={name:"EventDetailPage",components:{SearchIndexStart:f.default},mixins:[h.a,m.a,v.a],data:()=>({eventData:null,loading:!0}),fetch(){var t=this;return Object(l.a)((function*(){if(isNaN(t.$route.params.id))return t.redirectSimpleCatch();yield t.requestEvent(),yield t.requestPageBreadcrumb(),yield t.$store.commit("login/setId",t.$route.params.id)}))()},head(){return{title:this.eventData&&this.eventData.name,meta:this.eventData&&this.$utils.addMetaData({title:this.eventData.name,description:this.eventData.subtitle||"",image:this.eventData.header_image_thumbnails?this.eventData.header_image_thumbnails.medium:this.designSettings.header.logoLink})}},computed:w(w({},Object(d.e)({eventConfig:t=>t.noeku.design.event,currentTicketUrl:t=>t.events.currentTicketUrl,designSettings:t=>t.noeku.design})),{},{slug(){return{[this.$i18n.locale]:this.$route.params.slug}}}),mounted(){this.initStickyBtn()},beforeDestroy(){this.updateNonCmsClass(""),""!==this.currentTicketUrl&&this.$store.commit("events/setField",{field:"currentTicketUrl",value:""}),this.$store.commit("events/setField",{field:"currentEventStatus",value:""})},methods:w(w({},Object(d.b)({updateNonCmsClass:"basic/updateNonCmsClass"})),{},{requestEvent(){var t=this;return Object(l.a)((function*(){return yield t.$repository("/api/events/",t.$i18n.locale).show(t.$route.params.id).then((e=>{var{data:data}=e;t.eventData=data,t.loading=!1,"page_class"in data&&t.updateNonCmsClass(data.page_class),data.ticket_url&&t.$store.commit("events/setField",{field:"currentTicketUrl",value:data.ticket_url}),t.$store.commit("events/setField",{field:"currentEventStatus",value:data.status})})).catch(t.redirectCatch).finally((()=>{t.loading=!1}))}))()}})},_=n(1),component=Object(_.a)(O,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"event-detail-page"},[e("SharedSpacer",{attrs:{small:""}}),t._v(" "),e("SharedBreadcrumb",{staticClass:"grid-container",attrs:{links:t.breadcrumbDetailPage}}),t._v(" "),e("SearchIndexStart"),t._v(" "),e("SharedFancybox",[e("SharedLoading",{attrs:{loading:t.loading,type:"event-detail"}},[t.eventData&&"pageeditor"===t.eventData.type_detail_view?e("LazyEventDetailPageeditor",t._b({},"LazyEventDetailPageeditor",t.eventData,!1)):t.eventData?e("LazyEventDetail",t._b({},"LazyEventDetail",c(c({},t.eventData),{},{slug:t.slug}),!1)):t._e()],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{SharedSpacer:n(562).default,SharedBreadcrumb:n(564).default,SearchIndexStart:n(186).default,SharedLoading:n(146).default,SharedFancybox:n(856).default})},850:function(t,e){t.exports='<svg width="48" height="48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.5 13.5L9.5 24l11 10.5m18-10.5H10" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\n'},851:function(t,e){t.exports='<svg width="48" height="48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27.5 13.5l11 10.5-11 10.5M38 24H9.5" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\n'},852:function(t,e){t.exports='<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M34.5 13.5l-21 21m0-21l21 21" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\n'},853:function(t,e,n){var content=n(854);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(9).default)("d423ef0a",content,!0,{sourceMap:!1})},854:function(t,e,n){var r=n(8)((function(i){return i[1]}));r.push([t.i,".grid-container .grid-container{padding-left:0;padding-right:0}.grid-container .grid-container:not(.fluid),.grid-container .grid-container:not(.full){max-width:calc(188rem - 48px)}@media print,screen and (min-width: 48em){.grid-container .grid-container:not(.fluid),.grid-container .grid-container:not(.full){max-width:calc(188rem - 80px)}}@media print,screen and (min-width: 64em){.grid-container .grid-container:not(.fluid),.grid-container .grid-container:not(.full){max-width:calc(188rem - 160px)}}@media screen and (min-width: 85.375em){.grid-container .grid-container:not(.fluid),.grid-container .grid-container:not(.full){max-width:calc(188rem - 160px)}}@media screen and (min-width: 100em){.grid-container .grid-container:not(.fluid),.grid-container .grid-container:not(.full){max-width:calc(188rem - 192px)}}.fancybox__backdrop{background:#000}.fancybox__content:focus{outline:none}.fancybox__toolbar{--f-button-bg: transparent;--f-button-width: 3rem;--f-button-height: 3rem;--f-button-svg-width: 3rem;--f-button-svg-height: 3rem;background:none}@media print,screen and (min-width: 48em){.fancybox__toolbar{--f-button-width: 5rem;--f-button-height: 5rem;--f-button-svg-width: 3.5rem;--f-button-svg-height: 3.5rem}}.fancybox__infobar{position:fixed;right:1rem;bottom:.5rem;font-weight:400;font-size:.75rem}@media print,screen and (min-width: 48em){.fancybox__infobar{bottom:auto;top:50%;transform:translateY(-105px)}}.is-compact .fancybox__footer{width:calc(100% - 4.5rem);background:transparent}.is-compact .fancybox__footer .fancybox__counter{width:90%}@media print,screen and (min-width: 48em){.is-compact .fancybox__footer .fancybox__counter{width:100%}}.is-compact .fancybox__footer .fancybox__caption{padding:1rem}.fancybox__caption{font-size:.75rem}@media print,screen and (min-width: 48em){.fancybox__caption{padding:1.5rem}}.fancybox__slide{padding:3rem 0}@media print,screen and (min-width: 48em){.fancybox__slide{padding:3rem 0 0}}@media print,screen and (min-width: 48em){.fancybox__slide{padding:0 5rem}}.is-horizontal .fancybox__nav{--f-button-svg-width: 48px;--f-button-svg-height: 48px;--f-button-width: 5rem;--f-button-height: 5rem;display:none}@media print,screen and (min-width: 48em){.is-horizontal .fancybox__nav{display:block;position:absolute;right:0;top:50%;transform:translateY(-25%)}}.is-horizontal .fancybox__nav button.f-button:before{content:initial}.is-horizontal .fancybox__nav button.f-button.is-next,.is-horizontal .fancybox__nav button.f-button.is-prev{position:relative;top:0;transform:initial;left:0;right:0}",""]),r.locals={},t.exports=r},856:function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(884),c=n(850),l=n.n(c),d=n(851),f=n.n(d),h=n(852),m=n.n(h),v=(n(885),n(853),{mounted(){var t=this;return Object(r.a)((function*(){yield o.a.bind(t.$refs.Fancybox,"[data-fancybox]",{Toolbar:{display:{left:["infobar"],middle:[],right:["close"]},items:{close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close>'+m.a+"</button>"}}},Thumbs:!1,placeFocusBack:!1,template:{spinner:'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="25 25 50 50" tabindex="-1"><circle cx="50" cy="50" r="20"/></svg>'},wheel:"slide",idle:!1,Images:{Panzoom:{zoom:!1}},Carousel:{Dots:!1,Navigation:{prevTpl:l.a,nextTpl:f.a}}})}))()},beforeDestroy:()=>Object(r.a)((function*(){yield o.a.destroy()}))()}),y=n(1),component=Object(y.a)(v,(function(){return(0,this._self._c)("div",{ref:"Fancybox"},[this._t("default")],2)}),[],!1,null,null,null);e.default=component.exports},880:function(t,e,n){"use strict";var r=n(4),o=n(2),c=(n(10),n(11),n(246));function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var d={};try{d=n(187)}catch(t){d=n(188)}e.a={data:()=>({pageData:null}),mixins:[c.a],computed:{staticUrlType(){return this.$route.name.split("-")[0]||""},breadcrumbTitle(){return this.$metaInfo.title||""},breadcrumbDetailPage(){return[...this.breadcrumbPages,{text:this.breadcrumbTitle,link:this.$route.path}]}},methods:{requestPageBreadcrumb(){var t=this;return Object(o.a)((function*(){if(!t.staticUrlType)return console.error("@/mixins/breadcrumbsDetailPage.js - staticUrlType is missing");if(!(t.staticUrlType in d))return console.error("This staticUrlType: "+t.staticUrlType+" does not exist");var e=d[t.staticUrlType][t.$i18n.locale],n=t.$store.state.login.logged?{headers:{"X-CSRFToken":t.$cookies.get("csrftoken")},withCredentials:!0}:{};yield t.$axios(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({method:"GET",url:"".concat(t.$i18n.locale).concat("/pageeditor-api","/page/").concat(decodeURI(e))},n)).then((e=>{var{data:data}=e;t.pageData=data}))}))()}}}},889:function(t,e,n){"use strict";e.a={methods:{redirectCatch(){return this.$nuxt.error({statusCode:404,message:"404 Not Found"})},redirectSimpleCatch(){return this.$nuxt.error({statusCode:404,message:"404 Not Found"})}}}}}]);