{"version":3,"sources":["components/UI/NavBar.js","utils/notification.js","utils/errors.js","services/service.js","services/denunciaService.js","components/Forms/Rights.js","components/common/ModalCode.js","components/Forms/Consulta.js","components/Forms/Denuncia.js","pages/HomePage.js","utils/constants.js","components/common/ErrorMessage.js","components/common/Input.js","components/common/ComplaintComments.js","utils/format.js","components/Forms/Buscar.js","BuzonEticoApp.js","index.js"],"names":["Navbar","className","alt","src","notification","title","message","type","store","addNotification","container","animationIn","animationOut","dismiss","duration","success","error","HTTP_ERRORS","REQUIRED","callService","url","options","noJson","noOperationResult","a","fetch","response","ok","handleError","text","json","data","hasOwnProperty","errorMessage","console","log","customCode","status","getCategoria","getTipoDenuncia","getTipoRelacion","getTextosConfig","getCodeConsulta","getComplaintByCode","code","password","setDenunciaComment","fromManager","method","body","JSON","stringify","headers","ChangePassword","newPassword","sePuedeCambiarPassword","Rights","useState","textosConfig","setTextosConfig","useEffect","getTextoConfig","map","textos","key","Row","Col","md","dangerouslySetInnerHTML","__html","value","ModalCode","children","modalState","setModalState","showOverlay","positionModal","padding","Overlay","ContenedorModal","EncabezadoModal","BotonCerrar","onClick","styled","div","props","button","Consulta","showConsulta","setShowConsulta","disabled","setDisabled","archivo","setArchivo","clearName","setClearName","clearPhone","setClearPhone","clearEmail","setClearEmail","setCode","setPassword","fileRef","useRef","setText","isCopied","setIsCopied","getCode","copy","navigator","clipboard","writeText","setTimeout","copyPassword","handleSubmit","resetForm","formData","FormData","append","esAnonimo","descripcionConsulta","aceptaTerminos","axios","then","Swal","fire","position","icon","showConfirmButton","timer","handleCancel","handleChangeName","e","target","handleChangePhone","handleChangeEmail","initialValues","nombre","telefono","email","documento","onSubmit","validateOnChange","validateOnBlur","validationSchema","Yup","shape","matches","excludeEmptyString","test","undefined","current","files","size","min","required","oneOf","formik","name","component","placeholder","onChange","as","ref","InputGroup","Input","event","Button","Denuncia","showDenuncia","setShowDenuncia","categorias","setCategorias","fileRef1","tipoDenuncia","setTipoDenuncia","tipoRelacion","setTipoRelacion","getCategorias","getTipoDenuncias","getTiposRelacion","categoriasActivas","filter","cat","isActive","nombrePersonaDenunciada","descripcionDenuncia","periodoDeHechos","checked","checkedDenuncia","checkedRelacion","domicilio","lugar","HtmlTooltip","withStyles","theme","tooltip","backgroundColor","color","maxWidth","fontSize","typography","pxToRem","border","float","Tooltip","values","max","relacion","description","tipoRelacionId","toString","id","role","aria-labelledby","denuncia","tipoDenunciaId","Fragment","HomePage","Container","style","marginLeft","to","COMPLAINT_STATE","Pending","InProgress","Closed","Removed","ComplaintStatesOptions","label","ErrorMessage","InputForm","prepend","onPrependClick","noMargin","field","form","innerRef","_","get","errors","setFieldValue","currentTarget","setFieldTouched","onBlur","Label","for","ComplaintComments","comments","orderBy","item","xs","date","format","DateTimeFormatter","ofPattern","ZonedDateTime","parse","shortDateTimeFromString","createdAt","inProgress","closed","comment","CommentSchema","Errors","PasswordSchema","Newpassword","Buscar","complaint","setComplaint","showModal","setShowModal","showModalPass","setShowModalPass","showButtonPass","setShowButtonPass","boolPassword","setBoolPassword","file","setFile","getComplaint","result","handleSubmitComment","toggleModal","handleSubmitPass","toggleModalPass","handleDocumento","Badge","pill","find","f","tramiteEstadoId","href","documentos","length","doc","comentarios","includes","Modal","isOpen","toggle","autoFocus","ModalBody","enableReinitialize","render","rows","autoComplete","BuzonEticoApp","path","element","baseUrl","document","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","basename"],"mappings":"iPAEaA,EAAS,WAClB,OACI,yBAAKC,UAAU,8CACX,yBAAKC,IAAI,WAAWD,UAAU,eAAeE,IAAI,+F,0FCHvDC,EAAe,SAACC,EAAOC,EAASC,GAClCC,QAAMC,gBAAgB,CACtBJ,QACAC,UACAC,KAAMA,GAAQ,UACdG,UAAW,YACXC,YAAa,CAAC,WAAY,UAC1BC,aAAc,CAAC,WAAY,WAC3BC,QAAS,CACPC,SAAU,QASHC,EAAU,SAACV,EAAOC,GAC7BF,EAAaC,EAAOC,EAAS,YAUlBU,EAAQ,SAACX,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BAAqB,QAAQ,GAAGC,aAAa,SAChEC,GAAcH,SAASI,eAAe,QAE5CC,IAASZ,OACP,kBAAC,IAAD,CAAea,SAAUP,IACvB,kBAAC,IAAD,MACA,kBAAC,GAAD,OAEFI,M","file":"static/js/main.b49ab0d3.chunk.js","sourcesContent":["import React from 'react'\r\n\r\nexport const Navbar = () => {\r\n return (\r\n \r\n )\r\n}","import { store } from \"react-notifications-component\";\r\n\r\nconst notification = (title, message, type) => {\r\n store.addNotification({\r\n title,\r\n message,\r\n type: type || \"default\", // 'default', 'success', 'info', 'warning'\r\n container: \"top-right\", // where to position the notifications\r\n animationIn: [\"animated\", \"fadeIn\"], // animate.css classes that's applied\r\n animationOut: [\"animated\", \"fadeOut\"], // animate.css classes that's applied\r\n dismiss: {\r\n duration: 3000,\r\n },\r\n });\r\n};\r\n\r\nexport const notify = (title, message) => {\r\n notification(title, message, \"default\");\r\n};\r\n\r\nexport const success = (title, message) => {\r\n notification(title, message, \"success\");\r\n};\r\n\r\nexport const info = (title, message) => {\r\n notification(title, message, \"info\");\r\n};\r\n\r\nexport const warning = (title, message) => {\r\n notification(title, message, \"warning\");\r\n};\r\nexport const error = (title, message) => {\r\n notification(title, message, \"danger\");\r\n};","export const HTTP_ERRORS = {\r\n _500: \"Ha ocurrido un error al procesar la petición. Por favor, póngase en contacto con el administrador o vuelva a intentarlo más tarde.\",\r\n _400: \"Ha ocurrido un error en el envío de la petición.\",\r\n _401: \"No tiene permisos para ejecutar esta acción.\",\r\n _600: \"No tiene permisos para ver esa página\",\r\n _EXCEPTION: \"Ha ocurrido un error en la llamada al servicio.\",\r\n};\r\nexport const REQUIRED = \"Campo obligatorio\";","import * as notification from \"../utils/notification\";\r\n\r\nimport { HTTP_ERRORS } from \"../utils/errors\";\r\n\r\nexport const callService = async (url, options, noJson, noOperationResult) => {\r\n try {\r\n const response = await fetch(url, options);\r\n if (!response.ok) handleError(response);\r\n else {\r\n if (noJson) return response.text();\r\n const data = await response.json();\r\n if (!noOperationResult && data.hasOwnProperty(\"success\")) {\r\n if (!data.success) {\r\n notification.error(\"\", data.errorMessage);\r\n }\r\n }\r\n return data;\r\n }\r\n } catch (e) {\r\n console.log(url);\r\n console.error(e);\r\n notification.error(\"\", HTTP_ERRORS._EXCEPTION);\r\n }\r\n};\r\n\r\nconst handleError = (response) => {\r\n if (response.customCode >= 600) {\r\n notification.error(\"\", \"Error de servidor \"+ HTTP_ERRORS._600);\r\n }\r\n if (response.status >= 500) {\r\n notification.error(\"\", \"Error de servidor \"+ HTTP_ERRORS._500);\r\n } else {\r\n notification.error(\"\", \r\n `Error ${\r\n response.status === 401 || response.status === 403\r\n ? HTTP_ERRORS._401\r\n : HTTP_ERRORS._400\r\n }`\r\n );\r\n }\r\n};\r\n\r\nexport const callServicePost = async (url, data) => {\r\n return await callService(url, {\r\n method: \"POST\",\r\n body: data,\r\n headers: {\r\n \"Content-Type\": \"Content-Type': 'multipart/form-data\",\r\n },\r\n });\r\n};\r\n\r\nexport const callServiceDelete = async (url, noOperationResult) => {\r\n return await callService(\r\n url,\r\n {\r\n method: \"DELETE\",\r\n },\r\n false,\r\n noOperationResult\r\n );\r\n};\r\n","import { callService, callServicePost, callServiceDelete } from \"./service\";\r\nconst url_base = \"form\";\r\n\r\nexport const getCategoria = async () => {\r\n return await callService(`${url_base}/categorias`);\r\n};\r\nexport const getTipoDenuncia = async () => {\r\n return await callService(`${url_base}/tipoDenuncia`);\r\n};\r\nexport const getTipoRelacion = async () => {\r\n return await callService(`${url_base}/tipoRelacion`);\r\n};\r\nexport const getTextosConfig = async () => {\r\n return await callService(`${url_base}/textosConfig`);\r\n};\r\nexport const getCodeConsulta = async() => {\r\n return await callService(`${url_base}/GetCodeConsulta`)\r\n}\r\nexport const getComplaintByCode = async (code, password) => {\r\n return await callService(`${url_base}/GetComplaintByCode/${code}/${password}`);\r\n};\r\nexport const setDenunciaComment = async (code, message, fromManager) => {\r\n return await callService(\r\n `${url_base}/SetDenunciaComment/${code}/${message}/${fromManager}`,\r\n {\r\n method: \"POST\",\r\n body: JSON.stringify({ code, message, fromManager }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n },\r\n false,\r\n false\r\n );\r\n};\r\nexport const ChangePassword = async (code, password, newPassword) => {\r\n return await callService(\r\n `${url_base}/ChangePassword/${code}/${password}/${newPassword}`,\r\n {\r\n method: \"POST\",\r\n body: JSON.stringify({ code, password, newPassword }),\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n },\r\n false,\r\n false\r\n );\r\n};\r\n\r\nexport const sePuedeCambiarPassword = async (code, password) => {\r\n return await callService(`${url_base}/sePuedeCambiarPassword/${code}/${password}`);\r\n};\r\nexport const setDocumento = async (documento) => {\r\n return await callService(\r\n `${url_base}/documento`,\r\n {\r\n method: \"POST\",\r\n data: documento,\r\n },\r\n false,\r\n false\r\n );\r\n};","import React, { useEffect, useRef, useState } from 'react'\r\nimport { ErrorMessage, Field, Form, Formik } from 'formik';\r\nimport {getTextosConfig} from '../../services/denunciaService';\r\nimport { Col, Row } from 'reactstrap';\r\n\r\nconst Rights = () => {\r\n const [textosConfig, setTextosConfig] = useState([]);\r\n\r\n useEffect(() => {\r\n getTextoConfig();\r\n }, [])\r\n\r\n const getTextoConfig = async () => {\r\n const response = await getTextosConfig();\r\n setTextosConfig(response);\r\n }\r\n return (\r\n
\r\n {textosConfig.map(textos => ( \r\n
\r\n {textos.key == \"Responsable\" ?\r\n \r\n

{textos.key}

\r\n
\r\n
\r\n : ''}\r\n {textos.key == \"Finalidad\" ?\r\n \r\n

{textos.key}

\r\n
\r\n
\r\n : ''}\r\n {textos.key == \"Legitimación\" ?\r\n \r\n

{textos.key}

\r\n
\r\n
\r\n : ''}\r\n {textos.key == \"Destinarios\" ?\r\n \r\n

{textos.key}

\r\n
\r\n
\r\n : ''}\r\n {textos.key == \"Derechos\" ?\r\n \r\n

{textos.key}

\r\n
\r\n
\r\n : ''}\r\n
\r\n ))} \r\n
\r\n )\r\n}\r\n\r\nexport default Rights\r\n","import React from 'react'\r\nimport styled from 'styled-components'\r\nimport { FaTimes } from \"react-icons/fa\";\r\n\r\n\r\nexport const ModalCode = ({\r\n children,\r\n modalState,\r\n setModalState,\r\n showOverlay,\r\n positionModal,\r\n padding\r\n}) => {\r\n\r\n \r\n return (\r\n <>\r\n {\r\n modalState &&\r\n \r\n \r\n \r\n {\r\n setModalState(false)\r\n }\r\n }\r\n >\r\n \r\n \r\n {children}\r\n \r\n \r\n }\r\n \r\n )\r\n}\r\n\r\nconst Overlay = styled.div`\r\n width: 100vw;\r\n height: 100vh;\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n background: ${ props => props.showOverlay ? 'rgba(0, 0, 0, .5)': 'rgba(0, 0, 0, 0)' } ;\r\n padding: 40px;\r\n display: flex;\r\n align-items: ${ props => props.positionModal ? props.positionModal : 'center'};\r\n justify-content: center;\r\n z-index: 1;\r\n\r\n`;\r\n\r\nconst ContenedorModal = styled.div`\r\n width: 500px;\r\n min-height: 100px;\r\n background: #fff;\r\n position: relative;\r\n top: 80px;\r\n border-radius: 5px;\r\n box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;\r\n padding: 20px;\r\n`\r\n\r\nconst EncabezadoModal = styled.div`\r\n display:flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n margin-bottom: 20px;\r\n padding-bottom: 20px;\r\n border-button: 1px solid #E8E8E8;\r\n\r\n h3{\r\n font-weight: 500;\r\n font-size: 16px;\r\n color: #1766DC;\r\n }\r\n`\r\n\r\nconst BotonCerrar = styled.button`\r\n\tposition: absolute;\r\n\ttop: 15px;\r\n\tright: 20px;\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tborder: none;\r\n\tbackground: none;\r\n\tcursor: pointer;\r\n\ttransition: .3s ease all;\r\n\tborder-radius: 5px;\r\n\tcolor: #1766DC;\r\n\t&:hover {\r\n\t\tbackground: #f2f2f2;\r\n\t}\r\n`;","import { ErrorMessage, Field, Form, Formik, yupToFormErrors } from 'formik'\r\nimport * as Yup from 'yup';\r\nimport React, { useRef, useState, useEffect } from 'react'\r\nimport Rights from './Rights';\r\nimport { getCodeConsulta} from '../../services/denunciaService';\r\nimport * as notification from \"../../utils/notification\";\r\nimport axios from 'axios';\r\nimport Swal from 'sweetalert2';\r\nimport { Row, Col, Button, InputGroup, Input as InputReact } from \"reactstrap\";\r\nimport { ModalCode } from \"../common/ModalCode\";\r\n\r\nconst Consulta = ({ showConsulta, setShowConsulta }) => {\r\n\r\n const [disabled, setDisabled] = useState(false);\r\n const [archivo, setArchivo] = useState(null);\r\n const [clearName, setClearName] = useState();\r\n const [clearPhone, setClearPhone] = useState();\r\n const [clearEmail, setClearEmail] = useState();\r\n const [code, setCode] = useState();\r\n const[password, setPassword] = useState();\r\n const fileRef = useRef();\r\n\r\n const [modalState, setModalState] = useState(false);\r\n const [text, setText] = useState('');\r\n const [isCopied, setIsCopied] = useState(false);\r\n\r\n useEffect(() => {\r\n getCode();\r\n }, [])\r\n\r\n const getCode = async () => {\r\n const response = await getCodeConsulta();\r\n setCode(response.code);\r\n setPassword(response.password);\r\n }\r\n const inputHandlerCode = event => {\r\n setText(event.target.value);\r\n }\r\n const inputHandlerPassword = event => {\r\n setText(event.target.value);\r\n }\r\n const copy = async () => {\r\n await navigator.clipboard.writeText(code);\r\n setIsCopied(true);\r\n setTimeout(() => {\r\n setIsCopied(false);\r\n }, 1000);\r\n }\r\n const copyPassword = async () => {\r\n await navigator.clipboard.writeText(password);\r\n setIsCopied(true);\r\n setTimeout(() => {\r\n setIsCopied(false);\r\n }, 1000);\r\n }\r\n const handleSubmit = async (data, resetForm) => {\r\n const formData = new FormData();\r\n\r\n formData.append(\"nombre\", clearName);\r\n formData.append(\"telefono\", clearPhone);\r\n formData.append(\"email\", clearEmail);\r\n formData.append(\"esAnonimo\", data.esAnonimo);\r\n formData.append(\"descripcionConsulta\", data.descripcionConsulta);\r\n formData.append(\"documento\", archivo);\r\n formData.append(\"aceptaTerminos\", data.aceptaTerminos);\r\n formData.append(\"code\", code);\r\n formData.append(\"password\", password);\r\n try {\r\n await axios({\r\n method: 'post',\r\n url: \"form\",\r\n data: formData,\r\n headers: { 'Content-Type': 'multipart/form-data' }\r\n }).then(({ data }) => {\r\n if (data.success) {\r\n Swal.fire({\r\n position: 'center',\r\n icon: 'success',\r\n title: 'Consulta enviada correctamente',\r\n showConfirmButton: false,\r\n timer: 1000\r\n })\r\n setModalState(true);\r\n resetForm();\r\n } else {\r\n Swal.fire({\r\n position: 'center',\r\n icon: 'error',\r\n title: 'No se ha podido guardar',\r\n showConfirmButton: false,\r\n timer: 1500\r\n })\r\n }\r\n })\r\n } catch (error) {\r\n notification.error(\"\", error.message || \"Problemas en la llamada al servidor\");\r\n }\r\n\r\n };\r\n\r\n const handleCancel = () => {\r\n setShowConsulta(!showConsulta)\r\n }\r\n\r\n const handleChangeName = (e) => {\r\n console.log(e);\r\n setClearName(e.target.value)\r\n }\r\n\r\n const handleChangePhone = (e) => {\r\n console.log(e);\r\n setClearPhone(e.target.value)\r\n }\r\n\r\n const handleChangeEmail = (e) => {\r\n console.log(e);\r\n setClearEmail(e.target.value)\r\n }\r\n return (\r\n
\r\n {\r\n\r\n handleSubmit(data, resetForm);\r\n // setShowConsulta(!showConsulta)\r\n }}\r\n validateOnChange={false}\r\n validateOnBlur={false}\r\n\r\n validationSchema={\r\n Yup.object().shape({\r\n nombre: Yup.string(),\r\n telefono: Yup.string()\r\n .matches(/(\\+34|0034|34)?[ -]*(6|7)[ -]*([0-9][ -]*){8}/, { message: \"Ingrese un número válido.\", excludeEmptyString: false }),\r\n email: Yup.string()\r\n .email('El correo no tiene un formato válido'),\r\n esAnonimo: Yup.boolean(),\r\n documento: Yup.mixed().test(\"FILE_SIZE\", \"El archivo no debe superar los 5mb\",\r\n (value) => fileRef.current.files[0] !== undefined ? (fileRef.current.files[0].size <= 5000000 ? true: false) : true),\r\n descripcionConsulta: Yup.string()\r\n .min(10, 'Consulta muy corta, debe tener al menos 10 caracteres')\r\n .required('Necesita describir la consulta'),\r\n aceptaTerminos: Yup.boolean()\r\n .oneOf([true], 'Debe aceptar los terminos')\r\n })\r\n }\r\n >\r\n {\r\n formik => (\r\n
\r\n
\r\n
\r\n

Datos de Contacto

\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n \r\n \r\n
\r\n \r\n

Datos de la consulta

\r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n
\r\n

Agregar documento

\r\n

Documentación para anexar a la denuncia de cara a completar o dar soporte a los hechos denunciados

\r\n {\r\n setArchivo(e.target.files[0])\r\n }\r\n }\r\n />\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n\r\n
\r\n )\r\n }\r\n \r\n \r\n
\r\n

Guarde este código y contraseña para realizar seguimiento de su consulta

\r\n \r\n Código\r\n \r\n \r\n \r\n Copiar\r\n \r\n \r\n Contraseña\r\n \r\n \r\n \r\n Copiar\r\n \r\n \r\n \r\n {\r\n isCopied && (\r\n ¡Copiado!\r\n )\r\n }\r\n

Se ha enviado correctamente. Guarde el código y contraseña para realizar cualquier consulta

\r\n \r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Consulta\r\n","import { ErrorMessage, Field, Form, Formik } from 'formik'\r\nimport * as Yup from 'yup';\r\nimport React, { useEffect, useRef, useState } from 'react'\r\nimport Rights from './Rights';\r\nimport { getCategoria, getTipoDenuncia, getTipoRelacion, getTextosConfig, getCodeConsulta} from '../../services/denunciaService';\r\nimport axios from 'axios';\r\nimport Swal from 'sweetalert2';\r\nimport * as notification from \"../../utils/notification\";\r\nimport { Row, Col, Button, InputGroup, Input as InputReact } from \"reactstrap\";\r\nimport { withStyles } from '@material-ui/core/styles';\r\nimport Tooltip from '@material-ui/core/Tooltip';\r\nimport { ModalCode } from \"../common/ModalCode\";\r\n\r\nconst Denuncia = ({ showDenuncia, setShowDenuncia }) => {\r\n\r\n const [categorias, setCategorias] = useState([]);\r\n const [archivo, setArchivo] = useState(null);\r\n const [disabled, setDisabled] = useState(false);\r\n const [clearName, setClearName] = useState();\r\n const [clearPhone, setClearPhone] = useState();\r\n const [clearEmail, setClearEmail] = useState();\r\n const fileRef1 = useRef();\r\n const [tipoDenuncia, setTipoDenuncia] = useState([]);\r\n const [tipoRelacion, setTipoRelacion] = useState([]);\r\n const [textosConfig, setTextosConfig] = useState([]);\r\n const [code, setCode] = useState('');\r\n const[password, setPassword] = useState();\r\n\r\n const [modalState, setModalState] = useState(false);\r\n const [text, setText] = useState('');\r\n const [isCopied, setIsCopied] = useState(false);\r\n\r\n useEffect(() => {\r\n getCategorias();\r\n getTipoDenuncias();\r\n getTiposRelacion();\r\n getTextoConfig();\r\n getCode();\r\n }, [])\r\n\r\n const getCode = async () => {\r\n const response = await getCodeConsulta();\r\n setCode(response.code);\r\n setPassword(response.password);\r\n }\r\n\r\n const getCategorias = async () => {\r\n const response = await getCategoria();\r\n const categoriasActivas = response.filter(cat => cat.isActive);\r\n setCategorias(categoriasActivas);\r\n }\r\n\r\n const getTipoDenuncias = async () => {\r\n const response = await getTipoDenuncia();\r\n setTipoDenuncia(response);\r\n }\r\n\r\n const getTiposRelacion = async () => {\r\n const response = await getTipoRelacion();\r\n setTipoRelacion(response);\r\n }\r\n\r\n const getTextoConfig = async () => {\r\n const response = await getTextosConfig();\r\n setTextosConfig(response);\r\n }\r\n const inputHandlerCode = event => {\r\n setText(event.target.value);\r\n }\r\n const inputHandlerPassword = event => {\r\n setText(event.target.value);\r\n }\r\n const copy = async () => {\r\n await navigator.clipboard.writeText(code);\r\n setIsCopied(true);\r\n setTimeout(() => {\r\n setIsCopied(false);\r\n }, 1000);\r\n }\r\n const copyPassword = async () => {\r\n await navigator.clipboard.writeText(password);\r\n setIsCopied(true);\r\n setTimeout(() => {\r\n setIsCopied(false);\r\n }, 1000);\r\n }\r\n\r\n const handleSubmit = async (data, resetForm) => {\r\n const formData = new FormData();\r\n\r\n formData.append(\"nombre\", clearName);\r\n formData.append(\"telefono\", clearPhone);\r\n formData.append(\"email\", clearEmail);\r\n formData.append(\"esAnonimo\", data.esAnonimo);\r\n formData.append(\"nombrePersonaDenunciada\", data.nombrePersonaDenunciada);\r\n formData.append(\"descripcionDenuncia\", data.descripcionDenuncia);\r\n formData.append(\"periodoDeHechos\", data.periodoDeHechos);\r\n formData.append(\"documento\", archivo);\r\n formData.append(\"checked\", data.checked);\r\n formData.append(\"checkedDenuncia\", data.checkedDenuncia);\r\n formData.append(\"checkedRelacion\", data.checkedRelacion);\r\n formData.append(\"aceptaTerminos\", data.aceptaTerminos);\r\n formData.append(\"domicilio\", data.domicilio);\r\n formData.append(\"lugar\", data.lugar);\r\n formData.append(\"code\", code)\r\n formData.append(\"password\", password)\r\n\r\n try {\r\n await axios({\r\n method: 'post',\r\n url: \"form/denuncia\",\r\n data: formData,\r\n headers: { 'Content-Type': 'multipart/form-data' }\r\n }).then(({ data }) => {\r\n if (data.success) {\r\n Swal.fire({\r\n position: 'center',\r\n icon: 'success',\r\n title: 'Consulta enviada correctamente',\r\n showConfirmButton: false,\r\n timer: 1000\r\n })\r\n setModalState(true);\r\n resetForm();\r\n } else {\r\n setModalState(false);\r\n Swal.fire({\r\n position: 'center',\r\n icon: 'error',\r\n title: 'No se ha podido guardar',\r\n showConfirmButton: false,\r\n timer: 1500\r\n })\r\n }\r\n })\r\n } catch (error) {\r\n notification.error(\"\", error.message || \"Problemas en la llamada al servidor\");\r\n }\r\n }\r\n\r\n const handleCancel = () => {\r\n setShowDenuncia(!showDenuncia)\r\n }\r\n\r\n const handleChangeName = (e) => {\r\n console.log(e);\r\n setClearName(e.target.value)\r\n }\r\n\r\n const handleChangePhone = (e) => {\r\n console.log(e);\r\n setClearPhone(e.target.value)\r\n }\r\n\r\n const handleChangeEmail = (e) => {\r\n console.log(e);\r\n setClearEmail(e.target.value)\r\n }\r\n\r\n const HtmlTooltip = withStyles((theme) => ({\r\n tooltip: {\r\n backgroundColor: '#f5f5f9',\r\n color: 'rgba(0, 0, 0, 0.87)',\r\n maxWidth: 1120,\r\n fontSize: theme.typography.pxToRem(14),\r\n border: '1px solid #dadde9',\r\n float:'right',\r\n },\r\n }))(Tooltip);\r\n\r\n return (\r\n
\r\n {\r\n handleSubmit(values, resetForm);\r\n // setShowDenuncia(!showDenuncia)\r\n }}\r\n validationSchema={\r\n Yup.object({\r\n nombre: Yup.string(),\r\n telefono: Yup.string()\r\n .matches(/(\\+34|0034|34)?[ -]*(6|7)[ -]*([0-9][ -]*){8}/, { message: \"Ingrese un número válido.\", excludeEmptyString: false }),\r\n email: Yup.string()\r\n .email('El correo no tiene un formato válido'),\r\n esAnonimo: Yup.boolean(),\r\n nombrePersonaDenunciada: Yup.string()\r\n .max(20, 'Debe de tener 20 caracteres o menos')\r\n .required('Requerido'),\r\n descripcionDenuncia: Yup.string()\r\n .min(10, 'El texto es muy corto, debe tener al menos 10 caracteres'),\r\n documento: Yup.mixed().test(\"FILE_SIZE\", \"El archivo no debe superar los 5mb\",\r\n (value) => fileRef1.current.files[0] !== undefined ? (fileRef1.current.files[0].size <= 5000000 ? true : false) : true),\r\n periodoDeHechos: Yup.date()\r\n .required('Requerido'),\r\n checkedRelacion: Yup.string().required(\"Debe seleccionar uno\"),\r\n checkedDenuncia: Yup.array()\r\n .min(1, 'Debe seleccionar al menos uno'),\r\n checked: Yup.array()\r\n .min(1, 'Debe seleccionar al menos uno'),\r\n aceptaTerminos: Yup.boolean()\r\n .oneOf([true], ' Debe aceptar los terminos')\r\n })\r\n }\r\n >\r\n {\r\n formik => (\r\n
\r\n
\r\n
\r\n

Anonimato

\r\n \r\n \r\n \r\n
\r\n
\r\n

Datos de Contacto

\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n

Tipo de relación del denunciante con MEDIASET ESPAÑA

\r\n \r\n \r\n
\r\n
\r\n

Persona o personas sobre las que se ejerce la denuncia

\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n

Tipo de denuncia

\r\n
Al menos debe seleccionar una categoría *
\r\n
\r\n \r\n {\r\n tipoDenuncia.map(denuncia => (\r\n \r\n \r\n \r\n ))\r\n }\r\n \r\n
\r\n \r\n
\r\n
\r\n

Categoría

\r\n
Al menos debe seleccionar una categoría *
\r\n
\r\n \r\n\r\n {\r\n categorias.map(cat => (\r\n \r\n \r\n \r\n ))\r\n }\r\n \r\n
\r\n \r\n
\r\n\r\n
\r\n

Agregar documento

\r\n

Documentación para anexar a la denuncia de cara a completar o dar soporte a los hechos denunciados

\r\n {\r\n setArchivo(e.target.files[0])\r\n }\r\n }\r\n />\r\n \r\n
\r\n
\r\n

CLÁUSULA SOBRE LA PROTECCIÓN AL DENUNCIANTE

\r\n
\r\n {textosConfig.map(textos => (\r\n
\r\n {textos.key == \"Clausulas\" ?\r\n \r\n
\r\n
\r\n : ''}\r\n
\r\n ))}\r\n
\r\n
\r\n
\r\n

Protección de datos personales

\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n )\r\n }\r\n\r\n \r\n \r\n
\r\n

Guarde este código y contraseña para realizar seguimiento de su consulta

\r\n \r\n Código\r\n \r\n \r\n \r\n Copiar\r\n \r\n \r\n Contraseña\r\n \r\n \r\n \r\n Copiar\r\n \r\n \r\n \r\n {\r\n isCopied && (\r\n ¡Copiado!\r\n )\r\n }\r\n

Se ha enviado correctamente. Guarde el código y contraseña para realizar cualquier consulta

\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n )\r\n}\r\n\r\nexport default Denuncia\r\n","import React, { useState } from 'react'\r\nimport { Container, Row, Col } from 'reactstrap';\r\nimport Consulta from '../components/Forms/Consulta';\r\nimport Denuncia from '../components/Forms/Denuncia';\r\nimport { Link } from 'react-router-dom';\r\n\r\nconst HomePage = () => {\r\n\r\n const [showDenuncia, setShowDenuncia] = useState(false);\r\n const [showConsulta, setShowConsulta] = useState(false);\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n

\r\n Formulario Canal denuncias / Consultas\r\n

\r\n

El Buzón Ético de Mediaset es una herramienta cuyo objetivo es habilitar un canal de comunicación seguro, anónimo y confidencial para que cualquier persona pueda comunicar conductas y/o actos que pudieran suponer un incumplimiento de los principios y valores recogidos en el Código Ético de la Organización y/o de la legislación vigente. También puede ser utilizado como canal de consultas o sugerencias.\r\n Todas las denuncias que se presenten a través de este Buzón podrán ser anónimas, garantizándose en todo momento la confidencialidad de las mismas y el correcto tratamiento de los datos proporcionados conforme a la legislación vigente en materia de Protección de Datos.\r\n

\r\n \r\n
\r\n \r\n \r\n

Tipo de formulario

\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
Denuncia
\r\n
\r\n
setShowDenuncia(!showDenuncia)} className={ !showDenuncia ? `btn btn-primary ml-auto` : `btn btn-cancel ml-auto`}>Formulario
\r\n
\r\n {\r\n showDenuncia && \r\n }\r\n \r\n
\r\n\r\n \r\n \r\n
\r\n
\r\n
Consulta
\r\n
\r\n
setShowConsulta(!showConsulta)} className={ !showConsulta ? `btn btn-primary ml-auto` : `btn btn-cancel ml-auto`}>Formulario
\r\n
\r\n {\r\n showConsulta && \r\n }\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
Consultar Denuncia/Consulta
\r\n
\r\n
Consultar
\r\n
\r\n \r\n
\r\n
\r\n {/*