@adyen/kyc-components 3.79.0 → 3.80.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-B8gq2Lvn.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
- package/dist/{AccountSetupRejected-Dn6x3lE8.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
- package/dist/{Avatar-Bm0Eluxy.js → Avatar-5RObc8Yd.js} +2 -2
- package/dist/{BusinessDetailsDropin-6TJzQW0O.js → BusinessDetailsDropin-O92NE-y1.js} +115 -139
- package/dist/{BusinessFinancingComponent-BxskEwQc.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
- package/dist/{BusinessFinancingDropin-BaeVc8F6.js → BusinessFinancingDropin-Bhg9neRS.js} +97 -71
- package/dist/{BusinessFinancingPage-CccBeSjZ.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DrKCAdaG.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
- package/dist/{ContractViewer-BaJ-kFmY.js → ContractViewer-DBW5C6kA.js} +2 -2
- package/dist/{CreateIndividualComponent-Bmv5Nc35.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-DF7SwTtr.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
- package/dist/{CustomerSupport-CzH1nyXW.js → CustomerSupport-rSYElbVr.js} +10 -10
- package/dist/{DebugModal-DMkdmfMV.js → DebugModal-BTr0idCC.js} +12 -226
- package/dist/{DecisionMakerDetailsPage-DHLdTCf3.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
- package/dist/DecisionMakers-C2awPhE6.js +478 -0
- package/dist/{EmbeddedStatus-DaBZ91oA.js → EmbeddedStatus-COKtxNW-.js} +13 -13
- package/dist/{FormEndState-BBMSuQj7.js → FormEndState-BmDRa3zJ.js} +4 -3
- package/dist/{FormFlow-C1DKb0gA.js → FormFlow-CNxGh4Yu.js} +3 -3
- package/dist/{IndividualOnfidoDropin-CCbwDQ42.js → IndividualOnfidoDropin-DUzjucM9.js} +204 -184
- package/dist/{Introduction-DL4JlCU3.js → Introduction-BEM_wmkj.js} +24 -26
- package/dist/{ProviderButton-CdJCw-d-.js → LandingLayout-DyY0Exht.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-CXw76qYP.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
- package/dist/{ManageIndividualComponent-DFrxvq1V.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-Dd674r5F.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-Dcc94EKJ.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
- package/dist/{OnboardingDropinComponent-CO8-GF4E.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
- package/dist/{Review-C9xcGO-O.js → Review-C4HOjR6y.js} +11 -11
- package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
- package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
- package/dist/{SignPCIComponent-uHRS64Oo.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
- package/dist/{SingpassSelection-bOy5WFTO.js → SingpassSelection-BJNZw1u-.js} +11 -11
- package/dist/{SoleProprietorshipPage-BE8Mjhjp.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
- package/dist/{SourceOfFundsPage-C-BTd1Ar.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
- package/dist/{StoreProvider-Bw9Xi_Q5.js → StoreProvider-DhQ4sdLg.js} +5799 -5422
- package/dist/{TaskItemStatus-DqghzBaZ.js → TaskItemStatus-Cxcag2AH.js} +23 -23
- package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
- package/dist/{TaxReportingDropin-CmJT82Aj.js → TaxReportingDropin-CbDYoO31.js} +8 -7
- package/dist/{TileGroup-DP6CW2Ya.js → TileGroup-BkLtnLiA.js} +2 -2
- package/dist/{TrustDetailsPage-F-XzAJKt.js → TrustDetailsPage-DktRQRum.js} +38 -14
- package/dist/{TrustMemberCompanyPage-C0U5PbAW.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
- package/dist/{TrustMemberIndividualPage-C_rRPUgX.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-B0B2hFV8.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CdWmnqg-.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
- package/dist/{VerificationErrorAlert-BmrZdkgs.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-DqTteba3.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +143 -124
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +14 -6
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/{getFieldsWithExistingData-xJPsn2JE.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
- package/dist/{hasDataChanged-BQeJUDMz.js → hasDataChanged-DK74H0sZ.js} +2 -2
- package/dist/{localizeDateString-B3Zc2Aep.js → localizeDateString-C34eXZqY.js} +2 -2
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-Dn-CfyG6.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/{resolveEnvironment-BFUUd4tv.js → resolveEnvironment-rJv_NJF_.js} +3 -3
- package/dist/{rules-C7Cw2XXc.js → rules-OP83mdq4.js} +13 -13
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +218 -181
- package/dist/styles-CLV89_hH.js +218 -181
- 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/mapping/payoutKeyMappings.d.ts +0 -306
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/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 +1 -306
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- 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/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
- package/dist/types/components/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/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -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 +14 -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/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +49 -37
- 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-arrangement.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/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/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/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 +38 -36
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/Language.d.ts +1 -0
- package/dist/types/language/utils.d.ts +11 -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 +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/country-code.d.ts +249 -249
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/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-CR4hzuCc.js → useMultiForm-ChxUZ4e7.js} +10 -5
- package/dist/{useOnboardingStatus-Dqs20dD8.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
- package/dist/{useTermsOfServiceStatus-BTFnYGYb.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
- package/dist/{useUpdateLegalEntity-DZmx_k0Y.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
- package/dist/{utils-Dbw9j-fF.js → utils-DmcbDJEd.js} +17 -17
- package/dist/{validate-PXGKct7b.js → validate-B2VmmEPC.js} +2 -2
- package/dist/{validate-sqPOCY2c.js → validate-D66zPhDG.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +5 -30
- package/dist/DecisionMakers-DD4_MCdo.js +0 -217
- package/dist/LandingLayout-CYvWj-yQ.js +0 -139
- package/dist/ManagePCIComponent-DOrKClpc.js +0 -33
- package/dist/RootBusinessDetailsPage-CO4mL-OT.js +0 -42
- package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -62
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
- package/dist/css-BhF49TbR.js +0 -24
- package/dist/json-CYfI6iyy.js +0 -31
- package/dist/plaintext-DqowNgbq.js +0 -17
- 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/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 -15
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-CLSu5OoN.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -30
- package/dist/yaml-tUhjVy56.js +0 -22
package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js}
RENAMED
|
@@ -2,14 +2,14 @@
|
|
|
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] = "45e89429-5947-45a5-9ad0-56e8247f1209", e._sentryDebugIdIdentifier = "sentry-dbid-45e89429-5947-45a5-9ad0-56e8247f1209");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
11
|
+
import { d as useLegalEntity, R as ROOT_LE, af as useCapabilityProblems, aa as useExperimentsContext, X as useAccountHolder, L as Loader, g as getLegalEntityCountry, P as isPartOfTrustFromLegalEntity, b5 as getProblemsForEntity, Z as EntityTypes, b6 as isOnfidoAutofillFlowEnabled, a8 as noop, $ as TaskTypes } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
|
+
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-DUzjucM9.js";
|
|
13
13
|
function RootIndividualDetailsPage({
|
|
14
14
|
asModal = false,
|
|
15
15
|
hideSidebar = false,
|
|
@@ -31,7 +31,7 @@ function RootIndividualDetailsPage({
|
|
|
31
31
|
}
|
|
32
32
|
const country = getLegalEntityCountry(rootLe);
|
|
33
33
|
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
|
|
34
|
-
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems,
|
|
34
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
35
35
|
const isOnfidoAutofillFlow = isOnfidoAutofillFlowEnabled(
|
|
36
36
|
country,
|
|
37
37
|
TaskTypes.INDIVIDUAL,
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "ff2bd360-1155-4d95-94ae-02d967ee0790", e._sentryDebugIdIdentifier = "sentry-dbid-ff2bd360-1155-4d95-94ae-02d967ee0790");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { u as useSalesChannelsSettings, a as usePciStatus } from "./
|
|
13
|
-
import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-
|
|
14
|
-
import { F as FormEndState } from "./FormEndState-
|
|
11
|
+
import { a as useApiContext, r as useQuery, t as httpPost, bo as useInvalidateRootLegalEntity, bp as useMutation, at as isEmpty, u as useI18nContext, a3 as useAnalyticsContext, a9 as useToastContext, ay as useForm, by as getOwnDecisionMakers, O as LegalEntityTypes, $ as TaskTypes, bw as MaybeModal, be as ModalContent, G as Button, a6 as LoaderWrapper, aD as Field, bu as Select, bv as Checkbox, bg as ModalFooter, bh as Spacer, d as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./OnboardingDropinComponent-B0Sj7qf1.js";
|
|
13
|
+
import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-DBW5C6kA.js";
|
|
14
|
+
import { F as FormEndState } from "./FormEndState-BmDRa3zJ.js";
|
|
15
15
|
import { useState, useCallback, useEffect } from "preact/hooks";
|
|
16
16
|
const getPciTemplate = async (legalEntityId, baseUrl, data) => {
|
|
17
17
|
return httpPost(
|
|
@@ -97,7 +97,7 @@ function PciDropin({
|
|
|
97
97
|
])
|
|
98
98
|
).values()
|
|
99
99
|
];
|
|
100
|
-
const signers = legalEntityResponse.type ===
|
|
100
|
+
const signers = legalEntityResponse.type === LegalEntityTypes.ORGANIZATION ? uniqueEntityAssociations.filter(
|
|
101
101
|
(ea) => Boolean(ea.legalEntityId && ea.name)
|
|
102
102
|
).map(({ legalEntityId: id, name }) => ({ id, name })) : [
|
|
103
103
|
{
|
|
@@ -2,32 +2,32 @@
|
|
|
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] = "0969eb5b-9155-4abf-9433-79232f616e89", e._sentryDebugIdIdentifier = "sentry-dbid-0969eb5b-9155-4abf-9433-79232f616e89");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import {
|
|
12
|
+
import { c as useTranslation, ay as useForm, N as Typography, aD as Field, aG as RadioGroupCard, G as Button, H as Svg, O as LegalEntityTypes } from "./StoreProvider-DhQ4sdLg.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|
|
16
16
|
switch (legalEntityType) {
|
|
17
|
-
case
|
|
18
|
-
case
|
|
17
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
18
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
19
19
|
return false;
|
|
20
20
|
default:
|
|
21
21
|
return true;
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
const legalEntityTypeToSelectionTranslationKeyMap = {
|
|
25
|
-
[
|
|
26
|
-
[
|
|
25
|
+
[LegalEntityTypes.INDIVIDUAL]: "retrieveMyInfo",
|
|
26
|
+
[LegalEntityTypes.ORGANIZATION]: "retrieveMyInfoBusiness"
|
|
27
27
|
};
|
|
28
28
|
const legalEntityTypeToSelectionDescriptionTranslationKeyMap = {
|
|
29
|
-
[
|
|
30
|
-
[
|
|
29
|
+
[LegalEntityTypes.INDIVIDUAL]: "getYourVerifiedDetailsInstantly",
|
|
30
|
+
[LegalEntityTypes.ORGANIZATION]: "getYourBusinessVerifiedDetails"
|
|
31
31
|
};
|
|
32
32
|
const getSetupAccountMethodMetadata = (legalEntityType) => {
|
|
33
33
|
const translationSingpassNameKey = legalEntityTypeToSelectionTranslationKeyMap[legalEntityType] ?? "retrieveMyInfoBusiness";
|
|
@@ -66,8 +66,8 @@ const getSetupAccountMethodMetadata = (legalEntityType) => {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
const SingpassSelection = (props) => {
|
|
69
|
+
const { t } = useTranslation();
|
|
69
70
|
const { legalEntityType, handleNextClick } = props;
|
|
70
|
-
const { i18n } = useI18nContext();
|
|
71
71
|
const [selectedMethod, setSelectedMethod] = useState();
|
|
72
72
|
const selectSetupAccountMethod = (method) => {
|
|
73
73
|
setSelectedMethod(method);
|
|
@@ -80,7 +80,7 @@ const SingpassSelection = (props) => {
|
|
|
80
80
|
});
|
|
81
81
|
const methodsMetadata = getSetupAccountMethodMetadata(legalEntityType);
|
|
82
82
|
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-singpass-selection", children: [
|
|
83
|
-
/* @__PURE__ */ jsx("header", { className: "adyen-kyc-u-margin-bottom-32", children: /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title-m", children:
|
|
83
|
+
/* @__PURE__ */ jsx("header", { className: "adyen-kyc-u-margin-bottom-32", children: /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title-m", children: t(($) => $["howWouldYouLikeToSetUpYourAccount"]) }) }),
|
|
84
84
|
/* @__PURE__ */ jsx("form", { children: /* @__PURE__ */ jsx(Field, { el: "fieldset", name: "setupAccountMethod", children: (childProps) => /* @__PURE__ */ jsx(
|
|
85
85
|
RadioGroupCard,
|
|
86
86
|
{
|
|
@@ -112,7 +112,7 @@ const SingpassSelection = (props) => {
|
|
|
112
112
|
handleNextClick(selectedMethod);
|
|
113
113
|
},
|
|
114
114
|
fullWidth: true,
|
|
115
|
-
children:
|
|
115
|
+
children: t(($) => $["continue"])
|
|
116
116
|
}
|
|
117
117
|
)
|
|
118
118
|
] }) });
|
|
@@ -2,14 +2,14 @@
|
|
|
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] = "1913b304-c63e-4d1f-af11-bf9c6443925f", e._sentryDebugIdIdentifier = "sentry-dbid-1913b304-c63e-4d1f-af11-bf9c6443925f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-
|
|
11
|
+
import { d as useLegalEntity, R as ROOT_LE, B as skipToken, af as useCapabilityProblems, L as Loader, b5 as getProblemsForEntity, g as getLegalEntityCountry, $ as TaskTypes, Z as EntityTypes } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-O92NE-y1.js";
|
|
13
13
|
function SoleProprietorshipPage({
|
|
14
14
|
solePropId,
|
|
15
15
|
isTargetLegalEntityType = false,
|
|
@@ -22,7 +22,7 @@ function SoleProprietorshipPage({
|
|
|
22
22
|
if (!rootLe || solePropId && !solePropLe) {
|
|
23
23
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
24
24
|
}
|
|
25
|
-
const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems,
|
|
25
|
+
const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, solePropId) : void 0;
|
|
26
26
|
const country = getLegalEntityCountry(solePropLe ?? rootLe);
|
|
27
27
|
return /* @__PURE__ */ jsx(
|
|
28
28
|
BusinessDetailsDropin,
|
|
@@ -2,25 +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] = "b2d0ca13-5da3-44fb-9992-8ae1b4c13d5f", e._sentryDebugIdIdentifier = "sentry-dbid-b2d0ca13-5da3-44fb-9992-8ae1b4c13d5f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { a as useApiContext, r as useQuery, x as httpGet, bo as useInvalidateRootLegalEntity, bp as useMutation, t as httpPost, bA as formatObject, O as LegalEntityTypes, N as Typography, fz as Currencies, u as useI18nContext, aD as Field, fA as InputGroup, bu as Select, bE as InputText, bJ as InputDate, aH as TextArea, a_ as RadioGroup, aJ as CountryField, bc as Modal, K as Alert, G as Button, bi as Confirm, at as isEmpty, c as useTranslation, ay as useForm, fB as useGlobalDataSlice, aB as ErrorPanel, aC as createFormUtils, L as Loader, a7 as Icon, dr as getFormProps, a4 as Card, bf as StructuredList, a2 as IconButton, dh as isEmpty$1, H as Svg, a9 as useToastContext, a0 as createLogger, fC as Dropzone, cl as createDocumentRequest, br as useQueryClient, d as useLegalEntity, R as ROOT_LE, fg as useStateContext, a3 as useAnalyticsContext, fD as useLegalEntities, cy as getPropsFromConfigurations, bQ as getRequiredForms, bR as addValidityToForms, bS as useFormComposer, cp as documentApiUtils, fl as FormWrapper, af as useCapabilityProblems, b5 as getProblemsForEntity, Z as EntityTypes, g as getLegalEntityCountry } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
12
|
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-DK74H0sZ.js";
|
|
15
15
|
import { signal } from "@preact/signals";
|
|
16
16
|
import { a as formatAmountWithCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-C34eXZqY.js";
|
|
18
18
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
19
|
-
import { A as Avatar } from "./Avatar-
|
|
20
|
-
import { v as validateDateNotInTheFuture } from "./validate-
|
|
21
|
-
import { T as TileGroup } from "./TileGroup-
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
19
|
+
import { A as Avatar } from "./Avatar-5RObc8Yd.js";
|
|
20
|
+
import { v as validateDateNotInTheFuture } from "./validate-B2VmmEPC.js";
|
|
21
|
+
import { T as TileGroup } from "./TileGroup-BkLtnLiA.js";
|
|
22
|
+
import { T as TaskStatusIndicator } from "./TaskStatusIndicator-B5fp8LzR.js";
|
|
23
|
+
import { L as LandingLayout } from "./LandingLayout-DyY0Exht.js";
|
|
24
|
+
import { n as normalizedTaskStatusStore } from "./OnboardingDropinComponent-B0Sj7qf1.js";
|
|
24
25
|
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
25
26
|
return httpGet({
|
|
26
27
|
baseUrl,
|
|
@@ -786,7 +787,7 @@ const parseSofOriginatorPayload = (additionalData) => {
|
|
|
786
787
|
let sofOriginator;
|
|
787
788
|
if (additionalData?.originatorType === "individual") {
|
|
788
789
|
sofOriginator = {
|
|
789
|
-
type:
|
|
790
|
+
type: LegalEntityTypes.INDIVIDUAL,
|
|
790
791
|
individual: {
|
|
791
792
|
name: {
|
|
792
793
|
firstName: additionalData?.firstName ?? "",
|
|
@@ -799,7 +800,7 @@ const parseSofOriginatorPayload = (additionalData) => {
|
|
|
799
800
|
};
|
|
800
801
|
} else {
|
|
801
802
|
sofOriginator = {
|
|
802
|
-
type:
|
|
803
|
+
type: LegalEntityTypes.ORGANIZATION,
|
|
803
804
|
organization: {
|
|
804
805
|
legalName: additionalData?.legalName ?? "",
|
|
805
806
|
registeredAddress: {
|
|
@@ -1497,7 +1498,7 @@ function AdditionalDataForInheritance(props) {
|
|
|
1497
1498
|
{
|
|
1498
1499
|
...childProps,
|
|
1499
1500
|
name: "dateOfFundsReceived",
|
|
1500
|
-
value: data.dateOfFundsReceived,
|
|
1501
|
+
value: formatDateForInput(data.dateOfFundsReceived),
|
|
1501
1502
|
onInput: handleChangeFor("dateOfFundsReceived", "input"),
|
|
1502
1503
|
onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
|
|
1503
1504
|
"aria-required": true,
|
|
@@ -1964,7 +1965,7 @@ const sourceOfFundsAdditionalDataValidations = {
|
|
|
1964
1965
|
}
|
|
1965
1966
|
};
|
|
1966
1967
|
function SourceOfFundsAdditionalData(props) {
|
|
1967
|
-
const {
|
|
1968
|
+
const { t } = useTranslation();
|
|
1968
1969
|
const {
|
|
1969
1970
|
data: defaultData,
|
|
1970
1971
|
validators,
|
|
@@ -2010,7 +2011,7 @@ function SourceOfFundsAdditionalData(props) {
|
|
|
2010
2011
|
};
|
|
2011
2012
|
handleChangeFor("amount")(fieldEvent);
|
|
2012
2013
|
};
|
|
2013
|
-
const formUtils = createFormUtils(props,
|
|
2014
|
+
const formUtils = createFormUtils(props, t);
|
|
2014
2015
|
const { updateStateSlice } = useGlobalDataSlice("additionalData");
|
|
2015
2016
|
useEffect(() => {
|
|
2016
2017
|
updateStateSlice({
|
|
@@ -2133,6 +2134,7 @@ function SourceOfFundsAdditionalData(props) {
|
|
|
2133
2134
|
}
|
|
2134
2135
|
const sourceOfFundsTypeFields = ["type"];
|
|
2135
2136
|
function SourceOfFundsType(props) {
|
|
2137
|
+
const { t } = useTranslation();
|
|
2136
2138
|
const { i18n } = useI18nContext();
|
|
2137
2139
|
const {
|
|
2138
2140
|
data: sourceOfFundsTypeDefaultData,
|
|
@@ -2156,7 +2158,7 @@ function SourceOfFundsType(props) {
|
|
|
2156
2158
|
fieldProblems: fieldValidationErrors,
|
|
2157
2159
|
shouldValidate
|
|
2158
2160
|
});
|
|
2159
|
-
const formUtils = createFormUtils(props,
|
|
2161
|
+
const formUtils = createFormUtils(props, t);
|
|
2160
2162
|
const { updateStateSlice } = useGlobalDataSlice("sourceOfFundsType");
|
|
2161
2163
|
useEffect(() => {
|
|
2162
2164
|
updateStateSlice({
|
|
@@ -2780,7 +2782,7 @@ function SourceOfFundsDropin({
|
|
|
2780
2782
|
const { i18n } = useI18nContext();
|
|
2781
2783
|
const userEvents = useAnalyticsContext();
|
|
2782
2784
|
const { showToast } = useToastContext();
|
|
2783
|
-
const { data: businessLinesData } = useBusinessLines();
|
|
2785
|
+
const { data: businessLinesData, isLoading: isLoadingBusinessLines } = useBusinessLines();
|
|
2784
2786
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
2785
2787
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
2786
2788
|
const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
|
|
@@ -2935,7 +2937,12 @@ function SourceOfFundsDropin({
|
|
|
2935
2937
|
const { additionalData } = sofData;
|
|
2936
2938
|
const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
|
|
2937
2939
|
if (sofType === "donations" || sofType === "inheritance") {
|
|
2938
|
-
|
|
2940
|
+
try {
|
|
2941
|
+
sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(additionalData);
|
|
2942
|
+
} catch (e) {
|
|
2943
|
+
setSofErrorMessage(e?.message || i18n.get("errorUpdatingSourceOfFunds"));
|
|
2944
|
+
logger.log("Error updating source of funds", e);
|
|
2945
|
+
}
|
|
2939
2946
|
eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
|
|
2940
2947
|
}
|
|
2941
2948
|
if (sofType === "thirdPartyFunding") {
|
|
@@ -2957,6 +2964,7 @@ function SourceOfFundsDropin({
|
|
|
2957
2964
|
setActiveSourceOfFund({});
|
|
2958
2965
|
gotoFormByFormIndex(0);
|
|
2959
2966
|
setSofErrorMessage("");
|
|
2967
|
+
showToast({ label: i18n.get("successAddedFundingSources"), variant: "success" });
|
|
2960
2968
|
handleHomeClick?.();
|
|
2961
2969
|
} catch (e) {
|
|
2962
2970
|
setSofErrorMessage(e?.message || i18n.get("errorUpdatingSourceOfFunds"));
|
|
@@ -2996,7 +3004,7 @@ function SourceOfFundsDropin({
|
|
|
2996
3004
|
const handleNavigateToUploadPage = () => {
|
|
2997
3005
|
setShowUploadPage(true);
|
|
2998
3006
|
};
|
|
2999
|
-
return /* @__PURE__ */ jsx("div", { className: styles.sourceOfFunds, children: loading || isLoadingRootLegalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3007
|
+
return /* @__PURE__ */ jsx("div", { className: styles.sourceOfFunds, children: loading || isLoadingRootLegalEntity || isLoadingBusinessLines || areLegalEntitiesLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3000
3008
|
gettingStarted && !showUploadPage && legalEntity && /* @__PURE__ */ jsx(
|
|
3001
3009
|
SourceOfFundsGettingStarted,
|
|
3002
3010
|
{
|
|
@@ -3059,7 +3067,7 @@ const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
|
|
|
3059
3067
|
if (!rootLe) {
|
|
3060
3068
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
3061
3069
|
}
|
|
3062
|
-
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems,
|
|
3070
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
3063
3071
|
return /* @__PURE__ */ jsx(
|
|
3064
3072
|
SourceOfFundsDropin,
|
|
3065
3073
|
{
|