@adyen/kyc-components 4.0.0-beta.1 → 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-BQ4Yct7L.js → AcceptTermsOfServiceComponent-ilX6szf9.js} +85 -82
- package/dist/{AccountSetupRejected-UVhxMcAe.js → AccountSetupRejected-CQjHA557.js} +6 -6
- package/dist/{Avatar-NEiNEcRx.js → Avatar-BfRRf9_a.js} +2 -2
- package/dist/{BusinessDetailsDropin-l0xfPekL.js → BusinessDetailsDropin-Dr580mIQ.js} +429 -405
- package/dist/{BusinessFinancingComponent-Bs-poF2d.js → BusinessFinancingComponent-CEIG-4wN.js} +3 -3
- package/dist/{BusinessFinancingDropin-DoRzdS4n.js → BusinessFinancingDropin-sC3QpkDx.js} +537 -489
- package/dist/{BusinessFinancingPage-DSlmJmOK.js → BusinessFinancingPage-BIEuNfKE.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Bmi_8K2g.js → BusinessTypeSelectionPage-6sF2ce3o.js} +111 -145
- package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
- package/dist/{ContractViewer-R4-gfVmp.js → ContractViewer-BOxsPeO1.js} +306 -297
- package/dist/{CreateIndividualComponent-D3aXuYRk.js → CreateIndividualComponent-t9eDVjpb.js} +8 -8
- package/dist/{CreateTransferInstrumentComponent-C-ncZ-A8.js → CreateTransferInstrumentComponent-D65FAcQz.js} +7 -7
- package/dist/{CustomerSupport-CMFRgQNa.js → CustomerSupport-CoLWcgoS.js} +27 -32
- package/dist/{DebugModal-BEmhG3UP.js → DebugModal-DkICAsiu.js} +33 -239
- package/dist/{DecisionMakerDetailsPage-DI2Ubmef.js → DecisionMakerDetailsPage-CvmwdHqV.js} +4 -4
- package/dist/DecisionMakers-DthVv8_t.js +478 -0
- package/dist/{EmbeddedStatus-BsZsXbKc.js → EmbeddedStatus-DdGnEZzS.js} +16 -16
- package/dist/FormEndState-CUYkLBgX.js +59 -0
- package/dist/{FormFlow-Bt-mu4Wm.js → FormFlow-CNXkXUwa.js} +19 -20
- package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
- package/dist/{IndividualOnfidoDropin-DGMCOm9M.js → IndividualOnfidoDropin-DV2fJG5W.js} +919 -895
- package/dist/{Introduction-DJ6qIUPC.js → Introduction-B1WXHc-7.js} +53 -57
- package/dist/{ProviderButton-DAsW5EVa.js → LandingLayout-BC3pp_IY.js} +93 -86
- package/dist/{LegalRepresentativeDetailsPage-CyHwQR_W.js → LegalRepresentativeDetailsPage-9xm-XCto.js} +4 -4
- package/dist/{ManageIndividualComponent-BIMCvcr2.js → ManageIndividualComponent-zCo6mUQx.js} +9 -13
- package/dist/{ManageTermsOfServiceComponent-CsM23jq3.js → ManageTermsOfServiceComponent-DpQXgPYk.js} +7 -8
- package/dist/{ManageTransferInstrumentComponent-Vut9_bRn.js → ManageTransferInstrumentComponent-BKERoin1.js} +23 -31
- package/dist/{OnboardingDropinComponent-BW6er2HU.js → OnboardingDropinComponent-DYdts9Sh.js} +521 -398
- package/dist/{Review-DWDbL9-9.js → Review-jBq7cFVv.js} +11 -11
- package/dist/RootBusinessDetailsPage-BfO0Xb7n.js +1848 -0
- package/dist/{RootIndividualDetailsPage-DCxJ3ycQ.js → RootIndividualDetailsPage-DzmHoceW.js} +4 -4
- package/dist/{SignPCIComponent-kHaxhkWa.js → SignPCIComponent-By4PazmA.js} +32 -38
- package/dist/{SingpassSelection-Dmlbiq4Z.js → SingpassSelection-BeUj9Kdy.js} +12 -15
- package/dist/{SoleProprietorshipPage-Bdhs90-q.js → SoleProprietorshipPage-CZPeKEEl.js} +4 -4
- package/dist/{SourceOfFundsPage-Bj22DAFv.js → SourceOfFundsPage-CI1qdFId.js} +508 -488
- package/dist/{StoreProvider-BmzY19Td.js → StoreProvider-O9jwxfG8.js} +20832 -21372
- package/dist/{TaskItemStatus-CB6FEOnk.js → TaskItemStatus-s7Z3DOGa.js} +24 -24
- package/dist/TaskStatusIndicator-BanufME0.js +69 -0
- package/dist/{TaxReportingDropin-jofokkei.js → TaxReportingDropin-BQqDUn9I.js} +82 -101
- package/dist/{TileGroup-i5Jc08ns.js → TileGroup-tu04B8GK.js} +6 -8
- package/dist/{TrustDetailsPage-B6HmvYUf.js → TrustDetailsPage-BQKZ_ZyU.js} +91 -80
- package/dist/{TrustMemberCompanyPage-D3VJOq6a.js → TrustMemberCompanyPage-C9aFr4Bm.js} +5 -5
- package/dist/{TrustMemberIndividualPage-1aeOYsnG.js → TrustMemberIndividualPage-Ci7hwMA_.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js → UnincorporatedPartnershipIndividualPage-XQsgF3ou.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js → UnincorporatedPartnershipMemberCompanyPage-DFe_N3gH.js} +4 -4
- package/dist/{VerificationErrorAlert-DhtKOmjt.js → VerificationErrorAlert-Ci0cObw1.js} +20 -9
- package/dist/{ViewVerificationStatusComponent-DtKLcCGI.js → ViewVerificationStatusComponent-_qQmZFDY.js} +22 -21
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +144 -118
- 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 +14 -6
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- 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-BY3Wa361.js +54 -0
- package/dist/bg-BG-BiYtb1Tz.js +55 -0
- package/dist/bg-BG-BvSUDgGF.js +13 -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-B39yQnOr.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-BEFeaKsV.js +54 -0
- 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/cs-CZ-y4mvq4Lv.js +13 -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-D6UK8XT9.js +54 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/da-DK-qgQOVjDp.js +13 -0
- package/dist/de-DE-B3nctkG8.js +13 -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-DUl6gRKv.js +54 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/de-DE-pSdsxBpQ.js +13 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-Bvjk5Sw8.js +13 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-CXmTklMq.js +55 -0
- package/dist/el-GR-CdgLZhuO.js +13 -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-Bq2Twy6x.js +54 -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-DSoLr6rp.js +13 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BM4U0hT3.js +28 -0
- package/dist/es-ES-BRfK6tX7.js +13 -0
- package/dist/es-ES-BhQOdKge.js +55 -0
- package/dist/es-ES-Cavm0szq.js +54 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-Dy1uR2H_.js +13 -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-DUWZ2Vqm.js +54 -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/et-EE-d9V24rcf.js +13 -0
- package/dist/fi-FI-B0fnAFV2.js +13 -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-DVa-ccaW.js +54 -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-BoKzVp2q.js +13 -0
- package/dist/fr-FR-CY9emHgF.js +54 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-Dk6Lw2On.js +13 -0
- package/dist/fr-FR-g7lmxEsI.js +28 -0
- package/dist/fr-FR-l36qBV3a.js +55 -0
- package/dist/{getFieldsWithExistingData-BW8_TEQl.js → getFieldsWithExistingData-7pZnHro-.js} +3 -4
- package/dist/{hasDataChanged-Mu0HyZ3E.js → hasDataChanged-v0hD-nEq.js} +4 -4
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CDUE36Dg.js +28 -0
- package/dist/hr-HR-CF0AHQzi.js +13 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CnP5sqih.js +54 -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-BTlpbCpc.js +54 -0
- package/dist/hu-HU-Bmf13NMf.js +28 -0
- package/dist/hu-HU-BznXPoc2.js +55 -0
- package/dist/hu-HU-CSPhOvLC.js +13 -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-BH-eqIKH.js +13 -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-D7G4BaP7.js +13 -0
- package/dist/it-IT-DYIx7myn.js +28 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/it-IT-GgHc0cHR.js +54 -0
- package/dist/ja-JP-B3yqM_FM.js +13 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-BhS-_dIx.js +54 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-D7oL6xGY.js +55 -0
- package/dist/ja-JP-DTW_hY1L.js +13 -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-QtCjf8Fg.js → localizeDateString-BlZ_CtJI.js} +6 -6
- 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-DTQGR9M0.js +54 -0
- package/dist/lt-LT-De7dLXxI.js +55 -0
- package/dist/lt-LT-Lzl_Cbw-.js +13 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -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/lv-LV-y00wN1pj.js +13 -0
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-C-2jp0wg.js → mapFinancialReportsToFinancialInformation-DrS0xN6i.js} +19 -12
- package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-CFzm75Jw.js +13 -0
- package/dist/nl-NL-CUcML482.js +54 -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-DmnFXAQC.js +13 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/nl-NL-lZcJhRsP.js +55 -0
- package/dist/no-NO-BBCvsecq.js +54 -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/no-NO-DbvFfP96.js +13 -0
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/pl-PL--mmxopYA.js +13 -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/pl-PL-kGaeUP-w.js +54 -0
- package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
- package/dist/pt-PT-BVzXBFp7.js +13 -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-DpDxAynk.js +13 -0
- package/dist/pt-PT-JVqqgvPs.js +54 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-Dx0BPNMa.js → resolveEnvironment-DvSgDDo8.js} +3 -3
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-CUg8-CQ8.js +55 -0
- package/dist/ro-RO-Cdmevo9A.js +13 -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/ru-RU-FZb2upqh.js +13 -0
- package/dist/{rules-CUANHpja.js → rules-Meybz2dk.js} +45 -72
- 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-CgLJIuJw.js +54 -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/sk-SK-nfeuTcY5.js +13 -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-BzeVaC1Z.js +54 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-DUTZDqkP.js +13 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +1018 -1144
- package/dist/styles-CLV89_hH.js +1018 -1144
- package/dist/sv-SE-BTx2XKAp.js +13 -0
- package/dist/sv-SE-BryiIPVv.js +55 -0
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-CVmo11gI.js +54 -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/sv-SE-rckxD-43.js +13 -0
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +18 -1
- package/dist/types/api/configurations/useScenarios.d.ts +6 -6
- 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 +26 -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/mapping/payoutKeyMappings.d.ts +0 -306
- 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/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +4 -3
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +15 -3
- 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 +27 -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/businessDetailsFormConfig.d.ts +1 -2
- 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/BusinessDetailsDropin/utils.d.ts +0 -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/fields/LegalFormField/types.d.ts +4 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +36 -336
- 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 +5 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
- 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/fields/NameFields/NameFields.d.ts +0 -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.d.ts +1 -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 +7 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
- 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/mapping/adjustOnfidoIdentificationData.d.ts +3 -0
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
- 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/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -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/FormNavigation/FormNavigationItem.d.ts +1 -2
- 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 +8 -7
- 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/Summary/Summary.d.ts +0 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.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 +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- 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 +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +8 -6
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- 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/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +4 -1
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
- 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 +4 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +9 -12
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +4 -4
- package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +18 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +11 -0
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
- 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/Card/Card.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -4
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +3 -3
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +4 -4
- package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
- package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +52 -36
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
- package/dist/types/core/UIElement/UIElement.d.ts +1 -0
- 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/financialReport.d.ts +2 -2
- 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-arrangement.d.ts +10 -2
- 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/organization.d.ts +8 -0
- 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/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- 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/useForm/types.d.ts +0 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +31 -0
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/Language.d.ts +1 -7
- package/dist/types/language/i18n.d.ts +2 -0
- package/dist/types/language/types.d.ts +5 -0
- package/dist/types/language/utils.d.ts +11 -2
- 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/country-code.d.ts +249 -249
- 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 +4 -5
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
- package/dist/types/utils/regex/patternValidators.d.ts +3 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/types/utils/urlUtils.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{useMultiForm-Bwx2nVhh.js → useMultiForm-BQmE_nfY.js} +158 -135
- package/dist/{useOnboardingStatus-Cwba-HzS.js → useOnboardingStatus-DJdV6bAG.js} +2 -2
- package/dist/{useTermsOfServiceStatus-C-i9mF4m.js → useTermsOfServiceStatus-BX4GiDbz.js} +2 -2
- package/dist/{useUpdateLegalEntity-xQlAqIqy.js → useUpdateLegalEntity-BfnvHQJj.js} +2 -2
- package/dist/{utils-DXv7uAh6.js → utils-1zLleVnu.js} +30 -23
- package/dist/{validate-CuwYJGc9.js → validate-BweJRQFE.js} +9 -3
- package/dist/{validate-BN5p-GhK.js → validate-Cy6vBhF2.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/dist/zh-CN-wUb4MmTZ.js +13 -0
- package/dist/zh-TW-DNTXHLKa.js +13 -0
- package/package.json +28 -52
- package/dist/DecisionMakers-BKhtcs_K.js +0 -222
- package/dist/FormEndState-C3HCmXcw.js +0 -32
- package/dist/ManagePCIComponent-Blj60xLa.js +0 -33
- package/dist/RootBusinessDetailsPage-BTYIldSf.js +0 -42
- package/dist/SourceOfFunds.module-xwHIboir.js +0 -128
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -62
- 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-BE-ro1iH.js +0 -53
- package/dist/bg-BG-COTwZXwN.js +0 -2040
- package/dist/cs-CZ-DUlgJKVq.js +0 -2040
- package/dist/css-CQUoQdd2.js +0 -24
- package/dist/da-DK-BDzDHhVR.js +0 -2040
- package/dist/de-DE-B3TpRjZX.js +0 -994
- package/dist/de-DE-DJdgXqS_.js +0 -2040
- package/dist/el-GR-CFEuLvxK.js +0 -994
- package/dist/el-GR-D5i9BNyh.js +0 -2040
- package/dist/en-US-ghR-1_C2.js +0 -994
- package/dist/es-ES-BtWn2FOQ.js +0 -994
- package/dist/es-ES-VOSWszW5.js +0 -2040
- package/dist/et-EE-Bp4Ngsn4.js +0 -2040
- package/dist/fi-FI-DaujOE-a.js +0 -2040
- package/dist/fr-FR-BdPZxk11.js +0 -2040
- package/dist/fr-FR-HvIkGqJf.js +0 -994
- package/dist/hr-HR-BY7C7NxY.js +0 -2040
- package/dist/hu-HU-DHCty-Tc.js +0 -2040
- package/dist/it-IT-BMsuhZEQ.js +0 -2040
- package/dist/it-IT-CjbZahlB.js +0 -994
- package/dist/ja-JP-4jufT0xh.js +0 -994
- package/dist/ja-JP-BYDz1z2G.js +0 -2040
- package/dist/json-DWikzB4g.js +0 -31
- package/dist/lt-LT-DNJ9V9xV.js +0 -2040
- package/dist/lv-LV-CFJwN5wq.js +0 -2040
- package/dist/nl-NL-B3xjfpMi.js +0 -994
- package/dist/nl-NL-DibAf790.js +0 -2040
- package/dist/no-NO-DHCy5rXx.js +0 -2040
- package/dist/pl-PL-eZBNH5HH.js +0 -2040
- 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-BpYDD-PX.js +0 -994
- package/dist/pt-PT-CiN_Wmfe.js +0 -2040
- package/dist/ro-RO-CgyMTvLc.js +0 -2040
- package/dist/ru-RU-BlgIj-Q4.js +0 -994
- package/dist/sk-SK-B5qlQB_U.js +0 -2040
- package/dist/sl-SI-8PPfrGzL.js +0 -2040
- package/dist/sv-SE-7lcf_fB9.js +0 -994
- package/dist/sv-SE-ZWLw6D3j.js +0 -2040
- 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/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +0 -5
- 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 -15
- 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 -43
- 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/types/utils/sanitizeHtml.d.ts +0 -3
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
- package/dist/useSalesChannelsSettings-BLzegVJh.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 -30
- package/dist/yaml-jFdy-qnY.js +0 -22
- package/dist/zh-CN-xYZH718R.js +0 -994
- package/dist/zh-TW-DqBBNurv.js +0 -994
|
@@ -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
|
-
import { useRef, useEffect,
|
|
12
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
13
|
-
import {
|
|
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-
|
|
11
|
+
import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
|
|
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,51 +101,44 @@ 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
|
-
var _a;
|
|
128
130
|
if (!rootLegalEntity) return void 0;
|
|
129
|
-
if (businessFinancingIndex ===
|
|
130
|
-
if (!
|
|
131
|
-
const businessFinancingEntityType =
|
|
132
|
-
const businessFinancingEntityAssociation =
|
|
131
|
+
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
|
|
132
|
+
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
133
|
+
const businessFinancingEntityType = "immediateParentCompany";
|
|
134
|
+
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
133
135
|
(entity) => entity.type === businessFinancingEntityType
|
|
134
136
|
);
|
|
135
|
-
return businessFinancingEntityAssociation
|
|
137
|
+
return businessFinancingEntityAssociation?.legalEntityId;
|
|
136
138
|
};
|
|
137
139
|
const USER_LOCALE = typeof navigator !== "undefined" ? navigator.language : "en-US";
|
|
138
|
-
const entityHasParentCompany = (data) =>
|
|
139
|
-
|
|
140
|
-
return ((_a = data.company) == null ? void 0 : _a.isCompanyOwnedByAnotherCompany) && ((_b = data.company) == null ? void 0 : _b.isCompanyOwnedByAnotherCompany) === "Yes";
|
|
141
|
-
};
|
|
142
|
-
const entityHasUltimateParentCompany = (data) => {
|
|
143
|
-
var _a, _b;
|
|
144
|
-
return ((_a = data.company) == null ? void 0 : _a.isParentOwnedByAnotherCompany) && ((_b = data.company) == null ? void 0 : _b.isParentOwnedByAnotherCompany) === "Yes";
|
|
145
|
-
};
|
|
140
|
+
const entityHasParentCompany = (data) => data.company?.isCompanyOwnedByAnotherCompany && data.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
141
|
+
const entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnotherCompany && data.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
146
142
|
const financialReportsToString = (financialReports) => {
|
|
147
143
|
return {
|
|
148
144
|
...financialReports,
|
|
@@ -153,18 +149,17 @@ const financialReportsToString = (financialReports) => {
|
|
|
153
149
|
};
|
|
154
150
|
};
|
|
155
151
|
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
156
|
-
var _a, _b, _c;
|
|
157
152
|
const businessFinancingData = data[businessFinancingIndex];
|
|
158
153
|
if (!businessFinancingData) return null;
|
|
159
|
-
if (businessFinancingIndex ===
|
|
154
|
+
if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
160
155
|
return null;
|
|
161
156
|
}
|
|
162
|
-
if (businessFinancingIndex ===
|
|
157
|
+
if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
|
|
163
158
|
return null;
|
|
164
159
|
}
|
|
165
160
|
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
166
161
|
if (!businessFinancingDetails.organization) return null;
|
|
167
|
-
const businessFinancingCountry =
|
|
162
|
+
const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
|
|
168
163
|
if (businessFinancingData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
|
|
169
164
|
const finReports = {
|
|
170
165
|
currency: businessFinancingData.currency,
|
|
@@ -185,6 +180,11 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
185
180
|
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
186
181
|
businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
187
182
|
}
|
|
183
|
+
if (businessFinancingData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
|
|
184
|
+
businessFinancingDetails.organization.registeredAddress = {
|
|
185
|
+
...rootLegalEntity.organization.registeredAddress
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
188
|
if (businessFinancingData.isThisAddressTheMainHeadquarters) {
|
|
189
189
|
businessFinancingDetails.organization.principalPlaceOfBusiness = {
|
|
190
190
|
...businessFinancingDetails.organization.registeredAddress
|
|
@@ -199,7 +199,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
199
199
|
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
200
200
|
} else {
|
|
201
201
|
delete businessFinancingDetails.id;
|
|
202
|
-
businessFinancingDetails.type =
|
|
202
|
+
businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
|
|
203
203
|
}
|
|
204
204
|
return businessFinancingDetails;
|
|
205
205
|
};
|
|
@@ -257,15 +257,14 @@ const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
|
|
|
257
257
|
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
258
258
|
fieldsToRemove.push("legalEntityIdentifier");
|
|
259
259
|
}
|
|
260
|
-
if (!
|
|
260
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
261
261
|
fieldsToRemove.push("legalProceedingsDate");
|
|
262
262
|
}
|
|
263
263
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
264
264
|
};
|
|
265
265
|
const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
266
|
-
var _a;
|
|
267
266
|
const fieldsToRemove = [];
|
|
268
|
-
const companyCountry =
|
|
267
|
+
const companyCountry = currentData?.registrationAddress?.country;
|
|
269
268
|
if (!isEeaCountry(companyCountry)) {
|
|
270
269
|
fieldsToRemove.push(
|
|
271
270
|
"financialReportingDate",
|
|
@@ -275,15 +274,18 @@ const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
|
275
274
|
"numberOfEmployees"
|
|
276
275
|
);
|
|
277
276
|
}
|
|
277
|
+
if (currentData?.sameAddressAsRootEntity) {
|
|
278
|
+
fieldsToRemove.push("registrationAddress");
|
|
279
|
+
}
|
|
278
280
|
if (currentData.doesYourCompanyHaveLEI !== "Yes") {
|
|
279
281
|
fieldsToRemove.push("legalEntityIdentifier");
|
|
280
282
|
}
|
|
281
|
-
if (!
|
|
283
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
282
284
|
fieldsToRemove.push("legalProceedingsDate");
|
|
283
285
|
}
|
|
284
286
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
285
287
|
};
|
|
286
|
-
const getBusinessFinancingRequiredFields = (data) => {
|
|
288
|
+
const getBusinessFinancingRequiredFields = (country, data) => {
|
|
287
289
|
let requiredFields = {
|
|
288
290
|
company: companySchemaKeys
|
|
289
291
|
};
|
|
@@ -292,9 +294,9 @@ const getBusinessFinancingRequiredFields = (data) => {
|
|
|
292
294
|
}
|
|
293
295
|
const { company, parentCompany = {}, ultimateParentCompany = {} } = data;
|
|
294
296
|
if (company) {
|
|
295
|
-
requiredFields.company = getCompanySchemaKeys(
|
|
297
|
+
requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
|
|
296
298
|
}
|
|
297
|
-
if (
|
|
299
|
+
if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
|
|
298
300
|
const parentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
299
301
|
parentCompany,
|
|
300
302
|
parentCompaniesSchemaKeys
|
|
@@ -304,7 +306,7 @@ const getBusinessFinancingRequiredFields = (data) => {
|
|
|
304
306
|
parentCompany: parentCompanyRequiredFields
|
|
305
307
|
};
|
|
306
308
|
}
|
|
307
|
-
if (
|
|
309
|
+
if (company?.isParentOwnedByAnotherCompany === "Yes") {
|
|
308
310
|
const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
309
311
|
ultimateParentCompany,
|
|
310
312
|
parentCompaniesSchemaKeys
|
|
@@ -316,26 +318,35 @@ const getBusinessFinancingRequiredFields = (data) => {
|
|
|
316
318
|
}
|
|
317
319
|
return requiredFields;
|
|
318
320
|
};
|
|
321
|
+
const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
|
|
322
|
+
return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
|
|
323
|
+
};
|
|
319
324
|
const customLabels = {
|
|
320
325
|
company: {
|
|
321
326
|
legalForm: "businessStructure",
|
|
322
327
|
naceCode: "industryAndNaceCode",
|
|
323
328
|
netAssets: "totalAssets",
|
|
324
|
-
annualTurnover: "annualTurnover"
|
|
329
|
+
annualTurnover: "annualTurnover",
|
|
330
|
+
legalInformationInsolvency: "legalProceedings",
|
|
331
|
+
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
332
|
+
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
333
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
325
334
|
},
|
|
326
335
|
parentCompany: {
|
|
327
336
|
legalForm: "businessStructure",
|
|
328
337
|
naceCode: "industryAndNaceCode",
|
|
329
|
-
doesYourCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
330
338
|
netAssets: "totalAssets",
|
|
331
|
-
annualTurnover: "annualTurnover"
|
|
339
|
+
annualTurnover: "annualTurnover",
|
|
340
|
+
legalInformationInsolvency: "legalProceedings",
|
|
341
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
332
342
|
},
|
|
333
343
|
ultimateParentCompany: {
|
|
334
344
|
legalForm: "businessStructure",
|
|
335
345
|
naceCode: "industryAndNaceCode",
|
|
336
|
-
doesYourCompanyHaveLEI: "doesThisCompanyHaveLEI",
|
|
337
346
|
netAssets: "totalAssets",
|
|
338
|
-
annualTurnover: "annualTurnover"
|
|
347
|
+
annualTurnover: "annualTurnover",
|
|
348
|
+
legalInformationInsolvency: "legalProceedings",
|
|
349
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
339
350
|
}
|
|
340
351
|
};
|
|
341
352
|
const getTranslatedLegalInsolvency = (i18n, insolvencyData) => {
|
|
@@ -357,150 +368,120 @@ const getFormattedAmount = (value, currency) => {
|
|
|
357
368
|
const formattedValue = Number(value).toLocaleString(userLocale);
|
|
358
369
|
return `${currency} ${formattedValue}`;
|
|
359
370
|
};
|
|
360
|
-
const formatDataForSummary = (i18n, datasetUtils, data) => {
|
|
361
|
-
var _a, _b, _c, _d, _e;
|
|
371
|
+
const formatDataForSummary = (i18n, datasetUtils, data, rootLeAddress) => {
|
|
362
372
|
const summaryData = cloneObject(data) || {};
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
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(
|
|
367
379
|
i18n,
|
|
368
|
-
|
|
369
|
-
);
|
|
370
|
-
summaryData.company.annualTurnover = getFormattedAmount(
|
|
371
|
-
summaryData.company.annualTurnover,
|
|
372
|
-
summaryData.company.currency
|
|
380
|
+
company?.legalInformationInsolvency
|
|
373
381
|
);
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
);
|
|
378
|
-
|
|
379
|
-
summaryData.company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, i18n.locale) : void 0;
|
|
380
|
-
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;
|
|
381
387
|
}
|
|
382
|
-
if (
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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
|
+
}
|
|
401
434
|
}
|
|
402
|
-
if (
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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
|
+
}
|
|
421
481
|
}
|
|
422
482
|
return summaryData;
|
|
423
483
|
};
|
|
424
484
|
const mapLegalEntityToBusinessFinancing = (legalEntity) => formatObject(legalEntity, businessFinancingComponentsKeyMapping);
|
|
425
|
-
const getLegalForms = async (countryCode, baseUrl) => {
|
|
426
|
-
return httpGet({
|
|
427
|
-
baseUrl,
|
|
428
|
-
path: `datasets/legalForms/${countryCode}`
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
const useLegalForms = (countryCode, options) => {
|
|
432
|
-
const { baseUrl } = useApiContext();
|
|
433
|
-
return useQuery({
|
|
434
|
-
queryKey: ["legalForms", countryCode],
|
|
435
|
-
queryFn: () => getLegalForms(countryCode, baseUrl.value),
|
|
436
|
-
...options
|
|
437
|
-
});
|
|
438
|
-
};
|
|
439
|
-
function LegalFormField({
|
|
440
|
-
name = "legalForm",
|
|
441
|
-
data,
|
|
442
|
-
valid,
|
|
443
|
-
errorMessage,
|
|
444
|
-
label,
|
|
445
|
-
readonly,
|
|
446
|
-
handleChangeFor,
|
|
447
|
-
helperText,
|
|
448
|
-
countryCode
|
|
449
|
-
}) {
|
|
450
|
-
const { i18n } = useI18nContext();
|
|
451
|
-
const { data: legalFormsData } = useLegalForms(countryCode);
|
|
452
|
-
const handleChangeForRef = useRef(handleChangeFor);
|
|
453
|
-
useEffect(() => {
|
|
454
|
-
handleChangeForRef.current = handleChangeFor;
|
|
455
|
-
}, [handleChangeFor]);
|
|
456
|
-
const handleChangeForLegalForm = useCallback(
|
|
457
|
-
(e) => {
|
|
458
|
-
const legalFormEvent = {
|
|
459
|
-
target: {
|
|
460
|
-
name: "legalForm",
|
|
461
|
-
value: e.target.value
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
handleChangeFor("legalForm")(legalFormEvent);
|
|
465
|
-
},
|
|
466
|
-
[handleChangeFor]
|
|
467
|
-
);
|
|
468
|
-
useEffect(() => {
|
|
469
|
-
var _a;
|
|
470
|
-
const selectedLabel = (_a = legalFormsData == null ? void 0 : legalFormsData.find(
|
|
471
|
-
(legalForm) => legalForm.id === data.legalForm
|
|
472
|
-
)) == null ? void 0 : _a.name;
|
|
473
|
-
const legalFormEvent = {
|
|
474
|
-
target: {
|
|
475
|
-
name: "legalFormLabel",
|
|
476
|
-
value: selectedLabel
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
handleChangeForRef.current("legalFormLabel")(legalFormEvent);
|
|
480
|
-
}, [data.legalForm, legalFormsData]);
|
|
481
|
-
return /* @__PURE__ */ jsx(
|
|
482
|
-
Field,
|
|
483
|
-
{
|
|
484
|
-
name,
|
|
485
|
-
label: label || i18n.get("businessStructure"),
|
|
486
|
-
errorMessage,
|
|
487
|
-
isValid: valid.legalForm,
|
|
488
|
-
helper: helperText == null ? void 0 : helperText.legalForm,
|
|
489
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
490
|
-
Select,
|
|
491
|
-
{
|
|
492
|
-
...childProps,
|
|
493
|
-
name,
|
|
494
|
-
placeholder: i18n.get("selectOne"),
|
|
495
|
-
selected: data.legalForm,
|
|
496
|
-
items: legalFormsData ?? [],
|
|
497
|
-
readonly: readonly && !!data,
|
|
498
|
-
onChange: handleChangeForLegalForm
|
|
499
|
-
}
|
|
500
|
-
)
|
|
501
|
-
}
|
|
502
|
-
);
|
|
503
|
-
}
|
|
504
485
|
const getNaceCodes = async (baseUrl) => {
|
|
505
486
|
return httpGet({
|
|
506
487
|
baseUrl,
|
|
@@ -541,8 +522,7 @@ function NaceCodeField({
|
|
|
541
522
|
handleChangeFor("naceCode")(naceCodeEvent);
|
|
542
523
|
};
|
|
543
524
|
useEffect(() => {
|
|
544
|
-
|
|
545
|
-
const selectedLabel = (_a = naceCodesData == null ? void 0 : naceCodesData.find((naceCode) => naceCode.id === data.naceCode)) == null ? void 0 : _a.name;
|
|
525
|
+
const selectedLabel = naceCodesData?.find((naceCode) => naceCode.id === data.naceCode)?.name;
|
|
546
526
|
const naceCodeEvent = {
|
|
547
527
|
target: {
|
|
548
528
|
name: "naceCodeLabel",
|
|
@@ -558,7 +538,7 @@ function NaceCodeField({
|
|
|
558
538
|
label: label || i18n.get("industryAndNaceCode"),
|
|
559
539
|
errorMessage,
|
|
560
540
|
isValid: valid.naceCode,
|
|
561
|
-
helper: helperText
|
|
541
|
+
helper: helperText?.naceCode,
|
|
562
542
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
563
543
|
Select,
|
|
564
544
|
{
|
|
@@ -591,25 +571,26 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
591
571
|
handleFieldChange,
|
|
592
572
|
fieldValidationErrors,
|
|
593
573
|
targetPage,
|
|
594
|
-
sectionHeading
|
|
574
|
+
sectionHeading,
|
|
575
|
+
hideSectionHeading
|
|
595
576
|
} = props;
|
|
596
|
-
const {
|
|
597
|
-
const formUtils = createFormUtils(props,
|
|
577
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
578
|
+
const formUtils = createFormUtils(props, t);
|
|
598
579
|
if (!handleFieldChange) {
|
|
599
580
|
return;
|
|
600
581
|
}
|
|
601
|
-
const isMainCompany = targetPage ===
|
|
582
|
+
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
602
583
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
603
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
584
|
+
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["yourBusinessInformation"]) }),
|
|
604
585
|
/* @__PURE__ */ jsx(
|
|
605
586
|
LegalFormField,
|
|
606
587
|
{
|
|
607
588
|
name: "legalForm",
|
|
608
589
|
countryCode: country,
|
|
609
590
|
data: {
|
|
610
|
-
legalForm: data
|
|
591
|
+
legalForm: data?.legalForm
|
|
611
592
|
},
|
|
612
|
-
valid: { legalForm: valid
|
|
593
|
+
valid: { legalForm: valid?.legalForm },
|
|
613
594
|
errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
|
|
614
595
|
handleChangeFor: handleFieldChange,
|
|
615
596
|
readonly: false,
|
|
@@ -620,8 +601,8 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
620
601
|
NaceCodeField,
|
|
621
602
|
{
|
|
622
603
|
name: "naceCode",
|
|
623
|
-
data: { naceCode: data
|
|
624
|
-
valid: { naceCode: valid
|
|
604
|
+
data: { naceCode: data?.naceCode },
|
|
605
|
+
valid: { naceCode: valid?.naceCode },
|
|
625
606
|
errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
|
|
626
607
|
handleChangeFor: handleFieldChange,
|
|
627
608
|
readonly: false,
|
|
@@ -634,11 +615,11 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
634
615
|
el: "fieldset",
|
|
635
616
|
name: "doesYourCompanyHaveLEI",
|
|
636
617
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
637
|
-
label:
|
|
618
|
+
label: t(($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]),
|
|
638
619
|
helper: /* @__PURE__ */ jsxs(Typography, { el: "div", variant: "body", color: "secondary", children: [
|
|
639
|
-
/* @__PURE__ */ jsx("span", { children:
|
|
620
|
+
/* @__PURE__ */ jsx("span", { children: t(($) => $["anLEIIsAUniqueCode"], { ns: "efp" }) }),
|
|
640
621
|
" ",
|
|
641
|
-
/* @__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" }) })
|
|
642
623
|
] }),
|
|
643
624
|
errorMessage: formUtils.getErrorMessage(
|
|
644
625
|
"doesYourCompanyHaveLEI",
|
|
@@ -651,16 +632,16 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
651
632
|
...childProps,
|
|
652
633
|
name: "doesYourCompanyHaveLEI",
|
|
653
634
|
items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
|
|
654
|
-
value: data
|
|
635
|
+
value: data?.doesYourCompanyHaveLEI,
|
|
655
636
|
disabled: false,
|
|
656
637
|
onChange: handleFieldChange("doesYourCompanyHaveLEI"),
|
|
657
638
|
"aria-required": true,
|
|
658
|
-
"aria-invalid": !
|
|
639
|
+
"aria-invalid": !valid?.doesYourCompanyHaveLEI
|
|
659
640
|
}
|
|
660
641
|
)
|
|
661
642
|
}
|
|
662
643
|
),
|
|
663
|
-
|
|
644
|
+
data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(
|
|
664
645
|
Field,
|
|
665
646
|
{
|
|
666
647
|
name: "legalEntityIdentifier",
|
|
@@ -670,25 +651,23 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
670
651
|
errors,
|
|
671
652
|
fieldValidationErrors
|
|
672
653
|
),
|
|
673
|
-
isValid: valid
|
|
674
|
-
helper:
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
example: "529900T8BM49AURSDO55"
|
|
678
|
-
}
|
|
654
|
+
isValid: valid?.legalEntityIdentifier,
|
|
655
|
+
helper: t(($) => $["enterNCharactersWithAMixForExample"], {
|
|
656
|
+
numChars: 20,
|
|
657
|
+
example: "529900T8BM49AURSDO55"
|
|
679
658
|
}),
|
|
680
659
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
681
660
|
InputText,
|
|
682
661
|
{
|
|
683
662
|
...childProps,
|
|
684
663
|
name: "legalEntityIdentifier",
|
|
685
|
-
value: data
|
|
664
|
+
value: data?.legalEntityIdentifier,
|
|
686
665
|
readonly: false,
|
|
687
666
|
onInput: handleFieldChange("legalEntityIdentifier", "input"),
|
|
688
667
|
onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
|
|
689
668
|
"aria-required": true,
|
|
690
|
-
"aria-invalid": !
|
|
691
|
-
isValid: valid
|
|
669
|
+
"aria-invalid": !valid?.legalEntityIdentifier,
|
|
670
|
+
isValid: valid?.legalEntityIdentifier
|
|
692
671
|
}
|
|
693
672
|
)
|
|
694
673
|
}
|
|
@@ -699,7 +678,6 @@ const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
|
699
678
|
const financialInformationFields = [
|
|
700
679
|
"numberOfEmployees",
|
|
701
680
|
"financialReportingDate",
|
|
702
|
-
"doesYourCompanyHaveLEI",
|
|
703
681
|
"legalEntityIdentifier",
|
|
704
682
|
"currency",
|
|
705
683
|
"netAssets",
|
|
@@ -707,8 +685,8 @@ const financialInformationFields = [
|
|
|
707
685
|
];
|
|
708
686
|
function BusinessFinancingFinancialInformation(props) {
|
|
709
687
|
const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
|
|
710
|
-
const { i18n } =
|
|
711
|
-
const formUtils = createFormUtils(props,
|
|
688
|
+
const { t, i18n: i18next } = useTranslation(["common", "efp"]);
|
|
689
|
+
const formUtils = createFormUtils(props, t);
|
|
712
690
|
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
713
691
|
if (!handleFieldChange) {
|
|
714
692
|
return;
|
|
@@ -718,66 +696,43 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
718
696
|
const isFinancialDataValid = valid;
|
|
719
697
|
const [firstCurrency] = currenciesForCurrCountry;
|
|
720
698
|
const defaultCurrency = firstCurrency ?? "EUR";
|
|
699
|
+
if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
|
|
700
|
+
handleFieldChange("currency")(firstCurrency);
|
|
701
|
+
}
|
|
721
702
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
722
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
703
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["businessFinancials"]) }),
|
|
723
704
|
/* @__PURE__ */ jsx(
|
|
724
705
|
Field,
|
|
725
706
|
{
|
|
726
707
|
name: "numberOfEmployees",
|
|
727
708
|
label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
|
|
709
|
+
helper: t(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"], { ns: "efp" }),
|
|
728
710
|
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
729
|
-
isValid: valid
|
|
711
|
+
isValid: valid?.numberOfEmployees,
|
|
730
712
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
731
713
|
InputNumber,
|
|
732
714
|
{
|
|
733
715
|
...childProps,
|
|
734
716
|
"aria-required": true,
|
|
735
|
-
"aria-invalid": !
|
|
717
|
+
"aria-invalid": !valid?.numberOfEmployees,
|
|
736
718
|
name: "numberOfEmployees",
|
|
737
719
|
min: "0",
|
|
738
720
|
step: "1",
|
|
739
|
-
value: data
|
|
721
|
+
value: data?.numberOfEmployees,
|
|
740
722
|
onInput: handleFieldChange("numberOfEmployees", "input"),
|
|
741
723
|
onBlur: handleFieldChange("numberOfEmployees", "blur")
|
|
742
724
|
}
|
|
743
725
|
)
|
|
744
726
|
}
|
|
745
727
|
),
|
|
746
|
-
/* @__PURE__ */ jsx(
|
|
747
|
-
Field,
|
|
748
|
-
{
|
|
749
|
-
name: "financialReportingDate",
|
|
750
|
-
label: formUtils.getLabel("financialReportingDate", "financialReportingDate"),
|
|
751
|
-
helper: i18n.get("dateOfTotalAssetsCalculation"),
|
|
752
|
-
errorMessage: formUtils.getErrorMessage(
|
|
753
|
-
"financialReportingDate",
|
|
754
|
-
errors,
|
|
755
|
-
fieldValidationErrors
|
|
756
|
-
),
|
|
757
|
-
isValid: valid == null ? void 0 : valid.financialReportingDate,
|
|
758
|
-
children: (childProps) => /* @__PURE__ */ jsx(
|
|
759
|
-
InputDate,
|
|
760
|
-
{
|
|
761
|
-
...childProps,
|
|
762
|
-
name: "financialReportingDate",
|
|
763
|
-
value: data == null ? void 0 : data.financialReportingDate,
|
|
764
|
-
onInput: handleFieldChange("financialReportingDate", "input"),
|
|
765
|
-
onBlur: handleFieldChange("financialReportingDate", "blur"),
|
|
766
|
-
"aria-required": true,
|
|
767
|
-
"aria-invalid": !(valid == null ? void 0 : valid.financialReportingDate),
|
|
768
|
-
max: TODAY_DATE$1
|
|
769
|
-
}
|
|
770
|
-
)
|
|
771
|
-
}
|
|
772
|
-
),
|
|
773
|
-
/* @__PURE__ */ jsx(
|
|
728
|
+
currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
|
|
774
729
|
Currency,
|
|
775
730
|
{
|
|
776
731
|
country,
|
|
777
732
|
data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
|
|
778
733
|
errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
|
|
779
734
|
handleChangeFor: handleFieldChange,
|
|
780
|
-
labels: { currency:
|
|
735
|
+
labels: { currency: t(($) => $["financialStatementReportingCurrency"]) },
|
|
781
736
|
readonly: formUtils.isReadOnly("currency"),
|
|
782
737
|
valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
|
|
783
738
|
}
|
|
@@ -787,16 +742,16 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
787
742
|
Field,
|
|
788
743
|
{
|
|
789
744
|
name: "netAssets",
|
|
790
|
-
label: formUtils.getLabel("netAssets", "
|
|
791
|
-
helper:
|
|
745
|
+
label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
|
|
746
|
+
helper: t(($) => $["theSumOfTotalLiabilities"], { ns: "efp" }),
|
|
792
747
|
errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
|
|
793
748
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
794
749
|
InputCurrency,
|
|
795
750
|
{
|
|
796
751
|
...childProps,
|
|
797
|
-
locale:
|
|
798
|
-
currency:
|
|
799
|
-
amount:
|
|
752
|
+
locale: i18next.language,
|
|
753
|
+
currency: data?.currency ?? defaultCurrency,
|
|
754
|
+
amount: data?.netAssets ? Number(data?.netAssets) : void 0,
|
|
800
755
|
onAmountChanged: handleFieldChange("netAssets")
|
|
801
756
|
}
|
|
802
757
|
)
|
|
@@ -807,20 +762,47 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
807
762
|
{
|
|
808
763
|
name: "annualTurnover",
|
|
809
764
|
label: formUtils.getLabel("annualTurnover", "annualTurnover"),
|
|
810
|
-
helper:
|
|
765
|
+
helper: t(($) => $["theAnnualSalesRevenue"], { ns: "efp" }),
|
|
811
766
|
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
812
767
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
813
768
|
InputCurrency,
|
|
814
769
|
{
|
|
815
770
|
...childProps,
|
|
816
771
|
name: "annualTurnover",
|
|
817
|
-
locale:
|
|
818
|
-
currency:
|
|
819
|
-
amount:
|
|
772
|
+
locale: i18next.language,
|
|
773
|
+
currency: data?.currency ?? defaultCurrency,
|
|
774
|
+
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
820
775
|
onAmountChanged: handleFieldChange("annualTurnover")
|
|
821
776
|
}
|
|
822
777
|
)
|
|
823
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
|
+
}
|
|
824
806
|
)
|
|
825
807
|
] })
|
|
826
808
|
] });
|
|
@@ -832,21 +814,30 @@ const legalInformationFields = [
|
|
|
832
814
|
];
|
|
833
815
|
function BusinessFinancingLegalInformation(props) {
|
|
834
816
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
835
|
-
const {
|
|
836
|
-
const formUtils = createFormUtils(props,
|
|
817
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
818
|
+
const formUtils = createFormUtils(props, t);
|
|
837
819
|
if (!handleFieldChange) {
|
|
838
820
|
return;
|
|
839
821
|
}
|
|
840
822
|
const legalInformationInsolvencyItems = [
|
|
841
|
-
{ id: "noLegalActionsTaken", name:
|
|
842
|
-
{
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
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"]) }
|
|
846
837
|
];
|
|
847
|
-
const showLegalProceedingsDateField =
|
|
838
|
+
const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
|
|
848
839
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
849
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
840
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["legalInformation"]) }),
|
|
850
841
|
/* @__PURE__ */ jsx(
|
|
851
842
|
Field,
|
|
852
843
|
{
|
|
@@ -857,18 +848,18 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
857
848
|
errors,
|
|
858
849
|
fieldValidationErrors
|
|
859
850
|
),
|
|
860
|
-
isValid: valid
|
|
851
|
+
isValid: valid?.legalInformationInsolvency,
|
|
861
852
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
862
853
|
Select,
|
|
863
854
|
{
|
|
864
855
|
...childProps,
|
|
865
856
|
onChange: handleFieldChange("legalInformationInsolvency", "blur"),
|
|
866
857
|
name: "legalInformationInsolvency",
|
|
867
|
-
placeholder:
|
|
868
|
-
selected: data
|
|
858
|
+
placeholder: t(($) => $["selectOne"]),
|
|
859
|
+
selected: data?.legalInformationInsolvency,
|
|
869
860
|
items: legalInformationInsolvencyItems,
|
|
870
861
|
"aria-required": true,
|
|
871
|
-
"aria-invalid": !
|
|
862
|
+
"aria-invalid": !valid?.legalInformationInsolvency
|
|
872
863
|
}
|
|
873
864
|
)
|
|
874
865
|
}
|
|
@@ -883,7 +874,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
883
874
|
errors,
|
|
884
875
|
fieldValidationErrors
|
|
885
876
|
),
|
|
886
|
-
isValid: valid
|
|
877
|
+
isValid: valid?.legalProceedingsDate,
|
|
887
878
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
888
879
|
InputDate,
|
|
889
880
|
{
|
|
@@ -893,7 +884,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
893
884
|
onInput: handleFieldChange("legalProceedingsDate", "input"),
|
|
894
885
|
onBlur: handleFieldChange("legalProceedingsDate", "blur"),
|
|
895
886
|
"aria-required": true,
|
|
896
|
-
"aria-invalid": !
|
|
887
|
+
"aria-invalid": !valid?.legalProceedingsDate,
|
|
897
888
|
max: TODAY_DATE
|
|
898
889
|
}
|
|
899
890
|
)
|
|
@@ -907,53 +898,53 @@ const ownershipStructureFields = [
|
|
|
907
898
|
];
|
|
908
899
|
function BusinessFinancingOwnershipStructure(props) {
|
|
909
900
|
const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
|
|
910
|
-
const { i18n } =
|
|
911
|
-
const formUtils = createFormUtils(props, i18n);
|
|
901
|
+
const { t, i18n } = useTranslation(["efp"]);
|
|
902
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
912
903
|
if (!handleFieldChange) {
|
|
913
904
|
return;
|
|
914
905
|
}
|
|
915
906
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
916
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
907
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["ownershipStructure"]) }),
|
|
917
908
|
/* @__PURE__ */ jsx(
|
|
918
909
|
Field,
|
|
919
910
|
{
|
|
920
911
|
el: "fieldset",
|
|
921
912
|
name: "isCompanyOwnedByAnotherCompany",
|
|
922
913
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
923
|
-
label:
|
|
924
|
-
|
|
914
|
+
label: t(($) => $["isCompanyOwnedByAnotherCompany"], {
|
|
915
|
+
company: legalEntity?.organization ? legalEntity.organization.legalName : ""
|
|
925
916
|
}),
|
|
926
917
|
errorMessage: formUtils.getErrorMessage(
|
|
927
918
|
"isCompanyOwnedByAnotherCompany",
|
|
928
919
|
errors,
|
|
929
920
|
fieldValidationErrors
|
|
930
921
|
),
|
|
931
|
-
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"]) }) }),
|
|
932
923
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
933
924
|
RadioGroup,
|
|
934
925
|
{
|
|
935
926
|
...childProps,
|
|
936
927
|
name: "isCompanyOwnedByAnotherCompany",
|
|
937
928
|
items: businessFinancingRadioItems,
|
|
938
|
-
value: data
|
|
929
|
+
value: data?.isCompanyOwnedByAnotherCompany,
|
|
939
930
|
disabled: false,
|
|
940
931
|
onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
|
|
941
932
|
"aria-required": true,
|
|
942
|
-
"aria-invalid": !
|
|
933
|
+
"aria-invalid": !valid?.isCompanyOwnedByAnotherCompany
|
|
943
934
|
}
|
|
944
935
|
)
|
|
945
936
|
}
|
|
946
937
|
),
|
|
947
|
-
|
|
938
|
+
data?.isCompanyOwnedByAnotherCompany === "Yes" && /* @__PURE__ */ jsx(
|
|
948
939
|
Field,
|
|
949
940
|
{
|
|
950
941
|
el: "fieldset",
|
|
951
942
|
name: "isParentOwnedByAnotherCompany",
|
|
952
943
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
953
944
|
label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
|
|
954
|
-
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"]) }) }),
|
|
955
946
|
errorMessage: formUtils.getErrorMessage(
|
|
956
|
-
"
|
|
947
|
+
"isParentOwnedByAnotherCompany",
|
|
957
948
|
errors,
|
|
958
949
|
fieldValidationErrors
|
|
959
950
|
),
|
|
@@ -965,9 +956,9 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
965
956
|
items: businessFinancingRadioItems,
|
|
966
957
|
value: data.isParentOwnedByAnotherCompany,
|
|
967
958
|
disabled: false,
|
|
968
|
-
onChange: handleFieldChange("
|
|
959
|
+
onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
|
|
969
960
|
"aria-required": true,
|
|
970
|
-
"aria-invalid": !
|
|
961
|
+
"aria-invalid": !valid?.isParentOwnedByAnotherCompany
|
|
971
962
|
}
|
|
972
963
|
)
|
|
973
964
|
}
|
|
@@ -975,25 +966,29 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
975
966
|
] });
|
|
976
967
|
}
|
|
977
968
|
function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
978
|
-
const {
|
|
969
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
979
970
|
const {
|
|
980
|
-
form: { handleChangeFor, data }
|
|
971
|
+
form: { handleChangeFor, data, setValid }
|
|
981
972
|
} = useFormContext();
|
|
982
|
-
const { country, formVerificationErrors, legalEntity } = props;
|
|
983
|
-
const formUtils = createFormUtils(props,
|
|
973
|
+
const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
|
|
974
|
+
const formUtils = createFormUtils(props, t);
|
|
984
975
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
|
|
985
976
|
const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
|
|
986
977
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
987
978
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
988
979
|
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
980
|
+
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
981
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
982
|
+
setValid("currency", true, "company");
|
|
983
|
+
}
|
|
989
984
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
990
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
991
|
-
/* @__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" }) }),
|
|
992
987
|
/* @__PURE__ */ jsx(
|
|
993
988
|
ErrorPanel,
|
|
994
989
|
{
|
|
995
990
|
verificationErrors: formVerificationErrors,
|
|
996
|
-
validationErrors:
|
|
991
|
+
validationErrors: fieldValidationErrors,
|
|
997
992
|
formUtils,
|
|
998
993
|
id: "ariaErrorField"
|
|
999
994
|
}
|
|
@@ -1004,18 +999,9 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1004
999
|
...businessInformationProps,
|
|
1005
1000
|
handleFieldChange: handleChange,
|
|
1006
1001
|
country,
|
|
1007
|
-
targetPage:
|
|
1002
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1008
1003
|
sectionHeading: "yourBusinessInformation",
|
|
1009
|
-
data: formUtils.getFieldData(
|
|
1010
|
-
}
|
|
1011
|
-
),
|
|
1012
|
-
/* @__PURE__ */ jsx(
|
|
1013
|
-
BusinessFinancingOwnershipStructure,
|
|
1014
|
-
{
|
|
1015
|
-
...ownershipStructureProps,
|
|
1016
|
-
legalEntity,
|
|
1017
|
-
handleFieldChange: handleChange,
|
|
1018
|
-
data: formUtils.getFieldData((data == null ? void 0 : data.company) ?? {}, ownershipStructureFields)
|
|
1004
|
+
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
1019
1005
|
}
|
|
1020
1006
|
),
|
|
1021
1007
|
isEeaCountry(country) && /* @__PURE__ */ jsx(
|
|
@@ -1024,8 +1010,8 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1024
1010
|
...financialInformationProps,
|
|
1025
1011
|
handleFieldChange: handleChange,
|
|
1026
1012
|
country,
|
|
1027
|
-
targetPage:
|
|
1028
|
-
data: formUtils.getFieldData(
|
|
1013
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1014
|
+
data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
|
|
1029
1015
|
}
|
|
1030
1016
|
),
|
|
1031
1017
|
/* @__PURE__ */ jsx(
|
|
@@ -1034,9 +1020,18 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1034
1020
|
...legalInformationProps,
|
|
1035
1021
|
country,
|
|
1036
1022
|
handleFieldChange: handleChange,
|
|
1037
|
-
targetPage:
|
|
1023
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1038
1024
|
sectionHeading: "legalInformation",
|
|
1039
|
-
data: formUtils.getFieldData(
|
|
1025
|
+
data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
|
|
1026
|
+
}
|
|
1027
|
+
),
|
|
1028
|
+
/* @__PURE__ */ jsx(
|
|
1029
|
+
BusinessFinancingOwnershipStructure,
|
|
1030
|
+
{
|
|
1031
|
+
...ownershipStructureProps,
|
|
1032
|
+
legalEntity,
|
|
1033
|
+
handleFieldChange: handleChange,
|
|
1034
|
+
data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
|
|
1040
1035
|
}
|
|
1041
1036
|
)
|
|
1042
1037
|
] });
|
|
@@ -1046,32 +1041,33 @@ const basicInformationFields = [
|
|
|
1046
1041
|
];
|
|
1047
1042
|
function BusinessFinancingBasicCompanyInformation(props) {
|
|
1048
1043
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
1049
|
-
const {
|
|
1050
|
-
const formUtils = createFormUtils(props,
|
|
1044
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1045
|
+
const formUtils = createFormUtils(props, t);
|
|
1051
1046
|
if (!handleFieldChange) {
|
|
1052
1047
|
return;
|
|
1053
1048
|
}
|
|
1054
1049
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1055
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
1050
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: sectionHeading ? translateStringOrObject(t, sectionHeading) : t(($) => $["basicCompanyInformation"]) }),
|
|
1056
1051
|
/* @__PURE__ */ jsx(
|
|
1057
1052
|
Field,
|
|
1058
1053
|
{
|
|
1059
1054
|
name: "legalName",
|
|
1060
1055
|
label: formUtils.getLabel("legalName", "legalName"),
|
|
1061
1056
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1062
|
-
isValid: valid
|
|
1063
|
-
helper:
|
|
1057
|
+
isValid: valid?.legalName,
|
|
1058
|
+
helper: t(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"], { ns: "efp" }),
|
|
1059
|
+
helperPosition: "below",
|
|
1064
1060
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1065
1061
|
InputText,
|
|
1066
1062
|
{
|
|
1067
1063
|
...childProps,
|
|
1068
1064
|
name: "legalName",
|
|
1069
|
-
value: data
|
|
1065
|
+
value: data?.legalName,
|
|
1070
1066
|
readonly: false,
|
|
1071
1067
|
onInput: handleFieldChange("legalName", "input"),
|
|
1072
1068
|
onBlur: handleFieldChange("legalName", "blur"),
|
|
1073
1069
|
"aria-required": true,
|
|
1074
|
-
"aria-invalid": !
|
|
1070
|
+
"aria-invalid": !valid?.legalName
|
|
1075
1071
|
}
|
|
1076
1072
|
)
|
|
1077
1073
|
}
|
|
@@ -1081,10 +1077,10 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
1081
1077
|
const OPTIONAL_ADDRESS_FIELDS = ["otherAddressInformation"];
|
|
1082
1078
|
const registeredAddressFields = [
|
|
1083
1079
|
"isThisAddressTheMainHeadquarters",
|
|
1084
|
-
"registrationAddress"
|
|
1080
|
+
"registrationAddress",
|
|
1081
|
+
"sameAddressAsRootEntity"
|
|
1085
1082
|
];
|
|
1086
1083
|
function BusinessFinancingRegisteredAddress(props) {
|
|
1087
|
-
var _a;
|
|
1088
1084
|
const {
|
|
1089
1085
|
data,
|
|
1090
1086
|
valid,
|
|
@@ -1097,9 +1093,10 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1097
1093
|
legalEntity,
|
|
1098
1094
|
sectionHeading
|
|
1099
1095
|
} = props;
|
|
1100
|
-
const { i18n } =
|
|
1101
|
-
const formUtils = createFormUtils(props, i18n);
|
|
1102
|
-
const addressCountry =
|
|
1096
|
+
const { t, i18n } = useTranslation(["efp", "common"]);
|
|
1097
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
1098
|
+
const addressCountry = data?.registrationAddress?.country;
|
|
1099
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
1103
1100
|
const addressSchema = useMemo(() => {
|
|
1104
1101
|
return getAddressSchemaForCountry(addressCountry).filter((field) => {
|
|
1105
1102
|
if (addressCountry) {
|
|
@@ -1118,17 +1115,61 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1118
1115
|
handleFieldChange("registrationAddress")(state.data);
|
|
1119
1116
|
};
|
|
1120
1117
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1121
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.
|
|
1122
|
-
/* @__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
|
+
),
|
|
1123
1165
|
/* @__PURE__ */ jsx(
|
|
1124
1166
|
Field,
|
|
1125
1167
|
{
|
|
1126
1168
|
el: "fieldset",
|
|
1127
1169
|
name: "isThisAddressTheMainHeadquarters",
|
|
1128
1170
|
classNameModifiers: ["highExposureBusinessInformation"],
|
|
1129
|
-
label:
|
|
1130
|
-
|
|
1131
|
-
}),
|
|
1171
|
+
label: t(($) => $["areTheMainHeadquartersAtThisAddress"]),
|
|
1172
|
+
helper: t(($) => $["addressRegisteredWithGovernment"]),
|
|
1132
1173
|
errorMessage: formUtils.getErrorMessage(
|
|
1133
1174
|
"isThisAddressTheMainHeadquarters",
|
|
1134
1175
|
errors,
|
|
@@ -1140,54 +1181,48 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1140
1181
|
...childProps,
|
|
1141
1182
|
name: "isThisAddressTheMainHeadquarters",
|
|
1142
1183
|
items: businessFinancingRadioItems,
|
|
1143
|
-
value: data
|
|
1184
|
+
value: data?.isThisAddressTheMainHeadquarters,
|
|
1144
1185
|
disabled: false,
|
|
1145
1186
|
onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
|
|
1146
1187
|
"aria-required": true,
|
|
1147
|
-
"aria-invalid": !
|
|
1188
|
+
"aria-invalid": !valid?.isThisAddressTheMainHeadquarters
|
|
1148
1189
|
}
|
|
1149
1190
|
)
|
|
1150
1191
|
}
|
|
1151
|
-
),
|
|
1152
|
-
/* @__PURE__ */ jsx(
|
|
1153
|
-
Address,
|
|
1154
|
-
{
|
|
1155
|
-
id: formId,
|
|
1156
|
-
addressType: "registrationAddress",
|
|
1157
|
-
data: { ...defaultData == null ? void 0 : defaultData.registrationAddress, country: addressCountry },
|
|
1158
|
-
labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
|
|
1159
|
-
countryCode: addressCountry,
|
|
1160
|
-
requiredFields: addressSchema,
|
|
1161
|
-
optionalFields: OPTIONAL_ADDRESS_FIELDS,
|
|
1162
|
-
onChange: handleRegistrationAddressChange,
|
|
1163
|
-
shouldValidate
|
|
1164
|
-
}
|
|
1165
1192
|
)
|
|
1166
1193
|
] });
|
|
1167
1194
|
}
|
|
1168
1195
|
const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
|
|
1169
1196
|
function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
1170
|
-
|
|
1171
|
-
const { i18n } = useI18nContext();
|
|
1197
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1172
1198
|
const {
|
|
1173
|
-
form: { handleChangeFor, data }
|
|
1199
|
+
form: { handleChangeFor, data, setValid }
|
|
1174
1200
|
} = useFormContext();
|
|
1175
|
-
const { country, formVerificationErrors } = props;
|
|
1176
|
-
const formUtils = createFormUtils(props,
|
|
1201
|
+
const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
|
|
1202
|
+
const formUtils = createFormUtils(props, t);
|
|
1177
1203
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
|
|
1204
|
+
setValid("sameAddressAsRootEntity", true, "parentCompany");
|
|
1178
1205
|
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1179
1206
|
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1180
1207
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1181
1208
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1182
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
|
+
}
|
|
1183
1218
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1184
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
1185
|
-
/* @__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" }) }),
|
|
1186
1221
|
/* @__PURE__ */ jsx(
|
|
1187
1222
|
ErrorPanel,
|
|
1188
1223
|
{
|
|
1189
1224
|
verificationErrors: formVerificationErrors,
|
|
1190
|
-
validationErrors:
|
|
1225
|
+
validationErrors: fieldValidationErrors,
|
|
1191
1226
|
formUtils,
|
|
1192
1227
|
id: "ariaErrorField"
|
|
1193
1228
|
}
|
|
@@ -1196,9 +1231,9 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1196
1231
|
BusinessFinancingBasicCompanyInformation,
|
|
1197
1232
|
{
|
|
1198
1233
|
...basicCompanyInformationProps,
|
|
1199
|
-
sectionHeading: "
|
|
1234
|
+
sectionHeading: "parentCompanyInformation",
|
|
1200
1235
|
handleFieldChange: handleChange,
|
|
1201
|
-
data: formUtils.getFieldData(
|
|
1236
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
|
|
1202
1237
|
}
|
|
1203
1238
|
),
|
|
1204
1239
|
/* @__PURE__ */ jsx(
|
|
@@ -1206,69 +1241,78 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1206
1241
|
{
|
|
1207
1242
|
...registeredAddressProps,
|
|
1208
1243
|
formId: parentCompanyFormId$1,
|
|
1209
|
-
sectionHeading: "
|
|
1210
|
-
defaultData: data
|
|
1244
|
+
sectionHeading: "parentCompanyAddress",
|
|
1245
|
+
defaultData: data?.parentCompany,
|
|
1246
|
+
legalEntity,
|
|
1211
1247
|
handleFieldChange: handleChange,
|
|
1212
|
-
data: formUtils.getFieldData(
|
|
1248
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
|
|
1213
1249
|
}
|
|
1214
1250
|
),
|
|
1215
1251
|
/* @__PURE__ */ jsx(
|
|
1216
1252
|
BusinessFinancingBusinessInformation,
|
|
1217
1253
|
{
|
|
1218
1254
|
...businessInformationProps,
|
|
1219
|
-
|
|
1220
|
-
country:
|
|
1221
|
-
targetPage:
|
|
1255
|
+
hideSectionHeading: true,
|
|
1256
|
+
country: addressCountry ?? country,
|
|
1257
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1222
1258
|
handleFieldChange: handleChange,
|
|
1223
|
-
data: formUtils.getFieldData(
|
|
1259
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
|
|
1224
1260
|
}
|
|
1225
1261
|
),
|
|
1226
|
-
isEeaCountry(
|
|
1262
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1227
1263
|
BusinessFinancingFinancialInformation,
|
|
1228
1264
|
{
|
|
1229
1265
|
...financialInformationProps,
|
|
1230
|
-
country:
|
|
1231
|
-
targetPage:
|
|
1266
|
+
country: addressCountry ?? country,
|
|
1267
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1232
1268
|
handleFieldChange: handleChange,
|
|
1233
|
-
data: formUtils.getFieldData(
|
|
1269
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
|
|
1234
1270
|
}
|
|
1235
1271
|
),
|
|
1236
1272
|
/* @__PURE__ */ jsx(
|
|
1237
1273
|
BusinessFinancingLegalInformation,
|
|
1238
1274
|
{
|
|
1239
1275
|
...legalInformationProps,
|
|
1240
|
-
country,
|
|
1241
|
-
targetPage:
|
|
1276
|
+
country: addressCountry ?? country,
|
|
1277
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1242
1278
|
sectionHeading: "legalInformation",
|
|
1243
1279
|
handleFieldChange: handleChange,
|
|
1244
|
-
data: formUtils.getFieldData(
|
|
1280
|
+
data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
|
|
1245
1281
|
}
|
|
1246
1282
|
)
|
|
1247
1283
|
] });
|
|
1248
1284
|
}
|
|
1249
1285
|
const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
|
|
1250
1286
|
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1251
|
-
|
|
1252
|
-
const {
|
|
1253
|
-
const
|
|
1254
|
-
const formUtils = createFormUtils(props, i18n);
|
|
1287
|
+
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
1288
|
+
const { t } = useTranslation(["common", "efp"]);
|
|
1289
|
+
const formUtils = createFormUtils(props, t);
|
|
1255
1290
|
const {
|
|
1256
|
-
form: { handleChangeFor, data }
|
|
1291
|
+
form: { handleChangeFor, data, setValid }
|
|
1257
1292
|
} = useFormContext();
|
|
1258
1293
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "ultimateParentCompany", mode);
|
|
1294
|
+
setValid("sameAddressAsRootEntity", true, "ultimateParentCompany");
|
|
1259
1295
|
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
1260
1296
|
const registeredAddressProps = getFieldProps(props, registeredAddressFields);
|
|
1261
1297
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
1262
1298
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
1263
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
|
+
}
|
|
1264
1308
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1265
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
1266
|
-
/* @__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" }) }),
|
|
1267
1311
|
/* @__PURE__ */ jsx(
|
|
1268
1312
|
ErrorPanel,
|
|
1269
1313
|
{
|
|
1270
1314
|
verificationErrors: formVerificationErrors,
|
|
1271
|
-
validationErrors:
|
|
1315
|
+
validationErrors: fieldValidationErrors,
|
|
1272
1316
|
formUtils,
|
|
1273
1317
|
id: "ariaErrorField"
|
|
1274
1318
|
}
|
|
@@ -1277,9 +1321,9 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1277
1321
|
BusinessFinancingBasicCompanyInformation,
|
|
1278
1322
|
{
|
|
1279
1323
|
...basicCompanyInformationProps,
|
|
1280
|
-
sectionHeading: "
|
|
1324
|
+
sectionHeading: "ultimateParentCompanyInformation",
|
|
1281
1325
|
handleFieldChange: handleChange,
|
|
1282
|
-
data: formUtils.getFieldData(
|
|
1326
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
|
|
1283
1327
|
}
|
|
1284
1328
|
),
|
|
1285
1329
|
/* @__PURE__ */ jsx(
|
|
@@ -1287,32 +1331,33 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1287
1331
|
{
|
|
1288
1332
|
...registeredAddressProps,
|
|
1289
1333
|
formId: ultimateParentCompanyFormId$1,
|
|
1290
|
-
sectionHeading: "
|
|
1291
|
-
defaultData: data
|
|
1334
|
+
sectionHeading: "ultimateParentCompanyAddress",
|
|
1335
|
+
defaultData: data?.ultimateParentCompany,
|
|
1292
1336
|
handleFieldChange: handleChange,
|
|
1293
|
-
data: formUtils.getFieldData(
|
|
1337
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
|
|
1338
|
+
legalEntity
|
|
1294
1339
|
}
|
|
1295
1340
|
),
|
|
1296
1341
|
/* @__PURE__ */ jsx(
|
|
1297
1342
|
BusinessFinancingBusinessInformation,
|
|
1298
1343
|
{
|
|
1299
1344
|
...businessInformationProps,
|
|
1300
|
-
|
|
1301
|
-
country,
|
|
1302
|
-
targetPage:
|
|
1345
|
+
hideSectionHeading: true,
|
|
1346
|
+
country: addressCountry ?? country,
|
|
1347
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1303
1348
|
handleFieldChange: handleChange,
|
|
1304
|
-
data: formUtils.getFieldData(
|
|
1349
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
|
|
1305
1350
|
}
|
|
1306
1351
|
),
|
|
1307
|
-
isEeaCountry(
|
|
1352
|
+
isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
|
|
1308
1353
|
BusinessFinancingFinancialInformation,
|
|
1309
1354
|
{
|
|
1310
1355
|
...financialInformationProps,
|
|
1311
|
-
country,
|
|
1312
|
-
targetPage:
|
|
1356
|
+
country: addressCountry ?? country,
|
|
1357
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1313
1358
|
handleFieldChange: handleChange,
|
|
1314
1359
|
data: formUtils.getFieldData(
|
|
1315
|
-
|
|
1360
|
+
data?.ultimateParentCompany ?? {},
|
|
1316
1361
|
financialInformationFields
|
|
1317
1362
|
)
|
|
1318
1363
|
}
|
|
@@ -1321,22 +1366,22 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1321
1366
|
BusinessFinancingLegalInformation,
|
|
1322
1367
|
{
|
|
1323
1368
|
...legalInformationProps,
|
|
1324
|
-
country,
|
|
1369
|
+
country: addressCountry ?? country,
|
|
1325
1370
|
sectionHeading: "legalInformation",
|
|
1326
|
-
targetPage:
|
|
1371
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1327
1372
|
handleFieldChange: handleChange,
|
|
1328
|
-
data: formUtils.getFieldData(
|
|
1373
|
+
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
|
|
1329
1374
|
}
|
|
1330
1375
|
)
|
|
1331
1376
|
] });
|
|
1332
1377
|
}
|
|
1333
1378
|
const getOrgAnalyticsData = (prefix, details) => {
|
|
1334
|
-
const org = details
|
|
1379
|
+
const org = details?.organization;
|
|
1335
1380
|
if (!org) return {};
|
|
1336
1381
|
return {
|
|
1337
|
-
[`${prefix}--economicSector`]:
|
|
1338
|
-
[`${prefix}--legalForm`]:
|
|
1339
|
-
[`${prefix}--statusOfLegalProceeding`]:
|
|
1382
|
+
[`${prefix}--economicSector`]: org?.economicSector ?? "",
|
|
1383
|
+
[`${prefix}--legalForm`]: org?.legalForm ?? "",
|
|
1384
|
+
[`${prefix}--statusOfLegalProceeding`]: org?.statusOfLegalProceeding ?? ""
|
|
1340
1385
|
};
|
|
1341
1386
|
};
|
|
1342
1387
|
const businessFinancingFormsRequiredFields = {
|
|
@@ -1348,7 +1393,6 @@ const parentCompanyFormId = businessFinancingForms.parentCompany.formId;
|
|
|
1348
1393
|
const companyFormId = businessFinancingForms.company.formId;
|
|
1349
1394
|
const ultimateParentCompanyFormId = businessFinancingForms.ultimateParentCompany.formId;
|
|
1350
1395
|
function BusinessFinancingDropin(props) {
|
|
1351
|
-
var _a, _b;
|
|
1352
1396
|
const {
|
|
1353
1397
|
country,
|
|
1354
1398
|
rootLegalEntity,
|
|
@@ -1430,17 +1474,17 @@ function BusinessFinancingDropin(props) {
|
|
|
1430
1474
|
return;
|
|
1431
1475
|
}
|
|
1432
1476
|
const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1433
|
-
|
|
1477
|
+
BusinessFinancingIndices.COMPANY,
|
|
1434
1478
|
umfData,
|
|
1435
1479
|
rootLegalEntity
|
|
1436
1480
|
);
|
|
1437
1481
|
const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1438
|
-
|
|
1482
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1439
1483
|
umfData,
|
|
1440
1484
|
rootLegalEntity
|
|
1441
1485
|
);
|
|
1442
1486
|
const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1443
|
-
|
|
1487
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1444
1488
|
umfData,
|
|
1445
1489
|
rootLegalEntity
|
|
1446
1490
|
);
|
|
@@ -1454,21 +1498,21 @@ function BusinessFinancingDropin(props) {
|
|
|
1454
1498
|
const promises = [];
|
|
1455
1499
|
if (parentCompanyBusinessFinancingDetails) {
|
|
1456
1500
|
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1457
|
-
|
|
1501
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1458
1502
|
parentCompanyBusinessFinancingDetails,
|
|
1459
1503
|
createLegalEntity,
|
|
1460
1504
|
updateLegalEntity,
|
|
1461
|
-
parentCompanyBusinessFinancingDetails
|
|
1505
|
+
parentCompanyBusinessFinancingDetails?.id
|
|
1462
1506
|
);
|
|
1463
1507
|
promises.push(parentCompanyPromise);
|
|
1464
1508
|
}
|
|
1465
1509
|
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1466
1510
|
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1467
|
-
|
|
1511
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1468
1512
|
ultimateParentCompanyBusinessFinancingDetails,
|
|
1469
1513
|
createLegalEntity,
|
|
1470
1514
|
updateLegalEntity,
|
|
1471
|
-
ultimateParentCompanyBusinessFinancingDetails
|
|
1515
|
+
ultimateParentCompanyBusinessFinancingDetails?.id
|
|
1472
1516
|
);
|
|
1473
1517
|
promises.push(ultimateParentCompanyPromise);
|
|
1474
1518
|
}
|
|
@@ -1479,30 +1523,30 @@ function BusinessFinancingDropin(props) {
|
|
|
1479
1523
|
const businessFinancingEntityAssociations = [
|
|
1480
1524
|
...previousEntityAssociations
|
|
1481
1525
|
];
|
|
1482
|
-
const entitiesToTrack = [
|
|
1526
|
+
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1483
1527
|
results.forEach((result, index) => {
|
|
1484
|
-
const businessFinancingType = index === 0 ?
|
|
1528
|
+
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1485
1529
|
if (result.status === "fulfilled") {
|
|
1486
1530
|
const response = result.value;
|
|
1487
|
-
if (businessFinancingType ===
|
|
1531
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1488
1532
|
businessFinancingEntityAssociations.push({
|
|
1489
1533
|
type: "immediateParentCompany",
|
|
1490
1534
|
legalEntityId: response.id,
|
|
1491
1535
|
associatorId: companyBusinessFinancingDetails.id
|
|
1492
1536
|
});
|
|
1493
|
-
entitiesToTrack.push(
|
|
1494
|
-
} else if (businessFinancingType ===
|
|
1537
|
+
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1538
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1495
1539
|
businessFinancingEntityAssociations.push({
|
|
1496
1540
|
type: "ultimateParentCompany",
|
|
1497
1541
|
legalEntityId: response.id,
|
|
1498
1542
|
associatorId: companyBusinessFinancingDetails.id
|
|
1499
1543
|
});
|
|
1500
|
-
entitiesToTrack.push(
|
|
1544
|
+
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1501
1545
|
}
|
|
1502
1546
|
} else {
|
|
1503
|
-
if (businessFinancingType ===
|
|
1547
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1504
1548
|
parentCompanyFailed = true;
|
|
1505
|
-
} else if (businessFinancingType ===
|
|
1549
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1506
1550
|
ultimateParentCompanyFailed = true;
|
|
1507
1551
|
}
|
|
1508
1552
|
handleSubmissionError(result.reason, businessFinancingType);
|
|
@@ -1522,11 +1566,11 @@ function BusinessFinancingDropin(props) {
|
|
|
1522
1566
|
};
|
|
1523
1567
|
try {
|
|
1524
1568
|
await handleBusinessFinancingFormSubmission(
|
|
1525
|
-
|
|
1569
|
+
BusinessFinancingIndices.COMPANY,
|
|
1526
1570
|
companyBusinessFinancingDetails,
|
|
1527
1571
|
createLegalEntity,
|
|
1528
1572
|
updateLegalEntity,
|
|
1529
|
-
companyBusinessFinancingDetails
|
|
1573
|
+
companyBusinessFinancingDetails?.id
|
|
1530
1574
|
);
|
|
1531
1575
|
userEvents.addTaskEvent("Success", {
|
|
1532
1576
|
actionType: "submit",
|
|
@@ -1537,17 +1581,17 @@ function BusinessFinancingDropin(props) {
|
|
|
1537
1581
|
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
1538
1582
|
setShowEndState(true);
|
|
1539
1583
|
} else {
|
|
1540
|
-
externalOnSubmit
|
|
1584
|
+
externalOnSubmit?.({ ...umfData });
|
|
1541
1585
|
}
|
|
1542
1586
|
} catch (e) {
|
|
1543
1587
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1544
|
-
handleSubmissionError(e,
|
|
1588
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1545
1589
|
}
|
|
1546
1590
|
setProblems({});
|
|
1547
1591
|
}
|
|
1548
1592
|
} catch (e) {
|
|
1549
1593
|
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1550
|
-
handleSubmissionError(e,
|
|
1594
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1551
1595
|
}
|
|
1552
1596
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1553
1597
|
} finally {
|
|
@@ -1564,8 +1608,8 @@ function BusinessFinancingDropin(props) {
|
|
|
1564
1608
|
setProblems((prevProblems) => ({
|
|
1565
1609
|
...prevProblems,
|
|
1566
1610
|
validationErrors: {
|
|
1567
|
-
...prevProblems
|
|
1568
|
-
[businessFinancingType]:
|
|
1611
|
+
...prevProblems?.validationErrors,
|
|
1612
|
+
[businessFinancingType]: validationErrors?.[businessFinancingType] ?? {}
|
|
1569
1613
|
}
|
|
1570
1614
|
}));
|
|
1571
1615
|
} else if (isMaintenanceModeError(error)) {
|
|
@@ -1581,18 +1625,23 @@ function BusinessFinancingDropin(props) {
|
|
|
1581
1625
|
const associatedLeTrackingParams = getAssociatedLeAnalyticsPayload({
|
|
1582
1626
|
associatedLegalEntity: rootLegalEntity
|
|
1583
1627
|
});
|
|
1584
|
-
const omittedSummaryKeys = [
|
|
1628
|
+
const omittedSummaryKeys = [
|
|
1629
|
+
"naceCodeLabel",
|
|
1630
|
+
"legalFormLabel",
|
|
1631
|
+
"currency",
|
|
1632
|
+
"doesYourCompanyHaveLEI",
|
|
1633
|
+
"sameAddressAsRootEntity"
|
|
1634
|
+
];
|
|
1585
1635
|
const [requiredFields, setRequiredFields] = useState(void 0);
|
|
1586
1636
|
const form = useMultiForm({
|
|
1587
1637
|
requiredFields,
|
|
1588
1638
|
defaultData: derivedData,
|
|
1589
1639
|
rules: businessFinancingMultiformRules
|
|
1590
1640
|
});
|
|
1591
|
-
const { data: umfData = derivedData } = form;
|
|
1641
|
+
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
1592
1642
|
useEffect(() => {
|
|
1593
|
-
|
|
1594
|
-
const
|
|
1595
|
-
const showUltimateParentCompany = ((_b2 = umfData == null ? void 0 : umfData.company) == null ? void 0 : _b2.isParentOwnedByAnotherCompany) === "Yes";
|
|
1643
|
+
const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
1644
|
+
const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
1596
1645
|
let updateForms = {
|
|
1597
1646
|
company: { ...businessFinancingForms.company }
|
|
1598
1647
|
};
|
|
@@ -1607,11 +1656,11 @@ function BusinessFinancingDropin(props) {
|
|
|
1607
1656
|
}
|
|
1608
1657
|
setBusinessFinancingRequiredForms(updateForms);
|
|
1609
1658
|
}, [
|
|
1610
|
-
|
|
1611
|
-
|
|
1659
|
+
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
1660
|
+
umfData?.company?.isParentOwnedByAnotherCompany
|
|
1612
1661
|
]);
|
|
1613
1662
|
useEffect(() => {
|
|
1614
|
-
const reqs = getBusinessFinancingRequiredFields(umfData);
|
|
1663
|
+
const reqs = getBusinessFinancingRequiredFields(country, umfData);
|
|
1615
1664
|
setRequiredFields(reqs);
|
|
1616
1665
|
}, [umfData]);
|
|
1617
1666
|
const forms = useMemo(() => {
|
|
@@ -1620,13 +1669,8 @@ function BusinessFinancingDropin(props) {
|
|
|
1620
1669
|
businessFinancingFormsRequiredFields,
|
|
1621
1670
|
{}
|
|
1622
1671
|
);
|
|
1623
|
-
return addValidityToForms(requiredForms,
|
|
1624
|
-
}, [
|
|
1625
|
-
businessFinancingRequiredForms,
|
|
1626
|
-
form.isValid,
|
|
1627
|
-
businessFinancingFormsRequiredFields,
|
|
1628
|
-
problems
|
|
1629
|
-
]);
|
|
1672
|
+
return addValidityToForms(requiredForms, isValid, problems);
|
|
1673
|
+
}, [businessFinancingRequiredForms, isValid, businessFinancingFormsRequiredFields, problems]);
|
|
1630
1674
|
const {
|
|
1631
1675
|
handleNextClick,
|
|
1632
1676
|
handleBackClick,
|
|
@@ -1656,63 +1700,67 @@ function BusinessFinancingDropin(props) {
|
|
|
1656
1700
|
toForm: "home",
|
|
1657
1701
|
label: "home"
|
|
1658
1702
|
});
|
|
1659
|
-
handleHomeClick
|
|
1660
|
-
};
|
|
1661
|
-
const renderActiveForm = (selectedForm) => {
|
|
1662
|
-
var _a2, _b2, _c, _d, _e, _f;
|
|
1663
|
-
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
1664
|
-
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
1665
|
-
AdditionalFieldsForBusinessFinancingCompany,
|
|
1666
|
-
{
|
|
1667
|
-
data: defaultData == null ? void 0 : defaultData.company,
|
|
1668
|
-
legalEntity: rootLegalEntity,
|
|
1669
|
-
heading: i18n.get("additionalInformationForBusinessFinancing"),
|
|
1670
|
-
id: companyFormId,
|
|
1671
|
-
country,
|
|
1672
|
-
shouldValidate,
|
|
1673
|
-
fieldValidationErrors: (_a2 = problems == null ? void 0 : problems.validationErrors) == null ? void 0 : _a2[selectedForm == null ? void 0 : selectedForm.formId],
|
|
1674
|
-
formVerificationErrors: (_b2 = problems == null ? void 0 : problems.verificationErrors) == null ? void 0 : _b2[selectedForm == null ? void 0 : selectedForm.formId],
|
|
1675
|
-
errors: (_c = form.errors) == null ? void 0 : _c.company,
|
|
1676
|
-
valid: (_d = form.valid) == null ? void 0 : _d.company
|
|
1677
|
-
}
|
|
1678
|
-
),
|
|
1679
|
-
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1680
|
-
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
1681
|
-
{
|
|
1682
|
-
data: defaultData == null ? void 0 : defaultData.parentCompany,
|
|
1683
|
-
heading: i18n.get("parentCompanyInformation"),
|
|
1684
|
-
id: companyFormId,
|
|
1685
|
-
country,
|
|
1686
|
-
shouldValidate,
|
|
1687
|
-
errors: (_e = form.errors) == null ? void 0 : _e.parentCompany
|
|
1688
|
-
}
|
|
1689
|
-
),
|
|
1690
|
-
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1691
|
-
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
1692
|
-
{
|
|
1693
|
-
data: defaultData == null ? void 0 : defaultData.ultimateParentCompany,
|
|
1694
|
-
heading: i18n.get("ultimateParentCompanyInformation"),
|
|
1695
|
-
id: companyFormId,
|
|
1696
|
-
country,
|
|
1697
|
-
shouldValidate,
|
|
1698
|
-
errors: (_f = form.errors) == null ? void 0 : _f.ultimateParentCompany
|
|
1699
|
-
}
|
|
1700
|
-
)
|
|
1701
|
-
] });
|
|
1703
|
+
handleHomeClick?.();
|
|
1702
1704
|
};
|
|
1703
|
-
|
|
1705
|
+
const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
1706
|
+
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
1707
|
+
AdditionalFieldsForBusinessFinancingCompany,
|
|
1708
|
+
{
|
|
1709
|
+
data: defaultData?.company,
|
|
1710
|
+
legalEntity: rootLegalEntity,
|
|
1711
|
+
heading: i18n.get("additionalInformationForBusinessFinancing"),
|
|
1712
|
+
id: companyFormId,
|
|
1713
|
+
country,
|
|
1714
|
+
shouldValidate,
|
|
1715
|
+
fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
|
|
1716
|
+
formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
|
|
1717
|
+
errors: errors?.company,
|
|
1718
|
+
valid: valid?.company
|
|
1719
|
+
}
|
|
1720
|
+
),
|
|
1721
|
+
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1722
|
+
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
1723
|
+
{
|
|
1724
|
+
data: defaultData?.parentCompany,
|
|
1725
|
+
heading: i18n.get("parentCompanyInformation"),
|
|
1726
|
+
id: companyFormId,
|
|
1727
|
+
country,
|
|
1728
|
+
shouldValidate,
|
|
1729
|
+
errors: errors?.parentCompany,
|
|
1730
|
+
legalEntity: rootLegalEntity
|
|
1731
|
+
}
|
|
1732
|
+
),
|
|
1733
|
+
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
1734
|
+
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
1735
|
+
{
|
|
1736
|
+
data: defaultData?.ultimateParentCompany,
|
|
1737
|
+
heading: i18n.get("ultimateParentCompanyInformation"),
|
|
1738
|
+
id: companyFormId,
|
|
1739
|
+
country,
|
|
1740
|
+
shouldValidate,
|
|
1741
|
+
errors: errors?.ultimateParentCompany,
|
|
1742
|
+
legalEntity: rootLegalEntity
|
|
1743
|
+
}
|
|
1744
|
+
)
|
|
1745
|
+
] });
|
|
1746
|
+
if (!defaultData?.company) {
|
|
1704
1747
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
1705
1748
|
}
|
|
1706
1749
|
return showEndState ? /* @__PURE__ */ jsxs(FormEndState, { variant: "success", children: [
|
|
1707
|
-
/* @__PURE__ */ jsx("template", { slot: "title", children: i18n.get("
|
|
1750
|
+
/* @__PURE__ */ jsx("template", { slot: "title", children: i18n.get("submissionReceived") }),
|
|
1708
1751
|
/* @__PURE__ */ jsx("template", { slot: "icon", children: /* @__PURE__ */ jsx(Icon, { name: "checkmark" }) }),
|
|
1709
|
-
/* @__PURE__ */ jsx("template", { slot: "actions", children: externalOnSubmit && !showBusinessFinancingFirst && /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit
|
|
1752
|
+
/* @__PURE__ */ jsx("template", { slot: "actions", children: externalOnSubmit && !showBusinessFinancingFirst && /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit?.({ ...umfData }), children: externalOnSubmitLabel || i18n.get("finish") }) }),
|
|
1710
1753
|
/* @__PURE__ */ jsx("div", { children: i18n.get("yourLoanApplicationHasBeenReceived") })
|
|
1711
1754
|
] }) : /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
1712
1755
|
FormFlow,
|
|
1713
1756
|
{
|
|
1714
1757
|
summary: {
|
|
1715
|
-
data: formatDataForSummary(
|
|
1758
|
+
data: formatDataForSummary(
|
|
1759
|
+
i18n,
|
|
1760
|
+
datasetUtils,
|
|
1761
|
+
umfData,
|
|
1762
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
1763
|
+
),
|
|
1716
1764
|
omitted: {
|
|
1717
1765
|
keys: omittedSummaryKeys
|
|
1718
1766
|
},
|