{"version":3,"file":"index-ef03072c.js","sources":["../../../client-app/src/common/applicationPages/ApplicantActionsCompletedPage/index.tsx","../../../client-app/src/common/applicationPages/CanceledPage/index.tsx","../../../client-app/src/common/applicationPages/InProgressPage/index.tsx","../../../client-app/src/common/applicationPages/NotFoundPage/index.tsx","../../../client-app/src/common/applicationPages/LoadApplicationPage/index.tsx","../../../client-app/src/common/applicationPages/SignCompleted/index.tsx"],"sourcesContent":["\nimport { Headline, HtmlContainer } from \"@n2-common/ui\";\nimport { ApplicationStatusPage, CommonStatusPageProps } from \"../../components/ApplicationStatusPage\";\nimport { useTranslation } from \"react-i18next\";\nimport { N2MajorApplicationStatus } from \"@n2-common/serverGeneratedTypings/n2MajorApplicationStatus\";\nimport { useApplicationIdContext } from \"@n2-common/components/ApplicationContext\";\nimport { translationNamepaceFromProduct } from \"../applicationStatusHelpers\";\n\nconst ApplicantActionsCompletedPage = ({ navigateToCorrectStepFunc }: CommonStatusPageProps): JSX.Element => {\n const { productType } = useApplicationIdContext();\n\n const translationNameSpace = translationNamepaceFromProduct(productType);\n \n const { t } = useTranslation(translationNameSpace);\n \n return res.MajorStatus === N2MajorApplicationStatus.Aproved} >\n {t(\"ApplicationLandingPages.ApplicantActionsCompleted.Headline\")}\n

{t(\"ApplicationLandingPages.ApplicantActionsCompleted.SubHeadline\")}

\n (\"ApplicationLandingPages.ApplicantActionsCompleted.Body\")} /> \n
\n};\n\nexport default ApplicantActionsCompletedPage;","import { Headline, HtmlContainer } from '@n2-common/ui';\nimport { N2ApplicationStatus } from '@n2-common/serverGeneratedTypings/n2ApplicationStatus';\nimport { ApplicationStatusPage, CommonStatusPageProps } from '@n2-common/components/ApplicationStatusPage';\nimport { useTranslation } from 'react-i18next';\nimport { useApplicationIdContext } from '@n2-common/components/ApplicationContext';\nimport { translationNamepaceFromProduct } from '../applicationStatusHelpers';\n\nconst CanceledPage = ({ navigateToCorrectStepFunc }: CommonStatusPageProps): JSX.Element => {\n const { productType } = useApplicationIdContext();\n\n const translationNameSpace = translationNamepaceFromProduct(productType);\n \n const { t } = useTranslation(translationNameSpace);\n\n return (\n res.Status === N2ApplicationStatus.Cancelled}\n navigateToCorrectStepFunc={navigateToCorrectStepFunc}\n >\n {t('ApplicationLandingPages.Canceled.Headline')}\n {t('ApplicationLandingPages.Canceled.SubHeadline')}\n ('ApplicationLandingPages.Canceled.Body', '')} />\n \n );\n};\n\nexport default CanceledPage;\n","import { useTranslation } from 'react-i18next';\nimport { ApplicationStatusPage, CommonStatusPageProps } from '@n2-common/components/ApplicationStatusPage';\nimport { N2ApplicationStatus } from '@n2-common/serverGeneratedTypings/n2ApplicationStatus';\nimport { Headline, HtmlContainer } from '@n2-common/ui';\nimport { useApplicationIdContext } from '@n2-common/components/ApplicationContext';\nimport { translationNamepaceFromProduct } from '../applicationStatusHelpers';\n\nconst InProgressPage = ({ navigateToCorrectStepFunc }: CommonStatusPageProps): JSX.Element => {\n const { productType } = useApplicationIdContext(false);\n\n const translationNameSpace = translationNamepaceFromProduct(productType);\n \n const { t } = useTranslation(translationNameSpace);\n\n return (\n res.Status === N2ApplicationStatus.InProgress}\n >\n {t('ApplicationLandingPages.InProgress.Headline')}\n

{t('ApplicationLandingPages.InProgress.SubHeadline')}

\n ('ApplicationLandingPages.InProgress.Body', '')} />\n \n );\n};\n\nexport default InProgressPage;\n","import { Headline, HtmlContainer } from '@n2-common/ui';\nimport { N2ApplicationStatus } from '@n2-common/serverGeneratedTypings/n2ApplicationStatus';\nimport { ApplicationStatusPage, CommonStatusPageProps } from '@n2-common/components/ApplicationStatusPage';\nimport { useTranslation } from 'react-i18next';\n\nconst NotFoundPage = ({ navigateToCorrectStepFunc }: CommonStatusPageProps): JSX.Element => {\n const { t } = useTranslation('common');\n\n return (\n res.Status === N2ApplicationStatus.NotFound}\n >\n {t('ApplicationLandingPages.NotFound.Headline')}\n

{t('ApplicationLandingPages.NotFound.SubHeadline')}

\n ('ApplicationLandingPages.NotFound.Body', '')} />\n \n );\n};\n\nexport default NotFoundPage;\n","\nimport { useTranslation } from \"react-i18next\";\nimport { ApplicationStatusPage, CommonStatusPageProps } from \"../../components/ApplicationStatusPage\";\nimport { Headline } from \"../../ui\";\n\nconst LoadApplicationPage = ({ navigateToCorrectStepFunc }: CommonStatusPageProps): JSX.Element => {\n\n const { t } = useTranslation(\"common\"); \n \n return false} >\n {t(\"ApplicationLandingPages.Startup.Headline\")}\n

{t(\"ApplicationLandingPages.Startup.SubHeadline\")}

\n
\n};\n\nexport default LoadApplicationPage;","import {useEffect} from \"react\";\nimport {useTranslation} from \"react-i18next\";\nimport {useNavigate} from \"react-router\";\nimport {ApplicationPaths, navigateToStep} from \"../ApplicationFormsHelpers\";\nimport {useApplicationIdContext} from \"../../components/ApplicationContext\";\nimport {trackEcommerceEvent} from \"../../lib/gtm\";\nimport {\n pollForExpectedSignState, submitSsnToGetGpid,\n} from \"../../services/legacyApplicationApiService\";\nimport {\n Headline,\n HtmlContainer,\n} from \"../../ui\";\nimport {SignCommonComponent, useApplicationSignContext} from \"../../components/Sign/SignCommon\";\nimport style from \"./style.module.scss\";\nimport {CommonStatusPageProps} from \"@n2-common/components/ApplicationStatusPage\";\n\nexport function SignCompletedPage({navigateToCorrectStepFunc}: CommonStatusPageProps): JSX.Element {\n return \n \n \n}\n\nfunction SignCompletedInner(): JSX.Element {\n const navigate = useNavigate();\n\n const {t} = useTranslation(\"common\");\n const {applicantId, applicationId, isMainApplicant} = useApplicationSignContext();\n const {country, productType} = useApplicationIdContext();\n const {applicationStatus} = useApplicationSignContext();\n\n useEffect(() => { \n if (applicationStatus) {\n\n pollForExpectedSignState(applicationId,\n (res) => {\n return isMainApplicant ? res.MainApplicantHasSigned : res.CoApplicantHasSigned\n }).then(() => {\n trackEcommerceEvent(productType, country, 'add_payment_info', applicationStatus?.OfferedAmount ?? 0, applicationStatus.Gpid?.toString(), applicationId, 'approved', applicationStatus?.HasPpi ?? undefined);\n navigateToStep(ApplicationPaths.sign, applicationId, navigate, applicantId);\n });\n }\n }, [applicationId, navigate, applicantId, isMainApplicant, productType, country, applicationStatus]);\n\n return (\n <>\n \n navigateToStep(ApplicationPaths.sign, applicationId, navigate, applicantId)\n }\n > {\"< \"}{t('Navigation.Back')} \n
\n\n {t('ApplicationLandingPages.SignCompleted.Headline')}\n {t('ApplicationLandingPages.SignCompleted.SubHeadline')}\n ('ApplicationLandingPages.SignCompleted.Body', '')}/>\n\n
\n \n );\n}\n"],"names":["ApplicantActionsCompletedPage","navigateToCorrectStepFunc","productType","useApplicationIdContext","translationNameSpace","translationNamepaceFromProduct","t","useTranslation","jsxs","ApplicationStatusPage","res","N2MajorApplicationStatus","jsx","Headline","HtmlContainer","CanceledPage","N2ApplicationStatus","InProgressPage","NotFoundPage","LoadApplicationPage","SignCompletedPage","SignCommonComponent","SignCompletedInner","navigate","useNavigate","applicantId","applicationId","isMainApplicant","useApplicationSignContext","country","applicationStatus","useEffect","pollForExpectedSignState","trackEcommerceEvent","_a","navigateToStep","ApplicationPaths","Fragment","style"],"mappings":"+OAQA,MAAOA,EAAgC,CAAC,CAAE,0BAAAC,KAAoE,CACpG,KAAA,CAAE,YAAAC,GAAgBC,IAElBC,EAAuBC,EAA+BH,CAAW,EAEjE,CAAE,EAAAI,CAAA,EAAMC,EAAeH,CAAoB,EAE1C,OAAAI,EAAA,KAACC,EAAA,CAAsB,0BAAAR,EAC1B,iBAAmBS,GAAQA,EAAI,cAAgBC,EAAyB,QACxE,SAAA,CAACC,EAAA,IAAAC,EAAA,CAAU,SAAUP,EAAA,4DAA4D,CAAE,CAAA,EACjFM,EAAA,IAAA,KAAA,CAAI,SAAUN,EAAA,+DAA+D,CAAE,CAAA,EAC/EM,EAAA,IAAAE,EAAA,CAAc,UAAWR,EAAU,wDAAwD,CAAG,CAAA,CAAA,CAAA,CAAA,CAExG,ECdMS,EAAe,CAAC,CAAE,0BAAAd,KAAoE,CAClF,KAAA,CAAG,YAAAC,GAAgBC,IAEnBC,EAAuBC,EAA+BH,CAAW,EAEjE,CAAE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