{"version":3,"sources":["config/TiposEstadosDesconexion.ts","utils/truncarText.ts","pages/Desconexion/EstoySinLuz/FormPerfil/FormDatosStyles.ts","pages/Desconexion/EstoySinLuz/FormPerfil/FormDatos.tsx","pages/Desconexion/EstoySinLuz/Paso1/Paso1Styles.ts","pages/Desconexion/EstoySinLuz/Paso1/Paso1.tsx","pages/Desconexion/EstoySinLuz/Paso2/Paso2Styles.ts","pages/Desconexion/EstoySinLuz/Paso2/Paso2.tsx","pages/Desconexion/EstoySinLuz/Paso3/Paso3Styles.ts","pages/Desconexion/EstoySinLuz/Paso3/Paso3.tsx","pages/Desconexion/EstoySinLuz/Paso4/Paso4Styles.ts","pages/Desconexion/EstoySinLuz/Paso4/Paso4.tsx","pages/Desconexion/EstoySinLuz/PasoTicketEnProceso/PasoTicketEnProcesoStyles.ts","pages/Desconexion/EstoySinLuz/PasoTicketEnProceso/PasoTicketEnProceso.tsx","pages/Desconexion/EstoySinLuz/PasoTicketIngresado/PasoTicketIngresadoStyles.ts","pages/Desconexion/EstoySinLuz/PasoTicketIngresado/PasoTicketIngresado.tsx","pages/Desconexion/EstoySinLuz/EstoySinLuzStyles.ts","pages/Desconexion/EstoySinLuz/EstoySinLuz.tsx"],"names":["TipoEstadoDesconexion","truncarTexto","text","maxLength","length","substring","FormDatosStyles","makeStyles","theme","createStyles","gridContenedor","display","gridTemplateColumns","gridTemplateAreas","gridGap","maxWidth","margin","breakpoints","down","gridContenedorContigencia","distribuidora","gridArea","width","nombre","apellido","region","comuna","email","telefono","area","borderColor","resize","caracteres","paddingTop","color","textoCaracteres","fontSize","botonVolver","alignItems","textDecoration","gap","fontWeight","botonera","justifyContent","botonIr","flex","contenedorBotones","marginTop","contenedor","marginLeft","botonPerfil","marginBottom","iconoGrande","minWidth","height","marginRight","background","borderRadius","iconoChico","icono","stroke","datosPersonales","textoPersonales","wordBreak","boton","border","backgroundColor","boxShadow","cursor","position","verticalAlign","padding","transition","contadorCaracteresVerde","contadorCaracteresRojo","startAdornment","customMenuPaper","customSelected","menusItemPerson","placeHolder","fontFamily","fontStyle","lineHeight","paddingBottom","seleccion","FormDatos","formik","onClickRedireccionEtapa","infoCliente","CustomSelect","withStyles","outlined","Select","CustomMenuItem","root","MenuItem","t","useTranslation","styles","useStyles","dispatch","useDispatch","enqueueSnackbar","useSnackbar","useState","TipoDistribuidora","SAESA","toString","setDistribuidora","validadorModoContingencia","setValidadorModoContingencia","setComuna","setRegion","listadoRegiones","setListadoRegiones","listadoComunas","setListadoComunas","pasoActualStore","useSelector","state","desconexion","pasoActual","requestEnviarReclamoSinLuz","servicio","codDistribuidora","contingencia","reclamo","comentarios","codigoRegion","ocultarLoading","loading","document","getElementById","classList","remove","validarEstadoReclamo","responseCreacionTicket","estadoCreacion","TICKET_CREADO","actualizarNumeroSolicitud","nroTicketSaesa","ETAPAS","PASO4","TICKET_INGRESADO","PASO_TICKET_INGRESADO","CREACION_TICKET_EN_PROCESO","PASO_TICKET_EN_PROCESO","variant","useEffect","EtapasNumero","PASO3","DesconexionService","obtenerListadoRegion","then","response","catch","error","data","mensaje","setFieldValue","obtenerListadoComunas","values","useFormik","initialValues","numeroTelefono","descripcion","onSubmit","distribuidoraSeleccionada","modoContingencia","numeroCliente","add","mostrarLoading","enviarReclamo","enableReinitialize","validateOnMount","validationSchema","Yup","required","max","noNumero","soloNumero","resetForm","enlace","addEventListener","e","preventDefault","PASO2","PASO1","onChangeSelect","event","setEstado","valorFormik","resultadoValor","target","value","nombreRegion","regionBuscar","find","reg","buscarCodigoRegion","className","handleSubmit","id","name","onChange","FRONTEL","EDELAYSEN","LUZ_OSORNO","dataTestId","onBlur","handleBlur","handleChange","touched","errors","label","placeholder","MenuProps","classes","paper","anchorOrigin","vertical","horizontal","transformOrigin","disabled","map","item","selected","cantidadCaracteresMaximosSelect","nombreComuna","minRows","maxRows","total","href","PATH_ESTOY_SIN_LUZ","src","iconoVolver","alt","Button","type","isValid","dirty","onClick","Paso1Styles","numeroServicio","input","recaptcha","tooltip","zIndex","tooltipIcon","textos","imgTooltip","filter","tituloTooltip","textAlign","parrafoTooltip","Paso1","captchaRef","setInfoCliente","mostrarModal","setMostrarModal","numServicio","captcha","formValues","actualizarLogoBody","urlLogo","obtenerLogo","request","obtenerTokenDesconexion","responseDesconexion","localStorage","setItem","token","obtenerEstadoServicio","responseCodigo","esDatoValido","actualizarLogo","infoClienteModel","localidad","estadoServicio","codigoEstadoSuministro","cortes","validarCorte","actualizarPasoActual","mostrarPildoraError","reset","strong","autocomplete","endAdornment","IconButton","ref","refCaptcha","setCaptchaRef","sitekey","process","setSubmitting","cerrarModal","tooltipServicio","defaultProps","Paso2Styles","link","detalleServicioOk","detalleServicioFail","iconoBoton","iconoCheck","fill","mensajeServicioOK","mensajeServicioFail","mensajePago","contenedorMensajePago","iconoMensajePago","Paso2","history","useHistory","generarURLPago","TipoCorteServicio","CORTADO","TRAMITE_CORTE","iconoInformacion","renderContenido","setRenderContenido","clsx","REPOSICION","parametros","empresa","cliente","NORMAL","window","location","TIPOCORTE","COD_CORTE_IMPREVISTO","COD_CORTE_PROGRAMADO","push","MAPACORTES","URLSearchParams","obtenerTextoBoton","iconoRedireccion","Paso3Styles","tituloFormulario","texto","cardMapa","cardMapaTitulo","cardMapaBajada","botonMapa","imagenBotonMapa","Paso3","url","getAttribute","iconoMapa","iconoRedireccionMorado","Paso4Styles","iconoManoArriba","contenido","flexDirection","reporteExito","lineWeight","numeroSeguimiento","contenedorDisclaimer","iconoMensajeDisclaimer","mensajeDisclaimer","Paso4","numeroSolicitud","glosa","datosDistribuidora","setDatosDistribuidora","setearDistribuidora","Typography","dangerouslySetInnerHTML","__html","strong1","str","PasoTicketEnProcesoStyles","iconoSuperior","PasoTicketEnProceso","iconoReloj","PasoTicketIngresadoStyles","PasoTicketIngresado","EstoySinLuzStyles","estoySinLuz","contenidoPaso1","contenidoPaso2","contenidoPaso3","contenidoPaso4","contenidoPasoTicketIngresado","contenidoPasoTicketEnProceso","ocultar","logo","urlDistribuidora","etapas","EstoySinLuz","setPasoActual","nombreEtapas","calle","modalNoDisponible","setModalNoDisponible","modalNoDisponibleFlagVisible","modalPaginaNoDisponible","activacionModal","valorMinutosModal","tiempoCookie","flagCargado","flagCargadoEstoySinLuz","paso","tiempoMostrarModal","milisegundosPorMinuto","obtenerFeatureFlag","actualizarEstadoModalPaginaNoDisponible","web","modalSitioNoDisponible","actualizarEstadoFlagEstoySinLuz","mostrarModalCookie","ModalSitioNoDisponible","titulo","activeStep","DEFAULT","obtenerPasoActual","steps","stepNames"],"mappings":"2KAAYA,E,wNCMCC,EAAe,SAACC,EAAWC,GACtC,OAAID,EAAKE,OAASD,EACV,GAAN,OAAUD,EAAKG,UAAU,EAAGF,GAAU,OAEjCD,CACT,GDLC,SANWF,KAAqB,8CAArBA,EAAqB,8BAArBA,EAAqB,oCAArBA,EAAqB,wDAMhC,CANWA,MAAqB,K,sBEiPlBM,EA/OSC,aAAW,SAACC,GAAY,OAC9CC,YAAa,CACXC,eAAe,aACbC,QAAS,OACTC,oBAAqB,UACrBC,kBAAkB,+JAOlBC,QAAS,UACTC,SAAU,QACVC,OAAQ,UACPR,EAAMS,YAAYC,KAAK,MAAQ,CAC9BL,kBAAkB,wLASlBD,oBAAqB,QAIzBO,0BAA0B,aACxBR,QAAS,OACTC,oBAAqB,UACrBC,kBAAkB,0LAQlBC,QAAS,UACTC,SAAU,QACVC,OAAQ,UACPR,EAAMS,YAAYC,KAAK,MAAQ,CAC9BL,kBAAkB,sOAWlBD,oBAAqB,QAGzBQ,cAAc,aACZC,SAAU,gBACVC,MAAO,OACNd,EAAMS,YAAYC,KAAK,MAAQ,CAC9BI,MAAO,SAGXC,OAAQ,CACNF,SAAU,UAEZG,SAAU,CACRH,SAAU,YAEZI,OAAO,aACLJ,SAAU,SACVN,SAAU,SACTP,EAAMS,YAAYC,KAAK,MAAQ,CAC9BH,SAAU,SAGdW,OAAO,aACLL,SAAU,SACVN,SAAU,SACTP,EAAMS,YAAYC,KAAK,MAAQ,CAC9B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H,UAAWwH,YAAK9N,EAAO6R,6BAA6B,eACjD7R,EAAO8R,QAAUvQ,IAAeoB,IAAOK,yBAE1C1D,YAAaA,OAIjB,oBACEgJ,KAAMkI,EAAmBjB,IACzBjJ,UAAWwH,YAAK9N,EAAOgS,iBAAiB,eACrChS,EAAO8R,QACNvQ,IAAeoB,IAAOS,OACtB7B,IAAeoB,IAAOC,OACtBrB,IAAeoB,IAAOK,wBACtBzB,IAAeoB,IAAOG,wBACvB,UAEFhD,EAAE,wDAAwD,IAAE0Q,EAAmBD,WAIxF,C","file":"static/js/3.5aa2c5ad.chunk.js","sourcesContent":["export enum TipoEstadoDesconexion {\n // Estados de Desconexion\n ERROR_CREACION_TICKET = 'ERROR_CREACION_TICKET',\n TICKET_CREADO = 'TICKET_CREADO',\n TICKET_INGRESADO = 'TICKET_INGRESADO',\n CREACION_TICKET_EN_PROCESO = 'CREACION_TICKET_EN_PROCESO',\n}\n","/**\n * Función para convertir y limitar textos largos\n * @param text texto a limitar\n * @param maxLength maximo de caracteres a mostrar\n * @returns el texto convertido\n */\nexport const truncarTexto = (text: any, maxLength: any) => {\n if (text.length > maxLength) {\n return `${text.substring(0, maxLength)}...`;\n }\n return text;\n};\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst FormDatosStyles = makeStyles((theme: Theme) =>\n createStyles({\n gridContenedor: {\n display: 'grid',\n gridTemplateColumns: '1fr 1fr',\n gridTemplateAreas: `\n \"distribuidora distribuidora\"\n \"nombre apellido\"\n \"email telefono\"\n \"area area\"\n \"boton boton\"\n `,\n gridGap: '1.25rem',\n maxWidth: '500px',\n margin: '0 auto',\n [theme.breakpoints.down('sm')]: {\n gridTemplateAreas: `\n \"distribuidora\"\n \"nombre\"\n \"apellido\"\n \"email\"\n \"telefono\"\n \"area\"\n \"boton\"\n `,\n gridTemplateColumns: '1fr',\n },\n },\n\n gridContenedorContigencia: {\n display: 'grid',\n gridTemplateColumns: '1fr 1fr',\n gridTemplateAreas: `\n \"distribuidora distribuidora\"\n \"nombre apellido\"\n \"region comuna\"\n \"email telefono\"\n \"area area\"\n \"boton boton\"\n `,\n gridGap: '1.25rem',\n maxWidth: '500px',\n margin: '0 auto',\n [theme.breakpoints.down('sm')]: {\n gridTemplateAreas: `\n \"distribuidora\"\n \"nombre\"\n \"apellido\"\n \"region\"\n \"comuna\"\n \"email\"\n \"telefono\"\n \"area\"\n \"boton\"\n `,\n gridTemplateColumns: '1fr',\n },\n },\n distribuidora: {\n gridArea: 'distribuidora',\n width: '48%',\n [theme.breakpoints.down('sm')]: {\n width: '100%',\n },\n },\n nombre: {\n gridArea: 'nombre',\n },\n apellido: {\n gridArea: 'apellido',\n },\n region: {\n gridArea: 'region',\n maxWidth: '240px',\n [theme.breakpoints.down('sm')]: {\n maxWidth: '100%',\n },\n },\n comuna: {\n gridArea: 'comuna',\n maxWidth: '240px',\n [theme.breakpoints.down('sm')]: {\n maxWidth: '100%',\n },\n },\n email: {\n gridArea: 'email',\n },\n telefono: {\n gridArea: 'telefono',\n },\n area: {\n gridArea: 'area',\n borderColor: '#9196B1',\n resize: 'none',\n },\n caracteres: {\n display: 'flex',\n paddingTop: '3px',\n color: '#5A607F',\n },\n textoCaracteres: {\n fontSize: '10px',\n },\n botonVolver: {\n display: 'flex',\n alignItems: 'center',\n textDecoration: 'none',\n gap: '8px',\n color: 'var(--primario-morado)',\n fontSize: '14px',\n fontWeight: 600,\n },\n botonera: {\n display: 'flex',\n justifyContent: 'center',\n gap: '1.5rem',\n },\n botonIr: {\n gridArea: 'boton',\n [theme.breakpoints.down('sm')]: {\n flex: 1,\n },\n },\n contenedorBotones: {\n gridArea: 'botones',\n display: 'flex',\n justifyContent: 'center',\n marginTop: '1.25rem',\n },\n contenedor: {\n marginTop: '1.5rem',\n [theme.breakpoints.down('xs')]: {\n marginLeft: '0',\n },\n },\n botonPerfil: {\n display: 'block',\n maxWidth: '300px',\n [theme.breakpoints.down('xs')]: {\n maxWidth: 'initial',\n marginBottom: '66px',\n },\n },\n iconoGrande: {\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minWidth: '2.875rem',\n height: '2.875rem',\n marginRight: '0.5rem',\n background: 'var(--secundario-azul-marino)',\n borderRadius: '50%',\n },\n iconoChico: {\n width: '22px',\n height: '22px',\n },\n icono: {\n stroke: 'var(--blanco)',\n width: '1.5rem',\n height: '1.5rem',\n },\n datosPersonales: {\n display: 'flex',\n alignItems: 'center',\n marginBottom: '2.875rem',\n },\n textoPersonales: {\n color: 'var(--primario-azul-oscuro)',\n wordBreak: 'break-word',\n },\n boton: {\n width: '280px',\n color: 'var(--primario-morado)',\n border: '2px solid var(--primario-morado)',\n backgroundColor: 'transparent',\n boxShadow: 'unset',\n borderRadius: '2.5rem',\n cursor: 'pointer',\n display: 'inline-flex',\n position: 'relative',\n alignItems: 'center',\n verticalAlign: 'middle',\n justifyContent: 'center',\n textDecoration: 'none',\n height: '3.125rem',\n padding: '0.375rem 1rem',\n minWidth: '64px',\n fontWeight: 700,\n transition:\n 'background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',\n '&:hover': {\n border: '2px solid var(--primario-morado)',\n backgroundColor: 'var(--hover-secundary)',\n },\n },\n contadorCaracteresVerde: {\n color: 'var(--verde-exito)',\n },\n contadorCaracteresRojo: {\n color: 'var(--rojo-error)',\n },\n startAdornment: {\n color: 'var(--input-label)',\n },\n customMenuPaper: {\n boxShadow: '0px 2px 12px 0px #09275424 !important',\n },\n customSelected: {\n backgroundColor: 'rgba(0, 0, 0, 0.08) !important',\n },\n\n menusItemPerson: {\n padding: '10px 16px',\n },\n placeHolder: {\n fontFamily: 'Neutrif Studio',\n fontStyle: 'normal',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '18px',\n color: 'var(--gris-l43)',\n paddingTop: '4px',\n paddingBottom: '4px',\n },\n seleccion: {\n fontFamily: 'Neutrif Studio',\n fontStyle: 'normal',\n fontWeight: 400,\n fontSize: '14px',\n lineHeight: '18px',\n color: 'var(--gris-l3)',\n paddingTop: '4px',\n paddingBottom: '4px',\n },\n })\n);\n\nexport default FormDatosStyles;\n","import { Button, MenuItem, Select, withStyles } from '@material-ui/core';\nimport { Input, TextArea, Typography } from '@saesa/ui-kit-front';\nimport { ETAPAS } from 'config/tipoEtapasEnum';\nimport { useFormik } from 'formik';\nimport { InfoClienteModel } from 'models';\nimport { useSnackbar } from 'notistack';\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport DesconexionService from 'services/desconexionService';\nimport * as Yup from 'yup';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { iconoVolver } from 'assets/images';\nimport { actualizarNumeroSolicitud, RootState } from 'store';\nimport { PATH_ESTOY_SIN_LUZ } from 'root-page';\nimport { TipoDistribuidora } from 'config/tipoDistribuidoraEnum';\nimport { cantidadCaracteresMaximosSelect } from 'utils/constants';\nimport { EtapasNumero } from 'config';\nimport { truncarTexto } from 'utils/truncarText';\nimport { TipoEstadoDesconexion } from 'config/TiposEstadosDesconexion';\nimport { EnviarReclamoRequestModel } from 'services/models';\nimport useStyles from './FormDatosStyles';\n\ninterface FormValues {\n nombre: string;\n apellido: string;\n email: string;\n region: string;\n codigoRegion: string;\n comuna: string;\n numeroTelefono: string;\n descripcion: string;\n}\nconst FormDatos = ({\n onClickRedireccionEtapa,\n infoCliente,\n}: {\n onClickRedireccionEtapa: (etapa: ETAPAS) => void;\n infoCliente: InfoClienteModel;\n}) => {\n /**\n * Custom select de material\n */\n const CustomSelect = withStyles(() => ({\n outlined: {\n display: 'flex',\n alignItems: 'center',\n padding: '0.375rem',\n background: 'var(--blanco)',\n border: '1px solid var(--secundario-azul-marino)',\n },\n }))(Select);\n\n /**\n * Custom item de material\n */\n const CustomMenuItem = withStyles(() => ({\n root: {\n padding: '0.5rem 0.5rem 0 0.5rem',\n '&:last-of-type': {\n paddingBottom: '0.5rem',\n },\n },\n }))(MenuItem);\n\n const { t } = useTranslation();\n const styles = useStyles();\n let formik: any;\n const dispatch = useDispatch();\n /**\n * Máximo de caracteres permitido en textarea de consulta/reclamo\n */\n const MAX_CARACTERES_CONSULTA = 800;\n\n /**\n * Valores iniciales de formulario\n */\n const initialValues: FormValues = {\n nombre: '',\n apellido: '',\n email: '',\n region: '',\n codigoRegion: '',\n comuna: '',\n numeroTelefono: '',\n descripcion: '',\n };\n /**\n * Uso de las pildoras de notificaciones\n */\n const { enqueueSnackbar } = useSnackbar();\n\n /**\n * Distribuidora seleccionada.\n */\n const [distribuidora, setDistribuidora] = useState(TipoDistribuidora.SAESA.toString());\n\n /**\n * Validador del modo contigencia\n */\n const [validadorModoContingencia, setValidadorModoContingencia] = useState(false);\n\n /**\n * UseState que contiene el valor de la comuna\n */\n const [comuna, setComuna] = useState(t('desconexion:paginas.estoySinLuz.formulario.campos.comuna.label'));\n\n /**\n * UseState que contiene el valor de la comuna\n */\n const [region, setRegion] = useState(t('desconexion:paginas.estoySinLuz.formulario.campos.region.label'));\n\n /**\n * UseState que contiene el valor del listado de regiones\n */\n const [listadoRegiones, setListadoRegiones] = useState<[]>([]);\n\n /**\n * UseState que contiene el valor del listado de regiones\n */\n const [listadoComunas, setListadoComunas] = useState<[]>([]);\n\n /**\n * Obtiene el valor del paso actual\n */\n const pasoActualStore = useSelector((state: RootState) => state.desconexion.pasoActual);\n\n /**\n * Inicialización de request para reutilizar en validación.\n */\n let requestEnviarReclamoSinLuz: EnviarReclamoRequestModel = {\n servicio: '',\n codDistribuidora: '',\n contingencia: false,\n reclamo: {\n nombre: '',\n apellido: '',\n email: '',\n telefono: '',\n comentarios: '',\n codigoRegion: '',\n comuna: '',\n },\n };\n\n /**\n * Oculta el loading.\n */\n const ocultarLoading = () => {\n const loading = document.getElementById('loading');\n return loading?.classList.remove('backdrop--show');\n };\n\n /**\n * Depliega el loading.\n */\n const mostrarLoading = () => {\n const loading = document.getElementById('loading');\n return loading?.classList.add('backdrop--show');\n };\n\n /**\n * Despliega mensaje de error generico.\n */\n const mostrarMensajeErrorGenerico = () => {\n enqueueSnackbar(t(`errors:desconexion.000`), {\n variant: 'error',\n });\n\n ocultarLoading();\n };\n\n /**\n * Valida el estado de la creación del ticket de reclamo y realiza acciones según el estado.\n *\n * @param responseCreacionTicket - El objeto de respuesta que contiene el estado de la creación del ticket.\n */\n const validarEstadoReclamo = (responseCreacionTicket: any) => {\n // Se valida con el mismo servicio que se envía el reclamo\n switch (responseCreacionTicket?.estadoCreacion) {\n case TipoEstadoDesconexion.TICKET_CREADO:\n dispatch(actualizarNumeroSolicitud(responseCreacionTicket.nroTicketSaesa));\n onClickRedireccionEtapa(ETAPAS.PASO4);\n break;\n case TipoEstadoDesconexion.TICKET_INGRESADO:\n onClickRedireccionEtapa(ETAPAS.PASO_TICKET_INGRESADO);\n break;\n case TipoEstadoDesconexion.CREACION_TICKET_EN_PROCESO:\n onClickRedireccionEtapa(ETAPAS.PASO_TICKET_EN_PROCESO);\n break;\n default:\n mostrarMensajeErrorGenerico();\n break;\n }\n };\n\n /**\n * Función usada para obtener el listado de las regiones\n */\n const obtenerListadoDeRegiones = () => {\n DesconexionService.obtenerListadoRegion()\n .then(response => {\n setListadoRegiones(response);\n })\n .catch(error => {\n enqueueSnackbar(t(`errors:${error?.response?.data?.mensaje}`), {\n variant: 'error',\n });\n\n setListadoRegiones([]);\n });\n };\n\n /**\n * Función usada para obtener el listado de las comunas\n */\n const obtenerListadoDeComunas = () => {\n DesconexionService.obtenerListadoComunas(formik.values.codigoRegion)\n .then(response => {\n setListadoComunas(response);\n })\n .catch(error => {\n enqueueSnackbar(t(`errors:${error?.response?.data?.mensaje}`), {\n variant: 'error',\n });\n setListadoComunas([]);\n });\n };\n\n /**\n * UseEffect para obtener el listado de las regiones\n */\n useEffect(() => {\n if (pasoActualStore === EtapasNumero.PASO3) {\n obtenerListadoDeRegiones();\n }\n }, [infoCliente]);\n\n /**\n * UseEffect para obtener el listado de las comunas\n */\n useEffect(() => {\n if (pasoActualStore === EtapasNumero.PASO3) {\n formik.setFieldValue('comuna', '');\n setComuna(t('desconexion:paginas.estoySinLuz.formulario.campos.comuna.label'));\n setListadoComunas([]);\n obtenerListadoDeComunas();\n }\n }, [region]);\n\n /**\n * Funcion que llama a ultimo servicio para envio de reclamo\n */\n const onSubmit = () => {\n let distribuidoraSeleccionada = infoCliente.codDistribuidora;\n\n const modoContingencia = infoCliente.codDistribuidora === '';\n\n if (!infoCliente.codDistribuidora) {\n distribuidoraSeleccionada = distribuidora;\n }\n\n requestEnviarReclamoSinLuz = {\n servicio: infoCliente.numeroCliente,\n codDistribuidora: distribuidoraSeleccionada,\n contingencia: modoContingencia,\n reclamo: {\n nombre: formik.values.nombre,\n apellido: formik.values.apellido,\n email: formik.values.email,\n telefono: formik.values.numeroTelefono,\n comentarios: formik.values.descripcion,\n codigoRegion: formik.values.codigoRegion,\n comuna: formik.values.comuna,\n },\n };\n mostrarLoading();\n DesconexionService.enviarReclamo(requestEnviarReclamoSinLuz)\n .then(response => {\n ocultarLoading();\n validarEstadoReclamo(response);\n })\n .catch(error => {\n ocultarLoading();\n enqueueSnackbar(t(`errors:${error?.response?.data?.mensaje}`), {\n variant: 'error',\n });\n });\n };\n\n /**\n * Envía el formulario de reportar corte.\n */\n const handleSubmit = () => {\n formik.handleSubmit();\n };\n\n formik = useFormik({\n initialValues,\n onSubmit,\n enableReinitialize: true,\n validateOnMount: true,\n validationSchema: Yup.object({\n nombre: Yup.string().required(t('errors.required')).max(40, t('errors.max')).noNumero(t('errors.noSoloNumeros')),\n apellido: Yup.string().required(t('errors.required')).max(40, t('errors.max')).noNumero(t('errors.noSoloNumeros')),\n email: Yup.string().required(t('errors.required')).email(t('errors.email')).max(100, t('errors.max')),\n numeroTelefono: Yup.string().required(t('errors.required')).soloNumero(t('errors.soloNumeros')).length(9, t('errors.length')),\n descripcion: Yup.string().max(800, t('errors.max')),\n }),\n });\n\n /**\n * Función para validar validar el modo contigencia\n */\n const handleValidarModoContingencia = () => {\n setValidadorModoContingencia(false);\n if (infoCliente.codDistribuidora === '' && (formik.values.region === '' || formik.values.comuna === '')) {\n setValidadorModoContingencia(true);\n }\n };\n\n useEffect(() => {\n formik.resetForm();\n }, [onClickRedireccionEtapa]);\n\n /**\n * UseEffect para validar el modo contigencia\n */\n useEffect(() => {\n handleValidarModoContingencia();\n }, [formik]);\n\n /**\n * Use Effect encargado de volver atrás desde el evento del link.\n */\n useEffect(() => {\n const enlace = document.getElementById('botonVolver');\n if (enlace) {\n enlace.addEventListener('click', e => {\n e.preventDefault();\n\n if (infoCliente.codDistribuidora !== '') {\n onClickRedireccionEtapa(ETAPAS.PASO2);\n } else {\n onClickRedireccionEtapa(ETAPAS.PASO1);\n }\n });\n }\n }, [infoCliente]);\n\n /**\n * Captura el evento de cambiar distribuidora\n *\n * @param event a utilizar\n */\n const onServicioChange = (event: React.ChangeEvent<{ value: unknown }>) => {\n setDistribuidora(event.target.value as string);\n };\n\n /**\n * Función para realizar busqueda de codigo de region\n * @param nombreRegion nombre de la region a buscar\n * @returns codigo de la region o valor \"Región\"\n */\n const buscarCodigoRegion = (nombreRegion: string) => {\n const regionBuscar: any = listadoRegiones.find((reg: any) => reg.nombreRegion === nombreRegion);\n if (regionBuscar) {\n if (regionBuscar?.codigoRegion) {\n return regionBuscar?.codigoRegion;\n }\n return t('desconexion:paginas.estoySinLuz.formulario.campos.region.label');\n }\n return t('desconexion:paginas.estoySinLuz.formulario.campos.region.label');\n };\n\n /**\n * Función que maneja el cambio de usuarios\n * @param event evento que registrará el cambio de usuario\n * @param setEstado set de useState a cambiar\n * @param valorFormik string de clave del formulario\n */\n const onChangeSelect = (event: any, setEstado: any, valorFormik: string) => {\n const resultadoValor = event.target.value;\n setEstado(resultadoValor);\n formik.setFieldValue(valorFormik, resultadoValor);\n\n if (valorFormik === 'region') {\n formik.setFieldValue('codigoRegion', buscarCodigoRegion(resultadoValor));\n }\n };\n\n /**\n * Función que maneja el estado del seleccionador de comuna\n * @returns true o false segun este el estado del seleccionador de región\n */\n const validarCampoComuna = () => region === '' || region === t('desconexion:paginas.estoySinLuz.formulario.campos.region.label');\n\n return (\n
\n \n {infoCliente.codDistribuidora === '' && (\n \n \n {t('desconexion:paginas.estoySinLuz.dxSaesa')}\n \n\n \n {t('desconexion:paginas.estoySinLuz.dxFrontel')}\n \n\n \n {t('desconexion:paginas.estoySinLuz.dxEdelaysen')}\n \n\n \n {t('desconexion:paginas.estoySinLuz.dxLuzOsorno')}\n \n \n )}\n\n \n \n {infoCliente.codDistribuidora === '' && (\n onChangeSelect(event, setRegion, 'region')}\n data-testid=\"selector-tipo-region\"\n MenuProps={{\n classes: { paper: styles.customMenuPaper },\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'left',\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'left',\n },\n }}\n >\n \n {t('desconexion:paginas.estoySinLuz.formulario.campos.region.label')}\n \n\n {listadoRegiones.map((item: any) => (\n \n {truncarTexto(item?.nombreRegion, cantidadCaracteresMaximosSelect)}\n \n ))}\n \n )}\n {infoCliente.codDistribuidora === '' && (\n onChangeSelect(event, setComuna, 'comuna')}\n data-testid=\"selector-tipo-comuna\"\n MenuProps={{\n classes: { paper: styles.customMenuPaper },\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'left',\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'left',\n },\n }}\n >\n \n {t('desconexion:paginas.estoySinLuz.formulario.campos.comuna.label')}\n \n\n {listadoComunas.map((item: any) => (\n \n {truncarTexto(item?.nombreComuna, cantidadCaracteresMaximosSelect)}\n \n ))}\n \n )}\n\n \n \n +56{' '}\n \n }\n />\n
\n \n
\n \n {!formik.errors.descripcion ? MAX_CARACTERES_CONSULTA - formik.values.descripcion.length : null} \n \n \n {!formik.errors.descripcion\n ? t('desconexion:paginas.estoySinLuz.formulario.contador', {\n total: MAX_CARACTERES_CONSULTA,\n })\n : null}\n \n
\n
\n \n
\n \n \"icono\"\n {t('desconexion:paginas.estoySinLuz.paso3.contenido.botones.volver')}\n \n \n {t('desconexion:paginas.estoySinLuz.paso3.contenido.botones.ir')}\n \n
\n
\n );\n};\nexport default FormDatos;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst Paso1Styles = makeStyles((theme: Theme) =>\n createStyles({\n numeroServicio: {\n width: '350px',\n display: 'flex',\n margin: '1.5rem auto 0 auto',\n [theme.breakpoints.down('sm')]: {\n maxWidth: '350px',\n width: 'auto',\n },\n },\n botonIr: {\n width: 'auto',\n marginTop: '2rem',\n fontSize: '14px',\n fontStyle: 'normal',\n fontWeight: 600,\n },\n input: {\n maxWidth: '396px',\n },\n recaptcha: {\n width: '304px',\n margin: '1.5rem auto 0 auto',\n },\n tooltip: {\n margin: '0',\n padding: '0',\n height: '30px',\n zIndex: 2,\n },\n tooltipIcon: {\n '--icon-primary-dark': 'var(--primario-morado)',\n },\n textos: {\n margin: '2rem auto 0 auto',\n maxWidth: '490px',\n },\n descripcion: {\n marginTop: '0.5rem',\n },\n imgTooltip: {\n margin: '0 auto',\n width: '342px',\n filter: 'drop-shadow(7px 7px 16px rgba(24, 57, 106, 0.16))',\n },\n tituloTooltip: {\n fontSize: '16px',\n fontStyle: 'normal',\n fontWeight: 600,\n lineHeight: '20px',\n color: 'var(--secundarios-azul-marino, #074177)',\n textAlign: 'center',\n paddingBottom: '12px',\n },\n parrafoTooltip: {\n fontSize: '14px',\n fontStyle: 'normal',\n fontWeight: 400,\n lineHeight: '18px',\n textAlign: 'center',\n paddingBottom: '20px',\n },\n })\n);\n\nexport default Paso1Styles;\n","import { Button, IconButton } from '@material-ui/core';\nimport { AyudaLinearIcon, Input, Modal, Typography } from '@saesa/ui-kit-front';\nimport { tooltipServicio } from 'assets/images';\nimport { ETAPAS } from 'config/tipoEtapasEnum';\nimport { useFormik } from 'formik';\nimport { InfoClienteModel } from 'models';\nimport { Dispatch, SetStateAction, useEffect, useState } from 'react';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch } from 'react-redux';\nimport DesconexionService from 'services/desconexionService';\nimport { TokenRequestDesconexionModel } from 'services/models';\nimport { actualizarLogo, actualizarPasoActual } from 'store';\nimport { obtenerLogo } from 'utils';\nimport { EtapasNumero } from 'config';\nimport { useSnackbar } from 'notistack';\nimport { esDatoValido, validarCorte } from 'utils/desconexionUtils';\nimport * as Yup from 'yup';\nimport useStyles from './Paso1Styles';\n\nconst Paso1 = ({\n className,\n onClickRedireccionEtapa,\n setInfoCliente,\n}: {\n className?: string;\n onClickRedireccionEtapa: (etapa: ETAPAS) => void;\n setInfoCliente: Dispatch>;\n}) => {\n const dispatch = useDispatch();\n /**\n * useRef de captcha\n */\n let captchaRef: ReCAPTCHA;\n /**\n * Valor de formik\n */\n let formik: any;\n /**\n * Uso del i18n para traducciones\n */\n const { t } = useTranslation();\n /**\n * Componente de hoja de estilos\n */\n const styles = useStyles();\n /**\n * useState tipo booleano para mostrar modal\n */\n const [mostrarModal, setMostrarModal] = useState(false);\n /**\n * UseRef de recaptcha\n */\n const setCaptchaRef = (ref: ReCAPTCHA | null) => {\n if (ref) {\n captchaRef = ref;\n return captchaRef;\n }\n return captchaRef;\n };\n const cerrarModal = () => {\n setMostrarModal(false);\n };\n /**\n * Enviroment de google catpcha\n */\n const googleCaptchaKey = process.env.REACT_APP_CAPTCHA_KEY || '';\n\n /**\n * Componente de pildora\n */\n const { enqueueSnackbar } = useSnackbar();\n\n /**\n * Interface de formulario\n */\n interface FormValues {\n numServicio: string;\n captcha: string;\n }\n\n /**\n * Valores iniciales de formulario\n */\n const initialValues: FormValues = {\n numServicio: '',\n captcha: '',\n };\n\n /**\n * Funcion encargada de desplegar pildora de error.\n * @param error a desplegar\n */\n const mostrarPildoraError = (error: any) => {\n enqueueSnackbar(t(`errors:${error?.response?.data?.mensaje}`), {\n variant: 'error',\n });\n };\n\n /**\n * On submit de formulario\n */\n const onSubmit = (formValues: any) => {\n let actualizarLogoBody = {\n urlLogo: obtenerLogo(null),\n };\n const request: TokenRequestDesconexionModel = {\n captcha: formValues.captcha,\n servicio: formik.values.numServicio,\n };\n DesconexionService.obtenerTokenDesconexion(request)\n .then(responseDesconexion => {\n localStorage.setItem('token', responseDesconexion.token);\n DesconexionService.obtenerEstadoServicio(request.servicio)\n .then(responseCodigo => {\n if (esDatoValido(responseCodigo.codDistribuidora)) {\n actualizarLogoBody = {\n urlLogo: obtenerLogo(responseCodigo.codDistribuidora),\n };\n dispatch(actualizarLogo(actualizarLogoBody));\n }\n let infoClienteModel = {\n numeroCliente: formik.values.numServicio,\n codDistribuidora: responseCodigo.codDistribuidora,\n comuna: responseCodigo.comuna,\n localidad: responseCodigo.localidad,\n estadoServicio: responseCodigo.codigoEstadoSuministro,\n };\n\n if (responseCodigo.cortes && responseCodigo.cortes !== null) {\n // Valida si tiene corte programado o imprevisto\n infoClienteModel = validarCorte(responseCodigo, infoClienteModel);\n }\n\n setInfoCliente(infoClienteModel);\n onClickRedireccionEtapa(ETAPAS.PASO2);\n })\n .catch(() => {\n dispatch(actualizarPasoActual(EtapasNumero.PASO3));\n // Se activa modo contingencia\n const infoClienteModel = {\n numeroCliente: formik.values.numServicio,\n codDistribuidora: '',\n comuna: '',\n localidad: '',\n estadoServicio: '',\n };\n setInfoCliente(infoClienteModel);\n\n onClickRedireccionEtapa(ETAPAS.PASO3);\n });\n })\n .catch(error => {\n mostrarPildoraError(error);\n });\n formik.resetForm();\n captchaRef.reset();\n };\n /**\n * Datos de formik\n */\n formik = useFormik({\n initialValues,\n onSubmit,\n validateOnMount: true,\n validationSchema: Yup.object({\n numServicio: Yup.string().required(t('errors.required')).soloNumero(t('errors.soloNumeros')).length(8, t('errors.length')),\n captcha: Yup.string().required(),\n }),\n });\n\n useEffect(() => {\n formik.resetForm();\n captchaRef.reset();\n }, [onClickRedireccionEtapa]);\n\n return (\n
\n
\n \n {t('desconexion:paginas.estoySinLuz.paso1.contenido.titulo')}\n \n \n {t('desconexion:paginas.estoySinLuz.paso1.contenido.descripcion')}\n \n
\n
\n
\n \n setMostrarModal(!mostrarModal)}>\n \n \n \n }\n />\n
\n setCaptchaRef(refCaptcha)}\n sitekey={googleCaptchaKey}\n onChange={value => {\n formik.setFieldValue('captcha', value);\n formik.setSubmitting(false);\n }}\n />\n \n \n {mostrarModal ? (\n \n \n {t('desconexion:paginas.estoySinLuz.paso1.modal.titulo')}\n \n \n {t('desconexion:paginas.estoySinLuz.paso1.modal.bajada')}\n \n \"{t('desconexion:paginas.estoySinLuz.paso1.modal.textoBoleta')}\"\n \n ) : null}\n
\n );\n};\n\nPaso1.defaultProps = {\n className: '',\n};\n\nexport default Paso1;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst Paso2Styles = makeStyles((theme: Theme) =>\n createStyles({\n link: {\n textDecoration: 'none',\n },\n detalleServicioOk: {\n display: 'flex',\n maxWidth: '400px',\n margin: '2rem auto 0 auto',\n justifyContent: 'space-between',\n [theme.breakpoints.down('sm')]: {\n maxWidth: '422px',\n minWidth: 'auto',\n },\n },\n detalleServicioFail: {\n padding: '1.25rem 2.875rem',\n [theme.breakpoints.down('sm')]: {\n padding: '1.25rem .625rem',\n maxWidth: '422px',\n minWidth: 'auto',\n },\n },\n recaptcha: {\n width: '50%',\n minWidth: '300px',\n margin: '.5rem auto 0 auto',\n },\n contenedorBotones: {\n display: 'flex',\n justifyContent: 'center',\n marginTop: '2rem',\n },\n botonIr: {\n [theme.breakpoints.down('sm')]: {\n width: '422px',\n maxWidth: '422px',\n },\n },\n iconoBoton: {\n marginLeft: '8px',\n },\n iconoCheck: {\n fill: 'var(--primario-neon)',\n },\n mensajeServicioOK: {\n maxWidth: 'fit-content',\n margin: '0 auto 0 auto',\n padding: '1.5rem 1rem 0 1rem',\n },\n mensajeServicioFail: {},\n mensajePago: {\n padding: '16px',\n background: 'var(--morado-l-98, #F7F5FF)',\n marginTop: '20px',\n display: 'flex',\n borderRadius: '10px',\n },\n contenedorMensajePago: {\n display: 'flex',\n justifyContent: 'center',\n },\n iconoMensajePago: {\n marginRight: '10px',\n },\n })\n);\n\nexport default Paso2Styles;\n","import { Typography } from '@saesa/ui-kit-front';\nimport { Button } from '@material-ui/core';\nimport clsx from 'clsx';\nimport { InfoCliente, MensajeServicio } from 'components';\nimport { ETAPAS } from 'config/tipoEtapasEnum';\nimport { InfoClienteModel } from 'models';\nimport { useTranslation } from 'react-i18next';\nimport { useHistory } from 'react-router-dom';\nimport { TipoCorteServicio } from 'config/tipoCorteServicioEnum';\nimport { TIPOCORTE } from 'config/tiposCorte';\nimport { iconoInformacion, iconoRedireccion } from 'assets/images';\nimport { useEffect, useState } from 'react';\nimport { TipoDistribuidora } from 'config/tipoDistribuidoraEnum';\nimport { MAPACORTES } from 'root-page';\nimport useStyles from './Paso2Styles';\n\nconst Paso2 = ({\n className,\n onClickRedireccionEtapa,\n infoCliente,\n}: {\n className?: string;\n onClickRedireccionEtapa: (etapa: ETAPAS) => void;\n infoCliente: InfoClienteModel;\n}) => {\n /**\n * Componente de hoja de estilos\n */\n const styles = useStyles();\n /**\n * Uso del i18n para traducciones\n */\n const { t } = useTranslation();\n /**\n * Componente history gestor ruteos\n */\n const history = useHistory();\n\n /**\n * Obtiene url de pago según la distribuidora\n * @returns url de pago según distribuidora\n */\n const generarURLPago = () => {\n switch (infoCliente.codDistribuidora) {\n case TipoDistribuidora.EDELAYSEN:\n return process.env.REACT_APP_URL_PAGO_EDELAYSEN;\n case TipoDistribuidora.FRONTEL:\n return process.env.REACT_APP_URL_PAGO_FRONTEL;\n case TipoDistribuidora.LUZ_OSORNO:\n return process.env.REACT_APP_URL_PAGO_LUZOSORNO;\n default:\n return process.env.REACT_APP_URL_PAGO_SAESA;\n }\n };\n\n /**\n * Accion boton que avanza a paso 3\n */\n const onClickIr = () => {\n // Objeto de parametros para la url de mapa\n const parametros = {\n empresa: infoCliente.codDistribuidora,\n cliente: infoCliente.numeroCliente,\n };\n\n switch (infoCliente.estadoServicio) {\n case TipoCorteServicio.NORMAL:\n onClickRedireccionEtapa(ETAPAS.PASO3);\n break;\n case TipoCorteServicio.CORTADO:\n window.location.href = generarURLPago()!;\n break;\n case TipoCorteServicio.TRAMITE_CORTE:\n window.location.href = generarURLPago()!;\n break;\n case TIPOCORTE.COD_CORTE_IMPREVISTO:\n history.push(`${MAPACORTES}?${new URLSearchParams(parametros).toString()}`);\n break;\n case TIPOCORTE.COD_CORTE_PROGRAMADO:\n history.push(`${MAPACORTES}?${new URLSearchParams(parametros).toString()}`);\n break;\n default:\n onClickRedireccionEtapa(ETAPAS.PASO3);\n }\n };\n\n /**\n * Obtiene texto del botón según el estado del servicio\n * @param estadoServicio del cliente\n * @returns texto del botón\n */\n const obtenerTextoBoton = (estadoServicio: string) => {\n switch (estadoServicio) {\n case TipoCorteServicio.NORMAL:\n return t('desconexion:paginas.estoySinLuz.paso2.contenido.botones.ir');\n case TipoCorteServicio.CORTADO:\n return t('desconexion:paginas.estoySinLuz.paso2.corteComercial.botones.ir');\n case TipoCorteServicio.TRAMITE_CORTE:\n return t('desconexion:paginas.estoySinLuz.paso2.corteTramite.botones.ir');\n case TIPOCORTE.COD_CORTE_IMPREVISTO:\n return t('desconexion:paginas.estoySinLuz.paso2.corteProgramado.botones.ir');\n case TIPOCORTE.COD_CORTE_PROGRAMADO:\n return t('desconexion:paginas.estoySinLuz.paso2.corteImprevisto.botones.ir');\n default:\n return t('desconexion:paginas.estoySinLuz.paso2.contenido.botones.ir');\n }\n };\n\n /**\n * Obtiene mensaje de pago\n * @returns mensaje de pago\n */\n const mensajePago = () => {\n if (infoCliente.estadoServicio === TipoCorteServicio.CORTADO || infoCliente.estadoServicio === TipoCorteServicio.TRAMITE_CORTE) {\n return (\n
\n \n \"icono\"\n {t('desconexion:paginas.estoySinLuz.paso2.corteComercial.glosaPago')}\n \n
\n );\n }\n\n return <>;\n };\n\n /**\n * Estado para manejo de contenido por tipo.\n */\n const [renderContenido, setRenderContenido] = useState(mensajePago());\n\n /**\n * Efecto que gatilla el cambio del mensaje por tipo\n */\n useEffect(() => {\n setRenderContenido(mensajePago());\n }, [infoCliente]);\n\n return (\n
\n \n \n {infoCliente.estadoServicio !== TipoCorteServicio.REPOSICION && (\n
\n \n
\n )}\n\n {renderContenido}\n
\n );\n};\n\nPaso2.defaultProps = {\n className: '',\n};\n\nexport default Paso2;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst Paso3Styles = makeStyles((theme: Theme) =>\n createStyles({\n detalleServicioOk: {\n display: 'flex',\n maxWidth: '422px',\n margin: '2.125rem auto 0 auto',\n justifyContent: 'space-between',\n [theme.breakpoints.down('sm')]: {\n maxWidth: '422px',\n minWidth: 'auto',\n },\n },\n detalleServicioFail: {\n padding: '1.25rem 2.875rem',\n [theme.breakpoints.down('sm')]: {\n padding: '1.25rem .625rem',\n maxWidth: '422px',\n minWidth: 'auto',\n },\n },\n tituloFormulario: {\n marginTop: '1.5rem',\n textAlign: 'center',\n },\n texto: {\n maxWidth: '422px',\n margin: '0.5rem auto 0 auto',\n textAlign: 'center',\n },\n cardMapa: {\n width: '500px',\n maxWidth: '100%',\n display: 'flex',\n margin: '24px auto',\n padding: '20px',\n alignItems: 'flex-start',\n gap: '16px',\n },\n cardMapaTitulo: {\n color: 'var(--secundarios-azul-marino, #074177)',\n fontSize: '16px',\n fontStyle: 'normal',\n fontWeight: 600,\n lineHeight: '20px',\n },\n cardMapaBajada: {\n fontSize: '14px',\n fontStyle: 'normal',\n fontWeight: 400,\n lineHeight: '18px',\n marginTop: '4px',\n },\n botonMapa: {\n margin: 'auto',\n },\n imagenBotonMapa: {\n width: '24px',\n [theme.breakpoints.down('sm')]: {\n width: '40px',\n },\n },\n })\n);\n\nexport default Paso3Styles;\n","import { Card, Typography } from '@saesa/ui-kit-front';\nimport clsx from 'clsx';\nimport { InfoCliente } from 'components';\nimport { ETAPAS } from 'config/tipoEtapasEnum';\nimport { InfoClienteModel } from 'models';\nimport { FormDatos } from 'pages/Desconexion';\nimport { useTranslation } from 'react-i18next';\nimport { iconoMapa, iconoRedireccionMorado } from 'assets/images';\nimport { MAPACORTES } from 'root-page';\nimport { useEffect } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport useStyles from './Paso3Styles';\n\nconst Paso3 = ({\n className,\n onClickRedireccionEtapa,\n infoCliente,\n}: {\n className?: string;\n onClickRedireccionEtapa: (etapa: ETAPAS) => void;\n infoCliente: InfoClienteModel;\n}) => {\n const { t } = useTranslation();\n const styles = useStyles();\n\n /**\n * Componente history gestor ruteos\n */\n const history = useHistory();\n\n /**\n * Use Effect encargado de volver al mapa desde el evento del link.\n */\n useEffect(() => {\n // Obtiene el enlace para volver al mapa en base al id del elemento\n const enlace = document.getElementById('irAlMapa');\n if (enlace) {\n enlace.addEventListener('click', e => {\n e.preventDefault();\n\n // Objeto de parametros para la url\n const parametros = {\n empresa: infoCliente.codDistribuidora,\n cliente: infoCliente.numeroCliente,\n };\n\n // Añade parametros a la url de empresa y cliente\n const url = `${enlace.getAttribute('href')}?${new URLSearchParams(parametros).toString()}`;\n history.push(url);\n });\n }\n }, [infoCliente]);\n\n return (\n
\n \n\n {infoCliente.codDistribuidora === '' && (\n \n \"icono\"\n\n
\n \n {t('desconexion:paginas.estoySinLuz.paso3.tituloMapa')}\n \n \n {t('desconexion:paginas.estoySinLuz.paso3.bajadaMapa')}\n \n
\n\n \n \"icono\"\n \n
\n )}\n\n \n {t('desconexion:paginas.estoySinLuz.paso3.contenido.datosContacto')}\n \n \n {t('desconexion:paginas.estoySinLuz.paso3.contenido.descripcion')}\n \n \n
\n );\n};\n\nPaso3.defaultProps = {\n className: '',\n};\n\nexport default Paso3;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst Paso4Styles = makeStyles((theme: Theme) =>\n createStyles({\n iconoCheck: {\n fill: 'var(--primario-neon)',\n },\n iconoManoArriba: {\n margin: '2rem auto 0 auto',\n '--icon-primary-light': 'hsla(var(--valor-primario-morado), 0.5)',\n '--icon-purple': 'var(--secundarios-azul-marino, #074177)',\n width: '168px',\n height: '125px',\n [theme.breakpoints.down('sm')]: {\n width: '200px',\n },\n },\n contenido: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n margin: '0 auto',\n maxWidth: '500px',\n },\n reporteExito: {\n color: 'var(--secundarios-azul-marino, #074177)',\n margin: '1.75rem auto 0 auto',\n fontWeight: 600,\n fontSize: '18px',\n fontStyle: 'normal',\n lineHeight: '18px',\n },\n descripcion: {\n margin: '0.75rem auto 0 auto',\n maxWidth: '500px',\n textAlign: 'center',\n fontSize: '16px',\n lineHeight: '24px',\n lineWeight: '400',\n },\n numeroSeguimiento: {\n margin: '0.75rem auto 0 auto',\n fontSize: '16px',\n lineHeight: '24px',\n fontWeight: 600,\n textAlign: 'center',\n },\n contenedorDisclaimer: {\n display: 'flex',\n justifyContent: 'center',\n maxWidth: '100%',\n padding: '16px',\n background: 'var(--morado-l-98, #F7F5FF)',\n marginTop: '32px',\n borderRadius: '10px',\n },\n iconoMensajeDisclaimer: {\n marginRight: '10px',\n height: '17px',\n },\n mensajeDisclaimer: {\n textAlign: 'left',\n fontSize: '14px',\n },\n boton: {\n cursor: 'pointer',\n display: 'flex',\n justifyContent: 'center',\n marginTop: '2rem',\n textDecoration: 'none',\n fontSize: '14px',\n fontWeight: 600,\n lineHeight: '18px',\n '&:hover': {\n color: 'var(--morado-l36)',\n },\n },\n })\n);\n\nexport default Paso4Styles;\n","import { ConfirmacionIcon } from '@saesa/ui-kit-front';\nimport { useTranslation } from 'react-i18next';\nimport { InfoClienteModel } from 'models';\nimport { useEffect, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { RootState } from 'store';\nimport { setearDistribuidora } from 'utils/desconexionUtils';\nimport { iconoInformacion } from 'assets/images';\nimport { Typography } from '@material-ui/core';\nimport useStyles from './Paso4Styles';\n\nconst Paso4 = ({ className, infoCliente }: { className?: string; infoCliente: InfoClienteModel }) => {\n /**\n * Uso de estilos\n */\n const styles = useStyles();\n /**\n * Componente i18n de traduccion\n */\n const { t } = useTranslation();\n\n /**\n * Se obiene los datos de desconexion\n */\n const numeroSolicitud = useSelector((state: RootState) => state.desconexion.numeroSolicitud);\n\n /**\n * Datos iniciales de la distribuidora.\n */\n const distribuidora = {\n glosa: '',\n url: '',\n };\n\n /**\n * State Distribuidora\n */\n const [datosDistribuidora, setDatosDistribuidora] = useState(distribuidora);\n\n /**\n * Use effect encargado de refrescar la distribuidora.\n */\n useEffect(() => {\n setDatosDistribuidora(setearDistribuidora(infoCliente));\n }, [infoCliente]);\n\n return (\n
\n
\n \n {t('desconexion:paginas.estoySinLuz.paso4.contenido.titulo')}\n {t('desconexion:paginas.estoySinLuz.paso4.contenido.descripcion')}\n \n {`${t('desconexion:paginas.estoySinLuz.paso4.contenido.numeroSeguimiento')}${numeroSolicitud}`}\n \n
\n \"icono\"\n `${str}`,\n }),\n }}\n />\n
\n \n {t('desconexion:paginas.estoySinLuz.botonIrDistribuidora')} {datosDistribuidora.glosa}\n \n
\n
\n );\n};\n\nPaso4.defaultProps = {\n className: '',\n};\n\nexport default Paso4;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst PasoTicketEnProcesoStyles = makeStyles((theme: Theme) =>\n createStyles({\n iconoCheck: {\n fill: 'var(--primario-neon)',\n },\n iconoSuperior: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n margin: '2rem auto 0 auto',\n '--icon-primary-light': 'hsla(var(--valor-primario-morado), 0.5)',\n '--icon-purple': 'var(--secundarios-azul-marino, #074177)',\n width: '168px',\n height: '125px',\n [theme.breakpoints.down('sm')]: {\n width: '129px',\n height: '96px',\n },\n },\n contenido: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n },\n descripcion: {\n margin: '0.75rem auto 0 auto',\n maxWidth: '500px',\n textAlign: 'center',\n fontSize: '16px',\n lineHeight: '24px',\n },\n reporteExito: {\n color: 'var(--secundarios-azul-marino, #074177)',\n margin: '1.75rem auto 0 auto',\n textAlign: 'center',\n },\n boton: {\n cursor: 'pointer',\n display: 'flex',\n justifyContent: 'center',\n marginTop: '2rem',\n textDecoration: 'none',\n fontSize: '14px',\n fontWeight: 600,\n lineHeight: '18px',\n '&:hover': {\n color: 'var(--morado-l36)',\n },\n },\n })\n);\n\nexport default PasoTicketEnProcesoStyles;\n","import { Typography } from '@saesa/ui-kit-front';\nimport { useTranslation } from 'react-i18next';\nimport { InfoClienteModel } from 'models';\nimport { useEffect, useState } from 'react';\nimport { setearDistribuidora } from 'utils/desconexionUtils';\nimport { iconoReloj } from 'assets/images';\nimport useStyles from './PasoTicketEnProcesoStyles';\n\nconst PasoTicketEnProceso = ({ className, infoCliente }: { className?: string; infoCliente: InfoClienteModel }) => {\n /**\n * Uso de estilos\n */\n const styles = useStyles();\n\n /**\n * Componente i18n de traduccion\n */\n const { t } = useTranslation();\n\n /**\n * Datos iniciales de la distribuidora.\n */\n const distribuidora = {\n glosa: '',\n url: '',\n };\n\n /**\n * State Distribuidora.\n */\n const [datosDistribuidora, setDatosDistribuidora] = useState(distribuidora);\n\n /**\n * Use effect encargado de refrescar la distribuidora.\n */\n useEffect(() => {\n setDatosDistribuidora(setearDistribuidora(infoCliente));\n }, [infoCliente]);\n\n return (\n
\n
\n
\n \"alerta\"\n
\n \n {t('desconexion:paginas.estoySinLuz.pasoTicketEnProceso.contenido.titulo')}\n \n \n {t('desconexion:paginas.estoySinLuz.pasoTicketEnProceso.contenido.descripcion')}\n \n \n {t('desconexion:paginas.estoySinLuz.botonIrDistribuidora')} {datosDistribuidora.glosa}\n \n
\n
\n );\n};\n\nPasoTicketEnProceso.defaultProps = {\n className: '',\n};\n\nexport default PasoTicketEnProceso;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst PasoTicketIngresadoStyles = makeStyles((theme: Theme) =>\n createStyles({\n iconoCheck: {\n fill: 'var(--primario-neon)',\n },\n iconoSuperior: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n margin: '2rem auto 0 auto',\n '--icon-primary-light': 'hsla(var(--valor-primario-morado), 0.5)',\n '--icon-purple': 'var(--secundarios-azul-marino, #074177)',\n width: '168px',\n height: '125px',\n [theme.breakpoints.down('sm')]: {\n width: '129px',\n height: '96px',\n },\n },\n contenido: {\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n },\n reporteExito: {\n color: 'var(--secundarios-azul-marino, #074177)',\n margin: '1.75rem auto 0 auto',\n textAlign: 'center',\n },\n descripcion: {\n margin: '0.75rem auto 0 auto',\n maxWidth: '500px',\n textAlign: 'center',\n fontSize: '16px',\n lineHeight: '24px',\n },\n boton: {\n cursor: 'pointer',\n display: 'flex',\n justifyContent: 'center',\n marginTop: '2rem',\n textDecoration: 'none',\n fontSize: '14px',\n fontWeight: 600,\n lineHeight: '18px',\n '&:hover': {\n color: 'var(--morado-l36)',\n },\n },\n })\n);\n\nexport default PasoTicketIngresadoStyles;\n","import { Typography } from '@saesa/ui-kit-front';\nimport { useTranslation } from 'react-i18next';\nimport { InfoClienteModel } from 'models';\nimport { useEffect, useState } from 'react';\nimport { setearDistribuidora } from 'utils/desconexionUtils';\nimport { iconoReloj } from 'assets/images';\nimport useStyles from './PasoTicketIngresadoStyles';\n\nconst PasoTicketIngresado = ({ className, infoCliente }: { className?: string; infoCliente: InfoClienteModel }) => {\n /**\n * Componente i18n de traduccion\n */\n const { t } = useTranslation();\n\n /**\n * Uso de estilos\n */\n const styles = useStyles();\n\n /**\n * Datos iniciales de la distribuidora.\n */\n const distribuidora = {\n glosa: '',\n url: '',\n };\n\n /**\n * State Distribuidora\n */\n const [datosDistribuidora, setDatosDistribuidora] = useState(distribuidora);\n\n /**\n * Use effect encargado de refrescar la distribuidora.\n */\n useEffect(() => {\n setDatosDistribuidora(setearDistribuidora(infoCliente));\n }, [infoCliente]);\n\n return (\n
\n
\n
\n \"alerta\"\n
\n \n {t('desconexion:paginas.estoySinLuz.pasoTicketIngresado.contenido.titulo')}\n \n \n {t('desconexion:paginas.estoySinLuz.pasoTicketIngresado.contenido.descripcion')}\n \n \n {t('desconexion:paginas.estoySinLuz.botonIrDistribuidora')} {datosDistribuidora.glosa}\n \n
\n
\n );\n};\n\nPasoTicketIngresado.defaultProps = {\n className: '',\n};\n\nexport default PasoTicketIngresado;\n","import { createStyles, makeStyles, Theme } from '@material-ui/core';\n\nconst EstoySinLuzStyles = makeStyles((theme: Theme) =>\n createStyles({\n estoySinLuz: {\n margin: '1.875rem auto 4.5rem auto',\n minWidth: '1090px',\n [theme.breakpoints.down('sm')]: {\n margin: '1.875rem 1.25rem 1rem 1.25rem',\n minWidth: 'inherit',\n },\n },\n contenedor: {},\n contenidoPaso1: {\n padding: '0 146px',\n textAlign: 'center',\n [theme.breakpoints.down('sm')]: {\n padding: 'initial',\n },\n },\n contenidoPaso2: {\n padding: '0 146px',\n [theme.breakpoints.down('sm')]: {\n padding: '0',\n },\n },\n contenidoPaso3: {\n padding: '0 104px',\n [theme.breakpoints.down('sm')]: {\n padding: '0',\n },\n },\n contenidoPaso4: {\n padding: '0 146px',\n [theme.breakpoints.down('sm')]: {\n padding: '0',\n },\n },\n contenidoPasoTicketIngresado: {\n [theme.breakpoints.down('sm')]: {\n padding: '0',\n },\n },\n contenidoPasoTicketEnProceso: {\n [theme.breakpoints.down('sm')]: {\n padding: '0',\n },\n },\n ocultar: {\n display: 'none !important',\n },\n logo: {\n margin: '0 auto',\n marginTop: '20px',\n marginBottom: '40px',\n height: '32px',\n },\n urlDistribuidora: {\n display: 'flex',\n justifyContent: 'center',\n marginTop: '40px',\n textDecoration: 'none',\n fontSize: '14px',\n fontStyle: 'normal',\n fontWeight: 600,\n lineHeight: '18px',\n },\n etapas: {\n margin: '0 auto 0 auto',\n width: '800px',\n [theme.breakpoints.down('sm')]: {\n width: 'auto',\n marginTop: '0',\n },\n },\n })\n);\n\nexport default EstoySinLuzStyles;\n","import clsx from 'clsx';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { actualizarEstadoFlagEstoySinLuz, actualizarEstadoModalPaginaNoDisponible, RootState } from 'store';\nimport { PagesItem } from 'components';\nimport { ETAPAS } from 'config/tipoEtapasEnum';\nimport { InfoClienteModel } from 'models';\nimport { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { milisegundosPorMinuto } from 'utils/constants';\nimport { setearDistribuidora } from 'utils/desconexionUtils';\nimport { Stepper } from '@saesa/ui-kit-front';\nimport DesconexionService from 'services/desconexionService';\nimport { mostrarModalCookie } from 'utils/cookieUtils';\nimport ModalSitioNoDisponible from 'components/ModalSitioNoDisponible/ModalSitioNoDisponible';\nimport { EtapasModel } from 'models/EtapasModel';\nimport { Paso1, Paso2, Paso3, Paso4, PasoTicketEnProceso, PasoTicketIngresado } from '..';\nimport useStyles from './EstoySinLuzStyles';\nimport './estilosPredefinidos.css';\n\nconst EstoySinLuz = () => {\n /**\n * Uso del i18n para traducciones\n */\n const { t } = useTranslation();\n /**\n * Componente de hoja de estilos\n */\n const styles = useStyles();\n\n /**\n * Disparador para el selector\n */\n const dispatch = useDispatch();\n\n /**\n * UseState de tipo ETAPAS\n */\n const [pasoActual, setPasoActual] = useState(ETAPAS.PASO1);\n /**\n * Logo distribuidora según numero de servicio\n */\n const logo = useSelector((state: RootState) => state.desconexion.distribuidora);\n\n /**\n * Modelo de etapas para stepper\n */\n const etapas: EtapasModel = {\n etapas: [ETAPAS.PASO1, ETAPAS.PASO2, ETAPAS.PASO3],\n nombreEtapas: [\n t('desconexion:paginas.estoySinLuz.etapas.1'),\n t('desconexion:paginas.estoySinLuz.etapas.2'),\n t('desconexion:paginas.estoySinLuz.etapas.3'),\n ],\n };\n\n /**\n * Objeto de cliente vacío\n */\n const inicialInfoCliente = {\n numeroCliente: '',\n codDistribuidora: '',\n calle: '',\n comuna: '',\n localidad: '',\n estadoServicio: '',\n };\n /**\n * UseState de tipo ETAPAS\n */\n const [infoCliente, setInfoCliente] = useState(inicialInfoCliente);\n\n /**\n * Datos iniciales de la distribuidora.\n */\n const distribuidora = {\n glosa: '',\n url: '',\n };\n\n /**\n * State Distribuidora\n */\n const [datosDistribuidora, setDatosDistribuidora] = useState(distribuidora);\n\n /**\n * UseState que controla el estado del modal de no disponible\n */\n const [modalNoDisponible, setModalNoDisponible] = useState(false);\n\n /**\n * Obtiene el valor del flag del estado modal no disponible\n */\n const modalNoDisponibleFlagVisible = useSelector((state: RootState) => state.desconexion.modalPaginaNoDisponible.activacionModal);\n\n /**\n * Obtiene el valor del flag delvalor en minutos de la cookie para el modal no disponible\n */\n const valorMinutosModal = useSelector((state: RootState) => state.desconexion.modalPaginaNoDisponible.tiempoCookie);\n\n /**\n * Obtiene el valor del flag estado de carga del flag\n */\n const flagCargado: boolean = useSelector((state: RootState) => state.desconexion.flagCargadoEstoySinLuz);\n\n /**\n * Observador de click modal\n * @param paso etapa de tipo ETAPAS\n */\n const onClickRedireccionEtapa = (paso: ETAPAS) => {\n setPasoActual(paso);\n };\n\n /**\n * Obtiene el paso actual según la etapa del flujo.\n * @returns paso actual para el Stepper\n */\n const obtenerPasoActual = () => {\n switch (pasoActual) {\n case ETAPAS.PASO3:\n return +ETAPAS.PASO1;\n case ETAPAS.PASO4:\n case ETAPAS.PASO_TICKET_INGRESADO:\n case ETAPAS.PASO_TICKET_EN_PROCESO:\n return +ETAPAS.PASO2;\n default:\n return +ETAPAS.DEFAULT;\n }\n };\n\n /**\n * Obtiene el valor de la feature flag\n */\n const obtenerFeatureFlag = () => {\n DesconexionService.obtenerFeatureFlag()\n .then(response => {\n dispatch(actualizarEstadoModalPaginaNoDisponible(response.web.modalSitioNoDisponible));\n dispatch(actualizarEstadoFlagEstoySinLuz(true));\n })\n .catch(() => {\n dispatch(actualizarEstadoModalPaginaNoDisponible({ tiempoCookie: 0, activacionModal: false }));\n dispatch(actualizarEstadoFlagEstoySinLuz(false));\n });\n };\n\n /**\n * Función para cerrar modal de no disponible\n */\n const cerrarModalNoDisponible = () => {\n setModalNoDisponible(false);\n };\n\n /**\n * Constante que contiene el tiempo para mostrar el modal\n */\n const tiempoMostrarModal = valorMinutosModal * milisegundosPorMinuto;\n\n /**\n * Use effect encargado de refrescar la distribuidora.\n */\n useEffect(() => {\n setDatosDistribuidora(setearDistribuidora(infoCliente));\n }, [infoCliente]);\n\n /**\n * Use effect para inicializar el featureFlag\n */\n useEffect(() => {\n obtenerFeatureFlag();\n }, []);\n\n /**\n * UseEffect que maneja el estado de la cookie del modal\n */\n useEffect(() => {\n if (valorMinutosModal > 0 && modalNoDisponibleFlagVisible) {\n setModalNoDisponible(mostrarModalCookie('cookieEstoySinLuz', tiempoMostrarModal));\n }\n }, [flagCargado]);\n\n return (\n
\n {modalNoDisponible && modalNoDisponibleFlagVisible && }\n\n \"{t('desconexion:paginas.estoySinLuz.grupoSaesa')}\"\n\n \n \n\n \n \n \n \n \n \n \n\n \n {t('desconexion:paginas.estoySinLuz.botonIrDistribuidora')} {datosDistribuidora.glosa}\n \n
\n );\n};\n\nexport default EstoySinLuz;\n"],"sourceRoot":""}