@adyen/kyc-components 4.0.0-beta.3 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-i222mdxX.js → AcceptTermsOfServiceComponent-ilX6szf9.js} +42 -43
- package/dist/{AccountSetupRejected-DHph9lFl.js → AccountSetupRejected-CQjHA557.js} +3 -3
- package/dist/{Avatar-vCjWXfC7.js → Avatar-BfRRf9_a.js} +2 -2
- package/dist/{BusinessDetailsDropin-DQcfiSR8.js → BusinessDetailsDropin-Dr580mIQ.js} +122 -144
- package/dist/{BusinessFinancingComponent-DC3jzBrq.js → BusinessFinancingComponent-CEIG-4wN.js} +3 -3
- package/dist/{BusinessFinancingDropin-D2lMEbNh.js → BusinessFinancingDropin-sC3QpkDx.js} +409 -258
- package/dist/{BusinessFinancingPage-BPD2cSDR.js → BusinessFinancingPage-BIEuNfKE.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Cdp8joPJ.js → BusinessTypeSelectionPage-6sF2ce3o.js} +35 -64
- package/dist/{ContractViewer-B0bZ14Ts.js → ContractViewer-BOxsPeO1.js} +4 -4
- package/dist/{CreateIndividualComponent-D9wnexv4.js → CreateIndividualComponent-t9eDVjpb.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-COzPdQjC.js → CreateTransferInstrumentComponent-D65FAcQz.js} +5 -5
- package/dist/{CustomerSupport-NGBoBg3N.js → CustomerSupport-CoLWcgoS.js} +5 -5
- package/dist/{DebugModal-I2U6TjGT.js → DebugModal-DkICAsiu.js} +7 -221
- package/dist/{DecisionMakerDetailsPage-BN-H1sJF.js → DecisionMakerDetailsPage-CvmwdHqV.js} +4 -4
- package/dist/{DecisionMakers-CZ5-IRtU.js → DecisionMakers-DthVv8_t.js} +160 -9
- package/dist/{EmbeddedStatus-Blr0seRl.js → EmbeddedStatus-DdGnEZzS.js} +13 -13
- package/dist/{FormEndState-JB6QFSet.js → FormEndState-CUYkLBgX.js} +3 -3
- package/dist/{FormFlow-DjvdNEiV.js → FormFlow-CNXkXUwa.js} +3 -3
- package/dist/{IndividualOnfidoDropin-DHhyO2ai.js → IndividualOnfidoDropin-DV2fJG5W.js} +254 -223
- package/dist/{Introduction-erRXgreE.js → Introduction-B1WXHc-7.js} +24 -26
- package/dist/{ProviderButton-B58n0cRC.js → LandingLayout-BC3pp_IY.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-rS5K4657.js → LegalRepresentativeDetailsPage-9xm-XCto.js} +4 -4
- package/dist/{ManageIndividualComponent-BEzE5lkX.js → ManageIndividualComponent-zCo6mUQx.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-BWkwy6YC.js → ManageTermsOfServiceComponent-DpQXgPYk.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-B8kRNftW.js → ManageTransferInstrumentComponent-BKERoin1.js} +6 -6
- package/dist/{OnboardingDropinComponent-DBW5N3Dr.js → OnboardingDropinComponent-DYdts9Sh.js} +330 -169
- package/dist/{Review-O6Al47Cu.js → Review-jBq7cFVv.js} +3 -3
- package/dist/RootBusinessDetailsPage-BfO0Xb7n.js +1848 -0
- package/dist/{RootIndividualDetailsPage-CiXgSJsV.js → RootIndividualDetailsPage-DzmHoceW.js} +4 -4
- package/dist/{SignPCIComponent-cqRNhGdl.js → SignPCIComponent-By4PazmA.js} +20 -24
- package/dist/{SingpassSelection-BWEJ3Yi-.js → SingpassSelection-BeUj9Kdy.js} +8 -8
- package/dist/{SoleProprietorshipPage-CRcJSpn9.js → SoleProprietorshipPage-CZPeKEEl.js} +4 -4
- package/dist/{SourceOfFundsPage-BxLGXTHb.js → SourceOfFundsPage-CI1qdFId.js} +18 -17
- package/dist/{StoreProvider-ClKLaHzy.js → StoreProvider-O9jwxfG8.js} +5192 -4367
- package/dist/{TaskItemStatus-DrTIwCTx.js → TaskItemStatus-s7Z3DOGa.js} +12 -12
- package/dist/{TaskStatusIndicator-CTtKjo0m.js → TaskStatusIndicator-BanufME0.js} +5 -5
- package/dist/{TaxReportingDropin-DFZ2ehfk.js → TaxReportingDropin-BQqDUn9I.js} +8 -8
- package/dist/{TileGroup-BtE472I1.js → TileGroup-tu04B8GK.js} +2 -2
- package/dist/{TrustDetailsPage-CGiiTbfR.js → TrustDetailsPage-BQKZ_ZyU.js} +28 -15
- package/dist/{TrustMemberCompanyPage-oLNhg0hg.js → TrustMemberCompanyPage-C9aFr4Bm.js} +5 -5
- package/dist/{TrustMemberIndividualPage-Bgsis586.js → TrustMemberIndividualPage-Ci7hwMA_.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DPE3grqL.js → UnincorporatedPartnershipIndividualPage-XQsgF3ou.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js → UnincorporatedPartnershipMemberCompanyPage-DFe_N3gH.js} +4 -4
- package/dist/{VerificationErrorAlert-BBdJmGJu.js → VerificationErrorAlert-Ci0cObw1.js} +13 -4
- package/dist/{ViewVerificationStatusComponent-DDtXG_pM.js → ViewVerificationStatusComponent-_qQmZFDY.js} +14 -12
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +31 -22
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/bg-BG-9uVrFuHv.js +23 -0
- package/dist/bg-BG-BiYtb1Tz.js +55 -0
- package/dist/bg-BG-CMomhopf.js +35 -0
- package/dist/bg-BG-Dy6-IwuZ.js +28 -0
- package/dist/bg-BG-NMIts2sa.js +35 -0
- package/dist/{plaintext-9WNCwUtz.js → bg-BG-hFblesn-.js} +4 -6
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/{_plugin-vue_export-helper-CgYpM5kA.js → cs-CZ-B8IPRc47.js} +4 -8
- package/dist/cs-CZ-Csr_35T-.js +35 -0
- package/dist/cs-CZ-DMzortvO.js +35 -0
- package/dist/cs-CZ-Dbow28-o.js +28 -0
- package/dist/cs-CZ-Wzc382q6.js +23 -0
- package/dist/cs-CZ-wdftovLe.js +55 -0
- package/dist/da-DK-4QAKic_C.js +55 -0
- package/dist/da-DK-Adj8R5Qn.js +28 -0
- package/dist/da-DK-BTpZzEgA.js +15 -0
- package/dist/da-DK-CeNMXUfE.js +23 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/de-DE-BG0tKqvi.js +28 -0
- package/dist/de-DE-BzumFI3T.js +55 -0
- package/dist/de-DE-D2ByeIZs.js +35 -0
- package/dist/de-DE-DMFaycio.js +35 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-CXmTklMq.js +55 -0
- package/dist/el-GR-Cu9HwD-f.js +15 -0
- package/dist/el-GR-DGW388LZ.js +35 -0
- package/dist/el-GR-DerT143K.js +28 -0
- package/dist/el-GR-DfNOPkLq.js +23 -0
- package/dist/en-US-BQpgt41j.js +37 -0
- package/dist/en-US-BTYdAWXp.js +15 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/en-US-CkZcSKGh.js +35 -0
- package/dist/en-US-DHq7VYFs.js +23 -0
- package/dist/en-US-DLm6gy6T.js +58 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BM4U0hT3.js +28 -0
- package/dist/es-ES-BhQOdKge.js +55 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-WWftn3JX.js +35 -0
- package/dist/es-ES-pXHx3ODy.js +35 -0
- package/dist/et-EE-BJIsPOnh.js +23 -0
- package/dist/et-EE-CFlzRBEx.js +55 -0
- package/dist/et-EE-D5lRJbMZ.js +35 -0
- package/dist/et-EE-Dor3enPS.js +15 -0
- package/dist/et-EE-OJg_PSHf.js +28 -0
- package/dist/et-EE-QLVnr6Vl.js +35 -0
- package/dist/fi-FI-BJ2l42Pj.js +28 -0
- package/dist/fi-FI-BNcnKrJ9.js +15 -0
- package/dist/fi-FI-D522KHGk.js +23 -0
- package/dist/fi-FI-D9E_KaJi.js +35 -0
- package/dist/fi-FI-DT351N-G.js +35 -0
- package/dist/fi-FI-Djollt2G.js +55 -0
- package/dist/fr-FR-BNXXNUX_.js +35 -0
- package/dist/fr-FR-Bn3D6mmY.js +15 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-g7lmxEsI.js +28 -0
- package/dist/fr-FR-l36qBV3a.js +55 -0
- package/dist/{getFieldsWithExistingData-BY--eXBQ.js → getFieldsWithExistingData-7pZnHro-.js} +2 -2
- package/dist/{hasDataChanged-CwfuS4et.js → hasDataChanged-v0hD-nEq.js} +2 -2
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CDUE36Dg.js +28 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CzSrqEFA.js +35 -0
- package/dist/hr-HR-DTCY4iL8.js +55 -0
- package/dist/hr-HR-DzS44Gpv.js +23 -0
- package/dist/hu-HU-BSOiZA7a.js +15 -0
- package/dist/hu-HU-Bmf13NMf.js +28 -0
- package/dist/hu-HU-BznXPoc2.js +55 -0
- package/dist/hu-HU-DRi6Dz9U.js +35 -0
- package/dist/hu-HU-xCvNM5TU.js +23 -0
- package/dist/hu-HU-zK6nUqWr.js +35 -0
- package/dist/it-IT-BEWyAQUU.js +55 -0
- package/dist/it-IT-BeYbInCQ.js +35 -0
- package/dist/it-IT-C_fNHhjE.js +35 -0
- package/dist/it-IT-CjEYONJg.js +23 -0
- package/dist/it-IT-DYIx7myn.js +28 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-D7oL6xGY.js +55 -0
- package/dist/ja-JP-GXkLvnQ4.js +15 -0
- package/dist/ja-JP-tx1DbZYD.js +28 -0
- package/dist/ja-JP-weDU8GLW.js +35 -0
- package/dist/{localizeDateString-CKCBXzSn.js → localizeDateString-BlZ_CtJI.js} +2 -2
- package/dist/lt-LT-B6CJ4ULI.js +23 -0
- package/dist/lt-LT-BUYY0LaT.js +35 -0
- package/dist/lt-LT-BxScCodJ.js +28 -0
- package/dist/lt-LT-DNjXmQPv.js +15 -0
- package/dist/lt-LT-De7dLXxI.js +55 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-CRhXAjn6.js +35 -0
- package/dist/lv-LV-ChOoZuhc.js +15 -0
- package/dist/lv-LV-DTtuyfHS.js +23 -0
- package/dist/lv-LV-De9rdme0.js +55 -0
- package/dist/lv-LV-F9_Fiu3w.js +28 -0
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-D_6u_bSS.js → mapFinancialReportsToFinancialInformation-DrS0xN6i.js} +2 -2
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-Cht7cSwD.js +28 -0
- package/dist/nl-NL-DLedC3mO.js +35 -0
- package/dist/nl-NL-Dbx0ZmI7.js +35 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/nl-NL-lZcJhRsP.js +55 -0
- package/dist/no-NO-BEIyAMmZ.js +55 -0
- package/dist/no-NO-BQAqVzF4.js +28 -0
- package/dist/no-NO-BxReX6oF.js +23 -0
- package/dist/no-NO-C0sfkp82.js +35 -0
- package/dist/no-NO-CKT9kLAH.js +15 -0
- package/dist/no-NO-CpVal4cV.js +35 -0
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/pl-PL-1ylK-_FE.js +35 -0
- package/dist/pl-PL-CqxMKpBm.js +28 -0
- package/dist/pl-PL-D6heiKsH.js +15 -0
- package/dist/pl-PL-DAPGaxWi.js +35 -0
- package/dist/pl-PL-DD3wVcKc.js +55 -0
- package/dist/pl-PL-T6uD5--R.js +23 -0
- package/dist/pt-PT-BY9rcwcF.js +35 -0
- package/dist/pt-PT-BkvMsoK4.js +35 -0
- package/dist/pt-PT-BsDCHbWN.js +55 -0
- package/dist/pt-PT-CBbmkr_J.js +28 -0
- package/dist/pt-PT-D2elvnDU.js +15 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-DQH1ab0S.js → resolveEnvironment-DvSgDDo8.js} +3 -3
- package/dist/ro-RO-CUg8-CQ8.js +55 -0
- package/dist/ro-RO-DJLWmWZ4.js +35 -0
- package/dist/ro-RO-DL9V1CMj.js +15 -0
- package/dist/ro-RO-Dfx0g3bU.js +35 -0
- package/dist/ro-RO-IY3AMhwm.js +28 -0
- package/dist/ro-RO-Ic1SzBgx.js +23 -0
- package/dist/{rules-CCnLDGvk.js → rules-Meybz2dk.js} +13 -13
- package/dist/sk-SK-B7o3L57C.js +35 -0
- package/dist/sk-SK-BDKRZ2mM.js +28 -0
- package/dist/sk-SK-BSioQTMW.js +15 -0
- package/dist/sk-SK-CiD0FeLN.js +23 -0
- package/dist/sk-SK-Cjrkrb85.js +55 -0
- package/dist/sk-SK-iO863_t2.js +35 -0
- package/dist/sl-SI-BB0suyr1.js +28 -0
- package/dist/sl-SI-BE_ndzZ2.js +55 -0
- package/dist/sl-SI-BylvpF-X.js +15 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +690 -628
- package/dist/styles-CLV89_hH.js +690 -628
- package/dist/sv-SE-BryiIPVv.js +55 -0
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-DCFSf4Oj.js +23 -0
- package/dist/sv-SE-DYruQSzt.js +28 -0
- package/dist/sv-SE-Dwz1yTrB.js +15 -0
- package/dist/sv-SE-OPOHtqtP.js +35 -0
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
- package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
- package/dist/types/components/Business/forms/rules.d.ts +26 -8
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +31 -29
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +1 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
- package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -6
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +12 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
- package/dist/types/components/ui/molecules/Alert/VerificationErrorAlert.d.ts +1 -1
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +46 -38
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/models/api/company-types-value.d.ts +12 -11
- package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
- package/dist/types/core/models/api/entity-type.d.ts +5 -4
- package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
- package/dist/types/core/models/api/verification-error.d.ts +8 -7
- package/dist/types/core/models/api/verification-status.d.ts +7 -6
- package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/types.d.ts +2 -0
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -3
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/regex/patternValidators.d.ts +1 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/{useMultiForm-KQwxav4F.js → useMultiForm-BQmE_nfY.js} +2 -2
- package/dist/{useOnboardingStatus-BMyj9Pwn.js → useOnboardingStatus-DJdV6bAG.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CBHKWYSb.js → useTermsOfServiceStatus-BX4GiDbz.js} +2 -2
- package/dist/{useUpdateLegalEntity-D8dw9Oc3.js → useUpdateLegalEntity-BfnvHQJj.js} +2 -2
- package/dist/{utils-CL9qlD-O.js → utils-1zLleVnu.js} +17 -17
- package/dist/{validate-CuwYJGc9.js → validate-BweJRQFE.js} +9 -3
- package/dist/{validate-CeF0YKvL.js → validate-Cy6vBhF2.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +7 -32
- package/dist/LandingLayout-B45lEjOv.js +0 -84
- package/dist/ManagePCIComponent-BgdGfAuT.js +0 -33
- package/dist/RootBusinessDetailsPage-q_6wAcer.js +0 -42
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -55
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js +0 -57
- package/dist/bg-BG-HpLj_LOM.js +0 -16
- package/dist/cs-CZ-CQ_M3lEp.js +0 -16
- package/dist/css-BJGWcW8A.js +0 -24
- package/dist/da-DK-k4JW3iVF.js +0 -16
- package/dist/de-DE-C7mjtS5w.js +0 -16
- package/dist/el-GR-CEQrkYHW.js +0 -16
- package/dist/en-US-DDagIr01.js +0 -16
- package/dist/es-ES-DB1c74Kv.js +0 -16
- package/dist/et-EE-xIegUSuv.js +0 -16
- package/dist/fi-FI-NCxneAqU.js +0 -16
- package/dist/fr-FR-daiUnUwo.js +0 -16
- package/dist/hr-HR-BAUywqDj.js +0 -16
- package/dist/hu-HU-3GQojIHR.js +0 -16
- package/dist/it-IT-pDWPFHEh.js +0 -16
- package/dist/ja-JP-scPXJ93L.js +0 -16
- package/dist/json-Dk6RRAV8.js +0 -31
- package/dist/lt-LT-BcGNy8Ti.js +0 -16
- package/dist/lv-LV-CBD07r1Y.js +0 -16
- package/dist/nl-NL-BxJUDHMK.js +0 -16
- package/dist/no-NO-Drup6Jyy.js +0 -16
- package/dist/pl-PL-BXv8Mmzb.js +0 -16
- package/dist/preact/adyen-individual.js +0 -15
- package/dist/preact/adyen-manage-individual.js +0 -15
- package/dist/preact/adyen-terms-of-service.js +0 -16
- package/dist/preact/adyen-transfer-instrument.js +0 -16
- package/dist/pt-PT-D8nU-UM2.js +0 -16
- package/dist/ro-RO-CG33OwqS.js +0 -16
- package/dist/sk-SK-DV_xkO69.js +0 -16
- package/dist/sl-SI-B5yeoadY.js +0 -16
- package/dist/sv-SE-CfxyR53r.js +0 -16
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
- package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
- package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -14
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -45
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-43TfSoxc.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -31
- package/dist/yaml-CBkrSAtc.js +0 -22
|
@@ -2,24 +2,24 @@
|
|
|
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] = "cfe534b6-6e6d-48d8-b10f-96ac912068e6", e._sentryDebugIdIdentifier = "sentry-dbid-cfe534b6-6e6d-48d8-b10f-96ac912068e6");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
16
|
-
import { u as useSingpassMyInfoLogin,
|
|
17
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
18
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
19
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
20
|
-
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-
|
|
12
|
+
import { a as useApiContext, bp as useMutation, t as httpPost, bX as matchesRegex, bY as trimValWithOneSpace, bZ as NO_ALPHABET_REGEX, b_ as EMOJI_REGEX, b$ as hasRepeatedCharacters, c0 as isInvalidName, c1 as INDIVIDUAL_VALID_CHAR_REGEX, c2 as getFormattingRegEx, c3 as SPECIAL_CHARS, c4 as standardKatakanaValidator, c5 as standardKanjiValidator, av as resolveFieldMetadata, as as CountryCodes, c6 as getSSNType, at as isEmpty, c7 as defaultFieldMetadata, c8 as defaultFieldConfig, c9 as defaultFieldMetadata$1, ca as fieldConfig, $ as TaskTypes, cb as taxInformationDefaultFieldMetadata, O as LegalEntityTypes, cc as taxInformationDefaultFieldConfig, cd as getAgeToday, ce as euCountries, cf as getIdDocument, cg as getDocument, ch as mapExistingFile, ci as getPageName, cj as getLocalizedIdDocumentTypeOptions, ck as getPage, cl as createDocumentRequest, bA as formatObject, cm as individualApiKeyMapping, b7 as individualComponentsKeyMapping, bz as reverseMapping, cn as getNomineeFromAssociation, co as drop, a0 as createLogger, X as useAccountHolder, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, v as useSettingsContext, cp as documentApiUtils, cq as useProviderStatus, g as getLegalEntityCountry, bP as getAssociatedLeAnalyticsPayload, cr as addressValidators, cs as getAsyncIdNumberValidationRule, ct as getAsyncPhoneValidationRules, cu as addressFormatters, cv as useScenarios, cw as setHasMotionCaptureScenario, cx as useScenarioConfiguration, cy as getPropsFromConfigurations, cz as individualForms, cA as showIndividualMotionCapture, bQ as getRequiredForms, bR as addValidityToForms, cB as getAllowedDecisionMakerRoles, ba as datasetUtilities, bS as useFormComposer, bT as trackNavigation, cC as Individual, cD as composePerScenarioFormConfigurations, cE as omitObscuredFieldsIfUnchanged, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, bk as cloneObject, cG as mapAddressLabels, cH as individualDocumentForms, cI as individualDocumentMapping, cJ as individualObscuredFields, cK as mergeAttachments, cL as getFileExtention, ao as getOwnEntityAssociations, cM as hasNomineesChanged, cN as attachNomineeToRole, cO as idVerificationProviderId, cP as doArraysMatch, N as Typography, G as Button, aD as Field, cQ as DecisionMakerTypes, cR as createFormRules, cS as getAvailableDecisionMakerRoleTypes, cT as allowedCountriesForNominee, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, cU as Scenarios, cV as isLowRiskCountry, bu as Select, cW as isTruthyValidator, cX as licenseCardNumberDefaultMetadata, cY as licenseCardNumberDefaultConfig, au as mergeFieldMetadataIntoProps, c as useTranslation, aC as createFormUtils, bK as useFormContext, az as getFieldProps, cZ as idNumberFields, c_ as IdentityNumber, c$ as additionallIdNumberOptions, d0 as MaskedInput, bJ as InputDate, d1 as formatDateObj, d2 as DriversLicense, d3 as addressFields, b as useAllowedCountries, w as SettingNames, F as FormHeader, aB as ErrorPanel, aJ as CountryField, bN as Address, bO as getAddressSchemaLabelsByCountry, bD as Link, bi as Confirm, d4 as getAgeRangeForLegalRepresentative, d5 as IndividualIdNumberTypeSelector, d6 as TaxInformationField, bE as InputText, d7 as PatriotActDisclosure, d8 as isLegalRepresentativeNeeded, aA as nameFields, d9 as decisionMakerRoleFields, da as nomineeFields, db as contactDetailFields, K as Alert, aZ as ContextGuidance, b4 as TrustedFieldsProviders, dc as DecisionMakerRole, dd as NomineeDecisionMakerRole, de as LocalizedNameFields, df as ContactDetails, dg as keysOf, b3 as objectsDeepEqual, dh as isEmpty$1, di as RadioWithLabel, dj as listToRecord, bc as Modal, dk as pick, dl as IdVerification, bh as Spacer, a2 as IconButton, e as useDataset, f as datasetIdentifier, L as Loader, H as Svg, dm as IdDocumentManualUpload, M as translateStringOrObject, aX as Trans, dn as idDocumentUploadFields, dp as useFormRouterContext, dq as getFormProps, dr as useCapabilities, ds as hasMotionCaptureScenario, dt as setShowIndividualMotionCapture, du as shouldShowMotionCapture, dv as MemoizedProofOfRelationship, dw as MemoizedDocumentUpload, dx as MemoizedProofOfResidencyUpload, dy as individualOnfidoApiKeyMapping, dz as individualOnfidoBaseMapping, br as useQueryClient, dA as individualOnfidoDocumentMapping, dB as individualOnfidoObscuredFields } from "./StoreProvider-O9jwxfG8.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BfnvHQJj.js";
|
|
14
|
+
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-Cy6vBhF2.js";
|
|
15
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNXkXUwa.js";
|
|
16
|
+
import { u as useSingpassMyInfoLogin, L as LandingLayout } from "./LandingLayout-BC3pp_IY.js";
|
|
17
|
+
import { u as useMultiForm } from "./useMultiForm-BQmE_nfY.js";
|
|
18
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-7pZnHro-.js";
|
|
19
|
+
import { l as localizeDateString } from "./localizeDateString-BlZ_CtJI.js";
|
|
20
|
+
import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./rules-Meybz2dk.js";
|
|
21
21
|
import { signal, computed } from "@preact/signals";
|
|
22
|
-
import { T as TileGroup } from "./TileGroup-
|
|
22
|
+
import { T as TileGroup } from "./TileGroup-tu04B8GK.js";
|
|
23
23
|
const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
|
|
24
24
|
return await httpPost(
|
|
25
25
|
{
|
|
@@ -184,7 +184,7 @@ const personalDetailsValidators = ({
|
|
|
184
184
|
taxInformationDefaultFieldConfig[country],
|
|
185
185
|
{
|
|
186
186
|
taxIdNumberType,
|
|
187
|
-
companyType:
|
|
187
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
188
188
|
},
|
|
189
189
|
taxInformationDefaultFieldMetadata
|
|
190
190
|
)?.validators,
|
|
@@ -374,7 +374,7 @@ const mapIndividualToLegalEntity = (data) => {
|
|
|
374
374
|
const requestObj = {
|
|
375
375
|
...formatObject(data, individualApiKeyMapping)
|
|
376
376
|
};
|
|
377
|
-
requestObj.type =
|
|
377
|
+
requestObj.type = LegalEntityTypes.INDIVIDUAL;
|
|
378
378
|
const { personalDetails } = data;
|
|
379
379
|
if (!personalDetails) return requestObj;
|
|
380
380
|
requestObj.individual.identificationData = adjustIdentificationData(
|
|
@@ -806,7 +806,7 @@ function IndividualDropin({
|
|
|
806
806
|
useEffect(() => {
|
|
807
807
|
setCountry(data?.personalDetails?.residencyCountry ?? parentCountry);
|
|
808
808
|
}, [data?.personalDetails?.residencyCountry, parentCountry]);
|
|
809
|
-
const { data: scenarios } = useScenarios(country,
|
|
809
|
+
const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
|
|
810
810
|
useEffect(() => {
|
|
811
811
|
if (!scenarios) return;
|
|
812
812
|
setHasMotionCaptureScenario(scenarios);
|
|
@@ -814,7 +814,7 @@ function IndividualDropin({
|
|
|
814
814
|
}, [scenarios]);
|
|
815
815
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
816
816
|
parseConfiguration: parseConfiguration$1,
|
|
817
|
-
legalEntityType:
|
|
817
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
818
818
|
setLoadingStatus,
|
|
819
819
|
country
|
|
820
820
|
});
|
|
@@ -902,7 +902,7 @@ function IndividualDropin({
|
|
|
902
902
|
}).catch(() => {
|
|
903
903
|
showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
|
|
904
904
|
});
|
|
905
|
-
}, []);
|
|
905
|
+
}, [legalEntityResponse]);
|
|
906
906
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
907
907
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
908
908
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
|
|
@@ -1317,7 +1317,7 @@ const additionalPersonalDetailsValidators = ({
|
|
|
1317
1317
|
taxInformationDefaultFieldConfig[country],
|
|
1318
1318
|
{
|
|
1319
1319
|
taxIdNumberType,
|
|
1320
|
-
companyType:
|
|
1320
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
1321
1321
|
},
|
|
1322
1322
|
taxInformationDefaultFieldMetadata
|
|
1323
1323
|
)?.validators,
|
|
@@ -1363,15 +1363,14 @@ const basicDetailsValidators = ({
|
|
|
1363
1363
|
});
|
|
1364
1364
|
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
1365
1365
|
const options = "adyen-kyc-options";
|
|
1366
|
-
const styles$
|
|
1366
|
+
const styles$4 = {
|
|
1367
1367
|
guidanceQuestion,
|
|
1368
1368
|
options
|
|
1369
1369
|
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
})(GuidanceQuestionValues || {});
|
|
1370
|
+
const GuidanceQuestionValues = {
|
|
1371
|
+
YES: "Yes",
|
|
1372
|
+
NO: "No"
|
|
1373
|
+
};
|
|
1375
1374
|
const GuidanceQuestion = (props) => {
|
|
1376
1375
|
const {
|
|
1377
1376
|
descriptionLinkText,
|
|
@@ -1397,10 +1396,10 @@ const GuidanceQuestion = (props) => {
|
|
|
1397
1396
|
};
|
|
1398
1397
|
const yesTileLabel = yesLabel ?? i18n.get("yes");
|
|
1399
1398
|
const noTileLabel = noLabel ?? i18n.get("no");
|
|
1400
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$
|
|
1399
|
+
return /* @__PURE__ */ jsxs("div", { className: styles$4.guidanceQuestion, children: [
|
|
1401
1400
|
/* @__PURE__ */ jsx(Typography, { variant: "body", el: "p", children: question }),
|
|
1402
1401
|
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: onDescriptionLinkClick, children: descriptionLinkText }),
|
|
1403
|
-
/* @__PURE__ */ jsx(Field, { name, className: styles$
|
|
1402
|
+
/* @__PURE__ */ jsx(Field, { name, className: styles$4.options, children: () => /* @__PURE__ */ jsx(
|
|
1404
1403
|
TileGroup,
|
|
1405
1404
|
{
|
|
1406
1405
|
allowMultiple: false,
|
|
@@ -1411,16 +1410,8 @@ const GuidanceQuestion = (props) => {
|
|
|
1411
1410
|
onChange: handleChange,
|
|
1412
1411
|
selected: value || "",
|
|
1413
1412
|
tiles: [
|
|
1414
|
-
{
|
|
1415
|
-
|
|
1416
|
-
value: "Yes"
|
|
1417
|
-
/* YES */
|
|
1418
|
-
},
|
|
1419
|
-
{
|
|
1420
|
-
label: noTileLabel,
|
|
1421
|
-
value: "No"
|
|
1422
|
-
/* NO */
|
|
1423
|
-
}
|
|
1413
|
+
{ label: yesTileLabel, value: GuidanceQuestionValues.YES },
|
|
1414
|
+
{ label: noTileLabel, value: GuidanceQuestionValues.NO }
|
|
1424
1415
|
]
|
|
1425
1416
|
}
|
|
1426
1417
|
) })
|
|
@@ -1438,19 +1429,19 @@ const calculateRoles = (data) => {
|
|
|
1438
1429
|
const roleMappings = [
|
|
1439
1430
|
{
|
|
1440
1431
|
isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
|
|
1441
|
-
role:
|
|
1432
|
+
role: DecisionMakerTypes.SIGNATORY
|
|
1442
1433
|
},
|
|
1443
1434
|
{
|
|
1444
1435
|
isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
|
|
1445
|
-
role:
|
|
1436
|
+
role: DecisionMakerTypes.OWNER
|
|
1446
1437
|
},
|
|
1447
1438
|
{
|
|
1448
1439
|
isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
|
|
1449
|
-
role:
|
|
1440
|
+
role: DecisionMakerTypes.CONTROLLING_PERSON
|
|
1450
1441
|
},
|
|
1451
1442
|
{
|
|
1452
1443
|
isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
|
|
1453
|
-
role:
|
|
1444
|
+
role: DecisionMakerTypes.DIRECTOR
|
|
1454
1445
|
}
|
|
1455
1446
|
];
|
|
1456
1447
|
return roleMappings.filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
|
|
@@ -1490,8 +1481,8 @@ const TAX_ID_REQUIRED_COUNTRIES = [
|
|
|
1490
1481
|
CountryCodes.France
|
|
1491
1482
|
];
|
|
1492
1483
|
const DECISION_MAKER_TYPES_WITH_JOBTITLE = [
|
|
1493
|
-
|
|
1494
|
-
|
|
1484
|
+
DecisionMakerTypes.SIGNATORY,
|
|
1485
|
+
DecisionMakerTypes.CONTROLLING_PERSON
|
|
1495
1486
|
];
|
|
1496
1487
|
const ID_MISSING_DATA_ERROR_CODE = "2_8071";
|
|
1497
1488
|
const individualOnfidoRules = ({
|
|
@@ -1513,10 +1504,10 @@ const individualOnfidoRules = ({
|
|
|
1513
1504
|
if (!data.basicDetails?.role) {
|
|
1514
1505
|
return REQUIRED;
|
|
1515
1506
|
}
|
|
1516
|
-
if (data.basicDetails?.role?.some((role) => role !==
|
|
1507
|
+
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
|
|
1517
1508
|
return REQUIRED;
|
|
1518
1509
|
}
|
|
1519
|
-
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role ===
|
|
1510
|
+
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
|
|
1520
1511
|
return REQUIRED;
|
|
1521
1512
|
}
|
|
1522
1513
|
},
|
|
@@ -1527,13 +1518,13 @@ const individualOnfidoRules = ({
|
|
|
1527
1518
|
if (!data.basicDetails?.role) {
|
|
1528
1519
|
return REQUIRED;
|
|
1529
1520
|
}
|
|
1530
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role ===
|
|
1521
|
+
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
1531
1522
|
return void 0;
|
|
1532
1523
|
}
|
|
1533
|
-
if (data.basicDetails?.role?.some((role) => role !==
|
|
1524
|
+
if (data.basicDetails?.role?.some((role) => role !== DecisionMakerTypes.DIRECTOR)) {
|
|
1534
1525
|
return REQUIRED;
|
|
1535
1526
|
}
|
|
1536
|
-
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role ===
|
|
1527
|
+
if (ID_NUMBER_REQUIRED_FOR_DIRECTOR_COUNTRIES.includes(country) && data.basicDetails?.role?.some((role) => role === DecisionMakerTypes.DIRECTOR)) {
|
|
1537
1528
|
return REQUIRED;
|
|
1538
1529
|
}
|
|
1539
1530
|
},
|
|
@@ -1546,7 +1537,7 @@ const individualOnfidoRules = ({
|
|
|
1546
1537
|
if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO)) {
|
|
1547
1538
|
return void 0;
|
|
1548
1539
|
}
|
|
1549
|
-
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role ===
|
|
1540
|
+
if (country === CountryCodes.UnitedStates && data.basicDetails?.role?.every((role) => role === DecisionMakerTypes.SIGNATORY)) {
|
|
1550
1541
|
return void 0;
|
|
1551
1542
|
}
|
|
1552
1543
|
if (ID_NUMBER_EXEMPT_COUNTRIES.includes(country)) {
|
|
@@ -1567,6 +1558,9 @@ const individualOnfidoRules = ({
|
|
|
1567
1558
|
if (data.proofOfResidency?.proofOfResidency?.length) {
|
|
1568
1559
|
return REQUIRED;
|
|
1569
1560
|
}
|
|
1561
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1562
|
+
return void 0;
|
|
1563
|
+
}
|
|
1570
1564
|
const isInstantFlow = data?.idVerificationMethod?.idVerificationMethod === "instantVerification";
|
|
1571
1565
|
if (!isInstantFlow) {
|
|
1572
1566
|
return void 0;
|
|
@@ -1587,9 +1581,15 @@ const individualOnfidoRules = ({
|
|
|
1587
1581
|
return REQUIRED;
|
|
1588
1582
|
}
|
|
1589
1583
|
},
|
|
1584
|
+
isIdVerificationMethodRequired: () => {
|
|
1585
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1586
|
+
return void 0;
|
|
1587
|
+
}
|
|
1588
|
+
return REQUIRED;
|
|
1589
|
+
},
|
|
1590
1590
|
contactsIfRequiredForRole: () => {
|
|
1591
1591
|
if (taskType === TaskTypes.DECISION_MAKER) {
|
|
1592
|
-
if (data.basicDetails?.role?.includes(
|
|
1592
|
+
if (data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY)) {
|
|
1593
1593
|
return REQUIRED;
|
|
1594
1594
|
}
|
|
1595
1595
|
return;
|
|
@@ -1605,7 +1605,15 @@ const individualOnfidoRules = ({
|
|
|
1605
1605
|
return REQUIRED;
|
|
1606
1606
|
}
|
|
1607
1607
|
},
|
|
1608
|
+
isPlaceOfBirthRequired: () => {
|
|
1609
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1610
|
+
return REQUIRED;
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1608
1613
|
nationalityIfRequiredForRole: () => {
|
|
1614
|
+
if (taskType === TaskTypes.DECISION_MAKER && data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN)) {
|
|
1615
|
+
return REQUIRED;
|
|
1616
|
+
}
|
|
1609
1617
|
const enableNationalitySGHK = isExperimentEnabled("EnableNationalitySGHK");
|
|
1610
1618
|
const rootLegalEntityCountry = rootLegalEntity?.organization?.registeredAddress.country;
|
|
1611
1619
|
if (enableNationalitySGHK && rootLegalEntityCountry && NATIONALITY_REQUIRED_FOR_COUNTRIES.includes(rootLegalEntityCountry)) {
|
|
@@ -1659,12 +1667,12 @@ const individualOnfidoRules = ({
|
|
|
1659
1667
|
return addressSchema.includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
|
|
1660
1668
|
},
|
|
1661
1669
|
nomineeDirectorRequiredForCountry: () => {
|
|
1662
|
-
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(
|
|
1670
|
+
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) {
|
|
1663
1671
|
return "REQUIRED";
|
|
1664
1672
|
}
|
|
1665
1673
|
},
|
|
1666
1674
|
nomineeShareHolderRequiredForCountry: () => {
|
|
1667
|
-
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(
|
|
1675
|
+
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.OWNER)) {
|
|
1668
1676
|
return "REQUIRED";
|
|
1669
1677
|
}
|
|
1670
1678
|
},
|
|
@@ -1706,9 +1714,9 @@ const individualOnfidoRules = ({
|
|
|
1706
1714
|
}
|
|
1707
1715
|
},
|
|
1708
1716
|
isDirectorRequiredForCountry: () => {
|
|
1709
|
-
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country);
|
|
1717
|
+
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(country, matchingScenario);
|
|
1710
1718
|
const isDirectorRequired = availableDecisionMakers.some(
|
|
1711
|
-
(maker) => maker.roleType ===
|
|
1719
|
+
(maker) => maker.roleType === DecisionMakerTypes.DIRECTOR
|
|
1712
1720
|
);
|
|
1713
1721
|
if (isDirectorRequired) {
|
|
1714
1722
|
return "REQUIRED";
|
|
@@ -1836,8 +1844,8 @@ function Identity(props) {
|
|
|
1836
1844
|
)
|
|
1837
1845
|
);
|
|
1838
1846
|
}, [country, data?.typeOfIdentity, initialFormUtilProps, licenseCardNumberMetaData]);
|
|
1839
|
-
const {
|
|
1840
|
-
const formUtils = useMemo(() => createFormUtils(mergedProps,
|
|
1847
|
+
const { t } = useTranslation();
|
|
1848
|
+
const formUtils = useMemo(() => createFormUtils(mergedProps, t), [mergedProps, t]);
|
|
1841
1849
|
const { form } = useFormContext();
|
|
1842
1850
|
const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
|
|
1843
1851
|
const ssnType = getSSNType(formVerificationErrors, defaultIdNumber);
|
|
@@ -1913,7 +1921,7 @@ function Identity(props) {
|
|
|
1913
1921
|
...childProps,
|
|
1914
1922
|
name: "expiryDate",
|
|
1915
1923
|
value: data?.expiryDate,
|
|
1916
|
-
placeholder:
|
|
1924
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
1917
1925
|
readonly: formUtils.isReadOnly("expiryDate"),
|
|
1918
1926
|
onInput: handleFieldChange("expiryDate", "input"),
|
|
1919
1927
|
onBlur: handleFieldChange("expiryDate", "blur"),
|
|
@@ -1997,15 +2005,17 @@ const additionalPersonalDetailsFields = [
|
|
|
1997
2005
|
...additionalIdentityInfoFields,
|
|
1998
2006
|
"country",
|
|
1999
2007
|
"nationality",
|
|
2008
|
+
"placeOfBirth",
|
|
2000
2009
|
...addressFields,
|
|
2001
2010
|
"taxInformation"
|
|
2002
2011
|
];
|
|
2003
2012
|
function AdditionalPersonalDetails(props) {
|
|
2004
|
-
const {
|
|
2013
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
2005
2014
|
const allowedCountries = useAllowedCountries();
|
|
2006
2015
|
const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState(false);
|
|
2007
2016
|
const { isSettingEnabled } = useSettingsContext();
|
|
2008
2017
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
2018
|
+
const { form } = useFormContext();
|
|
2009
2019
|
const isExperimentAgeVerificationEnabled = isExperimentEnabled("EnableAgeVerification");
|
|
2010
2020
|
const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
|
|
2011
2021
|
const {
|
|
@@ -2023,22 +2033,21 @@ function AdditionalPersonalDetails(props) {
|
|
|
2023
2033
|
const country = data?.country ?? defaultCountry;
|
|
2024
2034
|
const isIndividual = taskType === TaskTypes.INDIVIDUAL;
|
|
2025
2035
|
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
2026
|
-
const [taxIdNumberType, setTaxIdNumberType] = useState(
|
|
2027
|
-
getDefaultTaxIdNumberType(data?.taxInformation, country, LegalEntityType.INDIVIDUAL)
|
|
2028
|
-
);
|
|
2029
2036
|
const mergedProps = mergeFieldMetadataIntoProps(
|
|
2030
2037
|
"taxInformation",
|
|
2031
2038
|
resolveFieldMetadata(
|
|
2032
2039
|
taxInformationDefaultFieldConfig[country],
|
|
2033
2040
|
{
|
|
2034
|
-
taxIdNumberType
|
|
2035
|
-
|
|
2041
|
+
taxIdNumberType: form.data?.additionalPersonalDetails?.taxInformation?.find(
|
|
2042
|
+
(taxId) => taxId.country === country
|
|
2043
|
+
)?.type,
|
|
2044
|
+
companyType: LegalEntityTypes.INDIVIDUAL
|
|
2036
2045
|
},
|
|
2037
2046
|
taxInformationDefaultFieldMetadata
|
|
2038
2047
|
),
|
|
2039
2048
|
props
|
|
2040
2049
|
);
|
|
2041
|
-
const formUtils = createFormUtils(mergedProps,
|
|
2050
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
2042
2051
|
const birthDateErrorMessage = formUtils.getErrorMessage(
|
|
2043
2052
|
"birthDate",
|
|
2044
2053
|
errors,
|
|
@@ -2067,8 +2076,8 @@ function AdditionalPersonalDetails(props) {
|
|
|
2067
2076
|
}
|
|
2068
2077
|
),
|
|
2069
2078
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2070
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2071
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children:
|
|
2079
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["residentialAddress"]) }),
|
|
2080
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thisPersonsPrimaryAddress"], { ns: "individual" }) })
|
|
2072
2081
|
] }),
|
|
2073
2082
|
formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(
|
|
2074
2083
|
CountryField,
|
|
@@ -2100,11 +2109,11 @@ function AdditionalPersonalDetails(props) {
|
|
|
2100
2109
|
}
|
|
2101
2110
|
),
|
|
2102
2111
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
|
|
2103
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children:
|
|
2112
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["personalIdentityDetails"], { ns: "individual" }) }),
|
|
2104
2113
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "body", children: [
|
|
2105
|
-
|
|
2114
|
+
t(($) => $["weOnlyUseTheseDetailsForIdentityVerification"], { ns: "individual" }),
|
|
2106
2115
|
" ",
|
|
2107
|
-
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children:
|
|
2116
|
+
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
|
|
2108
2117
|
] })
|
|
2109
2118
|
] }),
|
|
2110
2119
|
formUtils.isRequiredField("birthDate") && /* @__PURE__ */ jsx(
|
|
@@ -2120,7 +2129,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
2120
2129
|
...childProps,
|
|
2121
2130
|
name: "birthDate",
|
|
2122
2131
|
value: data?.birthDate,
|
|
2123
|
-
placeholder:
|
|
2132
|
+
placeholder: t(($) => $["datePlaceholder"]),
|
|
2124
2133
|
readonly: formUtils.isReadOnly("birthDate"),
|
|
2125
2134
|
onInput: handleFieldChange("birthDate", "input"),
|
|
2126
2135
|
onBlur: handleBirthDateChange,
|
|
@@ -2134,15 +2143,16 @@ function AdditionalPersonalDetails(props) {
|
|
|
2134
2143
|
showLegalRepresentativePrompt && /* @__PURE__ */ jsx(
|
|
2135
2144
|
Confirm,
|
|
2136
2145
|
{
|
|
2137
|
-
title:
|
|
2138
|
-
description:
|
|
2139
|
-
|
|
2146
|
+
title: t(($) => $["legalRepresentativeForMinorIsRequired"], { ns: "individual" }),
|
|
2147
|
+
description: t(($) => $["becauseThisPersonIsUnderXYearsOld"], {
|
|
2148
|
+
ns: "individual",
|
|
2149
|
+
age: getAgeRangeForLegalRepresentative(country)?.max?.toString() ?? ""
|
|
2140
2150
|
}),
|
|
2141
2151
|
onCancel: () => {
|
|
2142
2152
|
setShowLegalRepresentativePrompt(false);
|
|
2143
2153
|
},
|
|
2144
|
-
confirmText:
|
|
2145
|
-
cancelText:
|
|
2154
|
+
confirmText: t(($) => $["ok"]),
|
|
2155
|
+
cancelText: t(($) => $["editDetails"]),
|
|
2146
2156
|
onConfirm: () => {
|
|
2147
2157
|
setShowLegalRepresentativePrompt(false);
|
|
2148
2158
|
}
|
|
@@ -2186,9 +2196,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
2186
2196
|
handleChangeFor: handleFieldChange,
|
|
2187
2197
|
canExempt: false,
|
|
2188
2198
|
country,
|
|
2189
|
-
|
|
2190
|
-
taxIdNumberType,
|
|
2191
|
-
setTaxIdNumberType,
|
|
2199
|
+
entityType: LegalEntityTypes.INDIVIDUAL,
|
|
2192
2200
|
defaultData: data?.taxInformation
|
|
2193
2201
|
}
|
|
2194
2202
|
),
|
|
@@ -2206,6 +2214,28 @@ function AdditionalPersonalDetails(props) {
|
|
|
2206
2214
|
handleChangeFor: () => handleFieldChange("nationality", "input")
|
|
2207
2215
|
}
|
|
2208
2216
|
),
|
|
2217
|
+
formUtils.isRequiredField("placeOfBirth") && /* @__PURE__ */ jsx(
|
|
2218
|
+
Field,
|
|
2219
|
+
{
|
|
2220
|
+
name: "placeOfBirth",
|
|
2221
|
+
label: formUtils.getLabel("placeOfBirth"),
|
|
2222
|
+
errorMessage: formUtils.getErrorMessage("placeOfBirth", errors, fieldValidationErrors),
|
|
2223
|
+
isValid: valid?.placeOfBirth,
|
|
2224
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2225
|
+
InputText,
|
|
2226
|
+
{
|
|
2227
|
+
...childProps,
|
|
2228
|
+
name: "placeOfBirth",
|
|
2229
|
+
value: data?.placeOfBirth,
|
|
2230
|
+
readonly: formUtils.isReadOnly("placeOfBirth"),
|
|
2231
|
+
onInput: handleFieldChange("placeOfBirth", "input"),
|
|
2232
|
+
onBlur: handleFieldChange("placeOfBirth", "blur"),
|
|
2233
|
+
"aria-required": true,
|
|
2234
|
+
"aria-invalid": !valid?.placeOfBirth
|
|
2235
|
+
}
|
|
2236
|
+
)
|
|
2237
|
+
}
|
|
2238
|
+
),
|
|
2209
2239
|
country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
|
|
2210
2240
|
] });
|
|
2211
2241
|
}
|
|
@@ -2222,6 +2252,7 @@ const basicDetailsFields = [
|
|
|
2222
2252
|
"jaKanaLastName"
|
|
2223
2253
|
];
|
|
2224
2254
|
function BasicDetails(props) {
|
|
2255
|
+
const { t } = useTranslation();
|
|
2225
2256
|
const { i18n } = useI18nContext();
|
|
2226
2257
|
const {
|
|
2227
2258
|
form: { triggerValidation }
|
|
@@ -2247,7 +2278,7 @@ function BasicDetails(props) {
|
|
|
2247
2278
|
} = props;
|
|
2248
2279
|
const isDecisionMakerTask = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
|
|
2249
2280
|
const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
|
|
2250
|
-
const formUtils = createFormUtils(props,
|
|
2281
|
+
const formUtils = createFormUtils(props, t);
|
|
2251
2282
|
const decisionMakerRoleProps = getFieldProps(props, decisionMakerRoleFields);
|
|
2252
2283
|
const nomineeProps = getFieldProps(props, nomineeFields);
|
|
2253
2284
|
const localizedNameProps = getFieldProps(props, [
|
|
@@ -2294,7 +2325,7 @@ function BasicDetails(props) {
|
|
|
2294
2325
|
contentId: "reasonForFillingIndividualPersonalDetails"
|
|
2295
2326
|
}
|
|
2296
2327
|
),
|
|
2297
|
-
isDecisionMakerTask && trustedFieldsProvider ===
|
|
2328
|
+
isDecisionMakerTask && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, { color: "secondary", variant: "caption", children: i18n.get(
|
|
2298
2329
|
"weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"
|
|
2299
2330
|
) }),
|
|
2300
2331
|
isDecisionMakerTask && (isGuidedDecisionMakersFlowDisabled || !isGuidedDecisionMakersFlowEnabled) && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -2468,7 +2499,7 @@ const isNextStepDisabled = signal(false);
|
|
|
2468
2499
|
const conflictRowTable = "adyen-kyc-conflict-row-table";
|
|
2469
2500
|
const conflictRowList = "adyen-kyc-conflict-row-list";
|
|
2470
2501
|
const conflictRowListOptionLabel = "adyen-kyc-conflict-row-list-option-label";
|
|
2471
|
-
const styles$
|
|
2502
|
+
const styles$3 = {
|
|
2472
2503
|
conflictRowTable,
|
|
2473
2504
|
conflictRowList,
|
|
2474
2505
|
conflictRowListOptionLabel
|
|
@@ -2494,7 +2525,7 @@ const ConflictRow = ({
|
|
|
2494
2525
|
}
|
|
2495
2526
|
}, [hasOnlyProvided, hasOnlyDetected, onSelect, selected]);
|
|
2496
2527
|
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
2497
|
-
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
2528
|
+
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", { className: styles$3.conflictRowList, children: [
|
|
2498
2529
|
/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2499
2530
|
/* @__PURE__ */ jsxs("dd", { children: [
|
|
2500
2531
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2503,7 +2534,7 @@ const ConflictRow = ({
|
|
|
2503
2534
|
{
|
|
2504
2535
|
variant: "caption",
|
|
2505
2536
|
color: "tertiary",
|
|
2506
|
-
className: styles$
|
|
2537
|
+
className: styles$3.conflictRowListOptionLabel,
|
|
2507
2538
|
children: i18n.get("youEntered")
|
|
2508
2539
|
}
|
|
2509
2540
|
),
|
|
@@ -2523,7 +2554,7 @@ const ConflictRow = ({
|
|
|
2523
2554
|
{
|
|
2524
2555
|
variant: "caption",
|
|
2525
2556
|
color: "tertiary",
|
|
2526
|
-
className: styles$
|
|
2557
|
+
className: styles$3.conflictRowListOptionLabel,
|
|
2527
2558
|
children: i18n.get("weDetected")
|
|
2528
2559
|
}
|
|
2529
2560
|
),
|
|
@@ -2538,7 +2569,7 @@ const ConflictRow = ({
|
|
|
2538
2569
|
)
|
|
2539
2570
|
] })
|
|
2540
2571
|
] })
|
|
2541
|
-
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$
|
|
2572
|
+
] }) : /* @__PURE__ */ jsxs("tr", { className: styles$3.conflictRowTable, children: [
|
|
2542
2573
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", children: i18n.get(label) }) }),
|
|
2543
2574
|
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(
|
|
2544
2575
|
RadioWithLabel,
|
|
@@ -2564,7 +2595,7 @@ const dataConflictsWrapper = "adyen-kyc-data-conflicts-wrapper";
|
|
|
2564
2595
|
const dataConflictsHeader = "adyen-kyc-data-conflicts-header";
|
|
2565
2596
|
const dataConflictsTable = "adyen-kyc-data-conflicts-table";
|
|
2566
2597
|
const dataConflictsList = "adyen-kyc-data-conflicts-list";
|
|
2567
|
-
const styles$
|
|
2598
|
+
const styles$2 = {
|
|
2568
2599
|
dataConflictsWrapper,
|
|
2569
2600
|
dataConflictsHeader,
|
|
2570
2601
|
dataConflictsTable,
|
|
@@ -2605,13 +2636,13 @@ const DataConflictsModal = ({
|
|
|
2605
2636
|
// No dependencies, as setShowError and setResolutions are stable.
|
|
2606
2637
|
);
|
|
2607
2638
|
return /* @__PURE__ */ jsxs(Modal, { ariaLabel: i18n.get(title), onClose: () => setShowCancelModal(true), inset: true, children: [
|
|
2608
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2609
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2639
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsWrapper, children: [
|
|
2640
|
+
/* @__PURE__ */ jsxs("div", { className: styles$2.dataConflictsHeader, children: [
|
|
2610
2641
|
/* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h1", children: i18n.get(title) }),
|
|
2611
2642
|
/* @__PURE__ */ jsx(Typography, { variant: "body", children: i18n.get(explanation) })
|
|
2612
2643
|
] }),
|
|
2613
2644
|
showError ? /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get("chooseTheCorrectDetailsBeforeProceeding") }) : void 0,
|
|
2614
|
-
/* @__PURE__ */ jsx("dl", { className: styles$
|
|
2645
|
+
/* @__PURE__ */ jsx("dl", { className: styles$2.dataConflictsList, children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(
|
|
2615
2646
|
ConflictRow,
|
|
2616
2647
|
{
|
|
2617
2648
|
showAs: "listItem",
|
|
@@ -2624,7 +2655,7 @@ const DataConflictsModal = ({
|
|
|
2624
2655
|
},
|
|
2625
2656
|
property
|
|
2626
2657
|
)) }),
|
|
2627
|
-
/* @__PURE__ */ jsxs("table", { className: styles$
|
|
2658
|
+
/* @__PURE__ */ jsxs("table", { className: styles$2.dataConflictsTable, children: [
|
|
2628
2659
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
2629
2660
|
/* @__PURE__ */ jsx("th", {}),
|
|
2630
2661
|
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "tertiary", children: i18n.get("youEntered") }) }),
|
|
@@ -2681,57 +2712,11 @@ const DataConflictsModal = ({
|
|
|
2681
2712
|
)
|
|
2682
2713
|
] });
|
|
2683
2714
|
};
|
|
2684
|
-
const verificationDisclaimer = "adyen-kyc-verification-disclaimer";
|
|
2685
|
-
const styles$3 = {
|
|
2686
|
-
verificationDisclaimer
|
|
2687
|
-
};
|
|
2688
|
-
const IdVerificationDisclaimer = () => {
|
|
2689
|
-
const { i18n } = useI18nContext();
|
|
2690
|
-
return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$3.verificationDisclaimer, children: [
|
|
2691
|
-
i18n.get("ifYouChooseToUseOnfido"),
|
|
2692
|
-
" ",
|
|
2693
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
|
|
2694
|
-
" ",
|
|
2695
|
-
i18n.get("and"),
|
|
2696
|
-
" ",
|
|
2697
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
|
|
2698
|
-
] });
|
|
2699
|
-
};
|
|
2700
|
-
const verificationHeader = "adyen-kyc-verification-header";
|
|
2701
2715
|
const verificationHeaderImage = "adyen-kyc-verification-header-image";
|
|
2702
|
-
const verificationHeaderContent = "adyen-kyc-verification-header-content";
|
|
2703
|
-
const styles$2 = {
|
|
2704
|
-
verificationHeader,
|
|
2705
|
-
verificationHeaderImage,
|
|
2706
|
-
verificationHeaderContent
|
|
2707
|
-
};
|
|
2708
|
-
const IdVerificationHeader = () => {
|
|
2709
|
-
const { i18n } = useI18nContext();
|
|
2710
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$2.verificationHeader, children: [
|
|
2711
|
-
/* @__PURE__ */ jsx(
|
|
2712
|
-
Svg,
|
|
2713
|
-
{
|
|
2714
|
-
className: styles$2.verificationHeaderImage,
|
|
2715
|
-
type: "image",
|
|
2716
|
-
name: "passport-front-green",
|
|
2717
|
-
title: i18n.get("instantIDVerificationDescription")
|
|
2718
|
-
}
|
|
2719
|
-
),
|
|
2720
|
-
/* @__PURE__ */ jsx(Typography, { variant: "title-l", children: i18n.get("capturePersonalDetails") }),
|
|
2721
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$2.verificationHeaderContent, children: [
|
|
2722
|
-
i18n.get("takeOrUploadAPhoto"),
|
|
2723
|
-
" ",
|
|
2724
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
|
|
2725
|
-
] })
|
|
2726
|
-
] });
|
|
2727
|
-
};
|
|
2728
|
-
const verifyOnfidoContainer = "adyen-kyc-verify-onfido-container";
|
|
2729
2716
|
const verifyOnfidoError = "adyen-kyc-verify-onfido-error";
|
|
2730
|
-
const verifyOnfidoContent = "adyen-kyc-verify-onfido-content";
|
|
2731
2717
|
const styles$1 = {
|
|
2732
|
-
|
|
2733
|
-
verifyOnfidoError
|
|
2734
|
-
verifyOnfidoContent
|
|
2718
|
+
verificationHeaderImage,
|
|
2719
|
+
verifyOnfidoError
|
|
2735
2720
|
};
|
|
2736
2721
|
const toIndividualOnfidoConflictSchema = ({
|
|
2737
2722
|
basicDetails,
|
|
@@ -2916,13 +2901,13 @@ function IdVerificationMethod(props) {
|
|
|
2916
2901
|
fieldValidationErrors,
|
|
2917
2902
|
hasLiveSelfieErrorCode
|
|
2918
2903
|
} = props;
|
|
2919
|
-
const { i18n } =
|
|
2904
|
+
const { t, i18n } = useTranslation(["individual", "common"]);
|
|
2920
2905
|
const userEvents = useAnalyticsContext();
|
|
2921
2906
|
const extractDocumentInformation2 = useExtractDocumentInformation();
|
|
2922
2907
|
const {
|
|
2923
2908
|
form: { data, handleChangeFor, setFormData }
|
|
2924
2909
|
} = useFormContext();
|
|
2925
|
-
const datasetUtils = datasetUtilities(i18n.
|
|
2910
|
+
const datasetUtils = datasetUtilities(i18n.language);
|
|
2926
2911
|
const existingDocument = data.idVerificationMethod?.idDocument;
|
|
2927
2912
|
const hasExistingDocument = !isEmpty$1(existingDocument);
|
|
2928
2913
|
const handleFieldChange = useCallback(
|
|
@@ -2960,18 +2945,18 @@ function IdVerificationMethod(props) {
|
|
|
2960
2945
|
handlers.handleContinueToAdditionalDetails();
|
|
2961
2946
|
};
|
|
2962
2947
|
const validateExtractionResult = (extractionResult) => {
|
|
2963
|
-
const { isExpired, isValidDocumentType,
|
|
2948
|
+
const { isExpired, isValidDocumentType, isUnderage, minimumOnboardingAge } = extractionResult;
|
|
2964
2949
|
if (isExpired) {
|
|
2965
2950
|
return { key: "theDocumentYouUploadedIsExpired" };
|
|
2966
2951
|
}
|
|
2967
|
-
if (isValidDocumentType
|
|
2952
|
+
if (!isValidDocumentType) {
|
|
2968
2953
|
return { key: "theDocumentTypeYouUploadedIsNotSupported" };
|
|
2969
2954
|
}
|
|
2970
|
-
if (
|
|
2955
|
+
if (isUnderage) {
|
|
2971
2956
|
return {
|
|
2972
2957
|
key: "weDontAcceptDocumentsOrInformationAboutAnyoneYoungerThan_",
|
|
2973
2958
|
options: {
|
|
2974
|
-
values: { minimumOnboardingAge:
|
|
2959
|
+
values: { minimumOnboardingAge: minimumOnboardingAge?.toString() ?? "" }
|
|
2975
2960
|
}
|
|
2976
2961
|
};
|
|
2977
2962
|
}
|
|
@@ -3110,9 +3095,9 @@ function IdVerificationMethod(props) {
|
|
|
3110
3095
|
handlers.handleUpdateDocument();
|
|
3111
3096
|
};
|
|
3112
3097
|
const modalProvidedData = resolvedData || comparableExistingData;
|
|
3113
|
-
const formUtils = createFormUtils(props, i18n);
|
|
3098
|
+
const formUtils = createFormUtils(props, i18n.t);
|
|
3114
3099
|
isNextStepDisabled.value = showLoadingSpinner;
|
|
3115
|
-
return /* @__PURE__ */ jsxs(
|
|
3100
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3116
3101
|
/* @__PURE__ */ jsx(
|
|
3117
3102
|
ErrorPanel,
|
|
3118
3103
|
{
|
|
@@ -3122,44 +3107,78 @@ function IdVerificationMethod(props) {
|
|
|
3122
3107
|
id: "ariaErrorField"
|
|
3123
3108
|
}
|
|
3124
3109
|
),
|
|
3125
|
-
/* @__PURE__ */ jsx(
|
|
3126
|
-
|
|
3127
|
-
Alert,
|
|
3128
|
-
{
|
|
3129
|
-
variant: "error",
|
|
3130
|
-
title: i18n.get(error.key, error.options),
|
|
3131
|
-
className: styles$1.verifyOnfidoError
|
|
3132
|
-
}
|
|
3133
|
-
) : void 0,
|
|
3134
|
-
/* @__PURE__ */ jsx("div", { className: styles$1.verifyOnfidoContent, children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : /* @__PURE__ */ jsx(Fragment, { children: hasExistingDocument ? /* @__PURE__ */ jsx(
|
|
3135
|
-
UploadedDocument,
|
|
3110
|
+
/* @__PURE__ */ jsx(
|
|
3111
|
+
LandingLayout,
|
|
3136
3112
|
{
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3113
|
+
media: /* @__PURE__ */ jsx(
|
|
3114
|
+
Svg,
|
|
3115
|
+
{
|
|
3116
|
+
type: "image",
|
|
3117
|
+
className: styles$1.verificationHeaderImage,
|
|
3118
|
+
name: "passport-front-green",
|
|
3119
|
+
title: t(($) => $["instantIDVerificationDescription"], { ns: "common" })
|
|
3120
|
+
}
|
|
3121
|
+
),
|
|
3122
|
+
title: t(($) => $["identityVerification"], { ns: "common" }),
|
|
3123
|
+
description: showIndividualMotionCapture?.value ? t(($) => $["toHelpProtectAgainstFraudAndKeepOurServices"]) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3124
|
+
t(($) => $["takeOrUploadAPhoto"], { ns: "common" }),
|
|
3125
|
+
" ",
|
|
3126
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: t(($) => $["onfido"], { ns: "common" }) })
|
|
3127
|
+
] }),
|
|
3128
|
+
helpAction: error ? /* @__PURE__ */ jsx(
|
|
3129
|
+
Alert,
|
|
3130
|
+
{
|
|
3131
|
+
variant: "error",
|
|
3132
|
+
title: t(($) => $[error.key], { ...error.options?.values, ns: "common" }),
|
|
3133
|
+
className: styles$1.verifyOnfidoError
|
|
3134
|
+
}
|
|
3135
|
+
) : void 0,
|
|
3136
|
+
actions: /* @__PURE__ */ jsx(Fragment, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3137
|
+
/* @__PURE__ */ jsx(
|
|
3138
|
+
Button,
|
|
3139
|
+
{
|
|
3140
|
+
fullWidth: true,
|
|
3141
|
+
onClick: launchOnfido,
|
|
3142
|
+
disabled: status === "extractionLoading",
|
|
3143
|
+
loading: status === "extractionLoading",
|
|
3144
|
+
children: t(($) => $["startVerification"], { ns: "common" })
|
|
3145
|
+
}
|
|
3146
|
+
),
|
|
3147
|
+
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3148
|
+
Button,
|
|
3149
|
+
{
|
|
3150
|
+
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3151
|
+
variant: "secondary",
|
|
3152
|
+
fullWidth: true,
|
|
3153
|
+
children: t(($) => $["addDetailsManually"], { ns: "common" })
|
|
3154
|
+
}
|
|
3155
|
+
)
|
|
3156
|
+
] }) }),
|
|
3157
|
+
content: !showLoadingSpinner && hasExistingDocument && /* @__PURE__ */ jsx(
|
|
3158
|
+
UploadedDocument,
|
|
3159
|
+
{
|
|
3160
|
+
document: existingDocument,
|
|
3161
|
+
onDelete: () => setStatus("confirmDeleteDocumentModal"),
|
|
3162
|
+
onUpdate: handleUpdateExistingDocument
|
|
3163
|
+
}
|
|
3164
|
+
),
|
|
3165
|
+
disclaimer: (
|
|
3166
|
+
// TODO - replace with Trans component
|
|
3167
|
+
!hasExistingDocument && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3168
|
+
t(($) => $["byContinuingToUseThisService"]),
|
|
3169
|
+
" ",
|
|
3170
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/facial-scan-policy-and-release/", external: true, inline: true, children: t(($) => $["onfidoFacialScanPolicy"]) }),
|
|
3171
|
+
" ",
|
|
3172
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: t(($) => $["privacyPolicy"], { ns: "common" }) }),
|
|
3173
|
+
" ",
|
|
3174
|
+
t(($) => $["and"], { ns: "common" }),
|
|
3175
|
+
" ",
|
|
3176
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: t(($) => $["termsOfService"], { ns: "common" }) }),
|
|
3177
|
+
"."
|
|
3178
|
+
] })
|
|
3179
|
+
)
|
|
3140
3180
|
}
|
|
3141
|
-
)
|
|
3142
|
-
/* @__PURE__ */ jsx(
|
|
3143
|
-
ProviderButton,
|
|
3144
|
-
{
|
|
3145
|
-
provider: "onfido",
|
|
3146
|
-
fullWidth: true,
|
|
3147
|
-
disabled: status === "extractionLoading",
|
|
3148
|
-
loading: status === "extractionLoading",
|
|
3149
|
-
onClick: launchOnfido
|
|
3150
|
-
}
|
|
3151
|
-
),
|
|
3152
|
-
!showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(
|
|
3153
|
-
Button,
|
|
3154
|
-
{
|
|
3155
|
-
onClick: () => setStatus("confirmManualFlowModal"),
|
|
3156
|
-
variant: "secondary",
|
|
3157
|
-
fullWidth: true,
|
|
3158
|
-
children: i18n.get("addDetailsManually")
|
|
3159
|
-
}
|
|
3160
|
-
),
|
|
3161
|
-
/* @__PURE__ */ jsx(IdVerificationDisclaimer, {})
|
|
3162
|
-
] }) }) }),
|
|
3181
|
+
),
|
|
3163
3182
|
status === "onfidoModal" && /* @__PURE__ */ jsx(
|
|
3164
3183
|
OnfidoVerificationModal,
|
|
3165
3184
|
{
|
|
@@ -3173,19 +3192,19 @@ function IdVerificationMethod(props) {
|
|
|
3173
3192
|
status === "confirmManualFlowModal" && /* @__PURE__ */ jsx(
|
|
3174
3193
|
Confirm,
|
|
3175
3194
|
{
|
|
3176
|
-
title:
|
|
3177
|
-
description:
|
|
3195
|
+
title: t(($) => $["addDetailsManuallyQuestion"]),
|
|
3196
|
+
description: t(($) => $["itCanTakeUpTo"]),
|
|
3178
3197
|
onCancel: handleCancelAddDetailsManually,
|
|
3179
|
-
confirmText:
|
|
3198
|
+
confirmText: t(($) => $["yesAddManually"]),
|
|
3180
3199
|
onConfirm: handleContinueViaManualEntryFlow
|
|
3181
3200
|
}
|
|
3182
3201
|
),
|
|
3183
3202
|
status === "confirmDeleteDocumentModal" && /* @__PURE__ */ jsx(
|
|
3184
3203
|
Confirm,
|
|
3185
3204
|
{
|
|
3186
|
-
title:
|
|
3187
|
-
description:
|
|
3188
|
-
confirmText:
|
|
3205
|
+
title: t(($) => $["deleteIdDocument"]),
|
|
3206
|
+
description: t(($) => $["youMayBeAskedToReUpload"]),
|
|
3207
|
+
confirmText: t(($) => $["deleteDocument"], { ns: "common" }),
|
|
3189
3208
|
onCancel: handleCancelDeleteDocument,
|
|
3190
3209
|
onConfirm: handleDeleteDocument,
|
|
3191
3210
|
critical: true
|
|
@@ -3245,8 +3264,7 @@ const SignatoryQuestionnaireModalContent = () => {
|
|
|
3245
3264
|
] });
|
|
3246
3265
|
};
|
|
3247
3266
|
function SignatoryQuestionnaire(props) {
|
|
3248
|
-
const { t } = useTranslation();
|
|
3249
|
-
const { i18n } = useI18nContext();
|
|
3267
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3250
3268
|
const userEvents = useAnalyticsContext();
|
|
3251
3269
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
3252
3270
|
const {
|
|
@@ -3257,7 +3275,7 @@ function SignatoryQuestionnaire(props) {
|
|
|
3257
3275
|
fieldValidationErrors,
|
|
3258
3276
|
handleFieldChange
|
|
3259
3277
|
} = props;
|
|
3260
|
-
const formUtils = createFormUtils(props,
|
|
3278
|
+
const formUtils = createFormUtils(props, t);
|
|
3261
3279
|
if (!handleFieldChange) {
|
|
3262
3280
|
return;
|
|
3263
3281
|
}
|
|
@@ -3294,12 +3312,12 @@ function SignatoryQuestionnaire(props) {
|
|
|
3294
3312
|
value: data?.isSignatory,
|
|
3295
3313
|
onChange: handleFieldChange("isSignatory"),
|
|
3296
3314
|
onDescriptionLinkClick: openModal,
|
|
3297
|
-
question:
|
|
3298
|
-
descriptionLinkText:
|
|
3315
|
+
question: t(($) => $["doesThisPersonHaveTheAuthority"], { ns: "individual" }),
|
|
3316
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3299
3317
|
errorMessage: getDisplayErrorMessage(errorMessage, t)
|
|
3300
3318
|
}
|
|
3301
3319
|
),
|
|
3302
|
-
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel:
|
|
3320
|
+
isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"]), inset: true, children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {}) })
|
|
3303
3321
|
] });
|
|
3304
3322
|
}
|
|
3305
3323
|
const UboQuestionnaireModalContent = ({ modalType }) => {
|
|
@@ -3374,8 +3392,7 @@ const uboQuestionnaireFields = [
|
|
|
3374
3392
|
"isNomineeShareholder"
|
|
3375
3393
|
];
|
|
3376
3394
|
function UboQuestionnaire(props) {
|
|
3377
|
-
const { t } = useTranslation();
|
|
3378
|
-
const { i18n } = useI18nContext();
|
|
3395
|
+
const { t } = useTranslation(["common", "individual"]);
|
|
3379
3396
|
const userEvents = useAnalyticsContext();
|
|
3380
3397
|
const {
|
|
3381
3398
|
data,
|
|
@@ -3386,7 +3403,7 @@ function UboQuestionnaire(props) {
|
|
|
3386
3403
|
fieldValidationErrors,
|
|
3387
3404
|
handleFieldChange
|
|
3388
3405
|
} = props;
|
|
3389
|
-
const formUtils = createFormUtils(props,
|
|
3406
|
+
const formUtils = createFormUtils(props, t);
|
|
3390
3407
|
const [activeModal, setActiveModal] = useState(null);
|
|
3391
3408
|
if (!handleFieldChange) {
|
|
3392
3409
|
return;
|
|
@@ -3408,9 +3425,9 @@ function UboQuestionnaire(props) {
|
|
|
3408
3425
|
setActiveModal(null);
|
|
3409
3426
|
};
|
|
3410
3427
|
const modalAriaLabelMap = {
|
|
3411
|
-
isOwner:
|
|
3412
|
-
isControllingPerson:
|
|
3413
|
-
isDirector:
|
|
3428
|
+
isOwner: t(($) => $["moreAboutOwners"]),
|
|
3429
|
+
isControllingPerson: t(($) => $["moreAboutOwnershipThroughControl"]),
|
|
3430
|
+
isDirector: t(($) => $["moreAboutDirectors"])
|
|
3414
3431
|
};
|
|
3415
3432
|
const isDirectorErrorMessage = formUtils.getErrorMessage(
|
|
3416
3433
|
"isDirector",
|
|
@@ -3451,8 +3468,8 @@ function UboQuestionnaire(props) {
|
|
|
3451
3468
|
value: data?.isDirector,
|
|
3452
3469
|
onChange: handleFieldChange("isDirector"),
|
|
3453
3470
|
onDescriptionLinkClick: openModal("isDirector"),
|
|
3454
|
-
question:
|
|
3455
|
-
descriptionLinkText:
|
|
3471
|
+
question: t(($) => $["isThisPersonListedAsADirector"], { ns: "individual" }),
|
|
3472
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3456
3473
|
errorMessage: getDisplayErrorMessage(isDirectorErrorMessage, t)
|
|
3457
3474
|
}
|
|
3458
3475
|
),
|
|
@@ -3462,7 +3479,7 @@ function UboQuestionnaire(props) {
|
|
|
3462
3479
|
name: "isNomineeDirector",
|
|
3463
3480
|
value: data?.isNomineeDirector,
|
|
3464
3481
|
onChange: handleFieldChange("isNomineeDirector"),
|
|
3465
|
-
question:
|
|
3482
|
+
question: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
|
|
3466
3483
|
errorMessage: getDisplayErrorMessage(isNomineeDirectorErrorMessage, t)
|
|
3467
3484
|
}
|
|
3468
3485
|
),
|
|
@@ -3473,8 +3490,8 @@ function UboQuestionnaire(props) {
|
|
|
3473
3490
|
value: data?.isOwner,
|
|
3474
3491
|
onChange: handleFieldChange("isOwner"),
|
|
3475
3492
|
onDescriptionLinkClick: openModal("isOwner"),
|
|
3476
|
-
question:
|
|
3477
|
-
descriptionLinkText:
|
|
3493
|
+
question: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
|
|
3494
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3478
3495
|
errorMessage: getDisplayErrorMessage(isOwnerErrorMessage, t)
|
|
3479
3496
|
}
|
|
3480
3497
|
),
|
|
@@ -3484,7 +3501,9 @@ function UboQuestionnaire(props) {
|
|
|
3484
3501
|
name: "isNomineeShareholder",
|
|
3485
3502
|
value: data?.isNomineeShareholder,
|
|
3486
3503
|
onChange: handleFieldChange("isNomineeShareholder"),
|
|
3487
|
-
question:
|
|
3504
|
+
question: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], {
|
|
3505
|
+
ns: "individual"
|
|
3506
|
+
}),
|
|
3488
3507
|
errorMessage: getDisplayErrorMessage(isNomineeShareholderErrorMessage, t)
|
|
3489
3508
|
}
|
|
3490
3509
|
),
|
|
@@ -3495,8 +3514,10 @@ function UboQuestionnaire(props) {
|
|
|
3495
3514
|
value: data?.isControllingPerson,
|
|
3496
3515
|
onChange: handleFieldChange("isControllingPerson"),
|
|
3497
3516
|
onDescriptionLinkClick: openModal("isControllingPerson"),
|
|
3498
|
-
question:
|
|
3499
|
-
|
|
3517
|
+
question: t(($) => $["doesThisPersonHaveSignificantResponsibility"], {
|
|
3518
|
+
ns: "individual"
|
|
3519
|
+
}),
|
|
3520
|
+
descriptionLinkText: t(($) => $["whatDoesThisMean"]),
|
|
3500
3521
|
errorMessage: getDisplayErrorMessage(isControllingPersonErrorMessage, t)
|
|
3501
3522
|
}
|
|
3502
3523
|
),
|
|
@@ -3871,7 +3892,7 @@ const adjustOnfidoIdentificationData = (data, apiData) => {
|
|
|
3871
3892
|
const mapIndividualOnfidoSchemaToLegalEntity = (individualOnfido, isExperimentEnabled, matchingScenario) => {
|
|
3872
3893
|
const legalEntity = {
|
|
3873
3894
|
...formatObject(individualOnfido, individualOnfidoApiKeyMapping),
|
|
3874
|
-
type:
|
|
3895
|
+
type: LegalEntityTypes.INDIVIDUAL
|
|
3875
3896
|
};
|
|
3876
3897
|
if (individualOnfido.additionalPersonalDetails) {
|
|
3877
3898
|
if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && matchingScenario?.includes(Scenarios.L_TAXINFO) && individualOnfido.additionalPersonalDetails?.idNumber && individualOnfido.additionalPersonalDetails?.typeOfIdentity && individualOnfido.additionalPersonalDetails?.country === CountryCodes.Spain) {
|
|
@@ -3998,19 +4019,19 @@ const mapLegalEntityToIndividualOnfidoSchema = (legalEntity, isChangingType, isR
|
|
|
3998
4019
|
const associationTypes = new Set(associations.map((ea) => ea.type));
|
|
3999
4020
|
const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
4000
4021
|
individualOnfido.signatoryQuestionnaire.isSignatory = hasAssociation(
|
|
4001
|
-
|
|
4022
|
+
DecisionMakerTypes.SIGNATORY
|
|
4002
4023
|
);
|
|
4003
|
-
individualOnfido.uboQuestionnaire.isOwner = hasAssociation(
|
|
4024
|
+
individualOnfido.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
|
|
4004
4025
|
individualOnfido.uboQuestionnaire.isControllingPerson = hasAssociation(
|
|
4005
|
-
|
|
4026
|
+
DecisionMakerTypes.CONTROLLING_PERSON
|
|
4006
4027
|
);
|
|
4007
|
-
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(
|
|
4028
|
+
individualOnfido.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
|
|
4008
4029
|
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
4009
4030
|
individualOnfido.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(
|
|
4010
|
-
|
|
4031
|
+
DecisionMakerTypes.DIRECTOR
|
|
4011
4032
|
);
|
|
4012
4033
|
individualOnfido.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(
|
|
4013
|
-
|
|
4034
|
+
DecisionMakerTypes.OWNER
|
|
4014
4035
|
);
|
|
4015
4036
|
}
|
|
4016
4037
|
individualOnfido.basicDetails = getNomineeFromAssociation(
|
|
@@ -4048,6 +4069,9 @@ const identityOnfidoBase = {
|
|
|
4048
4069
|
jobTitle: {
|
|
4049
4070
|
rule: "jobTitleIfRequiredForRole"
|
|
4050
4071
|
},
|
|
4072
|
+
placeOfBirth: {
|
|
4073
|
+
rule: "isPlaceOfBirthRequired"
|
|
4074
|
+
},
|
|
4051
4075
|
nationality: {
|
|
4052
4076
|
rule: "nationalityIfRequiredForRole"
|
|
4053
4077
|
},
|
|
@@ -4087,10 +4111,8 @@ const identityOnfidoBase = {
|
|
|
4087
4111
|
nomineeShareholder: {
|
|
4088
4112
|
rules: ["isGuidedDecisionMakersFlowDisabled", "nomineeShareHolderRequiredForCountry"]
|
|
4089
4113
|
},
|
|
4090
|
-
// Regardless of scenario, we want the user to go through the "verification method" step
|
|
4091
|
-
// and hopefully get Onfido-verified. Otherwise, they must go through the manual flow.
|
|
4092
4114
|
idVerificationMethod: {
|
|
4093
|
-
rule: "
|
|
4115
|
+
rule: "isIdVerificationMethodRequired"
|
|
4094
4116
|
},
|
|
4095
4117
|
idDocument: {
|
|
4096
4118
|
// (either from Onfido or previously-uploaded document)
|
|
@@ -4301,6 +4323,7 @@ function IndividualOnfidoDropin({
|
|
|
4301
4323
|
}),
|
|
4302
4324
|
[propProblems, validationErrors]
|
|
4303
4325
|
);
|
|
4326
|
+
const hasVerificationErrors = propProblems?.verificationErrors && Object.keys(propProblems.verificationErrors).length > 0;
|
|
4304
4327
|
const associatedLeTrackingParams = useMemo(() => {
|
|
4305
4328
|
return taskType === TaskTypes.INDIVIDUAL ? {} : getAssociatedLeAnalyticsPayload({
|
|
4306
4329
|
associatedLegalEntity: legalEntityResponse,
|
|
@@ -4382,7 +4405,7 @@ function IndividualOnfidoDropin({
|
|
|
4382
4405
|
useEffect(() => {
|
|
4383
4406
|
setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
|
|
4384
4407
|
}, [data?.additionalPersonalDetails?.country, parentCountry]);
|
|
4385
|
-
const { data: scenarios } = useScenarios(country,
|
|
4408
|
+
const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
|
|
4386
4409
|
useEffect(() => {
|
|
4387
4410
|
if (!scenarios) return;
|
|
4388
4411
|
setHasMotionCaptureScenario(scenarios);
|
|
@@ -4390,7 +4413,7 @@ function IndividualOnfidoDropin({
|
|
|
4390
4413
|
}, [scenarios]);
|
|
4391
4414
|
const { fieldConfigurations } = useScenarioConfiguration({
|
|
4392
4415
|
parseConfiguration,
|
|
4393
|
-
legalEntityType:
|
|
4416
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
4394
4417
|
setLoadingStatus,
|
|
4395
4418
|
country
|
|
4396
4419
|
});
|
|
@@ -4473,7 +4496,7 @@ function IndividualOnfidoDropin({
|
|
|
4473
4496
|
};
|
|
4474
4497
|
await getIdVerificationStartCheck(data2);
|
|
4475
4498
|
};
|
|
4476
|
-
const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType) : [];
|
|
4499
|
+
const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
|
|
4477
4500
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
4478
4501
|
const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
|
|
4479
4502
|
const submitLegalEntity = async ({
|
|
@@ -4616,7 +4639,7 @@ function IndividualOnfidoDropin({
|
|
|
4616
4639
|
idDocumentType
|
|
4617
4640
|
});
|
|
4618
4641
|
setAccountHolder(accountHolder);
|
|
4619
|
-
if (dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument") {
|
|
4642
|
+
if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
|
|
4620
4643
|
await submitDocuments({ legalEntity: createdLegalEntity, dataSubmitted });
|
|
4621
4644
|
}
|
|
4622
4645
|
if (parentLegalEntity) {
|
|
@@ -4634,9 +4657,16 @@ function IndividualOnfidoDropin({
|
|
|
4634
4657
|
clearToasts();
|
|
4635
4658
|
externalOnSubmit?.(dataSubmitted);
|
|
4636
4659
|
} catch (e) {
|
|
4660
|
+
const eventsAdditionalData = {};
|
|
4637
4661
|
logger.error("Failed to update individual", e);
|
|
4638
4662
|
if (isValidationError(e)) {
|
|
4639
|
-
|
|
4663
|
+
const getErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
|
|
4664
|
+
if (getErrors && !Object.keys(getErrors).length) {
|
|
4665
|
+
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
4666
|
+
eventsAdditionalData.unmappedErrorNames = e.invalidFields?.map((field) => field.name).filter(Boolean);
|
|
4667
|
+
} else {
|
|
4668
|
+
setValidationErrors(getErrors);
|
|
4669
|
+
}
|
|
4640
4670
|
} else if (isMaintenanceModeError(e)) {
|
|
4641
4671
|
showToast({
|
|
4642
4672
|
label: i18n.get("maintenanceModeMessage"),
|
|
@@ -4649,8 +4679,9 @@ function IndividualOnfidoDropin({
|
|
|
4649
4679
|
setLoadingStatus("success");
|
|
4650
4680
|
userEvents.addTaskEvent("Encountered error", {
|
|
4651
4681
|
actionType: "submit",
|
|
4652
|
-
|
|
4653
|
-
|
|
4682
|
+
additionalData: eventsAdditionalData,
|
|
4683
|
+
returnType: e?.errorCode,
|
|
4684
|
+
returnValue: e?.title || "backend"
|
|
4654
4685
|
});
|
|
4655
4686
|
}
|
|
4656
4687
|
};
|