Files
servicio_social_front/dist/_nuxt/0e6ea8c.js
T
2021-01-25 15:11:05 -06:00

1 line
35 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{241:function(e,t,o){"use strict";o.r(t);var n={props:{path:String,deleteFromLocalStorage:Array},methods:{regresar:function(){if(this.deleteFromLocalStorage)for(var i=0;i<this.deleteFromLocalStorage.length;i++)localStorage.removeItem(this.deleteFromLocalStorage[i]);this.$router.push(this.path)}}},r=o(8),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-button",{staticClass:"boton border-info my-5",attrs:{type:"is-info is-light ","icon-left":"arrow-left-box"},on:{click:function(t){return e.regresar()}}},[e._v("\n Regresar\n")])}),[],!1,null,null,null);t.default=component.exports},377:function(e,t,o){"use strict";var n=o(9),r=o(3),c=o(80),l=o(17),d=o(11),m=o(32),v=o(166),f=o(61),h=o(5),_=o(81),j=o(62).f,k=o(23).f,y=o(13).f,x=o(380).trim,S=r.Number,C=S.prototype,I="Number"==m(_(C)),z=function(e){var t,o,n,r,c,l,d,code,m=f(e,!1);if("string"==typeof m&&m.length>2)if(43===(t=(m=x(m)).charCodeAt(0))||45===t){if(88===(o=m.charCodeAt(2))||120===o)return NaN}else if(48===t){switch(m.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+m}for(l=(c=m.slice(2)).length,d=0;d<l;d++)if((code=c.charCodeAt(d))<48||code>r)return NaN;return parseInt(c,n)}return+m};if(c("Number",!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var F,w=function(e){var t=arguments.length<1?0:e,o=this;return o instanceof w&&(I?h((function(){C.valueOf.call(o)})):"Number"!=m(o))?v(new S(z(t)),o,w):z(t)},N=n?j(S):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;N.length>T;T++)d(S,F=N[T])&&!d(w,F)&&y(w,F,k(S,F));w.prototype=C,C.constructor=w,l(r,"Number",w)}},379:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},380:function(e,t,o){var n=o(15),r="["+o(379)+"]",c=RegExp("^"+r+r+"*"),l=RegExp(r+r+"*$"),d=function(e){return function(t){var o=String(n(t));return 1&e&&(o=o.replace(c,"")),2&e&&(o=o.replace(l,"")),o}};e.exports={start:d(1),end:d(2),trim:d(3)}},381:function(e,t,o){var content=o(387);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("ac322d04",content,!0,{sourceMap:!1})},382:function(e,t,o){var map={"./af":242,"./af.js":242,"./ar":243,"./ar-dz":244,"./ar-dz.js":244,"./ar-kw":245,"./ar-kw.js":245,"./ar-ly":246,"./ar-ly.js":246,"./ar-ma":247,"./ar-ma.js":247,"./ar-sa":248,"./ar-sa.js":248,"./ar-tn":249,"./ar-tn.js":249,"./ar.js":243,"./az":250,"./az.js":250,"./be":251,"./be.js":251,"./bg":252,"./bg.js":252,"./bm":253,"./bm.js":253,"./bn":254,"./bn-bd":255,"./bn-bd.js":255,"./bn.js":254,"./bo":256,"./bo.js":256,"./br":257,"./br.js":257,"./bs":258,"./bs.js":258,"./ca":259,"./ca.js":259,"./cs":260,"./cs.js":260,"./cv":261,"./cv.js":261,"./cy":262,"./cy.js":262,"./da":263,"./da.js":263,"./de":264,"./de-at":265,"./de-at.js":265,"./de-ch":266,"./de-ch.js":266,"./de.js":264,"./dv":267,"./dv.js":267,"./el":268,"./el.js":268,"./en-au":269,"./en-au.js":269,"./en-ca":270,"./en-ca.js":270,"./en-gb":271,"./en-gb.js":271,"./en-ie":272,"./en-ie.js":272,"./en-il":273,"./en-il.js":273,"./en-in":274,"./en-in.js":274,"./en-nz":275,"./en-nz.js":275,"./en-sg":276,"./en-sg.js":276,"./eo":277,"./eo.js":277,"./es":278,"./es-do":279,"./es-do.js":279,"./es-mx":280,"./es-mx.js":280,"./es-us":281,"./es-us.js":281,"./es.js":278,"./et":282,"./et.js":282,"./eu":283,"./eu.js":283,"./fa":284,"./fa.js":284,"./fi":285,"./fi.js":285,"./fil":286,"./fil.js":286,"./fo":287,"./fo.js":287,"./fr":288,"./fr-ca":289,"./fr-ca.js":289,"./fr-ch":290,"./fr-ch.js":290,"./fr.js":288,"./fy":291,"./fy.js":291,"./ga":292,"./ga.js":292,"./gd":293,"./gd.js":293,"./gl":294,"./gl.js":294,"./gom-deva":295,"./gom-deva.js":295,"./gom-latn":296,"./gom-latn.js":296,"./gu":297,"./gu.js":297,"./he":298,"./he.js":298,"./hi":299,"./hi.js":299,"./hr":300,"./hr.js":300,"./hu":301,"./hu.js":301,"./hy-am":302,"./hy-am.js":302,"./id":303,"./id.js":303,"./is":304,"./is.js":304,"./it":305,"./it-ch":306,"./it-ch.js":306,"./it.js":305,"./ja":307,"./ja.js":307,"./jv":308,"./jv.js":308,"./ka":309,"./ka.js":309,"./kk":310,"./kk.js":310,"./km":311,"./km.js":311,"./kn":312,"./kn.js":312,"./ko":313,"./ko.js":313,"./ku":314,"./ku.js":314,"./ky":315,"./ky.js":315,"./lb":316,"./lb.js":316,"./lo":317,"./lo.js":317,"./lt":318,"./lt.js":318,"./lv":319,"./lv.js":319,"./me":320,"./me.js":320,"./mi":321,"./mi.js":321,"./mk":322,"./mk.js":322,"./ml":323,"./ml.js":323,"./mn":324,"./mn.js":324,"./mr":325,"./mr.js":325,"./ms":326,"./ms-my":327,"./ms-my.js":327,"./ms.js":326,"./mt":328,"./mt.js":328,"./my":329,"./my.js":329,"./nb":330,"./nb.js":330,"./ne":331,"./ne.js":331,"./nl":332,"./nl-be":333,"./nl-be.js":333,"./nl.js":332,"./nn":334,"./nn.js":334,"./oc-lnc":335,"./oc-lnc.js":335,"./pa-in":336,"./pa-in.js":336,"./pl":337,"./pl.js":337,"./pt":338,"./pt-br":339,"./pt-br.js":339,"./pt.js":338,"./ro":340,"./ro.js":340,"./ru":341,"./ru.js":341,"./sd":342,"./sd.js":342,"./se":343,"./se.js":343,"./si":344,"./si.js":344,"./sk":345,"./sk.js":345,"./sl":346,"./sl.js":346,"./sq":347,"./sq.js":347,"./sr":348,"./sr-cyrl":349,"./sr-cyrl.js":349,"./sr.js":348,"./ss":350,"./ss.js":350,"./sv":351,"./sv.js":351,"./sw":352,"./sw.js":352,"./ta":353,"./ta.js":353,"./te":354,"./te.js":354,"./tet":355,"./tet.js":355,"./tg":356,"./tg.js":356,"./th":357,"./th.js":357,"./tk":358,"./tk.js":358,"./tl-ph":359,"./tl-ph.js":359,"./tlh":360,"./tlh.js":360,"./tr":361,"./tr.js":361,"./tzl":362,"./tzl.js":362,"./tzm":363,"./tzm-latn":364,"./tzm-latn.js":364,"./tzm.js":363,"./ug-cn":365,"./ug-cn.js":365,"./uk":366,"./uk.js":366,"./ur":367,"./ur.js":367,"./uz":368,"./uz-latn":369,"./uz-latn.js":369,"./uz.js":368,"./vi":370,"./vi.js":370,"./x-pseudo":371,"./x-pseudo.js":371,"./yo":372,"./yo.js":372,"./zh-cn":373,"./zh-cn.js":373,"./zh-hk":374,"./zh-hk.js":374,"./zh-mo":375,"./zh-mo.js":375,"./zh-tw":376,"./zh-tw.js":376};function n(e){var t=r(e);return o(t)}function r(e){if(!o.o(map,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return map[e]}n.keys=function(){return Object.keys(map)},n.resolve=r,e.exports=n,n.id=382},384:function(e,t,o){"use strict";o.r(t);o(108),o(33),o(377),o(16),o(63);var n=o(44),r=o.n(n),c=o(239),l=o.n(c),d=o(383),m=o.n(d),v={components:{botonRegresar:o(241).default},data:function(){return{idServicio:localStorage.getItem("idServicio"),idStatus:Number(localStorage.getItem("idStatus")),viejo:{},nuevo:{correo:"",fechaInicioFinal:"",fechaFinFinal:null,direccion:null,telefono:null,fechaNacimientoFinal:null,cartaAceptacion:{},cartaTermino:{},informeGlobal:{}},fechaNacimiento:[],fechaInicio:[],fechaFin:[],token:{headers:{token:window.localStorage.getItem("token")}},minDate1:new Date("2020-01-01"),isLoading:!1,padding:!1}},methods:{status6:function(){return 6!==this.idStatus||(this.padding=!0,!1)},obtenerRegistro:function(){var e=this;return this.isLoading=!0,r.a.get("".concat("https://venus.acatlan.unam.mx/serviciosocial","/servicio/admin?idServicio=").concat(this.idServicio),this.token).then((function(t){e.viejo=t.data})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))},dangerToast:function(){this.$buefy.toast.open({message:"Asegurate de ingresar un PDF",type:"is-danger"})},toast:function(){this.$buefy.toast.open({message:"Se han actualizado los datos",type:"is-success"})},mostrar:function(){if(m.a.isEmail(this.nuevo.correo)||this.nuevo.direccion||this.nuevo.telefono||this.nuevo.fechaNacimientoFinal||this.nuevo.fechaInicioFinal&&this.nuevo.fechaFinFinal||this.nuevo.cartaTermino.name||this.nuevo.cartaAceptacion.name||this.nuevo.informeGlobal.name)return!this.nuevo.correo||!!m.a.isEmail(this.nuevo.correo)},validarExt:function(a){var e=/(.pdf)$/i;switch(a){case 1:e.exec(this.nuevo.cartaAceptacion.name)||(this.dangerToast(),this.nuevo.cartaAceptacion={});break;case 2:e.exec(this.nuevo.cartaTermino.name)||(this.dangerToast(),this.nuevo.cartaTermino={});break;case 3:e.exec(this.nuevo.informeGlobal.name)||(this.dangerToast(),this.nuevo.informeGlobal={})}},actualizar:function(){var e=this,t=new FormData,data={idServicio:this.idServicio};this.isLoading=!0,this.nuevo.direccion&&(data.direccion=this.nuevo.direccion),this.nuevo.correo&&(data.correo=this.nuevo.correo),this.nuevo.telefono&&(data.telefono=this.nuevo.telefono),this.nuevo.fechaInicioFinal&&(data.fechaInicio=this.nuevo.fechaInicioFinal),this.nuevo.fechaFinFinal&&(data.fechaFin=this.nuevo.fechaFinFinal),this.nuevo.fechaNacimientoFinal&&(data.fechaNacimiento=this.nuevo.fechaNacimientoFinal),t.append("data",JSON.stringify(data)),this.nuevo.cartaAceptacion&&t.append("cartaAceptacion",this.nuevo.cartaAceptacion),this.nuevo.cartaTermino&&t.append("cartaTermino",this.nuevo.cartaTermino),this.nuevo.informeGlobal&&t.append("informeGlobal",this.nuevo.informeGlobal),r.a.put("".concat("https://venus.acatlan.unam.mx/serviciosocial","/servicio/update"),t,{headers:{"Content-Type":"multipart/form-data",token:this.token.headers.token}}).then((function(t){e.toast(),e.$router.push("/admin/servicio")})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))},actualizarDialog:function(){var e=this;this.$buefy.dialog.confirm({title:"Actualizar datos",message:"¿Seguro(a) que quiere actualizar estos datos?",confirmText:"Confirmar",cancelText:"Cancelar",type:"is-success",hasIcon:!0,onConfirm:function(){return e.actualizar()}})},passwordDialog:function(){var e=this;this.$buefy.dialog.confirm({title:"Actualizar datos",message:"¿Seguro(a) que quiere actualizar la contraseña?",confirmText:"Confirmar",cancelText:"Cancelar",type:"is-success",hasIcon:!0,onConfirm:function(){return e.password()}})},password:function(){var e=this;this.isLoading=!0;var data={idServicio:this.idServicio};r.a.put("".concat("https://venus.acatlan.unam.mx/serviciosocial","/usuario/new_password_alumno"),data,this.token).then((function(t){e.$buefy.toast.open({message:"Se ha enviado el correo con la nueva contraseña",type:"is-success"}),e.$router.push("/admin")})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))},error:function(e){var t=!1;switch(e){case"invalid signature":e="Tu token no es valido, inicia sesión de nuevo.",t=!0;break;case"jwt expired":e="Tu sesión ha expirado, inicia sesión de nuevo.",t=!0;break;case"jwt malformed":e="No se encontro tu token, inicia sesión de nuevo.",t=!0;break;case"No hay token":e="Ocurrio un error al enviar tu token, inicia sesión de nuevo.",t=!0}this.$buefy.dialog.alert({title:"Error",message:e,type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),1==t&&(localStorage.clear(),this.$router.push("/"))},fecha:function(e){if(e){var t=l()(e.substr(0,10));return"".concat(t.date(),"/").concat(t.month()+1,"/").concat(t.year())}}},computed:{minDate2:function(){var e=new Date(this.fechaInicio);return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},watch:{fechaInicio:function(){this.nuevo.fechaInicioFinal=l()(this.fechaInicio[0]),this.fechaFin[0]=null},fechaFin:function(){this.nuevo.fechaFinFinal=l()(this.fechaFin[0])},fechaNacimiento:function(){this.nuevo.fechaNacimientoFinal=l()(this.fechaNacimiento[0])}},created:function(){this.obtenerRegistro()}},f=(o(386),o(8)),component=Object(f.a)(v,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"container",class:{pad:e.padding}},[o("BotonRegresar",{attrs:{path:"/admin/servicio"}}),e._v(" "),o("br"),o("br"),e._v(" "),o("p",{staticClass:"is-size-2"},[e._v("Editar información del alumno")]),e._v(" "),o("br"),e._v(" "),o("div",{staticClass:"formulario"},[o("b-field",{attrs:{label:"Correo eletrónico alumno"}},[o("b-input",{attrs:{type:"email",placeholder:e.viejo.correo},model:{value:e.nuevo.correo,callback:function(t){e.$set(e.nuevo,"correo",t)},expression:"nuevo.correo"}})],1),e._v(" "),e.status6()?o("div",[o("b-field",{attrs:{label:"Fecha de inicio"}},[o("b-datepicker",{attrs:{placeholder:e.fecha(e.viejo.fechaInicio),icon:"calendar-today","min-date":e.minDate1},model:{value:e.fechaInicio[0],callback:function(t){e.$set(e.fechaInicio,0,t)},expression:"fechaInicio[0]"}})],1),e._v(" "),o("transition",{attrs:{name:"fade"}},[e.fechaInicio[0]?o("b-field",{attrs:{label:"Fecha de fin"}},[o("b-datepicker",{attrs:{placeholder:e.fecha(e.viejo.fechaInicio),"min-date":e.minDate2,icon:"calendar-today"},model:{value:e.fechaFin[0],callback:function(t){e.$set(e.fechaFin,0,t)},expression:"fechaFin[0]"}})],1):e._e()],1),e._v(" "),o("b-field",{attrs:{label:"Dirección"}},[o("b-input",{attrs:{type:"text",placeholder:e.viejo.direccion},model:{value:e.nuevo.direccion,callback:function(t){e.$set(e.nuevo,"direccion",t)},expression:"nuevo.direccion"}})],1),e._v(" "),o("b-field",{attrs:{label:"Teléfono"}},[o("b-input",{attrs:{type:"number",placeholder:e.viejo.telefono,maxlength:"10"},model:{value:e.nuevo.telefono,callback:function(t){e.$set(e.nuevo,"telefono",t)},expression:"nuevo.telefono"}})],1),e._v(" "),o("b-field",{attrs:{label:"Fecha de nacimiento"}},[o("b-datepicker",{attrs:{placeholder:e.fecha(e.viejo.fechaNacimiento),icon:"calendar-today"},model:{value:e.fechaNacimiento[0],callback:function(t){e.$set(e.fechaNacimiento,0,t)},expression:"fechaNacimiento[0]"}})],1),e._v(" "),e.viejo.cartaAceptacion?o("p",{staticClass:"is-size-5"},[e._v("Carta de aceptación")]):e._e(),e._v(" "),o("br"),e._v(" "),e.viejo.cartaAceptacion?o("b-field",[o("b-upload",{attrs:{type:"is-black",accept:"application/pdf","drag-drop":"",expanded:""},on:{input:function(t){return e.validarExt(1)}},model:{value:e.nuevo.cartaAceptacion,callback:function(t){e.$set(e.nuevo,"cartaAceptacion",t)},expression:"nuevo.cartaAceptacion"}},[o("section",{staticClass:"section"},[o("div",{staticClass:"content has-text-centered"},[o("p",[o("b-icon",{attrs:{icon:"upload",size:"is-large"}})],1),e._v(" "),o("p",[e._v("\n "+e._s(e.nuevo.cartaAceptacion.name||"Arrastra aquí tu archivo o da click para buscar")+"\n ")])])])])],1):e._e(),e._v(" "),e.viejo.cartaTermino?o("p",{staticClass:"is-size-5"},[e._v("Carta de término")]):e._e(),e._v(" "),o("br"),e._v(" "),e.viejo.cartaTermino?o("b-field",[o("b-upload",{attrs:{type:"is-black",accept:"application/pdf","drag-drop":"",expanded:""},on:{input:function(t){return e.validarExt(2)}},model:{value:e.nuevo.cartaTermino,callback:function(t){e.$set(e.nuevo,"cartaTermino",t)},expression:"nuevo.cartaTermino"}},[o("section",{staticClass:"section"},[o("div",{staticClass:"content has-text-centered"},[o("p",[o("b-icon",{attrs:{icon:"upload",size:"is-large"}})],1),e._v(" "),o("p",[e._v("\n "+e._s(e.nuevo.cartaTermino.name||"Arrastra aquí tu archivo o da click para buscar")+"\n ")])])])])],1):e._e(),e._v(" "),e.viejo.informeGlobal?o("p",{staticClass:"is-size-5"},[e._v("Informe global")]):e._e(),e._v(" "),o("br"),e._v(" "),e.viejo.informeGlobal?o("b-field",[o("b-upload",{attrs:{type:"is-black",accept:"application/pdf","drag-drop":"",expanded:""},on:{input:function(t){return e.validarExt(3)}},model:{value:e.nuevo.informeGlobal,callback:function(t){e.$set(e.nuevo,"informeGlobal",t)},expression:"nuevo.informeGlobal"}},[o("section",{staticClass:"section"},[o("div",{staticClass:"content has-text-centered"},[o("p",[o("b-icon",{attrs:{icon:"upload",size:"is-large"}})],1),e._v(" "),o("p",[e._v("\n "+e._s(e.nuevo.informeGlobal.name||"Arrastra aquí tu archivo o da click para buscar")+"\n ")])])])])],1):e._e()],1):e._e(),e._v(" "),o("br"),e._v(" "),e.mostrar()?o("b-button",{staticClass:"is-info",on:{click:function(t){return e.actualizarDialog()}}},[e._v("\n Actualizar Datos\n ")]):o("b-button",{staticClass:"is-info",attrs:{disabled:""}},[e._v("Actualizar Datos")]),e._v(" "),o("b-button",{staticClass:"is-info",on:{click:function(t){return e.passwordDialog()}}},[e._v("\n Cambiar contraseña\n ")]),e._v(" "),o("b-loading",{attrs:{"is-full-page":!0,"can-cancel":!1},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}})],1)],1)}),[],!1,null,"23a7e499",null);t.default=component.exports;installComponents(component,{BotonRegresar:o(241).default})},386:function(e,t,o){"use strict";o(381)},387:function(e,t,o){(t=o(26)(!1)).push([e.i,".fade-enter-active[data-v-23a7e499],.fade-leave-active[data-v-23a7e499]{transition:opacity .5s}.fade-enter[data-v-23a7e499],.fade-leave-to[data-v-23a7e499]{opacity:0}.pad[data-v-23a7e499]{padding-bottom:5%;padding-top:5%}",""]),e.exports=t},402:function(e,t,o){var content=o(450);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("1bd92372",content,!0,{sourceMap:!1})},403:function(e,t,o){var content=o(452);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("b6cf8054",content,!0,{sourceMap:!1})},404:function(e,t,o){var content=o(454);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("deabb5cc",content,!0,{sourceMap:!1})},417:function(e,t,o){var content=o(531);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("63d7c05c",content,!0,{sourceMap:!1})},418:function(e,t,o){var content=o(533);"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(27).default)("3b8e778a",content,!0,{sourceMap:!1})},430:function(e,t,o){"use strict";o.r(t);var n={data:function(){return{}},props:["activeStep"]},r=(o(449),o(8)),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"progressBar my-6"},[o("b-steps",{attrs:{type:"is-success",size:"is-large","has-navigation":!1},model:{value:e.activeStep,callback:function(t){e.activeStep=t},expression:"activeStep"}},[o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Pre Registro",icon:"account-plus"}}),e._v(" "),o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Pre Registro Validado",icon:"account-clock"}}),e._v(" "),o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Registro",icon:"account"}}),e._v(" "),o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Pre Termino",icon:"account-details"}}),e._v(" "),o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Termino",icon:"account-clock"}}),e._v(" "),o("b-step-item",{attrs:{visible:e.activeStep<6,clickable:!1,label:"Liberacion",icon:"account-check"}}),e._v(" "),o("b-step-item",{staticClass:"bad",attrs:{clickable:!1,visible:6==e.activeStep,label:"Carta Aceptación Rechazada",icon:"file",type:"is-danger"}}),e._v(" "),o("b-step-item",{staticClass:"bad",attrs:{clickable:!1,visible:7==e.activeStep,label:"Carta Termino Rechazada",icon:"file",type:"is-danger "}}),e._v(" "),o("b-step-item",{staticClass:"bad",attrs:{clickable:!1,visible:8==e.activeStep,label:"Informe Global Rechazado",icon:"file",type:"is-danger"}}),e._v(" "),o("b-step-item",{staticClass:"bad",attrs:{clickable:!1,visible:9==e.activeStep,label:"Cancelado",icon:"account-cancel",type:"is-danger bad"}})],1)],1)}),[],!1,null,null,null);t.default=component.exports},431:function(e,t,o){"use strict";o.r(t);o(108);var n=o(239),r=o.n(n),c={data:function(){return{}},props:["status","alumno","programa"],methods:{fecha:function(e){var t=r()(e.substr(0,10));return"".concat(t.date(),"/").concat(t.month()+1,"/").concat(t.year())}}},l=(o(451),o(8)),component=Object(l.a)(c,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"info"},[o("div",{staticClass:"info-programa"},[o("h3",{staticClass:"title is-3"},[e._v("Información del programa")]),e._v(" "),o("p",[o("strong",[e._v(" Programa: ")]),e._v(" "+e._s(e.programa.programa))]),e._v(" "),o("p",[o("strong",[e._v(" Institución: ")]),e._v(" "+e._s(e.programa.institucion))]),e._v(" "),o("p",[o("strong",[e._v(" Dependencia: ")]),e._v(" "+e._s(e.programa.dependencia))]),e._v(" "),o("p",[o("strong",[e._v(" Clave del programa: ")]),e._v(" "+e._s(e.programa.clave))]),e._v(" "),1==e.programa.acatlan?o("div",[o("p",[o("strong",[e._v(" Programa Interno: ")]),e._v("\n "+e._s(e.programa.programaInterno)+"\n ")]),e._v(" "),o("p",[o("strong",[e._v(" Profesor: ")]),e._v(" "+e._s(e.programa.profesor))])]):e._e()]),e._v(" "),o("div",{staticClass:"info-alumno mt-6"},[o("h3",{staticClass:"title is-3"},[e._v("Información del alumno")]),e._v(" "),o("p",[o("strong",[e._v(" Nombre: ")]),e._v(" "+e._s(e.alumno.nombre))]),e._v(" "),o("p",[o("strong",[e._v(" Número de cuenta: ")]),e._v(" "+e._s(e.alumno.cuenta))]),e._v(" "),o("p",[o("strong",[e._v(" Carrera: ")]),e._v(" "+e._s(e.alumno.carrera))]),e._v(" "),o("p",[o("strong",[e._v(" Créditos: ")]),e._v(e._s(e.alumno.creditos)),e.alumno.creditos?o("span",[e._v("%")]):e._e()]),e._v(" "),o("p",[o("strong",[e._v(" Correo del alumno: ")]),e._v(" "+e._s(e.alumno.correo))]),e._v(" "),o("p",[o("strong",[e._v(" Fecha de inicio: ")]),e._v(" "+e._s(e.fecha(e.alumno.inicio)))]),e._v(" "),o("p",[o("strong",[e._v(" Fecha de finalización: ")]),e._v(" "+e._s(e.fecha(e.alumno.fin)))]),e._v(" "),o("p",[o("strong",[e._v(" Fecha de registro: ")]),e._v(" "+e._s(e.fecha(e.alumno.registro)))]),e._v(" "),e.status>=3?o("div",{staticClass:"mt-4 info-extra"},[o("p",[o("strong",[e._v(" Direccion: ")]),e._v(" "+e._s(e.alumno.direccion))]),e._v(" "),o("p",[o("strong",[e._v(" Telefono: ")]),e._v(" "+e._s(e.alumno.telefono))]),e._v(" "),o("p",[o("strong",[e._v(" Fecha de nacimiento: ")]),e._v("\n "+e._s(e.fecha(e.alumno.nacimiento))+"\n ")])]):e._e()])])}),[],!1,null,"05778b44",null);t.default=component.exports},432:function(e,t,o){"use strict";o.r(t);var n={data:function(){return{Mensajes:[{status:1,mensaje:""},{status:2,mensaje:""},{status:3,mensaje:"Te informamos que el Área de Registro y Control de Servicio Social ha validado tu solicitud de registro de servicio social por lo que el siguiente trámite lo realizarás hasta que concluyas 480 horas en un periodo de mínimo 6 meses y obtengas tu carta de término por parte de la institución, quien se encargará de subir dicho archivo a este sistema, además de responder un cuestionario sobre tu desempeño. A su vez, deberás responder el siguiente cuestionario de evaluación del programa de servicio social en donde participaste y enviar el informe global de actividades elaborado por ti, con firma y sello de visto bueno de tu jefe inmediato. En cuanto el Área de Registro y Control de Servicio Social valide tu solicitud, podrás revisar las indicaciones del siguiente paso en el panel llamado “Liberación” Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 14:00 hrs. y de 16:00 a 20:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@acatlan.unam.mx"},{status:4,mensaje:""},{status:5,mensaje:"Espera a que tus documentos sean validados por el Departamento de Servicio Social y Bolsa de Trabajo"},{status:6,mensaje:"Te confirmamos que has concluido con los trámites necesarios para la liberación de tu servicio social por lo que ahora sólo queda esperar a que en máximo 15 días hábiles se te notifique por correo electrónico a partir de cuándo puedes recoger la copia de tu carta de liberación en las ventanillas del Área de Registro y Control de Servicio Social. Cualquier duda puedes acudir al área de Registro y Control de Servicio Social en COESI de lunes a viernes de 10:00 a 13:00 hrs. y de 16:00 a 19:00 hrs. o bien, comunicarte al 5623 1686 o al correo registross@apolo.acatlan.unam.mx"},{status:7,mensaje:"carta de aceptacion rechazada"},{status:8,mensaje:"carta de termino rechazada"},{status:9,mensaje:"Informe global de actividades rechazado. Por favor reenvia el informe correctamente"},{status:10,mensaje:"servicio cancelado"}]}},props:["status"]},r=(o(453),o(8)),component=Object(r.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",e._l(e.Mensajes,(function(t){return o("div",{key:t.status,staticClass:"mensajeDiv"},[""!=t.mensaje&&t.status==e.status?o("div",[o("p",{staticClass:"mensaje has-text-justified"},[o("span",{staticClass:"block is-size-5"},[e._v("Estimado alumno(a): ")]),o("br"),o("br"),e._v("\n "+e._s(t.mensaje)+"\n ")])]):e._e()])})),0)}),[],!1,null,"3b43d0da",null);t.default=component.exports},433:function(e,t,o){"use strict";o.r(t);o(16);var n=o(239),r=o.n(n),c=o(44),l=o.n(c),d={data:function(){return{token:{headers:{token:window.localStorage.getItem("token")}},nacimiento:[],minDate:new Date,maxDate:new Date,telefono:"",direccion:"",isLoading:!1}},props:["idServicio"],methods:{reset:function(){this.nacimiento=[],this.telefono="",this.direccion=""},error:function(e){var t=!1;switch(e){case"invalid signature":e="Tu token no es valido, inicia sesión de nuevo.",t=!0;break;case"jwt expired":e="Tu sesión ha expirado, inicia sesión de nuevo.",t=!0;break;case"jwt malformed":e="No se encontro tu token, inicia sesión de nuevo.",t=!0;break;case"No hay token":e="Ocurrio un error al enviar tu token, inicia sesión de nuevo.",t=!0}this.$buefy.dialog.alert({title:"Error",message:e,type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),1==t&&(localStorage.clear(),this.$router.push("/"))},enviarRegistro:function(){var e=this;this.isLoading=!0;var data={idServicio:this.idServicio,direccion:this.direccion,telefono:this.telefono,fechaNacimiento:r()(this.nacimiento)};l.a.put("".concat("https://venus.acatlan.unam.mx/serviciosocial","/servicio/registro_validado"),data,this.token).then((function(t){e.$buefy.dialog.alert({title:"Success",message:"Se enviaron los datos correctamente",type:"is-success",hasIcon:!0,icon:"checkbox-marked-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),e.reset(),e.$parent.getData()})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))}},created:function(){var i=(new Date).getFullYear()-80,e=(new Date).getFullYear()-10;this.minDate.setFullYear(i),this.maxDate.setFullYear(e)}},m=o(8),component=Object(m.a)(d,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h3",{staticClass:"title is-3 my-5"},[e._v("Formulario Pre-registro")]),e._v(" "),o("form",[o("b-field",{attrs:{label:"Fecha de nacimiento"}},[o("b-datepicker",{attrs:{placeholder:"Fecha de nacimiento",icon:"calendar-today","min-date":e.minDate,"max-date":e.maxDate},model:{value:e.nacimiento,callback:function(t){e.nacimiento=t},expression:"nacimiento"}})],1),e._v(" "),o("b-field",{attrs:{label:"Telefono"}},[o("b-input",{attrs:{placeholder:"Telefono",maxlength:"10",type:"tel",pattern:"^[0-9-+\\s()]*$"},model:{value:e.telefono,callback:function(t){e.telefono=t},expression:"telefono"}})],1),e._v(" "),o("b-field",{attrs:{label:"Direccion"}},[o("b-input",{attrs:{maxlength:"200 ",placeholder:"Direccion",type:"textarea"},model:{value:e.direccion,callback:function(t){e.direccion=t},expression:"direccion"}})],1)],1),e._v(" "),o("div",{staticClass:"my-4 mb-6"},[o("b-field",[o("button",{staticClass:"button is-success is-medium",attrs:{disabled:""==e.nacimiento||""==e.telefono||""==e.direccion},on:{click:function(t){return e.enviarRegistro()}}},[e._v("\n Enviar\n ")])])],1),e._v(" "),o("b-loading",{attrs:{"is-full-page":!0,"can-cancel":!1},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}})],1)}),[],!1,null,null,null);t.default=component.exports;installComponents(component,{Form:o(384).default})},434:function(e,t,o){"use strict";o.r(t);o(16);var n=o(44),r=o.n(n),c={data:function(){return{token:{headers:{token:window.localStorage.getItem("token")}},isLoading:!1,file:[]}},props:["idCuestionario","informeGlobal","idServicio"],watch:{file:function(){this.file.size>=2e7&&(this.$buefy.dialog.alert({title:"Error",message:"El tamaño del archivo exede los 20MB",type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),this.file=[])}},methods:{reset:function(){this.file=[]},error:function(e){var t=!1;switch(e){case"invalid signature":e="Tu token no es valido, inicia sesión de nuevo.",t=!0;break;case"jwt expired":e="Tu sesión ha expirado, inicia sesión de nuevo.",t=!0;break;case"jwt malformed":e="No se encontro tu token, inicia sesión de nuevo.",t=!0;break;case"No hay token":e="Ocurrio un error al enviar tu token, inicia sesión de nuevo.",t=!0}this.$buefy.dialog.alert({title:"Error",message:e,type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),1==t&&(localStorage.clear(),this.$router.push("/"))},enviarInforme:function(){var e=this;this.isLoading=!0;var data={idServicio:this.idServicio},t=new FormData;t.append("data",JSON.stringify(data)),t.append("informeGlobal",this.file),r.a.put("".concat("https://venus.acatlan.unam.mx/serviciosocial","/servicio/informe_global"),t,{headers:{"Content-Type":"multipart/form-data",token:this.token.headers.token}}).then((function(t){e.$buefy.dialog.alert({title:"Success",message:"Se enviaron los datos correctamente",type:"is-success",hasIcon:!0,icon:"checkbox-marked-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),e.reset(),e.$parent.getData()})).catch((function(t){e.error(t.response.data.message)})).finally((function(){e.isLoading=!1}))}}},l=o(8),component=Object(l.a)(c,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("h3",{staticClass:"title is-4 mt-6"},[e._v("\n Cuestionario de evaluación del programa de servicio social\n ")]),e._v(" "),null==e.idCuestionario?o("div",{staticClass:"my-6"},[o("b-button",{staticClass:"border-info",attrs:{tag:"router-link",to:"/alumno/cuestionario",type:"is-info is-light ","icon-left":"book-open",size:"is-medium"}},[e._v("\n cuestionario\n ")])],1):o("div",{staticClass:"is-flex"},[o("p",{staticClass:"block is-size-5"},[e._v("Cuestionario contestado")]),e._v(" "),o("b-icon",{attrs:{icon:"check-bold",size:"is-small",type:"is-success"}})],1),e._v(" "),o("h3",{staticClass:"title is-4 mt-6"},[e._v("\n Informe global de actividades (en formato .PDF. No se aceptan fotos).\n ")]),e._v(" "),e.informeGlobal?o("div",{staticClass:"is-flex"},[o("p",{staticClass:"block is-size-5"},[e._v("Informe Global enviado.")]),e._v(" "),o("b-icon",{attrs:{icon:"check-bold",size:"is-small",type:"is-success"}})],1):o("div",[o("b-field",{attrs:{type:"black"}},[o("b-upload",{attrs:{type:"black","drag-drop":"",expanded:"",accept:"application/pdf"},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}},[o("section",{staticClass:"section"},[o("div",{staticClass:"content has-text-centered"},[o("p",[o("b-icon",{attrs:{icon:"upload",size:"is-large"}})],1),e._v(" "),o("p",[e._v("\n "+e._s(e.file.name||"Arrastra aquí tu archivo o da click para buscar")+"\n ")]),e._v(" "),o("p",[e._v("Tamaño máximo 20MB")])])])])],1),e._v(" "),o("b-field",{staticStyle:{"text-align":"center"}},[o("button",{staticClass:"button is-success is-medium mb-4",attrs:{disabled:""==e.file},on:{click:function(t){return e.enviarInforme()}}},[e._v("\n Enviar\n ")])])],1),e._v(" "),o("b-loading",{attrs:{"is-full-page":!0,"can-cancel":!1},model:{value:e.isLoading,callback:function(t){e.isLoading=t},expression:"isLoading"}})],1)}),[],!1,null,null,null);t.default=component.exports},449:function(e,t,o){"use strict";o(402)},450:function(e,t,o){(t=o(26)(!1)).push([e.i,".b-steps .steps .step-items .step-item.is-danger:after,.b-steps .steps .step-items .step-item.is-danger:before{display:none!important;content:none!important}",""]),e.exports=t},451:function(e,t,o){"use strict";o(403)},452:function(e,t,o){(t=o(26)(!1)).push([e.i,".info-alumno p[data-v-05778b44],.info-programa p[data-v-05778b44]{margin-bottom:.8rem}",""]),e.exports=t},453:function(e,t,o){"use strict";o(404)},454:function(e,t,o){(t=o(26)(!1)).push([e.i,".mensaje[data-v-3b43d0da]{margin:3.5rem 0}",""]),e.exports=t},530:function(e,t,o){"use strict";o(417)},531:function(e,t,o){(t=o(26)(!1)).push([e.i,".container[data-v-b5e48218]{padding:.75rem}",""]),e.exports=t},532:function(e,t,o){"use strict";o(418)},533:function(e,t,o){(t=o(26)(!1)).push([e.i,".border-info[data-v-b5e48218]{border:1px solid #167df0}.info-alumno p[data-v-b5e48218],.info-programa p[data-v-b5e48218]{margin-bottom:.8rem}.mensaje[data-v-b5e48218]{margin:3.5rem 0}.else[data-v-b5e48218]{display:flex;align-content:center!important}",""]),e.exports=t},562:function(e,t,o){"use strict";o.r(t);o(108),o(168);var n=o(44),r=o.n(n),c=o(430),l=o(431),d=o(432),m=o(433),v=o(434),f={data:function(){return{token:{headers:{token:window.localStorage.getItem("token")}},activeStep:"",status:"",alumno:{carrera:"",creditos:"",nombre:"",cuenta:"",correo:"",direccion:"",nacimiento:"",telefono:"",idCuestionario:"",informeGlobal:"",idAlumno:"",idCarrera:"",idServicio:"",inicio:"",fin:"",registro:""},programa:{programa:"",institucion:"",dependencia:"",clave:"",acatlan:"",programaInterno:"",profesor:""}}},components:{Steps:c.default,Mensajes:d.default,Info:l.default,PreRegistroValidado:m.default,PreTermino:v.default},methods:{error:function(e){var t=!1;switch(e){case"invalid signature":e="Tu token no es valido, inicia sesión de nuevo.",t=!0;break;case"jwt expired":e="Tu sesión ha expirado, inicia sesión de nuevo.",t=!0;break;case"jwt malformed":e="No se encontro tu token, inicia sesión de nuevo.",t=!0;break;case"No hay token":e="Ocurrio un error al enviar tu token, inicia sesión de nuevo.",t=!0}this.$buefy.dialog.alert({title:"Error",message:e,type:"is-danger",hasIcon:!0,icon:"alert-circle",iconPack:"mdi",ariaRole:"alertdialog",ariaModal:!0}),1==t&&(localStorage.clear(),this.$router.push("/"))},getData:function(){var e=this;r.a.get("".concat("https://venus.acatlan.unam.mx/serviciosocial","/servicio/alumno?idUsuario=").concat(localStorage.getItem("idUsuario")),this.token).then((function(t){e.activeStep=t.data.Status.idStatus-1,e.status=t.data.Status.idStatus,e.programa.programa=t.data.Programa.programa,e.programa.dependencia=t.data.Programa.dependencia,e.programa.institucion=t.data.Programa.institucion,e.programa.clave=t.data.Programa.clavePrograma,e.programa.profesor=t.data.profesor,e.programa.acatlan=t.data.Programa.acatlan,e.programa.programaInterno=t.data.programaInterno,e.alumno.creditos=parseInt(t.data.creditos,10),e.alumno.carrera=t.data.Carrera.carrera,e.alumno.idCarrera=t.data.Carrera.idCarrera,e.alumno.correo=t.data.correo,e.alumno.inicio=t.data.fechaInicio,e.alumno.fin=t.data.fechaFin,e.alumno.registro=t.data.createdAt,e.alumno.direccion=t.data.direccion,e.alumno.nacimiento=t.data.fechaNacimiento,e.alumno.telefono=t.data.telefono,e.alumno.idServicio=t.data.idServicio,e.alumno.idCuestionario=t.data.idCuestionarioAlumno,e.alumno.informeGlobal=t.data.informeGlobal,e.alumno.nombre=localStorage.getItem("nombre"),e.alumno.cuenta=localStorage.getItem("usuario"),window.localStorage.setItem("idCuestionarioAlumno",t.data.idCuestionarioAlumno),window.localStorage.setItem("idServicio",t.data.idServicio)})).catch((function(t){e.error(t.response.data.message)}))}},created:function(){this.getData()}},h=(o(530),o(532),o(8)),component=Object(h.a)(f,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",[o("div",{staticClass:"container"},[o("Steps",{attrs:{activeStep:e.activeStep}}),e._v(" "),o("Mensajes",{attrs:{status:e.status}}),e._v(" "),o("Info",{attrs:{status:e.status,alumno:e.alumno,programa:e.programa}}),e._v(" "),2==e.status?o("PreRegistroValidado",{attrs:{idServicio:e.alumno.idServicio}}):e._e(),e._v(" "),4==e.status||9==e.status?o("PreTermino",{attrs:{idServicio:e.alumno.idServicio,idCuestionario:e.alumno.idCuestionario,informeGlobal:e.alumno.informeGlobal}}):e._e()],1)])}),[],!1,null,"b5e48218",null);t.default=component.exports;installComponents(component,{Steps:o(430).default,Mensajes:o(432).default,Info:o(431).default,PreRegistroValidado:o(433).default,PreTermino:o(434).default})}}]);