{"version":3,"file":"Error.mjs","sources":["../../../../../../../../../../web/src/ui/b2c/screens/Crypto/Error.tsx"],"sourcesContent":["import { useLingui } from '@lingui/react/macro';\nimport React from 'react';\n\nimport Button from '../../../components/atoms/Button';\nimport Column from '../../../components/atoms/Column';\nimport TextColumn from '../../../components/molecules/TextColumn';\nimport { AppScreens, useGlobalReducer } from '../../GlobalContextProvider';\n\nexport const Error = () => {\n  const { t } = useLingui();\n  const [, dispatch] = useGlobalReducer();\n\n  return (\n    <Column gap={6}>\n      <TextColumn\n        header={t({ id: 'crypto.error.title', message: 'Looks like there was an error' })}\n        body={t({\n          id: 'crypto.error.content',\n          message: 'Your sign in request could not be completed. Go back to the main screen and try logging in again.',\n        })}\n      />\n      <Button variant=\"outline\" onClick={() => dispatch({ type: 'transition', screen: AppScreens.Main })}>\n        {t({ id: 'button.goBack', message: 'Go back' })}\n      </Button>\n    </Column>\n  );\n};\n"],"names":["Error","useLingui","dispatch","useGlobalReducer","React","Column","gap","TextColumn","header","body","Button","variant","onClick","type","screen","AppScreens","Main"],"mappings":";;;;;;;MAQaA,OAAAA,GAAQ,IAAA;AACnB,IAAA,MAAM,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,GAAA,EAAA,GAAQC,SAAAA,EAAAA;IACd,MAAM,GAAGC,SAAS,GAAGC,gBAAAA,EAAAA;AAErB,IAAA,qBACEC,EAAA,CAAA,aAAA,CAACC,MAAAA,EAAAA;QAAOC,GAAAA,EAAK;qBACXF,EAAA,CAAA,aAAA,CAACG,UAAAA,EAAAA;QACCC,MAAM,EAAA,OAAA,CAAA,CAAA,CAAA;;;;QACNC,IAAI,EAAA,OAAA,CAAA,CAAA,CAAA;;;;sBAKNL,EAAA,CAAA,aAAA,CAACM,MAAAA,EAAAA;QAAOC,OAAAA,EAAQ,SAAA;AAAUC,QAAAA,OAAAA,EAAS,IAAMV,QAAAA,CAAS;gBAAEW,IAAAA,EAAM,YAAA;AAAcC,gBAAAA,MAAAA,EAAQC,WAAWC;AAAK,aAAA;;;;;AAKtG;;;;"}