@adyen/kyc-components 4.0.0-beta.3 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-i222mdxX.js → AcceptTermsOfServiceComponent-ilX6szf9.js} +42 -43
- package/dist/{AccountSetupRejected-DHph9lFl.js → AccountSetupRejected-CQjHA557.js} +3 -3
- package/dist/{Avatar-vCjWXfC7.js → Avatar-BfRRf9_a.js} +2 -2
- package/dist/{BusinessDetailsDropin-DQcfiSR8.js → BusinessDetailsDropin-Dr580mIQ.js} +122 -144
- package/dist/{BusinessFinancingComponent-DC3jzBrq.js → BusinessFinancingComponent-CEIG-4wN.js} +3 -3
- package/dist/{BusinessFinancingDropin-D2lMEbNh.js → BusinessFinancingDropin-sC3QpkDx.js} +409 -258
- package/dist/{BusinessFinancingPage-BPD2cSDR.js → BusinessFinancingPage-BIEuNfKE.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Cdp8joPJ.js → BusinessTypeSelectionPage-6sF2ce3o.js} +35 -64
- package/dist/{ContractViewer-B0bZ14Ts.js → ContractViewer-BOxsPeO1.js} +4 -4
- package/dist/{CreateIndividualComponent-D9wnexv4.js → CreateIndividualComponent-t9eDVjpb.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-COzPdQjC.js → CreateTransferInstrumentComponent-D65FAcQz.js} +5 -5
- package/dist/{CustomerSupport-NGBoBg3N.js → CustomerSupport-CoLWcgoS.js} +5 -5
- package/dist/{DebugModal-I2U6TjGT.js → DebugModal-DkICAsiu.js} +7 -221
- package/dist/{DecisionMakerDetailsPage-BN-H1sJF.js → DecisionMakerDetailsPage-CvmwdHqV.js} +4 -4
- package/dist/{DecisionMakers-CZ5-IRtU.js → DecisionMakers-DthVv8_t.js} +160 -9
- package/dist/{EmbeddedStatus-Blr0seRl.js → EmbeddedStatus-DdGnEZzS.js} +13 -13
- package/dist/{FormEndState-JB6QFSet.js → FormEndState-CUYkLBgX.js} +3 -3
- package/dist/{FormFlow-DjvdNEiV.js → FormFlow-CNXkXUwa.js} +3 -3
- package/dist/{IndividualOnfidoDropin-DHhyO2ai.js → IndividualOnfidoDropin-DV2fJG5W.js} +254 -223
- package/dist/{Introduction-erRXgreE.js → Introduction-B1WXHc-7.js} +24 -26
- package/dist/{ProviderButton-B58n0cRC.js → LandingLayout-BC3pp_IY.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-rS5K4657.js → LegalRepresentativeDetailsPage-9xm-XCto.js} +4 -4
- package/dist/{ManageIndividualComponent-BEzE5lkX.js → ManageIndividualComponent-zCo6mUQx.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-BWkwy6YC.js → ManageTermsOfServiceComponent-DpQXgPYk.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-B8kRNftW.js → ManageTransferInstrumentComponent-BKERoin1.js} +6 -6
- package/dist/{OnboardingDropinComponent-DBW5N3Dr.js → OnboardingDropinComponent-DYdts9Sh.js} +330 -169
- package/dist/{Review-O6Al47Cu.js → Review-jBq7cFVv.js} +3 -3
- package/dist/RootBusinessDetailsPage-BfO0Xb7n.js +1848 -0
- package/dist/{RootIndividualDetailsPage-CiXgSJsV.js → RootIndividualDetailsPage-DzmHoceW.js} +4 -4
- package/dist/{SignPCIComponent-cqRNhGdl.js → SignPCIComponent-By4PazmA.js} +20 -24
- package/dist/{SingpassSelection-BWEJ3Yi-.js → SingpassSelection-BeUj9Kdy.js} +8 -8
- package/dist/{SoleProprietorshipPage-CRcJSpn9.js → SoleProprietorshipPage-CZPeKEEl.js} +4 -4
- package/dist/{SourceOfFundsPage-BxLGXTHb.js → SourceOfFundsPage-CI1qdFId.js} +18 -17
- package/dist/{StoreProvider-ClKLaHzy.js → StoreProvider-O9jwxfG8.js} +5192 -4367
- package/dist/{TaskItemStatus-DrTIwCTx.js → TaskItemStatus-s7Z3DOGa.js} +12 -12
- package/dist/{TaskStatusIndicator-CTtKjo0m.js → TaskStatusIndicator-BanufME0.js} +5 -5
- package/dist/{TaxReportingDropin-DFZ2ehfk.js → TaxReportingDropin-BQqDUn9I.js} +8 -8
- package/dist/{TileGroup-BtE472I1.js → TileGroup-tu04B8GK.js} +2 -2
- package/dist/{TrustDetailsPage-CGiiTbfR.js → TrustDetailsPage-BQKZ_ZyU.js} +28 -15
- package/dist/{TrustMemberCompanyPage-oLNhg0hg.js → TrustMemberCompanyPage-C9aFr4Bm.js} +5 -5
- package/dist/{TrustMemberIndividualPage-Bgsis586.js → TrustMemberIndividualPage-Ci7hwMA_.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DPE3grqL.js → UnincorporatedPartnershipIndividualPage-XQsgF3ou.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js → UnincorporatedPartnershipMemberCompanyPage-DFe_N3gH.js} +4 -4
- package/dist/{VerificationErrorAlert-BBdJmGJu.js → VerificationErrorAlert-Ci0cObw1.js} +13 -4
- package/dist/{ViewVerificationStatusComponent-DDtXG_pM.js → ViewVerificationStatusComponent-_qQmZFDY.js} +14 -12
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +31 -22
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/bg-BG-9uVrFuHv.js +23 -0
- package/dist/bg-BG-BiYtb1Tz.js +55 -0
- package/dist/bg-BG-CMomhopf.js +35 -0
- package/dist/bg-BG-Dy6-IwuZ.js +28 -0
- package/dist/bg-BG-NMIts2sa.js +35 -0
- package/dist/{plaintext-9WNCwUtz.js → bg-BG-hFblesn-.js} +4 -6
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/{_plugin-vue_export-helper-CgYpM5kA.js → cs-CZ-B8IPRc47.js} +4 -8
- package/dist/cs-CZ-Csr_35T-.js +35 -0
- package/dist/cs-CZ-DMzortvO.js +35 -0
- package/dist/cs-CZ-Dbow28-o.js +28 -0
- package/dist/cs-CZ-Wzc382q6.js +23 -0
- package/dist/cs-CZ-wdftovLe.js +55 -0
- package/dist/da-DK-4QAKic_C.js +55 -0
- package/dist/da-DK-Adj8R5Qn.js +28 -0
- package/dist/da-DK-BTpZzEgA.js +15 -0
- package/dist/da-DK-CeNMXUfE.js +23 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/de-DE-BG0tKqvi.js +28 -0
- package/dist/de-DE-BzumFI3T.js +55 -0
- package/dist/de-DE-D2ByeIZs.js +35 -0
- package/dist/de-DE-DMFaycio.js +35 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-CXmTklMq.js +55 -0
- package/dist/el-GR-Cu9HwD-f.js +15 -0
- package/dist/el-GR-DGW388LZ.js +35 -0
- package/dist/el-GR-DerT143K.js +28 -0
- package/dist/el-GR-DfNOPkLq.js +23 -0
- package/dist/en-US-BQpgt41j.js +37 -0
- package/dist/en-US-BTYdAWXp.js +15 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/en-US-CkZcSKGh.js +35 -0
- package/dist/en-US-DHq7VYFs.js +23 -0
- package/dist/en-US-DLm6gy6T.js +58 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BM4U0hT3.js +28 -0
- package/dist/es-ES-BhQOdKge.js +55 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-WWftn3JX.js +35 -0
- package/dist/es-ES-pXHx3ODy.js +35 -0
- package/dist/et-EE-BJIsPOnh.js +23 -0
- package/dist/et-EE-CFlzRBEx.js +55 -0
- package/dist/et-EE-D5lRJbMZ.js +35 -0
- package/dist/et-EE-Dor3enPS.js +15 -0
- package/dist/et-EE-OJg_PSHf.js +28 -0
- package/dist/et-EE-QLVnr6Vl.js +35 -0
- package/dist/fi-FI-BJ2l42Pj.js +28 -0
- package/dist/fi-FI-BNcnKrJ9.js +15 -0
- package/dist/fi-FI-D522KHGk.js +23 -0
- package/dist/fi-FI-D9E_KaJi.js +35 -0
- package/dist/fi-FI-DT351N-G.js +35 -0
- package/dist/fi-FI-Djollt2G.js +55 -0
- package/dist/fr-FR-BNXXNUX_.js +35 -0
- package/dist/fr-FR-Bn3D6mmY.js +15 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-g7lmxEsI.js +28 -0
- package/dist/fr-FR-l36qBV3a.js +55 -0
- package/dist/{getFieldsWithExistingData-BY--eXBQ.js → getFieldsWithExistingData-7pZnHro-.js} +2 -2
- package/dist/{hasDataChanged-CwfuS4et.js → hasDataChanged-v0hD-nEq.js} +2 -2
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CDUE36Dg.js +28 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CzSrqEFA.js +35 -0
- package/dist/hr-HR-DTCY4iL8.js +55 -0
- package/dist/hr-HR-DzS44Gpv.js +23 -0
- package/dist/hu-HU-BSOiZA7a.js +15 -0
- package/dist/hu-HU-Bmf13NMf.js +28 -0
- package/dist/hu-HU-BznXPoc2.js +55 -0
- package/dist/hu-HU-DRi6Dz9U.js +35 -0
- package/dist/hu-HU-xCvNM5TU.js +23 -0
- package/dist/hu-HU-zK6nUqWr.js +35 -0
- package/dist/it-IT-BEWyAQUU.js +55 -0
- package/dist/it-IT-BeYbInCQ.js +35 -0
- package/dist/it-IT-C_fNHhjE.js +35 -0
- package/dist/it-IT-CjEYONJg.js +23 -0
- package/dist/it-IT-DYIx7myn.js +28 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-D7oL6xGY.js +55 -0
- package/dist/ja-JP-GXkLvnQ4.js +15 -0
- package/dist/ja-JP-tx1DbZYD.js +28 -0
- package/dist/ja-JP-weDU8GLW.js +35 -0
- package/dist/{localizeDateString-CKCBXzSn.js → localizeDateString-BlZ_CtJI.js} +2 -2
- package/dist/lt-LT-B6CJ4ULI.js +23 -0
- package/dist/lt-LT-BUYY0LaT.js +35 -0
- package/dist/lt-LT-BxScCodJ.js +28 -0
- package/dist/lt-LT-DNjXmQPv.js +15 -0
- package/dist/lt-LT-De7dLXxI.js +55 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-CRhXAjn6.js +35 -0
- package/dist/lv-LV-ChOoZuhc.js +15 -0
- package/dist/lv-LV-DTtuyfHS.js +23 -0
- package/dist/lv-LV-De9rdme0.js +55 -0
- package/dist/lv-LV-F9_Fiu3w.js +28 -0
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-D_6u_bSS.js → mapFinancialReportsToFinancialInformation-DrS0xN6i.js} +2 -2
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-Cht7cSwD.js +28 -0
- package/dist/nl-NL-DLedC3mO.js +35 -0
- package/dist/nl-NL-Dbx0ZmI7.js +35 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/nl-NL-lZcJhRsP.js +55 -0
- package/dist/no-NO-BEIyAMmZ.js +55 -0
- package/dist/no-NO-BQAqVzF4.js +28 -0
- package/dist/no-NO-BxReX6oF.js +23 -0
- package/dist/no-NO-C0sfkp82.js +35 -0
- package/dist/no-NO-CKT9kLAH.js +15 -0
- package/dist/no-NO-CpVal4cV.js +35 -0
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/pl-PL-1ylK-_FE.js +35 -0
- package/dist/pl-PL-CqxMKpBm.js +28 -0
- package/dist/pl-PL-D6heiKsH.js +15 -0
- package/dist/pl-PL-DAPGaxWi.js +35 -0
- package/dist/pl-PL-DD3wVcKc.js +55 -0
- package/dist/pl-PL-T6uD5--R.js +23 -0
- package/dist/pt-PT-BY9rcwcF.js +35 -0
- package/dist/pt-PT-BkvMsoK4.js +35 -0
- package/dist/pt-PT-BsDCHbWN.js +55 -0
- package/dist/pt-PT-CBbmkr_J.js +28 -0
- package/dist/pt-PT-D2elvnDU.js +15 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-DQH1ab0S.js → resolveEnvironment-DvSgDDo8.js} +3 -3
- package/dist/ro-RO-CUg8-CQ8.js +55 -0
- package/dist/ro-RO-DJLWmWZ4.js +35 -0
- package/dist/ro-RO-DL9V1CMj.js +15 -0
- package/dist/ro-RO-Dfx0g3bU.js +35 -0
- package/dist/ro-RO-IY3AMhwm.js +28 -0
- package/dist/ro-RO-Ic1SzBgx.js +23 -0
- package/dist/{rules-CCnLDGvk.js → rules-Meybz2dk.js} +13 -13
- package/dist/sk-SK-B7o3L57C.js +35 -0
- package/dist/sk-SK-BDKRZ2mM.js +28 -0
- package/dist/sk-SK-BSioQTMW.js +15 -0
- package/dist/sk-SK-CiD0FeLN.js +23 -0
- package/dist/sk-SK-Cjrkrb85.js +55 -0
- package/dist/sk-SK-iO863_t2.js +35 -0
- package/dist/sl-SI-BB0suyr1.js +28 -0
- package/dist/sl-SI-BE_ndzZ2.js +55 -0
- package/dist/sl-SI-BylvpF-X.js +15 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +690 -628
- package/dist/styles-CLV89_hH.js +690 -628
- package/dist/sv-SE-BryiIPVv.js +55 -0
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-DCFSf4Oj.js +23 -0
- package/dist/sv-SE-DYruQSzt.js +28 -0
- package/dist/sv-SE-Dwz1yTrB.js +15 -0
- package/dist/sv-SE-OPOHtqtP.js +35 -0
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
- package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
- package/dist/types/components/Business/forms/rules.d.ts +26 -8
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +31 -29
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +1 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
- package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -6
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +12 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
- package/dist/types/components/ui/molecules/Alert/VerificationErrorAlert.d.ts +1 -1
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +46 -38
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/models/api/company-types-value.d.ts +12 -11
- package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
- package/dist/types/core/models/api/entity-type.d.ts +5 -4
- package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
- package/dist/types/core/models/api/verification-error.d.ts +8 -7
- package/dist/types/core/models/api/verification-status.d.ts +7 -6
- package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/types.d.ts +2 -0
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -3
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/regex/patternValidators.d.ts +1 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/{useMultiForm-KQwxav4F.js → useMultiForm-BQmE_nfY.js} +2 -2
- package/dist/{useOnboardingStatus-BMyj9Pwn.js → useOnboardingStatus-DJdV6bAG.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CBHKWYSb.js → useTermsOfServiceStatus-BX4GiDbz.js} +2 -2
- package/dist/{useUpdateLegalEntity-D8dw9Oc3.js → useUpdateLegalEntity-BfnvHQJj.js} +2 -2
- package/dist/{utils-CL9qlD-O.js → utils-1zLleVnu.js} +17 -17
- package/dist/{validate-CuwYJGc9.js → validate-BweJRQFE.js} +9 -3
- package/dist/{validate-CeF0YKvL.js → validate-Cy6vBhF2.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +7 -32
- package/dist/LandingLayout-B45lEjOv.js +0 -84
- package/dist/ManagePCIComponent-BgdGfAuT.js +0 -33
- package/dist/RootBusinessDetailsPage-q_6wAcer.js +0 -42
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -55
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js +0 -57
- package/dist/bg-BG-HpLj_LOM.js +0 -16
- package/dist/cs-CZ-CQ_M3lEp.js +0 -16
- package/dist/css-BJGWcW8A.js +0 -24
- package/dist/da-DK-k4JW3iVF.js +0 -16
- package/dist/de-DE-C7mjtS5w.js +0 -16
- package/dist/el-GR-CEQrkYHW.js +0 -16
- package/dist/en-US-DDagIr01.js +0 -16
- package/dist/es-ES-DB1c74Kv.js +0 -16
- package/dist/et-EE-xIegUSuv.js +0 -16
- package/dist/fi-FI-NCxneAqU.js +0 -16
- package/dist/fr-FR-daiUnUwo.js +0 -16
- package/dist/hr-HR-BAUywqDj.js +0 -16
- package/dist/hu-HU-3GQojIHR.js +0 -16
- package/dist/it-IT-pDWPFHEh.js +0 -16
- package/dist/ja-JP-scPXJ93L.js +0 -16
- package/dist/json-Dk6RRAV8.js +0 -31
- package/dist/lt-LT-BcGNy8Ti.js +0 -16
- package/dist/lv-LV-CBD07r1Y.js +0 -16
- package/dist/nl-NL-BxJUDHMK.js +0 -16
- package/dist/no-NO-Drup6Jyy.js +0 -16
- package/dist/pl-PL-BXv8Mmzb.js +0 -16
- package/dist/preact/adyen-individual.js +0 -15
- package/dist/preact/adyen-manage-individual.js +0 -15
- package/dist/preact/adyen-terms-of-service.js +0 -16
- package/dist/preact/adyen-transfer-instrument.js +0 -16
- package/dist/pt-PT-D8nU-UM2.js +0 -16
- package/dist/ro-RO-CG33OwqS.js +0 -16
- package/dist/sk-SK-DV_xkO69.js +0 -16
- package/dist/sl-SI-B5yeoadY.js +0 -16
- package/dist/sv-SE-CfxyR53r.js +0 -16
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
- package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
- package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -14
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -45
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-43TfSoxc.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -31
- package/dist/yaml-CBkrSAtc.js +0 -22
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bb266164-c3b5-4c86-8648-2410c4b55cf6", e._sentryDebugIdIdentifier = "sentry-dbid-bb266164-c3b5-4c86-8648-2410c4b55cf6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
|
|
12
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
13
|
-
import { bz as reverseMapping, bA as formatObject, bB as isEeaCountry,
|
|
14
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
15
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
16
|
-
import { F as FormEndState } from "./FormEndState-
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
19
|
-
import { b as businessFinancingMultiformRules } from "./validate-
|
|
12
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BfnvHQJj.js";
|
|
13
|
+
import { bz as reverseMapping, bA as formatObject, bB as isEeaCountry, O as LegalEntityTypes, bk as cloneObject, a as useApiContext, r as useQuery, x as httpGet, u as useI18nContext, aD as Field, bu as Select, c as useTranslation, N as Typography, M as translateStringOrObject, bC as LegalFormField, aC as createFormUtils, a_ as RadioGroup, bD as Link, bE as InputText, bl as currencyByCountry, bF as InputNumber, bG as Currency, bH as CURRENCY_FIELD, bI as InputCurrency, bJ as InputDate, bK as useFormContext, az as getFieldProps, aB as ErrorPanel, ba as datasetUtilities, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, bv as Checkbox, bN as Address, bO as getAddressSchemaLabelsByCountry, a3 as useAnalyticsContext, bo as useInvalidateRootLegalEntity, ar as useAssociatedLegalEntity, a9 as useToastContext, v as useSettingsContext, w as SettingNames, bP as getAssociatedLeAnalyticsPayload, bQ as getRequiredForms, bR as addValidityToForms, bS as useFormComposer, bT as trackNavigation, L as Loader, a7 as Icon, G as Button, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError } from "./StoreProvider-O9jwxfG8.js";
|
|
14
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNXkXUwa.js";
|
|
15
|
+
import { u as useMultiForm } from "./useMultiForm-BQmE_nfY.js";
|
|
16
|
+
import { F as FormEndState } from "./FormEndState-CUYkLBgX.js";
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-BlZ_CtJI.js";
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-DrS0xN6i.js";
|
|
19
|
+
import { b as businessFinancingMultiformRules } from "./validate-BweJRQFE.js";
|
|
20
20
|
const businessFinancingBaseMapping = {
|
|
21
21
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
22
22
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -43,29 +43,32 @@ const mapBusinessFinancingToLegalEntity = (data) => ({
|
|
|
43
43
|
businessFinancingApiKeyMapping
|
|
44
44
|
)
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
const BusinessFinancingPages = {
|
|
47
|
+
COMPANY_PAGE: "company",
|
|
48
|
+
PARENT_COMPANY_PAGE: "parentCompany",
|
|
49
|
+
ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
|
|
50
|
+
};
|
|
51
|
+
const BusinessFinancingRadioIds = {
|
|
52
|
+
YES: "Yes",
|
|
53
|
+
NO: "No"
|
|
54
|
+
};
|
|
52
55
|
const businessFinancingRadioItems = [
|
|
53
56
|
{
|
|
54
|
-
id:
|
|
57
|
+
id: BusinessFinancingRadioIds.YES,
|
|
55
58
|
name: "yes"
|
|
56
59
|
},
|
|
57
60
|
{
|
|
58
|
-
id:
|
|
61
|
+
id: BusinessFinancingRadioIds.NO,
|
|
59
62
|
name: "no"
|
|
60
63
|
}
|
|
61
64
|
];
|
|
62
65
|
const businessFinancingParentRadioItems = [
|
|
63
66
|
{
|
|
64
|
-
id:
|
|
67
|
+
id: BusinessFinancingRadioIds.YES,
|
|
65
68
|
name: "yes"
|
|
66
69
|
},
|
|
67
70
|
{
|
|
68
|
-
id:
|
|
71
|
+
id: BusinessFinancingRadioIds.NO,
|
|
69
72
|
name: "noIdontKnow"
|
|
70
73
|
}
|
|
71
74
|
];
|
|
@@ -98,36 +101,36 @@ const parentCompaniesSchemaKeys = [
|
|
|
98
101
|
"annualTurnover",
|
|
99
102
|
"legalInformationInsolvency",
|
|
100
103
|
"legalProceedingsDate",
|
|
101
|
-
"registrationAddress"
|
|
104
|
+
"registrationAddress",
|
|
105
|
+
"sameAddressAsRootEntity"
|
|
102
106
|
];
|
|
103
107
|
const businessFinancingForms = {
|
|
104
108
|
company: {
|
|
105
109
|
formId: "company",
|
|
106
|
-
formName: "
|
|
110
|
+
formName: "yourBusinessInformation",
|
|
107
111
|
fields: [...companySchemaKeys]
|
|
108
112
|
},
|
|
109
113
|
parentCompany: {
|
|
110
114
|
formId: "parentCompany",
|
|
111
|
-
formName: "
|
|
115
|
+
formName: "parentCompanyInformation",
|
|
112
116
|
fields: [...parentCompaniesSchemaKeys]
|
|
113
117
|
},
|
|
114
118
|
ultimateParentCompany: {
|
|
115
119
|
formId: "ultimateParentCompany",
|
|
116
|
-
formName: "
|
|
120
|
+
formName: "ultimateParentCompanyInformation",
|
|
117
121
|
fields: [...parentCompaniesSchemaKeys]
|
|
118
122
|
}
|
|
119
123
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})(BusinessFinancingIndex || {});
|
|
124
|
+
const BusinessFinancingIndices = {
|
|
125
|
+
COMPANY: "company",
|
|
126
|
+
PARENT_COMPANY: "parentCompany",
|
|
127
|
+
ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
|
|
128
|
+
};
|
|
126
129
|
const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
127
130
|
if (!rootLegalEntity) return void 0;
|
|
128
|
-
if (businessFinancingIndex ===
|
|
131
|
+
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
|
|
129
132
|
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
130
|
-
const businessFinancingEntityType =
|
|
133
|
+
const businessFinancingEntityType = "immediateParentCompany";
|
|
131
134
|
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
132
135
|
(entity) => entity.type === businessFinancingEntityType
|
|
133
136
|
);
|
|
@@ -148,10 +151,10 @@ const financialReportsToString = (financialReports) => {
|
|
|
148
151
|
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
149
152
|
const businessFinancingData = data[businessFinancingIndex];
|
|
150
153
|
if (!businessFinancingData) return null;
|
|
151
|
-
if (businessFinancingIndex ===
|
|
154
|
+
if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
152
155
|
return null;
|
|
153
156
|
}
|
|
154
|
-
if (businessFinancingIndex ===
|
|
157
|
+
if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
|
|
155
158
|
return null;
|
|
156
159
|
}
|
|
157
160
|
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
@@ -177,6 +180,11 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
177
180
|
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
178
181
|
businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
179
182
|
}
|
|
183
|
+
if (businessFinancingData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
|
|
184
|
+
businessFinancingDetails.organization.registeredAddress = {
|
|
185
|
+
...rootLegalEntity.organization.registeredAddress
|
|
186
|
+
};
|
|
187
|
+
}
|
|
180
188
|
if (businessFinancingData.isThisAddressTheMainHeadquarters) {
|
|
181
189
|
businessFinancingDetails.organization.principalPlaceOfBusiness = {
|
|
182
190
|
...businessFinancingDetails.organization.registeredAddress
|
|
@@ -191,7 +199,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
191
199
|
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
192
200
|
} else {
|
|
193
201
|
delete businessFinancingDetails.id;
|
|
194
|
-
businessFinancingDetails.type =
|
|
202
|
+
businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
|
|
195
203
|
}
|
|
196
204
|
return businessFinancingDetails;
|
|
197
205
|
};
|
|
@@ -266,6 +274,9 @@ const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
|
266
274
|
"numberOfEmployees"
|
|
267
275
|
);
|
|
268
276
|
}
|
|
277
|
+
if (currentData?.sameAddressAsRootEntity) {
|
|
278
|
+
fieldsToRemove.push("registrationAddress");
|
|
279
|
+
}
|
|
269
280
|
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
270
281
|
fieldsToRemove.push("legalEntityIdentifier");
|
|
271
282
|
}
|
|
@@ -307,26 +318,35 @@ const getBusinessFinancingRequiredFields = (country, data) => {
|
|
|
307
318
|
}
|
|
308
319
|
return requiredFields;
|
|
309
320
|
};
|
|
321
|
+
const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
|
|
322
|
+
return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
|
|
323
|
+
};
|
|
310
324
|
const customLabels = {
|
|
311
325
|
company: {
|
|
312
326
|
legalForm: "businessStructure",
|
|
313
327
|
naceCode: "industryAndNaceCode",
|
|
314
328
|
netAssets: "totalAssets",
|
|
315
|
-
annualTurnover: "annualTurnover"
|
|
329
|
+
annualTurnover: "annualTurnover",
|
|
330
|
+
legalInformationInsolvency: "legalProceedings",
|
|
331
|
+
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
332
|
+
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
333
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
316
334
|
},
|
|
317
335
|
parentCompany: {
|
|
318
336
|
legalForm: "businessStructure",
|
|
319
337
|
naceCode: "industryAndNaceCode",
|
|
320
|
-
doesYourCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
321
338
|
netAssets: "totalAssets",
|
|
322
|
-
annualTurnover: "annualTurnover"
|
|
339
|
+
annualTurnover: "annualTurnover",
|
|
340
|
+
legalInformationInsolvency: "legalProceedings",
|
|
341
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
323
342
|
},
|
|
324
343
|
ultimateParentCompany: {
|
|
325
344
|
legalForm: "businessStructure",
|
|
326
345
|
naceCode: "industryAndNaceCode",
|
|
327
|
-
doesYourCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
328
346
|
netAssets: "totalAssets",
|
|
329
|
-
annualTurnover: "annualTurnover"
|
|
347
|
+
annualTurnover: "annualTurnover",
|
|
348
|
+
legalInformationInsolvency: "legalProceedings",
|
|
349
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
330
350
|
}
|
|
331
351
|
};
|
|
332
352
|
const getTranslatedLegalInsolvency = (i18n, insolvencyData) => {
|
|
@@ -348,66 +368,116 @@ const getFormattedAmount = (value, currency) => {
|
|
|
348
368
|
const formattedValue = Number(value).toLocaleString(userLocale);
|
|
349
369
|
return `${currency} ${formattedValue}`;
|
|
350
370
|
};
|
|
351
|
-
const formatDataForSummary = (i18n, datasetUtils, data) => {
|
|
371
|
+
const formatDataForSummary = (i18n, datasetUtils, data, rootLeAddress) => {
|
|
352
372
|
const summaryData = cloneObject(data) || {};
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
373
|
+
const { company, parentCompany, ultimateParentCompany } = summaryData;
|
|
374
|
+
if (company) {
|
|
375
|
+
company.legalForm = company.legalFormLabel;
|
|
376
|
+
company.naceCode = company.naceCodeLabel;
|
|
377
|
+
company.legalEntityIdentifier = company.legalEntityIdentifier ?? "None";
|
|
378
|
+
company.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
357
379
|
i18n,
|
|
358
|
-
|
|
359
|
-
);
|
|
360
|
-
summaryData.company.annualTurnover = getFormattedAmount(
|
|
361
|
-
summaryData.company.annualTurnover,
|
|
362
|
-
summaryData.company.currency
|
|
380
|
+
company?.legalInformationInsolvency
|
|
363
381
|
);
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
);
|
|
368
|
-
|
|
369
|
-
summaryData.company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, i18n.locale) : void 0;
|
|
370
|
-
summaryData.company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, i18n.locale) : void 0;
|
|
382
|
+
company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
|
|
383
|
+
company.netAssets = getFormattedAmount(company.netAssets, company.currency);
|
|
384
|
+
const { legalProceedingsDate, financialReportingDate } = company;
|
|
385
|
+
company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, i18n.locale) : void 0;
|
|
386
|
+
company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, i18n.locale) : void 0;
|
|
371
387
|
}
|
|
372
|
-
if (
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
if (parentCompany) {
|
|
389
|
+
const {
|
|
390
|
+
legalName,
|
|
391
|
+
legalFormLabel,
|
|
392
|
+
naceCodeLabel,
|
|
393
|
+
country,
|
|
394
|
+
legalEntityIdentifier,
|
|
395
|
+
legalInformationInsolvency,
|
|
396
|
+
annualTurnover,
|
|
397
|
+
currency,
|
|
398
|
+
netAssets,
|
|
399
|
+
legalProceedingsDate,
|
|
400
|
+
financialReportingDate,
|
|
401
|
+
sameAddressAsRootEntity,
|
|
402
|
+
registrationAddress
|
|
403
|
+
} = parentCompany;
|
|
404
|
+
if (legalName) {
|
|
405
|
+
parentCompany.legalForm = legalFormLabel;
|
|
406
|
+
parentCompany.naceCode = naceCodeLabel;
|
|
407
|
+
parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
408
|
+
if (registrationAddress) {
|
|
409
|
+
parentCompany.registrationAddress = {
|
|
410
|
+
...registrationAddress,
|
|
411
|
+
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
parentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
415
|
+
parentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
416
|
+
i18n,
|
|
417
|
+
legalInformationInsolvency
|
|
418
|
+
);
|
|
419
|
+
parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
420
|
+
parentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
421
|
+
parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, i18n.locale) : void 0;
|
|
422
|
+
parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, i18n.locale) : void 0;
|
|
423
|
+
if (sameAddressAsRootEntity) {
|
|
424
|
+
delete parentCompany.country;
|
|
425
|
+
summaryData.parentCompany = {
|
|
426
|
+
...parentCompany,
|
|
427
|
+
registrationAddress: {
|
|
428
|
+
...rootLeAddress,
|
|
429
|
+
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
}
|
|
391
434
|
}
|
|
392
|
-
if (
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
435
|
+
if (ultimateParentCompany) {
|
|
436
|
+
const {
|
|
437
|
+
legalName,
|
|
438
|
+
legalFormLabel,
|
|
439
|
+
naceCodeLabel,
|
|
440
|
+
country,
|
|
441
|
+
legalEntityIdentifier,
|
|
442
|
+
legalInformationInsolvency,
|
|
443
|
+
annualTurnover,
|
|
444
|
+
currency,
|
|
445
|
+
netAssets,
|
|
446
|
+
legalProceedingsDate,
|
|
447
|
+
financialReportingDate,
|
|
448
|
+
sameAddressAsRootEntity,
|
|
449
|
+
registrationAddress
|
|
450
|
+
} = ultimateParentCompany;
|
|
451
|
+
if (legalName) {
|
|
452
|
+
ultimateParentCompany.legalForm = legalFormLabel;
|
|
453
|
+
ultimateParentCompany.naceCode = naceCodeLabel;
|
|
454
|
+
ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
|
|
455
|
+
if (registrationAddress) {
|
|
456
|
+
ultimateParentCompany.registrationAddress = {
|
|
457
|
+
...registrationAddress,
|
|
458
|
+
country: datasetUtils.getCountryName(registrationAddress?.country)
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
ultimateParentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
|
|
462
|
+
ultimateParentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
463
|
+
i18n,
|
|
464
|
+
legalInformationInsolvency
|
|
465
|
+
);
|
|
466
|
+
ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
467
|
+
ultimateParentCompany.netAssets = getFormattedAmount(netAssets, currency);
|
|
468
|
+
ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, i18n.locale) : void 0;
|
|
469
|
+
ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, i18n.locale) : void 0;
|
|
470
|
+
if (sameAddressAsRootEntity) {
|
|
471
|
+
delete ultimateParentCompany.country;
|
|
472
|
+
summaryData.ultimateParentCompany = {
|
|
473
|
+
...ultimateParentCompany,
|
|
474
|
+
registrationAddress: {
|
|
475
|
+
...rootLeAddress,
|
|
476
|
+
country: datasetUtils.getCountryName(rootLeAddress?.country)
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}
|
|
411
481
|
}
|
|
412
482
|
return summaryData;
|
|
413
483
|
};
|
|
@@ -501,16 +571,17 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
501
571
|
handleFieldChange,
|
|
502
572
|
fieldValidationErrors,
|
|
503
573
|
targetPage,
|
|
504
|
-
sectionHeading
|
|
574
|
+
sectionHeading,
|
|
575
|
+
hideSectionHeading
|
|
505
576
|
} = props;
|
|
506
|
-
const {
|
|
507
|
-
const formUtils = createFormUtils(props,
|
|
577
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
578
|
+
const formUtils = createFormUtils(props, t);
|
|
508
579
|
if (!handleFieldChange) {
|
|
509
580
|
return;
|
|
510
581
|
}
|
|
511
|
-
const isMainCompany = targetPage ===
|
|
582
|
+
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
512
583
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
513
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
584
|
+
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["yourBusinessInformation"]) }),
|
|
514
585
|
/* @__PURE__ */ jsx(
|
|
515
586
|
LegalFormField,
|
|
516
587
|
{
|
|
@@ -544,11 +615,11 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
544
615
|
el: "fieldset",
|
|
545
616
|
name: "doesYourCompanyHaveLEI",
|
|
546
617
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
547
|
-
label:
|
|
618
|
+
label: t(($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]),
|
|
548
619
|
helper: /* @__PURE__ */ jsxs(Typography, { el: "div", variant: "body", color: "secondary", children: [
|
|
549
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
620
|
+
/* @__PURE__ */ jsx("span", { children: t(($) => $["anLEIIsAUniqueCode"], { ns: "efp" }) }),
|
|
550
621
|
" ",
|
|
551
|
-
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children:
|
|
622
|
+
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: t(($) => $["lookUpYourLEI"], { ns: "efp" }) })
|
|
552
623
|
] }),
|
|
553
624
|
errorMessage: formUtils.getErrorMessage(
|
|
554
625
|
"doesYourCompanyHaveLEI",
|
|
@@ -581,11 +652,9 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
581
652
|
fieldValidationErrors
|
|
582
653
|
),
|
|
583
654
|
isValid: valid?.legalEntityIdentifier,
|
|
584
|
-
helper:
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
example: "529900T8BM49AURSDO55"
|
|
588
|
-
}
|
|
655
|
+
helper: t(($) => $["enterNCharactersWithAMixForExample"], {
|
|
656
|
+
numChars: 20,
|
|
657
|
+
example: "529900T8BM49AURSDO55"
|
|
589
658
|
}),
|
|
590
659
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
591
660
|
InputText,
|
|
@@ -609,7 +678,6 @@ const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
|
609
678
|
const financialInformationFields = [
|
|
610
679
|
"numberOfEmployees",
|
|
611
680
|
"financialReportingDate",
|
|
612
|
-
"doesYourCompanyHaveLEI",
|
|
613
681
|
"legalEntityIdentifier",
|
|
614
682
|
"currency",
|
|
615
683
|
"netAssets",
|
|
@@ -617,8 +685,8 @@ const financialInformationFields = [
|
|
|
617
685
|
];
|
|
618
686
|
function BusinessFinancingFinancialInformation(props) {
|
|
619
687
|
const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
|
|
620
|
-
const { i18n } =
|
|
621
|
-
const formUtils = createFormUtils(props,
|
|
688
|
+
const { t, i18n: i18next } = useTranslation(["common", "efp"]);
|
|
689
|
+
const formUtils = createFormUtils(props, t);
|
|
622
690
|
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
623
691
|
if (!handleFieldChange) {
|
|
624
692
|
return;
|
|
@@ -628,13 +696,17 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
628
696
|
const isFinancialDataValid = valid;
|
|
629
697
|
const [firstCurrency] = currenciesForCurrCountry;
|
|
630
698
|
const defaultCurrency = firstCurrency ?? "EUR";
|
|
699
|
+
if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
|
|
700
|
+
handleFieldChange("currency")(firstCurrency);
|
|
701
|
+
}
|
|
631
702
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
632
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
703
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["businessFinancials"]) }),
|
|
633
704
|
/* @__PURE__ */ jsx(
|
|
634
705
|
Field,
|
|
635
706
|
{
|
|
636
707
|
name: "numberOfEmployees",
|
|
637
708
|
label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
|
|
709
|
+
helper: t(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"], { ns: "efp" }),
|
|
638
710
|
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
639
711
|
isValid: valid?.numberOfEmployees,
|
|
640
712
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -653,41 +725,14 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
653
725
|
)
|
|
654
726
|
}
|
|
655
727
|
),
|
|
656
|
-
/* @__PURE__ */ jsx(
|
|
657
|
-
Field,
|
|
658
|
-
{
|
|
659
|
-
name: "financialReportingDate",
|
|
660
|
-
label: formUtils.getLabel("financialReportingDate", "financialReportingDate"),
|
|
661
|
-
helper: i18n.get("dateOfTotalAssetsCalculation"),
|
|
662
|
-
errorMessage: formUtils.getErrorMessage(
|
|
663
|
-
"financialReportingDate",
|
|
664
|
-
errors,
|
|
665
|
-
fieldValidationErrors
|
|
666
|
-
),
|
|
667
|
-
isValid: valid?.financialReportingDate,
|
|
668
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
669
|
-
InputDate,
|
|
670
|
-
{
|
|
671
|
-
...childProps,
|
|
672
|
-
name: "financialReportingDate",
|
|
673
|
-
value: data?.financialReportingDate,
|
|
674
|
-
onInput: handleFieldChange("financialReportingDate", "input"),
|
|
675
|
-
onBlur: handleFieldChange("financialReportingDate", "blur"),
|
|
676
|
-
"aria-required": true,
|
|
677
|
-
"aria-invalid": !valid?.financialReportingDate,
|
|
678
|
-
max: TODAY_DATE$1
|
|
679
|
-
}
|
|
680
|
-
)
|
|
681
|
-
}
|
|
682
|
-
),
|
|
683
|
-
/* @__PURE__ */ jsx(
|
|
728
|
+
currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
|
|
684
729
|
Currency,
|
|
685
730
|
{
|
|
686
731
|
country,
|
|
687
732
|
data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
|
|
688
733
|
errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
|
|
689
734
|
handleChangeFor: handleFieldChange,
|
|
690
|
-
labels: { currency:
|
|
735
|
+
labels: { currency: t(($) => $["financialStatementReportingCurrency"]) },
|
|
691
736
|
readonly: formUtils.isReadOnly("currency"),
|
|
692
737
|
valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
|
|
693
738
|
}
|
|
@@ -697,14 +742,14 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
697
742
|
Field,
|
|
698
743
|
{
|
|
699
744
|
name: "netAssets",
|
|
700
|
-
label: formUtils.getLabel("netAssets", "
|
|
701
|
-
helper:
|
|
745
|
+
label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
|
|
746
|
+
helper: t(($) => $["theSumOfTotalLiabilities"], { ns: "efp" }),
|
|
702
747
|
errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
|
|
703
748
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
704
749
|
InputCurrency,
|
|
705
750
|
{
|
|
706
751
|
...childProps,
|
|
707
|
-
locale:
|
|
752
|
+
locale: i18next.language,
|
|
708
753
|
currency: data?.currency ?? defaultCurrency,
|
|
709
754
|
amount: data?.netAssets ? Number(data?.netAssets) : void 0,
|
|
710
755
|
onAmountChanged: handleFieldChange("netAssets")
|
|
@@ -717,20 +762,47 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
717
762
|
{
|
|
718
763
|
name: "annualTurnover",
|
|
719
764
|
label: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
720
|
-
helper:
|
|
765
|
+
helper: t(($) => $["theAnnualSalesRevenue"], { ns: "efp" }),
|
|
721
766
|
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
722
767
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
723
768
|
InputCurrency,
|
|
724
769
|
{
|
|
725
770
|
...childProps,
|
|
726
771
|
name: "annualTurnover",
|
|
727
|
-
locale:
|
|
772
|
+
locale: i18next.language,
|
|
728
773
|
currency: data?.currency ?? defaultCurrency,
|
|
729
774
|
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
730
775
|
onAmountChanged: handleFieldChange("annualTurnover")
|
|
731
776
|
}
|
|
732
777
|
)
|
|
733
778
|
}
|
|
779
|
+
),
|
|
780
|
+
/* @__PURE__ */ jsx(
|
|
781
|
+
Field,
|
|
782
|
+
{
|
|
783
|
+
name: "financialReportingDate",
|
|
784
|
+
label: formUtils.getLabel("financialReportingDate", "statementReportingDate"),
|
|
785
|
+
helper: t(($) => $["useTheMoreRecentOfTheReportingDates"], { ns: "efp" }),
|
|
786
|
+
errorMessage: formUtils.getErrorMessage(
|
|
787
|
+
"financialReportingDate",
|
|
788
|
+
errors,
|
|
789
|
+
fieldValidationErrors
|
|
790
|
+
),
|
|
791
|
+
isValid: valid?.financialReportingDate,
|
|
792
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
793
|
+
InputDate,
|
|
794
|
+
{
|
|
795
|
+
...childProps,
|
|
796
|
+
name: "financialReportingDate",
|
|
797
|
+
value: data?.financialReportingDate,
|
|
798
|
+
onInput: handleFieldChange("financialReportingDate", "input"),
|
|
799
|
+
onBlur: handleFieldChange("financialReportingDate", "blur"),
|
|
800
|
+
"aria-required": true,
|
|
801
|
+
"aria-invalid": !valid?.financialReportingDate,
|
|
802
|
+
max: TODAY_DATE$1
|
|
803
|
+
}
|
|
804
|
+
)
|
|
805
|
+
}
|
|
734
806
|
)
|
|
735
807
|
] })
|
|
736
808
|
] });
|
|
@@ -742,21 +814,30 @@ const legalInformationFields = [
|
|
|
742
814
|
];
|
|
743
815
|
function BusinessFinancingLegalInformation(props) {
|
|
744
816
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
745
|
-
const {
|
|
746
|
-
const formUtils = createFormUtils(props,
|
|
817
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
818
|
+
const formUtils = createFormUtils(props, t);
|
|
747
819
|
if (!handleFieldChange) {
|
|
748
820
|
return;
|
|
749
821
|
}
|
|
750
822
|
const legalInformationInsolvencyItems = [
|
|
751
|
-
{ id: "noLegalActionsTaken", name:
|
|
752
|
-
{
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
823
|
+
{ id: "noLegalActionsTaken", name: t(($) => $["no"]) },
|
|
824
|
+
{
|
|
825
|
+
id: "underJudicialAdministration",
|
|
826
|
+
name: t(($) => $["yesTheCompanyIsUnderJudicialAdministration"], { ns: "efp" })
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
id: "bankruptcyInsolvency",
|
|
830
|
+
name: t(($) => $["yesTheCompanyIsFilingForBankruptcy"], { ns: "efp" })
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
id: "otherLegalMeasures",
|
|
834
|
+
name: t(($) => $["yesTheCompanyIsFacingOtherLegalMeasures"], { ns: "efp" })
|
|
835
|
+
},
|
|
836
|
+
{ id: "iDontKnow", name: t(($) => $["iDontKnow"]) }
|
|
756
837
|
];
|
|
757
838
|
const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
|
|
758
839
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
759
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
840
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["legalInformation"]) }),
|
|
760
841
|
/* @__PURE__ */ jsx(
|
|
761
842
|
Field,
|
|
762
843
|
{
|
|
@@ -774,7 +855,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
774
855
|
...childProps,
|
|
775
856
|
onChange: handleFieldChange("legalInformationInsolvency", "blur"),
|
|
776
857
|
name: "legalInformationInsolvency",
|
|
777
|
-
placeholder:
|
|
858
|
+
placeholder: t(($) => $["selectOne"]),
|
|
778
859
|
selected: data?.legalInformationInsolvency,
|
|
779
860
|
items: legalInformationInsolvencyItems,
|
|
780
861
|
"aria-required": true,
|
|
@@ -817,28 +898,28 @@ const ownershipStructureFields = [
|
|
|
817
898
|
];
|
|
818
899
|
function BusinessFinancingOwnershipStructure(props) {
|
|
819
900
|
const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
|
|
820
|
-
const { i18n } =
|
|
821
|
-
const formUtils = createFormUtils(props, i18n);
|
|
901
|
+
const { t, i18n } = useTranslation(["efp"]);
|
|
902
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
822
903
|
if (!handleFieldChange) {
|
|
823
904
|
return;
|
|
824
905
|
}
|
|
825
906
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
826
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
907
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["ownershipStructure"]) }),
|
|
827
908
|
/* @__PURE__ */ jsx(
|
|
828
909
|
Field,
|
|
829
910
|
{
|
|
830
911
|
el: "fieldset",
|
|
831
912
|
name: "isCompanyOwnedByAnotherCompany",
|
|
832
913
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
833
|
-
label:
|
|
834
|
-
|
|
914
|
+
label: t(($) => $["isCompanyOwnedByAnotherCompany"], {
|
|
915
|
+
company: legalEntity?.organization ? legalEntity.organization.legalName : ""
|
|
835
916
|
}),
|
|
836
917
|
errorMessage: formUtils.getErrorMessage(
|
|
837
918
|
"isCompanyOwnedByAnotherCompany",
|
|
838
919
|
errors,
|
|
839
920
|
fieldValidationErrors
|
|
840
921
|
),
|
|
841
|
-
helper: /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body", color: "secondary", children: /* @__PURE__ */ jsx("span", { children:
|
|
922
|
+
helper: /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body", color: "secondary", children: /* @__PURE__ */ jsx("span", { children: t(($) => $["thisMeansYouHaveAParentCompany"]) }) }),
|
|
842
923
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
843
924
|
RadioGroup,
|
|
844
925
|
{
|
|
@@ -861,7 +942,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
861
942
|
name: "isParentOwnedByAnotherCompany",
|
|
862
943
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
863
944
|
label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
|
|
864
|
-
helper: /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body", color: "secondary", children: /* @__PURE__ */ jsx("span", { children:
|
|
945
|
+
helper: /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body", color: "secondary", children: /* @__PURE__ */ jsx("span", { children: t(($) => $["thisMeansYouHaveAnUltimateParentCompany"]) }) }),
|
|
865
946
|
errorMessage: formUtils.getErrorMessage(
|
|
866
947
|
"isParentOwnedByAnotherCompany",
|
|
867
948
|
errors,
|
|
@@ -885,20 +966,24 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
885
966
|
] });
|
|
886
967
|
}
|
|
887
968
|
function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
888
|
-
const {
|
|
969
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
889
970
|
const {
|
|
890
|
-
form: { handleChangeFor, data }
|
|
971
|
+
form: { handleChangeFor, data, setValid }
|
|
891
972
|
} = useFormContext();
|
|
892
973
|
const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
|
|
893
|
-
const formUtils = createFormUtils(props,
|
|
974
|
+
const formUtils = createFormUtils(props, t);
|
|
894
975
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
|
|
895
976
|
const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
|
|
896
977
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
897
978
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
898
979
|
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
980
|
+
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
981
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
982
|
+
setValid("currency", true, "company");
|
|
983
|
+
}
|
|
899
984
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
900
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
901
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
985
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["additionalInformationForBusinessFinancing"]) }),
|
|
986
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["toProcessYourFundsWeNeedMoreInformation"], { ns: "efp" }) }),
|
|
902
987
|
/* @__PURE__ */ jsx(
|
|
903
988
|
ErrorPanel,
|
|
904
989
|
{
|
|
@@ -914,27 +999,18 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
914
999
|
...businessInformationProps,
|
|
915
1000
|
handleFieldChange: handleChange,
|
|
916
1001
|
country,
|
|
917
|
-
targetPage:
|
|
1002
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
918
1003
|
sectionHeading: "yourBusinessInformation",
|
|
919
1004
|
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
920
1005
|
}
|
|
921
1006
|
),
|
|
922
|
-
/* @__PURE__ */ jsx(
|
|
923
|
-
BusinessFinancingOwnershipStructure,
|
|
924
|
-
{
|
|
925
|
-
...ownershipStructureProps,
|
|
926
|
-
legalEntity,
|
|
927
|
-
handleFieldChange: handleChange,
|
|
928
|
-
data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
|
|
929
|
-
}
|
|
930
|
-
),
|
|
931
1007
|
isEeaCountry(country) && /* @__PURE__ */ jsx(
|
|
932
1008
|
BusinessFinancingFinancialInformation,
|
|
933
1009
|
{
|
|
934
1010
|
...financialInformationProps,
|
|
935
1011
|
handleFieldChange: handleChange,
|
|
936
1012
|
country,
|
|
937
|
-
targetPage:
|
|
1013
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
938
1014
|
data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
|
|
939
1015
|
}
|
|
940
1016
|
),
|
|
@@ -944,10 +1020,19 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
944
1020
|
...legalInformationProps,
|
|
945
1021
|
country,
|
|
946
1022
|
handleFieldChange: handleChange,
|
|
947
|
-
targetPage:
|
|
1023
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
948
1024
|
sectionHeading: "legalInformation",
|
|
949
1025
|
data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
|
|
950
1026
|
}
|
|
1027
|
+
),
|
|
1028
|
+
/* @__PURE__ */ jsx(
|
|
1029
|
+
BusinessFinancingOwnershipStructure,
|
|
1030
|
+
{
|
|
1031
|
+
...ownershipStructureProps,
|
|
1032
|
+
legalEntity,
|
|
1033
|
+
handleFieldChange: handleChange,
|
|
1034
|
+
data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
|
|
1035
|
+
}
|
|
951
1036
|
)
|
|
952
1037
|
] });
|
|
953
1038
|
}
|
|
@@ -956,13 +1041,13 @@ const basicInformationFields = [
|
|
|
956
1041
|
];
|
|
957
1042
|
function BusinessFinancingBasicCompanyInformation(props) {
|
|
958
1043
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
959
|
-
const {
|
|
960
|
-
const formUtils = createFormUtils(props,
|
|
1044
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1045
|
+
const formUtils = createFormUtils(props, t);
|
|
961
1046
|
if (!handleFieldChange) {
|
|
962
1047
|
return;
|
|
963
1048
|
}
|
|
964
1049
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
965
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
1050
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["basicCompanyInformation"]) }),
|
|
966
1051
|
/* @__PURE__ */ jsx(
|
|
967
1052
|
Field,
|
|
968
1053
|
{
|
|
@@ -970,7 +1055,8 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
970
1055
|
label: formUtils.getLabel("legalName", "legalName"),
|
|
971
1056
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
972
1057
|
isValid: valid?.legalName,
|
|
973
|
-
helper:
|
|
1058
|
+
helper: t(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"], { ns: "efp" }),
|
|
1059
|
+
helperPosition: "below",
|
|
974
1060
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
975
1061
|
InputText,
|
|
976
1062
|
{
|
|
@@ -991,7 +1077,8 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
991
1077
|
const OPTIONAL_ADDRESS_FIELDS = ["otherAddressInformation"];
|
|
992
1078
|
const registeredAddressFields = [
|
|
993
1079
|
"isThisAddressTheMainHeadquarters",
|
|
994
|
-
"registrationAddress"
|
|
1080
|
+
"registrationAddress",
|
|
1081
|
+
"sameAddressAsRootEntity"
|
|
995
1082
|
];
|
|
996
1083
|
function BusinessFinancingRegisteredAddress(props) {
|
|
997
1084
|
const {
|
|
@@ -1006,9 +1093,10 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1006
1093
|
legalEntity,
|
|
1007
1094
|
sectionHeading
|
|
1008
1095
|
} = props;
|
|
1009
|
-
const { i18n } =
|
|
1010
|
-
const formUtils = createFormUtils(props, i18n);
|
|
1096
|
+
const { t, i18n } = useTranslation(["efp", "common"]);
|
|
1097
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
1011
1098
|
const addressCountry = data?.registrationAddress?.country;
|
|
1099
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1012
1100
|
const addressSchema = useMemo(() => {
|
|
1013
1101
|
return getAddressSchemaForCountry(addressCountry).filter((field) => {
|
|
1014
1102
|
if (addressCountry) {
|
|
@@ -1027,17 +1115,61 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1027
1115
|
handleFieldChange("registrationAddress")(state.data);
|
|
1028
1116
|
};
|
|
1029
1117
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1030
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.
|
|
1031
|
-
/* @__PURE__ */ jsx(
|
|
1118
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(i18n.t, sectionHeading) : t(($) => $["registeredAddress"], { ns: "common" }) }),
|
|
1119
|
+
/* @__PURE__ */ jsx(
|
|
1120
|
+
Field,
|
|
1121
|
+
{
|
|
1122
|
+
name: "sameAddressAsRootEntity",
|
|
1123
|
+
errorMessage: errors?.sameAddressAsRootEntity?.errorMessage,
|
|
1124
|
+
isValid: valid?.sameAddressAsRootEntity,
|
|
1125
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1126
|
+
Checkbox,
|
|
1127
|
+
{
|
|
1128
|
+
...childProps,
|
|
1129
|
+
"aria-required": formUtils.isRequiredField("sameAddressAsRootEntity"),
|
|
1130
|
+
"aria-invalid": !valid?.sameAddressAsRootEntity,
|
|
1131
|
+
name: "sameAddressAsRootEntity",
|
|
1132
|
+
label: t(($) => $["sameAddressAsRootEntity"], {
|
|
1133
|
+
rootLegalEntityName: legalEntity?.organization?.legalName ?? ""
|
|
1134
|
+
}),
|
|
1135
|
+
checked: data?.sameAddressAsRootEntity ?? false,
|
|
1136
|
+
onChange: handleFieldChange("sameAddressAsRootEntity")
|
|
1137
|
+
}
|
|
1138
|
+
)
|
|
1139
|
+
}
|
|
1140
|
+
),
|
|
1141
|
+
data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-high-exposure-structured-address", children: [
|
|
1142
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
|
|
1143
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
|
|
1144
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1145
|
+
legalEntity.organization.registeredAddress.city,
|
|
1146
|
+
" ",
|
|
1147
|
+
legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
|
|
1148
|
+
] }),
|
|
1149
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
|
|
1150
|
+
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
|
|
1151
|
+
] }) : /* @__PURE__ */ jsx(
|
|
1152
|
+
Address,
|
|
1153
|
+
{
|
|
1154
|
+
id: formId,
|
|
1155
|
+
addressType: "registrationAddress",
|
|
1156
|
+
data: { ...defaultData?.registrationAddress, country: addressCountry },
|
|
1157
|
+
labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
|
|
1158
|
+
countryCode: addressCountry,
|
|
1159
|
+
requiredFields: addressSchema,
|
|
1160
|
+
optionalFields: OPTIONAL_ADDRESS_FIELDS,
|
|
1161
|
+
onChange: handleRegistrationAddressChange,
|
|
1162
|
+
shouldValidate
|
|
1163
|
+
}
|
|
1164
|
+
),
|
|
1032
1165
|
/* @__PURE__ */ jsx(
|
|
1033
1166
|
Field,
|
|
1034
1167
|
{
|
|
1035
1168
|
el: "fieldset",
|
|
1036
1169
|
name: "isThisAddressTheMainHeadquarters",
|
|
1037
1170
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
1038
|
-
label:
|
|
1039
|
-
|
|
1040
|
-
}),
|
|
1171
|
+
label: t(($) => $["areTheMainHeadquartersAtThisAddress"]),
|
|
1172
|
+
helper: t(($) => $["addressRegisteredWithGovernment"]),
|
|
1041
1173
|
errorMessage: formUtils.getErrorMessage(
|
|
1042
1174
|
"isThisAddressTheMainHeadquarters",
|
|
1043
1175
|
errors,
|
|
@@ -1057,40 +1189,35 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1057
1189
|
}
|
|
1058
1190
|
)
|
|
1059
1191
|
}
|
|
1060
|
-
),
|
|
1061
|
-
/* @__PURE__ */ jsx(
|
|
1062
|
-
Address,
|
|
1063
|
-
{
|
|
1064
|
-
id: formId,
|
|
1065
|
-
addressType: "registrationAddress",
|
|
1066
|
-
data: { ...defaultData?.registrationAddress, country: addressCountry },
|
|
1067
|
-
labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
|
|
1068
|
-
countryCode: addressCountry,
|
|
1069
|
-
requiredFields: addressSchema,
|
|
1070
|
-
optionalFields: OPTIONAL_ADDRESS_FIELDS,
|
|
1071
|
-
onChange: handleRegistrationAddressChange,
|
|
1072
|
-
shouldValidate
|
|
1073
|
-
}
|
|
1074
1192
|
)
|
|
1075
1193
|
] });
|
|
1076
1194
|
}
|
|
1077
1195
|
const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
|
|
1078
1196
|
function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
1079
|
-
const {
|
|
1197
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1080
1198
|
const {
|
|
1081
|
-
form: { handleChangeFor, data }
|
|
1199
|
+
form: { handleChangeFor, data, setValid }
|
|
1082
1200
|
} = useFormContext();
|
|
1083
|
-
const { country, formVerificationErrors, fieldValidationErrors } = props;
|
|
1084
|
-
const formUtils = createFormUtils(props,
|
|
1201
|
+
const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
|
|
1202
|
+
const formUtils = createFormUtils(props, t);
|
|
1085
1203
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
|
|
1204
|
+
setValid("sameAddressAsRootEntity", true, "parentCompany");
|
|
1086
1205
|
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1087
1206
|
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1088
1207
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1089
1208
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1090
1209
|
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1210
|
+
const addressCountry = getAddressCountryForParentCompany(
|
|
1211
|
+
data?.parentCompany,
|
|
1212
|
+
legalEntity?.organization?.registeredAddress
|
|
1213
|
+
);
|
|
1214
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1215
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1216
|
+
setValid("currency", true, "parentCompany");
|
|
1217
|
+
}
|
|
1091
1218
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1092
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
1093
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
1219
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["parentCompanyInformation"]) }),
|
|
1220
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["inThePreviousStepOwnedByAParentCompany"], { ns: "efp" }) }),
|
|
1094
1221
|
/* @__PURE__ */ jsx(
|
|
1095
1222
|
ErrorPanel,
|
|
1096
1223
|
{
|
|
@@ -1104,7 +1231,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1104
1231
|
BusinessFinancingBasicCompanyInformation,
|
|
1105
1232
|
{
|
|
1106
1233
|
...basicCompanyInformationProps,
|
|
1107
|
-
sectionHeading: "
|
|
1234
|
+
sectionHeading: "parentCompanyInformation",
|
|
1108
1235
|
handleFieldChange: handleChange,
|
|
1109
1236
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
|
|
1110
1237
|
}
|
|
@@ -1114,8 +1241,9 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1114
1241
|
{
|
|
1115
1242
|
...registeredAddressProps,
|
|
1116
1243
|
formId: parentCompanyFormId$1,
|
|
1117
|
-
sectionHeading: "
|
|
1244
|
+
sectionHeading: "parentCompanyAddress",
|
|
1118
1245
|
defaultData: data?.parentCompany,
|
|
1246
|
+
legalEntity,
|
|
1119
1247
|
handleFieldChange: handleChange,
|
|
1120
1248
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
|
|
1121
1249
|
}
|
|
@@ -1124,19 +1252,19 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1124
1252
|
BusinessFinancingBusinessInformation,
|
|
1125
1253
|
{
|
|
1126
1254
|
...businessInformationProps,
|
|
1127
|
-
|
|
1128
|
-
country:
|
|
1129
|
-
targetPage:
|
|
1255
|
+
hideSectionHeading: true,
|
|
1256
|
+
country: addressCountry ?? country,
|
|
1257
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1130
1258
|
handleFieldChange: handleChange,
|
|
1131
1259
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
|
|
1132
1260
|
}
|
|
1133
1261
|
),
|
|
1134
|
-
isEeaCountry(
|
|
1262
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1135
1263
|
BusinessFinancingFinancialInformation,
|
|
1136
1264
|
{
|
|
1137
1265
|
...financialInformationProps,
|
|
1138
|
-
country:
|
|
1139
|
-
targetPage:
|
|
1266
|
+
country: addressCountry ?? country,
|
|
1267
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1140
1268
|
handleFieldChange: handleChange,
|
|
1141
1269
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
|
|
1142
1270
|
}
|
|
@@ -1145,8 +1273,8 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1145
1273
|
BusinessFinancingLegalInformation,
|
|
1146
1274
|
{
|
|
1147
1275
|
...legalInformationProps,
|
|
1148
|
-
country:
|
|
1149
|
-
targetPage:
|
|
1276
|
+
country: addressCountry ?? country,
|
|
1277
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1150
1278
|
sectionHeading: "legalInformation",
|
|
1151
1279
|
handleFieldChange: handleChange,
|
|
1152
1280
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
|
|
@@ -1156,21 +1284,30 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1156
1284
|
}
|
|
1157
1285
|
const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
|
|
1158
1286
|
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1159
|
-
const { formVerificationErrors, country, fieldValidationErrors } = props;
|
|
1160
|
-
const {
|
|
1161
|
-
const formUtils = createFormUtils(props,
|
|
1287
|
+
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
1288
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1289
|
+
const formUtils = createFormUtils(props, t);
|
|
1162
1290
|
const {
|
|
1163
|
-
form: { handleChangeFor, data }
|
|
1291
|
+
form: { handleChangeFor, data, setValid }
|
|
1164
1292
|
} = useFormContext();
|
|
1165
1293
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "ultimateParentCompany", mode);
|
|
1294
|
+
setValid("sameAddressAsRootEntity", true, "ultimateParentCompany");
|
|
1166
1295
|
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1167
1296
|
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1168
1297
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1169
1298
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1170
1299
|
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1300
|
+
const addressCountry = getAddressCountryForParentCompany(
|
|
1301
|
+
data?.ultimateParentCompany,
|
|
1302
|
+
legalEntity?.organization?.registeredAddress
|
|
1303
|
+
);
|
|
1304
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1305
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1306
|
+
setValid("currency", true, "ultimateParentCompany");
|
|
1307
|
+
}
|
|
1171
1308
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1172
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
1173
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
1309
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["ultimateParentCompanyInformation"]) }),
|
|
1310
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"], { ns: "efp" }) }),
|
|
1174
1311
|
/* @__PURE__ */ jsx(
|
|
1175
1312
|
ErrorPanel,
|
|
1176
1313
|
{
|
|
@@ -1184,7 +1321,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1184
1321
|
BusinessFinancingBasicCompanyInformation,
|
|
1185
1322
|
{
|
|
1186
1323
|
...basicCompanyInformationProps,
|
|
1187
|
-
sectionHeading: "
|
|
1324
|
+
sectionHeading: "ultimateParentCompanyInformation",
|
|
1188
1325
|
handleFieldChange: handleChange,
|
|
1189
1326
|
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
|
|
1190
1327
|
}
|
|
@@ -1194,29 +1331,30 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1194
1331
|
{
|
|
1195
1332
|
...registeredAddressProps,
|
|
1196
1333
|
formId: ultimateParentCompanyFormId$1,
|
|
1197
|
-
sectionHeading: "
|
|
1334
|
+
sectionHeading: "ultimateParentCompanyAddress",
|
|
1198
1335
|
defaultData: data?.ultimateParentCompany,
|
|
1199
1336
|
handleFieldChange: handleChange,
|
|
1200
|
-
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields)
|
|
1337
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
|
|
1338
|
+
legalEntity
|
|
1201
1339
|
}
|
|
1202
1340
|
),
|
|
1203
1341
|
/* @__PURE__ */ jsx(
|
|
1204
1342
|
BusinessFinancingBusinessInformation,
|
|
1205
1343
|
{
|
|
1206
1344
|
...businessInformationProps,
|
|
1207
|
-
|
|
1208
|
-
country:
|
|
1209
|
-
targetPage:
|
|
1345
|
+
hideSectionHeading: true,
|
|
1346
|
+
country: addressCountry ?? country,
|
|
1347
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1210
1348
|
handleFieldChange: handleChange,
|
|
1211
1349
|
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
|
|
1212
1350
|
}
|
|
1213
1351
|
),
|
|
1214
|
-
isEeaCountry(
|
|
1352
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1215
1353
|
BusinessFinancingFinancialInformation,
|
|
1216
1354
|
{
|
|
1217
1355
|
...financialInformationProps,
|
|
1218
|
-
country:
|
|
1219
|
-
targetPage:
|
|
1356
|
+
country: addressCountry ?? country,
|
|
1357
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1220
1358
|
handleFieldChange: handleChange,
|
|
1221
1359
|
data: formUtils.getFieldData(
|
|
1222
1360
|
data?.ultimateParentCompany ?? {},
|
|
@@ -1228,9 +1366,9 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1228
1366
|
BusinessFinancingLegalInformation,
|
|
1229
1367
|
{
|
|
1230
1368
|
...legalInformationProps,
|
|
1231
|
-
country:
|
|
1369
|
+
country: addressCountry ?? country,
|
|
1232
1370
|
sectionHeading: "legalInformation",
|
|
1233
|
-
targetPage:
|
|
1371
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1234
1372
|
handleFieldChange: handleChange,
|
|
1235
1373
|
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
|
|
1236
1374
|
}
|
|
@@ -1336,17 +1474,17 @@ function BusinessFinancingDropin(props) {
|
|
|
1336
1474
|
return;
|
|
1337
1475
|
}
|
|
1338
1476
|
const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1339
|
-
|
|
1477
|
+
BusinessFinancingIndices.COMPANY,
|
|
1340
1478
|
umfData,
|
|
1341
1479
|
rootLegalEntity
|
|
1342
1480
|
);
|
|
1343
1481
|
const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1344
|
-
|
|
1482
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1345
1483
|
umfData,
|
|
1346
1484
|
rootLegalEntity
|
|
1347
1485
|
);
|
|
1348
1486
|
const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1349
|
-
|
|
1487
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1350
1488
|
umfData,
|
|
1351
1489
|
rootLegalEntity
|
|
1352
1490
|
);
|
|
@@ -1360,7 +1498,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1360
1498
|
const promises = [];
|
|
1361
1499
|
if (parentCompanyBusinessFinancingDetails) {
|
|
1362
1500
|
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1363
|
-
|
|
1501
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1364
1502
|
parentCompanyBusinessFinancingDetails,
|
|
1365
1503
|
createLegalEntity,
|
|
1366
1504
|
updateLegalEntity,
|
|
@@ -1370,7 +1508,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1370
1508
|
}
|
|
1371
1509
|
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1372
1510
|
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1373
|
-
|
|
1511
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1374
1512
|
ultimateParentCompanyBusinessFinancingDetails,
|
|
1375
1513
|
createLegalEntity,
|
|
1376
1514
|
updateLegalEntity,
|
|
@@ -1385,30 +1523,30 @@ function BusinessFinancingDropin(props) {
|
|
|
1385
1523
|
const businessFinancingEntityAssociations = [
|
|
1386
1524
|
...previousEntityAssociations
|
|
1387
1525
|
];
|
|
1388
|
-
const entitiesToTrack = [
|
|
1526
|
+
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1389
1527
|
results.forEach((result, index) => {
|
|
1390
|
-
const businessFinancingType = index === 0 ?
|
|
1528
|
+
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1391
1529
|
if (result.status === "fulfilled") {
|
|
1392
1530
|
const response = result.value;
|
|
1393
|
-
if (businessFinancingType ===
|
|
1531
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1394
1532
|
businessFinancingEntityAssociations.push({
|
|
1395
1533
|
type: "immediateParentCompany",
|
|
1396
1534
|
legalEntityId: response.id,
|
|
1397
1535
|
associatorId: companyBusinessFinancingDetails.id
|
|
1398
1536
|
});
|
|
1399
|
-
entitiesToTrack.push(
|
|
1400
|
-
} else if (businessFinancingType ===
|
|
1537
|
+
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1538
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1401
1539
|
businessFinancingEntityAssociations.push({
|
|
1402
1540
|
type: "ultimateParentCompany",
|
|
1403
1541
|
legalEntityId: response.id,
|
|
1404
1542
|
associatorId: companyBusinessFinancingDetails.id
|
|
1405
1543
|
});
|
|
1406
|
-
entitiesToTrack.push(
|
|
1544
|
+
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1407
1545
|
}
|
|
1408
1546
|
} else {
|
|
1409
|
-
if (businessFinancingType ===
|
|
1547
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1410
1548
|
parentCompanyFailed = true;
|
|
1411
|
-
} else if (businessFinancingType ===
|
|
1549
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1412
1550
|
ultimateParentCompanyFailed = true;
|
|
1413
1551
|
}
|
|
1414
1552
|
handleSubmissionError(result.reason, businessFinancingType);
|
|
@@ -1428,7 +1566,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1428
1566
|
};
|
|
1429
1567
|
try {
|
|
1430
1568
|
await handleBusinessFinancingFormSubmission(
|
|
1431
|
-
|
|
1569
|
+
BusinessFinancingIndices.COMPANY,
|
|
1432
1570
|
companyBusinessFinancingDetails,
|
|
1433
1571
|
createLegalEntity,
|
|
1434
1572
|
updateLegalEntity,
|
|
@@ -1447,13 +1585,13 @@ function BusinessFinancingDropin(props) {
|
|
|
1447
1585
|
}
|
|
1448
1586
|
} catch (e) {
|
|
1449
1587
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1450
|
-
handleSubmissionError(e,
|
|
1588
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1451
1589
|
}
|
|
1452
1590
|
setProblems({});
|
|
1453
1591
|
}
|
|
1454
1592
|
} catch (e) {
|
|
1455
1593
|
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1456
|
-
handleSubmissionError(e,
|
|
1594
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1457
1595
|
}
|
|
1458
1596
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1459
1597
|
} finally {
|
|
@@ -1487,7 +1625,13 @@ function BusinessFinancingDropin(props) {
|
|
|
1487
1625
|
const associatedLeTrackingParams = getAssociatedLeAnalyticsPayload({
|
|
1488
1626
|
associatedLegalEntity: rootLegalEntity
|
|
1489
1627
|
});
|
|
1490
|
-
const omittedSummaryKeys = [
|
|
1628
|
+
const omittedSummaryKeys = [
|
|
1629
|
+
"naceCodeLabel",
|
|
1630
|
+
"legalFormLabel",
|
|
1631
|
+
"currency",
|
|
1632
|
+
"doesYourCompanyHaveLEI",
|
|
1633
|
+
"sameAddressAsRootEntity"
|
|
1634
|
+
];
|
|
1491
1635
|
const [requiredFields, setRequiredFields] = useState(void 0);
|
|
1492
1636
|
const form = useMultiForm({
|
|
1493
1637
|
requiredFields,
|
|
@@ -1582,7 +1726,8 @@ function BusinessFinancingDropin(props) {
|
|
|
1582
1726
|
id: companyFormId,
|
|
1583
1727
|
country,
|
|
1584
1728
|
shouldValidate,
|
|
1585
|
-
errors: errors?.parentCompany
|
|
1729
|
+
errors: errors?.parentCompany,
|
|
1730
|
+
legalEntity: rootLegalEntity
|
|
1586
1731
|
}
|
|
1587
1732
|
),
|
|
1588
1733
|
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
@@ -1593,7 +1738,8 @@ function BusinessFinancingDropin(props) {
|
|
|
1593
1738
|
id: companyFormId,
|
|
1594
1739
|
country,
|
|
1595
1740
|
shouldValidate,
|
|
1596
|
-
errors: errors?.ultimateParentCompany
|
|
1741
|
+
errors: errors?.ultimateParentCompany,
|
|
1742
|
+
legalEntity: rootLegalEntity
|
|
1597
1743
|
}
|
|
1598
1744
|
)
|
|
1599
1745
|
] });
|
|
@@ -1601,7 +1747,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1601
1747
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
1602
1748
|
}
|
|
1603
1749
|
return showEndState ? /* @__PURE__ */ jsxs(FormEndState, { variant: "success", children: [
|
|
1604
|
-
/* @__PURE__ */ jsx("template", { slot: "title", children: i18n.get("
|
|
1750
|
+
/* @__PURE__ */ jsx("template", { slot: "title", children: i18n.get("submissionReceived") }),
|
|
1605
1751
|
/* @__PURE__ */ jsx("template", { slot: "icon", children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) }),
|
|
1606
1752
|
/* @__PURE__ */ jsx("template", { slot: "actions", children: externalOnSubmit && !showBusinessFinancingFirst && /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit?.({ ...umfData }), children: externalOnSubmitLabel || i18n.get("finish") }) }),
|
|
1607
1753
|
/* @__PURE__ */ jsx("div", { children: i18n.get("yourLoanApplicationHasBeenReceived") })
|
|
@@ -1609,7 +1755,12 @@ function BusinessFinancingDropin(props) {
|
|
|
1609
1755
|
FormFlow,
|
|
1610
1756
|
{
|
|
1611
1757
|
summary: {
|
|
1612
|
-
data: formatDataForSummary(
|
|
1758
|
+
data: formatDataForSummary(
|
|
1759
|
+
i18n,
|
|
1760
|
+
datasetUtils,
|
|
1761
|
+
umfData,
|
|
1762
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
1763
|
+
),
|
|
1613
1764
|
omitted: {
|
|
1614
1765
|
keys: omittedSummaryKeys
|
|
1615
1766
|
},
|