(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[424],{"KHd+":function(e,t,n){"use strict";function a(e,t,n,a,i,s,o,r){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),a&&(l.functional=!0),s&&(l._scopeId="data-v-"+s),o?(d=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=d):i&&(d=r?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),d)if(l.functional){l._injectStyles=d;var c=l.render;l.render=function(e,t){return d.call(t),c(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,d):[d]}return{exports:e,options:l}}n.d(t,"a",(function(){return a}))},jUAf:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("tb-w-section",{directives:[{name:"show",rawName:"v-show",value:!e.loaderSuspense,expression:"!loaderSuspense"}],attrs:{"no-container":e.noSectionSpacing,"no-spacing":e.noSectionSpacing}},["collapse"===e.type?e._l(7,(function(e,t){return n("skeleton-loader",{key:e+1,class:t>0?"mt-4":"",attrs:{width:"100%",height:"6.5rem",animation:"fade",type:"rect",rounded:!0}})})):n("tb-w-grid",{attrs:{columns:{xs:1,sm:1,md:2,lg:2,xl:2}}},e._l(7,(function(e){return n("skeleton-loader",{key:e+1,attrs:{width:"100%",height:"6.5rem",animation:"fade",type:"rect",rounded:!0}})})),1)],2),e._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.loaderSuspense,expression:"loaderSuspense"}]},[e.liveData?n("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)};a._withStripped=!0;var i=n("m5nq"),s=n("dd3m"),o={name:"WintersportStatistic",props:{id:{type:String,required:!0},type:{type:String,default:"collapse",validator:e=>["grid","collapse"].includes(e)},noSectionSpacing:{type:Boolean,default:!1}},data:()=>({liveData:null,loaderSuspense:!1}),methods:{async fetchLiveData(e){try{const t=await this.getRepository(s.b.PUBLIC).fetch(e,"skiArea",{language:this.$store.state.language},i.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)}}}},r=n("KHd+"),d=Object(r.a)(o,a,[],!1,null,null,null);t.default=d.exports}}]);