@adyen/kyc-components 3.74.4 → 3.75.0-beta.0
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-B7w0IXu2.js → AcceptTermsOfServiceComponent-C2Gjgc2-.js} +7 -13
- package/dist/{AccountSetupRejected-D7gFxCpX.js → AccountSetupRejected-CfbrJVbb.js} +2 -2
- package/dist/{Avatar-Bzd4R7VP.js → Avatar-CkY4CsSc.js} +1 -1
- package/dist/{BusinessDetailsDropin-BsU2-Qxp.js → BusinessDetailsDropin-DW_Hg4YJ.js} +95 -75
- package/dist/{BusinessFinancingComponent-DvtjSeYe.js → BusinessFinancingComponent-CTLP0O1L.js} +3 -3
- package/dist/{BusinessFinancingDropin-CKJ2IM7Z.js → BusinessFinancingDropin-DcfbYhTz.js} +9 -15
- package/dist/{BusinessFinancingPage-D77Z-2JE.js → BusinessFinancingPage-B0Oen8T1.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-y2EHBP4L.js → BusinessTypeSelectionPage-Bpem0_3N.js} +4 -6
- package/dist/{ContractViewer-Cgv3VKSZ.js → ContractViewer-Bi7A58HN.js} +1 -1
- package/dist/{CreateIndividualComponent-C7tSgxBf.js → CreateIndividualComponent-MXzIV9n7.js} +3 -4
- package/dist/{CreateTransferInstrumentComponent-Bc2IR0kU.js → CreateTransferInstrumentComponent-DX1pUkXY.js} +2 -3
- package/dist/{CustomerSupport-SehcPJOy.js → CustomerSupport-724suk5t.js} +5 -6
- package/dist/{DebugModal-Bup69cYV.js → DebugModal-jUQSIT6v.js} +10 -9
- package/dist/{DecisionMakerDetailsPage-CkJg7Xnu.js → DecisionMakerDetailsPage-UXcB8fo-.js} +3 -4
- package/dist/{DecisionMakers-CQw3kN5L.js → DecisionMakers-D6bYcN-b.js} +4 -6
- package/dist/{EmbeddedStatus-FsTtKpwO.js → EmbeddedStatus-D8snms5Y.js} +3 -3
- package/dist/{FormEndState-d_9N8SAZ.js → FormEndState-Bs082VlL.js} +1 -1
- package/dist/{FormFlow-BXfSFSc7.js → FormFlow-DgPgql4N.js} +2 -5
- package/dist/{IndividualOnfidoDropin-CySEdGWh.js → IndividualOnfidoDropin-BYEK8-kb.js} +73 -84
- package/dist/{Introduction-Dp541vm-.js → Introduction-X4A4JonO.js} +3 -4
- package/dist/{LegalRepresentativeDetailsPage-D4W8BJ0N.js → LegalRepresentativeDetailsPage-Ds1wqfhn.js} +3 -4
- package/dist/{ManageIndividualComponent-B7Cca28J.js → ManageIndividualComponent-eiiqmrQf.js} +4 -4
- package/dist/{ManagePCIComponent-C4bFvMF7.js → ManagePCIComponent-C_A6KJQC.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-AFWPYq5m.js → ManageTermsOfServiceComponent-C4rgA3Zn.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-Db0TJzCS.js → ManageTransferInstrumentComponent-D_NpJ1fj.js} +4 -9
- package/dist/{OnboardingDropinComponent-DH13PWaA.js → OnboardingDropinComponent-QAfknRI6.js} +117 -115
- package/dist/{ProviderButton-C9MFFVBM.js → ProviderButton-C41BPE99.js} +3 -13
- package/dist/{Review-arZJ6ywe.js → Review-BP1gRH2v.js} +3 -4
- package/dist/{RootBusinessDetailsPage-48FKYm2v.js → RootBusinessDetailsPage-Dsc2ThxL.js} +3 -4
- package/dist/{RootIndividualDetailsPage-DaMr1B5S.js → RootIndividualDetailsPage-xO9XM84K.js} +3 -4
- package/dist/{SignPCIComponent-DV8HnO_i.js → SignPCIComponent-Di6TH2l5.js} +6 -10
- package/dist/{SingpassSelection-Bmmzogkm.js → SingpassSelection-CwFd4cUK.js} +2 -2
- package/dist/{SoleProprietorshipPage-BsT3iczy.js → SoleProprietorshipPage-Bk6cw9Fc.js} +3 -4
- package/dist/{SourceOfFunds.module-DVSBnaXW.js → SourceOfFunds.module-DlbpDtvU.js} +1 -1
- package/dist/{SourceOfFundsPage-BYZpzr5A.js → SourceOfFundsPage-DfuQzm8v.js} +36 -28
- package/dist/{StoreProvider-SmtNELqT.js → StoreProvider-DAebRaGX.js} +3205 -956
- package/dist/{TaskItemStatus-AROPdH-w.js → TaskItemStatus-BcXHGejj.js} +2 -2
- package/dist/{TaxReportingDropin-DwkdNSG8.js → TaxReportingDropin-DTCfSOdX.js} +7 -8
- package/dist/{TileGroup-D_R_m6PW.js → TileGroup-DoHVu5fx.js} +2 -2
- package/dist/{TrustDetailsPage-CvNzAAvW.js → TrustDetailsPage-B472vaxW.js} +12 -36
- package/dist/{TrustMemberCompanyPage-boVP1iby.js → TrustMemberCompanyPage-BPUYsM0C.js} +4 -5
- package/dist/{TrustMemberIndividualPage-YVJi3eS7.js → TrustMemberIndividualPage-DskGhF4-.js} +3 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-Yc9QL8cb.js → UnincorporatedPartnershipIndividualPage-CtIZnOD_.js} +3 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Cj90pp43.js → UnincorporatedPartnershipMemberCompanyPage-zICGgwMK.js} +3 -4
- package/dist/{VerificationErrorAlert-BzBSRbQ2.js → VerificationErrorAlert-DrYrhePc.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-gXJxv4sT.js → ViewVerificationStatusComponent-CuahWp9y.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- 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/{bg-BG-BzeiDl-e.js → bg-BG-BV_GOHGg.js} +49 -3
- package/dist/{cs-CZ-4Tk67nmO.js → cs-CZ-CZDCUWRh.js} +49 -3
- package/dist/{css-BdiZJ77w.js → css-C0E5Jx17.js} +2 -2
- package/dist/{da-DK-CN3Rc5da.js → da-DK-BmTgxKpq.js} +49 -3
- package/dist/{de-DE-GaynF_xB.js → de-DE-DZeG8NVg.js} +49 -3
- package/dist/{el-GR-C3tN9AFZ.js → el-GR-C3likHBP.js} +48 -2
- package/dist/{es-ES-9Q6u4x6u.js → es-ES-DHhHHeU-.js} +48 -2
- package/dist/{et-EE-jHAEJC5c.js → et-EE-CiD_oBu3.js} +49 -3
- package/dist/{fi-FI-DH5DphLd.js → fi-FI-DAZqSyjL.js} +49 -3
- package/dist/{fr-FR-DCboO9VH.js → fr-FR-vs5BYMWx.js} +49 -3
- package/dist/{getFieldsWithExistingData-L8kxZNJb.js → getFieldsWithExistingData-DCVuD0lR.js} +2 -2
- package/dist/{hasDataChanged-Dmr-z9Ga.js → hasDataChanged-BPldDCDA.js} +2 -2
- package/dist/{hr-HR-333ODlHZ.js → hr-HR-CcaMvc2K.js} +49 -3
- package/dist/{hu-HU-CUNG9bik.js → hu-HU-CzBd9g0P.js} +48 -2
- package/dist/{individualFormConfig-mMMMBKPH.js → individualFormConfig-7KIVtibX.js} +6 -2
- package/dist/{it-IT-CXxD91gu.js → it-IT-BXIdTOUw.js} +49 -3
- package/dist/{ja-JP-1qp81W1I.js → ja-JP-CngmcMI-.js} +48 -2
- package/dist/{json-tdr_ybuj.js → json-C4Tdz70o.js} +2 -2
- package/dist/{localizeDateString-Hfj0QtZ5.js → localizeDateString-SMxMQ2Kc.js} +2 -2
- package/dist/{lt-LT-vQmxFgVn.js → lt-LT-Dpyaroh2.js} +49 -3
- package/dist/{lv-LV-Ds10XQ8q.js → lv-LV-CCcm8aDW.js} +49 -3
- package/dist/{mapFinancialReportsToFinancialInformation-CJU209yU.js → mapFinancialReportsToFinancialInformation-BQ61tSxK.js} +2 -2
- package/dist/{nl-NL-BsDTOkW4.js → nl-NL-gYpP7VMA.js} +49 -3
- package/dist/{no-NO-BpyiF6sI.js → no-NO-nOXLv4rO.js} +49 -3
- package/dist/{pl-PL-BqA3pc6p.js → pl-PL-Dwlwj1ob.js} +49 -3
- package/dist/{plaintext-CQht2yk7.js → plaintext-BnZzPiVL.js} +2 -2
- package/dist/preact/adyen-terms-of-service.js +1 -1
- package/dist/preact/adyen-transfer-instrument.js +1 -1
- package/dist/{pt-PT-DSry7yG3.js → pt-PT-DbQbuaCm.js} +49 -3
- package/dist/{resolveEnvironment-CKTFz-Ig.js → resolveEnvironment-Cp9vnHw_.js} +3 -3
- package/dist/{ro-RO-r8myUMxM.js → ro-RO-ZTuJtIop.js} +49 -3
- package/dist/{rules-CPdEbrnZ.js → rules-Dg3nwm78.js} +14 -3
- package/dist/{sk-SK-Dy7mKbdU.js → sk-SK-Ba8jBCvr.js} +49 -3
- package/dist/{sl-SI-L3YffGqX.js → sl-SI-DszG8wEm.js} +49 -3
- package/dist/style.css +475 -490
- package/dist/styles-CLV89_hH.js +481 -496
- package/dist/{sv-SE-BtKMAZPD.js → sv-SE-Fo7zzjiG.js} +48 -2
- package/dist/types/api/address/address.types.d.ts +0 -1
- package/dist/types/api/address/useSearchAddress.d.ts +0 -1
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
- package/dist/types/api/companyDataSet/constants.d.ts +1 -1
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
- package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
- package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +4 -0
- package/dist/types/api/configurations/useScenarios.d.ts +7 -7
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +3 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +4 -4
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -0
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +1 -1
- package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +4 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -10
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -7
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +24 -24
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
- package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +2 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -3
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -0
- package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +2 -2
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +5 -4
- package/dist/types/components/Individual/forms/Individual/types.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
- 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 +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +5 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +2 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -1
- 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 +2 -2
- package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -3
- package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -3
- package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +2 -2
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +2 -2
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -1
- package/dist/types/constants/countries.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +9 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +1 -1
- package/dist/types/core/analytics.d.ts +3 -1
- package/dist/types/core/errorMapping.d.ts +3 -3
- package/dist/types/core/models/api/address.d.ts +1 -1
- package/dist/types/core/models/api/financialReport.d.ts +1 -1
- package/dist/types/core/models/api/get-scenarios.d.ts +0 -7
- package/dist/types/core/models/api/legal-arrangement.d.ts +1 -1
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/models/api/phone.d.ts +1 -1
- package/dist/types/core/models/api/remediating-action.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
- package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
- package/dist/types/core/models/api/verification-error.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +4 -4
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +11 -2
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +1 -1
- package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
- package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
- package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAccountHolder.d.ts +1 -1
- package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
- package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useDataConflicts.d.ts +0 -6
- package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
- package/dist/types/hooks/useForm/reducer.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +6 -6
- package/dist/types/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
- package/dist/types/hooks/useMultiForm/types.d.ts +0 -39
- package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +3 -3
- package/dist/types/language/utils.d.ts +1 -1
- 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 +1 -1
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -3
- package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
- package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
- package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
- package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
- package/dist/types/{core/models → types}/form.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -1
- package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +3 -3
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +1 -1
- package/dist/types/utils/country.d.ts +1 -1
- package/dist/types/utils/datasetUtil.d.ts +3 -3
- package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
- package/dist/types/utils/dropinUtils.d.ts +2 -2
- package/dist/types/utils/entityAssociationUtil.d.ts +5 -5
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/formatCurrency.d.ts +1 -1
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getSSNType.d.ts +1 -1
- package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
- package/dist/types/utils/perCountry.d.ts +1 -1
- package/dist/types/utils/perState.d.ts +3 -2
- package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
- package/dist/types/utils/validation/types.d.ts +1 -1
- package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
- package/dist/types/utils/validatorUtils.d.ts +1 -1
- package/dist/{useMultiForm-BVOVZixa.js → useMultiForm-B_SrTfOp.js} +2 -2
- package/dist/{useOnboardingStatus-COwMK6fN.js → useOnboardingStatus-CyCPc1vj.js} +1 -1
- package/dist/{useSalesChannelsSettings-D0i3CliO.js → useSalesChannelsSettings-BVJXTzlR.js} +2 -2
- package/dist/{useTermsOfServiceStatus-m5LjEiWM.js → useTermsOfServiceStatus-8XdGXbPl.js} +4 -4
- package/dist/{useUpdateLegalEntity-CbOFlVC-.js → useUpdateLegalEntity-Yr0adese.js} +2 -2
- package/dist/{utils-ZakWv72H.js → utils-GZDRmFSR.js} +4 -4
- package/dist/{validate-CXKm-Bds.js → validate-BlofB0F6.js} +2 -2
- package/dist/{validate-D23xXSTj.js → validate-DIQCrjk7.js} +2 -2
- package/dist/vue/adyen-individual.js +1 -1
- package/dist/vue/adyen-manage-individual.js +1 -1
- package/dist/vue/adyen-terms-of-service.js +1 -1
- package/dist/vue/adyen-transfer-instrument.js +1 -1
- package/dist/{yaml-BmEWddfY.js → yaml-BN5PYhM7.js} +2 -2
- package/package.json +1 -1
- package/dist/Confirm-DSBmoBXh.js +0 -56
- package/dist/FormNavigation-tWpHPwF0.js +0 -145
- package/dist/FormWrapper-DkX2Pb8t.js +0 -149
- package/dist/MaybeModal-C9jrxrQ6.js +0 -18
- package/dist/Modal-n7pyOWeQ.js +0 -135
- package/dist/PayoutDetailsDropin-_hiiD4-U.js +0 -902
- package/dist/PayoutDetailsPage-DPBHmCWx.js +0 -57
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-x2UyFrFQ.js +0 -74
- package/dist/documentUtils-pIqBQBoh.js +0 -226
- package/dist/dropinUtils-DT5EfQL0.js +0 -204
- package/dist/mapExistingFile-BE74t9jV.js +0 -25
- package/dist/mapTransferInstrumentToPayoutAccount-DLY4SrB-.js +0 -30
- package/dist/omitObscuredFieldsIfUnchanged-Il-hP6xm.js +0 -28
- package/dist/process-field-configurations-Wpry76R2.js +0 -185
- package/dist/processValidationErrors-USgtH-d8.js +0 -203
- package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
- package/dist/useToastContext-CfYPbChO.js +0 -21
- package/dist/utils-B1H_8b1P.js +0 -74
- /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
- /package/dist/types/{core/models → types/datasets}/country-code.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
- /package/dist/types/{core/models → types}/file.d.ts +0 -0
|
@@ -2,35 +2,26 @@
|
|
|
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] = "f4ecee00-960e-40f9-a85d-fcadc38cb63d", e._sentryDebugIdIdentifier = "sentry-dbid-f4ecee00-960e-40f9-a85d-fcadc38cb63d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { p as useApiContext, q as useQuery, r as httpGet,
|
|
12
|
-
import { u as useCapabilityProblems, g as getProblemsForEntity } from "./ProviderButton-C9MFFVBM.js";
|
|
11
|
+
import { p as useApiContext, q as useQuery, r as httpGet, be as useInvalidateRootLegalEntity, bf as useMutation, bh as httpPost, bQ as formatObject, y as LegalEntityType, C as Typography, eq as Currencies, b as useI18nContext, ay as Field, er as InputGroup, bI as Select, bp as InputText, bV as InputDate, aC as TextArea, aV as RadioGroup, aE as CountryField, b2 as Modal, B as Alert, Y as Button, b8 as Confirm, ao as isEmpty, at as useForm, bZ as useGlobalDataSlice, aw as ErrorPanel, ax as createFormUtils, L as Loader, a2 as Icon, bK as getFormProps, $ as Card, b5 as StructuredList, Z as IconButton, bL as isEmpty$1, bl as Svg, a4 as useToastContext, aK as createLogger, es as Dropzone, cB as createDocumentRequest, bm as useQueryClient, a as useLegalEntity, R as ROOT_LE, c5 as useStateContext, _ as useAnalyticsContext, et as useLegalEntities, c4 as getPropsFromConfigurations, bM as getRequiredForms, bN as addValidityToForms, bO as useFormComposer, cE as documentApiUtils, c7 as FormWrapper, aa as useCapabilityProblems, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry } from "./StoreProvider-DAebRaGX.js";
|
|
13
12
|
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
14
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
16
|
-
import { u as useToastContext } from "./useToastContext-CfYPbChO.js";
|
|
17
|
-
import { g as getPropsFromConfigurations } from "./process-field-configurations-Wpry76R2.js";
|
|
18
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DT5EfQL0.js";
|
|
19
|
-
import { F as FormWrapper } from "./FormWrapper-DkX2Pb8t.js";
|
|
20
|
-
import { c as createDocumentRequest, d as documentApiUtils } from "./documentUtils-pIqBQBoh.js";
|
|
21
|
-
import { f as formatObject } from "./utils-B1H_8b1P.js";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Yr0adese.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-BPldDCDA.js";
|
|
22
15
|
import { signal } from "@preact/signals";
|
|
23
|
-
import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-
|
|
16
|
+
import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-DlbpDtvU.js";
|
|
24
17
|
import { a as formatAmountWithCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
25
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
18
|
+
import { l as localizeDateString } from "./localizeDateString-SMxMQ2Kc.js";
|
|
26
19
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
27
|
-
import { A as Avatar } from "./Avatar-
|
|
28
|
-
import { M as Modal } from "./Modal-n7pyOWeQ.js";
|
|
29
|
-
import { C as Confirm } from "./Confirm-DSBmoBXh.js";
|
|
20
|
+
import { A as Avatar } from "./Avatar-CkY4CsSc.js";
|
|
30
21
|
import isURL from "validator/es/lib/isURL.js";
|
|
31
|
-
import { v as validateDateNotInTheFuture } from "./validate-
|
|
32
|
-
import { T as TileGroup } from "./TileGroup-
|
|
33
|
-
import { n as normalizedTaskStatusStore } from "./OnboardingDropinComponent-
|
|
22
|
+
import { v as validateDateNotInTheFuture } from "./validate-DIQCrjk7.js";
|
|
23
|
+
import { T as TileGroup } from "./TileGroup-DoHVu5fx.js";
|
|
24
|
+
import { n as normalizedTaskStatusStore } from "./OnboardingDropinComponent-QAfknRI6.js";
|
|
34
25
|
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
35
26
|
return httpGet({
|
|
36
27
|
baseUrl,
|
|
@@ -187,6 +178,18 @@ const getServiceTranslation = (i18n, service) => {
|
|
|
187
178
|
return i18n.get("supportingDocuments");
|
|
188
179
|
}
|
|
189
180
|
};
|
|
181
|
+
const getServiceTranslationSelectTitle = (i18n, service) => {
|
|
182
|
+
switch (service) {
|
|
183
|
+
case "banking":
|
|
184
|
+
return i18n.get("bankingServiceSelectTitle");
|
|
185
|
+
case "issuing":
|
|
186
|
+
return i18n.get("issuingServiceSelectTitle");
|
|
187
|
+
case "paymentProcessing":
|
|
188
|
+
return i18n.get("paymentServiceSelectTitle");
|
|
189
|
+
default:
|
|
190
|
+
return i18n.get("supportingDocuments");
|
|
191
|
+
}
|
|
192
|
+
};
|
|
190
193
|
const getServiceTranslationKey = (service) => {
|
|
191
194
|
switch (service) {
|
|
192
195
|
case "banking":
|
|
@@ -2208,7 +2211,7 @@ function SourceOfFunds(props) {
|
|
|
2208
2211
|
(activeForm == null ? void 0 : activeForm.formId) === "additionalData" ? pageHeadings.heading : {
|
|
2209
2212
|
key: "selectASourceOfFunding",
|
|
2210
2213
|
values: {
|
|
2211
|
-
type:
|
|
2214
|
+
type: getServiceTranslationSelectTitle(
|
|
2212
2215
|
i18n,
|
|
2213
2216
|
(activeBusinessLine == null ? void 0 : activeBusinessLine.service) || ""
|
|
2214
2217
|
).toLowerCase()
|
|
@@ -2395,7 +2398,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2395
2398
|
taskStatus: (_c = (_b = (_a = normalizedTaskStatusStore) == null ? void 0 : _a.value) == null ? void 0 : _b.SOURCE_OF_FUNDS) == null ? void 0 : _c.status
|
|
2396
2399
|
}
|
|
2397
2400
|
),
|
|
2398
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedHeading, el: "h2", variant: "title-l", children: i18n.get("
|
|
2401
|
+
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedHeading, el: "h2", variant: "title-l", children: i18n.get("fundingSourcesForFinancialProducts") }),
|
|
2399
2402
|
hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2400
2403
|
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("addAllSourcesOfFundsBeingUsed") }),
|
|
2401
2404
|
errorObjects && errorObjects.map((errorObj, index) => {
|
|
@@ -2469,7 +2472,7 @@ const SOFUploadModal = (props) => {
|
|
|
2469
2472
|
const { i18n } = useI18nContext();
|
|
2470
2473
|
const { showToast } = useToastContext();
|
|
2471
2474
|
const logger2 = createLogger();
|
|
2472
|
-
const { businessLines, handleModalClose, documentUtils
|
|
2475
|
+
const { businessLines, handleModalClose, documentUtils } = props;
|
|
2473
2476
|
const firstService = (businessLines == null ? void 0 : businessLines.length) === 1 ? (_a = businessLines == null ? void 0 : businessLines[0]) == null ? void 0 : _a.service : void 0;
|
|
2474
2477
|
const [selectedService, setSelectedService] = useState(
|
|
2475
2478
|
firstService
|
|
@@ -2528,7 +2531,7 @@ const SOFUploadModal = (props) => {
|
|
|
2528
2531
|
});
|
|
2529
2532
|
if (formattedDocument) {
|
|
2530
2533
|
try {
|
|
2531
|
-
await documentUtils.uploadDocuments([formattedDocument],
|
|
2534
|
+
await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
|
|
2532
2535
|
showToast({
|
|
2533
2536
|
label: i18n.get("documentUploadedSuccessfully"),
|
|
2534
2537
|
variant: "success",
|
|
@@ -2660,7 +2663,7 @@ const SourceOfFundsUpload = ({
|
|
|
2660
2663
|
return /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadList, children: [
|
|
2661
2664
|
/* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadListHeading, children: [
|
|
2662
2665
|
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("supportingDocuments") }),
|
|
2663
|
-
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children: (sourceOfFundsCategories == null ? void 0 : sourceOfFundsCategories.length) ? i18n.get("weNeedProofOfFundingPlural", {
|
|
2666
|
+
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children: (sourceOfFundsCategories == null ? void 0 : sourceOfFundsCategories.length) > 1 ? i18n.get("weNeedProofOfFundingPlural", {
|
|
2664
2667
|
values: {
|
|
2665
2668
|
category1_name: sourceOfFundsCategories[0] ? i18n.get(
|
|
2666
2669
|
`sofType${toCapitalized(sourceOfFundsCategories[0])}Label`
|
|
@@ -2730,8 +2733,7 @@ const SourceOfFundsUpload = ({
|
|
|
2730
2733
|
{
|
|
2731
2734
|
documentUtils,
|
|
2732
2735
|
handleModalClose,
|
|
2733
|
-
businessLines
|
|
2734
|
-
legalEntityId: legalEntity.id
|
|
2736
|
+
businessLines
|
|
2735
2737
|
}
|
|
2736
2738
|
)
|
|
2737
2739
|
] });
|
|
@@ -2921,17 +2923,22 @@ function SourceOfFundsDropin({
|
|
|
2921
2923
|
return originatorLegalEntityId;
|
|
2922
2924
|
};
|
|
2923
2925
|
const handleSubmit = useCallback(async () => {
|
|
2924
|
-
var _a2;
|
|
2926
|
+
var _a2, _b2;
|
|
2925
2927
|
const sofData = { ...currentState == null ? void 0 : currentState.data };
|
|
2926
2928
|
const sofType = (_a2 = sofData == null ? void 0 : sofData.sourceOfFundsType) == null ? void 0 : _a2.type;
|
|
2927
2929
|
if (!sofType || !(activeBusinessLine == null ? void 0 : activeBusinessLine.id)) {
|
|
2928
2930
|
return;
|
|
2929
2931
|
}
|
|
2932
|
+
const eventsAdditionalData = {};
|
|
2930
2933
|
setLoadingStatus("loading");
|
|
2931
2934
|
const { additionalData } = sofData;
|
|
2932
2935
|
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2933
2936
|
if (sofType === "donations" || sofType === "inheritance") {
|
|
2934
2937
|
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(additionalData);
|
|
2938
|
+
eventsAdditionalData.originatorType = (additionalData == null ? void 0 : additionalData.originatorType) ?? "";
|
|
2939
|
+
}
|
|
2940
|
+
if (sofType === "thirdPartyFunding") {
|
|
2941
|
+
eventsAdditionalData.financiers = `${((_b2 = additionalData == null ? void 0 : additionalData.financiers) == null ? void 0 : _b2.length) || 0} investor(s)`;
|
|
2935
2942
|
}
|
|
2936
2943
|
const sofMutationPayload = {
|
|
2937
2944
|
...sofPayload,
|
|
@@ -2941,7 +2948,8 @@ function SourceOfFundsDropin({
|
|
|
2941
2948
|
await updateSoFMutation(sofMutationPayload);
|
|
2942
2949
|
userEvents.addTaskEvent("Success", {
|
|
2943
2950
|
actionType: "submit",
|
|
2944
|
-
returnValue: sofType
|
|
2951
|
+
returnValue: sofType,
|
|
2952
|
+
additionalData: eventsAdditionalData
|
|
2945
2953
|
});
|
|
2946
2954
|
setGettingStarted(true);
|
|
2947
2955
|
setShowUploadPage(false);
|