{"version":3,"sources":["webpack:///./src/assets/images/logo/assignment.png","webpack:///./src/views/Alumno/Inscripciones.vue?534c","webpack:///./src/views/Alumno/Inscripciones.vue?314c","webpack:///./src/views/Alumno/js/Inscripciones.js","webpack:///./src/views/Alumno/js/Inscripciones.js?d125","webpack:///./src/views/Alumno/Inscripciones.vue?e619"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","attrs","inscripciones","length","staticStyle","_l","file","key","id","url","_s","nombre","substring","inscripcion","nombrePrograma","urlImagen","on","onLoadErrorImageHandler","nombreCurso","modalidad","$event","activeUpload","idGrupo","getFileUpload","name","params","programa","style","arrFilesUpload","nombreArchivo","baseImg","urlArchivo","staticRenderFns","listaDocumentos","methods","idAlumno","baseUrl","response","fetch","method","headers","sessionStorage","getItem","rs","json","status","result","forEach","push","$el","querySelector","classList","remove","error","console","then","catch","log","documentos","event","target","src","$BASE","Authorization","getDetailsAlumno","getDocumentosPreinscritos","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,+B,oCCA3C,yBAAsiB,EAAG,G,2CCAziB,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAACF,EAAG,MAAM,CAACE,YAAY,mDAAmD,CAACF,EAAG,MAAM,CAACA,EAAG,KAAK,CAACJ,EAAIO,GAAG,6DAA6DH,EAAG,YAAY,CAACE,YAAY,qBAAqBE,MAAM,CAAC,KAAO,OAAO,IAAM,EAAQ,YAA2C,OAAqC,IAA7BR,EAAIS,cAAcC,OAAcN,EAAG,MAAM,CAACE,YAAY,0BAA0B,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,2CAA2C,CAACF,EAAG,UAAU,CAACI,MAAM,CAAC,MAAQ,wBAAwB,C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B,8BAA8B1C,KAAK4B,UAAW,CACjFiB,OAAQ,MACRC,QAAS,CAAEuB,cAAetB,eAAeC,QAAQ,aAE7C,OAAEG,EAAM,OAAEC,SAAiBH,EAAGC,OAErB,MAAXC,IACFnD,KAAKkC,eAAiBkB,KAI5B,UACEpD,KAAKsE,iBAAiBvB,eAAeC,QAAQ,UAC7ChD,KAAKuE,8BClGkI,I,wBCQvIC,EAAY,eACd,EACA1E,EACAwC,GACA,EACA,KACA,KACA,MAIa,aAAAkC,E","file":"js/chunk-495bc6a2.1f0c456e.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/assignment.81ff94b9.png\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Inscripciones.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Inscripciones.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vx-row mt-base\"},[_c('div',{staticClass:\"vx-col w-full mb-base\"},[_c('div',{staticClass:\"vx-row mt-base flex items-center justify-center\"},[_c('div',[_c('h3',[_vm._v(\"Aquí aparecerán los programas a los que estás inscrito.\")]),_c('vs-avatar',{staticClass:\"mx-auto my-6 block\",attrs:{\"size\":\"80px\",\"src\":require(\"@/assets/images/logo/assignment.png\")}})],1)])]),(_vm.inscripciones.length === 0)?_c('div',{staticClass:\"vx-col w-full mb-base\"},[_c('div',{staticClass:\"vx-row my-div\"},[_c('div',{staticClass:\"vx-col w-full md:w-1/3 sm:w-1/2 mb-base\"},[_c('vx-card',{attrs:{\"title\":\"Lista de documentos\"}},[_c('div',{staticClass:\"cent\",staticStyle:{\"overflow-y\":\"scroll\",\"height\":\"300px\"}},[_c('div',{staticClass:\"my-6\"},_vm._l((_vm.listaDocumentos),function(file){return _c('div',{key:file.id},[_c('vx-card',{staticClass:\"mt-4\",staticStyle:{\"padding-top\":\"0px\",\"border-left-style\":\"solid\",\"border-left-color\":\"#3573a1\",\"text-align\":\"left\"}},[_c('div',{staticStyle:{\"margin\":\"-11px !important\"}},[_c('a',{attrs:{\"href\":file.url,\"target\":\"_blank\"}},[_c('p',{staticClass:\"text-gray\"},[_vm._v(\"\\n \"+_vm._s(file.nombre.length > 50\n ? file.nombre.substring(0, 150) + \"...\"\n : file.nombre)+\"\\n \")])])])])],1)}),0)])])],1)])]):_vm._l((_vm.inscripciones),function(inscripcion){return _c('div',{key:inscripcion.nombrePrograma,staticClass:\"vx-col w-full md:w-1/3 sm:w-1/2 mb-base\"},[_c('vx-card',[_c('div',{staticClass:\"cent\"},[_c('img',{staticClass:\"cent responsive rounded-lg programa-img\",attrs:{\"alt\":\"imagen-programa\",\"src\":inscripcion.urlImagen},on:{\"error\":_vm.onLoadErrorImageHandler}}),_c('div',{staticClass:\"my-6\"},[_c('h4',{staticClass:\"mb-2\"},[_vm._v(_vm._s(inscripcion.nombrePrograma))]),_c('h4',{staticClass:\"mb-2\"},[_vm._v(_vm._s(inscripcion.nombreCurso))]),_c('p',{staticClass:\"text-gray\"},[_vm._v(_vm._s(inscripcion.modalidad))])])]),_c('vs-divider'),_c('div',{staticClass:\"flex vx-row text-center\"},[_c('div',{staticClass:\"vx-col md:w-1/2\"},[_c('vs-button',{staticClass:\"mt-4 shadow-sm small\",on:{\"click\":function($event){_vm.activeUpload = true;\n _vm.idGrupo = inscripcion.idGrupo;\n _vm.getFileUpload();}}},[_vm._v(\"\\n Documentos\\n \")])],1),_c('div',{staticClass:\"vx-col md:w-1/2\"},[_c('vs-button',{staticClass:\"mt-4 shadow-lg small\",attrs:{\"to\":{\n name: 'DetalleInscripcion',\n params: { programa: inscripcion },\n }}},[_vm._v(\"\\n Ver Información\\n \")])],1)])],1)],1)}),_c('vs-prompt',{attrs:{\"vs-title\":\"Documentos\",\"vs-accept-text\":\"Aceptar\",\"vs-cancel\":\"false\",\"vs-active\":_vm.activeUpload},on:{\"update:vsActive\":function($event){_vm.activeUpload=$event},\"update:vs-active\":function($event){_vm.activeUpload=$event}}},[_c('div',{staticClass:\"vx-row\",style:((\"height: \" + (_vm.arrFilesUpload.length > 0 ? '30rem' : 'auto') + \";\\n overflow-y: \" + (_vm.arrFilesUpload.length > 0 ? 'scroll' : 'auto') + \";\\n text-align: center;\\n justify-content: center;\\n align-items: center;\"))},[(_vm.arrFilesUpload.length === 0)?_c('div',{staticClass:\"vx-col w-full flex items-center justify-center\"},[_c('div',[_c('h3',{staticStyle:{\"font-size\":\"16px\",\"font-weight\":\"bold\",\"color\":\"gray\"}},[_vm._v(\"\\n No existen documentos que mostrar.\\n \")])])]):_vm._l((_vm.arrFilesUpload),function(file){return _c('div',{key:file.nombreArchivo,staticClass:\"vx-col w-full mb-base\"},[_c('vx-card',{staticStyle:{\"padding-top\":\"0px\",\"border-left-style\":\"solid\",\"border-left-color\":\"#3573a1\",\"text-align\":\"left\"}},[_c('div',{staticClass:\"flex\",staticStyle:{\"margin\":\"-11px !important\"}},[_c('a',{attrs:{\"href\":_vm.baseImg + file.urlArchivo,\"target\":\"_blank\"}},[_c('p',{staticClass:\"text-gray\"},[_vm._v(\"\\n \"+_vm._s(file.nombreArchivo.length > 50\n ? file.nombreArchivo.substring(0, 150) + \"...\"\n : file.nombreArchivo)+\"\\n \")])])])])],1)})],2)])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import BASE from '../../../../vue.config.js'\r\n\r\nexport default {\r\n data() {\r\n return {\r\n inscripciones: [],\r\n activeUpload: false,\r\n arrFilesUpload: [],\r\n idGrupo: '',\r\n listaDocumentos: [],\r\n }\r\n },\r\n\r\n methods: {\r\n\r\n async getDetailsAlumno(idAlumno) {\r\n this.baseImg = BASE.baseUrl;\r\n\r\n try {\r\n const response = await fetch(`${BASE.baseUrl}api/detalleAlumno/${idAlumno}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': sessionStorage.getItem('token'),\r\n 'plataforma': 2\r\n }\r\n });\r\n const rs = await response.json();\r\n\r\n if (rs.status === 200) {\r\n rs.result.inscripciones.forEach(inscripcion => {\r\n inscripcion.urlImagen = `${BASE.baseUrl}${inscripcion.urlImagen}`;\r\n this.inscripciones.push(inscripcion);\r\n\r\n });\r\n if (rs.result.inscripciones.length == 0) {\r\n this.$el.querySelector('.my-div').classList.remove('my-div');\r\n }\r\n }\r\n } catch (error) {\r\n console.error('error:', error);\r\n }\r\n\r\n // this.baseImg = BASE.baseUrl;\r\n // fetch(`${BASE.baseUrl}api/detalleAlumno/${idAlumno}`, {\r\n // method: 'GET',\r\n // headers: {\r\n // 'Authorization': sessionStorage.getItem('token'),\r\n // 'plataforma':2\r\n // }\r\n // })\r\n // .then(rs => rs.json())\r\n // .catch(error => console.log('error:', error))\r\n // .then(rs => {\r\n // if (rs.status === 200) {\r\n // \trs.result.inscripciones.forEach(inscripcion=>{\r\n // inscripcion.urlImagen = `${BASE.baseUrl}${inscripcion.urlImagen}`\r\n // \t\tthis.inscripciones.push(inscripcion);\r\n // this.isVisible = true;\r\n // \t})\r\n // }\r\n // });\r\n },\r\n\r\n getDocumentosPreinscritos() {\r\n this.baseImg = BASE.baseUrl;\r\n fetch(`${BASE.baseUrl}api/ListadoPreinscritos`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': sessionStorage.getItem('token'),\r\n }\r\n })\r\n .then(rs => rs.json())\r\n .catch(error => console.log('error:', error))\r\n .then(rs => {\r\n if (rs.status === 200) {\r\n this.listaDocumentos = rs.result.documentos;\r\n }\r\n });\r\n },\r\n onLoadErrorImageHandler(event) {\r\n //event.target.src = 'http://aulavirtualneurochangeconsulting.com:8080/placeholders/logo_impulsor_v2_transparent.png';\r\n //event.target.src = 'https://impulsorintelectualhumanista.com/ImpulsorDesarrollo//GALERIA/1/06-57-08-232854.jpg';\r\n event.target.src = 'https://impulsorintelectualhumanista.com/ImpulsorServices/img/assignment.png';\r\n },\r\n async getFileUpload() {\r\n const rs = await fetch(`${this.$BASE.baseUrl}api/ListaDocumentos/${this.idGrupo}`, {\r\n method: 'GET',\r\n headers: { Authorization: sessionStorage.getItem('token') }\r\n });\r\n const { status, result } = await rs.json();\r\n\r\n if (status === 200) {\r\n this.arrFilesUpload = result;\r\n }\r\n },\r\n },\r\n created() {\r\n this.getDetailsAlumno(sessionStorage.getItem('token'));\r\n this.getDocumentosPreinscritos();\r\n },\r\n\r\n\r\n}\r\n","import mod from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./Inscripciones.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/eslint-loader/index.js??ref--12-0!./Inscripciones.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Inscripciones.vue?vue&type=template&id=89c47938&\"\nimport script from \"./js/Inscripciones.js?vue&type=script&lang=js&\"\nexport * from \"./js/Inscripciones.js?vue&type=script&lang=js&\"\nimport style0 from \"./Inscripciones.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}