(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[329],{HlCJ:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this.$createElement,e=this._self._c||t;return null===this.article?e("tb-w-loader"):e("div",[this.displayCapacity?e("tb-w-visitor-channeling-capacity-content",{staticClass:"max-w-2xl mx-auto",attrs:{item:this.article}}):this._e(),this._v(" "),e("tb-w-visitor-channeling-section",{attrs:{item:this.article,standalone:""}})],1)};a._withStripped=!0;var s=i("L2JU");const n=["capacity","fieldValues","fieldBlueprints"];var l={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.c)({setDateIndex:"visitorChanneling/setDateIndex"}),fetchArticle:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.id;this.article=null;const e=await this.articleRepository.fetch(t,{include:n,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)(l,a,[],!1,null,null,null);r.options.__file="node_modules/@newland/toubiz-widget/src/routes/visitor-channeling.vue";e.default=r.exports}}]);