(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c1615"],{4696:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t._self._c;return e("div")},s=[],r=(a("14d9"),{data(){return{}},methods:{async start(){var t=JSON.parse(this.$route.params.value);const e={username:t[0],password:t[1]};var a=t[5];try{const{status:o,data:s}=await this.axios.post("/auth/redirect",e);if(200===o){const{data:e}=await s,{access_token:o,user:r}=await e;localStorage.setItem("rol_user",r.roles[0].id),localStorage.setItem("id_user",r.id),localStorage.setItem("access_token",o),localStorage.setItem("name_user",r.name),localStorage.setItem("email_user",r.email),localStorage.setItem("mode","private"),localStorage.setItem("showPrivateNavbar",!0),localStorage.setItem("showPublicNavbar",!1),localStorage.setItem("showPublicFooter",!1),localStorage.setItem("id_account_type",r.id_account_type),"course_intro"==t[2]?this.$router.push(`/producto/${t[3]}/${t[4]}`):"purchased_courses"==t[2]?this.$router.push("/mis-cursos/"):"preview"==t[2]&&(this.$router.push("/buy-cursos/"+a),setTimeout(this.myFunction,2e3))}}catch(o){console.log(o)}},myFunction(){window.location.reload(!0)}},mounted(){this.start()}}),c=r,u=a("2877"),i=Object(u["a"])(c,o,s,!1,null,null,null);e["default"]=i.exports}}]);
//# sourceMappingURL=chunk-2d0c1615.b943ca66.js.map