(window.webpackJsonp=window.webpackJsonp||[]).push([[163,113],{1074:function(t,e,n){"use strict";var r=n(4),o=(n(28),n(34),n(5));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)}}}},1488:function(t,e,n){"use strict";n.r(e);var r=n(4),o=n(2),c=n(5),d=n(1074),l=n(924),h=n(187),f=n(933);function m(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 y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var w={name:"ProductionDetails",components:{SearchIndexStart:h.default},mixins:[l.a,d.a,f.a],data:()=>({productionData:null,loading:!0}),fetch(){var t=this;return Object(o.a)((function*(){if(isNaN(t.$route.params.id))return t.redirectSimpleCatch();yield t.requestProduction(),yield t.requestPageBreadcrumb(),t.$store.commit("login/setId",t.$route.params.id)}))()},head(){return{title:this.productionData&&this.productionData.name,meta:this.productionData&&this.$utils.addMetaData({title:this.productionData.name,description:this.productionData.subtitle||"",image:this.productionData.header_image_thumbnails?this.productionData.header_image_thumbnails.medium:this.designSettings.header.logoLink})}},computed:y({},Object(c.e)({eventConfig:t=>t.noeku.design.event,sticky:t=>t.basic.sticky,designSettings:t=>t.noeku.design})),mounted(){this.initStickyBtn()},beforeDestroy(){this.updateNonCmsClass("")},methods:y(y({},Object(c.b)({updateNonCmsClass:"basic/updateNonCmsClass"})),{},{requestProduction(){var t=this;return Object(o.a)((function*(){return yield t.$repository("/api/productions/",t.$i18n.locale).show(t.$route.params.id).then((e=>{var{data:data}=e;t.productionData=data,t.loading=!1,"page_class"in data&&t.updateNonCmsClass(data.page_class)})).catch(t.redirectCatch)}))()}})},v=n(1),component=Object(v.a)(w,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-production-details"},[e("SharedSpacer",{attrs:{small:""}}),t._v(" "),e("SharedBreadcrumb",{staticClass:"grid-container",attrs:{links:t.breadcrumbDetailPage}}),t._v(" "),e("SearchIndexStart"),t._v(" "),e("SharedSpacer"),t._v(" "),t.productionData?e("SharedFancybox",[e("SharedLoading",{attrs:{loading:t.loading,type:"event-detail"}},["pageeditor"===t.productionData.type_detail_view?e("LazyProductionTypePageeditor",{attrs:{details:t.productionData}}):e("LazyProductionTypeDefault",{attrs:{details:t.productionData}})],1)],1):t._e()],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{SharedSpacer:n(590).default,SharedBreadcrumb:n(592).default,SearchIndexStart:n(187).default,SharedLoading:n(146).default,SharedFancybox:n(903).default})},897: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'},898: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'},899: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'},900:function(t,e,n){var content=n(901);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})},901: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},903:function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(928),c=n(897),d=n.n(c),l=n(898),h=n.n(l),f=n(899),m=n.n(f),y=(n(929),n(900),{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:d.a,nextTpl:h.a}}})}))()},beforeDestroy:()=>Object(r.a)((function*(){yield o.a.destroy()}))()}),w=n(1),component=Object(w.a)(y,(function(){return(0,this._self._c)("div",{ref:"Fancybox"},[this._t("default")],2)}),[],!1,null,null,null);e.default=component.exports},924:function(t,e,n){"use strict";var r=n(4),o=n(2),c=(n(10),n(11),n(249));function d(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 l={};try{l=n(188)}catch(t){l=n(189)}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 l))return console.error("This staticUrlType: "+t.staticUrlType+" does not exist");var e=l[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?d(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(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}))}))()}}}},933: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"})}}}}}]);