(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eced1b8a"],{"0507":function(t,s,e){"use strict";e.r(s);var a=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,a){return s("v-col",{key:a,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=[],n=(e("14d9"),e("e9f5"),e("7d54"),{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=n,c=(e("f7a2"),e("0c7c")),r=Object(c["a"])(o,a,i,!1,null,null,null);s["default"]=r.exports},"7d54":function(t,s,e){"use strict";var a=e("23e7"),i=e("c65b"),n=e("2266"),o=e("59ed"),c=e("825a"),r=e("46c4"),l=e("2a62"),u=e("f99f"),d=u("forEach",TypeError);a({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(t){c(this);try{o(t)}catch(a){l(this,"throw",a)}if(d)return i(d,this,t);var s=r(this),e=0;n(s,(function(s){t(s,e++)}),{IS_RECORD:!0})}})},"8ef6":function(t,s,e){},f7a2:function(t,s,e){"use strict";e("8ef6")}}]);
//# sourceMappingURL=chunk-eced1b8a.ceb83b34.js.map