Files
red_de_investigacion_front/dist/js/app.77018f06.js
T
2020-01-21 16:09:01 -06:00

2 lines
108 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(t){function e(e){for(var o,r,i=e[0],c=e[1],l=e[2],u=0,p=[];u<i.length;u++)r=i[u],Object.prototype.hasOwnProperty.call(n,r)&&n[r]&&p.push(n[r][0]),n[r]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(t[o]=c[o]);d&&d(e);while(p.length)p.shift()();return s.push.apply(s,l||[]),a()}function a(){for(var t,e=0;e<s.length;e++){for(var a=s[e],o=!0,i=1;i<a.length;i++){var c=a[i];0!==n[c]&&(o=!1)}o&&(s.splice(e--,1),t=r(r.s=a[0]))}return t}var o={},n={app:0},s=[];function r(e){if(o[e])return o[e].exports;var a=o[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=t,r.c=o,r.d=function(t,e,a){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(a,o,function(e){return t[e]}.bind(null,o));return a},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],c=i.push.bind(i);i.push=e,i=i.slice();for(var l=0;l<i.length;l++)e(i[l]);var d=c;s.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"02d4":function(t,e,a){t.exports=a.p+"img/UNAM.e51a83fb.png"},"034f":function(t,e,a){"use strict";var o=a("85ec"),n=a.n(o);n.a},"18fe":function(t,e,a){},"2a52":function(t,e,a){},3252:function(t,e,a){"use strict";var o=a("69b2"),n=a.n(o);n.a},"328e":function(t,e,a){},"35e0":function(t,e,a){t.exports=a.p+"img/FESAcatlan.a48ed338.png"},"38f7":function(t,e,a){"use strict";var o=a("8293"),n=a.n(o);n.a},"3ebd":function(t,e,a){"use strict";var o=a("83d2"),n=a.n(o);n.a},"3f85":function(t,e,a){"use strict";var o=a("8b79"),n=a.n(o);n.a},"56d7":function(t,e,a){"use strict";a.r(e);a("e260"),a("e6cf"),a("cca6"),a("a79d");var o=a("2b0e"),n=a("5f5b"),s=(a("f9e3"),a("2dd8"),a("8c4f")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("Header"),a("router-view"),a("Footer")],1)},i=[],c=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},l=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("header",{staticClass:"Azul-puma py-3"},[o("header",{staticClass:"container"},[o("div",{staticClass:"row py-3"},[o("div",{staticClass:"col d-none d-md-block",attrs:{href:"https://www.unam.mx/"}},[o("img",{attrs:{src:a("02d4"),alt:"logo Unam"}})]),o("div",{staticClass:"col d-flex justify-content-sm-center justify-content-lg-end",attrs:{href:"https://www.acatlan.unam.mx/"}},[o("img",{attrs:{src:a("35e0"),height:"70",alt:"Ediciones Acatlán"}})])])])])}],d={},u=d,p=(a("e2b6"),a("2877")),_=Object(p["a"])(u,c,l,!1,null,null,null),m=_.exports,v=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("footer",{staticClass:"container-fluid Azul-puma footer py-3 "},[a("p",{staticClass:"mb-0 "},[t._v("Hecho en México, todos los derechos reservados 2020")]),a("p",{staticClass:"my-0 "},[t._v("Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente ")]),a("p",[t._v("completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.")])])}],h={},g=h,b=(a("3f85"),Object(p["a"])(g,v,f,!1,null,null,null)),C=b.exports,w={name:"app",components:{Header:m,Footer:C}},x=w,y=(a("034f"),Object(p["a"])(x,r,i,!1,null,null,null)),k=y.exports,R=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"admin-login"},[a("div",[a("h1",[t._v("Red de Investigación")]),a("div",{staticClass:"conteiner pad"},[a("div",{staticClass:"admin-campos"},[a("i",{staticClass:"fas fa-user"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.usuario,expression:"usuario"}],attrs:{type:"email",placeholder:"Usuario"},domProps:{value:t.usuario},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.entrar()},input:function(e){e.target.composing||(t.usuario=e.target.value)}}})]),a("div",{staticClass:"admin-campos"},[a("i",{staticClass:"fas fa-lock"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{type:"password",placeholder:"Contraseña"},domProps:{value:t.password},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.entrar()},input:function(e){e.target.composing||(t.password=e.target.value)}}})]),a("div",{staticClass:"entrar"},[t.validar_ambos()?a("button",{staticClass:"button",attrs:{id:"boton_entrar"},on:{click:function(e){return t.entrar()}}},[t._v("Entrar")]):a("p",{staticClass:"botton_falso"},[t._v("Entrar")])])])])])},P=[],N=(a("d3b7"),a("96cf"),a("bc3a")),E=a.n(N),S=a("a078"),j=a.n(S),$=a("1940"),A=a.n($),I={data:function(){return{usuario:"",password:"",error:!1,mal:null,resp:null}},methods:{malo:function(){return this.error},validar_ambos:function(){return""!=this.usuario&&""!=this.password},entrar:function(){var t=this,e={usuario:this.usuario,password:this.password,error:!1};E.a.post("".concat(j.a.api,"/loggin"),e).then((function(e){return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if(t.resp=e.data,0!=e.data.err){a.next=8;break}return a.next=4,regeneratorRuntime.awrap(A()("Bienvenido ".concat(t.usuario),"","success"));case 4:window.localStorage.setItem("id_usuario",e.data.id_usuario),t.$router.push("/menu"),a.next=11;break;case 8:return t.error=!0,a.next=11,regeneratorRuntime.awrap(A()(" Usuario o Contraseña incorrecta.","","error"));case 11:case"end":return a.stop()}}))})).catch((function(e){A()(" Usuario o Contraseña incorrecta.","","error"),t.resp=e,t.error=!0}))}},beforeCreate:function(){localStorage.clear()}},O=I,M=(a("3252"),Object(p["a"])(O,R,P,!1,null,"2422876a",null)),L=M.exports,T=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container "},[t._m(0),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"admin-campos"},[a("i",{staticClass:"fas fa-user"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre,expression:"nombre"}],attrs:{type:"nombre",placeholder:"Nombre del proyecto o profesor"},domProps:{value:t.nombre},on:{input:function(e){e.target.composing||(t.nombre=e.target.value)}}})])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col cuadro"},["NAN"==t.data_table[0].nombre_proyecto?a("div",{staticClass:"spinner-border alt",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])]):0==t.buscar_nombre.length?a("h2",[t._v("No se encontro")]):a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(1),a("tbody",t._l(t.buscar_nombre,(function(e){return a("tr",{key:e.id_proyecto,staticClass:"renglon",on:{click:function(a){t.id_proyecto_select=e.id_proyecto,t.nombre_proyecto=e.nombre_proyecto,t.nombre_responsable=e.nombre_responsable}}},[a("td",{attrs:{"data-toggle":"modal","data-target":"#exampleModalCenter"},domProps:{textContent:t._s(e.nombre_proyecto)}}),a("td",{attrs:{"data-toggle":"modal","data-target":"#exampleModalCenter"},domProps:{textContent:t._s(e.nombre_responsable)}})])})),0)])])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"modal fade",attrs:{id:"exampleModalCenter",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalCenterTitle","aria-hidden":"true"}},[a("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("h5",{staticClass:"modal-title"},[t._v(t._s(t.nombre_proyecto)+" ")])])]),t._m(2)]),a("div",{staticClass:"modal-body"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{staticClass:"btn btn-outline-success",attrs:{type:"button"},on:{click:function(e){return t.ver_datos()}}},[t._v("Ver datos")])]),a("div",{staticClass:"col"},[a("button",{staticClass:"btn btn-outline-info",attrs:{type:"button"},on:{click:function(e){return t.siguiente()}}},[t._v("Descargar pdf")])]),a("div",{staticClass:"col"},[a("button",{staticClass:"btn btn-outline-warning",attrs:{type:"button"},on:{click:function(e){return t.mod()}}},[t._v("Modificar datos")])]),a("div",{staticClass:"col"},[a("button",{staticClass:"btn btn-outline-danger",attrs:{type:"button"},on:{click:function(e){return t.eliminar()}}},[t._v("Eliminar proyecto")])])])])])])])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir separar",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},z=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col distancia"},[a("h1",[t._v("Buscar proyecto")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("thead",{staticClass:"thead-dark"},[a("tr",[a("th",{attrs:{scope:"col"}},[t._v("Nombre del proyecto")]),a("th",{attrs:{scope:"col"}},[t._v("Profesor responsable")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[a("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])])}],q=(a("99af"),a("4de4"),a("caad"),a("2532"),{data:function(){return{nombre:"",id_proyecto_select:null,data_table:[{id_proyecto:1,nombre_proyecto:"NAN",nombre_responsable:"Lucía Elena Acosta Ugalde"}],nombre_responsable:null,nombre_proyecto:null}},methods:{mod:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(window.localStorage.setItem("id_proyecto_select",this.id_proyecto_select));case 2:return t.next=4,regeneratorRuntime.awrap(this.$router.push("/modificar"));case 4:return t.next=6,regeneratorRuntime.awrap(document.location.reload(!0));case 6:case"end":return t.stop()}}),null,this)},ver_datos:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(window.localStorage.setItem("id_proyecto_select",this.id_proyecto_select));case 2:return t.next=4,regeneratorRuntime.awrap(this.$router.push("/ver_datos"));case 4:return t.next=6,regeneratorRuntime.awrap(document.location.reload(!0));case 6:case"end":return t.stop()}}),null,this)},salir:function(){this.$router.push("/menu")},eliminar:function(){var t=this;A()({title:"¿Seguro que quieres eliminar el proyecto?",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!e){o.next=4;break}return a={id_proyecto:t.id_proyecto_select},o.next=4,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/eliminar_proyecto"),a).then((function(e){return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if(t.resp=e,0!=e.data.err){a.next=8;break}return a.next=4,regeneratorRuntime.awrap(A()("Se ha eliminado El proyecto","","success"));case 4:return a.next=6,regeneratorRuntime.awrap(document.location.reload(!0));case 6:a.next=9;break;case 8:A()("Algo sucedio mal","".concat(e.data.msj),"error");case 9:case"end":return a.stop()}}))})).catch((function(e){t.resp=e,A()("Algo sucedio mal","".concat(e),"error")})));case 4:case"end":return o.stop()}}))}))},descarga:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(A()("Exito","","success"));case 2:return t.next=4,regeneratorRuntime.awrap(window.open("".concat(j.a.api,"/descargar_pdf?id_proyecto=").concat(this.id_proyecto_select)));case 4:case"end":return t.stop()}}),null,this)},siguiente:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/get_pdf?id_proyecto=").concat(this.id_proyecto_select)).then((function(){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(t.descarga());case 2:return e.abrupt("return");case 3:case"end":return e.stop()}}))})).catch((function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(A()("Algo sucedio mal get pedf","".concat(t),"error"));case 2:case"end":return e.stop()}}))})));case 2:case"end":return e.stop()}}),null,this)},traer_datos:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/traer_proyectos")).then((function(e){t.data_table=e.data.data})));case 2:case"end":return e.stop()}}))}},created:function(){this.traer_datos()},computed:{buscar_nombre:function(){var t=this.nombre.toLowerCase();return this.data_table.filter((function(e){return e.nombre_responsable.toLowerCase().includes(t)||e.nombre_proyecto.toLowerCase().includes(t)}))}}}),D=q,F=(a("3ebd"),Object(p["a"])(D,T,z,!1,null,"5340247e",null)),G=F.exports,U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container "},[1==t.espera?a("div",{staticClass:"container todo "},[t._m(0),t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),t._m(6),t._m(7)]):a("div",{staticClass:"container "},[t._m(8),a("h3",[t._v("Nombre del responsable")]),a("div",{staticClass:"row tabla cuadro_abajo_boton"},[a("div",{staticClass:"col-md-6 col-xs-12"},[t.elegido()?a("div",{staticClass:"admin-campos"},[a("i",{staticClass:"fas fa-user"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre,expression:"nombre"}],attrs:{type:"nombre",placeholder:"Nombre"},domProps:{value:t.nombre},on:{input:function(e){e.target.composing||(t.nombre=e.target.value)}}})]):a("div",{staticClass:"alert alert-success alert-dismissible caja_nombre"},[a("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(e){t.nombre_elegido=!1,t.profesor=""}}},[t._v("×")]),a("strong",[t._v(t._s(t.profesor))]),t._v(" . ")])]),a("div",{staticClass:"col-md-6 col-xs-12"},[1==t.lista[0].Rfc?a("div",{staticClass:"spinner-border alt",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])]):0==t.buscar_profesor.length?a("p",[a("font",{attrs:{size:"6"}},[t._v("No se encontro")])],1):a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(9),t._l(t.buscar_profesor,(function(e){return a("tr",{key:e.Rfc},[t.profesor==e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.verificar(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno,e.Rfc)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.verificar(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno,e.Rfc)}}})])}))],2)])])]),a("h3",{staticClass:"separar_titulo"},[t._v("Datos del proyecto")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-6 separar_caja"},[a("form",[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"formGroupExampleInput"}},[t._v("Nombre del Proyecto")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre_proyecto,expression:"nombre_proyecto"}],staticClass:"form-control letra_caja",attrs:{type:"text",id:"formGroupExampleInput",maxlength:295},domProps:{value:t.nombre_proyecto},on:{input:function(e){e.target.composing||(t.nombre_proyecto=e.target.value)}}})])])]),a("div",{staticClass:"col-6"},[a("form",[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"formGroupExampleInput2"}},[t._v("Disciplina")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.disciplina,expression:"disciplina"}],staticClass:"form-control letra_caja",attrs:{type:"text",id:"formGroupExampleInput2",maxlength:245},domProps:{value:t.disciplina},on:{input:function(e){e.target.composing||(t.disciplina=e.target.value)}}})])])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col-md-6"},[a("table",{staticClass:"table"},[t._m(10),t._l(t.campos_de_conocimiento,(function(e){return a("tr",{key:e.id},[t.verificar_selec(e.id_campo)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_campo(e.id_campo)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_campo(e.id_campo)}}})])}))],2)]),a("div",{staticClass:"col"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(11),t._l(t.lineas_de_investigacion,(function(e){return a("tr",{key:e.id},[t.verificar_selec_linea(e.id_linea_investigacion)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_linea(e.id_linea_investigacion)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_linea(e.id_linea_investigacion)}}})])}))],2)])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"objetivo_general"}},[t._v("Objetivo General")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.objetivo_general,expression:"objetivo_general"}],staticClass:"form-control",attrs:{id:"objetivo_general",rows:"5",name:"text",placeholder:"Objetivo General",maxlength:795},domProps:{value:t.objetivo_general},on:{input:function(e){e.target.composing||(t.objetivo_general=e.target.value)}}})])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col "},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"objetivo_particular"}},[t._v("Objetivos Particulares")]),t._l(t.inputs,(function(e,o){return a("div",{key:o,staticClass:"form-group",attrs:{id:"objetivo_particular"}},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.objetivo_texto,expression:"inp.objetivo_texto"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Objetivo Particular",maxlength:895},domProps:{value:e.objetivo_texto},on:{input:function(a){a.target.composing||t.$set(e,"objetivo_texto",a.target.value)}}})])}))],2)])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.inputs.length>3,expression:" inputs.length > 3"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add()}}},[t._v("+")])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"hipotesis"}},[t._v("Hipotesis del proyecto")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.hipotesis,expression:"hipotesis"}],staticClass:"form-control",attrs:{rows:"5",id:"hipotesis",name:"text",placeholder:"Hipotesis (en su caso)",maxlength:795},domProps:{value:t.hipotesis},on:{input:function(e){e.target.composing||(t.hipotesis=e.target.value)}}})])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"resumen"}},[t._v("Resumen del proyecto")]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.resumen,expression:"resumen"}],staticClass:"form-control",attrs:{rows:"5",id:"resuemn",name:"text",placeholder:"Resumen del proyecto de investigación",maxlength:1450},domProps:{value:t.resumen},on:{input:function(e){e.target.composing||(t.resumen=e.target.value)}}})])])]),t._m(12),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"fecha_inicio"}},[t._v("Fecha de inicio")]),a("datepicker",{staticClass:"center",attrs:{id:"fecha_inicio",language:t.es,name:"fecha_inicio"},model:{value:t.fecha_inicio,callback:function(e){t.fecha_inicio=e},expression:"fecha_inicio"}})],1)]),a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"fecha_fin"}},[t._v("Fecha termino")]),a("datepicker",{staticClass:"center",attrs:{id:"fecha_fin",language:t.es,name:"fecha_final"},model:{value:t.fecha_final,callback:function(e){t.fecha_final=e},expression:"fecha_final"}})],1),a("p",{staticClass:"error"},[t._v(t._s(t.validar_fecha()))])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col-md-6 separacion"},[a("table",{staticClass:"table"},[t._m(13),t._l(t.estado_avance,(function(e){return a("tr",{key:e.avance},[t.check_estado(e.avance)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.avance)},on:{click:function(a){return t.verificar_estado_avance(e.avance)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.avance)},on:{click:function(a){return t.verificar_estado_avance(e.avance)}}})])}))],2)]),a("div",{staticClass:"col"},[a("table",{staticClass:"table"},[t._m(14),t._l(t.duracion,(function(e){return a("tr",{key:e.tiempo},[t.check_duracion(e.tiempo)?a("td",{staticClass:"renglon select_verde",domProps:{textContent:t._s(e.tiempo)},on:{click:function(a){return t.verificar_duracion(e.tiempo)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.tiempo)},on:{click:function(a){return t.verificar_duracion(e.tiempo)}}})])}))],2)])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"avance"}},[t._v("Avance del proyecto en %")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.avance,expression:"avance"}],staticClass:"cuadro top porciento",attrs:{id:"avance",placeholder:"Avance %",oninput:"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);",type:"number",maxlength:"3"},domProps:{value:t.avance},on:{input:function(e){e.target.composing||(t.avance=e.target.value)}}}),a("p",{staticClass:"error"},[t._v(t._s(t.validar_avance()))])])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(15),t._l(t.financiaminetos,(function(e){return a("tr",{key:e.nombre},[t.verificar_financiamiento(e.nombre)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_financiamiento(e.nombre)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_financiamiento(e.nombre)}}})])}))],2)])]),a("div",{staticClass:"col separacion"},[a("div",{staticClass:"form-group "},[a("label",{staticClass:"letra_titulo",attrs:{for:"numero"}},[t._v("Numero de registro")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.numero_registro,expression:"numero_registro"}],staticClass:"cuadro_registro",attrs:{id:"numero",type:"text",placeholder:"Numero de registro"},domProps:{value:t.numero_registro},on:{input:function(e){e.target.composing||(t.numero_registro=e.target.value)}}}),a("label",{staticClass:"letra_titulo",attrs:{for:"presupuesto"}},[t._v("Presupuesto Asignado ($00.00MXN)")]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.presupuesto,expression:"presupuesto"}],staticClass:"ultimo",attrs:{type:"number",placeholder:"Presupuesto Asignado ($00.00MXN)"},domProps:{value:t.presupuesto},on:{input:function(e){e.target.composing||(t.presupuesto=e.target.value)}}})]),t.chack_presupuesto()?a("p",{staticClass:"error"},[t._v("El presupuesto solo puede tener numeros y a lo más un caracter punto '.'")]):t._e()])]),a("h3",{staticClass:"separacion"},[t._v("Entidades Participandes (además de la FES Acatlán)")]),a("div",{attrs:{clas:"row"}},[a("div",{staticClass:"col"},t._l(t.entidades_seleccionadas,(function(e){return a("div",{key:e.id_entidad,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.nombre))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades,(function(o){return a("div",{key:o.id_entidades},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.nombre=o.tipo,e.id_entidad=o.id_entidad}}},[t._v(t._s(o.tipo))])])})),0)]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.nombre_de_entidad,expression:"entidad.nombre_de_entidad"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre de la entidad","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre_de_entidad},on:{input:function(a){a.target.composing||t.$set(e,"nombre_de_entidad",a.target.value)}}})])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.entidades_seleccionadas.length>1,expression:" entidades_seleccionadas.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_entidades()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_entidades()}}},[t._v("+")])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col separacion"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(16),t._l(t.productos,(function(e){return a("tr",{key:e.nombre},[t.verificar_producto(e.id_producto)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_producto(e.id_producto)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_producto(e.id_producto)}}})])}))],2)])])]),a("h3",{staticClass:"separacion"},[t._v("Profesores participantes internos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6 col-xs-12"},t._l(t.profesores_internos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),0==e.use?a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre_buscar[e.n],expression:"nombre_buscar[item.n]"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del profesor interno ","aria-label":"Text input with dropdown button"},domProps:{value:t.nombre_buscar[e.n]},on:{click:function(a){t.borrar(),t.concurrent=e.n},input:function(a){a.target.composing||t.$set(t.nombre_buscar,e.n,a.target.value)}}}):a("div",{staticClass:" form-control alert alert-success alert-dismissible caja_nombre"},[a("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(t){e.use=!1,e.nombre=""}}},[t._v("×")]),a("strong",[t._v(t._s(e.nombre))]),t._v(" . ")])])])})),0),1==t.lista[0].Rfc?a("div",{staticClass:"spinner-border alt alado",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])]):a("div",{staticClass:"col-md-6 col-xs-12"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(17),0==t.filtro.length?a("p",[a("font",{attrs:{size:"6"}},[t._v("No se encontro")])],1):t._l(t.filtro,(function(e){return a("tr",{key:e.Rfc},[a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.poner_nombre(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)}}})])}))],2)])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-6"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.profesores_internos.length>1,expression:" profesores_internos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_profesor_interno()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_profesor_interno()}}},[t._v("+")])])]),a("h3",{staticClass:"separacion"},[t._v("Profesores participantes externos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.profesores_externos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del profesor externo","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}}),a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.entidad))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades_persona,(function(o){return a("div",{key:o.id_entidad},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.entidad=o.nombre_entidad,e.id_entidad=o.id_pro_entidad}}},[t._v(t._s(o.nombre_entidad))])])})),0)])])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.profesores_externos.length>1,expression:" profesores_externos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_profesor_externo()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_profesor_externo()}}},[t._v("+")])])]),a("h3",{staticClass:"separacion"},[t._v("Alumnos participantes internos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.alumnos_internos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del alumno interno","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}})])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.alumnos_internos.length>1,expression:" alumnos_internos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_alumnos_internos()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_alumnos_internos()}}},[t._v("+")])])]),a("h3",{staticClass:"separacion"},[t._v("Alumnos participantes externos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.alumnos_externos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del alumno externo","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}}),a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.entidad))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades_persona,(function(o){return a("div",{key:o.id_entidad},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.entidad=o.nombre_entidad,e.id_entidad=o.id_pro_entidad}}},[t._v(t._s(o.nombre_entidad))])])})),0)])])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.alumnos_externos.length>1,expression:" alumnos_externos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_alumnos_externos()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_alumnos_externos()}}},[t._v("+")])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button",on:{click:function(e){return t.registrar()}}},[t._v(" Guardar ")])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])])},H=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-primary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-secondary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-success",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-danger",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-warning",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-info",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-dark",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("h1",[t._v("Modificar datos del proyecto")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Nombre del Profesors ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Campos de Conocimiento ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Lineas de Investigación ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{attrs:{id:"calendar"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Estado de Avance ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Duración ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Financiamiento del proyecto ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Producto(s) ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Nombre del Profesor ")])])}],B=(a("4160"),a("a434"),a("159b"),a("2430")),X=a("fa33"),Y={data:function(){return{id_proyecto:window.localStorage.getItem("id_proyecto_select"),datos:null,nombre:"",pop:"",nombre_elegido:!0,profesor:"",rfc:null,lista:[{Nombre:"-",Rfc:1}],campos_de_conocimiento:[],campos_de_conocimiento_seleccionado:[],lineas_de_investigacion:[],lineas_de_investigacion_seleccionado:[],objetivos_particulares:[],p:"",name:"",inputs:[{name:""},{name:""},{name:""}],counter:3,nombre_proyecto:"",disciplina:"",objetivo_general:"",resp:null,error:!1,hipotesis:"",resumen:"",fecha_inicio:null,fecha_final:null,en:B["en"],es:B["es"],estado_avance:[{avance:"Nuevo"},{avance:"En Desarrollo"},{avance:"Concluido"},{avance:"Suspendido"}],duracion:[{tiempo:"1 año"},{tiempo:"2 años"},{tiempo:"3 años"},{tiempo:"Más de 3 años"}],estado_elegido:"",duracion_elegido:"",avance:null,av:!1,fe:!1,financiaminetos:[{nombre:"PAPIME"},{nombre:"PAPIIT"},{nombre:"PAIDI"},{nombre:"CONACYT"},{nombre:"Otras Universidades o Instituciones Nacionales"},{nombre:"Otras Universidades o Instituciones Internacionales"},{nombre:"ONG'S o Fundaciones Nacionales"},{nombre:"Sector Privado"},{nombre:"Investigación dentro de su plaza"}],entidades:[],productos:[],financiamiento_seleccionado:"",numero_registro:"",presupuesto:null,entidades_seleccionadas:[{id_entidad:null,nombre:"Seleccione la Entidad",nombre_de_entidad:""}],productos_seleccionados:[],con:1,type:null,entidades_persona:[],profesores_internos:[{nombre:"",participacion:"Tipo de participación",n:1,use:!1}],profesores_externos:[{nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null}],alumnos_internos:[{nombre:"",participacion:"Tipo de participación"}],alumnos_externos:[{nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null}],link:"",concurrent:0,nombre_buscar:[],espera:!1}},methods:{registrar:function(){var t=this;this.espera=!0;var e={datos_proyecto:{id_proyecto:this.id_proyecto,nombre_proyecto:this.nombre_proyecto,rfc:this.rfc,nombre_responsable:this.profesor,disciplina:this.disciplina,objetivo_general:this.objetivo_general,hipotesis:this.hipotesis,resumen:this.resumen,fecha_inicio:this.fecha_inicio,fecha_fin:this.fecha_final,estado_avance:this.estado_elegido,avance:this.avance,duracion:this.duracion_elegido,financiamiento:this.financiamiento_seleccionado,numero_registro:this.numero_registro,presupuesto:this.presupuesto},lineas:{linea_investigacion:this.lineas_de_investigacion_seleccionado,campo_conocimiento:this.campos_de_conocimiento_seleccionado,objetivo_particular:this.inputs,producto:this.productos_seleccionados,entidades:this.entidades_seleccionadas,profesores_internos:this.profesores_internos,profesores_externos:this.profesores_externos,alumnos_internos:this.alumnos_internos,alumnos_externos:this.alumnos_externos}};console.log(e),E.a.post("".concat(j.a.api,"/actualizar"),e).then((function(){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return t.espera=!1,e.next=3,regeneratorRuntime.awrap(A()("listo"," ","success"));case 3:t.$router.push("/buscar");case 4:case"end":return e.stop()}}))}))},salir:function(){this.$router.push("/buscar")},verificar:function(t,e){this.profesor==t?(this.profesor="",this.nombre_elegido=!1):(this.profesor=t,this.rfc=e,this.nombre_elegido=!0)},elegido:function(){return 1!=this.nombre_elegido},datos_proyecto:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/datos_modificar?id_proyecto=").concat(this.id_proyecto)).then((function(e){t.datos=e.data.data})));case 2:case"end":return e.stop()}}),null,this)},verificar_selec:function(t){var e=0;return this.campos_de_conocimiento_seleccionado.forEach((function(a){a==t&&(e=1)})),1==e},seleccionar_campo:function(t){var e=0,a=0;this.campos_de_conocimiento_seleccionado.forEach((function(o){o==t&&(e=1),0==e&&a++})),0==e?this.campos_de_conocimiento_seleccionado.push(t):this.campos_de_conocimiento_seleccionado.splice(a,1)},verificar_selec_linea:function(t){var e=0;return this.lineas_de_investigacion_seleccionado.forEach((function(a){a==t&&(e=1)})),1==e},seleccionar_linea:function(t){var e=0,a=0;this.lineas_de_investigacion_seleccionado.forEach((function(o){o==t&&(e=1),0==e&&a++})),0==e?this.lineas_de_investigacion_seleccionado.push(t):this.lineas_de_investigacion_seleccionado.splice(a,1)},traer_campos_de_conocimiento:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_campos")).then((function(e){t.p=e,t.campos_de_conocimiento=e.data.campos}))},traer_lineas_de_investigacion:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_lineas")).then((function(e){t.lineas_de_investigacion=e.data.lineas}))},add:function(){this.inputs.push({objetivo_texto:""})},remove:function(){this.inputs.splice(this.inputs.length-1,1)},validar_fecha:function(){return this.fecha_inicio>=this.fecha_final&&null!=this.fecha_inicio&&null!=this.fecha_final?(this.fe=!1,"La fecha de final tiene que ser mayor que la final"):void(this.fe=!0)},verificar_estado_avance:function(t){this.estado_elegido==t?this.estado_elegido="":this.estado_elegido=t},check_estado:function(t){return this.estado_elegido==t},check_duracion:function(t){return this.duracion_elegido==t},verificar_duracion:function(t){this.duracion_elegido==t?this.duracion_elegido="":this.duracion_elegido=t},validar_avance:function(){return this.avance>100?(this.av=!1,"El porcentage de avance tiene que estar en el intervalo [1-100]"):(null!=this.avance&&(this.av=!0),"")},seleccionar_financiamiento:function(t){t==this.financiamiento_seleccionado?this.financiamiento_seleccionado="":this.financiamiento_seleccionado=t},chack_presupuesto:function(){if(""==this.presupuesto)return!0},add_entidades:function(){this.entidades_seleccionadas.push({id_entidad:null,nombre:"Seleccione la Entidad",nombre_de_entidad:""})},remove_entidades:function(){this.entidades_seleccionadas.splice(this.entidades_seleccionadas.length-1,1)},seleccionar_producto:function(t){var e=0,a=0;this.productos_seleccionados.forEach((function(o){o==t&&(e=1),0==e&&a++})),1==e?this.productos_seleccionados.splice(a,1):this.productos_seleccionados.push(t)},verificar_producto:function(t){var e=!1;return this.productos_seleccionados.forEach((function(a){a==t&&(e=!0)})),e},verificar_financiamiento:function(t){return this.financiamiento_seleccionado==t},traer_entidades:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_entidades")).then((function(e){t.entidades=e.data.entidades}))},traer_entidades_persona:function(){var t=this,e={id_proyecto:this.id_proyecto};return E.a.post("".concat(j.a.api,"/traer_entidades_proyecto"),e).then((function(e){t.entidades_persona=e.data.entidad_proyecto})).catch(),this.entidades_persona},buscar:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(e){t=e.data.data})).catch((function(){e.lista="asddas"})));case 2:return a.abrupt("return",t);case 3:case"end":return a.stop()}}))},traer_productos:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_productos")).then((function(e){t.productos=e.data.productos}))},poner_nombre:function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:0!=this.concurrent&&(this.profesores_internos[this.concurrent-1].nombre=t,this.profesores_internos[this.concurrent-1].use=!0);case 1:case"end":return e.stop()}}),null,this)},borrar:function(){for(var t=0;t<this.nombre_buscar.length;t++)this.nombre_buscar[t]=""},add_alumnos_externos:function(){this.alumnos_externos.push({nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null})},remove_alumnos_externos:function(){this.alumnos_externos.splice(this.alumnos_externos.length-1,1)},add_alumnos_internos:function(){this.alumnos_internos.push({nombre:"",participacion:"Tipo de participación"})},remove_alumnos_internos:function(){this.alumnos_internos.splice(this.alumnos_internos.length-1,1)},add_profesor_externo:function(){this.profesores_externos.push({nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null})},remove_profesor_externo:function(){this.profesores_externos.splice(this.profesores_externos.length-1,1)},add_profesor_interno:function(){this.nombre_buscar.push(""),this.profesores_internos.push({nombre:"",participacion:"Tipo de participación",n:this.profesores_internos.length+1,use:!1})},remove_profesor_interno:function(){0==this.profesores_internos[this.profesores_internos.length-1].use?(this.concurrent==this.profesores_internos.length&&this.concurrent--,this.nombre_buscar.splice(this.nombre_buscar.length-1,1),this.profesores_internos.splice(this.profesores_internos.length-1,1)):A()({title:"Tienes que borrar al profesor ya seleccionado",icon:"warning"})}},created:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(t){e.lista=t.data.data,console.log(e.lista)})).catch((function(){e.lista="No existe"})),a.next=3,regeneratorRuntime.awrap(window.localStorage.getItem("id_proyecto_select"));case 3:return this.id_proyecto=a.sent,a.next=6,regeneratorRuntime.awrap(this.datos_proyecto());case 6:for(this.traer_entidades(),this.traer_productos(),this.traer_campos_de_conocimiento(),this.traer_lineas_de_investigacion(),this.traer_entidades_persona(),console.log(this.datos.proyecto[0]),this.profesor=this.datos.proyecto[0].nombre_responsable,this.rfc=this.datos.proyecto[0].rfc_responsable,this.nombre_proyecto=this.datos.proyecto[0].nombre_proyecto,this.disciplina=this.datos.proyecto[0].disciplina,this.objetivo_general=this.datos.proyecto[0].objetivo_general,this.campos_de_conocimiento_seleccionado=this.datos.campo_proyecto,this.lineas_de_investigacion_seleccionado=this.datos.linea_investigacion,this.inputs=this.datos.objetivo,this.hipotesis=this.datos.proyecto[0].hipotesis,this.resumen=this.datos.proyecto[0].resumen,this.fecha_inicio=this.datos.proyecto[0].fecha_inicio,this.fecha_final=this.datos.proyecto[0].fecha_final,this.estado_elegido=this.datos.proyecto[0].estado_avance,this.duracion_elegido=this.datos.proyecto[0].duracion,this.avance=this.datos.proyecto[0].avance,this.financiamiento_seleccionado=this.datos.proyecto[0].financiamiento,this.numero_registro=this.datos.proyecto[0].numero_registro,this.presupuesto=this.datos.proyecto[0].presupuesto,this.entidades_seleccionadas=this.datos.entidad,this.productos_seleccionados=this.datos.producto,this.profesores_internos=this.datos.profesores_internos,this.profesores_externos=this.datos.profesores_externos,this.alumnos_internos=this.datos.alumnos_internos,this.alumnos_externos=this.datos.alumnos_externos,t=0;t<=this.profesores_internos.length;t++)this.nombre_buscar.push("");case 37:case"end":return a.stop()}}),null,this)},computed:{buscar_profesor:function(){var t=this;return this.lista.filter((function(e){return(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno).toLowerCase().includes(t.nombre.toLowerCase())}))},filtro:function(){var t=this;return this.lista.filter((function(e){return(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno).toLowerCase().includes(t.nombre_buscar[t.concurrent].toLowerCase())}))}},components:{Datepicker:X["a"]}},J=Y,V=(a("5f30"),Object(p["a"])(J,U,H,!1,null,"329f2aed",null)),K=V.exports,Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"container"},[t._m(0),a("dl",{staticClass:"row"},[a("dt",{staticClass:"col-md-7 text-left"},[t._v("Nombre del proyecto")]),a("dd",{staticClass:"col-md-5 text-left"},[t._v(t._s(t.datos.proyecto[0].nombre_proyecto))])]),a("dl",{staticClass:"row"},[a("dt",{staticClass:"col-md-7 text-left"},[t._v("Nombre del profesor responsable")]),a("dd",{staticClass:"col-md-5 text-left"},[t._v(t._s(t.datos.proyecto[0].nombre_responsable))])]),a("dl",{staticClass:"row"},[a("dt",{staticClass:"col-md-7 text-left"},[t._v("Campo de conocimiento")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.campo_proyecto))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Disciplina")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].disciplina))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Linea de investigación")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.linea_investigacion))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Objetivo general")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].objetivo_general))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Objetivo particular")]),a("dd",{staticClass:"col-md-5 text-left"},t._l(t.datos.objetivo,(function(e){return a("div",{key:e.objetivo_texto},[t._v(" "+t._s(e.objetivo_texto)+" ")])})),0),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Hipotesis (en su caso)")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].hipotesis))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Resumen del proyecto de investigación")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].resumen))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Fecha de inicio (dd / mm / aaaa)")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.fech(t.datos.proyecto[0].fecha_inicio)))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Fecha final (dd / mm / aaaa)")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.fech(t.datos.proyecto[0].fecha_final)))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Estado de avance")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].estado_avance))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Avance")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].avance)+" %")])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Duración")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].duracion))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Financiamiento de proyecto")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].financiamiento))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Numero del registro")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.datos.proyecto[0].numero_registro))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Entidades participantes(ademas de la FES Acatlán)")]),a("dd",{staticClass:"col-md-5 text-left"},t._l(t.datos.entidad,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.tipo)+" - "+t._s(e.nombre_entidad)+" ")])})),0),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Productos(s)")]),a("dd",{staticClass:"col-md-5 text-left"},t._l(t.datos.producto,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.nombre)+" ")])})),0),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Profesores internos participantes")]),a("dd",{staticClass:"col-md-5 text-left"},[0==t.datos.profesores_internos.length?a("div",[t._v(" No se regitro ")]):t._l(t.datos.profesores_internos,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.nombre)+" - "+t._s(e.tipo_particicipacion)+" ")])}))],2),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Profesores externos participantes")]),a("dd",{staticClass:"col-md-5 text-left"},[0==t.datos.profesores_externos.length?a("div",[t._v(" No se regitro ")]):t._l(t.datos.profesores_externos,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.nombre)+" - "+t._s(e.tipo_particicipacion)+" - "+t._s(e.nombre_entidad)+" ")])}))],2),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Alumnos internos participantes")]),a("dd",{staticClass:"col-md-5 text-left"},[0==t.datos.alumnos_internos.length?a("div",[t._v(" No se regitro ")]):t._l(t.datos.alumnos_internos,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.nombre)+" - "+t._s(e.tipo_particicipacion)+" ")])}))],2),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Alumnos externos participantes")]),a("dd",{staticClass:"col-md-5 text-left"},[0==t.datos.alumnos_externos.length?a("div",[t._v(" No se regitro ")]):t._l(t.datos.alumnos_externos,(function(e){return a("div",{key:e.nombre_entidad},[t._v(" "+t._s(e.nombre)+" - "+t._s(e.tipo_particicipacion)+" - "+t._s(e.nombre_entidad)+" ")])}))],2),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Fecha de creacion (dd / mm / aaaa)")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.fech(t.datos.proyecto[0].fecha_creacion)))])]),a("dt",{staticClass:"col-md-7 text-left"},[t._v("Ultima fecha que se modifico (dd / mm / aaaa)")]),a("dd",{staticClass:"col-md-5 text-left"},[a("p",[t._v(t._s(t.fech(t.datos.proyecto[0].fecha_modificiacion)))])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},W=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("h1",[t._v("Datos del proyecto")])])])}],Z=(a("0d03"),{data:function(){return{nombre_proyecto:null,id_proyecto:null,datos:null}},methods:{salir:function(){this.$router.push("/buscar")},fech:function(t){var e=new Date(t),a=e.getFullYear(),o=e.getMonth()+1;o<10&&(o="0"+o);var n=e.getDate();return n<10&&(n="0"+n),n+" / "+o+" / "+a},datos_proyecto:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/traer_datos_proyecto?id_proyecto=").concat(this.id_proyecto)).then((function(e){t.datos=e.data.data})));case 2:case"end":return e.stop()}}),null,this)}},created:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(window.localStorage.getItem("id_proyecto_select"));case 2:this.id_proyecto=t.sent,this.datos_proyecto();case 4:case"end":return t.stop()}}),null,this)}}),tt=Z,et=(a("b1cb"),Object(p["a"])(tt,Q,W,!1,null,"8664359a",null)),at=et.exports,ot=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container ajustar"},[a("h1",[t._v("Nombre del Responsable")]),a("div",{staticClass:"row tabla cuadro_abajo_boton"},[a("div",{staticClass:"col-md-6 col-xs-12"},[t.elegido()?a("div",{staticClass:"admin-campos"},[a("i",{staticClass:"fas fa-user"}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre,expression:"nombre"}],attrs:{type:"nombre",placeholder:"Nombre"},domProps:{value:t.nombre},on:{input:function(e){e.target.composing||(t.nombre=e.target.value)}}})]):a("div",{staticClass:"alert alert-success alert-dismissible caja_nombre"},[a("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(e){t.nombre_elegido=!1,t.profesor=""}}},[t._v("×")]),a("strong",{on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.siguiente()}}},[t._v(t._s(t.profesor))]),t._v(" . ")])]),a("div",{staticClass:"col-md-6 col-xs-12"},[1==t.lista[0].Rfc?a("div",{staticClass:"spinner-border alt",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])]):0==t.buscar_profesor.length?a("p",[a("font",{attrs:{size:"6"}},[t._v("No se encontro")])],1):a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(0),t._l(t.buscar_profesor,(function(e){return a("tr",{key:e.Rfc},[t.profesor==e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.verificar(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno,e.Rfc)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.verificar(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno,e.Rfc)}}})])}))],2)])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[t.nombre_elegido?a("button",{staticClass:"button",on:{click:function(e){return t.siguiente()}}},[t._v("Siguiente")]):a("p",{staticClass:"botton_falso"},[t._v("Siguiente")])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},nt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Nombre del Profesors ")])])}],st={data:function(){return{nombre:"",pop:"",counter:0,nombre_elegido:!1,profesor:"",id_usuario:window.localStorage.getItem("id_usuario"),rfc:null,lista:[{Nombre:"-",Rfc:1}]}},methods:{siguiente:function(){window.localStorage.setItem("responsable",this.profesor),window.localStorage.setItem("rfc",this.rfc),this.$router.push("/registro_2")},salir:function(){this.$router.push("/menu")},verificar:function(t,e){this.profesor==t?(this.profesor="",this.nombre_elegido=!1):(this.profesor=t,this.rfc=e,this.nombre_elegido=!0)},elegido:function(){return 1!=this.nombre_elegido},buscar:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(e){return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=e.data.data,a.next=3,regeneratorRuntime.awrap(A()(e.data.data,"seccess"));case 3:case"end":return a.stop()}}))})).catch((function(){e.lista="No existe"})));case 2:return a.abrupt("return",t);case 3:case"end":return a.stop()}}))}},created:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(e){t.lista=e.data.data,console.log(t.lista),window.localStorage.getItem("lista_profesor",t.lista)})).catch((function(){t.lista="No existe"}));case 1:case"end":return e.stop()}}))},beforeCreate:function(){window.localStorage.getItem("registro_2")&&this.$router.push("/registro_2"),window.localStorage.getItem("id_usuario")?this.id=window.localStorage.getItem("id_usuario"):this.$router.push("/")},computed:{buscar_profesor:function(){var t=this;return this.lista.filter((function(e){return(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno).toLowerCase().includes(t.nombre.toLowerCase())}))}}},rt=st,it=(a("8d7e"),Object(p["a"])(rt,ot,nt,!1,null,"04fed7d4",null)),ct=it.exports,lt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container formulario"},[a("h1",[t._v("Datos del proyecto")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col inputs_nombre"},[t.error?a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre_proyecto,expression:"nombre_proyecto"}],staticClass:"cuadro rojo",attrs:{type:"text",id:"Nombre rojo",placeholder:"Nombre del Proyecto",maxlength:295},domProps:{value:t.nombre_proyecto},on:{input:function(e){e.target.composing||(t.nombre_proyecto=e.target.value)}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre_proyecto,expression:"nombre_proyecto"}],staticClass:"cuadro",attrs:{type:"text",placeholder:"Nombre del Proyecto",maxlength:295},domProps:{value:t.nombre_proyecto},on:{input:function(e){e.target.composing||(t.nombre_proyecto=e.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.disciplina,expression:"disciplina"}],staticClass:"cuadro",attrs:{type:"text",placeholder:"Disciplina",maxlength:245},domProps:{value:t.disciplina},on:{input:function(e){e.target.composing||(t.disciplina=e.target.value)}}})])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col-md-6"},[a("table",{staticClass:"table"},[t._m(0),t._l(t.campos_de_conocimiento,(function(e){return a("tr",{key:e.id},[t.verificar_selec(e.id_campo)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_campo(e.id_campo)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_campo(e.id_campo)}}})])}))],2)]),a("div",{staticClass:"col"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(1),t._l(t.lineas_de_investigacion,(function(e){return a("tr",{key:e.id},[t.verificar_selec_linea(e.id_linea_investigacion)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_linea(e.id_linea_investigacion)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_linea(e.id_linea_investigacion)}}})])}))],2)])])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.objetivo_general,expression:"objetivo_general"}],staticClass:"form-control",attrs:{rows:"5",id:"comment",name:"text",placeholder:"Objetivo General",maxlength:795},domProps:{value:t.objetivo_general},on:{input:function(e){e.target.composing||(t.objetivo_general=e.target.value)}}})])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col "},t._l(t.inputs,(function(e,o){return a("div",{key:o,staticClass:"form-group"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"inp.name"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Objetivo Particular",maxlength:895},domProps:{value:e.name},on:{input:function(a){a.target.composing||t.$set(e,"name",a.target.value)}}})])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.inputs.length>3,expression:" inputs.length > 3"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add()}}},[t._v("+")])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("div",{staticClass:"entrar"},[t.listo()?a("button",{staticClass:"button ",on:{click:function(e){return t.llamar()}}},[t._v(" Siguiente ")]):a("p",{staticClass:"botton_falso"},[t._v("Siguiente")])])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},dt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Campos de Conocimiento ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Lineas de Investigación ")])])}],ut=(a("b0c0"),{data:function(){return{id_usuario:window.localStorage.getItem("id_usuario"),responsable:window.localStorage.getItem("responsable"),rfc:window.localStorage.getItem("rfc"),campos_de_conocimiento:[],campos_de_conocimiento_seleccionado:[],lineas_de_investigacion:[],lineas_de_investigacion_seleccionado:[],objetivos_particulares:[],p:"",name:"",inputs:[{name:""},{name:""},{name:""}],counter:3,nombre_proyecto:"",disciplina:"",objetivo_general:"",resp:null,error:!1}},methods:{llamar:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(this.registrar());case 2:1==this.error?A()("El Nombre del proyecto ya existe","","error"):this.$router.push("/registro_3");case 3:case"end":return t.stop()}}),null,this)},registrar:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return this.objetivos_particulares=[],a.next=3,regeneratorRuntime.awrap(this.inputs.forEach((function(t){e.objetivos_particulares.push(t.name)})));case 3:return t={nombre_proyecto:this.nombre_proyecto,rfc:this.rfc,nombre_responsable:this.responsable,disciplina:this.disciplina,objetivo_general:this.objetivo_general,linea_investigacion:this.lineas_de_investigacion_seleccionado,campo_conocimiento:this.campos_de_conocimiento_seleccionado,objetivo_particular:this.objetivos_particulares,id_usuario:this.id_usuario},a.next=6,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/datos_proyecto_1"),t).then((function(t){e.resp=t,0==t.data.error?(window.localStorage.setItem("id_proyecto",t.data.id),e.error=!1):e.error=!0})).catch((function(t){e.resp=t,e.error=!0})));case 6:case"end":return a.stop()}}),null,this)},salir:function(){var t=this;A()({title:"¿Seguro que quieres salir?",text:"Al salir no se guardara ningun dato del proyecto y se regresara al menu",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!e){o.next=9;break}return a=window.localStorage.getItem("id_usuario"),o.next=4,regeneratorRuntime.awrap(localStorage.clear());case 4:return o.next=6,regeneratorRuntime.awrap(window.localStorage.setItem("id_usuario",a));case 6:return o.next=8,regeneratorRuntime.awrap(A()("Se ha eliminado los datos del proyecto que se estaba registrando","","success"));case 8:t.$router.push("/menu");case 9:case"end":return o.stop()}}))}))},listo:function(){return 0==this.lineas_de_investigacion_seleccionado.length?(this.p="lineas",!1):0==this.campos_de_conocimiento_seleccionado.length?(this.p="campos",!1):""==this.nombre_proyecto?(this.p="nolmbre",!1):""==this.disciplina?(this.p="disciplina",!1):""==this.objetivo_general?(this.p="general",!1):""!=this.inputs[0].name&&""!=this.inputs[1].name&&""!=this.inputs[2].name||(this.p=this.inputs[0].name+" "+this.inputs[1].name+" "+this.inputs[2].name,!1)},verificar_selec:function(t){var e=0;return this.campos_de_conocimiento_seleccionado.forEach((function(a){a==t&&(e=1)})),1==e},seleccionar_campo:function(t){var e=0,a=0;this.campos_de_conocimiento_seleccionado.forEach((function(o){o==t&&(e=1),0==e&&a++})),0==e?this.campos_de_conocimiento_seleccionado.push(t):this.campos_de_conocimiento_seleccionado.splice(a,1)},verificar_selec_linea:function(t){var e=0;return this.lineas_de_investigacion_seleccionado.forEach((function(a){a==t&&(e=1)})),1==e},seleccionar_linea:function(t){var e=0,a=0;this.lineas_de_investigacion_seleccionado.forEach((function(o){o==t&&(e=1),0==e&&a++})),0==e?this.lineas_de_investigacion_seleccionado.push(t):this.lineas_de_investigacion_seleccionado.splice(a,1)},traer_campos_de_conocimiento:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_campos")).then((function(e){t.p=e,t.campos_de_conocimiento=e.data.campos}))},traer_lineas_de_investigacion:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_lineas")).then((function(e){t.lineas_de_investigacion=e.data.lineas}))},add:function(){this.inputs.push({name:""})},remove:function(){this.inputs.splice(this.inputs.length-1,1)}},created:function(){this.traer_campos_de_conocimiento(),this.traer_lineas_de_investigacion(),window.localStorage.setItem("registro_2",!0)},beforeCreate:function(){window.localStorage.getItem("registro_3")&&this.$router.push("/registro_3"),window.localStorage.getItem("id_usuario")||this.$router.push("/"),window.localStorage.getItem("responsable")||this.$router.push("/menu")}}),pt=ut,_t=(a("38f7"),Object(p["a"])(pt,lt,dt,!1,null,"2f0d6056",null)),mt=_t.exports,vt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container caja"},[a("h1",{staticClass:"separacion-dos"},[t._v("Datos del proyecto de investigación")]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.hipotesis,expression:"hipotesis"}],staticClass:"form-control",attrs:{rows:"5",id:"comment",name:"text",placeholder:"Hipotesis (en su caso)",maxlength:795},domProps:{value:t.hipotesis},on:{input:function(e){e.target.composing||(t.hipotesis=e.target.value)}}})])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.resumen,expression:"resumen"}],staticClass:"form-control",attrs:{rows:"5",id:"comment",name:"text",placeholder:"Resumen del proyecto de investigación",maxlength:1495},domProps:{value:t.resumen},on:{input:function(e){e.target.composing||(t.resumen=e.target.value)}}})])]),t._m(0),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("h4",[t._v("Fecha de Inicio")]),a("datepicker",{staticClass:"center",attrs:{language:t.es,name:"fecha_inicio"},model:{value:t.fecha_inicio,callback:function(e){t.fecha_inicio=e},expression:"fecha_inicio"}})],1),a("div",{staticClass:"col"},[a("h4",[t._v("Fecha de Termino")]),a("datepicker",{staticClass:"center",attrs:{language:t.es,name:"fecha_final"},model:{value:t.fecha_final,callback:function(e){t.fecha_final=e},expression:"fecha_final"}}),a("p",{staticClass:"error"},[t._v(t._s(t.validar_fecha()))])],1)]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col-md-6 separacion"},[a("table",{staticClass:"table"},[t._m(1),t._l(t.estado_avance,(function(e){return a("tr",{key:e.avance},[t.check_estado(e.avance)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.avance)},on:{click:function(a){return t.verificar(e.avance)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.avance)},on:{click:function(a){return t.verificar(e.avance)}}})])}))],2)]),a("div",{staticClass:"col"},[a("table",{staticClass:"table"},[t._m(2),t._l(t.duracion,(function(e){return a("tr",{key:e.tiempo},[t.check_duracion(e.tiempo)?a("td",{staticClass:"renglon select_verde",domProps:{textContent:t._s(e.tiempo)},on:{click:function(a){return t.verificar_duracion(e.tiempo)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.tiempo)},on:{click:function(a){return t.verificar_duracion(e.tiempo)}}})])}))],2)])]),a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.avance,expression:"avance"}],staticClass:"cuadro top",attrs:{type:"number",placeholder:"Avance %",oninput:"javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);",maxlength:"3"},domProps:{value:t.avance},on:{input:function(e){e.target.composing||(t.avance=e.target.value)}}}),a("p",{staticClass:"error"},[t._v(t._s(t.validar_avance()))])]),a("div",{staticClass:"col"},[a("div",{staticClass:"entrar"},[t.completo()?a("button",{staticClass:"button ",on:{click:function(e){return t.registrar()}}},[t._v("Siguiente")]):a("p",{staticClass:"botton_falso"},[t._v("Siguiente")])])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},ft=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"row separacion"},[a("div",{staticClass:"col"},[a("div",{attrs:{id:"calendar"}})])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Estado de Avance ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Duración ")])])}],ht={data:function(){return{id_proyecto:window.localStorage.getItem("id_proyecto"),hipotesis:"",resumen:"",fecha_inicio:null,fecha_final:null,en:B["en"],es:B["es"],estado_avance:[{avance:"Nuevo"},{avance:"En Desarrollo"},{avance:"Concluido"},{avance:"Suspendido"}],duracion:[{tiempo:"1 año"},{tiempo:"2 años"},{tiempo:"3 años"},{tiempo:"Más de 3 años"}],estado_elegido:"",duracion_elegido:"",avance:null,av:!1,fe:!1,resp:null}},methods:{salir:function(){var t=this;A()({title:"¿Seguro que quieres salir?",text:"Al salir no se guardara ningun dato del proyecto y se regresara al menu",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!e){o.next=4;break}return a={id_proyecto:t.id_proyecto},o.next=4,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/eliminar_proyecto"),a).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(t.resp=e,0!=e.data.err){o.next=12;break}return a=window.localStorage.getItem("id_usuario"),o.next=5,regeneratorRuntime.awrap(localStorage.clear());case 5:return o.next=7,regeneratorRuntime.awrap(window.localStorage.setItem("id_usuario",a));case 7:return o.next=9,regeneratorRuntime.awrap(A()("Se ha eliminado los datos del proyecto que se estaba registrando","","success"));case 9:t.$router.push("/menu"),o.next=13;break;case 12:A()("Algo sucedio mal","".concat(e.data.msj),"error");case 13:case"end":return o.stop()}}))})).catch((function(e){t.resp=e,A()("Algo sucedio mal","".concat(e),"error")})));case 4:case"end":return o.stop()}}))}))},registrar:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t={hipotesis:this.hipotesis,resumen:this.resumen,fecha_inicio:this.fecha_inicio,fecha_final:this.fecha_final,estado:this.estado_elegido,duracion:this.duracion_elegido,id_proyecto:this.id_proyecto,avance:this.avance},a.next=3,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/datos_proyecto_2"),t).then((function(t){e.resp=t,0==t.data.error?e.$router.push("/registro_4"):A()("Algo sucedio mal","".concat(t.data.msj),"error")})).catch((function(t){e.resp=t,A()("Algo sucedio mal","".concat(t),"error")})));case 3:case"end":return a.stop()}}),null,this)},validar_fecha:function(){return this.fecha_inicio>=this.fecha_final&&null!=this.fecha_inicio&&null!=this.fecha_final?(this.fe=!1,"La fecha de final tiene que ser mayor que la final"):void(this.fe=!0)},validar_avance:function(){return this.avance>100?(this.av=!1,"El porcentage de avance tiene que estar en el intervalo [1-100]"):(null!=this.avance&&(this.av=!0),"")},completo:function(){return""!=this.fecha_inicio&&(""!=this.fecha_final&&(""!=this.hipotesis&&(""!=this.resumen&&(""!=this.estado_elegido&&(""!=this.duracion_elegido&&(""!=this.avance&&(0!=this.av&&0!=this.fe)))))))},check_duracion:function(t){return this.duracion_elegido==t},verificar_duracion:function(t){this.duracion_elegido==t?this.duracion_elegido="":this.duracion_elegido=t},check_estado:function(t){return this.estado_elegido==t},verificar:function(t){this.estado_elegido==t?this.estado_elegido="":this.estado_elegido=t}},created:function(){window.localStorage.setItem("registro_3",!0)},beforeCreate:function(){window.localStorage.getItem("registro_4")&&this.$router.push("/registro_4"),window.localStorage.getItem("id_usuario")||this.$router.push("/"),window.localStorage.getItem("id_proyecto")||this.$router.push("/menu")},components:{Datepicker:X["a"]}},gt=ht,bt=(a("604f"),Object(p["a"])(gt,vt,ft,!1,null,"c915e580",null)),Ct=bt.exports,wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("h1",{staticClass:"separacion-dos"},[t._v("Datos del proyecto de investigación")]),a("div",{staticClass:"row cont"},[a("div",{staticClass:"col"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(0),t._l(t.financiaminetos,(function(e){return a("tr",{key:e.nombre},[t.verificar_financiamiento(e.nombre)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_financiamiento(e.nombre)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_financiamiento(e.nombre)}}})])}))],2)])]),a("div",{staticClass:"col inputs_nombre"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.numero_registro,expression:"numero_registro"}],staticClass:"cuadro",attrs:{type:"text",placeholder:"Numero de registro"},domProps:{value:t.numero_registro},on:{input:function(e){e.target.composing||(t.numero_registro=e.target.value)}}}),a("input",{directives:[{name:"model",rawName:"v-model",value:t.presupuesto,expression:"presupuesto"}],staticClass:"ultimo",attrs:{type:"number",placeholder:"Presupuesto Asignado ($00.00MXN)"},domProps:{value:t.presupuesto},on:{input:function(e){e.target.composing||(t.presupuesto=e.target.value)}}}),t.chack_presupuesto()?a("p",{staticClass:"error"},[t._v("El presupuesto solo puede tener numeros y a lo más un caracter punto '.'")]):t._e()])]),a("h2",[t._v("Entidades Participandes (además de la FES Acatlán)")]),a("div",{attrs:{clas:"row"}},[a("div",{staticClass:"col"},t._l(t.entidades_seleccionadas,(function(e){return a("div",{key:e.id_entidad,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.nombre))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades,(function(o){return a("div",{key:o.id_entidades},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.nombre=o.tipo,e.id_entidad=o.id_entidad}}},[t._v(t._s(o.tipo))])])})),0)]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.nombre_de_entidad,expression:"entidad.nombre_de_entidad"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre de la entidad","aria-label":"Text input with dropdown button",maxlength:145},domProps:{value:e.nombre_de_entidad},on:{input:function(a){a.target.composing||t.$set(e,"nombre_de_entidad",a.target.value)}}})])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.entidades_seleccionadas.length>1,expression:" entidades_seleccionadas.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add()}}},[t._v("+")])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(1),t._l(t.productos,(function(e){return a("tr",{key:e.nombre},[t.verificar_producto(e.id_producto)?a("td",{staticClass:"renglon select_verde ",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_producto(e.id_producto)}}}):a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.nombre)},on:{click:function(a){return t.seleccionar_producto(e.id_producto)}}})])}))],2)])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("div",{staticClass:"entrar"},[t.listo()?a("button",{staticClass:"button ",on:{click:function(e){return t.registrar()}}},[t._v("Siguiente")]):a("p",{staticClass:"botton_falso"},[t._v("Siguiente")])])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])},xt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Financiamiento del proyecto ")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Producto(s) ")])])}],yt={data:function(){return{id_proyecto:window.localStorage.getItem("id_proyecto"),financiaminetos:[{nombre:"PAPIME"},{nombre:"PAPIIT"},{nombre:"PAIDI"},{nombre:"CONACYT"},{nombre:"Otras Universidades o Instituciones Nacionales"},{nombre:"Otras Universidades o Instituciones Internacionales"},{nombre:"ONG'S o Fundaciones Nacionales"},{nombre:"Sector Privado"},{nombre:"Investigación dentro de su plaza"}],entidades:[],productos:[],financiamiento_seleccionado:"",numero_registro:"",presupuesto:null,entidades_seleccionadas:[{id_entidad:null,nombre:"Seleccione la Entidad",nombre_de_entidad:""}],productos_seleccionados:[],con:1,type:null}},methods:{salir:function(){var t=this;A()({title:"¿Seguro que quieres salir?",text:"Al salir no se guardara ningun dato del proyecto y se regresara al menu",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!e){o.next=4;break}return a={id_proyecto:t.id_proyecto},o.next=4,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/eliminar_proyecto"),a).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(t.resp=e,0!=e.data.err){o.next=12;break}return a=window.localStorage.getItem("id_usuario"),o.next=5,regeneratorRuntime.awrap(localStorage.clear());case 5:return o.next=7,regeneratorRuntime.awrap(window.localStorage.setItem("id_usuario",a));case 7:return o.next=9,regeneratorRuntime.awrap(A()("Se ha eliminado los datos del proyecto que se estaba registrando","","success"));case 9:t.$router.push("/menu"),o.next=13;break;case 12:A()("Algo sucedio mal","".concat(e.data.msj),"error");case 13:case"end":return o.stop()}}))})).catch((function(e){t.resp=e,A()("Algo sucedio mal","".concat(e),"error")})));case 4:case"end":return o.stop()}}))}))},chack_presupuesto:function(){if(""==this.presupuesto)return!0},registrar:function(){var t,e,a=this;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return t=[],o.next=3,regeneratorRuntime.awrap(this.entidades_seleccionadas.forEach((function(e){var a=[];null!=e.id_entidad&&""!=e.nombre_de_entidad&&(a.push(e.id_entidad),a.push(e.nombre_de_entidad),t.push(a))})));case 3:return e={financiamiento:this.financiamiento_seleccionado,presupuesto:this.presupuesto,entidades:t,producto:this.productos_seleccionados,id_proyecto:this.id_proyecto,no_registro:this.numero_registro},o.next=6,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/datos_proyecto_3"),e).then((function(t){a.resp=t,0==t.data.error?a.$router.push("/registro_5"):A()("Algo sucedio mal","".concat(t.data.msj),"error")})).catch((function(t){a.resp=t,A()("Algo sucedio mal","".concat(t),"error")})));case 6:case"end":return o.stop()}}),null,this)},listo:function(){return""!=this.financiamiento_seleccionado&&(""!=this.numero_registro&&(""!=this.presupuesto&&0!=this.productos_seleccionados.length))},add:function(){this.entidades_seleccionadas.push({id_entidad:null,nombre:"Seleccione la Entidad",nombre_de_entidad:""})},remove:function(){this.entidades_seleccionadas.splice(this.entidades_seleccionadas.length-1,1)},verificar_producto:function(t){var e=!1;return this.productos_seleccionados.forEach((function(a){a==t&&(e=!0)})),e},seleccionar_producto:function(t){var e=0,a=0;this.productos_seleccionados.forEach((function(o){o==t&&(e=1),0==e&&a++})),1==e?this.productos_seleccionados.splice(a,1):this.productos_seleccionados.push(t)},verificar_financiamiento:function(t){return this.financiamiento_seleccionado==t},seleccionar_financiamiento:function(t){t==this.financiamiento_seleccionado?this.financiamiento_seleccionado="":this.financiamiento_seleccionado=t},traer_entidades:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_entidades")).then((function(e){t.entidades=e.data.entidades}))},traer_productos:function(){var t=this;E.a.post("".concat(j.a.api,"/traer_productos")).then((function(e){t.productos=e.data.productos}))}},created:function(){this.traer_entidades(),this.traer_productos(),window.localStorage.setItem("registro_4",!0)},beforeCreate:function(){window.localStorage.getItem("registro_5")&&this.$router.push("/registro_5"),window.localStorage.getItem("id_usuario")||this.$router.push("/"),window.localStorage.getItem("id_proyecto")||this.$router.push("/menu")}},kt=yt,Rt=(a("d76e"),Object(p["a"])(kt,wt,xt,!1,null,"bacc9700",null)),Pt=Rt.exports,Nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container "},[1==t.espera?a("div",{staticClass:"container todo "},[t._m(0),t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),t._m(6),t._m(7)]):a("div",{staticClass:"container "},[a("h1",{staticClass:"separacion-dos"},[t._v("Datos del proyecto de investigación")]),a("h2",[t._v("Profesores participantes internos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6 col-xs-12"},t._l(t.profesores_internos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),0==e.use?a("input",{directives:[{name:"model",rawName:"v-model",value:t.nombre_buscar[e.n],expression:"nombre_buscar[item.n]"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del profesor interno ","aria-label":"Text input with dropdown button"},domProps:{value:t.nombre_buscar[e.n]},on:{click:function(a){t.borrar(),t.concurrent=e.n},input:function(a){a.target.composing||t.$set(t.nombre_buscar,e.n,a.target.value)}}}):a("div",{staticClass:" form-control alert alert-success alert-dismissible caja_nombre"},[a("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(t){e.use=!1,e.nombre=""}}},[t._v("×")]),a("strong",[t._v(t._s(e.nombre))]),t._v(" . ")])])])})),0),1==t.lista[0].Rfc?a("div",{staticClass:"spinner-border alt",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])]):a("div",{staticClass:"col-md-6 col-xs-12"},[a("div",{staticClass:"table-wrapper-scroll-y my-custom-scrollbar"},[a("table",{staticClass:"table table-bordered table-striped mb-0 "},[t._m(8),0==t.filtro.length?a("p",[a("font",{attrs:{size:"6"}},[t._v("No se encontro")])],1):t._l(t.filtro,(function(e){return a("tr",{key:e.Rfc},[a("td",{staticClass:"renglon",domProps:{textContent:t._s(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)},on:{click:function(a){return t.poner_nombre(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno)}}})])}))],2)])])]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-6"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.profesores_internos.length>1,expression:" profesores_internos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_profesor_interno()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_profesor_interno()}}},[t._v("+")])])]),a("h2",[t._v("Profesores participantes externos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.profesores_externos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del profesor externo","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}}),a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.entidad))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades,(function(o){return a("div",{key:o.id_entidad},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.entidad=o.nombre_entidad,e.id_entidad=o.id_pro_entidad}}},[t._v(t._s(o.nombre_entidad))])])})),0)])])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.profesores_externos.length>1,expression:" profesores_externos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_profesor_externo()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_profesor_externo()}}},[t._v("+")])])]),a("h2",[t._v("Alumnos participantes internos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.alumnos_internos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del alumno interno","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}})])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.alumnos_internos.length>1,expression:" alumnos_internos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_alumnos_internos()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_alumnos_internos()}}},[t._v("+")])])]),a("h2",[t._v("Alumnos participantes externos")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},t._l(t.alumnos_externos,(function(e){return a("div",{key:e.nombre,staticClass:"form-group"},[a("div",{staticClass:"input-group"},[a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.participacion))]),a("div",{staticClass:"dropdown-menu"},[a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Corresponsable"}}},[t._v("Corresponsable")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Colaborador"}}},[t._v("Colaborador")]),a("a",{staticClass:"dropdown-item renglon",on:{click:function(t){e.participacion="Otro"}}},[t._v("Otro")])])]),a("input",{directives:[{name:"model",rawName:"v-model.lazy",value:e.nombre,expression:"item.nombre",modifiers:{lazy:!0}}],staticClass:"form-control",attrs:{type:"text",placeholder:"Nombre del alumno externo","aria-label":"Text input with dropdown button",maxlength:95},domProps:{value:e.nombre},on:{change:function(a){return t.$set(e,"nombre",a.target.value)}}}),a("div",{staticClass:"input-group-prepend"},[a("button",{staticClass:"Azul-puma btn btn-primary dropdown-toggle",attrs:{type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[t._v(t._s(e.entidad))]),a("div",{staticClass:"dropdown-menu"},t._l(t.entidades,(function(o){return a("div",{key:o.id_entidad},[a("a",{staticClass:"dropdown-item renglon ",on:{click:function(t){e.entidad=o.nombre_entidad,e.id_entidad=o.id_pro_entidad}}},[t._v(t._s(o.nombre_entidad))])])})),0)])])])})),0)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col"},[a("button",{directives:[{name:"show",rawName:"v-show",value:t.alumnos_externos.length>1,expression:" alumnos_externos.length > 1"}],staticClass:"button_agregar rojo",on:{click:function(e){return t.remove_alumnos_externos()}}},[t._v("-")])]),a("div",{staticClass:"col-6"},[a("button",{staticClass:"button_agregar verde",on:{click:function(e){return t.add_alumnos_externos()}}},[t._v("+")])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button",on:{click:function(e){return t.registrar()}}},[t._v(" Guardar ")])])]),a("div",{staticClass:"row espacio"},[a("div",{staticClass:"col"},[a("button",{staticClass:"button_salir ",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])])])},Et=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-primary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-secondary",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-success",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-danger",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-warning",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-info",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-light",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"spinner-grow cada text-dark",attrs:{role:"status"}},[a("span",{staticClass:"sr-only"},[t._v("Loading...")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("tr",[a("th",[t._v(" Nombre del Profesor ")])])}],St=(a("9911"),{data:function(){return{id_proyecto:"",profesores_internos:[{nombre:"",participacion:"Tipo de participación",n:1,use:!1}],profesores_externos:[{nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null}],alumnos_internos:[{nombre:"",participacion:"Tipo de participación"}],alumnos_externos:[{nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null}],entidades:[],link:"",lista:[{nombre:"",Rfc:1}],concurrent:0,nombre_buscar:["",""],espera:!1}},methods:{poner_nombre:function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:0!=this.concurrent&&(this.profesores_internos[this.concurrent-1].nombre=t,this.profesores_internos[this.concurrent-1].use=!0);case 1:case"end":return e.stop()}}),null,this)},borrar:function(){for(var t=0;t<this.nombre_buscar.length;t++)this.nombre_buscar[t]=""},siguiente:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return this.espera=!1,e.next=3,regeneratorRuntime.awrap(A()("Exito","","success"));case 3:return e.next=5,regeneratorRuntime.awrap(window.open("".concat(j.a.api,"/descargar_pdf?id_proyecto=").concat(this.id_proyecto)));case 5:return t=window.localStorage.getItem("id_usuario"),e.next=8,regeneratorRuntime.awrap(localStorage.clear());case 8:return e.next=10,regeneratorRuntime.awrap(window.localStorage.setItem("id_usuario",t));case 10:return e.next=12,regeneratorRuntime.awrap(this.$router.push("/menu"));case 12:case"end":return e.stop()}}),null,this)},salir:function(){var t=this;A()({title:"¿Seguro que quieres s salir?",text:"Al salir no se guardara ningun dato del proyecto y se regresara al menu",icon:"warning",buttons:!0,dangerMode:!0}).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!e){o.next=4;break}return a={id_proyecto:t.id_proyecto},o.next=4,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/eliminar_proyecto"),a).then((function(e){var a;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(t.resp=e,0!=e.data.err){o.next=12;break}return a=window.localStorage.getItem("id_usuario"),o.next=5,regeneratorRuntime.awrap(localStorage.clear());case 5:return o.next=7,regeneratorRuntime.awrap(window.localStorage.setItem("id_usuario",a));case 7:return o.next=9,regeneratorRuntime.awrap(A()("Se ha eliminado los datos del proyecto que se estaba registrando","","success"));case 9:t.$router.push("/menu"),o.next=13;break;case 12:A()("Algo sucedio mal","".concat(e.data.msj),"error");case 13:case"end":return o.stop()}}))})).catch((function(e){t.resp=e,A()("Algo sucedio mal","".concat(e),"error")})));case 4:case"end":return o.stop()}}))}))},registrar:function(){var t,e,a,o,n,s=this;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return t=[],r.next=3,regeneratorRuntime.awrap(this.profesores_internos.forEach((function(e){var a=[];"Tipo de participación"!=e.participacion&&""!=e.nombre&&(a.push(e.nombre),a.push(e.participacion),t.push(a))})));case 3:return e=[],r.next=6,regeneratorRuntime.awrap(this.profesores_externos.forEach((function(t){var a=[];"Tipo de participación"!=t.participacion&&""!=t.nombre&&null!=t.id_entidad&&(a.push(t.nombre),a.push(t.participacion),a.push(t.id_entidad),e.push(a))})));case 6:return a=[],r.next=9,regeneratorRuntime.awrap(this.alumnos_internos.forEach((function(t){var e=[];"Tipo de participación"!=t.participacion&&""!=t.nombre&&(e.push(t.nombre),e.push(t.participacion),a.push(e))})));case 9:return o=[],r.next=12,regeneratorRuntime.awrap(this.alumnos_externos.forEach((function(t){var e=[];"Tipo de participación"!=t.participacion&&""!=t.nombre&&null!=t.id_entidad&&(e.push(t.nombre),e.push(t.participacion),e.push(t.id_entidad),o.push(e))})));case 12:return n={profesor_interno:t,profesor_externo:e,alumno_interno:a,alumno_externo:o,id_proyecto:this.id_proyecto},this.espera=!0,r.next=16,regeneratorRuntime.awrap(E.a.post("".concat(j.a.api,"/datos_proyecto_4"),n).then((function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:if(s.resp=t,0!=t.data.error){e.next=6;break}return e.next=4,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/get_pdf?id_proyecto=").concat(s.id_proyecto)).then((function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(s.siguiente());case 2:return t.abrupt("return");case 3:case"end":return t.stop()}}))})).catch((function(){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(A()("Algo sucedio mal get pedf","".concat(t.data.msj),"error"));case 2:case"end":return e.stop()}}))})));case 4:e.next=8;break;case 6:return e.next=8,regeneratorRuntime.awrap(A()("Algo sucedio mal datos proyecto 4","".concat(t.data.msj),"error"));case 8:case"end":return e.stop()}}))})).catch((function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return s.resp=t,e.next=3,regeneratorRuntime.awrap(A()("Algo sucedio mal datos proyecto 4","".concat(t),"error"));case 3:case"end":return e.stop()}}))})));case 16:case"end":return r.stop()}}),null,this)},add_alumnos_externos:function(){this.alumnos_externos.push({nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null})},remove_alumnos_externos:function(){this.alumnos_externos.splice(this.alumnos_externos.length-1,1)},add_alumnos_internos:function(){this.alumnos_internos.push({nombre:"",participacion:"Tipo de participación"})},remove_alumnos_internos:function(){this.alumnos_internos.splice(this.alumnos_internos.length-1,1)},add_profesor_externo:function(){this.profesores_externos.push({nombre:"",participacion:"Tipo de participación",entidad:"Seleccione Entidad",id_entidad:null})},remove_profesor_externo:function(){this.profesores_externos.splice(this.profesores_externos.length-1,1)},add_profesor_interno:function(){this.nombre_buscar.push(""),this.profesores_internos.push({nombre:"",participacion:"Tipo de participación",n:this.profesores_internos.length+1,use:!1})},remove_profesor_interno:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:if(0!=this.profesores_internos[this.profesores_internos.length-1].use){t.next=8;break}return this.concurrent==this.profesores_internos.length&&this.concurrent--,t.next=4,regeneratorRuntime.awrap(this.nombre_buscar.splice(this.nombre_buscar.length-1,1));case 4:return t.next=6,regeneratorRuntime.awrap(this.profesores_internos.splice(this.profesores_internos.length-1,1));case 6:t.next=9;break;case 8:A()({title:"Tienes que borrar al profesor ya seleccionado",icon:"warning"});case 9:case"end":return t.stop()}}),null,this)},traer_entidades:function(){var t=this,e={id_proyecto:this.id_proyecto};return E.a.post("".concat(j.a.api,"/traer_entidades_proyecto"),e).then((function(e){t.entidades=e.data.entidad_proyecto})).catch(),this.entidades},buscar:function(){var t,e=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(e){t=e.data.data})).catch((function(){e.lista="asddas"})));case 2:return a.abrupt("return",t);case 3:case"end":return a.stop()}}))}},created:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:this.id_proyecto=window.localStorage.getItem("id_proyecto"),this.link="".concat(j.a.api,"/descargar_pdf?id_proyecto=").concat(this.id_proyecto),this.traer_entidades(),E.a.get("".concat(j.a.api,"/busca_profesor")).then((function(e){t.lista=e.data.data,console.log(t.lista),window.localStorage.getItem("lista_profesor",t.lista)})).catch((function(){t.lista="No existe"})),window.localStorage.setItem("registro_5",!0);case 5:case"end":return e.stop()}}),null,this)},beforeCreate:function(){window.localStorage.getItem("id_proyecto")||this.$router.push("/menu"),window.localStorage.getItem("id_usuario")?this.id=window.localStorage.getItem("id_usuario"):this.$router.push("/")},computed:{filtro:function(){var t=this;return this.lista.filter((function(e){return(e.Nombre+" "+e.ApellidoMaterno+" "+e.ApellidoPaterno).toLowerCase().includes(t.nombre_buscar[t.concurrent].toLowerCase())}))}}}),jt=St,$t=(a("7cde"),Object(p["a"])(jt,Nt,Et,!1,null,"71d57da5",null)),At=$t.exports,It=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"container pad_menu"},[o("h1",[t._v("Red de Investigación")]),o("div",{staticClass:"row pad_icono"},[o("div",{staticClass:"col"},[o("div",{staticClass:"cont"},[o("img",{staticClass:"image",attrs:{src:a("d260"),height:"250"},on:{click:function(e){return t.entrar_registro()}}}),o("div",{staticClass:"middle"},[o("div",{staticClass:"text",on:{click:function(e){return t.entrar_registro()}}},[t._v("Registro de Proyecto")])])])]),o("div",{staticClass:"col "},[o("div",{staticClass:"cont"},[o("img",{staticClass:"image",attrs:{src:a("6e00"),height:"250"},on:{click:function(e){return t.entrar_buscar()}}}),t._m(0)])]),t._m(1)]),o("div",{staticClass:"entrar"},[o("button",{staticClass:"button",on:{click:function(e){return t.salir()}}},[t._v("Salir")])])])},Ot=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"middle"},[a("div",{staticClass:"text"},[t._v("Buscar")])])},function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"col "},[o("div",{staticClass:"cont"},[o("img",{staticClass:"image",attrs:{src:a("c205"),height:"250"}}),o("div",{staticClass:"mid"},[o("div",{staticClass:"text"},[t._v("Descargar")])])])])}],Mt={data:function(){return{imp:window.localStorage.getItem("id_usuario")}},methods:{entrar_registro:function(){this.$router.push("/registro_1")},entrar_buscar:function(){this.$router.push("/buscar")},salir:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(localStorage.clear());case 2:this.$router.push("/");case 3:case"end":return t.stop()}}),null,this)}},beforeCreate:function(){window.localStorage.getItem("id_usuario")?this.id=window.localStorage.getItem("id_usuario"):this.$router.push("/")}},Lt=Mt,Tt=(a("8189"),Object(p["a"])(Lt,It,Ot,!1,null,"5efdd33e",null)),zt=Tt.exports,qt=[{path:"/menu",component:zt,name:"menu"},{path:"/",component:L,name:"login"},{path:"/registro_1",component:ct,name:"registro_1"},{path:"/registro_2",component:mt,name:"registro_2"},{path:"/registro_3",component:Ct,name:"registro_3"},{path:"/registro_4",component:Pt,name:"registro_4"},{path:"/registro_5",component:At,name:"registro_5"},{path:"/buscar",component:G,name:"buscar"},{path:"/ver_datos",component:at,name:"ver_datos"},{path:"/modificar",component:K,name:"modificar"}];o["default"].use(n["a"]),o["default"].config.productionTip=!1,o["default"].use(s["a"]);var Dt=new s["a"]({routes:qt});new o["default"]({el:"#app",render:function(t){return t(k)},router:Dt})},"5f30":function(t,e,a){"use strict";var o=a("b8bf"),n=a.n(o);n.a},"604f":function(t,e,a){"use strict";var o=a("2a52"),n=a.n(o);n.a},"69b2":function(t,e,a){},"6e00":function(t,e,a){t.exports=a.p+"img/lupa.0426436e.png"},7416:function(t,e,a){},"7cde":function(t,e,a){"use strict";var o=a("e38e"),n=a.n(o);n.a},"7e7f":function(t,e,a){},8189:function(t,e,a){"use strict";var o=a("7e7f"),n=a.n(o);n.a},8293:function(t,e,a){},"83d2":function(t,e,a){},"85ec":function(t,e,a){},"8b79":function(t,e,a){},"8d7e":function(t,e,a){"use strict";var o=a("18fe"),n=a.n(o);n.a},a078:function(t,e){var a={api:"http://localhost:3000"};t.exports=a},ad94:function(t,e,a){},b1cb:function(t,e,a){"use strict";var o=a("ad94"),n=a.n(o);n.a},b8bf:function(t,e,a){},c205:function(t,e,a){t.exports=a.p+"img/descarga.6fde3d6f.png"},d260:function(t,e,a){t.exports=a.p+"img/agregar.c88bc702.png"},d76e:function(t,e,a){"use strict";var o=a("328e"),n=a.n(o);n.a},e2b6:function(t,e,a){"use strict";var o=a("7416"),n=a.n(o);n.a},e38e:function(t,e,a){}});
//# sourceMappingURL=app.77018f06.js.map