(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21dc61"],{d373:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t._self._c;return i("div",{staticClass:"container-fluid px-5 py-3"},[i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-8"},[i("v-img",{staticClass:"grey darken-4",attrs:{src:t.item.thumbnail,alt:t.item.title,contain:"",height:"300"}}),i("v-card-title",[t._v(" "+t._s(t.item.title))]),i("v-banner",{staticClass:"py-3"},[i("v-avatar",{attrs:{slot:"icon",color:"deep-purple accent-4",size:"40"},slot:"icon"},[i("v-icon",{attrs:{icon:"mdi-lock",color:"white"}},[t._v(" mdi-lock ")])],1),t._v(" "+t._s(t.item.author.name)+" ")],1),i("p",{staticStyle:{"font-size":"1.2em"}},[t._v(t._s(t.item.description))]),i("div",{domProps:{innerHTML:t._s(t.item.content)}}),i("div",{staticClass:"row"},[i("div",{staticClass:"col-md-12"},[t._m(0),t._l(t.item.tags,(function(e,a){return i("v-chip",{key:a,staticClass:"ma-2",attrs:{"text-color":"white",color:e.color}},[t._v(" "+t._s(e.name)+" ")])}))],2)]),i("v-card-actions",[i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.heartAction()}}},[i("v-icon",[t._v("mdi-heart")])],1),i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.saveAction()}}},[i("v-icon",[t._v("mdi-bookmark")])],1),i("v-btn",{attrs:{icon:""},on:{click:function(i){return t.shareAction()}}},[i("v-icon",[t._v("mdi-share-variant")])],1)],1)],1),i("div",{staticClass:"col-md-4"},[i("h5",{staticStyle:{"font-size":"1.9em","font-weight":"700"}},[t._v("Otras noticias")]),i("hooper",{staticStyle:{height:"600px"},attrs:{vertical:!0,itemsToShow:2,autoPlay:!1,playSpeed:3e3,hoverPause:!0}},t._l(t.other_news,(function(e,a){return i("slide",{key:a},[i("v-card",[i("v-img",{staticClass:"white--text align-end bg-events-size",attrs:{src:e.thumbnail,gradient:"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)",height:"200px"}},[i("v-card-title",{staticStyle:{"word-break":"break-word","font-size":"1.1em","font-weight":"600"},domProps:{textContent:t._s(e.title)}})],1),i("v-card-actions",[i("p",{staticStyle:{"word-break":"break-word","text-transform":"uppercase"}},[t._v(" "+t._s(e.author.name)+" ")]),i("v-spacer"),i("v-btn",{attrs:{icon:""}},[i("v-icon",[t._v("mdi-share-variant")])],1)],1)],1)],1)})),1)],1)])])},s=[function(){var t=this,i=t._self._c;return i("p",[i("strong",[t._v("Tags relacionados")])])}],n=e("7e04"),o=(e("955f"),{data(){return{loading:!0,item:{author:{name:""}},slug:"",other_news:[]}},components:{Hooper:n["a"],Slide:n["b"]},methods:{heartAction(){alert("Te ha gustado la noticia")},saveAction(){alert("Se ha guardado la noticia")},shareAction(){alert("Se ha compartido la noticia")},getNew:async function(){const{data:t}=await this.$axios.get("/public/news/list/"+this.slug);this.item=t,console.log(t)},getOtherNews:async function(){const{data:t}=await this.$axios.get("/public/news/random-list");this.other_news=t},incrementView:async function(){const{data:t}=await this.$axios.post("/public/news/incrementView",{slug:this.slug});console.log(t)}},mounted(){this.getNew(),this.incrementView(),this.getOtherNews()},created(){this.slug=this.$route.params.slug}}),c=o,r=e("2877"),l=Object(r["a"])(c,a,s,!1,null,null,null);i["default"]=l.exports}}]);
//# sourceMappingURL=chunk-2d21dc61.515d672b.js.map