(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f867037a"],{"4bd9":function(s,t,e){"use strict";e.r(t);var a=function(){var s=this,t=s._self._c;return t("div",{staticClass:"mr-5",staticStyle:{"min-height":"100vh",overflow:"hidden"}},[t("div",{staticClass:"row px-3 py-5"},[t("div",{staticClass:"col-12 col-md-4 ps-5"},[0==s.products.length?t("div",{staticClass:"text-center py-5"},[t("strong",[s._v("Aún no ha adquirido un curso")])]):s._l(s.products,(function(e){return t("div",{key:e.id,staticClass:"course-card mb-3",on:{click:function(t){return s.examList(e)}}},[t("div",{staticClass:"tarjeta-cursos"},[t("div",{staticClass:"column image-column"},[t("img",{staticClass:"img-cursos-portad",attrs:{src:e.url_portada,alt:"no image"}})]),t("div",{staticClass:"column info-column"},[t("h4",{staticClass:"course-title"},[s._v(s._s(e.title))]),t("div",{staticClass:"valoracion-curso"})])])])}))],2),t("div",{ref:"courseDetails",staticClass:"col-12 col-md-8 pe-5"},[s.waitSelection?t("div",[s._m(0)]):t("div",[t("div",{staticClass:"selected-course-details"},[t("div",{staticClass:"selected-course-card"},[t("img",{staticClass:"selected-course-img",attrs:{src:s.productSelected.url_portada,alt:"no image"}}),t("div",{staticClass:"selected-course-info"},[t("h2",[s._v(s._s(s.productSelected.title))]),"empty"!=s.exam_progress?t("p",[t("strong",[s._v("Progreso actual: ")]),s._v(s._s(s.exam_progress)+"% ")]):t("p",[t("strong",[s._v("Progreso actual: ")]),s._v("0%")]),t("v-progress-linear",{attrs:{color:"#1ae800"},model:{value:s.exam_progress,callback:function(t){s.exam_progress=t},expression:"exam_progress"}})],1)]),t("div",[s._m(1),"empty"==s.exam_progress?t("div",[s._v(" No hay exámenes para este curso ")]):t("div",[t("div",{staticClass:"py-2"},[t("table",{staticClass:"table"},[s._m(2),t("tbody",[s._l(s.exams_class,(function(e){return t("tr",{key:e.id},[e.exist?[t("td",[s._v(s._s(e.name))]),e.approved?t("td",{staticClass:"text-success"},[s._v(" Examen aprobado ")]):t("td",[t("v-btn",{staticClass:"text-white",attrs:{depressed:"",color:"#1ae800"},on:{click:function(t){return s.Testing(e)}}},[s._v("Realizar examen ")])],1)]:s._e()],2)})),s._l(s.exams_module,(function(e){return t("tr",{key:e.id},[e.exist?[t("td",[s._v(s._s(e.name))]),e.approved?t("td",{staticClass:"text-success"},[s._v(" Examen aprobado ")]):t("td",[t("v-btn",{staticClass:"text-white",attrs:{depressed:"",color:"#1ae800"},on:{click:function(t){return s.Testing(e)}}},[s._v("Realizar examen ")])],1)]:s._e()],2)})),t("tr",[s.exam_course.exist?[t("td",[s._v(s._s(s.exam_course.title))]),s.exam_course.approved?t("td",{staticClass:"text-success"},[s._v(" Examen aprobado ")]):t("td",[t("v-btn",{staticClass:"text-white",attrs:{depressed:"",color:"#1ae800"},on:{click:function(t){return s.Testing(s.exam_course)}}},[s._v("Realizar examen ")])],1)]:s._e()],2)],2)])])])])])])])])])},i=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"text-center py-10"},[t("strong",[s._v("Seleccione un curso")])])},function(){var s=this,t=s._self._c;return t("p",[t("strong",[s._v("Lista de exámenes")])])},function(){var s=this,t=s._self._c;return t("thead",[t("tr",[t("th",[s._v("Examen")]),t("th",[s._v("Estado/Acción")])])])}],r=(e("14d9"),{data(){return{products:[],waitSelection:!0,exam_course:[],exams_class:[],exams_module:[],exams_data:[],exam_progress:0,productSelected:[]}},methods:{async getcourses(){this.loading=!0;const{data:s}=await this.axios.get("/course/purchased-courses");this.products=s.data,this.loading=!1},async examList(s){this.productSelected=s,await this.axios.get("/course/exam/list?id="+s.id).then(s=>{this.exam_course=s.data.exam_course,this.exams_class=s.data.exams_class,this.exams_module=s.data.exams_module,this.exams_data=s.data,this.exam_progress=s.data.exam_progress,this.waitSelection=!1,this.$nextTick(()=>{this.$refs.courseDetails.scrollIntoView({behavior:"smooth"})})})},Testing(s){this.$router.push({name:"test",params:{id:s.exam_id},query:{class:s.slug,course:this.productSelected.id}})}},mounted(){this.getcourses()}}),c=r,o=(e("875a"),e("2877")),n=Object(o["a"])(c,a,i,!1,null,"b0ac0750",null);t["default"]=n.exports},"875a":function(s,t,e){"use strict";e("bd28")},bd28:function(s,t,e){}}]);
//# sourceMappingURL=chunk-f867037a.ce985ab8.js.map