(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d01d5"],{6731:function(e,t,a){"use strict";a.r(t);a("14d9");var s,o,r={data(){return{}},methods:{async start(){var e=JSON.parse(this.$route.params.value);const t={email:e[0],password:e[1]};try{const{status:s,data:o}=await this.$axios.post("/public/auth/login/redirect",t);if(200===s){const{data:t}=await o,{access_token:s,user:r}=await t;if(localStorage.setItem("id_user",r.id),localStorage.setItem("access_token",s),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),"course_intro"==e[2])this.$router.push(`/producto/${e[3]}/${e[4]}`);else if("purchased_courses"==e[2])this.$router.push("/mis-cursos/");else if("preview"==e[2]){var a="preview";this.$router.push(`/mode/${a}/${e[3]}/clase/${e[4]}`)}}}catch(s){console.log(s),this.showAlert()}}},mounted(){this.start()}},l=r,c=a("2877"),i=Object(c["a"])(l,s,o,!1,null,null,null);t["default"]=i.exports}}]);
//# sourceMappingURL=chunk-2d0d01d5.142a5ba1.js.map