{"version":3,"sources":["webpack:///./src/views/ActualizacionDatos.vue?9f28","webpack:///./src/views/ActualizacionDatos.vue?2b60","webpack:///./src/views/ActualizacionDatos.vue?45df","webpack:///./src/views/ActualizacionDatos.vue?14dc","webpack:///./src/views/ActualizacionDatos.vue?0114","webpack:///./src/models/BeneficiarioNoAfiliado.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","user","correoElectronico1","correoElectronico2","celular","_e","actualizarDatos","on","navigateToRegistroFallecimiento","$event","directives","name","rawName","value","expression","ref","attrs","scopedSlots","_u","key","fn","errors","domProps","target","composing","nuevoCorreoElectronico","length","nuevoTelefonoCelular","confirmarDatos","staticRenderFns","afiliadoService","AfiliadoService","$refs","actualizacionDatosForm","validate","then","isValid","fire","text","icon","timerProgressBar","onBeforeOpen","showLoading","beneficiarioNoAfiliado","BeneficiarioNoAfiliado","trim","cedulaBeneficiario","cedula","response","close","data","respCode","Object","assign","$store","dispatch","showConfirmButton","timer","onClose","$router","push","confirmButtonText","component","password","primerNombre","segundoNombre","primerApellido","segundoApellido","telefonoResidencia","otroTelefono","domicilio","numero","edificio","apartamento","codSector","codCiudad","viaRegistro","viaNotificacion","contrasena"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,4CAA4C,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,IAAI,CAACE,YAAY,sBAAsB,CAACN,EAAIO,GAAG,wPAAyPP,EAAQ,KAAE,CAACI,EAAG,IAAI,CAACE,YAAY,sBAAsB,CAACF,EAAG,IAAI,CAACJ,EAAIO,GAAG,iCAAiCP,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,KAAKC,oBAAsBV,EAAIS,KAAKE,oBAAoB,wBAAwBP,EAAG,IAAI,CAACE,YAAY,sBAA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S,2BADS,EAAkB,gBADtC,eAAU,KACU,WC9FwX,I,wBCQzYE,EAAY,eACd,EACAvE,EACAsC,GACA,EACA,KACA,WACA,MAIa,aAAAiC,E,6CCnBf,W,6GCAqBlB,EACjB,WACWE,EACAiB,EACAC,EACAC,EACAC,EACAC,EACAjE,EACAC,EACAC,EACAgE,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAAmB,uBAnBnB,KAAAhC,qBACA,KAAAiB,WACA,KAAAC,eACA,KAAAC,gBACA,KAAAC,iBACA,KAAAC,kBACA,KAAAjE,qBACA,KAAAC,qBACA,KAAAC,UACA,KAAAgE,qBACA,KAAAC,eACA,KAAAC,YACA,KAAAC,SACA,KAAAC,WACA,KAAAC,cACA,KAAAC,YACA,KAAAC,YACA,KAAAC,cACA,KAAAC,kBACA,KAAAC","file":"js/chunk-13e8092f.35937e9f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"container d-flex flex-column margin-y-25\"},[_c('div',{staticClass:\"mb-3\"},[_c('p',{staticClass:\"tab-sub-title mb-3\"},[_vm._v(\"Hola, favor de confirmar si tu correo electrónico y tu teléfono celular están correctos, en caso de que hayan cambiado te motivamos a actualizar tus datos dándole click al botón. Gracias por ingresar a nuestra plataforma digital de servicios.\")]),(_vm.user)?[_c('p',{staticClass:\"tab-sub-title mb-3\"},[_c('b',[_vm._v(\"Correo electrónico actual: \")]),_vm._v(_vm._s(_vm.user.correoElectronico1 || _vm.user.correoElectronico2)+\"\\n \")]),_c('p',{staticClass:\"tab-sub-title mb-3\"},[_c('b',[_vm._v(\"Teléfono celular actual: \")]),_vm._v(_vm._s(_vm.user.celular)+\"\\n \")])]:_vm._e()],2),(!_vm.actualizarDatos)?[_c('div',{staticClass:\"d-flex mb-5\"},[_c('button',{staticClass:\"mr-auto siembra-blue-button\",on:{\"click\":_vm.navigateToRegistroFallecimiento}},[_vm._v(\"Omitir\")]),_c('button',{staticClass:\"ml-auto siembra-orange-button\",on:{\"click\":function($event){_vm.actualizarDatos = true}}},[_vm._v(\"Actualizar Datos\")])])]:_vm._e(),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.actualizarDatos),expression:\"actualizarDatos\"}]},[_c('ValidationObserver',{ref:\"actualizacionDatosForm\"},[_c('div',{staticClass:\"row mb-4\"},[_c('div',{staticClass:\"col-6\"},[_c('label',{staticClass:\"tab-title font-w-500 mb-1 d-block\",attrs:{\"for\":\"nuevoCorreoElectronico\"}},[_vm._v(\"Nuevo correo electrónico\")]),_c('ValidationObserver',[_c('ValidationProvider',{attrs:{\"rules\":\"emailAFP\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.nuevoCorreoElectronico),expression:\"nuevoCorreoElectronico\"}],staticClass:\"siembra-input\",attrs:{\"type\":\"text\",\"placeholder\":\"Correo electrónico\",\"id\":\"nuevoCorreoElectronico\"},domProps:{\"value\":(_vm.nuevoCorreoElectronico)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.nuevoCorreoElectronico=$event.target.value}}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(errors && errors.length > 0),expression:\"errors && errors.length > 0\"}],staticClass:\"error-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1)],1),_c('div',{staticClass:\"col-6\"},[_c('label',{staticClass:\"tab-title font-w-500 mb-1 d-block\",attrs:{\"for\":\"nuevoTelefonoCelular\"}},[_vm._v(\"Nuevo teléfono celular\")]),_c('ValidationObserver',[_c('ValidationProvider',{attrs:{\"rules\":\"telefono\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.nuevoTelefonoCelular),expression:\"nuevoTelefonoCelular\"}],staticClass:\"siembra-input\",attrs:{\"type\":\"text\",\"placeholder\":\"Teléfono celular\",\"id\":\"nuevoTelefonoCelular\"},domProps:{\"value\":(_vm.nuevoTelefonoCelular)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.nuevoTelefonoCelular=$event.target.value}}}),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(errors && errors.length > 0),expression:\"errors && errors.length > 0\"}],staticClass:\"error-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1)],1)]),_c('div',{staticClass:\"row mx-0\"},[_c('button',{staticClass:\"mr-auto siembra-blue-button\",on:{\"click\":_vm.navigateToRegistroFallecimiento}},[_vm._v(\"Omitir\")]),_c('button',{staticClass:\"ml-auto siembra-orange-button\",on:{\"click\":_vm.confirmarDatos}},[_vm._v(\"Confirmar Datos\")])])])],1)],2)])}\nvar staticRenderFns = []\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\r\nimport BeneficiarioNoAfiliado from '@/models/BeneficiarioNoAfiliado';\r\nimport User from '@/models/User';\r\nimport AfiliadoService from '@/services/AfiliadoService';\r\nimport ServiceResponse from '@/services/response-models/ServiceResponse';\r\nimport VeeValidateForm from '@/vee-validate/types/VeeValidateForm';\r\nimport { AxiosResponse } from 'axios';\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { Getter } from 'vuex-class';\r\nimport Swal from \"sweetalert2\";\r\n\r\n@Component({})\r\nexport default class ActualizacionDatos extends Vue {\r\n @Getter(\"user\") user: User;\r\n public actualizarDatos: boolean = false;\r\n public nuevoCorreoElectronico: string = null;\r\n public nuevoTelefonoCelular: string = null;\r\n public afiliadoService: AfiliadoService = new AfiliadoService();\r\n\r\n public mounted(): void {\r\n this.nuevoCorreoElectronico = this.user.correoElectronico1 || this.user.correoElectronico2;\r\n this.nuevoTelefonoCelular = this.user.celular;\r\n }\r\n\r\n public confirmarDatos(): void {\r\n (this.$refs.actualizacionDatosForm as VeeValidateForm)\r\n .validate()\r\n .then((isValid: boolean) => {\r\n Swal.fire({\r\n text: \"Se están registrando tus datos\",\r\n icon: \"info\",\r\n timerProgressBar: true,\r\n onBeforeOpen: () => {\r\n Swal.showLoading();\r\n }\r\n });\r\n let beneficiarioNoAfiliado: BeneficiarioNoAfiliado = new BeneficiarioNoAfiliado();\r\n if (this.nuevoCorreoElectronico && this.nuevoCorreoElectronico.trim() !== '') {\r\n beneficiarioNoAfiliado.correoElectronico1 = this.nuevoCorreoElectronico;\r\n }\r\n if (this.nuevoTelefonoCelular && this.nuevoTelefonoCelular.trim() !== '') {\r\n beneficiarioNoAfiliado.celular = this.nuevoTelefonoCelular;\r\n }\r\n beneficiarioNoAfiliado.cedulaBeneficiario = this.user.cedula;\r\n this.afiliadoService.actualizarDatos(beneficiarioNoAfiliado).then((response: AxiosResponse) => {\r\n Swal.close();\r\n if (response.data.respCode === 200) {\r\n //Update User Data in Store\r\n let user: User = Object.assign({}, this.user);\r\n user.celular = this.nuevoTelefonoCelular\r\n user.correoElectronico1 = this.nuevoCorreoElectronico;\r\n this.$store.dispatch(\"updateUserInfo\", user);\r\n\r\n Swal.fire({\r\n text: \"Se actualizaron tus datos\",\r\n icon: \"success\",\r\n showConfirmButton: false,\r\n timer: 3000,\r\n onClose: () => {\r\n this.$router.push(\r\n \"/registro-sobrevivencia\"\r\n );\r\n }\r\n });\r\n } else {\r\n Swal.fire({\r\n text: \"Lo siento, ha ocurrido un error en la comunicación, por favor intenta más tarde.\",\r\n icon: \"error\",\r\n showConfirmButton: true,\r\n confirmButtonText: \"Ok\",\r\n onClose: () => {\r\n \r\n }\r\n });\r\n }\r\n })\r\n });\r\n }\r\n\r\n public navigateToRegistroFallecimiento(): void {\r\n this.$router.push(\"/registro-sobrevivencia\");\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!./ActualizacionDatos.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!./ActualizacionDatos.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ActualizacionDatos.vue?vue&type=template&id=6e52d493&scoped=true&\"\nimport script from \"./ActualizacionDatos.vue?vue&type=script&lang=ts&\"\nexport * from \"./ActualizacionDatos.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ActualizacionDatos.vue?vue&type=style&index=0&id=6e52d493&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 \"6e52d493\",\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!./ActualizacionDatos.vue?vue&type=style&index=0&id=6e52d493&scoped=true&lang=css&\"","export default class BeneficiarioNoAfiliado {\r\n constructor(\r\n public cedulaBeneficiario?: string,\r\n public password?: string,\r\n public primerNombre?: string,\r\n public segundoNombre?: string,\r\n public primerApellido?: string,\r\n public segundoApellido?: string,\r\n public correoElectronico1?: string,\r\n public correoElectronico2?: string,\r\n public celular?: string,\r\n public telefonoResidencia?: string,\r\n public otroTelefono?: string,\r\n public domicilio?: string,\r\n public numero?: string,\r\n public edificio?: string,\r\n public apartamento?: string,\r\n public codSector?: string,\r\n public codCiudad?: string,\r\n public viaRegistro?: string,\r\n public viaNotificacion?: string,\r\n public contrasena?: string\r\n ) {}\r\n}"],"sourceRoot":""}