(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[383],{"KHd+":function(e,t,i){"use strict";function s(e,t,i,s,a,n,r,l){var o,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),s&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=o):a&&(o=l?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),o)if(c.functional){c._injectStyles=o;var d=c.render;c.render=function(e,t){return o.call(t),d(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,o):[o]}return{exports:e,options:c}}i.d(t,"a",(function(){return s}))},xvcq:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("skeleton-page-default",{directives:[{name:"show",rawName:"v-show",value:!this.detailViewSuspense,expression:"!detailViewSuspense"}]}),this._v(" "),t("transition",{attrs:{name:"fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:this.detailViewSuspense,expression:"detailViewSuspense"}]},[this.article?t("tb-w-article-detail",{staticClass:"tb-w-article-detail",attrs:{article:this.article}}):this._e()],1)])],1)};s._withStripped=!0;var a=i("xBaG");const n=["additionalAddress","awards","classifications","client","contactInformation","emails","fieldValues","fieldBlueprints","files","floodlights","geometryForStages","languages","links","media","partners","permissions","phoneNumbers","relatedEvents","seo","services","tags","tourVariants","channelContext","externalIds"];var r={name:"ArticleDetailView",props:{id:{type:String,required:!0}},data:()=>({article:null,detailViewSuspense:!1}),methods:{...Object(a.d)(["SET_ACTUAL_ARTICLE_DETAIL_PAYLOAD"]),fetchArticle:async function(e=this.id){var t,i;this.article=null;const s=await this.articleRepository.fetch(e,{include:n,language:this.$store.state.language});this.article=s.payload;const a=await this.articleRepository.fetch(this.id+"/relatedArticles",{language:this.$store.state.language,include:["geometry","classifications","mainImage","capacity","openingTimes"]});this.$set(this.article,"relatedArticles",a.payload);const r=[];if(null!==(t=this.article.relatedArticles)&&void 0!==t&&null!==(i=t.tourRelatedTours)&&void 0!==i&&i.length){const e=this.article.relatedArticles.tourRelatedTours.slice(0,5);r.push(this.articleRepository.enrichListWithIncludes(e,["awards"],{language:this.$store.state.language}))}await Promise.all(r),this.article.fieldValues instanceof Array&&0===this.article.fieldValues.length&&(this.article.fieldValues={}),this.SET_ACTUAL_ARTICLE_DETAIL_PAYLOAD(this.article)}},computed:{...Object(a.e)(["language"])},watch:{article(){this.article&&setTimeout(()=>{this.detailViewSuspense=!0},300)},id:{immediate:!0,handler(e){this.fetchArticle(e)}},language:{handler:function(){this.detailViewSuspense=!1,this.fetchArticle(this.id)},deep:!0}}},l=i("KHd+"),o=Object(l.a)(r,s,[],!1,null,null,null);t.default=o.exports}}]);