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GAxC,EAAYC,EAAOoC,EACrB,CAEAM,MAAAA,GACE,MAAM,SAAET,EAAQ,iBAAEM,GAAqBR,KAAKC,MAE5C,OAAIC,EACKlF,EAAAA,cAACqE,EAAY,CAAC1C,IAAI,QAAQ6D,iBAAkBA,IAE9CR,KAAK1C,MAAMN,QACpB,EAGF,Q,wJC3EA,MAAM4D,EAAS5F,EAAAA,MAAW,IAAM,2EAE1B6F,EAAkDA,MAEtDnD,EAAAA,EAAAA,YAAU,KACR,MAAMoD,EAAUA,IAAOhD,OAAeiD,UAAUC,KAAK,CAAEC,MAAOC,EAAAA,GAAYC,eAE1E,OADArD,OAAOsD,iBAAiB,cAAeN,GAChC,IAAMhD,OAAOuD,oBAAoB,cAAeP,EAAQ,GAC9D,IAGD9F,EAAAA,cAACsG,EAAAA,EAAK,KACJtG,EAAAA,cAACuG,EAAAA,EAAwB,CAACC,YAAaC,EAAAA,GACrCzG,EAAAA,cAAC0G,EAAAA,EAAoB,KACnB1G,EAAAA,cAAC6E,EAAuB,KACtB7E,EAAAA,cAAC2G,EAAAA,GAAW,MACZ3G,EAAAA,cAAC4G,EAAAA,EAAS,MACV5G,EAAAA,cAAC6G,EAAAA,GAAM,CAACC,SAAS,KACf9G,EAAAA,cAAC+G,EAAAA,GAAkB,CAACC,iBAAkBC,EAAAA,IACpCjH,EAAAA,cAAC+B,EAAAA,EAAc,CAAClC,OAAO,cAAcsC,SAAU+E,EAAAA,GAC7ClH,EAAAA,cAAC4F,EAAM,cAgBzBuB,SAASf,iBAAiB,oBAAoB,KAC5C,MAAMxC,EAAOuD,SAASC,cAAc,WAChCxD,GAPcA,MACAyD,EAAAA,EAAAA,GAAWzD,GACnB+B,OAAO3F,EAAAA,cAAC6F,EAAG,MAAI,EAMvByB,CAAW1D,EACb,G","sources":["webpack://hnmi/./app/webpacker/Routes/BlockFallback.tsx","webpack://hnmi/./app/webpacker/Routes/OverlayFallback.tsx","webpack://hnmi/./app/webpacker/Routes/RouterSuspense.tsx","webpack://hnmi/./app/webpacker/Environment/logToSentry.tsx","webpack://hnmi/./app/webpacker/Environment/ErrorHandler.tsx","webpack://hnmi/./app/webpacker/packs/application.tsx"],"sourcesContent":["import React from \"react\";\nimport { CircularProgress, Box, BoxProps } from \"@mui/material\";\n\nexport type RoutesBlockFallbackProps = {\n source?: string;\n fullHeight?: boolean;\n} & BoxProps;\n\nconst RoutesBlockFallback: React.FC> = ({\n source,\n fullHeight = false,\n ...boxProps\n}) => {\n // console.log('LOADING: ' + source)\n return (\n \n \n {/* {source && {source}} */}\n \n );\n};\n\nexport default React.memo(RoutesBlockFallback) as typeof RoutesBlockFallback;\n","import React from \"react\";\nimport { CircularProgress, Backdrop, Box } from \"@mui/material\";\nimport { makeStyles } from \"tss-react/mui\";\n\nexport type RoutesOverlayFallbackProps = {\n source?: string;\n};\n\nconst useStyles = makeStyles()(({ zIndex, palette }) => ({\n backdrop: {\n zIndex: zIndex.drawer + 1,\n color: palette.primary.main,\n backgroundColor: \"#fff\",\n },\n}));\n\nconst RoutesOverlayFallback: React.FC> = () =>\n // {\n // source,\n // }\n {\n const { classes } = useStyles();\n // console.log('LOADING: ' + source)\n return (\n \n \n \n {/* {source && {source}} */}\n \n \n );\n };\n\nexport default React.memo(RoutesOverlayFallback) as typeof RoutesOverlayFallback;\n","import React, {\n Suspense,\n useEffect,\n useState,\n ComponentType,\n PropsWithChildren,\n ComponentProps,\n} from \"react\";\n\nimport OverlayFallback from \"./OverlayFallback\";\n\ntype RouterSuspenseProps>> = {\n source?: string;\n pause?: boolean;\n wait?: number;\n fallback?: T;\n} & ComponentProps;\n\n// TODO: Revert this pause behavior after dev work\nconst RouterSuspense = >>({\n children,\n pause = false,\n // wait = 2000,\n wait,\n fallback: FallbackComponent = OverlayFallback,\n ...props\n}: PropsWithChildren>): JSX.Element => {\n const [show, setShow] = useState(!(pause || wait));\n\n useEffect(() => {\n if (!pause && wait && wait > 0) setTimeout(() => setShow(true), wait);\n }, []); // eslint-disable-line\n\n if (!show) return ;\n return }>{children};\n};\n\nexport default RouterSuspense;\n","const sentry = window.Sentry;\n\nconst logToSentry = (error: Error, errorInfo?: Record) => {\n if (!sentry) {\n return;\n }\n sentry.withScope(function (scope) {\n if (errorInfo) {\n Object.keys(errorInfo).forEach((key) => {\n scope.setExtra(key, String(errorInfo[key]));\n });\n }\n sentry.captureException(error);\n });\n};\n\nexport default logToSentry;\n","import { Button, Paper } from \"@mui/material\";\nimport { makeStyles } from \"tss-react/mui\";\nimport { ErrorOutlineTwoTone as ErrorIcon } from \"@mui/icons-material\";\nimport { ReactNodeLike } from \"prop-types\";\nimport React, { ErrorInfo } from \"react\";\nimport logToSentry from \"./logToSentry\";\nimport { CSSObject } from \"@emotion/react\";\n\ntype State = {\n hasError: boolean;\n httpResponseCode?: number;\n};\ntype Props = {\n children: ReactNodeLike;\n};\n\ntype MyError = Error & {\n networkError?: {\n response?: Response;\n };\n};\n\nconst useStyles = makeStyles()(({ typography, spacing }) => ({\n root: {\n display: \"flex\",\n alignItems: \"flex-start\",\n padding: spacing(3),\n marginTop: spacing(5),\n marginLeft: \"auto\",\n marginRight: \"auto\",\n maxWidth: 500,\n ...(typography.h6 as CSSObject),\n },\n icon: {\n marginRight: spacing(2),\n },\n message: {\n flexGrow: 1,\n },\n}));\n\nconst ErrorMessage: React.FC> = () => {\n const { classes } = useStyles();\n\n const message =\n \"We're sorry but something went wrong. We've been notified about this issue and we'll take a look at it shortly.\";\n return (\n \n
\n \n
\n
\n
{message}
\n
\n \n
\n
\n
\n );\n};\n\nclass EnvironmentErrorHandler extends React.Component {\n constructor(props: Props) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: MyError, info?: ErrorInfo) {\n if (error.networkError?.response) {\n const httpResponseCode = error.networkError?.response?.status;\n this.setState({ httpResponseCode });\n }\n\n //@ts-ignore\n logToSentry(error, info);\n }\n\n render() {\n const { hasError, httpResponseCode } = this.state;\n\n if (hasError) {\n return ;\n }\n return this.props.children;\n }\n}\n\nexport default EnvironmentErrorHandler;\n","import \"core-js/stable\"; //IE 11\nimport EnvironmentErrorHandler from \"Environment/ErrorHandler\";\nimport React, { useEffect } from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport { QueryParamProvider } from \"use-query-params\";\nimport { BrowserRouter as Router, Route } from \"react-router-dom\";\nimport Theme from \"Theme\";\nimport CssBaseline from \"@mui/material/CssBaseline\";\nimport { LocalizationProvider as DateLocalizationProvider } from \"@mui/x-date-pickers/LocalizationProvider\";\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\nimport \"whatwg-fetch\";\n\nimport PageTitle from \"Components/PageTitle\";\n// import Routes from \"Routes\";\nimport RouterSuspense from \"Routes/RouterSuspense\";\nimport BlockFallback from \"Routes/BlockFallback\";\nimport LocalizationProvider from \"Localization/LocalizationProvider\";\nimport { GtmTriggers } from \"types\";\nconst Routes = React.lazy(() => import(\"Routes\"));\n\nconst App: React.FC> = () => {\n // GTM Print via browser\n useEffect(() => {\n const handler = () => (window as any).dataLayer.push({ event: GtmTriggers.BrowserPrint });\n window.addEventListener(\"beforeprint\", handler);\n return () => window.removeEventListener(\"beforeprint\", handler);\n }, []);\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nconst renderRoot = (root: Element) => {\n const container = createRoot(root);\n container.render();\n};\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n const root = document.querySelector(\"#j-root\");\n if (root) {\n renderRoot(root);\n }\n});\n"],"names":["RoutesBlockFallback","source","fullHeight","boxProps","React","Box","Object","assign","sx","display","flexDirection","justifyContent","alignItems","flexGrow","height","undefined","CircularProgress","color","size","useStyles","makeStyles","zIndex","palette","backdrop","drawer","primary","main","backgroundColor","RoutesOverlayFallback","classes","Backdrop","key","open","transitionDuration","className","RouterSuspense","children","pause","wait","fallback","FallbackComponent","OverlayFallback","props","show","setShow","useState","useEffect","setTimeout","Suspense","sentry","window","Sentry","logToSentry","error","errorInfo","withScope","scope","keys","forEach","setExtra","String","captureException","typography","spacing","root","padding","marginTop","marginLeft","marginRight","maxWidth","h6","icon","message","ErrorMessage","Paper","ErrorIcon","Button","variant","onClick","location","reload","EnvironmentErrorHandler","constructor","super","this","state","hasError","getDerivedStateFromError","componentDidCatch","info","networkError","response","httpResponseCode","status","setState","render","Routes","App","handler","dataLayer","push","event","GtmTriggers","BrowserPrint","addEventListener","removeEventListener","Theme","DateLocalizationProvider","dateAdapter","AdapterDateFns","LocalizationProvider","CssBaseline","PageTitle","Router","basename","QueryParamProvider","ReactRouterRoute","Route","BlockFallback","document","querySelector","createRoot","renderRoot"],"sourceRoot":""}