{"version":3,"sources":["webpack:///./src/views/VejezAnticipada.vue?596e","webpack:///./src/views/VejezAnticipada.vue?a445","webpack:///./src/views/VejezAnticipada.vue?48ee","webpack:///./src/views/VejezAnticipada.vue?1e2f","webpack:///./src/views/VejezAnticipada.vue?7e8d"],"names":["render","_vm","this","_h","$createElement","_c","_self","_m","staticClass","attrs","user","showValidationMessage","_e","validacionCertificacionTss","on","ValidarCertificacionTss","staticRenderFns","_v","loading","showCommunicationError","validationService","ValidationService","afiliadoService","AfiliadoService","requisitosBeneficio","aplicaTramiteYCumpleRequisitos","showPage","tableFields","key","label","sortable","cedula","esAfiInactivo","$router","push","secuencia","Promise","resolve","reject","validateVejezAnticipada","then","response","data","respCode","entity","aplicaTramite","setValidacionCertificacionTssAction","close","catch","fire","text","icon","timerProgressBar","onBeforeOpen","showLoading","allowOutsideClick","components","NameAndCedula","ValidationRequisitos","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAQF,EAAY,SAAEI,EAAG,MAAM,CAACJ,EAAIM,GAAG,GAAGN,EAAIM,GAAG,GAAGF,EAAG,MAAM,CAACG,YAAY,4BAA4B,CAACH,EAAG,MAAM,CAACG,YAAY,YAAY,CAACH,EAAG,gBAAgB,CAACI,MAAM,CAAC,KAAOR,EAAIS,SAAS,GAAGL,EAAG,MAAM,CAACG,YAAY,0BAA0B,CAACP,EAAIM,GAAG,GAAKN,EAAIU,sBAAuGV,EAAIW,KAApFP,EAAG,MAAM,CAACG,YAAY,cAAcC,MAAM,CAAC,GAAK,mBAAmB,CAACR,EAAIM,GAAG,OAAgBF,EAAG,uBAAuB,CAACI,MAAM,CAAC,kBAAoB,EAAE,sBAAwBR,EAAIU,sBAAsB,2BAA6BV,EAAIY,4BAA4BC,GAAG,CAAC,wBAA0Bb,EAAIc,4BAA4B,KAAKd,EAAIW,MAClrBI,EAAkB,CAAC,WA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,eAEPC,mBAAmB,IAGjB9B,EACFvB,KAAK+B,QAAQC,KAAK,+BAElBhC,KAAKS,uBAAwB,EAC7B,IAAKoC,SApBF,gDA7LT,iEAAsC,QACpB,gBAAf,eAAO,S,2BAER,gBADC,eAAO,wC,0DAFW,EAAQ,gBAN5B,eAAU,CACTS,WAAY,CACVC,gBAAA,KACAC,uBAAA,SAGiB,WCjHqX,I,wBCQtYC,EAAY,eACd,EACA3D,EACAgB,GACA,EACA,KACA,WACA,MAIa,aAAA2C,E,6CCnBf,W","file":"js/chunk-7ce86e5e.75e69075.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.showPage)?_c('div',[_vm._m(0),_vm._m(1),_c('div',{staticClass:\"container-afp shadow-box\"},[_c('div',{staticClass:\"row mx-0\"},[_c('NameAndCedula',{attrs:{\"user\":_vm.user}})],1),_c('div',{staticClass:\"row margin-top-25 mx-0\"},[_vm._m(2),(!_vm.showValidationMessage)?_c('div',{staticClass:\"tab-content\",attrs:{\"id\":\"nav-tabContent\"}},[_vm._m(3)]):_vm._e()]),_c('ValidationRequisitos',{attrs:{\"TipoBeneficioEnum\":5,\"ShowValidationMessage\":_vm.showValidationMessage,\"validacionCertificacionTss\":_vm.validacionCertificacionTss},on:{\"ValidarCertificacionTss\":_vm.ValidarCertificacionTss}})],1)]):_vm._e()}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"cta-site\"},[_c('img',{attrs:{\"src\":require(\"../assets/images/bg-cat.jpg\"),\"alt\":\"\"}}),_c('div',[_c('div',{staticClass:\"fixed-height-61\"})])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"center\"},[_c('h3',{staticClass:\"page-title\"},[_vm._v(\"\\n Solicitud de Pensión por Vejez Anticipada\\n \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"nav nav-tabs\"},[_c('li',{staticClass:\"nav-item\"},[_c('a',{staticClass:\"nav-link active blue-text\",attrs:{\"href\":\"#\"}},[_vm._v(\"Pensión por Vejez Anticipada\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tab-pane fade show active\",attrs:{\"id\":\"nav-ingreso\",\"role\":\"tabpanel\",\"aria-labelledby\":\"nav-home-tab\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-6\"},[_c('p',{staticClass:\"info-text\"},[_vm._v(\"\\n Tienes derecho a la Pensión por Vejez Anticipada cuando\\n cumples con las siguientes condiciones:\\n \")]),_c('ul',{staticClass:\"info-text\"},[_c('li',[_vm._v(\"• Tener 55 años o más\")]),_c('li',[_vm._v(\"\\n • Haber acumulado un fondo que te permita disfrutar de una\\n pensión que supere en un 50% o más la pensión mínima\\n establecida.\\n \")])]),_c('p',{staticClass:\"info-text\"},[_vm._v(\"\\n Pensión mínima: equivale al cien por ciento (100%) del salario\\n mínimo legal más bajo.\\n \")])]),_c('div',{staticClass:\"col-md-6\"},[_c('p',{staticClass:\"info-text\"},[_vm._v(\"\\n Para suscripción de este beneficio deberás completar,\\n siguiendo las instrucciones, el formulario ‘‘Solicitud de\\n Pensión por Vejez’’, y tener a mano la documentación\\n siguiente:\\n \")]),_c('ul',{staticClass:\"info-text\"},[_c('li',[_vm._v(\"\\n • Extracto de su Acta de Nacimiento, debidamente\\n certificada.\\n \")]),_c('li',[_vm._v(\"• Copia de su Cédula de Identidad.\")])])])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport NameAndCedula from \"@/components/person/NameAndCedula.vue\";\r\nimport ValidationRequisitos from \"@/components/ValidationRequisitos.vue\";\r\nimport ValidationService from \"@/services/ValidationService\";\r\nimport User from \"../models/User\";\r\nimport ValidacionCertificacionTss from \"@/models/ValidacionCertificacionTss\";\r\nimport { Action, Getter } from \"vuex-class\";\r\nimport { AxiosResponse } from \"axios\";\r\nimport ServiceResponseEntity from \"@/services/response-models/ServiceResponseEntity\";\r\nimport RequisitoBeneficio, {\r\n Requisito,\r\n ParametrosValidacionRequisitosBeneficio,\r\n} from \"@/models/RequisitoBeneficio\";\r\nimport TipoRequisitoEnum from \"@/enums/TipoRequisitoEnum\";\r\nimport TipoBeneficioEnum from \"@/enums/TipoBeneficioEnum\";\r\nimport Swal from \"sweetalert2\";\r\nimport AfiliadoService from \"@/services/AfiliadoService\";\r\nimport ServiceResponseSolicitudes from \"@/services/response-models/ServiceResponseSolicitudes\";\r\nimport ParametrosObtencionPresolicitud from \"@/models/ParametrosObtencionPresolicitud\";\r\nimport Presolicitud from \"@/models/Presolicitud\";\r\n\r\n@Component({\r\n components: {\r\n NameAndCedula,\r\n ValidationRequisitos,\r\n },\r\n})\r\nexport default class Cesantia extends Vue {\r\n @Getter(\"user\") user: User;\r\n @Action(\"setValidacionCertificacionTssAction\")\r\n setValidacionCertificacionTssAction;\r\n public loading: boolean = false;\r\n public showCommunicationError: boolean = false;\r\n public validationService = new ValidationService();\r\n public afiliadoService = new AfiliadoService();\r\n public validacionCertificacionTss: ValidacionCertificacionTss = null;\r\n public requisitosBeneficio: RequisitoBeneficio = null;\r\n public aplicaTramiteYCumpleRequisitos: boolean = false;\r\n public showValidationMessage: boolean = false;\r\n public TipoBeneficioEnum: TipoBeneficioEnum;\r\n public showPage: boolean = false;\r\n public tableFields: Array<{\r\n key: string;\r\n label: string;\r\n sortable: boolean;\r\n formatter?: (value: any, key: any, item: any) => any;\r\n }> = [\r\n { key: \"idRNC\", label: \"RNC\", sortable: false },\r\n { key: \"razonSocial\", label: \"Empleador\", sortable: false },\r\n ];\r\n\r\n created() {\r\n if (this.user.cedula && this.user.esAfiInactivo) {\r\n this.$router.push(\"/\");\r\n }\r\n this.showPage = true;\r\n }\r\n\r\n // public obtenerPresolicitudEnProceso(): Promise {\r\n // return new Promise((resolve, reject) => {\r\n // this.afiliadoService\r\n // .getPresolicitud(\r\n // new ParametrosObtencionPresolicitud(\r\n // null,\r\n // this.$store.state.user.cedula,\r\n // null,\r\n // null\r\n // )\r\n // )\r\n // .then((response: AxiosResponse) => {\r\n // if (\r\n // response.data.solicitudes &&\r\n // response.data.solicitudes.length > 0\r\n // ) {\r\n // resolve(\r\n // response.data.solicitudes.find(\r\n // (x) =>\r\n // (x.tipoBeneficio ===\r\n // TipoBeneficioEnum.IngresoTardio.toString()) &&\r\n // (!x.solCancelada) &&\r\n // (!x.docFirmado)\r\n // )\r\n // );\r\n // } else {\r\n // resolve(null);\r\n // }\r\n // })\r\n // .catch((err) => {\r\n // reject();\r\n // });\r\n // });\r\n // }\r\n\r\n // public async validar() {\r\n // this.loading = true;\r\n // // const presolicitudEnProceso = await this.obtenerPresolicitudEnProceso();\r\n // const presolicitudEnProceso = null;\r\n // if (!presolicitudEnProceso) {\r\n // Swal.fire({\r\n // text:\r\n // \"Valoramos tu tiempo. Este proceso puede tomar unos minutos. Gracias por utilizar nuestra plataforma digital de beneficios.\",\r\n // icon: \"info\",\r\n // timerProgressBar: true,\r\n // onBeforeOpen: () => {\r\n // Swal.showLoading();\r\n // },\r\n // allowOutsideClick: false,\r\n // });\r\n // this.showCommunicationError = false;\r\n // this.requisitosBeneficio = await this.validarRequisitosBeneficio();\r\n // this.aplicaTramiteYCumpleRequisitos =\r\n // this.requisitosBeneficio.aplicaTramite &&\r\n // this.requisitosBeneficio.requisitos.every(\r\n // (x) => x.cumpleRequisito\r\n // );\r\n\r\n // //Ahora siempre validar la TSS\r\n // // this.validacionCertificacionTss = await this.validarIngresoTardio(this.requisitosBeneficio.secuencia);\r\n // // if (this.aplicaTramiteYCumpleRequisitos\r\n // // && this.validacionCertificacionTss.aplicaTramite) {\r\n // // this.$router.push(\"/registro-ingreso-tardio\");\r\n // // }\r\n // this.showValidationMessage = true;\r\n // Swal.close();\r\n // } else {\r\n // Swal.fire({\r\n // text: \"Ya tienes una solicitud del beneficio de Cesantía en proceso.\",\r\n // confirmButtonText: \"Ir a mi solicitud\",\r\n // icon: \"info\",\r\n // onClose: () => {\r\n // this.$router.push({\r\n // path: \"/registro-cesantia\",\r\n // query: {\r\n // numeroSolicitud: presolicitudEnProceso.numeroSolicitud.toString(),\r\n // },\r\n // });\r\n // },\r\n // });\r\n // }\r\n // this.loading = false;\r\n // }\r\n\r\n // public validarRequisitosBeneficio(): Promise {\r\n // return new Promise((resolve, reject) => {\r\n // const parametrosValidacionRequisitosBeneficio = new ParametrosValidacionRequisitosBeneficio(\r\n // null,\r\n // this.user.codCuenta,\r\n // TipoRequisitoEnum.Validacion,\r\n // TipoBeneficioEnum.Cesantia\r\n // );\r\n // this.validationService\r\n // .validarRequisitosBeneficios(\r\n // parametrosValidacionRequisitosBeneficio\r\n // )\r\n // .then(\r\n // (\r\n // response: AxiosResponse<\r\n // ServiceResponseEntity\r\n // >\r\n // ) => {\r\n // // TODO: REMOVER\r\n // // response.data.entity.requisitos.forEach((x) => {\r\n // // x.cumpleRequisito = true;\r\n // // });\r\n // resolve(response.data.entity);\r\n // }\r\n // )\r\n // .catch(() => {\r\n // Swal.close();\r\n // this.showCommunicationError = true;\r\n // this.loading = false;\r\n // reject();\r\n // });\r\n // });\r\n // }\r\n\r\n public validateVejezAnticipada(\r\n secuencia: string\r\n ): Promise {\r\n return new Promise((resolve, reject) => {\r\n this.validationService\r\n .validateVejezAnticipada(secuencia)\r\n .then(\r\n (\r\n response: AxiosResponse<\r\n ServiceResponseEntity\r\n >\r\n ) => {\r\n if (response.data.respCode === 200) {\r\n if (response.data.entity.aplicaTramite) {\r\n this.setValidacionCertificacionTssAction(response.data.entity);\r\n }\r\n Swal.close();\r\n this.loading = false;\r\n resolve(response.data.entity);\r\n } else {\r\n Swal.close();\r\n this.showCommunicationError = true;\r\n this.loading = false;\r\n reject();\r\n }\r\n }\r\n )\r\n .catch(() => {\r\n Swal.close();\r\n this.showCommunicationError = true;\r\n this.loading = false;\r\n reject();\r\n });\r\n });\r\n }\r\n\r\n public navigateToSolicitudes(): void {\r\n this.$router.push(\"/home\");\r\n }\r\n\r\n public async ValidarCertificacionTss(\r\n secuencia,\r\n aplicaTramiteYCumpleRequisitos\r\n ) {\r\n //this.showValidationMessage = true;\r\n Swal.fire({\r\n text:\r\n \"Valoramos tu tiempo. Este proceso puede tomar unos minutos. Gracias por utilizar nuestra plataforma digital de beneficios.\",\r\n icon: \"info\",\r\n timerProgressBar: true,\r\n onBeforeOpen: () => {\r\n Swal.showLoading();\r\n },\r\n allowOutsideClick: false,\r\n });\r\n\r\n if (aplicaTramiteYCumpleRequisitos) {\r\n this.$router.push(\"/registro-vejez-anticipada\");\r\n } else {\r\n this.showValidationMessage = true;\r\n Swal.close();\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VejezAnticipada.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VejezAnticipada.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./VejezAnticipada.vue?vue&type=template&id=0d812094&scoped=true&\"\nimport script from \"./VejezAnticipada.vue?vue&type=script&lang=ts&\"\nexport * from \"./VejezAnticipada.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./VejezAnticipada.vue?vue&type=style&index=0&id=0d812094&scoped=true&lang=css&\"\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 \"0d812094\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VejezAnticipada.vue?vue&type=style&index=0&id=0d812094&scoped=true&lang=css&\""],"sourceRoot":""}