(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[432,446,447,448],{"KHd+":function(e,t,n){"use strict";function a(e,t,n,a,i,s,o,r){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),a&&(d.functional=!0),s&&(d._scopeId="data-v-"+s),o?(l=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)},d._ssrRegister=l):i&&(l=r?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:d}}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={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.publicRepository.fetch(e,"skiArea",null,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)}}}},o=n("KHd+"),r=Object(o.a)(s,a,[],!1,null,null,null);t.default=r.exports}}]);