(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[436],{b9ad:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("skeleton-page-default",{directives:[{name:"show",rawName:"v-show",value:!e.detailViewSuspense,expression:"!detailViewSuspense"}]}),e._v(" "),a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.detailViewSuspense,expression:"detailViewSuspense"}]},[e.event&&e.eventDate?a("tb-w-event-date-detail",{staticClass:"tb-w-event-date-detail",attrs:{event:e.event,"event-date":e.eventDate}}):e._e()],1)])],1)};n._withStripped=!0;var i=a("xBaG");const s=["awards","channelContext","client","contactInformation","externalIds","fieldBlueprints","fieldValues","files","media","partners","price","relatedArticles","seo"];var l={props:{id:{type:String,required:!0}},data:()=>({event:null,eventDate:null,detailViewSuspense:!1}),computed:{...Object(i.e)(["language"])},watch:{eventDate(){this.eventDate&&this.event&&setTimeout(()=>{this.detailViewSuspense=!0},300)},id:{immediate:!0,handler(e){this.fetchEventDate(e)}},language:{handler:function(){this.detailViewSuspense=!1,this.fetchEventDate(this.id)},deep:!0}},beforeRouteLeave(e,t,a){this.SET_ACTUAL_EVENT_DETAIL_PAYLOAD(null),a()},methods:{...Object(i.d)(["SET_ACTUAL_EVENT_DETAIL_PAYLOAD"]),async fetchEventDate(e=this.id){this.event=null,this.location=null,this.host=null;const t=await this.eventDateRepository.fetch(e,{include:s,language:this.$store.state.language});this.eventDate=t.payload,this.event=this.eventDate.event,this.SET_ACTUAL_EVENT_DETAIL_PAYLOAD(this.event),this.event.fieldValues instanceof Array&&0===this.event.fieldValues.length&&(this.event.fieldValues={})}}},d=a("KHd+"),o=Object(d.a)(l,n,[],!1,null,null,null);t.default=o.exports}}]);