(window.webpackJsonpNewland_Toubiz_Poi_Neos=window.webpackJsonpNewland_Toubiz_Poi_Neos||[]).push([[346],{U5u5:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("minimal"!==e.styling?"tb-w-section":"div",{directives:[{name:"show",rawName:"v-show",value:!e.loaderSuspense,expression:"!loaderSuspense"}],tag:"component"},["minimal"!==e.styling?i("skeleton-loader",{attrs:{width:"18rem",height:"2.5rem",animation:"fade",type:"rect",radius:6,rounded:!0}}):e._e(),e._v(" "),i("skeleton-loader",{staticClass:"mt-4",attrs:{width:"100%",height:"35rem",animation:"fade",type:"rect",radius:6,rounded:!0}})],1),e._v(" "),i("transition",{attrs:{name:"fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.loaderSuspense,expression:"loaderSuspense"}]},[e.article?i("tb-w-article-detail-price",{attrs:{article:e.article,"display-in-section":"minimal"!==e.styling}}):e._e()],1)])],1)};a._withStripped=!0;var s=i("m5nq"),r={props:{id:{type:String,required:!0},styling:{type:String,default:"section",validator:e=>["section","minimal"].includes(e)}},data:()=>({article:null,loaderSuspense:!1}),methods:{async fetchArticle(e){this.article=null;try{const t=await this.articleRepository.fetch(e,{language:this.$store.state.language},s.a.VERSION_1);this.article=t.payload}catch(e){console.error(e)}}},watch:{article(){this.article&&setTimeout(()=>{this.loaderSuspense=!0},300)},id:{immediate:!0,handler(e){this.fetchArticle(e)}}}},n=i("KHd+"),l=Object(n.a)(r,a,[],!1,null,null,null);l.options.__file="node_modules/@newland/toubiz-widget/src/routes/article-price.vue";t.default=l.exports}}]);