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,IAAKQ,KAAU94B,GACzD,KAAKm4B,EAAa,OAAOn4B,EACzB,QAAS,OAAO84B,EAExB,C","sources":["flows/CreditCard/CreditCard.tsx","flows/CreditCard/components/CardImagePlaceholder.tsx","flows/CreditCard/pages/ActiveOffer/ActiveOffer.tsx","flows/CreditCard/pages/ActiveOffer/services/activeOfferServices.ts","flows/CreditCard/pages/Agreements/CreditCardAgreements.tsx","flows/CreditCard/pages/Agreements/components/GdprBanner.tsx","flows/CreditCard/pages/Agreements/services/consentApi.ts","flows/CreditCard/pages/Agreements/services/domain.ts","flows/CreditCard/pages/Agreements/services/getSelectedCardApi.ts","flows/CreditCard/pages/Agreements/styles/NavigationSwitchDescriptionStyled.ts","flows/CreditCard/pages/AgreementsSignature/Signature/AgreementsSignature.tsx","flows/CreditCard/pages/AgreementsSignature/Signature/services/signConsents.ts","flows/CreditCard/pages/AgreementsSignature/SignaturePolling/SignaturePolling.tsx","flows/CreditCard/pages/ApprovedCard/ApprovedCard.tsx","flows/CreditCard/pages/ApprovedCard/services/approvalResponseApi.ts","flows/CreditCard/pages/CardDelivery/CardDelivery.tsx","flows/CreditCard/pages/CardDelivery/components/CardDeliveryAddressForm.tsx","flows/CreditCard/pages/CardDelivery/components/CardDeliveryForm.tsx","flows/CreditCard/pages/CardDelivery/components/DeliveryDetails.tsx","flows/CreditCard/pages/CardDelivery/services/cardDeliveryApi.ts","flows/CreditCard/pages/CardDelivery/services/formConstants.ts","flows/CreditCard/pages/CardPresentation/CardPresentation.tsx","flows/CreditCard/pages/CardPresentation/components/CardDetailItem.tsx","flows/CreditCard/pages/CardPresentation/components/CarouselItem.tsx","flows/CreditCard/pages/CardPresentation/services/domain.ts","flows/CreditCard/pages/CardPresentation/services/useClientTypeConfig.tsx","flows/CreditCard/pages/CardPresentation/services/useLoadCardOptions.tsx","flows/CreditCard/pages/CardPresentation/utils/compute.ts","flows/CreditCard/pages/CardPresentation/utils/validation.ts","flows/CreditCard/pages/CheckAlternativeOffer/CheckAlternativeOffer.tsx","flows/CreditCard/pages/CheckAlternativeOffer/services/alternativeOfferApi.tsx","flows/CreditCard/pages/ContractSignature/ContractSignature.tsx","flows/CreditCard/pages/ContractSignature/services/contractSignatureUserApi.ts","flows/CreditCard/pages/ContractSignature/services/electronicSignatureService.ts","flows/CreditCard/pages/ContractSignature/services/signContracts.ts","flows/CreditCard/pages/Contracts/Contracts.tsx","flows/CreditCard/pages/Contracts/services/contractDocumentApi.ts","flows/CreditCard/pages/Contracts/services/issueElectronicCertificateApi.ts","flows/CreditCard/pages/DisbursementDataAnalyze/DisbursementDataAnalyze.tsx","flows/CreditCard/pages/ExistingBlockingCreditCardApplications/ExistingBlockingCreditCardApplications.tsx","flows/CreditCard/pages/Feedback/CancelCreditCardsWithFeedback.tsx","flows/CreditCard/pages/Feedback/FinishCreditCardsWithFeedback.tsx","flows/CreditCard/pages/Feedback/services/cancelApplicationApi.ts","flows/CreditCard/pages/Feedback/services/domain.ts","flows/CreditCard/pages/FinancialInformation/FinancialInformation.tsx","flows/CreditCard/pages/FinancialInformation/components/FinancialDeclaration.tsx","flows/CreditCard/pages/FinancialInformation/components/FinancialInformationForm.tsx","flows/CreditCard/pages/FinancialInformation/services/saveFinancialDataApi.ts","flows/CreditCard/pages/FinancialInformation/utils/financialInformationUtils.ts","flows/CreditCard/pages/FinancialInformationDataAnalyze/FinancialInformationDataAnalyze.tsx","flows/CreditCard/pages/GrantedCard/GrantedCard.tsx","flows/CreditCard/pages/OfferSummary/OfferSummary.tsx","flows/CreditCard/pages/OfferSummary/components/PreContractualForm.tsx","flows/CreditCard/pages/OfferSummary/services/offerSummaryApi.tsx","flows/CreditCard/pages/OfferSummaryDataAnalyze/OfferSummaryDataAnalyze.tsx","flows/CreditCard/pages/OurOffer/OurOffer.tsx","flows/CreditCard/pages/OurOffer/components/CreditCardImage.tsx","flows/CreditCard/pages/OurOffer/components/NameOnCardSelection.tsx","flows/CreditCard/pages/OurOffer/components/OfferTabs.tsx","flows/CreditCard/pages/OurOffer/components/OurOfferForm.tsx","flows/CreditCard/pages/OurOffer/components/RepresentativeExample.tsx","flows/CreditCard/pages/OurOffer/services/calculateOfferService.ts","flows/CreditCard/pages/OurOffer/services/domain.ts","flows/CreditCard/pages/OurOffer/services/getOfferService.ts","flows/CreditCard/pages/OurOffer/services/getReprezentativeExampleService.ts","flows/CreditCard/pages/OurOffer/services/saveOfferService.ts","flows/CreditCard/pages/OurOffer/utils/ourOfferFormUtils.ts","flows/CreditCard/pages/OurOffer/utils/validate.ts","flows/CreditCard/pages/PaymentCard/PaymentCard.tsx","flows/CreditCard/pages/PaymentCard/components/PaymentCardForm.tsx","flows/CreditCard/pages/PaymentCard/services/saveConfigureLoanDetailsApi.ts","flows/CreditCard/pages/PrecontractualDocumentsSignature/Signature/Signature.tsx","flows/CreditCard/pages/PrecontractualDocumentsSignature/Signature/components/AnalyzingRequest.tsx","flows/CreditCard/pages/PrecontractualDocumentsSignature/Signature/components/RejectedOffer.tsx","flows/CreditCard/pages/PrecontractualDocumentsSignature/Signature/services/domain.ts","flows/CreditCard/pages/PrecontractualDocumentsSignature/Signature/services/signPrecontracts.ts","flows/CreditCard/pages/PrecontractualDocumentsSignature/SignaturePolling/SignaturePolling.tsx","flows/CreditCard/services/creditCardContext.tsx","flows/CreditCard/services/darRequest.ts","flows/CreditCard/services/domain.ts","flows/CreditCard/services/reducer.ts"],"sourcesContent":["import { ACTIVE_OFFER_STATES, PENDING_RESOLUTION_STATE } from \"pages/Resume/service/domain\";\nimport { CreditCardProvider, initialCreditCardState, useCreditCardContext } from \"./services/creditCardContext\";\nimport { executeAxios, getQueryVariable } from \"services/axiosHook\";\nimport { useEffect, useState } from \"react\";\n\nimport ActiveOffer from \"./pages/ActiveOffer/ActiveOffer\";\nimport AgreementsSignaturePolling from \"./pages/AgreementsSignature/SignaturePolling/SignaturePolling\";\nimport ApprovedCard from \"./pages/ApprovedCard/ApprovedCard\";\nimport CancelCreditCardsWithFeedback from \"./pages/Feedback/CancelCreditCardsWithFeedback\";\nimport CardDelivery from \"./pages/CardDelivery/CardDelivery\";\nimport CardPresentation from \"./pages/CardPresentation/CardPresentation\";\nimport CheckAlternativeOffer from \"./pages/CheckAlternativeOffer/CheckAlternativeOffer\";\nimport ContractSignature from \"./pages/ContractSignature/ContractSignature\";\nimport Contracts from \"./pages/Contracts/Contracts\";\nimport CreditCardAgreements from \"./pages/Agreements/CreditCardAgreements\";\nimport DefaultErrorPage from \"components/DefaultErrorPage\";\nimport DisbursementDataAnalyze from \"./pages/DisbursementDataAnalyze/DisbursementDataAnalyze\";\nimport ExistingBlockingCreditCardApplications from \"./pages/ExistingBlockingCreditCardApplications/ExistingBlockingCreditCardApplications\";\nimport ExpiredOffer from \"pages/Resume/ExpiredOffer\";\nimport FinancialInformation from \"./pages/FinancialInformation/FinancialInformation\";\nimport FinancialInformationDataAnalyze from \"./pages/FinancialInformationDataAnalyze/FinancialInformationDataAnalyze\";\nimport FinishCreditCardsWithFeedback from \"./pages/Feedback/FinishCreditCardsWithFeedback\";\nimport GrantedCard from \"./pages/GrantedCard/GrantedCard\";\nimport KycExpired from \"../../pages/KycExpired/KycExpired\";\nimport Loader from \"components/Loader\";\nimport { LooseObject } from \"services/types\";\nimport { Method } from \"axios\";\nimport OfferSummary from \"./pages/OfferSummary/OfferSummary\";\nimport OfferSummaryDataAnalyze from \"./pages/OfferSummaryDataAnalyze/OfferSummaryDataAnalyze\";\nimport OurOffer from \"./pages/OurOffer/OurOffer\";\nimport { Pages } from \"./services/domain\";\nimport PaymentCard from \"./pages/PaymentCard/PaymentCard\";\nimport { PersonalDataOverviewWrapper } from \"pages/PersonalDataOverview/PersonalDataOverview\";\nimport PrecontractualDocumentsSignaturePolling from \"./pages/PrecontractualDocumentsSignature/SignaturePolling/SignaturePolling\";\nimport { useAppContext } from \"services/appContext\";\n\nconst {\n CARD_PRESENTATION,\n EXISTING_BLOCKING_APPLICATIONS,\n AGREEMENTS,\n AGREEMENTS_SIGNATURE_POLLING,\n FINANCIAL_INFORMATION,\n FINANCIAL_INFORMATION_DATA_ANALYZE,\n OUR_OFFER,\n CARD_DELIVERY,\n PAYMENT_CARD,\n CHECK_ALTERNATIVE_OFFER,\n OFFER_SUMMARY,\n PRECONTRACTUAL_DOCUMENTS_SIGNATURE_POLLING,\n OFFER_SUMMARY_DATA_ANALYZE,\n GRANTED_CARD,\n CONTRACTS,\n CONTRACT_SIGNATURE,\n DISBURSEMENT_DATA_ANALYZE,\n APPROVED_CARD,\n LOADING,\n CANCEL_APPLICATION_FEEDBACK,\n FINISH_CREDIT_CARD_WITH_FEEDBACK,\n EXPIRED,\n ACTIVE_OFFER,\n KYC_EXPIRED\n} = Pages;\n\nexport type CurrentPageProps = {\n currentPage: string,\n handleSubmit: Function,\n updateNextPageGrantedCard: () => unknown\n}\n\nfunction backToMobileApp() {\n window.location.href = \"mb-unicredit://appredirect/query?appSection=online:products:home\";\n}\n\nexport function getCurrentPage({\n currentPage,\n handleSubmit,\n updateNextPageGrantedCard }: CurrentPageProps) {\n switch (currentPage) {\n case CARD_PRESENTATION:\n return {\n window.location.href = \"mb-unicredit://appredirect/back\"\n }}\n onSubmit={handleSubmit(AGREEMENTS)} />;\n case EXISTING_BLOCKING_APPLICATIONS:\n return ;\n case AGREEMENTS:\n return ;\n case AGREEMENTS_SIGNATURE_POLLING:\n return ;\n case FINANCIAL_INFORMATION:\n return ;\n case FINANCIAL_INFORMATION_DATA_ANALYZE:\n return ;\n case CHECK_ALTERNATIVE_OFFER:\n return ;\n case OUR_OFFER:\n return ;\n case CARD_DELIVERY:\n return ;\n case PAYMENT_CARD:\n return ;\n case OFFER_SUMMARY:\n return ;\n case PRECONTRACTUAL_DOCUMENTS_SIGNATURE_POLLING:\n return ;\n case OFFER_SUMMARY_DATA_ANALYZE:\n return ;\n case APPROVED_CARD:\n return ;\n case CONTRACTS:\n return ;\n case CONTRACT_SIGNATURE:\n return ;\n case FINISH_CREDIT_CARD_WITH_FEEDBACK:\n return ;\n case DISBURSEMENT_DATA_ANALYZE:\n return ;\n case GRANTED_CARD:\n return ;\n case ACTIVE_OFFER:\n return ;\n case CANCEL_APPLICATION_FEEDBACK:\n return ;\n case EXPIRED:\n return ;\n case KYC_EXPIRED:\n return ;\n case LOADING:\n return ;\n default:\n return ;\n }\n}\n\nexport function CreditCardContent() {\n const { currentPage, goToPage } = useCreditCardContext();\n\n const handleSubmit = (pageTo: Pages) => () => {\n goToPage(pageTo);\n };\n\n const updateNextPageGrantedCard = () => {\n // The end, for now.\n };\n\n return getCurrentPage({ currentPage, handleSubmit, updateNextPageGrantedCard });\n}\n\nconst checkResumeCreditCardConfig = {\n url: \"/packages/loans-ro/creditCards/checkResume\",\n method: \"POST\" as Method,\n data: {},\n};\n\ntype ResumeResponse = {\n cancelableApplication: boolean;\n status: string;\n applicationId: string;\n kycExpired: boolean;\n}\n\nexport default function CreditCard() {\n const [loading, setLoading] = useState(true);\n const [initialState, setInitialState] = useState(initialCreditCardState);\n const { configurations, isPersonalDataValid } = useAppContext();\n\n const updateInitialStateWithResumeInfo = ({ status, applicationId, cancelableApplication, kycExpired }: ResumeResponse) => {\n let resumeInfo: LooseObject = { cancelableApplication, applicationId };\n\n if (kycExpired) {\n resumeInfo.currentPage = Pages.KYC_EXPIRED;\n } else if ([...ACTIVE_OFFER_STATES, PENDING_RESOLUTION_STATE].includes(status) && applicationId) {\n resumeInfo.currentPage = Pages.ACTIVE_OFFER;\n } else if (!!status) {\n resumeInfo.currentPage = Pages.EXPIRED;\n }\n\n setInitialState({ ...initialCreditCardState, ...resumeInfo });\n };\n\n useEffect(() => {\n if (configurations.resumeEnabled) {\n const applicationId = getQueryVariable(\"DBNObjectId\");\n executeAxios({\n params: { ...checkResumeCreditCardConfig, data: { dbnObjectId: applicationId ? applicationId : null } },\n onLoading: setLoading,\n onSuccess: updateInitialStateWithResumeInfo,\n });\n } else {\n setLoading(false);\n }\n }, [configurations.resumeEnabled]);\n\n if (loading) {\n return ;\n }\n\n if (\n configurations.personalProfileEnabled &&\n !isPersonalDataValid &&\n !initialState.applicationId // If have applicationId is in resume\n ) {\n return \n }\n\n return (\n \n \n \n )\n}","import styled from \"styled-components\";\nimport {Box} from \"omnichannel-design-system\";\nimport {useFormatMessage} from \"../../../services/formatMessageHook\";\nimport {palette} from \"omnichannel-design-system/lib/styleConstants\";\n\nconst CardImagePlaceholderWrapper = styled(Box)`\n position: relative;\n background-color: ${palette.neutral500};\n border-radius: 10px;\n width: 100%;\n padding-top: 63.16%;\n .cardImagePlaceholderTextContainer {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 100%;\n }\n .cardImagePlaceholderText {\n position: relative; \n }\n`;\n\nexport default function CardImagePlaceholder() {\n const { formatMessage } = useFormatMessage();\n return (\n \n \n \n \n {formatMessage(\"dbn.creditCard.cardImagePlaceholderText1\")}\n \n \n {formatMessage(\"dbn.creditCard.cardImagePlaceholderText2\")}\n \n \n \n \n );\n}","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\n\nimport { Button } from \"components/Button\";\nimport GeneralError from \"pages/GeneralError/GeneralError\";\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport image from \"assets/CashLoan/active-credit-request.png\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useResumeApplication } from \"./services/activeOfferServices\";\n\ntype ActiveOfferProps = {\n\tonCancel: () => unknown;\n}\n\nexport default function ActiveOffer({ onCancel }: ActiveOfferProps) {\n\n\tconst { applicationId, cancelableApplication, setContext } = useCreditCardContext();\n\tconst { loading, error, resumeApplication } = useResumeApplication({ setContext });\n\tconst { formatMessage } = useFormatMessage();\n\n\tconst handleSubmit = () => {\n\t\tresumeApplication(applicationId);\n\t};\n\n\tif (loading) {\n\t\treturn ;\n\t}\n\n\tif (error) {\n\t\tconst textCode = error.config.url.includes(\"cancel\") ? \"dbn.cancelLoan.error\" : \"dbn.resumeLoan.error\";\n\t\treturn ;\n\t}\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\n\t\t\t\t\t\t{formatMessage(\"dbn.creditCard.activeOffer.description\")}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\n\t\t\t\n\n\t\t\t\n\t\t\t\t{formatMessage(\"dbn.creditCard.activeOffer.title\")}\n\t\t\t\n\n\t\t\t\n\t\t\t\t{\n\t\t\t\t\tcancelableApplication &&\n\t\t\t\t\t\n\t\t\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\n\t\t\n\t);\n}","import { ACTIVE_OFFER_STATES, PENDING_RESOLUTION_STATE } from \"pages/Resume/service/domain\";\nimport { CreditCardContextProps, Pages } from \"flows/CreditCard/services/domain\";\nimport { useCallback, useState } from \"react\";\n\nimport { LooseObject } from \"services/types\";\nimport { Method } from \"axios\";\nimport { executeAxios } from \"services/axiosHook\";\nimport { initialCreditCardState } from \"flows/CreditCard/services/creditCardContext\";\n\nconst resumeLoanConfig = {\n url: \"/packages/loans-ro/creditCards/resume\",\n method: \"POST\" as Method\n};\n\ntype ResumeApplicationProps = {\n setContext: Function\n}\n\nconst keyToValue: LooseObject = {\n cardDelivery: \"deliveryAddress\"\n};\n\nconst SPECIAL_LOGIC: LooseObject = {\n ourOffer: (data: LooseObject, resumeData: LooseObject) => {\n if (data.creditCardOfferRequest) {\n const { limit, gdprConsent, ...other } = data.creditCardOfferRequest;\n resumeData.ourOffer = {\n ourOffer: {\n currentLoan: limit,\n gdprAcord: gdprConsent,\n ...other\n }\n }\n }\n },\n paymentCard: (data: LooseObject, resumeData: LooseObject) => {\n if (data.paymentConfiguration) {\n const { currentAccount, dueDay, installmentValue, repaymentMethod } = data.paymentConfiguration;\n resumeData.paymentCard = {\n currentAccount: String(currentAccount),\n dueDay: String(dueDay),\n installmentValue: String(installmentValue),\n repaymentMethod: String(repaymentMethod)\n }\n }\n }\n}\n\nfunction computeKey(key: string) {\n return keyToValue[key] ? keyToValue[key] : key;\n}\n\nfunction updateContextWithResumeData(data: LooseObject, setContext: Function) {\n const resumeData: LooseObject = {};\n SPECIAL_LOGIC.ourOffer(data, resumeData)\n for (const key of Object.keys(initialCreditCardState)) {\n if (SPECIAL_LOGIC[key]) {\n SPECIAL_LOGIC[key](data, resumeData);\n continue;\n }\n const item = data[computeKey(key)];\n if (item) {\n const templateItem = initialCreditCardState[key as keyof CreditCardContextProps];\n if (typeof templateItem === \"object\") {\n resumeData[key] = {};\n Object.keys(templateItem).forEach(subKey => {\n resumeData[key][subKey] = item[computeKey(subKey)];\n });\n } else {\n resumeData[key] = item;\n }\n }\n }\n setContext({ ...initialCreditCardState, ...resumeData });\n}\n\nexport function useResumeApplication({ setContext }: ResumeApplicationProps) {\n const [error, setError] = useState();\n const [loading, setLoading] = useState(false);\n\n const resumeApplication = useCallback((applicationId: string | undefined) => {\n executeAxios({\n params: { ...resumeLoanConfig, data: { applicationId } },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: ({ statusLoan, ...data }: LooseObject) => {\n if (!!statusLoan && ![...ACTIVE_OFFER_STATES, PENDING_RESOLUTION_STATE].includes(statusLoan)) {\n data.currentPage = Pages.EXPIRED;\n }\n\n updateContextWithResumeData(data, setContext);\n }\n })\n }, [setContext]);\n\n return {\n error,\n loading,\n resumeApplication,\n }\n}\n","import { Body, Box, Stack, buttonLink } from \"omnichannel-design-system\";\nimport { DocumentDetailsType, ReportCodes } from \"../../../../pages/DocumentDetails/services/domain\";\nimport { REQUEST_DAR, sendDarOption } from \"../../services/darRequest\";\nimport { ccGdprLogApiConfig, gdprLogBeforeCheckSign } from \"../../../services/gdprLogApi\";\nimport { evaluationKey, lifeInsuranceKey, premiumCardName } from \"./services/domain\";\nimport { useDocConsentTimestampApi, useParamConsentTimestampApi } from \"./services/consentApi\";\nimport { useEffect, useState } from \"react\";\nimport { useGenerateDocumentApi, useGenerateMultipleDocumentsApi } from \"../../../../services/documentApi\";\n\nimport { Button } from \"../../../../components/Button\";\nimport Checkbox from \"../../../../components/Checkbox\";\nimport { DocumentDetails } from \"../../../../pages/DocumentDetails/DocumentDetails\";\nimport { GdprBanner } from \"./components/GdprBanner\";\nimport { Heading } from \"../../../../components/Heading\";\nimport Loader from \"components/Loader\";\nimport LoadingButton from \"components/LoadingButton\";\nimport { LooseObject } from \"../../../../services/types\";\nimport NavigationSwitch from \"../../../../components/NavigationSwitch\";\nimport { NavigationSwitchDescriptionStyled } from \"./styles/NavigationSwitchDescriptionStyled\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useCreditCardContext } from \"../../services/creditCardContext\";\nimport { useEnumRetrieval } from \"../../../../services/enumRetrieval\";\nimport { useGetSelectedCard } from \"./services/getSelectedCardApi\";\nimport { useLoadingPipeline } from \"../../../../helper/loadingPipeline\";\n\ninterface Props {\n onSubmit: () => unknown;\n onBack: () => unknown;\n}\n\nconst {\n CC_CREDIT_APPLICATION,\n CC_ANAF,\n CC_CREDIT_BUREAU_NOTICE,\n CC_GDPR,\n CC_AGREEMENTS_GUIDE,\n} = DocumentDetailsType;\n\ntype DocumentType =\n DocumentDetailsType.CC_CREDIT_APPLICATION |\n DocumentDetailsType.CC_ANAF |\n DocumentDetailsType.CC_CREDIT_BUREAU_NOTICE |\n DocumentDetailsType.CC_GDPR;\n\nexport default function CreditCardAgreements({ onSubmit, onBack }: Props) {\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useCreditCardContext();\n const { getEnumKeyByEnumValue } = useEnumRetrieval();\n const { generateDocument } = useGenerateDocumentApi();\n const { generateMultipleDocuments } = useGenerateMultipleDocumentsApi();\n const { updateConsentTimestamp } = useDocConsentTimestampApi();\n const { updateParamConsentTimestamp, loading: paramConsentLoading } = useParamConsentTimestampApi();\n const { selectedCardName = \"\", loading: loadingCardData } = useGetSelectedCard();\n const { loading: documentsLoading, handleLoading } = useLoadingPipeline();\n\n const [showGuide, setShowGuide] = useState(false);\n const [selectedDocumentType, setSelectedDocumentType] = useState();\n const [toggleMap, setToggleMap] = useState({\n [CC_CREDIT_APPLICATION]: false,\n [CC_ANAF]: false,\n [CC_CREDIT_BUREAU_NOTICE]: false,\n [CC_GDPR]: false,\n });\n const [evaluation, setEvaluation] = useState(false);\n const [lifeInsurance, setLifeInsurance] = useState(false);\n\n useEffect(() => {\n generateMultipleDocuments([\n { data: { reportCode: ReportCodes[CC_CREDIT_APPLICATION] } },\n { data: { reportCode: ReportCodes[CC_ANAF] } },\n { data: { reportCode: ReportCodes[CC_CREDIT_BUREAU_NOTICE] } },\n {\n data: {\n reportCode: ReportCodes[CC_GDPR],\n params: { [evaluationKey]: false, [lifeInsuranceKey]: false }\n }\n },], {\n onSuccess: () => handleLoading(\"generateDocumentsLoadingFailed\")(false),\n onLoading: handleLoading(\"generateDocumentsLoading\"),\n onFail: () => handleLoading(\"generateDocumentsLoadingFailed\")(true)\n });\n }, [generateMultipleDocuments, handleLoading]);\n\n const handleCloseGuide = () => {\n setShowGuide(false);\n };\n\n const handleOnClickDocumentLink = (documentType: DocumentType) => {\n setSelectedDocumentType(documentType);\n };\n\n const changeToggle = (documentType: DocumentType, accepted: boolean) => {\n setToggleMap(previousToggleMap => { return { ...previousToggleMap, [documentType]: accepted }; });\n };\n const handleSwitchToggleAction = (documentType: DocumentType) => {\n const oldToggleValue = toggleMap[documentType];\n const newToggleValue = !oldToggleValue;\n changeToggle(documentType, newToggleValue);\n updateConsentTimestamp({\n data: {\n consentType: getEnumKeyByEnumValue(DocumentDetailsType, documentType.toString()),\n accepted: newToggleValue\n }\n }, {\n onFail: () => changeToggle(documentType, oldToggleValue)\n });\n };\n const handleOnCheckboxChange = (checkboxName: string, checked: boolean) => {\n if (checkboxName === evaluationKey) {\n setEvaluation(checked);\n updateParamConsentTimestamp({ data: { paramConsentType: checkboxName, accepted: checked } }, {\n onFail: () => setEvaluation(!checked)\n });\n }\n if (checkboxName === lifeInsuranceKey) {\n setLifeInsurance(checked);\n updateParamConsentTimestamp({ data: { paramConsentType: checkboxName, accepted: checked } }, {\n onFail: () => setLifeInsurance(!checked)\n });\n }\n };\n\n const handleOnConfirmDocument = (documentType: DocumentType) => {\n updateConsentTimestamp({ data: { consentType: getEnumKeyByEnumValue(DocumentDetailsType, documentType.toString()), accepted: true } }, {\n onSuccess: () => {\n setSelectedDocumentType(undefined);\n changeToggle(documentType, true);\n }\n }\n );\n };\n const handleOnCloseDocument = () => {\n setSelectedDocumentType(undefined);\n };\n\n const handleOnSubmit = (resolve: (successfully: boolean) => unknown) => {\n generateDocument({\n data: { reportCode: ReportCodes[CC_GDPR], params: { ccEvaluation: evaluation, ccLifeInsurance: lifeInsurance } }\n }, {\n onSuccess: () => (\n gdprLogBeforeCheckSign(ccGdprLogApiConfig, {\n onSuccess: () =>\n sendDarOption(REQUEST_DAR.CREDIT_CARD_CONSENTS, {\n onSuccess: () => {\n resolve(true);\n onSubmit();\n },\n onFail: () => {\n resolve(false);\n console.error(REQUEST_DAR.CREDIT_CARD_CONSENTS + \" fail\");\n }\n }),\n onFail: () => {\n resolve(false);\n console.error(\"Gdpr Log fail\");\n }\n })),\n onFail: () => {\n resolve(false);\n console.error(\"Generate GDPR document fail\");\n }\n });\n };\n\n const handleOnBack = () => {\n handleOnCheckboxChange(lifeInsuranceKey, false);\n handleOnCheckboxChange(evaluationKey, false);\n onBack();\n }\n\n if (loadingCardData || documentsLoading) {\n return \n }\n\n if (showGuide) {\n return (\n \n )\n }\n\n if (selectedDocumentType) {\n if (selectedDocumentType === CC_GDPR) {\n return (\n handleOnConfirmDocument(selectedDocumentType)}\n onClose={handleOnCloseDocument}\n translationsKeys={{\n title: formatMessageWithKey(`${selectedDocumentType}.agreement.title`),\n description: `dbn.creditCard.agreements.${selectedDocumentType}.agreement.description`,\n confirmationButtonText: formatMessageWithKey(`${selectedDocumentType}.agreement.confirm.document`),\n downloadButtonText: formatMessageWithKey(`${selectedDocumentType}.agreement.download.document`)\n }}\n />\n );\n }\n else {\n return (\n handleOnConfirmDocument(selectedDocumentType)}\n onClose={handleOnCloseDocument}\n translationsKeys={{\n title: formatMessageWithKey(`${selectedDocumentType}.agreement.title`),\n description: `dbn.creditCard.agreements.${selectedDocumentType}.agreement.description`,\n confirmationButtonText: formatMessageWithKey(`${selectedDocumentType}.agreement.confirm.document`),\n downloadButtonText: formatMessageWithKey(`${selectedDocumentType}.agreement.download.document`)\n }}\n />\n );\n }\n }\n return (\n \n \n \n\n \n \n {formatMessageWithKey(\"description\")}\n \n \n \n \n {[\n formatMessageWithKey(\"beforeLabel\"),\n buttonLink(() => setShowGuide(true), formatMessageWithKey(\"linkLabel\")),\n formatMessageWithKey(\"afterLabel\")\n ]}\n \n \n \n \n\n \n \n {[\n formatMessageWithKey(\"card.application.switch.description.before\"),\n buttonLink(() => handleOnClickDocumentLink(CC_CREDIT_APPLICATION), formatMessageWithKey(\"card.application.switch.description.link\")),\n formatMessageWithKey(\"card.application.switch.description.after\")]}\n }\n switchOn={toggleMap[CC_CREDIT_APPLICATION]}\n toggleAction={() => handleSwitchToggleAction(CC_CREDIT_APPLICATION)}\n />\n \n \n {[\n formatMessageWithKey(\"anaf.switch.description.before\"),\n buttonLink(() => handleOnClickDocumentLink(CC_ANAF), formatMessageWithKey(\"anaf.switch.description.link\"))\n ]}\n \n {formatRichTextMessageWithKey(\"anaf.switch.description.after\")}\n \n }\n switchOn={toggleMap[CC_ANAF]}\n toggleAction={() => handleSwitchToggleAction(CC_ANAF)}\n />\n \n \n {[formatMessageWithKey(\"credit.bureau.switch.description.before\"),\n buttonLink(() => handleOnClickDocumentLink(CC_CREDIT_BUREAU_NOTICE), formatMessageWithKey(\"credit.bureau.switch.description.link\")),\n formatMessageWithKey(\"credit.bureau.switch.description.after\")]}\n }\n switchOn={toggleMap[CC_CREDIT_BUREAU_NOTICE]}\n toggleAction={() => handleSwitchToggleAction(CC_CREDIT_BUREAU_NOTICE)}\n />\n \n {[\n formatMessageWithKey(\"gdpr.switch.description.before\"),\n buttonLink(() => handleOnClickDocumentLink(CC_GDPR), formatMessageWithKey(\"gdpr.switch.description.link\")),\n formatMessageWithKey(\"gdpr.switch.description.after\")]}\n }\n switchOn={toggleMap[CC_GDPR]}\n toggleAction={() => handleSwitchToggleAction(CC_GDPR)}\n />\n {toggleMap[CC_GDPR] && (\n <>\n handleOnCheckboxChange(lifeInsuranceKey, checked)}\n />\n {selectedCardName === premiumCardName && (\n handleOnCheckboxChange(evaluationKey, checked)}\n />)\n }\n \n )}\n \n \n\n \n \n \n \n \n !accepted)}\n action={handleOnSubmit}\n />\n \n \n \n )\n}\n","import {useCreditCardContext} from \"../../../services/creditCardContext\";\nimport {Fragment} from \"react\";\nimport Banner from \"../../../../../components/Banner\";\nimport {evaluationKey, lifeInsuranceKey, premiumCardName} from \"../services/domain\";\n\ntype Props = {\n ccEvaluation: boolean,\n ccLifeInsurance: boolean;\n accepted: boolean,\n selectedCardName: string\n}\nexport function GdprBanner({ ccEvaluation, ccLifeInsurance, accepted, selectedCardName }: Props) {\n const { formatMessageWithKey } = useCreditCardContext();\n\n if (!accepted ||\n (selectedCardName !== premiumCardName && ccLifeInsurance) ||\n (selectedCardName === premiumCardName && ccEvaluation && ccLifeInsurance)) {\n return ;\n }\n const mappedWarnings = [\n { is: selectedCardName !== premiumCardName && !ccLifeInsurance, message: `gdpr.${lifeInsuranceKey}.warning` },\n { is: selectedCardName === premiumCardName && !ccEvaluation && ccLifeInsurance, message: `gdpr.${evaluationKey}.warning` },\n { is: selectedCardName === premiumCardName && ccEvaluation && !ccLifeInsurance, message: `gdpr.${lifeInsuranceKey}.warning` },\n { is: selectedCardName === premiumCardName && !ccEvaluation && !ccLifeInsurance, message: `gdpr.${evaluationKey}.and.${lifeInsuranceKey}.warning` },\n ];\n for (const warning of mappedWarnings) {\n if (warning.is) {\n return (\n \n )\n }\n }\n return ;\n}","import {executeAxios, ExecuteAxiosFunctions} from \"services/axiosHook\";\nimport {useCallback, useState} from \"react\";\nimport {AxiosRequestConfig, Method} from \"axios\";\n\nconst updateConsentConfig = {\n\turl: \"/packages/loans-ro/updateDocConsentTimestamp\",\n\tmethod: \"post\" as Method,\n};\n\nexport const useDocConsentTimestampApi = () => {\n\tconst [loading, setLoading] = useState(false);\n\n\treturn {\n\t\tloading,\n\t\tupdateConsentTimestamp: useCallback((apiConfig: AxiosRequestConfig, {onSuccess, onFail}: ExecuteAxiosFunctions) => {\n\t\t\texecuteAxios({\n\t\t\t\tparams: {...updateConsentConfig, ...apiConfig},\n\t\t\t\tonSuccess,\n\t\t\t\tonFail,\n\t\t\t\tonLoading: setLoading\n\t\t\t})}, [])\n\t};\n};\n\n\nconst paramConsentTimestampConfig = {\n\turl: \"/packages/loans-ro/updateParamConsentTimestamp\",\n\tmethod: \"post\" as Method,\n};\n\nexport const useParamConsentTimestampApi = () => {\n\tconst [loading, setLoading] = useState(false);\n\n\treturn {\n\t\tloading,\n\t\tupdateParamConsentTimestamp: useCallback((apiConfig: AxiosRequestConfig, {onSuccess, onFail}: ExecuteAxiosFunctions) => {\n\t\t\texecuteAxios({\n\t\t\t\tparams: {...paramConsentTimestampConfig, ...apiConfig},\n\t\t\t\tonSuccess: onSuccess,\n\t\t\t\tonFail: onFail,\n\t\t\t\tonLoading: setLoading\n\t\t\t})\n\t\t}, [])\n\t};\n};\n\n\nconst discardConsentTimestampConfig = {\n\turl: \"/packages/loans-ro/discardParamConsentsTimestampByDoc\",\n\tmethod: \"post\" as Method,\n};\n\nexport const useDiscardConsentTimestampApi = () => {\n\tconst [error, setError] = useState();\n\n\treturn {\n\t\terror,\n\t\tdiscardConsentTimestamp: useCallback((apiConfig: AxiosRequestConfig, {onSuccess}: ExecuteAxiosFunctions) => {\n\t\t\texecuteAxios({\n\t\t\t\tparams: {...discardConsentTimestampConfig, ...apiConfig},\n\t\t\t\tonSuccess,\n\t\t\t\tonFail: setError\n\t\t\t})\n\t\t}, [])\n\t};\n};\n\n\n","import {LooseObject} from \"services/types\";\n\nexport type Agreement = {\n\taccepted: boolean;\n\tdetails?: LooseObject;\n}\n\nexport interface AgreementsState extends LooseObject {\n\tcardApplication: Agreement;\n\tanaf: Agreement;\n\tcreditBureauNotice: Agreement;\n\tgdpr: Agreement;\n\telectronicCertificate: Agreement;\n}\n\nexport interface GdprDetails extends LooseObject {\n\tevaluation: boolean,\n\tlifeInsurance: boolean\n}\n\nexport const lifeInsuranceKey: string = \"ccLifeInsurance\";\nexport const evaluationKey: string = \"ccEvaluation\";\nexport const premiumCardName: string = \"premium\";","import {useEffect, useState} from \"react\";\n\nimport {Method} from \"axios\";\nimport {executeAxios} from \"../../../../../services/axiosHook\";\n\nconst snapshotConfig = {\n url: \"/packages/loans-ro/creditCards/getSnapshot\",\n method: \"post\" as Method,\n};\n\nexport const useGetSelectedCard = () => {\n const [ loading, setLoading ] = useState(true);\n const [ selectedCardName, setSelectedCardName ] = useState();\n\n const onSuccess = (responseData: any) => {\n setSelectedCardName(responseData.selectedCard);\n }\n\n useEffect(() => {\n executeAxios({\n params: snapshotConfig,\n onSuccess,\n onFail: console.error,\n onLoading: setLoading\n });\n }, []);\n\n return { selectedCardName, loading };\n}","import styled from \"styled-components\";\nimport {fontWeight, palette} from \"omnichannel-design-system/lib/styleConstants\";\n\nexport const NavigationSwitchDescriptionStyled = styled.p`\n font-weight:${fontWeight.normal};\n font-size: 16px;\n line-height: 20px;\n color:${palette.neutral500};\n overflow-wrap: break-word;\n margin: 0;\n`","import { Body, Box, Stack, } from \"omnichannel-design-system\";\n\nimport { Heading } from \"components/Heading\";\nimport Loader from \"components/Loader\";\nimport Signature from \"pages/Signature/Signature\";\nimport ToBeContacted from \"pages/ToBeContacted/ToBeContacted\";\nimport styled from \"styled-components\";\nimport { useConsentsSignApi } from \"./services/signConsents\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\n\ninterface Props {\n onSubmit: () => unknown\n}\n\nconst ContainerStyled = styled(Stack)`\n .field-wrapper {\n div, textarea {\n flex: 1;\n }\n }\n`;\n\nfunction AgreementsSignature({ onSubmit }: Props) {\n const { formatMessage } = useFormatMessage();\n const { formatMessageWithKey } = useCreditCardContext();\n const { consentsSign, consentsSignLoading, requestRejected } = useConsentsSignApi(onSubmit);\n\n const handleSubmit = (values: any) => {\n consentsSign({ data: values });\n };\n\n if (consentsSignLoading) {\n return ;\n }\n if (requestRejected) {\n return (\n \n );\n }\n return (\n \n \n\n \n \n {formatMessage(\"dbn.agreementsSignature.description\")}\n \n \n \n \n )\n}\n\n export default AgreementsSignature;\n","import { executeAxios } from \"services/axiosHook\";\nimport { useCallback, useState } from \"react\";\nimport { AxiosRequestConfig, Method } from \"axios\";\n\nconst consentsSignConfig = {\n url: \"/packages/loans-ro/creditCards/consents/sign\",\n method: \"post\" as Method,\n};\n\ntype SignConsentsResponse = {\n applicationId: string,\n requestRejected: boolean\n}\n\nexport const useConsentsSignApi = (submit: Function) => {\n const [loading, setLoading] = useState(false);\n const [requestRejected, setRequestRejected] = useState(false);\n\n return {\n consentsSignLoading: loading,\n consentsSign: useCallback((apiConfig: AxiosRequestConfig) => {\n executeAxios({\n params: { ...consentsSignConfig, ...apiConfig },\n onLoading: setLoading,\n onSuccess: (response: SignConsentsResponse) => {\n if (!response.requestRejected) {\n submit && submit()\n } else {\n setRequestRejected(true);\n }\n }\n });\n }, [submit]),\n requestRejected\n };\n\n};\n\n","import { useEffect, useState } from \"react\";\n\nimport AgreementsSignature from \"../Signature/AgreementsSignature\";\nimport { CheckSignStatus } from \"components/PinSgnaturePolling/service/domain\";\nimport { Method } from \"axios\";\nimport { PageProps } from \"../../../../../constants/types/pagesTypes\";\nimport PinSignaturePolling from \"components/PinSgnaturePolling/PinSignaturePolling\";\nimport ToBeContacted from \"pages/ToBeContacted/ToBeContacted\";\nimport { useCheckSignAuthorization } from \"components/PinSgnaturePolling/service/checkSignaturePolling\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\n\nconst checkSignAuthorizationCallConfig = {\n url: \"/packages/loans-ro/creditCards/consents/check\",\n method: \"post\" as Method,\n};\n\nfunction SignaturePolling({ onSubmit, onBack }: PageProps) {\n const { formatMessage } = useFormatMessage();\n const { checkSignStatus, checkSignAuthorization } = useCheckSignAuthorization(checkSignAuthorizationCallConfig);\n const [stepBack, setStepBack] = useState(false);\n const [loading, setLoading] = useState(true);\n\n useEffect(() => {\n setStepBack(\n checkSignStatus &&\n ![CheckSignStatus.OK, CheckSignStatus.RETRY, CheckSignStatus.ERR_CREATE_APP].includes(checkSignStatus)\n );\n setLoading(checkSignStatus !== CheckSignStatus.OK);\n }, [checkSignStatus]);\n\n if (checkSignStatus === CheckSignStatus.ERR_CREATE_APP) {\n return (\n \n );\n }\n\n return }\n />;\n}\n\nexport default SignaturePolling;","import { Body, Box, Stack } from \"omnichannel-design-system\";\nimport { useApprovalExpirationDateApi, useSaveCreditCardApprovedApplicationApi } from \"./services/approvalResponseApi\";\n\nimport { Button } from \"components/Button\";\nimport { Heading } from \"components/Heading\";\nimport { PageProps } from \"constants/types/pagesTypes\";\nimport image from \"assets/approved-operation.png\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useEffect } from \"react\";\n\nexport default function ApprovedCard({ onSubmit }: PageProps) {\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useCreditCardContext();\n const { saveCreditCardApprovedApplication } = useSaveCreditCardApprovedApplicationApi();\n const { fetchDataResponse, content } = useApprovalExpirationDateApi();\n\n const handleSubmit = () => {\n saveCreditCardApprovedApplication().then(() => {\n onSubmit();\n });\n };\n\n useEffect(() => {\n fetchDataResponse();\n }, [fetchDataResponse]);\n\n return (\n \n \n \n \n \n

\n {formatRichTextMessageWithKey(\"signature.description\")}\n

\n
\n \n

\n {formatRichTextMessageWithKey(\"signature.date.description\", { date: content?.expirationDate })}\n

\n
\n \n \n {formatMessageWithKey(\"signature.information\")}\n \n \n
\n \n {formatMessageWithKey(\"signature.title\")}\n \n \n \n \n
\n );\n}","import {useCallback, useState} from \"react\";\n\nimport {Method} from \"axios\";\nimport {axiosInstance} from \"services/axiosHook\";\n\nconst apiConfigSaveCreditCardApprovedApplication = {\n\tmethod: \"post\" as Method,\n\turl: \"packages/loans-ro/creditCards/contracts/saveCreditCardApprovedApplication\"\n};\n\nconst apiConfigApprovalExpirationDate = {\n\tmethod: \"post\" as Method,\n\turl: \"packages/loans-ro/creditCards/contracts/approval/expirationDate\"\n};\ntype CreditApprovalResponse = {approved: boolean, expirationDate: string};\n\nexport const useApprovalExpirationDateApi = () => {\n\tconst [content, setContent] = useState({approved: false, expirationDate: \"\"});\n\tconst [error, setError] = useState();\n\n\treturn {\n\t\tcontent,\n\t\terror,\n\t\tfetchDataResponse: useCallback(() => {\n\t\t\taxiosInstance.request(apiConfigApprovalExpirationDate).then((response) => {\n\t\t\t\tsetContent(response.data);\n\t\t\t}).catch((err) => {\n\t\t\t\tsetError(err.response);\n\t\t\t});\n\t\t}, [])\n\t};\n};\n\nexport const useSaveCreditCardApprovedApplicationApi = () => {\n\tconst [loading, setLoading] = useState(false);\n\treturn {\n\t\tloading,\n\t\tsaveCreditCardApprovedApplication: useCallback(() => {\n\t\t\treturn axiosInstance.request(apiConfigSaveCreditCardApprovedApplication)\n\t\t\t\t.finally(() => {setLoading(false)});\n\t\t}, [])\n\t};\n\n};","import CardDeliveryForm from \"./components/CardDeliveryForm\";\nimport { CardDeliveryValues } from \"./services/domain\";\nimport { Category } from \"flows/services/domain\";\nimport Loader from \"components/Loader\";\nimport { PageProps } from \"constants/types/pagesTypes\";\nimport { computeFinancialInformationOptionByCategory } from \"flows/CashLoan/pages/OurOffer/utils/utils\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useDeliveryData } from \"./services/cardDeliveryApi\";\nimport { useFinancialApi } from \"flows/services/financialApi\";\n\nexport interface AddressType {\n value: string,\n label: string,\n description: string\n}\n\nconst categories = [Category.StatementDeliveryMode];\n\nexport default function CardDelivery({ onBack, onSubmit }: PageProps) {\n\n const { financialData, financialDataLoading } = useFinancialApi(categories);\n const { saveDeliveryData } = useDeliveryData();\n const { cardDelivery, updateCardDelivery } = useCreditCardContext();\n\n if (financialDataLoading) {\n return ;\n }\n\n return (\n {\n updateCardDelivery(data);\n saveDeliveryData(data, onSubmit);\n }}\n onBack={onBack}\n initialValues={cardDelivery}\n formData={{\n accountStatementMethods: computeFinancialInformationOptionByCategory(\n {\n category: Category.StatementDeliveryMode,\n financialDropdownData: financialData ? financialData : { financialData: [] }\n }\n )\n }} />\n )\n}","import { Body, Box, Space, Stack } from \"omnichannel-design-system\";\nimport DropdownField, { SelectOption } from \"components/form/DropdownField\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport AutocompleteInputField from \"components/form/AutocompleteInputField\";\nimport { Button } from \"components/Button\";\nimport { CARD_DELIVERY_FORMIK_VARIABLES_NAME } from \"../services/formConstants\";\nimport { CardDeliveryValues } from \"../services/domain\";\nimport { Heading } from \"components/Heading\";\nimport TextField from \"components/form/TextField\";\nimport _ from \"lodash\";\nimport { computeSuggestions } from \"flows/Onboarding/services/dataSummary/addressUtils\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useFormikContext } from \"formik\";\nimport useGetAddressData from \"../services/cardDeliveryApi\";\n\nconst {\n COUNTY, CITY, STREET, STREET_NUMBER, POSTAL_CODE, APARTMENT_NUMBER, BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR\n} = CARD_DELIVERY_FORMIK_VARIABLES_NAME;\n\nexport default function CardDeliveryAddressForm() {\n const { errors, values, isValid, setFieldValue, setFieldTouched, setValues, setTouched } = useFormikContext();\n const { county, city, street, cityPostalCode, postalCode } = values;\n const { formatMessageWithKey } = useCreditCardContext();\n const { getCounties, getCities, getStreets, getUniquePostalCode, getPostalCodes, loading } = useGetAddressData();\n\n const [cities, setCities] = useState>([]);\n const [streets, setStreets] = useState>([]);\n const [counties, setCounties] = useState>([]);\n const [postalCodes, setPostalCodes] = useState>([]);\n\n const [oldValues] = useState(values);\n\n useEffect(() => {\n getCounties(setCounties);\n }, [getCounties])\n\n useEffect(() => {\n if (!_.isEmpty(county)) {\n getCities({ countyId: county }, setCities);\n }\n }, [county, getCities]);\n\n const getUniquePostalCodeDebounce = useMemo(() =>\n _.debounce((innerCounty?: string, innerCity?: string) => {\n if (!_.isEmpty(innerCounty) && !_.isEmpty(innerCity)) {\n getUniquePostalCode({ countyId: innerCounty, cityId: innerCity },\n (receivedPostalCode: string) => setFieldValue(\"cityPostalCode\", receivedPostalCode || \"\", true));\n setFieldTouched(POSTAL_CODE, true);\n }\n }, 1000), [setFieldValue, getUniquePostalCode, setFieldTouched])\n\n useEffect(() => {\n getUniquePostalCodeDebounce(county, city);\n }, [county, city, getUniquePostalCodeDebounce]);\n\n const getStreetsDebounce = useMemo(() =>\n _.debounce((cityId?: string, searchTerm?: string, countyId?: string) => {\n if (!_.isEmpty(cityId) && !_.isEmpty(countyId) && searchTerm && searchTerm.length >= 3) {\n getStreets({ cityId, countyId, searchTerm }, setStreets);\n } else {\n setStreets([]);\n }\n }, 1000),\n [getStreets]\n );\n\n useEffect(() => {\n getStreetsDebounce(city, street, county);\n }, [city, street, county, getStreetsDebounce]);\n\n useEffect(() => {\n if (cityPostalCode) {\n setValues(previousValues => ({ ...previousValues, postalCode: cityPostalCode }), true);\n return;\n }\n\n const streetValue = streets?.find(item => item.label === street);\n\n setValues(previousValues => ({ ...previousValues, postalCode: streetValue ? streetValue.postalCode : postalCode }), true)\n\n }, [street, cityPostalCode, streets, postalCode, setValues])\n\n useEffect(() => {\n if (!_.isEmpty(city) && !_.isEmpty(county)) {\n getPostalCodes({ cityId: city, countyId: county, searchTerm: \"\" }, setPostalCodes);\n return;\n }\n setPostalCodes([]);\n }, [city, county, getPostalCodes])\n\n useEffect(() => {\n setFieldValue(\"isPostalCodeFound\", !!postalCodes.find(code => code.value === postalCode))\n }, [postalCode, postalCodes, setFieldValue])\n\n function generateResetItem(key: string) {\n return {\n when: (newValue: string | undefined) => newValue !== county,\n key,\n value: \"\"\n };\n }\n\n const onClose = useCallback(() => setFieldValue(\"showAddressForm\", false), [setFieldValue]);\n\n const computeError = (error?: string) => {\n if (!error) {\n return \"\";\n }\n\n return formatMessageWithKey(error)\n }\n\n const onBack = useCallback(() => {\n setValues(oldValues, true);\n onClose();\n setTimeout(() => {// On back I need another stack of execution to validate\n setTouched({}, true);\n }, 0)\n }, [oldValues, setValues, setTouched, onClose])\n\n return (\n \n \n\n \n \n {formatMessageWithKey(\"addressForm.description\")}\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 item.label === street)}\n label={formatMessageWithKey(`addressForm.${POSTAL_CODE}.label`)}\n assistiveText={formatMessageWithKey(`addressForm.${POSTAL_CODE}.description`)}\n suggestions={\n loading ?\n { status: \"loading\" } :\n {\n status: \"ready\",\n suggestions: computeSuggestions(postalCode && postalCode.length >= 3 ? postalCodes.filter(item => item.value.includes(postalCode)) : [], postalCode as string, { formatMessage: formatMessageWithKey, maxLength: 20 }),\n }}\n error={computeError(errors[POSTAL_CODE as keyof CardDeliveryValues])}\n />\n\n \n\n \n \n\n {\n const countyLabel = counties?.find(item => item.value === county);\n const cityLabel = cities?.find(item => item.value === city);\n const streetValue = streets?.find(item => item.label === street);\n\n setValues(previousValues => ({\n ...previousValues,\n showAddressForm: false,\n countyLabel: countyLabel ? countyLabel.label : undefined,\n cityLabel: cityLabel ? cityLabel.label : undefined,\n streetValue: streetValue ? streetValue.value : street\n }), true)\n }}\n />\n \n \n )\n\n}","import { FormikErrors, useFormikContext, withFormik } from \"formik\";\nimport { ValidationProps, executeValidation } from \"services/formikValidations\";\n\nimport { CARD_DELIVERY_FORMIK_VARIABLES_NAME } from \"../services/formConstants\";\nimport CardDeliveryAddressForm from \"./CardDeliveryAddressForm\";\nimport { CardDeliveryValues } from \"../services/domain\";\nimport DeliverDetails from \"./DeliveryDetails\";\nimport { LooseObject } from \"services/types\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport _ from \"lodash\";\n\nconst {\n COUNTY, CITY, STREET, STREET_NUMBER, POSTAL_CODE\n} = CARD_DELIVERY_FORMIK_VARIABLES_NAME;\n\ntype FormData = {\n accountStatementMethods: Array;\n}\n\ninterface MyFormProps {\n onSubmit: (values: any) => unknown;\n initialValues: CardDeliveryValues;\n formData: FormData;\n onBack?: () => unknown;\n}\n\ninterface Props {\n onBack?: () => unknown;\n formData: FormData;\n}\n\nexport const CardDeliveryInner = (props: Props) => {\n const { onBack, formData } = props;\n const { values } = useFormikContext();\n\n if (values.showAddressForm) {\n return ;\n } else {\n return (\n onBack && onBack()}\n />\n )\n }\n}\n\nconst validations: ValidationProps[] = [\n { name: \"county\", checkEmpty: true },\n { name: \"city\", checkEmpty: true },\n { name: \"street\", checkEmpty: true },\n { name: \"streetNumber\", checkEmpty: true, checkAlphaNumerical: true, maxLength: 7 },\n { name: \"postalCode\", checkEmpty: true, checkAlphaNumerical: true, eqLength: 6, checkIfHasValue: \"isPostalCodeFound\" },\n { name: \"blockNumber\", checkAlphaNumerical: true, maxLength: 7 },\n { name: \"blockEntrance\", checkAlphaNumerical: true, maxLength: 7 },\n { name: \"floor\", checkAlphaNumerical: true, maxLength: 7 },\n { name: \"apartmentNumber\", checkAlphaNumerical: true, maxLength: 7 },\n]\n\nfunction formatMessage(value: string) {\n if (value.includes(\"onlyAlphaNumeric\")) {\n return \"onlyAlphaNumeric\";\n }\n\n if (value.includes(\"maxLength\")) {\n return \"maximumCharacters\"\n }\n\n return value\n}\n\nconst CardDeliveryForm = withFormik({\n mapPropsToValues: props => {\n return { ...props.initialValues };\n },\n validate: (values: CardDeliveryValues) => {\n if (values.showAddressForm) {\n return executeValidation(validations, values, formatMessage);\n }\n\n let errors: FormikErrors = {};\n\n if (\n [COUNTY, CITY, STREET, STREET_NUMBER, POSTAL_CODE]\n .map(item => (values as LooseObject)[item])\n .some(value => _.isEmpty(value))\n ) {\n errors.showAddressForm = \"address.isEmpty\";\n }\n if (_.isEmpty(values.accountStatementMethod)) {\n errors.accountStatementMethod = \"accountStatementMethod.isEmpty\";\n }\n if (_.isEmpty(values.password)) {\n errors.password = \"password.isEmpty\";\n }\n\n return errors;\n },\n handleSubmit: (values, bag) => {\n bag.props.onSubmit(values);\n },\n})(CardDeliveryInner);\n\nexport default CardDeliveryForm;","import { Body, Box, Divider, InlineMessage, LocalizedString, PencilIcon, PlusIcon, Space, Stack } from \"omnichannel-design-system\";\nimport DropdownField, { SelectOption } from \"components/form/DropdownField\";\n\nimport { CARD_DELIVERY_FORMIK_VARIABLES_NAME } from \"../services/formConstants\";\nimport { CardDeliveryValues } from \"../services/domain\";\nimport GenericWrapperPage from \"components/GenericWrapperPage\";\nimport { LooseObject } from \"services/types\";\nimport { PAGE_TITLE } from \"constants/enums/translations\";\nimport PasswordField from \"components/form/PasswordField\";\nimport _ from \"lodash\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useCallback } from \"react\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useFormikContext } from \"formik\";\n\ntype CardDeliveryDetails = {\n onBack: () => unknown;\n accountStatementMethods: Array;\n};\n\nconst {\n COUNTY, CITY_LABEL, STREET, STREET_NUMBER, POSTAL_CODE, APARTMENT_NUMBER, BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR, COUNTY_LABEL\n} = CARD_DELIVERY_FORMIK_VARIABLES_NAME;\n\nconst specialPlaceholders: LooseObject = {\n [STREET]: \"\",\n [STREET_NUMBER]: \" nr {value}\",\n [BLOCK_NUMBER]: \"Bl {value}\",\n [BLOCK_ENTRANCE]: \"sc {value}\",\n [FLOOR]: \"etj {value}\",\n [APARTMENT_NUMBER]: \"Ap {value}\",\n [POSTAL_CODE]: \"cod postal {value}\",\n}\n\nexport function computeAddressText(allValues: LooseObject) {\n function computeValue(itemName: string) {\n return specialPlaceholders[itemName] ?\n specialPlaceholders[itemName].replace(\"{value}\", allValues[itemName]) :\n allValues[itemName]\n }\n\n return [[STREET, STREET_NUMBER], BLOCK_NUMBER, BLOCK_ENTRANCE, FLOOR, APARTMENT_NUMBER, POSTAL_CODE, CITY_LABEL, COUNTY_LABEL]\n .filter(item => _.isArray(item) ? true : !_.isEmpty(allValues[item]))\n .map(item =>\n _.isArray(item) ?\n item.map(computeValue).join(\" \") :\n computeValue(item)\n )\n .join(\", \") as LocalizedString\n}\n\nexport default function DeliverDetails(props: CardDeliveryDetails) {\n const { isValid, errors, handleSubmit, setFieldValue, values } = useFormikContext();\n const { onBack, accountStatementMethods } = props;\n const { formatMessageWithKey, formatRichTextMessageWithKey } = useCreditCardContext();\n const allValues: LooseObject = values;\n const hasAddressFilled = ![COUNTY, CITY_LABEL, STREET, STREET_NUMBER, POSTAL_CODE]\n .map(item => allValues[item])\n .some(item => _.isEmpty(item));\n\n const onClose = useCallback(() => {\n setFieldValue(\"showAddressForm\", true)\n }, [setFieldValue]);\n\n return (\n \n \n

\n {formatRichTextMessageWithKey(\"description\")}\n

\n\n \n \n {formatMessageWithKey(\"address.title\")}\n \n\n \n \n\n \n \n \n {\n hasAddressFilled ?\n :\n \n }\n\n \n \n\n \n {formatMessageWithKey(hasAddressFilled ? \"address.edit\" : \"address.isNotSelected\")}\n \n \n\n \n\n \n {hasAddressFilled ? (\n \n {computeAddressText(allValues)}\n \n ) : (\n \n {formatMessageWithKey(\"address.isNotSelected.subtitle\")}\n \n )}\n {!!errors.showAddressForm && (\n \n \n \n \n )}\n \n \n\n \n \n {formatMessageWithKey(\"information.title\")}\n \n\n \n \n\n \n\n \n \n \n
\n \n );\n}","import { useCallback, useState } from \"react\";\n\nimport { CardDeliveryValues } from \"./domain\";\nimport { LooseObject } from \"services/types\";\nimport { Method } from \"axios\";\nimport { SelectOption } from \"components/form/DropdownField\";\nimport { executeAxios } from \"services/axiosHook\";\n\nconst getCountiesConfig = {\n url: \"/packages/loans-ro/counties\",\n method: \"post\" as Method,\n}\n\nconst getCitiesConfig = {\n url: \"/packages/loans-ro/cities\",\n method: \"post\" as Method,\n}\n\nconst getStreetsConfig = {\n url: \"/packages/loans-ro/streets\",\n method: \"post\" as Method,\n}\n\nconst getUniquePostalAddressConfig = {\n url: \"/packages/loans-ro/uniquePostalCode\",\n method: \"post\" as Method,\n}\n\nexport const saveDeliveryConfig = {\n url: \"/packages/loans-ro/creditCards/delivery/save\",\n method: \"post\" as Method,\n}\n\nexport const getDeliveryConfig = {\n url: \"/packages/loans-ro/creditCards/delivery/get\",\n method: \"post\" as Method,\n}\n\ntype CitiesDataProps = {\n countyId?: string\n}\n\ntype StreetDataProps = {\n countyId?: string;\n searchTerm?: string;\n cityId?: string;\n}\n\ntype UniquePostalCodeDataProps = {\n countyId?: string;\n cityId?: string;\n}\n\ntype StreetResponse = Array\ntype UniquePostalCodeResponse = { postalCode: string }\n\n\nexport default function useGetAddressData() {\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState();\n\n const getCounties = useCallback((onSuccess: (data: Array) => unknown) => {\n executeAxios({\n params: getCountiesConfig,\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (values: Array) => {\n onSuccess(values)\n },\n });\n }, []);\n\n const getCities = useCallback((\n data: CitiesDataProps,\n onSuccess: (data: Array) => unknown\n ) => {\n executeAxios({\n params: { ...getCitiesConfig, data },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (values: Array) => onSuccess(values),\n });\n }, []);\n\n const getUniquePostalCode = useCallback((\n data: UniquePostalCodeDataProps,\n onSuccess: (data: string) => unknown\n ) => {\n executeAxios({\n params: { ...getUniquePostalAddressConfig, data },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (value: UniquePostalCodeResponse) => onSuccess(value.postalCode),\n });\n }, []);\n\n const getStreets = useCallback((\n data: StreetDataProps,\n onSuccess: (data: StreetResponse) => unknown\n ) => {\n executeAxios({\n params: { ...getStreetsConfig, data },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (values: StreetResponse) => onSuccess(values),\n });\n }, []);\n\n const getPostalCodes = useCallback((\n data: StreetDataProps,\n onSuccess: (data: Array) => unknown\n ) => {\n executeAxios({\n params: { ...getStreetsConfig, data },\n onFail: setError,\n onLoading: setLoading,\n onSuccess: (values: StreetResponse) => {\n const uniquesPostalCodes: LooseObject = {};\n values.forEach(item => {\n if (!uniquesPostalCodes[item.postalCode]) {\n uniquesPostalCodes[item.postalCode] = true;\n }\n })\n\n onSuccess(Object.keys(uniquesPostalCodes).map(item => ({ label: item, value: item, postalCode: \"\" })))\n },\n });\n }, [])\n\n return {\n loading,\n error,\n getCounties,\n getCities,\n getStreets,\n getUniquePostalCode,\n getPostalCodes,\n }\n}\n\nexport function useDeliveryData() {\n const [loading, setLoading] = useState(true);\n const [error, setError] = useState();\n\n const saveDeliveryData = useCallback((data: CardDeliveryValues, onSuccess: () => unknown) => {\n executeAxios({\n params: { ...saveDeliveryConfig, data },\n onFail: setError,\n onLoading: setLoading,\n onSuccess,\n })\n }, []);\n\n const getDeliveryData = useCallback((onSuccess: (data: CardDeliveryValues) => unknown) => {\n executeAxios({\n params: getDeliveryConfig,\n onFail: setError,\n onLoading: setLoading,\n onSuccess,\n })\n }, []);\n\n return {\n loading,\n error,\n saveDeliveryData,\n getDeliveryData,\n }\n}","export const CARD_DELIVERY_FORMIK_VARIABLES_NAME = {\n COUNTY: \"county\",\n COUNTY_LABEL: \"countyLabel\",\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 { Body, Box, Carousel, Space, Stack } from \"omnichannel-design-system\";\nimport CardDetailItem, { CardDetailItemProps } from \"./components/CardDetailItem\";\nimport { PAGE_SUBMIT, PAGE_TITLE } from \"constants/enums/translations\";\nimport styled, { css } from \"styled-components\";\nimport { useCallback, useEffect, useState } from \"react\";\n\nimport { Button } from \"components/Button\";\nimport CarouselItem from \"./components/CarouselItem\";\nimport { Dialog } from \"omnichannel-design-system/lib/vanilla\";\nimport GeneralError from \"pages/GeneralError/GeneralError\";\nimport { Heading } from \"components/Heading\";\nimport { IconContainerStyled } from \"components/styles/iconContainerStyles\";\nimport Loader from \"components/Loader\";\nimport { PageProps } from \"constants/types/pagesTypes\";\nimport { carouselStepValidation } from \"./utils/validation\";\nimport image from \"assets/CreditCard/cash-back-program.png\";\nimport { palette } from \"omnichannel-design-system/lib/styleConstants\";\nimport { useAppContext } from \"services/appContext\";\nimport { useCreditCardContext } from \"flows/CreditCard/services/creditCardContext\";\nimport { useFormatMessage } from \"services/formatMessageHook\";\nimport { useLoadCardOptions } from \"./services/useLoadCardOptions\";\nimport { useWindowSize } from \"helper/useWindowResize\";\n\ntype CardPresentationProps = {\n $headerHeight: number;\n $isHeaderFixed?: boolean;\n}\n\nconst headerFixedStyle = (headerHeight: number) => css`\n padding-top: ${headerHeight}px;\n\n .header--heading {\n padding-right: 20px;\n }\n`;\n\nconst detailsSectionIsNotHeaderFixed = css`\n order: 1;\n`;\n\nconst CardPresentationContainerStyled = styled(Box) `\n ${({ $isHeaderFixed, $headerHeight }) => $isHeaderFixed && $headerHeight && headerFixedStyle($headerHeight)}\n body.body--card-presentation, body.body--card-presentation #root {\n overflow-x: initial;\n }\n .carouselContainer{\n width: 100vw;\n margin-left: -20px;\n margin-right: -20px;\n transition: all 0.5s;\n background-color: ${palette.neutral100};\n padding-bottom: 20px;\n }\n \n .detailsSection {\n overflow-y: auto;\n padding-top: 20px;\n ${({ $isHeaderFixed }) => !$isHeaderFixed && detailsSectionIsNotHeaderFixed}\n }\n`;\n\ntype TopProps = {\n $isHeaderFixed?: boolean;\n}\n\nconst topHeaderFixedStyles = css`\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n background-color: #fff;\n padding: 20px 20px 0;\n`;\n\nconst topHeaderIsNotFixedStyles = css`\n order: 0;\n`;\n\nconst TopStyled = styled.div`\n ${({ $isHeaderFixed }) => $isHeaderFixed ? topHeaderFixedStyles : topHeaderIsNotFixedStyles}\n`\n\nexport default function CardPresentation({ onSubmit, onBack }: PageProps) {\n const [selectedCard, setSelectedCard] = useState(0);\n const [, setCorrectHeight] = useState(\"wait\");\n const { formatMessageWithKey, setSelectedCard: setSelectedCardContext } = useCreditCardContext();\n const { scheduledPortalBlockHeight = 0 } = useAppContext();\n const screenWidth = window.screen.width;\n const { loading, cardsData, handleSubmit, clientTypeLoading } = useLoadCardOptions(setSelectedCard)\n const size = useWindowSize();\n const [isHeaderFixed, setHeaderFixed] = useState(true);\n const [headerBoxHeight, setHeaderBoxHeight] = useState(0);\n const [headerTitleHeight, setHeaderTitleHeight] = useState(0);\n const [headerCarouselHeight, setHeaderCarouselHeight] = useState(0);\n const [selectedDetail, setSelectedDetail] = useState();\n const { formatRichTextMessage, formatMessage } = useFormatMessage();\n\n const cardDetails = cardsData.find(({ cardId }) => cardId === selectedCard);\n\n const headerTitleRef = useCallback((node: { getBoundingClientRect: () => { (): any; new(): any; height: any; }; } | null) => {\n if (node !== null) {\n setHeaderTitleHeight(node.getBoundingClientRect().height || 0);\n }\n }, []);\n const headerCarouselRef = useCallback((node: { getBoundingClientRect: () => { (): any; new(): any; height: any; }; } | null) => {\n if (node !== null) {\n setHeaderCarouselHeight(node.getBoundingClientRect().height || 0);\n }\n }, []);\n\n useEffect(() => {\n document.body.classList.add('body--card-presentation');\n return () => {\n document.body.classList.remove('body--card-presentation');\n };\n }, [])\n\n useEffect(() => {\n const headerBoxH = headerTitleHeight + headerCarouselHeight + scheduledPortalBlockHeight;\n setHeaderBoxHeight(headerBoxH);\n if (headerBoxH < size.height * 0.5 && scheduledPortalBlockHeight === 0) {\n setHeaderFixed(true);\n } else {\n setHeaderFixed(false);\n }\n }, [size, headerTitleHeight, headerCarouselHeight, scheduledPortalBlockHeight])\n\n useEffect(() => {\n if (!loading) {\n setTimeout(() => {\n setCorrectHeight(\"done\");\n }, 200);\n }\n }, [loading, cardsData]);\n\n if (loading || clientTypeLoading) {\n return \n }\n\n if (!cardDetails) {\n return ; // You did something that is not right...\n }\n\n const onDetailsDialogClose = () => {\n setSelectedDetail(undefined);\n }\n\n return (\n \n \n \n \n \n {formatMessageWithKey(cardDetails.title)}\n \n \n \n \n {cardDetails.details.map((item) => )}\n \n \n \n