@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
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "28d1f09b-5a23-42ca-a010-aa8bcb1fc070", e._sentryDebugIdIdentifier = "sentry-dbid-28d1f09b-5a23-42ca-a010-aa8bcb1fc070");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState, useCallback } from "preact/hooks";
|
|
12
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
13
|
-
import {
|
|
14
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
15
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
16
|
-
import { F as FormEndState } from "./FormEndState-
|
|
17
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
19
|
-
import { b as businessFinancingMultiformRules } from "./validate-
|
|
12
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
|
|
13
|
+
import { bz as reverseMapping, bA as formatObject, bB as isEeaCountry, O as LegalEntityTypes, bk as cloneObject, a as useApiContext, r as useQuery, x as httpGet, u as useI18nContext, aD as Field, bu as Select, c as useTranslation, N as Typography, bC as LegalFormField, aC as createFormUtils, a_ as RadioGroup, bD as Link, bE as InputText, bl as currencyByCountry, bF as InputNumber, bG as Currency, bH as CURRENCY_FIELD, bI as InputCurrency, bJ as InputDate, bK as useFormContext, az as getFieldProps, aB as ErrorPanel, ba as datasetUtilities, bL as getAddressSchemaForCountry, bM as COUNTRIES_WITH_STATES_DATASET, bv as Checkbox, bN as Address, bO as getAddressSchemaLabelsByCountry, a3 as useAnalyticsContext, bo as useInvalidateRootLegalEntity, ar as useAssociatedLegalEntity, a9 as useToastContext, v as useSettingsContext, w as SettingNames, bP as getAssociatedLeAnalyticsPayload, bQ as getRequiredForms, bR as addValidityToForms, bS as useFormComposer, bT as trackNavigation, L as Loader, a7 as Icon, G as Button, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError } from "./StoreProvider-DhQ4sdLg.js";
|
|
14
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-CNxGh4Yu.js";
|
|
15
|
+
import { u as useMultiForm } from "./useMultiForm-ChxUZ4e7.js";
|
|
16
|
+
import { F as FormEndState } from "./FormEndState-BmDRa3zJ.js";
|
|
17
|
+
import { l as localizeDateString } from "./localizeDateString-C34eXZqY.js";
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-DoJu-RRw.js";
|
|
19
|
+
import { b as businessFinancingMultiformRules } from "./validate-B2VmmEPC.js";
|
|
20
20
|
const businessFinancingBaseMapping = {
|
|
21
21
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
22
22
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -43,29 +43,32 @@ const mapBusinessFinancingToLegalEntity = (data) => ({
|
|
|
43
43
|
businessFinancingApiKeyMapping
|
|
44
44
|
)
|
|
45
45
|
});
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
const BusinessFinancingPages = {
|
|
47
|
+
COMPANY_PAGE: "company",
|
|
48
|
+
PARENT_COMPANY_PAGE: "parentCompany",
|
|
49
|
+
ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
|
|
50
|
+
};
|
|
51
|
+
const BusinessFinancingRadioIds = {
|
|
52
|
+
YES: "Yes",
|
|
53
|
+
NO: "No"
|
|
54
|
+
};
|
|
52
55
|
const businessFinancingRadioItems = [
|
|
53
56
|
{
|
|
54
|
-
id:
|
|
57
|
+
id: BusinessFinancingRadioIds.YES,
|
|
55
58
|
name: "yes"
|
|
56
59
|
},
|
|
57
60
|
{
|
|
58
|
-
id:
|
|
61
|
+
id: BusinessFinancingRadioIds.NO,
|
|
59
62
|
name: "no"
|
|
60
63
|
}
|
|
61
64
|
];
|
|
62
65
|
const businessFinancingParentRadioItems = [
|
|
63
66
|
{
|
|
64
|
-
id:
|
|
67
|
+
id: BusinessFinancingRadioIds.YES,
|
|
65
68
|
name: "yes"
|
|
66
69
|
},
|
|
67
70
|
{
|
|
68
|
-
id:
|
|
71
|
+
id: BusinessFinancingRadioIds.NO,
|
|
69
72
|
name: "noIdontKnow"
|
|
70
73
|
}
|
|
71
74
|
];
|
|
@@ -118,17 +121,16 @@ const businessFinancingForms = {
|
|
|
118
121
|
fields: [...parentCompaniesSchemaKeys]
|
|
119
122
|
}
|
|
120
123
|
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
})(BusinessFinancingIndex || {});
|
|
124
|
+
const BusinessFinancingIndices = {
|
|
125
|
+
COMPANY: "company",
|
|
126
|
+
PARENT_COMPANY: "parentCompany",
|
|
127
|
+
ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
|
|
128
|
+
};
|
|
127
129
|
const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
128
130
|
if (!rootLegalEntity) return void 0;
|
|
129
|
-
if (businessFinancingIndex ===
|
|
131
|
+
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
|
|
130
132
|
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
131
|
-
const businessFinancingEntityType =
|
|
133
|
+
const businessFinancingEntityType = "immediateParentCompany";
|
|
132
134
|
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
133
135
|
(entity) => entity.type === businessFinancingEntityType
|
|
134
136
|
);
|
|
@@ -149,10 +151,10 @@ const financialReportsToString = (financialReports) => {
|
|
|
149
151
|
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
150
152
|
const businessFinancingData = data[businessFinancingIndex];
|
|
151
153
|
if (!businessFinancingData) return null;
|
|
152
|
-
if (businessFinancingIndex ===
|
|
154
|
+
if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
|
|
153
155
|
return null;
|
|
154
156
|
}
|
|
155
|
-
if (businessFinancingIndex ===
|
|
157
|
+
if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
|
|
156
158
|
return null;
|
|
157
159
|
}
|
|
158
160
|
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
@@ -197,7 +199,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
197
199
|
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
198
200
|
} else {
|
|
199
201
|
delete businessFinancingDetails.id;
|
|
200
|
-
businessFinancingDetails.type =
|
|
202
|
+
businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
|
|
201
203
|
}
|
|
202
204
|
return businessFinancingDetails;
|
|
203
205
|
};
|
|
@@ -572,12 +574,13 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
572
574
|
sectionHeading,
|
|
573
575
|
hideSectionHeading
|
|
574
576
|
} = props;
|
|
577
|
+
const { t } = useTranslation();
|
|
575
578
|
const { i18n } = useI18nContext();
|
|
576
|
-
const formUtils = createFormUtils(props,
|
|
579
|
+
const formUtils = createFormUtils(props, t);
|
|
577
580
|
if (!handleFieldChange) {
|
|
578
581
|
return;
|
|
579
582
|
}
|
|
580
|
-
const isMainCompany = targetPage ===
|
|
583
|
+
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
581
584
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
582
585
|
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "yourBusinessInformation") }),
|
|
583
586
|
/* @__PURE__ */ jsx(
|
|
@@ -686,7 +689,8 @@ const financialInformationFields = [
|
|
|
686
689
|
function BusinessFinancingFinancialInformation(props) {
|
|
687
690
|
const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
|
|
688
691
|
const { i18n } = useI18nContext();
|
|
689
|
-
const
|
|
692
|
+
const { t, i18n: i18next } = useTranslation();
|
|
693
|
+
const formUtils = createFormUtils(props, t);
|
|
690
694
|
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
691
695
|
if (!handleFieldChange) {
|
|
692
696
|
return;
|
|
@@ -696,6 +700,9 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
696
700
|
const isFinancialDataValid = valid;
|
|
697
701
|
const [firstCurrency] = currenciesForCurrCountry;
|
|
698
702
|
const defaultCurrency = firstCurrency ?? "EUR";
|
|
703
|
+
if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
|
|
704
|
+
handleFieldChange("currency")(firstCurrency);
|
|
705
|
+
}
|
|
699
706
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
700
707
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "businessFinancials") }),
|
|
701
708
|
/* @__PURE__ */ jsx(
|
|
@@ -722,7 +729,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
722
729
|
)
|
|
723
730
|
}
|
|
724
731
|
),
|
|
725
|
-
/* @__PURE__ */ jsx(
|
|
732
|
+
currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
|
|
726
733
|
Currency,
|
|
727
734
|
{
|
|
728
735
|
country,
|
|
@@ -746,7 +753,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
746
753
|
InputCurrency,
|
|
747
754
|
{
|
|
748
755
|
...childProps,
|
|
749
|
-
locale:
|
|
756
|
+
locale: i18next.language,
|
|
750
757
|
currency: data?.currency ?? defaultCurrency,
|
|
751
758
|
amount: data?.netAssets ? Number(data?.netAssets) : void 0,
|
|
752
759
|
onAmountChanged: handleFieldChange("netAssets")
|
|
@@ -766,7 +773,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
766
773
|
{
|
|
767
774
|
...childProps,
|
|
768
775
|
name: "annualTurnover",
|
|
769
|
-
locale:
|
|
776
|
+
locale: i18next.language,
|
|
770
777
|
currency: data?.currency ?? defaultCurrency,
|
|
771
778
|
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
772
779
|
onAmountChanged: handleFieldChange("annualTurnover")
|
|
@@ -811,8 +818,9 @@ const legalInformationFields = [
|
|
|
811
818
|
];
|
|
812
819
|
function BusinessFinancingLegalInformation(props) {
|
|
813
820
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
821
|
+
const { t } = useTranslation();
|
|
814
822
|
const { i18n } = useI18nContext();
|
|
815
|
-
const formUtils = createFormUtils(props,
|
|
823
|
+
const formUtils = createFormUtils(props, t);
|
|
816
824
|
if (!handleFieldChange) {
|
|
817
825
|
return;
|
|
818
826
|
}
|
|
@@ -886,8 +894,9 @@ const ownershipStructureFields = [
|
|
|
886
894
|
];
|
|
887
895
|
function BusinessFinancingOwnershipStructure(props) {
|
|
888
896
|
const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
|
|
897
|
+
const { t } = useTranslation();
|
|
889
898
|
const { i18n } = useI18nContext();
|
|
890
|
-
const formUtils = createFormUtils(props,
|
|
899
|
+
const formUtils = createFormUtils(props, t);
|
|
891
900
|
if (!handleFieldChange) {
|
|
892
901
|
return;
|
|
893
902
|
}
|
|
@@ -954,17 +963,22 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
954
963
|
] });
|
|
955
964
|
}
|
|
956
965
|
function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
966
|
+
const { t } = useTranslation();
|
|
957
967
|
const { i18n } = useI18nContext();
|
|
958
968
|
const {
|
|
959
|
-
form: { handleChangeFor, data }
|
|
969
|
+
form: { handleChangeFor, data, setValid }
|
|
960
970
|
} = useFormContext();
|
|
961
|
-
const { country, formVerificationErrors, legalEntity } = props;
|
|
962
|
-
const formUtils = createFormUtils(props,
|
|
971
|
+
const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
|
|
972
|
+
const formUtils = createFormUtils(props, t);
|
|
963
973
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
|
|
964
974
|
const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
|
|
965
975
|
const businessInformationProps = getFieldProps(props, businessInformationFields);
|
|
966
976
|
const financialInformationProps = getFieldProps(props, financialInformationFields);
|
|
967
977
|
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
978
|
+
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
979
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
980
|
+
setValid("currency", true, "company");
|
|
981
|
+
}
|
|
968
982
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
969
983
|
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("additionalInformationForBusinessFinancing") }),
|
|
970
984
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("toProcessYourFundsWeNeedMoreInformation") }),
|
|
@@ -972,7 +986,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
972
986
|
ErrorPanel,
|
|
973
987
|
{
|
|
974
988
|
verificationErrors: formVerificationErrors,
|
|
975
|
-
validationErrors:
|
|
989
|
+
validationErrors: fieldValidationErrors,
|
|
976
990
|
formUtils,
|
|
977
991
|
id: "ariaErrorField"
|
|
978
992
|
}
|
|
@@ -983,7 +997,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
983
997
|
...businessInformationProps,
|
|
984
998
|
handleFieldChange: handleChange,
|
|
985
999
|
country,
|
|
986
|
-
targetPage:
|
|
1000
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
987
1001
|
sectionHeading: "yourBusinessInformation",
|
|
988
1002
|
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
989
1003
|
}
|
|
@@ -994,7 +1008,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
994
1008
|
...financialInformationProps,
|
|
995
1009
|
handleFieldChange: handleChange,
|
|
996
1010
|
country,
|
|
997
|
-
targetPage:
|
|
1011
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
998
1012
|
data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
|
|
999
1013
|
}
|
|
1000
1014
|
),
|
|
@@ -1004,7 +1018,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1004
1018
|
...legalInformationProps,
|
|
1005
1019
|
country,
|
|
1006
1020
|
handleFieldChange: handleChange,
|
|
1007
|
-
targetPage:
|
|
1021
|
+
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1008
1022
|
sectionHeading: "legalInformation",
|
|
1009
1023
|
data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
|
|
1010
1024
|
}
|
|
@@ -1025,8 +1039,9 @@ const basicInformationFields = [
|
|
|
1025
1039
|
];
|
|
1026
1040
|
function BusinessFinancingBasicCompanyInformation(props) {
|
|
1027
1041
|
const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
|
|
1042
|
+
const { t } = useTranslation();
|
|
1028
1043
|
const { i18n } = useI18nContext();
|
|
1029
|
-
const formUtils = createFormUtils(props,
|
|
1044
|
+
const formUtils = createFormUtils(props, t);
|
|
1030
1045
|
if (!handleFieldChange) {
|
|
1031
1046
|
return;
|
|
1032
1047
|
}
|
|
@@ -1077,8 +1092,9 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1077
1092
|
legalEntity,
|
|
1078
1093
|
sectionHeading
|
|
1079
1094
|
} = props;
|
|
1095
|
+
const { t } = useTranslation();
|
|
1080
1096
|
const { i18n } = useI18nContext();
|
|
1081
|
-
const formUtils = createFormUtils(props,
|
|
1097
|
+
const formUtils = createFormUtils(props, t);
|
|
1082
1098
|
const addressCountry = data?.registrationAddress?.country;
|
|
1083
1099
|
const datasetUtils = datasetUtilities(i18n.locale);
|
|
1084
1100
|
const addressSchema = useMemo(() => {
|
|
@@ -1180,12 +1196,13 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1180
1196
|
}
|
|
1181
1197
|
const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
|
|
1182
1198
|
function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
1199
|
+
const { t } = useTranslation();
|
|
1183
1200
|
const { i18n } = useI18nContext();
|
|
1184
1201
|
const {
|
|
1185
1202
|
form: { handleChangeFor, data, setValid }
|
|
1186
1203
|
} = useFormContext();
|
|
1187
1204
|
const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
|
|
1188
|
-
const formUtils = createFormUtils(props,
|
|
1205
|
+
const formUtils = createFormUtils(props, t);
|
|
1189
1206
|
const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
|
|
1190
1207
|
setValid("sameAddressAsRootEntity", true, "parentCompany");
|
|
1191
1208
|
const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
|
|
@@ -1197,6 +1214,10 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1197
1214
|
data?.parentCompany,
|
|
1198
1215
|
legalEntity?.organization?.registeredAddress
|
|
1199
1216
|
);
|
|
1217
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1218
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1219
|
+
setValid("currency", true, "parentCompany");
|
|
1220
|
+
}
|
|
1200
1221
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1201
1222
|
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("parentCompanyInformation") }),
|
|
1202
1223
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAParentCompany") }),
|
|
@@ -1236,7 +1257,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1236
1257
|
...businessInformationProps,
|
|
1237
1258
|
hideSectionHeading: true,
|
|
1238
1259
|
country: addressCountry ?? country,
|
|
1239
|
-
targetPage:
|
|
1260
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1240
1261
|
handleFieldChange: handleChange,
|
|
1241
1262
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
|
|
1242
1263
|
}
|
|
@@ -1246,7 +1267,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1246
1267
|
{
|
|
1247
1268
|
...financialInformationProps,
|
|
1248
1269
|
country: addressCountry ?? country,
|
|
1249
|
-
targetPage:
|
|
1270
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1250
1271
|
handleFieldChange: handleChange,
|
|
1251
1272
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
|
|
1252
1273
|
}
|
|
@@ -1256,7 +1277,7 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1256
1277
|
{
|
|
1257
1278
|
...legalInformationProps,
|
|
1258
1279
|
country: addressCountry ?? country,
|
|
1259
|
-
targetPage:
|
|
1280
|
+
targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
|
|
1260
1281
|
sectionHeading: "legalInformation",
|
|
1261
1282
|
handleFieldChange: handleChange,
|
|
1262
1283
|
data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
|
|
@@ -1268,7 +1289,8 @@ const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompa
|
|
|
1268
1289
|
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1269
1290
|
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
1270
1291
|
const { i18n } = useI18nContext();
|
|
1271
|
-
const
|
|
1292
|
+
const { t } = useTranslation();
|
|
1293
|
+
const formUtils = createFormUtils(props, t);
|
|
1272
1294
|
const {
|
|
1273
1295
|
form: { handleChangeFor, data, setValid }
|
|
1274
1296
|
} = useFormContext();
|
|
@@ -1283,6 +1305,10 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1283
1305
|
data?.ultimateParentCompany,
|
|
1284
1306
|
legalEntity?.organization?.registeredAddress
|
|
1285
1307
|
);
|
|
1308
|
+
const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
|
|
1309
|
+
if (currenciesForCurrCountry?.length === 1) {
|
|
1310
|
+
setValid("currency", true, "ultimateParentCompany");
|
|
1311
|
+
}
|
|
1286
1312
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1287
1313
|
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("ultimateParentCompanyInformation") }),
|
|
1288
1314
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("inThePreviousStepOwnedByAnUltimateParentCompany") }),
|
|
@@ -1322,7 +1348,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1322
1348
|
...businessInformationProps,
|
|
1323
1349
|
hideSectionHeading: true,
|
|
1324
1350
|
country: addressCountry ?? country,
|
|
1325
|
-
targetPage:
|
|
1351
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1326
1352
|
handleFieldChange: handleChange,
|
|
1327
1353
|
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
|
|
1328
1354
|
}
|
|
@@ -1332,7 +1358,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1332
1358
|
{
|
|
1333
1359
|
...financialInformationProps,
|
|
1334
1360
|
country: addressCountry ?? country,
|
|
1335
|
-
targetPage:
|
|
1361
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1336
1362
|
handleFieldChange: handleChange,
|
|
1337
1363
|
data: formUtils.getFieldData(
|
|
1338
1364
|
data?.ultimateParentCompany ?? {},
|
|
@@ -1346,7 +1372,7 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1346
1372
|
...legalInformationProps,
|
|
1347
1373
|
country: addressCountry ?? country,
|
|
1348
1374
|
sectionHeading: "legalInformation",
|
|
1349
|
-
targetPage:
|
|
1375
|
+
targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
1350
1376
|
handleFieldChange: handleChange,
|
|
1351
1377
|
data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
|
|
1352
1378
|
}
|
|
@@ -1452,17 +1478,17 @@ function BusinessFinancingDropin(props) {
|
|
|
1452
1478
|
return;
|
|
1453
1479
|
}
|
|
1454
1480
|
const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1455
|
-
|
|
1481
|
+
BusinessFinancingIndices.COMPANY,
|
|
1456
1482
|
umfData,
|
|
1457
1483
|
rootLegalEntity
|
|
1458
1484
|
);
|
|
1459
1485
|
const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1460
|
-
|
|
1486
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1461
1487
|
umfData,
|
|
1462
1488
|
rootLegalEntity
|
|
1463
1489
|
);
|
|
1464
1490
|
const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1465
|
-
|
|
1491
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1466
1492
|
umfData,
|
|
1467
1493
|
rootLegalEntity
|
|
1468
1494
|
);
|
|
@@ -1476,7 +1502,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1476
1502
|
const promises = [];
|
|
1477
1503
|
if (parentCompanyBusinessFinancingDetails) {
|
|
1478
1504
|
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1479
|
-
|
|
1505
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1480
1506
|
parentCompanyBusinessFinancingDetails,
|
|
1481
1507
|
createLegalEntity,
|
|
1482
1508
|
updateLegalEntity,
|
|
@@ -1486,7 +1512,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1486
1512
|
}
|
|
1487
1513
|
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1488
1514
|
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1489
|
-
|
|
1515
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1490
1516
|
ultimateParentCompanyBusinessFinancingDetails,
|
|
1491
1517
|
createLegalEntity,
|
|
1492
1518
|
updateLegalEntity,
|
|
@@ -1501,30 +1527,30 @@ function BusinessFinancingDropin(props) {
|
|
|
1501
1527
|
const businessFinancingEntityAssociations = [
|
|
1502
1528
|
...previousEntityAssociations
|
|
1503
1529
|
];
|
|
1504
|
-
const entitiesToTrack = [
|
|
1530
|
+
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1505
1531
|
results.forEach((result, index) => {
|
|
1506
|
-
const businessFinancingType = index === 0 ?
|
|
1532
|
+
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1507
1533
|
if (result.status === "fulfilled") {
|
|
1508
1534
|
const response = result.value;
|
|
1509
|
-
if (businessFinancingType ===
|
|
1535
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1510
1536
|
businessFinancingEntityAssociations.push({
|
|
1511
1537
|
type: "immediateParentCompany",
|
|
1512
1538
|
legalEntityId: response.id,
|
|
1513
1539
|
associatorId: companyBusinessFinancingDetails.id
|
|
1514
1540
|
});
|
|
1515
|
-
entitiesToTrack.push(
|
|
1516
|
-
} else if (businessFinancingType ===
|
|
1541
|
+
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1542
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1517
1543
|
businessFinancingEntityAssociations.push({
|
|
1518
1544
|
type: "ultimateParentCompany",
|
|
1519
1545
|
legalEntityId: response.id,
|
|
1520
1546
|
associatorId: companyBusinessFinancingDetails.id
|
|
1521
1547
|
});
|
|
1522
|
-
entitiesToTrack.push(
|
|
1548
|
+
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1523
1549
|
}
|
|
1524
1550
|
} else {
|
|
1525
|
-
if (businessFinancingType ===
|
|
1551
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1526
1552
|
parentCompanyFailed = true;
|
|
1527
|
-
} else if (businessFinancingType ===
|
|
1553
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1528
1554
|
ultimateParentCompanyFailed = true;
|
|
1529
1555
|
}
|
|
1530
1556
|
handleSubmissionError(result.reason, businessFinancingType);
|
|
@@ -1544,7 +1570,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1544
1570
|
};
|
|
1545
1571
|
try {
|
|
1546
1572
|
await handleBusinessFinancingFormSubmission(
|
|
1547
|
-
|
|
1573
|
+
BusinessFinancingIndices.COMPANY,
|
|
1548
1574
|
companyBusinessFinancingDetails,
|
|
1549
1575
|
createLegalEntity,
|
|
1550
1576
|
updateLegalEntity,
|
|
@@ -1563,13 +1589,13 @@ function BusinessFinancingDropin(props) {
|
|
|
1563
1589
|
}
|
|
1564
1590
|
} catch (e) {
|
|
1565
1591
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1566
|
-
handleSubmissionError(e,
|
|
1592
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1567
1593
|
}
|
|
1568
1594
|
setProblems({});
|
|
1569
1595
|
}
|
|
1570
1596
|
} catch (e) {
|
|
1571
1597
|
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1572
|
-
handleSubmissionError(e,
|
|
1598
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1573
1599
|
}
|
|
1574
1600
|
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1575
1601
|
} finally {
|
|
@@ -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] = "a0d93f8f-8488-4970-a59d-578d8a26cd41", e._sentryDebugIdIdentifier = "sentry-dbid-a0d93f8f-8488-4970-a59d-578d8a26cd41");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
11
|
+
import { u as useI18nContext, d as useLegalEntity, R as ROOT_LE, L as Loader, g as getLegalEntityCountry } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-Bhg9neRS.js";
|
|
13
13
|
const BusinessFinancingPage = ({
|
|
14
14
|
onSubmit,
|
|
15
15
|
handleHomeClick
|