(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0203fe7b"],{"110d":function(t,s,e){},2383:function(t,s,e){"use strict";var a=function(){var t=this,s=t._self._c;return s("div",t._l([1,2],(function(e){return s("div",{key:e.index,staticClass:"mb-5"},[s("div",{staticClass:"loader loader-titles"}),s("div",{staticClass:"d-flex loader-item flex-wrap my-3"},t._l([1,2,3,4],(function(t){return s("div",{key:t.index,staticClass:"loader loader-card mx-3 mt-3"})})),0)])})),0)},o=[],l={name:"loadingCourses"},r=l,i=(e("f0bf"),e("0c7c")),c=Object(i["a"])(r,a,o,!1,null,"56ecbd14",null);s["a"]=c.exports},"554e":function(t,s,e){},"8a99":function(t,s,e){"use strict";e("554e")},bb17:function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t._self._c;return s("Courses")},o=[],l=function(){var t=this,s=t._self._c;return s("div",{staticStyle:{"min-height":"100vh"}},[s("div",{staticClass:"row px-4"},[s("div",{staticClass:"col-md-12 col-sm-12"},[t.loading?s("div",{staticClass:"mt-5"},[s("loadingCourses")],1):t._e(),t.all_products.length>0&&!t.loading?s("div",{staticClass:"mb-4 ml-2"},[s("h3",{staticClass:"mb-2 font-weight-normal"},[t._v("Todos los cursos")]),s("ProductsSlider",{attrs:{products:t.all_products}})],1):t._e(),t.offers.length>0&&!t.loading?s("div",{staticClass:"mb-4 ml-2"},[s("h3",{staticClass:"mb-2 font-weight-normal"},[t._v("Ofertas")]),s("ProductsSlider",{attrs:{products:t.offers}})],1):t._e()])])])},r=[],i=e("ffc9"),c=e("2383"),n={name:"Courses",components:{ProductsSlider:i["a"],loadingCourses:c["a"]},data(){return{all_products:[],loading:!0,offers:[]}},methods:{async getCourses(){var t=localStorage.getItem("id_user");const{data:s}=await this.$axios.get("/course/list-marketplace/"+t);this.all_products=s},async getOffers(){const{data:t}=await this.$axios.get("/offers/list");this.offers=t}},mounted(){this.getCourses(),this.getOffers(),this.loading=!1},created(){localStorage.setItem("showPrivateNavbar",!0),localStorage.setItem("showPublicNavbar",!1),localStorage.setItem("showPublicFooter",!1)}},d=n,u=(e("8a99"),e("0c7c")),f=Object(u["a"])(d,l,r,!1,null,null,null),m=f.exports,g={name:"Products",components:{Courses:m},created(){localStorage.setItem("mode","private"),localStorage.setItem("showPrivateNavbar",!1)}},h=g,v=Object(u["a"])(h,a,o,!1,null,null,null);s["default"]=v.exports},f0bf:function(t,s,e){"use strict";e("110d")}}]);
//# sourceMappingURL=chunk-0203fe7b.d3d5831c.js.map