(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-03210741"],{"0507":function(t,s,e){"use strict";e.r(s);var n=function(){var t=this,s=t._self._c;return s("div",{staticClass:"container-fluid p-5"},[t.loading?s("v-row",{attrs:{dense:""}},t._l(6,(function(t,e){return s("v-col",{key:e,attrs:{cols:4}},[s("v-skeleton-loader",{staticClass:"mx-auto",attrs:{"max-width":"300",type:"card"}})],1)})),1):s("div",[t.news.length>0?s("v-row",{attrs:{dense:""}},t._l(t.news,(function(e,n){return s("v-col",{key:n,attrs:{cols:4}},[s("v-card",{staticClass:"mx-auto my-2",attrs:{"max-width":"344"}},[s("a",{on:{click:function(s){return t.goToNew(e.slug)}}},[s("v-img",{attrs:{src:e.thumbnail,height:"200px"}})],1),s("v-card-title",{staticClass:"new-name"},[t._v(" "+t._s(e.title)+" ")]),s("v-card-subtitle",[s("em",{staticClass:"fas fa-eye mr-3 mt-4"},[t._v(" "+t._s(e.views))]),t._v(" visualizaciones ")]),s("v-card-actions",[s("v-btn",{attrs:{color:"orange lighten-2",text:""},on:{click:function(s){return t.toggle(e)}}},[t._v(" Ver más ")]),s("v-spacer"),s("v-btn",{attrs:{icon:""},on:{click:function(s){return t.toggle(e)}}},[s("v-icon",[t._v(t._s(e.show?"mdi-chevron-up":"mdi-chevron-down"))])],1)],1),s("v-expand-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"item.show"}]},[s("v-divider"),s("v-card-text",[t._v(" "+t._s(e.description)+" ")])],1)])],1)],1)})),1):s("div",{staticClass:"container"},[s("div",{staticClass:"row"},[s("div",{staticClass:"col-12 center-block text-center",staticStyle:{height:"160px"}},[s("p",{staticStyle:{"font-size":"1.5em"}},[t._v("No hay noticias recientes.")])])])])],1)],1)},i=[],a=(e("14d9"),{data(){return{news:[],loading:!0,isDark:!1}},methods:{toggle:function(t){t.show=!t.show},goToNew(t){const s={slug:t};this.$router.push({name:"noticia",params:s})},async getNews(){const{data:t}=await this.$axios.get("/public/news/list");console.log(t),this.news=this.setShowFalse(t),this.loading=!1},setShowFalse(t){return t.forEach(t=>{t.show=!1}),t}},mounted(){this.getNews()}}),o=a,c=(e("f7a2"),e("2877")),r=Object(c["a"])(o,n,i,!1,null,null,null);s["default"]=r.exports},"829e":function(t,s,e){},f7a2:function(t,s,e){"use strict";e("829e")}}]);
//# sourceMappingURL=chunk-03210741.195fae06.js.map