{"version":3,"sources":["webpack:///./src/models/ConsultaFallecido.ts","webpack:///./src/views/RecuperacionContrasena.vue?7842","webpack:///./src/views/RecuperacionContrasena.vue?6857","webpack:///./src/models/RecuperacionClave.ts","webpack:///./src/views/RecuperacionContrasena.vue?1249","webpack:///./src/views/RecuperacionContrasena.vue?14fd","webpack:///./src/views/RecuperacionContrasena.vue?cc04","webpack:///./node_modules/vue-recaptcha/dist/vue-recaptcha.es.js"],"names":["ConsultaFallecido","captchaToken","ConsultaValidacionBeneficiarioResp","primerNombre","segundoNombre","primerApellido","segundoApellido","email1","email2","celular","esAfiliado","estaRegistrado","render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","steps","expression","_v","on","$event","preventDefault","consultarBeneficiario","attrs","scopedSlots","_u","key","fn","ref","errors","recuperacionClave","domProps","target","composing","$set","_s","onCaptchaSuccess","onCaptchaExpire","goBack","_e","_m","consultaValidacionBeneficiarioResp","tiposEnvio","c","_q","tipoEnvio","hideFirstCharacters","e","maskEmail","returnToFirstStep","sendRecovery","userHasContactInfo","tipoMensaje","redirectToHome","staticRenderFns","staticStyle","cedulaBeneficiario","valor","afiliadoService","AfiliadoService","userIpAddress","step1","step2","step3","loading","showValidacionStep2","getUserIpAddress","data","ip","fire","title","text","icon","cedula","consultaFallecido","then","response","entity","catch","err","console","error","charactersToHide","split","map","character","index","join","token","result","email","maskPlaceholder","emailSplitted","emailSplittedByDot","topLevelDomainLength","length","emailUser","emailDomain","substr","topLevelDomain","maskAllButFirstAndLast","arr","isFirst","isLast","maskedEmailUser","maskedEmailDomain","$refs","recaptcha","reset","substring","recuperarClave","$router","push","path","query","redirectToSiembra","window","history","back","components","VueRecaptcha","component","_extends","Object","assign","i","arguments","source","prototype","hasOwnProperty","call","apply","defer","state","callbacks","resolve","val","len","cb","deferred","resolved","promise","ownProp","createRecaptcha","notify","wait","ele","options","grecaptcha","widgetId","assertLoaded","execute","checkRecaptchaLoad","Error","vueRecaptchaApiLoaded","props","sitekey","type","String","required","theme","badge","size","tabindex","loadRecaptchaScript","Boolean","recaptchaScriptId","recaptchaHost","language","beforeMount","document","getElementById","script","createElement","id","src","async","head","appendChild","mounted","_this","opts","$props","callback","emitVerify","emitExpired","emitError","container","$slots","$el","children","$widgetId","$emit","methods","h"],"mappings":"oKAAMA,EAAN,oCAGW,KAAAC,aAAuB,IAe5BC,EACF,aASyC,IAR9BC,EAQ8B,uDARP,KACvBC,EAO8B,uDAPN,KACxBC,EAM8B,uDANL,KACzBC,EAK8B,uDALJ,KAC1BC,EAI8B,uDAJb,KACjBC,EAG8B,uDAHb,KACjBC,EAE8B,uDAFZ,KAClBC,EAC8B,uDADR,KACtBC,EAA8B,uDAAJ,KAAI,uBAR9B,KAAAR,eACA,KAAAC,gBACA,KAAAC,iBACA,KAAAC,kBACA,KAAAC,SACA,KAAAC,SACA,KAAAC,UACA,KAAAC,aACA,KAAAC,kBASA,U,oCCrCf,W,2CCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,mCAAmC,CAACF,EAAG,MAAM,CAACG,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOV,EAAIW,MAAW,MAAEC,WAAW,gBAAgBN,YAAY,kCAAkC,CAACF,EAAG,KAAK,CAACE,YAAY,oBAAoB,CAACN,EAAIa,GAAG,qBAAqBT,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,OAAO,CAACU,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBhB,EAAIiB,sBAAsBF,MAAW,CAACX,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,QA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InK,KAAK8J,sBACFM,SAASC,eAAerK,KAAKgK,mBAAoB,CAEpD,IAAIM,EAASF,SAASG,cAAc,UACpCD,EAAOE,GAAKxK,KAAKgK,kBACjBM,EAAOG,IAAM,WAAazK,KAAKiK,cAAgB,qEAAuEjK,KAAKkK,SAC3HI,EAAOI,OAAQ,EACfJ,EAAOxC,OAAQ,EACfsC,SAASO,KAAKC,YAAYN,KAIhCO,QAAS,WACP,IAAIC,EAAQ9K,KAEZqG,EAAU6C,qBAEV,IAAI6B,EAAO3D,EAAS,GAAIpH,KAAKgL,OAAQ,CACnCC,SAAUjL,KAAKkL,WACf,mBAAoBlL,KAAKmL,YACzB,iBAAkBnL,KAAKoL,YAGrBC,EAAYrL,KAAKsL,OAAO,WAAatL,KAAKuL,IAAIC,SAAS,GAAKxL,KAAKuL,IACrElF,EAAUvG,OAAOuL,EAAWN,GAAM,SAAUP,GAC1CM,EAAMW,UAAYjB,EAElBM,EAAMY,MAAM,SAAUlB,OAG1BmB,QAAS,CACPrF,MAAO,WACLD,EAAUC,MAAMtG,KAAKyL,YAEvBxC,QAAS,WACP5C,EAAU4C,QAAQjJ,KAAKyL,YAEzBP,WAAY,SAAoB5G,GAC9BtE,KAAK0L,MAAM,SAAUpH,IAEvB6G,YAAa,WACXnL,KAAK0L,MAAM,YAEbN,UAAW,WACTpL,KAAK0L,MAAM,WAGf5L,OAAQ,SAAgB8L,GACtB,OAAOA,EAAE,MAAO,GAAI5L,KAAKsL,OAAO,cAIrB,U","file":"js/chunk-12cd23ed.59afea84.js","sourcesContent":["class ConsultaFallecido {\r\n public cedulaBeneficiario: string;\r\n public cedulaFallecido: string;\r\n public captchaToken: string = \"\";\r\n}\r\n\r\nclass ConsultaFallecidoResp {\r\n public primerNombre: string;\r\n public segundoNombre: string;\r\n public primerApellido: string;\r\n public segundoApellido: string;\r\n public aplicaTramite: boolean;\r\n public requiereDocumento: boolean;\r\n public tipoAccionAplica: string;\r\n public estado: string;\r\n public mensaje: string;\r\n}\r\n\r\nclass ConsultaValidacionBeneficiarioResp {\r\n constructor(\r\n public primerNombre: string = null,\r\n public segundoNombre: string = null,\r\n public primerApellido: string = null,\r\n public segundoApellido: string = null,\r\n public email1: string = null,\r\n public email2: string = null,\r\n public celular: string = null,\r\n public esAfiliado: boolean = null,\r\n public estaRegistrado: boolean = null\r\n ) {}\r\n}\r\n\r\nclass ConsultaValidacionFallecimientoAll {\r\n public validacionFallecido:ConsultaFallecidoResp;\r\n public validacionBeneficiario:ConsultaValidacionBeneficiarioResp;\r\n}\r\n\r\nexport default ConsultaFallecido\r\nexport { ConsultaFallecidoResp, ConsultaValidacionBeneficiarioResp, ConsultaValidacionFallecimientoAll }","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!./RecuperacionContrasena.vue?vue&type=style&index=0&id=0c09d9f3&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"container-afp padding-bottom-35\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.steps.step1),expression:\"steps.step1\"}],staticClass:\"log-screen mt-5 mb-5 pass-lost\"},[_c('h3',{staticClass:\"text-center mt-5\"},[_vm._v(\"Recuperar Clave\")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-12 col-lg-12\"},[_c('div',{staticClass:\"right w-100 mx-auto\"},[_c('div',{staticClass:\"tab-content\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.consultarBeneficiario($event)}}},[_c('div',{staticClass:\"form-group\"},[_c('label',{staticClass:\"sp-L\",attrs:{\"for\":\"cedula\"}},[_vm._v(\"Cédula\")]),_c('ValidationObserver',[_c('ValidationProvider',{attrs:{\"rules\":\"required|cedula\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar errors = ref.errors;\nreturn [_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(\n _vm.recuperacionClave.cedulaBeneficiario\n ),expression:\"\\n recuperacionClave.cedulaBeneficiario\\n \"}],staticClass:\"siembra-input\",attrs:{\"type\":\"text\",\"id\":\"cedula\",\"placeholder\":\"Escriba aquí su cédula\",\"oninput\":\"this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\\\..*)\\\\./g, '$1');\"},domProps:{\"value\":(\n _vm.recuperacionClave.cedulaBeneficiario\n )},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.recuperacionClave, \"cedulaBeneficiario\", $event.target.value)}}}),_c('span',{staticClass:\"error-message\"},[_vm._v(_vm._s(errors[0]))])]}}])})],1)],1)]),[_c('vue-recaptcha',{ref:\"recaptcha\",attrs:{\"loadRecaptchaScript\":true,\"sitekey\":\"6LcawCEhAAAAAIn7ozGcmBpeauJYjyxRf9RnqUcS\",\"language\":\"es-419\"},on:{\"verify\":_vm.onCaptchaSuccess,\"expired\":_vm.onCaptchaExpire}})]],2),_c('div',{staticClass:\"row justify-content-center\"},[_c('button',{staticClass:\"btn btn-primary btn-cancel\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.goBack}},[_vm._v(\"\\n Volver\\n \")]),_c('button',{staticClass:\"btn btn-primary btn-succes\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.consultarBeneficiario}},[_vm._v(\"\\n Consultar\\n \"),(_vm.loading)?_c('span',{staticClass:\"\\n spinner-border\\n spinner-border-sm\\n spinner\\n \",attrs:{\"role\":\"status\",\"aria-hidden\":\"true\"}}):_vm._e()])])])])])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.steps.step2),expression:\"steps.step2\"}],staticClass:\"\\n log-screen\\n mt-5\\n mb-5\\n pass-lost\\n animate__animated animate__bounceInRight\\n \"},[_c('h3',{staticClass:\"text-center mt-5\"},[_vm._v(\"Recuperar Clave\")]),(_vm.userHasContactInfo)?[_c('h5',{staticClass:\"text-center mt-3\"},[_vm._v(\"\\n ¿Cómo deseas recuperar tu clave?\\n \")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-12 col-lg-12\"},[_c('div',{staticClass:\"right w-100 mx-auto\"},[_c('div',{staticClass:\"tab-content mt-3\"},[_vm._m(0),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(\n _vm.consultaValidacionBeneficiarioResp.celular\n ),expression:\"\\n consultaValidacionBeneficiarioResp.celular\\n \"}],staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(\n _vm.recuperacionClave.tipoEnvio\n ),expression:\"\\n recuperacionClave.tipoEnvio\\n \"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"id\":\"sms\",\"name\":\"tipo-envio\"},domProps:{\"value\":_vm.tiposEnvio.c +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.celular,\"checked\":_vm._q(\n _vm.recuperacionClave.tipoEnvio\n ,_vm.tiposEnvio.c +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.celular)},on:{\"change\":function($event){return _vm.$set(_vm.recuperacionClave, \"tipoEnvio\", _vm.tiposEnvio.c +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.celular)}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"sms\"}},[_vm._v(\"\\n Celular:\\n \"+_vm._s(_vm.hideFirstCharacters(\n _vm.consultaValidacionBeneficiarioResp.celular,\n 6\n ))+\"\\n \")])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(\n _vm.consultaValidacionBeneficiarioResp.email1\n ),expression:\"\\n consultaValidacionBeneficiarioResp.email1\\n \"}],staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(\n _vm.recuperacionClave.tipoEnvio\n ),expression:\"\\n recuperacionClave.tipoEnvio\\n \"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"id\":\"correo1\",\"name\":\"tipo-envio\"},domProps:{\"value\":_vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email1,\"checked\":_vm._q(\n _vm.recuperacionClave.tipoEnvio\n ,_vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email1)},on:{\"change\":function($event){return _vm.$set(_vm.recuperacionClave, \"tipoEnvio\", _vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email1)}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"correo1\"}},[_vm._v(\"\\n Correo:\\n \"+_vm._s(_vm.maskEmail(\n _vm.consultaValidacionBeneficiarioResp.email1\n ))+\"\\n \")])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(\n _vm.consultaValidacionBeneficiarioResp.email2\n ),expression:\"\\n consultaValidacionBeneficiarioResp.email2\\n \"}],staticClass:\"form-check\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(\n _vm.recuperacionClave.tipoEnvio\n ),expression:\"\\n recuperacionClave.tipoEnvio\\n \"}],staticClass:\"form-check-input\",attrs:{\"type\":\"radio\",\"id\":\"correo2\",\"name\":\"tipo-envio\"},domProps:{\"value\":_vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email2,\"checked\":_vm._q(\n _vm.recuperacionClave.tipoEnvio\n ,_vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email2)},on:{\"change\":function($event){return _vm.$set(_vm.recuperacionClave, \"tipoEnvio\", _vm.tiposEnvio.e +\n '-' +\n _vm.consultaValidacionBeneficiarioResp.email2)}}}),_c('label',{staticClass:\"form-check-label\",attrs:{\"for\":\"correo2\"}},[_vm._v(\"\\n Correo:\\n \"+_vm._s(_vm.maskEmail(\n _vm.consultaValidacionBeneficiarioResp.email2\n ))+\"\\n \")])]),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showValidacionStep2),expression:\"showValidacionStep2\"}],staticClass:\"error-message\"},[_vm._v(\"Favor completar los campos obligatorios\\n para realizar el registro\")]),_vm._m(1)]),_c('div',{staticClass:\"row justify-content-center\"},[_c('button',{staticClass:\"btn btn-primary btn-cancel\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.returnToFirstStep}},[_vm._v(\"\\n Volver\\n \")]),_c('button',{staticClass:\"btn btn-primary btn-succes\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.sendRecovery}},[_vm._v(\"\\n Enviar\\n \")])])])])])]:[_c('h5',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.userHasContactInfo),expression:\"!userHasContactInfo\"}],staticClass:\"text-center mt-3\"},[_vm._v(\"\\n Lo sentimos 🙁, para enviarte tu clave es necesario que\\n actualices tus datos personales y registres un número de\\n celular y/o un correo electrónico. Por favor comunícate\\n a nuestras líneas telefónicas 809-567-2371 y\\n 1-809-200-2371 para actualizar tus datos personales.\\n \")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-12 col-lg-12\"},[_c('div',{staticClass:\"right w-100 mx-auto\"},[_c('div',{staticClass:\"row justify-content-center\"},[_c('button',{staticClass:\"btn btn-primary btn-succes\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.goBack}},[_vm._v(\"\\n Volver\\n \")])])])])])]],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.steps.step3),expression:\"steps.step3\"}],staticClass:\"\\n log-screen\\n mt-5\\n mb-5\\n pass-lost\\n animate__animated animate__bounceInRight\\n \"},[_c('h3',{staticClass:\"text-center mt-5\"},[_vm._v(\"Recuperar Clave\")]),_c('h5',{staticClass:\"text-center mt-3\"},[_vm._v(\"Confirmación\")]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-12 col-lg-12\"},[_c('div',{staticClass:\"right w-100 mx-auto\"},[_c('div',{staticClass:\"tab-content mt-4\"},[_c('p',{staticClass:\"text-gray description\"},[_vm._v(\"\\n Te hemos enviado un \"+_vm._s(_vm.tipoMensaje)+\" con tu\\n clave. Si no lo recibiste, dale click a la\\n opción de Reenviar.\\n \")])]),_c('div',{staticClass:\"row justify-content-center\"},[_c('button',{staticClass:\"btn btn-primary btn-cancel\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.sendRecovery}},[_vm._v(\"\\n Reenviar\\n \")]),_c('button',{staticClass:\"btn btn-primary btn-succes\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.redirectToHome}},[_vm._v(\"\\n Cerrar\\n \")])])])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mb-4\"},[_c('p',{staticClass:\"text-gray description\"},[_vm._v(\"\\n Gracias por contactarnos. Por favor\\n selecciona por cual de las\\n siguientes vías prefieres que te\\n enviemos tu clave.\\n \")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"mb-4\",staticStyle:{\"margin-top\":\"15px\"}},[_c('p',{staticClass:\"text-gray description\"},[_vm._v(\"\\n Recuerda que también puedes utilizar\\n tu clave para acceder a nuestra APP\\n Mi Siembra. !Descárgala ya!\\n \")])])}]\n\nexport { render, staticRenderFns }","export default class RecuperacionClave {\r\n constructor(\r\n public cedulaBeneficiario: string = null,\r\n public tipoEnvio: string = null,\r\n public valor: string = null,\r\n\t\tpublic captchaToken: string = \"\"\r\n ) {}\r\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\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\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\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 validateDominicanId from \"validacion-cedula-dominicana\";\r\nimport VueRecaptcha from \"vue-recaptcha\";\r\nimport Swal from \"sweetalert2\";\r\nimport ConsultaFallecido, {\r\n ConsultaValidacionBeneficiarioResp,\r\n} from \"@/models/ConsultaFallecido\";\r\nimport { AxiosResponse } from \"axios\";\r\nimport ServiceResponseEntity from \"@/services/response-models/ServiceResponseEntity\";\r\nimport AfiliadoService from \"@/services/AfiliadoService\";\r\nimport RecuperacionClave from \"@/models/RecuperacionClave\";\r\n\r\n@Component({\r\n components: { VueRecaptcha },\r\n})\r\nexport default class RecuperacionContrasena extends Vue {\r\n public afiliadoService: AfiliadoService = new AfiliadoService();\r\n public userIpAddress: string = null;\r\n public steps: {\r\n step1: boolean;\r\n step2: boolean;\r\n step3: boolean;\r\n } = {\r\n step1: true,\r\n step2: false,\r\n step3: false,\r\n };\r\n public recuperacionClave: RecuperacionClave = new RecuperacionClave();\r\n public consultaValidacionBeneficiarioResp: ConsultaValidacionBeneficiarioResp =\r\n new ConsultaValidacionBeneficiarioResp();\r\n public tiposEnvio: {\r\n c: string;\r\n e: string;\r\n } = {\r\n c: \"C\",\r\n e: \"E\",\r\n };\r\n public tipoMensaje: string = null;\r\n public loading: boolean = false;\r\n public showValidacionStep2 = false;\r\n\r\n get userHasContactInfo() {\r\n return (\r\n !!this.consultaValidacionBeneficiarioResp.celular ||\r\n !!this.consultaValidacionBeneficiarioResp.email1 ||\r\n !!this.consultaValidacionBeneficiarioResp.email2\r\n );\r\n }\r\n\r\n public async mounted(): Promise {\r\n try {\r\n this.userIpAddress = (\r\n await this.afiliadoService.getUserIpAddress()\r\n ).data.ip;\r\n } catch (err) {\r\n this.loading = true;\r\n Swal.fire({\r\n title: \"\",\r\n text: \"No se pudo obtener la dirección IP del consultante, por favor, recarga la página.\",\r\n icon: \"error\",\r\n });\r\n }\r\n }\r\n public consultarBeneficiario(): void {\r\n this.loading = true;\r\n\t\t// if (!this.recuperacionClave.captchaToken) {\r\n // Swal.fire({\r\n // title: \"\",\r\n // text: \"Debe presionar el captcha para continuar!\",\r\n // icon: \"warning\",\r\n // });\r\n // this.loading = false;\r\n // return;\r\n // }\r\n const cedula: string = this.recuperacionClave.cedulaBeneficiario;\r\n if (!validateDominicanId(cedula)) {\r\n this.loading = false;\r\n return;\r\n }\r\n const consultaFallecido = new ConsultaFallecido();\r\n consultaFallecido.cedulaBeneficiario = cedula;\r\n this.afiliadoService\r\n .consultarBeneficiario(consultaFallecido)\r\n .then(\r\n (\r\n response: AxiosResponse<\r\n ServiceResponseEntity\r\n >\r\n ) => {\r\n const consultaValidacionBeneficiarioResp =\r\n response.data.entity;\r\n this.loading = false;\r\n if (!consultaValidacionBeneficiarioResp.estaRegistrado) {\r\n Swal.fire({\r\n title: \"\",\r\n text: \"Cédula no registrada en nuestra base de datos.\",\r\n icon: \"warning\",\r\n });\r\n return;\r\n }\r\n this.consultaValidacionBeneficiarioResp =\r\n response.data.entity;\r\n this.steps.step1 = false;\r\n this.steps.step2 = true;\r\n }\r\n )\r\n .catch((err) => {\r\n this.loading = false;\r\n console.error(err);\r\n });\r\n }\r\n\r\n public hideFirstCharacters(text: string, charactersToHide: number): string {\r\n if (text) {\r\n return text\r\n .split(\"\")\r\n .map((character: string, index: number) => {\r\n if (index < charactersToHide) {\r\n return \"*\";\r\n } else {\r\n return character;\r\n }\r\n })\r\n .join(\"\");\r\n } else {\r\n return \"\";\r\n }\r\n }\r\n\r\n public onCaptchaSuccess(token: any) {\r\n this.recuperacionClave.captchaToken = token;\r\n }\r\n\r\n public onCaptchaExpire(result: any) {\r\n this.recuperacionClave.captchaToken = \"\";\r\n }\r\n\r\n public maskEmail(email: string): string {\r\n if (!email) {\r\n return \"\";\r\n }\r\n const maskPlaceholder = \"*\";\r\n const emailSplitted = email.split(\"@\");\r\n const emailSplittedByDot = emailSplitted[1].split(\".\");\r\n const topLevelDomainLength = (\".\" + emailSplittedByDot[1]).length;\r\n const emailUser: string = emailSplitted[0];\r\n const emailDomain: string = emailSplitted[1].substr(\r\n 0,\r\n emailSplitted[1].length - topLevelDomainLength\r\n );\r\n const topLevelDomain: string = emailSplitted[1].substr(\r\n emailSplitted[1].length - topLevelDomainLength,\r\n topLevelDomainLength\r\n );\r\n const maskAllButFirstAndLast = (text: string) => {\r\n return text\r\n .split(\"\")\r\n .map((character: string, index: number, arr: string[]) => {\r\n const isFirst: boolean = index === 0;\r\n const isLast: boolean = index === arr.length - 1;\r\n return isFirst || isLast ? character : maskPlaceholder;\r\n })\r\n .join(\"\");\r\n };\r\n const maskedEmailUser: string = maskAllButFirstAndLast(emailUser);\r\n const maskedEmailDomain: string = maskAllButFirstAndLast(emailDomain);\r\n return `${maskedEmailUser}@${maskedEmailDomain}${topLevelDomain}`;\r\n }\r\n//aquiklk\r\n public returnToFirstStep(): void {\r\n this.onCaptchaExpire('');\r\n\t\t(this.$refs.recaptcha as VueRecaptcha).reset();\r\n this.steps.step1 = true;\r\n this.steps.step2 = false;\r\n }\r\n\r\n public async sendRecovery() {\r\n\t\t// if(!this.recuperacionClave.captchaToken){\r\n\t\t// \tSwal.fire({\r\n // title: \"\",\r\n // text: \"Sesión expirada, favor consultar nuevamente\",\r\n // icon: \"warning\",\r\n // });\r\n\t\t// \tthis.returnToFirstStep();\r\n // return;\r\n\t\t// }\r\n if (!this.recuperacionClave.tipoEnvio) {\r\n this.showValidacionStep2 = true;\r\n return;\r\n }\r\n \r\n // tipoEnvio is like C-8296010000\r\n let tipoEnvio = this.recuperacionClave.tipoEnvio[0];\r\n let valor = this.recuperacionClave.tipoEnvio.substring(2);\r\n this.recuperacionClave.valor = valor;\r\n this.recuperacionClave.tipoEnvio = tipoEnvio;\r\n switch (tipoEnvio) {\r\n case this.tiposEnvio.c:\r\n this.tipoMensaje = \"SMS\";\r\n break;\r\n case this.tiposEnvio.e:\r\n this.tipoMensaje = \"correo\";\r\n break;\r\n }\r\n\r\n await this.afiliadoService.recuperarClave(this.recuperacionClave);\r\n this.steps.step2 = false;\r\n this.steps.step3 = true;\r\n }\r\n\r\n public redirectToHome() {\r\n this.$router.push({\r\n path: \"/login\",\r\n query: {\r\n redirectToSiembra: \"/default.aspx\",\r\n },\r\n });\r\n }\r\n\r\n public goBack() {\r\n window.history.back();\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!./RecuperacionContrasena.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!./RecuperacionContrasena.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RecuperacionContrasena.vue?vue&type=template&id=0c09d9f3&scoped=true&\"\nimport script from \"./RecuperacionContrasena.vue?vue&type=script&lang=ts&\"\nexport * from \"./RecuperacionContrasena.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RecuperacionContrasena.vue?vue&type=style&index=0&id=0c09d9f3&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 \"0c09d9f3\",\n null\n \n)\n\nexport default component.exports","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar defer = function defer() {\n var state = false; // Resolved or not\n\n var callbacks = [];\n\n var resolve = function resolve(val) {\n if (state) {\n return;\n }\n\n state = true;\n\n for (var i = 0, len = callbacks.length; i < len; i++) {\n callbacks[i](val);\n }\n };\n\n var then = function then(cb) {\n if (!state) {\n callbacks.push(cb);\n return;\n }\n\n cb();\n };\n\n var deferred = {\n resolved: function resolved() {\n return state;\n },\n resolve: resolve,\n promise: {\n then: then\n }\n };\n return deferred;\n};\n\nvar ownProp = Object.prototype.hasOwnProperty;\nfunction createRecaptcha() {\n var deferred = defer();\n return {\n notify: function notify() {\n deferred.resolve();\n },\n wait: function wait() {\n return deferred.promise;\n },\n render: function render(ele, options, cb) {\n this.wait().then(function () {\n cb(window.grecaptcha.render(ele, options));\n });\n },\n reset: function reset(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.reset(widgetId);\n });\n },\n execute: function execute(widgetId) {\n if (typeof widgetId === 'undefined') {\n return;\n }\n\n this.assertLoaded();\n this.wait().then(function () {\n return window.grecaptcha.execute(widgetId);\n });\n },\n checkRecaptchaLoad: function checkRecaptchaLoad() {\n if (ownProp.call(window, 'grecaptcha') && ownProp.call(window.grecaptcha, 'render')) {\n this.notify();\n }\n },\n assertLoaded: function assertLoaded() {\n if (!deferred.resolved()) {\n throw new Error('ReCAPTCHA has not been loaded');\n }\n }\n };\n}\nvar recaptcha = createRecaptcha();\n\nif (typeof window !== 'undefined') {\n window.vueRecaptchaApiLoaded = recaptcha.notify;\n}\n\nvar VueRecaptcha = {\n name: 'VueRecaptcha',\n props: {\n sitekey: {\n type: String,\n required: true\n },\n theme: {\n type: String\n },\n badge: {\n type: String\n },\n type: {\n type: String\n },\n size: {\n type: String\n },\n tabindex: {\n type: String\n },\n loadRecaptchaScript: {\n type: Boolean,\n \"default\": false\n },\n recaptchaScriptId: {\n type: String,\n \"default\": '__RECAPTCHA_SCRIPT'\n },\n recaptchaHost: {\n type: String,\n \"default\": 'www.google.com'\n },\n language: {\n type: String,\n \"default\": ''\n }\n },\n beforeMount: function beforeMount() {\n if (this.loadRecaptchaScript) {\n if (!document.getElementById(this.recaptchaScriptId)) {\n // Note: vueRecaptchaApiLoaded load callback name is per the latest documentation\n var script = document.createElement('script');\n script.id = this.recaptchaScriptId;\n script.src = \"https://\" + this.recaptchaHost + \"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl=\" + this.language;\n script.async = true;\n script.defer = true;\n document.head.appendChild(script);\n }\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n recaptcha.checkRecaptchaLoad();\n\n var opts = _extends({}, this.$props, {\n callback: this.emitVerify,\n 'expired-callback': this.emitExpired,\n 'error-callback': this.emitError\n });\n\n var container = this.$slots[\"default\"] ? this.$el.children[0] : this.$el;\n recaptcha.render(container, opts, function (id) {\n _this.$widgetId = id;\n\n _this.$emit('render', id);\n });\n },\n methods: {\n reset: function reset() {\n recaptcha.reset(this.$widgetId);\n },\n execute: function execute() {\n recaptcha.execute(this.$widgetId);\n },\n emitVerify: function emitVerify(response) {\n this.$emit('verify', response);\n },\n emitExpired: function emitExpired() {\n this.$emit('expired');\n },\n emitError: function emitError() {\n this.$emit('error');\n }\n },\n render: function render(h) {\n return h('div', {}, this.$slots[\"default\"]);\n }\n};\n\nexport default VueRecaptcha;\n"],"sourceRoot":""}