{"version":3,"sources":["configAxios/configAxios.js","Front/redux/types/loginTypes.js","helper/loginValidation.js","BackOffice/redux/types/loginTypes.js","BackOffice/redux/actions/loginActions.js","Front/redux/actions/loginActions.js","Front/redux/types/queryTypes.js","Front/components/loader/LoaderContainerMobile.js","helper/swalHelpers.js","serviceWorker.js","privateRoute/privateRouteAdmin.js","privateRoute/index.js","Front/components/ScrollToTop.js","routes/redirectStatus.js","routes/index.js","Front/redux/reducers/loginReducer.js","Front/redux/reducers/queryReducer.js","Front/redux/reducers/index.js","Front/redux/store/store.js","index.js"],"names":["clienteAxios","axios","create","baseURL","headers","concat","process","INICIAR_SESION_CORRECTO","CERRAR_SESION","rolesPermitidos","allowRoles","respuesta","userPermisos","JSON","parse","sessionStorage","getItem","Permisos","permisos","filter","element","Lectura","map","Seccion","includes","escrituraPermitida","acceso","Escritura","lecturaPermitida","eliminacionPermitida","Eliminacion","logearUsuario","usuarioBackoffice","async","response","post","console","log","status","data","RSPTA","dispatch","loginExitosoBack","window","setItem","stringify","loginSwal","errorSwal","error","loggedOut","removeItem","cerrarSesion","location","href","guardarDatosUsuarioBackoffice","type","payload","usuario","loginExitoso","cambiarPassword","datos","put","redireccionSwal","loginCarrito","actualizarDatos","logOut","guardarDatosUsuario","AGREGAR_QUERY","LoaderContainerMobile","_jsx","className","children","style","top","role","succesSwal","title","body","buttonText","callback","Swal","fire","icon","html","showCloseButton","showCancelButton","confirmButtonColor","confirmButtonText","timer","then","result","isConfirmed","catch","infoSwal","direccion","showConfirmButton","compraSwal","cancelButtonColor","cancelButtonText","loadingPeticion","dismiss","DismissReason","pasoSwal","link","Boolean","hostname","match","PrivateRouteAdmin","_ref","component","Component","props","_objectWithoutProperties","logged","Route","_objectSpread","render","Redirect","to","RutaPrivada","useSelector","state","login","autenticado","ScrollToTop","pathname","useLocation","useEffect","scrollTo","RedirectWithStatus","from","_ref2","staticContext","exact","strict","Home","lazy","LoginPersonas","RecuperarPassword","ReiniciarPassword","AgendarServicio","AgendarServicioSlug","PaginaError","Buscar","Perfil","Registrarse","Contactanos","Noticia","Flotas","Nosotros","FichaModelo","Vehiculos","Cotizar","FichaRepuesto","FichaVehiculo","Outlet","FichaMercadoPublico","MercadoPublico","ServicioTecnico","AtencionCliente","Concesionarios","Concesionario","Politicas","Carrito","CarritoFinalizado","CarritoRechazado","SolicitarGarantia","Repuestos","SolicitarRepuesto","Listo","Rechazado","Login","Oficinas","NuevaOficina","EditarOficina","ContactanosBackoffice","WhitePage","servicioCliente","servicioTecnicoF","concesionarioF","flotasF","mercadoPublicoF","repuestosF","Cotizaciones","cotizadorRepuesto","cotizadorMantencion","UsuariosF","editarUsuarioF","UsuariosRegistrados","PerfilesF","crearPerfilF","editarPerfilF","CrearUsuarioF","ConcesionariosHome","Historias","HistoriasNew","HistoriasEditar","Noticias","NoticiasNew","NoticiasEditar","Clientes","ClientesNew","ClientesEditar","Banner","MantenedorFlotas","MantenedorFlotasNuevoContenido","MantenedorFlotasEditarContenido","ServicioTecnicoSos","SosNuevoContenido","SosEditarContenido","Recalls","RepuestosTodos","VehiculosMantenedor","CrearVehiculo","EditarVehiculo","DuplicarVehiculo","OutletMantenedor","CrearVehiculoOutlet","NuevoRepuesto","CopiaRepuesto","EditarRepuesto","OutletRepuestos","NuevoRepuestoOutlet","EditarRepuestoOutlet","CopiaRepuestoOutlet","HomeMantenedor","TransaccionesRepuestos","ReservaLead","ReservaEnLinea","GarantiaMantencion","NuevaGarantiaMantencion","EditarGarantiaMantencion","CopiarGarantiaMantencion","PoliticasSeguridad","DerechoRetracto","TerminosCondiciones","MercadoPublicoCrear","Footer","Routes","useDispatch","localStorage","some","producto","tipo","ingresarUsuario","ingresarUsuarioBackoffice","_jsxs","BrowserRouter","Suspense","fallback","Switch","path","restricted","initialState","user","search","combineReducers","arguments","length","undefined","action","query","middleware","thunk","store","createStore","rootReducer","composeWithDevTools","applyMiddleware","Cookies","get","set","TagManager","initialize","gtmId","ReactDOM","Provider","document","getElementById","navigator","serviceWorker","ready","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,CAC3BtI,MFCW,WAAuC,IAA9BD,EAAKwI,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGJ,GAAcO,EAAMH,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EAChD,OAAQC,EAAO7M,MACX,KAAKhD,KACD,OAAA4G,wBAAA,GACOM,GAAK,IACRE,aAAa,EACbmI,KAAMM,EAAO5M,UAErB,KAAKhD,KACD,MAAM,CACFmH,aAAa,EACbmI,KAAK,IAEb,QACI,OAAOrI,IEdf4I,MDDW,WAAuC,IAA9B5I,EAAKwI,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGJ,GAAcO,EAAMH,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EAChD,OAAQC,EAAO7M,MACX,KAAKY,KACD,OAAAgD,wBAAA,GACOM,GAAK,IACRsI,OAAQK,EAAO5M,UAEvB,QACI,OAAOiE,MERnB,MACM6I,GAAa,CAACC,MAQLC,OANDC,uBACZC,GAJmB,GAMnBC,+BAAoBC,8BAAmBN,M,wCCIxBO,KAAQC,IAAI,gBAG3BD,KAAQE,IAAI,iBAAiB,GAC7BF,KAAQE,IAAI,iBAAiB,IAO/BC,KAAWC,WAJY,CACrBC,MAAO,gBAKTC,IAAS/J,OACP/C,cAAC+M,IAAQ,CAACZ,MAAOA,GAAMjM,SACrBF,cAACyK,GAAM,MACIuC,SAASC,eAAe,uBVmGjC,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBhM,MAAKiM,IACJA,EAAaC,gBAEd/L,OAAM5C,IACLZ,QAAQY,MAAMA,EAAM4O,c","file":"static/js/main.03bce978.chunk.js","sourcesContent":["import axios from 'axios'\r\n\r\n//http://localhost:8080/ \r\n//http://apiqa.hyundaicamionesybuses.cl/\r\nconst clienteAxios = axios.create({\r\n baseURL: 'https://api.hyundaicamionesybuses.cl/',\r\n headers: {\r\n 'Authorization': `${process.env.REACT_APP_BEARER_TOKEN}`\r\n }\r\n})\r\n\r\nexport default clienteAxios","export const INICIAR_SESION_CORRECTO = \"INICIAR_SESION_CORRECTO\"\r\n\r\nexport const CERRAR_SESION = \"CERRAR_SESION\"","\r\nexport const rolesPermitidos = (allowRoles) => {\r\n\r\n let respuesta = true;\r\n\r\n if (allowRoles[0] !== \"*\") {\r\n\r\n let userPermisos = JSON.parse( sessionStorage.getItem('usuarioBackoffice') );\r\n userPermisos = userPermisos.Permisos;\r\n\r\n //Permisos trae \"idPermiso\": 308, \"Perfil\": \"PERFILTEST\", \"Modulo\": \"PANTALLAS\", \"Seccion\": \"HOME\",\r\n //\"Escritura\": 0,\"Lectura\": 0,\"Eliminacion\": 0\r\n\r\n let permisos = userPermisos.filter((element) => element.Lectura === 1).map((element) => element.Seccion); // \"HOME\"\r\n let respuestaPermisos = allowRoles.map((element) => {\r\n return permisos.includes(element);\r\n });\r\n\r\n if (respuestaPermisos.includes(true) === false) respuesta = false;\r\n /* roles de acceso,estados,tipodoc,interactuar consultas, probar errores,*/\r\n }\r\n\r\n return respuesta;\r\n};\r\n\r\nexport const escrituraPermitida = (acceso) => {\r\n\r\n let respuesta = 0;\r\n\r\n let userPermisos = JSON.parse( sessionStorage.getItem('usuarioBackoffice') );\r\n userPermisos = userPermisos.Permisos;\r\n\r\n let permisos = userPermisos.filter((element) => element.Escritura === 1).map((element) => element.Seccion);\r\n let respuestaPermiso = permisos.includes(acceso);\r\n\r\n respuestaPermiso ? (respuesta = true) : (respuesta = false);\r\n\r\n return respuesta;\r\n};\r\n\r\nexport const lecturaPermitida = (acceso) => {\r\n\r\n let respuesta = 0;\r\n\r\n let userPermisos = JSON.parse( sessionStorage.getItem('usuarioBackoffice') );\r\n userPermisos = userPermisos.Permisos;\r\n\r\n let permisos = userPermisos.filter((element) => element.Lectura === 1).map((element) => element.Seccion);\r\n let respuestaPermiso = permisos.includes(acceso);\r\n\r\n respuestaPermiso ? (respuesta = true) : (respuesta = false);\r\n\r\n return respuesta;\r\n};\r\n\r\nexport const eliminacionPermitida = (acceso) => {\r\n\r\n let respuesta = 0;\r\n\r\n let userPermisos = JSON.parse( sessionStorage.getItem('usuarioBackoffice') );\r\n userPermisos = userPermisos.Permisos;\r\n\r\n let permisos = userPermisos.filter((element) => element.Eliminacion === 1).map((element) => element.Seccion);\r\n let respuestaPermiso = permisos.includes(acceso);\r\n\r\n respuestaPermiso ? (respuesta = true) : (respuesta = false);\r\n\r\n return respuesta;\r\n};\r\n","export const INICIAR_SESION_CORRECTO_BACK = \"INICIAR_SESION_CORRECTO_BACK\"\r\n\r\nexport const CERRAR_SESION_BACK = \"CERRAR_SESION_BACK\"","import clienteAxios from \"../../../configAxios/configAxios\";\r\nimport { errorSwal, loginSwal } from \"../../../helper/swalHelpers\";\r\nimport { CERRAR_SESION_BACK, INICIAR_SESION_CORRECTO_BACK } from \"../types/loginTypes\";\r\n\r\nexport const logearUsuario = (usuarioBackoffice) => {\r\n return async (dispatch) => {\r\n try {\r\n let response = await clienteAxios.post('Usuario/iniciarSesion', usuarioBackoffice);\r\n console.log(\"logearUsuario -> response\", response)\r\n\r\n if (response.status === 200) {\r\n let data = response.data.data;\r\n \r\n if (data.RSPTA === 0) {\r\n\r\n dispatch(loginExitosoBack(data))\r\n console.log(\"logearUsuario -> data\", data)\r\n\r\n window.sessionStorage.setItem(\"usuarioBackoffice\", JSON.stringify(data));\r\n \r\n loginSwal(\"Bienvenido\", \"Has iniciado sesión correctamente\", \"Ok\", \"/mantenedor/bienvenido\")\r\n return\r\n } else{\r\n \r\n errorSwal(\"Ocurrió un error\", \"Correo o contraseña incorrectos\", \"Ok\");\r\n }\r\n }\r\n\r\n } catch (error) {\r\n errorSwal(\"Ocurrió un error\", \"Ocurrió un error, por favor inténtalo de nuevo\", \"Ok\");\r\n }\r\n }\r\n};\r\n\r\nexport const loggedOut = () => {\r\n return async (dispatch) => {\r\n sessionStorage.removeItem(\"usuarioBackoffice\");\r\n dispatch(cerrarSesion());\r\n window.location.href = \"/mantenedor/login\";\r\n }\r\n}\r\n\r\nexport const guardarDatosUsuarioBackoffice = (usuarioBackoffice) => {\r\n return async (dispatch) => {\r\n dispatch(loginExitosoBack(usuarioBackoffice))\r\n }\r\n}\r\n\r\nconst cerrarSesion = () => ({\r\n type: CERRAR_SESION_BACK\r\n})\r\n\r\nconst loginExitosoBack = usuarioBackoffice => ({\r\n type: INICIAR_SESION_CORRECTO_BACK,\r\n payload: usuarioBackoffice\r\n})","\r\nimport clienteAxios from \"../../../configAxios/configAxios\"\r\nimport { errorSwal, redireccionSwal } from \"../../../helper/swalHelpers\";\r\nimport { CERRAR_SESION, INICIAR_SESION_CORRECTO } from \"../types/loginTypes\";\r\n\r\nexport const logearUsuario = (usuario) => {\r\n return async (dispatch) => {\r\n try {\r\n let response = await clienteAxios.post('Cliente/iniciarSesion', usuario);\r\n\r\n if (response.status === 200) {\r\n let data = response.data.data;\r\n if (data.RSPTA === 0) {\r\n dispatch(loginExitoso(data))\r\n window.sessionStorage.setItem(\"usuario\", JSON.stringify(data));\r\n window.location.href = \"/\";\r\n return\r\n }\r\n }\r\n errorSwal(\"Ocurrió un error\", \"Correo o contraseña incorrectos\", \"Ok\");\r\n\r\n } catch (error) {\r\n errorSwal(\"Ocurrió un error\", \"Ocurrió un error, por favor inténtalo de nuevo\", \"Ok\");\r\n }\r\n }\r\n};\r\n\r\nexport const cambiarPassword = (datos) => {\r\n return async () => {\r\n try {\r\n let response = await clienteAxios.put('Cliente/cambiarpassword', datos);\r\n\r\n if (response.status === 200) {\r\n let data = response.data.data;\r\n if (data[0].RSPTA === 0) {\r\n redireccionSwal(\"Contraseña cambiada\", \"Contraseña cambiada satisfactoriamente.\", \"Ok\", \"/perfil\")\r\n return;\r\n }\r\n }\r\n errorSwal(\"Ocurrió un error\", \"Contraseñas incorrectas\", \"Ok\");\r\n } catch (error) {\r\n errorSwal(\"Ocurrió un error\", \"Ocurrió un error, por favor inténtalo de nuevo\", \"Ok\");\r\n }\r\n }\r\n}\r\n\r\nexport const loginCarrito = (datos) => {\r\n return async (dispatch) => {\r\n try {\r\n let response = await clienteAxios.post('Cliente/iniciarSesion', datos);\r\n if (response.status === 200) {\r\n let data = response.data.data;\r\n if (data.RSPTA === 0) {\r\n dispatch(loginExitoso(data))\r\n window.sessionStorage.setItem(\"usuario\", JSON.stringify(data));\r\n return data;\r\n }\r\n }\r\n errorSwal(\"Ocurrió un error\", \"Correo o contraseña incorrectos\", \"Ok\");\r\n return false;\r\n\r\n } catch (error) {\r\n errorSwal(\"Ocurrió un error\", \"Ocurrió un error, por favor inténtalo de nuevo\", \"Ok\");\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const actualizarDatos = (datos) => {\r\n return async () => {\r\n try {\r\n let response = await clienteAxios.put('cliente/actualizar', datos);\r\n\r\n } catch (error) {\r\n\r\n }\r\n }\r\n}\r\n\r\nexport const logOut = () => {\r\n return async (dispatch) => {\r\n sessionStorage.removeItem(\"usuario\");\r\n dispatch(cerrarSesion());\r\n window.location.href = \"/\";\r\n }\r\n}\r\n\r\nexport const guardarDatosUsuario = (usuario) => {\r\n return async (dispatch) => {\r\n dispatch(loginExitoso(usuario))\r\n }\r\n}\r\n\r\nconst cerrarSesion = () => ({\r\n type: CERRAR_SESION\r\n})\r\n\r\nconst loginExitoso = usuario => ({\r\n type: INICIAR_SESION_CORRECTO,\r\n payload: usuario\r\n})\r\n\r\nexport const clienteValidarToken = (idCliente, Token) => {\r\n return async () => {\r\n let obj = {\r\n idCliente: parseInt(idCliente),\r\n Token: Token\r\n }\r\n try {\r\n let response = await clienteAxios.post('Cliente/validarToken', obj);\r\n\r\n if (response.status === 200) {\r\n let data = response.data.data;\r\n if (data.RSPTA === 0) {\r\n return data;\r\n }\r\n }\r\n errorSwal(\"Ocurrió un error\", \"Token expirado o no válido\", \"Ok\");\r\n\r\n } catch (error) {\r\n errorSwal(\"Ocurrió un error\", \"Ocurrió un error, por favor inténtalo de nuevo\", \"Ok\");\r\n }\r\n }\r\n};","export const AGREGAR_QUERY = \"AGREGAR_QUERY\"","import React from 'react';\r\n\r\nfunction LoaderContainerMobile() {\r\n\r\n return (\r\n
\r\n
\r\n
\r\n Loading...\r\n
\r\n
\r\n
\r\n )\r\n \r\n}\r\n\r\nexport default LoaderContainerMobile;","import Swal from \"sweetalert2\"\r\n\r\nimport \"../css/formulariosPredefined.css\"\r\n\r\n\r\nexport const succesSwal = (title, body, buttonText, callback) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'success',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n confirmButtonColor: '#37719f',\r\n confirmButtonText: buttonText,\r\n timer:4000\r\n }).then((result) => {\r\n if (result.isConfirmed) {\r\n if(callback) callback();\r\n }\r\n }).catch((error) => {\r\n \r\n })\r\n}\r\n\r\nexport const errorSwal = (title, body, buttonText, callback) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'error',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n confirmButtonText: buttonText,\r\n }).then(() => {\r\n if(callback) callback();\r\n })\r\n}\r\n\r\nexport const infoSwal = (title, body, buttonText, callback) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'info',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n confirmButtonText: buttonText,\r\n }).then(() => {\r\n if(callback) callback();\r\n })\r\n}\r\n\r\nexport const redireccionSwal = (title, body, buttonText, direccion) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'success',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n confirmButtonText: buttonText,\r\n }).then(() => {\r\n window.location.href = direccion\r\n })\r\n}\r\n\r\nexport const loginSwal = (title, body, buttonText, direccion) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'success',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: false,\r\n showConfirmButton: false,\r\n confirmButtonText: buttonText,\r\n timer:1500\r\n }).then(() => {\r\n window.location.href = direccion\r\n })\r\n}\r\n\r\nexport const compraSwal = (title, body) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'success',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: true,\r\n confirmButtonColor: '#37719f',\r\n cancelButtonColor: '#37719f',\r\n confirmButtonText: 'Ir al carro de compras',\r\n cancelButtonText: 'Seguir comprando',\r\n \r\n }).then((result) => {\r\n if (result.isConfirmed) {\r\n window.location.href = \"/carrito\"\r\n }\r\n }).catch((error) => {\r\n \r\n })\r\n}\r\n\r\nexport const loadingPeticion = () =>{\r\n Swal.fire({\r\n title: 'Guardando cambios',\r\n }).then((result) => {\r\n \r\n if (result.dismiss === Swal.DismissReason.timer) {\r\n console.log('I was closed by the timer')\r\n }\r\n })\r\n}\r\n\r\n\r\nexport const pasoSwal = (title, body,link) => {\r\n Swal.fire({\r\n title: `

${title}

`,\r\n icon: 'success',\r\n html:\r\n `

${body}

`,\r\n showCloseButton: false,\r\n showCancelButton: true,\r\n confirmButtonColor: '#37719f',\r\n cancelButtonColor: '#37719f',\r\n confirmButtonText: 'Ir a vehículos',\r\n cancelButtonText: 'Continuar',\r\n \r\n }).then((result) => {\r\n if (result.isConfirmed) {\r\n window.location.href = `/mantenedor/${link}`\r\n }\r\n }).catch((error) => {\r\n \r\n })\r\n}","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.0/8 are considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' },\r\n })\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready\r\n .then(registration => {\r\n registration.unregister();\r\n })\r\n .catch(error => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Route, Redirect } from \"react-router-dom\";\r\nimport { rolesPermitidos } from \"../helper/loginValidation\";\r\n\r\n// const PrivateRouteAdmin = ({ permisos: Permisos, component: Component, ...props }) => {\r\nconst PrivateRouteAdmin = ({ permisos: Permisos, component: Component, ...props }) => {\r\n\r\n //Revisamos si el usuario esta loggeado\r\n const logged = JSON.parse( sessionStorage.getItem('usuarioBackoffice') );\r\n\r\n return (\r\n logged !== null ? (\r\n rolesPermitidos(Permisos) ? (\r\n \r\n ) : (\r\n //Si no esta loggeado lo redireccionamos al home\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 PrivateRouteAdmin;","import React from \"react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { Route, Redirect } from \"react-router-dom\";\r\n\r\nconst RutaPrivada = ({ component: Component, ...props }) => {\r\n //Revisamos si el usuario esta loggeado\r\n const logged = useSelector((state) => state.login.autenticado);\r\n\r\n return (\r\n logged === false ? (\r\n //Si no esta loggeado lo redireccionamos al home\r\n \r\n\r\n ) : (\r\n //Si esta loggeado lo llevamos a la ruta que especificamos en el Ruteo\r\n \r\n )\r\n }\r\n />\r\n );\r\n};\r\n\r\nexport default RutaPrivada;\r\n","import { useEffect } from 'react';\r\nimport { useLocation } from 'react-router-dom';\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nfunction ScrollToTop() {\r\n const { pathname } = useLocation();\r\n\r\n useEffect(() => {\r\n window.scrollTo(0, 0);\r\n }, [pathname]);\r\n\r\n return null;\r\n}\r\n\r\nexport default ScrollToTop;\r\n","import React from 'react';\r\nimport { Redirect, Route } from \"react-router-dom\";\r\n\r\nfunction RedirectWithStatus({ from, to, status }) {\r\n return (\r\n {\r\n // there is no `staticContext` on the client, so\r\n // we need to guard against that here\r\n if (staticContext) staticContext.status = status;\r\n return ;\r\n }}\r\n />\r\n );\r\n }\r\n\r\n export default RedirectWithStatus","import React, { Suspense, lazy } from 'react';\r\nimport { useDispatch } from 'react-redux';\r\nimport { guardarDatosUsuario } from '../Front/redux/actions/loginActions';\r\nimport { BrowserRouter, Redirect, Route, Switch } from \"react-router-dom\";\r\nimport LoaderContainerMobile from \"../Front/components/loader/LoaderContainerMobile\";\r\nimport { guardarDatosUsuarioBackoffice } from '../BackOffice/redux/actions/loginActions';\r\nimport PrivateRouteAdmin from \"../privateRoute/privateRouteAdmin\";\r\nimport RutaPrivada from \"../privateRoute\";\r\nimport ScrollToTop from \"../Front/components/ScrollToTop\";\r\nimport RedirectWithStatus from \"./redirectStatus\";\r\n\r\nconst Home = lazy(() => import(\"../Front/views/home/home\"));\r\nconst LoginPersonas = lazy(() => import(\"../Front/views/login/loginPersonas\"));\r\nconst RecuperarPassword = lazy(() => import('../Front/views/login/recuperarPassword'));\r\nconst ReiniciarPassword = lazy(() => import('../Front/views/login/reiniciarPassword'));\r\nconst AgendarServicio = lazy(() => import(\"../Front/views/agendarServicio/agendarServicio\"));\r\nconst AgendarServicioSlug = lazy(() => import(\"../Front/views/agendarServicioSlug/agendarServicioSlug\"));\r\nconst PaginaError = lazy(() => import(\"../Front/views/404/paginaError\"));\r\nconst Buscar = lazy(() => import(\"../Front/views/buscar/buscar\"));\r\nconst Perfil = lazy(() => import(\"../Front/views/perfil/perfil\"));\r\nconst Registrarse = lazy(() => import(\"../Front/views/registrarse/registrarse\"));\r\nconst Contactanos = lazy(() => import(\"../Front/views/contactanos/contactanos\"));\r\nconst Noticia = lazy(() => import(\"../Front/views/noticia/noticia\"));\r\nconst Flotas = lazy(() => import(\"../Front/views/flotas/flotas\"));\r\nconst Nosotros = lazy(() => import(\"../Front/views/nosotros/nosotros\"));\r\nconst FichaModelo = lazy(() => import(\"../Front/views/fichaModelo/fichaModelo\"));\r\nconst Vehiculos = lazy(() => import(\"../Front/views/vehiculos/vehiculos\"));\r\nconst Cotizar = lazy(() => import(\"../Front/views/cotizar\"));\r\nconst FichaRepuesto = lazy(() => import(\"../Front/views/fichaRepuesto/fichaRepuesto\"));\r\nconst FichaVehiculo = lazy(() => import(\"../Front/views/fichaVehiculo/fichaVehiculo\"));\r\nconst Outlet = lazy(() => import(\"../Front/views/outlet/outlet\"));\r\nconst PublicacionPrensa = lazy(() => import(\"../Front/views/publicacionPrensa/publicacionPrensa\"));\r\nconst Prensa = lazy(() => import(\"../Front/views/prensa/prensa\"));\r\nconst FichaMercadoPublico = lazy(() => import(\"../Front/views/fichaMercadoPublico/fichaMercadoPublico\"));\r\nconst MercadoPublico = lazy(() => import(\"../Front/views/mercadoPublico/mercadoPublico\"));\r\nconst ServicioTecnico = lazy(() => import(\"../Front/views/servicioTecnico/servicioTecnico\"));\r\nconst AtencionCliente = lazy(() => import(\"../Front/views/atencionCliente/atencionCliente\"));\r\nconst Concesionarios = lazy(() => import(\"../Front/views/concesionario/Concesionarios\"));\r\nconst Concesionario = lazy(() => import(\"../Front/views/concesionario/Ficha\"))\r\nconst Politicas = lazy(() => import(\"../Front/views/politicas/politicas\"));\r\nconst Carrito = lazy(() => import(\"../Front/views/carrito\"));\r\nconst CarritoFinalizado = lazy(() => import(\"../Front/views/carrito/finalizado/carritoFinalizado\"));\r\nconst CarritoRechazado = lazy(() => import(\"../Front/views/carrito/rechazado/carritoRechazado\"));\r\nconst SolicitarGarantia = lazy(() => import(\"../Front/views/solicitarGarantia\"))\r\nconst Repuestos = lazy(() => import(\"../Front/views/repuestos\"))\r\nconst SolicitarRepuesto = lazy(() => import(\"../Front/views/solicitarRepuesto\"))\r\nconst Listo = lazy(() => import(\"../Front/views/cotizar/listo\"));\r\nconst Rechazado = lazy(() => import(\"../Front/views/cotizar/rechazado/rechazado\"));\r\nconst Login = lazy(() => import(\"../BackOffice/view/login/Login\"));\r\n\r\nconst Oficinas = lazy(() => import(\"../BackOffice/view/Mantenedores/oficina/oficinas\"));\r\nconst NuevaOficina = lazy(() => import(\"../BackOffice/view/Mantenedores/oficina/nuevaOficina\"));\r\nconst EditarOficina = lazy(() => import(\"../BackOffice/view/Mantenedores/oficina/editarOficina\"));\r\nconst ContactanosBackoffice = lazy(() => import(\"../BackOffice/view/Mantenedores/contactanos/contactanos\"));\r\n\r\nconst WhitePage = lazy(() => import(\"../BackOffice/view/Mantenedores/whitePage/whitePage\"));\r\nconst servicioCliente = lazy(() => import(\"../BackOffice/view/Mantenedores/servicioCliente/servicioCliente\"));\r\nconst servicioTecnicoF = lazy(() => import(\"../BackOffice/view/Mantenedores/servicioTecnicoF/contenedor\"));\r\nconst concesionarioF = lazy(() => import(\"../BackOffice/view/Mantenedores/concesionarioF/agendaServicio\"));\r\nconst flotasF = lazy(() => import(\"../BackOffice/view/Mantenedores/flotasF/flotasF\"));\r\nconst mercadoPublicoF = lazy(() => import(\"../BackOffice/view/Mantenedores/mercadoPublicoF/mercadoPublicoF\"));\r\nconst repuestosF = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestosF/contenedor\"));\r\nconst Cotizaciones = lazy(() => import(\"../BackOffice/view/Mantenedores/cotizaciones/cotizaciones\"));\r\nconst cotizadorRepuesto = lazy(() => import(\"../BackOffice/view/Mantenedores/cotizadorRepuesto/cotizadorRepuesto\"));\r\nconst cotizadorMantencion = lazy(() => import(\"../BackOffice/view/Mantenedores/cotizadorMantencion/cotizadorMantencion\"));\r\nconst UsuariosF = lazy(() => import(\"../BackOffice/view/Mantenedores/usuariosRegistrados/usuariosRegistrados\"));\r\nconst editarUsuarioF = lazy(() => import(\"../BackOffice/view/Mantenedores/usuariosRegistrados/editarUsuarioF/editarUsuarioF\"));\r\nconst UsuariosRegistrados = lazy(() => import(\"../BackOffice/view/Mantenedores/usuarios/usuariosRegistrados\"));\r\nconst PerfilesF = lazy(() => import(\"../BackOffice/view/Mantenedores/perfiles/perfiles\"));\r\nconst crearPerfilF = lazy(() => import(\"../BackOffice/view/Mantenedores/perfiles/crearPerfil/crearPerfil\"));\r\nconst editarPerfilF = lazy(() => import(\"../BackOffice/view/Mantenedores/perfiles/editarPerfil/editarPerfil\"));\r\nconst CrearUsuarioF = lazy(() => import(\"../BackOffice/view/Mantenedores/usuariosRegistrados/crearUsuarioF/crearUsuarioF\"));\r\nconst ConcesionariosHome = lazy(() => import(\"../BackOffice/view/Mantenedores/concesionario/Concesionarios\"));\r\nconst Historias = lazy(() => import(\"../BackOffice/view/Mantenedores/historias/historias\"));\r\nconst HistoriasNew = lazy(() => import(\"../BackOffice/view/Mantenedores/historias/crearHistoria/crearHistoria\"));\r\nconst HistoriasEditar = lazy(() => import(\"../BackOffice/view/Mantenedores/historias/editarHistoria/editarHistoria\"));\r\nconst Noticias = lazy(() => import(\"../BackOffice/view/Mantenedores/noticias/noticias\"));\r\nconst NoticiasNew = lazy(() => import(\"../BackOffice/view/Mantenedores/noticias/crearNoticia/crearNoticia\"));\r\nconst NoticiasEditar = lazy(() => import(\"../BackOffice/view/Mantenedores/noticias/editarNoticia/editarNoticia\"));\r\nconst Clientes = lazy(() => import(\"../BackOffice/view/Mantenedores/clientes/clientes\"));\r\nconst ClientesNew = lazy(() => import(\"../BackOffice/view/Mantenedores/clientes/crearCliente/crearCliente\"));\r\nconst ClientesEditar = lazy(() => import(\"../BackOffice/view/Mantenedores/clientes/editarCliente/editarCliente\"));\r\nconst Banner = lazy(() => import(\"../BackOffice/view/Mantenedores/banner/bannerSlider\"));\r\nconst MantenedorFlotas = lazy(() => import(\"../BackOffice/view/Mantenedores/flotas/flotasIndex\"));\r\nconst MantenedorFlotasNuevoContenido = lazy(() => import(\"../BackOffice/view/Mantenedores/flotas/nuevoContenido\"));\r\nconst MantenedorFlotasEditarContenido = lazy(() => import(\"../BackOffice/view/Mantenedores/flotas/editarContenido\"));\r\nconst ServicioTecnicoSos = lazy(() => import(\"../BackOffice/view/Mantenedores/servicioTecnico/sos\"));\r\nconst SosNuevoContenido = lazy(() => import(\"../BackOffice/view/Mantenedores/servicioTecnico/nuevoContenido\"));\r\nconst SosEditarContenido = lazy(() => import(\"../BackOffice/view/Mantenedores/servicioTecnico/editarContenido\"));\r\nconst Recalls = lazy(() => import('../BackOffice/view/Mantenedores/servicioTecnico/recalls'));\r\nconst RepuestosTodos = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestos/todos\"));\r\nconst VehiculosMantenedor = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculos\"));\r\nconst CrearVehiculo = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculos/crear\"));\r\nconst EditarVehiculo = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculos/editar\"));\r\nconst DuplicarVehiculo = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculos/duplica\"));\r\nconst OutletMantenedor = lazy(() => import(\"../BackOffice/view/Mantenedores/outlet\"));\r\n\r\nconst CrearVehiculoOutlet = lazy(() => import(\"../BackOffice/view/Mantenedores/outlet/crear\"));\r\nconst NuevoRepuesto = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestos/nuevoRepuesto\"));\r\nconst CopiaRepuesto = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestos/copiaRepuesto\"));\r\nconst EditarRepuesto = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestos/editarRepuesto\"));\r\nconst OutletRepuestos = lazy(() => import(\"../BackOffice/view/Mantenedores/outletRepuestos/repuestos\"));\r\nconst NuevoRepuestoOutlet = lazy(() => import(\"../BackOffice/view/Mantenedores/outletRepuestos/nuevoRepuesto\"));\r\nconst EditarRepuestoOutlet = lazy(() => import(\"../BackOffice/view/Mantenedores/outletRepuestos/editarRepuesto\"));\r\nconst CopiaRepuestoOutlet = lazy(() => import(\"../BackOffice/view/Mantenedores/outletRepuestos/copiaRepuestoOutlet\"));\r\nconst HomeMantenedor = lazy(() => import(\"../BackOffice/view/Mantenedores/home/home\"));\r\nconst TransaccionesRepuestos = lazy(() => import(\"../BackOffice/view/Mantenedores/repuestosTransacciones/transacciones\"));\r\nconst ReservaLead = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculosTransaccionesOutlet/reservaLead\"));\r\nconst ReservaEnLinea = lazy(() => import(\"../BackOffice/view/Mantenedores/vehiculosTransaccionesOutlet/reservaEnLinea\"));\r\nconst GarantiaMantencion = lazy(() => import('../BackOffice/view/Mantenedores/garantiaMantencion/garantiaMantencion'));\r\nconst NuevaGarantiaMantencion = lazy(() => import('../BackOffice/view/Mantenedores/garantiaMantencion/nuevaGarantiaMantencion'));\r\nconst EditarGarantiaMantencion = lazy(() => import('../BackOffice/view/Mantenedores/garantiaMantencion/editarGarantiaMantencion'));\r\nconst CopiarGarantiaMantencion = lazy(() => import('../BackOffice/view/Mantenedores/garantiaMantencion/copiarGarantiaMantencion'));\r\nconst PoliticasSeguridad = lazy(() => import(\"../BackOffice/view/Mantenedores/politicasTerminos/politicas\"));\r\nconst DerechoRetracto = lazy(() => import('../BackOffice/view/Mantenedores/derechoRetracto/derechoRetracto'));\r\nconst TerminosCondiciones = lazy(() => import(\"../BackOffice/view/Mantenedores/politicasTerminos/terminos\"));\r\nconst MercadoPublicoCrear = lazy(() => import('../BackOffice/view/Mantenedores/mercadoPublico/crear/index'));\r\nconst Footer = lazy(() => import('../BackOffice/view/Mantenedores/footer/footer'))\r\n\r\nconst Routes = () => {\r\n const dispatch = useDispatch();\r\n\r\n if (localStorage.getItem('productos') === null) {\r\n localStorage.setItem('productos', JSON.stringify([]))\r\n }\r\n else {\r\n let car = JSON.parse(localStorage.getItem('productos')) !== null ? JSON.parse(localStorage.getItem('productos')) : [];\r\n let isVehiculo = car.some(producto => producto.tipo === \"vehiculo\");\r\n if (isVehiculo === true) localStorage.setItem('productos', JSON.stringify([]));\r\n }\r\n\r\n if (sessionStorage.getItem('usuario')) {\r\n let user = JSON.parse(sessionStorage.getItem('usuario'));\r\n\r\n const ingresarUsuario = usuario => dispatch(guardarDatosUsuario(usuario));\r\n ingresarUsuario(user);\r\n }\r\n\r\n if (sessionStorage.getItem('usuarioBackoffice')) {\r\n let userBackoffice = JSON.parse(sessionStorage.getItem('usuarioBackoffice'));\r\n\r\n const ingresarUsuarioBackoffice = usuarioBackoffice => dispatch(guardarDatosUsuarioBackoffice(usuarioBackoffice));\r\n ingresarUsuarioBackoffice(userBackoffice);\r\n }\r\n\r\n return (\r\n \r\n \r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\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 {/* OUTLET OFF */}\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 {/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}\r\n {/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}{/* BackOffice */}\r\n\r\n \r\n \r\n\r\n {/* PANTALLAS */}\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 import('../BackOffice/view/Mantenedores/mercadoPublico/index'))}/>\r\n \r\n import('../BackOffice/view/Mantenedores/mercadoPublico/editar/index'))}/>\r\n import('../BackOffice/view/Mantenedores/mercadoPublico/duplicar/index'))}/>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* PANTALLAS */}\r\n\r\n {/* OUTLET */}\r\n import('../BackOffice/view/Mantenedores/outletTodos/index'))}/>\r\n \r\n \r\n import('../BackOffice/view/Mantenedores/outlet/editar/index'))}/>\r\n import('../BackOffice/view/Mantenedores/outlet/duplicar/index'))}/>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* OUTLET */}\r\n\r\n {/* FORMULARIOS */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* USUARIOS CLIENTES REGISTRADOS */}\r\n {/* FORMULARIOS */}\r\n\r\n {/* CONFIGURACION */}\r\n {/* USUARIOS HYUNDAI */}\r\n \r\n \r\n \r\n \r\n \r\n {/* CONFIGURACION */}\r\n\r\n {/* OTROS */}\r\n \r\n \r\n \r\n \r\n {/* OTROS */}\r\n\r\n \r\n\r\n {/* REDIRECT 301 */}\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\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 Routes;\r\n","import { CERRAR_SESION, INICIAR_SESION_CORRECTO } from \"../types/loginTypes\";\r\n\r\nconst initialState = {\r\n autenticado: false,\r\n user:{}\r\n}\r\n\r\nexport default function(state = initialState, action){\r\n switch (action.type) {\r\n case INICIAR_SESION_CORRECTO:\r\n return{\r\n ...state,\r\n autenticado: true,\r\n user: action.payload\r\n }\r\n case CERRAR_SESION:\r\n return{\r\n autenticado: false,\r\n user:{}\r\n }\r\n default:\r\n return state;\r\n }\r\n}","import { AGREGAR_QUERY } from \"../types/queryTypes\";\r\n\r\nconst initialState = {\r\n search: \"\"\r\n}\r\n\r\nexport default function(state = initialState, action){\r\n switch (action.type) {\r\n case AGREGAR_QUERY:\r\n return{\r\n ...state,\r\n search: action.payload\r\n }\r\n default:\r\n return state;\r\n }\r\n}","import { combineReducers } from \"redux\";\r\nimport loginReducer from \"./loginReducer\";\r\nimport queryReducer from \"./queryReducer\";\r\n\r\n\r\nexport default combineReducers({\r\n login: loginReducer,\r\n query: queryReducer\r\n})","import { createStore, applyMiddleware } from \"redux\";\r\nimport thunk from \"redux-thunk\";\r\nimport { composeWithDevTools } from \"redux-devtools-extension\";\r\n\r\nimport rootReducer from \"../reducers/index\";\r\n\r\nconst initialState = {};\r\nconst middleware = [thunk];\r\n\r\nconst store = createStore(\r\n rootReducer,\r\n initialState,\r\n composeWithDevTools(applyMiddleware(...middleware))\r\n);\r\n\r\nexport default store;\r\n","import React from 'react';\r\nimport ReactDOM from \"react-dom\";\r\nimport \"slick-carousel/slick/slick.css\";\r\nimport \"slick-carousel/slick/slick-theme.css\";\r\nimport \"./index.css\";\r\nimport './css/global.css';\r\nimport \"../node_modules/bootstrap/dist/css/bootstrap.css\";\r\nimport 'antd/dist/antd.css';\r\nimport 'lazysizes/lazysizes';\r\nimport * as serviceWorker from \"./serviceWorker\";\r\nimport Routes from \"./routes\";\r\nimport { Provider } from 'react-redux';\r\nimport store from './Front/redux/store/store';\r\nimport TagManager from 'react-gtm-module';\r\nimport Cookies from 'js-cookie'\r\n\r\nlet hcbCookies = Cookies.get('hcb-cookie');\r\n\r\nif (!hcbCookies){\r\n Cookies.set('hcb-analytics', true)\r\n Cookies.set('hcb-marketing', true)\r\n}\r\n\r\nconst tagManagerArgs = {\r\n gtmId: 'GTM-PS2FSH2'\r\n}\r\n\r\nTagManager.initialize(tagManagerArgs)\r\n\r\nReactDOM.render(\r\n \r\n \r\n , document.getElementById(\"contenedor-general\")\r\n );\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();"],"sourceRoot":""}