(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[441],{BK5j: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-ski-area-detail",{staticClass:"tb-w-ski-area-detail",attrs:{article:this.article}}):this._e()],1)])],1)};s._withStripped=!0;var a=i("xBaG"),n=i("m5nq");const l=["additionalAddress","awards","capacity","classifications","client","contactInformation","emails","fieldValues","fieldBlueprints","files","geometryForStages","languages","links","media","openingTimes","partners","permissions","phoneNumbers","seo","tags","tourVariants","services","relatedEvents"];var r={props:{id:{type:String,required:!0}},data:()=>({article:null,detailViewSuspense:!1}),beforeRouteLeave(e,t,i){this.SET_ACTUAL_ARTICLE_DETAIL_PAYLOAD(null),i()},computed:{...Object(a.e)(["language"])},methods:{...Object(a.d)(["SET_ACTUAL_ARTICLE_DETAIL_PAYLOAD"]),fetchArticle:async function(e=this.id){this.article=null;const t=await this.articleRepository.fetch(e,{include:l,language:this.$store.state.language,withChannelContext:!0},n.a.VERSION_2);this.article=t.payload,this.SET_ACTUAL_ARTICLE_DETAIL_PAYLOAD(this.article)}},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}}},o=i("KHd+"),c=Object(o.a)(r,s,[],!1,null,null,null);t.default=c.exports}}]);