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

package.cjs.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":["_react","_interopRequireWildcard","require","_dompurify","_Button","_interopRequireDefault","_Typography","_ramda","_reactI18next","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","FallbackComponentImage","props","jsxs","children","jsx","d","fill","defaultProps","width","height","viewBox","xmlns","FallbackComponent","_useTranslation","useTranslation","useEffect","listener","_e$target","isNil","state","window","location","href","sanitize","target","addEventListener","removeEventListener","className","component","style","weight","Trans","i18nKey","components","reloading","onClick","reload","contactus","_window$NeetoChat","_window$NeetoChat$con","_window$NeetoChat2","_window$NeetoChat2$co","NeetoChat","contextualHelp","maximizeWidget","openWidget","_default","exports"],"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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAAqC,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAAA,IAAAI,WAAA,GAAAD,sBAAA,CAAAH,OAAA;AAErC,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAAsD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA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