\r\n !authenticated ? (\r\n \r\n ) : user.adheridoDFE === '0' ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n />\r\n )\r\n}\r\n\r\nPrivateRoute.propTypes = {\r\n component: PropTypes.object,\r\n}\r\n\r\nexport default PrivateRoute\r\n","import axios from 'axios'\r\n//import { NotificationManager } from 'react-notifications';\r\nimport Swal from 'sweetalert2'\r\n\r\nconst AxiosClient = axios.create({\r\n baseURL: process.env.REACT_APP_BACKEND_URL,\r\n})\r\n\r\nAxiosClient.interceptors.response.use(\r\n function (response) {\r\n return response\r\n },\r\n async (error) => {\r\n if (error.response) {\r\n if (error.response.status === 401) {\r\n localStorage.removeItem('token')\r\n localStorage.removeItem('expiration')\r\n localStorage.removeItem('user')\r\n\r\n // await Swal.fire('Sesion caducada', 'Caduco el tiempo de sesion', 'info').then(() => {\r\n // window.location = '/';\r\n // })\r\n\r\n await Swal.fire({\r\n title: 'Sesión caducada',\r\n html: 'Caducó el tiempo de sesión
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'info',\r\n }).then(() => {\r\n window.location = '/'\r\n })\r\n } else {\r\n if (error.response.status >= 400 && error.response.status < 500) {\r\n return Promise.reject(error)\r\n } else {\r\n let errorObject = error.response.data\r\n\r\n if (\r\n error.response.data instanceof Blob &&\r\n error.response.data.type &&\r\n error.response.data.type.toLowerCase().indexOf('json') !== -1\r\n ) {\r\n errorObject = JSON.parse(await error.response.data.text())\r\n }\r\n\r\n //Swal.fire('Error',errorObject.message,'error');\r\n Swal.fire({\r\n title: 'Atención',\r\n html: '' + errorObject.message + '
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'warning',\r\n })\r\n\r\n return Promise.reject(error)\r\n }\r\n }\r\n } else {\r\n Swal.fire({\r\n title: 'Error de red',\r\n html: 'Ocurrio un error al acceder a la infomación
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'error',\r\n }).then(() => {\r\n localStorage.removeItem('token')\r\n localStorage.removeItem('expiration')\r\n localStorage.removeItem('user')\r\n window.location = '/'\r\n })\r\n\r\n // Swal.fire('Error de red', 'Ocurrio un error al acceder a la infomacion', 'error').then(() => {\r\n // localStorage.removeItem('token');\r\n // localStorage.removeItem('expiration');\r\n // localStorage.removeItem('user');\r\n // window.location = '/';\r\n // })\r\n }\r\n },\r\n)\r\n\r\nexport default AxiosClient\r\n","import AxiosClient from './AxiosClient'\r\n\r\nconst authToken = async (token) => {\r\n if (token) {\r\n AxiosClient.defaults.headers.common['Authorization'] = 'Bearer ' + token\r\n } else {\r\n delete AxiosClient.defaults.headers.common['Authorization']\r\n }\r\n}\r\n\r\nexport default authToken\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst Login = (user) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'auth/login', user).then((response) => response.data)\r\n}\r\n\r\nconst CurrentUser = () => {\r\n return AxiosClient.get(process.env.REACT_APP_BACKEND_DFE_URL + 'auth/currentauthuser').then((response) => response.data)\r\n}\r\n\r\nexport { Login, CurrentUser }\r\n","import {\r\n LOGIN_SUCCESS,\r\n LOGIN_REQUEST,\r\n LOGIN_ERROR,\r\n LOGOUT,\r\n HIDE_ERROR,\r\n SHOW_ERROR,\r\n SET_NAVS_SUCCESS,\r\n SET_ROUTES_SUCCESS,\r\n} from './AuthTypes'\r\n\r\nconst AuthReducer = (state, action) => {\r\n switch (action.type) {\r\n /* USER AUTH */\r\n\r\n case LOGIN_REQUEST:\r\n return {\r\n ...state,\r\n loading: true,\r\n }\r\n\r\n case LOGIN_SUCCESS:\r\n localStorage.setItem('token', action.payload.token)\r\n localStorage.setItem('expiration', action.payload.expiration)\r\n localStorage.setItem('user', JSON.stringify(action.payload.user))\r\n\r\n return {\r\n ...state,\r\n authenticated: true,\r\n token: action.payload.token,\r\n expiration: action.payload.expiration,\r\n user: action.payload.user,\r\n error: null,\r\n loading: false,\r\n }\r\n\r\n case LOGIN_ERROR:\r\n return {\r\n ...state,\r\n loading: false,\r\n }\r\n\r\n case LOGOUT:\r\n localStorage.removeItem('token')\r\n localStorage.removeItem('expiration')\r\n localStorage.removeItem('user')\r\n\r\n return {\r\n ...state,\r\n authenticated: false,\r\n token: null,\r\n expiration: null,\r\n }\r\n\r\n /* ERRORS */\r\n case SHOW_ERROR:\r\n return {\r\n ...state,\r\n error: action.payload,\r\n loading: false,\r\n }\r\n\r\n case HIDE_ERROR:\r\n return {\r\n ...state,\r\n error: null,\r\n loading: false,\r\n }\r\n\r\n /* SET NAVS */\r\n\r\n case SET_NAVS_SUCCESS:\r\n return {\r\n ...state,\r\n navs: action.payload,\r\n }\r\n\r\n /*SET ROUTES */\r\n case SET_ROUTES_SUCCESS:\r\n return {\r\n ...state,\r\n routes: action.payload,\r\n }\r\n\r\n /* SET ALLOW PYP AND SEH */\r\n case 'SET_ALLOWPYP_SUCCESS':\r\n return {\r\n ...state,\r\n allowPyp: action.payload,\r\n }\r\n\r\n case 'SET_ALLOWSEH_SUCCESS':\r\n return {\r\n ...state,\r\n allowSeh: action.payload,\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default AuthReducer\r\n","import React, { useReducer } from 'react'\r\nimport authToken from 'src/api/AuthToken'\r\nimport { CurrentUser, Login } from '../../api/services/AuthService'\r\nimport AuthContext from './AuthContext'\r\nimport moment from 'moment'\r\nimport AuthReducer from './AuthReducer'\r\nimport PropTypes from 'prop-types'\r\n\r\nimport {\r\n SHOW_ERROR,\r\n HIDE_ERROR,\r\n LOGIN_SUCCESS,\r\n LOGIN_REQUEST,\r\n LOGIN_ERROR,\r\n LOGOUT,\r\n SET_NAVS_SUCCESS,\r\n SET_ROUTES_SUCCESS,\r\n} from './AuthTypes'\r\n\r\nconst AuthState = (props) => {\r\n //Esta autenticado y el token no expiro\r\n const isAuthenticated = () => {\r\n return localStorage.getItem('token') && moment(localStorage.getItem('expiration')).diff(moment()) >= 0\r\n }\r\n\r\n //Si esta autenticado agrego token a peticion, sino expiro y tengo que volver a iniciar sesion\r\n if (isAuthenticated()) {\r\n authToken(localStorage.getItem('token'))\r\n }\r\n\r\n const initialState = {\r\n authenticated: isAuthenticated() ? true : false,\r\n token: localStorage.getItem('token'),\r\n expiration: localStorage.getItem('expiration'),\r\n user: JSON.parse(localStorage.getItem('user')),\r\n routes: [],\r\n navs: [],\r\n error: null,\r\n loading: false,\r\n allowPyp: false,\r\n allowSeh: false,\r\n }\r\n\r\n const [state, dispatch] = useReducer(AuthReducer, initialState)\r\n\r\n const login = async (user) => {\r\n dispatch({\r\n type: LOGIN_REQUEST,\r\n })\r\n\r\n //Login\r\n await Login(user).then(\r\n async (response) => {\r\n authToken(response.token)\r\n\r\n await CurrentUser().then((user) => {\r\n dispatch({\r\n type: LOGIN_SUCCESS,\r\n payload: {\r\n token: response.token,\r\n expiration: response.expiration,\r\n user: user,\r\n },\r\n })\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: LOGIN_ERROR,\r\n })\r\n\r\n if (error.response && error.response.status < 500) showError(error.response.data.message, 'danger')\r\n },\r\n )\r\n }\r\n\r\n const setRoutes = (routeList) => {\r\n dispatch({\r\n type: SET_ROUTES_SUCCESS,\r\n payload: routeList,\r\n })\r\n }\r\n\r\n const setNavs = (navList) => {\r\n dispatch({\r\n type: SET_NAVS_SUCCESS,\r\n payload: navList,\r\n })\r\n }\r\n\r\n const setAllowPyp = (value) => {\r\n dispatch({\r\n type: 'SET_ALLOWPYP_SUCCESS',\r\n payload: value,\r\n })\r\n }\r\n\r\n const setAllowSeh = (value) => {\r\n dispatch({\r\n type: 'SET_ALLOWSEH_SUCCESS',\r\n payload: value,\r\n })\r\n }\r\n\r\n const logout = () => {\r\n dispatch({\r\n type: LOGOUT,\r\n })\r\n }\r\n\r\n const showError = (message, category) => {\r\n dispatch({\r\n type: SHOW_ERROR,\r\n payload: {\r\n message: message,\r\n category: category,\r\n },\r\n })\r\n }\r\n\r\n const hideError = () => {\r\n dispatch({\r\n type: HIDE_ERROR,\r\n })\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nAuthState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nAuthState.displayName = 'AuthState'\r\n\r\nexport default AuthState\r\n","import AxiosClient from '../AxiosClient'\r\n\r\n/* RECUPERAR CONTASEÑA */\r\nconst ReestablecerClave = (cuit) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'usuario/reestablecerClave', { cuit }).then((response) => response.data)\r\n}\r\n\r\nconst CambiarClave = (oldPassword, newPassword, newPasswordConfirm) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'usuario/cambiarClave', {\r\n oldPassword,\r\n newPassword,\r\n newPasswordConfirm,\r\n }).then((response) => response.data)\r\n}\r\n\r\n/* REGISTRO / ACTIVACION */\r\nconst CrearUsuario = (cuit, email) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'usuario/crearUsuario', { cuit, email }).then((response) => response.data)\r\n}\r\n\r\nconst ActivarUsuario = (hash, newPassword, newPasswordConfirm) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'usuario/activarusuario', { hash, newPassword, newPasswordConfirm }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\n/* NOTIFICACIONES */\r\nconst GetNotificacionesToPage = (page, pageSize, filter) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `notificaciones/GetNotificacionesToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n }).then((response) => response.data)\r\n}\r\n\r\nconst GetNotificacionesNoLeidasToPage = (page, pageSize, filter) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `notificaciones/GetNotificacionesNoLeidasToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n }).then((response) => response.data)\r\n}\r\n\r\n/* REPORTE NOTIFICACIONES */\r\nconst GetReporteNotificacion = (id, idpakey, idimponible, nombrereporte, format) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_DFE_URL +\r\n `notificaciones/GetNotificacionReport?id=${id}&idpakey=${idpakey}&idimponible=${idimponible}&nombrereporte=${nombrereporte}&format=${format}`,\r\n { responseType: 'blob' },\r\n ).then((response) => response.data)\r\n}\r\n\r\nconst GetNotificacionActaReport = (id, idtiponotificacion, idorden, idimponible, fechaac, format) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_DFE_URL +\r\n `notificaciones/GetNotificacionActaReport?id=${id}&idtiponotificacion=${idtiponotificacion}&idorden=${idorden}&idimponible=${idimponible}&fechaac=${fechaac}&format=${format}`,\r\n { responseType: 'blob' },\r\n ).then((response) => response.data)\r\n}\r\n\r\n/* DATOS PERSONALES DEL USUARIO */\r\nconst GetDatosUsuario = (cuit) => {\r\n return AxiosClient.get(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/GetDatosUsuario?cuit=${cuit}`).then((response) => response.data)\r\n}\r\n\r\nconst CambiarDatosUsuario = (data) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'usuario/CambiarDatosUsuario', data).then((response) => response.data)\r\n}\r\n\r\n/* ALTA DDJJ DFE */\r\nconst SaveDDJJDomicilioFiscal = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/SaveDDJJDomicilioFiscal`, data)\r\n return response.data\r\n}\r\n\r\n/* BAJA DE DDJJ DFE */\r\nconst BajaDDJJDomicilioFiscal = async () => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/BajaDDJJDomicilioFiscal`)\r\n return response.data\r\n}\r\n\r\n/* REPORTE DDJJ DFE */\r\nconst GetDeclaracionJuradaDFEReport = async (id, format) => {\r\n const response = await AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_DFE_URL + `usuario/GetDeclaracionJuradaDFEReport?idDDJJDfe=${id}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\nconst GetDeclaracionesJuradasDfeToPage = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/GetDeclaracionesJuradasDfeToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\n/* DDJJ RSU */\r\nconst GetDeclaracionesJuradasRSUToPage = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/GetDeclaracionesJuradasRSUToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\nconst SaveDDJJRsu = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `usuario/SaveDDJJRsu`, data)\r\n return response.data\r\n}\r\n\r\nconst GetDeclaracionJuradaRSUById = async (idDDJJ) => {\r\n const response = await AxiosClient.get(`usuario/GetDeclaracionJuradaRSUById?idDDJJ=${idDDJJ}`)\r\n return response.data\r\n}\r\n\r\n/* REPORTE DDJJ RSU */\r\nconst GetDeclaracionJuradaRSUReport = async (id, format) => {\r\n const response = await AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_DFE_URL + `usuario/GetDeclaracionJuradaRSUReport?idDDJJ=${id}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\nexport {\r\n ActivarUsuario,\r\n ReestablecerClave,\r\n CambiarClave,\r\n CrearUsuario,\r\n GetNotificacionesToPage,\r\n GetNotificacionesNoLeidasToPage,\r\n GetReporteNotificacion,\r\n GetNotificacionActaReport,\r\n GetDatosUsuario,\r\n CambiarDatosUsuario,\r\n GetDeclaracionJuradaDFEReport,\r\n SaveDDJJDomicilioFiscal,\r\n BajaDDJJDomicilioFiscal,\r\n GetDeclaracionesJuradasDfeToPage,\r\n GetDeclaracionesJuradasRSUToPage,\r\n SaveDDJJRsu,\r\n GetDeclaracionJuradaRSUById,\r\n GetDeclaracionJuradaRSUReport,\r\n}\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetEximicionesToPage = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `eximiciones/GetEximicionesToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\nconst GetTiposEximiciones = async () => {\r\n const response = await AxiosClient.get(process.env.REACT_APP_BACKEND_DFE_URL + `eximiciones/GetTiposEximiciones`)\r\n // console.log(response.data)\r\n return response.data\r\n}\r\n\r\nconst GetRequisitosTipoEximicion = async (id) => {\r\n const response = await AxiosClient.get(process.env.REACT_APP_BACKEND_DFE_URL + `eximiciones/GetRequisitosTipoEximicion?id=${id}`)\r\n return response.data\r\n}\r\n\r\n// const SolicitarEximicion = async (data) => {\r\n// const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `eximiciones/SolicitarEximicion`, qs.stringify(data), config );\r\n// return response.data;\r\n// }\r\n\r\nconst SolicitarEximicion = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `eximiciones/SolicitarEximicion`, data)\r\n return response.data\r\n}\r\n\r\n/* REPORTE */\r\nconst GetReporteEximicion = async (id, tipoex, tiporeporte, format) => {\r\n const response = await AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_DFE_URL +\r\n `eximiciones/GetReporteEximicion?id=${id}&tipoex=${tipoex}&tiporeporte=${tiporeporte}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\nexport { GetEximicionesToPage, GetTiposEximiciones, GetRequisitosTipoEximicion, SolicitarEximicion, GetReporteEximicion }\r\n","export const RESET_PASSWORD_REQUEST = 'RESET_PASSWORD_REQUEST'\r\nexport const RESET_PASSWORD_SUCCESS = 'RESET_PASSWORD_SUCCESS'\r\n\r\nexport const ACTIVATE_USER_REQUEST = 'ACTIVATE_USER_REQUEST'\r\nexport const ACTIVATE_USER_SUCCESS = 'ACTIVATE_USER_SUCCESS'\r\n\r\nexport const CREATE_USER_REQUEST = 'CREATE_USER_REQUEST'\r\nexport const CREATE_USER_SUCCESS = 'CREATE_USER_SUCCESS'\r\n\r\nexport const CHANGE_PASSWORD_REQUEST = 'CHANGE_PASSWORD_REQUEST'\r\nexport const CHANGE_PASSWORD_SUCCESS = 'CHANGE_PASSWORD_SUCCESS'\r\n\r\nexport const GET_NOTIFICACIONES_TO_PAGE_REQUEST = 'GET_NOTIFICACIONES_TO_PAGE_REQUEST'\r\nexport const GET_NOTIFICACIONES_TO_PAGE_SUCCESS = 'GET_NOTIFICACIONES_TO_PAGE_SUCCESS'\r\nexport const GET_NOTIFICACIONES_TO_PAGE_FAIL = 'GET_NOTIFICACIONES_TO_PAGE_FAIL'\r\n\r\nexport const GET_REPORTE_NOTIFICACION_REQUEST = 'GET_REPORTE_NOTIFICACION_REQUEST'\r\nexport const GET_REPORTE_NOTIFICACION_SUCCESS = 'GET_REPORTE_NOTIFICACION_SUCCESS'\r\nexport const GET_REPORTE_NOTIFICACION_FAIL = 'GET_REPORTE_NOTIFICACION_FAIL'\r\n\r\nexport const GET_REPORTE_NOTIFICACION_ACTA_REQUEST = 'GET_REPORTE_NOTIFICACION_ACTA_REQUEST'\r\nexport const GET_REPORTE_NOTIFICACION_ACTA_SUCCESS = 'GET_REPORTE_NOTIFICACION_ACTA_SUCCESS'\r\nexport const GET_REPORTE_NOTIFICACION_ACTA_FAIL = 'GET_REPORTE_NOTIFICACION_ACTA_FAIL'\r\n\r\n/* DATOS DEL USUARIO */\r\nexport const GET_DATOS_USUARIO_REQUEST = 'GET_DATOS_USUARIO_REQUEST'\r\nexport const GET_DATOS_USUARIO_SUCCESS = 'GET_DATOS_USUARIO_SUCCESS'\r\nexport const CHANGE_DATOS_USUARIO_REQUEST = 'CHANGE_DATOS_USUARIO_REQUEST'\r\nexport const CHANGE_DATOS_USUARIO_SUCCESS = 'CHANGE_DATOS_USUARIO_SUCCESS'\r\nexport const CLEAR_USER_DATA_REQUEST = 'CLEAR_USER_DATA_REQUEST'\r\n\r\n/* NOTIFIACIONES NO LEIDAS */\r\nexport const GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST = 'GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST'\r\nexport const GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS = 'GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS'\r\nexport const GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL = 'GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL'\r\n","import {\r\n ACTIVATE_USER_REQUEST,\r\n ACTIVATE_USER_SUCCESS,\r\n CHANGE_PASSWORD_REQUEST,\r\n CHANGE_PASSWORD_SUCCESS,\r\n CREATE_USER_REQUEST,\r\n CREATE_USER_SUCCESS,\r\n RESET_PASSWORD_REQUEST,\r\n RESET_PASSWORD_SUCCESS,\r\n GET_NOTIFICACIONES_TO_PAGE_REQUEST,\r\n GET_NOTIFICACIONES_TO_PAGE_SUCCESS,\r\n GET_NOTIFICACIONES_TO_PAGE_FAIL,\r\n GET_REPORTE_NOTIFICACION_REQUEST,\r\n GET_REPORTE_NOTIFICACION_SUCCESS,\r\n GET_REPORTE_NOTIFICACION_FAIL,\r\n GET_REPORTE_NOTIFICACION_ACTA_REQUEST,\r\n GET_REPORTE_NOTIFICACION_ACTA_SUCCESS,\r\n GET_REPORTE_NOTIFICACION_ACTA_FAIL,\r\n GET_DATOS_USUARIO_REQUEST,\r\n GET_DATOS_USUARIO_SUCCESS,\r\n CHANGE_DATOS_USUARIO_REQUEST,\r\n CHANGE_DATOS_USUARIO_SUCCESS,\r\n CLEAR_USER_DATA_REQUEST,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL,\r\n} from './UserTypes'\r\n\r\nconst UserReducer = (state, action) => {\r\n switch (action.type) {\r\n case RESET_PASSWORD_REQUEST:\r\n return {\r\n ...state,\r\n loadingResetPassword: true,\r\n }\r\n\r\n case RESET_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n loadingResetPassword: false,\r\n }\r\n\r\n case CHANGE_PASSWORD_REQUEST:\r\n return {\r\n ...state,\r\n changingPassword: true,\r\n }\r\n\r\n case CHANGE_PASSWORD_SUCCESS:\r\n return {\r\n ...state,\r\n changingPassword: false,\r\n }\r\n\r\n case ACTIVATE_USER_REQUEST:\r\n return {\r\n ...state,\r\n loadingActivateUser: true,\r\n }\r\n\r\n case ACTIVATE_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loadingActivateUser: false,\r\n }\r\n\r\n case CREATE_USER_REQUEST:\r\n return {\r\n ...state,\r\n loadingCreateUser: true,\r\n }\r\n\r\n case CREATE_USER_SUCCESS:\r\n return {\r\n ...state,\r\n loadingCreateUser: false,\r\n }\r\n\r\n /* NOTIFICACIONES */\r\n case GET_NOTIFICACIONES_TO_PAGE_REQUEST:\r\n return {\r\n ...state,\r\n loadingNotificaciones: true,\r\n }\r\n\r\n case GET_NOTIFICACIONES_TO_PAGE_SUCCESS:\r\n return {\r\n ...state,\r\n totalNotificaciones: action.payload.total,\r\n notificaciones: action.payload.result,\r\n loadingNotificaciones: false,\r\n }\r\n\r\n case GET_NOTIFICACIONES_TO_PAGE_FAIL:\r\n return {\r\n ...state,\r\n loadingNotificaciones: false,\r\n notificaciones: [],\r\n totalNotificaciones: 0,\r\n }\r\n\r\n case GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST:\r\n return {\r\n ...state,\r\n loadingNotificacionesNoLeidas: true,\r\n }\r\n\r\n case GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS:\r\n return {\r\n ...state,\r\n totalNotificacionesNoLeidas: action.payload.total,\r\n notificacionesNoLeidas: action.payload.result,\r\n loadingNotificacionesNoLeidas: false,\r\n }\r\n case GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL:\r\n return {\r\n ...state,\r\n loadingNotificacionesNoLeidas: false,\r\n notificacionesNoLeidas: [],\r\n totalNotificacionesNoLeidas: 0,\r\n }\r\n\r\n case 'CLEAR_NOTIFICACIONES_DATA_REQUEST':\r\n return {\r\n ...state,\r\n loadingNotificacionesNoLeidas: false,\r\n notificacionesNoLeidas: [],\r\n totalNotificacionesNoLeidas: 0,\r\n loadingNotificaciones: false,\r\n notificaciones: [],\r\n totalNotificaciones: 0,\r\n }\r\n\r\n /* REPORTE NOTIFICACION */\r\n case GET_REPORTE_NOTIFICACION_REQUEST:\r\n return {\r\n ...state,\r\n loadingReporteNotificacion: true,\r\n }\r\n case GET_REPORTE_NOTIFICACION_SUCCESS:\r\n return {\r\n ...state,\r\n loadingReporteNotificacion: false,\r\n reporteNotificacion: action.payload,\r\n }\r\n case GET_REPORTE_NOTIFICACION_FAIL:\r\n return {\r\n ...state,\r\n loadingReporteNotificacion: false,\r\n reporteNotificacion: [],\r\n }\r\n\r\n /* REPORTE NOTIFICACION ACTA */\r\n case GET_REPORTE_NOTIFICACION_ACTA_REQUEST:\r\n return {\r\n ...state,\r\n loadingReporteNotificacionActa: true,\r\n }\r\n case GET_REPORTE_NOTIFICACION_ACTA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingReporteNotificacionActa: false,\r\n reporteNotificacionActa: action.payload,\r\n }\r\n case GET_REPORTE_NOTIFICACION_ACTA_FAIL:\r\n return {\r\n ...state,\r\n loadingReporteNotificacionActa: false,\r\n reporteNotificacionActa: [],\r\n }\r\n\r\n /* DATOS USAURIO */\r\n case GET_DATOS_USUARIO_REQUEST:\r\n return {\r\n ...state,\r\n loadingUsuario: true,\r\n }\r\n\r\n case GET_DATOS_USUARIO_SUCCESS:\r\n return {\r\n ...state,\r\n usuario: action.payload,\r\n loadingUsuario: false,\r\n }\r\n\r\n case CHANGE_DATOS_USUARIO_REQUEST:\r\n return {\r\n ...state,\r\n changingUserData: true,\r\n }\r\n\r\n case CHANGE_DATOS_USUARIO_SUCCESS:\r\n return {\r\n ...state,\r\n changingUserData: false,\r\n }\r\n\r\n case CLEAR_USER_DATA_REQUEST:\r\n return {\r\n ...state,\r\n usuario: null,\r\n loadingUsuario: false,\r\n }\r\n\r\n /* EXIMICIONES */\r\n case 'GET_EXIMICIONES_TO_PAGE_REQUEST':\r\n return {\r\n ...state,\r\n loadingEximiciones: true,\r\n }\r\n\r\n case 'GET_EXIMICIONES_TO_PAGE_SUCCESS':\r\n return {\r\n ...state,\r\n totalEximiciones: action.payload.total,\r\n eximiciones: action.payload.result,\r\n loadingEximiciones: false,\r\n }\r\n\r\n case 'GET_EXIMICIONES_TO_PAGE_FAIL':\r\n return {\r\n ...state,\r\n totalEximiciones: 0,\r\n eximiciones: [],\r\n loadingEximiciones: false,\r\n }\r\n\r\n case 'CLEAR_EXIMICIONES_REQUEST':\r\n return {\r\n ...state,\r\n totalEximiciones: 0,\r\n eximiciones: [],\r\n loadingEximiciones: false,\r\n }\r\n\r\n /* TIPOS DE EXIMICION */\r\n case 'GET_TIPOS_EXIMICION_REQUEST':\r\n return {\r\n ...state,\r\n loadingTiposEximicion: true,\r\n }\r\n\r\n case 'GET_TIPOS_EXIMICION_SUCCESS':\r\n return {\r\n ...state,\r\n tiposEximicion: action.payload,\r\n loadingTiposEximicion: false,\r\n }\r\n\r\n case 'GET_TIPOS_EXIMICION_FAIL':\r\n return {\r\n ...state,\r\n tiposEximicion: [],\r\n loadingTiposEximicion: false,\r\n }\r\n\r\n /* REQUISITOS TIPO EXIMICION */\r\n case 'GET_REQUISITOS_TIPO_EXIMICION_REQUEST':\r\n return {\r\n ...state,\r\n loadingRequisitosTipoEximicion: true,\r\n }\r\n\r\n case 'GET_REQUISITOS_TIPO_EXIMICION_SUCCESS':\r\n return {\r\n ...state,\r\n loadingRequisitosTipoEximicion: false,\r\n requisitosTipoEximicion: action.payload,\r\n }\r\n\r\n case 'GET_REQUISITOS_TIPO_EXIMICION_FAIL':\r\n return {\r\n ...state,\r\n loadingRequisitosTipoEximicion: false,\r\n requisitosTipoEximicion: [],\r\n }\r\n\r\n case 'CLEAR_REQUISITOS_TIPO_EXIMICION_REQUEST':\r\n return {\r\n ...state,\r\n requisitosTipoEximicion: [],\r\n loadingRequisitosTipoEximicion: false,\r\n }\r\n\r\n /* SOLOCITAR DE EXIMICION */\r\n case 'SOLICITAR_EXIMICION_REQUEST':\r\n return {\r\n ...state,\r\n savingEximicion: true,\r\n }\r\n\r\n case 'SOLICITAR_EXIMICION_SUCCESS':\r\n return {\r\n ...state,\r\n savingEximicion: false,\r\n //eximicion: action.payload\r\n }\r\n\r\n case 'SOLICITAR_EXIMICION_FAIL':\r\n return {\r\n ...state,\r\n savingEximicion: false,\r\n }\r\n\r\n /* REPORTE EXIMICION */\r\n case 'GET_REPORTE_EXIMICION_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteEximicion: true,\r\n }\r\n case 'GET_REPORTE_EXIMICION_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteEximicion: false,\r\n reporteEximicion: action.payload,\r\n }\r\n case 'GET_REPORTE_EXIMICION_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteEximicion: false,\r\n reporteEximicion: [],\r\n }\r\n\r\n /* REPORTE DFE */\r\n case 'GET_REPORTE_DDJJ_DFE_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteDfe: true,\r\n }\r\n case 'GET_REPORTE_DDJJ_DFE_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteDfe: false,\r\n reporteDfe: action.payload,\r\n }\r\n case 'GET_REPORTE_DDJJ_DFE_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteDfe: false,\r\n reporteDfe: [],\r\n }\r\n\r\n /* ALTA DE DFE */\r\n case 'SAVE_DDJJ_DFE_REQUEST':\r\n return {\r\n ...state,\r\n savingDFE: true,\r\n }\r\n\r\n case 'SAVE_DDJJ_DFE_SUCCESS':\r\n return {\r\n ...state,\r\n savingDFE: false,\r\n }\r\n\r\n case 'SAVE_DDJJ_DFE_FAIL':\r\n return {\r\n ...state,\r\n savingDFE: false,\r\n }\r\n\r\n /* BAJA DE DFE */\r\n case 'BAJA_DDJJ_DFE_REQUEST':\r\n return {\r\n ...state,\r\n savingDFE: true,\r\n }\r\n\r\n case 'BAJA_DDJJ_DFE_SUCCESS':\r\n return {\r\n ...state,\r\n savingDFE: false,\r\n }\r\n\r\n case 'BAJA_DDJJ_DFE_FAIL':\r\n return {\r\n ...state,\r\n savingDFE: false,\r\n }\r\n\r\n /* HISTORIAL DFE */\r\n case 'GET_DDJJ_DFE_TO_PAGE_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeclaracionesJuradasDfeToPage: true,\r\n }\r\n\r\n case 'GET_DDJJ_DFE_TO_PAGE_SUCCESS':\r\n return {\r\n ...state,\r\n totalDeclaracionesJuradasDfeToPage: action.payload.total,\r\n ddjjsDfe: action.payload.result,\r\n loadingDeclaracionesJuradasDfeToPage: false,\r\n }\r\n\r\n case 'GET_DDJJ_DFE_TO_PAGE_FAIL':\r\n return {\r\n ...state,\r\n totalDeclaracionesJuradasDfeToPage: 0,\r\n ddjjsDfe: [],\r\n loadingDeclaracionesJuradasDfeToPage: false,\r\n }\r\n\r\n case 'CLEAR_DDJJ_DFE_REQUEST':\r\n return {\r\n ...state,\r\n totalDeclaracionesJuradasDfeToPage: 0,\r\n ddjjsDfe: [],\r\n loadingDeclaracionesJuradasDfeToPage: false,\r\n }\r\n\r\n /* HISTORIAL RSU */\r\n case 'GET_DDJJ_RSU_TO_PAGE_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeclaracionesJuradasRsuToPage: true,\r\n }\r\n\r\n case 'GET_DDJJ_RSU_TO_PAGE_SUCCESS':\r\n return {\r\n ...state,\r\n totalDeclaracionesJuradasRsuToPage: action.payload.total,\r\n ddjjsRsu: action.payload.result,\r\n loadingDeclaracionesJuradasRsuToPage: false,\r\n }\r\n\r\n case 'GET_DDJJ_RSU_TO_PAGE_FAIL':\r\n return {\r\n ...state,\r\n totalDeclaracionesJuradasRsuToPage: 0,\r\n ddjjsRsu: [],\r\n loadingDeclaracionesJuradasRsuToPage: false,\r\n }\r\n\r\n /* DDJJ RSU BY ID */\r\n case 'GET_DDJJ_RSU_BY_ID_REQUEST':\r\n return {\r\n ...state,\r\n loadingDdjjDetalleRsu: true,\r\n }\r\n\r\n case 'GET_DDJJ_RSU_BY_ID_SUCCESS':\r\n return {\r\n ...state,\r\n ddjjDetalleRsu: action.payload,\r\n loadingDdjjDetalleRsu: false,\r\n }\r\n\r\n case 'GET_DDJJ_RSU_BY_ID_RFAIL':\r\n return {\r\n ...state,\r\n loadingDdjjDetalleRsu: false,\r\n ddjjDetalleRsu: [],\r\n }\r\n\r\n case 'CLEAR_DDJJ_RSU_DETAIL':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalle: true,\r\n }\r\n\r\n /* REPORTE RSU */\r\n case 'GET_REPORTE_DDJJ_RSU_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteRsu: true,\r\n }\r\n case 'GET_REPORTE_DDJJ_RSU_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteRsu: false,\r\n reporteRsu: action.payload,\r\n }\r\n case 'GET_REPORTE_DDJJ_RSU_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteRsu: false,\r\n reporteRsu: [],\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default UserReducer\r\n","import React, { useContext, useReducer } from 'react'\r\nimport {\r\n ActivarUsuario,\r\n CrearUsuario,\r\n ReestablecerClave,\r\n GetNotificacionesToPage,\r\n GetNotificacionesNoLeidasToPage,\r\n GetReporteNotificacion,\r\n GetNotificacionActaReport,\r\n GetDatosUsuario,\r\n CambiarDatosUsuario,\r\n GetDeclaracionJuradaDFEReport,\r\n SaveDDJJDomicilioFiscal,\r\n BajaDDJJDomicilioFiscal,\r\n GetDeclaracionesJuradasDfeToPage,\r\n GetDeclaracionesJuradasRSUToPage,\r\n SaveDDJJRsu,\r\n GetDeclaracionJuradaRSUById,\r\n GetDeclaracionJuradaRSUReport,\r\n} from 'src/api/services/UserService'\r\nimport {\r\n GetEximicionesToPage,\r\n GetTiposEximiciones,\r\n GetRequisitosTipoEximicion,\r\n SolicitarEximicion,\r\n GetReporteEximicion,\r\n} from 'src/api/services/EximicionService'\r\nimport { CambiarClave } from 'src/api/services/UserService'\r\nimport Swal from 'sweetalert2'\r\nimport PropTypes from 'prop-types'\r\n\r\nimport AuthContext from '../auth/AuthContext'\r\nimport UserContext from './UserContext'\r\nimport UserReducer from './UserReducer'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport {\r\n ACTIVATE_USER_REQUEST,\r\n ACTIVATE_USER_SUCCESS,\r\n CHANGE_PASSWORD_REQUEST,\r\n CHANGE_PASSWORD_SUCCESS,\r\n CREATE_USER_REQUEST,\r\n CREATE_USER_SUCCESS,\r\n RESET_PASSWORD_REQUEST,\r\n RESET_PASSWORD_SUCCESS,\r\n GET_NOTIFICACIONES_TO_PAGE_REQUEST,\r\n GET_NOTIFICACIONES_TO_PAGE_SUCCESS,\r\n GET_NOTIFICACIONES_TO_PAGE_FAIL,\r\n GET_REPORTE_NOTIFICACION_REQUEST,\r\n GET_REPORTE_NOTIFICACION_SUCCESS,\r\n GET_REPORTE_NOTIFICACION_FAIL,\r\n GET_REPORTE_NOTIFICACION_ACTA_REQUEST,\r\n GET_REPORTE_NOTIFICACION_ACTA_SUCCESS,\r\n GET_REPORTE_NOTIFICACION_ACTA_FAIL,\r\n GET_DATOS_USUARIO_REQUEST,\r\n GET_DATOS_USUARIO_SUCCESS,\r\n CHANGE_DATOS_USUARIO_REQUEST,\r\n CHANGE_DATOS_USUARIO_SUCCESS,\r\n CLEAR_USER_DATA_REQUEST,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS,\r\n GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL,\r\n} from './UserTypes'\r\n\r\nconst UserState = (props) => {\r\n const { logout } = useContext(AuthContext)\r\n\r\n const initialState = {\r\n loadingResetPassword: false,\r\n loadingActivateUser: false,\r\n loadingCreateUser: false,\r\n changingPassword: false,\r\n notificaciones: [],\r\n loadingNotificaciones: false,\r\n totalNotificaciones: 0,\r\n reporteNotificacion: [],\r\n loadingReporteNotificacion: false,\r\n reporteNotificacionActa: [],\r\n loadingReporteNotificacionActa: false,\r\n usuario: null,\r\n loadingUsuario: false,\r\n changingUserData: false,\r\n eximiciones: [],\r\n loadingEximiciones: false,\r\n totalEximiciones: 0,\r\n tiposEximicion: [],\r\n loadingTiposEximicion: false,\r\n reporteEximicion: [],\r\n loadingReporteEximicion: false,\r\n requisitosTipoEximicion: [],\r\n loadingRequisitosTipoEximicion: false,\r\n savingEximicion: false,\r\n loadingReporteDfe: false,\r\n reporteDfe: [],\r\n savingDFE: false,\r\n notificacionesNoLeidas: [],\r\n loadingNotificacionesNoLeidas: false,\r\n totalNotificacionesNoLeidas: 0,\r\n totalDeclaracionesJuradasDfeToPage: 0,\r\n ddjjsDfe: [],\r\n loadingDeclaracionesJuradasDfeToPage: false,\r\n ddjjsRsu: [],\r\n loadingDeclaracionesJuradasRsuToPage: false,\r\n totalDeclaracionesJuradasRsuToPage: 0,\r\n savingDDJJRsu: false,\r\n ddjjDetalleRsu: [],\r\n loadingDdjjDetalleRsu: false,\r\n loadingReporteRsu: false,\r\n reporteRsu: [],\r\n }\r\n\r\n const [state, dispatch] = useReducer(UserReducer, initialState)\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n const reestablecerClave = async (cuit) => {\r\n dispatch({\r\n type: RESET_PASSWORD_REQUEST,\r\n })\r\n\r\n await ReestablecerClave(cuit).then(\r\n () => {\r\n dispatch({\r\n type: RESET_PASSWORD_SUCCESS,\r\n })\r\n\r\n Swal.fire(\r\n 'Email de Cambio de Clave',\r\n 'Un email de cambio de clave ha sido enviado a su casilla para que efectue este procedimiento',\r\n 'success',\r\n ).then(() => {\r\n window.location = '/'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const crearUsuario = async (cuit, email) => {\r\n dispatch({\r\n type: CREATE_USER_REQUEST,\r\n })\r\n\r\n await CrearUsuario(cuit, email).then(\r\n () => {\r\n dispatch({\r\n type: CREATE_USER_SUCCESS,\r\n })\r\n\r\n Swal.fire(\r\n 'Usuario Creado',\r\n 'Un email de activacion ha sido enviado a su casilla para que efectue este procedimiento',\r\n 'success',\r\n ).then(() => {\r\n window.location = '/'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n\r\n dispatch({\r\n type: CREATE_USER_SUCCESS,\r\n })\r\n },\r\n )\r\n }\r\n\r\n const activarUsuario = async (hash, newPassword, newPasswordConfirm) => {\r\n dispatch({\r\n type: ACTIVATE_USER_REQUEST,\r\n })\r\n\r\n await ActivarUsuario(hash, newPassword, newPasswordConfirm).then(\r\n (response) => {\r\n dispatch({\r\n type: ACTIVATE_USER_SUCCESS,\r\n })\r\n\r\n Swal.fire(\r\n 'Activacion exitosa',\r\n 'A partir de este momento puede ingresar a su domicilio fiscal con la clave especificada.',\r\n 'success',\r\n ).then(() => {\r\n window.location = '/'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const changePassword = async (oldPassword, newPassword, newPasswordConfirm) => {\r\n dispatch({\r\n type: CHANGE_PASSWORD_REQUEST,\r\n })\r\n\r\n await CambiarClave(oldPassword, newPassword, newPasswordConfirm).then(\r\n () => {\r\n dispatch({\r\n type: CHANGE_PASSWORD_SUCCESS,\r\n })\r\n\r\n logout()\r\n\r\n Swal.fire(\r\n 'Cambio de clave exitoso',\r\n 'A partir de este momento puede ingresar a su domicilio fiscal con la clave especificada.',\r\n 'success',\r\n ).then(() => {\r\n window.location = '/'\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: CHANGE_PASSWORD_SUCCESS,\r\n })\r\n\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* CONSULTA */\r\n const getNotificacionesToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: GET_NOTIFICACIONES_TO_PAGE_REQUEST,\r\n })\r\n\r\n await GetNotificacionesToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_NOTIFICACIONES_TO_PAGE_SUCCESS,\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: GET_NOTIFICACIONES_TO_PAGE_FAIL,\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getNotificacionesNoLeidasToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST,\r\n })\r\n\r\n await GetNotificacionesNoLeidasToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS,\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL,\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearNotificacionesData = () => {\r\n dispatch({\r\n type: 'CLEAR_NOTIFICACIONES_DATA_REQUEST',\r\n })\r\n }\r\n\r\n /* REPORTE */\r\n const getReporteNotificacion = async (id, idpakey, idimponible, nombrereporte, format) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_REQUEST,\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteNotificacion(id, idpakey, idimponible, nombrereporte, format).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_FAIL,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n const getReporteNotificacionActa = async (id, idtiponotificacion, idorden, idimponible, fechaac, format) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_ACTA_REQUEST,\r\n })\r\n\r\n let file = null\r\n\r\n await GetNotificacionActaReport(id, idtiponotificacion, idorden, idimponible, fechaac, format).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_ACTA_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_REPORTE_NOTIFICACION_ACTA_FAIL,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n const getDatosUsuario = async (cuit) => {\r\n dispatch({\r\n type: GET_DATOS_USUARIO_REQUEST,\r\n })\r\n\r\n await GetDatosUsuario(cuit).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: GET_DATOS_USUARIO_SUCCESS,\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrado', 'Uaurio no encontrado', 'info').then(() => {\r\n window.location = '/#/ddjj'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const cambiarDatosUsuario = async (data) => {\r\n dispatch({\r\n type: CHANGE_DATOS_USUARIO_REQUEST,\r\n })\r\n\r\n await CambiarDatosUsuario(data).then(\r\n () => {\r\n dispatch({\r\n type: CHANGE_DATOS_USUARIO_SUCCESS,\r\n })\r\n\r\n // Swal.fire('Datos Personales', \"Los datos han sido actualizados!.\", 'success').then(() => {\r\n // window.location = '/';\r\n // })\r\n\r\n Swal.fire({\r\n title: 'Datos Personales',\r\n html: 'Los datos han sido actualizados.
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n window.location = '/'\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: CHANGE_DATOS_USUARIO_SUCCESS,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearUserData = () => {\r\n dispatch({\r\n type: CLEAR_USER_DATA_REQUEST,\r\n })\r\n }\r\n\r\n /* CONSULTA EXIMICIONES*/\r\n const getEximicionesToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: 'GET_EXIMICIONES_TO_PAGE_REQUEST',\r\n })\r\n\r\n await GetEximicionesToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_EXIMICIONES_TO_PAGE_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_EXIMICIONES_TO_PAGE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearEximicionesToPage = async () => {\r\n dispatch({\r\n type: 'CLEAR_EXIMICIONES_REQUEST',\r\n })\r\n }\r\n\r\n const getTiposEximiciones = async () => {\r\n dispatch({\r\n type: 'GET_TIPOS_EXIMICION_REQUEST',\r\n })\r\n\r\n await GetTiposEximiciones().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_TIPOS_EXIMICION_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_TIPOS_EXIMICION_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getRequisitosTipoEximicion = async (id) => {\r\n dispatch({\r\n type: 'GET_REQUISITOS_TIPO_EXIMICION_REQUEST',\r\n })\r\n\r\n await GetRequisitosTipoEximicion(id).then(\r\n (response) => {\r\n //console.log(response)\r\n dispatch({\r\n type: 'GET_REQUISITOS_TIPO_EXIMICION_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_REQUISITOS_TIPO_EXIMICION_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearRequisitosTipoEximicion = async () => {\r\n dispatch({\r\n type: 'CLEAR_REQUISITOS_TIPO_EXIMICION_REQUEST',\r\n })\r\n }\r\n\r\n const solicitarEximicion = async (data) => {\r\n dispatch({\r\n type: 'SOLICITAR_EXIMICION_REQUEST',\r\n })\r\n\r\n await SolicitarEximicion(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'SOLICITAR_EXIMICION_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Solicitud de Eximición',\r\n html: 'El Documento ha sido prensentado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n window.location = '/#/eximiciones'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'SOLICITAR_EXIMICION_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n /* REPORTE */\r\n const getReporteEximicion = async (id, tipoex, tiporeporte, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_EXIMICION_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteEximicion(id, tipoex, tiporeporte, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_EXIMICION_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_EXIMICION_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /* REPORTE DFE*/\r\n const getDeclaracionJuradaDFEReport = async (idDDJJDfe, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_DFE_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetDeclaracionJuradaDFEReport(idDDJJDfe, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_DFE_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_DFE_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /* ALTA DFE*/\r\n const saveDDJJDomicilioFiscal = async (data) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_DFE_REQUEST',\r\n })\r\n\r\n await SaveDDJJDomicilioFiscal(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_DFE_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Domicilio Fiscal Electrónico',\r\n html: 'Declaración Jurada presentada. A partir de este momento puede ingresar al Portal del Contribuyente.
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n localStorage.removeItem('token')\r\n localStorage.removeItem('expiration')\r\n localStorage.removeItem('user')\r\n window.location = '/'\r\n })\r\n\r\n // logout();\r\n\r\n // Swal.fire('Domicilio Fiscal Eectrónico', \"Declaración Jurada presentada. A partir de este momento puede ingresar al Portal del Contribuyente.\", 'success').then(() => {\r\n // window.location = '/';\r\n // })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'SAVE_DDJJ_DFE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n /* BAJA DFE*/\r\n const bajaDDJJDomicilioFiscal = async () => {\r\n dispatch({\r\n type: 'BAJA_DDJJ_DFE_REQUEST',\r\n })\r\n\r\n await BajaDDJJDomicilioFiscal().then(\r\n (response) => {\r\n dispatch({\r\n type: 'BAJA_DDJJ_DFE_SUCCESS',\r\n payload: response,\r\n })\r\n logout()\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'BAJA_DDJJ_DFE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n /* HISTORIAL DFE */\r\n const getDeclaracionesJuradasDfeToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: 'GET_DDJJ_DFE_TO_PAGE_REQUEST',\r\n })\r\n\r\n await GetDeclaracionesJuradasDfeToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DDJJ_DFE_TO_PAGE_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DDJJ_DFE_TO_PAGE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearDeclaracionesJuradasDfeToPage = async () => {\r\n dispatch({\r\n type: 'CLEAR_DDJJ_DFE_REQUEST',\r\n })\r\n }\r\n\r\n /* HISTORIAL RSU */\r\n const getDeclaracionesJuradasRsuToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_TO_PAGE_REQUEST',\r\n })\r\n\r\n await GetDeclaracionesJuradasRSUToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_TO_PAGE_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_TO_PAGE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearDeclaracionesJuradasRsuToPage = async () => {\r\n dispatch({\r\n type: 'CLEAR_DDJJ_RSU_REQUEST',\r\n })\r\n }\r\n\r\n /* ALTA RSU*/\r\n const saveDDJJRsu = async (data) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_RSU_REQUEST',\r\n })\r\n\r\n await SaveDDJJRsu(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_RSU_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Presentación de Declaración Jurada',\r\n html: 'Declaración Jurada presentada.
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n window.location = '/#/ddjjRSU/consulta'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'SAVE_DDJJ_RSU_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n /* REPORTE RSU*/\r\n const getDeclaracionJuradaRSUReport = async (idDDJJ, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_RSU_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetDeclaracionJuradaRSUReport(idDDJJ, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_RSU_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_RSU_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /* Detalle DDJJ RSU */\r\n const getDeclaracionJuradaRSUById = async (idDDJJ) => {\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_BY_ID_REQUEST',\r\n })\r\n await GetDeclaracionJuradaRSUById(idDDJJ).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_BY_ID_SUCCESS',\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrada', 'Declaracion Jurada no encontrada', 'info').then(() => {\r\n window.location = '/#/ddjjRSU/consulta'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DDJJ_RSU_BY_ID_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nUserState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nUserState.displayName = 'UserState'\r\n\r\nexport default UserState\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetLocalidades = () => {\r\n return AxiosClient.get(`common/GetLocalidades`).then((response) => response.data)\r\n}\r\n\r\nconst GetLocalidadesDFE = async () => {\r\n const response = await AxiosClient.get(process.env.REACT_APP_BACKEND_DFE_URL + `common/GetLocalidadesDFE`)\r\n return response.data\r\n}\r\n\r\nconst GetTipoDocumento = async () => {\r\n const response = await AxiosClient.get(`common/GetTipoDocumento`)\r\n return response.data\r\n}\r\n\r\nconst GetPartidasDFE = () => {\r\n return AxiosClient.get(`common/GetPartidasDFE`).then((response) => response.data)\r\n}\r\n\r\nconst GetVencimientosTasas = async () => {\r\n const response = await AxiosClient.get(`common/GetVencimientosTasas`)\r\n return response.data\r\n}\r\n\r\n/* Periodos Faltantes */\r\nconst GetReportePeriodosFaltantes = async (areagestion, partida, fechaDesde, fechaHasta, format) => {\r\n const response = await AxiosClient.get(\r\n `common/GetReportePeriodosFaltantes?areagestion=${areagestion}&partida=${partida}&fechaDesde=${fechaDesde}&fechaHasta=${fechaHasta}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\nexport { GetLocalidades, GetLocalidadesDFE, GetTipoDocumento, GetPartidasDFE, GetVencimientosTasas, GetReportePeriodosFaltantes }\r\n","const CommonReducer = (state, action) => {\r\n switch (action.type) {\r\n /* LOCALIDADES */\r\n case 'GET_LOCALIDADES_REQUEST':\r\n return {\r\n ...state,\r\n loadingLocalidades: true,\r\n }\r\n\r\n case 'GET_LOCALIDADES_SUCCESS':\r\n return {\r\n ...state,\r\n localidades: action.payload,\r\n loadingLocalidades: false,\r\n }\r\n\r\n case 'GET_LOCALIDADES_FAIL':\r\n return {\r\n ...state,\r\n loadingLocalidades: false,\r\n localidades: [],\r\n }\r\n\r\n /* LOCALIDADES DFE*/\r\n case 'GET_LOCALIDADES_DFE_REQUEST':\r\n return {\r\n ...state,\r\n loadingLocalidadesDFE: true,\r\n }\r\n\r\n case 'GET_LOCALIDADES_DFE_SUCCESS':\r\n return {\r\n ...state,\r\n localidadesDFE: action.payload,\r\n loadingLocalidadesDFE: false,\r\n }\r\n\r\n case 'GET_LOCALIDADES_DFE_FAIL':\r\n return {\r\n ...state,\r\n loadingLocalidadesDFE: false,\r\n localidadesDFE: [],\r\n }\r\n\r\n /* TIPOS DE DOCUMENTO */\r\n case 'GET_TIPO_DOCUMENTO_KV_REQUEST':\r\n return {\r\n ...state,\r\n loadingTipoDocumentoKeyValue: true,\r\n }\r\n\r\n case 'GET_TIPO_DOCUMENTO_KV_SUCCESS':\r\n return {\r\n ...state,\r\n tipoDocumentoKeyValue: action.payload,\r\n loadingTipoDocumentoKeyValue: false,\r\n }\r\n\r\n case 'GET_TIPO_DOCUMENTO_KV_FAIL':\r\n return {\r\n ...state,\r\n loadingTipoDocumentoKeyValue: false,\r\n tipoDocumentoKeyValue: [],\r\n }\r\n\r\n case 'GET_PARTIDAS_DFE_REQUEST':\r\n return {\r\n ...state,\r\n loadingPartidasDFE: true,\r\n }\r\n\r\n case 'GET_PARTIDAS_DFE_SUCCESS':\r\n return {\r\n ...state,\r\n loadingPartidasDFE: false,\r\n partidasDFE: action.payload,\r\n }\r\n\r\n case 'GET_PARTIDAS_DDJJ_FAIL':\r\n return {\r\n ...state,\r\n loadingPartidasDFE: false,\r\n partidasDFE: [],\r\n }\r\n\r\n case 'CLEAR_PARTIDAS_DFE_REQUEST':\r\n return {\r\n ...state,\r\n loadingPartidasDFE: false,\r\n partidasDFE: [],\r\n }\r\n\r\n // VENCIMEINTOS TASAS\r\n case 'GET_VENCIMIENTOS_TASAS_REQUEST':\r\n return {\r\n ...state,\r\n loadingVencimientosTasas: true,\r\n }\r\n\r\n case 'GET_VENCIMIENTOS_TASAS_SUCCESS':\r\n return {\r\n ...state,\r\n loadingVencimientosTasas: false,\r\n vencimientosTasas: action.payload,\r\n }\r\n\r\n case 'GET_VENCIMIENTOS_TASAS_FAIL':\r\n return {\r\n ...state,\r\n loadingVencimientosTasas: false,\r\n vencimientosTasas: null,\r\n }\r\n\r\n /* REPORTE PERIODOS FALTANTES */\r\n case 'GET_REPORTE_PF_REQUEST':\r\n return {\r\n ...state,\r\n loadingPeriodosFaltantes: true,\r\n }\r\n case 'GET_REPORTE_PF_SUCCESS':\r\n return {\r\n ...state,\r\n loadingPeriodosFaltantes: false,\r\n reportePF: action.payload,\r\n }\r\n case 'GET_REPORTE_PF_FAIL':\r\n return {\r\n ...state,\r\n loadingPeriodosFaltantes: false,\r\n reportePF: [],\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default CommonReducer\r\n","import React, { useReducer } from 'react'\r\nimport { withRouter } from 'react-router'\r\nimport {\r\n GetLocalidades,\r\n GetLocalidadesDFE,\r\n GetPartidasDFE,\r\n GetTipoDocumento,\r\n GetVencimientosTasas,\r\n GetReportePeriodosFaltantes,\r\n} from 'src/api/services/CommonService'\r\nimport Swal from 'sweetalert2'\r\nimport CommonContext from './CommonContext'\r\nimport CommonReducer from './CommonReducer'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport PropTypes from 'prop-types'\r\n\r\nconst CommonState = (props) => {\r\n const initialState = {\r\n localidades: [],\r\n loadingLocalidades: false,\r\n loadingCallesKeyValue: false,\r\n tipoDocumentoKeyValue: [],\r\n loadingTipoDocumentoKeyValue: false,\r\n localidadesDFE: [],\r\n loadingLocalidadesDFE: false,\r\n loadingPartidasDFE: false,\r\n partidasDFE: [],\r\n vencimientosTasas: null,\r\n loadingVencimientosTasas: false,\r\n /* Períodos Faltantes */\r\n loadingPeriodosFaltantes: false,\r\n periodosFaltantesModalVisible: false,\r\n reportePF: [],\r\n }\r\n\r\n const [state, dispatch] = useReducer(CommonReducer, initialState)\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n const getLocalidades = async () => {\r\n dispatch({\r\n type: 'GET_LOCALIDADES_REQUEST',\r\n })\r\n\r\n await GetLocalidades().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_LOCALIDADES_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_LOCALIDADES_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getLocalidadesDFE = async () => {\r\n dispatch({\r\n type: 'GET_LOCALIDADES_DFE_REQUEST',\r\n })\r\n\r\n await GetLocalidadesDFE().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_LOCALIDADES_DFE_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_LOCALIDADES_DFE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getTipoDocumentoKeyValue = async () => {\r\n dispatch({\r\n type: 'GET_TIPO_DOCUMENTO_KV_REQUEST',\r\n })\r\n await GetTipoDocumento().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_TIPO_DOCUMENTO_KV_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_TIPO_DOCUMENTO_KV_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getPartidasDFE = async (data) => {\r\n dispatch({\r\n type: 'GET_PARTIDAS_DFE_REQUEST',\r\n })\r\n\r\n await GetPartidasDFE(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_PARTIDAS_DFE_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_PARTIDAS_DDJJ_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearPartidasDFE = async () => {\r\n dispatch({\r\n type: 'CLEAR_PARTIDAS_DFE_REQUEST',\r\n })\r\n }\r\n\r\n const getVencimientosTasas = async (data) => {\r\n dispatch({\r\n type: 'GET_VENCIMIENTOS_TASAS_REQUEST',\r\n })\r\n\r\n await GetVencimientosTasas(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_VENCIMIENTOS_TASAS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_VENCIMIENTOS_TASAS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n /* Periodos Faltantes */\r\n const getReportePeriodosFaltantes = async (areagestion, partida, fechaDesde, fechaHasta, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_PF_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReportePeriodosFaltantes(areagestion, partida, fechaDesde, fechaHasta, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_PF_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_PF_FAIL',\r\n })\r\n console.log(error)\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nCommonState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nCommonState.displayName = 'CommonState'\r\n\r\nexport default withRouter(CommonState)\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetDeclaracionesJuradasToPage = (page, pageSize, filter) => {\r\n return AxiosClient.post(`declaracionJurada/GetDeclaracionesJuradasToPage`, { page, pageSize, filter }).then((response) => response.data)\r\n}\r\n\r\nconst GetDeclaracionJuradaById = (idDDJJ) => {\r\n return AxiosClient.get(`declaracionJurada/GetDeclaracionJuradaById?idDDJJ=${idDDJJ}`).then((response) => response.data)\r\n}\r\n\r\nconst GetDeclaracionJuradaPublicidadesToPage = (page, pageSize, filter) => {\r\n return AxiosClient.post(`declaracionJurada/GetPublicidadesDeclaracionJurada`, { page, pageSize, filter }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst GetPublicidadesDeclaracionPresentar = (idDDJJ, partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetPublicidadesDeclaracionPresentar`, { idDDJJ, partida }).then((response) => response.data)\r\n}\r\n\r\nconst GetTotalesDeclaracionJurada = (ddjjId, partida, estado) => {\r\n return AxiosClient.post(`declaracionJurada/GetTotalesDeclaracionJurada`, { ddjjId, partida, estado }).then((response) => response.data)\r\n}\r\n\r\nconst GetExistenciaDeActa = (anio, cuotaId, partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetExistenciadeActa`, { anio, cuotaId, partida }).then((response) => response.data)\r\n}\r\n\r\nconst GetExistenciaBloqueo = (anio, cuota, partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetExistenciaBloqueo`, { anio, cuota, partida }).then((response) => response.data)\r\n}\r\n\r\nconst GetComercioBaja = (anio, cuota, partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetComercioBaja`, { anio, cuota, partida }).then((response) => response.data)\r\n}\r\n\r\nconst GetPeriodoHabilitado = (anio, cuota) => {\r\n return AxiosClient.post(`declaracionJurada/GetPeriodoHabilitado`, { anio, cuota }).then((response) => response.data)\r\n}\r\n\r\nconst GetExistenciaTipoContribuyente = (anio, cuota) => {\r\n return AxiosClient.get(`declaracionJurada/GetExistenciaTipoContribuyente?anio=${anio}&cuota=${cuota}`).then((response) => response.data)\r\n}\r\n\r\nconst GetExistenciaVinculacionPresentacion = (anio, cuota, partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetExistenciaVinculacionPresentacion`, { anio, cuota, partida }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst GetExistenciaBorradorDDJJ = (partida) => {\r\n return AxiosClient.post(`declaracionJurada/GetExistenciaBorrador`, { partida }).then((response) => response.data)\r\n}\r\n\r\nconst CreateBorradorDeclaracionJurada = (anio, cuotaId, partida) => {\r\n return AxiosClient.post(`declaracionJurada/CreateBorradorDeclaracionJurada`, { anio, cuotaId, partida }).then((response) => response.data)\r\n}\r\n\r\nconst RefreshBorradorDeclaracionJurada = (declaracionJuradaId) => {\r\n return AxiosClient.post(`declaracionJurada/RefreshBorradorDeclaracionJurada`, { declaracionJuradaId }).then((response) => response.data)\r\n}\r\n\r\nconst SaveDeclaracionJurada = (ddjj) => {\r\n return AxiosClient.post(`declaracionJurada/SaveDeclaracionJurada`, ddjj).then((response) => response.data)\r\n}\r\n\r\nconst GetAnios = () => {\r\n return AxiosClient.get(`declaracionJurada/GetAnios`).then((response) => response.data)\r\n}\r\n\r\nconst GetCuotas = (anio) => {\r\n return AxiosClient.get(`declaracionJurada/GetCuotas?anio=${anio}`).then((response) => response.data)\r\n}\r\n\r\nconst GetVencimientoCuota = (anio, cuota) => {\r\n return AxiosClient.post(`declaracionJurada/GetVencimientoCuota`, { anio, cuota }).then((response) => response.data)\r\n}\r\n\r\nconst GetPartidas = () => {\r\n return AxiosClient.get(`declaracionJurada/GetPartidas`).then((response) => response.data)\r\n}\r\n\r\nconst GetPartidasDDJJ = (data) => {\r\n return AxiosClient.post(`declaracionJurada/GetPartidasDDJJ`, data).then((response) => response.data)\r\n}\r\n\r\n/**** AGREGAR PUBLICIDAD ***/\r\n\r\nconst GetTiposPublicidades = (anio, cuota) => {\r\n return AxiosClient.get(`declaracionJurada/GetTiposPublicidades?anio=${anio}&cuota=${cuota}`).then((response) => response.data)\r\n}\r\n\r\nconst GetCamposRequeridosByPublicidadId = (tipoPublicidadId, anio, cuotaId) => {\r\n return AxiosClient.post(`declaracionJurada/GetCamposRequeridosByPublicidadId`, { tipoPublicidadId, anio, cuotaId }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst GetExistenciaPartida = (partida) => {\r\n return AxiosClient.get(`declaracionJurada/GetExistenciaPartida?partida=${partida}`).then((response) => response.data)\r\n}\r\n\r\nconst GetCalles = (nombre) => {\r\n return AxiosClient.get(`declaracionJurada/GetCalles?nombre=${nombre}`).then((response) => response.data)\r\n}\r\n\r\nconst GetTiposContenidoPublicidad = (nombre) => {\r\n return AxiosClient.get(`declaracionJurada/GetTiposContenidoPublicidad`).then((response) => response.data)\r\n}\r\n\r\nconst GetPartidaDireccion = (partida) => {\r\n return AxiosClient.get(`declaracionJurada/GetPartidaDireccion?partida=${partida}`).then((response) => response.data)\r\n}\r\n\r\nconst SavePublicidad = (publicidad) => {\r\n return AxiosClient.post(`declaracionJurada/SavePublicidades`, publicidad).then((response) => response.data)\r\n}\r\n\r\nconst DeletePublicidad = (detalleDDJJId, imageBajaPublicidadBase64) => {\r\n return AxiosClient.post(`declaracionJurada/DeletePublicidad`, { detalleDDJJId, imageBajaPublicidadBase64 }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst ActivatePublicidad = (detalleDDJJId) => {\r\n return AxiosClient.post(`declaracionJurada/ActivatePublicidad`, { detalleDDJJId }).then((response) => response.data)\r\n}\r\n\r\nconst ChangePolizaPublicidad = (poliza) => {\r\n return AxiosClient.post(`declaracionJurada/ChangePolizaPublicidad`, poliza).then((response) => response.data)\r\n}\r\n\r\n/* REPORTE */\r\nconst GetReporteDeclaracionJurada = (idDDJJ, format) => {\r\n return AxiosClient.get(`declaracionJurada/GetDeclaracionJuradaReport?idDDJJ=${idDDJJ}&format=${format}`, { responseType: 'blob' }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\n/* CAMBIAR FECHA DE PUBLICIDAD*/\r\nconst ChangeFechaPublicidad = (detalleDDJJId, fechaDesde, fechaHasta) => {\r\n return AxiosClient.post(`declaracionJurada/ChangeDatePublicidad`, { detalleDDJJId, fechaDesde, fechaHasta }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nexport {\r\n GetDeclaracionesJuradasToPage,\r\n GetDeclaracionJuradaPublicidadesToPage,\r\n GetDeclaracionJuradaById,\r\n GetExistenciaBorradorDDJJ,\r\n GetExistenciaDeActa,\r\n GetExistenciaBloqueo,\r\n GetExistenciaVinculacionPresentacion,\r\n GetExistenciaTipoContribuyente,\r\n CreateBorradorDeclaracionJurada,\r\n RefreshBorradorDeclaracionJurada,\r\n SaveDeclaracionJurada,\r\n GetAnios,\r\n GetCuotas,\r\n GetPartidas,\r\n GetPeriodoHabilitado,\r\n GetVencimientoCuota,\r\n GetTotalesDeclaracionJurada,\r\n GetTiposPublicidades,\r\n GetCamposRequeridosByPublicidadId,\r\n GetExistenciaPartida,\r\n GetPartidaDireccion,\r\n GetCalles,\r\n GetTiposContenidoPublicidad,\r\n GetPublicidadesDeclaracionPresentar,\r\n SavePublicidad,\r\n DeletePublicidad,\r\n ActivatePublicidad,\r\n ChangePolizaPublicidad,\r\n GetReporteDeclaracionJurada,\r\n ChangeFechaPublicidad,\r\n GetComercioBaja,\r\n GetPartidasDDJJ,\r\n}\r\n","export const GET_DDJJ_TO_PAGE_REQUEST = 'GET_DDJJ_TO_PAGE_REQUEST'\r\nexport const GET_DDJJ_TO_PAGE_SUCCESS = 'GET_DDJJ_TO_PAGE_SUCCESS'\r\n\r\nexport const GET_DDJJ_BY_ID_REQUEST = 'GET_DDJJ_BY_ID_REQUEST'\r\nexport const GET_DDJJ_BY_ID_SUCCESS = 'GET_DDJJ_BY_ID_SUCCESS'\r\n\r\nexport const GET_DDJJ_PUBLICIDADES_REQUEST = 'GET_DDJJ_PUBLICIDADES_REQUEST'\r\nexport const GET_DDJJ_PUBLICIDADES_SUCCESS = 'GET_DDJJ_PUBLICIDADES_SUCCESS'\r\n\r\nexport const CLEAR_DDJJ_DETAIL_REQUEST = 'CLEAR_DDJJ_DETAIL_REQUEST'\r\nexport const CLEAR_DDJJ_DETAIL_SUCCESS = 'CLEAR_DDJJ_DETAIL_SUCCESS'\r\n\r\nexport const GET_ANIOS_REQUEST = 'GET_ANIOS_REQUEST'\r\nexport const GET_ANIOS_SUCCESS = 'GET_ANIOS_SUCCESS'\r\n\r\nexport const GET_CUOTAS_REQUEST = 'GET_CUOTAS_REQUEST'\r\nexport const GET_CUOTAS_SUCCESS = 'GET_CUOTAS_SUCCESS'\r\n\r\nexport const CLEAR_CUOTAS_REQUEST = 'CLEAR_CUOTAS_REQUEST'\r\n\r\nexport const GET_PARTIDAS_REQUEST = 'GET_PARTIDAS_REQUEST'\r\nexport const GET_PARTIDAS_SUCCESS = 'GET_PARTIDAS_SUCCESS'\r\n\r\nexport const GET_REPORTE_DDJJ_REQUEST = 'GET_REPORTE_DDJJ_REQUEST'\r\nexport const GET_REPORTE_DDJJ_SUCCESS = 'GET_REPORTE_DDJJ_SUCCESS'\r\nexport const GET_REPORTE_DDJJ_FAIL = 'GET_REPORTE_DDJJ_FAIL'\r\nexport const SHOW_ERROR = 'SHOW_ERROR'\r\nexport const HIDE_ERROR = 'HIDE_ERROR'\r\n\r\nexport const GET_VENCIMIENTO_CUOTA_REQUEST = 'GET_VENCIMIENTO_CUOTA_REQUEST'\r\nexport const GET_VENCIMIENTO_CUOTA_SUCCESS = 'GET_VENCIMIENTO_CUOTA_SUCCESS'\r\n\r\nexport const GET_TOTALES_DDJJ_REQUEST = 'GET_TOTALES_DDJJ_REQUEST'\r\nexport const GET_TOTALES_DDJJ_SUCCESS = 'GET_TOTALES_DDJJ_SUCCESS'\r\n\r\nexport const GET_EXISTENCIA_ACTA_REQUEST = 'GET_EXISTENCIA_ACTA_REQUEST'\r\nexport const GET_EXISTENCIA_ACTA_SUCCESS = 'GET_EXISTENCIA_ACTA_SUCCESS'\r\n\r\nexport const GET_EXISTENCIA_BLOQUEO_REQUEST = 'GET_EXISTENCIA_BLOQUEO_REQUEST'\r\nexport const GET_EXISTENCIA_BLOQUEO_SUCCESS = 'GET_EXISTENCIA_BLOQUEO_SUCCESS'\r\n\r\nexport const GET_COMERCIO_BAJA_REQUEST = 'GET_COMERCIO_BAJA_REQUEST'\r\nexport const GET_COMERCIO_BAJA_SUCCESS = 'GET_COMERCIO_BAJA_SUCCESS'\r\n\r\nexport const GET_EXISTENCIA_VINCULACION_REQUEST = 'GET_EXISTENCIA_VINCULACION_REQUEST'\r\nexport const GET_EXISTENCIA_VINCULACION_SUCCESS = 'GET_EXISTENCIA_VINCULACION_SUCCESS'\r\n\r\n/* ALTA */\r\n\r\nexport const GET_EXISTENCIA_BORRADOR_DDJJ_REQUEST = 'GET_EXISTENCIA_BORRADOR_DDJJ_REQUEST'\r\n\r\nexport const CREATE_BORRADOR_REQUEST = 'CREATE_BORRADOR_REQUEST'\r\nexport const CREATE_BORRADOR_SUCCESS = 'CREATE_BORRADOR_SUCCESS'\r\n\r\nexport const REFRESH_BORRADOR_REQUEST = 'REFRESH_BORRADOR_REQUEST'\r\nexport const REFRESH_BORRADOR_SUCCESS = 'REFRESH_BORRADOR_SUCCESS'\r\n\r\nexport const GET_DDJJ_BORRADOR_BY_ID_REQUEST = 'GET_DDJJ_BORRADOR_BY_ID_REQUEST'\r\nexport const GET_DDJJ_BORRADOR_BY_ID_SUCCESS = 'GET_DDJJ_BORRADOR_BY_ID_SUCCESS'\r\n\r\nexport const SAVE_DDJJ_BORRADOR_REQUEST = 'SAVE_DDJJ_BORRADOR_REQUEST'\r\nexport const SAVE_DDJJ_BORRADOR_SUCCESS = 'SAVE_DDJJ_BORRADOR_SUCCESS'\r\nexport const SAVE_DDJJ_BORRADOR_FAIL = 'SAVE_DDJJ_BORRADOR_FAIL'\r\n\r\nexport const LIQUIDACION_DDJJ_REQUEST = 'LIQUIDACION_DDJJ_REQUEST'\r\nexport const LIQUIDACION_DDJJ_SUCCESS = 'LIQUIDACION_DDJJ_SUCCESS'\r\n\r\nexport const GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST = 'GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST'\r\nexport const GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS = 'GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS'\r\n\r\nexport const CLEAR_DDJJ_CREATE_DATA_REQUEST = 'CLEAR_DDJJ_CREATE_DATA_REQUEST'\r\nexport const CLEAR_DDJJ_CREATE_DATA_SUCCESS = 'CLEAR_DDJJ_CREATE_DATA_SUCCESS'\r\n\r\n/* ALTA PUBLICIDAD */\r\n\r\nexport const GET_TIPO_PUBLICIDADES_REQUEST = 'GET_TIPO_PUBLICIDADES_REQUEST'\r\nexport const GET_TIPO_PUBLICIDADES_SUCCESS = 'GET_TIPO_PUBLICIDADES_SUCCESS'\r\n\r\nexport const GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST = 'GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST'\r\nexport const GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS = 'GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS'\r\n\r\nexport const GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST = 'GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST'\r\nexport const GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS = 'GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS'\r\n\r\nexport const GET_EXISTENCIA_PARTIDA_REQUEST = 'GET_EXISTENCIA_PARTIDA_REQUEST'\r\nexport const GET_EXISTENCIA_PARTIDA_SUCCESS = 'GET_EXISTENCIA_PARTIDA_SUCCESS'\r\n\r\nexport const GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST = 'GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST'\r\nexport const GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS = 'GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS'\r\n\r\nexport const GET_PARTIDA_DIRECCION_REQUEST = 'GET_PARTIDA_DIRECCION_REQUEST'\r\nexport const GET_PARTIDA_DIRECCION_SUCCESS = 'GET_PARTIDA_DIRECCION_SUCCESS'\r\n\r\nexport const GET_PARTIDA_TERCERO_DIRECCION_REQUEST = 'GET_PARTIDA_TERCERO_DIRECCION_REQUEST'\r\nexport const GET_PARTIDA_TERCERO_DIRECCION_SUCCESS = 'GET_PARTIDA_TERCERO_DIRECCION_SUCCESS'\r\n\r\nexport const GET_CALLES_REQUEST = 'GET_CALLES_REQUEST'\r\nexport const GET_CALLES_SUCCESS = 'GET_CALLES_SUCCESS'\r\n\r\nexport const SHOW_PUBLICIDAD_MODAL = 'SHOW_PUBLICIDAD_MODAL'\r\nexport const HIDE_PUBLICIDAD_MODAL = 'HIDE_PUBLICIDAD_MODAL'\r\n\r\nexport const SHOW_CHANGE_POLIZA_MODAL = 'SHOW_CHANGE_POLIZA_MODAL'\r\nexport const HIDE_CHANGE_POLIZA_MODAL = 'HIDE_CHANGE_POLIZA_MODAL'\r\n\r\nexport const CHANGE_POLIZA_REQUEST = 'CHANGE_POLIZA_REQUEST'\r\nexport const CHANGE_POLIZA_SUCCESS = 'CHANGE_POLIZA_SUCCESS'\r\n\r\nexport const SAVE_PUBLICIDAD_REQUEST = 'SAVE_PUBLICIDAD_REQUEST'\r\nexport const SAVE_PUBLICIDAD_SUCCESS = 'SAVE_PUBLICIDAD_SUCCESS'\r\n\r\nexport const ACTIVATE_PUBLICIDAD_REQUEST = 'ACTIVATE_PUBLICIDAD_REQUEST'\r\nexport const ACTIVATE_PUBLICIDAD_SUCCESS = 'ACTIVATE_PUBLICIDAD_SUCCESS'\r\n\r\nexport const CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST = 'CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST'\r\n\r\n/* BAJA DE PUBLICIDAD */\r\nexport const DELETE_PUBLICIDAD_REQUEST = 'DELETE_PUBLICIDAD_REQUEST'\r\nexport const DELETE_PUBLICIDAD_SUCCESS = 'DELETE_PUBLICIDAD_SUCCESS'\r\n\r\n/* CAMBIAR FECHA DE PUBLICIDAD */\r\nexport const CHANGE_FECHA_PUBLICIDAD_REQUEST = 'CHANGE_FECHA_PUBLICIDAD_REQUEST'\r\nexport const CHANGE_FECHA_PUBLICIDAD_SUCCESS = 'CHANGE_FECHA_PUBLICIDAD_SUCCESS'\r\n\r\n/* PERIODO HABILITADO (PYP_FECHA_PRESENTACION_DJ) */\r\nexport const GET_PERIODO_HABILITADO_REQUEST = 'GET_PERIODO_HABILITADO_REQUEST'\r\nexport const GET_PERIODO_HABILITADO_SUCCESS = 'GET_PERIODO_HABILITADO_SUCCESS'\r\n\r\nexport const GET_PARTIDAS_DDJJ_REQUEST = 'GET_PARTIDAS_DDJJ_REQUEST'\r\nexport const GET_PARTIDAS_DDJJ_SUCCESS = 'GET_PARTIDAS_DDJJ_SUCCESS'\r\n\r\nexport const CLEAR_PARTIDAS_DDJJ_REQUEST = 'CLEAR_PARTIDAS_DDJJ_REQUEST'\r\n\r\nexport const GET_EXISTENCIA_BORRADOR_REQUEST = 'GET_EXISTENCIA_BORRADOR_REQUEST'\r\nexport const GET_EXISTENCIA_BORRADOR_SUCCESS = 'GET_EXISTENCIA_BORRADOR_SUCCESS'\r\n","import {\r\n GET_DDJJ_TO_PAGE_REQUEST,\r\n GET_DDJJ_TO_PAGE_SUCCESS,\r\n GET_ANIOS_REQUEST,\r\n GET_CUOTAS_REQUEST,\r\n GET_PARTIDAS_REQUEST,\r\n GET_ANIOS_SUCCESS,\r\n GET_CUOTAS_SUCCESS,\r\n GET_PARTIDAS_SUCCESS,\r\n CLEAR_CUOTAS_REQUEST,\r\n GET_DDJJ_BY_ID_REQUEST,\r\n GET_DDJJ_BY_ID_SUCCESS,\r\n GET_DDJJ_BORRADOR_BY_ID_REQUEST,\r\n GET_DDJJ_BORRADOR_BY_ID_SUCCESS,\r\n GET_DDJJ_PUBLICIDADES_SUCCESS,\r\n GET_DDJJ_PUBLICIDADES_REQUEST,\r\n CLEAR_DDJJ_DETAIL_SUCCESS,\r\n CLEAR_DDJJ_DETAIL_REQUEST,\r\n GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST,\r\n GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS,\r\n CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n CREATE_BORRADOR_REQUEST,\r\n CREATE_BORRADOR_SUCCESS,\r\n SAVE_DDJJ_BORRADOR_REQUEST,\r\n SAVE_DDJJ_BORRADOR_SUCCESS,\r\n SAVE_DDJJ_BORRADOR_FAIL,\r\n GET_TIPO_PUBLICIDADES_REQUEST,\r\n GET_TIPO_PUBLICIDADES_SUCCESS,\r\n GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS,\r\n CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n GET_CALLES_REQUEST,\r\n GET_CALLES_SUCCESS,\r\n SHOW_PUBLICIDAD_MODAL,\r\n HIDE_PUBLICIDAD_MODAL,\r\n DELETE_PUBLICIDAD_REQUEST,\r\n DELETE_PUBLICIDAD_SUCCESS,\r\n GET_VENCIMIENTO_CUOTA_REQUEST,\r\n GET_VENCIMIENTO_CUOTA_SUCCESS,\r\n GET_TOTALES_DDJJ_REQUEST,\r\n GET_TOTALES_DDJJ_SUCCESS,\r\n GET_REPORTE_DDJJ_REQUEST,\r\n GET_REPORTE_DDJJ_SUCCESS,\r\n GET_REPORTE_DDJJ_FAIL,\r\n GET_EXISTENCIA_ACTA_REQUEST,\r\n GET_EXISTENCIA_ACTA_SUCCESS,\r\n LIQUIDACION_DDJJ_REQUEST,\r\n LIQUIDACION_DDJJ_SUCCESS,\r\n REFRESH_BORRADOR_REQUEST,\r\n REFRESH_BORRADOR_SUCCESS,\r\n GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST,\r\n GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS,\r\n SHOW_CHANGE_POLIZA_MODAL,\r\n HIDE_CHANGE_POLIZA_MODAL,\r\n CHANGE_POLIZA_REQUEST,\r\n CHANGE_POLIZA_SUCCESS,\r\n GET_PARTIDA_DIRECCION_REQUEST,\r\n GET_PARTIDA_DIRECCION_SUCCESS,\r\n GET_PARTIDA_TERCERO_DIRECCION_REQUEST,\r\n GET_PARTIDA_TERCERO_DIRECCION_SUCCESS,\r\n GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST,\r\n GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS,\r\n /* CAMBIAR FECHA DE PUBLICIDAD */\r\n CHANGE_FECHA_PUBLICIDAD_REQUEST,\r\n CHANGE_FECHA_PUBLICIDAD_SUCCESS,\r\n SAVE_PUBLICIDAD_REQUEST,\r\n SAVE_PUBLICIDAD_SUCCESS,\r\n GET_PERIODO_HABILITADO_REQUEST,\r\n GET_PERIODO_HABILITADO_SUCCESS,\r\n GET_COMERCIO_BAJA_REQUEST,\r\n GET_COMERCIO_BAJA_SUCCESS,\r\n GET_PARTIDAS_DDJJ_REQUEST,\r\n GET_PARTIDAS_DDJJ_SUCCESS,\r\n CLEAR_PARTIDAS_DDJJ_REQUEST,\r\n GET_EXISTENCIA_BORRADOR_REQUEST,\r\n GET_EXISTENCIA_BORRADOR_SUCCESS,\r\n GET_EXISTENCIA_VINCULACION_REQUEST,\r\n GET_EXISTENCIA_VINCULACION_SUCCESS,\r\n GET_EXISTENCIA_BLOQUEO_REQUEST,\r\n GET_EXISTENCIA_BLOQUEO_SUCCESS,\r\n} from './DeclaracionJuradaTypes'\r\n\r\nconst DeclaracionJuradaReducer = (state, action) => {\r\n switch (action.type) {\r\n case CLEAR_DDJJ_DETAIL_REQUEST:\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalle: true,\r\n }\r\n\r\n case CLEAR_DDJJ_DETAIL_SUCCESS:\r\n return {\r\n ...state,\r\n declaracionJuradaDetalle: [],\r\n declaracionJuradaPublicidades: [],\r\n loadingDeclaracionJuradaDetalle: false,\r\n }\r\n\r\n case CLEAR_DDJJ_CREATE_DATA_REQUEST:\r\n return {\r\n ...state,\r\n loadingBorradorDDJJ: false,\r\n loadingPublcidadesBorradorDDJJ: false,\r\n editingBorrador: false,\r\n declaracionJuradaBorrador: null,\r\n declaracionJuradaBorradorPublicidades: null,\r\n totalPublicidadesBorrador: 0,\r\n }\r\n\r\n case GET_DDJJ_TO_PAGE_REQUEST:\r\n return {\r\n ...state,\r\n loading: true,\r\n }\r\n\r\n case GET_DDJJ_TO_PAGE_SUCCESS:\r\n return {\r\n ...state,\r\n total: action.payload.total,\r\n declaracionesJuradas: action.payload.result,\r\n loading: false,\r\n }\r\n\r\n case GET_DDJJ_PUBLICIDADES_REQUEST:\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaPublicidades: true,\r\n }\r\n\r\n case GET_DDJJ_PUBLICIDADES_SUCCESS:\r\n return {\r\n ...state,\r\n totalPublicidades: action.payload.total,\r\n declaracionJuradaPublicidades: action.payload.result,\r\n loadingDeclaracionJuradaPublicidades: false,\r\n }\r\n\r\n case GET_DDJJ_BY_ID_REQUEST:\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalle: true,\r\n }\r\n\r\n case GET_DDJJ_BY_ID_SUCCESS:\r\n return {\r\n ...state,\r\n declaracionJuradaDetalle: action.payload,\r\n loadingDeclaracionJuradaDetalle: false,\r\n }\r\n\r\n case GET_ANIOS_REQUEST:\r\n return {\r\n ...state,\r\n loadingAnios: true,\r\n }\r\n\r\n case GET_CUOTAS_REQUEST:\r\n return {\r\n ...state,\r\n loadingCuotas: true,\r\n }\r\n\r\n case CLEAR_CUOTAS_REQUEST:\r\n return {\r\n ...state,\r\n cuotas: [],\r\n }\r\n\r\n case GET_PARTIDAS_REQUEST:\r\n return {\r\n ...state,\r\n loadingPartidas: true,\r\n }\r\n\r\n case GET_ANIOS_SUCCESS:\r\n return {\r\n ...state,\r\n loadingAnios: false,\r\n anios: action.payload,\r\n }\r\n\r\n case GET_CUOTAS_SUCCESS:\r\n return {\r\n ...state,\r\n loadingCuotas: false,\r\n cuotas: action.payload,\r\n }\r\n\r\n case GET_PARTIDAS_SUCCESS:\r\n return {\r\n ...state,\r\n loadingPartidas: false,\r\n partidas: action.payload,\r\n }\r\n\r\n case GET_PARTIDAS_DDJJ_REQUEST:\r\n return {\r\n ...state,\r\n loadingPartidasDDJJ: true,\r\n }\r\n\r\n case GET_PARTIDAS_DDJJ_SUCCESS:\r\n return {\r\n ...state,\r\n loadingPartidasDDJJ: false,\r\n partidasDDJJ: action.payload,\r\n }\r\n\r\n case CLEAR_PARTIDAS_DDJJ_REQUEST:\r\n return {\r\n ...state,\r\n partidasDDJJ: [],\r\n }\r\n\r\n case GET_VENCIMIENTO_CUOTA_REQUEST:\r\n return {\r\n ...state,\r\n loadingVencmientoCuota: true,\r\n }\r\n\r\n case GET_VENCIMIENTO_CUOTA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingVencmientoCuota: false,\r\n vencimientoCuota: action.payload,\r\n }\r\n\r\n case GET_TOTALES_DDJJ_REQUEST:\r\n return {\r\n ...state,\r\n loadingTotalesDDJJ: true,\r\n }\r\n\r\n case GET_TOTALES_DDJJ_SUCCESS:\r\n return {\r\n ...state,\r\n loadingTotalesDDJJ: false,\r\n totalesDDJJ: action.payload,\r\n }\r\n\r\n /* COMERCIO BAJA */\r\n case GET_COMERCIO_BAJA_REQUEST:\r\n return {\r\n ...state,\r\n loadingComercioBaja: true,\r\n }\r\n\r\n case GET_COMERCIO_BAJA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingComercioBaja: false,\r\n }\r\n\r\n /*-------------------------------- ALTA --------------------------------*/\r\n\r\n /*CARGAR EL BORRADOR EN STATE PARA EDICION*/\r\n case GET_DDJJ_BORRADOR_BY_ID_REQUEST:\r\n return {\r\n ...state,\r\n loadingBorradorDDJJ: true,\r\n }\r\n\r\n case GET_DDJJ_BORRADOR_BY_ID_SUCCESS:\r\n return {\r\n ...state,\r\n declaracionJuradaBorrador: action.payload,\r\n loadingBorradorDDJJ: false,\r\n editingBorrador: true,\r\n }\r\n\r\n case SAVE_DDJJ_BORRADOR_REQUEST:\r\n return {\r\n ...state,\r\n savingBorradorDDJJ: true,\r\n }\r\n\r\n case SAVE_DDJJ_BORRADOR_SUCCESS:\r\n return {\r\n ...state,\r\n declaracionJuradaBorrador: action.payload,\r\n savingBorradorDDJJ: false,\r\n editingBorrador: true,\r\n }\r\n\r\n case SAVE_DDJJ_BORRADOR_FAIL:\r\n return {\r\n ...state,\r\n savingBorradorDDJJ: false,\r\n }\r\n\r\n case SAVE_PUBLICIDAD_REQUEST:\r\n return {\r\n ...state,\r\n savingPublicidad: true,\r\n }\r\n\r\n case SAVE_PUBLICIDAD_SUCCESS:\r\n return {\r\n ...state,\r\n savingPublicidad: false,\r\n }\r\n\r\n case GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST:\r\n return {\r\n ...state,\r\n loadingPublcidadesBorradorDDJJ: true,\r\n }\r\n\r\n case GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS:\r\n return {\r\n ...state,\r\n totalPublicidadesBorrador: action.payload.total,\r\n declaracionJuradaBorradorPublicidades: action.payload.result,\r\n loadingPublcidadesBorradorDDJJ: false,\r\n }\r\n\r\n case CREATE_BORRADOR_REQUEST:\r\n return {\r\n ...state,\r\n creatingBorradorDDJJ: true,\r\n }\r\n\r\n case CREATE_BORRADOR_SUCCESS:\r\n return {\r\n ...state,\r\n creatingBorradorDDJJ: false,\r\n }\r\n\r\n case REFRESH_BORRADOR_REQUEST:\r\n return {\r\n ...state,\r\n updatingBorradorDDJJ: true,\r\n }\r\n\r\n case REFRESH_BORRADOR_SUCCESS:\r\n return {\r\n ...state,\r\n updatingBorradorDDJJ: false,\r\n }\r\n\r\n case GET_EXISTENCIA_ACTA_REQUEST:\r\n return {\r\n ...state,\r\n loadingExistenciaDeActa: true,\r\n }\r\n\r\n case GET_EXISTENCIA_ACTA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingExistenciaDeActa: false,\r\n }\r\n\r\n case GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST:\r\n return {\r\n ...state,\r\n loadingExistenciaTipoContribuyente: true,\r\n }\r\n\r\n case GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS:\r\n return {\r\n ...state,\r\n loadingExistenciaTipoContribuyente: false,\r\n }\r\n\r\n case LIQUIDACION_DDJJ_REQUEST:\r\n return {\r\n ...state,\r\n loadingLiquidacion: true,\r\n }\r\n\r\n case LIQUIDACION_DDJJ_SUCCESS:\r\n return {\r\n ...state,\r\n loadingLiquidacion: false,\r\n }\r\n\r\n case GET_PERIODO_HABILITADO_REQUEST:\r\n return {\r\n ...state,\r\n loadingPeriodoHabilitado: true,\r\n }\r\n\r\n case GET_PERIODO_HABILITADO_SUCCESS:\r\n return {\r\n ...state,\r\n periodoHabilitado: action.payload,\r\n loadingPeriodoHabilitado: false,\r\n }\r\n\r\n /* EXISTENCIA DE BORRADOR */\r\n case GET_EXISTENCIA_BORRADOR_REQUEST:\r\n return {\r\n ...state,\r\n loadingExistenciaBorrador: true,\r\n }\r\n\r\n case GET_EXISTENCIA_BORRADOR_SUCCESS:\r\n return {\r\n ...state,\r\n loadingExistenciaBorrador: false,\r\n }\r\n\r\n /* EXISTENCIA DE BLOQUEO */\r\n case GET_EXISTENCIA_BLOQUEO_REQUEST:\r\n return {\r\n ...state,\r\n loadingExistenciaBloqueo: true,\r\n }\r\n\r\n case GET_EXISTENCIA_BLOQUEO_SUCCESS:\r\n return {\r\n ...state,\r\n loadingExistenciaBloqueo: false,\r\n }\r\n\r\n case GET_EXISTENCIA_VINCULACION_REQUEST:\r\n return {\r\n ...state,\r\n loadingExistenciaVinculacion: true,\r\n }\r\n\r\n case GET_EXISTENCIA_VINCULACION_SUCCESS:\r\n return {\r\n ...state,\r\n loadingExistenciaVinculacion: false,\r\n }\r\n\r\n /*-------------------------------- ALTA PUBLICIDADES --------------------------------*/\r\n\r\n case GET_TIPO_PUBLICIDADES_REQUEST:\r\n return {\r\n ...state,\r\n loadingTipoPublicidades: true,\r\n }\r\n\r\n case GET_TIPO_PUBLICIDADES_SUCCESS:\r\n return {\r\n ...state,\r\n tipoPublicidades: action.payload,\r\n loadingTipoPublicidades: false,\r\n }\r\n\r\n case GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST:\r\n return {\r\n ...state,\r\n loadingTipoContenidos: true,\r\n }\r\n\r\n case GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS:\r\n return {\r\n ...state,\r\n tipoContenidos: action.payload,\r\n loadingTipoContenidos: false,\r\n }\r\n\r\n case GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST:\r\n return {\r\n ...state,\r\n loadingTipoPublicidadRequeridos: true,\r\n }\r\n\r\n case GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS:\r\n return {\r\n ...state,\r\n tipoPublicidadRequeridos: action.payload,\r\n loadingTipoPublicidadRequeridos: false,\r\n }\r\n\r\n case GET_PARTIDA_DIRECCION_REQUEST:\r\n return {\r\n ...state,\r\n loadingPartidaDireccion: true,\r\n }\r\n\r\n case GET_PARTIDA_DIRECCION_SUCCESS:\r\n return {\r\n ...state,\r\n partidaDireccion: action.payload,\r\n loadingPartidaDirecciones: false,\r\n }\r\n\r\n case GET_PARTIDA_TERCERO_DIRECCION_REQUEST:\r\n return {\r\n ...state,\r\n loadingPartidaDirecciones: true,\r\n }\r\n\r\n case GET_PARTIDA_TERCERO_DIRECCION_SUCCESS:\r\n return {\r\n ...state,\r\n partidaTerceroDireccion: action.payload,\r\n loadingPartidaDirecciones: false,\r\n }\r\n\r\n case CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST:\r\n return {\r\n ...state,\r\n tipoPublicidadRequeridos: null,\r\n }\r\n\r\n case GET_CALLES_REQUEST:\r\n return {\r\n ...state,\r\n loadingCalles: true,\r\n }\r\n\r\n case GET_CALLES_SUCCESS:\r\n return {\r\n ...state,\r\n loadingCalles: false,\r\n calles: action.payload,\r\n }\r\n\r\n case SHOW_PUBLICIDAD_MODAL:\r\n return {\r\n ...state,\r\n createPublicidadModalVisible: true,\r\n }\r\n\r\n case HIDE_PUBLICIDAD_MODAL:\r\n return {\r\n ...state,\r\n createPublicidadModalVisible: false,\r\n }\r\n\r\n case SHOW_CHANGE_POLIZA_MODAL:\r\n return {\r\n ...state,\r\n changePolizaModalVisible: true,\r\n idDDJJDetallePolizaEdit: action.payload,\r\n }\r\n\r\n case HIDE_CHANGE_POLIZA_MODAL:\r\n return {\r\n ...state,\r\n changePolizaModalVisible: false,\r\n idDDJJDetallePolizaEdit: null,\r\n }\r\n\r\n case CHANGE_POLIZA_REQUEST:\r\n return {\r\n ...state,\r\n updatingPoliza: true,\r\n }\r\n\r\n case CHANGE_POLIZA_SUCCESS:\r\n return {\r\n ...state,\r\n updatingPoliza: false,\r\n }\r\n\r\n /*-------------------------------- REPORTE --------------------------------*/\r\n case GET_REPORTE_DDJJ_REQUEST:\r\n return {\r\n ...state,\r\n loadingReporte: true,\r\n }\r\n case GET_REPORTE_DDJJ_SUCCESS:\r\n return {\r\n ...state,\r\n loadingReporte: false,\r\n reporte: action.payload,\r\n }\r\n case GET_REPORTE_DDJJ_FAIL:\r\n return {\r\n ...state,\r\n loadingReporte: false,\r\n reporte: [],\r\n }\r\n\r\n /*-------------------------------- DELETE PUBLICIDAD --------------------------------*/\r\n case DELETE_PUBLICIDAD_REQUEST:\r\n return {\r\n ...state,\r\n deletingPublicidad: true,\r\n }\r\n\r\n case DELETE_PUBLICIDAD_SUCCESS:\r\n return {\r\n ...state,\r\n deletingPublicidad: false,\r\n }\r\n\r\n /*-------------------------------- CAMBIAR FECHA DE PUBLICIDAD ----------------------*/\r\n case CHANGE_FECHA_PUBLICIDAD_REQUEST:\r\n return {\r\n ...state,\r\n changingFechaPublicidad: true,\r\n }\r\n\r\n case CHANGE_FECHA_PUBLICIDAD_SUCCESS:\r\n return {\r\n ...state,\r\n changingFechaPublicidad: false,\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default DeclaracionJuradaReducer\r\n","import moment from 'moment'\r\nimport React, { useReducer } from 'react'\r\nimport { withRouter } from 'react-router'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport Swal from 'sweetalert2'\r\nimport PropTypes from 'prop-types'\r\nimport {\r\n ActivatePublicidad,\r\n CreateBorradorDeclaracionJurada,\r\n DeletePublicidad,\r\n GetAnios,\r\n GetCalles,\r\n GetCamposRequeridosByPublicidadId,\r\n GetCuotas,\r\n GetDeclaracionesJuradasToPage,\r\n GetDeclaracionJuradaById,\r\n GetDeclaracionJuradaPublicidadesToPage,\r\n GetExistenciaBorradorDDJJ,\r\n GetExistenciaDeActa,\r\n GetExistenciaPartida,\r\n GetPartidas,\r\n GetTiposPublicidades,\r\n SaveDeclaracionJurada,\r\n SavePublicidad,\r\n GetVencimientoCuota,\r\n GetTotalesDeclaracionJurada,\r\n GetReporteDeclaracionJurada,\r\n GetExistenciaBloqueo,\r\n GetExistenciaVinculacionPresentacion,\r\n RefreshBorradorDeclaracionJurada,\r\n GetTiposContenidoPublicidad,\r\n ChangePolizaPublicidad,\r\n GetPartidaDireccion,\r\n GetExistenciaTipoContribuyente,\r\n ChangeFechaPublicidad,\r\n GetPublicidadesDeclaracionPresentar,\r\n GetPeriodoHabilitado,\r\n GetComercioBaja,\r\n GetPartidasDDJJ,\r\n} from '../../api/services/DeclaracionJuradaService'\r\nimport DeclaracionJuradaContext from './DeclaracionJuradaContext'\r\nimport DeclaracionJuradaReducer from './DeclaracionJuradaReducer'\r\nimport {\r\n GET_DDJJ_TO_PAGE_REQUEST,\r\n GET_DDJJ_TO_PAGE_SUCCESS,\r\n GET_ANIOS_REQUEST,\r\n GET_CUOTAS_REQUEST,\r\n GET_PARTIDAS_REQUEST,\r\n GET_ANIOS_SUCCESS,\r\n GET_CUOTAS_SUCCESS,\r\n GET_PARTIDAS_SUCCESS,\r\n CLEAR_CUOTAS_REQUEST,\r\n GET_DDJJ_BY_ID_REQUEST,\r\n GET_DDJJ_BY_ID_SUCCESS,\r\n GET_DDJJ_PUBLICIDADES_REQUEST,\r\n GET_DDJJ_PUBLICIDADES_SUCCESS,\r\n CLEAR_DDJJ_DETAIL_REQUEST,\r\n CLEAR_DDJJ_DETAIL_SUCCESS,\r\n GET_DDJJ_BORRADOR_BY_ID_REQUEST,\r\n GET_DDJJ_BORRADOR_BY_ID_SUCCESS,\r\n GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST,\r\n GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS,\r\n CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n CREATE_BORRADOR_REQUEST,\r\n CREATE_BORRADOR_SUCCESS,\r\n SAVE_DDJJ_BORRADOR_REQUEST,\r\n SAVE_DDJJ_BORRADOR_SUCCESS,\r\n SAVE_DDJJ_BORRADOR_FAIL,\r\n GET_TIPO_PUBLICIDADES_REQUEST,\r\n GET_TIPO_PUBLICIDADES_SUCCESS,\r\n GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS,\r\n GET_EXISTENCIA_PARTIDA_REQUEST,\r\n GET_EXISTENCIA_PARTIDA_SUCCESS,\r\n CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n GET_CALLES_REQUEST,\r\n GET_CALLES_SUCCESS,\r\n SHOW_PUBLICIDAD_MODAL,\r\n HIDE_PUBLICIDAD_MODAL,\r\n DELETE_PUBLICIDAD_REQUEST,\r\n DELETE_PUBLICIDAD_SUCCESS,\r\n ACTIVATE_PUBLICIDAD_REQUEST,\r\n ACTIVATE_PUBLICIDAD_SUCCESS,\r\n SAVE_PUBLICIDAD_REQUEST,\r\n SAVE_PUBLICIDAD_SUCCESS,\r\n GET_VENCIMIENTO_CUOTA_REQUEST,\r\n GET_VENCIMIENTO_CUOTA_SUCCESS,\r\n GET_TOTALES_DDJJ_REQUEST,\r\n GET_TOTALES_DDJJ_SUCCESS,\r\n GET_REPORTE_DDJJ_REQUEST,\r\n GET_REPORTE_DDJJ_SUCCESS,\r\n GET_REPORTE_DDJJ_FAIL,\r\n GET_EXISTENCIA_ACTA_REQUEST,\r\n GET_EXISTENCIA_ACTA_SUCCESS,\r\n GET_EXISTENCIA_BLOQUEO_REQUEST,\r\n GET_EXISTENCIA_BLOQUEO_SUCCESS,\r\n GET_EXISTENCIA_VINCULACION_REQUEST,\r\n GET_EXISTENCIA_VINCULACION_SUCCESS,\r\n LIQUIDACION_DDJJ_REQUEST,\r\n LIQUIDACION_DDJJ_SUCCESS,\r\n REFRESH_BORRADOR_SUCCESS,\r\n REFRESH_BORRADOR_REQUEST,\r\n GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST,\r\n GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS,\r\n HIDE_CHANGE_POLIZA_MODAL,\r\n SHOW_CHANGE_POLIZA_MODAL,\r\n CHANGE_POLIZA_REQUEST,\r\n CHANGE_POLIZA_SUCCESS,\r\n GET_PARTIDA_DIRECCION_REQUEST,\r\n GET_PARTIDA_DIRECCION_SUCCESS,\r\n GET_PARTIDA_TERCERO_DIRECCION_REQUEST,\r\n GET_PARTIDA_TERCERO_DIRECCION_SUCCESS,\r\n GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS,\r\n GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST,\r\n CHANGE_FECHA_PUBLICIDAD_REQUEST,\r\n CHANGE_FECHA_PUBLICIDAD_SUCCESS,\r\n GET_PERIODO_HABILITADO_SUCCESS,\r\n GET_PERIODO_HABILITADO_REQUEST,\r\n GET_COMERCIO_BAJA_REQUEST,\r\n GET_COMERCIO_BAJA_SUCCESS,\r\n GET_PARTIDAS_DDJJ_REQUEST,\r\n GET_PARTIDAS_DDJJ_SUCCESS,\r\n CLEAR_PARTIDAS_DDJJ_REQUEST,\r\n GET_EXISTENCIA_BORRADOR_REQUEST,\r\n GET_EXISTENCIA_BORRADOR_SUCCESS,\r\n //GET_PERIODO_HABILITADO_REQUEST,\r\n //GET_PERIODO_HABILITADO_SUCCESS,\r\n} from './DeclaracionJuradaTypes'\r\n\r\nconst DeclaracionJuradaState = (props) => {\r\n const initialState = {\r\n declaracionesJuradas: [],\r\n declaracionJuradaDetalle: [],\r\n declaracionJuradaPublicidades: [],\r\n total: 0,\r\n totalPublicidades: 0,\r\n anios: [],\r\n cuotas: [],\r\n vencimientoCuota: [],\r\n partidas: [],\r\n totalesDDJJ: [],\r\n error: null,\r\n loading: false,\r\n loadingDeclaracionJuradaDetalle: false,\r\n loadingDeclaracionJuradaPublicidades: false,\r\n loadingAnios: false,\r\n loadingCuotas: false,\r\n loadingPartidas: false,\r\n loadingVencimientoCuota: false,\r\n loadingTotalesDDJJ: false,\r\n loadingExistenciaDeActa: false,\r\n loadingExistenciaTipoContribuyente: false,\r\n loadingPeriodoHabilitado: false,\r\n loadingExistenciaBloqueo: false,\r\n loadingExistenciaVinculacion: false,\r\n /** ALTA */\r\n savingBorradorDDJJ: false,\r\n loadingBorradorDDJJ: false,\r\n creatingBorradorDDJJ: false,\r\n updatingBorradorDDJJ: false,\r\n loadingLiquidacion: false,\r\n editingBorrador: false,\r\n loadingPublcidadesBorradorDDJJ: false,\r\n declaracionJuradaBorrador: null,\r\n declaracionJuradaBorradorPublicidades: null,\r\n loadingExistenciaBorrador: false,\r\n totalPublicidadesBorrador: 0,\r\n idTipoContribPresentacion: null,\r\n partidasDDJJ: [],\r\n loadingPartidasDDJJ: false,\r\n /************ ALTA PUBLICIDAD ***********/\r\n savingPublicidad: false,\r\n loadingTipoPublicidades: false,\r\n loadingTipoPublicidadRequeridos: false,\r\n\r\n loadingCalles: false,\r\n loadingTipoContenidos: false,\r\n activatingPublicidad: false,\r\n tipoPublicidades: [],\r\n tipoContenidos: [],\r\n calles: [],\r\n tipoPublicidadRequeridos: null,\r\n publicidad: null,\r\n createPublicidadModalVisible: false,\r\n\r\n /** DIRECCIONES DE PARTIDA Y PARTIDA TERCEROS */\r\n\r\n loadingPartidaDirecciones: false,\r\n partidaDireccion: null,\r\n partidaExhibeDireccion: null,\r\n\r\n /* CAMBIAR POLIZA PUBLICIDAD */\r\n changePolizaModalVisible: false,\r\n idDDJJDetallePolizaEdit: null,\r\n updatingPoliza: false,\r\n\r\n /** BAJA PUBLICIDAD */\r\n deletingPublicidad: false,\r\n\r\n /** CAMBIAR FECHA DE PUBLICIDAD */\r\n changingFechaPublicidad: false,\r\n\r\n /* REPORTE */\r\n loadingReporte: false,\r\n reporte: [],\r\n /* FECHA DE PRESENTACION */\r\n periodoHabilitado: [],\r\n /* COMERCIO BAJA */\r\n loadingComercioBaja: false,\r\n }\r\n\r\n const [state, dispatch] = useReducer(DeclaracionJuradaReducer, initialState)\r\n\r\n /* ALTA PUBLICIDAD */\r\n const savePublicidad = async (publicidad) => {\r\n dispatch({\r\n type: SAVE_PUBLICIDAD_REQUEST,\r\n })\r\n\r\n await SavePublicidad(publicidad)\r\n }\r\n\r\n const savePublicidadSuccess = async () => {\r\n dispatch({\r\n type: SAVE_PUBLICIDAD_SUCCESS,\r\n })\r\n }\r\n\r\n const activatePublicidad = async (detalleDDJJId) => {\r\n dispatch({\r\n type: ACTIVATE_PUBLICIDAD_REQUEST,\r\n })\r\n\r\n return await ActivatePublicidad(detalleDDJJId)\r\n }\r\n\r\n const activatePublicidadSuccess = async () => {\r\n dispatch({\r\n type: ACTIVATE_PUBLICIDAD_SUCCESS,\r\n })\r\n }\r\n\r\n const showPublicidadModal = () => {\r\n dispatch({\r\n type: SHOW_PUBLICIDAD_MODAL,\r\n })\r\n }\r\n\r\n const hidePublicidadModal = () => {\r\n dispatch({\r\n type: HIDE_PUBLICIDAD_MODAL,\r\n })\r\n }\r\n\r\n const clearTipoPublicidadRequeridos = async () => {\r\n dispatch({\r\n type: CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n })\r\n }\r\n\r\n const getCalles = async (nombre) => {\r\n dispatch({\r\n type: GET_CALLES_REQUEST,\r\n })\r\n await GetCalles(nombre).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_CALLES_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const setCalle = (id, nombre) => {\r\n dispatch({\r\n type: GET_CALLES_SUCCESS,\r\n payload: [{ key: id, value: nombre }],\r\n })\r\n }\r\n\r\n const getTiposPublicidades = async (anio, periodo) => {\r\n dispatch({\r\n type: GET_TIPO_PUBLICIDADES_REQUEST,\r\n })\r\n\r\n await GetTiposPublicidades(anio, periodo).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_TIPO_PUBLICIDADES_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getTipoContenidosPublicidad = async () => {\r\n dispatch({\r\n type: GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST,\r\n })\r\n\r\n await GetTiposContenidoPublicidad().then(\r\n (response) => {\r\n dispatch({\r\n type: GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getTipoPublicidadRequeridos = async (id, anio, cuotaId) => {\r\n dispatch({\r\n type: GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST,\r\n })\r\n\r\n await GetCamposRequeridosByPublicidadId(id, anio, cuotaId).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const changePoliza = async (poliza) => {\r\n dispatch({\r\n type: CHANGE_POLIZA_REQUEST,\r\n })\r\n\r\n return await ChangePolizaPublicidad(poliza)\r\n }\r\n\r\n const changePolizaSuccess = async () => {\r\n dispatch({\r\n type: CHANGE_POLIZA_SUCCESS,\r\n })\r\n }\r\n\r\n const showPolizaModal = (idDetalleDdjj) => {\r\n dispatch({\r\n type: SHOW_CHANGE_POLIZA_MODAL,\r\n payload: idDetalleDdjj,\r\n })\r\n }\r\n\r\n const hidePolizaModal = () => {\r\n dispatch({\r\n type: HIDE_CHANGE_POLIZA_MODAL,\r\n })\r\n }\r\n\r\n const getPartidaDireccion = async (partida) => {\r\n dispatch({\r\n type: GET_PARTIDA_DIRECCION_REQUEST,\r\n })\r\n\r\n await GetPartidaDireccion(partida).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_PARTIDA_DIRECCION_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getPartidaTerceroDireccion = async (partida) => {\r\n if (partida.length > 0) {\r\n dispatch({\r\n type: GET_PARTIDA_TERCERO_DIRECCION_REQUEST,\r\n })\r\n\r\n await GetPartidaDireccion(partida).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_PARTIDA_TERCERO_DIRECCION_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n } else {\r\n dispatch({\r\n type: GET_PARTIDA_TERCERO_DIRECCION_REQUEST,\r\n })\r\n\r\n dispatch({\r\n type: GET_PARTIDA_TERCERO_DIRECCION_SUCCESS,\r\n payload: null,\r\n })\r\n }\r\n }\r\n\r\n const getExistenciaPartida = async (partida) => {\r\n dispatch({\r\n type: GET_EXISTENCIA_PARTIDA_REQUEST,\r\n })\r\n\r\n await GetExistenciaPartida(partida).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_EXISTENCIA_PARTIDA_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* ALTA */\r\n const saveDDJJ = async (ddjj) => {\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_REQUEST,\r\n })\r\n\r\n if (ddjj.presentar === '1') {\r\n await GetPublicidadesDeclaracionPresentar(ddjj.id, ddjj.idpartida).then(\r\n async (response) => {\r\n if (response === 0) {\r\n Swal.fire({\r\n title: 'Presentacion en blanco',\r\n html: `Esta por presentar una declaracion jurada en blanco, es decir sin publicidades declaradas, ¿Desea continuar?`,\r\n showDenyButton: false,\r\n showConfirmButton: true,\r\n showCancelButton: true,\r\n confirmButtonText: `Si`,\r\n cancelButtonText: 'No',\r\n icon: 'info',\r\n }).then(async (result) => {\r\n if (result.isConfirmed) {\r\n dispatch({\r\n type: LIQUIDACION_DDJJ_REQUEST,\r\n })\r\n\r\n await SaveDeclaracionJurada(ddjj).then(\r\n (response) => {\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Declaración Jurada',\r\n html: 'El Documento ha sido prensentado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n dispatch({\r\n type: CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n })\r\n\r\n dispatch({\r\n type: LIQUIDACION_DDJJ_SUCCESS,\r\n })\r\n })\r\n\r\n // Swal.fire('Declaración Jurada', \"El Documento ha sido prensentado con éxito\", 'success').then(result => {\r\n // dispatch({\r\n // type: CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n // });\r\n\r\n // dispatch({\r\n // type: LIQUIDACION_DDJJ_SUCCESS\r\n // });\r\n // });\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_FAIL,\r\n })\r\n },\r\n )\r\n } else {\r\n if (result.isDismissed || result.isDenied) {\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_FAIL,\r\n })\r\n }\r\n }\r\n })\r\n } else {\r\n await SaveDeclaracionJurada(ddjj).then(\r\n (response) => {\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Declaración Jurada',\r\n html: 'El Documento ha sido prensentado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n dispatch({\r\n type: CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n })\r\n\r\n dispatch({\r\n type: LIQUIDACION_DDJJ_SUCCESS,\r\n })\r\n })\r\n\r\n // Swal.fire('Declaración Jurada', \"El Documento ha sido prensentado con exito\", 'success').then(result => {\r\n // dispatch({\r\n // type: CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n // });\r\n\r\n // dispatch({\r\n // type: LIQUIDACION_DDJJ_SUCCESS\r\n // });\r\n // });\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_FAIL,\r\n })\r\n },\r\n )\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n } else {\r\n await SaveDeclaracionJurada(ddjj).then(\r\n (response) => {\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n Swal.fire({\r\n title: 'Borrador guardado',\r\n html: 'Borrador guardado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n })\r\n\r\n // Swal.fire('Borrador guardado', \"Borrador guardado con exito\", 'success');\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n\r\n dispatch({\r\n type: SAVE_DDJJ_BORRADOR_FAIL,\r\n })\r\n },\r\n )\r\n }\r\n }\r\n\r\n const getBorradorDDJJById = async (id) => {\r\n dispatch({\r\n type: GET_DDJJ_BORRADOR_BY_ID_REQUEST,\r\n })\r\n\r\n await GetDeclaracionJuradaById(id).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: GET_DDJJ_BORRADOR_BY_ID_SUCCESS,\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrada', 'Declaracion Jurada no encontrada', 'info').then(() => {\r\n window.location = '/#/ddjj'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearDDJJCreateData = async () => {\r\n dispatch({\r\n type: CLEAR_DDJJ_CREATE_DATA_REQUEST,\r\n })\r\n }\r\n\r\n const getPublicidadesBorradorDDJJToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST,\r\n })\r\n\r\n await GetDeclaracionJuradaPublicidadesToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS,\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getPeriodoHabilitado = async (anio, cuota) => {\r\n dispatch({\r\n type: GET_PERIODO_HABILITADO_REQUEST,\r\n })\r\n\r\n await GetPeriodoHabilitado(anio, cuota).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: GET_PERIODO_HABILITADO_SUCCESS,\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrada', 'Declaracion Jurada no encontrada', 'info').then(() => {\r\n window.location = '/#/ddjj'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getExistenciaBorradorDDJJ = async (anio, cuota, partida) => {\r\n // dispatch({\r\n // type: GET_PERIODO_HABILITADO_REQUEST\r\n // });\r\n\r\n // Verificamos si el Tipo de Contribuyente del contribuyente logueado, tiene permitido presentar el período seleccionado\r\n // await GetPeriodoHabilitado(anio, cuota).then(async (response) => {\r\n // if (response === false) {\r\n // Swal.fire({\r\n // icon: \"error\",\r\n // title: 'Período no habilitado',\r\n // html: `El Período seleccionado no esta habilitado para realizar la presentación`,\r\n // showDenyButton: true,\r\n // showConfirmButton: false,\r\n // showCancelButton: false,\r\n // confirmButtonText: `Cerrar`,\r\n // denyButtonText: `Cerrar`,\r\n // }).then(async (result) => {\r\n // if (result.isDenied || result.dismiss) {\r\n // dispatch({\r\n // type: GET_PERIODO_HABILITADO_SUCCESS\r\n // });\r\n // }\r\n // })\r\n // }\r\n // else {\r\n // dispatch({\r\n // type: GET_PERIODO_HABILITADO_SUCCESS\r\n // });\r\n\r\n dispatch({\r\n type: GET_COMERCIO_BAJA_REQUEST,\r\n })\r\n\r\n //Verificamos si el comercio tiene baja y bloqueamos presentacion si la fecha vencimiento de la dj a confeccionar es mayor a la de baja\r\n await GetComercioBaja(anio, cuota, partida).then(async (response) => {\r\n if (Object.keys(response).length > 0) {\r\n Swal.fire({\r\n title: 'Comercio dado de Baja',\r\n html: `La partida indicada se encuentra dada de baja desde el ${moment(response.FECHA_BAJA).format(\r\n 'DD/MM/YYYY',\r\n )}, no se puede presentar una declaracion jurada posterior a esa fecha`,\r\n showDenyButton: false,\r\n showConfirmButton: true,\r\n showCancelButton: false,\r\n confirmButtonText: `Aceptar`,\r\n icon: 'info',\r\n }).then(() => {\r\n dispatch({\r\n type: GET_COMERCIO_BAJA_SUCCESS,\r\n })\r\n })\r\n } else {\r\n dispatch({\r\n type: GET_COMERCIO_BAJA_SUCCESS,\r\n })\r\n\r\n dispatch({\r\n type: GET_EXISTENCIA_BLOQUEO_REQUEST,\r\n })\r\n\r\n //Chequeo existencia de bloqueo de partida\r\n await GetExistenciaBloqueo(anio, cuota, partida).then(\r\n async (response) => {\r\n if (Object.keys(response).length > 0) {\r\n Swal.fire({\r\n title: 'Partida bloqueada',\r\n html: `La partida indicada se encuentra bloqueada desde el ${moment(response.FECHA_DESDE).format(\r\n 'DD/MM/YYYY',\r\n )}, no se puede presentar una declaracion jurada posterior a esa fecha`,\r\n showDenyButton: false,\r\n showConfirmButton: true,\r\n showCancelButton: false,\r\n confirmButtonText: `Aceptar`,\r\n icon: 'info',\r\n }).then(() => {\r\n dispatch({\r\n type: GET_EXISTENCIA_BLOQUEO_SUCCESS,\r\n })\r\n })\r\n } else {\r\n dispatch({\r\n type: GET_EXISTENCIA_BLOQUEO_SUCCESS,\r\n })\r\n //No existe de bloqueo de partida\r\n //Chequeo existencia de acta para año y periodo\r\n dispatch({\r\n type: GET_EXISTENCIA_VINCULACION_REQUEST,\r\n })\r\n\r\n await GetExistenciaVinculacionPresentacion(anio, cuota, partida).then(\r\n async (response) => {\r\n if (Object.keys(response).length === 0) {\r\n Swal.fire({\r\n title: 'Contribuyente no vinculado',\r\n html: `No se encuentra vinculado como contribuyente de la partida ${partida} a la fecha de vencimiento de la cuota ${anio} ${cuota}, no es posible continuar con la presentacion`,\r\n showConfirmButton: true,\r\n showCancelButton: false,\r\n confirmButtonText: `Cerrar`,\r\n icon: 'info',\r\n }).then(() => {\r\n dispatch({\r\n type: GET_EXISTENCIA_VINCULACION_SUCCESS,\r\n })\r\n })\r\n } else {\r\n dispatch({\r\n type: GET_EXISTENCIA_VINCULACION_SUCCESS,\r\n })\r\n //No existe de bloqueo de partida\r\n //Chequeo existencia de acta para año y periodo\r\n dispatch({\r\n type: GET_EXISTENCIA_ACTA_REQUEST,\r\n })\r\n\r\n await GetExistenciaDeActa(anio, cuota, partida).then(\r\n async (response) => {\r\n if (Object.keys(response).length > 0) {\r\n Swal.fire({\r\n title: 'Existencia de acta de verificación',\r\n html: `Existe un Acta generada para esta misma partida en el periodo ${response.CUOTAID} año ${response.ANIO}`,\r\n showDenyButton: true,\r\n showConfirmButton: false,\r\n showCancelButton: false,\r\n confirmButtonText: `Cerrar`,\r\n denyButtonText: `Cerrar`,\r\n }).then(async (result) => {\r\n if (result.isDenied || result.dismiss) {\r\n dispatch({\r\n type: GET_EXISTENCIA_ACTA_SUCCESS,\r\n })\r\n return\r\n }\r\n })\r\n } else {\r\n //No existe acta en año y periodo\r\n dispatch({\r\n type: GET_EXISTENCIA_ACTA_SUCCESS,\r\n })\r\n\r\n dispatch({\r\n type: GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST,\r\n payload: response,\r\n })\r\n\r\n await GetExistenciaTipoContribuyente(anio, cuota).then(\r\n async (response) => {\r\n dispatch({\r\n type: GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n dispatch({\r\n type: GET_EXISTENCIA_BORRADOR_REQUEST,\r\n })\r\n\r\n //Chequeo existencia de borrador de partida\r\n await GetExistenciaBorradorDDJJ(partida).then(\r\n async (response) => {\r\n if (Object.keys(response).length > 0) {\r\n Swal.fire({\r\n title: 'Existencia de borrador',\r\n html: `Existe un borrador pendiente generado por usted para esta misma partida en el periodo ${response.CUOTAID} año ${response.ANIO}, ¿Desea continuarlo?`,\r\n showDenyButton: true,\r\n showCancelButton: false,\r\n confirmButtonText: `Continuar`,\r\n denyButtonText: `Descartar y crear nuevo`,\r\n }).then(async (result) => {\r\n dispatch({\r\n type: GET_EXISTENCIA_BORRADOR_SUCCESS,\r\n })\r\n\r\n //Continua borrador\r\n if (result.isConfirmed) {\r\n dispatch({\r\n type: REFRESH_BORRADOR_REQUEST,\r\n })\r\n\r\n await RefreshBorradorDeclaracionJurada(response.ID.toString()).then(\r\n async () => {\r\n getBorradorDDJJById(response.ID)\r\n\r\n dispatch({\r\n type: REFRESH_BORRADOR_SUCCESS,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n } else {\r\n dispatch({\r\n type: GET_EXISTENCIA_BORRADOR_SUCCESS,\r\n })\r\n\r\n //Descarta borrador y crea uno nuevo\r\n if (result.isDenied) {\r\n dispatch({\r\n type: CREATE_BORRADOR_REQUEST,\r\n })\r\n\r\n await CreateBorradorDeclaracionJurada(anio, cuota, partida).then(async (response) => {\r\n dispatch({\r\n type: CREATE_BORRADOR_SUCCESS,\r\n })\r\n\r\n dispatch({\r\n type: REFRESH_BORRADOR_REQUEST,\r\n })\r\n\r\n await RefreshBorradorDeclaracionJurada(response.IDINSERTED.toString()).then(\r\n async () => {\r\n getBorradorDDJJById(response.IDINSERTED)\r\n\r\n dispatch({\r\n type: REFRESH_BORRADOR_SUCCESS,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n })\r\n }\r\n }\r\n })\r\n } else {\r\n dispatch({\r\n type: GET_EXISTENCIA_BORRADOR_SUCCESS,\r\n })\r\n\r\n //No existe borrador, creo uno nuevo\r\n dispatch({\r\n type: CREATE_BORRADOR_REQUEST,\r\n })\r\n\r\n await CreateBorradorDeclaracionJurada(anio, cuota, partida).then(async (response) => {\r\n dispatch({\r\n type: CREATE_BORRADOR_SUCCESS,\r\n })\r\n\r\n dispatch({\r\n type: REFRESH_BORRADOR_REQUEST,\r\n })\r\n\r\n await RefreshBorradorDeclaracionJurada(response.IDINSERTED.toString()).then(\r\n async () => {\r\n getBorradorDDJJById(response.IDINSERTED)\r\n\r\n dispatch({\r\n type: REFRESH_BORRADOR_SUCCESS,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n })\r\n }\r\n\r\n /* CONSULTA */\r\n const getDDJJToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: GET_DDJJ_TO_PAGE_REQUEST,\r\n })\r\n\r\n await GetDeclaracionesJuradasToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_DDJJ_TO_PAGE_SUCCESS,\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getDDJJById = async (idDDJJ) => {\r\n dispatch({\r\n type: GET_DDJJ_BY_ID_REQUEST,\r\n })\r\n\r\n await GetDeclaracionJuradaById(idDDJJ).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: GET_DDJJ_BY_ID_SUCCESS,\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrada', 'Declaracion Jurada no encontrada', 'info').then(() => {\r\n window.location = '/#/ddjj'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getTotalesDDJJ = async (ddjjId, partida, estado) => {\r\n dispatch({\r\n type: GET_TOTALES_DDJJ_REQUEST,\r\n })\r\n\r\n await GetTotalesDeclaracionJurada(ddjjId, partida, estado).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_TOTALES_DDJJ_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearDDJJDetail = async () => {\r\n dispatch({\r\n type: CLEAR_DDJJ_DETAIL_REQUEST,\r\n })\r\n\r\n dispatch({\r\n type: CLEAR_DDJJ_DETAIL_SUCCESS,\r\n })\r\n }\r\n\r\n const getPublicidadesDDJJToPage = async (page, pagesize, filter, fechavencimiento) => {\r\n dispatch({\r\n type: GET_DDJJ_PUBLICIDADES_REQUEST,\r\n })\r\n\r\n await GetDeclaracionJuradaPublicidadesToPage(page, pagesize, filter, fechavencimiento).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_DDJJ_PUBLICIDADES_SUCCESS,\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getAnios = async () => {\r\n dispatch({\r\n type: GET_ANIOS_REQUEST,\r\n })\r\n\r\n await GetAnios().then(\r\n (response) => {\r\n dispatch({\r\n type: GET_ANIOS_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getCuotas = async (anio) => {\r\n dispatch({\r\n type: GET_CUOTAS_REQUEST,\r\n })\r\n\r\n await GetCuotas(anio).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_CUOTAS_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getVencimientoCuota = async (anio, cuota) => {\r\n dispatch({\r\n type: GET_VENCIMIENTO_CUOTA_REQUEST,\r\n })\r\n\r\n await GetVencimientoCuota(anio, cuota).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_VENCIMIENTO_CUOTA_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearCuotas = async () => {\r\n dispatch({\r\n type: CLEAR_CUOTAS_REQUEST,\r\n })\r\n }\r\n\r\n const getPartidas = async () => {\r\n dispatch({\r\n type: GET_PARTIDAS_REQUEST,\r\n })\r\n\r\n await GetPartidas().then(\r\n (response) => {\r\n dispatch({\r\n type: GET_PARTIDAS_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getPartidasDDJJ = async (data) => {\r\n dispatch({\r\n type: GET_PARTIDAS_DDJJ_REQUEST,\r\n })\r\n\r\n await GetPartidasDDJJ(data).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_PARTIDAS_DDJJ_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearPartidasDDJJ = async () => {\r\n dispatch({\r\n type: CLEAR_PARTIDAS_DDJJ_REQUEST,\r\n })\r\n }\r\n\r\n /* REPORTE */\r\n const GetReporteDDJJ = async (idDDJJ, format) => {\r\n dispatch({\r\n type: GET_REPORTE_DDJJ_REQUEST,\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteDeclaracionJurada(idDDJJ, format).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_REPORTE_DDJJ_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_REPORTE_DDJJ_FAIL,\r\n })\r\n console.log(error)\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /* BAJA DE PUBLICIDAD */\r\n const deletePublicidad = async (detalleDDJJId, imagenBaja) => {\r\n dispatch({\r\n type: DELETE_PUBLICIDAD_REQUEST,\r\n })\r\n\r\n await DeletePublicidad(detalleDDJJId, imagenBaja)\r\n }\r\n\r\n const deletePublicidadSuccess = () => {\r\n dispatch({\r\n type: DELETE_PUBLICIDAD_SUCCESS,\r\n })\r\n }\r\n\r\n /* CAMBIO DE FECHA PUBLICIDAD */\r\n const changeFechaPublicidad = async (detalleDDJJId, fechainicio, fechafin) => {\r\n dispatch({\r\n type: CHANGE_FECHA_PUBLICIDAD_REQUEST,\r\n })\r\n\r\n await ChangeFechaPublicidad(detalleDDJJId, fechainicio, fechafin)\r\n }\r\n\r\n const changeFechaPublicidadSuccess = () => {\r\n dispatch({\r\n type: CHANGE_FECHA_PUBLICIDAD_SUCCESS,\r\n })\r\n }\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nDeclaracionJuradaState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nDeclaracionJuradaState.displayName = 'DeclaracionJuradaState'\r\n\r\nexport default withRouter(DeclaracionJuradaState)\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetAnios = async () => {\r\n const response = await AxiosClient.get(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetAnios`)\r\n return response.data\r\n}\r\n\r\nconst GetPeriodos = async (anio) => {\r\n const response = await AxiosClient.get(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetPeriodos?anio=${anio}`)\r\n return response.data\r\n}\r\n\r\nconst GetDeclaracionJuradaById = (idDDJJ) => {\r\n return AxiosClient.get(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetDeclaracionJuradaById?idDDJJ=${idDDJJ}`).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst GetDeclaracionesJuradasSEHToPage = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetDeclaracionesJuradasToPage`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\nconst GetDetalleDJByDeclaracionJuradaId = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetDetalleDJByDeclaracionJuradaId`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\n/* ALTA DDJJ */\r\nconst CreateDeclaracionJurada = async (anio, periodo) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `declaracionJuradaSEH/CreateDeclaracionJurada`, {\r\n anio,\r\n periodo,\r\n })\r\n return response.data\r\n}\r\n\r\nconst CalcularMontoDeclaracionJurada = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `declaracionJuradaSEH/CalcularMontoDeclaracionJurada`, data)\r\n return response.data\r\n}\r\n\r\nconst SaveDeclaracionJurada = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/SaveDeclaracionJurada`, data)\r\n return response.data\r\n}\r\n\r\n/* REPORTE */\r\nconst GetReporteDeclaracionJuradaSEH = async (idDDJJ, format) => {\r\n const response = await AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL + `DeclaracionJuradaSEH/GetDeclaracionJuradaReport?idDDJJ=${idDDJJ}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\nexport {\r\n GetDeclaracionesJuradasSEHToPage,\r\n CreateDeclaracionJurada,\r\n CalcularMontoDeclaracionJurada,\r\n GetAnios,\r\n GetPeriodos,\r\n SaveDeclaracionJurada,\r\n GetDetalleDJByDeclaracionJuradaId,\r\n GetDeclaracionJuradaById,\r\n GetReporteDeclaracionJuradaSEH,\r\n}\r\n","const DeclaracionJuradaSEHReducer = (state, action) => {\r\n switch (action.type) {\r\n /* COMBOS */\r\n case 'GET_ANIOS_REQUEST':\r\n return {\r\n ...state,\r\n loadingAnios: true,\r\n }\r\n\r\n case 'GET_ANIOS_SUCCESS':\r\n return {\r\n ...state,\r\n loadingAnios: false,\r\n anios: action.payload,\r\n }\r\n\r\n case 'GET_ANIOS_FAIL':\r\n return {\r\n ...state,\r\n loadingAnios: false,\r\n }\r\n\r\n case 'GET_PERIODOS_REQUEST':\r\n return {\r\n ...state,\r\n loadingPeriodos: true,\r\n }\r\n\r\n case 'GET_PERIODOS_SUCCESS':\r\n return {\r\n ...state,\r\n loadingPeriodos: false,\r\n periodos: action.payload,\r\n }\r\n\r\n case 'GET_PERIODOS_FAIL':\r\n return {\r\n ...state,\r\n loadingPeriodos: false,\r\n }\r\n\r\n case 'CLEAR_PERIODOS_REQUEST':\r\n return {\r\n ...state,\r\n periodos: [],\r\n }\r\n\r\n /* DDJJ LIST */\r\n case 'GET_DDJJ_SEH_TO_PAGE_REQUEST':\r\n return {\r\n ...state,\r\n loading: true,\r\n }\r\n\r\n case 'GET_DDJJ_SEH_TO_PAGE_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionesJuradasSEH: action.payload.result,\r\n total: action.payload.total,\r\n loading: false,\r\n }\r\n\r\n case 'GET_DDJJ_SEH_TO_PAGE_FAIL':\r\n return {\r\n ...state,\r\n loading: false,\r\n declaracionesJuradasSEH: [],\r\n total: 0,\r\n }\r\n\r\n /* DDJJ BY ID */\r\n case 'GET_DDJJ_BY_ID_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaSEH: true,\r\n }\r\n\r\n case 'GET_DDJJ_BY_ID_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionJuradaSEH: action.payload,\r\n loadingDeclaracionJuradaSEH: false,\r\n }\r\n\r\n case 'GET_DDJJ_BY_ID_RFAIL':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaSEH: false,\r\n declaracionJuradaSEH: [],\r\n }\r\n\r\n /* DDJJ DETALLE LIST */\r\n case 'GET_DDJJ_DETALLE_TO_PAGE_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalleSEH: true,\r\n }\r\n\r\n case 'GET_DDJJ_DETALLE_TO_PAGE_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionJuradaDetalleCount: action.payload.total,\r\n declaracionJuradaDetalleSEH: action.payload.result,\r\n loadingDeclaracionJuradaDetalleSEH: false,\r\n }\r\n\r\n case 'GET_DDJJ_DETALLE_TO_PAGE_FAIL':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalleSEH: false,\r\n declaracionJuradaDetalleCount: 0,\r\n declaracionJuradaDetalleSEH: [],\r\n }\r\n\r\n case 'CLEAR_DDJJ_DETAIL_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeclaracionJuradaDetalleSEH: true,\r\n }\r\n\r\n case 'CLEAR_DDJJ_DETAIL_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionJuradaDetalleSEH: [],\r\n declaracionJuradaDetalleCount: 0,\r\n loadingDeclaracionJuradaDetalleSEH: false,\r\n }\r\n\r\n /* ALTA DDJJ */\r\n case 'CREATE_DDJJ_SEH_REQUEST':\r\n return {\r\n ...state,\r\n creatingBorradorDDJJSEH: true,\r\n editingBorradorSEH: false,\r\n }\r\n\r\n case 'CREATE_DDJJ_SEH_SUCCESS':\r\n return {\r\n ...state,\r\n creatingBorradorDDJJSEH: false,\r\n declaracionJuradaBorradorSEH: action.payload.result,\r\n editingBorradorSEH: true,\r\n }\r\n\r\n case 'CLEAR_DDJJSEH_CREATE_DATA_REQUEST':\r\n return {\r\n ...state,\r\n creatingBorradorDDJJSEH: false,\r\n declaracionJuradaBorradorSEH: null,\r\n editingBorradorSEH: false,\r\n }\r\n\r\n case 'CREATE_DDJJ_SEH_FAIL':\r\n return {\r\n ...state,\r\n creatingBorradorDDJJSEH: false,\r\n declaracionJuradaBorradorSEH: null,\r\n editingBorradorSEH: false,\r\n }\r\n\r\n case 'CALCULAR_MONTO_DDJJ_SEH_REQUEST':\r\n return {\r\n ...state,\r\n calculandoDeclaracionJuradaSEH: true,\r\n }\r\n\r\n case 'CALCULAR_MONTO_DDJJ_SEH_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionJuradaBorradorSEH: action.payload.result,\r\n calculandoDeclaracionJuradaSEH: false,\r\n }\r\n\r\n case 'CALCULAR_MONTO_DDJJ_SEH_FAIL':\r\n return {\r\n ...state,\r\n calculandoDeclaracionJuradaSEH: false,\r\n }\r\n\r\n case 'SAVE_DDJJ_SEH_REQUEST':\r\n return {\r\n ...state,\r\n savingDeclaracionJuradaSEH: true,\r\n }\r\n\r\n case 'SAVE_DDJJ_SEH_SUCCESS':\r\n return {\r\n ...state,\r\n declaracionJuradaBorradorSEH: null,\r\n savingDeclaracionJuradaSEH: false,\r\n }\r\n\r\n case 'SAVE_DDJJ_SEH_FAIL':\r\n return {\r\n ...state,\r\n savingDeclaracionJuradaSEH: false,\r\n }\r\n\r\n /* REPORTE */\r\n case 'GET_REPORTE_DDJJ_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporte: true,\r\n }\r\n case 'GET_REPORTE_DDJJ_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporte: false,\r\n reporte: action.payload,\r\n }\r\n case 'GET_REPORTE_DDJJ_FAIL':\r\n return {\r\n ...state,\r\n loadingReporte: false,\r\n reporte: [],\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default DeclaracionJuradaSEHReducer\r\n","import React, { useReducer } from 'react'\r\nimport {\r\n GetDeclaracionesJuradasSEHToPage,\r\n CreateDeclaracionJurada,\r\n CalcularMontoDeclaracionJurada,\r\n GetAnios,\r\n GetPeriodos,\r\n SaveDeclaracionJurada,\r\n GetDetalleDJByDeclaracionJuradaId,\r\n GetDeclaracionJuradaById,\r\n GetReporteDeclaracionJuradaSEH,\r\n} from 'src/api/services/DeclaracionJuradaServiceSEH'\r\nimport { withRouter } from 'react-router'\r\nimport Swal from 'sweetalert2'\r\nimport DeclaracionJuradaSEHReducer from './DeclaracionJuradaSEHReducer'\r\nimport DeclaracionJuradaSEHContext from './DeclaracionJuradaSEHContext'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport PropTypes from 'prop-types'\r\n\r\nconst DeclaracionJuradaSEHState = (props) => {\r\n const initialState = {\r\n anios: [],\r\n periodos: [],\r\n loadingAnios: false,\r\n loadingPeriodos: false,\r\n declaracionesJuradasSEH: [],\r\n total: 0,\r\n loading: false,\r\n /* ALTA */\r\n creatingBorradorDDJJSEH: false,\r\n editingBorradorSEH: false,\r\n declaracionJuradaBorradorSEH: null,\r\n calculandoDeclaracionJuradaSEH: false,\r\n savingDeclaracionJuradaSEH: false,\r\n /* DETALLE DDJJ */\r\n declaracionJuradaDetalleSEH: [],\r\n loadingDeclaracionJuradaDetalleSEH: false,\r\n declaracionJuradaDetalleCount: 0,\r\n /* DDJJ BY ID */\r\n declaracionJuradaSEH: [],\r\n loadingDeclaracionJuradaSEH: false,\r\n /* REPORT DDJJ */\r\n loadingReporte: false,\r\n }\r\n\r\n const [state, dispatch] = useReducer(DeclaracionJuradaSEHReducer, initialState)\r\n\r\n const getAnios = async () => {\r\n dispatch({\r\n type: 'GET_ANIOS_REQUEST',\r\n })\r\n\r\n await GetAnios().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_ANIOS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_ANIOS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getPeriodos = async (anio) => {\r\n dispatch({\r\n type: 'GET_PERIODOS_REQUEST',\r\n })\r\n\r\n await GetPeriodos(anio).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_PERIODOS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_PERIODOS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearPeriodos = async () => {\r\n dispatch({\r\n type: 'CLEAR_CUOTAS_REQUEST',\r\n })\r\n }\r\n\r\n const getDDJJSEHById = async (idDDJJ) => {\r\n dispatch({\r\n type: 'GET_DDJJ_BY_ID_REQUEST',\r\n })\r\n await GetDeclaracionJuradaById(idDDJJ).then(\r\n (response) => {\r\n if (Object.keys(response).length > 0) {\r\n dispatch({\r\n type: 'GET_DDJJ_BY_ID_SUCCESS',\r\n payload: response,\r\n })\r\n } else {\r\n Swal.fire('No encontrada', 'Declaracion Jurada no encontrada', 'info').then(() => {\r\n window.location = '/#/ddjjSEH'\r\n })\r\n }\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DDJJ_BY_ID_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getDDJJSEHToPage = async (page, pagesize, filter) => {\r\n //console.log(\"Declaracion JuradaState\" , page, filter, pagesize)\r\n dispatch({\r\n type: 'GET_DDJJ_SEH_TO_PAGE_REQUEST',\r\n })\r\n\r\n await GetDeclaracionesJuradasSEHToPage(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DDJJ_SEH_TO_PAGE_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_DDJJ_SEH_TO_PAGE_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getDetalleDJByDeclaracionJuradaIdToPage = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: 'GET_DDJJ_DETALLE_TO_PAGE_REQUEST',\r\n })\r\n\r\n await GetDetalleDJByDeclaracionJuradaId(page, pagesize, filter).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DDJJ_DETALLE_TO_PAGE_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DDJJ_DETALLE_TO_PAGE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const clearDDJJDetail = async () => {\r\n dispatch({\r\n type: 'CLEAR_DDJJ_DETAIL_REQUEST',\r\n })\r\n\r\n dispatch({\r\n type: 'CLEAR_DDJJ_DETAIL_SUCCESS',\r\n })\r\n }\r\n\r\n /* ALTA DDJJ */\r\n const createDeclaracionJuradaSEH = async (anio, periodo) => {\r\n dispatch({\r\n type: 'CREATE_DDJJ_SEH_REQUEST',\r\n })\r\n\r\n await CreateDeclaracionJurada(anio, periodo).then(\r\n (response) => {\r\n dispatch({\r\n type: 'CREATE_DDJJ_SEH_SUCCESS',\r\n payload: {\r\n result: response,\r\n },\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'CREATE_DDJJ_SEH_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* ALTA DDJJ */\r\n const calcularMontoDeclaracionJurada = async (data) => {\r\n dispatch({\r\n type: 'CALCULAR_MONTO_DDJJ_SEH_REQUEST',\r\n })\r\n await CalcularMontoDeclaracionJurada(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'CALCULAR_MONTO_DDJJ_SEH_SUCCESS',\r\n payload: {\r\n result: response,\r\n },\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'CALCULAR_MONTO_DDJJ_SEH_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const clearDDJJSEHCreateData = async () => {\r\n dispatch({\r\n type: 'CLEAR_DDJJSEH_CREATE_DATA_REQUEST',\r\n })\r\n }\r\n\r\n const saveDeclaracionJuradaSEH = async (data) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_SEH_REQUEST',\r\n })\r\n await SaveDeclaracionJurada(data).then(\r\n (response) => {\r\n // console.log(response)\r\n dispatch({\r\n type: 'SAVE_DDJJ_SEH_SUCCESS',\r\n payload: {\r\n result: response,\r\n },\r\n })\r\n\r\n Swal.fire({\r\n title: 'Declaración Jurada',\r\n html: 'El Documento ha sido prensentado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n dispatch({\r\n type: 'CLEAR_DDJJSEH_CREATE_DATA_REQUEST',\r\n })\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'SAVE_DDJJ_SEH_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* REPORTE */\r\n const GetReporteDDJJSEH = async (idDDJJ, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteDeclaracionJuradaSEH(idDDJJ, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DDJJ_FAIL',\r\n })\r\n console.log(error)\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nDeclaracionJuradaSEHState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nDeclaracionJuradaSEHState.displayName = 'DeclaracionJuradaSEHState'\r\n\r\nexport default withRouter(DeclaracionJuradaSEHState)\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetConsultaDeuda = (fecha, tipo) => {\r\n return AxiosClient.post(`facturacion/GetConsultaDeuda`, { fecha, tipo }).then((response) => response.data)\r\n}\r\n\r\n/* REPORTE */\r\nconst GetReporteDeuda = (pakey, fecha, format) => {\r\n return AxiosClient.get(`facturacion/GetDeudaReport?pakey=${pakey}&fecha=${fecha}&format=${format}`, { responseType: 'blob' }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\n/* FACTURA NORMAL */\r\nconst GetFactura = (idPakey, fechaConsulta, cuotas, impFijo) => {\r\n return AxiosClient.post(`facturacion/GetFactura`, { idPakey, fechaConsulta, cuotas, impFijo }, { responseType: 'blob' }).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\n/* PAGO ELECTRONICO */\r\nconst GetPagoElectronico = (idPakey, fechaConsulta, cuotas, impFijo) => {\r\n return AxiosClient.post(`facturacion/GetPagoElectronico`, { idPakey, fechaConsulta, cuotas, impFijo }).then((response) => response.data)\r\n}\r\n\r\n/* CHART */\r\nconst GetConsultaDeudaPYPChart = async (fecha) => {\r\n const response = await AxiosClient.post(`facturacion/GetConsultaDeudaChart`, { fecha })\r\n return response.data\r\n}\r\n\r\n/* REPORTE CD */\r\nconst GetReporteCD = async (WRKNRODOP, IDIMPONIBLE, format) => {\r\n const response = await AxiosClient.get(`facturacion/GetCDReport?WRKNRODOP=${WRKNRODOP}&IDIMPONIBLE=${IDIMPONIBLE}&format=${format}`, {\r\n responseType: 'blob',\r\n })\r\n return response.data\r\n}\r\n\r\nexport { GetConsultaDeuda, GetReporteDeuda, GetFactura, GetPagoElectronico, GetConsultaDeudaPYPChart, GetReporteCD }\r\n","export const GET_CONSULTA_DEUDA_REQUEST = 'GET_CONSULTA_DEUDA_REQUEST'\r\nexport const GET_CONSULTA_DEUDA_SUCCESS = 'GET_CONSULTA_DEUDA_SUCCESS'\r\nexport const GET_CONSULTA_DEUDA_CLEAR = 'GET_CONSULTA_DEUDA_CLEAR'\r\nexport const GET_CONSULTA_DEUDA_FAIL = 'GET_CONSULTA_DEUDA_FAIL'\r\n\r\nexport const GET_REPORTE_DEUDA_REQUEST = 'GET_REPORTE_DEUDA_REQUEST'\r\nexport const GET_REPORTE_DEUDA_SUCCESS = 'GET_REPORTE_DEUDA_SUCCESS'\r\nexport const GET_REPORTE_DEUDA_FAIL = 'GET_REPORTE_DEUDA_FAIL'\r\n\r\nexport const GET_FACTURA_REQUEST = 'GET_FACTURA_REQUEST'\r\nexport const GET_FACTURA_SUCCESS = 'GET_FACTURA_SUCCESS'\r\nexport const GET_FACTURA_FAIL = 'GET_FACTURA_FAIL'\r\n\r\nexport const GET_PAGO_ELECTRONICO_REQUEST = 'GET_PAGO_ELECTRONICO_REQUEST'\r\nexport const GET_PAGO_ELECTRONICO_SUCCESS = 'GET_PAGO_ELECTRONICO_SUCCESS'\r\nexport const GET_PAGO_ELECTRONICO_FAIL = 'GET_PAGO_ELECTRONICO_FAIL'\r\n","import {\r\n GET_CONSULTA_DEUDA_REQUEST,\r\n GET_CONSULTA_DEUDA_SUCCESS,\r\n GET_CONSULTA_DEUDA_CLEAR,\r\n GET_CONSULTA_DEUDA_FAIL,\r\n GET_REPORTE_DEUDA_REQUEST,\r\n GET_REPORTE_DEUDA_SUCCESS,\r\n GET_REPORTE_DEUDA_FAIL,\r\n GET_FACTURA_REQUEST,\r\n GET_FACTURA_SUCCESS,\r\n GET_FACTURA_FAIL,\r\n GET_PAGO_ELECTRONICO_REQUEST,\r\n GET_PAGO_ELECTRONICO_SUCCESS,\r\n GET_PAGO_ELECTRONICO_FAIL,\r\n} from './FacturacionTypes'\r\n\r\nconst FacturacionReducer = (state, action) => {\r\n switch (action.type) {\r\n case GET_CONSULTA_DEUDA_CLEAR:\r\n return {\r\n ...state,\r\n deuda: [],\r\n loadingDeuda: false,\r\n }\r\n\r\n case GET_CONSULTA_DEUDA_REQUEST:\r\n return {\r\n ...state,\r\n loadingDeuda: true,\r\n }\r\n\r\n case GET_CONSULTA_DEUDA_SUCCESS:\r\n return {\r\n ...state,\r\n deuda: action.payload,\r\n loadingDeuda: false,\r\n }\r\n\r\n case GET_CONSULTA_DEUDA_FAIL:\r\n return {\r\n ...state,\r\n loadingDeuda: false,\r\n }\r\n\r\n /*-------------------------------- REPORTE --------------------------------*/\r\n case GET_REPORTE_DEUDA_REQUEST:\r\n return {\r\n ...state,\r\n loadingReporteDeuda: true,\r\n }\r\n case GET_REPORTE_DEUDA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingReporteDeuda: false,\r\n reporteDeuda: action.payload,\r\n }\r\n case GET_REPORTE_DEUDA_FAIL:\r\n return {\r\n ...state,\r\n loadingReporteDeuda: false,\r\n reporteDeuda: [],\r\n }\r\n\r\n /*-------------------------------- FACTURA --------------------------------*/\r\n\r\n case GET_FACTURA_REQUEST:\r\n return {\r\n ...state,\r\n loadingFactura: true,\r\n }\r\n\r\n case GET_FACTURA_SUCCESS:\r\n return {\r\n ...state,\r\n loadingFactura: false,\r\n reporteFactura: action.payload,\r\n }\r\n\r\n case GET_FACTURA_FAIL:\r\n return {\r\n ...state,\r\n loadingFactura: false,\r\n reporteFactura: [],\r\n }\r\n\r\n /*-------------------------------- PAGO ELECTRONICO --------------------------------*/\r\n\r\n case GET_PAGO_ELECTRONICO_REQUEST:\r\n return {\r\n ...state,\r\n loadingPagoElectronico: true,\r\n }\r\n\r\n case GET_PAGO_ELECTRONICO_SUCCESS:\r\n return {\r\n ...state,\r\n loadingPagoElectronico: false,\r\n }\r\n\r\n case GET_PAGO_ELECTRONICO_FAIL:\r\n return {\r\n ...state,\r\n loadingPagoElectronico: false,\r\n }\r\n\r\n /*------------------------------ CHART ------------------------------- */\r\n case 'GET_CONSULTA_DEUDA_PYP_CHART_REQUEST':\r\n return {\r\n ...state,\r\n loadingChartPYPData: true,\r\n }\r\n\r\n case 'GET_CONSULTA_DEUDA_PYP_CHART_SUCCESS':\r\n return {\r\n ...state,\r\n chartPYPData: action.payload,\r\n loadingChartPYPData: false,\r\n }\r\n\r\n case 'GET_CONSULTA_DEUDA_PYP_CHART_FAIL':\r\n return {\r\n ...state,\r\n chartPYPData: null,\r\n loadingChartPYPData: false,\r\n }\r\n\r\n /* REPORTE CD */\r\n case 'GET_REPORTE_CD_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteCD: true,\r\n }\r\n case 'GET_REPORTE_CD_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteCD: false,\r\n reporteCD: action.payload,\r\n }\r\n case 'GET_REPORTE_CD_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteCD: false,\r\n reporteCD: [],\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default FacturacionReducer\r\n","import React, { useContext, useEffect, useReducer } from 'react'\r\nimport { withRouter } from 'react-router'\r\nimport Swal from 'sweetalert2'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport PropTypes from 'prop-types'\r\nimport {\r\n GetConsultaDeuda,\r\n GetFactura,\r\n GetPagoElectronico,\r\n GetReporteDeuda,\r\n GetConsultaDeudaPYPChart,\r\n GetReporteCD,\r\n} from '../../api/services/FacturacionService'\r\nimport FacturacionContext from './FacturacionContext'\r\nimport FacturacionReducer from './FacturacionReducer'\r\n\r\nimport {\r\n GET_CONSULTA_DEUDA_REQUEST,\r\n GET_CONSULTA_DEUDA_SUCCESS,\r\n GET_CONSULTA_DEUDA_CLEAR,\r\n GET_CONSULTA_DEUDA_FAIL,\r\n GET_REPORTE_DEUDA_REQUEST,\r\n GET_REPORTE_DEUDA_SUCCESS,\r\n GET_REPORTE_DEUDA_FAIL,\r\n GET_FACTURA_REQUEST,\r\n GET_FACTURA_SUCCESS,\r\n GET_FACTURA_FAIL,\r\n GET_PAGO_ELECTRONICO_REQUEST,\r\n GET_PAGO_ELECTRONICO_SUCCESS,\r\n GET_PAGO_ELECTRONICO_FAIL,\r\n} from './FacturacionTypes'\r\nimport AuthContext from '../auth/AuthContext'\r\n\r\nconst FacturacionState = (props) => {\r\n const { user } = useContext(AuthContext)\r\n const initialState = {\r\n deuda: [],\r\n loadingDeuda: false,\r\n\r\n /* REPORTE */\r\n loadingReporteDeuda: false,\r\n reporteDeuda: [],\r\n\r\n /* FACTURA */\r\n loadingFactura: false,\r\n reporteFactura: [],\r\n\r\n /* PAGO ELECTRONICO */\r\n loadingPagoElectronico: false,\r\n\r\n /* Chart Ultimos 12 Meses PYP*/\r\n loadingChartPYPData: false,\r\n chartPYPData: null,\r\n\r\n /* REPORTE CD*/\r\n loadingReportCD: false,\r\n reportCD: [],\r\n }\r\n\r\n const [state, dispatch] = useReducer(FacturacionReducer, initialState)\r\n\r\n useEffect(() => {\r\n if (user) {\r\n getConsultaDeudaPYPChart(new Date())\r\n }\r\n // eslint-disable-next-line\r\n }, []);\r\n\r\n /*** CONSULTA DE DEUDA ****/\r\n\r\n const clearDeuda = () => {\r\n dispatch({\r\n type: GET_CONSULTA_DEUDA_CLEAR,\r\n })\r\n }\r\n\r\n const getDeuda = async (fecha, tipo) => {\r\n dispatch({\r\n type: GET_CONSULTA_DEUDA_REQUEST,\r\n })\r\n\r\n await GetConsultaDeuda(fecha, tipo).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_CONSULTA_DEUDA_SUCCESS,\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_CONSULTA_DEUDA_FAIL,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /*** REPORTE DE DEUDA ****/\r\n const getDeudaReport = async (pakey, fecha, format) => {\r\n // console.log(pakey, fecha, format)\r\n dispatch({\r\n type: GET_REPORTE_DEUDA_REQUEST,\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteDeuda(pakey, fecha, format).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_REPORTE_DEUDA_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_REPORTE_DEUDA_FAIL,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** REPORTE DE FACTURACION ****/\r\n const getFactura = async (pakey, fecha, cuotas, importeFijo) => {\r\n dispatch({\r\n type: GET_FACTURA_REQUEST,\r\n })\r\n\r\n let file = null\r\n\r\n await GetFactura(pakey, fecha, cuotas, importeFijo).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_FACTURA_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_FACTURA_FAIL,\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** REPORTE DE FACTURACION ****/\r\n const getPagoElectronico = async (pakey, fecha, cuotas, importeFijo) => {\r\n dispatch({\r\n type: GET_PAGO_ELECTRONICO_REQUEST,\r\n })\r\n\r\n let token = null\r\n\r\n await GetPagoElectronico(pakey, fecha, cuotas, importeFijo).then(\r\n (response) => {\r\n dispatch({\r\n type: GET_PAGO_ELECTRONICO_SUCCESS,\r\n payload: response,\r\n })\r\n\r\n token = response\r\n },\r\n (error) => {\r\n dispatch({\r\n type: GET_PAGO_ELECTRONICO_FAIL,\r\n })\r\n\r\n showError(error, 'error')\r\n },\r\n )\r\n\r\n return token\r\n }\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n const getConsultaDeudaPYPChart = async (fecha) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_PYP_CHART_REQUEST',\r\n })\r\n\r\n await GetConsultaDeudaPYPChart(fecha).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_PYP_CHART_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_PYP_CHART_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* Reporte de CD */\r\n const getReporteCD = async (WRKNRODOP, IDIMPONIBLE, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteCD(WRKNRODOP, IDIMPONIBLE, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_FAIL',\r\n })\r\n console.log(error)\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nFacturacionState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nFacturacionState.displayName = 'FacturacionState'\r\n\r\nexport default withRouter(FacturacionState)\r\n","import AxiosClient from '../AxiosClient'\r\n\r\nconst GetConsultaDeuda = async (fecha, tipo) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `facturacionSEH/GetConsultaDeuda`, { fecha, tipo })\r\n return response.data\r\n}\r\n\r\n/* REPORTE */\r\nconst GetReporteDeuda = async (pakey, fecha, format) => {\r\n const response = await AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL + `facturacionSEH/GetDeudaReport?pakey=${pakey}&fecha=${fecha}&format=${format}`,\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\n/* FACTURA NORMAL */\r\nconst GetFactura = async (idPakey, fechaConsulta, cuotas, impFijo) => {\r\n const response = await AxiosClient.post(\r\n process.env.REACT_APP_BACKEND_URL + `facturacionSEH/GetFactura`,\r\n { idPakey, fechaConsulta, cuotas, impFijo },\r\n { responseType: 'blob' },\r\n )\r\n return response.data\r\n}\r\n\r\n/* PAGO ELECTRONICO */\r\nconst GetPagoElectronico = async (idPakey, fechaConsulta, cuotas, impFijo) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `facturacionSEH/GetPagoElectronico`, {\r\n idPakey,\r\n fechaConsulta,\r\n cuotas,\r\n impFijo,\r\n })\r\n return response.data\r\n}\r\n\r\n/* CHART */\r\nconst GetConsultaDeudaChart = async (fecha) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `facturacionSEH/GetConsultaDeudaChart`, { fecha })\r\n return response.data\r\n}\r\n\r\n/* REPORTE CD */\r\nconst GetReporteCD = async (WRKNRODOP, IDIMPONIBLE, format) => {\r\n const response = await AxiosClient.get(`facturacionSEH/GetCDReport?WRKNRODOP=${WRKNRODOP}&IDIMPONIBLE=${IDIMPONIBLE}&format=${format}`, {\r\n responseType: 'blob',\r\n })\r\n return response.data\r\n}\r\n\r\nexport { GetConsultaDeuda, GetReporteDeuda, GetFactura, GetPagoElectronico, GetConsultaDeudaChart, GetReporteCD }\r\n","const FacturacionSEHReducer = (state, action) => {\r\n switch (action.type) {\r\n case 'GET_CONSULTA_DEUDA_CLEAR':\r\n return {\r\n ...state,\r\n deuda: [],\r\n loadingDeuda: false,\r\n anioCuotaDataGrid: null,\r\n anioCuotaDataGridAnterior: null,\r\n }\r\n\r\n case 'GET_CONSULTA_DEUDA_REQUEST':\r\n return {\r\n ...state,\r\n loadingDeuda: true,\r\n }\r\n\r\n case 'GET_CONSULTA_DEUDA_SUCCESS':\r\n return {\r\n ...state,\r\n deuda: action.payload,\r\n loadingDeuda: false,\r\n }\r\n case 'GET_CONSULTA_DEUDA_FAIL':\r\n return {\r\n ...state,\r\n deuda: [],\r\n loadingDeuda: false,\r\n }\r\n\r\n /*-------------------------------- REPORTE --------------------------------*/\r\n case 'GET_REPORTE_DEUDA_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteDeuda: true,\r\n }\r\n case 'GET_REPORTE_DEUDA_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteDeuda: false,\r\n reporteDeuda: action.payload,\r\n }\r\n case 'GET_REPORTE_DEUDA_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteDeuda: false,\r\n reporteDeuda: [],\r\n }\r\n\r\n /*-------------------------------- FACTURA --------------------------------*/\r\n\r\n case 'GET_FACTURA_REQUEST':\r\n return {\r\n ...state,\r\n loadingFactura: true,\r\n }\r\n\r\n case 'GET_FACTURA_SUCCESS':\r\n return {\r\n ...state,\r\n loadingFactura: false,\r\n reporteFactura: action.payload,\r\n }\r\n\r\n case 'GET_FACTURA_FAIL':\r\n return {\r\n ...state,\r\n loadingFactura: false,\r\n reporteFactura: [],\r\n }\r\n\r\n /*-------------------------------- PAGO ELECTRONICO --------------------------------*/\r\n\r\n case 'GET_PAGO_ELECTRONICO_REQUEST':\r\n return {\r\n ...state,\r\n loadingPagoElectronico: true,\r\n }\r\n\r\n case 'GET_PAGO_ELECTRONICO_SUCCESS':\r\n return {\r\n ...state,\r\n loadingPagoElectronico: false,\r\n }\r\n\r\n case 'GET_PAGO_ELECTRONICO_FAIL':\r\n return {\r\n ...state,\r\n loadingPagoElectronico: false,\r\n }\r\n\r\n /*------------------------------ CHART ------------------------------- */\r\n case 'GET_CONSULTA_DEUDA_CHART_REQUEST':\r\n return {\r\n ...state,\r\n loadingChartData: true,\r\n }\r\n\r\n case 'GET_CONSULTA_DEUDA_CHART_SUCCESS':\r\n return {\r\n ...state,\r\n chartData: action.payload,\r\n loadingChartData: false,\r\n }\r\n case 'GET_CONSULTA_DEUDA_CHART_FAIL':\r\n return {\r\n ...state,\r\n chartData: null,\r\n loadingChartData: false,\r\n }\r\n\r\n /* REPORTE CD */\r\n case 'GET_REPORTE_CD_REQUEST':\r\n return {\r\n ...state,\r\n loadingReporteCD: true,\r\n }\r\n case 'GET_REPORTE_CD_SUCCESS':\r\n return {\r\n ...state,\r\n loadingReporteCD: false,\r\n reporteCD: action.payload,\r\n }\r\n case 'GET_REPORTE_CD_FAIL':\r\n return {\r\n ...state,\r\n loadingReporteCD: false,\r\n reporteCD: [],\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default FacturacionSEHReducer\r\n","import React, { useContext, useEffect, useReducer } from 'react'\r\nimport { withRouter } from 'react-router'\r\nimport Swal from 'sweetalert2'\r\nimport { getBase64 } from 'src/common/Utils'\r\nimport PropTypes from 'prop-types'\r\nimport {\r\n GetConsultaDeuda,\r\n GetFactura,\r\n GetPagoElectronico,\r\n GetReporteDeuda,\r\n GetConsultaDeudaChart,\r\n GetReporteCD,\r\n} from '../../api/services/FacturacionSEHService'\r\nimport FacturacionSEHContext from './FacturacionSEHContext'\r\nimport FacturacionSEHReducer from './FacturacionSEHReducer'\r\nimport AuthContext from '../auth/AuthContext'\r\n\r\nconst FacturacionSEHState = (props) => {\r\n const { user } = useContext(AuthContext)\r\n const initialState = {\r\n deuda: [],\r\n loadingDeuda: false,\r\n\r\n /* REPORTE */\r\n loadingReporteDeuda: false,\r\n reporteDeuda: [],\r\n\r\n /* FACTURA */\r\n loadingFactura: false,\r\n reporteFactura: [],\r\n\r\n /* PAGO ELECTRONICO */\r\n loadingPagoElectronico: false,\r\n\r\n /* Chart Ultimos 12 Meses SEH*/\r\n loadingChartData: false,\r\n chartData: null,\r\n\r\n /* REPORTE CD*/\r\n loadingReportCD: false,\r\n reportCD: [],\r\n }\r\n\r\n const [state, dispatch] = useReducer(FacturacionSEHReducer, initialState)\r\n\r\n useEffect(() => {\r\n if (user) {\r\n getConsultaDeudaChart(new Date())\r\n }\r\n // eslint-disable-next-line\r\n }, []);\r\n\r\n /*** CONSULTA DE DEUDA ****/\r\n const clearDeuda = () => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_CLEAR',\r\n })\r\n }\r\n\r\n const getDeuda = async (fecha, tipo) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_REQUEST',\r\n })\r\n\r\n await GetConsultaDeuda(fecha, tipo).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /*** REPORTE DE DEUDA ****/\r\n const getDeudaReport = async (pakey, fecha, format) => {\r\n // console.log(pakey, fecha, format)\r\n dispatch({\r\n type: 'GET_REPORTE_DEUDA_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteDeuda(pakey, fecha, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DEUDA_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_DEUDA_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** REPORTE DE FACTURACION ****/\r\n const getFactura = async (pakey, fecha, cuotas, importeFijo) => {\r\n dispatch({\r\n type: 'GET_FACTURA_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetFactura(pakey, fecha, cuotas, importeFijo).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_FACTURA_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_FACTURA_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** REPORTE DE FACTURACION ****/\r\n const getPagoElectronico = async (pakey, fecha, cuotas, importeFijo) => {\r\n dispatch({\r\n type: 'GET_PAGO_ELECTRONICO_REQUEST',\r\n })\r\n\r\n let token = null\r\n\r\n await GetPagoElectronico(pakey, fecha, cuotas, importeFijo).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_PAGO_ELECTRONICO_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n token = response\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_PAGO_ELECTRONICO_FAIL',\r\n })\r\n\r\n showError(error, 'error')\r\n },\r\n )\r\n return token\r\n }\r\n\r\n const getConsultaDeudaChart = async (fecha) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_CHART_REQUEST',\r\n })\r\n\r\n await GetConsultaDeudaChart(fecha).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_CHART_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_CONSULTA_DEUDA_CHART_FAIL',\r\n })\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n /* Reporte de CD */\r\n const getReporteCD = async (WRKNRODOP, IDIMPONIBLE, format) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_REQUEST',\r\n })\r\n\r\n let file = null\r\n\r\n await GetReporteCD(WRKNRODOP, IDIMPONIBLE, format).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_SUCCESS',\r\n payload: response,\r\n })\r\n\r\n file = getBase64(response)\r\n },\r\n (error) => {\r\n dispatch({\r\n type: 'GET_REPORTE_CD_FAIL',\r\n })\r\n console.log(error)\r\n showError(error, 'error')\r\n },\r\n )\r\n return file\r\n }\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nFacturacionSEHState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nFacturacionSEHState.displayName = 'FacturacionSEHState'\r\n\r\nexport default withRouter(FacturacionSEHState)\r\n","const AtencionVirtualReducer = (state, action) => {\r\n switch (action.type) {\r\n case 'GET_TURNOS_X_DOCUMENTO_PERSONA_CLEAR':\r\n return {\r\n ...state,\r\n turno: [],\r\n loadingTurno: false,\r\n CreatingTurno: false,\r\n deletetingTurno: false,\r\n TurnoDataGrid: null,\r\n TurnoDataGridAnterior: null,\r\n InsertingTurno: false,\r\n }\r\n\r\n case 'GET_TURNOS_X_DOCUMENTO_PERSONA_REQUEST':\r\n return {\r\n ...state,\r\n loadingTurno: true,\r\n }\r\n\r\n case 'GET_TURNOS_X_DOCUMENTO_PERSONA_SUCCESS':\r\n return {\r\n ...state,\r\n total: action.payload.total,\r\n turno: action.payload.result,\r\n loadingTurno: false,\r\n }\r\n\r\n // case 'GET_TURNOS_X_DOCUMENTO_PERSONA_REQUEST':\r\n // return {\r\n // ...state,\r\n // loadingTurno: true,\r\n // }\r\n\r\n // case 'GET_TURNOS_X_DOCUMENTO_PERSONA_SUCCESS':\r\n // return {\r\n // ...state,\r\n // turno: action.payload,\r\n // loadingTurno: false,\r\n // }\r\n\r\n case 'GET_TURNOS_X_DOCUMENTO_PERSONA_FAIL':\r\n return {\r\n ...state,\r\n turno: [],\r\n loadingTurno: false,\r\n }\r\n\r\n case 'CREATE_TURNOS_REQUEST':\r\n return {\r\n ...state,\r\n creatingTurno: true,\r\n }\r\n\r\n case 'CREATE_TURNOS_SUCCESS':\r\n return {\r\n ...state,\r\n creatingTurno: false,\r\n }\r\n\r\n case 'CREATE_TURNOS_FAIL':\r\n return {\r\n ...state,\r\n creatingTurno: false,\r\n }\r\n\r\n case 'DELETE_TURNOS_REQUEST':\r\n return {\r\n ...state,\r\n deletetingTurno: true,\r\n }\r\n\r\n case 'DELETE_TURNOS_SUCCESS':\r\n return {\r\n ...state,\r\n deletetingTurno: false,\r\n }\r\n\r\n case 'DELETE_TURNOS_FAIL':\r\n return {\r\n ...state,\r\n deletetingTurno: false,\r\n }\r\n case 'GET_AREAGEST_REQUEST':\r\n return {\r\n ...state,\r\n loadingAreagest: true,\r\n }\r\n\r\n case 'GET_AREAGEST_SUCCESS':\r\n return {\r\n ...state,\r\n areagest: action.payload,\r\n loadingAreagest: false,\r\n }\r\n case 'GET_AREAGEST_FAIL':\r\n return {\r\n ...state,\r\n areagest: [],\r\n loadingAreagest: false,\r\n }\r\n case 'GET_RELDELEGACIONTIPOTRAMITE_REQUEST':\r\n return {\r\n ...state,\r\n loadingRelDelegacionTipotramite: true,\r\n }\r\n\r\n case 'GET_RELDELEGACIONTIPOTRAMITE_SUCCESS':\r\n return {\r\n ...state,\r\n relDelegacionTipotramite: action.payload,\r\n loadingRelDelegacionTipotramite: false,\r\n }\r\n\r\n case 'GET_DELEGACION_REQUEST':\r\n return {\r\n ...state,\r\n loadingDelegacion: true,\r\n }\r\n\r\n case 'GET_DELEGACION_SUCCESS':\r\n return {\r\n ...state,\r\n delegacion: action.payload,\r\n loadingDelegacion: false,\r\n }\r\n case 'GET_DELEGACION_FAIL':\r\n return {\r\n ...state,\r\n delegacion: [],\r\n loadingDelegacion: false,\r\n }\r\n\r\n case 'GET_DIAS_NO_HABILITADOS_REQUEST':\r\n return {\r\n ...state,\r\n loadingDiasNoHabilitados: true,\r\n }\r\n\r\n case 'GET_DIAS_NO_HABILITADOS_SUCCESS':\r\n return {\r\n ...state,\r\n diasNoHabilitados: action.payload,\r\n loadingDiasNoHabilitados: false,\r\n }\r\n case 'GET_DIAS_NO_HABILITADOS_FAIL':\r\n return {\r\n ...state,\r\n diasNoHabilitados: [],\r\n loadingDiasNoHabilitados: false,\r\n }\r\n case 'GET_HORARIOS_HABILITADOS_REQUEST':\r\n return {\r\n ...state,\r\n loadingHorariosHabilitados: true,\r\n }\r\n\r\n case 'GET_HORARIOS_HABILITADOS_SUCCESS':\r\n return {\r\n ...state,\r\n horariosHabilitados: action.payload,\r\n loadingHorariosHabilitados: false,\r\n }\r\n case 'GET_HORARIOS_HABILITADOS_FAIL':\r\n return {\r\n ...state,\r\n horariosHabilitados: [],\r\n loadingHorariosHabilitados: false,\r\n }\r\n case 'INS_TURNOS_REQUEST':\r\n return {\r\n ...state,\r\n InsertingTurno: true,\r\n }\r\n\r\n case 'INS_TURNOS_SUCCESS':\r\n return {\r\n ...state,\r\n InsertingTurno: false,\r\n }\r\n\r\n case 'INS_TURNOS_FAIL':\r\n return {\r\n ...state,\r\n InsertingTurno: false,\r\n }\r\n\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nexport default AtencionVirtualReducer\r\n","import AxiosClient from '../AxiosClient'\r\n\r\n/* OBTENER LOS TURNOS REGISTRADOS PARA UN CONTRIBUYENTE */\r\n/*const ConsultarTurnosXContribuyente = (cuit) => {\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + `Atencion_Virtua/Get_Turno_x_Documento_Persona?nro_doc=${cuit}`)\r\n .then(response => response.data);\r\n}*/\r\n// const ConsultarTurnosXContribuyente = (cuit) => {\r\n// return AxiosClient.get(process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/Get_Turno_x_Documento_Persona?nro_doc=${cuit}`).then(\r\n// (response) => response.data,\r\n// )\r\n// }\r\n\r\nconst ConsultarTurnosXContribuyente = async (page, pageSize, filter) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/Get_Turno_x_Documento_Persona`, {\r\n page,\r\n pageSize,\r\n filter,\r\n })\r\n return response.data\r\n}\r\n\r\nconst EliminarTurno = (turno) => {\r\n //console.log(turno)\r\n return AxiosClient.post(process.env.REACT_APP_BACKEND_URL + 'Atencion_Virtua/DeleteTurno', turno).then((response) => response.data)\r\n}\r\n\r\nconst InsertarTurno = async (id_tipo_tramite, id_delegacion, Fecha_turno, hora, Telefono) => {\r\n //console.log('ins---- ' + id_tipo_tramite, id_delegacion, Fecha_turno, hora, Telefono)\r\n\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/SaveTurno`, {\r\n id_tipo_tramite,\r\n id_delegacion,\r\n Fecha_turno,\r\n hora,\r\n Telefono,\r\n })\r\n return response.data\r\n}\r\n\r\nconst GetAreaGestion = (id, descripcion, estado) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/Get_Area_Gestion?id=${id}&descripcion=${descripcion}&estado=${estado}`,\r\n ).then((response) => response.data)\r\n}\r\n\r\nconst GetRelDelegacionTipotramite = (idDelegacion, idTipoTramite) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL +\r\n `Atencion_Virtua/Get_Rel_Delegacion_Tipo_tramite?idDelegacion=${idDelegacion}&idTipoTramite=${idTipoTramite}`,\r\n ).then((response) => response.data)\r\n}\r\n\r\nconst GetDelegacion = (id, descripcion, estado, id_area_gestion) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL +\r\n `Atencion_Virtua/Get_Delegacion?id=${id}&estado=${estado}&descripcion=${descripcion}&id_area_gestion=${id_area_gestion}`,\r\n ).then((response) => response.data)\r\n}\r\n\r\nconst GetDiasNoHabilitados = (idDelegacion) => {\r\n return AxiosClient.get(process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/Get_Dias_NO_habilitados?idDelegacion=${idDelegacion}`).then(\r\n (response) => response.data,\r\n )\r\n}\r\n\r\nconst GetHorariosHabilitados = (idDelegacion, fecha) => {\r\n return AxiosClient.get(\r\n process.env.REACT_APP_BACKEND_URL + `Atencion_Virtua/Get_Horario_habilitados?idDelegacion=${idDelegacion}&fecha=${fecha}`,\r\n ).then((response) => response.data)\r\n}\r\n\r\nconst CreateRoom = async (data) => {\r\n const response = await AxiosClient.post(process.env.REACT_APP_BACKEND_DFE_URL + 'Atencion_Virtua/CreateRoom', data)\r\n return response.data\r\n}\r\n\r\nexport {\r\n ConsultarTurnosXContribuyente,\r\n EliminarTurno,\r\n InsertarTurno,\r\n GetAreaGestion,\r\n GetRelDelegacionTipotramite,\r\n GetDelegacion,\r\n GetDiasNoHabilitados,\r\n GetHorariosHabilitados,\r\n CreateRoom,\r\n}\r\n","import React, { useReducer } from 'react'\r\nimport { withRouter } from 'react-router'\r\nimport Swal from 'sweetalert2'\r\nimport PropTypes from 'prop-types'\r\nimport AtencionVirtualReducer from './AtencionVirtualReducer'\r\nimport {\r\n ConsultarTurnosXContribuyente,\r\n EliminarTurno,\r\n GetAreaGestion,\r\n GetRelDelegacionTipotramite,\r\n GetDelegacion,\r\n GetDiasNoHabilitados,\r\n InsertarTurno,\r\n GetHorariosHabilitados,\r\n CreateRoom,\r\n} from 'src/api/services/AtencionVirtual'\r\nimport AtencionVirtualContext from './AtencionVirtualContex'\r\n\r\nconst AtencionVirtualState = (props) => {\r\n const initialState = {\r\n turno: [],\r\n loadingTurno: false,\r\n deletetingTurno: false,\r\n areagest: [],\r\n loadingAreagest: false,\r\n relDelegacionTipotramite: [],\r\n loadingRelDelegacionTipotramite: false,\r\n delegacion: [],\r\n loadingDelegacion: false,\r\n diasNoHabilitados: [],\r\n horariosHabilitados: [],\r\n loadingHorariosHabilitados: false,\r\n InsertingTurno: false,\r\n }\r\n\r\n const [state, dispatch] = useReducer(AtencionVirtualReducer, initialState)\r\n\r\n const clearTurno = () => {\r\n dispatch({\r\n type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_CLEAR',\r\n })\r\n }\r\n // const getTurno = async (cuit) => {\r\n // dispatch({\r\n // type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_REQUEST',\r\n // })\r\n\r\n // await ConsultarTurnosXContribuyente(cuit).then(\r\n // (response) => {\r\n // dispatch({\r\n // type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_SUCCESS',\r\n // payload: response,\r\n // })\r\n // },\r\n // (error) => {\r\n // showError(error, 'error')\r\n // },\r\n // )\r\n // }\r\n\r\n const getTurno = async (page, pagesize, filter) => {\r\n dispatch({\r\n type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_REQUEST',\r\n })\r\n\r\n await ConsultarTurnosXContribuyente(page, pagesize, filter).then(\r\n (response) => {\r\n //console.log(response)\r\n dispatch({\r\n type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_SUCCESS',\r\n payload: {\r\n result: response.result,\r\n total: response.totalRows,\r\n },\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_TURNOS_X_DOCUMENTO_PERSONA_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const deleteTurno = async (id) => {\r\n dispatch({\r\n type: 'DELETE_TURNOS_REQUEST',\r\n })\r\n //console.log('entro_eliminar')\r\n await EliminarTurno(id).then(\r\n (response) => {\r\n dispatch({\r\n type: 'DELETE_TURNOS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n },\r\n )\r\n }\r\n\r\n const getAreaGestion = async () => {\r\n dispatch({\r\n type: 'GET_AREAGEST_REQUEST',\r\n })\r\n\r\n await GetAreaGestion().then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_AREAGEST_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_AREAGEST_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getRelDelegacionTipotramite = async (idDelegacion, idTipoTramite) => {\r\n dispatch({\r\n type: 'GET_RELDELEGACIONTIPOTRAMITE_REQUEST',\r\n })\r\n\r\n await GetRelDelegacionTipotramite(idDelegacion, idTipoTramite).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_RELDELEGACIONTIPOTRAMITE_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_RELDELEGACIONTIPOTRAMITE_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getDelegacion = async (id, estado, descripcion, id_area_gestion) => {\r\n dispatch({\r\n type: 'GET_DELEGACION_REQUEST',\r\n })\r\n\r\n await GetDelegacion(id, estado, descripcion, id_area_gestion).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DELEGACION_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DELEGACION_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getDiasNoHabilitados = async (idDelegacion) => {\r\n dispatch({\r\n type: 'GET_DIAS_NO_HABILITADOS_REQUEST',\r\n })\r\n\r\n await GetDiasNoHabilitados(idDelegacion).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_DIAS_NO_HABILITADOS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_DIAS_NO_HABILITADOS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const getHorariosHabilitados = async (idDelegacion, fecha) => {\r\n dispatch({\r\n type: 'GET_HORARIOS_HABILITADOS_REQUEST',\r\n })\r\n\r\n await GetHorariosHabilitados(idDelegacion, fecha).then(\r\n (response) => {\r\n dispatch({\r\n type: 'GET_HORARIOS_HABILITADOS_SUCCESS',\r\n payload: response,\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'GET_HORARIOS_HABILITADOS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const insTurno = async (id_tipo_tramite, id_delegacion, Fecha_turno, hora, Telefono) => {\r\n dispatch({\r\n type: 'INS_TURNOS_REQUEST',\r\n })\r\n //console.log('ENTRO_INSERT')\r\n await InsertarTurno(id_tipo_tramite, id_delegacion, Fecha_turno, hora, Telefono).then(\r\n (response) => {\r\n dispatch({\r\n type: 'INS_TURNOS_SUCCESS',\r\n })\r\n Swal.fire({\r\n title: 'Solicitud de Turno',\r\n html: 'Su turno ha sido almacenado con éxito
',\r\n confirmButtonText: 'Aceptar',\r\n icon: 'success',\r\n }).then(() => {\r\n window.location = '/#/atencion/consulta-turnos'\r\n })\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'INS_TURNOS_FAIL',\r\n })\r\n },\r\n )\r\n }\r\n\r\n const createRoom = async (data) => {\r\n let result = null\r\n\r\n dispatch({\r\n type: 'CREATE_ROOM_REQUEST',\r\n })\r\n\r\n await CreateRoom(data).then(\r\n (response) => {\r\n dispatch({\r\n type: 'CREATE_ROOM_SUCCESS',\r\n payload: response,\r\n })\r\n result = response\r\n },\r\n (error) => {\r\n showError(error, 'error')\r\n dispatch({\r\n type: 'CREATE_ROOM_FAIL',\r\n })\r\n },\r\n )\r\n\r\n return result\r\n }\r\n\r\n /*** ERRORES ****/\r\n const showError = (error, category) => {\r\n if (error.length > 0) Swal.fire('Error', error, category)\r\n }\r\n\r\n return (\r\n \r\n {props.children}\r\n \r\n )\r\n}\r\n\r\nAtencionVirtualState.propTypes = {\r\n children: PropTypes.node,\r\n}\r\n\r\nAtencionVirtualState.displayName = 'AtencionVirtualState'\r\n\r\nexport default withRouter(AtencionVirtualState)\r\n","import React, { Suspense } from 'react'\r\n\r\nimport 'react-notifications/lib/notifications.css'\r\nimport './assets/scss/style.scss'\r\nimport './assets/scss/common.scss'\r\n\r\nimport { HashRouter, Route, Switch } from 'react-router-dom'\r\nimport { PrivateRoute } from './common'\r\nimport { NotificationContainer } from 'react-notifications'\r\nimport AuthState from './context/auth/AuthState'\r\nimport UserState from './context/user/UserState'\r\nimport CommonState from './context/common/CommonState'\r\nimport DeclaracionJuradaState from './context/declaracionJurada/DeclaracionJuradaState'\r\nimport DeclaracionJuradaSEHState from './context/declaracionJuradaSEH/DeclaracionJuradaSEHState'\r\nimport FacturacionState from './context/facturacion/FacturacionState'\r\nimport FacturacionSEHState from './context/facturacionSEH/FacturacionSEHState'\r\nimport AtencionVirtualState from './context/AtencionVirtual/AtencionVirtualState'\r\n\r\nconst loading = (\r\n \r\n)\r\n\r\n// Containers\r\nconst Layout = React.lazy(() => import('./containers/Layout'))\r\n\r\n// Pages\r\nconst Login = React.lazy(() => import('./views/pages/login/Login'))\r\nconst ResetPassword = React.lazy(() => import('./views/pages/user/ResetPassword'))\r\nconst ActivateUser = React.lazy(() => import('./views/pages/user/ActivateUser'))\r\nconst Page404 = React.lazy(() => import('./views/pages/page404/Page404'))\r\nconst Page500 = React.lazy(() => import('./views/pages/page500/Page500'))\r\nconst NewUser = React.lazy(() => import('./views/pages/user/NewUser'))\r\nconst Contacto = React.lazy(() => import('./views/pages/contacto/Contacto'))\r\nconst DDJJDomicilioFiscalAlta = React.lazy(() => import('./views/pages/user/DDJJDomicilioFiscalAlta'))\r\n\r\nconst App = () => {\r\n return (\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 \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\nexport default App\r\n","import { sygnet } from './sygnet'\r\nimport { logo } from './logo'\r\nimport { logoNegative } from './logo-negative'\r\n\r\nimport {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex,\r\n} from '@coreui/icons'\r\nimport { cifUs, cifBr, cifIn, cifFr, cifEs, cifPl } from '@coreui/icons'\r\nimport {\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n cilBell,\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronRight,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilGlobeAlt,\r\n cilGrid,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGraph,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilPowerStandby,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilNewspaper,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning,\r\n cilPlus,\r\n} from '@coreui/icons'\r\n\r\nexport const icons = Object.assign(\r\n {},\r\n {\r\n sygnet,\r\n logo,\r\n logoNegative,\r\n },\r\n {\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n cilBell,\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilGlobeAlt,\r\n cilGrid,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGraph,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPowerStandby,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning,\r\n cilPlus,\r\n cilNewspaper,\r\n cilChevronRight,\r\n },\r\n {\r\n cifUs,\r\n cifBr,\r\n cifIn,\r\n cifFr,\r\n cifEs,\r\n cifPl,\r\n },\r\n {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex,\r\n },\r\n)\r\n","export const sygnet = [\r\n '160 160',\r\n `\r\n coreui logo\r\n \r\n \r\n \r\n \r\n \r\n \r\n`,\r\n]\r\n","export const logo = [\r\n '608 134',\r\n `\r\n coreui react pro\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 \r\n \r\n \r\n`,\r\n]\r\n","export const logoNegative = [\r\n '408 75',\r\n `\r\n coreui react pro logo\r\n \r\n`,\r\n]\r\n","export const cilAlignCenter = [\"512 512\",\"\"]","export const cilAlignLeft = [\"512 512\",\"\"]","export const cilAlignRight = [\"512 512\",\"\"]","export const cilApplicationsSettings = [\"512 512\",\"\"]","export const cilArrowRight = [\"512 512\",\"\"]","export const cilAsterisk = [\"512 512\",\"\"]","export const cilBasket = [\"512 512\",\"\"]","export const cilBell = [\"512 512\",\"\"]","export const cilBold = [\"512 512\",\"\"]","export const cilBookmark = [\"512 512\",\"\"]","export const cilCalculator = [\"512 512\",\"\"]","export const cilCalendar = [\"512 512\",\"\"]","export const cilCloudDownload = [\"512 512\",\"\"]","export const cilChartPie = [\"512 512\",\"\"]","export const cilCheck = [\"512 512\",\"\"]","export const cilChevronBottom = [\"512 512\",\"\"]","export const cilChevronLeft = [\"512 512\",\"\"]","export const cilChevronTop = [\"512 512\",\"\"]","export const cilCircle = [\"512 512\",\"\"]","export const cilCheckCircle = [\"512 512\",\"\"]","export const cilCode = [\"512 512\",\"\"]","export const cilCommentSquare = [\"512 512\",\"\"]","export const cilCreditCard = [\"512 512\",\"\"]","export const cilCursor = [\"512 512\",\"\"]","export const cilCursorMove = [\"512 512\",\"\"]","export const cilDrop = [\"512 512\",\"\"]","export const cilDollar = [\"512 512\",\"\"]","export const cilEnvelopeClosed = [\"512 512\",\"\"]","export const cilEnvelopeLetter = [\"512 512\",\"\"]","export const cilEnvelopeOpen = [\"512 512\",\"\"]","export const cilEuro = [\"512 512\",\"\"]","export const cilGlobeAlt = [\"512 512\",\"\"]","export const cilGrid = [\"512 512\",\"\"]","export const cilFile = [\"512 512\",\"\"]","export const cilFullscreen = [\"512 512\",\"\"]","export const cilFullscreenExit = [\"512 512\",\"\"]","export const cilGraph = [\"512 512\",\"\"]","export const cilHome = [\"512 512\",\"\"]","export const cilInbox = [\"512 512\",\"\"]","export const cilIndentDecrease = [\"512 512\",\"\"]","export const cilIndentIncrease = [\"512 512\",\"\"]","export const cilInputPower = [\"512 512\",\"\"]","export const cilItalic = [\"512 512\",\"\"]","export const cilJustifyCenter = [\"512 512\",\"\"]","export const cilJustifyLeft = [\"512 512\",\"\"]","export const cilLaptop = [\"512 512\",\"\"]","export const cilLayers = [\"512 512\",\"\"]","export const cilLightbulb = [\"512 512\",\"\"]","export const cilList = [\"512 512\",\"\"]","export const cilListNumbered = [\"512 512\",\"\"]","export const cilListRich = [\"512 512\",\"\"]","export const cilLocationPin = [\"512 512\",\"\"]","export const cilLockLocked = [\"512 512\",\"\"]","export const cilMagnifyingGlass = [\"512 512\",\"\"]","export const cilMap = [\"512 512\",\"\"]","export const cilMoon = [\"512 512\",\"\"]","export const cilNotes = [\"512 512\",\"\"]","export const cilOptions = [\"512 512\",\"\"]","export const cilPaperclip = [\"512 512\",\"\"]","export const cilPaperPlane = [\"512 512\",\"\"]","export const cilPencil = [\"512 512\",\"\"]","export const cilPeople = [\"512 512\",\"\"]","export const cilPhone = [\"512 512\",\"\"]","export const cilPrint = [\"512 512\",\"\"]","export const cilPowerStandby = [\"512 512\",\"\"]","export const cilPuzzle = [\"512 512\",\"\"]","export const cilSave = [\"512 512\",\"\"]","export const cilScrubber = [\"512 512\",\"\"]","export const cilSettings = [\"512 512\",\"\"]","export const cilShare = [\"512 512\",\"\"]","export const cilShareAll = [\"512 512\",\"\"]","export const cilShareBoxed = [\"512 512\",\"\"]","export const cilShieldAlt = [\"512 512\",\"\"]","export const cilSpeech = [\"512 512\",\"\"]","export const cilSpeedometer = [\"512 512\",\"\"]","export const cilSpreadsheet = [\"512 512\",\"\"]","export const cilStar = [\"512 512\",\"\"]","export const cilSun = [\"512 512\",\"\"]","export const cilTags = [\"512 512\",\"\"]","export const cilTask = [\"512 512\",\"\"]","export const cilTrash = [\"512 512\",\"\"]","export const cilUnderline = [\"512 512\",\"\"]","export const cilUser = [\"512 512\",\"\"]","export const cilUserFemale = [\"512 512\",\"\"]","export const cilUserFollow = [\"512 512\",\"\"]","export const cilUserUnfollow = [\"512 512\",\"\"]","export const cilX = [\"512 512\",\"\"]","export const cilXCircle = [\"512 512\",\"\"]","export const cilWarning = [\"512 512\",\"\"]","export const cilPlus = [\"512 512\",\"\"]","export const cilNewspaper = [\"512 512\",\"\"]","export const cilChevronRight = [\"512 512\",\"\"]","export const cifUs = [\"300 159\",\"\"]","export const cifBr = [\"301 211\",\"\"]","export const cifIn = [\"301 201\",\"\"]","export const cifFr = [\"301 201\",\"\"]","export const cifEs = [\"301 201\",\"\"]","export const cifPl = [\"301 189\",\"\"]","export const cibSkype = [\"32 32\",\"\"]","export const cibFacebook = [\"32 32\",\"\"]","export const cibTwitter = [\"32 32\",\"\"]","export const cibLinkedin = [\"32 32\",\"\"]","export const cibFlickr = [\"32 32\",\"\"]","export const cibTumblr = [\"32 32\",\"\"]","export const cibXing = [\"32 32\",\"\"]","export const cibGithub = [\"32 32\",\"\"]","export const cibStackoverflow = [\"32 32\",\"\"]","export const cibYoutube = [\"32 32\",\"\"]","export const cibDribbble = [\"32 32\",\"\"]","export const cibInstagram = [\"32 32\",\"\"]","export const cibPinterest = [\"32 32\",\"\"]","export const cibVk = [\"32 32\",\"\"]","export const cibYahoo = [\"32 32\",\"\"]","export const cibBehance = [\"32 32\",\"\"]","export const cibReddit = [\"32 32\",\"\"]","export const cibVimeo = [\"32 32\",\"\"]","export const cibCcMastercard = [\"32 32\",\"\"]","export const cibCcVisa = [\"32 32\",\"\"]","export const cibStripe = [\"32 32\",\"\"]","export const cibPaypal = [\"32 32\",\"\"]","export const cibGooglePay = [\"32 32\",\"\"]","export const cibCcAmex = [\"32 32\",\"\"]","import 'react-app-polyfill/ie11' // For IE 11 support\r\nimport 'react-app-polyfill/stable'\r\nimport 'core-js'\r\nimport './polyfill'\r\nimport React from 'react'\r\nimport ReactDOM from 'react-dom'\r\nimport App from './App'\r\n\r\nimport { icons } from './assets/icons'\r\nReact.icons = icons\r\n\r\nReactDOM.render(, document.getElementById('root'))\r\n"],"names":["location","useLocation","ReactGA","process","useEffect","hitType","page","pathname","search","title","getBase64","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","file","wrap","_context","prev","next","abrupt","Promise","resolve","baseURL","reader","FileReader","readAsDataURL","onload","result","stop","_x","apply","arguments","validateEmail","email","test","AtencionVirtualContext","createContext","AuthContext","LOGIN_REQUEST","LOGIN_SUCCESS","LOGIN_ERROR","SHOW_ERROR","HIDE_ERROR","LOGOUT","SET_ROUTES_SUCCESS","SET_NAVS_SUCCESS","Sistemas","PublicidadPropaganda","SeguridadHigiene","CommonContext","DeclaracionJuradaSEHContext","DeclaracionJuradaContext","FacturacionSEHContext","FacturacionContext","UserContext","window","CustomEvent","event","params","bubbles","cancelable","detail","undefined","evt","document","createEvent","initCustomEvent","prototype","Event","Element","matches","msMatchesSelector","webkitMatchesSelector","closest","s","el","this","call","parentElement","parentNode","nodeType","cilArrowTop","cilBan","rawAsap","task","queue","length","requestFlush","module","exports","index","flush","currentIndex","scan","newLength","scope","global","self","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","makeRequestCallFromTimer","callback","timeoutHandle","setTimeout","handleTimer","intervalHandle","setInterval","clearTimeout","clearInterval","toggle","observer","node","createTextNode","observe","characterData","data","makeRequestCallFromMutationObserver","utils","require","settle","cookies","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","config","reject","requestData","requestHeaders","headers","responseType","isFormData","request","XMLHttpRequest","auth","username","password","unescape","encodeURIComponent","Authorization","btoa","fullPath","url","onloadend","responseHeaders","getAllResponseHeaders","response","responseText","status","statusText","open","method","toUpperCase","paramsSerializer","timeout","onreadystatechange","readyState","responseURL","indexOf","onabort","onerror","ontimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","isStandardBrowserEnv","xsrfValue","withCredentials","xsrfCookieName","read","xsrfHeaderName","forEach","val","key","toLowerCase","setRequestHeader","isUndefined","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","then","cancel","abort","send","bind","Axios","mergeConfig","createInstance","defaultConfig","context","instance","extend","axios","create","instanceConfig","defaults","Cancel","CancelToken","isCancel","all","promises","spread","isAxiosError","message","toString","__CANCEL__","executor","TypeError","resolvePromise","token","reason","throwIfRequested","source","c","value","InterceptorManager","dispatchRequest","validator","validators","interceptors","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","requestInterceptorChain","synchronousRequestInterceptors","interceptor","runWhen","synchronous","unshift","fulfilled","rejected","responseInterceptorChain","push","chain","Array","concat","shift","newConfig","onFulfilled","onRejected","error","getUri","replace","handlers","use","options","eject","id","fn","h","isAbsoluteURL","combineURLs","requestedURL","enhanceError","code","Error","transformData","throwIfCancellationRequested","transformRequest","merge","common","adapter","transformResponse","toJSON","name","description","number","fileName","lineNumber","columnNumber","stack","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","directMergeKeys","getMergedValue","target","isPlainObject","isArray","slice","mergeDeepProperties","prop","axiosKeys","otherKeys","Object","keys","filter","validateStatus","fns","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","getDefaultAdapter","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","isObject","rawValue","parser","encoder","isString","JSON","parse","trim","e","stringify","stringifySafely","strictJSONParsing","maxContentLength","maxBodyLength","thisArg","args","i","encode","serializedParams","parts","v","isDate","toISOString","join","hashmarkIndex","relativeURL","write","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","match","RegExp","decodeURIComponent","remove","now","payload","originURL","msie","navigator","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","hash","hostname","port","charAt","requestURL","parsed","normalizedName","ignoreDuplicateOf","split","line","substr","arr","pkg","type","thing","deprecatedWarnings","currentVerArr","version","isOlderVersion","thanVersion","pkgVersionArr","destVer","isDeprecated","formatMessage","opt","desc","opts","console","warn","schema","allowUnknown","getPrototypeOf","isFunction","obj","l","hasOwnProperty","constructor","FormData","ArrayBuffer","isView","pipe","URLSearchParams","product","assignValue","a","b","str","stripBOM","content","charCodeAt","hasOwn","classNames","classes","arg","argType","inner","includes","default","isCallable","tryToString","$TypeError","argument","isConstructor","has","it","$String","String","wellKnownSymbol","defineProperty","UNSCOPABLES","ArrayPrototype","configurable","S","unicode","isPrototypeOf","Prototype","DataView","fails","isExtensible","NAME","Constructor","NATIVE_ARRAY_BUFFER","DESCRIPTORS","classof","createNonEnumerableProperty","defineBuiltIn","defineBuiltInAccessor","setPrototypeOf","uid","InternalStateModule","enforceInternalState","enforce","getInternalState","get","Int8Array","Int8ArrayPrototype","Uint8ClampedArray","Uint8ClampedArrayPrototype","TypedArray","TypedArrayPrototype","ObjectPrototype","TO_STRING_TAG","TYPED_ARRAY_TAG","TYPED_ARRAY_CONSTRUCTOR","NATIVE_ARRAY_BUFFER_VIEWS","opera","TYPED_ARRAY_TAG_REQUIRED","TypedArrayConstructorsList","Uint8Array","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigIntArrayConstructorsList","BigInt64Array","BigUint64Array","isTypedArray","klass","Function","aTypedArray","aTypedArrayConstructor","C","exportTypedArrayMethod","KEY","property","forced","ARRAY","TypedArrayConstructor","error2","exportTypedArrayStaticMethod","getTypedArrayConstructor","proto","state","uncurryThis","FunctionName","defineBuiltIns","anInstance","toIntegerOrInfinity","toLength","toIndex","IEEE754","getOwnPropertyNames","arrayFill","arraySlice","setToStringTag","PROPER_FUNCTION_NAME","PROPER","CONFIGURABLE_FUNCTION_NAME","CONFIGURABLE","ARRAY_BUFFER","DATA_VIEW","PROTOTYPE","WRONG_INDEX","getInternalArrayBufferState","getterFor","getInternalDataViewState","setInternalState","set","NativeArrayBuffer","$ArrayBuffer","ArrayBufferPrototype","$DataView","DataViewPrototype","RangeError","fill","reverse","packIEEE754","pack","unpackIEEE754","unpack","packInt8","packInt16","packInt32","unpackInt32","packFloat32","packFloat64","addGetter","view","count","isLittleEndian","intIndex","store","byteLength","bytes","start","byteOffset","conversion","INCORRECT_ARRAY_BUFFER_NAME","NaN","j","testView","$setInt8","setInt8","getInt8","setUint8","unsafe","detached","bufferState","bufferLength","offset","getUint8","getInt16","getUint16","getInt32","getUint32","getFloat32","getFloat64","setInt16","setUint16","setInt32","setUint32","setFloat32","setFloat64","toObject","toAbsoluteIndex","lengthOfArrayLike","deletePropertyOrThrow","min","Math","copyWithin","O","len","to","from","end","inc","argumentsLength","endPos","$forEach","STRICT_METHOD","arrayMethodIsStrict","callbackfn","list","callWithSafeIterationClosing","isArrayIteratorMethod","createProperty","getIterator","getIteratorMethod","$Array","arrayLike","IS_CONSTRUCTOR","mapfn","mapping","step","iterator","iteratorMethod","done","toIndexedObject","createMethod","IS_INCLUDES","$this","fromIndex","IndexedObject","arraySpeciesCreate","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","that","specificCreate","boundFunction","map","some","every","find","findIndex","filterReject","$lastIndexOf","lastIndexOf","NEGATIVE_ZERO","FORCED","searchElement","V8_VERSION","SPECIES","METHOD_NAME","array","foo","Boolean","aCallable","IS_RIGHT","memo","left","right","getOwnPropertyDescriptor","SILENT_ON_NON_WRITABLE_LENGTH_SET","writable","max","k","fin","n","floor","insertionSort","comparefn","element","llength","rlength","lindex","rindex","mergeSort","middle","originalArray","arraySpeciesConstructor","isNullOrUndefined","MapHelpers","iterate","Map","mapHas","mapSet","resolver","item","resolverFunction","anObject","iteratorClose","ENTRIES","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","stringSlice","TO_STRING_TAG_SUPPORT","classofRaw","$Object","CORRECT_ARGUMENTS","tag","tryGet","callee","aConstructor","mapFn","nextItem","defineIterator","createIterResultObject","setSpecies","fastKey","internalStateGetterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","iterable","first","last","size","AS_ENTRIES","define","previous","entry","getEntry","removed","clear","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","getWeakData","ArrayIterationModule","splice","uncaughtFrozenStore","frozen","UncaughtFrozenStore","entries","findUncaughtFrozen","$","isForced","InternalMetadataModule","checkCorrectnessOfIteration","inheritIfRequired","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","uncurriedNativeMethod","enable","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","getBuiltIn","WeakMap","Node","symbol","primitives","objectsByIndex","initializer","IS_OBJECT","root","active","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","exceptions","f","MATCH","regexp","error1","F","createPropertyDescriptor","bitmap","enumerable","toPropertyKey","propertyKey","ordinaryToPrimitive","hint","makeBuiltIn","descriptor","getter","setter","defineGlobalProperty","simple","nonConfigurable","nonWritable","src","P","documentAll","IS_HTMLDDA","EXISTS","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","classList","documentCreateElement","DOMTokenListPrototype","firefox","IS_DENO","IS_NODE","Bun","Deno","UA","Pebble","versions","v8","webkit","$Error","TEST","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","dropEntries","prepareStackTrace","clearErrorStack","ERROR_STACK_INSTALLABLE","captureStackTrace","copyConstructorProperties","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","sham","regexpExec","RegExpPrototype","SHAM","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","re","flags","uncurriedNativeRegExpMethod","methods","nativeMethod","arg2","forceStringMethod","$exec","doesNotExceedSafeInteger","flattenIntoArray","original","sourceLen","depth","mapper","targetIndex","sourceIndex","preventExtensions","NATIVE_BIND","FunctionPrototype","Reflect","$Function","factories","partArgs","argsLength","construct","getDescriptor","uncurryThisWithBind","namespace","getMethod","Iterators","usingIterator","replacer","rawLength","keysLength","V","func","SetRecord","numSize","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","position","captures","namedCaptures","replacement","tailPos","m","symbols","ch","capture","check","globalThis","abs","pow","log","LN2","mantissaLength","exponent","mantissa","exponentLength","eMax","eBias","rt","sign","Infinity","nBits","propertyIsEnumerable","Wrapper","NewTarget","NewTargetPrototype","functionToString","inspectSource","cause","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","FREEZING","REQUIRED","METADATA","setMetadata","objectID","weakData","meta","onFreeze","NATIVE_WEAK_MAP","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","metadata","facade","STATE","$documentAll","noop","empty","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","feature","detection","normalize","POLYFILL","NATIVE","string","Number","isInteger","isFinite","isRegExp","USE_SYMBOL_AS_UID","$Symbol","$next","Result","stopped","ResultPrototype","unboundFunction","iterFn","IS_RECORD","IS_ITERATOR","INTERRUPTED","condition","callFn","innerResult","innerError","IteratorPrototype","returnThis","IteratorConstructor","ENUMERABLE_NEXT","IS_PURE","createIteratorConstructor","IteratorsCore","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","CurrentIteratorPrototype","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","PrototypeOfArrayIteratorPrototype","arrayIterator","CONFIGURABLE_LENGTH","TEMPLATE","arity","MapPrototype","iterateSimple","interruptible","$expm1","expm1","exp","x","EPSILON","EPSILON32","MAX32","MIN32","fround","$abs","$sign","roundTiesToEven","LOG10E","log10","log1p","scale","inLow","inHigh","outLow","outHigh","nx","nInLow","nInHigh","nOutLow","nOutHigh","ceil","trunc","notify","macrotask","Queue","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","queueMicrotaskDescriptor","microtask","parent","exit","head","enter","nextTick","PromiseCapability","$$resolve","$$reject","$default","globalIsFinite","whitespaces","$parseFloat","parseFloat","Symbol","trimmedString","$parseInt","parseInt","hex","radix","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","$assign","assign","A","B","alphabet","chr","T","getOwnPropertySymbols","activeXDocument","definePropertiesModule","enumBugKeys","html","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","LT","NullProtoObjectViaActiveX","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","style","display","appendChild","contentWindow","NullProtoObjectViaIFrame","Properties","V8_PROTOTYPE_DEFINE_BUG","defineProperties","props","IE8_DOM_DEFINE","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","$getOwnPropertyNames","windowNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ARRAY_BUFFER_NON_EXTENSIBLE","$isExtensible","FAILS_ON_PRIMITIVES","names","$propertyIsEnumerable","NASHORN_BUG","WEBKIT","random","__defineSetter__","uncurryThisAccessor","aPossiblePrototype","CORRECT_SETTER","__proto__","TO_ENTRIES","$$OBSERVABLE","NativeObservable","Observable","NativeObservablePrototype","of","subscribe","input","pref","valueOf","NativePromiseConstructor","IS_BROWSER","NativePromisePrototype","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","CONSTRUCTOR","REJECTION_EVENT","newPromiseCapability","promiseCapability","Target","Source","tail","getOrCreateMetadataMap","targetKey","targetMetadata","keyMetadata","getMap","MetadataKey","metadataMap","MetadataValue","_","toKey","R","regexpFlags","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","re1","re2","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","reCopy","group","raw","groups","sticky","charsAdded","strCopy","multiline","hasIndices","ignoreCase","dotAll","unicodeSets","regExpFlags","$RegExp","MISSED_STICKY","y","is","ENGINE_IS_BUN","USER_AGENT","validateArgumentsLength","WRAP","scheduler","hasTimeArg","firstParamIndex","handler","boundArgs","SetHelpers","Set","aSet","clone","getSetRecord","iterateSet","other","otherRec","SetPrototype","keysIter","TAG","SHARED","mode","copyright","license","defaultConstructor","requireObjectCoercible","CONVERT_TO_STRING","pos","second","codeAt","$repeat","repeat","IS_END","maxLength","fillString","fillLen","stringFiller","intMaxLength","stringLength","fillStr","maxInt","regexNonASCII","regexSeparators","OVERFLOW_ERROR","$RangeError","fromCharCode","digitToBasic","digit","adapt","delta","numPoints","firstTime","baseMinusTMin","base","output","counter","extra","ucs2decode","currentValue","inputLength","bias","basicLength","handledCPCount","handledCPCountPlusOne","q","t","qMinusT","baseMinusT","label","encoded","labels","$trimEnd","forcedStringTrimMethod","trimEnd","$trimStart","trimStart","ltrim","rtrim","SymbolPrototype","TO_PRIMITIVE","NATIVE_SYMBOL","keyFor","$location","defer","channel","setImmediate","clearImmediate","Dispatch","MessageChannel","ONREADYSTATECHANGE","run","runner","eventListener","globalPostMessageDefer","postMessage","port2","port1","onmessage","importScripts","removeChild","integer","toPrimitive","prim","BigInt","toPositiveInteger","BYTES","isSymbol","exoticToPrim","isIterable","isSetLike","TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS","ArrayBufferViewCore","ArrayBufferModule","isIntegralNumber","toOffset","typedArrayFrom","nativeDefineProperty","nativeGetOwnPropertyDescriptor","round","BYTES_PER_ELEMENT","WRONG_LENGTH","fromList","isTypedArrayIndex","wrappedGetOwnPropertyDescriptor","wrappedDefineProperty","CLAMPED","GETTER","SETTER","NativeTypedArrayConstructor","TypedArrayConstructorPrototype","addElement","typedArrayOffset","$length","$len","arrayFromConstructorAndList","typedArraySpeciesConstructor","isBigIntArray","toBigInt","thisIsBigIntArray","speciesConstructor","postfix","URL","searchParams","sort","passed","required","WeakMapPrototype","WeakSetPrototype","WeakSet","wrappedWellKnownSymbolModule","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","installErrorCause","installErrorStack","normalizeStringArgument","$AggregateError","errors","isInstance","AggregateErrorPrototype","errorsArray","AggregateError","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","IS_CONCAT_SPREADABLE_SUPPORT","isConcatSpreadable","spreadable","E","addToUnscopables","$filter","$findIndex","FIND_INDEX","SKIPS_HOLES","$find","FIND","flatMap","flat","depthArg","$includes","$indexOf","nativeIndexOf","ARRAY_ITERATOR","Arguments","$map","$reduceRight","CHROME_VERSION","reduceRight","$reduce","reduce","nativeSlice","HAS_SPECIES_SUPPORT","internalSort","FF","IE_OR_EDGE","V8","nativeSort","FAILS_ON_UNDEFINED","FAILS_ON_NULL","STABLE_SORT","itemsLength","items","arrayLength","getSortCompare","setArrayLength","deleteCount","insertCount","actualDeleteCount","actualStart","dateToPrimitive","DatePrototype","HAS_INSTANCE","getReplacerFunction","$stringify","numberToString","tester","low","hi","WRONG_SYMBOLS_CONVERSION","ILL_FORMED_UNICODE","stringifyWithSymbolsFix","$replacer","fixIllFormed","space","collection","init","$acosh","acosh","sqrt","MAX_VALUE","$asinh","asinh","$atanh","atanh","cbrt","LOG2E","clz32","$cosh","cosh","$hypot","hypot","value1","value2","div","sum","aLen","larg","log2","sinh","tanh","thisNumberValue","NUMBER","NativeNumber","PureNumberNamespace","NumberPrototype","toNumber","third","maxCode","digits","NumberWrapper","primValue","toNumeric","isSafeInteger","MAX_SAFE_INTEGER","MIN_SAFE_INTEGER","__defineGetter__","$entries","$freeze","freeze","fromEntries","getOwnPropertyDescriptors","$getOwnPropertySymbols","nativeGetPrototypeOf","$isFrozen","isFrozen","$isSealed","isSealed","nativeKeys","__lookupGetter__","__lookupSetter__","$preventExtensions","$seal","seal","$values","newPromiseCapabilityModule","perform","allSettled","capability","promiseResolve","remaining","alreadyCalled","$promiseResolve","PROMISE_STATICS_INCORRECT_ITERATION","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","real","Internal","OwnPromiseCapability","nativeThen","hostReportErrors","PromiseConstructorDetection","PROMISE","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","PromiseConstructor","PromisePrototype","newGenericPromiseCapability","DISPATCH_EVENT","dispatchEvent","UNHANDLED_REJECTION","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","PromiseWrapper","onFinally","race","r","PromiseConstructorWrapper","CHECK_WRAPPER","functionApply","thisArgument","argumentsList","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","newTarget","$args","attributes","deleteProperty","objectGetPrototypeOf","isDataDescriptor","receiver","objectPreventExtensions","objectSetPrototypeOf","existingDescriptor","ownDescriptor","getRegExpFlags","proxyAccessor","NativeRegExp","SyntaxError","stringIndexOf","IS_NCG","CORRECT_NEW","BASE_FORCED","RegExpWrapper","pattern","rawFlags","handled","thisIsRegExp","patternIsRegExp","flagsAreUndefined","rawPattern","named","brackets","ncg","groupid","groupname","handleNCG","handleDotAll","INDICES_SUPPORT","calls","expected","pairs","$toString","TO_STRING","nativeToString","NOT_GENERIC","INCORRECT_NAME","codePointAt","notARegExp","correctIsRegExpLogic","nativeEndsWith","endsWith","CORRECT_IS_REGEXP_LOGIC","searchString","endPosition","$fromCodePoint","fromCodePoint","elements","STRING_ITERATOR","point","advanceStringIndex","regExpExec","MATCH_ALL","REGEXP_STRING","REGEXP_STRING_ITERATOR","nativeMatchAll","matchAll","WORKS_WITH_NON_GLOBAL_REGEX","$RegExpStringIterator","$global","fullUnicode","$matchAll","matcher","rx","fixRegExpWellKnownSymbolLogic","nativeMatch","maybeCallNative","res","matchStr","$padEnd","padEnd","$padStart","padStart","template","rawTemplate","literalSegments","getSubstitution","REPLACE","searchValue","replaceAll","replaceValue","IS_REG_EXP","functionalReplace","searchLength","advanceBy","endOfLastMatch","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","UNSAFE_SUBSTITUTE","results","accumulatedResult","nextSourcePosition","replacerArgs","sameValue","SEARCH","nativeSearch","searcher","previousLastIndex","callRegExpExec","MAX_UINT32","$push","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","SPLIT","nativeSplit","internalSplit","separator","limit","lim","lastLength","lastLastIndex","separatorCopy","splitter","unicodeMatching","p","z","nativeStartsWith","startsWith","trimLeft","trimRight","$trim","defineWellKnownSymbol","nativeObjectCreate","getOwnPropertyNamesExternal","defineSymbolToPrimitive","HIDDEN","QObject","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","$defineProperties","properties","IS_OBJECT_PROTOTYPE","useSetter","useSimple","NativeSymbol","EmptyStringDescriptionStore","SymbolWrapper","thisSymbolValue","symbolDescriptiveString","NATIVE_SYMBOL_REGISTRY","StringToSymbolRegistry","SymbolToStringRegistry","sym","u$ArrayCopyWithin","$every","$fill","actualValue","fromSpeciesAndList","predicate","createTypedArrayConstructor","ArrayIterators","arrayValues","arrayKeys","arrayEntries","GENERIC","ITERATOR_IS_VALUES","typedArrayValues","$join","$set","WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS","TO_OBJECT_BUG","$some","ACCEPT_INCORRECT_ARGUMENTS","mod","$toLocaleString","toLocaleString","TO_LOCALE_STRING_BUG","Uint8ArrayPrototype","arrayToString","IS_NOT_ARRAY_METHOD","InternalWeakMap","collectionWeak","FROZEN","SEALED","IS_IE11","$WeakMap","nativeSet","nativeDelete","nativeHas","nativeGet","frozenArray","arrayIntegrityLevel","getCompositeKeyNode","compositeKey","compositeSymbol","aMap","deleteAll","wasDeleted","allDeleted","newMap","findKey","groupBy","keyDerivative","derivedKey","sameValueZero","keyBy","keyOf","mapKeys","mapValues","noInitial","accumulator","update","isPresentInMap","clamp","lower","upper","DEG_PER_RAD","PI","RAD_PER_DEG","degrees","radians","fscale","iaddh","x0","x1","y0","y1","$x0","$y0","imulh","u","UINT16","$u","$v","u0","v0","u1","v1","isubh","numberIsFinite","SEEDED_RANDOM","SEEDED_RANDOM_GENERATOR","$SeededRandomGenerator","seed","seededPRNG","signbit","umulh","INVALID_NUMBER_REPRESENTATION","$SyntaxError","valid","fromString","mathNum","OBSERVABLE_FORCED","OBSERVABLE","SUBSCRIPTION","SUBSCRIPTION_OBSERVER","getObservableInternalState","getSubscriptionInternalState","getSubscriptionObserverInternalState","SubscriptionState","cleanup","subscriptionObserver","clean","subscription","closed","isClosed","Subscription","subscriber","subscriptionState","SubscriptionObserver","unsubscribe","nextMethod","errorMethod","err","complete","completeMethod","$Observable","ObservablePrototype","observableMethod","observable","ReflectMetadataModule","toMetadataKey","ordinaryDefineOwnMetadata","defineMetadata","metadataKey","metadataValue","deleteMetadata","arrayUniqueBy","ordinaryOwnMetadataKeys","ordinaryMetadataKeys","oKeys","pKeys","getMetadataKeys","ordinaryHasOwnMetadata","ordinaryGetOwnMetadata","ordinaryGetMetadata","getMetadata","getOwnMetadataKeys","getOwnMetadata","ordinaryHasMetadata","hasMetadata","hasOwnMetadata","addAll","toSetLike","$difference","difference","newSet","$intersection","intersection","$isDisjointFrom","isDisjointFrom","$isSubsetOf","isSubsetOf","$isSupersetOf","isSupersetOf","arrayJoin","sep","$symmetricDifference","symmetricDifference","$union","union","at","relativeIndex","StringMultibyteModule","$StringIterator","codePoint","codePoints","aWeakMap","aWeakSet","DOMIterables","handlePrototype","CollectionPrototype","COLLECTION_NAME","ArrayIteratorMethods","ArrayValues","queueMicrotask","setTask","schedulersFix","USE_NATIVE_URL","arraySort","URL_SEARCH_PARAMS","URL_SEARCH_PARAMS_ITERATOR","getInternalParamsState","safeGetBuiltIn","nativeFetch","NativeRequest","Headers","RequestPrototype","HeadersPrototype","plus","sequences","percentSequence","percentDecode","sequence","deserialize","replacements","serialize","URLSearchParamsIterator","URLSearchParamsState","parseObject","parseQuery","bindURL","entryIterator","entryNext","query","attribute","updateURL","URLSearchParamsConstructor","URLSearchParamsPrototype","append","getAll","found","headersHas","headersSet","wrapRequestOptions","body","fetch","RequestConstructor","Request","getState","EOF","arrayFrom","toASCII","URLSearchParamsModule","getInternalURLState","getInternalSearchParamsState","NativeURL","pop","INVALID_SCHEME","INVALID_HOST","INVALID_PORT","ALPHA","ALPHANUMERIC","DIGIT","HEX_START","OCT","DEC","HEX","FORBIDDEN_HOST_CODE_POINT","FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT","LEADING_C0_CONTROL_OR_SPACE","TRAILING_C0_CONTROL_OR_SPACE","TAB_AND_NEW_LINE","serializeHost","compress","ignore0","ipv6","maxIndex","currStart","currLength","findLongestZeroSequence","C0ControlPercentEncodeSet","fragmentPercentEncodeSet","pathPercentEncodeSet","userinfoPercentEncodeSet","percentEncode","specialSchemes","ftp","http","https","ws","wss","isWindowsDriveLetter","normalized","startsWithWindowsDriveLetter","isSingleDot","segment","SCHEME_START","SCHEME","NO_SCHEME","SPECIAL_RELATIVE_OR_AUTHORITY","PATH_OR_AUTHORITY","RELATIVE","RELATIVE_SLASH","SPECIAL_AUTHORITY_SLASHES","SPECIAL_AUTHORITY_IGNORE_SLASHES","AUTHORITY","HOST","HOSTNAME","PORT","FILE","FILE_SLASH","FILE_HOST","PATH_START","PATH","CANNOT_BE_A_BASE_URL_PATH","QUERY","FRAGMENT","URLState","isBase","baseState","failure","urlString","stateOverride","bufferCodePoints","pointer","seenAt","seenBracket","seenPasswordToken","scheme","fragment","cannotBeABaseURL","isSpecial","includesCredentials","encodedCodePoints","parseHost","shortenPath","numbersSeen","ipv4Piece","swaps","swap","address","pieceIndex","parseIPv6","partsLength","numbers","part","ipv4","parseIPv4","cannotHaveUsernamePasswordPort","pathSize","setHref","getOrigin","URLConstructor","origin","getProtocol","setProtocol","getUsername","setUsername","getPassword","setPassword","getHost","setHost","getHostname","setHostname","getPort","setPort","getPathname","setPathname","getSearch","setSearch","getSearchParams","getHash","setHash","URLPrototype","accessorDescriptor","nativeCreateObjectURL","createObjectURL","nativeRevokeObjectURL","revokeObjectURL","ReflectOwnKeys","ReflectApply","NumberIsNaN","isNaN","EventEmitter","once","emitter","errorListener","removeListener","eventTargetAgnosticAddListener","on","addErrorHandlerIfEventEmitter","_events","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","listener","_getMaxListeners","_addListener","prepend","events","existing","warning","newListener","warned","w","onceWrapper","fired","wrapFn","_onceWrap","wrapped","_listeners","evlistener","ret","unwrapListeners","arrayClone","listenerCount","copy","wrapListener","removeEventListener","setMaxListeners","getMaxListeners","doError","er","listeners","addListener","prependListener","prependOnceListener","originalListener","spliceOne","off","removeAllListeners","rawListeners","eventNames","isAbsolute","hasTrailingSlash","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","up","valueEqual","aValue","bValue","addLeadingSlash","stripLeadingSlash","stripBasename","prefix","hasBasename","stripTrailingSlash","createPath","createLocation","currentLocation","hashIndex","searchIndex","parsePath","_extends","decodeURI","URIError","resolvePathname","locationsAreEqual","createTransitionManager","prompt","setPrompt","nextPrompt","confirmTransitionTo","action","getUserConfirmation","appendListener","isActive","notifyListeners","_len","_key","canUseDOM","getConfirmation","confirm","PopStateEvent","HashChangeEvent","getHistoryState","history","createBrowserHistory","invariant","globalHistory","canUseHistory","ua","supportsHistory","needsHashChangeListener","_props","_props$forceRefresh","forceRefresh","_props$getUserConfirm","_props$keyLength","keyLength","basename","getDOMLocation","historyState","_window$location","createKey","transitionManager","setState","nextState","handlePopState","isExtraneousPopstateEvent","handlePop","handleHashChange","forceNextPop","fromLocation","toLocation","allKeys","go","revertPop","initialLocation","createHref","checkDOMListeners","isBlocked","pushState","prevIndex","nextKeys","replaceState","goBack","goForward","block","unblock","listen","unlisten","HashChangeEvent$1","HashPathCoders","hashbang","encodePath","decodePath","noslash","slash","stripHash","getHashPath","substring","replaceHashPath","createHashHistory","_props$hashType","hashType","_HashPathCoders$hashT","ignorePath","encodedPath","prevLocation","allPaths","baseTag","querySelector","getAttribute","pushHashPath","nextPaths","lowerBound","upperBound","createMemoryHistory","_props$initialEntries","initialEntries","_props$initialIndex","initialIndex","nextIndex","nextEntries","canGo","reactIs","REACT_STATICS","childContextTypes","contextType","contextTypes","defaultProps","displayName","getDefaultProps","getDerivedStateFromError","getDerivedStateFromProps","mixins","propTypes","KNOWN_STATICS","caller","MEMO_STATICS","compare","TYPE_STATICS","getStatics","component","isMemo","ForwardRef","render","Memo","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","for","d","g","$$typeof","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Fragment","Lazy","Portal","Profiler","StrictMode","Suspense","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","isValidElementType","typeOf","hookCallback","hooks","setHookCallback","hasOwnProp","isObjectEmpty","arrLen","createUTC","format","locale","strict","createLocalOrUTC","utc","defaultParsingFlags","unusedTokens","unusedInput","overflow","charsLeftOver","nullInput","invalidEra","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","era","meridiem","rfc2822","weekdayMismatch","getParsingFlags","_pf","isValid","parsedParts","isNowValid","_d","getTime","invalidWeekday","_strict","bigHour","_isValid","createInvalid","fun","momentProperties","updateInProgress","copyConfig","momentPropertiesLen","_isAMomentObject","_i","_f","_l","_tzm","_isUTC","_offset","_locale","Moment","updateOffset","isMoment","msg","suppressDeprecationWarnings","deprecate","deprecationHandler","argLen","deprecations","deprecateSimple","_config","_dayOfMonthOrdinalParseLenient","_dayOfMonthOrdinalParse","_ordinalParse","mergeConfigs","parentConfig","childConfig","Locale","defaultCalendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","calendar","mom","_calendar","zeroFill","targetLength","forceSign","absNumber","zerosToFill","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","padded","ordinal","localeData","removeFormattingTokens","makeFormatFunction","formatMoment","expandFormat","invalidDate","replaceLongDateFormatTokens","longDateFormat","defaultLongDateFormat","LTS","L","LL","LLL","LLLL","_longDateFormat","formatUpper","tok","defaultInvalidDate","_invalidDate","defaultOrdinal","defaultDayOfMonthOrdinalParse","_ordinal","defaultRelativeTime","future","past","ss","mm","hh","dd","ww","M","MM","yy","relativeTime","withoutSuffix","isFuture","_relativeTime","pastFuture","diff","aliases","D","dates","date","days","day","weekdays","weekday","isoweekdays","isoweekday","DDD","dayofyears","dayofyear","hours","hour","ms","milliseconds","millisecond","minutes","minute","months","month","Q","quarters","quarter","seconds","gg","weekyears","weekyear","GG","isoweekyears","isoweekyear","weeks","week","W","isoweeks","isoweek","years","year","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","priorities","isoWeekday","dayOfYear","weekYear","isoWeekYear","isoWeek","getPrioritizedUnits","unitsObj","unit","priority","regexes","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchTimestamp","matchWord","match1to2NoLeadingZero","match1to2HasZero","addRegexToken","regex","strictRegex","isStrict","getParseRegexForToken","unescapeFormat","regexEscape","p1","p2","p3","p4","absFloor","toInt","argumentForCoercion","coercedNumber","tokens","addParseToken","tokenLen","addWeekParseToken","_w","addTimeToArrayFromToken","_a","isLeapYear","YEAR","MONTH","DATE","HOUR","MINUTE","SECOND","MILLISECOND","WEEK","WEEKDAY","daysInYear","parseTwoDigitYear","getSetYear","makeGetSet","getIsLeapYear","keepTime","set$1","isUTC","getUTCMilliseconds","getMilliseconds","getUTCSeconds","getSeconds","getUTCMinutes","getMinutes","getUTCHours","getHours","getUTCDate","getDate","getUTCDay","getDay","getUTCMonth","getMonth","getUTCFullYear","getFullYear","setUTCMilliseconds","setMilliseconds","setUTCSeconds","setSeconds","setUTCMinutes","setMinutes","setUTCHours","setHours","setUTCDate","setDate","setUTCFullYear","setFullYear","stringGet","stringSet","prioritized","prioritizedLen","daysInMonth","modMonth","o","monthsShort","monthsShortRegex","monthsRegex","monthsParse","defaultLocaleMonths","defaultLocaleMonthsShort","MONTHS_IN_FORMAT","defaultMonthsShortRegex","defaultMonthsRegex","localeMonths","_months","isFormat","localeMonthsShort","_monthsShort","handleStrictParse","monthName","ii","llc","toLocaleLowerCase","_monthsParse","_longMonthsParse","_shortMonthsParse","localeMonthsParse","_monthsParseExact","setMonth","setUTCMonth","getSetMonth","getDaysInMonth","computeMonthsParse","_monthsShortStrictRegex","_monthsShortRegex","_monthsStrictRegex","_monthsRegex","cmpLenRev","shortP","longP","shortPieces","longPieces","mixedPieces","createDate","createUTCDate","UTC","firstWeekOffset","dow","doy","fwd","dayOfYearFromWeeks","resYear","resDayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","localeWeek","_week","defaultLocaleWeek","localeFirstDayOfWeek","localeFirstDayOfYear","getSetWeek","getSetISOWeek","parseWeekday","weekdaysParse","parseIsoWeekday","shiftWeekdays","weekdaysMin","weekdaysShort","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","localeWeekdays","_weekdays","localeWeekdaysShort","_weekdaysShort","localeWeekdaysMin","_weekdaysMin","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","localeWeekdaysParse","_weekdaysParseExact","_fullWeekdaysParse","getSetDayOfWeek","getSetLocaleDayOfWeek","getSetISODayOfWeek","computeWeekdaysParse","_weekdaysStrictRegex","_weekdaysRegex","_weekdaysShortStrictRegex","_weekdaysShortRegex","_weekdaysMinStrictRegex","_weekdaysMinRegex","minp","shortp","longp","minPieces","hFormat","kFormat","lowercase","matchMeridiem","_meridiemParse","localeIsPM","kInput","_isPm","isPM","_meridiem","pos1","pos2","defaultLocaleMeridiemParse","getSetHour","localeMeridiem","isLower","globalLocale","baseConfig","dayOfMonthOrdinalParse","meridiemParse","locales","localeFamilies","commonPrefix","arr1","arr2","minl","normalizeLocale","chooseLocale","loadLocale","isLocaleNameSane","oldLocale","_abbr","aliasedRequire","getSetGlobalLocale","getLocale","defineLocale","abbr","parentLocale","updateLocale","tmpLocale","listLocales","checkOverflow","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromISO","allowTime","dateFormat","timeFormat","tzFormat","isoDatesLen","isoTimesLen","configFromStringAndFormat","extractFromRFC2822Strings","yearStr","monthStr","dayStr","hourStr","minuteStr","secondStr","untruncateYear","preprocessRFC2822","checkWeekday","weekdayStr","parsedInput","calculateOffset","obsOffset","militaryOffset","numOffset","hm","configFromRFC2822","parsedArray","configFromString","createFromInputFallback","currentDateArray","nowValue","_useUTC","configFromArray","currentDate","expectedWeekday","yearToUse","dayOfYearFromWeekInfo","_dayOfYear","_nextDay","weekdayOverflow","curWeek","createLocal","ISO_8601","RFC_2822","skipped","totalParsedInputLength","meridiemFixWrap","erasConvertYear","isPm","meridiemHour","configFromStringAndArray","tempConfig","bestMoment","scoreToBeat","currentScore","validFormatFound","bestFormatIsValid","configfLen","score","configFromObject","dayOrDate","createFromConfig","prepareConfig","preparse","configFromInput","prototypeMin","prototypeMax","pickBy","moments","ordering","isDurationValid","unitHasDecimal","orderLen","isValid$1","createInvalid$1","createDuration","Duration","duration","_milliseconds","_days","_data","_bubble","isDuration","absRound","compareArrays","array1","array2","dontConvert","lengthDiff","diffs","utcOffset","offsetFromString","chunkOffset","cloneWithOffset","model","setTime","local","getDateOffset","getTimezoneOffset","getSetOffset","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","addSubtract","getSetZone","setOffsetToUTC","setOffsetToLocal","subtract","setOffsetToParsedOffset","tZone","hasAlignedHourOffset","isDaylightSavingTime","isDaylightSavingTimeShifted","_isDSTShifted","toArray","isLocal","isUtcOffset","isUtc","aspNetRegex","isoRegex","diffRes","parseIso","momentsDifference","inp","positiveMomentsDifference","isAfter","isBefore","createAdder","direction","period","tmp","isAdding","invalid","isMomentInput","isNumberOrStringArray","isMomentInputObject","objectTest","propertyTest","propertyLen","arrayTest","dataTypeTest","isCalendarSpec","getCalendarFormat","myMoment","calendar$1","time","formats","sod","startOf","calendarFormat","localInput","endOf","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","asFloat","zoneDelta","monthDiff","wholeMonthDiff","anchor","keepOffset","toDate","inspect","datetime","suffix","zone","inputString","defaultFormatUtc","defaultFormat","postformat","humanize","fromNow","toNow","newLocaleData","lang","MS_PER_SECOND","MS_PER_MINUTE","MS_PER_HOUR","MS_PER_400_YEARS","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","startOfDate","unix","isValid$2","parsingFlags","invalidAt","creationData","localeEras","eras","_eras","since","until","localeErasParse","eraName","narrow","localeErasConvertYear","dir","getEraName","getEraNarrow","getEraAbbr","getEraYear","erasNameRegex","computeErasParse","_erasNameRegex","_erasRegex","erasAbbrRegex","_erasAbbrRegex","erasNarrowRegex","_erasNarrowRegex","matchEraAbbr","matchEraName","matchEraNarrow","matchEraYearOrdinal","_eraYearOrdinalRegex","erasName","erasAbbr","erasNarrow","abbrPieces","namePieces","narrowPieces","addWeekYearFormatToken","getSetWeekYear","getSetWeekYearHelper","getSetISOWeekYear","getISOWeeksInYear","getISOWeeksInISOWeekYear","getWeeksInYear","weekInfo","getWeeksInWeekYear","weeksTarget","setWeekAll","dayOfYearData","getSetQuarter","erasParse","eraYearOrdinalParse","getSetDayOfMonth","getSetDayOfYear","getSetMinute","getSetMillisecond","getSetSecond","parseMs","getZoneAbbr","getZoneName","createUnix","createInZone","parseZone","preParsePostFormat","eraNarrow","eraAbbr","eraYear","isoWeeks","weeksInWeekYear","isoWeeksInYear","isoWeeksInISOWeekYear","isDST","zoneAbbr","zoneName","isDSTShifted","proto$1","get$1","field","listMonthsImpl","out","listWeekdaysImpl","localeSorted","listMonths","listMonthsShort","listWeekdays","listWeekdaysShort","listWeekdaysMin","firstDayOfYear","firstDayOfWeek","langData","mathAbs","addSubtract$1","add$1","subtract$1","absCeil","bubble","monthsFromDays","monthsToDays","daysToMonths","as","makeAs","alias","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","valueOf$1","clone$1","get$2","makeGetter","thresholds","substituteTimeAgo","relativeTime$1","posNegDuration","getSetRelativeTimeRounding","roundingFunction","getSetRelativeTimeThreshold","threshold","argWithSuffix","argThresholds","withSuffix","th","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","total","toFixed","proto$2","toIsoString","relativeTimeRounding","relativeTimeThreshold","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","TIME","TIME_SECONDS","TIME_MS","factory","propIsEnumerable","test1","test2","test3","letter","shouldUseNative","isarray","pathToRegexp","compile","tokensToFunction","tokensToRegExp","PATH_REGEXP","defaultDelimiter","delimiter","escaped","modifier","asterisk","partial","optional","escapeGroup","escapeString","encodeURIComponentPretty","encodeURI","pretty","attachKeys","sensitive","route","endsWithDelimiter","regexpToRegexp","arrayToRegexp","stringToRegexp","asap","LAST_ERROR","IS_ERROR","_y","_z","_A","doResolve","handle","deferred","_B","cb","ex","tryCallOne","handleResolved","newValue","getThen","finale","_C","Handler","tryCallTwo","_D","safeThen","TRUE","valuePromise","FALSE","NULL","UNDEFINED","ZERO","EMPTYSTRING","iterableToArray","onSettledFulfill","onSettledReject","mapAllSettled","getAggregateError","hasResolved","rejectionReasons","resolveOnce","rejectionCheck","DEFAULT_WHITELIST","ReferenceError","enabled","disable","matchWhitelist","cls","displayId","rejections","allRejections","whitelist","logged","logError","_E","onHandled","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","propFullName","secret","getShim","isRequired","ReactPropTypes","bigint","bool","arrayOf","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","aa","ba","ca","da","ea","fa","ha","ia","ja","ka","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","removeEmptyString","oa","pa","qa","ma","na","la","removeAttribute","setAttributeNS","xlinkHref","ra","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","sa","ta","wa","xa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ha","Ia","Ja","Ma","Ka","La","Na","Oa","Pa","Qa","_render","Ra","_payload","_init","Sa","Ta","nodeName","Va","_valueTracker","getValue","setValue","stopTracking","Ua","Wa","checked","Xa","activeElement","Ya","defaultChecked","defaultValue","_wrapperState","initialChecked","Za","initialValue","controlled","$a","ab","bb","ownerDocument","eb","children","Children","db","fb","selected","defaultSelected","disabled","gb","dangerouslySetInnerHTML","hb","ib","jb","textContent","kb","mathml","svg","lb","mb","nb","ob","namespaceURI","innerHTML","firstChild","MSApp","execUnsafeLocalFunction","pb","lastChild","nodeValue","qb","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","rb","sb","tb","setProperty","ub","menuitem","area","br","col","embed","hr","img","keygen","link","param","track","wbr","vb","wb","xb","srcElement","correspondingUseElement","yb","zb","Ab","Bb","Cb","stateNode","Db","Eb","Fb","Gb","Hb","Ib","Jb","Kb","Lb","Mb","Ob","Pb","Qb","Rb","onError","Sb","Tb","Ub","Vb","Wb","Xb","Zb","alternate","return","$b","memoizedState","dehydrated","ac","cc","child","sibling","bc","dc","ec","fc","gc","hc","ic","jc","kc","lc","mc","nc","oc","pc","qc","rc","blockedOn","domEventName","eventSystemFlags","nativeEvent","targetContainers","sc","delete","pointerId","tc","vc","wc","lanePriority","unstable_runWithPriority","hydrate","containerInfo","xc","yc","zc","Ac","Bc","unstable_scheduleCallback","unstable_NormalPriority","Cc","Dc","Ec","animationend","animationiteration","animationstart","transitionend","Fc","Gc","Hc","animation","transition","Ic","Jc","Kc","Lc","Mc","Nc","Oc","Pc","Qc","unstable_now","Rc","Uc","pendingLanes","expiredLanes","suspendedLanes","pingedLanes","Vc","entangledLanes","entanglements","Wc","Xc","Yc","Zc","$c","eventTimes","bd","cd","unstable_UserBlockingPriority","ed","fd","gd","hd","uc","jd","kd","ld","md","nd","od","keyCode","charCode","pd","qd","rd","_reactName","_targetInst","currentTarget","isDefaultPrevented","defaultPrevented","returnValue","isPropagationStopped","preventDefault","stopPropagation","cancelBubble","persist","isPersistent","wd","xd","yd","sd","eventPhase","timeStamp","isTrusted","td","ud","vd","Ad","screenX","screenY","clientX","clientY","pageX","pageY","ctrlKey","shiftKey","altKey","metaKey","getModifierState","zd","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","Bd","Dd","dataTransfer","Fd","Hd","animationName","elapsedTime","pseudoElement","Id","clipboardData","Jd","Ld","Md","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","Nd","Od","Alt","Control","Meta","Shift","Pd","Qd","which","Rd","Td","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Vd","touches","targetTouches","changedTouches","Xd","Yd","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","Zd","$d","ae","be","documentMode","ce","de","ee","fe","ge","he","ie","le","color","range","tel","text","me","ne","oe","pe","qe","se","te","ue","ve","we","xe","ye","ze","oninput","Ae","detachEvent","Be","Ce","attachEvent","De","Ee","Fe","He","Ie","Je","Ke","Le","nextSibling","Me","contains","compareDocumentPosition","Ne","HTMLIFrameElement","Oe","contentEditable","Pe","Qe","Re","Se","Te","Ue","selectionStart","selectionEnd","anchorNode","defaultView","getSelection","anchorOffset","focusNode","focusOffset","Ve","We","Xe","Ye","Ze","Yb","G","$e","af","bf","cf","df","passive","Nb","ef","ff","gf","hf","J","K","je","char","ke","jf","kf","lf","mf","autoFocus","nf","__html","pf","qf","rf","sf","previousSibling","tf","vf","wf","xf","yf","zf","Af","Bf","H","I","Cf","N","Df","Ef","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Ff","Gf","Hf","If","getChildContext","Jf","__reactInternalMemoizedMergedChildContext","Kf","Lf","Mf","Nf","Of","Pf","unstable_cancelCallback","Qf","unstable_shouldYield","Rf","unstable_requestPaint","Sf","Tf","unstable_getCurrentPriorityLevel","Uf","unstable_ImmediatePriority","Vf","Wf","Xf","unstable_LowPriority","Yf","unstable_IdlePriority","Zf","$f","ag","bg","cg","dg","eg","fg","hg","ig","jg","kg","ReactCurrentBatchConfig","lg","mg","ng","og","pg","qg","rg","_currentValue","sg","childLanes","tg","dependencies","firstContext","lanes","ug","vg","observedBits","responders","wg","xg","updateQueue","firstBaseUpdate","lastBaseUpdate","pending","effects","yg","zg","eventTime","lane","Ag","Bg","Cg","Dg","Eg","Fg","Component","refs","Gg","Kg","isMounted","_reactInternals","enqueueSetState","Hg","Ig","Jg","enqueueReplaceState","enqueueForceUpdate","Lg","shouldComponentUpdate","isPureReactComponent","Mg","updater","Ng","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","Og","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","componentDidMount","Pg","Qg","ref","_owner","_stringRef","Rg","Sg","lastEffect","nextEffect","firstEffect","Tg","Ug","Vg","implementation","Wg","Xg","Yg","Zg","$g","ah","bh","dh","eh","documentElement","tagName","fh","gh","ih","memoizedProps","revealOrder","jh","kh","lh","mh","nh","oh","pendingProps","ph","qh","rh","sh","uh","_workInProgressVersionPrimary","vh","ReactCurrentDispatcher","wh","xh","yh","zh","Ah","Bh","Ch","Dh","Eh","Fh","Gh","Hh","baseQueue","Ih","Jh","Kh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","dispatch","Lh","Mh","_getVersion","_source","mutableReadLanes","Nh","U","useState","getSnapshot","setSnapshot","Oh","Ph","Qh","Rh","destroy","deps","Sh","Th","Uh","Vh","Wh","Xh","Yh","Zh","$h","ai","bi","ci","di","readContext","useCallback","useContext","useImperativeHandle","useLayoutEffect","useMemo","useReducer","useRef","useDebugValue","useDeferredValue","useTransition","useMutableSource","useOpaqueIdentifier","unstable_isNewReconciler","uf","ei","ReactCurrentOwner","fi","gi","ji","ki","li","mi","baseLanes","ni","oi","pi","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","qi","ri","pendingContext","Bi","Ci","Di","Ei","si","retryLane","ti","fallback","unstable_avoidThisFallback","ui","unstable_expectedLoadTime","vi","wi","xi","yi","zi","isBackwards","rendering","renderingStartTime","tailMode","Ai","Fi","Gi","wasMultiple","multiple","onClick","onclick","createElementNS","Hi","Ii","Ji","Ki","Li","Mi","Ni","Oi","Pi","Qi","Ri","Si","componentDidCatch","Ti","componentStack","Ui","Vi","Wi","Xi","__reactInternalSnapshotBeforeUpdate","Yi","Zi","$i","focus","aj","bj","onCommitFiberUnmount","componentWillUnmount","cj","dj","ej","fj","gj","hj","insertBefore","_reactRootContainer","ij","jj","kj","lj","mj","nj","oj","pj","X","Y","qj","rj","sj","tj","uj","vj","wj","ck","Z","xj","yj","zj","Aj","Bj","Cj","Dj","Ej","Fj","Gj","Hj","Ij","Jj","Sc","Kj","Lj","Mj","callbackNode","expirationTimes","callbackPriority","Tc","Nj","Oj","Pj","Qj","Rj","Sj","Tj","finishedWork","finishedLanes","Uj","Wj","Xj","pingCache","Yj","Zj","va","ak","bk","dk","rangeCount","focusedElem","selectionRange","ek","createRange","setStart","removeAllRanges","addRange","setEnd","scrollLeft","top","scrollTop","onCommitFiberRoot","fk","gk","ik","isReactComponent","pendingChildren","jk","mutableSourceEagerHydrationData","lk","mk","nk","qk","hydrationOptions","mutableSources","_internalRoot","rk","tk","hasAttribute","sk","uk","kk","hk","_calculateChangedBits","unstable_observedBits","unmount","querySelectorAll","form","Vj","vk","Events","wk","findFiberByHostInstance","bundleType","rendererPackageName","xk","rendererConfig","overrideHookState","overrideHookStateDeletePath","overrideHookStateRenamePath","overrideProps","overridePropsDeletePath","overridePropsRenamePath","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","__REACT_DEVTOOLS_GLOBAL_HOOK__","yk","isDisabled","supportsFiber","inject","createPortal","findDOMNode","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","checkDCE","titleCase","redactingEmail","_str","smallWords","mightBeEmail","redacted","redactEmail","GA4","_gtag","_interopRequireDefault","_format","_excluded","_excluded2","_excluded3","__esModule","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","_typeof","_toConsumableArray","_arrayLikeToArray","_arrayWithoutHoles","iter","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","enumerableOnly","_objectSpread","_defineProperty","_slicedToArray","_arrayWithHoles","_s","_e","_r","_arr","_n","_iterableToArrayLimit","_nonIterableRest","minLen","_defineProperties","_toPropertyKey","_toPrimitive","_this","_classCallCheck","isInitialized","_testMode","_currentMeasurementId","_hasLoadedGA","_isQueuing","_queueGtag","GA_MEASUREMENT_ID","nonce","gtagUrl","script","async","dataLayer","gtag","gaOptions","mapFields","cookieUpdate","cookieExpires","cookieDomain","cookieFlags","userId","clientId","anonymizeIp","contentGroup1","contentGroup2","contentGroup3","contentGroup4","contentGroup5","allowAdFeatures","allowAdPersonalizationSignals","nonInteraction","hitCallback","_ref2","initConfigs","trackingId","gtagOptions","_options$testMode","testMode","_loadGA","mergedGtagOptions","_toGtagOptions","queues","fieldsObject","_gaCommand","eventCategory","eventAction","eventLabel","eventValue","event_category","event_label","non_interaction","_len2","_key2","_gaCommandSendEvent","_args$","rest","timingCategory","timingVar","timingValue","timingLabel","_this$_toGtagOptions","page_path","page_title","page_location","_len3","_key3","_gaCommandSendPageview","_args$2","_len4","_key4","_gaCommandSendEventParameters","_gaCommandSendPageviewParameters","_gaCommandSendTiming","_len5","_key5","command","_len6","_key6","_gaCommandSend","_gaCommandSet","_len7","_key7","readyCallback","ga","optionsOrName","category","transport","fieldObject","reset","protoProps","staticProps","_default","_window","_ga","nodeInterop","cache","_getRequireWildcardCache","newObj","hasPropertyDescriptor","_interopRequireWildcard","cacheBabelInterop","cacheNodeInterop","_react","_propTypes","_classnames","_setPrototypeOf","_createSuper","Derived","hasNativeReflectConstruct","Proxy","_isNativeReflectConstruct","Super","_getPrototypeOf","_assertThisInitialized","_possibleConstructorReturn","Notification","_React$Component","subClass","superClass","_inherits","_super","timeOut","timer","requestHide","onRequestHide","_this$props","className","handleClick","role","_NotificationManager","_Notifications","NotificationContainer","notifications","addChangeListener","handleStoreChange","removeChangeListener","notification","enterTimeout","leaveTimeout","handleRequestHide","Constants","_EventEmitter","NotificationManager","listNotify","defaultNotify","emitChange","_reactTransitionGroup","_Notification","Notifications","_this2","CSSTransition","TransitionGroup","_NotificationContainer","React","HashRouter","Router","resolveToLocation","normalizeToLocation","forwardRefShim","forwardRef","LinkAnchor","forwardedRef","innerRef","navigate","_onClick","isModifiedEvent","Link","_ref2$component","__RouterContext","isDuplicateNavigation","forwardRefShim$1","forwardRef$1","NavLink","ariaCurrent","_ref$ariaCurrent","activeClassName","_ref$activeClassName","activeStyle","classNameProp","isActiveProp","locationProp","styleProp","escapedPath","matchPath","classnames","joinClassnames","MAX_SIGNED_31_BIT_INT","commonjsGlobal","calculateChangedBits","contextProp","getUniqueId","Provider","changedBits","createEventEmitter","nextProps","oldValue","_Provider$childContex","Consumer","_React$Component2","onUpdate","_Consumer$contextType","createNamedContext","historyContext","_isMounted","_pendingLocation","staticContext","computeRootMatch","isExact","Lifecycle","onMount","prevProps","onUnmount","cacheLimit","cacheCount","generatePath","generator","compilePath","Redirect","computedMatch","_ref$push","cache$1","cacheLimit$1","cacheCount$1","_options","_options$exact","_options$strict","_options$sensitive","cacheKey","pathCache","compilePath$1","_compilePath","Route","context$1","isEmptyChildren","createURL","staticHandler","methodName","Switch","withRouter","wrappedComponentRef","remainingProps","WrappedComponent","hoistStatics","useHistory","replaceClassName","origClass","classToRemove","removeClass","baseVal","appliedClasses","appear","onEnter","maybeNode","maybeAppearing","_this$resolveArgument","resolveArguments","appearing","removeClasses","addClass","onEntering","_this$resolveArgument2","onEntered","_this$resolveArgument3","onExit","onExiting","onExited","nodeRef","getClassNames","isStringClassNames","baseClassName","doneClassName","_inheritsLoose","_proto","phase","forceReflow","hasClass","_addClass","_this$appliedClasses$","Transition","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","initialStatus","isMounting","appearStatus","in","unmountOnExit","mountOnEnter","nextCallback","prevState","updateStatus","nextStatus","cancelNextCallback","getTimeouts","mounting","ReactDOM","performEnter","performExit","timeouts","safeSetState","onTransitionEnd","_this3","setNextCallback","_this4","doesNotHaveTimeoutOrListener","addEndListener","_ref3","maybeNextCallback","childProps","TransitionGroupContext","getChildMapping","isValidElement","getProp","getNextChildMapping","prevChildMapping","nextChildMapping","getValueForKey","nextKeysPending","pendingKeys","prevKey","childMapping","nextKey","pendingNextKey","mergeChildMappings","hasPrev","hasNext","prevChild","isLeaving","cloneElement","handleExited","contextValue","firstRender","mounted","currentChildMapping","childFactory","ReplaceTransition","_args","handleEnter","handleLifecycle","handleEntering","handleEntered","handleExit","handleExiting","idx","originalArgs","_child$props","inProp","_React$Children$toArr","_leaveRenders","_enterRenders","modes","callHook","_element$props","leaveRenders","changeState","enterRenders","_ref4","SwitchTransition","appeared","oldChildren","newChildren","_this$state","__self","__source","jsx","jsxs","forceUpdate","escape","_status","_result","IsSomeRendererActing","only","PureComponent","_currentValue2","_threadCount","createFactory","createRef","lazy","runtime","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","innerFn","outerFn","tryLocsList","protoGenerator","Generator","Context","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","doneResult","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","isGeneratorFunction","genFun","ctor","awrap","skipTempReset","rootRecord","rval","exception","loc","caught","hasCatch","hasFinally","finallyEntry","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","performance","unstable_forceFrameRate","cancelAnimationFrame","requestAnimationFrame","sortIndex","startTime","expirationTime","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","delay","unstable_wrapCallback","_createClass","_construct","Parent","Class","_superPropBase","_get","consolePrefix","uniqueArray","capitalizeFirstLetter","objectValues","nodeList","previousWarnOnceMessages","warnOnce","warnAboutDeprecation","deprecatedParam","useInstead","callIfFunction","hasToPromiseFn","toPromise","asPromise","isPromise","DismissReason","backdrop","esc","isJqueryElement","elem","jquery","argsToParams","swalPrefix","swalClasses","iconTypes","getContainer","container","elementBySelector","selectorString","elementByClass","getPopup","popup","getIcon","icon","getTitle","getContent","getHtmlContainer","getImage","image","getProgressSteps","getValidationMessage","getConfirmButton","actions","getDenyButton","deny","getInputLabel","getLoader","loader","getCancelButton","getActions","getHeader","header","getFooter","footer","getTimerProgressBar","getCloseButton","focusable","getFocusableElements","focusableElementsWithTabindex","otherFocusableElements","isVisible","isModal","isToast","isLoading","states","previousBodyPadding","setInnerHtml","DOMParser","parseFromString","childNodes","removeCustomClasses","showClass","applyCustomClass","customClass","getInput","inputType","getChildByClass","checkbox","radio","oldInputVal","focusInput","toggleClass","applyNumericalStyle","removeProperty","show","hide","setStyle","selector","offsetWidth","offsetHeight","getClientRects","allButtonsAreHidden","isScrollable","scrollHeight","clientHeight","hasCssAnimation","getComputedStyle","animDuration","getPropertyValue","transDuration","haystack","needle","animateTimerProgressBar","timerProgressBar","stopTimerProgressBar","timerProgressBarWidth","timerProgressBarFullWidth","timerProgressBarPercent","isNodeEnv","sweetHTML","select","textarea","resetOldContainer","oldContainer","resetValidationMessage","Swal","addInputChangeListeners","rangeOutput","onchange","getTarget","setupAccessibility","toast","setupRTL","targetElement","rtl","oldContainerExisted","parseHtmlToContainer","HTMLElement","handleObject","handleJqueryElem","cloneNode","animationEndEvent","testEl","transEndEventNames","WebkitAnimation","OAnimation","measureScrollbar","scrollDiv","scrollbarWidth","getBoundingClientRect","clientWidth","renderActions","confirmButton","denyButton","cancelButton","showConfirmButton","showDenyButton","showCancelButton","renderButton","handleButtonsStyling","reverseButtons","loaderHtml","buttonsStyling","styled","confirmButtonColor","backgroundColor","denyButtonColor","cancelButtonColor","buttonType","handleBackdropParam","background","handlePositionParam","center","handleGrowParam","grow","growClass","renderContainer","allowOutsideClick","queueStep","privateProps","innerParams","domCache","inputTypes","renderInput","rerender","inputClass","inputContainer","setAttributes","inputAttributes","showInput","setCustomClass","renderInputType","getInputContainer","removeAttributes","attrName","attr","setInputPlaceholder","placeholder","inputPlaceholder","setInputLabel","prependTo","inputLabel","labelClass","innerText","insertAdjacentElement","inputValue","rangeInput","checkboxContainer","getPadding","paddingLeft","paddingRight","initialPopupWidth","contentWidth","attributeFilter","renderContent","htmlContainer","renderFooter","renderCloseButton","closeButton","closeButtonHtml","showCloseButton","closeButtonAriaLabel","renderIcon","setContent","applyStyles","iconHtml","iconType","setColor","adjustSuccessIconBackgoundColor","popupBackgroundColor","successIconParts","iconContent","question","iconColor","borderColor","sel","renderImage","imageUrl","imageAlt","imageWidth","imageHeight","currentSteps","steps","resetAndResolve","queueResult","fire","dismiss","getQueueStep","insertQueueStep","deleteQueueStep","createStepElement","stepEl","createLineElement","lineEl","progressStepsDistance","renderProgressSteps","progressStepsContainer","progressSteps","currentProgressStep","renderTitle","titleText","renderHeader","renderPopup","padding","addClasses","modal","didRender","onRender","isVisible$1","clickConfirm","click","clickDeny","clickCancel","mixin","mixinParams","MixinSwal","priorityMixinParams","showLoading","buttonToReplace","loading","RESTORE_FOCUS_TIMEOUT","globalState","focusPreviousActiveElement","previousActiveElement","restoreActiveElement","returnFocus","scrollX","scrollY","restoreFocusTimeout","scrollTo","getTimerLeft","stopTimer","resumeTimer","toggleTimer","running","increaseTimer","increase","isTimerRunning","isRunning","bodyClickListenerAdded","clickHandlers","bindClickHandler","bodyClickListener","defaultParams","hideClass","heightAuto","allowEscapeKey","allowEnterKey","stopKeydownPropagation","keydownListenerCapture","preConfirm","preDeny","confirmButtonText","confirmButtonAriaLabel","denyButtonText","denyButtonAriaLabel","cancelButtonText","cancelButtonAriaLabel","focusConfirm","focusDeny","focusCancel","showLoaderOnConfirm","showLoaderOnDeny","inputOptions","inputAutoTrim","inputValidator","returnInputValueOnDeny","validationMessage","onBeforeOpen","onOpen","willOpen","didOpen","onClose","onAfterClose","willClose","didClose","onDestroy","didDestroy","scrollbarPadding","updatableParams","deprecatedParams","toastIncompatibleParams","isValidParameter","paramName","isUpdatableParameter","isDeprecatedParameter","checkIfParamIsValid","checkIfToastParamIsValid","checkIfParamIsDeprecated","showWarningsForParams","staticMethods","enableLoading","hideLoading","getElementsByClassName","getInput$1","fixScrollbar","innerHeight","undoScrollbar","iOSfix","MSStream","platform","maxTouchPoints","iosfix","lockBodyScroll","addBottomPaddingForTallPopups","bottomPanelHeight","paddingBottom","preventTouchMove","ontouchstart","shouldPreventTouchMove","ontouchmove","isStylys","isZoom","touchType","undoIOSfix","isIE11","MSInputMethodContext","fixVerticalPositionIE","offsetTop","alignItems","IEfix","undoIEfix","setAriaHidden","unsetAriaHidden","privateMethods","swalPromiseResolve","removePopupAndResetState","triggerDidCloseAndDispose","keydownTarget","keydownHandler","keydownHandlerAdded","removeBodyClasses","shown","resolveValue","prepareResolveValue","handlePopupAnimation","isConfirmed","isDenied","isDismissed","animationIsSupported","runDidClose","animatePopup","swalCloseEventFinishedCallback","_destroy","setButtonsDisabled","setInputDisabled","radios","enableButtons","disableButtons","enableInput","disableInput","showValidationMessage","inputerror","resetValidationMessage$1","getProgressSteps$1","Timer","started","defaultInputValidators","setDefaultInputValidators","validateCustomTargetElement","setParameters","swalStringParams","getTemplateParams","templateContent","showWarningsForElements","getSwalParams","getSwalButtons","getSwalImage","getSwalIcon","getSwalInput","getSwalStringParams","showWarningsForAttributes","option","optionValue","optionName","paramNames","allowedElements","allowedAttributes","SHOW_CLASS_TIMEOUT","openPopup","initialBodyOverflow","overflowY","addClasses$1","setScrollingVisibility","fixScrollContainer","runDidOpen","swalOpenAnimationFinished","handleInputOptionsAndValue","handleInputOptions","handleInputValue","getInputValue","getCheckboxValue","getRadioValue","getFileValue","files","processInputOptions","populateInputOptions","formatInputOptions","renderOption","optionLabel","isSelected","inputOption","optgroup","radioValue","radioLabel","radioInput","radioLabelElement","valueFormatted","handleConfirmButtonClick","handleConfirmOrDenyWithInput","handleDenyButtonClick","handleCancelButtonClick","dismissWith","handleInputValidator","checkValidity","preDenyValue","closePopup","succeedWith","preConfirmValue","addKeydownHandler","setFocus","increment","focusableElements","arrowKeysNextButton","arrowKeysPreviousButton","escKeys","handleTab","handleArrows","handleEsc","isComposing","outerHTML","btnIndex","buttonToFocus","handlePopupClick","handleToastClick","handleModalMousedown","handleContainerMousedown","handleModalClick","ignoreOutsideClick","onmousedown","onmouseup","_main","userParams","currentInstance","prepareParams","populateDomCache","swalPromise","templateParams","setupTimer","initFocus","globalState$$1","focusButton","blurActiveElement","blur","validUpdatableParams","updatedParams","deferDisposalTimer","runDidDestroy","disposeSwal","unsetWeakMaps","instanceMethods","disableLoading","closeModal","closeToast","SweetAlert","outerParams","language","initiationDate","localStorage","getItem","pointerEvents","ukrainianAnthem","loop","play","setItem","_currentInstance","Sweetalert2","swal","sweetAlert","getElementsByTagName","styleSheet","cssText","support","blob","Blob","formData","arrayBuffer","viewClasses","normalizeName","normalizeValue","iteratorFor","consumed","bodyUsed","fileReaderReady","readBlobAsArrayBuffer","readAsArrayBuffer","bufferClone","buf","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","_bodyFormData","_bodyArrayBuffer","isConsumed","readAsText","readBlobAsText","chars","readArrayBufferAsText","decode","json","credentials","signal","upcased","normalizeMethod","referrer","reParamSearch","rawHeaders","Response","bodyInit","redirectStatuses","redirect","DOMException","aborted","xhr","abortXhr","fixUrl","polyfill","asyncGeneratorStep","gen","_next","_throw","_objectSpread2","unsupportedIterableToArray","isProduction","provided","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","leafPrototypes","ns","def","definition","chunkId","miniCssF","inProgress","dataWebpackPrefix","needAttach","scripts","charset","onScriptComplete","doneFns","nmd","paths","loadStylesheet","fullhref","existingLinkTags","dataHref","rel","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","createStylesheet","installedCssChunks","miniCss","installedChunks","installedChunkData","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","chunkIds","moreModules","chunkLoadingGlobal","_useContext","authenticated","user","UsePageTracking","_jsx","adheridoDFE","AxiosClient","errorObject","removeItem","t0","t1","authToken","Login","expiration","navs","routes","allowPyp","allowSeh","AuthState","isAuthenticated","moment","initialState","_useReducer","AuthReducer","_useReducer2","login","_callee2","_context2","_x2","showError","logout","setRoutes","routeList","setNavs","navList","hideError","setAllowPyp","setAllowSeh","ReestablecerClave","cuit","CambiarClave","oldPassword","newPassword","newPasswordConfirm","CrearUsuario","ActivarUsuario","GetNotificacionesToPage","pageSize","GetNotificacionesNoLeidasToPage","GetReporteNotificacion","idpakey","idimponible","nombrereporte","GetNotificacionActaReport","idtiponotificacion","idorden","fechaac","GetDatosUsuario","CambiarDatosUsuario","SaveDDJJDomicilioFiscal","BajaDDJJDomicilioFiscal","GetDeclaracionJuradaDFEReport","_callee3","_context3","_x3","GetDeclaracionesJuradasDfeToPage","_callee4","_context4","_x4","_x5","_x6","GetDeclaracionesJuradasRSUToPage","_ref5","_callee5","_context5","_x7","_x8","_x9","SaveDDJJRsu","_ref6","_callee6","_context6","_x10","GetDeclaracionJuradaRSUById","_ref7","_callee7","idDDJJ","_context7","_x11","GetDeclaracionJuradaRSUReport","_ref8","_callee8","_context8","_x12","_x13","GetEximicionesToPage","GetTiposEximiciones","GetRequisitosTipoEximicion","SolicitarEximicion","GetReporteEximicion","tipoex","tiporeporte","RESET_PASSWORD_REQUEST","RESET_PASSWORD_SUCCESS","ACTIVATE_USER_REQUEST","ACTIVATE_USER_SUCCESS","CREATE_USER_REQUEST","CREATE_USER_SUCCESS","CHANGE_PASSWORD_REQUEST","CHANGE_PASSWORD_SUCCESS","GET_NOTIFICACIONES_TO_PAGE_REQUEST","GET_NOTIFICACIONES_TO_PAGE_SUCCESS","GET_NOTIFICACIONES_TO_PAGE_FAIL","GET_REPORTE_NOTIFICACION_REQUEST","GET_REPORTE_NOTIFICACION_SUCCESS","GET_REPORTE_NOTIFICACION_FAIL","GET_REPORTE_NOTIFICACION_ACTA_REQUEST","GET_REPORTE_NOTIFICACION_ACTA_SUCCESS","GET_REPORTE_NOTIFICACION_ACTA_FAIL","GET_DATOS_USUARIO_REQUEST","GET_DATOS_USUARIO_SUCCESS","CHANGE_DATOS_USUARIO_REQUEST","CHANGE_DATOS_USUARIO_SUCCESS","CLEAR_USER_DATA_REQUEST","GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_REQUEST","GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_SUCCESS","GET_NOTIFICACIONES_NO_LEIDAS_TO_PAGE_FAIL","loadingResetPassword","changingPassword","loadingActivateUser","loadingCreateUser","loadingNotificaciones","totalNotificaciones","notificaciones","loadingNotificacionesNoLeidas","totalNotificacionesNoLeidas","notificacionesNoLeidas","loadingReporteNotificacion","reporteNotificacion","loadingReporteNotificacionActa","reporteNotificacionActa","loadingUsuario","usuario","changingUserData","loadingEximiciones","totalEximiciones","eximiciones","loadingTiposEximicion","tiposEximicion","loadingRequisitosTipoEximicion","requisitosTipoEximicion","savingEximicion","loadingReporteEximicion","reporteEximicion","loadingReporteDfe","reporteDfe","savingDFE","loadingDeclaracionesJuradasDfeToPage","totalDeclaracionesJuradasDfeToPage","ddjjsDfe","loadingDeclaracionesJuradasRsuToPage","totalDeclaracionesJuradasRsuToPage","ddjjsRsu","loadingDdjjDetalleRsu","ddjjDetalleRsu","loadingDeclaracionJuradaDetalle","loadingReporteRsu","reporteRsu","UserState","UserReducer","savingDDJJRsu","reestablecerClave","crearUsuario","activarUsuario","changePassword","getNotificacionesToPage","pagesize","totalRows","getNotificacionesNoLeidasToPage","_x14","_x15","getReporteNotificacion","_x16","_x17","_x18","_x19","_x20","getReporteNotificacionActa","_x21","_x22","_x23","_x24","_x25","_x26","getDatosUsuario","_ref9","_callee9","_context9","_x27","cambiarDatosUsuario","_ref10","_callee10","_context10","_x28","getEximicionesToPage","_ref11","_callee11","_context11","_x29","_x30","_x31","clearEximicionesToPage","_ref12","_callee12","_context12","getTiposEximiciones","_ref13","_callee13","_context13","getRequisitosTipoEximicion","_ref14","_callee14","_context14","_x32","clearRequisitosTipoEximicion","_ref15","_callee15","_context15","solicitarEximicion","_ref16","_callee16","_context16","_x33","getReporteEximicion","_ref17","_callee17","_context17","_x34","_x35","_x36","_x37","getDeclaracionJuradaDFEReport","_ref18","_callee18","idDDJJDfe","_context18","_x38","_x39","saveDDJJDomicilioFiscal","_ref19","_callee19","_context19","_x40","bajaDDJJDomicilioFiscal","_ref20","_callee20","_context20","getDeclaracionesJuradasDfeToPage","_ref21","_callee21","_context21","_x41","_x42","_x43","clearDeclaracionesJuradasDfeToPage","_ref22","_callee22","_context22","getDeclaracionesJuradasRsuToPage","_ref23","_callee23","_context23","_x44","_x45","_x46","clearDeclaracionesJuradasRsuToPage","_ref24","_callee24","_context24","saveDDJJRsu","_ref25","_callee25","_context25","_x47","getDeclaracionJuradaRSUReport","_ref26","_callee26","_context26","_x48","_x49","getDeclaracionJuradaRSUById","_ref27","_callee27","_context27","_x50","clearUserData","clearNotificacionesData","GetLocalidadesDFE","GetTipoDocumento","GetVencimientosTasas","GetReportePeriodosFaltantes","areagestion","partida","fechaDesde","fechaHasta","loadingLocalidades","localidades","loadingLocalidadesDFE","localidadesDFE","loadingTipoDocumentoKeyValue","tipoDocumentoKeyValue","loadingPartidasDFE","partidasDFE","loadingVencimientosTasas","vencimientosTasas","loadingPeriodosFaltantes","reportePF","CommonState","CommonReducer","loadingCallesKeyValue","periodosFaltantesModalVisible","getLocalidades","getLocalidadesDFE","getTipoDocumentoKeyValue","getPartidasDFE","clearPartidasDFE","getVencimientosTasas","getReportePeriodosFaltantes","GetDeclaracionesJuradasToPage","GetDeclaracionJuradaById","GetDeclaracionJuradaPublicidadesToPage","GetTotalesDeclaracionJurada","ddjjId","estado","GetExistenciaDeActa","anio","cuotaId","GetExistenciaBloqueo","cuota","GetComercioBaja","GetPeriodoHabilitado","GetExistenciaTipoContribuyente","GetExistenciaVinculacionPresentacion","GetExistenciaBorradorDDJJ","CreateBorradorDeclaracionJurada","RefreshBorradorDeclaracionJurada","declaracionJuradaId","SaveDeclaracionJurada","ddjj","GetCuotas","GetVencimientoCuota","GetPartidasDDJJ","GetTiposPublicidades","GetCamposRequeridosByPublicidadId","tipoPublicidadId","GetExistenciaPartida","GetCalles","nombre","GetPartidaDireccion","SavePublicidad","publicidad","DeletePublicidad","detalleDDJJId","imageBajaPublicidadBase64","ActivatePublicidad","ChangePolizaPublicidad","poliza","GetReporteDeclaracionJurada","ChangeFechaPublicidad","GET_DDJJ_TO_PAGE_REQUEST","GET_DDJJ_TO_PAGE_SUCCESS","GET_DDJJ_BY_ID_REQUEST","GET_DDJJ_BY_ID_SUCCESS","GET_DDJJ_PUBLICIDADES_REQUEST","GET_DDJJ_PUBLICIDADES_SUCCESS","CLEAR_DDJJ_DETAIL_REQUEST","CLEAR_DDJJ_DETAIL_SUCCESS","GET_ANIOS_REQUEST","GET_ANIOS_SUCCESS","GET_CUOTAS_REQUEST","GET_CUOTAS_SUCCESS","CLEAR_CUOTAS_REQUEST","GET_PARTIDAS_REQUEST","GET_PARTIDAS_SUCCESS","GET_REPORTE_DDJJ_REQUEST","GET_REPORTE_DDJJ_SUCCESS","GET_REPORTE_DDJJ_FAIL","GET_VENCIMIENTO_CUOTA_REQUEST","GET_VENCIMIENTO_CUOTA_SUCCESS","GET_TOTALES_DDJJ_REQUEST","GET_TOTALES_DDJJ_SUCCESS","GET_EXISTENCIA_ACTA_REQUEST","GET_EXISTENCIA_ACTA_SUCCESS","GET_EXISTENCIA_BLOQUEO_REQUEST","GET_EXISTENCIA_BLOQUEO_SUCCESS","GET_COMERCIO_BAJA_REQUEST","GET_COMERCIO_BAJA_SUCCESS","GET_EXISTENCIA_VINCULACION_REQUEST","GET_EXISTENCIA_VINCULACION_SUCCESS","CREATE_BORRADOR_REQUEST","CREATE_BORRADOR_SUCCESS","REFRESH_BORRADOR_REQUEST","REFRESH_BORRADOR_SUCCESS","GET_DDJJ_BORRADOR_BY_ID_REQUEST","GET_DDJJ_BORRADOR_BY_ID_SUCCESS","SAVE_DDJJ_BORRADOR_REQUEST","SAVE_DDJJ_BORRADOR_SUCCESS","SAVE_DDJJ_BORRADOR_FAIL","LIQUIDACION_DDJJ_REQUEST","LIQUIDACION_DDJJ_SUCCESS","GET_DDJJ_BORRADOR_PUBLICIDADES_REQUEST","GET_DDJJ_BORRADOR_PUBLICIDADES_SUCCESS","CLEAR_DDJJ_CREATE_DATA_REQUEST","GET_TIPO_PUBLICIDADES_REQUEST","GET_TIPO_PUBLICIDADES_SUCCESS","GET_TIPO_CONTENIDOS_PUBLICIDAD_REQUEST","GET_TIPO_CONTENIDOS_PUBLICIDAD_SUCCESS","GET_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST","GET_TIPO_PUBLICIDAD_REQUERIDOS_SUCCESS","GET_EXISTENCIA_TIPO_CONTRIBUYENTE_REQUEST","GET_EXISTENCIA_TIPO_CONTRIBUYENTE_SUCCESS","GET_PARTIDA_DIRECCION_REQUEST","GET_PARTIDA_DIRECCION_SUCCESS","GET_PARTIDA_TERCERO_DIRECCION_REQUEST","GET_PARTIDA_TERCERO_DIRECCION_SUCCESS","GET_CALLES_REQUEST","GET_CALLES_SUCCESS","SHOW_PUBLICIDAD_MODAL","HIDE_PUBLICIDAD_MODAL","SHOW_CHANGE_POLIZA_MODAL","HIDE_CHANGE_POLIZA_MODAL","CHANGE_POLIZA_REQUEST","CHANGE_POLIZA_SUCCESS","SAVE_PUBLICIDAD_REQUEST","SAVE_PUBLICIDAD_SUCCESS","CLEAR_TIPO_PUBLICIDAD_REQUERIDOS_REQUEST","DELETE_PUBLICIDAD_REQUEST","DELETE_PUBLICIDAD_SUCCESS","CHANGE_FECHA_PUBLICIDAD_REQUEST","CHANGE_FECHA_PUBLICIDAD_SUCCESS","GET_PERIODO_HABILITADO_REQUEST","GET_PERIODO_HABILITADO_SUCCESS","GET_PARTIDAS_DDJJ_REQUEST","GET_PARTIDAS_DDJJ_SUCCESS","CLEAR_PARTIDAS_DDJJ_REQUEST","GET_EXISTENCIA_BORRADOR_REQUEST","GET_EXISTENCIA_BORRADOR_SUCCESS","declaracionJuradaDetalle","declaracionJuradaPublicidades","loadingBorradorDDJJ","loadingPublcidadesBorradorDDJJ","editingBorrador","declaracionJuradaBorrador","declaracionJuradaBorradorPublicidades","totalPublicidadesBorrador","declaracionesJuradas","loadingDeclaracionJuradaPublicidades","totalPublicidades","loadingAnios","loadingCuotas","cuotas","loadingPartidas","anios","partidas","loadingPartidasDDJJ","partidasDDJJ","loadingVencmientoCuota","vencimientoCuota","loadingTotalesDDJJ","totalesDDJJ","loadingComercioBaja","savingBorradorDDJJ","savingPublicidad","creatingBorradorDDJJ","updatingBorradorDDJJ","loadingExistenciaDeActa","loadingExistenciaTipoContribuyente","loadingLiquidacion","loadingPeriodoHabilitado","periodoHabilitado","loadingExistenciaBorrador","loadingExistenciaBloqueo","loadingExistenciaVinculacion","loadingTipoPublicidades","tipoPublicidades","loadingTipoContenidos","tipoContenidos","loadingTipoPublicidadRequeridos","tipoPublicidadRequeridos","loadingPartidaDireccion","partidaDireccion","loadingPartidaDirecciones","partidaTerceroDireccion","loadingCalles","calles","createPublicidadModalVisible","changePolizaModalVisible","idDDJJDetallePolizaEdit","updatingPoliza","loadingReporte","reporte","deletingPublicidad","changingFechaPublicidad","DeclaracionJuradaState","DeclaracionJuradaReducer","loadingVencimientoCuota","idTipoContribPresentacion","activatingPublicidad","partidaExhibeDireccion","savePublicidad","savePublicidadSuccess","activatePublicidad","activatePublicidadSuccess","clearTipoPublicidadRequeridos","getCalles","getTiposPublicidades","periodo","getTipoContenidosPublicidad","getTipoPublicidadRequeridos","changePoliza","changePolizaSuccess","getPartidaDireccion","getPartidaTerceroDireccion","getExistenciaPartida","saveDDJJ","presentar","idpartida","getBorradorDDJJById","clearDDJJCreateData","getPublicidadesBorradorDDJJToPage","getPeriodoHabilitado","getExistenciaBorradorDDJJ","_callee35","_context35","_callee34","_context34","FECHA_BAJA","_callee33","_context33","FECHA_DESDE","_callee32","_context32","_callee31","_context31","CUOTAID","ANIO","_ref28","_callee30","_context30","_ref29","_callee29","_context29","_ref30","ID","_ref32","IDINSERTED","_ref34","_callee28","_context28","getDDJJToPage","_ref36","_callee36","_context36","getDDJJById","_ref37","_callee37","_context37","getTotalesDDJJ","_ref38","_callee38","_context38","clearDDJJDetail","_ref39","_callee39","_context39","getPublicidadesDDJJToPage","_ref40","_callee40","fechavencimiento","_context40","getAnios","_ref41","_callee41","_context41","getCuotas","_ref42","_callee42","_context42","getVencimientoCuota","_ref43","_callee43","_context43","clearCuotas","_ref44","_callee44","_context44","getPartidas","_ref45","_callee45","_context45","getPartidasDDJJ","_ref46","_callee46","_context46","clearPartidasDDJJ","_ref47","_callee47","_context47","GetReporteDDJJ","_ref48","_callee48","_context48","_x51","deletePublicidad","_ref49","_callee49","imagenBaja","_context49","_x52","_x53","changeFechaPublicidad","_ref50","_callee50","fechainicio","fechafin","_context50","_x54","_x55","_x56","setCalle","showPublicidadModal","hidePublicidadModal","showPolizaModal","idDetalleDdjj","hidePolizaModal","deletePublicidadSuccess","changeFechaPublicidadSuccess","GetAnios","GetPeriodos","GetDeclaracionesJuradasSEHToPage","GetDetalleDJByDeclaracionJuradaId","CreateDeclaracionJurada","CalcularMontoDeclaracionJurada","GetReporteDeclaracionJuradaSEH","loadingPeriodos","periodos","declaracionesJuradasSEH","loadingDeclaracionJuradaSEH","declaracionJuradaSEH","loadingDeclaracionJuradaDetalleSEH","declaracionJuradaDetalleCount","declaracionJuradaDetalleSEH","creatingBorradorDDJJSEH","editingBorradorSEH","declaracionJuradaBorradorSEH","calculandoDeclaracionJuradaSEH","savingDeclaracionJuradaSEH","DeclaracionJuradaSEHState","DeclaracionJuradaSEHReducer","getPeriodos","clearPeriodos","getDDJJSEHById","getDDJJSEHToPage","getDetalleDJByDeclaracionJuradaIdToPage","createDeclaracionJuradaSEH","calcularMontoDeclaracionJurada","clearDDJJSEHCreateData","saveDeclaracionJuradaSEH","GetReporteDDJJSEH","GetConsultaDeuda","fecha","tipo","GetReporteDeuda","pakey","GetFactura","idPakey","fechaConsulta","impFijo","GetPagoElectronico","GetConsultaDeudaPYPChart","GetReporteCD","WRKNRODOP","IDIMPONIBLE","GET_CONSULTA_DEUDA_REQUEST","GET_CONSULTA_DEUDA_SUCCESS","GET_CONSULTA_DEUDA_CLEAR","GET_CONSULTA_DEUDA_FAIL","GET_REPORTE_DEUDA_REQUEST","GET_REPORTE_DEUDA_SUCCESS","GET_REPORTE_DEUDA_FAIL","GET_FACTURA_REQUEST","GET_FACTURA_SUCCESS","GET_FACTURA_FAIL","GET_PAGO_ELECTRONICO_REQUEST","GET_PAGO_ELECTRONICO_SUCCESS","GET_PAGO_ELECTRONICO_FAIL","deuda","loadingDeuda","loadingReporteDeuda","reporteDeuda","loadingFactura","reporteFactura","loadingPagoElectronico","loadingChartPYPData","chartPYPData","loadingReporteCD","reporteCD","FacturacionState","FacturacionReducer","loadingReportCD","reportCD","getConsultaDeudaPYPChart","getDeuda","getDeudaReport","getFactura","importeFijo","getPagoElectronico","getReporteCD","clearDeuda","GetConsultaDeudaChart","anioCuotaDataGrid","anioCuotaDataGridAnterior","loadingChartData","chartData","FacturacionSEHState","FacturacionSEHReducer","getConsultaDeudaChart","turno","loadingTurno","CreatingTurno","deletetingTurno","TurnoDataGrid","TurnoDataGridAnterior","InsertingTurno","creatingTurno","loadingAreagest","areagest","loadingRelDelegacionTipotramite","relDelegacionTipotramite","loadingDelegacion","delegacion","loadingDiasNoHabilitados","diasNoHabilitados","loadingHorariosHabilitados","horariosHabilitados","ConsultarTurnosXContribuyente","InsertarTurno","id_tipo_tramite","id_delegacion","Fecha_turno","hora","Telefono","GetRelDelegacionTipotramite","idDelegacion","idTipoTramite","GetDelegacion","descripcion","id_area_gestion","GetDiasNoHabilitados","GetHorariosHabilitados","CreateRoom","AtencionVirtualState","AtencionVirtualReducer","getTurno","deleteTurno","getAreaGestion","GetAreaGestion","getRelDelegacionTipotramite","getDelegacion","getDiasNoHabilitados","getHorariosHabilitados","insTurno","createRoom","clearTurno","areaGestion","loadingAreaGestion","Layout","ResetPassword","ActivateUser","Page404","Page500","NewUser","Contacto","DDJJDomicilioFiscalAlta","_jsxs","PrivateRoute","icons","sygnet","logo","logoNegative","cilAlignCenter","cilAlignLeft","cilAlignRight","cilApplicationsSettings","cilArrowRight","cilAsterisk","cilBasket","cilBell","cilBold","cilBookmark","cilCalculator","cilCalendar","cilCloudDownload","cilChartPie","cilCheck","cilChevronBottom","cilChevronLeft","cilChevronTop","cilCircle","cilCheckCircle","cilCode","cilCommentSquare","cilCreditCard","cilCursor","cilCursorMove","cilDrop","cilDollar","cilEnvelopeClosed","cilEnvelopeLetter","cilEnvelopeOpen","cilEuro","cilGlobeAlt","cilGrid","cilFile","cilFullscreen","cilFullscreenExit","cilGraph","cilHome","cilInbox","cilIndentDecrease","cilIndentIncrease","cilInputPower","cilItalic","cilJustifyCenter","cilJustifyLeft","cilLaptop","cilLayers","cilLightbulb","cilList","cilListNumbered","cilListRich","cilLocationPin","cilLockLocked","cilMagnifyingGlass","cilMap","cilMoon","cilNotes","cilOptions","cilPaperclip","cilPaperPlane","cilPencil","cilPeople","cilPhone","cilPrint","cilPowerStandby","cilPuzzle","cilSave","cilScrubber","cilSettings","cilShare","cilShareAll","cilShareBoxed","cilShieldAlt","cilSpeech","cilSpeedometer","cilSpreadsheet","cilStar","cilSun","cilTags","cilTask","cilTrash","cilUnderline","cilUser","cilUserFemale","cilUserFollow","cilUserUnfollow","cilX","cilXCircle","cilWarning","cilPlus","cilNewspaper","cilChevronRight","cifUs","cifBr","cifIn","cifFr","cifEs","cifPl","cibSkype","cibFacebook","cibTwitter","cibLinkedin","cibFlickr","cibTumblr","cibXing","cibGithub","cibStackoverflow","cibYoutube","cibDribbble","cibInstagram","cibPinterest","cibVk","cibYahoo","cibBehance","cibReddit","cibVimeo","cibCcMastercard","cibCcVisa","cibStripe","cibPaypal","cibGooglePay","cibCcAmex","App","getElementById"],"sourceRoot":""}