(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[443],{HlCJ:function(t,e,i){"use strict";i.r(e);var a=function(){var t,e=this.$createElement,i=this._self._c||e;return null===this.article?i("tb-w-loader"):i("div",[this.displayCapacity?i("tb-w-occupancy-detail",{staticClass:"max-w-2xl mx-auto",attrs:{item:this.article,capacity:null===(t=this.article)||void 0===t?void 0:t.capacity}}):this._e(),this._v(" "),i("tb-w-visitor-channeling-section",{attrs:{item:this.article,standalone:""}})],1)};a._withStripped=!0;var s=i("xBaG");const l=["capacity","fieldValues","fieldBlueprints"];var n={props:{id:{type:String,required:!0}},data:()=>({article:null}),beforeRouteEnter(t,e,i){i(t=>{t.$store.dispatch("storeIsVisitorChannelingRoute",!0)})},beforeRouteLeave(t,e,i){this.$store.dispatch("storeIsVisitorChannelingRoute",!1),i()},created(){this.setDateIndex()},computed:{...Object(s.e)("displayConfig",["hiddenVisitorChannelingSections"]),displayCapacity(){return!this.hiddenVisitorChannelingSections.includes("capacity")}},methods:{...Object(s.b)({setDateIndex:"visitorChanneling/setDateIndex"}),fetchArticle:async function(t=this.id){this.article=null;const e=await this.articleRepository.fetch(t,{include:l,language:this.$store.state.language});this.article=e.payload;const i=await this.articleRepository.fetch(t+"/relatedArticles",{language:this.$store.state.language,include:["geometry","classifications","mainImage","capacity"]});this.$set(this.article,"relatedArticles",i.payload),this.article.fieldValues instanceof Array&&0===this.article.fieldValues.length&&(this.article.fieldValues={})}},watch:{id:{immediate:!0,handler(t){this.fetchArticle(t)}}}},c=i("KHd+"),r=Object(c.a)(n,a,[],!1,null,null,null);e.default=r.exports}}]);