package.react-utils.HoneybadgerErrorBoundary.FallbackComponent.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"FallbackComponent.js","names":["useEffect","FallbackComponentImage","props","_jsxs","_objectSpread","children","_jsx","d","fill","defaultProps","width","height","viewBox","xmlns","sanitize","Button","Typography","isNil","Trans","useTranslation","jsx","jsxs","FallbackComponent","_useTranslation","t","listener","e","_e$target","state","window","location","href","target","addEventListener","removeEventListener","className","component","style","weight","i18nKey","components","reloading","onClick","reload","contactus","_window$NeetoChat","_window$NeetoChat$con","_window$NeetoChat2","_window$NeetoChat2$co","NeetoChat","contextualHelp","maximizeWidget","openWidget"],"sources":["../../../src/react-utils/HoneybadgerErrorBoundary/FallbackComponent.jsx"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport FallbackComponentImage from \"assets/images/fallback-component.svg\";\nimport { sanitize } from \"dompurify\";\nimport { Button, Typography } from \"neetoui\";\nimport { isNil } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nconst FallbackComponent = () => {\n const { t } = useTranslation();\n\n useEffect(() => {\n const listener = e => {\n if (isNil(e.state)) return;\n window.location.href = sanitize(e.target?.location.href);\n };\n window.addEventListener(\"popstate\", listener);\n\n return () => window.removeEventListener(\"popstate\", listener);\n }, []);\n\n return (\n \n \n \n \n \n \n {t(\"neetoCommons.fallbackComponent.somethingWentWrong\")}\n \n \n window.location.reload()} />\n ),\n contactus: (\n \n \n \n );\n};\n\nexport default FallbackComponent;\n"],"mappings":";;;;AAAA,SAASA,SAAS,QAAQ,OAAO;AAAC,IAE3BC,sBAAsB,YAAtBA,sBAAsBA,CAAAC,KAAA;EAAA,oBAAAC,KAAA,QAAAC,aAAA,CAAAA,aAAA,KAAAF,KAAA;IAAAG,QAAA,gBAAAC,IAAA;MAAAC,CAAA;MAAA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