{"version":3,"sources":["Config.js","components/util/img/chat.svg","components/util/header/Whatsapp.js","components/util/header/Header.jsx","components/util/disclaimer.js","components/util/footer/Footer.js","components/pages/traspaso/components/RecienTrabajoModal.js","components/pages/traspaso/components/inputs/Phone.js","components/util/validacion/ValidateFieldsUtil.js","store/context.js","components/util/Crypto.js","components/pages/traspaso/components/inputs/Rut.js","components/pages/traspaso/components/inputs/Email.js","components/pages/traspaso/components/inputs/Name.js","components/pages/traspaso/components/Formulario.js","components/pages/traspaso/Traspaso.js","components/pages/autenticacion/autenticacionui/PreguntasTooltip.js","components/pages/autenticacion/components/FormClaveUnica.js","components/pages/autenticacion/autenticacionui/PreguntasTooltip2.js","components/pages/autenticacion/components/ClaveSeguridadModal.js","components/util/validacion/Validacion.js","components/util/validacion/ValorReferencia.js","components/util/validacion/Campo.js","components/util/validacion/Genericas.js","components/util/validacion/Regla.js","components/pages/autenticacion/components/Errors.js","components/util/RegistrarIntentoLogin.js","components/pages/autenticacion/components/FormClaveSeguridad.js","components/util/RegistrarPaso.js","components/pages/autenticacion/img/claveunica.svg","components/pages/autenticacion/Autenticacion.js","components/pages/cuestionario/PreguntasForm.js","components/pages/cuestionario/Timer.js","components/pages/cuestionario/Cuestionario.js","components/util/fondos/IconoFondo.js","components/util/fondos/TarjetaCuenta.js","components/pages/traspaso/components/redirects/components/botones/BotonesSegundaParte.js","components/pages/traspaso/components/redirects/components/botones/Botones.js","components/pages/traspaso/components/redirects/components/Title.js","components/pages/traspaso/components/redirects/RedirectGenerico.js","components/pages/cuestionario/AsesorModal.js","components/pages/cuestionario/PreguntasSeguridad.js","components/pages/compartido/CabeceraPasos.js","components/pages/cotizacion/components/SabiasQueFondo.js","components/pages/cotizacion/components/LimiteFondos.js","components/pages/cotizacion/components/Tooltip.js","components/util/img/timer.png","components/util/IdleTimer/Container.js","components/pages/cotizacion/components/FormCotizacion.js","components/pages/datos_personales/datosPersonales/DatosPersonales.js","components/pages/datos_personales/DatosPersonales.js","components/util/ScrollToTop.js","components/pages/traspaso/components/redirects/ParteAFPModeloModal.js","components/pages/autenticacion/components/NoHayCuentas.js","components/util/img/binvenida/frame.svg","components/util/img/binvenida/corazon.svg","components/pages/bienvenida/Bienvenida.js","components/pages/confirmarTraspaso/components/AccordionConfirmar.js","components/pages/confirmarTraspaso/components/FichaConfirmaEmpleador.js","components/pages/confirmarTraspaso/components/AntecedentesLaborales.js","components/pages/confirmarTraspaso/components/FondoConfirmar.js","components/pages/confirmarTraspaso/components/FondosConfirmar.js","components/pages/confirmarTraspaso/components/Cuenta.js","components/pages/confirmarTraspaso/components/Cuentas.js","components/pages/confirmarTraspaso/components/DatosContacto.js","components/pages/confirmarTraspaso/components/DatosPersonales.js","components/pages/confirmarTraspaso/components/Disclaimer.js","components/pages/confirmarTraspaso/ConfirmarTraspaso.js","components/util/img/genericas/qIufhof.png","components/pages/global/PageNotFound.js","components/util/img/genericas/close-circle.svg","components/pages/global/Error.js","components/pages/cuestionario/ConfirmarAsesor.js","components/pages/autenticacion/components/FormValidate.js","components/pages/autenticacion/components/FormTVI.js","components/main/Main.js","components/util/img/Ellipsis.gif","components/main/Loading.js","App.js","reportWebVitals.js","store/useGlobalState.js","index.js"],"names":["Config","API_URL","JSON_HEADER","AMB","process","WSP_NUM","KEY","Whatsapp","_jsx","FloatingWhatsApp","phoneNumber","configuration","accountName","height","avatar","statusMessage","chatMessage","darkMode","allowClickAway","allowEsc","placeholder","notification","notificationDelay","notificationSound","Header","_jsxs","className","children","href","information","one","title","detail","two","three","footer","Footer","Markup","content","disclaimer","RecienTrabajoModal","props","Modal","show","onHide","handleClose","animation","backdrop","Body","Button","id","variant","onClick","block","Phone","phone","setPhone","useState","errorM","setErrorM","message","_Fragment","Form","Group","htmlFor","InputGroup","Prepend","Text","Control","value","maxLength","name","type","onChange","event","preventDefault","target","length","validator","isNumeric","no_symbols","onBlur","setValidateForm","validateForm","style","padding","ValidateFieldsUtil","formarteaRut","inval","trim","rutparts","replace","split","r","toLowerCase","dv","h","uc","concat","mascaraRut","val","substring","rutFocus","rut","enmascararEmail","mailparts","user","domain","arr","validarRut","caracteresRut","buscarCampo","valor","includes","ini","ru","sum","isNaN","Number","parseInt","i","rutdv","toString","validarFormato","Upper","limit","cedulafocus","ll","a","indx","prc","lstc","l","cedulaNumDoc","v","eliminaPuntosYGuion","nombreCorto","nombre","nombreValido","match","celularCorto","mascaraNombre","onlyNumbers","cadena","undefined","toUpperCase","Context","createContext","Crypto","Encrypt","j","JSON","stringify","sessionStorage","setItem","Decrypt","sess","getItem","parse","Rut","state","actions","useContext","validate","setValidate","setRut","rutField","setRutField","OnLoading","async","payload","loading","load","Redirect","to","pathname","padStart","rutString","T","M","S","Math","floor","formatValidateRut","fetch","method","headers","body","then","response","json","data","run","catch","error","console","Swal","fire","icon","text","confirmButtonText","allowOutsideClick","e","selector","document","getElementById","Inputmask","mask","autoUnmask","keepStatic","showMaskOnFocus","showMaskOnHover","definitions","K","casing","rutChange","Email","mailValue","setMailValue","isEmail","email","Name","setName","texto","test","Formulario","formValues","setFormValues","redirect","setRedirect","handleSubmit","raw","Names","Code","solicitud","Response","Token","handleChange","arrayForm","Object","assign","onSubmit","Label","disabled","Traspaso","setShow","src","alt","Accordion","Card","border","Toggle","marginBottom","zIndex","as","eventKey","Collapse","display","paddingBottom","handleShow","window","location","PreguntasTooltip","useRef","ref","onMouseEnter","onMouseLeave","Overlay","placement","containerPadding","Popover","Content","FormClaveUnica","serial","setSerialNumber","ValidateCI","token","Configuration","Datos","Run","NumeroSerie","result","Exito","AuthenticateCU","dataCliente","ObjetoGenerico","DatosCliente","valida","EstadoRespuesta","bloqueada","IndicadorBloqueo","vencida","Vigencia","isConfirmed","html","TokenUser","SolicitudCU","Descripcion","UrlCallback","origin","Nombres","Correo","resultado","Resultado","timerInterval","identificador","Identificador","tokentvi","IdentificadorPrevired","timer","timerProgressBar","didOpen","showLoading","b","getHtmlContainer","querySelector","setInterval","textContent","getTimerLeft","willClose","clearInterval","timerResult","dismiss","DismissReason","UrlClaveUnica","steps","ErroresValidacion","push","swalQueueStep","mixin","cancelButtonText","progressSteps","reverseButtons","values","currentStep","resultq","showCancelButton","currentProgressStep","cancel","Tooltip","autenticacion","PreguntasTooltip2","ClaveSeguridadModal","textAlign","paddingTop","lineHeight","paddingRight","Validacion","constructor","mensaje","exito","fracaso","invocador","buscarRegla","this","reglas","find","buscarReglaPorId","detalles","agregarRegla","regla","validacion","validar","forEach","every","filter","map","validacionUnica","despues","actualizarCampo","campo","c","ValorReferencia","etiqueta","Campo","establecerValor","Genericas","campoVacio","campos","esNumerico","esEmail","valoresReferencia","Regla","funcValidar","agregarReglaAborto","abortar","agregarCampo","agregarValorDeReferencia","buscarValorReferencia","abortarValidacion","forzar","some","Errors","_ref","errors","errmsg","renderErrors","element","index","RegistrarIntentoLogin","metodo","setCallback","detalle","FormClaveSeguridad","setActiveSacu","setActiveRut","form","setForm","toCCO","setToCCO","setErrors","setErrorHandles","dataJson","setDataJson","setDisabled","sinCuentas","setSinCuentas","causalRechazo","setCausalRechazo","URLSearchParams","useLocation","search","get","useEffect","passwordShown","setPasswordShown","cuenta","nombreTipo","origen","clavevacia","claveseg","_body","Clave","Ip","claveOk","codigo","respuestansacu","rutDv","nombres","apellidoPaterno","apellidoMaterno","cuentas","otros","code","cuentasRechazo","causalRechazoCodigo","addOption","item","fondos","fondo","errores","FormControl","autoComplete","togglePasswordVisiblity","width","RegistrarPasoPost","RegistrarPaso","IdFase","idfase","IdProspecto","Id","Fecha","Date","Autenticacion","isOn","toggleIsOn","useToggle","isOnB","toggleIsOnB","setLoading","accordeon","flexDirecction","pasoRegistrado","setPasoRegistrado","initialValue","arguments","setValue","React","useCallback","defaultActiveKey","ClaveUnica","Link","PreguntasForm","nextAsk","setNextAsk","arrayAsk","setArrayAsk","role","marginTop","desafio","pregunta","alternativas","Check","required","codigO_RESPUESTA","label","respuesta","format","time","minutes","seconds","String","padTime","Timer","paused","setPaused","counter","setCounter","countdown","TiempoRestante","timeOut","setTimeOut","accion","setAccion","errorTimer","setTimeout","Operacion","leAction","Intento","clearTimeout","acciones","cardText","buttonTryAgain","buttonPassSec","Cuestionario","setarrayAsk","next","setnext","setform","redirectFondos","setredirectFondos","redirectUno","setredirectUno","redirectBloqueo","setredirectBloqueo","setdisabled","setdataJson","setsinCuentas","seterrors","timerObj","settimerObj","setpaused","setErrorCallBack","objetoError","handlerNextButton","respTemp","resp","radio_0","radio_1","radio_2","radio_3","radio_4","codigO_PREGUNTA","consulta","usuario","rutCliente","idChallenge","respuestas","preguntasUrl","cuentasprevired","responseIntento","intentos","changeForm","updateIntentos","bloqueoCurso","errorLocal","Message","setState","intento","timerId","obtenerEstadoUrl","estado","estadoFinal","TarjetaFondos","TarjetaCuenta","Title","tipoDescripcion","Subtitle","saldo","f","IconoFondo","BotonesSegundaParte","history","useHistory","showO","Botones","setTitle","RedirectGenerico","enTramite","setEnTramite","previred","setPrevired","renderAfter","setRenderAfter","setShowO","p","AsesorModal","confirmAsesor","setConfirmAsesor","datosAsesor","setDatosAsesor","color","idProspecto","telefono","claveSeg","setClaveSeg","asesorModal","setAsesorModal","CabeceraPasos","paso","background","fontSize","Container","SabiasQueFondo","toggleState","setToggleState","FormCotizacion","mostrar","A","B","C","D","E","fondosMostrar","fondosdis","backgroundColor","Tooltips","marginLeft","isLoggedIn","idleTimerRef","IdleTimer","timeout","onIdle","afiliado","log","checkA","setCheckA","checkB","setCheckB","hayCuentasElegidas","setHayCuentasElegidas","responseFinal","setResponseFinal","validateResponseFinal","setValidateResponseFinal","cuentasObligatorias","cuentasVoluntarias","fondosDisponibles","fnac","fechaNacimiento","fnacd","edad","abs","round","getTime","sexo","genero","nombreafiliado","n","slice","join","fondoElegible","lim","F","indexOf","elegibles","key","entries","ctasObligatorias","tipo","sort","ctasVoluntarias","volIndex","ctasLen","modificadas","Array","fill","distribuciones","distribcionFondos","fondosRecaudadores","ctasSel","tipoTraspaso","porcTraspaso","sumarSaldos","acumulador","cd","ff","fondosSaldos","fin","inicio","resto","original","saldoTotal","reduce","distribucion","primeroSel","recaudadorA","recaudadorB","ctasModificadas","setCtasModificadas","ctasDist","setCtasDist","ctasDistFondos","setCtasDistFondos","ctasRecaudadores","setCtasRecaudadores","ctasSeleccionadas","setCuentasSeleccionadas","setResponse","render","setRender","arrayFondosImg","setArrayFondosImg","habilitarGuardado","setHabilitarGuardado","fondosInicial","setFondosInicial","radioVal","setRadioVal","indexModal","setIndexModal","cuentaModal","setCuentaModal","cuentasModal","setCuentasModal","verSeleccionados","objt","d","traspaso","setTraspaso","valorA","regimenesGlobal","setRegimenesGlobal","mandatoGlobal","setMandatoGlobal","formatDecimal","getTipoCuenta","dni","telefonoCelular","authenticated","localStorage","Regiones","fondosArray","cuentasArray","arrayTemp","findex","envolverDiv","contenedor","$","wrapAll","contenedor2","mostrarErrores","getSelectedArray","modificado","inicialArray","parentIndex","finalArray","fondoA","fondoB","fondoC","fondoD","fondoE","tempTraspaso","porcentajeTraspaso","fondosdist","arrayFondos","fondotmp","fi","ifarr","final","preseleccionar","recaudaArr","algunseleccionado","tieneAlgunFondoSeleccionado","seleccionValida","fondosSeleccionadosEnRegla","rangosSeleccionado","mostrarDistribucion","validarInicioResto","recaudadorSeleccionado","validarFondos","getNombreFondo","arrayImg","nomFondo","radiosClick","distros","predistribucion","imgsfond","aSel","manejarValorObjetos","hasOwnProperty","seleccionadosElegibles","getFondoCambiado","defaultIndex","primaryArray","force","array0","changed","obj1","result1","changed2","obj2","result2","res","redondear","num","up","ceil","down","cambiarFondo","otroArreglo","seleccionado","tieneFondoSeleccionado","arreglo","elegible","fondosObj","porcentaje","step","ctasDistr","distrSalidos","fondoSel","getElFondoSeleccionado","fondoRecaudador","rec","selA","checked","validarBotonCuentasSeleccionadas","selected","getCuentasSeleccionadas","s","seleccionarCuentas","evt","obligatorias","currentTarget","getElementsByName","ctasTempSel","el","marcarGrupoCuentas","different","parent","indeterminate","getUrlImagenFondo","habilitado","indexCuenta","suffix","repairFondo","enviarDatos","icuenta","suscribeMandato","validarMandato","saldoRegimen","valorPorcentaje","regimenes","regimen","mandato","valorCuota","seleccionadas","cuentasEdit","afiliadoTemp","empleadoresTemp","empleadores","arrayEmpleadores","empleado","empl","cuentaCorrelativoComuna","Direccion","direccion","RazonSocial","razonSocial","rutNumero","Telefono","datosPersonaalesTemp","cuentaCorrelativoProspecto","Nombre","FechaNacimiento","NacionalcuentaCorrelativa","Comuna","codigoUnicoTerritorial","Cartola","Sexo","TipoEmpleado","Empleadores","responseTemp","ticketId","ticket","cuentasEditadas","datosPersonales","databack","cuentacheck","setcuentadoscheck","apvCheck","cuentaDosCheck","checkCuenta","fondoValido","setfondoValido","first","fondoelegible","jsonBack","indexc","defaultChecked","selectCuentaMutua","nativeEvent","indexf","borderRadius","boxShadow","appearance","class","fds","total","porct","obtenerDistribucionInicial","justifyContent","paddingLeft","Append","position","float","LimiteFondos","flexDirection","alignItems","cuentaBefore","temp","recaudador","ctasMod","formModalFondosGuardar","Switch","inputProps","borderColor","onChangeValue","nameValue","Monto","inival","onChangeValueCTA2","cta","IdleTimerContainer","DatosPersonalesA","datos","fecha","setFecha","preRender","setPreRender","setDate","date","anio","mes","dia","formatRut","newRut","lastDigit","substr","rutDigit","charAt","DatosPersonales","ContactSection","direccionempleador","validarDatosContacto","setValidarDatosContacto","validarExisteEmpleador","setValidarExiteEmpleador","estadoEmpleador","setEstadoEmpleador","validateConfirmData","setValidateConfirmData","validarData","setValidarData","confirmData","setConfirmData","opciones","setOpciones","datosPersonalesInit","setJsonBack","opcionesComunasAfiliado","setOpcionesComunasAfiliado","opcionesComunas1","setOpcionesComunas1","opcionesComunas2","setOpcionesComunas2","opcionesComunas3","setOpcionesComunas3","opcionesComunas4","setOpcionesComunas4","nacionalidades","setNacionalidades","tipoEmpleado","setTipoEmpleado","setDatos","setEmpleadores","now","random","razonSocialempleador","rutempleador","emailNotifiacionempleador","telefonoempleador","comunaempleador","regionempleador","errorEmpleador","errorRazonSocial","errorRut","errorTelefono","errorEmail","errorDireccion","mensajeErrorRazonSocial","mensajeErrorRut","mensajeErrorTelefono","mensajeErrorEmail","mensajeErrorDireccion","Nacionalidades","region","nombreRegion","comuna","nombreComuna","Nacionalidad","nombreNacionalidad","onChangeAfiliado","handleChangeInput","re","rutVal","indexs","selectedIndex","validFormContacto","formValidEmpleadores","valuesEmp","empleador","isInvalidEmail","datosContacto","OnInput","datosPersonalesTemp","confirmDataTemp","FormatNacionalidad","primerCaracter","restoDeLaCadena","getAccesoComunaArr","setAccesoComunaArr","telefonoIsInvalid","existeEmpleador","continuar","showDenyButton","denyButtonText","returnFocus","scrollTo","top","current","offsetTop","behavior","isDenied","resultToReturn","ValidarEmpleadoresDuplicados","isInvalidDireccionArray","isInvalid","tempDatos","Alert","selReg","Comunas","datosContactoTemp","comunaRegionAfiliado","opcion","comunasAfiliado","CutComuna","errorComuna","mensajeErrorComuna","selNat","nacionalidadSelect","fontFamily","fontWeight","Col","splice","findIndex","handleRemoveFields","comunaRegion","regSel","size","nuevoEmpleador","ScrollToTop","Component","componentDidUpdate","prevProps","Fragment","withRouter","ParteAFPModeloModal","prop","ms","Promise","resolve","NoHayCuentas","require","Bienvenida","like","corazon","blob","b64Data","contentType","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","charCodeAt","byteArray","Uint8Array","Blob","b64toBlob","blobUrl","URL","createObjectURL","createElement","appendChild","download","click","revokeObjectURL","rel","AccordionConfirmar","super","handleClick","currentAccordion","newAccordions","accordions","selIndex","accordion","currentPanel","prevState","newState","componentDidMount","setPanelHeight","close","panel","maxHeight","scrollHeight","on","FichaConfirmaEmpleador","rutParts","AntecedentesLaborales","tipoEmpleadoIndx","tipoEmpleadoArr","datosEmpleado","setDatosEmpleado","loaded","setLoaded","FondoConfirmar","FondosConfirmar","Cuenta","Cuentas","ctas","guardarCuentas","DatosDeContacto","contacto","guardarContacto","setDatosPersonales","formatNacionalidad","Disclaimer","disclaimers","setDisclaimers","textDecoration","ConfirmarTraspaso","welcomeRedirect","setWelcomeRedirect","dataTraspaso","setDataTraspaso","confirmarTraspasoFinal","jsonData","cuentasAnterior","empleadoresTmpArray","empleadoresTmp","datosPersona","nacionalcuentaCorrelativa","cartola","prospecto","emps","authToken","DatosContacto","PageNotFound","margin","notfound","Error","numero","logo","ConfirmarAsesor","FormValidate","query","setQuery","ValidateToken","Data","TokenRespuestaCU","BrowserRouter","FormTVI","SolicitarTicket","rut_numero","verificacion","identificacion_proveedor","url_verificacion","DatosPreviredTraspaso","UrlValidacionPrevired","tipo_verificacion","codigo_verificacion","url_usuario","UsuarioValidacionPrevired","url_clave","ClaveValidacionPrevired","codigo_institucion","requiere_segunda_verificacion","SolicitarToken","ticket_tvi","ObtieneCuentas","codigo_error","apellido_paterno","apellido_materno","poseeVoluntarias","Main","Route","path","exact","PreguntasSeguridad","Loading","App","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","useGlobalState","action","Index","store","StrictMode","Provider","ReactDOM"],"mappings":"sTAAA,IAAIA,EAAS,CACZC,QAAS,GACTC,YAAa,CAAE,eAAgB,oBAC/BC,IAAKC,aACLC,QAAS,cACTC,IAAK,oCAILN,EAAOC,QAAS,GAWFD,QCpBA,MAA0B,iC,OCK1B,SAASO,IACvB,OACCC,cAACC,IAAgB,CAChBC,YAAaC,EAAcN,QAC3BO,YAAY,aACZC,OAAQ,IACRC,OAAQA,EACRC,cAAc,cACdC,YAAY,8BACZC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,EACVC,YAAY,qBACZC,cAAc,EACdC,kBAAmB,IACnBC,mBAAmB,GAGtB,CCFeC,MAjBAA,IAEbC,eAAA,UAAQC,UAAU,yBAAwBC,SAAA,CACzCF,eAAA,OAAKC,UAAU,cAAaC,SAAA,CAC3BnB,cAAA,KAAGoB,KAAK,uCAAsCD,SAC7CnB,cAAA,OAAKkB,UAAU,WAEhBlB,cAAA,OAAKkB,UAAU,iBAAgBC,SAC9BnB,cAAA,MAAIkB,UAAU,cAIhBlB,cAACD,EAAQ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L7B,MAAMuiC,GAAQA,KACb,MAAMC,EAAQH,KACd,OACC7rC,cAACqd,IAAM4uB,WAAU,CAAA9qC,SAChBnB,cAAC0I,EAAQwjC,SAAQ,CAACroC,MAAOmoC,EAAM7qC,SAC9BnB,cAACorC,GAAG,OAEa,EAIrBe,IAAStgB,OAAO7rB,cAAC+rC,GAAK,IAAK3/B,SAASC,eAAe,SAEnDg/B,I","file":"static/js/main.5a5be26d.chunk.js","sourcesContent":["let Config = {\r\n\tAPI_URL: \"\",\r\n\tJSON_HEADER: { \"Content-Type\": \"application/json\" },\r\n\tAMB: process.env.NODE_ENV,\r\n\tWSP_NUM: \"56934855689\",\r\n\tKEY: \"PVvAX99miEVH76JKeTCGCW0nQ0PqduuD\",\r\n};\r\n\r\nif (process.env.NODE_ENV === \"production\") {\r\n\tConfig.API_URL= \"\";\r\n}\r\n\r\nif (process.env.NODE_ENV === \"test\") {\r\n\tConfig.API_URL= \"\";\r\n}\r\n\r\nif (process.env.NODE_ENV === \"development\") {\r\n\tConfig.API_URL= \"\";\r\n}\r\n\r\nexport default Config;\r\n","export default __webpack_public_path__ + \"static/media/chat.9c650f2c.svg\";","import React from \"react\";\r\nimport FloatingWhatsApp from \"react-floating-whatsapp\";\r\nimport configuration from \"../../../Config\";\r\nimport avatar from \"../../util/img/chat.svg\";\r\n\r\nexport default function Whatsapp() {\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n","import React from \"react\";\r\nimport \"./header.css\";\r\nimport Whatsapp from \"./Whatsapp\";\r\n\r\nconst Header = () => {\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n};\r\n\r\nexport default Header;\r\n","var information = {\r\n one: {\r\n title: \"La mejor rentabilidad\",\r\n detail: \"En todos los fondos en últimos 12 meses.\"\r\n },\r\n two: {\r\n title: \"La mejor experiencia de servicio\",\r\n detail: \"Según Ranking PXI 2024, sector AFP.\"\r\n },\r\n three: {\r\n title: \"La AFP con más afiliados\",\r\n detail: \"Más personas confían en nosotros.\"\r\n }, \r\n footer: 'Infórmate sobre la calidad de servicio de las AFP en la herramienta Infórmate y Decídete, disponible en la página web de la Superintendencia de Pensiones. Entrega tu opinión a la Superintendencia de Pensiones sobre la calidad del servicio de tu AFP, comienza aquí.

La rentabilidad es variable, por lo que nada garantiza que las rentabilidades pasadas se repitan en el futuro. \"Infórmese sobre la rentabilidad de su Fondo de Pensiones, las comisiones y la calidad de servicio de las AFP en el sitio web de la Superintendencia de Pensiones: http://www.spensiones.cl/\". Fuente: Inversiones y Rentabilidad de los Fondos de Pensiones correspondiente a marzo 2024. Periodo correspondiente a abril 2023 - marzo 2024. Rentabilidad de la cuota expresada en forma real promedio anual: Fondo A: 25,02% (primer lugar), Fondo B: 18,87% (primer lugar) Fondo C: 10,24% (primer lugar), Fondo D: 2,04% (primer lugar), Fondo E: -1,39% (primer lugar). Estructura de comisiones por depósitos de cotizaciones vigentes a abril de 2024 - Capital: 1,44%, Cuprum: 1,44%, Habitat: 1,27%, Modelo: 0,58%, Planvital: 1,16%, Provida: 1,45%, Uno: 0,49% - Para afiliados dependientes, independientes y voluntarios. Número de afiliados por AFP vigente según Informe Estadístico Mensual de Afiliados y Cotizantes de la Superintendencia de Pensiones (2.789.922 afiliados al 29 de febrero de 2024). Primer lugar en experiencia de servicio según ranking PXI - Praxis Xperience Index 2024 para el Sector AFP.'\r\n}\r\n\r\nexport default information;","import \"./footer.css\";\r\nimport React from \"react\";\r\nimport disclaimer from \"../disclaimer\";\r\nimport { Markup } from 'interweave';\r\n\r\nexport default function Footer() {\r\n\treturn (\r\n\t\t\r\n\t);\r\n}\r\n","import React, { useState } from 'react';\r\nimport { Modal } from \"react-bootstrap\";\r\nimport { Button } from \"react-bootstrap\";\r\nimport '../traspasoui.css'\r\n\r\nexport default function RecienTrabajoModal(props) {\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n
Recién empecé a tabajar
\r\n
\r\n Si tu primer trabajo comenzó después del 01 de octubre del 2019, Estás afiliado en AFP Uno.\r\n Por ende No puedes hacer un cambio hasta cumplir 2 años en tu primera AFP.\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import { useState } from \"react\";\r\nimport { Form, InputGroup } from \"react-bootstrap\";\r\nimport validator from \"validator\";\r\n\r\nexport default function Phone(props) {\r\n\tconst [phone, setPhone] = useState(\"\");\r\n\tconst [errorM, setErrorM] = useState({ show: false, message: \"\" });\r\n\r\n\tconst phoneChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tif (event.target.value.length < 10) {\r\n\t\t\tif (validator.isNumeric(event.target.value, [{ no_symbols: false }])) {\r\n\t\t\t\tsetPhone(event.target.value);\r\n\t\t\t} else if (event.target.value === \"\") {\r\n\t\t\t\tsetPhone(event.target.value);\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tconst phoneBlur = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tif (event.target.value.length < 9) {\r\n\t\t\tsetPhone(\"\");\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, phone: true });\r\n\t\t\tsetErrorM({ show: true, message: \"Teléfono requiere 9 caracteres.\" });\r\n\t\t} else {\r\n\t\t\tsetErrorM({ show: false, message: \"\" });\r\n\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, phone: false });\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t+56\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t{errorM.show ? (\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tError:\r\n\t\t\t\t\t\t{errorM.message}\r\n\t\t\t\t\t
\r\n\t\t\t\t) : null}\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n}\r\n","\r\nclass ValidateFieldsUtil {\r\n static formarteaRut(value) {\r\n let inval = value.trim();\r\n let rutparts = inval.replace(/[^0-9\\+kK]/gi, '').split('-');\r\n let r = rutparts[0].trim().toLowerCase().replace(/\\k/g, '');\r\n let dv = '';\r\n let h = '';\r\n\r\n if (rutparts.length > 1) {\r\n h = '-';\r\n dv = rutparts[1];\r\n if (dv.length > 0) dv = dv[0];\r\n } else {\r\n if (inval.length > 2) {\r\n let uc = inval[inval.length - 1];\r\n if (uc === 'k') r += uc;\r\n }\r\n }\r\n r = r.replace(/\\B(?=(\\d{3})+(?!\\d))/g, '.');\r\n return `${r}${h}${dv}`;\r\n }\r\n\r\n static mascaraRut(val) {\r\n let inval = val.trim();\r\n let rutparts = inval.replace(/[^0-9\\kK]/gi, '').split('-');\r\n let r = rutparts[0].trim().toLowerCase().replace(/\\k/g, '');\r\n let dv = '';\r\n let h = '';\r\n\r\n if (rutparts.length > 1) {\r\n h = '-';\r\n\r\n if (r.length > 8) r = r.substring(0, 8);\r\n\r\n dv = rutparts[1];\r\n if (dv.length > 0) dv = dv[0];\r\n } else {\r\n if (inval.length > 2) {\r\n if (inval.length > 8) {\r\n inval = inval.substring(0, 8);\r\n }\r\n\r\n let uc = inval[inval.length - 1];\r\n if (uc === 'k') r += uc;\r\n }\r\n }\r\n\r\n return `${r}${h}${dv}`;\r\n }\r\n\r\n static rutFocus(val) {\r\n let rutparts = val.split('-');\r\n let rut = rutparts[0].replace(/\\./g, '');\r\n let h = '';\r\n let dv = '';\r\n\r\n if (rutparts.length > 1) {\r\n h = '-';\r\n dv = rutparts[1];\r\n } else {\r\n if (rut.length > 2) {\r\n h = '-';\r\n dv = rut[rut.length - 1];\r\n rut = rut.substring(0, rut.length - 1);\r\n }\r\n }\r\n\r\n if (rut.length > 8) rut = rut.substring(0, 8);\r\n\r\n rut = rut.replace(/\\B(?=(\\d{3})+(?!\\d))/g, '.');\r\n return rut + h + dv;\r\n }\r\n\r\n static onlyNumbers = (val) => {\r\n return val.trim().replace(/[^0-9]/gi, '');\r\n };\r\n\r\n static enmascararEmail(val) {\r\n let mailparts = val.trim().replace(/[^a-zA-Z0-9_/-@.]/g, '').split('@');\r\n\r\n let user = mailparts[0].replace('@', '');\r\n let domain = mailparts.length > 1 ? mailparts[1].replace('@', '') : '';\r\n let arr = mailparts.length > 1 ? '@' : '';\r\n\r\n return `${user}${arr}${domain}`;\r\n }\r\n\r\n static validarRut(r) {\r\n const caracteresRut = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'k'];\r\n r = r.buscarCampo(\"rut\").valor.trim().toLowerCase().replace(/\\./g, '');\r\n // rut vacío\r\n //no tiene guion\r\n if (r.length > 1 && !r.includes(\"-\")) {\r\n let ini = r.substring(0, r.length - 1);\r\n let fin = r[r.length - 1];\r\n r = ini + \"-\" + fin;\r\n }\r\n let rutparts = r.split('-');\r\n\r\n if (rutparts.length !== 2) return false;\r\n else {\r\n // validación de formato\r\n let ru = rutparts[0];\r\n let dv = rutparts[1];\r\n let sum = 0;\r\n\r\n if (isNaN(ru)) return false;\r\n else ru = Number.parseInt(ru);\r\n\r\n if (!(caracteresRut).includes(dv)) return false;\r\n\r\n let i = 2;\r\n\r\n while (ru !== 0) {\r\n if (i > 7) i = 2;\r\n\r\n let rutdv = parseInt(ru / 10);\r\n let di = ru - rutdv * 10;\r\n sum += di * i;\r\n i++;\r\n ru = rutdv;\r\n }\r\n\r\n sum %= 11;\r\n let d = (sum === 1) ? 'k' : sum === 0 ? '0' : (11 - sum).toString();\r\n\r\n return dv === d;\r\n }\r\n }\r\n\r\n static validarFormato(r) {\r\n const valor = ValidateFieldsUtil.Upper(r.buscarCampo(\"numdoc\").valor.trim()).replace(/\\./g, \"\");\r\n const limit = valor[0] === \"A\" ? 10 : 9;\r\n return valor.length === limit;\r\n }\r\n\r\n static cedulafocus(val) {\r\n let inval = ValidateFieldsUtil.Upper(val).replace(/\\./g, \"\").trim();\r\n const ll = inval.length;\r\n\r\n if (ll > 0) {\r\n const a = inval[0];\r\n const indx = a === \"A\" ? 1 : 0;\r\n let prc = a === \"A\" ? a : \"\";\r\n let lstc = inval.substring(indx, inval.length);\r\n if (ll > 1) {\r\n const l = lstc.length;\r\n const limit = l > 9 ? 9 : l;\r\n lstc = lstc.replace(/[^0-9]/gi, \"\").substring(0, limit).replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n if (lstc.length > 0 && prc.length > 0) prc = `${prc}.`;\r\n }\r\n\r\n return prc + lstc;\r\n }\r\n return \"\";\r\n }\r\n\r\n static cedulaNumDoc(v) {\r\n v = ValidateFieldsUtil.Upper(v).replace(/\\./g, \"\").trim();\r\n const ll = v.length;\r\n if (ll > 0) {\r\n const a = v[0];\r\n const indx = a === \"A\" ? 1 : 0;\r\n let prc = a === \"A\" ? a : \"\";\r\n let lstc = v.substring(indx, v.length);\r\n if (ll > 1) {\r\n const l = lstc.length;\r\n const limit = l > 9 ? 9 : l;\r\n lstc = lstc.replace(/[^0-9]/gi, '').substring(0, limit).replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n if (lstc.length > 0 && prc.length > 0) prc = `${prc}.`;\r\n }\r\n\r\n return prc + lstc;\r\n }\r\n return \"\";\r\n }\r\n\r\n static eliminaPuntosYGuion(rut) {\r\n return rut.replace(/\\.|-/g, \"\");\r\n }\r\n\r\n static nombreCorto(r) {\r\n let nombre = r.buscarCampo(\"nombres\").valor;\r\n nombre = (nombre) ? nombre.trim() : \"\";\r\n return nombre.length > 2;\r\n }\r\n\r\n static nombreValido(r) {\r\n let nombre = r.buscarCampo(\"nombres\").valor;\r\n nombre = (nombre) ? nombre.trim() : \"\";\r\n return nombre.match(/^[-'A-Za-zÀ-ÖØ-öø-ÿ\\'\\s\\.\\,]+$/);\r\n }\r\n\r\n static celularCorto(r) {\r\n let nombre = r.buscarCampo(\"celular\").valor;\r\n nombre = (nombre) ? nombre.trim() : \"\";\r\n return nombre.length > 7;\r\n }\r\n\r\n static mascaraNombre(val) {\r\n let x = val.replace(/[0-9]+$/g, \"\");\r\n let y = x.replace(/[.*+\\?^${}()|[\\]\\\\!\"·%?&¿ºª/=¡`´¨¨~,;:_<>°#]/g, \"\");\r\n return y;\r\n }\r\n\r\n static Upper = (cadena) => {\r\n if (cadena !== null && cadena !== undefined && cadena !== \"\") {\r\n return cadena.toUpperCase();\r\n }\r\n return cadena;\r\n }\r\n}\r\n\r\nexport default ValidateFieldsUtil;","import { createContext } from 'react';\r\n\r\nconst Context = createContext({});\r\n\r\nexport default Context;","import configuration from \"../../Config\";\r\n\r\n//const Cryptr = require(\"cryptr\");\r\n//const cryptr = new Cryptr(configuration.KEY);\r\n\r\nclass Crypto {\r\n\tstatic Encrypt(name, value) {\r\n\t\tvar j = JSON.stringify(value);\r\n\t\t//var c = cryptr.encrypt(j);\r\n\t\tsessionStorage.setItem(name, j);\r\n\t}\r\n\r\n\tstatic Decrypt(name) {\r\n\t\tvar sess = sessionStorage.getItem(name);\r\n\r\n\t\t//var dec = cryptr.decrypt(sess);\r\n\r\n\t\tvar par = JSON.parse(sess);\r\n\r\n\t\treturn par;\r\n\t}\r\n}\r\nexport default Crypto;\r\n","import { useContext, useState } from \"react\";\r\nimport { Form } from \"react-bootstrap\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport ValidateFieldsUtil from \"../../../../util/validacion/ValidateFieldsUtil\";\r\nimport Context from \"../../../../../store/context\";\r\nimport configuration from \"../../../../../Config\";\r\nimport Inputmask from \"inputmask\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../../../util/Crypto\";\r\n\r\nexport default function Rut(props) {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [validate, setValidate] = useState(false);\r\n\tconst [rut, setRut] = useState(\"\");\r\n\tconst [rutField, setRutField] = useState(\"\");\r\n\tconst [errorM, setErrorM] = useState({ show: false, message: \"\" });\r\n\r\n\tconst rutChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tsetRutField(event.target.value);\r\n\t\tvar selector = document.getElementById(\"RUTMASK\");\r\n\r\n\t\tInputmask({\r\n\t\t\tmask: \"(9(.999){2}-K)|(99(.999){2}-K)\",\r\n\t\t\tautoUnmask: true,\r\n\t\t\tkeepStatic: true,\r\n\t\t\tshowMaskOnFocus: true,\r\n\t\t\tshowMaskOnHover: true,\r\n\t\t\tdefinitions: {\r\n\t\t\t\tK: {\r\n\t\t\t\t\tvalidator: \"[0-9|Kk]\",\r\n\t\t\t\t\tcasing: \"upper\",\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t}).mask(selector);\r\n\t};\r\n\r\n\tconst formatValidateRut = (rutString) => {\r\n\t\tlet rutparts = rutString.split(\"-\");\r\n\t\tlet rut = rutparts[0].replace(/\\./g, \"\");\r\n\t\tlet h = \"\";\r\n\t\tlet dv = \"\";\r\n\r\n\t\tif (rutparts.length > 1) {\r\n\t\t\th = \"-\";\r\n\t\t\tdv = rutparts[1];\r\n\t\t} else {\r\n\t\t\tif (rut.length > 2) {\r\n\t\t\t\th = \"-\";\r\n\t\t\t\tdv = rut[rut.length - 1];\r\n\t\t\t\trut = rut.substring(0, rut.length - 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (rut.length > 8) rut = rut.substring(0, 8);\r\n\t\tlet T = rut;\r\n\t\tvar M = 0,\r\n\t\t\tS = 1;\r\n\t\tfor (; T; T = Math.floor(T / 10)) S = (S + (T % 10) * (9 - (M++ % 6))) % 11;\r\n\r\n\t\tif (dv === (S ? S - 1 : \"k\").toString()) {\r\n\t\t\trut = rut.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\t\t\treturn rut + h + dv;\r\n\t\t} else if (dv === (S ? S - 1 : \"K\").toString()) {\r\n\t\t\trut = rut.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\t\t\treturn rut + h + dv;\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t};\r\n\r\n\tconst rutBlur = async (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tif (event.target.value !== null && event.target.value !== \"\") {\r\n\t\t\tvar value = event.target.value.padStart(9, \"0\");\r\n\r\n\t\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\t\t\tlet rutString = formatValidateRut(value);\r\n\r\n\t\t\tif (rutString !== \"\") {\r\n\t\t\t\tsetRutField(rutString);\r\n\t\t\t\tsetErrorM({ show: false, message: \"\" });\r\n\t\t\t\tprops.setValidateForm({ ...props.validateForm, rut: false });\r\n\r\n\t\t\t\tlet rut = ValidateFieldsUtil.eliminaPuntosYGuion(\r\n\t\t\t\t\tValidateFieldsUtil.Upper(event.target.value)\r\n\t\t\t\t);\r\n\r\n\t\t\t\tawait fetch(`${configuration.API_URL}/api/Previsional/Validar`, {\r\n\t\t\t\t\tmethod: \"POST\",\r\n\t\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\t\tbody: JSON.stringify({\r\n\t\t\t\t\t\tRut: rut,\r\n\t\t\t\t\t}),\r\n\t\t\t\t})\r\n\t\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t\t.then((response) => {\r\n\t\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t\t\tsetRut(rut);\r\n\r\n\t\t\t\t\t\tvar data = { run: rut };\r\n\r\n\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\t\tsetValidate(response);\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch((error) => {\r\n\t\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t\t});\r\n\t\t\t} else {\r\n\t\t\t\tsetRutField(event.target.value);\r\n\t\t\t\tsetErrorM({ show: true, message: \"El RUT ingresado es incorrecto.\" });\r\n\t\t\t\tprops.setValidateForm({ ...props.validateForm, rut: true });\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsetErrorM({ show: true, message: \"Ingrese el RUT, por favor.\" });\r\n\t\t\tOnLoading(false);\r\n\t\t}\r\n\t};\r\n\r\n\tconst OnLoading = async (load) => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: load } });\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{validate ? (\r\n\t\t\t\t\r\n\t\t\t) : null}\r\n\t\t\t {\r\n\t\t\t\t\trutChange(e);\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t\t{errorM.show ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\tError:\r\n\t\t\t\t\t{errorM.message}\r\n\t\t\t\t
\r\n\t\t\t) : null}\r\n\t\t\r\n\t);\r\n}\r\n","import { useState } from \"react\";\r\nimport { Form } from \"react-bootstrap\";\r\nimport validator from \"validator\";\r\n\r\nexport default function Email(props) {\r\n\tconst [mailValue, setMailValue] = useState(\"\");\r\n\tconst [errorM, setErrorM] = useState({ show: false, message: \"\" });\r\n\r\n\tconst mailChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tsetMailValue(event.target.value);\r\n\t};\r\n\r\n\tconst mailBlur = (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tif (validator.isEmail(event.target.value)) {\r\n\t\t\tsetErrorM({ show: false, message: \"\" });\r\n\t\t\tsetMailValue(event.target.value);\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, email: false });\r\n\t\t} else {\r\n\t\t\tsetMailValue(\"\");\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, email: true });\r\n\t\t\tsetErrorM({\r\n\t\t\t\tshow: true,\r\n\t\t\t\tmessage: \"La dirección de correo tiene un formato incorrecto.\",\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t{errorM.show ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\tError:\r\n\t\t\t\t\t{errorM.message}\r\n\t\t\t\t
\r\n\t\t\t) : null}\r\n\t\t\r\n\t);\r\n}\r\n","import { useState } from \"react\";\r\nimport { Form } from \"react-bootstrap\";\r\n\r\nexport default function Name(props) {\r\n\tconst [name, setName] = useState(\"\");\r\n\tconst [errorM, setErrorM] = useState({ show: false, message: \"\" });\r\n\r\n\tconst nameChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tconst re = /^[-'A-Za-zÀ-ÖØ-öø-ÿ\\s\\.]+$/g;\r\n\t\tif (event.target.value === \"\" || re.test(event.target.value)) {\r\n\t\t\tsetName(event.target.value);\r\n\t\t}\r\n\t};\r\n\r\n\tconst nameBlur = (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tconst regexNombre = /^[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]+\\s+[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]+\\s+[a-zA-ZáéíóúüñÁÉÍÓÚÜÑ]+$/;\r\n\r\n\t\tvar texto = event.target.value.trim();\r\n\r\n\t\tif (texto.length < 3 || texto.trim() === \"\") {\r\n\t\t\tsetName(\"\");\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, name: true });\r\n\t\t\tsetErrorM({ show: true, message: \"Nombre mínimo de 3 caracteres.\" });\r\n\t\t} else if (texto.trim().length > 30) {\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, name: true });\r\n\t\t\tsetErrorM({ show: true, message: \"Nombre máximo de 30 caracteres.\" });\r\n\t\t} else if (!regexNombre.test(texto)) {\r\n\t\t\tsetName(\"\");\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, name: true });\r\n\t\t\tsetErrorM({ show: true, message: \"El formato no es válido. Debe incluir nombre, apellido paterno y apellido materno.\" });\r\n\t\t}\r\n\t\telse {\r\n\t\t\tprops.setValidateForm({ ...props.validateForm, name: false });\r\n\t\t\tsetErrorM({ show: false, message: \"\" });\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t\r\n\t\t\t{errorM.show ? (\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\tError:\r\n\t\t\t\t\t{errorM.message}\r\n\t\t\t\t
\r\n\t\t\t) : null}\r\n\t\t\r\n\t);\r\n}\r\n","import \"../traspasoui.css\";\r\nimport React, { useState, useContext } from \"react\";\r\nimport { Form, Button } from \"react-bootstrap\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport Phone from \"./inputs/Phone\";\r\nimport Rut from \"./inputs/Rut\";\r\nimport Email from \"./inputs/Email\";\r\nimport Name from \"./inputs/Name\";\r\nimport Context from \"../../../../store/context\";\r\nimport configuration from \"../../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../../util/Crypto\";\r\n\r\nexport default function Formulario() {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [formValues, setFormValues] = useState({});\r\n\tconst [redirect, setRedirect] = useState(false);\r\n\tconst [validateForm, setValidateForm] = useState({\r\n\t\trut: true,\r\n\t\tname: true,\r\n\t\tphone: true,\r\n\t\temail: true,\r\n\t});\r\n\r\n\tconst handleSubmit = async (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\r\n\t\tlet raw = {\r\n\t\t\tRut: formValues.rut.trim().toLowerCase().replace(/\\./g, \"\"),\r\n\t\t\tNames: formValues.name.trim(),\r\n\t\t\tPhone: `+56${formValues.phone.trim()}`,\r\n\t\t\tEmail: formValues.email.trim(),\r\n\t\t};\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/Traspaso`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify(raw),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\t\t\t\tdata.run = formValues.rut;\r\n\t\t\t\t\tdata.email = formValues.email;\r\n\t\t\t\t\tdata.name = formValues.name;\r\n\t\t\t\t\tdata.phone = formValues.phone;\r\n\t\t\t\t\tdata.solicitud = response.Response.Token;\r\n\r\n\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t\t\tsetRedirect(true);\r\n\t\t\t\t}\r\n\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst handleChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tlet arrayForm = { ...formValues };\r\n\r\n\t\tif (event.target.name === \"rut\") {\r\n\t\t\tarrayForm.rut = event.target.value;\r\n\t\t}\r\n\t\tswitch (event.target.name) {\r\n\t\t\tcase \"rut\":\r\n\t\t\t\tarrayForm.rut = event.target.value;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"email\":\r\n\t\t\t\tarrayForm.email = event.target.value;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"name\":\r\n\t\t\t\tarrayForm.name = event.target.value;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"phone\":\r\n\t\t\t\tarrayForm.phone = event.target.value;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tsetFormValues(arrayForm);\r\n\t};\r\n\r\n\tif (!redirect) {\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tRUT\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tNombre\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCorreo electrónico\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t);\r\n\t} else {\r\n\t\treturn (\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n","import \"./traspasoui.css\";\r\nimport React, { useState } from \"react\";\r\nimport RecienTrabajoModal from \"./components/RecienTrabajoModal\";\r\nimport { Accordion, Card, Button } from \"react-bootstrap\";\r\nimport Formulario from \"./components/Formulario\";\r\nimport disclaimer from \"../../util/disclaimer\";\r\n\r\nexport default function Traspaso(props) {\r\n\tsessionStorage.setItem(\"intentos\", 0);\r\n\r\n\tconst [show, setShow] = useState(false);\r\n\tconst handleClose = () => setShow(false);\r\n\tconst handleShow = () =>\r\n\t\t(window.location.href = \"https://nueva.afpmodelo.cl/incorporaciones\");\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

¡Cámbiate a AFP Modelo!

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\tHaz tu solicitud de{\" \"}\r\n\t\t\t\t\t\t\t\t\tcambio online fácil y rápido.\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t¡Cambiarme a AFP Modelo!\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\tTe sugerimos que tengas los datos de tu empleador y cédula\r\n\t\t\t\t\t\t\t\t\t\t\tde identidad a mano para hacer este cambio mucho más\r\n\t\t\t\t\t\t\t\t\t\t\trápido.\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\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t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t{disclaimer.three.detail}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tRecién empecé a trabajar\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import './autenticacionui.css';\r\nimport React from 'react';\r\nimport Overlay from 'react-bootstrap/Overlay'\r\nimport Popover from 'react-bootstrap/Popover'\r\nimport { useState, useRef } from 'react';\r\n\r\nfunction PreguntasTooltip() {\r\n const [show, setShow] = useState(false);\r\n const target = useRef(null);\r\n\r\n return (\r\n <>\r\n \"preguntas\" setShow(!show)} onMouseEnter={() => setShow(true)} onMouseLeave={() => setShow(false)} />\r\n \r\n \r\n \r\n
\r\n

Número de Documento

\r\n \"Numero\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport default PreguntasTooltip;","import { Button, Form } from \"react-bootstrap\";\r\nimport { useState, useContext } from \"react\";\r\nimport Swal from \"sweetalert2\";\r\nimport Configuration from \"../../../../Config\";\r\nimport Context from \"../../../../store/context\";\r\nimport Tooltip from \"../autenticacionui/PreguntasTooltip\";\r\nimport Crypto from \"../../../util/Crypto\";\r\n\r\nexport default function FormClaveUnica() {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [serial, setSerialNumber] = useState(\"\");\r\n\r\n\tconst DocumentChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tconst re1try = /^\\b[aA]$/;\r\n\t\tconst re2try = /^\\b[aA][0-9]{1,9}$/;\r\n\t\tconst reOnlyNumbers = /^\\b[0-9]{1,9}$/;\r\n\t\tif (re1try.test(event.target.value) || event.target.value === \"\") {\r\n\t\t\tsetSerialNumber(event.target.value);\r\n\t\t} else if (\r\n\t\t\tevent.target.value.length > 1 &&\r\n\t\t\tre2try.test(event.target.value)\r\n\t\t) {\r\n\t\t\tsetSerialNumber(event.target.value);\r\n\t\t} else if (reOnlyNumbers.test(event.target.value)) {\r\n\t\t\tsetSerialNumber(event.target.value);\r\n\t\t}\r\n\t};\r\n\r\n\tconst AutenticateCI = async () => {\r\n\t\tawait OnLoading(true);\r\n\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\tdata.autenticacion = \"CU\";\r\n\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\r\n\t\tawait fetch(`${Configuration.API_URL}/api/ecert/Authenticate/CI/${data.run}`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.Exito) {\r\n\t\t\t\t\tawait ValidateCI(data, result.ObjetoGenerico);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: result.Descripcion,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst ValidateCI = async (data, token) => {\r\n\r\n\t\tawait fetch(`${Configuration.API_URL}/api/ecert/validate/ci`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\tbody: JSON.stringify({\r\n\t\t\t\tDatos: {\r\n\t\t\t\t\tRun: data.run,\r\n\t\t\t\t\tNumeroSerie: serial,\r\n\t\t\t\t},\r\n\t\t\t\tToken: token,\r\n\t\t\t}),\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.Exito) {\r\n\t\t\t\t\tawait AuthenticateCU(data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar dataCliente = result.ObjetoGenerico.DatosCliente;\r\n\r\n\t\t\t\t\tvar valida = dataCliente.EstadoRespuesta !== \"Consulta exitosa\";\r\n\t\t\t\t\tvar bloqueada = dataCliente.IndicadorBloqueo !== \"NOBLOQUEADO\";\r\n\t\t\t\t\tvar vencida = dataCliente.Vigencia !== \"S\";\r\n\r\n\t\t\t\t\tif (valida) {\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\ttitle: \"Número de serie incorrecto\",\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: \"El número de serie que ingresaste no corresponde al de tu cédula de identidad. Inténtalo nuevamente.\",\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else if (bloqueada) {\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t//title: \"Cédula bloqueada\",\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: \"Tu cédula está bloqueada.\",\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t}).then((result) => {\r\n\t\t\t\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\t//title: \"Clave de seguridad\",\r\n\t\t\t\t\t\t\t\t\ticon: \"info\",\r\n\t\t\t\t\t\t\t\t\thtml: \"Puedes completar tu traspaso mediante tu clave de seguridad.\",\r\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else if (vencida) {\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t//title: \"Cédula vencida\",\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: \"Tu cédula está vencida.\",\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t}).then((result) => {\r\n\t\t\t\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\t//title: \"Clave de seguridad\",\r\n\t\t\t\t\t\t\t\t\ticon: \"info\",\r\n\t\t\t\t\t\t\t\t\thtml: \"Puedes completar tu traspaso mediante tu clave de seguridad.\",\r\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst AuthenticateCU = async (data) => {\r\n\t\tawait fetch(`${Configuration.API_URL}/api/ecert/authenticate/${data.run}`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.Exito) {\r\n\t\t\t\t\tdata.token = result.ObjetoGenerico.TokenUser.TokenUser;\r\n\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\tawait SolicitudCU(data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: result.Descripcion,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst SolicitudCU = async (data) => {\r\n\t\tawait fetch(`${Configuration.API_URL}/api/ecert/validate/cu`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify({\r\n\t\t\t\tRun: data.run,\r\n\t\t\t\tUrlCallback: `${window.location.origin}/validate`,\r\n\t\t\t\tNombres: data.name,\r\n\t\t\t\tCorreo: data.email,\r\n\t\t\t\tToken: data.token,\r\n\t\t\t}),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.Exito) {\r\n\t\t\t\t\tOnLoading(false);\r\n\r\n\t\t\t\t\tvar resultado = result.ObjetoGenerico.Resultado;\r\n\r\n\t\t\t\t\tdata.identificador = resultado.Identificador;\r\n\t\t\t\t\tdata.tokentvi = resultado.IdentificadorPrevired;\r\n\r\n\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\tlet timerInterval;\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"success\",\r\n\t\t\t\t\t\ttitle: \"ClaveÚnica\",\r\n\t\t\t\t\t\thtml: '
    Se han envado los datos de manera exitosa.
    Se redireccionará automáticamente al sitio.
',\r\n\t\t\t\t\t\ttimer: 5000,\r\n\t\t\t\t\t\ttimerProgressBar: true,\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\tdidOpen: () => {\r\n\t\t\t\t\t\t\tSwal.showLoading();\r\n\t\t\t\t\t\t\tconst b = Swal.getHtmlContainer().querySelector(\"b\");\r\n\t\t\t\t\t\t\ttimerInterval = setInterval(() => {\r\n\t\t\t\t\t\t\t\tb.textContent = Swal.getTimerLeft();\r\n\t\t\t\t\t\t\t}, 100);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\twillClose: () => {\r\n\t\t\t\t\t\t\tclearInterval(timerInterval);\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t}).then((timerResult) => {\r\n\t\t\t\t\t\tif (timerResult.dismiss === Swal.DismissReason.timer) {\r\n\t\t\t\t\t\t\twindow.location.replace(resultado.UrlClaveUnica);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst steps = [];\r\n\t\t\t\t\tvar arr = result.ObjetoGenerico.ErroresValidacion;\r\n\t\t\t\t\tfor (var i = 1; i <= arr.length; i++) {\r\n\t\t\t\t\t\tsteps.push(i.toString());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tconst swalQueueStep = Swal.mixin({\r\n\t\t\t\t\t\tconfirmButtonText: \"Siguiente\",\r\n\t\t\t\t\t\tcancelButtonText: \"Anterior\",\r\n\t\t\t\t\t\tprogressSteps: steps,\r\n\t\t\t\t\t\treverseButtons: true,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tconst values = [];\r\n\t\t\t\t\tlet currentStep;\r\n\r\n\t\t\t\t\tOnLoading(false);\r\n\r\n\t\t\t\t\tfor (currentStep = 0; currentStep < steps.length;) {\r\n\t\t\t\t\t\tvar text = `${arr[currentStep]}`;\r\n\r\n\t\t\t\t\t\tconst resultq = await swalQueueStep.fire({\r\n\t\t\t\t\t\t\ttitle: result.Descripcion,\r\n\t\t\t\t\t\t\tshowCancelButton: currentStep > 0,\r\n\t\t\t\t\t\t\thtml: text,\r\n\t\t\t\t\t\t\tcurrentProgressStep: currentStep,\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (resultq.value) {\r\n\t\t\t\t\t\t\tvalues[currentStep] = resultq.value;\r\n\t\t\t\t\t\t\tcurrentStep++;\r\n\t\t\t\t\t\t} else if (resultq.dismiss === Swal.DismissReason.cancel) {\r\n\t\t\t\t\t\t\tcurrentStep--;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst OnLoading = async (load) => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: load } });\r\n\t};\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\tIngresa el N° de serie de tu Cédula de Identidad \r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCambiarme a AFP Modelo\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import './autenticacionui.css';\r\nimport React from 'react';\r\nimport Overlay from 'react-bootstrap/Overlay'\r\nimport Popover from 'react-bootstrap/Popover'\r\nimport { useState, useRef } from 'react';\r\n\r\nfunction PreguntasTooltip2() {\r\n const [show, setShow] = useState(false);\r\n const target = useRef(null);\r\n\r\n return (\r\n <>\r\n \"preguntas\" setShow(!show)} onMouseEnter={() => setShow(true)} onMouseLeave={() => setShow(false)} />\r\n \r\n \r\n \r\n
\r\n

Es una segunda clave, distinta a la Clave Web, que te permite realizar diversas transacciones con tus ahorros a través del sitio web de forma más segura.

\r\n
\r\n
\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nexport default PreguntasTooltip2;","import React, { useState } from 'react';\r\nimport { Modal } from \"react-bootstrap\";\r\nimport { Button } from \"react-bootstrap\";\r\nimport PreguntasTooltip2 from '../autenticacionui/PreguntasTooltip2';\r\n\r\nexport default function ClaveSeguridadModal() {\r\n const [show, setShow] = useState(false);\r\n\r\n const handleClose = () => setShow(false);\r\n const handleShow = () => setShow(true);\r\n\r\n return (\r\n
\r\n \r\n
Clave de seguridad
\r\n \r\n \r\n
\r\n
\r\n
\r\n \"key\" ¿Cúal es mi Clave de Seguridad?\r\n
\r\n\r\n
\r\n

La Clave de Seguridad es una segunda clave de AFP diferente a la que te permite ingresar al sitio web de tu AFP actual.

\r\n

Es especial, te permite hacer: cambio o distribución de fondos, giros desde cuentas de ahorro voluntario o cambio de AFP.

\r\n

Si no la tienes debes solicitarla en tu AFP actual. Sino, puedes hacer el cambio a AFP Modelo con tu cédula de identidad vigente.

\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","class Validacion {\r\n constructor(mensaje, exito, fracaso, invocador) {\r\n this.valida = false;\r\n this.mensaje = mensaje;\r\n this.detalles = [];\r\n this.reglas = [];\r\n this.exito = exito;\r\n this.fracaso = fracaso;\r\n this.invocador = invocador;\r\n }\r\n\r\n agregarRegla(regla) {\r\n regla.validacion = this;\r\n this.reglas.push(regla);\r\n }\r\n\r\n buscarRegla = (nombre) => this.reglas.find(r => r.nombre === nombre);\r\n\r\n buscarReglaPorId = (id) => this.reglas.find(r => r.id === id);\r\n\r\n validar() {\r\n this.valida = false;\r\n this.detalles = [];\r\n this.reglas.forEach(r => r.validar(false));\r\n this.valida = this.reglas.every(r => r.valida);\r\n if (!this.valida) this.detalles = this.reglas.filter(r => !r.valida).map(i => i.mensaje);\r\n }\r\n\r\n validacionUnica(regla) {\r\n let r = this.buscarRegla(regla);\r\n let result = false;\r\n if (r) {\r\n r.validar(true);\r\n r.despues();\r\n result = r.valida;\r\n r.valida = false;\r\n }\r\n return result;\r\n }\r\n\r\n despues() {\r\n if (this.exito && this.valida) this.exito();\r\n if (this.fracaso && !this.valida) this.fracaso();\r\n\r\n this.reglas.forEach(r => r.despues())\r\n }\r\n\r\n actualizarCampo(regla, campo, valor) {\r\n let r = this.buscarRegla(regla);\r\n if (r) {\r\n let c = r.buscarCampo(campo);\r\n if (c)\r\n c.valor = valor;\r\n }\r\n }\r\n}\r\n\r\nexport default Validacion;","class ValorReferencia {\r\n constructor(nombre, etiqueta, valor) {\r\n this.nombre = nombre;\r\n this.etiqueta = etiqueta;\r\n this.valor = valor;\r\n }\r\n}\r\n\r\nexport default ValorReferencia;","class Campo {\r\n constructor(nombre, etiqueta, valor) {\r\n this.nombre = nombre;\r\n this.etiqueta = etiqueta;\r\n this.valor = valor;\r\n }\r\n\r\n establecerValor = (valor) => this.valor = valor;\r\n}\r\n\r\nexport default Campo;","class Genericas {\r\n\r\n static campoVacio(campos) {\r\n let campo = campos[0];\r\n\r\n if (!campo) return true;\r\n else return typeof campo.valor === 'undefined' || campo.valor === null || campo.valor === '';\r\n }\r\n\r\n static esNumerico(campos) {\r\n let campo = campos[0];\r\n if (!campo) return false;\r\n return (isNaN(campo.valor));\r\n }\r\n\r\n static esEmail(campos) {\r\n let campo = campos[0];\r\n if (!campo) return false;\r\n return !(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/.test(campo.valor));\r\n }\r\n\r\n static validar(regla, campos, valoresReferencia) {\r\n let resultado = false;\r\n switch (regla) {\r\n case 'vacio': resultado = this.campoVacio(campos); break;\r\n case 'numerico': resultado = this.esNumerico(campos); break;\r\n case 'email': resultado = this.esEmail(campos); break;\r\n default: resultado = false; break;\r\n }\r\n\r\n return !resultado;\r\n }\r\n}\r\n\r\nexport default Genericas;","import ValorReferencia from './ValorReferencia';\r\nimport Campo from './Campo';\r\nimport Genericas from './Genericas';\r\n\r\nclass Regla {\r\n\r\n constructor(id, nombre, mensaje, funcValidar, exito, fracaso) {\r\n this.id = id;\r\n this.nombre = nombre;\r\n this.mensaje = mensaje;\r\n this.valida = false;\r\n this.campos = [];\r\n this.valoresReferencia = [];\r\n this.funcValidar = funcValidar;\r\n this.abortar = []; // devuelve verdadero si una de las reglas \r\n this.exito = exito;\r\n this.fracaso = fracaso;\r\n this.validacion = null;\r\n }\r\n\r\n abortarValidacion(forzar) {\r\n if (forzar) return false;\r\n if (this.abortar) {\r\n if (this.abortar.length > 0)\r\n return (this.abortar.some(a => !a.valida));\r\n return false;\r\n }\r\n return false;\r\n }\r\n\r\n validar(forzar) {\r\n this.valida = false\r\n\r\n if (this.abortarValidacion(forzar))\r\n this.valida = true;\r\n else {\r\n if (this.funcValidar)\r\n this.valida = typeof this.funcValidar === 'string' ? Genericas.validar(this.funcValidar, this.campos) : this.funcValidar(this);\r\n else\r\n this.valida = false;\r\n }\r\n }\r\n\r\n despues = () => {\r\n if (this.exito && this.valida) this.exito(this);\r\n if (this.fracaso && !this.valida) this.fracaso(this);\r\n }\r\n\r\n agregarReglaAborto = (regla) => this.abortar.push(regla);\r\n\r\n agregarCampo = (nombre, etiqueta, valor) => this.campos.push(new Campo(nombre, etiqueta, valor));\r\n\r\n agregarValorDeReferencia = (nombre, etiqueta, valor) => this.valoresReferencia.push(new ValorReferencia(nombre, etiqueta, valor));\r\n\r\n buscarCampo = (nombre) => this.campos.find(c => c.nombre === nombre);\r\n\r\n buscarValorReferencia = (nombre) => this.valoresReferencia.find(c => c.nombre === nombre);\r\n}\r\n\r\nexport default Regla","export default function Errors({ errors }) {\r\n\r\n const renderErrors = () => {\r\n if (errors.length > 0) {\r\n let items = errors.map((element, index) =>\r\n
\r\n \r\n Error:\r\n {element}\r\n
\r\n );\r\n\r\n return items;\r\n } else\r\n return null;\r\n };\r\n\r\n if (!(errors))\r\n errors = [];\r\n\r\n const errmsg = renderErrors();\r\n\r\n return (<>{errmsg});\r\n}","import configuration from \"../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../util/Crypto\";\r\n\r\nconst RegistrarIntentoLogin = async (metodo, resultado, setCallback) => {\r\n\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\tlet raw = { token: data.solicitud, metodo: metodo, resultado: resultado };\r\n\r\n\tif (data.solicitud !== null) {\r\n\t\tawait fetch(`${configuration.API_URL}/api/Autenticacion`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify(raw),\r\n\t\t}).catch((error) => {\r\n\t\t\tconsole.error(error);\r\n\t\t\tSwal.fire({\r\n\t\t\t\ticon: \"error\",\r\n\t\t\t\ttext: error.message,\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t});\r\n\r\n\t\t\tsetCallback({\r\n\t\t\t\terror: \"No se pudo registrar la autenticación\",\r\n\t\t\t\tdetalle: error.message,\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n};\r\nexport default RegistrarIntentoLogin;\r\n","import { useContext, useState, useEffect } from \"react\";\r\nimport { Button, Form, FormControl, InputGroup } from \"react-bootstrap\";\r\nimport { Redirect, useLocation } from \"react-router-dom\";\r\nimport ClaveSeguridadModal from \"./ClaveSeguridadModal\";\r\nimport Validacion from \"../../../util/validacion/Validacion\";\r\nimport Regla from \"../../../util/validacion/Regla\";\r\nimport Errors from \"../components/Errors\";\r\nimport RegistrarIntentoLogin from \"../../../util/RegistrarIntentoLogin\";\r\nimport \"../autenticacion.css\";\r\nimport Context from \"../../../../store/context\";\r\nimport configuration from \"../../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../../util/Crypto\";\r\n\r\nexport default function FormClaveSeguridad({ setActiveSacu, setActiveRut }) {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [form, setForm] = useState([]);\r\n\tconst [toCCO, setToCCO] = useState(false);\r\n\tconst [errors, setErrors] = useState([]);\r\n\tconst [setErrorHandles] = useState(null);\r\n\tconst [dataJson, setDataJson] = useState(null);\r\n\tconst [disabled, setDisabled] = useState(true);\r\n\tconst [sinCuentas, setSinCuentas] = useState(false);\r\n\tconst [causalRechazo, setCausalRechazo] = useState([]);\r\n\tconst params = new URLSearchParams(useLocation().search);\r\n\tconst value = params.get(\"token\");\r\n\r\n\tconst addOption = async (arr) => {\r\n\t\tconst steps = [];\r\n\r\n\t\tfor (var i = 1; i <= arr.length; i++) {\r\n\t\t\tsteps.push(i.toString());\r\n\t\t}\r\n\r\n\t\tconst swalQueueStep = Swal.mixin({\r\n\t\t\tconfirmButtonText: \"Siguiente\",\r\n\t\t\tcancelButtonText: \"Anterior\",\r\n\t\t\tprogressSteps: steps,\r\n\t\t\treverseButtons: true,\r\n\t\t});\r\n\r\n\t\tconst values = [];\r\n\t\tlet currentStep;\r\n\r\n\t\tfor (currentStep = 0; currentStep < steps.length;) {\r\n\t\t\tvar text = `La ${arr[currentStep].nombreTipo} perteneciente a ${arr[currentStep].origen} presenta el siguiente problema: ${arr[currentStep].causalRechazo}`;\r\n\r\n\t\t\tif (arr[currentStep].causalRechazoCodigo === 15) {\r\n\t\t\t\ttext = `La ${arr[currentStep].nombreTipo} que intentas traspasar desde AFP ${arr[currentStep].origen} se encuentra bloqueada, dado que presentas una medida cautelar vigente por concepto de la Ley de Pensión de Alimentos (ley 21.484)`;\r\n\t\t\t}\r\n\r\n\t\t\tconst result = await swalQueueStep.fire({\r\n\t\t\t\ttitle: \"No es posible concretar tu solicitud\",\r\n\t\t\t\tshowCancelButton: currentStep > 0,\r\n\t\t\t\thtml: text,\r\n\t\t\t\tcurrentProgressStep: currentStep,\r\n\t\t\t});\r\n\r\n\t\t\tif (result.value) {\r\n\t\t\t\tvalues[currentStep] = result.value;\r\n\t\t\t\tcurrentStep++;\r\n\t\t\t} else if (result.dismiss === Swal.DismissReason.cancel) {\r\n\t\t\t\tcurrentStep--;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(() => {\r\n\t\tif (value) {\r\n\t\t\tsetToCCO(true);\r\n\t\t}\r\n\t}, [value]);\r\n\r\n\tconst handleSubmit = async (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tsetCausalRechazo([]);\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\r\n\t\tlet validacion = new Validacion(\r\n\t\t\t\"Formulario inválido, por favor revisar Clave de Seguridad:\",\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tnull\r\n\t\t);\r\n\t\tlet clavevacia = new Regla(\r\n\t\t\t1,\r\n\t\t\t\"clave_vacia\",\r\n\t\t\t\"La clave de seguridad no puede estar VACÍA\",\r\n\t\t\t\"vacio\",\r\n\t\t\tnull,\r\n\t\t\tnull\r\n\t\t);\r\n\t\tclavevacia.agregarCampo(\r\n\t\t\t\"claveseguridad\",\r\n\t\t\t\"Clave de Seguridad\",\r\n\t\t\tform.claveseg\r\n\t\t);\r\n\r\n\t\tvalidacion.agregarRegla(clavevacia);\r\n\t\tvalidacion.validar();\r\n\r\n\t\tif (validacion.valida) {\r\n\t\t\tsetErrors([]);\r\n\t\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\t\tdata.autenticacion = \"SACU\";\r\n\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\tvar rut = data.run.replace(\"-\", \"\");\r\n\r\n\t\t\tlet _body = {\r\n\t\t\t\tRut: rut,\r\n\t\t\t\tClave: form.claveseg,\r\n\t\t\t\tIp: \"\",\r\n\t\t\t};\r\n\r\n\t\t\tawait fetch(`${configuration.API_URL}/api/Previsional/clave`, {\r\n\t\t\t\tmethod: \"POST\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\tbody: JSON.stringify(_body),\r\n\t\t\t})\r\n\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t.then((response) => {\r\n\r\n\t\t\t\t\tconst claveOk = response.codigo === 0;\r\n\t\t\t\t\tRegistrarIntentoLogin(1, claveOk, setErrorHandles);\r\n\r\n\t\t\t\t\tif (claveOk) {\r\n\t\t\t\t\t\tlet token = response.response.respuestansacu.token;\r\n\r\n\t\t\t\t\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\t\t\t\t\tdata.token = token;\r\n\r\n\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\t\tlet raw = {\r\n\t\t\t\t\t\t\ttoken: token,\r\n\t\t\t\t\t\t\tcodigo: \"1034\",\r\n\t\t\t\t\t\t\trut: rut.substring(0, rut.length - 1),\r\n\t\t\t\t\t\t\trutDv: rut.substring(rut.length - 1),\r\n\t\t\t\t\t\t\tnombres: \"\",\r\n\t\t\t\t\t\t\tapellidoPaterno: \"\",\r\n\t\t\t\t\t\t\tapellidoMaterno: \"\",\r\n\t\t\t\t\t\t\tcuentas: [\r\n\t\t\t\t\t\t\t\t{ codigo: \"CCICO\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"CCIAV\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"CAI\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"CAV\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"CCICV\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"CCIDC\" },\r\n\t\t\t\t\t\t\t\t{ codigo: \"APVC\" },\r\n\t\t\t\t\t\t\t],\r\n\t\t\t\t\t\t\totros: \"\",\r\n\t\t\t\t\t\t\tautenticacion: data.autenticacion\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tsessionStorage.setItem(\"jsonFondo\", JSON.stringify(raw));\r\n\t\t\t\t\t\tsetCausalRechazo([]);\r\n\r\n\t\t\t\t\t\tfetch(`${configuration.API_URL}/api/Previred`, {\r\n\t\t\t\t\t\t\tmethod: \"POST\",\r\n\t\t\t\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t\t\t\t.then((response) => {\r\n\t\t\t\t\t\t\t\tif (response.code === \"0\") {\r\n\t\t\t\t\t\t\t\t\tactions({\r\n\t\t\t\t\t\t\t\t\t\ttype: \"setState\",\r\n\t\t\t\t\t\t\t\t\t\tpayload: { ...state, loading: false },\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tif (response.response.cuentas.length === 0) {\r\n\t\t\t\t\t\t\t\t\t\tsetSinCuentas(true);\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (response.response.cuentasRechazo.length !== 0) {\r\n\t\t\t\t\t\t\t\t\t\t\taddOption(response.response.cuentasRechazo);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tresponse.response.token = raw.token;\r\n\r\n\t\t\t\t\t\t\t\t\t\tresponse.response.cuentas.forEach((item, index) => {\r\n\t\t\t\t\t\t\t\t\t\t\titem.fondos.forEach((fondo, i) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\tfondo.origen = fondo.nombre;\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t\tsetDataJson(response);\r\n\t\t\t\t\t\t\t\t\t\tsetToCCO(true);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\t\t\t\ttext: response.message,\r\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\tactions({\r\n\t\t\t\t\t\t\t\t\t\ttype: \"setState\",\r\n\t\t\t\t\t\t\t\t\t\tpayload: { ...state, loading: false },\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.catch((error) => {\r\n\t\t\t\t\t\t\t\tactions({\r\n\t\t\t\t\t\t\t\t\ttype: \"setState\",\r\n\t\t\t\t\t\t\t\t\tpayload: { ...state, loading: false },\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: response.mensaje,\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tconsole.error(response.mensaje);\r\n\r\n\t\t\t\t\t\tactions({\r\n\t\t\t\t\t\t\ttype: \"setState\",\r\n\t\t\t\t\t\t\tpayload: { ...state, loading: false },\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tsetToCCO(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t});\r\n\t\t} else {\r\n\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\tlet errores = [];\r\n\r\n\t\t\tvalidacion.reglas.forEach((r) => {\r\n\t\t\t\tif (!r.valida) errores.push(r.mensaje);\r\n\t\t\t});\r\n\t\t\tsetErrors(errores);\r\n\t\t}\r\n\t};\r\n\r\n\tconst [passwordShown, setPasswordShown] = useState(false);\r\n\r\n\tconst togglePasswordVisiblity = () => {\r\n\t\tsetPasswordShown(passwordShown ? false : true);\r\n\t};\r\n\r\n\tconst getStrval = (val) => (val === undefined || val === null ? \"\" : val);\r\n\r\n\tconst handleChange = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tlet arrayForm = form;\r\n\t\tarrayForm[[event.target.name]] = event.target.value;\r\n\t\tsetForm(arrayForm);\r\n\t\tsetDisabled(getStrval(event.target.value) === \"\");\r\n\t};\r\n\r\n\tconst noAccounts = () => {\r\n\t\tcausalRechazo.forEach(function (cuenta) {\r\n\t\t\tlet texto = `La ${cuenta.nombreTipo} perteneciente a ${cuenta.origen} presenta el siguiente problema: ${cuenta.causalRechazo}`;\r\n\t\t\tSwal.fire({\r\n\t\t\t\ticon: \"error\",\r\n\t\t\t\ttext: texto,\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t});\r\n\t\t});\r\n\t};\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t{toCCO ? (\r\n\t\t\t\t\r\n\t\t\t) : null}\r\n\t\t\t{sinCuentas ? noAccounts() : null}\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t 0 ? \"is-invalid\" : \"\"}\r\n\t\t\t\t\t\tplaceholder={passwordShown ? \"ABC2020\" : \"*******\"}\r\n\t\t\t\t\t\tname=\"claveseg\"\r\n\t\t\t\t\t\tautoComplete=\"current-password\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{!passwordShown ? \"ver\" : \"ocultar\"}   {\" \"}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tContinuar\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\r\n\t\t
\r\n\t);\r\n}\r\n","import configuration from \"../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../util/Crypto\";\r\n\r\nconst RegistrarPaso = async (idfase) => {\r\n\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\tif (\r\n\t\tdata.solicitud !== null &&\r\n\t\tdata.solicitud !== \"\" &&\r\n\t\tdata.solicitud !== 0 &&\r\n\t\tdata.solicitud !== undefined\r\n\t) {\r\n\t\tawait fetch(`${configuration.API_URL}/api/Traspaso/${data.solicitud}`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (response !== null) {\r\n\t\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\t\tlet raw = {\r\n\t\t\t\t\t\t\tIdFase: idfase,\r\n\t\t\t\t\t\t\tIdProspecto: response.Response.Id,\r\n\t\t\t\t\t\t\tFecha: new Date(),\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tRegistrarPasoPost(raw);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdata.solicitud = \"\";\r\n\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: `No se pudo cargar la sesión ${response.Code}`,\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: \"No se pudo cargar la sesión Sesión Nula\",\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t}\r\n};\r\nconst RegistrarPasoPost = async (raw) => {\r\n\tawait fetch(`${configuration.API_URL}/api/Fase`, {\r\n\t\tmethod: \"POST\",\r\n\t\theaders: configuration.JSON_HEADER,\r\n\t\tbody: JSON.stringify(raw),\r\n\t}).catch((error) => {\r\n\t\tconsole.error(error);\r\n\t\tSwal.fire({\r\n\t\t\ticon: \"error\",\r\n\t\t\ttext: error.message,\r\n\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\tallowOutsideClick: false,\r\n\t\t});\r\n\t});\r\n};\r\n\r\nexport default RegistrarPaso;\r\n","export default __webpack_public_path__ + \"static/media/claveunica.8d354368.svg\";","import \"./autenticacion.css\";\r\nimport React, { useState, useEffect } from \"react\";\r\nimport { Card, Accordion } from \"react-bootstrap\";\r\nimport { Link } from \"react-router-dom\";\r\nimport FormClaveUnica from \"./components/FormClaveUnica\";\r\nimport FormClaveSeguridad from \"./components/FormClaveSeguridad\";\r\nimport RegistrarPaso from \"../../util/RegistrarPaso\";\r\nimport ClaveUnica from \"./img/claveunica.svg\";\r\nimport Crypto from \"../../../components/util/Crypto\";\r\nimport disclaimer from \"../../util/disclaimer\";\r\n\r\nexport default function Autenticacion(props) {\r\n\tconst [isOn, toggleIsOn] = useToggle(true);\r\n\tconst [isOnB, toggleIsOnB] = useToggle(false);\r\n\tconst [setLoading] = useState(false);\r\n\tconst accordeon = { display: \"flex\", flexDirecction: \"row\" };\r\n\tconst [pasoRegistrado, setPasoRegistrado] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tlet data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tif (data?.run === null || data?.run === \"\") {\r\n\t\t\twindow.location.href = \"/\";\r\n\t\t}\r\n\r\n\t\tif (!pasoRegistrado) {\r\n\t\t\tRegistrarPaso(2);\r\n\t\t\tsetPasoRegistrado(true);\r\n\t\t}\r\n\t}, [pasoRegistrado]);\r\n\r\n\tfunction useToggle(initialValue = false) {\r\n\t\tconst [value, setValue] = React.useState(initialValue);\r\n\t\tconst toggle = React.useCallback(() => {\r\n\t\t\tsetValue((v) => !v);\r\n\t\t}, []);\r\n\t\treturn [value, toggle];\r\n\t}\r\n\r\n\treturn (\r\n\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t

¡Cámbiate a AFP Modelo!

\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\tHaz tu solicitud de{\" \"}\r\n\t\t\t\t\t\t\t\t\tcambio online fácil y rápido.\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\tElige cómo quieres identificarte\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t\t\t
\r\n\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t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t
\r\n\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\tSi sólo posees cuenta obligatoria podrás utilizar\r\n\t\t\t\t\t\t\t\t\t\t\tClaveÚnica como método de autenticación.\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t\t\tTe sugerimos que tengas los datos de tu empleador y cédula\r\n\t\t\t\t\t\t\t\t\t\t\tde identidad a mano para hacer este cambio mucho más\r\n\t\t\t\t\t\t\t\t\t\t\trápido.\r\n\t\t\t\t\t\t\t\t\t\t

\r\n\t\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t
Volver
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t¿Por qué cambiarme a AFP Modelo?\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{disclaimer.one.title}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{disclaimer.one.detail}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{disclaimer.two.title}\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{disclaimer.two.detail}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t{disclaimer.three.title}\r\n\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t{disclaimer.three.detail}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n","import { useEffect, useState } from \"react\";\r\nimport { Form } from \"react-bootstrap\";\r\nimport './cuestionario.css'\r\n\r\nexport default function PreguntasForm(props) {\r\n const [nextAsk, setNextAsk] = useState(props.nextAsk);\r\n const [arrayAsk, setArrayAsk] = useState(props.arrayAsk);\r\n\r\n useEffect(() => {\r\n setNextAsk(props.nextAsk);\r\n setArrayAsk(props.arrayAsk);\r\n }, [props])\r\n\r\n return (\r\n
\r\n
Pregunta {nextAsk} de 5
\r\n\r\n
\r\n
\r\n
\r\n
{arrayAsk.detalle.desafio[nextAsk - 1].pregunta}
\r\n
{arrayAsk.detalle.desafio[nextAsk - 1].alternativas.map((alternativas, index) => (\r\n
\r\n\r\n \r\n
\r\n ))}\r\n
\r\n
\r\n );\r\n}","import React, { useEffect, useState } from \"react\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport RegistrarIntentoLogin from \"../../util/RegistrarIntentoLogin\";\r\nimport configuration from \"../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../util/Crypto\";\r\n\r\nconst padTime = (time) => (String(time).length === 1 ? `0${time}` : `${time}`);\r\n\r\nconst format = (time) => {\r\n\tconst minutes = Math.floor(time / 60);\r\n\tconst seconds = time % 60;\r\n\treturn `${minutes}:${padTime(seconds)}`;\r\n};\r\n\r\nexport default function Timer(props) {\r\n\tconst [paused, setPaused] = useState(props.paused);\r\n\tconst [errors, setErrors] = useState(null);\r\n\tconst [counter, setCounter] = useState(\r\n\t\tparseInt(props.countdown.Response.TiempoRestante / 1000)\r\n\t);\r\n\tconst [timeOut, setTimeOut] = useState(false);\r\n\tconst [accion, setAccion] = useState(0);\r\n\r\n\tuseEffect(async () => {\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tlet errorTimer = errors;\r\n\t\tlet timer;\r\n\r\n\t\tif (counter > 0) {\r\n\t\t\ttimer = setTimeout(\r\n\t\t\t\t() =>\r\n\t\t\t\t\tsetCounter((c) => {\r\n\t\t\t\t\t\tif (!paused) return c - 1;\r\n\t\t\t\t\t}),\r\n\t\t\t\t1000\r\n\t\t\t);\r\n\t\t} else if (counter === 0) {\r\n\t\t\ttimer = setTimeout(() => setCounter((c) => c - 1), 1000);\r\n\r\n\t\t\tRegistrarIntentoLogin(2, false, setErrors);\r\n\t\t\tsetTimeOut(true);\r\n\r\n\t\t\tlet raw = {\r\n\t\t\t\tId: props.countdown.Response.Id,\r\n\t\t\t\tToken: data.solicitud,\r\n\t\t\t\tOperacion: 2,\r\n\t\t\t};\r\n\t\t\tawait fetch(`${configuration.API_URL}/api/Timer`, {\r\n\t\t\t\tmethod: \"PUT\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t})\r\n\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tconst leAction = props.countdown.Response.Intento === 1 ? 1 : 2;\r\n\t\t\t\t\tsetAccion(leAction);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\terrorTimer = {\r\n\t\t\t\t\t\terror: \"No se pudo actualizar el timer\",\r\n\t\t\t\t\t\tdetalle: error.message,\r\n\t\t\t\t\t};\r\n\t\t\t\t\tsetErrors(errorTimer);\r\n\t\t\t\t\tsetAccion(3);\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn () => {\r\n\t\t\tif (timer) {\r\n\t\t\t\tclearTimeout(timer);\r\n\t\t\t}\r\n\t\t};\r\n\t}, [counter, timeOut, accion]);\r\n\r\n\tconst acciones = [\r\n\t\t
\r\n\t\t\t\r\n\t\t
,\r\n\t\t,\r\n\t\t,\r\n\t\t,\r\n\t];\r\n\r\n\treturn
{acciones[accion]}
;\r\n}\r\n","import \"./cuestionario.css\";\r\nimport React, { useState, useEffect, useContext } from \"react\";\r\nimport { Form } from \"react-bootstrap\";\r\nimport PreguntasForm from \"./PreguntasForm\";\r\nimport Timer from \"./Timer\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport RegistrarIntentoLogin from \"../../util/RegistrarIntentoLogin\";\r\nimport Context from \"../../../store/context\";\r\nimport configuration from \"../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../util/Crypto\";\r\n\r\nconst Cuestionario = (props) => {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [arrayAsk, setarrayAsk] = useState(props.location.state.data);\r\n\tconst [next, setnext] = useState(1);\r\n\tconst [form, setform] = useState({});\r\n\tconst [redirectFondos, setredirectFondos] = useState(false);\r\n\tconst [redirectUno, setredirectUno] = useState(false);\r\n\tconst [redirectBloqueo, setredirectBloqueo] = useState(false);\r\n\tconst [disabled, setdisabled] = useState(true);\r\n\tconst [dataJson, setdataJson] = useState({});\r\n\tconst [sinCuentas, setsinCuentas] = useState(false);\r\n\tconst [errors, seterrors] = useState(null);\r\n\tconst [timerObj, settimerObj] = useState(null);\r\n\tconst [paused, setpaused] = useState(false);\r\n\r\n\tuseEffect(async () => {\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\r\n\t\tif (timerObj === null) {\r\n\t\t\tawait fetch(`${configuration.API_URL}/api/Timer/${data.solicitud}`, {\r\n\t\t\t\tmethod: \"GET\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t})\r\n\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tsettimerObj(response);\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tthis.setErrorCallBack({\r\n\t\t\t\t\t\terror: \"Error al cargar el timer\",\r\n\t\t\t\t\t\tdetalle: error.message,\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (data.solicitud !== null) {\r\n\t\t\tawait fetch(`${configuration.API_URL}/api/Traspaso/${data.solicitud}`, {\r\n\t\t\t\tmethod: \"GET\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t})\r\n\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\t\t\t\tif (response !== null) {\r\n\t\t\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\t\t\tdata.run = response.Response.Rut;\r\n\r\n\t\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\t\t\t\t} else if (response.Code === 2) {\r\n\t\t\t\t\t\t\tsetredirectBloqueo(true);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tdata.solicitud = \"\";\r\n\t\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdata.solicitud = \"\";\r\n\t\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t}\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t}, []);\r\n\r\n\tconst setErrorCallBack = (objetoError) => {\r\n\t\tseterrors({ error: objetoError.error, detalle: objetoError.detalle });\r\n\t};\r\n\r\n\tconst handlerNextButton = async (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tif (next === 5) {\r\n\t\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\t\t\tsetpaused(true);\r\n\r\n\t\t\tlet respTemp = [];\r\n\t\t\tarrayAsk.response.detalle.desafio.forEach((element, i) => {\r\n\t\t\t\tlet resp;\r\n\r\n\t\t\t\tif (i === 0) {\r\n\t\t\t\t\tresp = form.radio_0;\r\n\t\t\t\t}\r\n\t\t\t\tif (i === 1) {\r\n\t\t\t\t\tresp = form.radio_1;\r\n\t\t\t\t}\r\n\t\t\t\tif (i === 2) {\r\n\t\t\t\t\tresp = form.radio_2;\r\n\t\t\t\t}\r\n\t\t\t\tif (i === 3) {\r\n\t\t\t\t\tresp = form.radio_3;\r\n\t\t\t\t}\r\n\t\t\t\tif (i === 4) {\r\n\t\t\t\t\tresp = form.radio_4;\r\n\t\t\t\t}\r\n\r\n\t\t\t\trespTemp.push({\r\n\t\t\t\t\tcodigO_PREGUNTA: element.codigO_PREGUNTA.trim(),\r\n\t\t\t\t\tcodigO_RESPUESTA: resp,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\t\tlet rut = data.run.replace(\"-\", \"\");\r\n\r\n\t\t\tlet respuesta = {\r\n\t\t\t\tconsulta: {\r\n\t\t\t\t\tusuario: rut,\r\n\t\t\t\t\trutCliente: rut,\r\n\t\t\t\t\tidChallenge: arrayAsk.response.idChallenge,\r\n\t\t\t\t\tdesafio: { respuestas: respTemp },\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\t\tlet raw = {\r\n\t\t\t\tId: timerObj.Response.Id,\r\n\t\t\t\tToken: data.solicitud,\r\n\t\t\t\tOperacion: 1,\r\n\t\t\t};\r\n\t\t\tlet response = await fetch(`${configuration.API_URL}/api/Timer`, {\r\n\t\t\t\tmethod: \"PUT\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t}).catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t});\r\n\r\n\t\t\tresponse = await response.json();\r\n\r\n\t\t\tlet preguntasUrl = await fetch(\r\n\t\t\t\t`${configuration.API_URL}/api/Previsional/preguntas/`,\r\n\t\t\t\t{\r\n\t\t\t\t\tmethod: \"POST\",\r\n\t\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\t\tbody: JSON.stringify(respuesta),\r\n\t\t\t\t}\r\n\t\t\t).catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\r\n\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t\tseterrors({ error: \"No se pudo cargar \", detalle: error.message });\r\n\t\t\t});\r\n\r\n\t\t\tRegistrarIntentoLogin(\r\n\t\t\t\t2,\r\n\t\t\t\tpreguntasUrl.data.codigo === 0,\r\n\t\t\t\tsetErrorCallBack\r\n\t\t\t);\r\n\r\n\t\t\tif (preguntasUrl.codigo === 0) {\r\n\t\t\t\tlet raw = {\r\n\t\t\t\t\ttoken: preguntasUrl.response.token,\r\n\t\t\t\t\tcodigo: \"1034\",\r\n\t\t\t\t\trut: rut.substring(0, rut.length - 1),\r\n\t\t\t\t\trutDv: rut.substring(rut.length - 1),\r\n\t\t\t\t\tnombres: \"\",\r\n\t\t\t\t\tapellidoPaterno: \"\",\r\n\t\t\t\t\tapellidoMaterno: \"\",\r\n\t\t\t\t\tcuentas: [\r\n\t\t\t\t\t\t{ codigo: \"CCICO\" },\r\n\t\t\t\t\t\t{ codigo: \"CCIAV\" },\r\n\t\t\t\t\t\t{ codigo: \"CAI\" },\r\n\t\t\t\t\t\t{ codigo: \"CAV\" },\r\n\t\t\t\t\t\t{ codigo: \"CCICV\" },\r\n\t\t\t\t\t\t{ codigo: \"CCIDC\" },\r\n\t\t\t\t\t\t{ codigo: \"APVC\" },\r\n\t\t\t\t\t\t{ codigo: \"APV\" },\r\n\t\t\t\t\t\t{ codigo: \"CTA2\" },\r\n\t\t\t\t\t],\r\n\t\t\t\t\totros: \"\",\r\n\t\t\t\t\tautenticacion: data.autenticacion\r\n\t\t\t\t};\r\n\t\t\t\tlet cuentasprevired = await fetch(\r\n\t\t\t\t\t`${configuration.API_URL}/api/Previred`,\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmethod: \"POST\",\r\n\t\t\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t\t\t}\r\n\t\t\t\t).catch((error) => {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tseterrors({\r\n\t\t\t\t\t\terror: \"Error al obtener atributos cualitativos\",\r\n\t\t\t\t\t\tdetalle: error.message,\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\r\n\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\r\n\t\t\t\tif (cuentasprevired.code === \"0\") {\r\n\t\t\t\t\tif (cuentasprevired.response.cuentas.length === 0) {\r\n\t\t\t\t\t\tsetsinCuentas(true);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcuentasprevired.response.token = raw.token;\r\n\t\t\t\t\t\tsetdataJson(cuentasprevired);\r\n\t\t\t\t\t\tsetredirectFondos(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (cuentasprevired.code === \"1\") {\r\n\t\t\t\t\tsetsinCuentas(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tseterrors({\r\n\t\t\t\t\t\terror: \"No se pudieron cargar las cuentas\",\r\n\t\t\t\t\t\tdetalle: \"Lo sentimos No pudimos cargar tus cuentas\",\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (preguntasUrl.responseIntento.intentos === 1) {\r\n\t\t\t\t\tsetredirectUno(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetredirectBloqueo(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t} else {\r\n\t\t\tsetnext(next + 1);\r\n\t\t\tsetdisabled(true);\r\n\t\t}\r\n\t};\r\n\r\n\tconst changeForm = (event) => {\r\n\t\tconst arrayForm = Object.assign({}, form);\r\n\t\tarrayForm[[event.target.name]] = event.target.value;\r\n\t\tsetform(arrayForm);\r\n\t\tsetdisabled(false);\r\n\t};\r\n\r\n\tconst updateIntentos = (intentos) => { };\r\n\r\n\tlet bloqueoCurso = false;\r\n\tlet errorLocal = errors;\r\n\r\n\tif (timerObj === null || typeof timerObj === \"Promise\") {\r\n\t\treturn null;\r\n\t}\r\n\r\n\tif (timerObj.Response === null) {\r\n\t\terrorLocal = {\r\n\t\t\terror: { error: \"Error al cargar el timer\", detalle: timerObj.Message },\r\n\t\t};\r\n\t\tthis.setState(errorLocal);\r\n\t}\r\n\r\n\tbloqueoCurso = timerObj.Response.Code === 2;\r\n\r\n\tif (errorLocal !== null) {\r\n\t\tconst renderError = (\r\n\t\t\t\r\n\t\t);\r\n\t\treturn renderError;\r\n\t} else {\r\n\t\tif (bloqueoCurso) {\r\n\t\t\tlet data = {\r\n\t\t\t\ttitle: \"¡Ups!, Este método de atenticación no está disponible\",\r\n\t\t\t\tcardText:\r\n\t\t\t\t\t\"Por tu de seguridad este método se encuentra bloqueado por 72 horas, intenta utilizar la clave segura o inténtalo de nuevo después del bloqueo.\",\r\n\t\t\t\tbuttonTryAgain: true,\r\n\t\t\t\tbuttonPassSec: false,\r\n\t\t\t};\r\n\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tlet intento = 2 - (timerObj.Response.Intento - 1);\r\n\r\n\t\tif (sinCuentas) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\r\n\t\tif (redirectFondos) {\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (redirectBloqueo) {\r\n\t\t\tlet data = {\r\n\t\t\t\ttitle: \"¡Ups!, Respuesta incorrecta\",\r\n\t\t\t\tcardText:\r\n\t\t\t\t\t\"Hay dos intentos fallidos. Por tu seguridad, este método de validación se bloqueó por 72 horas. Podrás intentar nuevamente después del plazo señalado o utilizar la opción de clave de seguridad.\",\r\n\t\t\t\tbuttonTryAgain: false,\r\n\t\t\t\tbuttonPassSec: true,\r\n\t\t\t};\r\n\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (redirectUno) {\r\n\t\t\tlet data = {\r\n\t\t\t\ttitle: \"¡Ups!, Respuesta incorrecta\",\r\n\t\t\t\tcardText:\r\n\t\t\t\t\t\"Queda un intento de validación por preguntas de seguridad. Si nuevamente no es aprobado, por seguridad, este método de validación se bloqueará por 72 horas.\",\r\n\t\t\t\tbuttonTryAgain: true,\r\n\t\t\t\tbuttonPassSec: false,\r\n\t\t\t};\r\n\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t¡Ya te estás cambiando a AFP Modelo!\r\n\t\t\t\t\t
\r\n\t\t\t\t\t
Preguntas de seguridad
\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\tResponde correctamente para continuar.{\" \"}\r\n\t\t\t\t\t\tTienes solo {intento} intentos. Si fallas ambas\r\n\t\t\t\t\t\tveces, puedes reintentar en 72 horas.\r\n\t\t\t\t\t

\r\n\t\t\t\t
\r\n\t\t\t\t\"nina\"\r\n\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tSiguiente\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n};\r\nexport default Cuestionario;\r\n","import React from 'react';\r\n\r\nfunction obtenerEstadoUrl(estado) {\r\n let estadoFinal = \"\";\r\n switch (estado) {\r\n case 1: estadoFinal = \"-color\"; break;\r\n case 2: estadoFinal = \"\"; break;\r\n case 3: estadoFinal = \"-gris\"; break;\r\n default: break;\r\n }\r\n return estadoFinal;\r\n}\r\n\r\nexport default function TarjetaFondos({ nombre, estado }) {\r\n return ({nombre});\r\n}","import React from 'react';\r\nimport Card from 'react-bootstrap/Card';\r\nimport IconoFondo from './IconoFondo';\r\n\r\nexport default function TarjetaCuenta({ cuenta }) {\r\n return (\r\n \r\n \r\n {cuenta.tipoDescripcion}\r\n AFP de origen: {cuenta.origen}\r\n
\r\n
\r\n
\r\n Saldo: ${cuenta.saldo}\r\n
\r\n
\r\n {cuenta.fondos.map((f, i) => )}\r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n}","import React from 'react';\r\nimport { Button } from 'react-bootstrap';\r\nimport { useHistory } from 'react-router-dom';\r\n\r\nexport default function BotonesSegundaParte(props) {\r\n const history = useHistory();\r\n\r\n if (props.showO) {\r\n return (\r\n
\r\n
\r\n
o
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n );\r\n } else {\r\n return null;\r\n }\r\n\r\n}","\r\nimport React from 'react';\r\nimport { Button } from 'react-bootstrap';\r\nimport BotonesSegundaParte from './BotonesSegundaParte';\r\n\r\nexport default function Botones(props) {\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n );\r\n}","\r\nimport React, { useEffect, useState } from 'react';\r\n\r\nexport default function Title(props) {\r\n const [title, setTitle] = useState(props.title);\r\n\r\n useEffect(() => {\r\n setTitle(props.title);\r\n }, [props]);\r\n\r\n return (\r\n
\r\n
\r\n {title}\r\n
\r\n
\r\n );\r\n}\r\n","import React, { useState } from 'react';\r\nimport TarjetaCuenta from '../../../../util/fondos/TarjetaCuenta';\r\nimport Botones from './components/botones/Botones';\r\nimport Title from './components/Title';\r\n\r\nexport default function RedirectGenerico(props) {\r\n const [enTramite, setEnTramite] = useState(null);\r\n const [previred, setPrevired] = useState(null);\r\n const [title, setTitle] = useState(null);\r\n const [renderAfter, setRenderAfter] = useState(false);\r\n const [showO, setShowO] = useState(false);\r\n\r\n if (renderAfter) {\r\n return (\r\n
\r\n
\r\n \r\n <div className=\"row\">\r\n <div className=\"col-12\">\r\n <img src=\"./imgs/nina.png\" alt=\"nina modelo\" />\r\n </div>\r\n </div>\r\n <div className=\"row pb-3\">\r\n <div className=\"col-12\">\r\n {enTramite != null ? enTramite.map((c, i) => <TarjetaCuenta key={i} cuenta={c} />) : null}\r\n {previred != null ? previred.map((p, i) => <TarjetaCuenta key={i} cuenta={p} />) : null}\r\n </div>\r\n </div>\r\n <Botones showO={showO} />\r\n </div>\r\n </div>\r\n );\r\n } else {\r\n return null;\r\n }\r\n}","import { useState } from \"react\";\r\nimport { Button, Modal } from \"react-bootstrap\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport configuration from \"../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport Crypto from \"../../util/Crypto\";\r\n\r\nconst AsesorModal = (props) => {\r\n\tconst [confirmAsesor, setConfirmAsesor] = useState(false);\r\n\tconst [show, setShow] = useState(false);\r\n\tconst [datosAsesor, setDatosAsesor] = useState({});\r\n\r\n\tconst handleClose2 = async () => {\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tif (data.solicitud !== null) {\r\n\t\t\tawait fetch(`${configuration.API_URL}/api/Traspaso/${data.solicitud}`, {\r\n\t\t\t\tmethod: \"GET\",\r\n\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t})\r\n\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t.then((response) => {\r\n\t\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\t\tconst idProspecto = response.Response.Id;\r\n\t\t\t\t\t\tvar formValues = Crypto.Decrypt(\"data\");\r\n\r\n\t\t\t\t\t\tlet raw = {\r\n\t\t\t\t\t\t\trut: formValues.run,\r\n\t\t\t\t\t\t\tnombre: formValues.name,\r\n\t\t\t\t\t\t\temail: formValues.email,\r\n\t\t\t\t\t\t\ttelefono: formValues.phone,\r\n\t\t\t\t\t\t\tidProspecto: idProspecto,\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tfetch(`${configuration.API_URL}/api/asistencia`, {\r\n\t\t\t\t\t\t\tmethod: \"POST\",\r\n\t\t\t\t\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\t\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.then((response) => response.json())\r\n\t\t\t\t\t\t\t.then((response) => {\r\n\t\t\t\t\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\t\t\t\t\tsetDatosAsesor(raw);\r\n\t\t\t\t\t\t\t\t\tsetConfirmAsesor(true);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\t\t\t\ttext: \"No se pudo registrar el avance de fase\",\r\n\t\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t.catch((error) => {\r\n\t\t\t\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\t.catch((error) => {\r\n\t\t\t\t\tconsole.error(error);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleClose = () => setShow(false);\r\n\tconst handleShow = () => setShow(true);\r\n\r\n\tif (confirmAsesor)\r\n\t\treturn (\r\n\t\t\t<Redirect\r\n\t\t\t\tto={{ pathname: \"/asesor\", state: { datosAsesor: datosAsesor } }}\r\n\t\t\t/>\r\n\t\t);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<Button\r\n\t\t\t\tclassName=\"btn btn-secondary mb-3 mt-2 btn-block pointer\"\r\n\t\t\t\tvariant=\"outline-primary\"\r\n\t\t\t\tonClick={handleShow}\r\n\t\t\t\tblock\r\n\t\t\t>\r\n\t\t\t\tNecesito ayuda de un Asesor Virtual\r\n\t\t\t</Button>\r\n\t\t\t<Modal\r\n\t\t\t\tshow={show}\r\n\t\t\t\tonHide={handleClose}\r\n\t\t\t\tanimation={false}\r\n\t\t\t\tclassName=\"text-center\"\r\n\t\t\t\tbackdrop=\"static\"\r\n\t\t\t>\r\n\t\t\t\t<Modal.Body>\r\n\t\t\t\t\t<div className=\"container\">\r\n\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t<div className=\"col-lg-11 col-md-10 col-sm-11 col-10\">\r\n\t\t\t\t\t\t\t\t<h5 className=\"mt-38\">\r\n\t\t\t\t\t\t\t\t\t<strong>Necesito ayuda de un Asesor Virtual</strong>\r\n\t\t\t\t\t\t\t\t</h5>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div className=\"col-lg-1 col-md-2 col-sm-1 col-2\">\r\n\t\t\t\t\t\t\t\t<button type=\"button\" className=\"close\" onClick={handleClose}>\r\n\t\t\t\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>\r\n\t\t\t\t\t\t\t\t\t<span className=\"sr-only\">Close alert</span>\r\n\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div className=\"modal-body_\">\r\n\t\t\t\t\t\t\t\t<p style={{ color: \"#5B5B5B\" }}>\r\n\t\t\t\t\t\t\t\t\tSi necesitas ayuda para cambiarte a\r\n\t\t\t\t\t\t\t\t\t<a style={{ color: \"#80BC00\" }}> AFP Modelo </a>haz clic en\r\n\t\t\t\t\t\t\t\t\tconfirmar y recibiremos tus datos de contacto.\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div className=\"btn_card_\">\r\n\t\t\t\t\t\t\t\t<Button variant=\"primary\" onClick={handleClose2} block>\r\n\t\t\t\t\t\t\t\t\tConfirmar\r\n\t\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</Modal.Body>\r\n\t\t\t</Modal>\r\n\t\t</>\r\n\t);\r\n};\r\n\r\nexport default AsesorModal;\r\n","import { useEffect, useState } from \"react\";\r\nimport { Button, Card } from \"react-bootstrap\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport AsesorModal from \"./AsesorModal\";\r\n\r\nexport default function PreguntasForm(props) {\r\n const [text] = useState(props.location.state.data);\r\n const [claveSeg, setClaveSeg] = useState(false);\r\n const [asesorModal, setAsesorModal] = useState(false);\r\n\r\n if (claveSeg) return <Redirect to={{ pathname: '/autenticacion', }} />\r\n\r\n if (text !== {}) {\r\n return (\r\n <div>\r\n <div className=\"container\" style={{ marginTop: '20px' }}>\r\n <div className=\"row\">\r\n <div className=\"col-12\">\r\n <strong>Preguntas de Seguridad</strong>\r\n </div>\r\n </div>\r\n <div className=\"row\">\r\n <div className=\"contenedor_img22\">\r\n <img className=\"nina_error\" src=\"./imgs/incorrecta.svg\" alt=\"nina modelo\" />\r\n </div>\r\n </div>\r\n <div className=\"media_grey3 align-middle\">\r\n <div className=\"media-body\">\r\n <Card className=\" body_grey\">\r\n <Card.Body>\r\n <Card.Title>{text.title}</Card.Title>\r\n <div className=\"container mt-4\">\r\n <div className=\"row\">\r\n <div className=\"col-12 align-middle pl-0 pt-2\">\r\n <Card.Text>\r\n {text.cardText}\r\n </Card.Text>\r\n </div>\r\n </div>\r\n <div className=\"row\">\r\n <div className=\"btn_card2\">\r\n {(text.buttonTryAgain) ? <Link to=\"/\"><Button variant=\"primary\" block>Intentar otra vez</Button></Link> : null}\r\n {(text.buttonPassSec) ? <Button variant=\"primary\" block onClick={() => { setClaveSeg(true); }}>Cambio con clave de seguridad</Button> : null}\r\n </div>\r\n\r\n {(text.buttonPassSec)\r\n ?\r\n <>\r\n <div className=\"col-12 align-middle\"><AsesorModal /></div>\r\n </>\r\n : null}\r\n\r\n </div>\r\n </div>\r\n </Card.Body>\r\n </Card>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n}","import { Container } from \"react-bootstrap\";\r\n\r\nexport default function CabeceraPasos(props) {\r\n\tconst imgs = [\"./imgs/pasos.svg\", \"./imgs/pasos2.svg\", \"./imgs/pasos3.svg\"];\r\n\tconst pasos = [\"Paso 1\", \"Paso 2\", \"Paso 3\"];\r\n\tconst descPaso = [\r\n\t\t\"Selecciona tus cuentas\",\r\n\t\t\"Datos Personales\",\r\n\t\t\"Confirmación\",\r\n\t];\r\n\r\n\tconst paso = parseInt(props.paso) - 1;\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<h5 className=\"text-grayy\">Cambiándote a AFP Modelo</h5>\r\n\t\t\t\t\t<p style={{ color: \"#5B5B5B\" }}>\r\n\t\t\t\t\t\tSigue el paso a paso para ser parte de Modelo.\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<img src=\"./imgs/nina.png\" className=\"nina_fondos\" alt=\"\"></img>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div className=\"pasos\">\r\n\t\t\t\t<img src={imgs[paso]} className=\"\" alt={`paso${paso + 1}`} />\r\n\t\t\t</div>\r\n\r\n\t\t\t<div\r\n\t\t\t\tstyle={{\r\n\t\t\t\t\tbackground: \"#C6E8F2\",\r\n\t\t\t\t\tcolor: \"#5B5B5B\",\r\n\t\t\t\t\tpadding: \"20px\",\r\n\t\t\t\t\tfontSize: \"20px\",\r\n\t\t\t\t\ttextAlign: \"center\",\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<Container>\r\n\t\t\t\t\t<strong>{pasos[paso]}</strong> {descPaso[paso]}\r\n\t\t\t\t</Container>\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\r\n}\r\n","import '../cotizacion.css';\r\nimport { useState } from \"react\";\r\nimport { Button, Card, Accordion } from \"react-bootstrap\";\r\n\r\nexport default function SabiasQueFondo() {\r\n\r\n const [toggleState, setToggleState] = useState(\"off\");\r\n\r\n function toggle() {\r\n setToggleState(toggleState === \"off\" ? \"on\" : \"off\");\r\n }\r\n\r\n return (\r\n <div className=\"sabiasQue\">\r\n <Accordion style={{marginTop:'20px', width:'100%', }}>\r\n <Card className=\"big_color\">\r\n <Card.Header className=\"bgbg\">\r\n <div className=\"caja_1\">\r\n <img width={50} src=\"./imgs/pregunta.svg\" alt=\"\" />\r\n </div>\r\n <div className=\"caja_2\">\r\n <div>\r\n <div className=\"texto_sabias\"><strong>¿Sabías qué?</strong></div>\r\n <div className=\"texto_sabias\">puedes cambiar tus fondos cuando cambias de AFP.</div>\r\n </div>\r\n </div> \r\n <Accordion.Toggle as={Button} onClick={toggle} variant=\"link\" eventKey=\"0\" className=\"btn_acor\">\r\n {toggleState === \"off\" ? <p>Ver Más</p> : <p>Ver menos</p>}\r\n </Accordion.Toggle>\r\n </Card.Header>\r\n <Accordion.Collapse eventKey=\"0\">\r\n <Card.Body>\r\n <div className=\"flexA\">\r\n <span className=\"text-img_\">\r\n <img src=\"./imgs/fondo_a.svg\" alt=\"\"/>\r\n </span>\r\n <span className=\"text-img_\">\r\n <img src=\"./imgs/fondo_b.svg\" alt=\"\"/>\r\n </span>\r\n <span className=\"text-img_\">\r\n <img src=\"./imgs/fondo_c.svg\" alt=\"\"/>\r\n </span>\r\n <span className=\"text-img_\">\r\n <img src=\"./imgs/fondo_d.svg\" alt=\"\"/>\r\n </span>\r\n <span className=\"text-img_\">\r\n <img src=\"./imgs/fondo_e.svg\" alt=\"\"/>\r\n </span>\r\n </div>\r\n </Card.Body>\r\n </Accordion.Collapse>\r\n </Card>\r\n </Accordion>\r\n </div>\r\n\r\n );\r\n}","export default function FormCotizacion(props) {\r\n\r\n const mostrar = !props.fondos.A || !props.fondos.B || !props.fondos.C || !props.fondos.D || !props.fondos.E;\r\n let fondosMostrar = [];\r\n\r\n if (props.fondos.A)\r\n fondosMostrar.push(\"A\");\r\n\r\n if (props.fondos.B)\r\n fondosMostrar.push(\"B\");\r\n\r\n if (props.fondos.C)\r\n fondosMostrar.push(\"C\");\r\n\r\n if (props.fondos.D)\r\n fondosMostrar.push(\"D\");\r\n\r\n if (props.fondos.E)\r\n fondosMostrar.push(\"E\");\r\n\r\n if (mostrar) {\r\n let fondosdis = \"\";\r\n\r\n for (let i = 0; i < fondosMostrar.length; i++) {\r\n const sep = i === 0 ? \"\" : i < fondosMostrar.length - 1 ? \"- \" : \" y \";\r\n fondosdis += sep + fondosMostrar[i];\r\n }\r\n\r\n return (\r\n <div className=\"container pt-2 pb-2 mb-2\" style={{ backgroundColor: \"#f5f5f5\", fontSize: \"12px\" }}>\r\n <div className=\"row\">\r\n <div className=\"col-3 pt-3 pl-3 pr-3\">\r\n <img src=\"./imgs/exclamacion.svg\" alt=\"\" />\r\n </div>\r\n <div className=\"col-9 \" style={{ fontSize: \"12px\" }}>\r\n\r\n <p className=\"text-left\" style={{ fontSize: \"12px\" }}>Según la normativa vigente, por tu seguridad no cumples con los requisitos de edad para seleccionar un fondo riesgoso. Elige entre los fondos {fondosdis}.</p>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n }\r\n else\r\n return null;\r\n}\r\n","\r\nimport React from 'react';\r\nimport Overlay from 'react-bootstrap/Overlay'\r\nimport Popover from 'react-bootstrap/Popover'\r\nimport { useState, useRef } from 'react';\r\n\r\nfunction Tooltips({ texto }) {\r\n const [show, setShow] = useState(false);\r\n const target = useRef(null);\r\n\r\n return (\r\n <>\r\n <img src=\"./imgs/pregunta.svg\" alt=\"preguntas\" style={{ marginLeft: 10 }} ref={target} onClick={() => setShow(!show)} onMouseEnter={() => setShow(true)} onMouseLeave={() => setShow(false)} />\r\n <Overlay show={show} placement=\"top\" containerPadding={20} target={target}>\r\n <Popover className=\"modelo-popover\">\r\n <Popover.Content className=\"tooltip-content\">\r\n <div>\r\n <p style={{ color: 'white' }}>{texto}</p>\r\n </div>\r\n </Popover.Content>\r\n </Popover>\r\n </Overlay>\r\n </>\r\n );\r\n}\r\n\r\nexport default Tooltips;","export default __webpack_public_path__ + \"static/media/timer.e346eccc.png\";","import React, { useRef, useState } from \"react\";\r\nimport IdleTimer from \"react-idle-timer\";\r\nimport Swal from \"sweetalert2\";\r\nimport Timer from \"../img/timer.png\";\r\n\r\nfunction Container(props) {\r\n\tvar isLoggedIn = useState(props.isLoggedIn);\r\n\tconst idleTimerRef = useRef(null);\r\n\r\n\tconst onIdle = () => {\r\n\t\tif (isLoggedIn) {\r\n\t\t\tisLoggedIn = false;\r\n\t\t\tSwal.fire({\r\n\t\t\t\ttitle: \"¡Ups!\",\r\n\t\t\t\thtml: `<img src=${Timer} height=\"60\" /></br></br><p>Estuviste mucho tiempo ináctivo. Intenta nuevamente tu trámite.</p>`,\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t}).then((result) => {\r\n\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\twindow.location.href = \"/\";\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n\t//5 minutos\r\n\treturn <IdleTimer ref={idleTimerRef} timeout={300000} onIdle={onIdle} />;\r\n}\r\n\r\nexport default Container;\r\n","import \"../cotizacion.css\";\r\nimport React, { useContext, useEffect, useState } from \"react\";\r\nimport {\r\n\tButton,\r\n\tCard,\r\n\tForm,\r\n\tFormControl,\r\n\tInputGroup,\r\n\tModal,\r\n} from \"react-bootstrap\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport CabeceraPasos from \"../../compartido/CabeceraPasos\";\r\nimport SabiasQueFondo from \"./SabiasQueFondo\";\r\nimport LimiteFondos from \"./LimiteFondos\";\r\nimport Switch from \"@material-ui/core/Switch\";\r\nimport Tooltips from \"./Tooltip\";\r\nimport RegistrarPaso from \"../../../util/RegistrarPaso\";\r\nimport Context from \"../../../../store/context\";\r\nimport $ from \"jquery\";\r\nimport Swal from \"sweetalert2\";\r\nimport configuration from \"../../../../Config\";\r\nimport ValidateFieldsUtil from \"../../../util/validacion/ValidateFieldsUtil\";\r\nimport Crypto from \"../../../util/Crypto\";\r\nimport IdleTimerContainer from \"../../../util/IdleTimer/Container\";\r\n\r\nexport default function FormCotizacion(props) {\r\n\tconst afiliado = props.location.state.json.response.afiliado;\r\n\r\n\tconsole.log(props.location.state.json.response);\r\n\r\n\tconst [checkA, setCheckA] = useState(3);\r\n\tconst [checkB, setCheckB] = useState(3);\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [hayCuentasElegidas, setHayCuentasElegidas] = useState(true);\r\n\tconst [pasoRegistrado, setPasoRegistrado] = useState(false);\r\n\tconst [responseFinal, setResponseFinal] = useState(null);\r\n\tconst [validateResponseFinal, setValidateResponseFinal] = useState(false);\r\n\tconst cuentasObligatorias = [\"CCICO\", \"CAI\", \"CCIAV\"];\r\n\tconst cuentasVoluntarias = [\"CCIDC\", \"CCICV\", \"CAV\", \"APVC\"];\r\n\tconst fondosDisponibles = [\"A\", \"B\", \"C\", \"D\", \"E\"];\r\n\tconst permiteDistribucionObligatorias = true;\r\n\tconst fnac = afiliado.fechaNacimiento ? afiliado.fechaNacimiento : \"19100926\";\r\n\tconst dpattern = /(\\d{4})(\\d{2})(\\d{2})/;\r\n\tconst fnacd = new Date(fnac.replace(dpattern, \"$1-$2-$3\"));\r\n\tconst edad = Math.abs(\r\n\t\tMath.round(\r\n\t\t\t(new Date().getTime() - fnacd.getTime()) / 1000 / (60 * 60 * 24) / 365.25\r\n\t\t)\r\n\t);\r\n\tconst sexo = afiliado.genero;\r\n\tconst nombreafiliado = afiliado.nombres\r\n\t\t.toLowerCase()\r\n\t\t.split(\" \")\r\n\t\t.map((n) => ValidateFieldsUtil.Upper(n[0]) + n.slice(1))\r\n\t\t.join(\" \");\r\n\r\n\tconst fondoElegible = (f) => {\r\n\t\tconst limits = { M: [56, 66, 99, 999, 999], F: [51, 61, 99, 999, 999] };\r\n\t\tconst limarr = limits[sexo];\r\n\t\tconst inf = fondosDisponibles.indexOf(f);\r\n\t\tconst lim = limarr[inf];\r\n\t\treturn edad < lim;\r\n\t};\r\n\r\n\tlet elegibles = { A: true, B: true, C: true, D: true, E: true };\r\n\tfor (const [key, value] of Object.entries(elegibles))\r\n\t\telegibles[key] = fondoElegible(key);\r\n\r\n\tconst ctasObligatorias = props.location.state.json.response.cuentas\r\n\t\t.filter((c) => cuentasObligatorias.includes(c.tipo))\r\n\t\t.sort((a, b) => {\r\n\t\t\tif (\r\n\t\t\t\tcuentasObligatorias.indexOf(a.tipo) >\r\n\t\t\t\tcuentasObligatorias.indexOf(b.tipo)\r\n\t\t\t)\r\n\t\t\t\treturn 1;\r\n\t\t\tif (\r\n\t\t\t\tcuentasObligatorias.indexOf(a.tipo) <\r\n\t\t\t\tcuentasObligatorias.indexOf(b.tipo)\r\n\t\t\t)\r\n\t\t\t\treturn -1;\r\n\t\t\treturn 0;\r\n\t\t});\r\n\r\n\tconst ctasVoluntarias = props.location.state.json.response.cuentas.filter(\r\n\t\t(c) => !cuentasObligatorias.includes(c.tipo)\r\n\t);\r\n\r\n\tprops.location.state.json.response.cuentas =\r\n\t\tctasObligatorias.concat(ctasVoluntarias);\r\n\tconst volIndex = ctasObligatorias.length;\r\n\tconst ctasLen = props.location.state.json.response.cuentas.length;\r\n\r\n\tlet modificadas = new Array(ctasLen).fill(false);\r\n\tlet distribuciones = [];\r\n\tlet distribcionFondos = [];\r\n\tlet fondosRecaudadores = [];\r\n\tlet ctasSel = [];\r\n\tlet tipoTraspaso = [];\r\n\tlet porcTraspaso = [];\r\n\r\n\tconst sumarSaldos = (acumulador, a) => acumulador + a.saldo;\r\n\r\n\tfor (let cd = 0; cd < ctasLen; cd++) {\r\n\t\tconst ff = props.location.state.json.response.cuentas[cd].fondos;\r\n\t\tlet fondosSaldos = ff.map((f) => ({\r\n\t\t\tfondo: f.nombre,\r\n\t\t\tsaldo: parseInt(f.saldo),\r\n\t\t}));\r\n\r\n\t\tconst ini = ff.length > 1 ? 10 : 100;\r\n\t\tconst fin = ff.length > 1 ? 90 : 0;\r\n\r\n\t\tdistribuciones.push({ inicio: ini, resto: fin, original: true });\r\n\t\tdistribcionFondos.push({\r\n\t\t\tsaldoTotal: fondosSaldos.reduce(sumarSaldos, 0),\r\n\t\t\tdistribucion: fondosSaldos,\r\n\t\t});\r\n\r\n\t\tconst primeroSel = ff.length < 2;\r\n\t\tfondosRecaudadores.push({ recaudadorA: primeroSel, recaudadorB: false });\r\n\t\tctasSel.push(false);\r\n\t\ttipoTraspaso.push(\"total\");\r\n\t\tporcTraspaso.push(10);\r\n\t}\r\n\r\n\tconst [ctasModificadas, setCtasModificadas] = useState(modificadas);\r\n\tconst [ctasDist, setCtasDist] = useState(distribuciones);\r\n\tconst [ctasDistFondos, setCtasDistFondos] = useState(distribcionFondos);\r\n\tconst [ctasRecaudadores, setCtasRecaudadores] = useState(fondosRecaudadores);\r\n\tconst [ctasSeleccionadas, setCuentasSeleccionadas] = useState(ctasSel);\r\n\tconst [cuentasRechazo] = useState(\r\n\t\tprops.location.state.json.response.cuentasRechazo\r\n\t);\r\n\tconst [json] = useState(props.location.state.json);\r\n\tconst [response, setResponse] = useState({});\r\n\tconst [render, setRender] = useState(false);\r\n\tconst [show, setShow] = useState(false);\r\n\tconst [arrayFondosImg, setArrayFondosImg] = useState([]);\r\n\tconst [habilitarGuardado, setHabilitarGuardado] = useState(false);\r\n\tconst [fondosInicial, setFondosInicial] = useState([]);\r\n\tconst [radioVal, setRadioVal] = useState(\"1\");\r\n\tconst [indexModal, setIndexModal] = useState(0);\r\n\tconst [cuentaModal, setCuentaModal] = useState({});\r\n\tconst [cuentasModal, setCuentasModal] = useState([]);\r\n\tconst verSeleccionados = (objt) =>\r\n\t\tobjt.a || objt.b || objt.c || objt.d || objt.e;\r\n\r\n\tconst [traspaso, setTraspaso] = useState({\r\n\t\tvalorA: \"10\",\r\n\t\ttipo: \"total\",\r\n\t});\r\n\tconst [regimenesGlobal, setRegimenesGlobal] = useState([]);\r\n\r\n\tconst [mandatoGlobal, setMandatoGlobal] = useState([]);\r\n\r\n\tconst handleClose = () => setShow(false);\r\n\r\n\tconst formatDecimal = (val) =>\r\n\t\tval.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\r\n\tconst getTipoCuenta = (tipo) => {\r\n\t\tlet r = \"\";\r\n\t\tswitch (tipo) {\r\n\t\t\tcase \"CCICO\":\r\n\t\t\t\tr = \"Cuenta Cotización Obligatoria\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CCICV\":\r\n\t\t\t\tr = \"Cuenta Capitalización Individual Cotizaciones Voluntarias\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CCIDC\":\r\n\t\t\t\tr = \"Cuenta Capitalización Individual Depósitos convenidos\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CAV\":\r\n\t\t\t\tr = \"Cuenta de Ahorro Voluntario\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CAI\":\r\n\t\t\t\tr = \"Cuenta de Ahorro de Indemnización\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CCIAV\":\r\n\t\t\t\tr = \"Cuenta Capitalización Individual de Afiliado Voluntario\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"APVC\":\r\n\t\t\t\tr = \"Ahorro previsional voluntario colectivo\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"APV\":\r\n\t\t\t\tr = \"APV\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"CTA2\":\r\n\t\t\t\tr = \"Cuenta 2 \";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tr = \"[NO CARGADO]\";\r\n\t\t}\r\n\t\treturn r;\r\n\t};\r\n\r\n\tconst envolverDiv = () => {\r\n\t\tif (render) {\r\n\t\t\tlet contenedor = \"<div class='test' style='margin-top:20px'></div>\";\r\n\t\t\t$(\".OBLIGATORIA\").wrapAll(contenedor);\r\n\r\n\t\t\tlet contenedor2 = \"<div class='test2' style='margin-top:20px'></div>\";\r\n\t\t\t$(\".VOLUNTARIA\").wrapAll(contenedor2);\r\n\t\t} else {\r\n\t\t\tsetRender(true);\r\n\t\t}\r\n\t\tlocalStorage.setItem(\"intis\", JSON.stringify({ ...props }));\r\n\t};\r\n\r\n\tconst mostrarErrores = async (arr) => {\r\n\t\tconst steps = [];\r\n\r\n\t\tfor (var i = 1; i <= arr.length; i++) {\r\n\t\t\tsteps.push(i.toString());\r\n\t\t}\r\n\r\n\t\tconst swalQueueStep = Swal.mixin({\r\n\t\t\tconfirmButtonText: \"Siguiente\",\r\n\t\t\tcancelButtonText: \"Anterior\",\r\n\t\t\tprogressSteps: steps,\r\n\t\t\treverseButtons: true,\r\n\t\t});\r\n\r\n\t\tconst values = [];\r\n\t\tlet currentStep;\r\n\r\n\t\tfor (currentStep = 0; currentStep < steps.length;) {\r\n\t\t\tvar text = `La ${arr[currentStep].nombreTipo} perteneciente a ${arr[currentStep].origen} presenta el siguiente problema: ${arr[currentStep].causalRechazo}`;\r\n\r\n\t\t\tif (arr[currentStep].causalRechazoCodigo === 15) {\r\n\t\t\t\ttext = `La cuenta ${arr[currentStep].nombreTipo} que intentas traspasar desde AFP ${arr[currentStep].origen} se encuentra bloqueada, dado que presentas una medida cautelar vigente por concepto de la Ley de Pensión de Alimentos (ley 21.484)`;\r\n\t\t\t}\r\n\r\n\t\t\tconst result = await swalQueueStep.fire({\r\n\t\t\t\ttitle: \"No es posible concretar tu solicitud\",\r\n\t\t\t\tshowCancelButton: currentStep > 0,\r\n\t\t\t\thtml: text,\r\n\t\t\t\tcurrentProgressStep: currentStep,\r\n\t\t\t});\r\n\r\n\t\t\tif (result.value) {\r\n\t\t\t\tvalues[currentStep] = result.value;\r\n\t\t\t\tcurrentStep++;\r\n\t\t\t} else if (result.dismiss === Swal.DismissReason.cancel) {\r\n\t\t\t\tcurrentStep--;\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tuseEffect(async () => {\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tif (data.email == null || data.email == \"\") {\r\n\t\t\tdata.email = afiliado.email;\r\n\t\t}\r\n\r\n\t\tlet raw = {\r\n\t\t\tRut: afiliado.dni,\r\n\t\t\tNames: `${afiliado.nombres} ${afiliado.apellidoPaterno} ${afiliado.apellidoMaterno}`,\r\n\t\t\tPhone: afiliado.telefonoCelular,\r\n\t\t\tEmail: data.email,\r\n\t\t};\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/Traspaso`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify(raw),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (response.Code === 0) {\r\n\t\t\t\t\tdata.run = raw.Rut;\r\n\t\t\t\t\tdata.email = raw.Email;\r\n\t\t\t\t\tdata.name = raw.Names;\r\n\t\t\t\t\tdata.phone = raw.Phone;\r\n\t\t\t\t\tdata.authenticated = true;\r\n\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\tif (!pasoRegistrado) {\r\n\t\t\tRegistrarPaso(3);\r\n\t\t\tsetPasoRegistrado(true);\r\n\t\t}\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/Region/GetAllAsync`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tlocalStorage.setItem(\r\n\t\t\t\t\t\"locaciones\",\r\n\t\t\t\t\tJSON.stringify(response.Response.Regiones)\r\n\t\t\t\t);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\tlet fondosArray = [];\r\n\t\tlet cuentasArray = [];\r\n\t\tjson.response.cuentas.forEach((cuenta, i) => {\r\n\t\t\tlet arrayTemp = [];\r\n\r\n\t\t\tcuenta.fondos.forEach((fondo, findex) => {\r\n\t\t\t\tarrayTemp[findex] = { ...fondo };\r\n\t\t\t});\r\n\t\t\tfondosArray[i] = arrayTemp;\r\n\t\t\tcuentasArray[i] = { ...cuenta };\r\n\t\t});\r\n\t\tsetCuentasModal(cuentasArray);\r\n\t\tsetFondosInicial(fondosArray);\r\n\t\tsetResponse({ ...json });\r\n\t\tenvolverDiv();\r\n\r\n\t\tif (render == true) {\r\n\t\t\tif (cuentasRechazo.length > 0) {\r\n\t\t\t\tawait mostrarErrores(cuentasRechazo);\r\n\t\t\t}\r\n\t\t}\r\n\t}, []);\r\n\r\n\tconst getSelectedArray = (modificado, inicialArray, index, parentIndex) => {\r\n\t\tconst finalArray = modificado\r\n\t\t\t? response.response.cuentas[parentIndex].fondos[index]\r\n\t\t\t: inicialArray;\r\n\t\treturn {\r\n\t\t\tfondoA: finalArray.nombre === \"A\",\r\n\t\t\tfondoB: finalArray.nombre === \"B\",\r\n\t\t\tfondoC: finalArray.nombre === \"C\",\r\n\t\t\tfondoD: finalArray.nombre === \"D\",\r\n\t\t\tfondoE: finalArray.nombre === \"E\",\r\n\t\t};\r\n\t};\r\n\r\n\tconst preseleccionar = (index) => {\r\n\t\tlet myorg0 = getSelectedArray(\r\n\t\t\tctasModificadas[index],\r\n\t\t\tfondosInicial[index][0],\r\n\t\t\t0,\r\n\t\t\tindex\r\n\t\t);\r\n\t\tlet final = [myorg0];\r\n\r\n\t\tif (\r\n\t\t\tfondosInicial[index].length > 1 ||\r\n\t\t\t(index >= volIndex && response.response.cuentas[index].fondos.length > 1)\r\n\t\t) {\r\n\t\t\tif (\r\n\t\t\t\t!ctasModificadas[index] ||\r\n\t\t\t\t(ctasModificadas[index] &&\r\n\t\t\t\t\tresponse.response.cuentas[index].fondos.length > 1)\r\n\t\t\t)\r\n\t\t\t\tfinal.push(\r\n\t\t\t\t\tgetSelectedArray(\r\n\t\t\t\t\t\tctasModificadas[index],\r\n\t\t\t\t\t\tfondosInicial[index][1],\r\n\t\t\t\t\t\t1,\r\n\t\t\t\t\t\tindex\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn final;\r\n\t};\r\n\r\n\tconst handleShow = (i) => {\r\n\t\tsetIndexModal(i);\r\n\r\n\t\tlet tempTraspaso = { ...traspaso };\r\n\t\ttempTraspaso.tipo =\r\n\t\t\tresponse.response.cuentas[i].tipoTraspaso === \"parcial\"\r\n\t\t\t\t? \"parcial\"\r\n\t\t\t\t: \"total\";\r\n\t\ttempTraspaso.valorA = response.response.cuentas[i].porcentajeTraspaso\r\n\t\t\t? response.response.cuentas[i].porcentajeTraspaso\r\n\t\t\t: 10;\r\n\t\tsetTraspaso(tempTraspaso);\r\n\r\n\t\tsetCuentaModal({ ...response.response.cuentas[i] });\r\n\t\tconst fondosdist = radioVal;\r\n\t\tlet arrayFondos = [];\r\n\t\tfondosInicial.forEach((f, i) => {\r\n\t\t\tf.forEach((fondotmp, fi) => {\r\n\t\t\t\tarrayFondos[fi] = fondotmp;\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tsetRadioVal(response.response.cuentas[i].fondos.length === 1 ? \"1\" : \"2\");\r\n\t\tlet ifarr = preseleccionar(i);\r\n\t\tif (ifarr.length === 1 && radioVal === \"2\") {\r\n\t\t\tifarr.push({ a: false, b: false, c: false, d: false, e: false });\r\n\t\t}\r\n\t\tsetArrayFondosImg(ifarr);\r\n\t\tsetHabilitarGuardado(false);\r\n\t\tlet recaudaArr = ctasRecaudadores;\r\n\t\tconst algunseleccionado = tieneAlgunFondoSeleccionado(\r\n\t\t\tifarr,\r\n\t\t\tnull,\r\n\t\t\tfondosdist\r\n\t\t);\r\n\t\tconst seleccionValida = fondosSeleccionadosEnRegla(\r\n\t\t\tifarr,\r\n\t\t\t0,\r\n\t\t\tfondosdist,\r\n\t\t\ttrue\r\n\t\t);\r\n\t\tconst rangosSeleccionado =\r\n\t\t\tmostrarDistribucion(indexModal) && fondosdist === \"2\"\r\n\t\t\t\t? validarInicioResto()\r\n\t\t\t\t: true;\r\n\t\tconst recaudadorSeleccionado =\r\n\t\t\tfondosdist === \"2\"\r\n\t\t\t\t? recaudaArr[indexModal].recaudadorA === true ||\r\n\t\t\t\trecaudaArr[indexModal].recaudadorB === true\r\n\t\t\t\t: true;\r\n\t\tsetHabilitarGuardado(\r\n\t\t\talgunseleccionado &&\r\n\t\t\trangosSeleccionado &&\r\n\t\t\trecaudadorSeleccionado &&\r\n\t\t\tseleccionValida\r\n\t\t);\r\n\t\tsetShow(true);\r\n\r\n\t\tvalidarFondos(true);\r\n\t};\r\n\r\n\tconst getNombreFondo = (arrayImg) => {\r\n\t\tlet nomFondo = \"\";\r\n\t\tif (arrayImg.fondoA) nomFondo = \"A\";\r\n\t\telse if (arrayImg.fondoB) nomFondo = \"B\";\r\n\t\telse if (arrayImg.fondoC) nomFondo = \"C\";\r\n\t\telse if (arrayImg.fondoD) nomFondo = \"D\";\r\n\t\telse if (arrayImg.fondoE) nomFondo = \"E\";\r\n\t\treturn nomFondo;\r\n\t};\r\n\r\n\tconst formModalFondosGuardar = (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tsetTraspaso({ tipo: \"total\" });\r\n\r\n\t\tlet cuentaBefore = { ...response.response.cuentas[indexModal] };\r\n\r\n\t\tlet temp = [];\r\n\r\n\t\tif (radioVal === \"1\") {\r\n\t\t\tcuentaBefore.fondos.forEach(function (item, i) {\r\n\t\t\t\tlet fondo = {\r\n\t\t\t\t\torigen: item.origen,\r\n\t\t\t\t\tnombre: getNombreFondo(arrayFondosImg[0]),\r\n\t\t\t\t\tsaldo: response.response.cuentas[indexModal].saldo,\r\n\t\t\t\t\tfondoRecaudador: true,\r\n\t\t\t\t\tporcentaje: 100,\r\n\t\t\t\t\tvalorPorcentaje: ctasDistFondos[indexModal].saldoTotal,\r\n\t\t\t\t\tregimenes: item.regimenes,\r\n\t\t\t\t};\r\n\r\n\t\t\t\ttemp.push(fondo);\r\n\t\t\t});\r\n\r\n\t\t\tresponse.response.cuentas[indexModal].fondos = temp;\r\n\t\t}\r\n\r\n\t\tif (radioVal === \"2\") {\r\n\t\t\tlet fondos = cuentaBefore.fondos;\r\n\r\n\t\t\tfor (var index = 0; index < 2; index++) {\r\n\t\t\t\tlet origen = fondos[0].origen;\r\n\t\t\t\tlet regimenes = fondos[0].regimenes;\r\n\r\n\t\t\t\tif (fondos.length > 1) {\r\n\t\t\t\t\torigen = fondos[index].origen;\r\n\t\t\t\t\tregimenes = fondos[index].regimenes;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar recaudador = ctasRecaudadores[indexModal].recaudadorA;\r\n\t\t\t\tvar porcentaje = parseInt(ctasDist[indexModal].inicio);\r\n\r\n\t\t\t\tif (index == 1) {\r\n\t\t\t\t\trecaudador = ctasRecaudadores[indexModal].recaudadorB;\r\n\t\t\t\t\tporcentaje = parseInt(ctasDist[indexModal].resto);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst saldo = response.response.cuentas[indexModal].saldo;\r\n\t\t\t\tlet valorPorcentaje = (saldo * porcentaje) / 100;\r\n\r\n\t\t\t\tlet fondo = {\r\n\t\t\t\t\torigen: origen,\r\n\t\t\t\t\tnombre: getNombreFondo(arrayFondosImg[index]),\r\n\t\t\t\t\tsaldo: saldo,\r\n\t\t\t\t\tporcentaje: porcentaje,\r\n\t\t\t\t\tvalorPorcentaje: valorPorcentaje, //ctasDistFondos[indexModal].distribucion[index].saldo,\r\n\t\t\t\t\tregimenes: regimenes,\r\n\t\t\t\t\tfondoRecaudador: recaudador,\r\n\t\t\t\t};\r\n\r\n\t\t\t\ttemp.push(fondo);\r\n\t\t\t}\r\n\r\n\t\t\tresponse.response.cuentas[indexModal].fondos = temp;\r\n\t\t\tlet ctasMod = ctasModificadas;\r\n\t\t\tctasMod[indexModal] = true;\r\n\t\t\tsetCtasModificadas(ctasMod);\r\n\t\t}\r\n\r\n\t\tresponse.response.cuentas[indexModal].tipoTraspaso = traspaso.tipo;\r\n\t\tresponse.response.cuentas[indexModal].porcentajeTraspaso = 100;\r\n\r\n\t\tif (traspaso.tipo !== \"total\") {\r\n\t\t\tresponse.response.cuentas[indexModal].porcentajeTraspaso = parseInt(\r\n\t\t\t\ttraspaso.valorA\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tvalidarFondos(true);\r\n\r\n\t\tsetShow(false);\r\n\t};\r\n\r\n\tconst radiosClick = (event) => {\r\n\t\tsetFondosInicial(fondosInicial);\r\n\t\tsetRadioVal(event.target.value);\r\n\r\n\t\tconst fondosdist = event.target.value;\r\n\t\tlet distros = ctasDist;\r\n\t\tlet predistribucion = ctasDistFondos;\r\n\t\tlet recaudaArr = ctasRecaudadores;\r\n\r\n\t\tif (\r\n\t\t\tpredistribucion[indexModal].distribucion.length < 2 &&\r\n\t\t\tfondosdist === \"2\"\r\n\t\t) {\r\n\t\t\trecaudaArr[indexModal].recaudadorA = false;\r\n\t\t\trecaudaArr[indexModal].recaudadorB = false;\r\n\t\t\tdistros[indexModal].inicio = 10;\r\n\t\t\tdistros[indexModal].resto = 90;\r\n\t\t\tdistros[indexModal].original = true;\r\n\r\n\t\t\tpredistribucion[indexModal].distribucion.push({ fondo: \"x\", saldo: 0 });\r\n\t\t\tsetCtasDistFondos(predistribucion);\r\n\t\t\tsetCtasDist(distros);\r\n\r\n\t\t\tlet imgsfond = arrayFondosImg;\r\n\t\t\timgsfond.push({ a: false, b: false, c: false, d: false, e: false });\r\n\t\t\tsetArrayFondosImg(imgsfond);\r\n\t\t} else {\r\n\t\t\tconst aSel =\r\n\t\t\t\tfondosdist === \"2\" ? recaudaArr[indexModal].recaudadorA : true;\r\n\t\t\trecaudaArr[indexModal].recaudadorA = aSel;\r\n\t\t\trecaudaArr[indexModal].recaudadorB = !aSel;\r\n\t\t}\r\n\r\n\t\tsetCtasRecaudadores(recaudaArr);\r\n\r\n\t\tif (fondosdist === \"2\") {\r\n\t\t\tconst algunseleccionado = tieneAlgunFondoSeleccionado(\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\tfondosdist\r\n\t\t\t);\r\n\t\t\tconst seleccionValida = fondosSeleccionadosEnRegla(\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\tfondosdist,\r\n\t\t\t\tfalse\r\n\t\t\t);\r\n\t\t\tconst rangosSeleccionado =\r\n\t\t\t\tmostrarDistribucion(indexModal) && fondosdist === \"2\"\r\n\t\t\t\t\t? validarInicioResto()\r\n\t\t\t\t\t: true;\r\n\t\t\tconst recaudadorSeleccionado =\r\n\t\t\t\tfondosdist === \"2\"\r\n\t\t\t\t\t? recaudaArr[indexModal].recaudadorA === true ||\r\n\t\t\t\t\trecaudaArr[indexModal].recaudadorB === true\r\n\t\t\t\t\t: true;\r\n\t\t\tsetHabilitarGuardado(\r\n\t\t\t\talgunseleccionado &&\r\n\t\t\t\trangosSeleccionado &&\r\n\t\t\t\trecaudadorSeleccionado &&\r\n\t\t\t\tseleccionValida\r\n\t\t\t);\r\n\t\t}\r\n\t};\r\n\r\n\tconst getElFondoSeleccionado = (arreglo) => {\r\n\t\tlet fondo = \"X\";\r\n\r\n\t\tfondosDisponibles.forEach((f) => {\r\n\t\t\tif (arreglo.hasOwnProperty(`fondo${f}`)) {\r\n\t\t\t\tif (arreglo[`fondo${f}`]) {\r\n\t\t\t\t\tfondo = f;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn fondo;\r\n\t};\r\n\r\n\tconst tieneFondoSeleccionado = (fondo, arreglo) => {\r\n\t\treturn arreglo.hasOwnProperty(`fondo${fondo}`)\r\n\t\t\t? arreglo[`fondo${fondo}`]\r\n\t\t\t: false;\r\n\t};\r\n\r\n\tconst manejarValorObjetos = (arr) => {\r\n\t\tlet objt = { a: false, b: false, c: false, d: false, e: false };\r\n\r\n\t\tif (arr) {\r\n\t\t\tfondosDisponibles.forEach((f) => {\r\n\t\t\t\tif (arr.hasOwnProperty(`fondo${f}`)) {\r\n\t\t\t\t\tobjt[f.toLowerCase()] = arr[`fondo${f}`];\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\treturn objt;\r\n\t};\r\n\r\n\tconst seleccionadosElegibles = (objt) => {\r\n\t\tif (!elegibles.A && objt.a) return false;\r\n\r\n\t\tif (!elegibles.B && objt.b) return false;\r\n\r\n\t\tif (!elegibles.C && objt.c) return false;\r\n\r\n\t\tif (!elegibles.D && objt.d) return false;\r\n\r\n\t\tif (!elegibles.D && objt.e) return false;\r\n\r\n\t\treturn true;\r\n\t};\r\n\r\n\tconst getFondoCambiado = (defaultIndex, index, primaryArray, force) =>\r\n\t\ttypeof primaryArray !== \"undefined\" && primaryArray !== null\r\n\t\t\t? force\r\n\t\t\t\t? primaryArray[defaultIndex]\r\n\t\t\t\t: primaryArray[index]\r\n\t\t\t: null;\r\n\r\n\tconst fondosSeleccionadosEnRegla = (array0, index, fondosdist, force) => {\r\n\t\tindex = typeof index !== \"undefined\" && index !== null ? index : 2;\r\n\t\tconst changed = getFondoCambiado(0, index, array0, force);\r\n\t\tconst obj1 = manejarValorObjetos(index === 0 ? changed : arrayFondosImg[0]);\r\n\t\tconst result1 = seleccionadosElegibles(obj1);\r\n\r\n\t\tif (fondosdist === \"1\") {\r\n\t\t\treturn result1;\r\n\t\t} else {\r\n\t\t\tconst changed2 = getFondoCambiado(1, index, array0, force);\r\n\t\t\tconst obj2 = manejarValorObjetos(\r\n\t\t\t\tindex === 1 ? changed2 : arrayFondosImg[1]\r\n\t\t\t);\r\n\t\t\tconst result2 = seleccionadosElegibles(obj2);\r\n\t\t\treturn result1 && result2;\r\n\t\t}\r\n\t};\r\n\r\n\tconst tieneAlgunFondoSeleccionado = (array0, index, fondosdist) => {\r\n\t\tindex = typeof index !== \"undefined\" && index !== null ? index : 2;\r\n\t\tconst changed =\r\n\t\t\ttypeof array0 !== \"undefined\" && array0 !== null ? array0[index] : null;\r\n\t\tconst obj1 = manejarValorObjetos(index === 0 ? changed : arrayFondosImg[0]);\r\n\t\tconst result1 = verSeleccionados(obj1);\r\n\r\n\t\tif (fondosdist === \"1\") {\r\n\t\t\treturn result1;\r\n\t\t} else {\r\n\t\t\tconst obj2 = manejarValorObjetos(\r\n\t\t\t\tindex === 1 ? changed : arrayFondosImg[1]\r\n\t\t\t);\r\n\t\t\tconst result2 = verSeleccionados(obj2);\r\n\t\t\treturn result1 && result2;\r\n\t\t}\r\n\t};\r\n\r\n\tconst validarInicioResto = () => {\r\n\t\tconst ini =\r\n\t\t\ttypeof ctasDist[indexModal].inicio !== \"undefined\"\r\n\t\t\t\t? ctasDist[indexModal].inicio\r\n\t\t\t\t: 0;\r\n\t\tconst res =\r\n\t\t\ttypeof ctasDist[indexModal].resto !== \"undefined\"\r\n\t\t\t\t? ctasDist[indexModal].resto\r\n\t\t\t\t: 0;\r\n\t\treturn ini > 0 && ini < 100 && res > 0 && res < 100;\r\n\t};\r\n\r\n\tconst redondear = (num) => {\r\n\t\tconst up = Math.ceil(num);\r\n\t\tconst down = Math.floor(num);\r\n\t\tconst mid = num - down;\r\n\r\n\t\treturn mid >= 0.5 ? up : down;\r\n\t};\r\n\r\n\tconst cambiarFondo = (event, fondo, index) => {\r\n\t\tevent.preventDefault();\r\n\t\tconst fondosdist = radioVal;\r\n\t\tlet otroArreglo = index === 0 ? arrayFondosImg[1] : arrayFondosImg[0];\r\n\r\n\t\tif (!otroArreglo) {\r\n\t\t\totroArreglo = {\r\n\t\t\t\tfondoA: false,\r\n\t\t\t\tfondoB: false,\r\n\t\t\t\tfondoC: false,\r\n\t\t\t\tfondoD: false,\r\n\t\t\t\tfondoE: false,\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\tconst seleccionado =\r\n\t\t\tfondosdist === \"2\" ? tieneFondoSeleccionado(fondo, otroArreglo) : false;\r\n\t\tconst elegible = indexModal >= volIndex ? true : fondoElegible(fondo);\r\n\t\tconst fondosObj = {\r\n\t\t\tfondoA: false,\r\n\t\t\tfondoB: false,\r\n\t\t\tfondoC: false,\r\n\t\t\tfondoD: false,\r\n\t\t\tfondoE: false,\r\n\t\t};\r\n\t\tfondosObj[`fondo${fondo}`] = !seleccionado && elegible;\r\n\t\tlet fondosArray = [...arrayFondosImg];\r\n\t\tfondosArray[index] = fondosObj;\r\n\t\tsetArrayFondosImg(fondosArray);\r\n\t\tlet recaudaArr = ctasRecaudadores;\r\n\t\tconst algunseleccionado = tieneAlgunFondoSeleccionado(\r\n\t\t\tfondosArray,\r\n\t\t\tindex,\r\n\t\t\tfondosdist\r\n\t\t);\r\n\t\tconst seleccionValida =\r\n\t\t\tindexModal >= volIndex\r\n\t\t\t\t? true\r\n\t\t\t\t: fondosSeleccionadosEnRegla(fondosArray, index, fondosdist, true);\r\n\t\tconst rangosSeleccionado =\r\n\t\t\tmostrarDistribucion(indexModal) && fondosdist === \"2\"\r\n\t\t\t\t? validarInicioResto()\r\n\t\t\t\t: true;\r\n\t\tconst recaudadorSeleccionado =\r\n\t\t\tfondosdist === \"2\"\r\n\t\t\t\t? recaudaArr[indexModal].recaudadorA === true ||\r\n\t\t\t\trecaudaArr[indexModal].recaudadorB === true\r\n\t\t\t\t: true;\r\n\t\tsetHabilitarGuardado(\r\n\t\t\talgunseleccionado &&\r\n\t\t\trangosSeleccionado &&\r\n\t\t\trecaudadorSeleccionado &&\r\n\t\t\tseleccionValida\r\n\t\t);\r\n\t};\r\n\r\n\tconst porcentaje = (e, step) => {\r\n\t\tconst fondosdist = radioVal;\r\n\r\n\t\tlet ctasDistr = { ...ctasDist };\r\n\t\tif (step === 1) {\r\n\t\t\tctasDistr[indexModal].inicio =\r\n\t\t\t\te.target.value === \"0\" ? 1 : e.target.value;\r\n\t\t\tctasDistr[indexModal].resto =\r\n\t\t\t\tctasDistr[indexModal].inicio === \"\"\r\n\t\t\t\t\t? 99 - ctasDistr[indexModal].inicio\r\n\t\t\t\t\t: 100 - ctasDistr[indexModal].inicio;\r\n\t\t\tctasDistr[indexModal].original = false;\r\n\t\t} else {\r\n\t\t\tctasDistr[indexModal].resto = e.target.value === \"0\" ? 1 : e.target.value;\r\n\t\t\tctasDistr[indexModal].inicio =\r\n\t\t\t\tctasDistr[indexModal].resto === \"\"\r\n\t\t\t\t\t? 99 - ctasDistr[indexModal].resto\r\n\t\t\t\t\t: 100 - ctasDistr[indexModal].resto;\r\n\t\t\tctasDistr[indexModal].original = false;\r\n\t\t}\r\n\r\n\t\tsetCtasDist(ctasDistr);\r\n\r\n\t\tlet distrSalidos = ctasDistFondos;\r\n\t\tdistrSalidos[indexModal].distribucion[0].saldo = redondear(\r\n\t\t\t(parseInt(e.target.value) * distrSalidos[indexModal].saldoTotal) / 100\r\n\t\t);\r\n\r\n\t\tif (fondosdist === \"2\") {\r\n\t\t\tif (!distrSalidos[indexModal].distribucion.length < 2) {\r\n\t\t\t\tconst fondosArray = [...arrayFondosImg];\r\n\t\t\t\tconst fondosObj =\r\n\t\t\t\t\tfondosArray.length < 2\r\n\t\t\t\t\t\t? {\r\n\t\t\t\t\t\t\tfondoA: false,\r\n\t\t\t\t\t\t\tfondoB: false,\r\n\t\t\t\t\t\t\tfondoC: false,\r\n\t\t\t\t\t\t\tfondoD: false,\r\n\t\t\t\t\t\t\tfondoE: false,\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t: fondosArray[1];\r\n\r\n\t\t\t\t//fondosArray[indexModal] = fondosObj;\r\n\t\t\t\tconst fondoSel = getElFondoSeleccionado(fondosObj);\r\n\r\n\t\t\t\tdistrSalidos[indexModal].distribucion[1] = {\r\n\t\t\t\t\tfondo: fondoSel,\r\n\t\t\t\t\tsaldo: 0,\r\n\t\t\t\t};\r\n\t\t\t}\r\n\r\n\t\t\tdistrSalidos[indexModal].distribucion[1].saldo = redondear(\r\n\t\t\t\t(ctasDistr[indexModal].resto * distrSalidos[indexModal].saldoTotal) /\r\n\t\t\t\t100\r\n\t\t\t);\r\n\t\t}\r\n\t\tsetCtasDistFondos(distrSalidos);\r\n\r\n\t\tlet recaudaArr = ctasRecaudadores;\r\n\r\n\t\tconst algunseleccionado = tieneAlgunFondoSeleccionado(\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tfondosdist\r\n\t\t);\r\n\t\tconst seleccionValida = fondosSeleccionadosEnRegla(\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tfondosdist,\r\n\t\t\tfalse\r\n\t\t);\r\n\t\tconst recaudadorSeleccionado =\r\n\t\t\tfondosdist === \"2\"\r\n\t\t\t\t? recaudaArr[indexModal].recaudadorA === true ||\r\n\t\t\t\trecaudaArr[indexModal].recaudadorB === true\r\n\t\t\t\t: true;\r\n\t\tconst rangosSeleccionado =\r\n\t\t\tmostrarDistribucion(indexModal) && fondosdist === \"2\"\r\n\t\t\t\t? validarInicioResto()\r\n\t\t\t\t: true;\r\n\t\tsetHabilitarGuardado(\r\n\t\t\talgunseleccionado &&\r\n\t\t\trangosSeleccionado &&\r\n\t\t\trecaudadorSeleccionado &&\r\n\t\t\tseleccionValida\r\n\t\t);\r\n\r\n\t\treturn (e.target.value * distrSalidos[indexModal].saldoTotal) / 100;\r\n\t};\r\n\r\n\tconst fondoRecaudador = (e, data, rec) => {\r\n\t\tsetCheckA(rec);\r\n\t\tsetCheckB(rec);\r\n\r\n\t\tlet recaudaArr = ctasRecaudadores;\r\n\t\tconst selA = rec === 0;\r\n\r\n\t\trecaudaArr[indexModal].recaudadorA = selA;\r\n\t\trecaudaArr[indexModal].recaudadorB = !selA;\r\n\r\n\t\tsetCtasRecaudadores(recaudaArr);\r\n\r\n\t\te.target.checked =\r\n\t\t\trec === 0\r\n\t\t\t\t? recaudaArr[indexModal].recaudadorA\r\n\t\t\t\t: recaudaArr[indexModal].recaudadorB;\r\n\r\n\t\tconst fondosdist = radioVal;\r\n\t\tconst algunseleccionado = tieneAlgunFondoSeleccionado(\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tfondosdist\r\n\t\t);\r\n\t\tconst seleccionValida = fondosSeleccionadosEnRegla(\r\n\t\t\tnull,\r\n\t\t\tnull,\r\n\t\t\tfondosdist,\r\n\t\t\tfalse\r\n\t\t);\r\n\t\tconst recaudadorSeleccionado =\r\n\t\t\tfondosdist === \"2\"\r\n\t\t\t\t? recaudaArr[indexModal].recaudadorA === true ||\r\n\t\t\t\trecaudaArr[indexModal].recaudadorB === true\r\n\t\t\t\t: true;\r\n\r\n\t\tconst rangosSeleccionado =\r\n\t\t\tmostrarDistribucion(indexModal) && fondosdist === \"2\"\r\n\t\t\t\t? validarInicioResto()\r\n\t\t\t\t: true;\r\n\t\tsetHabilitarGuardado(\r\n\t\t\talgunseleccionado &&\r\n\t\t\trangosSeleccionado &&\r\n\t\t\trecaudadorSeleccionado &&\r\n\t\t\tseleccionValida\r\n\t\t);\r\n\t};\r\n\r\n\tconst validarBotonCuentasSeleccionadas = () => {\r\n\t\tconst selected = getCuentasSeleccionadas();\r\n\t\tsetHayCuentasElegidas(selected.some((s) => s));\r\n\t};\r\n\r\n\tconst seleccionarCuentas = (evt, obligatorias) => {\r\n\t\tconst checked = evt.currentTarget.checked;\r\n\r\n\t\tif (obligatorias) {\r\n\t\t\tfor (let i = 0; i < volIndex; i++) {\r\n\t\t\t\tlet chk = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\t\tchk.checked = checked;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tconst checked = evt.currentTarget.checked;\r\n\t\t\tfor (let i = volIndex; i < ctasLen; i++) {\r\n\t\t\t\tlet chk = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\t\tchk.checked = checked;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tvalidarBotonCuentasSeleccionadas();\r\n\r\n\t\tvalidarFondos(true);\r\n\t};\r\n\r\n\tconst getCuentasSeleccionadas = () => {\r\n\t\tconst element = document.getElementsByName(\"form[cuentas_obligatorias]\")[0];\r\n\t\tlet ctasTempSel = ctasSeleccionadas;\r\n\r\n\t\tfor (let i = 0; i < volIndex; i++) {\r\n\t\t\tctasTempSel[i] = element.checked;\r\n\t\t}\r\n\r\n\t\tfor (let i = volIndex; i < ctasLen; i++) {\r\n\t\t\tconst el = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\tctasTempSel[i] = el.checked;\r\n\t\t}\r\n\r\n\t\tsetCuentasSeleccionadas(ctasTempSel);\r\n\r\n\t\treturn ctasTempSel;\r\n\t};\r\n\r\n\tconst renderHeaderSeccion = (index) => {\r\n\t\tif (index === 0 && ctasObligatorias.length > 0) {\r\n\t\t\treturn (\r\n\t\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t\t<div className=\"pp\">\r\n\t\t\t\t\t\t<div className=\"mt-388 d-flex\">\r\n\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t<Form.Check\r\n\t\t\t\t\t\t\t\t\tdefaultChecked={true}\r\n\t\t\t\t\t\t\t\t\tclassName=\"checks\"\r\n\t\t\t\t\t\t\t\t\ttype=\"checkbox\"\r\n\t\t\t\t\t\t\t\t\tname={\"form[cuentas_obligatorias]\"}\r\n\t\t\t\t\t\t\t\t\tonClick={(evt) => seleccionarCuentas(evt, true)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<span>Cuentas Obligatorias</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t);\r\n\t\t}\r\n\t\tif (ctasVoluntarias.length > 0 && index === volIndex) {\r\n\t\t\treturn (\r\n\t\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t\t<div className=\"pp\">\r\n\t\t\t\t\t\t<div className=\"mt-388 d-flex\">\r\n\t\t\t\t\t\t\t<span>\r\n\t\t\t\t\t\t\t\t<Form.Check\r\n\t\t\t\t\t\t\t\t\tdefaultChecked={true}\r\n\t\t\t\t\t\t\t\t\ttype=\"checkbox\"\r\n\t\t\t\t\t\t\t\t\tname={`form[cuentas_voluntarias]`}\r\n\t\t\t\t\t\t\t\t\tonClick={(evt) => seleccionarCuentas(evt, false)}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t<span>Cuentas Voluntarias</span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t};\r\n\r\n\tconst marcarGrupoCuentas = (nombre, selected, different) => {\r\n\t\tlet parent = document.getElementsByName(nombre)[0];\r\n\t\tparent.indeterminate = different;\r\n\t\tif (!different) parent.checked = selected;\r\n\t};\r\n\r\n\tconst selectCuentaMutua = (evt, index, tipo) => {\r\n\t\tconst selected = evt.nativeEvent.target.checked;\r\n\r\n\t\tif (index < volIndex) {\r\n\t\t\tevt.nativeEvent.target.checked = !selected;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (cuentasVoluntarias.includes(tipo)) {\r\n\t\t\tresponse.response.cuentas.forEach((c, i) => {\r\n\t\t\t\tif (i !== index && cuentasVoluntarias.includes(c.tipo)) {\r\n\t\t\t\t\tlet e = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (index < volIndex) {\r\n\t\t\tlet different = false;\r\n\t\t\tfor (let i = 0; i < volIndex; i++) {\r\n\t\t\t\tif (i !== index) {\r\n\t\t\t\t\tlet e = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\t\t\tdifferent = selected !== e.checked;\r\n\t\t\t\t\tif (different) break;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tmarcarGrupoCuentas(\"form[cuentas_obligatorias]\", selected, different);\r\n\t\t}\r\n\r\n\t\tif (index >= volIndex) {\r\n\t\t\tlet different = false;\r\n\t\t\tfor (let i = volIndex; i < ctasLen; i++) {\r\n\t\t\t\tif (i !== index) {\r\n\t\t\t\t\tlet e = document.getElementsByName(`form[${i}][cuenta_sel]`)[0];\r\n\t\t\t\t\tdifferent = selected !== e.checked;\r\n\t\t\t\t\tif (different) break;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tmarcarGrupoCuentas(\"form[cuentas_voluntarias]\", selected, different);\r\n\t\t}\r\n\r\n\t\tvalidarBotonCuentasSeleccionadas();\r\n\r\n\t\tvalidarFondos(true);\r\n\t};\r\n\r\n\tconst obtenerDistribucionInicial = (i) => {\r\n\t\tlet fds = fondosInicial[i];\r\n\t\tconst total = fds.reduce(\r\n\t\t\t(a, b) => parseInt(a) + (parseInt(b[\"saldo\"]) || 0),\r\n\t\t\t0\r\n\t\t);\r\n\t\treturn fds.map((f) => {\r\n\t\t\treturn {\r\n\t\t\t\tnombre: f.nombre,\r\n\t\t\t\tsaldo: f.saldo,\r\n\t\t\t\tporct: (parseInt(f.saldo) / total) * 100,\r\n\t\t\t};\r\n\t\t});\r\n\t};\r\n\r\n\tconst mostrarDistribucion = (i) => {\r\n\t\tif (permiteDistribucionObligatorias) return true;\r\n\t\telse return !cuentasObligatorias.includes(cuentasModal[i].tipo);\r\n\t};\r\n\r\n\tconst getUrlImagenFondo = (fondo, seleccionado, habilitado, indexCuenta) => {\r\n\t\tconst suffix = seleccionado\r\n\t\t\t? \"-color\"\r\n\t\t\t: indexCuenta >= volIndex\r\n\t\t\t\t? \"\"\r\n\t\t\t\t: habilitado\r\n\t\t\t\t\t? \"\"\r\n\t\t\t\t\t: \"-des\";\r\n\t\treturn `./imgs/${fondo.toLowerCase()}${suffix}.png`;\r\n\t};\r\n\r\n\tconst repairFondo = (fondo) => {\r\n\t\tif (arrayFondosImg[1]) return arrayFondosImg[1][`fondo${fondo}`];\r\n\t\telse return false;\r\n\t};\r\n\r\n\tconst enviarDatos = async () => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\r\n\t\tresponse.response.cuentas.forEach((cuenta, icuenta) => {\r\n\t\t\tif (typeof cuenta.porcentajeTraspaso === \"undefined\") {\r\n\t\t\t\tcuenta.tipoTraspaso = \"total\";\r\n\t\t\t\tcuenta.porcentajeTraspaso = 100;\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof mandatoGlobal[icuenta] !== \"undefined\") {\r\n\t\t\t\tcuenta.suscribeMandato = mandatoGlobal[icuenta].validarMandato;\r\n\t\t\t} else {\r\n\t\t\t\tcuenta.suscribeMandato = false;\r\n\t\t\t}\r\n\r\n\t\t\tcuenta.saldoRegimen =\r\n\t\t\t\ttypeof regimenesGlobal[icuenta] !== \"undefined\"\r\n\t\t\t\t\t? regimenesGlobal[icuenta].saldo\r\n\t\t\t\t\t: 0;\r\n\r\n\t\t\tcuenta.fondos.forEach((fondo) => {\r\n\t\t\t\tif (typeof fondo.porcentaje === \"undefined\") {\r\n\t\t\t\t\tfondo.porcentaje = 100;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (typeof fondo.valorPorcentaje === \"undefined\")\r\n\t\t\t\t\tfondo.valorPorcentaje = fondo.saldo;\r\n\r\n\t\t\t\tif (typeof fondo.fondoRecaudador === \"undefined\")\r\n\t\t\t\t\tfondo.fondoRecaudador = false;\r\n\r\n\t\t\t\tif (\r\n\t\t\t\t\ttypeof regimenesGlobal[icuenta] !== \"undefined\" &&\r\n\t\t\t\t\tcuenta.suscribeMandato\r\n\t\t\t\t) {\r\n\t\t\t\t\tfondo.regimenes.forEach((regimen) => {\r\n\t\t\t\t\t\tif (regimenesGlobal[icuenta].mandato) {\r\n\t\t\t\t\t\t\tregimen.valorCuota = regimenesGlobal[icuenta].saldo;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tconst seleccionadas = getCuentasSeleccionadas();\r\n\t\tlet cuentasEdit = [];\r\n\r\n\t\tfor (let i = 0; i < ctasLen; i++) {\r\n\t\t\tif (seleccionadas[i] === true) {\r\n\t\t\t\tcuentasEdit.push(props.location.state.json.response.cuentas[i]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlet afiliadoTemp = response.response.afiliado;\r\n\r\n\t\tlet empleadoresTemp = response.response.empleadores;\r\n\t\tlet arrayEmpleadores = [];\r\n\t\tif (empleadoresTemp != null && empleadoresTemp.length > 0) {\r\n\t\t\templeadoresTemp.forEach((empleado, i) => {\r\n\t\t\t\tlet empl = {\r\n\t\t\t\t\tcuentaCorrelativoComuna: 1,\r\n\t\t\t\t\tDireccion: empleado.direccion,\r\n\t\t\t\t\tRazonSocial: empleado.razonSocial,\r\n\t\t\t\t\tRut: empleado.rutNumero + \"-\" + empleado.rutDv,\r\n\t\t\t\t\tTelefono: empleado.telefonoCelular,\r\n\t\t\t\t\tEmail: empleado.email,\r\n\t\t\t\t};\r\n\t\t\t\tarrayEmpleadores.push(empl);\r\n\t\t\t});\r\n\t\t}\r\n\t\t\r\n\t\tlet datosPersonaalesTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: 0,\r\n\t\t\tNombre: afiliadoTemp.nombres,\r\n\t\t\tapellidoPaterno: afiliadoTemp.apellidoPaterno,\r\n\t\t\tapellidoMaterno: afiliadoTemp.apellidoMaterno,\r\n\t\t\tRut: afiliadoTemp.rutNumero + \"-\" + afiliadoTemp.rutDv,\r\n\t\t\tFechaNacimiento: afiliadoTemp.fechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: afiliadoTemp.email,\r\n\t\t\tTelefono: afiliadoTemp.telefonoCelular,\r\n\t\t\tDireccion: afiliadoTemp.direccion,\r\n\t\t\tComuna: afiliadoTemp.codigoUnicoTerritorial,\r\n\t\t\tCartola: false,\r\n\t\t\tSexo: afiliadoTemp.genero,\r\n\t\t\tTipoEmpleado: afiliadoTemp.tipo,\r\n\t\t\tEmpleadores: arrayEmpleadores,\r\n\t\t};\r\n\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tlet responseTemp = {\r\n\t\t\tresponse: {\r\n\t\t\t\tsolicitud: data.solicitud,\r\n\t\t\t\ttoken: response.response.token,\r\n\t\t\t\tticketId: response.response.ticket,\r\n\t\t\t\tcuentasEditadas: cuentasEdit,\r\n\t\t\t\tdatosPersonales: datosPersonaalesTemp,\r\n\t\t\t},\r\n\t\t};\r\n\t\tsetResponseFinal(responseTemp);\r\n\r\n\t\tlet databack = JSON.parse(localStorage.getItem(\"intis\"));\r\n\t\tdataback.location.state.json.response.cuentas = cuentasEdit;\r\n\t\tlocalStorage.setItem(\"intis\", JSON.stringify({ ...databack }));\r\n\r\n\t\tvar rut = props.location.state.json.response.rut;\r\n\t\tawait fetch(`${configuration.API_URL}/api/log/cuentas/${rut}/${data.autenticacion}`,\r\n\t\t\t{\r\n\t\t\t\tmethod: \"POST\",\r\n\t\t\t\theaders: { \"Content-Type\": \"text/plain\" },\r\n\t\t\t\tbody: JSON.stringify(responseTemp),\r\n\t\t\t}\r\n\t\t).catch((error) => {\r\n\t\t\tconsole.error(error);\r\n\t\t});\r\n\r\n\t\tsetValidateResponseFinal(true);\r\n\t};\r\n\r\n\tconst [cuentacheck, setcuentadoscheck] = useState({\r\n\t\tapvCheck: false,\r\n\t\tcuentaDosCheck: false,\r\n\t});\r\n\r\n\tconst onChangeValue = (event, nameValue, index) => {\r\n\t\tlet Monto;\r\n\t\tlet val;\r\n\r\n\t\tif (event.target.name === \"saldo\") {\r\n\t\t\tconst inival = event.target.value.replace(/[^0-9\\.]+/g, \"\");\r\n\t\t\tif (inival !== \"\") {\r\n\t\t\t\tval = parseInt(inival.replace(/[^0-9\\.]+/g, \"\"));\r\n\t\t\t\tMonto = val;\r\n\t\t\t} else {\r\n\t\t\t\tMonto = null;\r\n\t\t\t\tval = \"\";\r\n\t\t\t}\r\n\t\t\tevent.target.value = val;\r\n\t\t}\r\n\r\n\t\tlet regimenObjTemp = regimenesGlobal[index];\r\n\t\tregimenObjTemp.saldo = event.target.value;\r\n\t};\r\n\r\n\tconst onChangeValueCTA2 = (event, cta, index) => {\r\n\t\tconst inival = event.target.value.replace(/[^0-9\\.]+/g, \"\");\r\n\t\tevent.target.value =\r\n\t\t\tinival !== \"\" ? parseInt(inival.replace(/[^0-9\\.]+/g, \"\")) : \"\";\r\n\t};\r\n\r\n\tconst checkCuenta = (cuenta, index) => {\r\n\t\tmandatoGlobal[index] = { validarMandato: cuentacheck.apvCheck };\r\n\t\tif (cuenta === \"APV\") {\r\n\t\t\tif (cuentacheck.apvCheck) {\r\n\t\t\t\tsetcuentadoscheck({\r\n\t\t\t\t\t...cuentacheck,\r\n\t\t\t\t\tindex: index,\r\n\t\t\t\t\tapvCheck: false,\r\n\t\t\t\t});\r\n\r\n\t\t\t\tregimenesGlobal[index] = { mandato: false, saldo: 0 };\r\n\t\t\t} else {\r\n\t\t\t\tsetcuentadoscheck({\r\n\t\t\t\t\t...cuentacheck,\r\n\t\t\t\t\tindex: index,\r\n\t\t\t\t\tapvCheck: true,\r\n\t\t\t\t});\r\n\t\t\t\tregimenesGlobal[index] = { mandato: true, saldo: 0 };\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (cuentacheck.cuentaDosCheck) {\r\n\t\t\t\tsetcuentadoscheck({\r\n\t\t\t\t\t...cuentacheck,\r\n\t\t\t\t\tindex: index,\r\n\t\t\t\t\tcuentaDosCheck: false,\r\n\t\t\t\t});\r\n\t\t\t\tregimenesGlobal[index] = { mandato: false, saldo: 0 };\r\n\t\t\t} else {\r\n\t\t\t\tsetcuentadoscheck({\r\n\t\t\t\t\t...cuentacheck,\r\n\t\t\t\t\tindex: index,\r\n\t\t\t\t\tcuentaDosCheck: true,\r\n\t\t\t\t});\r\n\t\t\t\tregimenesGlobal[index] = { mandato: true, saldo: 0 };\r\n\t\t\t\tresponse.response.cuentas[index].suscribeMandato = true;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tconst [fondoValido, setfondoValido] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tvar response = validarFondos(false);\r\n\r\n\t\tif (!response.elegible) {\r\n\t\t\tSwal.fire({\r\n\t\t\t\ticon: \"warning\",\r\n\t\t\t\ttext: response.mensaje,\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t});\r\n\t\t}\r\n\t}, []);\r\n\r\n\tconst validarFondos = (first) => {\r\n\t\tlet cuentas = [];\r\n\t\tif (first) {\r\n\t\t\tconst seleccionadas = getCuentasSeleccionadas();\r\n\t\t\tfor (let i = 0; i < ctasLen; i++) {\r\n\t\t\t\tif (seleccionadas[i] === true) {\r\n\t\t\t\t\tcuentas.push(props.location.state.json.response.cuentas[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcuentas = props.location.state.json.response.cuentas;\r\n\t\t}\r\n\r\n\t\tvar response = {};\r\n\t\tresponse.elegible = true;\r\n\r\n\t\tcuentas.forEach((cuenta) => {\r\n\t\t\tcuenta.fondos.forEach((fondo) => {\r\n\t\t\t\tvar fondoelegible = fondoElegible(fondo.nombre);\r\n\t\t\t\tif (!fondoelegible) {\r\n\t\t\t\t\tif (fondo.nombre === \"A\") {\r\n\t\t\t\t\t\tresponse.mensaje =\r\n\t\t\t\t\t\t\t\"Según la normativa vigente, por tu seguridad no cumples con los requisitos de edad para seleccionar un fondo riesgoso. Elige entre los fondos B, C, D y E\";\r\n\t\t\t\t\t} else if (fondo.nombre === \"B\") {\r\n\t\t\t\t\t\tresponse.mensaje =\r\n\t\t\t\t\t\t\t\"Según la normativa vigente, por tu seguridad no cumples con los requisitos de edad para seleccionar un fondo riesgoso. Elige entre los fondos C, D y E\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresponse.elegible = fondoelegible;\r\n\t\t\t\t\tsetfondoValido(fondoelegible);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\tsetfondoValido(response.elegible);\r\n\r\n\t\treturn response;\r\n\t};\r\n\r\n\tif (render) {\r\n\t\tif (validateResponseFinal)\r\n\t\t\treturn (\r\n\t\t\t\t<Redirect\r\n\t\t\t\t\tto={{\r\n\t\t\t\t\t\tpathname: \"/misdatos\",\r\n\t\t\t\t\t\tstate: {\r\n\t\t\t\t\t\t\tjson: responseFinal,\r\n\t\t\t\t\t\t\tjsonBack: JSON.parse(localStorage.getItem(\"intis\")).location.state\r\n\t\t\t\t\t\t\t\t.json,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t}}\r\n\t\t\t\t/>\r\n\t\t\t);\r\n\r\n\t\treturn (\r\n\t\t\t<div>\r\n\t\t\t\t<CabeceraPasos paso=\"1\" />\r\n\t\t\t\t<Form>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t{response.response.cuentas.map((cuenta, indexc) => (\r\n\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\tclassName={\r\n\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CCICO\" ||\r\n\t\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CAI\" ||\r\n\t\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CCIAV\"\r\n\t\t\t\t\t\t\t\t\t\t? \"OBLIGATORIA\"\r\n\t\t\t\t\t\t\t\t\t\t: \"VOLUNTARIA\"\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t{renderHeaderSeccion(indexc)}\r\n\r\n\t\t\t\t\t\t\t\t<div key={indexc}>\r\n\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\tclassName=\"container_fondos\"\r\n\t\t\t\t\t\t\t\t\t\tstyle={{ marginTop: \"15px\" }}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<Card className=\"media_grey_c\" style={{ padding: \"15px\" }}>\r\n\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\ttype=\"hidden\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tvalue={indexc}\r\n\t\t\t\t\t\t\t\t\t\t\t\tname={`form[cuentas][${indexc}][id]`}\r\n\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"d-flex justify-content-start\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Form.Check\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefaultChecked={true}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CCICO\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CAI\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo === \"CCIAV\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"hidden\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"checkbox\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tname={`form[${indexc}][cuenta_sel]`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={(evt) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tselectCuentaMutua(evt, indexc, cuenta.tipo)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{volIndex <= indexc ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h5 className=\"mt-388\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getTipoCuenta(cuenta.tipo)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h5\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"mt-388\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ marginLeft: \"-9px\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getTipoCuenta(cuenta.tipo)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t<h6 className=\"mt-366\">{cuenta.Descripcion}</h6>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"grayy_liness\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h6 className=\"mt-366_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>Origen : {cuenta.origen}</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"hidden\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={cuenta.origen}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname={`form[${indexc}][origen]`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h6>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"cuentas_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"info__\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFondo origen{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Tooltips\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttexto={`Fondos de origen: Es el fondo en donde se invierten tus ahorros en tu AFP actual.`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p style={{ fontSize: \"13px\" }}>Saldo total : </p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong> ${formatDecimal(cuenta.saldo)}</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"info_22\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{fondosInicial[indexc].map((fondo, indexf) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div key={indexf}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={`./imgs/${fondo.origen}.png`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth=\"39\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight=\"39\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* <img src=\"./imgs/A-fondo.png\" alt=\"\"/> <img src=\"./imgs/B-fondo.png\" alt=\"\"/> */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"line_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"line_content\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"./imgs/line_d.svg\" alt=\"\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"line_content2\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"./imgs/lineh.svg\" alt=\"\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"green_lines\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h6 className=\"mt-366_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>Destino : AFP Modelo</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</h6>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"cuentas_22\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"info_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFondo de destino{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Tooltips\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttexto={`Fondos de destino: Es el fondo en donde quedarán tus ahorros en AFP Modelo`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{cuenta.porcentajeTraspaso > 0 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tindexc >= volIndex &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo !== \"CCICO\" &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo !== \"CAI\" &&\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo !== \"CCIAV\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p style={{ fontSize: \"13px\" }}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTraspaso parcial:{cuenta.porcentajeTraspaso}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : null\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"info_2\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{cuenta.fondos.map((fondo, indexf) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div key={indexf}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={`./imgs/${fondo.nombre}-color.png`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth=\"39\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight=\"39\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"hidden\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={fondo.nombre}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname={`form_fondos_${indexf}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{/* <img src=\"./imgs/a.svg\" width=\"30\" height=\"30\" alt=\"\"/> <img src=\"./imgs/b.svg\" width=\"30\" height=\"30\" alt=\"\"/> */}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container text-center\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tid={`B-TW-0006-${indexc + 1}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => handleShow(indexc)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"shadoww link-bnt\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"link\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"white\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: \"25px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"2px solid #0B7AC7\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: \"#0B7AC7\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tboxShadow: \"0px 4px 4px rgba(0, 0, 0, 0.25)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEditar fondo de destino\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Modal\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshow={show && indexModal === indexc}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonHide={handleClose}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tanimation={false}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"text-center\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackdrop=\"static\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Modal.Body>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-lg-11 col-md-10 col-sm-11 col-10\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<h5 className=\"mt-38\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{getTipoCuenta(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuentasModal[indexModal].tipo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-lg-1 col-md-2 col-sm-1 col-2\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"close\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={handleClose}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span className=\"sr-only\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tClose alert\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t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t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={cuentaModal.tipoTraspaso}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetTraspaso({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t...traspaso,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttipo: e.target.value,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"total\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTraspaso Total\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"parcial\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTraspaso Parcial\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Form.Control>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{traspaso.tipo !== \"total\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tElige el porcentaje que quieres\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttraspasar a las cuentas de AFP\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tModelo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<FormControl\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"number\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ appearance: \"none\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"valorA\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={traspaso.valorA}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonBlur={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.target.value === \"\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target.value = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t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\t\t\t\tadministren tus ahorros después del\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcambio.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfontSize: \"14px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextAlign: \"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tElige el fondo donde deseas que se\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tadministren tus ahorros después del\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcambio.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr class=\"my-4\" />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSaldo total $\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{formatDecimal(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuentasModal[indexModal].saldo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (indexModal === indexc)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tobtenerDistribucionInicial(indexModal);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfondosInicial[indexModal].length > 1 ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tindexc >= volIndex\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-12\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjustifyContent: \"space-between\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"fondo_uno\">\r\n\t\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\t\t\t\t\t\t\t\t\t{(() => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (arrayFondosImg.length) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"modal-content\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ border: \"0px\" }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjustifyContent: \"space-around\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={`fondo_ ${indexc >= volIndex\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"pointer\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: elegibles.A\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"pointer\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"number\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//defaultValue={ctasDist[indexModal].inicio}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tctasDist[\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tindexModal\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t].inicio\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-label=\"Recipient's username\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-describedby=\"basic-addon2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonBlur={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.value === \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttexto={`Fondo recaudador: Es el fondo de destino donde llegarán las siguientes cotizaciones.`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ }\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tposition: \"relative\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfloat: \"left\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: \"100%\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={`fondo_ ${indexc >= volIndex\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!habilitarGuardado ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"media m-3 p-3 rounded-lg\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackgroundColor:\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"rgba(243, 243, 243, 0.5)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc=\"./imgs/danger.svg\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"mr-3\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"media-body text-muted\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{radioVal !== \"2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"Selecciona un fondo recaudador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: checkB === 3 || checkA === 3\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"Selecciona los dos fondos de destino y fondo recaudador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"Selecciona los dos fondos de destino\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tflexDirection: \"row\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjustifyContent: \"space-between\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talignItems: \"baseline\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"col-12\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-12 d-flex justify-content-center\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: \"#82388B\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: \"25px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"0\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"primary\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={!habilitarGuardado}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={(event) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tformModalFondosGuardar(event)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGuardar\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Modal.Body>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Modal>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t{cuenta.tipo === \"APV\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container pt-3 pb-3 pl-0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-10 col-md-10\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p className=\"titulos__\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuiero suscribir un mandato de descuento para\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmi Cuenta Voluntaria con mi empleador\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-2 col-md-2 box_box\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Switch\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"checkedA\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"aria-label\": \"primary checkbox\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheckCuenta(cuenta.tipo, indexc)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{cuentacheck.apvCheck ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container pl-0 ml-0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-12 col-md-6\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p className=\"titulos__\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMonto de descuento mensual($)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-12 col-md-6_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"saldo\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderColor: \"#ccc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: \".25rem\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: \".375rem .75rem\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid #ccc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: \"300px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Ingrese el monto en pesos: $10.000\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(event) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChangeValue(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tevent,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tindexc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t{cuenta.tipo === \"CTA2\" ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"d-flex justify-content-between\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container pt-3 pb-3 pl-0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-10\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p className=\"titulos__\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tQuiero suscribir un mandato de descuento para\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmi Cuenta Voluntaria con mi empleador\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-2 box_box\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Switch\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"checkedA\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tinputProps={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"aria-label\": \"primary checkbox\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcheckCuenta(cuenta.tipo, indexc)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{cuentacheck.cuentaDosCheck ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"container pl-0 ml-0 mt-3\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"col-12 col-md-6\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{ fontSize: 16 }}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<p className=\"titulos__\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMonto de descuento mensual($)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className=\"col-12 col-md-6_\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"monto\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderColor: \"#ccc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: \".25rem\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: \".375rem .75rem\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"1px solid #ccc\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: \"300px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Ingrese el monto en pesos: $10.000\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) =>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChangeValueCTA2(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcuenta.tipo,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tindexc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t</Card>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t))}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</Form>\r\n\t\t\t\t{volIndex !== response.response.cuentas.length ? (\r\n\t\t\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclassName=\"media m-3 p-3 rounded-lg\"\r\n\t\t\t\t\t\t\tstyle={{ backgroundColor: \"rgba(243, 243, 243, 0.5)\" }}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<img src=\"./imgs/danger.svg\" className=\"mr-3\" alt=\"\" />\r\n\t\t\t\t\t\t\t<div className=\"media-body text-muted\">\r\n\t\t\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t\t\tLos mandatos de descuento de ahorro voluntario con tu\r\n\t\t\t\t\t\t\t\t\templeador serán revocados automáticamente, podrás suscribir\r\n\t\t\t\t\t\t\t\t\tuno nuevo en la sección empleadores.\r\n\t\t\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t) : null}\r\n\t\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t\t<div className=\"btn_card_ dd\">\r\n\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\tid=\"B-TW-0007\"\r\n\t\t\t\t\t\t\tonClick={enviarDatos}\r\n\t\t\t\t\t\t\tclassName=\"btn primary\"\r\n\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\tdisabled={!hayCuentasElegidas || !fondoValido}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tContinuar\r\n\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t<SabiasQueFondo />\r\n\t\t\t\t\t\t<IdleTimerContainer isLoggedIn={true} />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t);\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}\r\n","import React, { useEffect, useState } from 'react';\r\nimport '../datosPersonales.css'\r\n\r\nconst DatosPersonalesA = ({ datos }) => {\r\n const [fecha, setFecha] = useState('');\r\n const [preRender, setPreRender] = useState(false);\r\n\r\n useEffect(() => {\r\n setDate(datos.FechaNacimiento || '');\r\n setPreRender(true);\r\n }, [])\r\n\r\n const setDate = (date) => {\r\n let anio = date.substring(0, 4);\r\n let mes = date.substring(6, 4);\r\n let dia = date.substring(8, 6);\r\n setFecha(dia + '/' + mes + '/' + anio)\r\n }\r\n\r\n\r\n const formatRut = (rut) => {\r\n const newRut = rut.replace(/\\./g, '').replace(/\\-/g, '').trim().toLowerCase();\r\n const lastDigit = newRut.substr(-1, 1);\r\n const rutDigit = newRut.substr(0, newRut.length - 1)\r\n\r\n if (rutDigit.length === 7) {\r\n let anio = rutDigit.substring(0, 1);\r\n let mes = rutDigit.substring(1, 4);\r\n let dia = rutDigit.substring(4, 7);\r\n\r\n return anio + '.' + mes + '.' + dia + '-' + lastDigit\r\n } else {\r\n let format = '';\r\n for (let i = rutDigit.length; i > 0; i--) {\r\n const e = rutDigit.charAt(i - 1);\r\n format = e.concat(format);\r\n if (i % 3 === 0) {\r\n format = '.'.concat(format);\r\n }\r\n }\r\n return format.concat('-').concat(lastDigit);\r\n }\r\n }\r\n\r\n if (preRender) {\r\n return (\r\n <>\r\n <div>\r\n <div className=\"media_grey__\">\r\n <h5 className=\"mt-37_\"><strong>Datos personales</strong></h5>\r\n <p className=\"titulos_c\">Nombre</p>\r\n <p className=\"textos_c\">{datos.Nombre} {datos.apellidoPaterno} {datos.apellidoMaterno}</p>\r\n <p className=\"titulos_c\">Rut</p>\r\n <p className=\"textos_c\">{formatRut(datos.Rut)}</p>\r\n <p className=\"titulos_c\">Fecha de nacimiento</p>\r\n <p className=\"textos_c\">{fecha}</p> \r\n </div>\r\n </div>\r\n </>\r\n );\r\n } else {\r\n return null;\r\n }\r\n}\r\n\r\nexport default DatosPersonalesA","import React, { useContext, useEffect, useState, useRef } from \"react\";\r\nimport { Button, Form, Col, InputGroup, Alert } from \"react-bootstrap\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport validator from \"validator\";\r\nimport \"./datosPersonales.css\";\r\nimport DatosPersonalesA from \"./datosPersonales/DatosPersonales\";\r\nimport Context from \"../../../store/context\";\r\nimport CabeceraPasos from \"../compartido/CabeceraPasos\";\r\nimport RegistrarPaso from \"../../util/RegistrarPaso\";\r\nimport configuration from \"../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport ValidateFieldsUtil from \"../../util/validacion/ValidateFieldsUtil\";\r\nimport IdleTimerContainer from \"../../util/IdleTimer/Container\";\r\nimport Crypto from \"../../util/Crypto\";\r\n\r\nconst DatosPersonales = (props) => {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst ContactSection = useRef(null);\r\n\tconst direccionempleador = useRef(null);\r\n\tconst [validarDatosContacto, setValidarDatosContacto] = useState(true);\r\n\tconst [validarExisteEmpleador, setValidarExiteEmpleador] = useState(false);\r\n\tconst [estadoEmpleador, setEstadoEmpleador] = useState(1);\r\n\tconst [validateConfirmData, setValidateConfirmData] = useState(false);\r\n\tconst [validarData, setValidarData] = useState(true);\r\n\tconst [confirmData, setConfirmData] = useState({\r\n\t\t...props.location.state.json,\r\n\t});\r\n\tconst [opciones, setOpciones] = useState([]);\r\n\tconst [datosPersonalesInit] = useState({\r\n\t\t...props.location.state.json.response.datosPersonales,\r\n\t});\r\n\tconst [pasoRegistrado, setPasoRegistrado] = useState(false);\r\n\tconst [jsonBack, setJsonBack] = useState({});\r\n\tconst [opcionesComunasAfiliado, setOpcionesComunasAfiliado] = useState([]);\r\n\tconst [opcionesComunas1, setOpcionesComunas1] = useState([]);\r\n\tconst [opcionesComunas2, setOpcionesComunas2] = useState([]);\r\n\tconst [opcionesComunas3, setOpcionesComunas3] = useState([]);\r\n\tconst [opcionesComunas4, setOpcionesComunas4] = useState([]);\r\n\tconst [nacionalidades, setNacionalidades] = useState([]);\r\n\tconst [tipoEmpleado, setTipoEmpleado] = useState([]);\r\n\tconst [datos, setDatos] = useState({ nombres: \"\" });\r\n\tconst [empleadores, setEmpleadores] = useState([\r\n\t\t{\r\n\t\t\tid: Date.now() + Math.random(),\r\n\t\t\trazonSocialempleador:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].RazonSocial\r\n\t\t\t\t\t: \"\",\r\n\t\t\trutempleador:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].Rut\r\n\t\t\t\t\t: datosPersonalesInit.TipoEmpleado === 2\r\n\t\t\t\t\t\t? datosPersonalesInit.Rut\r\n\t\t\t\t\t\t: \"\",\r\n\t\t\temailNotifiacionempleador:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].Email\r\n\t\t\t\t\t: \"\",\r\n\t\t\ttelefonoempleador:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].Telefono\r\n\t\t\t\t\t: \"\",\r\n\t\t\tdireccionempleador:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].Direccion\r\n\t\t\t\t\t: \"\",\r\n\t\t\tcuentaCorrelativoComuna:\r\n\t\t\t\tdatosPersonalesInit.Empleadores.length > 0\r\n\t\t\t\t\t? datosPersonalesInit.Empleadores[0].cuentaCorrelativoComuna\r\n\t\t\t\t\t: \"\",\r\n\t\t\tcomunaempleador: \"\",\r\n\t\t\tregionempleador: \"\",\r\n\t\t},\r\n\t]);\r\n\r\n\tconst errores = {\r\n\t\terrorEmail: false,\r\n\t\terrorPhone: false,\r\n\t\terrorDireccion: false,\r\n\t\terrorRegion: false,\r\n\t\terrorComuna: false,\r\n\t\tmensajeErrorEmail: \"error email\",\r\n\t\tmensajeErrorPhone: \"error telefono\",\r\n\t\tmensajeErrorDireccion: \"error direccion\",\r\n\t\tmensajeErrorRegion: \"error region\",\r\n\t\tmensajeErrorComuna: \"error comuna\",\r\n\t};\r\n\r\n\tconst errorEmpleador = [\r\n\t\t{\r\n\t\t\terrorRazonSocial: false,\r\n\t\t\terrorRut: false,\r\n\t\t\terrorTelefono: false,\r\n\t\t\terrorEmail: false,\r\n\t\t\terrorDireccion: false,\r\n\t\t\tmensajeErrorRazonSocial: \"error email\",\r\n\t\t\tmensajeErrorRut: \"error Rut\",\r\n\t\t\tmensajeErrorTelefono: \"error Telefono\",\r\n\t\t\tmensajeErrorEmail: \"error Email\",\r\n\t\t\tmensajeErrorDireccion: \"error direccion\",\r\n\t\t},\r\n\t];\r\n\r\n\tuseEffect(async () => {\r\n\t\tif (!pasoRegistrado) {\r\n\t\t\tRegistrarPaso(4);\r\n\t\t\tsetPasoRegistrado(true);\r\n\t\t}\r\n\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\r\n\t\tsetOpciones(JSON.parse(localStorage.getItem(\"locaciones\")));\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/nacionalidad/GetAllAsync`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tsetNacionalidades(response.Response.Nacionalidades);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/tipo/afiliados`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tsetTipoEmpleado(response);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\r\n\t\tlet afiliadoTemp = {\r\n\t\t\t...props.location.state.json.response.datosPersonales,\r\n\t\t};\r\n\r\n\t\tlet datosPersonaalesTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: afiliadoTemp.cuentaCorrelativoProspecto,\r\n\t\t\tNombre: afiliadoTemp.Nombre,\r\n\t\t\tapellidoPaterno: afiliadoTemp.apellidoPaterno,\r\n\t\t\tapellidoMaterno: afiliadoTemp.apellidoMaterno,\r\n\t\t\tRut: afiliadoTemp.Rut,\r\n\t\t\tFechaNacimiento: afiliadoTemp.FechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: afiliadoTemp.Email,\r\n\t\t\tTelefono: afiliadoTemp.Telefono,\r\n\t\t\tDireccion: afiliadoTemp.Direccion,\r\n\t\t\tregion: 0,\r\n\t\t\tnombreRegion: \"\",\r\n\t\t\tcomuna: \"0\",\r\n\t\t\tnombreComuna: \"\",\r\n\t\t\tNacionalidad:\r\n\t\t\t\tafiliadoTemp.Nacionalidad === undefined ? 0 : afiliadoTemp.Nacionalidad,\r\n\t\t\tnombreNacionalidad:\r\n\t\t\t\tafiliadoTemp.nombreNacionalidad === undefined\r\n\t\t\t\t\t? \"\"\r\n\t\t\t\t\t: afiliadoTemp.nombreNacionalidad,\r\n\t\t\tCartola: true,\r\n\t\t\tSexo: afiliadoTemp.Sexo,\r\n\t\t\tTipoEmpleado: afiliadoTemp.TipoEmpleado,\r\n\t\t\tEmpleadores: { ...afiliadoTemp.Empleadores },\r\n\t\t};\r\n\r\n\t\tsetEstadoEmpleador(afiliadoTemp.TipoEmpleado);\r\n\t\tonChangeAfiliado(afiliadoTemp.TipoEmpleado);\r\n\r\n\t\tsetDatos(datosPersonaalesTemp);\r\n\t}, []);\r\n\r\n\tconst comunaRegion = (index, e) => {\r\n\t\tconst regSel = parseInt(e.target.value);\r\n\t\tlet nombreRegion = \"\";\r\n\t\tconst values = [...empleadores];\r\n\t\tvalues[index].comunaempleador = \"\";\r\n\r\n\t\tvalues[index].comunaempleador = \"\";\r\n\r\n\t\topciones.forEach((element) => {\r\n\t\t\tif (element.Id === regSel) {\r\n\t\t\t\tnombreRegion = element.Nombre;\r\n\t\t\t\tsetAccesoComunaArr(index, element.Comunas);\r\n\t\t\t}\r\n\t\t});\r\n\t\tvalues[index][e.target.name] = e.target.value;\r\n\t\tvalues[index].nombreRegion = nombreRegion;\r\n\r\n\t\tsetEmpleadores(values);\r\n\t};\r\n\r\n\tconst nacionalidadSelect = (e) => {\r\n\t\tlet nombreNacionalidad = \"\";\r\n\t\tconst selNat = parseInt(e.target.value);\r\n\t\tnacionalidades.forEach((element) => {\r\n\t\t\tif (element.Id === selNat) {\r\n\t\t\t\tnombreNacionalidad = element.Nombre;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tlet datosContactoTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: datos.cuentaCorrelativoProspecto,\r\n\t\t\tNombre: datos.Nombre,\r\n\t\t\tapellidoPaterno: datos.apellidoPaterno,\r\n\t\t\tapellidoMaterno: datos.apellidoMaterno,\r\n\t\t\tRut: datos.Rut,\r\n\t\t\tFechaNacimiento: datos.FechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: datos.Email,\r\n\t\t\tTelefono: datos.Telefono,\r\n\t\t\tDireccion: datos.Direccion,\r\n\t\t\tCartola: datos.Cartola,\r\n\t\t\tSexo: datos.Sexo,\r\n\t\t\tTipoEmpleado: datos.TipoEmpleado,\r\n\t\t\tEmpleadores: datos.Empleadores,\r\n\t\t\tregion: datos.region,\r\n\t\t\tnombreRegion: datos.nombreRegion,\r\n\t\t\tcomuna: datos.comuna,\r\n\t\t\tNacionalidad: e.target.value,\r\n\t\t\tnombreNacionalidad: nombreNacionalidad,\r\n\t\t\tnombreComuna: datos.nombreComuna,\r\n\t\t};\r\n\t\tvalidFormContacto(datosContactoTemp);\r\n\t\tsetDatos(datosContactoTemp);\r\n\t};\r\n\r\n\tconst comunaRegionAfiliado = (value) => {\r\n\t\tconst selReg = parseInt(value);\r\n\r\n\t\tlet nombreRegion = \"\";\r\n\t\topciones.forEach((element) => {\r\n\t\t\tif (element.Id === selReg) {\r\n\t\t\t\tnombreRegion = element.Nombre;\r\n\t\t\t\tsetOpcionesComunasAfiliado(element.Comunas);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tlet datosContactoTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: datos.cuentaCorrelativoProspecto,\r\n\t\t\tNombre: datos.Nombre,\r\n\t\t\tapellidoPaterno: datos.apellidoPaterno,\r\n\t\t\tapellidoMaterno: datos.apellidoMaterno,\r\n\t\t\tRut: datos.Rut,\r\n\t\t\tFechaNacimiento: datos.FechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: datos.Email,\r\n\t\t\tTelefono: datos.Telefono,\r\n\t\t\tDireccion: datos.Direccion,\r\n\t\t\tCartola: datos.Cartola,\r\n\t\t\tSexo: datos.Sexo,\r\n\t\t\tTipoEmpleado: datos.TipoEmpleado,\r\n\t\t\tEmpleadores: datos.Empleadores,\r\n\t\t\tregion: parseInt(value),\r\n\t\t\tnombreRegion: nombreRegion,\r\n\t\t\tnombreNacionalidad: datos.nombreNacionalidad,\r\n\t\t\tNacionalidad: parseInt(datos.Nacionalidad),\r\n\t\t\tcomuna: \"0\",\r\n\t\t\tnombreComuna: \"\",\r\n\t\t};\r\n\t\tvalidFormContacto(datosContactoTemp);\r\n\t\tsetDatos(datosContactoTemp);\r\n\t};\r\n\r\n\tconst comunasAfiliado = (e) => {\r\n\t\tlet index = e.nativeEvent.target.selectedIndex;\r\n\t\tlet nombreComuna = e.nativeEvent.target[index].text;\r\n\r\n\t\tlet datosContactoTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: datos.cuentaCorrelativoProspecto,\r\n\t\t\tNombre: datos.Nombre,\r\n\t\t\tapellidoPaterno: datos.apellidoPaterno,\r\n\t\t\tapellidoMaterno: datos.apellidoMaterno,\r\n\t\t\tRut: datos.Rut,\r\n\t\t\tFechaNacimiento: datos.FechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: datos.Email,\r\n\t\t\tTelefono: datos.Telefono,\r\n\t\t\tDireccion: datos.Direccion,\r\n\t\t\tCartola: false,\r\n\t\t\tSexo: datos.Sexo,\r\n\t\t\tnombreNacionalidad: datos.nombreNacionalidad,\r\n\t\t\tNacionalidad: parseInt(datos.Nacionalidad),\r\n\t\t\tTipoEmpleado: datos.TipoEmpleado,\r\n\t\t\tEmpleadores: datos.Empleadores,\r\n\t\t\tregion: parseInt(datos.region),\r\n\t\t\tnombreRegion: datos.nombreRegion,\r\n\t\t\tcomuna: e.target.value,\r\n\t\t\tnombreComuna: nombreComuna,\r\n\t\t};\r\n\t\tvalidFormContacto(datosContactoTemp);\r\n\t\tsetDatos(datosContactoTemp);\r\n\t};\r\n\r\n\tconst handleChangeInput = (index, event) => {\r\n\t\tconst values = [...empleadores];\r\n\t\tif (event.target.name === \"telefonoempleador\") {\r\n\t\t\tconst re = /^[0-9\\b]+$/;\r\n\t\t\tif (event.target.value === \"\" || re.test(event.target.value)) {\r\n\t\t\t\tvalues[index][event.target.name] = event.target.value;\r\n\t\t\t}\r\n\t\t} else if (event.target.name === \"rutempleador\") {\r\n\t\t\tif (event.target.value.length < 10) {\r\n\t\t\t\tlet rutVal = event.target.value.replace(\".\", \"\").replace(\"-\", \"\");\r\n\t\t\t\tconst re = /^[0-9\\bkK]+$/;\r\n\t\t\t\tif (rutVal === \"\" || re.test(rutVal)) {\r\n\t\t\t\t\tvalues[index][event.target.name] = rutVal;\r\n\t\t\t\t}\r\n\t\t\t} else if (event.target.value.length < 12) {\r\n\t\t\t\tvalues[index][event.target.name] = event.target.value\r\n\t\t\t\t\t.replace(\".\", \"\")\r\n\t\t\t\t\t.replace(\".\", \"\")\r\n\t\t\t\t\t.replace(\"-\", \"\");\r\n\t\t\t} else if (event.target.value.length < 13) {\r\n\t\t\t\tvalues[index][event.target.name] = event.target.value;\r\n\t\t\t}\r\n\t\t} else if (event.target.name === \"comunaempleador\") {\r\n\t\t\tlet indexs = event.nativeEvent.target.selectedIndex;\r\n\t\t\tlet nombreComuna = event.nativeEvent.target[indexs].text;\r\n\t\t\tvalues[index].nombreComuna = nombreComuna;\r\n\t\t\tvalues[index][event.target.name] = event.target.value;\r\n\t\t} else {\r\n\t\t\tvalues[index][event.target.name] = event.target.value;\r\n\t\t}\r\n\r\n\t\tvalidFormContacto(datos);\r\n\t\tformValidEmpleadores(values);\r\n\t\tsetEmpleadores(values);\r\n\t};\r\n\r\n\tconst formValidEmpleadores = (valuesEmp) => {\r\n\t\tvaluesEmp.forEach((empleador) => {\r\n\t\t\tif (\r\n\t\t\t\templeador.razonSocialempleador === undefined ||\r\n\t\t\t\templeador.razonSocialempleador === \"\" ||\r\n\t\t\t\templeador.razonSocialempleador === 0 ||\r\n\t\t\t\templeador.rutempleador === undefined ||\r\n\t\t\t\templeador.rutempleador === \"\" ||\r\n\t\t\t\templeador.rutempleador === 0 ||\r\n\t\t\t\templeador.emailNotifiacionempleador === undefined ||\r\n\t\t\t\templeador.emailNotifiacionempleador === \"\" ||\r\n\t\t\t\templeador.emailNotifiacionempleador === 0 ||\r\n\t\t\t\t!validator.isEmail(empleador.emailNotifiacionempleador)\r\n\t\t\t) {\r\n\t\t\t\tsetValidarData(true);\r\n\t\t\t} else {\r\n\t\t\t\tsetValidarData(false);\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tconst isInvalidEmail = (index) => {\r\n\t\tvar email = empleadores[index].emailNotifiacionempleador;\r\n\r\n\t\tif (\r\n\t\t\temail === null ||\r\n\t\t\temail === undefined ||\r\n\t\t\t!validator.isEmail(email) ||\r\n\t\t\temail === \"\" ||\r\n\t\t\temail === 0\r\n\t\t) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t};\r\n\r\n\tconst isInvalidDireccionArray = () => {\r\n\t\tif (validarExisteEmpleador) {\r\n\t\t\tfor (var i = 0; i <= empleadores.length - 1; i++) {\r\n\t\t\t\tvar direccion = empleadores[i].direccionempleador;\r\n\t\t\t\tif (\r\n\t\t\t\t\tdireccion === null ||\r\n\t\t\t\t\tdireccion === undefined ||\r\n\t\t\t\t\tdireccion === \"\" ||\r\n\t\t\t\t\tdireccion === 0\r\n\t\t\t\t) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\tconst validFormContacto = (datosContacto) => {\r\n\t\tif (\r\n\t\t\tdatosContacto.Email === \"\" ||\r\n\t\t\tdatosContacto.Telefono === \"\" ||\r\n\t\t\tdatosContacto.Direccion === \"\" ||\r\n\t\t\tdatosContacto.Nacionalidad === 0 ||\r\n\t\t\tdatosContacto.region === 0 ||\r\n\t\t\tdatosContacto.comuna === \"0\"\r\n\t\t) {\r\n\t\t\tsetValidarDatosContacto(true);\r\n\t\t} else {\r\n\t\t\tsetValidarDatosContacto(false);\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleSubmit = async (event) => {\r\n\t\tevent.preventDefault();\r\n\r\n\t\tlet continuar = false;\r\n\r\n\t\tif (telefonoIsInvalid(datos.Telefono)) {\r\n\t\t\tawait Swal.fire({\r\n\t\t\t\ticon: \"warning\",\r\n\t\t\t\ttext: \"Su número de teléfono contacto personal se encuentra incorrecto, ¿Desea modificarlo?\",\r\n\t\t\t\tconfirmButtonText: \"Si\",\r\n\t\t\t\tshowDenyButton: true,\r\n\t\t\t\tdenyButtonText: \"No\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\treturnFocus: false,\r\n\t\t\t}).then((result) => {\r\n\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\twindow.scrollTo({\r\n\t\t\t\t\t\ttop: ContactSection.current.offsetTop - 5,\r\n\t\t\t\t\t\tbehavior: \"smooth\",\r\n\t\t\t\t\t});\r\n\t\t\t\t} else if (result.isDenied) {\r\n\t\t\t\t\tcontinuar = true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tcontinuar = true;\r\n\t\t}\r\n\r\n\t\tif (!continuar) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (ValidarEmpleadoresDuplicados()) {\r\n\t\t\tSwal.fire({\r\n\t\t\t\ticon: \"warning\",\r\n\t\t\t\ttext: \"No se puede asociar el mismo Rut a más de un empleador\",\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t});\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (isInvalidDireccionArray()) {\r\n\t\t\tawait Swal.fire({\r\n\t\t\t\ticon: \"warning\",\r\n\t\t\t\ttext: \"¿Desconoce la dirección del empleador?\",\r\n\t\t\t\tconfirmButtonText: \"Si\",\r\n\t\t\t\tshowDenyButton: true,\r\n\t\t\t\tdenyButtonText: \"No\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\treturnFocus: false,\r\n\t\t\t}).then((result) => {\r\n\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\tcontinuar = true;\r\n\t\t\t\t} else if (result.isDenied) {\r\n\t\t\t\t\tcontinuar = false;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tif (continuar) {\r\n\t\t\tOnInput();\r\n\t\t}\r\n\t};\r\n\r\n\tconst OnInput = async () => {\r\n\t\tif (!validarExisteEmpleador) {\r\n\t\t\tsetEmpleadores([]);\r\n\t\t} else {\r\n\t\t\templeadores.forEach((element) => {\r\n\t\t\t\tif (\r\n\t\t\t\t\telement.direccionempleador === \"\" ||\r\n\t\t\t\t\telement.direccionempleador === undefined ||\r\n\t\t\t\t\telement.direccionempleador === null\r\n\t\t\t\t) {\r\n\t\t\t\t\telement.direccionempleador = \"Dirección no ingresada\";\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tformValidEmpleadores(empleadores);\r\n\r\n\t\tlet datosPersonalesTemp = {\r\n\t\t\tcuentaCorrelativoProspecto: datos.cuentaCorrelativoProspecto,\r\n\t\t\tNombre: datos.Nombre,\r\n\t\t\tapellidoPaterno: datos.apellidoPaterno,\r\n\t\t\tapellidoMaterno: datos.apellidoMaterno,\r\n\t\t\tRut: datos.Rut,\r\n\t\t\tFechaNacimiento: datos.FechaNacimiento,\r\n\t\t\tNacionalcuentaCorrelativa: 1,\r\n\t\t\tEmail: datos.Email,\r\n\t\t\tTelefono: datos.Telefono,\r\n\t\t\tDireccion: datos.Direccion,\r\n\t\t\tnombreComuna: datos.nombreComuna,\r\n\t\t\tnombreRegion: datos.nombreRegion,\r\n\t\t\tCartola: false,\r\n\t\t\tnombreNacionalidad: datos.nombreNacionalidad,\r\n\t\t\tNacionalidad: parseInt(datos.Nacionalidad),\r\n\t\t\tSexo: datos.Sexo,\r\n\t\t\tTipoEmpleado: estadoEmpleador,\r\n\t\t\tEmpleadores: empleadores,\r\n\t\t\tregion: parseInt(datos.region),\r\n\t\t\tcomuna: datos.comuna,\r\n\t\t};\r\n\r\n\t\tlet confirmDataTemp = { ...confirmData };\r\n\t\tconfirmDataTemp.response.datosPersonales = datosPersonalesTemp;\r\n\t\tsetConfirmData(confirmDataTemp);\r\n\r\n\t\tlet raw = {\r\n\t\t\tresponse: {\r\n\t\t\t\tcuentasEditadas: [...confirmDataTemp.response.cuentasEditadas],\r\n\t\t\t\tdatosPersonales: datosPersonalesTemp,\r\n\t\t\t\tsolicitud: { ...props.location.state.json.response.solicitud },\r\n\t\t\t\tticketId: { ...props.location.state.json.response.ticketId },\r\n\t\t\t\ttoken: { ...props.location.state.json.response.token },\r\n\t\t\t},\r\n\t\t};\r\n\r\n\t\tsetJsonBack(raw);\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/log/datos/${datosPersonalesInit.Rut}/${data.autenticacion}`,\r\n\t\t\t{\r\n\t\t\t\tmethod: \"POST\",\r\n\t\t\t\tbody: JSON.stringify(raw),\r\n\t\t\t\theaders: { \"Content-Type\": \"text/plain\" },\r\n\t\t\t}\r\n\t\t).catch((error) => {\r\n\t\t\tconsole.error(error);\r\n\t\t\tSwal.fire({\r\n\t\t\t\ticon: \"error\",\r\n\t\t\t\ttext: error.message,\r\n\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\tallowOutsideClick: false,\r\n\t\t\t});\r\n\t\t});\r\n\r\n\t\tsetValidateConfirmData(true);\r\n\t};\r\n\r\n\tconst nuevoEmpleador = () => {\r\n\t\tsetValidarData(true);\r\n\t\tif (empleadores.length < 4) {\r\n\t\t\tsetEmpleadores([\r\n\t\t\t\t...empleadores,\r\n\t\t\t\t{\r\n\t\t\t\t\tid: Date.now() + Math.random(),\r\n\t\t\t\t\trazonSocialempleador: \"\",\r\n\t\t\t\t\trutempleador: \"\",\r\n\t\t\t\t\temailNotifiacionempleador: \"\",\r\n\t\t\t\t\ttelefonoempleador: \"\",\r\n\t\t\t\t\tdireccionempleador: \"\",\r\n\t\t\t\t\tcomunaempleador: \"\",\r\n\t\t\t\t\tregionempleador: \"\",\r\n\t\t\t\t},\r\n\t\t\t]);\r\n\t\t}\r\n\t};\r\n\r\n\tconst handleRemoveFields = (id) => {\r\n\t\tconst values = [...empleadores];\r\n\t\tvalues.splice(\r\n\t\t\tvalues.findIndex((value) => value.id === id),\r\n\t\t\t1\r\n\t\t);\r\n\t\tsetEmpleadores(values);\r\n\t\tformValidEmpleadores(values);\r\n\t};\r\n\r\n\tconst FormatNacionalidad = (cadena) => {\r\n\t\tconst primerCaracter = ValidateFieldsUtil.Upper(cadena.charAt(0));\r\n\t\tconst restoDeLaCadena = cadena.substring(1, cadena.length);\r\n\t\treturn primerCaracter.concat(restoDeLaCadena);\r\n\t};\r\n\r\n\tfunction ValidarEmpleadoresDuplicados(element, index) {\r\n\t\tlet resultToReturn = false;\r\n\t\tfor (let i = 0; i < empleadores.length; i++) {\r\n\t\t\t// nested for loop\r\n\t\t\tfor (let j = 0; j < empleadores.length; j++) {\r\n\t\t\t\t// prevents the element from comparing with itself\r\n\t\t\t\tif (i !== j) {\r\n\t\t\t\t\t// check if elements' values are equal\r\n\t\t\t\t\tif (empleadores[i].rutempleador === empleadores[j].rutempleador) {\r\n\t\t\t\t\t\t// duplicate element present\r\n\t\t\t\t\t\tresultToReturn = true;\r\n\t\t\t\t\t\t// terminate inner loop\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// terminate outer loop\r\n\t\t\tif (resultToReturn) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (resultToReturn) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction validFormFinal() {\r\n\t\tif (validarExisteEmpleador) {\r\n\t\t\tif (validarDatosContacto && validarData) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if (validarDatosContacto) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else if (validarData) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (validarDatosContacto) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tconst getAccesoComunaArr = (index) => {\r\n\t\tif (index === 0) return opcionesComunas1;\r\n\t\tif (index === 1) return opcionesComunas2;\r\n\t\tif (index === 2) return opcionesComunas3;\r\n\t\tif (index === 3) return opcionesComunas4;\r\n\t};\r\n\r\n\tconst setAccesoComunaArr = (index, values) => {\r\n\t\tif (index === 0) setOpcionesComunas1(values);\r\n\t\tif (index === 1) setOpcionesComunas2(values);\r\n\t\tif (index === 2) setOpcionesComunas3(values);\r\n\t\tif (index === 3) setOpcionesComunas4(values);\r\n\t};\r\n\r\n\tconst formatValidateRut = (rutString) => {\r\n\t\tif (rutString === undefined) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tlet rutparts = rutString.split(\"-\");\r\n\t\tlet rut = rutparts[0].replace(/\\./g, \"\");\r\n\t\tlet h = \"\";\r\n\t\tlet dv = \"\";\r\n\r\n\t\tif (rutparts.length > 1) {\r\n\t\t\th = \"-\";\r\n\t\t\tdv = rutparts[1];\r\n\t\t} else {\r\n\t\t\tif (rut.length > 2) {\r\n\t\t\t\th = \"-\";\r\n\t\t\t\tdv = rut[rut.length - 1];\r\n\t\t\t\trut = rut.substring(0, rut.length - 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (rut.length > 8) rut = rut.substring(0, 8);\r\n\t\tlet T = rut;\r\n\t\tvar M = 0,\r\n\t\t\tS = 1;\r\n\t\tfor (; T; T = Math.floor(T / 10)) S = (S + (T % 10) * (9 - (M++ % 6))) % 11;\r\n\t\t//aqui formeatea el rut\r\n\t\tif (dv === (S ? S - 1 : \"k\").toString()) {\r\n\t\t\trut = rut.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\r\n\t\t\treturn rut + h + dv;\r\n\t\t} else if (dv === (S ? S - 1 : \"K\").toString()) {\r\n\t\t\trut = rut.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\r\n\t\t\treturn rut + h + dv;\r\n\t\t} else {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t};\r\n\r\n\tconst telefonoempleadorisInvalid = (telefono) => {\r\n\t\tif (telefono === undefined) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === \"\") {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === \"0\") {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono.length < 9) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t};\r\n\r\n\tconst telefonoIsInvalid = (telefono) => {\r\n\t\tif (telefono === undefined) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === \"\") {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono === \"0\") {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (telefono.length < 8) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t};\r\n\r\n\tconst onChangeAfiliado = async (Id) => {\r\n\t\tawait fetch(`${configuration.API_URL}/api/tipo/afiliado/${Id}`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tsetEstadoEmpleador(Id);\r\n\t\t\t\tsetValidarExiteEmpleador(response.existeEmpleador);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\r\n\tif (validateConfirmData) {\r\n\t\treturn (\r\n\t\t\t<Redirect\r\n\t\t\t\tto={{\r\n\t\t\t\t\tpathname: \"/confirmartraspaso\",\r\n\t\t\t\t\tstate: { confirmData: confirmData, jsonBack: jsonBack },\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<IdleTimerContainer isLoggedIn={true} />;\r\n\t\t\t<CabeceraPasos paso=\"2\" />\r\n\t\t\t<div className=\"container_fondos\">\r\n\t\t\t\t<Form onSubmit={handleSubmit}>\r\n\t\t\t\t\t<DatosPersonalesA\r\n\t\t\t\t\t\tdatos={props.location.state.json.response.datosPersonales}\r\n\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t<div className=\"media_grey\" ref={ContactSection}>\r\n\t\t\t\t\t\t<h5 className=\"mt-37_\">\r\n\t\t\t\t\t\t\t<strong>Datos de contacto</strong>\r\n\t\t\t\t\t\t</h5>\r\n\t\t\t\t\t\t<Form.Label>Email</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"Email\"\r\n\t\t\t\t\t\t\tvalue={datos.Email}\r\n\t\t\t\t\t\t\tisInvalid={\r\n\t\t\t\t\t\t\t\tdatos.Email === \"\" ||\r\n\t\t\t\t\t\t\t\t!validator.isEmail(datos.Email || \"\") ||\r\n\t\t\t\t\t\t\t\tdatos.Email === null ||\r\n\t\t\t\t\t\t\t\tdatos.Email === 0\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\tlet tempDatos = { ...datos };\r\n\t\t\t\t\t\t\t\ttempDatos.Email = e.target.value;\r\n\t\t\t\t\t\t\t\tvalidFormContacto(tempDatos);\r\n\t\t\t\t\t\t\t\tsetDatos(tempDatos);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\tplaceholder=\"Email\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t<Form.Label>Teléfono</Form.Label>\r\n\t\t\t\t\t\t<InputGroup>\r\n\t\t\t\t\t\t\t<InputGroup.Prepend>\r\n\t\t\t\t\t\t\t\t<InputGroup.Text className=\"preappend-form\">\r\n\t\t\t\t\t\t\t\t\t<strong>+569</strong>\r\n\t\t\t\t\t\t\t\t</InputGroup.Text>\r\n\t\t\t\t\t\t\t</InputGroup.Prepend>\r\n\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\tname=\"Telefono\"\r\n\t\t\t\t\t\t\t\tmaxLength=\"8\"\r\n\t\t\t\t\t\t\t\t//isInvalid={telefonoIsInvalid(datos.Telefono)}\r\n\t\t\t\t\t\t\t\tonBlur={(e) => {\r\n\t\t\t\t\t\t\t\t\tif (e.target.value.length < 8) {\r\n\t\t\t\t\t\t\t\t\t\tlet tempDatos = { ...datos };\r\n\t\t\t\t\t\t\t\t\t\ttempDatos.Telefono = \"\";\r\n\t\t\t\t\t\t\t\t\t\tvalidFormContacto(tempDatos);\r\n\t\t\t\t\t\t\t\t\t\tsetDatos(tempDatos);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\tconst re = /^[0-9\\b]+$/;\r\n\t\t\t\t\t\t\t\t\tif (e.target.value === \"\" || re.test(e.target.value)) {\r\n\t\t\t\t\t\t\t\t\t\tlet tempDatos = { ...datos };\r\n\t\t\t\t\t\t\t\t\t\ttempDatos.Telefono = e.target.value;\r\n\t\t\t\t\t\t\t\t\t\tvalidFormContacto(tempDatos);\r\n\t\t\t\t\t\t\t\t\t\tsetDatos(tempDatos);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\tvalue={datos.Telefono}\r\n\t\t\t\t\t\t\t\ttype=\"tel\"\r\n\t\t\t\t\t\t\t\tplaceholder=\"Teléfono\"\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</InputGroup>\r\n\t\t\t\t\t\t{errores.errorPhone ? (\r\n\t\t\t\t\t\t\t<Alert variant=\"danger\">{errores.mensajeErrorPhone}</Alert>\r\n\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t<Form.Label>Dirección particular</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"Direccion\"\r\n\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\tconst re = /^[-'A-Za-zÀ-ÖØ-öø-ÿ0-9\\s]+$/g;\r\n\t\t\t\t\t\t\t\tif (e.target.value === \"\" || re.test(e.target.value)) {\r\n\t\t\t\t\t\t\t\t\tlet tempDatos = { ...datos };\r\n\t\t\t\t\t\t\t\t\ttempDatos.Direccion = e.target.value;\r\n\t\t\t\t\t\t\t\t\tvalidFormContacto(tempDatos);\r\n\t\t\t\t\t\t\t\t\tsetDatos(tempDatos);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tvalue={datos.Direccion}\r\n\t\t\t\t\t\t\tisInvalid={\r\n\t\t\t\t\t\t\t\tdatos.Direccion === \"\" ||\r\n\t\t\t\t\t\t\t\tdatos.Direccion === null ||\r\n\t\t\t\t\t\t\t\tdatos.Direccion === 0\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\tplaceholder=\"Dirección particular\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{errores.errorDireccion ? (\r\n\t\t\t\t\t\t\t<Alert variant=\"danger\">{errores.mensajeErrorDireccion}</Alert>\r\n\t\t\t\t\t\t) : null}\r\n\r\n\t\t\t\t\t\t<Form.Label>Región</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"regionpersona\"\r\n\t\t\t\t\t\t\tisInvalid={datos.region === 0}\r\n\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t\tvalue={datos.region}\r\n\t\t\t\t\t\t\tonChange={(e) => comunaRegionAfiliado(e.target.value)}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<option key=\"0\" value=\"0\">\r\n\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t-- Seleccione una Región --{\" \"}\r\n\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t{opciones.map((opcion) => (\r\n\t\t\t\t\t\t\t\t<option key={opcion.Id} value={opcion.Id}>\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t{opcion.Nombre}\r\n\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</Form.Control>\r\n\r\n\t\t\t\t\t\t<Form.Label>Comuna</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"comunapersona\"\r\n\t\t\t\t\t\t\tdisabled={datos.region === 0}\r\n\t\t\t\t\t\t\tisInvalid={datos.comuna === 0}\r\n\t\t\t\t\t\t\tvalue={datos.comuna}\r\n\t\t\t\t\t\t\tonChange={(e) => comunasAfiliado(e)}\r\n\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<option key=\"0\" value=\"0\">\r\n\t\t\t\t\t\t\t\t--Seleccione una Comuna --\r\n\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t{opcionesComunasAfiliado.map((opcion) => (\r\n\t\t\t\t\t\t\t\t<option key={opcion.Id} value={opcion.CutComuna}>\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t{opcion.Nombre}\r\n\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</Form.Control>\r\n\t\t\t\t\t\t{errorEmpleador.errorComuna ? (\r\n\t\t\t\t\t\t\t<Alert variant=\"danger\">\r\n\t\t\t\t\t\t\t\t{errorEmpleador.mensajeErrorComuna}\r\n\t\t\t\t\t\t\t</Alert>\r\n\t\t\t\t\t\t) : null}\r\n\r\n\t\t\t\t\t\t<Form.Label>Nacionalidad</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"Nacionalidad\"\r\n\t\t\t\t\t\t\tisInvalid={datos.Nacionalidad === 0}\r\n\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t\tvalue={datos.Nacionalidad}\r\n\t\t\t\t\t\t\tonChange={(e) => nacionalidadSelect(e)}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<option key=\"0\" value=\"0\">\r\n\t\t\t\t\t\t\t\t--Seleccione una Nacionalidad --\r\n\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t{nacionalidades.map((opcion) => (\r\n\t\t\t\t\t\t\t\t<option key={opcion.Id} value={opcion.Id}>\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t{FormatNacionalidad(opcion.Nombre).replace(/\\./g, \"\")}\r\n\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</Form.Control>\r\n\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t<div className=\"text-muted mx-auto\">\r\n\t\t\t\t\t\t\t<div className=\"form-check\">\r\n\t\t\t\t\t\t\t\t<input\r\n\t\t\t\t\t\t\t\t\tclassName=\"form-check-input\"\r\n\t\t\t\t\t\t\t\t\ttype=\"checkbox\"\r\n\t\t\t\t\t\t\t\t\tvalue={datos.Cartola}\r\n\t\t\t\t\t\t\t\t\tid=\"defaultCheck1\"\r\n\t\t\t\t\t\t\t\t\tdefaultChecked={true}\r\n\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\tlet tempDatos = { ...datos };\r\n\t\t\t\t\t\t\t\t\t\ttempDatos.Cartola = e.target.checked;\r\n\t\t\t\t\t\t\t\t\t\tsetDatos(tempDatos);\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t<label\r\n\t\t\t\t\t\t\t\t\tclassName=\"form-check-label\"\r\n\t\t\t\t\t\t\t\t\thtmlFor=\"defaultCheck1\"\r\n\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\tfontFamily: \"Poppins, sans-serif\",\r\n\t\t\t\t\t\t\t\t\t\tfontWeight: \"300px\",\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\tDeseo recibir mi cartola cuatrimestral por correo\r\n\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t<small>\r\n\t\t\t\t\t\t\t\t\tSi desmarcas esta opción, te enviaremos tu cartola por carta a\r\n\t\t\t\t\t\t\t\t\ttu dirección.\r\n\t\t\t\t\t\t\t\t</small>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t<div className=\"media_grey\">\r\n\t\t\t\t\t\t<h5 className=\"mt-37_\">\r\n\t\t\t\t\t\t\t<strong>Antecedentes laborales</strong>\r\n\t\t\t\t\t\t</h5>\r\n\r\n\t\t\t\t\t\t<Form.Label>Tipo de Afiliado</Form.Label>\r\n\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\tname=\"tipoAfiliado\"\r\n\t\t\t\t\t\t\tisInvalid={estadoEmpleador === 0}\r\n\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t\tvalue={estadoEmpleador}\r\n\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\tvalidFormContacto(datos);\r\n\t\t\t\t\t\t\t\tonChangeAfiliado(e.target.value);\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<option key=\"0\" value=\"0\">\r\n\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t-- Seleccione un Tipo de Afiliado --{\" \"}\r\n\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t{tipoEmpleado.map((item) => (\r\n\t\t\t\t\t\t\t\t<option key={item.id} value={item.previred}>\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t{item.detalle}\r\n\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t</Form.Control>\r\n\r\n\t\t\t\t\t\t<Col>\r\n\t\t\t\t\t\t\t{!validarExisteEmpleador ? (\r\n\t\t\t\t\t\t\t\ttrue\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t{empleadores.map((empleador, index) => (\r\n\t\t\t\t\t\t\t\t\t\t<>\r\n\t\t\t\t\t\t\t\t\t\t\t<div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<hr />\r\n\t\t\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: \"flex\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjustifyContent: \"space-between\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h5 className=\"mt-37\"> Datos empleador</h5>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{index >= 1 ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder: \"none\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextAlign: \"center\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: \"#aaa\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborderRadius: \"50%\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth: \"30px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: \"30px\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={() => handleRemoveFields(empleador.id)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"button\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Razón social</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"razonSocialempleador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].razonSocialempleador !==\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tundefined\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ValidateFieldsUtil.Upper(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].razonSocialempleador\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tisInvalid={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].razonSocialempleador === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].razonSocialempleador === 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst re = /^[-'A-Za-zÀ-ÖØ-öø-ÿ0-9\\s]+$/g;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target.value === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tre.test(e.target.value)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Razon social\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Rut</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname={\"rutempleador\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={empleadores[index].rutempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tisInvalid={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].rutempleador === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].rutempleador === 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? true\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonBlur={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target.value = formatValidateRut(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].rutempleador\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Rut\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Email a notificar</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"emailNotifiacionempleador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={empleadores[index].emailNotifiacionempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tisInvalid={isInvalidEmail(index)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Email a notificar\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t{errorEmpleador.errorComuna ? (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Alert variant=\"danger\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{errorEmpleador.mensajeErrorEmail}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</Alert>\r\n\t\t\t\t\t\t\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Teléfono</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<InputGroup>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<InputGroup.Prepend>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<InputGroup.Text className=\"preappend-form\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>+569</strong>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</InputGroup.Text>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</InputGroup.Prepend>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttelefonoempleadorisInvalid(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].telefonoempleador\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"opcionales\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"telefonoempleador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonBlur={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.target.value.length < 8) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target.value = \"\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => handleChangeInput(index, e)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={empleadores[index].telefonoempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Teléfono\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaxLength=\"8\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</InputGroup>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Dirección</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tid={`direccionempleador${index}`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"direccionempleador\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tref={direccionempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//isInvalid={isInvalidDireccion(index)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst re = /^[-'A-Za-zÀ-ÖØ-öø-ÿ0-9\\s]+$/g;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.target.value === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tre.test(e.target.value)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thandleChangeInput(index, e);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].direccionempleador === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].direccionempleador === 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"opcionales\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={empleadores[index].direccionempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=\"Dirección\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Región</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname={`regionempleador`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].regionempleador === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].regionempleador === 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"opcionales\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => comunaRegion(index, e)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option key=\"0\" value=\"\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-- Seleccione una Región --{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{opciones.map((opcion) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option key={opcion.Id} value={opcion.Id}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{opcion.Nombre}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</Form.Control>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Label>Comuna</Form.Label>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<Form.Control\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tname={`comunaempleador`}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={empleadores[index].comunaempleador}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdisabled={empleadores[index].regionempleador === \"\"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].comunaempleador === \"\" ||\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\templeadores[index].comunaempleador === 0\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? \"opcionales\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: \"\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tonChange={(e) => handleChangeInput(index, e)}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tas=\"select\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option key=\"0\" value=\"\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t-- Seleccionar Comuna --{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{getAccesoComunaArr(index).map((opcion) => (\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option key={opcion.Id} value={opcion.CutComuna}>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{opcion.Nombre}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t\t\t\t\t</Form.Control>\r\n\t\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t</>\r\n\t\t\t\t\t\t\t\t\t))}\r\n\t\t\t\t\t\t\t\t</>\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t</Col>\r\n\t\t\t\t\t\t{estadoEmpleador === 1 && empleadores.length < 4 ? (\r\n\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\tclassName=\"link\"\r\n\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\tvariant=\"light\"\r\n\t\t\t\t\t\t\t\tonClick={nuevoEmpleador}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t+ Agregar empleador\r\n\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t) : null}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div className=\"btn_card_\">\r\n\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\tid=\"B-TW-0008\"\r\n\t\t\t\t\t\t\tvariant=\"primary\"\r\n\t\t\t\t\t\t\tdisabled={validFormFinal()}\r\n\t\t\t\t\t\t\ttype=\"submit\"\r\n\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\tclassName=\"cambiarme\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tContinuar\r\n\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div className=\"btn_card\">\r\n\t\t\t\t\t\t<Link\r\n\t\t\t\t\t\t\tto={{\r\n\t\t\t\t\t\t\t\tpathname: \"/cuentasyfondo\",\r\n\t\t\t\t\t\t\t\tstate: {\r\n\t\t\t\t\t\t\t\t\tjson: JSON.parse(localStorage.getItem(\"intis\")).location.state\r\n\t\t\t\t\t\t\t\t\t\t.json,\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\tclassName=\"link\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tVolver\r\n\t\t\t\t\t\t</Link>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</Form>\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\r\n};\r\n\r\nexport default DatosPersonales;\r\n","import React, { Component } from \"react\";\r\nimport { withRouter } from \"react-router-dom\";\r\n\r\nclass ScrollToTop extends Component {\r\n\tcomponentDidUpdate(prevProps) {\r\n\t\tif (this.props.location !== prevProps.location) {\r\n\t\t\twindow.scrollTo(0, 0);\r\n\t\t}\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn <React.Fragment />\r\n\t}\r\n}\r\n\r\nexport default withRouter(ScrollToTop)","import React, { useContext, useState } from \"react\";\r\nimport { Button } from \"react-bootstrap\";\r\nimport { Redirect } from \"react-router-dom\";\r\nimport Context from \"../../../../../store/context\";\r\nimport Crypto from \"../../../../util/Crypto\";\r\n\r\nexport default function ParteAFPModeloModal(prop) {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [redirect, setRedirect] = useState(false);\r\n\tconst [disabled, setdisabled] = useState(false);\r\n\r\n\tconst delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\r\n\r\n\tconst agregarOtraCuenta = async () => {\r\n\t\tawait OnLoading(true);\r\n\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\t\tdata.run = prop.location.state.rut;\r\n\t\tdata.email = \"\";\r\n\t\tdata.name = \"\";\r\n\t\tdata.phone = \"\";\r\n\r\n\t\tCrypto.Encrypt(\"data\", data);\r\n\t\tawait delay(1000);\r\n\r\n\t\tsetRedirect(true);\r\n\r\n\t\tawait OnLoading(false);\r\n\t};\r\n\r\n\tconst OnLoading = async (load) => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: load } });\r\n\t\tsetdisabled(load);\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{redirect ? (\r\n\t\t\t\t<Redirect\r\n\t\t\t\t\tto={{\r\n\t\t\t\t\t\tpathname: \"/autenticacion\",\r\n\t\t\t\t\t}}\r\n\t\t\t\t/>\r\n\t\t\t) : null}\r\n\t\t\t<div className=\"container text-center\">\r\n\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t<div className=\"contenedor_img22\">\r\n\t\t\t\t\t\t<strong className=\"custom\">¡Tú ya eres parte de AFP Modelo!</strong>\r\n\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\tclassName=\"nina_error\"\r\n\t\t\t\t\t\t\tsrc=\"./imgs/incorrecta.svg\"\r\n\t\t\t\t\t\t\talt=\"nina modelo\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t<div className=\"card-body\">\r\n\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\tvariant=\"primary\"\r\n\t\t\t\t\t\t\tid=\"B-TW-0003\"\r\n\t\t\t\t\t\t\tonClick={() =>\r\n\t\t\t\t\t\t\t\twindow.location.replace(\r\n\t\t\t\t\t\t\t\t\t\"https://www.afpmodelo.cl/AFP/Acceso-mi-cuenta/Acceso-a-mi-Cuenta.aspx\"\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t¿Quieres ir a tu sitio privado?\r\n\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t<div className=\"col-12 d-flex justify-content-center\">o</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"row\">\r\n\t\t\t\t\t<div className=\"btn_btn_btn\">\r\n\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\tvariant=\"outline-primary\"\r\n\t\t\t\t\t\t\tid=\"B-TW-0004\"\r\n\t\t\t\t\t\t\tonClick={agregarOtraCuenta}\r\n\t\t\t\t\t\t\tblock\r\n\t\t\t\t\t\t\tdisabled={disabled}\r\n\t\t\t\t\t\t\tclassName=\"btn_22 style={{paddingLeft:'44px', paddingRight:'44px', height:49px'}}\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t¿Quieres agregar una cuenta?\r\n\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\r\n}\r\n","import { Card, Button } from 'react-bootstrap';\r\nimport { Link } from \"react-router-dom\";\r\nrequire('../autenticacionui/autenticacionui.css')\r\n\r\nexport default function NoHayCuentas() {\r\n\r\n return (\r\n <div className=\"container\">\r\n <div className=\"center-box\">\r\n <div className=\"row\">\r\n <div className=\"col-12 d-flex justify-content-center\">\r\n <img className=\"img_cono\" src=\"./imgs/icono_error404.svg\" alt=\"o_no\" />\r\n </div>\r\n </div>\r\n <div className=\"row\">\r\n <div className=\"col-12 d-flex justify-content-center\">\r\n <Card className=\"box_mensaje mb-3 rounded-bottom border-bottom bg-white\">\r\n\r\n <Card.Body className=\"bg-white pl-5 pr-5 pt-1 pb-2\">\r\n <h3 className=\"d-flex justify-content-center mt-3\">¡Aviso!</h3>\r\n <Card.Text>No presentas <strong>cuentas </strong> para traspaso</Card.Text>\r\n <Link to=\"/\"><Button id=\"B-MOD-0003\" variant=\"primary\" className=\"mt-5\">Intentar otra vez</Button></Link>\r\n </Card.Body>\r\n </Card>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}","export default __webpack_public_path__ + \"static/media/frame.3a71dde2.svg\";","export default __webpack_public_path__ + \"static/media/corazon.d8521106.svg\";","import React, { useEffect } from \"react\";\r\nimport { Button, Card } from \"react-bootstrap\";\r\nimport configuration from \"../../../Config\";\r\nimport Crypto from \"../../util/Crypto\";\r\nimport like from \"../../util/img/binvenida/frame.svg\";\r\nimport corazon from \"../../util/img/binvenida/corazon.svg\";\r\n\r\nconst Bienvenida = (props) => {\r\n\tuseEffect(async () => {\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/log/final/${data.run}/${data.autenticacion}`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t}).catch((error) => {\r\n\t\t\tconsole.error(error);\r\n\t\t});\r\n\r\n\t}, []);\r\n\r\n\tconst onclickComprobante = (e) => {\r\n\t\te.preventDefault();\r\n\r\n\t\tconst b64toBlob = (b64Data, contentType = \"\", sliceSize = 512) => {\r\n\t\t\tconst byteCharacters = atob(b64Data);\r\n\t\t\tconst byteArrays = [];\r\n\r\n\t\t\tfor (\r\n\t\t\t\tlet offset = 0;\r\n\t\t\t\toffset < byteCharacters.length;\r\n\t\t\t\toffset += sliceSize\r\n\t\t\t) {\r\n\t\t\t\tconst slice = byteCharacters.slice(offset, offset + sliceSize);\r\n\r\n\t\t\t\tconst byteNumbers = new Array(slice.length);\r\n\t\t\t\tfor (let i = 0; i < slice.length; i++) {\r\n\t\t\t\t\tbyteNumbers[i] = slice.charCodeAt(i);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst byteArray = new Uint8Array(byteNumbers);\r\n\t\t\t\tbyteArrays.push(byteArray);\r\n\t\t\t}\r\n\r\n\t\t\tconst blob = new Blob(byteArrays, { type: contentType });\r\n\t\t\treturn blob;\r\n\t\t};\r\n\r\n\t\tconst blob = b64toBlob(\r\n\t\t\tprops.location.state.data.response.data,\r\n\t\t\t\"data:application/pdf\"\r\n\t\t);\r\n\t\tconst blobUrl = URL.createObjectURL(blob);\r\n\t\tlet a = document.createElement(\"a\");\r\n\t\ta.style = \"display: none\";\r\n\t\tdocument.body.appendChild(a);\r\n\t\ta.href = blobUrl;\r\n\t\ta.download = \"comprobante.pdf\";\r\n\t\ta.click();\r\n\t\twindow.URL.revokeObjectURL(blobUrl);\r\n\t};\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<div className=\"bg_bg\">\r\n\t\t\t\t<div className=\"img_final\">\r\n\t\t\t\t\t<img src={like} alt=\"bienvenida\" />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"container_final\" style={{ marginTop: \"15px\" }}>\r\n\t\t\t\t\t<Card className=\"media_white\">\r\n\t\t\t\t\t\t<h2>¡Bienvenid@!</h2>\r\n\t\t\t\t\t\t<div className=\"corazon_final\">\r\n\t\t\t\t\t\t\t<img src={corazon} alt=\"corazon\" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<p className=\"mt-2\">\r\n\t\t\t\t\t\t\tTu cambio a\r\n\t\t\t\t\t\t\t<font>\r\n\t\t\t\t\t\t\t\t<strong> AFP Modelo</strong>\r\n\t\t\t\t\t\t\t</font>{\" \"}\r\n\t\t\t\t\t\t\testá en curso.\r\n\t\t\t\t\t\t\t<br /> Te enviamos el detalle de esta solicitud a tu correo, con\r\n\t\t\t\t\t\t\tinformación importante.\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t<p className=\"mt-2\">\r\n\t\t\t\t\t\t\t<font style={{ color: \"#0B7AC7\" }}>\r\n\t\t\t\t\t\t\t\t<strong>¿Cuánto demora el cambio?</strong>\r\n\t\t\t\t\t\t\t</font>\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t<p className=\"mt-2\">\r\n\t\t\t\t\t\t\tEl cambio de AFP no es inmediato.\r\n\t\t\t\t\t\t\t<font style={{ color: \"#0B7AC7\" }}>\r\n\t\t\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\t\t\t{\" \"}\r\n\t\t\t\t\t\t\t\t\tSe completará la segunda semana del mes siguiente.\r\n\t\t\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t\t\t</font>{\" \"}\r\n\t\t\t\t\t\t\tEstos plazos están normados por la Superintendencia de Pensiones.\r\n\t\t\t\t\t\t\tDespués de esta fecha, podrás solicitar tu Clave Web para que\r\n\t\t\t\t\t\t\tutilices por completo las plataformas digitales de\r\n\t\t\t\t\t\t\t<font>\r\n\t\t\t\t\t\t\t\t<strong> AFP Modelo</strong>\r\n\t\t\t\t\t\t\t</font>\r\n\t\t\t\t\t\t\t.\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t<p>\r\n\t\t\t\t\t\t\t<font style={{ color: \"#0B7AC7\" }}>\r\n\t\t\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\t\t\tRecuerda que si necesitas tu certificado de cotizaciones,\r\n\t\t\t\t\t\t\t\t\tdeberás solicitarlo en tu antigua AFP.\r\n\t\t\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t\t\t</font>\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t\t<div className=\"big_buttom mt-2\">\r\n\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\tid=\"B-TW-0011\"\r\n\t\t\t\t\t\t\t\tclassName=\"btn-primary\"\r\n\t\t\t\t\t\t\t\tonClick={onclickComprobante}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tDescargar el Comprobante\r\n\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t\t<p className=\"mt-2\">Si tienes dudas, contáctanos</p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div className=\"redes_ mt-2 mb-2\">\r\n\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\thref=\"https://www.facebook.com/afpmodelo\"\r\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\r\n\t\t\t\t\t\t\t\trel=\"noreferrer\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<img src={`./imgs/fb_.svg`} alt=\"facebook\" />\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\thref=\"https://twitter.com/AFPModelo\"\r\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\r\n\t\t\t\t\t\t\t\trel=\"noreferrer\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<img src={`./imgs/tw_.svg`} alt=\"twitter\" />\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t\t<a\r\n\t\t\t\t\t\t\t\thref=\"https://www.instagram.com/afpmodelocl\"\r\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\r\n\t\t\t\t\t\t\t\trel=\"noreferrer\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<img src={`./imgs/ig_.svg`} alt=\"instagram\" />\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</Card>\r\n\t\t\t\t\t<div className=\"space__\"></div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</>\r\n\t);\r\n};\r\n\r\nexport default Bienvenida;\r\n","import \"../confirmarTraspaso.css\";\r\nimport React, { Component } from \"react\";\r\nimport { Card, Accordion } from \"react-bootstrap\";\r\n\r\nclass AccordionConfirmar extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = { accordions: this.props.data, selected: 0 };\r\n\t}\r\n\r\n\tcomponentDidMount() {}\r\n\r\n\thandleClick = (currentAccordion) => {\r\n\t\tconst newAccordions = this.state.accordions;\r\n\t\tlet selIndex = currentAccordion.index;\r\n\t\tnewAccordions.forEach((accordion) => {\r\n\t\t\tconst currentPanel = currentAccordion.index === accordion.index;\r\n\t\t\tconst prevState = accordion.state;\r\n\t\t\tlet newState = currentPanel ? \"active\" : \"inactive\";\r\n\r\n\t\t\tif (currentPanel && prevState === newState) {\r\n\t\t\t\tnewState = newState === \"active\" ? \"inactive\" : \"active\";\r\n\t\t\t\tselIndex = -1;\r\n\t\t\t}\r\n\r\n\t\t\taccordion.state = newState;\r\n\t\t\tthis.state.selected =\r\n\t\t\t\tcurrentPanel && accordion.state === \"inactive\" ? -1 : accordion.index;\r\n\t\t});\r\n\t\tthis.setState({ accordions: newAccordions, selected: selIndex });\r\n\t};\r\n\r\n\tsetPanelHeight(selector, close) {\r\n\t\tconst panel = document.querySelector(`${selector}`);\r\n\t\tpanel.style.maxHeight = close === true ? null : panel.scrollHeight + \"px\";\r\n\t}\r\n\r\n\ttoggleIsOn() {\r\n\t\tconst on = !this.state.isOn;\r\n\t\tthis.setState({ isOn: on });\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst { accordions } = this.state;\r\n\t\treturn (\r\n\t\t\t<React.Fragment>\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<Accordion defaultActiveKey=\"0\" className=\"confacc\">\r\n\t\t\t\t\t\t{accordions.map((accordion, index) => {\r\n\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t<Card className=\"collapse_iden\" key={accordion.index}>\r\n\t\t\t\t\t\t\t\t\t<Accordion.Toggle\r\n\t\t\t\t\t\t\t\t\t\tclassName={`accordion ${accordion.state} d-flex justify-content-between confacc pointer`}\r\n\t\t\t\t\t\t\t\t\t\tstyle={{ backgroundColor: \"#ffffff\" }}\r\n\t\t\t\t\t\t\t\t\t\tonClick={() => this.handleClick(accordion)}\r\n\t\t\t\t\t\t\t\t\t\tas={Card.Header}\r\n\t\t\t\t\t\t\t\t\t\teventKey={accordion.index.toString()}\r\n\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\t\t\t\t\tclassName={`accordion ${accordion.state}`}\r\n\t\t\t\t\t\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\t\t\t\t\t\tcolor: \"#1A171C\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tfontWeight: \"bold\",\r\n\t\t\t\t\t\t\t\t\t\t\t\tfontSize: \"18px\",\r\n\t\t\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\t{accordion.name}\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t\t<img\r\n\t\t\t\t\t\t\t\t\t\t\tsrc={\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.state.selected !== accordion.index\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t? \"./imgs/chevron-down-solid.svg\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t: \"./imgs/chevron-up-solid.svg\"\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\talt=\"nina modelo\"\r\n\t\t\t\t\t\t\t\t\t\t\twidth=\"20\"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</Accordion.Toggle>\r\n\t\t\t\t\t\t\t\t\t<Accordion.Collapse eventKey={accordion.index.toString()}>\r\n\t\t\t\t\t\t\t\t\t\t<Card.Body className={`panel panel-${accordion.index}`}>\r\n\t\t\t\t\t\t\t\t\t\t\t{accordion.content()}\r\n\t\t\t\t\t\t\t\t\t\t</Card.Body>\r\n\t\t\t\t\t\t\t\t\t</Accordion.Collapse>\r\n\t\t\t\t\t\t\t\t</Card>\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t})}\r\n\t\t\t\t\t</Accordion>\r\n\t\t\t\t</div>\r\n\t\t\t</React.Fragment>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default AccordionConfirmar;\r\n","import React, { useState, useEffect } from 'react';\r\n\r\nexport default function FichaConfirmaEmpleador({ e }) {\r\n const [empleador] = useState(e);\r\n\r\n const formatDecimal = (val) => val.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n const formatRut = (rut) => {\r\n const rutParts = rut.split(\"-\");\r\n return `${formatDecimal(rutParts[0])}-${rutParts[1]}`;\r\n };\r\n\r\n return (\r\n <>\r\n <div className=\"\" style={{ position: 'relative', float: 'left', paddingLeft: '15px', marginTop: '0px', width: '100%', }}>\r\n <div className=\"line__\"></div>\r\n <p className=\"pp_\">Razón Social</p>\r\n <p className=\"pr_\">{empleador.razonSocialempleador}</p>\r\n <p className=\"pr_\">{formatRut(empleador.rutempleador)}</p>\r\n <p className=\"pp_\">Comuna</p>\r\n <p className=\"pr_\">{empleador.nombreComuna}</p>\r\n <p className=\"pp_\">Región</p>\r\n <p className=\"pr_\">{empleador.nombreRegion}</p>\r\n <p className=\"pp_\">Dirección</p>\r\n <p className=\"pr_\">{empleador.direccionempleador}</p>\r\n <p className=\"pp_\">Email</p>\r\n <p className=\"pr_\">{empleador.emailNotifiacionempleador}</p>\r\n <p className=\"pp_\">Teléfono</p>\r\n <p className=\"pr_\">{empleador.telefonoempleador}</p>\r\n </div>\r\n </>\r\n );\r\n}\r\n","import React, { useState, useEffect } from \"react\";\r\nimport FichaConfirmaEmpleador from \"./FichaConfirmaEmpleador\";\r\nimport configuration from \"../../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\n\r\nconst AntecedentesLaborales = ({ datos }) => {\r\n const tipoEmpleadoIndx = datos.TipoEmpleado - 1;\r\n const tipoEmpleadoArr = [\"Dependiente antiguo\", \"Dependiente nuevo\", \"Independiente\", \"Pensionado cotizante\", \"Pensionado no cotizante\", \"Afiliado Voluntario\", \"Cesante\"];\r\n const [validarExisteEmpleador, setValidarExiteEmpleador] = useState(false);\r\n const [datosEmpleado, setDatosEmpleado] = useState([]);\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!loaded) {\r\n setDatosEmpleado(datos);\r\n setLoaded(true);\r\n onChangeAfiliado(datos.TipoEmpleado);\r\n }\r\n }, []);\r\n\r\n const onChangeAfiliado = async (Id) => {\r\n await fetch(`${configuration.API_URL}/api/tipo/afiliado/${Id}`, {\r\n method: \"GET\",\r\n headers: configuration.JSON_HEADER\r\n }).then(response => response.json())\r\n .then(response => {\r\n setValidarExiteEmpleador(response.existeEmpleador);\r\n }).catch(error => {\r\n console.error(error);\r\n Swal.fire({\r\n icon: \"error\",\r\n text: error.message,\r\n confirmButtonText: \"Ok\",\r\n allowOutsideClick: false\r\n });\r\n });\r\n }\r\n if (loaded) {\r\n return (\r\n <>\r\n <div className=\"container\">\r\n <div className=\"row\">\r\n <div className=\"col-12\">\r\n <strong><p className=\"pp_\">Tipo de Empleado</p></strong>\r\n <strong><p className=\"pr_\">{tipoEmpleadoArr[tipoEmpleadoIndx]}</p></strong>\r\n </div>\r\n </div>\r\n </div>\r\n {validarExisteEmpleador ?\r\n datosEmpleado.Empleadores.map((e, i) => <FichaConfirmaEmpleador key={i} e={e} />)\r\n : null\r\n }\r\n </>\r\n );\r\n } else\r\n return null;\r\n}\r\n\r\nexport default AntecedentesLaborales;\r\n","export default function FondoConfirmar({ fondo }) {\r\n return <img src={`./imgs/${fondo.nombre}-color.png`} width=\"39\" height=\"39\" alt=\"\" />\r\n};","import FondoConfirmar from \"./FondoConfirmar\";\r\n\r\nexport default function FondosConfirmar({ fondos }) {\r\n return fondos.map((f, i) => <FondoConfirmar key={i} fondo={f} />);\r\n};","import React from \"react\";\r\nimport FondosConfirmar from \"./FondosConfirmar\";\r\n\r\nconst Cuenta = ({ cuenta }) => {\r\n\tconst formatDecimal = (val) =>\r\n\t\tval.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n\r\n\treturn (\r\n\t\t<div className=\"green_lines2\">\r\n\t\t\t<div className=\"cuentas_final\">\r\n\t\t\t\t<p className=\"cuenta_fn\">{cuenta.nombreTipo}</p>\r\n\t\t\t\t<p className=\"destino_fn\">\r\n\t\t\t\t\tDestino:<strong>  AFP Modelo</strong>\r\n\t\t\t\t</p>\r\n\t\t\t\t<p style={{ fontSize: \"14px\" }}>\r\n\t\t\t\t\tOrigen: <strong>{cuenta.origen}</strong>\r\n\t\t\t\t</p>\r\n\t\t\t\t<div className=\"caja_confirmacion\">\r\n\t\t\t\t\t<p className=\"saldo_fn\">\r\n\t\t\t\t\t\tSaldo Total: $<strong>{formatDecimal(cuenta.saldo)}</strong>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div className=\"caja_confirmacion_2\">\r\n\t\t\t\t\t<div className=\"fondo_letra d-flex flex-row-reverse\">\r\n\t\t\t\t\t\t<FondosConfirmar fondos={cuenta.fondos} />\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t{cuenta.porcentajeTraspaso > 0 ? (\r\n\t\t\t\t\t<p style={{ fontSize: \"13px\" }}>\r\n\t\t\t\t\t\tTraspaso {cuenta.tipoTraspaso}:{\" \"}\r\n\t\t\t\t\t\t<strong>{cuenta.porcentajeTraspaso}</strong>%\r\n\t\t\t\t\t</p>\r\n\t\t\t\t) : null}\r\n\r\n\t\t\t\t{cuenta.suscribeMandato ? (\r\n\t\t\t\t\t<>\r\n\t\t\t\t\t\t<p className=\"monto_fn\">\r\n\t\t\t\t\t\t\tMonto de descuento mensual: ${formatDecimal(cuenta.saldoRegimen)}\r\n\t\t\t\t\t\t\t($)\r\n\t\t\t\t\t\t</p>\r\n\t\t\t\t\t</>\r\n\t\t\t\t) : null}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport default Cuenta;\r\n","import React, { useState, useEffect } from 'react';\r\nimport Cuenta from './Cuenta'\r\n\r\nconst Cuentas = ({ cuentas }) => {\r\n const [ctas, guardarCuentas] = useState([]);\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!loaded) {\r\n guardarCuentas(cuentas);\r\n setLoaded(true);\r\n }\r\n },\r\n []\r\n );\r\n\r\n if (loaded) {\r\n\r\n return (\r\n <div className=\"\">\r\n <div className=\"\" style={{ position: 'relative', float: 'left', width: '100%' }}>\r\n {ctas.map(cuenta => (<Cuenta key={cuenta.tipo} cuenta={cuenta} />))}\r\n </div>\r\n </div>\r\n );\r\n } else\r\n return null\r\n}\r\n\r\nexport default Cuentas;\r\n","import React, { useState, useEffect } from \"react\";\r\n\r\nconst DatosDeContacto = ({ datos }) => {\r\n const [contacto, guardarContacto] = useState('');\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!loaded) {\r\n guardarContacto(datos);\r\n setLoaded(true);\r\n }\r\n }, []);\r\n\r\n if (loaded) {\r\n return (\r\n <div className=\"container\">\r\n <div className=\"\" style={{ position: 'relative', float: 'left', padding: '0px', marginTop: '20px', width: '100%', }}>\r\n <p className=\"pp_\">Email </p>\r\n <p className=\"pr_\">{contacto.Email}</p>\r\n <p className=\"pp_\">Teléfono </p>\r\n <p className=\"pr_\">{contacto.Telefono}</p>\r\n <p className=\"pp_\"> Dirección Particular: </p>\r\n <p className=\"pr_\">{contacto.Direccion}</p>\r\n <p className=\"pp_\">Región</p>\r\n <p className=\"pr_\">{contacto.nombreRegion}</p>\r\n <p className=\"pp_\">Comuna </p>\r\n <p className=\"pr_\">{contacto.nombreComuna}</p>\r\n </div>\r\n </div>\r\n );\r\n } else\r\n return null;\r\n}\r\n\r\nexport default DatosDeContacto;\r\n","import React, { useState, useEffect } from 'react';\r\nimport ValidateFieldsUtil from '../../../util/validacion/ValidateFieldsUtil';\r\n\r\nconst DatosPersonales = ({ datos }) => {\r\n\r\n const [datosPersonales, setDatosPersonales] = useState([]);\r\n const [loaded, setLoaded] = useState(false);\r\n\r\n const formatDecimal = (val) => val.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \".\");\r\n const formatRut = (rut) => {\r\n const rutParts = rut.split(\"-\");\r\n return `${formatDecimal(rutParts[0])}-${rutParts[1]}`;\r\n };\r\n const formatFecha = (f) => `${f.substring(6, 8)}-${f.substring(4, 6)}-${f.substring(0, 4)}`;\r\n\r\n useEffect(() => {\r\n if (!loaded) {\r\n setDatosPersonales(datos);\r\n setLoaded(true);\r\n }\r\n }, []);\r\n\r\n const formatNacionalidad = (cadena) => {\r\n const primerCaracter = ValidateFieldsUtil.Upper(cadena.charAt(0));\r\n const restoDeLaCadena = cadena.substring(1, cadena.length);\r\n return primerCaracter.concat(restoDeLaCadena);\r\n }\r\n\r\n if (loaded) {\r\n return (\r\n <>\r\n <div className=\"\">\r\n <div className=\"\" style={{ position: 'relative', float: 'left', padding: '10px', marginTop: '10px', width: '100%', }}>\r\n <p className=\"pp_\">Nombres </p>\r\n <p className=\"pr_\"> {`${datosPersonales.Nombre} ${datosPersonales.apellidoPaterno} ${datosPersonales.apellidoMaterno}`} </p>\r\n <p className=\"pp_\">Rut </p>\r\n <p className=\"pr_\"> {formatRut(datosPersonales.Rut)} </p>\r\n <p className=\"pp_\">Fecha de nacimiento </p>\r\n <p className=\"pr_\"> {formatFecha(datosPersonales.FechaNacimiento)} </p>\r\n <p className=\"pp_\">Nacionalidad</p>\r\n <p className=\"pr_\"> {formatNacionalidad(datosPersonales.nombreNacionalidad).replace(/\\./g, \"\")} </p>\r\n </div>\r\n </div>\r\n </>\r\n );\r\n } else\r\n return null;\r\n}\r\n\r\nexport default DatosPersonales;","import React, { useState, useEffect } from 'react';\r\n\r\nconst Disclaimer = () => {\r\n const [disclaimers, setDisclaimers] = useState([]);\r\n\r\n return (\r\n <>\r\n <div className=\"media-body text-muted mx-auto\">\r\n Declaro haberme informado sobre la calidad de servicio de las AFP en la herramienta <a href=\"https://www.spensiones.cl/infoydec\" style={{ color: \"#6D6B6B\", textDecoration: \"underline\" }}>lnfórmate y Decide.</a>\r\n <br />\r\n <br />\r\n Declaro conocer la <a href=\"https://www.afpmodelo.cl/AFP/Cambiate-a-modelo/Tabla_Rentabilidad.aspx\" style={{ color: \"#6D6B6B\", textDecoration: \"underline\" }}>rentabilidad real y comisiones de los últimos 36 meses de todas la AFP.</a>\r\n </div>\r\n </>\r\n );\r\n}\r\n\r\nexport default Disclaimer;","import \"./confirmarTraspaso.css\";\r\nimport React, { useState, useEffect, useContext } from \"react\";\r\nimport AccordionConfirmar from \"./components/AccordionConfirmar\";\r\nimport AntecedentesLaborales from \"./components/AntecedentesLaborales\";\r\nimport Cuentas from \"./components/Cuentas\";\r\nimport DatosContacto from \"./components/DatosContacto\";\r\nimport DatosPersonales from \"./components/DatosPersonales\";\r\nimport CabeceraPasos from \"../compartido/CabeceraPasos\";\r\nimport Disclaimer from \"./components/Disclaimer\";\r\nimport { Link, Redirect } from \"react-router-dom\";\r\nimport { Button } from \"react-bootstrap\";\r\nimport RegistrarPaso from \"../../util/RegistrarPaso\";\r\nimport Context from \"../../../store/context\";\r\nimport configuration from \"../../../Config\";\r\nimport Swal from \"sweetalert2\";\r\nimport IdleTimerContainer from \"../../util/IdleTimer/Container\";\r\nimport Crypto from \"../../util/Crypto\";\r\n\r\nexport default function ConfirmarTraspaso(props) {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [pasoRegistrado, setPasoRegistrado] = useState(false);\r\n\tconst [confirmData] = useState(props.location.state.confirmData);\r\n\tconst [loaded, setLoaded] = useState(false);\r\n\tconst [welcomeRedirect, setWelcomeRedirect] = useState(false);\r\n\tconst [dataTraspaso, setDataTraspaso] = useState(null);\r\n\tconst [validarExisteEmpleador, setValidarExiteEmpleador] = useState(false);\r\n\r\n\tuseEffect(() => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\tif (!loaded) {\r\n\t\t\tsetLoaded(true);\r\n\r\n\t\t\tlet jsonData = { ...confirmData };\r\n\t\t\tlet datosPersonales = { ...jsonData.response.datosPersonales };\r\n\t\t\tonChangeAfiliado(datosPersonales.TipoEmpleado);\r\n\t\t}\r\n\t}, []);\r\n\r\n\tconst onChangeAfiliado = async (Id) => {\r\n\t\tawait fetch(`${configuration.API_URL}/api/tipo/afiliado/${Id}`, {\r\n\t\t\tmethod: \"GET\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tsetValidarExiteEmpleador(response.existeEmpleador);\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\tconst confirmarTraspasoFinal = async () => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: true } });\r\n\r\n\t\tvar data = Crypto.Decrypt(\"data\");\r\n\r\n\t\tlet jsonData = { ...confirmData };\r\n\t\tlet cuentasAnterior = jsonData.response.cuentasAnterior;\r\n\t\tlet cuentasEditadas = jsonData.response.cuentasEditadas;\r\n\t\tlet datosPersonales = { ...jsonData.response.datosPersonales };\r\n\t\tlet Empleadores = datosPersonales.Empleadores;\r\n\t\tlet empleadoresTmpArray = [];\r\n\r\n\t\tif (validarExisteEmpleador) {\r\n\t\t\tEmpleadores.forEach((empleador) => {\r\n\t\t\t\tlet empleadoresTmp = {\r\n\t\t\t\t\tcomuna: empleador.comunaempleador,\r\n\t\t\t\t\trut: empleador.rutempleador,\r\n\t\t\t\t\trazonSocial: empleador.razonSocialempleador,\r\n\t\t\t\t\temail: empleador.emailNotifiacionempleador,\r\n\t\t\t\t\ttelefono: empleador.telefonoempleador,\r\n\t\t\t\t\tdireccion: empleador.direccionempleador,\r\n\t\t\t\t};\r\n\t\t\t\templeadoresTmpArray.push(empleadoresTmp);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tlet datosPersona = {\r\n\t\t\trut: datosPersonales.Rut,\r\n\t\t\tnombre: datosPersonales.Nombre,\r\n\t\t\tapellidoPaterno: datosPersonales.apellidoPaterno,\r\n\t\t\tapellidoMaterno: datosPersonales.apellidoMaterno,\r\n\t\t\tfechaNacimiento: datosPersonales.FechaNacimiento,\r\n\t\t\tnacionalcuentaCorrelativa: parseInt(datosPersonales.Nacionalidad),\r\n\t\t\temail: datosPersonales.Email,\r\n\t\t\ttelefono: datosPersonales.Telefono,\r\n\t\t\tdireccion: datosPersonales.Direccion,\r\n\t\t\tcomuna: datosPersonales.comuna,\r\n\t\t\tcartola: true,\r\n\t\t\tsexo: datosPersonales.Sexo === \"M\" ? 1 : 2,\r\n\t\t\ttipoEmpleado: parseInt(datosPersonales.TipoEmpleado),\r\n\t\t\tprospecto: datosPersonales.cuentaCorrelativoProspecto,\r\n\t\t\temps: empleadoresTmpArray,\r\n\t\t\tregion: parseInt(datosPersonales.region),\r\n\t\t\tautenticacion: data.autenticacion\r\n\t\t};\r\n\r\n\t\tlet raw = {\r\n\t\t\tsolicitud: jsonData.response.solicitud,\r\n\t\t\tticketId: jsonData.response.ticketId,\r\n\t\t\tauthToken: jsonData.response.token,\r\n\t\t\tcuentasAnterior: cuentasAnterior,\r\n\t\t\tcuentasEditadas: cuentasEditadas,\r\n\t\t\tdatosPersona: datosPersona,\r\n\t\t};\r\n\r\n\t\tawait fetch(`${configuration.API_URL}/api/Notificar`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify(raw),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then((response) => {\r\n\t\t\t\tif (response.code === \"0\") {\r\n\t\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t\t\tif (!pasoRegistrado) {\r\n\t\t\t\t\t\tRegistrarPaso(5);\r\n\t\t\t\t\t\tsetPasoRegistrado(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsetDataTraspaso(response);\r\n\t\t\t\t\tsetWelcomeRedirect(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: response.message,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tconsole.error(error);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: error.message,\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\r\n\t\t\t\tactions({ type: \"setState\", payload: { ...state, loading: false } });\r\n\t\t\t});\r\n\t};\r\n\r\n\tif (loaded) {\r\n\t\tconst data = [\r\n\t\t\t{\r\n\t\t\t\tindex: 0,\r\n\t\t\t\tid: 1,\r\n\t\t\t\tname: \"Cuentas\",\r\n\t\t\t\tcontent: () => (\r\n\t\t\t\t\t<Cuentas cuentas={confirmData.response.cuentasEditadas} />\r\n\t\t\t\t),\r\n\t\t\t\tstate: \"active\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tindex: 1,\r\n\t\t\t\tid: 2,\r\n\t\t\t\tname: \"Datos personales\",\r\n\t\t\t\tcontent: () => (\r\n\t\t\t\t\t<DatosPersonales datos={confirmData.response.datosPersonales} />\r\n\t\t\t\t),\r\n\t\t\t\tstate: \"inactive\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tindex: 2,\r\n\t\t\t\tid: 3,\r\n\t\t\t\tname: \"Datos de contacto\",\r\n\t\t\t\tcontent: () => (\r\n\t\t\t\t\t<DatosContacto datos={confirmData.response.datosPersonales} />\r\n\t\t\t\t),\r\n\t\t\t\tstate: \"inactive\",\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tindex: 3,\r\n\t\t\t\tid: 4,\r\n\t\t\t\tname: \"Antecedentes Laborales\",\r\n\t\t\t\tcontent: () => (\r\n\t\t\t\t\t<AntecedentesLaborales datos={confirmData.response.datosPersonales} />\r\n\t\t\t\t),\r\n\t\t\t\tstate: \"inactive\",\r\n\t\t\t},\r\n\t\t];\r\n\r\n\t\tif (welcomeRedirect)\r\n\t\t\treturn (\r\n\t\t\t\t<Redirect\r\n\t\t\t\t\tto={{ pathname: \"/bienvenida\", state: { data: dataTraspaso } }}\r\n\t\t\t\t/>\r\n\t\t\t);\r\n\t\treturn (\r\n\t\t\t<>\r\n\t\t\t\t<IdleTimerContainer isLoggedIn={true} />;\r\n\t\t\t\t<CabeceraPasos paso={3} />\r\n\t\t\t\t<div className=\"containerrr\">\r\n\t\t\t\t\t<AccordionConfirmar data={data} />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"containerrr\">\r\n\t\t\t\t\t<Disclaimer />\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"containerrr\" style={{ fontSize: \"14px\" }}>\r\n\t\t\t\t\t<div className=\"space\"></div>\r\n\t\t\t\t\t<div style={{ textAlign: \"center\", width: \"100%\" }}>\r\n\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\tid=\"B-TW-0009\"\r\n\t\t\t\t\t\t\tclassName=\"btn-primary\"\r\n\t\t\t\t\t\t\tonClick={confirmarTraspasoFinal}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\tConfirmar Traspaso\r\n\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t<Link\r\n\t\t\t\t\t\t\tto={{\r\n\t\t\t\t\t\t\t\tpathname: \"/misdatos\",\r\n\t\t\t\t\t\t\t\tstate: { json: props.location.state.jsonBack },\r\n\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t<div className=\"linkkk\">Volver</div>\r\n\t\t\t\t\t\t</Link>\r\n\t\t\t\t\t\t<div className=\"space\"></div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</>\r\n\t\t);\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}\r\n","export default __webpack_public_path__ + \"static/media/qIufhof.12c901ef.png\";","import React from \"react\";\r\nimport { Button, Card } from \"react-bootstrap\";\r\nimport { Link } from \"react-router-dom\";\r\nimport notfound from \"../../util/img/genericas/qIufhof.png\";\r\n\r\nconst PageNotFound = () => {\r\n\treturn (\r\n\t\t<div className=\"container mt-2\">\r\n\t\t\t<Card\r\n\t\t\t\tstyle={{\r\n\t\t\t\t\ttextAlign: \"center\",\r\n\t\t\t\t\tpadding: \"30px\",\r\n\t\t\t\t\twidth: \"760px\",\r\n\t\t\t\t\tmargin: \"50px auto\",\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<img src={notfound} style={{ width: \"300px\", margin: \"0 auto\" }} />\r\n\t\t\t\t<div id=\"info\">\r\n\t\t\t\t\t<p>This page could not be found</p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<Link to=\"/\">\r\n\t\t\t\t\t<Button id=\"B-TW-0010\">Volver al inicio</Button>\r\n\t\t\t\t</Link>\r\n\t\t\t</Card>\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport default PageNotFound;\r\n","export default __webpack_public_path__ + \"static/media/close-circle.580db5af.svg\";","import React from \"react\";\r\nimport { Button, Card } from \"react-bootstrap\";\r\nimport { Link } from \"react-router-dom\";\r\nimport logo from \"../../util/img/genericas/close-circle.svg\";\r\n\r\nconst Error = () => {\r\n\tconst numero = {\r\n\t\tcolor: \"#7479D7\",\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div className=\"container mt-2\">\r\n\t\t\t<Card\r\n\t\t\t\tstyle={{\r\n\t\t\t\t\ttextAlign: \"center\",\r\n\t\t\t\t\tpadding: \"30px\",\r\n\t\t\t\t\twidth: \"760px\",\r\n\t\t\t\t\tmargin: \"50px auto\",\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t<img\r\n\t\t\t\t\tsrc={logo}\r\n\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\tmarginTop: \"40px\",\r\n\t\t\t\t\t\tmargin: \"auto\",\r\n\t\t\t\t\t\tmarginBottom: \"20px\",\r\n\t\t\t\t\t}}\r\n\t\t\t\t/>\r\n\t\t\t\t<p>\r\n\t\t\t\t\t<strong>¡Error! Inténtalo más tarde</strong>\r\n\t\t\t\t</p>\r\n\t\t\t\t<br />\r\n\t\t\t\t<p>\r\n\t\t\t\t\tTuvimos un problema en nuestro sistema, no pudimos completar tu\r\n\t\t\t\t\tsolicitud.\r\n\t\t\t\t</p>\r\n\t\t\t\t<br />\r\n\t\t\t\t<p>\r\n\t\t\t\t\t<p>\r\n\t\t\t\t\t\t<strong>\r\n\t\t\t\t\t\t\tSi tienes alguna duda puedes contactarnos a través de nuestros\r\n\t\t\t\t\t\t\tcanales de atención, escribiendo en nuestras redes sociales\r\n\t\t\t\t\t\t\tFacebook o Twitter o llamando al Contact center desde teléfonos\r\n\t\t\t\t\t\t\tfijos al <strong style={numero}>600 828 7200</strong> y desde\r\n\t\t\t\t\t\t\tteléfonos móviles al <strong style={numero}>2 2828 7200</strong>\r\n\t\t\t\t\t\t</strong>\r\n\t\t\t\t\t</p>\r\n\t\t\t\t</p>\r\n\t\t\t\t<Link to=\"/\">\r\n\t\t\t\t\t<Button id=\"B-TW-0010\">Volver al inicio</Button>\r\n\t\t\t\t</Link>\r\n\t\t\t</Card>\r\n\t\t</div>\r\n\t);\r\n};\r\n\r\nexport default Error;\r\n","import { useState } from \"react\";\r\nimport { Card } from \"react-bootstrap\";\r\nimport { Link } from \"react-router-dom\";\r\n\r\nconst ConfirmarAsesor = (props) => {\r\n const [datosAsesor] = useState(props.location.state.datosAsesor);\r\n\r\n return (\r\n <>\r\n <div className=\"container\" style={{ marginTop: '20px' }}>\r\n <div className=\"row\">\r\n <div className=\"contenedor_img22\">\r\n <img className=\"nina_error\" src=\"./imgs/personaje-traspaso1.svg\" alt=\"nina modelo\" />\r\n </div>\r\n </div>\r\n <div className=\"media_grey3\">\r\n <div className=\"media-body\">\r\n <Card className=\" body_grey\">\r\n <Card.Body>\r\n <Card.Title>{datosAsesor.nombre} ¡Ya tenemos tus datos!</Card.Title>\r\n <div className=\"container mt-4\">\r\n <div className=\"row\">\r\n <div className=\"col-12 pl-0 pt-2\">\r\n <Card.Text>\r\n Un asesor virtual te contactará a la brevedad para que puedas hacer el cambio a <a style={{ color: \"#80BC00\" }}> AFP Modelo </a>\r\n </Card.Text>\r\n </div>\r\n </div>\r\n <br></br>\r\n <div className=\"row\">\r\n <div className=\"col-12 align-middle\">\r\n <Link to=\"/\" className=\"pointer\" style={{ textDecoration: \"underline\", color: \"#4297DE\" }}>Volver al inicio</Link>\r\n </div>\r\n </div>\r\n </div>\r\n </Card.Body>\r\n </Card>\r\n </div>\r\n </div>\r\n </div>\r\n </>\r\n );\r\n}\r\n\r\nexport default ConfirmarAsesor;","import Swal from \"sweetalert2\";\r\nimport { Redirect as BrowserRouter } from \"react-router-dom\";\r\nimport { useState, useEffect, useContext } from \"react\";\r\nimport Configuration from \"../../../../Config\";\r\nimport Context from \"../../../../store/context\";\r\nimport Crypto from \"../../../util/Crypto\";\r\n\r\nexport default function FormValidate() {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [redirect, setRedirect] = useState(false);\r\n\tconst [query, setQuery] = useState(\r\n\t\tnew URLSearchParams(window.location.search)\r\n\t);\r\n\r\n\tuseEffect(async () => {\r\n\t\tawait ValidateToken(Crypto.Decrypt(\"data\"), query.get(\"token\"));\r\n\t}, []);\r\n\r\n\tconst ValidateToken = async (data, token) => {\r\n\t\tOnLoading(true);\r\n\r\n\t\tawait fetch(`${Configuration.API_URL}/api/ecert/status/cu`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify({\r\n\t\t\t\tRun: data.run,\r\n\t\t\t\tToken: data.token,\r\n\t\t\t\tData: {\r\n\t\t\t\t\tIdentificador: data.identificador,\r\n\t\t\t\t\tTokenRespuestaCU: token,\r\n\t\t\t\t},\r\n\t\t\t}),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (response) => {\r\n\t\t\t\tif (response.Exito) {\r\n\t\t\t\t\tdata.ObjetoGenerico = response.ObjetoGenerico;\r\n\r\n\t\t\t\t\tCrypto.Encrypt(\"data\", data);\r\n\t\t\t\t\tsetRedirect(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: response.Descripcion,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst OnLoading = async (load) => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: load } });\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div>\r\n\t\t\t{redirect ? (\r\n\t\t\t\t<BrowserRouter to={{ pathname: \"/tvi\", state: { json: \"result\" } }} />\r\n\t\t\t) : null}\r\n\t\t</div>\r\n\t);\r\n}\r\n","import Swal from \"sweetalert2\";\r\nimport { Redirect as BrowserRouter } from \"react-router-dom\";\r\nimport { useState, useEffect, useContext } from \"react\";\r\nimport Configuration from \"../../../../Config\";\r\nimport Context from \"../../../../store/context\";\r\nimport Crypto from \"../../../util/Crypto\";\r\nimport RegistrarIntentoLogin from \"../../../util/RegistrarIntentoLogin\";\r\n\r\nexport default function FormTVI() {\r\n\tconst { state, actions } = useContext(Context);\r\n\tconst [redirect, setRedirect] = useState(false);\r\n\tconst [dataJson, setDataJson] = useState(null);\r\n\r\n\tuseEffect(async () => {\r\n\t\tawait SolicitarTicket(Crypto.Decrypt(\"data\"));\r\n\t}, []);\r\n\r\n\tconst SolicitarTicket = async (data) => {\r\n\t\tOnLoading(true);\r\n\r\n\t\tlet raw = {\r\n\t\t\tafiliado: {\r\n\t\t\t\tnombre: data.name,\r\n\t\t\t\trut_numero: data.run.substring(0, data.run.length - 1),\r\n\t\t\t\tdv: data.run.substring(data.run.length - 1),\r\n\t\t\t\tverificacion: {\r\n\t\t\t\t\tidentificacion_proveedor: \"VI08\",\r\n\t\t\t\t\turl_verificacion:\r\n\t\t\t\t\t\tdata.ObjetoGenerico.DatosPreviredTraspaso.UrlValidacionPrevired,\r\n\t\t\t\t\ttipo_verificacion: \"1004\",\r\n\t\t\t\t\tcodigo_verificacion: data.tokentvi,\r\n\t\t\t\t\turl_usuario:\r\n\t\t\t\t\t\tdata.ObjetoGenerico.DatosPreviredTraspaso.UsuarioValidacionPrevired,\r\n\t\t\t\t\turl_clave:\r\n\t\t\t\t\t\tdata.ObjetoGenerico.DatosPreviredTraspaso.ClaveValidacionPrevired,\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t\tcodigo_institucion: \"1034\",\r\n\t\t\trequiere_segunda_verificacion: false,\r\n\t\t};\r\n\r\n\t\tawait fetch(`${Configuration.API_URL}/api/Previred/Obtener/Ticket`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify(raw),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.respuesta.codigo === 200) {\r\n\t\t\t\t\tawait SolicitarToken(result.respuesta.ticket_tvi, raw, data);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\ttext: result.respuesta.mensaje,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst SolicitarToken = async (ticket, raw, data) => {\r\n\t\tawait fetch(`${Configuration.API_URL}/api/Previred/Obtener/Token`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t\tbody: JSON.stringify({\r\n\t\t\t\trut: data.run,\r\n\t\t\t\tcodigo_institucion: \"1034\",\r\n\t\t\t\tticket_tvi: ticket,\r\n\t\t\t}),\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.respuesta.codigo === 200) {\r\n\t\t\t\t\tawait ObtieneCuentas(result.respuesta.token, raw, data.autenticacion);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar errores = result.respuesta.mensaje;\r\n\r\n\t\t\t\t\tif (result.respuesta.errores !== null) {\r\n\t\t\t\t\t\tresult.respuesta.errores.forEach((element) => {\r\n\t\t\t\t\t\t\terrores = `<b>${element.error.codigo_error}</b> ${element.error.mensaje}<br>`;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\thtml: errores,\r\n\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst ObtieneCuentas = async (token, data, autenticacion) => {\r\n\t\tRegistrarIntentoLogin(1, true);\r\n\r\n\t\tlet raw = {\r\n\t\t\ttoken: token,\r\n\t\t\tcodigo: \"1034\",\r\n\t\t\trut: data.afiliado.rut_numero,\r\n\t\t\trutDv: data.afiliado.dv,\r\n\t\t\tnombres: data.afiliado.nombre,\r\n\t\t\tapellidoPaterno: data.afiliado.apellido_paterno,\r\n\t\t\tapellidoMaterno: data.afiliado.apellido_materno,\r\n\t\t\tcuentas: [\r\n\t\t\t\t{ codigo: \"CCICO\" },\r\n\t\t\t\t{ codigo: \"CCIAV\" },\r\n\t\t\t\t{ codigo: \"CAI\" },\r\n\t\t\t\t{ codigo: \"CAV\" },\r\n\t\t\t\t{ codigo: \"CCICV\" },\r\n\t\t\t\t{ codigo: \"CCIDC\" },\r\n\t\t\t\t{ codigo: \"APVC\" },\r\n\t\t\t],\r\n\t\t\totros: \"\",\r\n\t\t\tautenticacion: autenticacion\r\n\t\t};\r\n\r\n\t\tvar body = JSON.stringify(raw);\r\n\t\tsessionStorage.setItem(\"jsonFondo\", body);\r\n\r\n\t\tawait fetch(`${Configuration.API_URL}/api/Previred`, {\r\n\t\t\tmethod: \"POST\",\r\n\t\t\theaders: Configuration.JSON_HEADER,\r\n\t\t\tbody: body,\r\n\t\t})\r\n\t\t\t.then((response) => response.json())\r\n\t\t\t.then(async (result) => {\r\n\t\t\t\tif (result.code === \"0\") {\r\n\t\t\t\t\tif (result.response.cuentas.length === 0) {\r\n\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\t\ttext: \"Trabajador no registra cuentas activas\",\r\n\t\t\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresult.response.token = raw.token;\r\n\r\n\t\t\t\t\t\tvar poseeVoluntarias = false;\r\n\r\n\t\t\t\t\t\tresult.response.cuentas.forEach((item, index) => {\r\n\t\t\t\t\t\t\tif (item.tipo === \"CCIV\" || item.tipo === \"CCIDC\" || item.tipo === \"CAV\" || item.tipo === \"APVC\") {\r\n\t\t\t\t\t\t\t\tposeeVoluntarias = true;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\titem.fondos.forEach((fondo, i) => {\r\n\t\t\t\t\t\t\t\tfondo.origen = fondo.nombre;\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (poseeVoluntarias) {\r\n\t\t\t\t\t\t\tOnLoading(false);\r\n\r\n\t\t\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\t\t\ticon: \"info\",\r\n\t\t\t\t\t\t\t\thtml: `No es posible continuar con tu traspaso con ClaveÚnica, dado que posees productos voluntarios.<br><br>\r\n\t\t\t\t\t\t\t\tTe invitamos a continuar tu proceso autenticándote con tu <strong>clave de seguridad</strong>.`,\r\n\t\t\t\t\t\t\t\tconfirmButtonText: \"Volver\",\r\n\t\t\t\t\t\t\t\tshowDenyButton: false,\r\n\t\t\t\t\t\t\t\tdenyButtonText: \"No\",\r\n\t\t\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\t\t\treturnFocus: false,\r\n\t\t\t\t\t\t\t}).then((result) => {\r\n\t\t\t\t\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\t\t\t\t\twindow.location.replace(\"/autenticacion\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tsetDataJson(result);\r\n\t\t\t\t\t\t\tsetRedirect(true);\r\n\t\t\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tOnLoading(false);\r\n\t\t\t\t\tSwal.fire({\r\n\t\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\t\thtml: `${result.message}<br><br><strong>¿Desea reintentar?</strong>`,\r\n\t\t\t\t\t\tconfirmButtonText: \"Si\",\r\n\t\t\t\t\t\tshowDenyButton: true,\r\n\t\t\t\t\t\tdenyButtonText: \"No\",\r\n\t\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t\t\treturnFocus: false,\r\n\t\t\t\t\t}).then((result) => {\r\n\t\t\t\t\t\tif (result.isConfirmed) {\r\n\t\t\t\t\t\t\tObtieneCuentas(token, data);\r\n\t\t\t\t\t\t\tOnLoading(true);\r\n\t\t\t\t\t\t} else if (result.isDenied) {\r\n\t\t\t\t\t\t\twindow.location.replace(\"/\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.catch((error) => {\r\n\t\t\t\tOnLoading(false);\r\n\t\t\t\tSwal.fire({\r\n\t\t\t\t\ticon: \"error\",\r\n\t\t\t\t\ttext: \"Hemos detectado un problema. Por favor, intenta nuevamente más tarde.\",\r\n\t\t\t\t\tconfirmButtonText: \"Ok\",\r\n\t\t\t\t\tallowOutsideClick: false,\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t};\r\n\r\n\tconst OnLoading = async (load) => {\r\n\t\tactions({ type: \"setState\", payload: { ...state, loading: load } });\r\n\t};\r\n\r\n\treturn (\r\n\t\t<div>\r\n\t\t\t{redirect ? (\r\n\t\t\t\t<BrowserRouter\r\n\t\t\t\t\tto={{ pathname: \"/cuentasyfondo\", state: { json: dataJson } }}\r\n\t\t\t\t/>\r\n\t\t\t) : null}\r\n\t\t</div>\r\n\t);\r\n}\r\n","import React from \"react\";\r\nimport { Route, BrowserRouter, Switch } from \"react-router-dom\";\r\nimport Header from \"../util/header/Header\";\r\nimport Footer from \"../util/footer/Footer\";\r\nimport Traspaso from \"../pages/traspaso/Traspaso\";\r\nimport Autenticacion from \"../pages/autenticacion/Autenticacion\";\r\nimport Cuestionario from \"../pages/cuestionario/Cuestionario\";\r\nimport RedirectGenerico from \"../pages/traspaso/components/redirects/RedirectGenerico\";\r\nimport PreguntasSeguridad from \"../pages/cuestionario/PreguntasSeguridad\";\r\nimport FormCotizacion from \"../pages/cotizacion/components/FormCotizacion\";\r\nimport DatosPersonales from \"../pages/datos_personales/DatosPersonales\";\r\nimport ScrollToTop from \"../util/ScrollToTop\";\r\nimport ParteAFPModeloModal from \"../pages/traspaso/components/redirects/ParteAFPModeloModal\";\r\nimport NoHayCuentas from \"../pages/autenticacion/components/NoHayCuentas\";\r\nimport Bienvenida from \"../pages/bienvenida/Bienvenida\";\r\nimport ConfirmarTraspaso from \"../pages/confirmarTraspaso/ConfirmarTraspaso\";\r\nimport PageNotFound from \"../pages/global/PageNotFound\";\r\nimport Error from \"../pages/global/Error\";\r\nimport ConfirmarAsesor from \"../pages/cuestionario/ConfirmarAsesor\";\r\nimport FormValidate from \"../pages/autenticacion/components/FormValidate\";\r\nimport FormTVI from \"../pages/autenticacion/components/FormTVI\";\r\n\r\nclass Main extends React.Component {\r\n\trender() {\r\n\t\treturn (\r\n\t\t\t<div id=\"main-container\">\r\n\t\t\t\t<BrowserRouter>\r\n\t\t\t\t\t<Header />\r\n\t\t\t\t\t<ScrollToTop />\r\n\t\t\t\t\t<main>\r\n\t\t\t\t\t\t<Switch>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <Traspaso {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/misdatos\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <DatosPersonales {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/cuestionario\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <Cuestionario {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/autenticacion\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <Autenticacion {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/info\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <RedirectGenerico {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/seguridadCuestionario\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <PreguntasSeguridad {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/cuentasyfondo\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <FormCotizacion {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/yaeresinfo\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <ParteAFPModeloModal {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/nohaycuentas\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <NoHayCuentas {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/bienvenida\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <Bienvenida {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/confirmartraspaso\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <ConfirmarTraspaso {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/error\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <Error {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/asesor\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <ConfirmarAsesor {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/validate\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <FormValidate {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"/tvi\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <FormTVI {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<Route\r\n\t\t\t\t\t\t\t\tpath=\"*\"\r\n\t\t\t\t\t\t\t\texact\r\n\t\t\t\t\t\t\t\trender={(props) => <PageNotFound {...props} />}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</Switch>\r\n\t\t\t\t\t</main>\r\n\t\t\t\t\t<Footer />\r\n\t\t\t\t</BrowserRouter>\r\n\t\t\t</div>\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default Main;\r\n","export default __webpack_public_path__ + \"static/media/Ellipsis.c29466ac.gif\";","import React from 'react';\r\nimport logo from '../util/img/Ellipsis.gif'\r\n\r\nconst Loading = () => {\r\n return (\r\n <div className='loading'>\r\n <img src={logo} width={200} alt='loading' />\r\n </div>\r\n )\r\n}\r\nexport default Loading","import \"./App.css\";\r\nimport React, { useContext } from \"react\";\r\nimport Main from \"./components/main/Main\";\r\nimport \"bootstrap/dist/css/bootstrap.min.css\";\r\nimport Context from \"./store/context\";\r\nimport Loading from \"./components/main/Loading\";\r\n\r\nexport const userContext = React.createContext();\r\n\r\nfunction App() {\r\n\tconst { state } = useContext(Context);\r\n\r\n\treturn (\r\n\t\t<div id=\"app-container\">\r\n\t\t\t{state.loading ? <Loading /> : \"\"}\r\n\t\t\t<Main></Main>\r\n\t\t</div>\r\n\t);\r\n}\r\n\r\nexport default App;\r\n","const reportWebVitals = onPerfEntry => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n });\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import { useState } from 'react';\r\n\r\nconst useGlobalState = () => {\r\n const [state, setState] = useState({ loading: false });\r\n const actions = (action) => {\r\n const { type, payload } = action;\r\n switch (type) {\r\n case 'setState':\r\n return setState(payload);\r\n default:\r\n return state;\r\n }\r\n }\r\n return { state, actions }\r\n}\r\n\r\nexport default useGlobalState;","import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport \"./index.css\";\r\nimport App from \"./App\";\r\nimport reportWebVitals from \"./reportWebVitals\";\r\nimport useGlobalState from \"./store/useGlobalState\";\r\nimport Context from \"./store/context\";\r\n\r\nconst Index = () => {\r\n\tconst store = useGlobalState();\r\n\treturn (\r\n\t\t<React.StrictMode>\r\n\t\t\t<Context.Provider value={store}>\r\n\t\t\t\t<App />\r\n\t\t\t</Context.Provider>\r\n\t\t</React.StrictMode>\r\n\t);\r\n};\r\n\r\nReactDOM.render(<Index />, document.getElementById(\"root\"));\r\n\r\nreportWebVitals();\r\n"],"sourceRoot":""}