All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.react-utils.HoneybadgerErrorBoundary.FallbackComponent.js.map Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
{"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 window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n }}\n />\n ),\n }}\n />\n \n
\n
\n );\n};\n\nexport default FallbackComponent;\n"],"mappings":";;;;AAAA,SAASA,SAAS,QAAQ,OAAO;AAAC,IAE3BC,sBAAsB,YAAtBA,sBAAsBA,CAAAC,KAAA;EAAA,oBAA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