(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[367],{iIuG:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("tb-w-section",{directives:[{name:"show",rawName:"v-show",value:!e.loaderSuspense,expression:"!loaderSuspense"}]},["collapse"===e.type?e._l(7,(function(e,t){return a("skeleton-loader",{key:e+1,class:t>0?"mt-4":"",attrs:{width:"100%",height:"6.5rem",animation:"fade",type:"rect",rounded:!0}})})):a("tb-w-grid",{attrs:{columns:{xs:1,sm:1,md:2,lg:2,xl:2}}},e._l(7,(function(e){return a("skeleton-loader",{key:e+1,attrs:{width:"100%",height:"6.5rem",animation:"fade",type:"rect",rounded:!0}})})),1)],2),e._v(" "),a("transition",{attrs:{name:"fade"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.loaderSuspense,expression:"loaderSuspense"}]},[e.liveData?a("tb-w-ski-area-detail-wintersports",{attrs:{"live-data":e.liveData,"wintersport-statistics":e.liveData.statistics,type:e.type,"hide-headline":""}}):e._e()],1)])],1)};i._withStripped=!0;var s=a("m5nq"),r={props:{id:{type:String,required:!0},type:{type:String,default:"collapse",validator:e=>["grid","collapse"].includes(e)}},data:()=>({liveData:null,loaderSuspense:!1}),methods:{async fetchLiveData(e){try{const t=await this.publicRepository.fetch(e,"skiArea",null,s.a.VERSION_2);this.liveData=t.payload}catch(e){console.error(e)}}},watch:{liveData(){this.liveData&&setTimeout(()=>{this.loaderSuspense=!0},500)},id:{immediate:!0,handler(e){this.fetchLiveData(e)}}}},n=a("KHd+"),o=Object(n.a)(r,i,[],!1,null,null,null);o.options.__file="node_modules/@newland/toubiz-widget/src/routes/wintersport-statistic.vue";t.default=o.exports}}]);