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,MAAK,CAACC,OAAK,IAGR3H,EAAemL,aACfxT,EAAAA,EAAAA,KAAC6Y,EAAAA,EAAa,CACV9J,QAAQ,OACRmK,YAAYnY,EAAAA,EAAAA,uBAAsB,sBAClCkO,OAASyrB,IACLrjB,EAAc,CAAEsjB,YAAY,KAC5BztB,EAAAA,EAAAA,KAAkB,KACdqF,EAAMzO,SACN42B,GAAS,EAAK,IACf,KACCA,GAAS,EAAM,GACjB,KAKd16B,EAAAA,EAAAA,KAAC6O,EAAAA,EAAM,CACHE,QAAQ,UACRC,eAAgBW,EAAqB,UACrCV,OAAQsD,EAAMzO,WAI9B,C","sources":["flows/Onboarding/branch/pages/dataRecap/services/domain.ts","flows/Onboarding/components/NumberIcon.tsx","flows/Onboarding/remote/RemoteOnboarding.tsx","flows/Onboarding/remote/components/ButtonWithMockedAction.tsx","flows/Onboarding/remote/components/CustomToggleElement.tsx","flows/Onboarding/remote/components/ExpandableItemList.tsx","flows/Onboarding/remote/components/GetSupport.tsx","flows/Onboarding/remote/components/OtpBannersValidation.tsx","flows/Onboarding/remote/components/PoolingScreen.tsx","flows/Onboarding/remote/components/TitleSection.tsx","flows/Onboarding/remote/pages/branchSelection/BranchSelection.tsx","flows/Onboarding/remote/pages/branchSelection/services/domain.ts","flows/Onboarding/remote/pages/branchSelection/services/useBranchSelectInitiation.ts","flows/Onboarding/remote/pages/branchSelection/services/useBranchSelectStatusCheck.ts","flows/Onboarding/remote/pages/cantProceed/OtpCantProceed.tsx","flows/Onboarding/remote/pages/cardSelection/CardSelection.tsx","flows/Onboarding/remote/pages/cardSelection/components/AttacheToDropdown.tsx","flows/Onboarding/remote/pages/cardSelection/components/CardSelectionItem.tsx","flows/Onboarding/remote/pages/cardSelection/services/domain.ts","flows/Onboarding/remote/pages/cardSelection/services/saveCardSelectionApi.ts","flows/Onboarding/remote/pages/cardSelection/services/useGetAccounts.ts","flows/Onboarding/remote/pages/closeApplication/CloseApplication.tsx","flows/Onboarding/remote/pages/closeApplication/components/CloseApplicationFeedback.tsx","flows/Onboarding/remote/pages/closeApplication/components/CloseApplicationQuestion.tsx","flows/Onboarding/remote/pages/closeApplication/components/ResumePasswordForm.tsx","flows/Onboarding/remote/pages/closeApplication/service/precontractsSentTodayApi.ts","flows/Onboarding/remote/pages/closeApplication/service/quitApplicationApi.ts","flows/Onboarding/remote/pages/closeApplication/service/useAvailableResumePasswordApi.ts","flows/Onboarding/remote/pages/closeApplication/service/useSaveResumePasswordApi.ts","flows/Onboarding/remote/pages/closeApplication/service/useValidateResumePasswordApi.ts","flows/Onboarding/remote/pages/contractSignature/ContractSignature.tsx","flows/Onboarding/remote/pages/contractSignature/components/ContractSignatureForm.tsx","flows/Onboarding/remote/pages/contractSignature/services/getPhoneNumberApi.ts","flows/Onboarding/remote/pages/contractSignature/services/issueCertificateApi.ts","flows/Onboarding/remote/pages/contractSignature/services/signDocumentsApi.ts","flows/Onboarding/remote/pages/contractsSignatureStatus/ContractsSignatureStatus.tsx","flows/Onboarding/remote/pages/contractsSignatureStatus/services/contractsSignatureStatusApi.ts","flows/Onboarding/remote/pages/contractsSignatureStatus/services/getFirstNameApi.ts","flows/Onboarding/remote/pages/dataPrivacyConsent/DataPrivacyConsent.tsx","flows/Onboarding/remote/pages/dataSummary/DataSummaryFirstPart.tsx","flows/Onboarding/remote/pages/dataSummary/DataSummarySecondPart.tsx","flows/Onboarding/remote/pages/dataSummary/components/AddAddressForm.tsx","flows/Onboarding/remote/pages/dataSummary/components/DataSummarySecondPartForm.tsx","flows/Onboarding/remote/pages/dataSummary/components/DetailItem.tsx","flows/Onboarding/remote/pages/dataSummary/components/HeaderSection.tsx","flows/Onboarding/remote/pages/dataSummary/components/PostalCodeComponent.tsx","flows/Onboarding/remote/pages/eligibility/Eligibility.tsx","flows/Onboarding/remote/pages/eligibility/components/MoreDetails.tsx","flows/Onboarding/remote/pages/eligibility/components/OptionQuestionAndAnswers.tsx","flows/Onboarding/remote/pages/eligibility/components/Recommendation.tsx","flows/Onboarding/remote/pages/eligibility/services/useCheckRecommendation.ts","flows/Onboarding/remote/pages/emailValidation/EmailValidation.tsx","flows/Onboarding/remote/pages/emailValidation/components/EditEmailMode.tsx","flows/Onboarding/remote/pages/emailValidation/components/EmailValidationForm.tsx","flows/Onboarding/remote/pages/existingApplication/ExistingApplication.tsx","flows/Onboarding/remote/pages/existingApplication/components/ApplicationClosedDialog.tsx","flows/Onboarding/remote/pages/expiredApplication/ExpiredApplication.tsx","flows/Onboarding/remote/pages/feedback/Feedback.tsx","flows/Onboarding/remote/pages/feedback/service/activateMobileBanking.tsx","flows/Onboarding/remote/pages/genericErrorMessage/GenericErrorMessage.tsx","flows/Onboarding/remote/pages/geniusAccountCard/GeniusAccountCard.tsx","flows/Onboarding/remote/pages/geniusAccountCard/components/AddressDeliveryForm.tsx","flows/Onboarding/remote/pages/geniusAccountCard/components/GeniusAccountCardForm.tsx","flows/Onboarding/remote/pages/geniusAccountCard/components/GeniusImageHeader.tsx","flows/Onboarding/remote/pages/geniusAccountCard/components/YourCardsDeliveryAddressDialog.tsx","flows/Onboarding/remote/pages/geniusAccountCard/services/domain.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/getCourierDeliveryCitiesApi.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/getCourierDeliveryCountiesApi.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/getCourierDeliveryPostalCodesApi.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/getCourierDeliveryStreetNamesApi.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/saveCardInformationApi.ts","flows/Onboarding/remote/pages/geniusAccountCard/services/selectedBranchNameApi.ts","flows/Onboarding/remote/pages/howToScanId/HowToScanId.tsx"],"sourcesContent":["import { Dispatch, SetStateAction } from \"react\";\n\nimport { StreetDataProps } from \"flows/services/addressesApi\";\n\nexport enum SectionLabels {\n NAME = \"general.information.name\",\n SURNAME = \"general.information.surname\",\n CNP = \"general.information.cnp\",\n PLACE_OF_BIRTH = \"general.information.placeOfBirth\",\n IC_SERIES_NUMBER = \"id.details.icSeriesNumber\",\n ISSUE_AUTHORITY = \"id.details.issueAuthority\",\n ISSUE_DATE = \"id.details.issueDate\",\n EXPIRATION_DATE = \"id.details.expirationDate\",\n COUNTY_SECTOR = \"address.countrySector\",\n CITY = \"address.city\", \n STREET_NUMBER = \"address.streetNumber\",\n BLOCK = \"address.block\",\n ENTRANCE = \"address.entrance\",\n FLOOR = \"address.floor\",\n APARTMENT = \"address.apartment\",\n POSTAL_CODE = \"address.postalCode\",\n}\n\nexport enum Forms {\n RESIDENCE_ADDRESS = \"residenceAddress\",\n PERSONAL_INFORMATION = \"personalInformation\",\n ID_DETAILS = \"idDetails\",\n HOME_ADDRESS = \"homeAddress\",\n}\n\nexport const FIELD_WIDTH = \"calc(100% - 16px)\";\nexport const FORM_DATE_FORMAT = \"DD/MM/YYYY\";\nexport const STORED_DATE_FORMAT = \"YYYY-MM-DD\";\nexport const SECTOR_PREFIX = \"SECTOR \";\n\nexport const computeStreetDetails = (key: string, value: string, setValue: Dispatch>, streetDetails: StreetDataProps ) =>\n setValue({ ...streetDetails, [key]:value});","import { Body, Box, unsafeLocalizedString } from \"omnichannel-design-system\";\nimport { PaletteColor, palette } from \"omnichannel-design-system/lib/styleConstants\";\n\nimport { useFormatMessage } from \"services/formatMessageHook\";\n\ntype Props = {\n icon?: string;\n index: number;\n borderWidth?: number;\n borderColor?: PaletteColor;\n}\n\nexport default function NumberIcon({ icon, index, borderColor, borderWidth }: Props) {\n const { formatRichTextMessage } = useFormatMessage();\n\n return (\n \n {\n icon ?\n formatRichTextMessage(icon) :\n \n \n {unsafeLocalizedString(index + 1)}\n \n \n }\n \n );\n}","import { Box, MainNavigationHeader } from \"omnichannel-design-system\";\nimport { CheckResumeResponse, useCheckResume } from \"../services/resume/checkResumeApi\";\nimport { HEADER_TITLE, HeaderMetadata, Step, StepResponse } from \"./services/domain\";\nimport { MOBILE_PRE_LOGIN_PAGE_URL, PROD } from \"services/domain\";\nimport {\n OnboardingProvider,\n initialOnboardingState,\n useRemoteOnboardingContext\n} from \"./services/remoteOnboardingContext\";\nimport { useCallback, useEffect, useState } from \"react\";\n\nimport BranchSelection from \"./pages/branchSelection/BranchSelection\";\nimport CardSelection from \"./pages/cardSelection/CardSelection\";\nimport { CloseApplication } from \"./pages/closeApplication/CloseApplication\";\nimport ContractSignature from \"./pages/contractSignature/ContractSignature\";\nimport ContractsSignatureStatus from \"./pages/contractsSignatureStatus/ContractsSignatureStatus\";\nimport DataPrivacyConsent from \"./pages/dataPrivacyConsent/DataPrivacyConsent\";\nimport DataSummaryFirstPart from \"./pages/dataSummary/DataSummaryFirstPart\";\nimport DataSummarySecondPart from \"./pages/dataSummary/DataSummarySecondPart\";\nimport DefaultErrorPage from \"components/DefaultErrorPage\";\nimport Eligibility from \"./pages/eligibility/Eligibility\";\nimport EmailValidation from \"./pages/emailValidation/EmailValidation\";\nimport { EnvironmentButton } from \"components/EnvironmentButton/EnvironmentButton\";\nimport ExistingApplication from \"./pages/existingApplication/ExistingApplication\";\nimport ExpiredApplication from \"./pages/expiredApplication/ExpiredApplication\";\nimport Feedback from \"./pages/feedback/Feedback\";\nimport GenericErrorMessage from \"./pages/genericErrorMessage/GenericErrorMessage\";\nimport GeniusAccountCard from \"./pages/geniusAccountCard/GeniusAccountCard\";\nimport HowToScanId from \"./pages/howToScanId/HowToScanId\";\nimport IdentificationCardIsExpired from \"./pages/identificationCardIsExpired/IdentificationCardIsExpired\";\nimport IdentificationSuccessful from \"./pages/identificationSuccessful/IdentificationSuccessful\";\nimport InformativeNotice from \"./pages/informativeNotice/InformativeNotice\";\nimport KnowYourCustomer from \"./pages/knowYourCustomer/KnowYourCustomer\";\nimport KnowYourCustomerTransaction from \"./pages/knowYourCustomerTransaction/KnowYourCustomerTransaction\";\nimport KycPendingResults from \"./pages/kycPendingResults/KycPendingResults\";\nimport Loader from \"components/Loader\";\nimport { LooseObject } from \"services/types\";\nimport MarketingConsents from \"./pages/marketingConsents/MarketingConsents\";\nimport OptimalOffer from \"./pages/optimalOffer/OptimalOffer\";\nimport OtpCantProceed from \"./pages/cantProceed/OtpCantProceed\";\nimport PackageSelection from \"./pages/packageSelection/PackageSelection\";\nimport PhoneNumberValidation from \"./pages/phoneNumberValidation/PhoneNumberValidation\";\nimport ProcessCeased from \"./pages/processCeased/ProcessCeased\";\nimport ResumeApplicationVerifyPhoneNumber\n from \"./pages/resumeApplicationVerifyPhoneNumber/ResumeApplicationVerifyPhoneNumber\";\nimport ResumeCantProceed from \"./pages/resumeCantProceed/ResumeCantProceed\";\nimport ResumeOtpValidate from \"./pages/resumeOtpValidate/ResumeOtpValidate\";\nimport ResumePasswordValidate from \"./pages/resumePasswordValidate/ResumePasswordValidate\";\nimport ScanId from \"./pages/scanId/ScanId\";\nimport ScanIdStatus from \"./pages/scanIdStatus/ScanIdStatus\";\nimport SignContractualDocument from \"./pages/signContractualDocument/SignContractualDocument\";\nimport SigningProcessCompleted from \"./pages/signingProcessCompleted/SigningProcessCompleted\";\nimport Stepper from \"components/Stepper\";\nimport StepsPresentation from \"./pages/stepsPresentation/StepsPresentation\";\nimport TakeSelfieInformation from \"./pages/takeSelfieInformation/TakeSelfieInformation\";\nimport TakeSelfieStatus from \"./pages/takeSelfieStatus/TakeSelfieStatus\";\nimport UserContactInfo from \"./pages/userContactInfo/UserContactInfo\";\nimport { getQueryVariable } from \"services/axiosHook\";\nimport styled from \"styled-components\";\nimport { useAppContext } from \"services/appContext\";\nimport { useChangeStep } from \"./services/changeStepApi\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\n\nconst {\n ELIGIBILITY,\n PACKAGE_SELECTION,\n OPTIMAL_OFFER,\n INFORMATIVE_NOTICE,\n STEPS_PRESENTATION,\n DATA_PRIVACY_CONSENT,\n PHONE_NUMBER_VALIDATION,\n EXISTING_APPLICATION,\n EMAIL_VALIDATION,\n KNOW_YOUR_CUSTOMER,\n KNOW_YOUR_CUSTOMER_TRANSACTIONS,\n PROCESS_CEASED,\n KYC_PENDING_RESULTS,\n OTP_CANT_PROCEED,\n USER_CONTACT_INFO,\n SCAN_ID,\n HOW_TO_SCAN_ID,\n SCAN_ID_STATUS,\n DATA_SUMMARY_FIRST_PART,\n DATA_SUMMARY_SECOND_PART,\n IDENTIFICATION_CARD_IS_EXPIRED,\n BRANCH_SELECTION,\n MARKETING_CONSENTS,\n CARD_SELECTION,\n GENIUS_ACCOUNT_CARD,\n SIGN_CONTRACTUAL_DOCUMENT,\n CONTRACT_SIGNATURE,\n CONTRACTS_SIGNATURE_STATUS,\n TAKE_SELFIE_INFORMATION,\n TAKE_SELFIE_STATUS,\n IDENTIFICATION_SUCCESSFUL,\n SIGNING_PROCESS_COMPLETED,\n FEEDBACK,\n LOADING,\n EXPIRED,\n RESUME_PASSWORD_VALIDATE,\n RESUME_APPLICATION_VERIFY_PHONE_NUMBER,\n RESUME_OTP_VALIDATION,\n RESUME_CANT_PROCEED,\n RESUME_WRONG_PASSWORD,\n GENERIC_ERROR_MESSAGE\n} = Step;\n\ntype CurrentPageProps = {\n step?: Step;\n handleSubmit: (step: Step, doStep?: boolean) => () => unknown;\n}\n\ntype BackDefault = CurrentPageProps & {\n setHeaderMetadata: (data: HeaderMetadata) => unknown;\n}\n\nexport function getCurrentPage({ step, handleSubmit }: CurrentPageProps) {\n switch (step) {\n case ELIGIBILITY:\n return ;\n case PACKAGE_SELECTION:\n return ;\n case OPTIMAL_OFFER:\n return ;\n case INFORMATIVE_NOTICE:\n return ;\n case STEPS_PRESENTATION:\n return ;\n case DATA_PRIVACY_CONSENT:\n return ;\n case PHONE_NUMBER_VALIDATION:\n return (\n \n );\n case EXISTING_APPLICATION:\n return (\n \n );\n case EMAIL_VALIDATION:\n return ;\n case USER_CONTACT_INFO:\n return ;\n case SCAN_ID:\n return ;\n case HOW_TO_SCAN_ID:\n return \n case SCAN_ID_STATUS:\n return (\n \n );\n case IDENTIFICATION_CARD_IS_EXPIRED:\n return ;\n case DATA_SUMMARY_FIRST_PART:\n return ;\n case DATA_SUMMARY_SECOND_PART:\n return ;\n case TAKE_SELFIE_INFORMATION:\n return \n case TAKE_SELFIE_STATUS:\n return (\n \n );\n case IDENTIFICATION_SUCCESSFUL:\n return ;\n case KNOW_YOUR_CUSTOMER:\n return ;\n case KNOW_YOUR_CUSTOMER_TRANSACTIONS:\n return ;\n case PROCESS_CEASED:\n return ;\n case KYC_PENDING_RESULTS:\n return ;\n case BRANCH_SELECTION:\n return ;\n case MARKETING_CONSENTS:\n return ;\n case CARD_SELECTION:\n return ;\n case GENIUS_ACCOUNT_CARD:\n return ;\n case SIGN_CONTRACTUAL_DOCUMENT:\n return ;\n case CONTRACT_SIGNATURE:\n return ;\n case CONTRACTS_SIGNATURE_STATUS:\n return ;\n case SIGNING_PROCESS_COMPLETED:\n return ;\n case FEEDBACK:\n return ;\n case OTP_CANT_PROCEED:\n return ;\n case LOADING:\n return ;\n case EXPIRED:\n return ;\n case RESUME_PASSWORD_VALIDATE:\n return (\n \n );\n case RESUME_APPLICATION_VERIFY_PHONE_NUMBER:\n return ;\n case RESUME_OTP_VALIDATION:\n return ;\n case RESUME_WRONG_PASSWORD:\n case RESUME_CANT_PROCEED:\n return \n case GENERIC_ERROR_MESSAGE:\n return ;\n default:\n return ;\n }\n}\n\nconst OnboardingContentStyled = styled(Box)`\n height: 100vh;\n position: absolute;\n top: 0px;\n left: 0px;\n\n .scrollableContainer {\n height: calc(100vh - 48px);\n width: 100vw;\n padding: 20px;\n overflow-y: auto;\n }\n`;\n\nexport function onBackDefault({ step, handleSubmit, setHeaderMetadata }: BackDefault) {\n switch (step) {\n case PACKAGE_SELECTION:\n return handleSubmit(ELIGIBILITY, false);\n case OPTIMAL_OFFER:\n return handleSubmit(ELIGIBILITY, false);\n case INFORMATIVE_NOTICE:\n return handleSubmit(PACKAGE_SELECTION, false);\n case STEPS_PRESENTATION:\n return handleSubmit(INFORMATIVE_NOTICE, false);\n case DATA_PRIVACY_CONSENT:\n return () => {\n setHeaderMetadata({\n showStepper: false,\n title: HEADER_TITLE.CURRENT_ACCOUNT\n });\n handleSubmit(STEPS_PRESENTATION, false)();\n };\n case KNOW_YOUR_CUSTOMER_TRANSACTIONS:\n return handleSubmit(KNOW_YOUR_CUSTOMER);\n case SIGN_CONTRACTUAL_DOCUMENT:\n case GENIUS_ACCOUNT_CARD:\n return handleSubmit(CARD_SELECTION);\n case CARD_SELECTION:\n return handleSubmit(MARKETING_CONSENTS);\n default: return undefined;\n }\n}\n\nexport function OnboardingContent({ scheduledPortalBlockContent }: LooseObject) {\n\n const { step, goToStep, headerMetadata: { onBack, onCloseApplicationFeedbackBack, onCancel, title, showStepper, currentStepIndex = 0, showCloseApplication }, setHeaderMetadata } = useRemoteOnboardingContext();\n\n const { formatMessage } = useFormatMessage();\n const { configurations: { enableOptimalOffer } } = useAppContext();\n\n const { changeStep } = useChangeStep();\n\n const handleStepChange = useCallback((page: Step, doStep: boolean) => {\n const computeOptimalOfferPages = (): Step => {\n if (page === PACKAGE_SELECTION) {\n return OPTIMAL_OFFER;\n }\n return page;\n }\n\n if (!doStep) {\n goToStep(enableOptimalOffer ? computeOptimalOfferPages() : page);\n return;\n }\n\n changeStep({ newStep: page }, {\n onSuccess: () => goToStep(enableOptimalOffer ? computeOptimalOfferPages() : page),\n onFail: (response: { data: StepResponse }) => {\n let computedStep = null;\n const stepResponse = response?.data;\n if (stepResponse === StepResponse.RETRY_ACTIONS) {\n computedStep = Step.GENERIC_ERROR_MESSAGE;\n }\n\n if (stepResponse === StepResponse.PROCESS_CEASED) {\n computedStep = Step.PROCESS_CEASED;\n }\n goToStep(computedStep);\n }\n });\n goToStep(Step.LOADING);\n }, [changeStep, goToStep, enableOptimalOffer]);\n\n const handleSubmit = useCallback((pageTo: Step, doStep = true) => () => {\n switch (pageTo) {\n case ELIGIBILITY:\n case PACKAGE_SELECTION:\n case OPTIMAL_OFFER:\n case INFORMATIVE_NOTICE:\n case STEPS_PRESENTATION:\n case RESUME_WRONG_PASSWORD:\n setHeaderMetadata({\n showStepper: false,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onCancel: undefined\n })\n break;\n case DATA_PRIVACY_CONSENT:\n case PHONE_NUMBER_VALIDATION:\n case EMAIL_VALIDATION:\n case USER_CONTACT_INFO:\n setHeaderMetadata({\n showStepper: true,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n currentStepIndex: 0,\n onCancel: undefined\n });\n break;\n case DATA_SUMMARY_FIRST_PART:\n case DATA_SUMMARY_SECOND_PART:\n setHeaderMetadata({\n showStepper: true,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n currentStepIndex: 1,\n onCancel: undefined\n });\n break;\n case EXISTING_APPLICATION:\n setHeaderMetadata({\n showStepper: false,\n title: HEADER_TITLE.RETRIEVE_FLOW,\n });\n break;\n case SCAN_ID:\n case TAKE_SELFIE_INFORMATION:\n case IDENTIFICATION_SUCCESSFUL:\n setHeaderMetadata({\n currentStepIndex: 1,\n showStepper: true,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onCancel: undefined\n })\n break;\n case HOW_TO_SCAN_ID:\n setHeaderMetadata({\n currentStepIndex: 1,\n showStepper: false,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onCancel: undefined\n })\n break;\n case SCAN_ID_STATUS:\n case CONTRACTS_SIGNATURE_STATUS:\n case TAKE_SELFIE_STATUS:\n setHeaderMetadata({\n showStepper: false,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onCancel: undefined\n });\n break;\n case KNOW_YOUR_CUSTOMER:\n case KNOW_YOUR_CUSTOMER_TRANSACTIONS:\n case MARKETING_CONSENTS:\n setHeaderMetadata({\n currentStepIndex: 2,\n showStepper: true,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n })\n break;\n case CARD_SELECTION:\n case GENIUS_ACCOUNT_CARD:\n setHeaderMetadata({\n currentStepIndex: 3,\n showStepper: true,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n });\n break;\n case SIGN_CONTRACTUAL_DOCUMENT:\n case CONTRACT_SIGNATURE:\n case SIGNING_PROCESS_COMPLETED:\n setHeaderMetadata({\n currentStepIndex: 4,\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onCancel: undefined\n });\n break;\n case FEEDBACK:\n setHeaderMetadata({\n showStepper: false\n });\n break;\n case KYC_PENDING_RESULTS:\n setHeaderMetadata({\n showCloseApplication: false,\n onCancel: null\n });\n break;\n }\n handleStepChange(pageTo, doStep);\n }, [handleStepChange, setHeaderMetadata]);\n\n const handleCloseApplication = useCallback(() => {\n if ([RESUME_PASSWORD_VALIDATE, RESUME_APPLICATION_VERIFY_PHONE_NUMBER, RESUME_OTP_VALIDATION, RESUME_CANT_PROCEED, RESUME_WRONG_PASSWORD, GENERIC_ERROR_MESSAGE, EXPIRED, PROCESS_CEASED].includes(step)) {\n window.location.href = MOBILE_PRE_LOGIN_PAGE_URL;\n return;\n }\n setHeaderMetadata({\n onCancel: null,\n showCloseApplication: true,\n });\n }, [setHeaderMetadata, step]);\n\n const computeOnClose = () => {\n if (onCancel) {\n return onCancel;\n }\n\n if (onCancel === undefined) {\n return handleCloseApplication;\n }\n }\n\n const computeOnBack = () => {\n if (showCloseApplication) {\n return onCloseApplicationFeedbackBack ? onCloseApplicationFeedbackBack : undefined;\n }\n\n if (onBack) {\n return onBack;\n }\n\n return onBackDefault({ step, handleSubmit, setHeaderMetadata })\n }\n\n const isStepBeforeEmailValidation = (): boolean => {\n return step !== Step.USER_CONTACT_INFO && currentStepIndex === 0;\n }\n\n return (\n \n \n\n \n {!!scheduledPortalBlockContent && scheduledPortalBlockContent}\n\n \n {\n showStepper &&\n \n }\n {getCurrentPage({ step, handleSubmit })}\n \n\n \n \n \n \n\n \n )\n}\n\nexport default function RemoteOnboarding({ scheduledPortalBlockContent }: LooseObject) {\n const { configurations } = useAppContext();\n const environment = configurations ? configurations.environment?.toLowerCase() : PROD;\n\n const [loading, setLoading] = useState(true);\n const [initialState, setInitialState] = useState(initialOnboardingState);\n\n const { checkResume } = useCheckResume();\n\n const updateInitialStateWithResumeInfo = (response: CheckResumeResponse) => {\n if (!response.applicationId) {\n return;\n }\n\n const { status, applicationId, maskedPhoneNumber, productName, requestDate, applicationCloseable, applicationResumable } = response\n let resumeInfo: LooseObject = { applicationId, phoneNumber: maskedPhoneNumber, productName, requestDate, applicationCloseable, applicationResumable };\n if (![\"IN_PROGRESS\", \"CREATED\", \"PENDING_RESOLUTION\", \"SIGNED_PENDING_ACTIVATION\"].includes(status)) {\n resumeInfo.step = EXPIRED;\n } else {\n resumeInfo.step = RESUME_PASSWORD_VALIDATE;\n }\n resumeInfo.headerMetadata = {\n title: HEADER_TITLE.RETRIEVE_FLOW,\n }\n setInitialState({ ...initialOnboardingState, ...resumeInfo });\n };\n\n useEffect(() => {\n const applicationId = getQueryVariable(\"applicationID\");\n if (!!applicationId) {\n checkResume({ applicationId }, {\n onSuccess: updateInitialStateWithResumeInfo,\n onLoading: setLoading,\n })\n } else {\n setLoading(false);\n }\n }, [checkResume]);\n\n if (loading) {\n return ;\n }\n return (\n \n {\n environment && environment !== PROD &&\n \n }\n \n \n )\n}","import { Dispatch, SetStateAction, useState } from \"react\";\n\nimport { Box } from \"omnichannel-design-system\";\nimport { Button } from \"components/Button\";\nimport { LooseObject } from \"services/types\";\nimport { PROD } from \"services/domain\";\nimport { executeAxios } from \"services/axiosHook\";\nimport roCardFrontImage from \"assets/CI_SPECIMEN/SPECIMEN_ID_CARD.jpg\";\nimport styled from \"styled-components\";\nimport { useAppContext } from \"services/appContext\";\n\nexport enum MockActions {\n SEND_CI_TO_OCR = \"send_ci_to_ocr\",\n SEND_BRANCH_DETAILS = \"sendBranchDetails\",\n}\n\nconst ContainerStyled = styled(Box)`\n position: absolute;\n z-index: 99999;\n bottom: 100px;\n left: 0px;\n width: 100vw;\n`;\n\nexport function getDefaultCI(callback: (imageContent: string) => void) {\n fetch(roCardFrontImage)\n .then(res => res.blob())\n .then(blob => {\n const reader = new FileReader();\n reader.readAsDataURL(blob);\n reader.onload = () => {\n callback((reader.result as string).replace(\"data:image/jpeg;base64,\", \"\"))\n };\n })\n}\n\nexport function sendMockCiDataOcr(callback?: (response: LooseObject) => void, onFail?: () => unknown, capture = \"CI\") {\n getDefaultCI(documentContent => executeAxios({\n params: {\n url: \"/ca-ro/ocr/saveIdentificationData\",\n method: \"POST\",\n data: {\n capture,\n documentContent,\n status: \"SUCCESSFUL\",\n ocrSkipAuthenticityCheck: true,\n ocrRandomizeData: true\n }\n },\n onSuccess: (data: LooseObject) => {\n console.log(\"Send CI mock is done\");\n callback && callback(data);\n },\n onFail\n }))\n}\n\nfunction sendBranchDetailsMock(branchCode: \"UNIR\" | \"MILL\", setLoading: Dispatch>) {\n executeAxios({\n params: {\n url: \"/ca-ro/branchDetails\",\n method: \"POST\",\n data: { branchCode }\n }, onSuccess: () => {\n console.log(\"Branch code is send\");\n },\n onLoading: setLoading\n })\n}\n\ntype Props = {\n mockAction: MockActions;\n}\n\nexport default function ButtonWithMockedAction({ mockAction }: Props) {\n const { configurations } = useAppContext();\n const environment = configurations ? configurations?.environment?.toLowerCase() : PROD;\n const [loading, setLoading] = useState(false);\n if (mockAction === MockActions.SEND_CI_TO_OCR) {\n return (\n \n sendMockCiDataOcr()}\n />\n \n )\n }\n\n return (\n \n sendBranchDetailsMock(\n environment?.toLocaleLowerCase() === \"uat\" ? \"MILL\" : \"UNIR\",\n setLoading\n )}\n />\n \n )\n}","import { Body, LocalizedLink } from \"omnichannel-design-system/lib/vanilla\";\nimport styled from \"styled-components\";\nimport { useRemoteOnboardingContext } from \"../services/remoteOnboardingContext\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { Box, Space, SwitchField, unsafeLocalizedString } from \"omnichannel-design-system\";\nimport { option } from \"fp-ts\";\n\ntype ToggleElementProps = {\n labelKey: string;\n links?: LocalizedLink[];\n name: string;\n value: boolean;\n onChange: (value: boolean) => unknown;\n}\n\nconst BodyStyled = styled(Body)`\n text-transform: none;\n`;\n\n\nexport default function CustomToggleElement({ labelKey, links, name, value, onChange }: ToggleElementProps) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n\n return (\n \n \n \n {formatMessageWithKey(labelKey)}\n \n\n {!!links && (\n \n {links}\n \n )}\n \n\n \n\n \n \n \n \n );\n}","import { AngleDownIcon, AngleUpIcon, Box, Divider, Space, Stack } from \"omnichannel-design-system\";\n\nimport { InformationDetailContainerStyled } from \"../../styles/InformationDetailContainerStyled\";\nimport { SmallIconContainerStyled } from \"../../../../components/styles/iconContainerStyles\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useState } from \"react\";\n\nexport interface Item {\n title: string;\n text: string;\n icon?: string\n}\n\nexport interface ExpandableItemListProps {\n items: Item[]\n}\n\nexport function ExpandableItemList({ items }: ExpandableItemListProps) {\n const { formatRichTextMessage } = useFormatMessage();\n const [selected, setSelected] = useState();\n\n return (\n \n \n {items.map((item, index, itemList) => (\n \n setSelected(index)}>\n \n \n {!!item.icon && (\n \n {formatRichTextMessage(item.icon)}\n \n )}\n\n \n\n \n {formatRichTextMessage(item.title ? item.title : \"\")}\n \n \n \n \n {index === selected ? : }\n \n \n\n \n\n {index === selected && (\n \n \n {formatRichTextMessage(item.text ? item.text : \"\")}\n \n \n )}\n\n \n\n {index !== itemList.length - 1 && }\n \n ))}\n \n \n\n )\n}","import { Box, CallIcon, Space } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport { formatPhoneNumber } from \"services/formatPhoneNumber\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n onBack: () => unknown;\n}\n\nconst GetSupportContentStyled = styled(Box)`\n\tbutton {\n\t\tbackground-color:${palette.white} !important;\n text-transform: none;\n\t}\n\n button > div > svg {\n color: ${palette.dark};\n width: 30px;\n height: 30px;\n }\n\n .wrapperStyle {\n width: 100vw;\n height: 100vh;\n position: absolute;\n top: 0px;\n left: 0px;\n background-color: rgba(0, 0, 0, 0.6);\n padding: 20px;\n }\n`;\n\nexport default function GetSupport({ onBack }: Props) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n return (\n \n \n \n\n \n { document.location.href = `tel:${formatMessageWithKey(\"phoneContact\")}`; }}\n />\n\n \n\n \n \n\n \n \n )\n}","import Banner from \"components/Banner\";\nimport { LocalizedString } from \"omnichannel-design-system\";\nimport { LooseObject } from \"services/types\";\nimport React from \"react\";\nimport { useRemoteOnboardingContext } from \"../services/remoteOnboardingContext\";\n\ntype FormatMessageProps = {\n formatMessageWithKey?: (text: string, replaceObject?: (LooseObject) | undefined) => LocalizedString;\n formatRichTextMessageWithKey?: (text: string, replaceObject?: (LooseObject) | undefined) => LocalizedString | React.JSX.Element\n}\n\ntype Props = {\n isOtpValid?: boolean;\n otpCodeExpired?: boolean;\n isOtpResent?: boolean;\n isOtpTouched?: boolean;\n otpRemainingGenerations?: number;\n otpRemainingValidations?: number;\n} & FormatMessageProps;\n\nfunction useCustomFormatMessage(props: FormatMessageProps) {\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useRemoteOnboardingContext();\n const result: LooseObject = { formatMessageWithKey, formatRichTextMessageWithKey };\n (Object.keys(props) as (keyof FormatMessageProps)[])\n .filter(key => !!props[key])\n .forEach(key => {\n result[key] = props[key];\n });\n\n return result;\n}\n\nexport default function OtpBannersValidation({ isOtpValid, otpCodeExpired, otpRemainingGenerations, otpRemainingValidations, isOtpResent, isOtpTouched, ...formatMessageProps }: Props) {\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useCustomFormatMessage(formatMessageProps);\n if (isOtpValid) {\n return ;\n }\n\n if (otpCodeExpired) {\n return ;\n }\n\n if (otpRemainingValidations === 0) {\n return ;\n }\n\n if (isOtpValid != null && !isOtpValid) {\n return ;\n }\n\n if (isOtpResent && !isOtpTouched) {\n return ;\n }\n\n return <>\n}","import { Body, Box, ProgressIcon, Space } from \"omnichannel-design-system\";\nimport ButtonWithMockedAction, { MockActions } from \"./ButtonWithMockedAction\";\n\nimport { ProgressContainerStyled } from \"flows/Onboarding/styles/ProgressContainerStyled\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useAppContext } from \"services/appContext\";\nimport { useRemoteOnboardingContext } from \"../services/remoteOnboardingContext\";\n\nconst ContainerStyled = styled(Box)`\n background-color: ${palette.neutral300};\n margin: -20px;\n padding: 20px;\n`;\n\nconst CenteredTextStyled = styled(Body)`\n text-align: center;\n`;\n\ntype Props = {\n mockAction?: MockActions\n}\n\nexport default function PoolingScreen(props: Props){\n const {\n mockAction = MockActions.SEND_CI_TO_OCR\n } = props;\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { configurations } = useAppContext();\n return (\n \n \n \n \n\n \n\n \n {formatMessageWithKey(\"details\")}\n \n\n {\n (configurations.mockIdScan || process.env.REACT_APP_MOCK_ID_SCAN === \"enabled\") &&\n \n }\n \n );\n}","import { Body, Box, Divider, LocalizedString, Space } from \"omnichannel-design-system\";\n\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\n\ntype Props = {\n titleKey: LocalizedString;\n}\n\nexport default function TitleSection({ titleKey }: Props) {\n \n return (\n \n \n {titleKey}\n \n\n \n\n \n \n )\n}","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport { BranchSelectStatus, MB_BRANCH_SELECTION_LINK, POLLING_DELAY } from \"./services/domain\";\nimport ButtonWithMockedAction, { MockActions } from \"../../components/ButtonWithMockedAction\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport { Method } from \"axios\";\nimport image from \"assets/Onboarding/selectBranch.png\";\nimport { sessionStorageData } from \"services/storageData\";\nimport { useBranchSelectStatusCheck } from \"./services/useBranchSelectStatusCheck\";\nimport { useBranchSelectStatusCheckInitiation } from \"./services/useBranchSelectInitiation\";\nimport { useCallback, useEffect } from \"react\";\nimport { useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\n\nconst checkBranchSelectionPath = {\n url: \"/ca-ro/branchDetails/check\",\n method: \"POST\" as Method,\n};\n\ntype Props = {\n onNext: () => unknown;\n onError: () => unknown;\n}\n\nexport default function BranchSelection({ onNext, onError }: Props) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { checkBranchSelectionStatus, branchSelectionStatus, loading, setLoading } = useBranchSelectStatusCheck(checkBranchSelectionPath);\n const { initiateBranchSelection } = useBranchSelectStatusCheckInitiation();\n\n const handleSubmit = useCallback(() => {\n window.location.href = MB_BRANCH_SELECTION_LINK + sessionStorageData.getItem(\"flowId\");\n setLoading(true);\n initiateBranchSelection();\n setTimeout(checkBranchSelectionStatus, POLLING_DELAY);\n }, [initiateBranchSelection, checkBranchSelectionStatus, setLoading]);\n\n useEffect(() => {\n if (branchSelectionStatus === BranchSelectStatus.OK) {\n onNext();\n } else if (branchSelectionStatus === BranchSelectStatus.ERR) {\n onError();\n }\n }, [branchSelectionStatus, onNext, onError]);\n\n if (branchSelectionStatus === BranchSelectStatus.RETRY || loading) {\n return (\n <>\n \n {process.env.REACT_APP_MOCK_BRANCH_SELECTION === \"enabled\" && }\n \n );\n }\n\n return (\n \n \n \n\n {formatMessageWithKey(\"title\")}\n\n \n \n {formatMessageWithKey(\"description\")}\n \n \n\n \n\n \n\n \n\n \n\n \n )\n}","export const MB_BRANCH_SELECTION_LINK = \"mb-unicredit://branchselection/query?reference=\";\n\nexport const POLLING_INTERVAL = 1000;\nexport const POLLING_DELAY = 5000;\nexport const POLLING_TIMEOUT = 600000;\n\nexport enum BranchSelectStatus{\n NOT_CHECKED = \"NOT_CHECKED\",\n OK = \"OK\",\n RETRY = \"RETRY\",\n ERR = \"ERR\",\n CANCEL = \"CANCEL\",\n TIMEOUT = \"TIMEOUT\",\n}\n","import { useCallback } from \"react\";\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst initiateBranchSelectionPath = {\n url: \"/ca-ro/branchDetails/initiate\",\n method: \"POST\" as Method,\n};\n\nexport const useBranchSelectStatusCheckInitiation = () => {\n\tconst initiateBranchSelection = useCallback(() => {\n\t\texecuteAxios({ params: { ...initiateBranchSelectionPath } });\n\t}, []);\n\n\treturn {\n\t\tinitiateBranchSelection\n\t}\n}","import { BranchSelectStatus, POLLING_INTERVAL, POLLING_TIMEOUT } from \"./domain\";\nimport { Dispatch, SetStateAction, useCallback, useState } from \"react\";\n\nimport { AxiosRequestConfig } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\ntype ExecuteBranchSelectionTimeoutProps = {\n setError: Function,\n setLoading: Dispatch>\n setBranchSelectionStatus: Function,\n executeBranchSelectStatusCheck: Function,\n startTime: number,\n params: AxiosRequestConfig\n}\n\ntype BranchSelectionStatusResponse = {\n status: string\n}\n\nexport const executeCheckBranchSelectStatusTimeout = ({ setError, setBranchSelectionStatus, executeBranchSelectStatusCheck, startTime, params, setLoading }: ExecuteBranchSelectionTimeoutProps) => () => {\n const handleError = (error: any) => {\n setError(error);\n setBranchSelectionStatus(BranchSelectStatus.ERR);\n };\n\n const handleOnSuccess = (response: BranchSelectionStatusResponse) => {\n let pollingTime = new Date().getTime() - startTime;\n if (response.status === \"IN_PROGRESS\" && pollingTime < POLLING_TIMEOUT) {\n setBranchSelectionStatus(BranchSelectStatus.RETRY);\n executeBranchSelectStatusCheck();\n return;\n }\n if (response.status === \"CANCELLED\") {\n setBranchSelectionStatus(BranchSelectStatus.CANCEL);\n } else if (response.status === \"ERROR\") {\n setBranchSelectionStatus(BranchSelectStatus.ERR);\n } else {\n setBranchSelectionStatus((pollingTime < POLLING_TIMEOUT) ? BranchSelectStatus.OK : BranchSelectStatus.TIMEOUT);\n }\n };\n\n executeAxios({\n params,\n onSuccess: handleOnSuccess,\n onFail: handleError,\n onLoading: setLoading,\n });\n}\n\nexport const useBranchSelectStatusCheck = (params: AxiosRequestConfig) => {\n const [error, setError] = useState();\n const [loading, setLoading] = useState(false);\n const [branchSelectionStatus, setBranchSelectionStatus] = useState(BranchSelectStatus.NOT_CHECKED);\n\n const checkBranchSelectionStatus = useCallback(() => {\n const startTime = new Date().getTime();\n const executeBranchSelectStatusCheck = () => {\n setLoading(true);\n setTimeout(executeCheckBranchSelectStatusTimeout({ setError, setBranchSelectionStatus, executeBranchSelectStatusCheck, startTime, params, setLoading }), POLLING_INTERVAL);\n };\n executeBranchSelectStatusCheck();\n }, [params]);\n\n return {\n branchSelectionStatus,\n error,\n checkBranchSelectionStatus,\n loading,\n setLoading,\n }\n\n}","import { Body, Box, Space } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport GetSupport from \"flows/Onboarding/remote/components/GetSupport\";\nimport image from \"assets/rejected-request.png\";\nimport styled from \"styled-components\";\nimport { useHistory } from \"react-router\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useState } from \"react\";\n\nconst TitleStyled = styled(Body)`\n text-transform: none;\n`\n\nexport default function OtpCantProceed() {\n const [showSupport, setShowSupport] = useState(false);\n const history = useHistory();\n\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n\n return (\n \n \n\n {formatMessageWithKey(\"title\")}\n\n \n\n \n \n {formatMessageWithKey(\"title\")}\n \n\n \n\n \n {formatMessageWithKey(\"descriptionLine1\")}\n \n\n \n {formatMessageWithKey(\"descriptionLine2\")}\n \n \n\n \n\n setShowSupport(true)}\n />\n\n history.go(0)}\n />\n\n {showSupport && setShowSupport(false)} />}\n\n \n )\n}","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport { CardType, SelectedCards } from \"./services/domain\";\nimport LoadingButton, { LoadingButtonAction } from \"components/LoadingButton\";\nimport { useEffect, useState } from \"react\";\n\nimport { Account } from \"../../services/domain\";\nimport AttacheToDropdown from \"./components/AttacheToDropdown\";\nimport CardSelectionItem from \"./components/CardSelectionItem\";\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport { LooseObject } from \"services/types\";\nimport _ from \"lodash\";\nimport { useAppContext } from \"services/appContext\";\nimport useGetAccounts from \"./services/useGetAccounts\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useSaveCardSelection } from \"./services/saveCardSelectionApi\";\n\ntype CardSelectionProps = {\n onNext: () => void\n}\n\nfunction computeNextButtonDisabled(selectedCards: LooseObject, selectedAccounts: LooseObject, accounts: Account[]) {\n for (const selectCard of Object.keys(selectedCards)) {\n if (selectedCards[selectCard]) {\n if (accounts.length > 1 && _.isEmpty(selectedAccounts[selectCard])) {\n return true;\n }\n }\n }\n\n return !Object.keys(selectedCards).some(key => selectedCards[key]);\n}\n\nexport default function CardSelection({ onNext }: CardSelectionProps) {\n const { accounts, getAccounts, loading } = useGetAccounts();\n const { formatMessageWithKey, formatRichTextMessageWithKey, selectedCard, selectedAccount, updateContext } = useRemoteOnboardingContext();\n const [selectedCards, setSelectedCards] = useState(selectedCard);\n const [selectedAccounts, setSelectedAccounts] = useState(selectedAccount);\n const [moreDetails, setMoreDetails] = useState();\n const { saveCardSelection } = useSaveCardSelection();\n const { configurations: { enableOptimalOffer } } = useAppContext();\n\n useEffect(() => {\n if (enableOptimalOffer) {\n getAccounts();\n }\n }, [getAccounts, enableOptimalOffer]);\n\n const toggleCard = (cardType: CardType) => {\n setSelectedCards(prevState => ({ ...prevState, [cardType]: !prevState[cardType] }));\n setSelectedAccounts(prevState => ({ ...prevState, [cardType]: undefined }));\n }\n\n\n const handleMoreDetails = (event: any, cardType: CardType) => {\n event.stopPropagation();\n setMoreDetails(cardType)\n }\n\n const cardTypes: Array = Object.keys(selectedCards) as Array\n\n const backFromMoreDetails = () => setMoreDetails(undefined);\n\n const handleSubmit: LoadingButtonAction = (resolve) => {\n const getCurrency = (key: \"virtualCard\" | \"physicalCard\") => accounts.length === 1 ? accounts[0] : selectedAccounts[key]\n\n saveCardSelection({\n ...selectedCards,\n virtualCurrency: getCurrency(\"virtualCard\"),\n physicalCurrency: getCurrency(\"physicalCard\")\n }, {\n onFail: () => resolve(false),\n onSuccess: () => {\n updateContext({ selectedCard: selectedCards, selectedAccount: selectedAccounts });\n resolve(true)\n onNext();\n }\n })\n }\n\n if (loading) {\n return ;\n }\n\n if (moreDetails) {\n return (\n \n {formatRichTextMessageWithKey(`${moreDetails}.details`)}\n \n )\n }\n\n return (\n \n \n\n \n {formatMessageWithKey(\"description\")}\n \n\n {cardTypes.map(cardType => {\n const onChange = () => toggleCard(cardType);\n const isSelected = selectedCards[cardType];\n const onSelectedAccount = (value: string) => {\n setSelectedAccounts(previous => ({ ...previous, [cardType]: value }))\n }\n\n return (\n \n \n\n {isSelected && accounts.length > 1 && (\n \n )}\n \n )\n })}\n\n \n\n \n \n )\n}","import { Box, Space } from \"omnichannel-design-system\";\n\nimport { Account } from \"flows/Onboarding/remote/services/domain\";\nimport DropdownFieldWrapper from \"components/form/DropdownField\";\nimport { Formik } from \"formik\";\nimport { constVoid } from \"fp-ts/lib/function\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n onSelectedAccount: (value: string) => void;\n accounts: Account[];\n previousValue?:string;\n}\n\nexport default function AttacheToDropdown(props: Props) {\n const { onSelectedAccount, accounts, previousValue = \"\" } = props\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const accountOptions = accounts.map(account => ({ value: account, label: formatMessageWithKey(account) }));\n return (\n \n \n {\n if (!value) {\n return { value: formatMessageWithKey(\"error\") }\n }\n onSelectedAccount(value);\n return {};\n }}\n onSubmit={constVoid}>\n \n \n \n \n )\n}","import { Body, Box, Space } from \"omnichannel-design-system\";\nimport { CardType, SelectedCards } from \"../services/domain\";\n\nimport Checkbox from \"components/Checkbox\";\nimport imageCardPhysical from \"assets/Onboarding/card-physical.png\";\nimport imageCardVirtual from \"assets/Onboarding/card-virtual.png\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\nconst CardSelectionContainerStyled = styled(Box)`\n width: 100%;\n margin-right: -20px;\n padding: 20px;\n border-radius: 10px;\n border: 1px solid ${palette.neutral500};\n`;\n\ntype Props = {\n onChange: () => void;\n value: boolean;\n cardType: keyof SelectedCards;\n handleMoreDetails: (event: any, cardType: CardType) => void;\n}\n\nexport default function CardSelectionItem(props: Props) {\n const { onChange, value, cardType, handleMoreDetails } = props;\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n return (\n \n \n \n \n \n \n {formatMessageWithKey(`${cardType}.title`)}\n \n\n \n {formatMessageWithKey(`${cardType}.description`)}\n \n\n \n\n handleMoreDetails(event, cardType)}>\n \n {formatMessageWithKey(\"cardMoreDetails\")}\n \n \n \n\n \n \n \n \n \n \n )\n}","export type SelectedCards = {\n virtualCard: boolean;\n physicalCard: boolean;\n}\n\nexport type CardType = keyof SelectedCards;\n\nexport const CARD_SELECTION_FORM_INPUT_NAMES = {\n COUNTY: \"county\",\n CITY: \"city\",\n CITY_LABEL: \"cityLabel\",\n STREET: \"street\",\n STREET_NUMBER: \"streetNumber\",\n BLOCK_NUMBER: \"blockNumber\",\n BLOCK_ENTRANCE: \"blockEntrance\",\n FLOOR: \"floor\",\n APARTMENT_NUMBER: \"apartmentNumber\",\n POSTAL_CODE: \"postalCode\",\n}","import { ExecuteAxiosFunctions, executeAxios } from \"services/axiosHook\";\n\nimport { LooseObject } from \"services/types\";\nimport { Method } from \"axios\";\nimport { useCallback } from \"react\";\n\nconst saveSaveCardSelectionConfig = {\n url: \"ca-ro/cards/selected/save\",\n method: \"post\" as Method\n};\n\nexport function useSaveCardSelection() {\n const saveCardSelection = useCallback((data: LooseObject, callbacks: ExecuteAxiosFunctions) => {\n executeAxios({\n params: { ...saveSaveCardSelectionConfig, data },\n ...callbacks\n });\n }, [])\n\n return {\n saveCardSelection\n }\n}","import { useCallback, useState } from \"react\";\n\nimport { Account } from \"flows/Onboarding/remote/services/domain\";\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\nimport {LooseObject} from \"../../../../../../services/types\";\n\nconst apiConfig = {\n method: \"post\" as Method,\n url: \"/ca-ro/remote/accounts/getSelectedAccountCurrencies\"\n}\n\nexport default function useGetAccounts() {\n const [loading, setLoading] = useState(false);\n const [accounts, setAccounts] = useState([]);\n const getAccounts = useCallback(() => {\n executeAxios({\n params: apiConfig,\n onSuccess: ({ currencies }: LooseObject) => setAccounts(currencies),\n onLoading: setLoading\n })\n }, [])\n\n return {\n loading,\n getAccounts,\n accounts\n }\n}","import { useCallback, useEffect, useState } from \"react\";\n\nimport CloseApplicationFeedback from \"./components/CloseApplicationFeedback\";\nimport { CloseApplicationQuestion } from \"./components/CloseApplicationQuestion\";\nimport { FEEDBACK_URLS } from \"../../../services/feedback/domain\";\nimport { HEADER_TITLE } from \"../../services/domain\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n isStepBeforeEmailValidation: boolean;\n showCloseApplication: boolean | undefined;\n}\n\nexport function CloseApplication({ isStepBeforeEmailValidation, showCloseApplication }:Props) {\n const { setHeaderMetadata, headerMetadata } = useRemoteOnboardingContext();\n const [showCloseApplicationQuestion, setShowCloseApplicationQuestion] = useState(true);\n const [previousTitle, setPreviousTitle] = useState(undefined);\n\n useEffect(()=> {\n if(!showCloseApplication){\n setPreviousTitle(headerMetadata?.title);\n }\n }, [showCloseApplication, headerMetadata?.title]);\n\n const handleResume = useCallback(() => {\n setHeaderMetadata({\n showCloseApplication: false,\n onCancel: undefined\n });\n }, [setHeaderMetadata]);\n\n const handleCloseApplicationQuestionNext = useCallback(() => {\n setShowCloseApplicationQuestion(false);\n setHeaderMetadata({\n onCloseApplicationFeedbackBack: () => {\n setHeaderMetadata({\n onCloseApplicationFeedbackBack: undefined,\n })\n setShowCloseApplicationQuestion(true);\n }\n })\n }, [setHeaderMetadata])\n\n\n if (showCloseApplicationQuestion) {\n return ();\n }\n\n return \n}","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport FeedbackReasonList, { ReasonItem, SelectedReasonItem } from \"pages/Feedback/components/FeedbackReasonList\";\nimport { FeedbackUrls, useFeedbackApi } from \"../../../../../../pages/Feedback/services/feedbackApi\";\nimport { createTranslation, useFormatMessage } from \"services/formatMessageHook\";\nimport { useEffect, useState } from \"react\";\n\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport LoadingButton from \"components/LoadingButton\";\nimport { MOBILE_PRE_LOGIN_PAGE_URL } from \"services/domain\";\nimport _ from \"lodash\";\nimport image from \"assets/cancel-reason.png\";\nimport { useQuitApplication } from \"../service/quitApplicationApi\";\n\ntype CloseApplicationFeedbackProps = {\n feedbackUrls: FeedbackUrls;\n}\n\nconst CANCELLED = \"CANCELLED\";\n\nexport default function CloseApplicationFeedback({ feedbackUrls }: CloseApplicationFeedbackProps) {\n const { formatMessage } = useFormatMessage();\n const formatMessageWithKey = createTranslation(formatMessage, \"dbn.onBoarding.closeApplicationFeedback.\");\n const { getReasons, saveFeedback } = useFeedbackApi(feedbackUrls, CANCELLED);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState();\n const [reasons, setReasons] = useState>([]);\n const [selectedReasons, setSelectedReasons] = useState>([]);\n const { quitApplication } = useQuitApplication();\n\n const isOtherReasonInvalid = (incomingReasons: Array) => {\n let reasonWithMessage = reasons.find(item => item.hasMessage);\n let idFeedBackWithMessage = reasonWithMessage ? reasonWithMessage.id : \"\";\n let isOtherReasonSelected = !_.isEmpty(incomingReasons.find(item => item.id === idFeedBackWithMessage ));\n let isMessageValid = !_.isEmpty(incomingReasons.find(item => item.message && (item.message.length > 2 && /^[a-zA-Z\\s]*$/.test(item.message))) );\n\n return isOtherReasonSelected && !(isOtherReasonSelected && isMessageValid && checkOtherMessageLength(selectedReasons));\n }\n\n const checkOtherMessageLength = (incomingReasons: Array): boolean =>\n !_.isEmpty(incomingReasons.find(item => item.message.length <= 240));\n\n\n useEffect(() => {\n getReasons({\n onFail: setError,\n onLoading: setLoading,\n onSuccess: setReasons })\n }, [getReasons]);\n\n if (loading || error) {\n return ;\n }\n\n const onCloseApplication = () => {\n quitApplication();\n window.location.href = MOBILE_PRE_LOGIN_PAGE_URL;\n }\n\n const onSubmitFeedback = (resolve: any) => {\n resolve(true);\n saveFeedback({\n feedbacks: reasons.map(({ id, hasMessage }) => {\n const selectedReasonsItem = selectedReasons.find(selectedReason => selectedReason.id === id)\n const isItemSelected = !_.isEmpty(selectedReasonsItem);\n const isMessageProvided = isItemSelected && hasMessage && !_.isEmpty(selectedReasonsItem) && !_.isEmpty(selectedReasonsItem.message);\n return {\n message: isMessageProvided ? selectedReasonsItem.message : null,\n reasonChecked: isItemSelected,\n reasonId: id\n }\n }),\n onFail: () => resolve(false),\n onSuccess: () => {\n resolve(true);\n onCloseApplication();\n }\n });\n }\n\n return (\n \n \n\n \n {formatMessageWithKey(\"title\")}\n \n\n \n {formatMessageWithKey(\"description.line1\")}\n \n \n {formatMessageWithKey(\"description.line2\")}\n \n\n \n\n \n\n onSubmitFeedback(resolve)}\n />\n \n )\n\n}\n","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport { useEffect, useState } from \"react\";\n\nimport { Button } from \"components/Button\";\nimport { HEADER_TITLE } from \"../../../services/domain\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport ResumePasswordForm from \"./ResumePasswordForm\";\nimport imageAfterEmailValidation from \"assets/Onboarding/expired-application.png\";\nimport imageBeforeEmailValidation from \"assets/rejected-request.png\";\nimport styled from \"styled-components\";\nimport { useAvailableResumePasswordApi } from \"../service/useAvailableResumePasswordApi\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { usePrecontractsSentTodayApi } from \"../service/precontractsSentTodayApi\";\nimport { useRemoteOnboardingContext } from \"../../../services/remoteOnboardingContext\";\nimport {useApplicationExpirationTime} from \"../../../services/applicationExpirationTime\";\n\ntype Props = {\n onResume: () => unknown;\n onNext: () => unknown;\n previousHeaderTitle: HEADER_TITLE | undefined,\n isStepBeforeEmailValidation: boolean,\n showCloseApplication?: boolean\n}\n\nexport const BodyStyled = styled(Body)`\n text-transform: none;\n`;\n\nexport function CloseApplicationQuestion(props: Props) {\n const { onResume, onNext, previousHeaderTitle, isStepBeforeEmailValidation, showCloseApplication } = props;\n\n const { formatMessage } = useFormatMessage();\n const { setHeaderMetadata } = useRemoteOnboardingContext();\n const { precontractsSentToday, loading: precontractsSentTodayLoading } = usePrecontractsSentTodayApi();\n const { getExpirationTime, expirationTimeLoading, expirationTime } = useApplicationExpirationTime();\n const [userMessage, setUserMessage] = useState(\"dbn.onboarding.closeApplication.description.regular\");\n const { availableResumePassword, loading: availableResumePasswordLoading } = useAvailableResumePasswordApi();\n const [askPassword, setAskPassword] = useState(false);\n\n useEffect(() => {\n setHeaderMetadata({\n title: HEADER_TITLE.CURRENT_ACCOUNT\n });\n }, [setHeaderMetadata]);\n\n useEffect(() => {\n if (!isStepBeforeEmailValidation && showCloseApplication) {\n precontractsSentToday({\n onSuccess: (verificationEmailSent: boolean) => {\n if (verificationEmailSent) {\n setUserMessage(\"dbn.onboarding.closeApplicationInformation.sameDay.description\");\n return;\n }\n setUserMessage(\"dbn.onboarding.closeApplicationInformation.nextDay.description\");\n }\n })\n getExpirationTime()\n\n availableResumePassword((available: boolean) => setAskPassword(!available))\n }\n }, [isStepBeforeEmailValidation, precontractsSentToday, getExpirationTime, availableResumePassword, showCloseApplication, setAskPassword]);\n\n const handleOnResume = () => {\n setHeaderMetadata({\n title: previousHeaderTitle\n });\n onResume();\n }\n\n if (precontractsSentTodayLoading || expirationTimeLoading || availableResumePasswordLoading) {\n return \n }\n\n return (\n \n \n\n {formatMessage(\"dbn.onboarding.closeApplication.title\")}\n\n \n \n {formatMessage(\"dbn.onboarding.closeApplication.description.bold\")}\n \n\n \n {formatMessage(userMessage, { expirationDate: expirationTime })}\n \n \n\n {askPassword ? (\n \n ) : (\n <>\n \n\n \n \n\n \n \n \n )}\n \n )\n}\n","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport { Formik, useFormikContext } from \"formik\";\nimport { ValidationProps, executeValidation } from \"services/formikValidations\";\n\nimport Banner from \"components/Banner\";\nimport { Button } from \"components/Button\";\nimport PasswordField from \"components/form/PasswordField\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useSaveResumePasswordApi } from \"../service/useSaveResumePasswordApi\";\n\ntype Props = {\n onBack?: () => unknown;\n}\n\ntype ResumePasswordValue = {\n password: string;\n}\n\nexport function ResumePasswordInner(props: Props) {\n const { onBack } = props;\n const { handleSubmit, errors, isValid } = useFormikContext()\n const { formatMessage } = useFormatMessage();\n\n return (\n <>\n \n \n {formatMessage(\"dbn.onboarding.resumePasswordSave.description\")}\n \n\n \n\n \n \n\n \n\n \n \n\n {onBack && (\n \n )}\n \n \n )\n}\n\ntype ResumePasswordFormProps = {\n onSubmit: () => unknown;\n onBack?: () => unknown;\n}\n\nconst validations: (ValidationProps[]) = [\n { name: \"password\", checkAlphaNumerical: true, maxLength: 20, minLength: 6 },\n];\n\nexport default function ResumePasswordForm({ onSubmit, onBack }: ResumePasswordFormProps) {\n const { saveResumePassword } = useSaveResumePasswordApi();\n const { formatMessage } = useFormatMessage();\n\n const initialValues: ResumePasswordValue = {\n password: \"\"\n }\n\n return (\n saveResumePassword(\n { ...values }, onSubmit\n )}\n initialValues={initialValues}\n validateOnMount\n validate={(values) => executeValidation(validations, values, (key: string) => formatMessage(\"dbn.onboarding.closeApplication\" + key))}\n >\n \n \n\n )\n}","import { useCallback, useState } from \"react\";\nimport { executeAxios, ExecuteAxiosFunctions } from \"services/axiosHook\";\nimport { Method } from \"axios\";\n\nconst precontractsSentTodayConfig = {\n url: \"/ca-ro/quit/precontractsSentToday\",\n method: \"POST\" as Method,\n};\n\nexport function usePrecontractsSentTodayApi() {\n const [loading, setLoading] = useState(false);\n\n const precontractsSentToday = useCallback(({onSuccess}: ExecuteAxiosFunctions) => {\n executeAxios({\n params: {...precontractsSentTodayConfig},\n onSuccess,\n onLoading: setLoading\n })\n }, [])\n\n return {\n precontractsSentToday,\n loading\n }\n}","import { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\nimport { useCallback } from \"react\";\n\nconst quitApplicationConfig = {\n url: \"/ca-ro/quit\",\n method: \"POST\" as Method,\n};\n\nexport function useQuitApplication() {\n return {\n quitApplication: useCallback(() => {\n executeAxios({\n params: {...quitApplicationConfig}\n })\n }, [])\n }\n}","import {useCallback, useState} from \"react\";\nimport {executeAxios} from \"services/axiosHook\";\nimport { Method } from \"axios\";\n\nconst availableResumePasswordApiConfig = {\n url: \"/ca-ro/resume/password/available\",\n method: \"POST\" as Method,\n};\n\nexport function useAvailableResumePasswordApi() {\n const [loading, setLoading] = useState(false);\n\n const availableResumePassword = useCallback((onSuccess: (available: boolean) => void) => {\n executeAxios({\n params: availableResumePasswordApiConfig,\n onSuccess,\n onLoading: setLoading\n })\n }, [])\n\n return {\n availableResumePassword,\n loading\n }\n}","import { useCallback } from \"react\";\nimport { executeAxios } from \"services/axiosHook\";\nimport { Method } from \"axios\";\n\nconst applicationInfoApiConfig = {\n url: \"/ca-ro/resume/password/save\",\n method: \"POST\" as Method,\n};\n\nexport type SaveResumePasswordRequest = {\n password: string\n}\n\nexport function useSaveResumePasswordApi() {\n const saveResumePassword = useCallback((data: SaveResumePasswordRequest, onSuccess: () => void) => {\n executeAxios({\n params: { ...applicationInfoApiConfig, data},\n onSuccess: onSuccess,\n })\n }, [])\n\n return {\n saveResumePassword,\n }\n}","import {useCallback} from \"react\";\nimport {executeAxios, ExecuteAxiosFunctions} from \"services/axiosHook\";\nimport { Method } from \"axios\";\n\nconst validateResumePasswordApiConfig = {\n url: \"/ca-ro/resume/password/check\",\n method: \"POST\" as Method,\n};\n\nexport type ValidateResumePasswordResponse = {\n ok: boolean;\n remainingRetries: number;\n}\n\nexport function useValidateResumePasswordApi() {\n\n const validateResumePassword = useCallback((password: string, callbacks: ExecuteAxiosFunctions) => {\n executeAxios({\n params: { ...validateResumePasswordApiConfig, data: { password }},\n ...callbacks\n })\n }, [])\n\n return {\n validateResumePassword\n }\n}","import { FormikErrors, withFormik } from \"formik\";\nimport { Space, Stack } from \"omnichannel-design-system\";\n\nimport ContractSignatureForm from \"./components/ContractSignatureForm\";\nimport Loader from \"components/Loader\";\nimport { useEffect } from \"react\";\nimport { useGetPhoneNumber } from \"./services/getPhoneNumberApi\";\n\ntype Props = {\n onNext: () => unknown;\n onError: () => unknown;\n}\n\nexport type ContractSignatureValues = {\n pin: string;\n phoneNumber: string;\n otpResendRemainingAttempts?: number;\n}\n\nexport type ContractSignatureProps = {\n initialValues: ContractSignatureValues;\n onSubmit: Function;\n onError: Function;\n}\n\nexport const ContractSignatureWrapper = withFormik({\n mapPropsToValues: (props) => ({ ...props.initialValues }),\n handleSubmit: (values, { props: { onSubmit } }) => {\n onSubmit(values)\n },\n validate: (values => {\n const errors: FormikErrors = {}\n if (!values.pin || values.pin.length !== 6) {\n errors.pin = \"dbn.signature.form.pin.error.length.characters\";\n }\n if (values.pin && !/^\\w+$/.test(values.pin)) {\n errors.pin = \"dbn.signature.form.pin.error.alphanumerical.characters\";\n }\n return errors;\n })\n})(ContractSignatureForm);\n\nexport default function ContractSignature({ onNext, onError }: Props) {\n const { loading, error, phoneNumber = \"\", getPhoneNumber } = useGetPhoneNumber();\n\n useEffect(getPhoneNumber, [getPhoneNumber]);\n\n if (loading || error) {\n return ;\n }\n\n return (\n \n \n\n \n \n )\n}","import { Body, Box, Space, Stack, bold, unsafeLocalizedString } from \"omnichannel-design-system\";\nimport { ContractSignatureProps, ContractSignatureValues } from \"../ContractSignature\";\nimport { IssueCertificateInfo, useIssueCertificate } from \"../services/issueCertificateApi\";\nimport LoadingButton, { LoadingButtonAction } from \"components/LoadingButton\";\nimport { useCallback, useEffect, useState } from \"react\";\n\nimport Banner from \"components/Banner\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport TextField from \"components/form/TextField\";\nimport { formatPhoneNumber } from \"services/formatPhoneNumber\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useFormikContext } from \"formik\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useSignContracts } from \"../services/signDocumentsApi\";\n\n\nconst ContainerStyled = styled(Stack)`\n padding: 20px;\n width: 100%;\n`\n\nexport default function ContractSignatureForm(props: ContractSignatureProps) {\n const {\n formatMessageWithKey,\n contractSigningError,\n updateContractSigningError\n } = useRemoteOnboardingContext();\n\n const { signDocuments } = useSignContracts();\n const { onError } = props;\n const { issueCertificate, issueCertificateLoading } = useIssueCertificate();\n\n const { values, setValues, handleSubmit, isValid, validateForm } = useFormikContext();\n const { phoneNumber } = values;\n\n const [disableResend, setDisableResend] = useState(true);\n const [disablePin, setDisablePin] = useState(false);\n const [issueCertificateInfo, setIssueCertificateInfo] = useState();\n\n useEffect(() => {\n if (issueCertificateInfo && (issueCertificateInfo.attemptsRemaining < 0 ||\n (issueCertificateInfo.signatureError && !issueCertificateInfo.attemptsRemaining && !issueCertificateInfo.otpAttemptsRemaining))) {\n onError();\n }\n }, [onError, issueCertificateInfo]);\n\n useEffect(() => {\n if (issueCertificateInfo && !issueCertificateInfo.attemptsRemaining) {\n setDisableResend(true);\n }\n }, [issueCertificateInfo])\n\n useEffect((() => {\n if (!disableResend) {\n return;\n }\n setTimeout(() => {\n setDisableResend(false);\n }, 30000);\n }), [setDisableResend, disableResend]);\n\n const onIssueCertificate = useCallback((info: IssueCertificateInfo) => {\n setIssueCertificateInfo(info);\n updateContractSigningError(info.signatureError);\n setValues(previous => ({\n ...previous,\n pin: \"\"\n }));\n setDisablePin(false);\n }, [setValues, updateContractSigningError]);\n\n useEffect(() => {\n setDisablePin(true);\n validateForm();\n issueCertificate(onIssueCertificate, onError);\n // eslint-disable-next-line\n }, [issueCertificate, onIssueCertificate, validateForm]);\n\n const onSubmit: LoadingButtonAction = (resolve) => {\n setDisablePin(true);\n validateForm()\n .then(validationErrors => {\n if (Object.keys(validationErrors).length) {\n handleSubmit();\n resolve(false)\n setDisablePin(false);\n return;\n }\n signDocuments(\n values.pin,\n (info: IssueCertificateInfo) => {\n setIssueCertificateInfo(info);\n updateContractSigningError(info.signatureError);\n if (!info.signatureError) {\n handleSubmit();\n } else {\n setValues(previous => ({\n ...previous,\n pin: \"\"\n }));\n validateForm();\n setDisablePin(false);\n }\n resolve(true);\n },\n () => {\n resolve(false);\n setDisablePin(false);\n onError();\n }\n )\n },)\n };\n\n const onResend: LoadingButtonAction = (resolve) => {\n setDisableResend(true);\n issueCertificate((info: IssueCertificateInfo) => {\n setIssueCertificateInfo(info);\n if (info.attemptsRemaining < 0) {\n onError();\n return;\n }\n updateContractSigningError(info.signatureError);\n setValues(previous => ({\n ...previous,\n pin: \"\"\n }));\n resolve(true);\n }, () => {\n resolve(false);\n setDisableResend(false);\n });\n };\n\n const getOtpAttemptsRemaining = () => {\n return issueCertificateInfo ? issueCertificateInfo.otpAttemptsRemaining : 0;\n };\n\n const getOtpMaxAttempts = () => {\n return issueCertificateInfo ? issueCertificateInfo.maxOtpAttempts : 0;\n };\n\n const getResendAttemptsRemaining = () => {\n return issueCertificateInfo ? issueCertificateInfo.attemptsRemaining : 0;\n };\n\n const showOtpInvalidCodeError = contractSigningError && !values.pin && issueCertificateInfo &&\n (issueCertificateInfo.maxOtpAttempts - issueCertificateInfo.otpAttemptsRemaining) > 0;\n\n const showResendAttemptWarning = !contractSigningError && !values.pin && issueCertificateInfo &&\n (issueCertificateInfo.maxAttempts - issueCertificateInfo.attemptsRemaining) > 1 && (issueCertificateInfo.attemptsRemaining > 0);\n\n const handlePinChange = (value: string) => {\n if (value && value.length > 6) {\n setValues(previous => ({\n ...previous,\n pin: value.substring(0, 6)\n }));\n }\n };\n\n const computePinAssistiveText = () => {\n if (showOtpInvalidCodeError) {\n return \"\";\n }\n return formatMessageWithKey(\"pin.assistiveText\")\n }\n\n if (issueCertificateLoading && !disableResend) {\n return ;\n }\n\n return (\n \n \n\n \n \n\n \n {[\n formatMessageWithKey(\"beforePhoneNumber\"),\n bold(unsafeLocalizedString(formatPhoneNumber(phoneNumber))),\n formatMessageWithKey(\"afterPhoneNumber\"),\n ]}\n \n\n 0}\n />\n\n \n \n \n {formatMessageWithKey(\"validateOtp.assistiveLine1\")}\n \n\n \n {formatMessageWithKey(\"validateOtp.assistiveLine2\")}\n \n \n\n \n\n \n \n \n \n\n \n\n \n\n {showOtpInvalidCodeError && (\n 0 ? \"contractSigningError.title.attempt.invalid\" : \"contractSigningError.title.attempt.resend\")}\n content={formatMessageWithKey(getOtpAttemptsRemaining() > 0 ? \"contractSigningError.attempt\" : \"contractSigningError.attempt.last\", { attempts: getOtpAttemptsRemaining(), maxAttempts: getOtpMaxAttempts() })} />\n )}\n\n {showResendAttemptWarning && (\n \n )}\n\n \n\n \n )\n}\n","import { useCallback, useState } from \"react\"\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getPhoneNumberConfig = {\n url: \"/ca-ro/clientInformation/phoneNumber\",\n method: \"POST\" as Method,\n};\n\nexport function useGetPhoneNumber() {\n const [phoneNumber, setPhoneNumber] = useState();\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState();\n\n const getPhoneNumber = useCallback(() => {\n executeAxios({\n params: getPhoneNumberConfig,\n onLoading: setLoading,\n onFail: setError,\n onSuccess: setPhoneNumber\n })\n }, [])\n\n return {\n getPhoneNumber,\n phoneNumber,\n loading,\n error\n }\n}","import { useCallback, useState } from \"react\";\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst issueCertificateConfig = {\n url: \"/ca-ro/documents/issueCertificate\",\n method: \"POST\" as Method,\n};\n\nexport type IssueCertificateInfo = {\n maxAttempts: number;\n attemptsRemaining: number;\n maxOtpAttempts: number;\n otpAttemptsRemaining: number;\n signatureError: boolean;\n};\n\nexport function useIssueCertificate() {\n\tconst [loading, setLoading] = useState(true);\n\t\n const issueCertificate = useCallback((onSuccess: any, onFail?: any) => {\n executeAxios({\n params: issueCertificateConfig,\n onSuccess,\n onFail,\n onLoading: setLoading\n })\n }, []);\n\n return {\n issueCertificate,\n issueCertificateLoading: loading\n }\n}","import { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\nimport { useCallback } from \"react\";\n\nconst signDocumentsConfig = {\n url: \"/ca-ro/documents/contracts/sign\",\n method: \"POST\" as Method,\n};\n\nexport function useSignContracts(){\n const signDocuments = useCallback((otp: string, onSuccess: any, onFail: any)=>{\n executeAxios({\n params: {...signDocumentsConfig, data: {otp}},\n onSuccess,\n onFail,\n })\n },[]);\n\n return {\n signDocuments\n }\n}","import { Body, Box, ProgressIcon, Space, Stack } from \"omnichannel-design-system\";\nimport { DataProcessingStatus, useContractsSignatureStatusApi } from \"./services/contractsSignatureStatusApi\";\n\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport { ProgressContainerStyled } from \"flows/Onboarding/styles/ProgressContainerStyled\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useEffect } from \"react\";\nimport { useGetFirstNameApi } from \"./services/getFirstNameApi\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n onNext: () => unknown;\n onError: () => unknown;\n}\n\nconst {\n PROCESSING,\n COMPLETED,\n CLIENT_ONBOARDING_ERROR,\n} = DataProcessingStatus;\n\nexport default function ContractsSignatureStatus({ onNext, onError }: Props) {\n const { formatMessageWithKey, updateContractSigningError } = useRemoteOnboardingContext();\n const { processing, getProcessing } = useContractsSignatureStatusApi();\n const { error, firstName, getFirstName, loading } = useGetFirstNameApi();\n\n useEffect(getFirstName, [getFirstName]);\n\n useEffect(() => {\n if (!processing || processing.status === PROCESSING) {\n setTimeout(() => { getProcessing(); }, 3000)\n return;\n }\n if (processing.status === COMPLETED) {\n onNext();\n } else if (processing.status === CLIENT_ONBOARDING_ERROR) {\n updateContractSigningError(true);\n onError();\n }\n }, [processing, getProcessing, onNext, onError, updateContractSigningError])\n\n if (loading || error) {\n return ;\n }\n\n return (\n \n \n\n \n\n \n \n \n\n \n \n {formatMessageWithKey(\"description\", { name: firstName })}\n \n\n \n\n \n {formatMessageWithKey(\"info\")}\n \n \n \n )\n}","import {useCallback, useState} from \"react\";\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getDataProcessingConfig = {\n url: \"/ca-ro/dataProcessing/get\",\n method: \"post\" as Method\n};\n\nexport type DataProcessing = {\n status: DataProcessingStatus;\n}\n\nexport enum DataProcessingStatus {\n PROCESSING = \"PROCESSING\",\n COMPLETED = \"COMPLETED\",\n CLIENT_ONBOARDING_ERROR = \"CLIENT_ONBOARDING_ERROR\",\n}\n\nexport function useContractsSignatureStatusApi() {\n const [processing, setProcessing] = useState();\n\n const getProcessing = useCallback(() => {\n executeAxios({\n params: getDataProcessingConfig,\n onFail: () => setProcessing(undefined),\n onSuccess: (response: DataProcessing) => {\n setProcessing(response);\n },\n })\n }, [])\n\n return {\n getProcessing,\n processing\n }\n}","import {useCallback, useState} from \"react\";\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getFirstNameConfig = {\n url: \"/ca-ro/clientInformation/firstName\",\n method: \"post\" as Method\n};\n\nexport type DataProcessing = {\n completed: boolean;\n}\n\nexport function useGetFirstNameApi() {\n const [firstName, setFirstName] = useState();\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState();\n\n const getFirstName = useCallback(() => {\n executeAxios({\n params: getFirstNameConfig,\n onLoading: setLoading,\n onFail: setError,\n onSuccess: setFirstName,\n })\n }, [])\n\n return {\n getFirstName,\n firstName,\n loading,\n error\n }\n}","import { AngleRightIcon, Body, Box, Divider, DocumentIcon, NavigationElement, Space, Stack, SwitchField, unsafeLocalizedString } from \"omnichannel-design-system\"\nimport {getDMSFilesListConfig, useGetDMSFilesList} from \"../../../services/dataPrivacyConsent/getDMSFilesList\"\nimport { useEffect, useState } from \"react\"\n\nimport { Button } from \"components/Button\"\nimport { DocumentDetails } from \"pages/DocumentDetails/DocumentDetails\"\nimport { DocumentDetailsType } from \"pages/DocumentDetails/services/domain\"\nimport { Heading } from \"components/Heading\"\nimport Loader from \"components/Loader\"\nimport { Step } from \"flows/Onboarding/remote/services/domain\"\nimport { option } from \"fp-ts\"\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\"\n\ntype Props = {\n onNext: () => unknown\n}\n\n\nexport default function DataPrivacyConsent({ onNext }: Props) {\n const onboardingContext = useRemoteOnboardingContext();\n const { documents, error, loading, getDMSFilesList } = useGetDMSFilesList(getDMSFilesListConfig);\n const { formatMessageWithKey, updateContext } = onboardingContext;\n const [consent, setConsent] = useState((() => {\n let initialConsent = false;\n const consentFromContext = onboardingContext[Step.DATA_PRIVACY_CONSENT];\n if (consentFromContext) {\n initialConsent = consentFromContext.dataPrivacyConsent;\n }\n return initialConsent;\n })());\n const [fileNameSelected, setDocumentSelected] = useState();\n\n useEffect(() => {\n getDMSFilesList([\"DataPrivacyRemote\"]);\n }, [getDMSFilesList])\n\n\n const getApiConfigDocuments = (fileName: string | undefined) => {\n const file = documents.find(item => item.fileName === fileName);\n return {\n url: \"/ca-ro/reports/document/content\",\n data: { filePath: file?.filePath, isDmsDoc: file?.dmsDoc }\n };\n }\n\n if ([error, loading].some(item => item)) {\n return \n }\n\n\n if (fileNameSelected) {\n const selectedDocument = documents.find(item => item.fileName === fileNameSelected);\n return (\n setDocumentSelected(undefined)}\n onConfirm={() => setDocumentSelected(undefined)}\n translationsKeys={{\n title: (selectedDocument && selectedDocument.dmsDoc) ? selectedDocument.title : `dbn.onboarding.dataPrivacyConsent.${fileNameSelected}.title`,\n description: `dbn.onboarding.dataPrivacyConsent.document.description`,\n confirmationButtonText: `dbn.onboarding.dataPrivacyConsent.document.confirmationButtonText`,\n downloadButtonText: `dbn.onboarding.dataPrivacyConsent.document.downloadButtonText`\n }}\n />\n );\n }\n return (\n \n \n\n \n \n {formatMessageWithKey(\"description\")}\n \n \n\n \n {documents.map(document => (\n setDocumentSelected(document.fileName)}\n />\n ))}\n\n \n\n \n\n \n \n {formatMessageWithKey(\"consent.title\")}\n \n\n \n\n \n\n \n \n \n \n\n \n\n {\n updateContext({ [Step.DATA_PRIVACY_CONSENT]: { dataPrivacyConsent: consent } })\n onNext();\n }}\n />\n \n )\n}\n","import { Body, Space, Stack } from \"omnichannel-design-system\";\n\nimport Banner from \"components/Banner\";\nimport { Button } from \"components/Button\";\nimport DetailItem from \"./components/DetailItem\";\nimport HeaderSection from \"./components/HeaderSection\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport moment from \"moment\";\nimport { useEffect } from \"react\";\nimport { useOcrDataSummary } from \"../../../services/dataSummary/ocrDataSummary\";\nimport { useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\n\ntype Props = {\n onNext: () => void;\n}\n\nconst DATE_FORMAT = \"DD.MM.YYYY\";\n\nexport default function DataSummaryFirstPart(props: Props) {\n const { formatMessageWithKey, updateContext } = useRemoteOnboardingContext();\n const { ocrDataSummary, getDataSummary, error, loading } = useOcrDataSummary();\n\n useEffect(getDataSummary, [getDataSummary]);\n useEffect(() => updateContext({ ocrDataSummary }), [updateContext, ocrDataSummary]);\n\n if (error || loading || !ocrDataSummary) {\n return ;\n }\n\n const { name, surname, cnp, placeOfBirth, icSeriesAndNumber, issuesAuthority, issueDate, expiryDate } = ocrDataSummary;\n\n return (\n \n \n\n {!ocrDataSummary.responseCompleted && (\n \n {formatMessageWithKey(\"responseCompleted\")}\n \n }\n />\n )}\n\n \n\n \n \n \n \n\n \n\n \n \n \n \n\n \n\n \n \n )\n}","import { AddressValues, OcrDataSummaryResponse } from \"flows/Onboarding/services/dataSummary/domain\";\nimport { FormikErrors, withFormik } from \"formik\";\nimport { createBaseTranslationKey, useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\nimport { useEffect, useState } from \"react\";\n\nimport DataSummarySecondPartForm from \"./components/DataSummarySecondPartForm\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport { Stack } from \"omnichannel-design-system\";\nimport { Step } from \"../../services/domain\";\nimport { useOcrDataSummary } from \"flows/Onboarding/services/dataSummary/ocrDataSummary\";\nimport useSaveDataSummaryAddress from \"flows/Onboarding/services/dataSummary/useSaveDataSummaryAddress\";\n\ntype Props = {\n onNext: () => void;\n}\nexport type DataSummarySecondPartValues = {\n postalCode: string;\n postalAddressIsTheSame: boolean;\n residenceAndPostalAddress?: AddressValues;\n}\n\nexport type DataSummarySecondPartProps = {\n ocrDataSummary: OcrDataSummaryResponse;\n onSubmit: (values: DataSummarySecondPartValues) => void\n}\n\nexport const DataSummarySecondPartWrapper = withFormik({\n mapPropsToValues: (props) => {\n let postalCode = \"\";\n if (props.ocrDataSummary.postalCodes?.length === 1) {\n postalCode = props.ocrDataSummary.postalCodes[0];\n }\n return {\n postalCode,\n postalAddressIsTheSame: true\n }\n },\n handleSubmit: (values, { props: { onSubmit } }) => {\n onSubmit(values)\n },\n validate: (values) => {\n const errors: FormikErrors = {};\n const generateKey = createBaseTranslationKey(Step.DATA_SUMMARY_SECOND_PART);\n if (!values.postalCode) {\n errors.postalCode = generateKey(\"postalCode.empty\");\n } else if (!/^\\d+$/.test(values.postalCode)) {\n errors.postalCode = generateKey(\"postalCode.canBeOnlyNumbers\");\n } else if (values.postalCode.length !== 6) {\n errors.postalCode = generateKey(\"postalCode.length\");\n }\n\n return errors;\n }\n})(DataSummarySecondPartForm);\n\nexport default function DataSummarySecondPart(props: Props) {\n const { saveDataSummaryAddress } = useSaveDataSummaryAddress();\n const { formatMessageWithKey, ocrDataSummary: ocrDataSummaryContext } = useRemoteOnboardingContext();\n const { ocrDataSummary: ocrDataSummaryFresh, getDataSummary } = useOcrDataSummary();\n const [ocrDataSummary, setOcrDataSummary] = useState(ocrDataSummaryContext);\n\n useEffect(() => {\n if (ocrDataSummaryFresh) {\n setOcrDataSummary(ocrDataSummaryFresh);\n }\n }, [ocrDataSummaryFresh]);\n\n useEffect(() => {\n if (!ocrDataSummary) {\n getDataSummary();\n }\n }, [ocrDataSummary, getDataSummary])\n\n if (!ocrDataSummary) {\n return ;\n }\n\n return (\n \n \n\n {\n saveDataSummaryAddress({\n homePostalCode: values.postalCode,\n sameHomeAndResidenceAddress: values.postalAddressIsTheSame,\n residenceAddress: values.residenceAndPostalAddress\n }, props.onNext)\n }}\n />\n \n )\n}","import { AddressValues, POSTAL_ADDRESS } from \"flows/Onboarding/services/dataSummary/domain\";\nimport DropdownField, { SelectOption } from \"components/form/DropdownField\";\nimport { Space, Stack } from \"omnichannel-design-system\";\nimport { computeSuggestions, formValidation, useAddressDataLogic } from \"flows/Onboarding/services/dataSummary/addressUtils\";\nimport { useEffect, useState } from \"react\";\nimport { useFormikContext, withFormik } from \"formik\";\n\nimport AutocompleteInputField from \"components/form/AutocompleteInputField\";\nimport { Button } from \"components/Button\";\nimport { COUNTRY_CAPITAL } from \"../../geniusAccountCard/services/domain\";\nimport HeaderSection from \"./HeaderSection\";\nimport { StreetDataProps } from \"flows/services/addressesApi\";\nimport TextField from \"components/form/TextField\";\nimport { computeStreetDetails } from \"flows/Onboarding/branch/pages/dataRecap/services/domain\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype AddAddressProps = {\n onSubmit: (values: AddressValues) => void;\n homeOption: SelectOption;\n initialValues: AddressValues;\n}\n\ntype Props = {\n onSubmit: (values: AddressValues) => void;\n homeOption: SelectOption;\n initialValue?: AddressValues;\n}\n\nexport function computePostalAddressLabel(...values: string[]) {\n return values.filter(item => !!item).join(\", \");\n}\n\n\nexport function AddAddressFields(props: AddAddressProps) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { values, touched, setFieldValue } = useFormikContext();\n const { county, city, street } = values;\n const {\n cities,\n counties,\n streets,\n loading,\n generateResetItem,\n onSubmit,\n onStreetBlur,\n postalCodes\n } = useAddressDataLogic({ county, city, street });\n const [streetDetails, setStreetDetails] = useState({\n countyId: \"\",\n cityId: \"\",\n });\n\n const havePostalCodes: boolean = postalCodes.length > 1;\n const addressDetails: string[] = [\"number\", \"block\", \"entrance\", \"floor\", \"apartment\"];\n\n useEffect(() => {\n if (postalCodes && postalCodes.length === 1) {\n setFieldValue(\"postalCode\", postalCodes[0], true)\n }\n }, [postalCodes, setFieldValue]);\n\n useEffect(() => {\n if (!city) {\n return;\n }\n\n const cityValue = cities?.find(item => item.label === city);\n if (cityValue?.postalCode && cityValue.postalCode.length > 0) {\n onStreetBlur({ cityId: city, countyId: county, searchTerm: \"\" });\n setFieldValue(\"postalCode\", cityValue.postalCode, true);\n }\n\n }, [city, cities, county, onStreetBlur, setFieldValue]);\n\n const computeCounty = (counties: SelectOption[]) => {\n return counties.find(item => item.value === values.county)?.label as string;\n }\n\n const computeDeliveryAddresses = () => {\n const addressesList = [props.homeOption];\n if (values.street && values.number && values.postalCode) {\n addressesList.push(\n {\n value: POSTAL_ADDRESS.RESIDENCE,\n label: formatMessageWithKey(POSTAL_ADDRESS.RESIDENCE) + \": \" + computePostalAddressLabel(\n values.street,\n values.number,\n values.block,\n values.entrance,\n values.floor,\n values.apartment,\n values.city === '42' ? COUNTRY_CAPITAL : values.city, computeCounty(counties),\n values.postalCode)\n });\n }\n return addressesList;\n }\n\n return (\n \n \n\n computeStreetDetails(\"countyId\", value, setStreetDetails, streetDetails)}\n options={counties}\n />\n\n computeStreetDetails(\"cityId\", value, setStreetDetails, streetDetails)}\n options={cities}\n />\n\n onStreetBlur({ ...streetDetails, searchTerm: suggestion.value })}\n suggestions={\n loading ?\n { status: \"loading\" } :\n { status: \"ready\", suggestions: computeSuggestions(streets, street) }\n }\n touched={touched.street}\n\n />\n\n {addressDetails.map((name) => (\n \n ))}\n\n {havePostalCodes ?\n ( ({ value: item, label: item }))}\n />) :\n ( item.label === city)?.postalCode}\n key=\"postalCode\"\n name=\"postalCode\"\n label={formatMessageWithKey(\"postalCode.label\")}\n />)\n }\n\n \n\n \n\n \n\n \n\n \n\n \n )\n\n}\nexport const AddAddressFieldsWrapper = withFormik({\n mapPropsToValues: (props) => ({ ...props.initialValues }),\n handleSubmit: (values, { props: { onSubmit } }) => {\n onSubmit(values)\n },\n validate: (values) => formValidation(values)\n})(AddAddressFields);\n\nexport default function AddAddressForm(props: Props) {\n const initialValue: AddressValues = {\n county: \"\",\n countyLabel: \"\",\n city: \"\",\n cityLabel: \"\",\n street: \"\",\n number: \"\",\n block: \"\",\n entrance: \"\",\n floor: \"\",\n apartment: \"\",\n postalCode: \"\",\n postalAddressSameAs: POSTAL_ADDRESS.HOME,\n }\n const keys = Object.keys(initialValue) as (keyof AddressValues)[];\n keys.forEach(key => {\n if (props.initialValue && props.initialValue[key]) {\n initialValue[key] = props.initialValue[key]\n }\n })\n return (\n \n )\n}\n","import AddAddressForm, { computePostalAddressLabel } from \"./AddAddressForm\";\nimport { AddressValues, OcrDataSummaryResponse, POSTAL_ADDRESS } from \"flows/Onboarding/services/dataSummary/domain\";\nimport { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport { DataSummarySecondPartProps, DataSummarySecondPartValues } from \"../DataSummarySecondPart\";\n\nimport Banner from \"components/Banner\";\nimport { Button } from \"components/Button\";\nimport DetailItem from \"./DetailItem\";\nimport HeaderSection from \"./HeaderSection\";\nimport PostalCodeComponent from \"./PostalCodeComponent\";\nimport { SwitchField } from \"omnichannel-design-system/lib/vanilla\";\nimport { useFormikContext } from \"formik\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useState } from \"react\";\n\nexport default function DataSummarySecondPartForm(props: DataSummarySecondPartProps) {\n const { formatMessageWithKey, setHeaderMetadata } = useRemoteOnboardingContext();\n const { ocrDataSummary } = props;\n const { isValid, handleSubmit, values, setValues } = useFormikContext();\n const { postalAddressIsTheSame, residenceAndPostalAddress } = values;\n const [showAddAddress, setShowAddAddress] = useState(false);\n\n const openEditResidenceAddress = () => {\n setShowAddAddress(true);\n setHeaderMetadata({\n onBack: () => {\n setShowAddAddress(false);\n setHeaderMetadata({ onBack: undefined });\n }\n })\n }\n\n const onCheckResidenceAndAddressAreTheSame = (checked: boolean) => {\n if (!checked) {\n openEditResidenceAddress();\n return;\n }\n setValues(previousValues => ({ ...previousValues, postalAddressIsTheSame: true, residenceAndPostalAddress: undefined }));\n }\n\n const onAddAddress = (addressValues: AddressValues) => {\n setValues(previousValues => ({ ...previousValues, postalAddressIsTheSame: false, residenceAndPostalAddress: addressValues }));\n setShowAddAddress(false);\n }\n\n const computeCounty = ({ county, sector }: OcrDataSummaryResponse) => {\n return county ? county : \"Sect. \" + sector;\n }\n\n if (showAddAddress) {\n return (\n \n )\n }\n\n return (\n \n \n\n {!isValid && (\n \n {formatMessageWithKey(\"dataIsMissing\")}\n \n }\n />\n )}\n\n \n \n \n \n \n \n \n\n \n\n \n \n {formatMessageWithKey(\"postalAddressIsTheSame\")}\n \n\n \n\n \n \n\n {!!residenceAndPostalAddress && (\n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n )}\n\n \n\n \n \n )\n}","import { Body, Box, Space, TextChildren, unsafeLocalizedString } from \"omnichannel-design-system\"\n\ntype Props = {\n label: TextChildren;\n value: string;\n}\nexport default function DetailItem(props: Props) {\n return (\n \n \n {props.label}\n \n\n \n \n \n {unsafeLocalizedString(props.value || \"-\")}\n \n \n )\n}","import { Body, Box, Divider, Space, TextChildren } from \"omnichannel-design-system\";\n\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\n\ntype Props = {\n label: TextChildren;\n}\n\nexport default function HeaderSection(props: Props) {\n return (\n \n \n {props.label}\n \n\n \n\n \n \n )\n}","import DetailItem from \"./DetailItem\";\nimport DropdownField from \"components/form/DropdownField\";\nimport TextField from \"components/form/TextField\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n postalCodes: string[],\n}\n\nexport default function PostalCodeComponent(props: Props) {\n const { postalCodes } = props;\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n\n if (postalCodes.length === 1) {\n return \n }\n\n if (!postalCodes.length) {\n return (\n \n )\n }\n\n return (\n ({ value: item, label: item }))}\n />\n )\n}\n","import { Body, Box, Divider, Space, Stack } from \"omnichannel-design-system\";\nimport { HEADER_TITLE, Step } from \"flows/Onboarding/remote/services/domain\";\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport { IconContainerStyled } from \"components/styles/iconContainerStyles\";\nimport Loader from \"components/Loader\";\nimport MoreDetails from \"./components/MoreDetails\";\nimport Recommendation from \"./components/Recommendation\";\nimport image from \"assets/Onboarding/eligibility_banner.png\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useChangeStep } from \"../../services/changeStepApi\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport useRemoteOnboardingStepOptions from \"../../services/useRemoteOnboardingStepOptions\";\n\ntype Props = {\n onNext: () => unknown;\n}\n\nexport default function Eligibility({ onNext }: Props) {\n const { formatMessageWithKey, setHeaderMetadata } = useRemoteOnboardingContext();\n const { formatMessage, formatRichTextMessage } = useFormatMessage();\n const { options } = useRemoteOnboardingStepOptions();\n const { changeStep } = useChangeStep();\n const [showMoreDetails, setShowMoreDetails] = useState(false);\n const [loading, setLoading] = useState(true);\n\n const componentIsMounted = useRef(false);\n\n useEffect(() => {\n if (componentIsMounted.current) {\n return;\n }\n componentIsMounted.current = true;\n changeStep({ newStep: Step.ELIGIBILITY }, { onLoading: setLoading });\n }, [changeStep]);\n\n const backFromMoreDetails = useCallback(() => {\n setHeaderMetadata({\n title: HEADER_TITLE.CURRENT_ACCOUNT,\n onBack: undefined,\n onCancel: undefined\n });\n setShowMoreDetails(false)\n }, [setHeaderMetadata]);\n\n if (showMoreDetails) {\n return ;\n }\n\n if (loading) {\n return ;\n }\n\n return (\n \n \n \n\n \n {formatMessageWithKey(\"description\")}\n \n\n {formatMessageWithKey(\"title\")}\n\n \n \n\n \n \n \n {formatMessageWithKey(\"options.title\")}\n \n \n\n \n\n \n \n\n {options.map(({ key, icon, title }) => (\n \n \n {!!icon && formatRichTextMessage(icon)}\n \n\n \n\n \n {!!title && (\n \n {formatMessage(title)}\n \n )}\n \n\n \n ))}\n \n \n\n \n \n\n \n\n \n\n {\n setHeaderMetadata({\n title: HEADER_TITLE.MORE_DETAILS,\n onBack: backFromMoreDetails,\n onCancel: null\n });\n setShowMoreDetails(true)\n }}\n />\n\n \n \n );\n}","import { Body, Box, Divider, ListBulletIcon, Space, Stack } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport { QuestionAndAnswerItem } from \"./OptionQuestionAndAnswers\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport useRemoteOnboardingStepOptions from \"flows/Onboarding/remote/services/useRemoteOnboardingStepOptions\";\nimport { useState } from \"react\";\n\nconst ELIGIBILITY_MORE_DETAILS = \"eligibilityMoreDetails\";\n\ntype Props = {\n onBack: () => unknown;\n}\n\nconst RequirementItemStyled = styled(Box)`\n display:inline !important;\n svg {\n float: left;\n }\n`;\n\nexport default function MoreDetails({ onBack }: Props) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { formatMessage } = useFormatMessage();\n const { options } = useRemoteOnboardingStepOptions(ELIGIBILITY_MORE_DETAILS);\n const [selected, setSelected] = useState();\n\n return (\n \n \n \n {formatMessageWithKey(\"additionalRequirements\", { step: ELIGIBILITY_MORE_DETAILS })}\n \n\n \n\n \n \n\n \n \n {\n options\n .filter(item => item.description)\n .map(({ key, description }) => (\n \n \n \n {formatMessage(description ? description : \"\")}\n \n \n ))\n }\n \n \n\n \n \n {formatMessageWithKey(\"question&answers\", { step: ELIGIBILITY_MORE_DETAILS })}\n \n\n \n\n \n \n\n \n \n {\n options\n .filter(item => item.question && item.response)\n .map((item, index, items) => setSelected(item.key)}\n open={selected === item.key}\n index={index}\n length={items.length}\n {...item} />)\n }\n \n \n\n \n\n \n\n \n \n )\n}","import { AngleDownIcon, AngleUpIcon, Box, Divider, Space } from \"omnichannel-design-system\";\n\nimport { InformationDetailContainerStyled } from \"flows/Onboarding/styles/InformationDetailContainerStyled\";\nimport { OptionItemProps } from \"flows/Onboarding/services/useStepOptions\";\nimport styled from \"styled-components\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\n\ntype Props = {\n index: number,\n length: number,\n open: boolean,\n setOpen: () => unknown\n}\n\nconst QuestionText = styled(Box)`\n width: calc(100% - 20px);\n font-size: 20px;\n`;\n\nexport function QuestionAndAnswerItem(props: OptionItemProps & Props) {\n const { question = \"\", response = \"\", index, length, open, setOpen } = props;\n const { formatRichTextMessage } = useFormatMessage();\n\n return (\n \n \n \n {formatRichTextMessage(question)}\n \n\n \n {open ? : }\n \n \n\n \n\n {open && (\n \n \n \n {formatRichTextMessage(response)}\n \n \n\n \n \n )}\n\n {index !== length - 1 && }\n \n )\n}","import { AngleRightIcon, Box, NavigationElement, Stack } from \"omnichannel-design-system\";\nimport { Formik, useFormikContext } from \"formik\";\nimport { ValidationProps, executeValidation } from \"services/formikValidations\";\nimport { useCallback, useState } from \"react\";\n\nimport Banner from \"components/Banner\";\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport TextField from \"components/form/TextField\";\nimport Typography from \"components/Typography\";\nimport useCheckRecommendation from \"../services/useCheckRecommendation\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\"\n\ntype DialogFormValues = {\n recommendation: string\n}\n\nfunction DialogForm({ onClose }: { onClose: () => void }) {\n const [error, setError] = useState(false);\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { errors, values, validateForm, handleSubmit } = useFormikContext();\n const { recommendation } = values;\n const { checkRecommendation, loading } = useCheckRecommendation();\n\n const onSubmit = useCallback(async () => {\n setError(false);\n const validatedErrors = await validateForm();\n if (Object.keys(validatedErrors).length) {\n handleSubmit();\n return;\n }\n if (recommendation) {\n checkRecommendation(recommendation, (isValid) => {\n if (isValid) {\n handleSubmit();\n return;\n }\n setError(true);\n })\n return;\n }\n handleSubmit();\n\n }, [validateForm, handleSubmit, checkRecommendation, recommendation])\n\n return (\n \n \n \n {formatMessageWithKey(\"recommendation.preDescription\")}\n \n\n \n\n {error && (\n \n )}\n \n\n \n )\n\n}\n\nconst validations: (ValidationProps[]) = [\n { name: \"recommendation\", checkAlphaNumerical: true, maxLength: 6 },\n];\n\nexport default function Recommendation() {\n const [showDialog, setShowDialog] = useState(false);\n const [recommendation, setRecommendation] = useState(\"\");\n\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n\n const initialValues: DialogFormValues = { recommendation };\n\n return (\n \n setShowDialog(true)} />\n {showDialog && (\n executeValidation(validations, values, formatMessageWithKey)}\n initialValues={initialValues}\n onSubmit={(values: DialogFormValues): void => {\n setRecommendation(values.recommendation);\n setShowDialog(false);\n }}>\n setShowDialog(false)} />\n \n )}\n \n )\n}","import { useCallback, useState } from \"react\";\n\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst rmExistsApiConfig = {\n url: \"/ca-ro/bankerInformation/rmAgent/exists\",\n method: \"post\" as Method,\n};\n\nconst agentExistsApiConfig = {\n url: \"/ca-ro/bankerInformation/agent/exists\",\n method: \"post\" as Method,\n};\n\nfunction isNumeric(str: any) {\n if (typeof str != \"string\") return false\n return !isNaN(str as unknown as number) && !isNaN(parseFloat(str))\n}\n\nexport default function useCheckRecommendation() {\n const [loading, setLoading] = useState(false);\n\n const checkRecommendation = useCallback((promoCode: string, onSuccess: (isValid: boolean) => void) => {\n executeAxios({\n params: isNumeric(promoCode) ?\n { ...rmExistsApiConfig, data: { rmCode: \"R\" + promoCode } } :\n { ...agentExistsApiConfig, data: { agentId: promoCode } },\n onLoading: setLoading,\n onSuccess\n })\n }, [])\n\n return {\n loading,\n checkRecommendation\n }\n}","import { Box, Space } from \"omnichannel-design-system\";\nimport { FormikErrors, withFormik } from \"formik\";\nimport { ValidateOtpRequest, ValidateOtpResponse, useValidateOtp } from \"flows/Onboarding/services/emailValidation/validateOtp\";\n\nimport { EMAIL_REGEX } from \"flows/services/domain\";\nimport EmailValidationForm from \"./components/EmailValidationForm\";\nimport { ExecuteAxiosFunctions } from \"services/axiosHook\";\nimport { Heading } from \"components/Heading\";\nimport _ from \"lodash\";\nimport { useAppContext } from \"services/appContext\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useResendOtp } from \"flows/Onboarding/services/emailValidation/resendOtp\";\n\nexport type EmailValues = {\n email: string;\n otp: string;\n editEmailMode: boolean;\n contactDataOtpRemainingGenerations?: number;\n allContactDataOtpRemainingGenerations?: Record\n totalOtpRemainingGenerations?: number;\n otpRemainingValidations?: number;\n otpCodeExpired?: boolean;\n isOtpValid?: boolean;\n isOtpResent?: boolean;\n loading?: boolean;\n}\n\nexport type EmailProps = {\n onSubmit: () => unknown;\n initialValues: EmailValues;\n resendOtp: ({ onSuccess }: ExecuteAxiosFunctions) => void;\n validateOtp: ({ otp }: ValidateOtpRequest, { onSuccess }: ExecuteAxiosFunctions) => void;\n enableEmailDomainValidation?: boolean;\n onBlocked: () => unknown;\n}\n\nexport const EmailValidationFormikWrapper = withFormik({\n mapPropsToValues: (props) => ({ ...props.initialValues }),\n validate: ({ editEmailMode, email, allContactDataOtpRemainingGenerations }, { enableEmailDomainValidation }) => {\n const errors: FormikErrors = {};\n const computeTranslationKey = (key: string) => \"dbn.onboarding.emailValidation.\" + key\n\n if (editEmailMode) {\n if (_.isEmpty(email)) {\n errors.email = computeTranslationKey(\"error.canBeEmpty\");\n } else if (email.length > 100) {\n errors.email = computeTranslationKey(\"error.isToLong\");\n } else if (!email.match(EMAIL_REGEX)) {\n errors.email = computeTranslationKey(\"error.isNotValidFormat\");\n } else if (allContactDataOtpRemainingGenerations?.[email] === 0) {\n errors.email = computeTranslationKey(\"error.emailVerifyLimitReached\")\n } else if (enableEmailDomainValidation) {\n const emailParts = [\"@unicredit\", \"@hvb\"]\n .map(segment => email.split(segment))\n .find(item => item.length === 2);\n if (emailParts && emailParts[1].startsWith(\".\")) {\n errors.email = computeTranslationKey(\"error.domainIncompatible\");\n }\n }\n\n return errors;\n }\n\n return errors;\n },\n handleSubmit: (\n { editEmailMode, otp, email, totalOtpRemainingGenerations, ...otherValues },\n { props: { onSubmit, validateOtp, onBlocked }, setValues }\n ) => {\n if (otherValues.isOtpValid) {\n onSubmit();\n return;\n }\n\n if (otp.length === 6) {\n validateOtp({ otp }, {\n onSuccess: ({ otpRemainingValidations, otpCodeExpired, otpIsValid }: ValidateOtpResponse) => {\n if (otpRemainingValidations === 0 && totalOtpRemainingGenerations === 0) {\n onBlocked();\n return;\n }\n setValues(previousValues => ({\n ...previousValues,\n otpRemainingValidations: otpRemainingValidations,\n otpCodeExpired,\n isOtpValid: otpIsValid,\n otp: otpIsValid ? previousValues.otp : \"\",\n }))\n },\n onLoading: (loading: boolean) => setValues(previousValues => ({ ...previousValues, loading }))\n })\n }\n },\n})(EmailValidationForm);\n\ntype Props = {\n onNext: () => unknown;\n onBlocked: () => unknown;\n}\n\nexport default function EmailValidation({ onNext, onBlocked }: Props) {\n\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { configurations: { enableEmailDomainValidation } } = useAppContext();\n const { resendOtp } = useResendOtp();\n const { validateOtp } = useValidateOtp();\n\n return (\n \n \n\n \n\n \n\n \n\n \n )\n}","import { Body, Box, Space } from \"omnichannel-design-system\";\nimport { GenerateOtpResponse, useGenerateOtp } from \"../../../../services/emailValidation/generateOtp\";\nimport LoadingButton, { LoadingButtonAction } from \"components/LoadingButton\";\n\nimport { EmailValues } from \"../EmailValidation\";\nimport { FormikErrors } from \"formik\";\nimport TextField from \"components/form/TextField\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n isValid: boolean;\n handleSubmit: () => unknown;\n onBlocked: () => unknown;\n setValues: (values: React.SetStateAction, shouldValidate?: boolean | undefined) => void;\n values: EmailValues;\n validateForm: (values?: any) => Promise>;\n}\n\nconst EmailContainerStyled = styled(Box)`\n color: ${({ color }) => color};\n`;\n\nexport default function EditEmailMode({ isValid, handleSubmit, onBlocked, setValues, values, validateForm }: Props) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { generateOtp } = useGenerateOtp();\n\n const onSubmit: LoadingButtonAction = (resolve) => {\n validateForm().then(errors => {\n if (Object.keys(errors).length) {\n handleSubmit()\n resolve(false);\n return\n }\n generateOtp({ email: values.email }, {\n onSuccess: ({\n contactDataOtpRemainingGenerations, allContactDataOtpRemainingGenerations, totalOtpRemainingGenerations\n }: GenerateOtpResponse) => {\n setValues(previousValues => ({\n ...previousValues,\n editEmailMode: false,\n contactDataOtpRemainingGenerations: contactDataOtpRemainingGenerations,\n allContactDataOtpRemainingGenerations: allContactDataOtpRemainingGenerations,\n totalOtpRemainingGenerations: totalOtpRemainingGenerations,\n otpRemainingValidations: undefined,\n otpCodeExpired: undefined,\n isOtpValid: undefined,\n }))\n resolve(true);\n },\n onFail: () => {\n resolve(false);\n onBlocked();\n },\n onLoading: (loading: boolean) => setValues(previousValues => ({ ...previousValues, loading }))\n })\n })\n }\n\n return (\n \n \n \n {formatMessageWithKey(\"description\")}\n \n \n\n \n\n \n email.length <= 65 && setValues(prev => ({...prev, email}))}\n description={formatMessageWithKey(\"showInfo.details.content\")}\n descriptionConfirmLabel={formatMessageWithKey(\"showInfo.details.action\")}\n />\n \n\n \n\n \n \n )\n}","import { Body, Box, Divider, Space, SpinnerIcon, unsafeLocalizedString } from 'omnichannel-design-system';\nimport { EmailProps, EmailValues } from '../EmailValidation';\nimport { useCallback, useEffect, useState } from 'react';\n\nimport { Button } from 'components/Button';\nimport EditEmailMode from './EditEmailMode';\nimport GetSupport from 'flows/Onboarding/remote/components/GetSupport';\nimport OtpBannersValidation from 'flows/Onboarding/remote/components/OtpBannersValidation';\nimport PinInput from 'components/form/PinInput';\nimport { ResendOtpResponse } from 'flows/Onboarding/services/emailValidation/resendOtp';\nimport { palette } from 'omnichannel-design-system/lib/styleConstants';\nimport { useFormikContext } from 'formik';\nimport { useRemoteOnboardingContext } from 'flows/Onboarding/remote/services/remoteOnboardingContext';\n\nexport default function EmailValidationForm(props: EmailProps) {\n const { resendOtp, onBlocked } = props;\n const { values, isValid: isFormValid, handleSubmit, setValues, validateForm } = useFormikContext();\n const { formatMessageWithKey, setHeaderMetadata } = useRemoteOnboardingContext();\n const [disableResend, setDisableResend] = useState(false);\n const [showSupport, setShowSupport] = useState(false);\n const [showBackButton, setShowBackButton] = useState(true);\n\n const {\n editEmailMode, email, otp, otpCodeExpired, isOtpValid, isOtpResent, otpRemainingValidations,\n contactDataOtpRemainingGenerations, totalOtpRemainingGenerations\n } = values;\n\n useEffect(() => {\n if (!values.editEmailMode) {\n setDisableResend(true);\n }\n }, [values.editEmailMode]);\n\n useEffect((() => {\n const interval = setTimeout(() => {\n setDisableResend(false);\n }, 15000);\n return () => clearInterval(interval);\n }), [disableResend]);\n\n const handleBack = useCallback(() => {\n setValues(previousValues => ({\n ...previousValues,\n editEmailMode: true,\n otp: \"\",\n otpCodeExpired: undefined,\n isOtpValid: undefined,\n isOtpResent: undefined,\n otpRemainingValidations: undefined,\n contactDataOtpRemainingGenerations: undefined,\n }))\n }, [setValues]);\n\n useEffect(() => {\n if (showBackButton && !editEmailMode) {\n setHeaderMetadata({ onBack: handleBack });\n return;\n }\n setHeaderMetadata({ onBack: undefined })\n }, [showBackButton, setHeaderMetadata, handleBack, editEmailMode]);\n\n useEffect(() => {\n if (otpRemainingValidations !== undefined || values.loading) {\n setShowBackButton(false);\n return;\n }\n\n setShowBackButton(true);\n }, [otpRemainingValidations, values.loading])\n\n useEffect((() => {\n if (otp.length === 6) {\n handleSubmit();\n } else if (otp.length === 1) {\n setValues(prevValues => ({ ...prevValues, isOtpValid: undefined }))\n }\n }), [handleSubmit, otp, setValues])\n\n if (editEmailMode) {\n return (\n \n );\n }\n\n const displaySupportButton = otpRemainingValidations === 0 || contactDataOtpRemainingGenerations === 0 || otpCodeExpired;\n const cannotChangeEmail = totalOtpRemainingGenerations === contactDataOtpRemainingGenerations\n const displayNextStepButton = isOtpValid || cannotChangeEmail || showBackButton || values.loading\n const disableNextStepButton = !isOtpValid\n\n return (\n \n \n \n {formatMessageWithKey(\"validateOtp.emailTitle\")}\n \n\n \n\n \n {unsafeLocalizedString(email)}\n \n \n\n \n\n \n\n \n \n\n {values.loading && (\n \n \n \n {formatMessageWithKey(\"loading\")}\n \n \n )}\n \n\n \n\n \n {formatMessageWithKey(\"validateOtp.description\")}\n \n\n \n\n \n\n \n\n \n \n \n {formatMessageWithKey(\"validateOtp.assistiveLine1\")}\n \n\n \n {formatMessageWithKey(\"validateOtp.assistiveLine2\")}\n \n \n\n \n\n {\n setDisableResend(true);\n resendOtp({\n onSuccess: (response: ResendOtpResponse) => {\n setValues(previousValues => ({\n ...previousValues,\n contactDataOtpRemainingGenerations: response.contactDataOtpRemainingGenerations,\n allContactDataOtpRemainingGenerations: response.allContactDataOtpRemainingGenerations,\n totalOtpRemainingGenerations: response.totalOtpRemainingGenerations,\n otpRemainingValidations: undefined,\n otpCodeExpired: undefined,\n isOtpValid: undefined,\n isOtpResent: true\n }))\n },\n onLoading: (loading: boolean) => setValues(previousValues => ({ ...previousValues, loading }))\n })\n }}\n />\n \n\n \n\n 0}\n otpRemainingValidations={otpRemainingValidations}\n otpRemainingGenerations={contactDataOtpRemainingGenerations}\n />\n\n \n\n \n\n {displaySupportButton && (\n setShowSupport(true)}\n />\n )}\n\n {displayNextStepButton ? (\n \n ) : (\n \n )}\n\n {showSupport && setShowSupport(false)} />}\n \n )\n}","import { Body, Box, QuestionIcon, Space, Stack, unsafeLocalizedString } from \"omnichannel-design-system\";\nimport { useEffect, useState } from \"react\";\n\nimport ApplicationClosedDialog from \"./components/ApplicationClosedDialog\";\nimport LoadingButton from \"components/LoadingButton\";\nimport { Step } from \"../../services/domain\";\nimport moment from \"moment\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useAppContext } from \"services/appContext\";\nimport useCancelApplication from \"flows/Onboarding/services/existingApplication/useCancelApplication\";\nimport { useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\nimport { useResumeApplication } from \"flows/Onboarding/services/existingApplication/useResumeApplication\";\n\ntype ExistingApplicationProps = {\n\tonNext: () => unknown;\n\tonResume: (page: Step) => () => void;\n\tonBlocked:() => unknown;\n\tgoToResumePasswordValidate: () => unknown;\n}\n\nconst BodyStyled = styled(Body)`\n text-transform: none;\n`;\n\nexport default function ExistingApplication({ onNext, onResume, goToResumePasswordValidate, onBlocked }: ExistingApplicationProps) {\n\tconst { formatMessageWithKey, previousStep, productName, requestDate, applicationId, applicationCloseable, applicationResumable } = useRemoteOnboardingContext();\n\n\tconst { loading: resumeLoading, resumeApplication, applicationClosed } = useResumeApplication({ onResume, applicationId: applicationId as string });\n\tconst { loading: cancelLoading, cancelApplication } = useCancelApplication({ onNext, applicationId: applicationId as string });\n\n\tconst [displayApplicationClosedDialog, setDisplayApplicationClosedDialog] = useState(false)\n\tconst { configurations } = useAppContext()\n\n\tconst isResumeEnabledAndResumable:boolean = configurations.resumeEnabledOnboarding && applicationResumable;\n\n\tuseEffect(() => {\n\t\tif (applicationClosed) {\n\t\t\tsetDisplayApplicationClosedDialog(true);\n\t\t}\n\t}, [applicationClosed]);\n\n\tuseEffect(() => {\n\t\tif (!applicationCloseable && !isResumeEnabledAndResumable) {\n\t\t\tonBlocked();\n\t\t}\n\t}, [applicationCloseable, isResumeEnabledAndResumable, onBlocked]);\n\n\tconst onCloseDialog = () => {\n\t\tsetDisplayApplicationClosedDialog(false);\n\t}\n\n\tconst displayResumePasswordValidate = (resolve: any) => {\n\t\tgoToResumePasswordValidate();\n\t\tresolve(true);\n\t}\n\n\tif (displayApplicationClosedDialog) {\n\t\treturn \n\t}\n\n\tconst shouldDisplayResumePasswordValidate = previousStep === Step.PHONE_NUMBER_VALIDATION;\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{formatMessageWithKey(\"title\")}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{formatMessageWithKey(\"description\")}\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t{!!productName && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{formatMessageWithKey(\"productName\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{unsafeLocalizedString(productName)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\t\n\n\t\t\t\t\t{!!requestDate && (\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{formatMessageWithKey(\"requestDate\")}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{unsafeLocalizedString(moment(requestDate).format(\"DD/MM/YYYY\"))}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t{applicationCloseable &&\n\t\t\t\t\t\n\t\t\t\t\t\t{formatMessageWithKey(\"description2\")}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t{isResumeEnabledAndResumable &&\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t{applicationCloseable &&\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\n\t);\n}","import { Body, Box } from \"omnichannel-design-system\";\n\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\ntype Props = {\n onClose: () => void\n}\nexport default function ApplicationClosedDialog({ onClose }: Props) {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n\n return (\n \n \n \n {formatMessageWithKey(\"applicationClosed.message\")}\n \n \n \n );\n}","import { Body, Box, Space } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport image from \"assets/Onboarding/expired-application.png\";\nimport { useHistory } from \"react-router\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\nexport default function ExpiredApplication() {\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const history = useHistory();\n\n const handleBack = () => {\n history.push(\"/onboarding\");\n history.go(0);\n };\n\n return (\n \n \n\n \n \n {formatMessageWithKey(\"title\")}\n \n \n \n {formatMessageWithKey(\"description\")}\n \n \n \n \n \n \n \n );\n}","import { Body, Box, FeedbackRating, Space } from \"omnichannel-design-system\";\nimport { FEEDBACK_URLS, FINISHED_HAPPY, FINISHED_UNHAPPY } from \"flows/Onboarding/services/feedback/domain\";\nimport FeedbackReasonList, { ReasonItem, SelectedReasonItem } from \"pages/Feedback/components/FeedbackReasonList\";\nimport { createTranslation, useFormatMessage } from \"services/formatMessageHook\";\nimport { useEffect, useState } from \"react\";\n\nimport { FinishWithContainerStyled } from \"pages/Feedback/FinishWithFeedback\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport LoadingButton from \"components/LoadingButton\";\nimport _ from \"lodash\";\nimport image from \"assets/approved-final.png\";\nimport { sessionStorageData } from \"services/storageData\";\nimport { useActivateMobileBankingApi } from \"./service/activateMobileBanking\";\nimport { useFeedbackApi } from \"pages/Feedback/services/feedbackApi\";\n\nexport default function Feedback() {\n const { formatMessage } = useFormatMessage();\n const formatMessageWithKey = createTranslation(formatMessage, \"dbn.onBoarding.feedback.\");\n const { getReasons, saveFeedback } = useFeedbackApi(FEEDBACK_URLS, \"FINISHED\");\n const { activateMobileBanking } = useActivateMobileBankingApi();\n\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(false);\n const [allReasons, setAllReasons] = useState>([]);\n const [starSelected, setStarSelected] = useState();\n const [visibleReasons, setVisibleReasons] = useState>([]);\n const [selectedReasons, setSelectedReasons] = useState>([]);\n const [feedbackType, setFeedbackType] = useState<\"FINISHED_UNHAPPY\" | \"FINISHED_HAPPY\">();\n\n const isMessageValid = (validationReasons: Array) => {\n return !validationReasons || (!_.isEmpty(validationReasons.find(item => item.message && item.message.length > 240)));\n }\n\n const saveFeedbackAction = (resolve: any) => {\n saveFeedback({\n feedbacks: visibleReasons.map(({ id, hasMessage }) => {\n const selectedReasonsItem = selectedReasons.find(selectedReason => selectedReason.id === id)\n const isItemSelected = !_.isEmpty(selectedReasonsItem);\n const isMessageProvided = isItemSelected && hasMessage && !_.isEmpty(selectedReasonsItem) && !_.isEmpty(selectedReasonsItem.message);\n return {\n message: isMessageProvided ? selectedReasonsItem.message : null,\n reasonChecked: isItemSelected,\n reasonId: id\n }\n }),\n onFail: () => resolve(false),\n onSuccess: () => {\n activateMobileBanking(({ url }: { url: string }) => {\n resolve(true);\n console.log(sessionStorageData.getItem(\"flowId\") + \" redirecting to activate mobile banking \")\n window.location.href = url;\n })\n }\n });\n }\n\n useEffect(() => {\n if (starSelected) {\n setFeedbackType(starSelected <= 3 ? FINISHED_UNHAPPY : FINISHED_HAPPY);\n }\n }, [starSelected]);\n\n useEffect(() => {\n if (feedbackType) {\n setVisibleReasons(allReasons.filter((item) => item.feedbackType === feedbackType));\n setSelectedReasons([]);\n }\n }, [feedbackType, allReasons]);\n\n useEffect(() => {\n getReasons({\n onLoading: setLoading,\n onFail: setError,\n onSuccess: setAllReasons\n });\n }, [getReasons]);\n\n if (loading || error) {\n return ;\n }\n\n return (\n \n \n\n {formatMessageWithKey(\"title\")}\n\n \n {formatMessageWithKey(\"description\")}\n \n\n \n \n \n \n \n\n \n \n \n\n \n\n saveFeedbackAction(resolve)}\n />\n \n )\n}","import {useCallback, useState} from \"react\";\n\nimport {Method} from \"axios\";\nimport {executeAxios} from \"services/axiosHook\";\n\nconst activateMobileBankingConfig = {\n url: \"/ca-ro/activateMobileBanking\",\n method: \"post\" as Method,\n};\n\nexport const useActivateMobileBankingApi = () => {\n const [loading, setLoading] = useState(false);\n\n return {\n loading,\n activateMobileBanking: useCallback((onSubmit: Function, onFail?: Function) => {\n executeAxios({\n params: {...activateMobileBankingConfig},\n onLoading: setLoading,\n onSuccess: onSubmit,\n onFail\n });\n\n }, [])\n };\n};","import { Body, Box, Divider, PhoneSupportIcon, Space, Stack, buttonLink } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport { MOBILE_PRE_LOGIN_PAGE_URL } from \"services/domain\";\nimport image from \"assets/rejected-request.png\";\nimport {palette} from \"omnichannel-design-system/lib/styleConstants\";\nimport styled from \"styled-components\";\nimport { useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\n\nconst BodyStyled = styled(Body)`\n text-transform: none;\n`;\n\nexport default function GenericErrorMessage() {\n\tconst { formatMessageWithKey, formatRichTextMessageWithKey } = useRemoteOnboardingContext();\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t{formatMessageWithKey(\"title\")}\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{formatMessageWithKey(\"description.title\")}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t

{formatRichTextMessageWithKey(\"description\")}

\n\t\t\t\t\t
\n\t\t\t\t
\n\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{formatMessageWithKey(\"local\")}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{buttonLink(() => { document.location.href = `tel:${formatMessageWithKey(\"local.tel\")}`; }, formatMessageWithKey(\"local.tel\"))}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{formatMessageWithKey(\"abroad\")}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t{buttonLink(() => { document.location.href = `tel:${formatMessageWithKey(\"abroad.tel\")}`; }, formatMessageWithKey(\"abroad.tel\"))}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\n\t\t\t
\n\t\t\t\n\t\t\t\t { window.location.href = MOBILE_PRE_LOGIN_PAGE_URL; }}\n\t\t\t\t/>\n\t\t\t\n\t\t
\n\t);\n\n}","import { FormikErrors, withFormik } from \"formik\";\nimport { GeniusAccountCardProps, GeniusAccountCardValues } from \"./services/domain\";\n\nimport { Branded } from \"io-ts\";\nimport { CARD_SELECTION_FORM_INPUT_NAMES } from \"../cardSelection/services/domain\";\nimport GeniusAccountCardForm from \"./components/GeniusAccountCardForm\";\nimport Loader from \"components/Loader\";\nimport { LocalizedStringBrand } from \"omnichannel-design-system\";\nimport { LooseObject } from \"services/types\";\nimport _ from \"lodash\";\nimport { computeAddressData } from \"flows/Onboarding/services/courierDeliveryAddresses/addressUtils\";\nimport { useEffect } from \"react\";\nimport { useGetCourierDeliveryAddresses } from \"flows/Onboarding/services/courierDeliveryAddresses/getCourierDeliveryAddressesApi\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\nconst {\n COUNTY, CITY, STREET, STREET_NUMBER, BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR, APARTMENT_NUMBER, POSTAL_CODE\n} = CARD_SELECTION_FORM_INPUT_NAMES;\n\nfunction validationPassword(values: GeniusAccountCardValues, errors: FormikErrors, formatMessageWithKey: (text: string, replaceObject?: LooseObject | undefined) => Branded) {\n const alphanumeric = /^[a-z0-9]+$/i;\n if (_.isEmpty(values.password)) {\n errors.password = formatMessageWithKey(\"password.required\");\n } else if (!alphanumeric.test(values.password)) {\n errors.password = formatMessageWithKey(\"password.required.alphanumeric\");\n } else if (values.password.length < 2 || values.password.length > 25) {\n errors.password = formatMessageWithKey(\"password.required.minMaxLength\");\n }\n\n if (_.isEmpty(values.confirmPassword)) {\n errors.confirmPassword = formatMessageWithKey(\"confirmPassword.required\");\n } else if (!alphanumeric.test(values.confirmPassword)) {\n errors.confirmPassword = formatMessageWithKey(\"confirmPassword.required.alphanumeric\");\n }\n}\n\nexport const GeniusAccountCardFormik = withFormik({\n mapPropsToValues: (props) => {\n const { initialValues, formatMessageWithKey, addressList } = props;\n\n return {\n ...initialValues,\n ...computeAddressData({ formatMessageWithKey, addressList })\n };\n },\n handleSubmit: (values: GeniusAccountCardValues, bag: { props: { onSubmit: Function } }) => {\n bag.props.onSubmit(values);\n },\n validate: (values: GeniusAccountCardValues, props) => {\n const { formatMessageWithKey } = props;\n let errors: FormikErrors = {};\n\n if (values.showAddAddress) {\n [COUNTY, CITY, STREET, STREET_NUMBER, POSTAL_CODE].forEach(fieldName => {\n if (_.isEmpty((values as LooseObject)[fieldName])) {\n (errors as LooseObject)[fieldName] = formatMessageWithKey(fieldName + \".required\");\n }\n });\n\n [{name: STREET, maxLength: 31}, {name: STREET_NUMBER, maxLength: 6}, {name: BLOCK_NUMBER, maxLength: 9}, {name: BLOCK_ENTRANCE, maxLength: 4}, { name: FLOOR, maxLength: 2}, {name: APARTMENT_NUMBER, maxLength: 3}]\n .forEach(item => {\n const {name, maxLength} = item;\n let actualLength = (values as LooseObject)[name]?.length;\n\n if (actualLength > maxLength) {\n (errors as LooseObject)[name] = formatMessageWithKey(name + \".maxLength\");\n }\n });\n return errors;\n }\n\n if (_.isEmpty(values.selectedAddress) && props.selectedCard.physicalCard) {\n errors.selectedAddress = formatMessageWithKey(\"selectedAddress.required\");\n }\n\n validationPassword(values, errors, formatMessageWithKey);\n\n if (values.password !== values.confirmPassword && !errors.confirmPassword) {\n errors.confirmPassword = formatMessageWithKey(\"confirmPassword.isNotIdentical\");\n }\n\n return errors;\n }\n})(GeniusAccountCardForm);\n\ntype Props = {\n onNext: () => void;\n}\n\nexport default function GeniusAccountCard({ onNext }: Props) {\n const { formatMessageWithKey, selectedCard, geniusAccountCardData } = useRemoteOnboardingContext();\n const { addressList, loading, getAddresses } = useGetCourierDeliveryAddresses();\n\n useEffect(getAddresses, [getAddresses]);\n\n if (loading) {\n return ;\n }\n\n return (\n \n )\n}","import { Body, Box, Divider, Space, Stack, SuggestionsStatus } from \"omnichannel-design-system\";\nimport { COUNTRY_CAPITAL, GeniusAccountCardValues } from \"../services/domain\";\nimport DropdownField, { SelectOption } from \"components/form/DropdownField\";\nimport LoadingButton, { LoadingButtonAction } from \"components/LoadingButton\";\nimport { useEffect, useMemo, useState } from \"react\";\n\nimport AutocompleteInputField from \"components/form/AutocompleteInputField\";\nimport { CARD_SELECTION_FORM_INPUT_NAMES } from \"../../cardSelection/services/domain\";\nimport { LooseObject } from \"services/types\";\nimport TextField from \"components/form/TextField\";\nimport _ from \"lodash\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useDeleteDeliveryAddressApi } from \"flows/Onboarding/services/courierDeliveryAddresses/deleteCourierAddress\";\nimport { useFormikContext } from \"formik\";\nimport { useGetCourierDeliveryCities } from \"../services/getCourierDeliveryCitiesApi\";\nimport { useGetCourierDeliveryCounties } from \"../services/getCourierDeliveryCountiesApi\";\nimport { useGetCourierDeliveryPostalCodes } from \"../services/getCourierDeliveryPostalCodesApi\";\nimport { useGetCourierDeliveryStreetNames } from \"../services/getCourierDeliveryStreetNamesApi\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useSaveDeliveryAddressApi } from \"flows/Onboarding/services/courierDeliveryAddresses/saveDeliveryAddressApi\";\n\nconst {\n COUNTY, CITY, STREET, STREET_NUMBER, POSTAL_CODE, APARTMENT_NUMBER, BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR\n} = CARD_SELECTION_FORM_INPUT_NAMES;\n\nexport type GetAddressDataRequest = {\n county?: string;\n city?: string;\n sector?: string;\n street?: string;\n streetValue?: string;\n}\n\ntype Props = {\n onClose: LoadingButtonAction;\n}\n\nfunction computeSuggestions(isLoading: boolean, selectOptions: Array, value?: string): SuggestionsStatus {\n if (isLoading) {\n return { status: \"loading\" };\n }\n return {\n status: \"ready\",\n suggestions: !selectOptions ? [] : selectOptions.map(item => ({\n value: item.label,\n label: <>{\n value ? item.label\n .split(value)\n .map((parts, index, array) => <>{parts}{index !== array.length - 1 && {value}})\n : item.label\n }\n }))\n }\n}\n\nexport function AddressDeliveryForm(props: Props) {\n const { onClose } = props;\n const { values, isValid, setValues } = useFormikContext();\n const { city, postalCode, street, streetObject, streetNumber, apartmentNumber, blockEntrance, blockNumber, floor } = values;\n const { value: streetValue } = streetObject || {};\n\n const { formatMessageWithKey } = useRemoteOnboardingContext();\n const { saveDeliveryAddress } = useSaveDeliveryAddressApi();\n const { deleteDeliveryAddress } = useDeleteDeliveryAddressApi();\n const { counties, getCounties } = useGetCourierDeliveryCounties();\n const { cities, getCities } = useGetCourierDeliveryCities();\n const { streets, getStreets, loading: loadingStreets, setStreets } = useGetCourierDeliveryStreetNames();\n const { postalCodes, getPostalCodes, loading: loadingPostalCodes } = useGetCourierDeliveryPostalCodes();\n\n const [sector, setSector] = useState();\n const [computedCounty, setComputedCounty] = useState();\n\n useEffect(() => {\n const findStreetObject = streets.find(item => item.label === street);\n setValues(prevState => ({\n ...prevState,\n streetObject: findStreetObject\n }));\n }, [street, setValues, streets]);\n\n useEffect(getCounties, [getCounties]);\n\n useEffect(() => {\n if (postalCodes && postalCodes.length === 1) {\n setValues(previousValues => ({ ...previousValues, postalCode: postalCodes[0].value }));\n return;\n }\n setValues(previousValues => ({ ...previousValues, postalCode: \"\" }));\n }, [postalCodes, setValues]);\n\n useEffect(() => {\n if (values.county) {\n if (values.county.startsWith(COUNTRY_CAPITAL)) {\n const countyParts = values.county.split(\"_\");\n getCities(countyParts[0]);\n setComputedCounty(countyParts[0]);\n setSector(countyParts[1]);\n } else {\n setComputedCounty(values.county);\n setSector(undefined);\n getCities(values.county);\n }\n setStreets([]);\n }\n }, [getCities, values.county, setStreets]);\n\n const getStreetsDebounce = useMemo(() =>\n _.debounce((request: GetAddressDataRequest) => {\n if (!_.isEmpty(request.county) && (!_.isEmpty(request.city) || request.sector) && request.street && request.street.length >= 3) {\n getStreets({ county: request.county, city: request.city, sector: request.sector, searchTerm: request.street });\n }\n }, 1000),\n [getStreets]\n );\n\n const getPostalCodesDebounce = useMemo(() =>\n _.debounce((request: GetAddressDataRequest) => {\n if ((!_.isEmpty(request.county)) && (!_.isEmpty(request.city))) {\n getPostalCodes({ county: request.county, city: request.city, sector: request.sector, streetName: request.streetValue });\n }\n }, 1000),\n [getPostalCodes]\n );\n\n useEffect(() => {\n getStreetsDebounce({\n county: computedCounty,\n city,\n sector,\n street: streetValue || street,\n });\n }, [city, street, streetValue, sector, computedCounty, getStreetsDebounce]);\n\n\n useEffect(() => {\n getPostalCodesDebounce({\n county: computedCounty,\n city,\n sector,\n streetValue\n });\n }, [city, sector, computedCounty, streetValue, getPostalCodesDebounce]);\n\n\n const generateResetItem = (key: string) => {\n return {\n when: (newValue: string | undefined) => newValue !== (values as LooseObject)[key],\n key,\n value: \"\"\n };\n }\n\n const handleSubmit = (resolve: (isSuccessfully: boolean) => unknown) => {\n saveDeliveryAddress({\n country: \"Romania\", city, county: computedCounty, sector, postalCode, street, streetNumber, apartmentNumber, blockEntrance, blockNumber, floor\n }, {\n onSuccess: () => onClose(resolve),\n onFail: () => resolve(false)\n })\n }\n\n return (\n \n \n \n {formatMessageWithKey(\"addressForm.title\")}\n \n \n \n\n \n\n \n\n \n\n {[STREET_NUMBER, BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR, APARTMENT_NUMBER].map((name, index) => (\n \n ))}\n\n {(postalCodes && postalCodes.length === 1) ?\n () :\n ()\n }\n\n \n\n \n {\n deleteDeliveryAddress({\n onFail: () => resolve(false),\n onSuccess: () => onClose(resolve)\n })\n }}\n />\n\n \n \n \n );\n}\n","import { AddressItem, DELIVERY_ADDRESS_TYPE } from \"flows/Onboarding/services/courierDeliveryAddresses/domain\";\nimport { AddressItemResponse, useGetCourierDeliveryAddresses } from \"flows/Onboarding/services/courierDeliveryAddresses/getCourierDeliveryAddressesApi\";\nimport { Body, Box, Divider, QuestionIcon, Space, Stack } from \"omnichannel-design-system\";\nimport { FormikErrors, useFormikContext } from \"formik\";\nimport { GeniusAccountCardProps, GeniusAccountCardValues } from \"../services/domain\";\nimport LoadingButton, { LoadingButtonAction } from \"components/LoadingButton\";\nimport { SaveCardInformationRequest, useSaveCardInformation } from \"../services/saveCardInformationApi\";\nimport { useEffect, useState } from \"react\";\n\nimport { AddressDeliveryForm } from \"./AddressDeliveryForm\";\nimport Banner from \"components/Banner\";\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport DropdownField from \"components/form/DropdownField\";\nimport { EMPTY_STRING } from \"components/form/utils\";\nimport GeniusImageHeader from \"./GeniusImageHeader\";\nimport { Heading } from \"components/Heading\";\nimport PasswordField from \"components/form/PasswordField\";\nimport { YourCardsDeliveryAddressDialog } from \"./YourCardsDeliveryAddressDialog\";\nimport _ from \"lodash\";\nimport { computeAddressData } from \"flows/Onboarding/services/courierDeliveryAddresses/addressUtils\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useGetSelectedBranchName } from \"../services/selectedBranchNameApi\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\n\nexport default function GeniusAccountCardForm(props: GeniusAccountCardProps) {\n const { formatMessageWithKey, formatRichTextMessageWithKey, setHeaderMetadata, updateGeniusAccountData, geniusAccountCardData } = useRemoteOnboardingContext();\n const { saveCardInformation } = useSaveCardInformation();\n const { getAddresses } = useGetCourierDeliveryAddresses();\n const { getSelectedBranchName } = useGetSelectedBranchName();\n const { selectedCard } = props;\n const { validateForm, handleSubmit, values, setValues, isValid } = useFormikContext();\n const { addressList, selectedAddress, password, showAddAddress } = values;\n\n const [showAddress, setShowAddress] = useState(false);\n const [selectedBranchName, setSelectedBranchName] = useState(EMPTY_STRING);\n const [showInfo, setShowInfo] = useState(false);\n\n useEffect(() => {\n getSelectedBranchName({\n onSuccess: (response: string) => {\n setSelectedBranchName(response);\n }\n })\n }, [getSelectedBranchName]);\n\n const onSubmit: LoadingButtonAction = (resolve) => {\n validateForm()\n .then((validationErrors: FormikErrors) => {\n const errorKeys = Object.keys(validationErrors);\n if (errorKeys.length) {\n handleSubmit();\n resolve(false);\n return;\n }\n const request: SaveCardInformationRequest = {\n password\n };\n if (!_.isEmpty(selectedAddress)) {\n request.selectedAddress = selectedAddress;\n }\n updateGeniusAccountData({\n ...geniusAccountCardData,\n selectedAddress,\n password\n });\n saveCardInformation(request, {\n onSuccess: () => {\n resolve(true);\n handleSubmit();\n },\n onFail: () => resolve(false),\n })\n });\n };\n\n const onDeliveryAddressClose: LoadingButtonAction = (resolve) => {\n getAddresses((addressListItems: Array) => {\n const selectDeliveryAddress = addressListItems.some(item => item.addressType === DELIVERY_ADDRESS_TYPE);\n setValues(previous => ({\n ...previous,\n showAddAddress: false,\n selectedAddress: selectDeliveryAddress ? DELIVERY_ADDRESS_TYPE : \"\",\n ...computeAddressData({ formatMessageWithKey, addressList: addressListItems }),\n }), true);\n setShowAddress(!selectDeliveryAddress);\n resolve(true);\n setHeaderMetadata({\n showStepper: true,\n onBack: undefined,\n })\n })\n };\n\n if (showAddAddress) {\n return ;\n }\n\n return (\n \n {showAddress && (\n {\n if (doNothing) {\n setShowAddress(false);\n return;\n }\n\n if (selected === DELIVERY_ADDRESS_TYPE) {\n setValues(previous => ({ ...previous, showAddAddress: true }), true);\n setHeaderMetadata({\n showStepper: false,\n onBack: () => {\n setValues(previous => ({ ...previous, showAddAddress: false }), true);\n setHeaderMetadata({\n showStepper: true,\n onBack: undefined,\n })\n }\n });\n return;\n }\n\n setValues(previous => ({ ...previous, selectedAddress: selected }));\n setShowAddress(false);\n }}\n selectedAddress={selectedAddress}\n selectedBranchName={selectedBranchName}\n />)}\n\n \n\n \n\n \n\n {\n selectedCard.physicalCard &&\n \n \n {formatMessageWithKey(\"addressTitle\")}\n \n\n \n\n \n\n setShowAddress(true)}>\n }\n />\n \n\n \n\n {!!selectedAddress && (\n \n )}\n \n }\n\n \n \n \n {formatMessageWithKey(\"contactTitle\")}\n \n\n \n\n setShowInfo(true)}>\n \n \n \n\n \n \n\n \n\n \n\n \n\n \n\n {showInfo && (\n setShowInfo(false),\n label: formatMessageWithKey(\"showInfo.details.action\"),\n variant: \"primary\"\n }]}\n variant=\"left\"\n size=\"small\"\n onDismiss={() => setShowInfo(false)}\n >\n {formatRichTextMessageWithKey(\"showInfo.details.content\")}\n \n )}\n \n )\n}","import { SelectedCards } from \"../../cardSelection/services/domain\";\nimport imageCardPhysical from \"assets/Onboarding/card-physical.png\";\nimport imageCardPhysicalAndVirtual from \"assets/Onboarding/card-physicalAndVirtual.png\";\nimport imageCardVirtual from \"assets/Onboarding/card-virtual.png\";\n\ntype Props = {\n selectedCard: SelectedCards\n}\n\nexport default function GeniusImageHeader(props: Props) {\n const { selectedCard: { physicalCard, virtualCard } } = props;\n\n if (physicalCard && virtualCard) {\n return \"\"\n }\n\n if (physicalCard && !virtualCard) {\n return \"\"\n }\n\n if (!physicalCard && virtualCard) {\n return \"\"\n }\n\n return <>;\n}","import { Box, Stack } from \"omnichannel-design-system\";\n\nimport Banner from \"components/Banner\";\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport RadioButton from \"components/RadioButton\";\nimport { useRemoteOnboardingContext } from \"flows/Onboarding/remote/services/remoteOnboardingContext\";\nimport { useState } from \"react\";\nimport { AddressItem, DELIVERY_ADDRESS_TYPE } from \"../../../../services/courierDeliveryAddresses/domain\";\n\ntype Props = {\n selectedAddress?: string;\n addressList?: Array;\n onClose: (selectedItem: string, justReturn?: boolean) => unknown;\n selectedBranchName: string;\n}\n\nexport function YourCardsDeliveryAddressDialog(props: Props) {\n const { onClose, addressList, selectedAddress = \"\" ,selectedBranchName } = props;\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useRemoteOnboardingContext();\n const [selected, setSelected] = useState(selectedAddress);\n const fullList = addressList ? [...addressList] : [];\n\n if (!fullList.some(item => item.value === DELIVERY_ADDRESS_TYPE)) {\n fullList.push({ value: DELIVERY_ADDRESS_TYPE, label: formatMessageWithKey(\"yourCardsDelivery.newAddress\"), isDeliveryPossible: true });\n }\n\n const onDismiss = () => {\n onClose(selected, true);\n return true;\n }\n \n return (\n onClose(selected)\n }]}\n onDismiss={onDismiss}\n >\n \n {fullList.map(item => (\n \n setSelected(previous => previous === item.value ? \"\" : item.value)}\n isDisabled={false}\n isSelected={selected === item.value}\n isRecommended={false}\n label={item.label}\n description=\"\" />\n\n {selected === item.value && !item.isDeliveryPossible && (\n \n {formatRichTextMessageWithKey(\"yourCardsDelivery.isDeliveryImpossible\", {\"branch\": selectedBranchName})}\n \n } type=\"error\" />\n )}\n\n {selected === item.value && item.value === DELIVERY_ADDRESS_TYPE && (\n \n {formatRichTextMessageWithKey(\"yourCardsDelivery.bannerNewAddress\")}\n \n } type=\"warning\" />\n )}\n \n ))}\n \n )\n}","import { AddressItem } from \"flows/Onboarding/services/courierDeliveryAddresses/domain\";\nimport { AddressItemResponse } from \"flows/Onboarding/services/courierDeliveryAddresses/getCourierDeliveryAddressesApi\";\nimport { LocalizedString } from \"omnichannel-design-system\";\nimport { LooseObject } from \"services/types\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { SelectedCards } from \"../../cardSelection/services/domain\";\n\nexport type GeniusAccountCardValues = {\n addressList?: Array;\n selectedAddress: string;\n password: string;\n confirmPassword: string;\n showAddAddress?: boolean;\n county?: string;\n city?: string;\n cityLabel?: string;\n street?: string;\n streetNumber?: string;\n streetObject?: SelectOption,\n blockNumber?: string;\n blockEntrance?: string;\n floor?: string;\n apartmentNumber?: string;\n postalCode?: string;\n}\n\nexport type GeniusAccountCardProps = {\n onSubmit: (values: any) => unknown;\n formatMessageWithKey: (text: string, replaceObject?: LooseObject) => LocalizedString;\n initialValues: GeniusAccountCardValues,\n selectedCard: SelectedCards;\n addressList: Array;\n}\n\nexport const COUNTRY_CAPITAL = \"BUCURESTI\";","import { useCallback, useState } from \"react\";\n\nimport { Method } from \"axios\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getCourierDeliveryCitiesConfig = {\n url: \"/ca-ro/deliveryAddresses/cities/get\",\n method: \"post\" as Method\n};\n\nexport function useGetCourierDeliveryCities() {\n const [cities, setCities] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState();\n\n const getCities = useCallback((county: string | undefined) => {\n if (county) {\n executeAxios({\n params: { ...getCourierDeliveryCitiesConfig, params: { county } },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (response: Array) => setCities(response.map(label => ({ value: label, label }))),\n })\n return;\n }\n setCities([]);\n }, []);\n\n return {\n getCities,\n cities,\n loading,\n error,\n }\n}","import { useCallback, useState } from \"react\";\n\nimport { COUNTRY_CAPITAL } from \"./domain\";\nimport { Method } from \"axios\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getCourierDeliveryCountiesConfig = {\n url: \"/ca-ro/deliveryAddresses/counties/get\",\n method: \"post\" as Method\n};\n\nexport function useGetCourierDeliveryCounties() {\n const [counties, setCounties] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState();\n\n const getCounties = useCallback(() => {\n executeAxios({\n params: getCourierDeliveryCountiesConfig,\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (response: Array) =>{\n const computedCounties = response\n .filter(countyName => COUNTRY_CAPITAL !== countyName)\n .map(label => ({ value: label, label }));\n computedCounties.unshift(...Array(6).fill({}).map((value,index)=>({value: COUNTRY_CAPITAL + `_${index + 1}`, label: `SECTOR ${index + 1}`})) )\n setCounties(computedCounties)\n }\n })\n }, [])\n\n return {\n getCounties,\n counties,\n loading,\n error,\n }\n}","import { useCallback, useState } from \"react\";\n\nimport { Method } from \"axios\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getCourierDeliveryStreetsConfig = {\n url: \"/ca-ro/deliveryAddresses/postalCodes/get\",\n method: \"post\" as Method\n};\n\nexport type PostalCodesRequest = {\n county?: string;\n city?: string;\n sector?: string;\n streetName?: string;\n}\n\nexport function useGetCourierDeliveryPostalCodes() {\n const [postalCodes, setPostalCodes] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState();\n\n\n const getPostalCodes = useCallback((request: PostalCodesRequest) => {\n executeAxios({\n params: { ...getCourierDeliveryStreetsConfig, data: request },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (response: Array) => setPostalCodes(response.map(label => ({ value: label, label }))),\n })\n }, [])\n\n return {\n setPostalCodes,\n getPostalCodes,\n postalCodes,\n loading,\n error,\n }\n}","import { useCallback, useState } from \"react\";\n\nimport { Method } from \"axios\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getCourierDeliveryStreetsConfig = {\n url: \"/ca-ro/deliveryAddresses/streets/get\",\n method: \"post\" as Method\n};\n\nexport type StreetsRequest = {\n county?: string;\n city?: string;\n sector?: string;\n searchTerm?: string;\n}\n\nexport type Street = {\n streetType: string;\n streetName: string;\n}\n\nexport function useGetCourierDeliveryStreetNames() {\n const [streets, setStreets] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState();\n\n const getStreets = useCallback((request: StreetsRequest) => {\n executeAxios({\n params: { ...getCourierDeliveryStreetsConfig, data: request },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (response: Array) => setStreets(response.map(street => ({ value: street.streetName, label: street.streetType + ' ' + street.streetName }))),\n })\n }, [])\n\n return {\n setStreets,\n getStreets,\n streets,\n loading,\n error,\n }\n}","import { ExecuteAxiosFunctions, executeAxios } from \"services/axiosHook\";\n\nimport { Method } from \"axios\";\nimport { useCallback } from \"react\";\n\nconst saveSaveCardSelectionConfig = {\n url: \"ca-ro/cards/information/save\",\n method: \"post\" as Method\n};\n\nexport type SaveCardInformationRequest = {\n selectedAddress?: string;\n password: string;\n}\n\nexport function useSaveCardInformation() {\n const saveCardInformation = useCallback((data: SaveCardInformationRequest, callbacks: ExecuteAxiosFunctions) => {\n executeAxios({\n params: { ...saveSaveCardSelectionConfig, data },\n ...callbacks\n })\n }, []);\n\n return {\n saveCardInformation\n }\n}","import { Method } from \"axios\";\nimport { useCallback } from \"react\";\nimport { executeAxios, ExecuteAxiosFunctions } from \"services/axiosHook\";\n\nconst getSelectedBranchNameConfig = {\n url: \"/ca-ro/branchDetails/branch/selected\",\n method: \"post\" as Method\n}\n\nexport function useGetSelectedBranchName() {\n return {\n getSelectedBranchName: useCallback(({onSuccess}: ExecuteAxiosFunctions) => {\n executeAxios({\n params: getSelectedBranchNameConfig,\n onSuccess,\n })\n }, [])\n }\n}\n","import { Body, Box, CloseIcon, SingleTickIcon, Space, Stack, unsafeLocalizedString } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport LoadingButton from \"components/LoadingButton\";\nimport image from \"assets/Onboarding/how-to-scan-your-id.png\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { sendMockCiDataOcr } from \"../../components/ButtonWithMockedAction\";\nimport { useAppContext } from \"services/appContext\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useRemoteOnboardingContext } from \"../../services/remoteOnboardingContext\";\nimport useRemoteOnboardingStepOptions from \"../../services/useRemoteOnboardingStepOptions\";\n\ntype Props = {\n onNext: () => void;\n}\n\nconst DO_ACTION = {\n RIGHT: \"right\",\n INCORRECT: \"incorrect\"\n}\n\nexport default function HowToScanId(props: Props) {\n const { formatMessageWithKey, updateContext } = useRemoteOnboardingContext();\n const { formatMessage } = useFormatMessage();\n const { options = [] } = useRemoteOnboardingStepOptions();\n const { configurations } = useAppContext();\n\n return (\n \n \n\n {formatMessageWithKey(\"title\")}\n\n {options\n .filter(option => ![\"title\", \"do\"].some(key => !option[key]))\n .map(option => {\n const doAction = formatMessage(option.do)\n return (\n \n \n {DO_ACTION.RIGHT === doAction && (\n \n )}\n\n {DO_ACTION.INCORRECT === doAction && (\n \n )}\n \n \n {formatMessage(option.title as string)}\n \n\n \n )\n })}\n\n \n\n {\n configurations.mockIdScan &&\n {\n updateContext({ mockScanCI: true });\n sendMockCiDataOcr(() => {\n props.onNext();\n resolver(true);\n }, () => {\n resolver(false);\n })\n }}\n />\n }\n\n \n \n )\n}"],"names":["SECTOR_PREFIX","computeStreetDetails","key","value","setValue","streetDetails","NumberIcon","_ref","icon","index","borderColor","borderWidth","formatRichTextMessage","useFormatMessage","_jsx","Box","width","height","children","vAlignContent","hAlignContent","style","border","borderRadius","palette","blue600","Body","size","weight","unsafeLocalizedString","ELIGIBILITY","PACKAGE_SELECTION","OPTIMAL_OFFER","INFORMATIVE_NOTICE","STEPS_PRESENTATION","DATA_PRIVACY_CONSENT","PHONE_NUMBER_VALIDATION","EXISTING_APPLICATION","EMAIL_VALIDATION","KNOW_YOUR_CUSTOMER","KNOW_YOUR_CUSTOMER_TRANSACTIONS","PROCESS_CEASED","KYC_PENDING_RESULTS","OTP_CANT_PROCEED","USER_CONTACT_INFO","SCAN_ID","HOW_TO_SCAN_ID","SCAN_ID_STATUS","DATA_SUMMARY_FIRST_PART","DATA_SUMMARY_SECOND_PART","IDENTIFICATION_CARD_IS_EXPIRED","BRANCH_SELECTION","MARKETING_CONSENTS","CARD_SELECTION","GENIUS_ACCOUNT_CARD","SIGN_CONTRACTUAL_DOCUMENT","CONTRACT_SIGNATURE","CONTRACTS_SIGNATURE_STATUS","TAKE_SELFIE_INFORMATION","TAKE_SELFIE_STATUS","IDENTIFICATION_SUCCESSFUL","SIGNING_PROCESS_COMPLETED","FEEDBACK","LOADING","EXPIRED","RESUME_PASSWORD_VALIDATE","RESUME_APPLICATION_VERIFY_PHONE_NUMBER","RESUME_OTP_VALIDATION","RESUME_CANT_PROCEED","RESUME_WRONG_PASSWORD","GENERIC_ERROR_MESSAGE","Step","getCurrentPage","step","handleSubmit","Eligibility","onNext","PackageSelection","OptimalOffer","InformativeNotice","StepsPresentation","DataPrivacyConsent","PhoneNumberValidation","onBlocked","onExistingApplication","ExistingApplication","onResume","goToResumePasswordValidate","EmailValidation","UserContactInfo","ScanId","HowToScanId","ScanIdStatus","onBack","onIdCardExpired","onProcessCeased","IdentificationCardIsExpired","DataSummaryFirstPart","DataSummarySecondPart","TakeSelfieInformation","TakeSelfieStatus","onError","IdentificationSuccessful","KnowYourCustomer","KnowYourCustomerTransaction","ProcessCeased","KycPendingResults","onKycSuccess","onKycFailure","BranchSelection","MarketingConsents","CardSelection","GeniusAccountCard","SignContractualDocument","ContractSignature","ContractsSignatureStatus","SigningProcessCompleted","next","Feedback","OtpCantProceed","Loader","ExpiredApplication","ResumePasswordValidate","ResumeApplicationVerifyPhoneNumber","ResumeOtpValidate","ResumeCantProceed","GenericErrorMessage","DefaultErrorPage","onSubmit","OnboardingContentStyled","styled","_templateObject","_taggedTemplateLiteral","OnboardingContent","_ref3","scheduledPortalBlockContent","goToStep","headerMetadata","onCloseApplicationFeedbackBack","onCancel","title","showStepper","currentStepIndex","showCloseApplication","setHeaderMetadata","useRemoteOnboardingContext","formatMessage","configurations","enableOptimalOffer","useAppContext","changeStep","useChangeStep","handleStepChange","useCallback","page","doStep","computeOptimalOfferPages","newStep","onSuccess","onFail","response","computedStep","stepResponse","data","StepResponse","RETRY_ACTIONS","pageTo","arguments","length","undefined","HEADER_TITLE","CURRENT_ACCOUNT","RETRIEVE_FLOW","handleCloseApplication","includes","window","location","href","MOBILE_PRE_LOGIN_PAGE_URL","_jsxs","column","MainNavigationHeader","_ref2","onBackDefault","onClose","className","grow","display","Stepper","totalSteps","CloseApplication","isStepBeforeEmailValidation","RemoteOnboarding","_ref4","_configurations$envir","environment","toLowerCase","PROD","loading","setLoading","useState","initialState","setInitialState","initialOnboardingState","checkResume","useCheckResume","updateInitialStateWithResumeInfo","applicationId","status","maskedPhoneNumber","productName","requestDate","applicationCloseable","applicationResumable","resumeInfo","phoneNumber","useEffect","getQueryVariable","onLoading","OnboardingProvider","EnvironmentButton","left","MockActions","ContainerStyled","sendMockCiDataOcr","callback","capture","fetch","roCardFrontImage","then","res","blob","reader","FileReader","readAsDataURL","onload","result","replace","getDefaultCI","documentContent","executeAxios","params","url","method","ocrSkipAuthenticityCheck","ocrRandomizeData","console","log","ButtonWithMockedAction","mockAction","SEND_CI_TO_OCR","Button","disabled","variant","translationKey","action","branchCode","sendBranchDetailsMock","toLocaleLowerCase","BodyStyled","CustomToggleElement","labelKey","links","name","onChange","formatMessageWithKey","wrap","shrink","color","Space","fluid","SwitchField","issues","option","label","ExpandableItemList","items","selected","setSelected","Stack","units","map","item","itemList","onClick","SmallIconContainerStyled","$size","AngleUpIcon","AngleDownIcon","InformationDetailContainerStyled","text","Divider","GetSupportContentStyled","white","dark","GetSupport","CallIcon","formatPhoneNumber","document","concat","OtpBannersValidation","isOtpValid","otpCodeExpired","otpRemainingGenerations","otpRemainingValidations","isOtpResent","isOtpTouched","formatMessageProps","formatRichTextMessageWithKey","props","Object","keys","filter","forEach","useCustomFormatMessage","Banner","type","content","resendAttempts","_Fragment","neutral300","CenteredTextStyled","_templateObject2","PoolingScreen","ProgressContainerStyled","ProgressIcon","mockIdScan","process","REACT_APP_MOCK_ID_SCAN","TitleSection","titleKey","neutral500","checkBranchSelectionPath","checkBranchSelectionStatus","branchSelectionStatus","useBranchSelectStatusCheck","initiateBranchSelection","useBranchSelectStatusCheckInitiation","MB_BRANCH_SELECTION_LINK","sessionStorageData","getItem","setTimeout","POLLING_DELAY","BranchSelectStatus","OK","ERR","RETRY","REACT_APP_MOCK_BRANCH_SELECTION","SEND_BRANCH_DETAILS","Heading","src","image","maxWidth","alt","overflowWrap","POLLING_INTERVAL","POLLING_TIMEOUT","initiateBranchSelectionPath","error","setError","setBranchSelectionStatus","NOT_CHECKED","startTime","Date","getTime","executeBranchSelectStatusCheck","pollingTime","CANCEL","TIMEOUT","executeCheckBranchSelectStatusTimeout","TitleStyled","showSupport","setShowSupport","history","useHistory","go","computeNextButtonDisabled","selectedCards","selectedAccounts","accounts","selectCard","_","some","getAccounts","useGetAccounts","selectedCard","selectedAccount","updateContext","setSelectedCards","setSelectedAccounts","moreDetails","setMoreDetails","saveCardSelection","useSaveCardSelection","handleMoreDetails","event","cardType","stopPropagation","cardTypes","backFromMoreDetails","Dialog","actions","onDismiss","isSelected","CardSelectionItem","prevState","toggleCard","AttacheToDropdown","onSelectedAccount","previous","previousValue","LoadingButton","resolve","getCurrency","virtualCurrency","physicalCurrency","normalText","accountOptions","account","Formik","initialValues","validate","constVoid","DropdownFieldWrapper","placeholder","options","CardSelectionContainerStyled","paddingTop","Checkbox","imageCardVirtual","imageCardPhysical","CARD_SELECTION_FORM_INPUT_NAMES","COUNTY","CITY","CITY_LABEL","STREET","STREET_NUMBER","BLOCK_NUMBER","BLOCK_ENTRANCE","FLOOR","APARTMENT_NUMBER","POSTAL_CODE","saveSaveCardSelectionConfig","callbacks","apiConfig","setAccounts","currencies","showCloseApplicationQuestion","setShowCloseApplicationQuestion","previousTitle","setPreviousTitle","handleResume","handleCloseApplicationQuestionNext","CloseApplicationQuestion","previousHeaderTitle","CloseApplicationFeedback","feedbackUrls","FEEDBACK_URLS","CANCELLED","createTranslation","getReasons","saveFeedback","useFeedbackApi","reasons","setReasons","selectedReasons","setSelectedReasons","quitApplication","useQuitApplication","isOtherReasonInvalid","incomingReasons","reasonWithMessage","find","hasMessage","idFeedBackWithMessage","id","isOtherReasonSelected","isMessageValid","message","test","checkOtherMessageLength","FeedbackReasonList","customValidateMessage","errorKey","feedbacks","selectedReasonsItem","selectedReason","isItemSelected","reasonChecked","reasonId","onSubmitFeedback","precontractsSentToday","precontractsSentTodayLoading","usePrecontractsSentTodayApi","getExpirationTime","expirationTimeLoading","expirationTime","useApplicationExpirationTime","userMessage","setUserMessage","availableResumePassword","availableResumePasswordLoading","useAvailableResumePasswordApi","askPassword","setAskPassword","verificationEmailSent","available","imageBeforeEmailValidation","imageAfterEmailValidation","expirationDate","ResumePasswordForm","handleOnResume","ResumePasswordInner","errors","isValid","useFormikContext","PasswordField","showHideButtons","showHideButtonsIcons","assistiveText","password","touched","description","descriptionConfirmLabel","validations","checkAlphaNumerical","maxLength","minLength","saveResumePassword","useSaveResumePasswordApi","values","validateOnMount","executeValidation","precontractsSentTodayConfig","quitApplicationConfig","availableResumePasswordApiConfig","applicationInfoApiConfig","validateResumePasswordApiConfig","useValidateResumePasswordApi","validateResumePassword","ContractSignatureWrapper","withFormik","mapPropsToValues","pin","ContractSignatureForm","getPhoneNumber","useGetPhoneNumber","contractSigningError","updateContractSigningError","signDocuments","useSignContracts","issueCertificate","issueCertificateLoading","useIssueCertificate","setValues","validateForm","disableResend","setDisableResend","disablePin","setDisablePin","issueCertificateInfo","setIssueCertificateInfo","attemptsRemaining","signatureError","otpAttemptsRemaining","onIssueCertificate","info","getOtpAttemptsRemaining","showOtpInvalidCodeError","maxOtpAttempts","showResendAttemptWarning","maxAttempts","bold","TextField","handleChange","substring","errorDisabled","attempts","validationErrors","getPhoneNumberConfig","setPhoneNumber","issueCertificateConfig","signDocumentsConfig","otp","PROCESSING","COMPLETED","CLIENT_ONBOARDING_ERROR","DataProcessingStatus","processing","getProcessing","useContractsSignatureStatusApi","firstName","getFirstName","useGetFirstNameApi","neutral700","getDataProcessingConfig","setProcessing","getFirstNameConfig","setFirstName","onboardingContext","documents","getDMSFilesList","useGetDMSFilesList","getDMSFilesListConfig","consent","setConsent","initialConsent","consentFromContext","dataPrivacyConsent","fileNameSelected","setDocumentSelected","getApiConfigDocuments","fileName","file","filePath","isDmsDoc","dmsDoc","selectedDocument","DocumentDetails","showAsDialog","isReadOptional","onConfirm","translationsKeys","confirmationButtonText","downloadButtonText","NavigationElement","firstLine","leftIcon","DocumentIcon","rightIcon","AngleRightIcon","DATE_FORMAT","ocrDataSummary","getDataSummary","useOcrDataSummary","surname","cnp","placeOfBirth","icSeriesAndNumber","issuesAuthority","issueDate","expiryDate","responseCompleted","HeaderSection","DetailItem","moment","format","DataSummarySecondPartWrapper","_props$ocrDataSummary","postalCode","postalCodes","postalAddressIsTheSame","generateKey","createBaseTranslationKey","DataSummarySecondPartForm","saveDataSummaryAddress","useSaveDataSummaryAddress","ocrDataSummaryContext","ocrDataSummaryFresh","setOcrDataSummary","homePostalCode","sameHomeAndResidenceAddress","residenceAddress","residenceAndPostalAddress","computePostalAddressLabel","_len","Array","_key","join","AddAddressFieldsWrapper","formValidation","_cities$find","setFieldValue","county","city","street","cities","counties","streets","generateResetItem","onStreetBlur","useAddressDataLogic","setStreetDetails","countyId","cityId","havePostalCodes","cityValue","searchTerm","computeCounty","_counties$find","DropdownField","searchable","valuesResetOnChange","AutocompleteInputField","onSelectedSuggestion","suggestion","suggestions","computeSuggestions","computeDeliveryAddresses","addressesList","homeOption","number","push","POSTAL_ADDRESS","RESIDENCE","block","entrance","floor","apartment","COUNTRY_CAPITAL","AddAddressForm","initialValue","countyLabel","cityLabel","postalAddressSameAs","HOME","showAddAddress","setShowAddAddress","openEditResidenceAddress","sector","addressValues","previousValues","PostalCodeComponent","checked","virtualKeyboardInputType","useRemoteOnboardingStepOptions","showMoreDetails","setShowMoreDetails","componentIsMounted","useRef","current","MoreDetails","neutral200","IconContainerStyled","Recommendation","MORE_DETAILS","ELIGIBILITY_MORE_DETAILS","RequirementItemStyled","ListBulletIcon","question","QuestionAndAnswerItem","setOpen","open","QuestionText","DialogForm","recommendation","checkRecommendation","useCheckRecommendation","async","validatedErrors","Typography","showDialog","setShowDialog","setRecommendation","rmExistsApiConfig","agentExistsApiConfig","promoCode","str","isNaN","parseFloat","agentId","rmCode","EmailValidationFormikWrapper","editEmailMode","email","allContactDataOtpRemainingGenerations","enableEmailDomainValidation","computeTranslationKey","match","EMAIL_REGEX","emailParts","segment","split","startsWith","totalOtpRemainingGenerations","otherValues","validateOtp","_ref5","otpIsValid","EmailValidationForm","_ref6","resendOtp","useResendOtp","useValidateOtp","EmailContainerStyled","EditEmailMode","generateOtp","useGenerateOtp","isValidatedOnBlur","prev","contactDataOtpRemainingGenerations","isFormValid","showBackButton","setShowBackButton","interval","clearInterval","handleBack","prevValues","displaySupportButton","displayNextStepButton","disableNextStepButton","SpinnerIcon","PinInput","readOnly","previousStep","resumeLoading","resumeApplication","applicationClosed","useResumeApplication","cancelLoading","cancelApplication","useCancelApplication","displayApplicationClosedDialog","setDisplayApplicationClosedDialog","isResumeEnabledAndResumable","resumeEnabledOnboarding","ApplicationClosedDialog","onCloseDialog","shouldDisplayResumePasswordValidate","QuestionIcon","align","padding","activateMobileBanking","useActivateMobileBankingApi","allReasons","setAllReasons","starSelected","setStarSelected","visibleReasons","setVisibleReasons","feedbackType","setFeedbackType","validationReasons","FINISHED_UNHAPPY","FINISHED_HAPPY","FinishWithContainerStyled","FeedbackRating","ratingLength","ratingContent","saveFeedbackAction","activateMobileBankingConfig","PhoneSupportIcon","monochromatic","marginLeft","buttonLink","GeniusAccountCardFormik","addressList","computeAddressData","bag","fieldName","_name","selectedAddress","physicalCard","alphanumeric","confirmPassword","validationPassword","GeniusAccountCardForm","geniusAccountCardData","getAddresses","useGetCourierDeliveryAddresses","isLoading","selectOptions","parts","array","backgroundColor","blue100","AddressDeliveryForm","streetObject","streetNumber","apartmentNumber","blockEntrance","blockNumber","streetValue","saveDeliveryAddress","useSaveDeliveryAddressApi","deleteDeliveryAddress","useDeleteDeliveryAddressApi","getCounties","useGetCourierDeliveryCounties","getCities","useGetCourierDeliveryCities","getStreets","loadingStreets","setStreets","useGetCourierDeliveryStreetNames","getPostalCodes","loadingPostalCodes","useGetCourierDeliveryPostalCodes","setSector","computedCounty","setComputedCounty","findStreetObject","countyParts","getStreetsDebounce","useMemo","request","getPostalCodesDebounce","streetName","when","newValue","filterConstraints","country","updateGeniusAccountData","saveCardInformation","useSaveCardInformation","getSelectedBranchName","useGetSelectedBranchName","showAddress","setShowAddress","selectedBranchName","setSelectedBranchName","EMPTY_STRING","showInfo","setShowInfo","addressListItems","selectDeliveryAddress","addressType","DELIVERY_ADDRESS_TYPE","YourCardsDeliveryAddressDialog","doNothing","GeniusImageHeader","pointerEventsOnSelection","virtualCard","imageCardPhysicalAndVirtual","fullList","isDeliveryPossible","RadioButton","onSelect","isDisabled","isRecommended","getCourierDeliveryCitiesConfig","setCities","getCourierDeliveryCountiesConfig","setCounties","computedCounties","countyName","unshift","fill","getCourierDeliveryStreetsConfig","setPostalCodes","streetType","getSelectedBranchNameConfig","DO_ACTION","RIGHT","INCORRECT","objectFit","doAction","do","SingleTickIcon","success600","CloseIcon","error700","resolver","mockScanCI"],"sourceRoot":""}