\r\n Sorry, the page you are looking for might have been removed, had its name changed or is\r\n temporarily unavailable.\r\n
\r\n
\r\n Either check the URL, go home, or feel free to report the issue.\r\n
\r\n
\r\n
\r\n);\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { routes } from '../../constants';\r\nimport image500 from '../../images/errorPages/500.svg';\r\n\r\nexport const Internal = () => (\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Error: Unexpected Error
\r\n
\r\n Oops... Something went wrong at our end. We've been notified and fixing the issue.\r\n
\r\n
\r\n Either check the URL, go home, or feel free to report the issue.\r\n
\r\n
\r\n
\r\n);\r\n","import React, { Component } from 'react';\r\nimport { Redirect } from 'react-router';\r\nimport { connect } from 'react-redux';\r\nimport { errorActions as actions, errorActions } from '../../actions';\r\nimport { routes } from '../../constants';\r\nimport { logger } from '../../logging/logger';\r\nimport { history } from '../../history';\r\n\r\nclass Shield extends Component {\r\n componentDidCatch = error => this.props.dispatch(actions.criticalError(error));\r\n\r\n componentDidUpdate = () => {\r\n const { dispatch, error } = this.props;\r\n if (error && error.criticalError) {\r\n dispatch(actions.resetError());\r\n }\r\n }\r\n\r\n render = () => {\r\n const { criticalError, error = {} } = this.props.error;\r\n if (criticalError && !errorActions.isRequestCancelationError(error)) { // skip request cancelation errors\r\n logger.exception(error, 'Critical error');\r\n\r\n let pathname;\r\n switch (+error.status) {\r\n case 401: pathname = history.location.pathname === routes.login ? '' : routes.logout; break;\r\n case 403: pathname = routes.forbidden; break;\r\n case 404: pathname = routes.notFound; break;\r\n default: pathname = routes.internal; break;\r\n }\r\n\r\n if (pathname) {\r\n return \r\n }\r\n }\r\n\r\n return this.props.children;\r\n }\r\n}\r\n\r\nconst mapStateToProps = ({error}) => ({ error });\r\n\r\nconst connectedShield = connect(mapStateToProps)(Shield);\r\n\r\nexport { connectedShield as Shield };\r\n","import React from 'react';\r\nimport { Link } from 'react-router-dom';\r\nimport { routes } from '../../constants';\r\nimport image403 from '../../images/errorPages/403.svg';\r\n\r\nexport const Forbidden = () => (\r\n
\r\n
\r\n
\r\n \r\n
\r\n
Error: Access Forbidden
\r\n
\r\n Sorry, access to this resource is denied.\r\n
\r\n
\r\n Either check the URL, go home, or feel free to report the issue.\r\n