@adyen/kyc-components 3.79.0-beta.9 → 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-BtDbLa_E.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
- package/dist/{AccountSetupRejected-CcEP6pSK.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
- package/dist/{Avatar-CIGV_SS9.js → Avatar-5RObc8Yd.js} +2 -2
- package/dist/{BusinessDetailsDropin-DLYZERBF.js → BusinessDetailsDropin-O92NE-y1.js} +132 -144
- package/dist/{BusinessFinancingComponent-B0-te_Xu.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
- package/dist/{BusinessFinancingDropin-B4_rfH9-.js → BusinessFinancingDropin-Bhg9neRS.js} +135 -97
- package/dist/{BusinessFinancingPage-CrrXzA0g.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-D8xVIVhb.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
- package/dist/{ContractViewer-UYqTJdeu.js → ContractViewer-DBW5C6kA.js} +2 -2
- package/dist/{CreateIndividualComponent-XvZnVu7B.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-BgYVNCFm.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
- package/dist/{CustomerSupport-CYFiNKxp.js → CustomerSupport-rSYElbVr.js} +10 -10
- package/dist/{DebugModal-D3MJ4glT.js → DebugModal-BTr0idCC.js} +12 -226
- package/dist/{DecisionMakerDetailsPage-CbEA4IVc.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
- package/dist/DecisionMakers-C2awPhE6.js +478 -0
- package/dist/{EmbeddedStatus-90fvG4vd.js → EmbeddedStatus-COKtxNW-.js} +13 -13
- package/dist/{FormEndState-n1UQXu_s.js → FormEndState-BmDRa3zJ.js} +4 -3
- package/dist/{FormFlow-DJAJpY63.js → FormFlow-CNxGh4Yu.js} +3 -3
- package/dist/{IndividualOnfidoDropin-UnR6_lSH.js → IndividualOnfidoDropin-DUzjucM9.js} +217 -188
- package/dist/{Introduction-DF3A8V4n.js → Introduction-BEM_wmkj.js} +24 -26
- package/dist/{ProviderButton-C0l7gpNQ.js → LandingLayout-DyY0Exht.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-BVyxsmeu.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
- package/dist/{ManageIndividualComponent-CgoC5kz6.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-Csey0WTR.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-Cl1QWiGy.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
- package/dist/{OnboardingDropinComponent-CMrZ3LMb.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
- package/dist/{Review-CzahUVPw.js → Review-C4HOjR6y.js} +11 -11
- package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
- package/dist/{RootIndividualDetailsPage-BWTT7m_R.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
- package/dist/{SignPCIComponent-BQNUvb0U.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
- package/dist/{SingpassSelection-XgZwkWE1.js → SingpassSelection-BJNZw1u-.js} +11 -11
- package/dist/{SoleProprietorshipPage-By5_23ht.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
- package/dist/{SourceOfFundsPage-CDGfbVu5.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
- package/dist/{StoreProvider-D6PzfyGo.js → StoreProvider-DhQ4sdLg.js} +5809 -5424
- package/dist/{TaskItemStatus-FSfcOG5a.js → TaskItemStatus-Cxcag2AH.js} +23 -23
- package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
- package/dist/{TaxReportingDropin-B7TEo7Kn.js → TaxReportingDropin-CbDYoO31.js} +8 -7
- package/dist/{TileGroup-rR4DgKfb.js → TileGroup-BkLtnLiA.js} +2 -2
- package/dist/{TrustDetailsPage-DPBPQVSn.js → TrustDetailsPage-DktRQRum.js} +38 -14
- package/dist/{TrustMemberCompanyPage-B_TShwlL.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
- package/dist/{TrustMemberIndividualPage-BgQBZEcL.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DHcH33Db.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BTklC9NY.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
- package/dist/{VerificationErrorAlert-BrW_bMo4.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-4QUIn73E.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-nHjOwfDp.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
- package/dist/{hasDataChanged-C8mesP2r.js → hasDataChanged-DK74H0sZ.js} +2 -2
- package/dist/{localizeDateString-BUxfnxIU.js → localizeDateString-C34eXZqY.js} +2 -2
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-CYeTa8E1.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/{resolveEnvironment-sH8SYGuY.js → resolveEnvironment-rJv_NJF_.js} +3 -3
- package/dist/{rules-CbVhdTWA.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 +3 -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-DEOL8O6Q.js → useMultiForm-ChxUZ4e7.js} +10 -5
- package/dist/{useOnboardingStatus-BSZeiaAC.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
- package/dist/{useTermsOfServiceStatus-B9zuE6yV.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
- package/dist/{useUpdateLegalEntity-Bs2tKEPC.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
- package/dist/{utils-WopSF2zY.js → utils-DmcbDJEd.js} +17 -17
- package/dist/{validate-D40HSgPc.js → validate-B2VmmEPC.js} +2 -2
- package/dist/{validate-D2R8_9ew.js → validate-D66zPhDG.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +5 -30
- package/dist/DecisionMakers-DCU9mFe8.js +0 -217
- package/dist/LandingLayout-DIrahoMq.js +0 -139
- package/dist/ManagePCIComponent-sKP7Mgeo.js +0 -33
- package/dist/RootBusinessDetailsPage-CA5r2xq3.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-Di2ysu56.js +0 -24
- package/dist/json-x8T3RzUR.js +0 -31
- package/dist/plaintext-D3Ww_aF9.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-CuQ0ULoa.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-BMoCIv2z.js +0 -22
package/dist/{OnboardingDropinComponent-CMrZ3LMb.js → OnboardingDropinComponent-B0Sj7qf1.js}
RENAMED
|
@@ -2,26 +2,61 @@
|
|
|
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] = "68a8ec59-62d8-4254-95df-1b951c1b3023", e._sentryDebugIdIdentifier = "sentry-dbid-68a8ec59-62d8-4254-95df-1b951c1b3023");
|
|
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, t as httpPost, v as useSettingsContext, w as SettingNames, x as httpGet, y as useLocalStorage, z as getLegalRepresentative, d as useLegalEntity, B as skipToken, C as doesLegalEntityRequiresLegalRepresentative, c as useTranslation, G as Button, H as Svg, J as Skeleton, K as Alert, M as translateStringOrObject, N as Typography, O as LegalEntityTypes, P as isPartOfTrustFromLegalEntity, U as hasSolePropInLegalEntity, V as hasOwnEntityAssociationOfType, W as isEmptyEntity, X as useAccountHolder, Y as CompanyTypesValues, Z as EntityTypes, _ as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, $ as TaskTypes, a0 as createLogger, a1 as TaskStatuses, a2 as IconButton, a3 as useAnalyticsContext, a4 as Card, a5 as handleKeys, a6 as LoaderWrapper, a7 as Icon, a8 as noop, a9 as useToastContext, aa as useExperimentsContext, ab as isInstantVerifiedAccount, ac as getObscuredAccountNumber, ad as useGetTaskStatus, ae as CardGroup, R as ROOT_LE, af as useCapabilityProblems, L as Loader, ag as useGlobalStore, ah as useSetting, ai as isPartOfUnincorporatedPartnership, aj as getOwnSignatories, ak as getOwnDecisionMakersLegalEntityIds, al as getOwnSolePropProblems, am as getOwnTrustProblems, an as getOwnUnincorporatedPartnershipProblems, ao as getOwnEntityAssociations, ap as TrustMemberTypes, aq as getLegalEntityNameBasedOnType, ar as useAssociatedLegalEntity, u as useI18nContext, as as CountryCodes, at as isEmpty, au as mergeFieldMetadataIntoProps, av as resolveFieldMetadata, aw as defaultFieldMetadata, ax as defaultFieldConfig, ay as useForm, az as getFieldProps, aA as nameFields, F as FormHeader, aB as ErrorPanel, aC as createFormUtils, aD as Field, aE as MultiSelectList, aF as makeSelectItemForRole, aG as RadioGroupCard, aH as TextArea, aI as Name, aJ as CountryField, aK as COUNTRY_FIELD, aL as LegalCompanyNameField, aM as LEGAL_COMPANY_NAME_FIELD, aN as summaryItem, aO as getRoleName, aP as summaryStep, aQ as FormNavigation, aR as Summary, aS as ActionBar, g as getLegalEntityCountry, aT as UnincorporatedPartnershipMemberTypes, aU as getDecisionMakerDescriptionMap, aV as TRUST_DEFAULT_DESCRIPTIONS_MAP, aW as getRoleTagVariant, aX as Trans, aY as DEFAULT_TRUST_MEMBER_REQUIREMENTS, aZ as ContextGuidance, a_ as RadioGroup, a$ as useUnincorporatedPartnershipMembers, b0 as deleteUnincorporatedPartnershipMember, b1 as hasAllCapabilitiesResolved, b2 as hasRejectedCapabilities, b3 as objectsDeepEqual, b4 as TrustedFieldsProviders } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
12
|
import { lazy, Suspense } from "preact/compat";
|
|
13
13
|
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
14
|
-
import {
|
|
14
|
+
import { L as LandingLayout, u as useSingpassMyInfoLogin } from "./LandingLayout-DyY0Exht.js";
|
|
15
15
|
import cx from "classnames";
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-B9zuE6yV.js";
|
|
16
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-BaVCmUdo.js";
|
|
18
17
|
import { signal } from "@preact/signals";
|
|
19
18
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
20
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-
|
|
21
|
-
import { A as Avatar } from "./Avatar-
|
|
22
|
-
import { T as TaskItemStatus } from "./TaskItemStatus-
|
|
23
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
19
|
+
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-AbvM4lbK.js";
|
|
20
|
+
import { A as Avatar } from "./Avatar-5RObc8Yd.js";
|
|
21
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-Cxcag2AH.js";
|
|
22
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-LE_Kt3am.js";
|
|
24
23
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
24
|
+
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
25
|
+
return httpPost(
|
|
26
|
+
{
|
|
27
|
+
baseUrl,
|
|
28
|
+
path: `legalEntities/${legalEntityId}/pci/signingRequired`
|
|
29
|
+
},
|
|
30
|
+
data
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
const usePciStatus = (data, options) => {
|
|
34
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
35
|
+
return useQuery({
|
|
36
|
+
queryKey: ["pciStatus", data],
|
|
37
|
+
queryFn: () => getPciStatus(rootLegalEntityId.value, baseUrl.value, data),
|
|
38
|
+
...options
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
function useSalesChannelsSettings() {
|
|
42
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
43
|
+
return useMemo(() => {
|
|
44
|
+
const settings = [];
|
|
45
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcommerce)) {
|
|
46
|
+
settings.push("eCommerce");
|
|
47
|
+
}
|
|
48
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPos)) {
|
|
49
|
+
settings.push("pos");
|
|
50
|
+
}
|
|
51
|
+
if (isSettingEnabled(SettingNames.RequirePciSignEcomMoto)) {
|
|
52
|
+
settings.push("ecomMoto");
|
|
53
|
+
}
|
|
54
|
+
if (isSettingEnabled(SettingNames.RequirePciSignPosMoto)) {
|
|
55
|
+
settings.push("posMoto");
|
|
56
|
+
}
|
|
57
|
+
return settings;
|
|
58
|
+
}, [isSettingEnabled]);
|
|
59
|
+
}
|
|
25
60
|
const getTaskTypes = async (id, baseUrl) => {
|
|
26
61
|
return httpGet({
|
|
27
62
|
baseUrl,
|
|
@@ -72,21 +107,75 @@ const useCanSeeEntitySelection = (legalEntityId) => {
|
|
|
72
107
|
setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
|
|
73
108
|
};
|
|
74
109
|
};
|
|
110
|
+
const providerButton = "adyen-kyc-provider-button";
|
|
111
|
+
const providerButtonDisplayName = "adyen-kyc-provider-button-display-name";
|
|
112
|
+
const styles$5 = {
|
|
113
|
+
providerButton,
|
|
114
|
+
providerButtonDisplayName
|
|
115
|
+
};
|
|
116
|
+
const ProviderButton = ({
|
|
117
|
+
provider,
|
|
118
|
+
disabled = false,
|
|
119
|
+
fullWidth,
|
|
120
|
+
loading = false,
|
|
121
|
+
onClick,
|
|
122
|
+
testId
|
|
123
|
+
}) => {
|
|
124
|
+
const isSingpass = provider.includes("singpassMyInfo");
|
|
125
|
+
const buttonVariant = isSingpass ? "secondary" : "primary";
|
|
126
|
+
const { t } = useTranslation();
|
|
127
|
+
const buttonProps = {
|
|
128
|
+
disabled,
|
|
129
|
+
fullWidth,
|
|
130
|
+
loading,
|
|
131
|
+
onClick,
|
|
132
|
+
testId
|
|
133
|
+
};
|
|
134
|
+
const providerLogo = {
|
|
135
|
+
tink: "tink-logo",
|
|
136
|
+
yapily: "yapily-logo",
|
|
137
|
+
plaid: "plaid-logo",
|
|
138
|
+
onfido: "onfido-logo",
|
|
139
|
+
singpassMyInfo: "singpass-logo",
|
|
140
|
+
singpassMyInfoBusiness: "singpass-logo"
|
|
141
|
+
};
|
|
142
|
+
const providerDisplayName = {
|
|
143
|
+
tink: "Tink",
|
|
144
|
+
yapily: "Yapily",
|
|
145
|
+
plaid: "Plaid",
|
|
146
|
+
onfido: "Onfido",
|
|
147
|
+
singpassMyInfo: "Singpass",
|
|
148
|
+
singpassMyInfoBusiness: "Singpass"
|
|
149
|
+
};
|
|
150
|
+
const buttonLabel = {
|
|
151
|
+
tink: t(($) => $["addAccountWith"]),
|
|
152
|
+
yapily: t(($) => $["addAccountWith"]),
|
|
153
|
+
plaid: t(($) => $["addAccountWith"]),
|
|
154
|
+
onfido: t(($) => $["addDetailsWith"]),
|
|
155
|
+
singpassMyInfo: t(($) => $["retrieveMyinfoWith"]),
|
|
156
|
+
singpassMyInfoBusiness: t(($) => $["retrieveMyinfoBusinessWith"])
|
|
157
|
+
};
|
|
158
|
+
return /* @__PURE__ */ jsx(Button, { ...buttonProps, variant: buttonVariant, children: /* @__PURE__ */ jsxs("div", { className: styles$5.providerButton, children: [
|
|
159
|
+
buttonLabel[provider],
|
|
160
|
+
/* @__PURE__ */ jsx("span", { className: styles$5.providerButtonDisplayName, children: providerDisplayName[provider] }),
|
|
161
|
+
/* @__PURE__ */ jsx(Svg, { name: providerLogo[provider], type: "image" })
|
|
162
|
+
] }) });
|
|
163
|
+
};
|
|
75
164
|
const legalEntityTypeToSubtitleTranslationKey = {
|
|
76
|
-
[
|
|
77
|
-
[
|
|
165
|
+
[LegalEntityTypes.INDIVIDUAL]: "myInfoYouCanGetVerifiedDetails",
|
|
166
|
+
[LegalEntityTypes.ORGANIZATION]: "myInfoBusinessYouCanGetVerifiedDetails"
|
|
78
167
|
};
|
|
79
168
|
const legalEntityTypeToProviderButtonKey = {
|
|
80
|
-
[
|
|
81
|
-
[
|
|
169
|
+
[LegalEntityTypes.INDIVIDUAL]: "singpassMyInfo",
|
|
170
|
+
[LegalEntityTypes.ORGANIZATION]: "singpassMyInfoBusiness"
|
|
82
171
|
};
|
|
83
172
|
const successAlertTitleText = {
|
|
84
|
-
[
|
|
85
|
-
[
|
|
173
|
+
[LegalEntityTypes.INDIVIDUAL]: "myinfoDetailsRetrieved",
|
|
174
|
+
[LegalEntityTypes.ORGANIZATION]: "myinfoBusinessDetailsRetrieved"
|
|
86
175
|
};
|
|
87
176
|
const successAlertContentText = {
|
|
88
|
-
[
|
|
89
|
-
[
|
|
177
|
+
[LegalEntityTypes.INDIVIDUAL]: "yourDetailsArePreFilledInTheRelevantSections",
|
|
178
|
+
[LegalEntityTypes.ORGANIZATION]: "yourBusinesssDetailsArePreFilledInTheRelevantSections"
|
|
90
179
|
};
|
|
91
180
|
const SingpassBanner = ({
|
|
92
181
|
isLoading,
|
|
@@ -97,6 +186,7 @@ const SingpassBanner = ({
|
|
|
97
186
|
onMessage,
|
|
98
187
|
legalEntityType
|
|
99
188
|
}) => {
|
|
189
|
+
const { t } = useTranslation();
|
|
100
190
|
const { baseUrl } = useApiContext();
|
|
101
191
|
const singpassEventListener = useCallback(
|
|
102
192
|
(event) => {
|
|
@@ -114,7 +204,6 @@ const SingpassBanner = ({
|
|
|
114
204
|
channel.onmessage = onMessage;
|
|
115
205
|
return () => channel.close();
|
|
116
206
|
}, [channel, onMessage]);
|
|
117
|
-
const { i18n } = useI18nContext();
|
|
118
207
|
if (isLoading) {
|
|
119
208
|
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
120
209
|
}
|
|
@@ -125,18 +214,26 @@ const SingpassBanner = ({
|
|
|
125
214
|
Alert,
|
|
126
215
|
{
|
|
127
216
|
variant: "success",
|
|
128
|
-
title: successTitleText &&
|
|
217
|
+
title: successTitleText && t(($) => $[successTitleText]),
|
|
129
218
|
onClose: onAlertClose,
|
|
130
|
-
children: successContentText &&
|
|
219
|
+
children: successContentText && t(($) => $[successContentText])
|
|
131
220
|
}
|
|
132
221
|
);
|
|
133
222
|
}
|
|
134
223
|
const providerName = legalEntityTypeToProviderButtonKey[legalEntityType];
|
|
135
224
|
if (errorMessage) {
|
|
136
|
-
return /* @__PURE__ */ jsx(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
225
|
+
return /* @__PURE__ */ jsx(
|
|
226
|
+
Alert,
|
|
227
|
+
{
|
|
228
|
+
variant: "warning",
|
|
229
|
+
title: translateStringOrObject(t, errorMessage),
|
|
230
|
+
onClose: onAlertClose,
|
|
231
|
+
children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
|
|
232
|
+
t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]),
|
|
233
|
+
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
|
|
234
|
+
] })
|
|
235
|
+
}
|
|
236
|
+
);
|
|
140
237
|
}
|
|
141
238
|
const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
|
|
142
239
|
return /* @__PURE__ */ jsxs(
|
|
@@ -144,9 +241,9 @@ const SingpassBanner = ({
|
|
|
144
241
|
{
|
|
145
242
|
className: cx("adyen-task-list-singpass-banner"),
|
|
146
243
|
icon: false,
|
|
147
|
-
title:
|
|
244
|
+
title: t(($) => $["getSetUpInstantly"]),
|
|
148
245
|
children: [
|
|
149
|
-
subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children:
|
|
246
|
+
subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children: t(($) => $[subtitleTranslationKey]) }),
|
|
150
247
|
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
|
|
151
248
|
]
|
|
152
249
|
}
|
|
@@ -193,11 +290,11 @@ const useLegalEntityType = ({
|
|
|
193
290
|
const isSoleProprietor = hasSolePropInLegalEntity(legalEntity);
|
|
194
291
|
const hasLegalAssociation = isTrust || isSoleProprietor;
|
|
195
292
|
switch (legalEntity.type) {
|
|
196
|
-
case
|
|
197
|
-
case
|
|
293
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
294
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
198
295
|
if (!hasLegalAssociation) return legalEntity.type;
|
|
199
|
-
if (isSoleProprietor) return
|
|
200
|
-
if (isTrust) return
|
|
296
|
+
if (isSoleProprietor) return LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
297
|
+
if (isTrust) return LegalEntityTypes.TRUST;
|
|
201
298
|
break;
|
|
202
299
|
default:
|
|
203
300
|
return void 0;
|
|
@@ -207,13 +304,13 @@ const useCanSeeIntroduction = ({ legalEntity }) => {
|
|
|
207
304
|
const legalEntityType = useLegalEntityType({ legalEntity });
|
|
208
305
|
const { isSettingEnabled } = useSettingsContext();
|
|
209
306
|
switch (legalEntityType) {
|
|
210
|
-
case
|
|
307
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
211
308
|
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionIndividual);
|
|
212
|
-
case
|
|
309
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
213
310
|
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionOrganization);
|
|
214
|
-
case
|
|
311
|
+
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
215
312
|
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionSoleProprietor);
|
|
216
|
-
case
|
|
313
|
+
case LegalEntityTypes.TRUST:
|
|
217
314
|
return !isSettingEnabled(SettingNames.HideOnboardingIntroductionTrust);
|
|
218
315
|
default:
|
|
219
316
|
return false;
|
|
@@ -234,11 +331,11 @@ const capabilitiesToPreventTypeChange = [
|
|
|
234
331
|
"receiveGrants"
|
|
235
332
|
];
|
|
236
333
|
const entityTypeToCorrespondingAccountHolderOption = {
|
|
237
|
-
[
|
|
238
|
-
[
|
|
239
|
-
[
|
|
240
|
-
[
|
|
241
|
-
[
|
|
334
|
+
[LegalEntityTypes.INDIVIDUAL]: "myName",
|
|
335
|
+
[LegalEntityTypes.ORGANIZATION]: "theCompanyIWorkFor",
|
|
336
|
+
[LegalEntityTypes.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
|
|
337
|
+
[LegalEntityTypes.TRUST]: "aTrust",
|
|
338
|
+
[LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]: "anUnincorporatedPartnership"
|
|
242
339
|
};
|
|
243
340
|
const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder) => {
|
|
244
341
|
if (accountHolder) {
|
|
@@ -246,21 +343,21 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
246
343
|
}
|
|
247
344
|
if (!legalEntityResponse?.type) return void 0;
|
|
248
345
|
if (hasOwnEntityAssociationOfType(
|
|
249
|
-
|
|
346
|
+
LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
250
347
|
legalEntityResponse.entityAssociations,
|
|
251
348
|
legalEntityResponse.id
|
|
252
349
|
)) {
|
|
253
350
|
return "mySoleProprietorName";
|
|
254
351
|
}
|
|
255
352
|
if (hasOwnEntityAssociationOfType(
|
|
256
|
-
|
|
353
|
+
LegalEntityTypes.TRUST,
|
|
257
354
|
legalEntityResponse.entityAssociations,
|
|
258
355
|
legalEntityResponse.id
|
|
259
356
|
)) {
|
|
260
357
|
return "aTrust";
|
|
261
358
|
}
|
|
262
359
|
if (hasOwnEntityAssociationOfType(
|
|
263
|
-
|
|
360
|
+
LegalEntityTypes.UNINCORPORATED_PARTNERSHIP,
|
|
264
361
|
legalEntityResponse.entityAssociations,
|
|
265
362
|
legalEntityResponse.id
|
|
266
363
|
)) {
|
|
@@ -271,40 +368,44 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
271
368
|
}
|
|
272
369
|
};
|
|
273
370
|
const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
|
|
371
|
+
const BusinessTypes = {
|
|
372
|
+
INDIVIDUAL: "individual",
|
|
373
|
+
COMPANY: "company",
|
|
374
|
+
INCORPORATED_PARTNERSHIP: "partnershipIncorporated",
|
|
375
|
+
UNINCORPORATED_PARTNERSHIP: "partnershipUnincorporated",
|
|
376
|
+
INDIVIDUAL_TRUSTEE: "individualTrustee",
|
|
377
|
+
COMPANY_TRUSTEE: "companyTrustee",
|
|
378
|
+
SOLE_PROPRIETORSHIP: "soleProprietorship",
|
|
379
|
+
INCORPORATE_ASSOCIATION: "associationIncorporated"
|
|
380
|
+
};
|
|
274
381
|
const businessTypeMapping = {
|
|
275
382
|
myName: {
|
|
276
|
-
[
|
|
277
|
-
/* INDIVIDUAL */
|
|
383
|
+
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.INDIVIDUAL
|
|
278
384
|
},
|
|
279
385
|
theCompanyIWorkFor: {
|
|
280
|
-
[
|
|
281
|
-
/* COMPANY */
|
|
386
|
+
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.COMPANY
|
|
282
387
|
},
|
|
283
388
|
mySoleProprietorName: {
|
|
284
|
-
[
|
|
285
|
-
/* SOLE_PROPRIETORSHIP */
|
|
389
|
+
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.SOLE_PROPRIETORSHIP
|
|
286
390
|
},
|
|
287
391
|
aTrust: {
|
|
288
|
-
[
|
|
289
|
-
[
|
|
290
|
-
/* COMPANY_TRUSTEE */
|
|
392
|
+
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.INDIVIDUAL_TRUSTEE,
|
|
393
|
+
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.COMPANY_TRUSTEE
|
|
291
394
|
},
|
|
292
395
|
anUnincorporatedPartnership: {
|
|
293
|
-
[
|
|
294
|
-
[
|
|
295
|
-
/* UNINCORPORATED_PARTNERSHIP */
|
|
396
|
+
[LegalEntityTypes.INDIVIDUAL]: BusinessTypes.UNINCORPORATED_PARTNERSHIP,
|
|
397
|
+
[LegalEntityTypes.ORGANIZATION]: BusinessTypes.UNINCORPORATED_PARTNERSHIP
|
|
296
398
|
}
|
|
297
399
|
};
|
|
298
400
|
const companyTypesMapping = {
|
|
299
|
-
[
|
|
300
|
-
[
|
|
301
|
-
[
|
|
302
|
-
[
|
|
303
|
-
[
|
|
304
|
-
[
|
|
305
|
-
[
|
|
306
|
-
[
|
|
307
|
-
/* SOLE_PROPRIETORSHIP */
|
|
401
|
+
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: BusinessTypes.INCORPORATED_PARTNERSHIP,
|
|
402
|
+
[CompanyTypesValues.INCORPORATED_ASSOCIATION]: BusinessTypes.INCORPORATE_ASSOCIATION,
|
|
403
|
+
[CompanyTypesValues.PUBLIC_COMPANY]: BusinessTypes.COMPANY,
|
|
404
|
+
[CompanyTypesValues.PRIVATE_COMPANY]: BusinessTypes.COMPANY,
|
|
405
|
+
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: BusinessTypes.COMPANY,
|
|
406
|
+
[CompanyTypesValues.GOVERNMENTAL_ORGANIZATION]: BusinessTypes.COMPANY,
|
|
407
|
+
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: BusinessTypes.COMPANY,
|
|
408
|
+
[CompanyTypesValues.SOLE_PROPRIETORSHIP]: BusinessTypes.SOLE_PROPRIETORSHIP
|
|
308
409
|
};
|
|
309
410
|
const useBusinessSetup = (legalEntityResponse) => {
|
|
310
411
|
const { accountHolder } = useAccountHolder();
|
|
@@ -317,9 +418,9 @@ function useDataMissingRemediations({
|
|
|
317
418
|
legalEntityId,
|
|
318
419
|
problems
|
|
319
420
|
}) {
|
|
320
|
-
const {
|
|
421
|
+
const { t } = useTranslation();
|
|
321
422
|
const decisionMakersRemediationMessage = useMemo(() => {
|
|
322
|
-
const remediationCodes = problems[
|
|
423
|
+
const remediationCodes = problems[EntityTypes.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
|
|
323
424
|
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
324
425
|
return remediation ? [...remediations, remediation] : remediations;
|
|
325
426
|
}, []);
|
|
@@ -329,11 +430,11 @@ function useDataMissingRemediations({
|
|
|
329
430
|
case 0:
|
|
330
431
|
return void 0;
|
|
331
432
|
case 1:
|
|
332
|
-
return uniqueRemediations[0] ?
|
|
433
|
+
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
333
434
|
default:
|
|
334
|
-
return
|
|
435
|
+
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
335
436
|
}
|
|
336
|
-
}, [problems,
|
|
437
|
+
}, [problems, t, legalEntityId]);
|
|
337
438
|
return {
|
|
338
439
|
remediationMessages: {
|
|
339
440
|
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
@@ -343,10 +444,10 @@ function useDataMissingRemediations({
|
|
|
343
444
|
const logger$2 = createLogger();
|
|
344
445
|
const normalizeTaskStatuses = (taskStatuses) => {
|
|
345
446
|
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
346
|
-
const status =
|
|
447
|
+
const status = TaskStatuses[currentTask.status];
|
|
347
448
|
const statusEntries = currentTask.taskStatusEntries;
|
|
348
449
|
acc[currentTask.type] = {
|
|
349
|
-
status: status ??
|
|
450
|
+
status: status ?? TaskStatuses.DETAILS_REQUIRED,
|
|
350
451
|
taskStatusEntries: statusEntries
|
|
351
452
|
};
|
|
352
453
|
return acc;
|
|
@@ -359,9 +460,9 @@ const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
|
359
460
|
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
360
461
|
if (!taskStatusEntry) {
|
|
361
462
|
logger$2.warn(`No task status for this account: ${accountId}`);
|
|
362
|
-
return payinPayoutTaskStatus?.status ??
|
|
463
|
+
return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
|
|
363
464
|
}
|
|
364
|
-
return
|
|
465
|
+
return TaskStatuses[taskStatusEntry.status];
|
|
365
466
|
};
|
|
366
467
|
const normalizedTaskStatusStore = signal(void 0);
|
|
367
468
|
const setNormalizedTaskStatusStore = (taskStatus) => {
|
|
@@ -444,9 +545,9 @@ const TaskListItem = ({
|
|
|
444
545
|
enableTracking = true,
|
|
445
546
|
fallbackErrorMessage
|
|
446
547
|
}) => {
|
|
447
|
-
const {
|
|
548
|
+
const { t } = useTranslation();
|
|
448
549
|
const userEvents = useAnalyticsContext();
|
|
449
|
-
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status ===
|
|
550
|
+
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatuses.ERROR;
|
|
450
551
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
451
552
|
const handleNavigateToTask = () => {
|
|
452
553
|
if (enableTracking) {
|
|
@@ -479,7 +580,7 @@ const TaskListItem = ({
|
|
|
479
580
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
|
|
480
581
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
|
|
481
582
|
/* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
|
|
482
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title ||
|
|
583
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || t(($) => $[titleKey]) }) })
|
|
483
584
|
] }),
|
|
484
585
|
info && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
|
|
485
586
|
/* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
|
|
@@ -490,7 +591,7 @@ const TaskListItem = ({
|
|
|
490
591
|
/* @__PURE__ */ jsx(
|
|
491
592
|
TaskItemStatus,
|
|
492
593
|
{
|
|
493
|
-
status: isStatusRemoving ?
|
|
594
|
+
status: isStatusRemoving ? TaskStatuses.REMOVING : status,
|
|
494
595
|
statusLabel,
|
|
495
596
|
downloadHandler
|
|
496
597
|
}
|
|
@@ -527,7 +628,6 @@ const PayoutAccountTaskListItem = ({
|
|
|
527
628
|
payinPayoutTaskStatus
|
|
528
629
|
}) => {
|
|
529
630
|
const { t } = useTranslation();
|
|
530
|
-
const { i18n } = useI18nContext();
|
|
531
631
|
const { showToast } = useToastContext();
|
|
532
632
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
533
633
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
@@ -540,15 +640,15 @@ const PayoutAccountTaskListItem = ({
|
|
|
540
640
|
const handleDeleteTransferInstrument = async () => {
|
|
541
641
|
try {
|
|
542
642
|
await deleteTransferInstrument(account.id);
|
|
543
|
-
showToast({ label:
|
|
643
|
+
showToast({ label: t(($) => $["transferInstrumentDeleted"]), variant: "success" });
|
|
544
644
|
} catch {
|
|
545
|
-
showToast({ label:
|
|
645
|
+
showToast({ label: t(($) => $["failedToDeletePayoutAccount"]), variant: "error" });
|
|
546
646
|
}
|
|
547
647
|
};
|
|
548
648
|
return /* @__PURE__ */ jsx(
|
|
549
649
|
TaskListItem,
|
|
550
650
|
{
|
|
551
|
-
disabled: isInstantVerificationAccount && status ===
|
|
651
|
+
disabled: isInstantVerificationAccount && status === TaskStatuses.PROCESSING,
|
|
552
652
|
onNavigateToTask: isInstantVerificationAccount ? void 0 : onNavigateToTask,
|
|
553
653
|
icon: "payout",
|
|
554
654
|
titleKey: "accountNumber",
|
|
@@ -598,8 +698,8 @@ function TaskListInner({
|
|
|
598
698
|
capabilityProblems,
|
|
599
699
|
singpassComponent
|
|
600
700
|
}) {
|
|
601
|
-
const { i18n } = useI18nContext();
|
|
602
701
|
const userEvents = useAnalyticsContext();
|
|
702
|
+
const { t } = useTranslation();
|
|
603
703
|
const { showToast } = useToastContext();
|
|
604
704
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
605
705
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -625,7 +725,7 @@ function TaskListInner({
|
|
|
625
725
|
refetchInterval: (query) => {
|
|
626
726
|
const { data: response } = query.state || {};
|
|
627
727
|
const statuses = response?.statuses;
|
|
628
|
-
const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status ===
|
|
728
|
+
const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status === "FINISHED");
|
|
629
729
|
return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
|
|
630
730
|
}
|
|
631
731
|
});
|
|
@@ -638,7 +738,7 @@ function TaskListInner({
|
|
|
638
738
|
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
639
739
|
setNormalizedTaskStatusStore(normalizedTasks);
|
|
640
740
|
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
641
|
-
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? normalizedTasks?.BUSINESS_DETAILS?.status ??
|
|
741
|
+
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatuses.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
|
|
642
742
|
const isReview = Boolean(
|
|
643
743
|
capabilityProblems?.LegalEntity?.[legalEntityResponse.id]?.isReviewRequired
|
|
644
744
|
);
|
|
@@ -654,13 +754,13 @@ function TaskListInner({
|
|
|
654
754
|
const pciHasDocuments = !!pciQuestionnaireList?.data?.length;
|
|
655
755
|
const canSignPci = (
|
|
656
756
|
// PCI requires decision makers to be added
|
|
657
|
-
legalEntityResponse.type ===
|
|
757
|
+
legalEntityResponse.type === LegalEntityTypes.ORGANIZATION && !!legalEntityResponse?.entityAssociations?.length || legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL && !!legalEntityResponse?.entityAssociations?.length
|
|
658
758
|
);
|
|
659
759
|
const canDownloadPci = !pciStatus?.signingRequired && pciHasDocuments;
|
|
660
760
|
const hasSignedPci = !pciStatus?.signingRequired && canSignPci;
|
|
661
761
|
const serviceAgreementTypes = termsOfServiceStatus?.termsOfServiceTypes ?? [];
|
|
662
762
|
const serviceAgreementAcceptanceInfos = termsOfServiceStatusAcceptanceInfos?.data ?? [];
|
|
663
|
-
const hasServiceAgreementSigners = legalEntityResponse.type ===
|
|
763
|
+
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityTypes.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL && !!legalEntityResponse?.individual;
|
|
664
764
|
const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
|
|
665
765
|
const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
|
|
666
766
|
const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
|
|
@@ -707,7 +807,7 @@ function TaskListInner({
|
|
|
707
807
|
})
|
|
708
808
|
);
|
|
709
809
|
} catch {
|
|
710
|
-
showToast({ label:
|
|
810
|
+
showToast({ label: t(($) => $["failedToDownloadPci"]), variant: "error" });
|
|
711
811
|
} finally {
|
|
712
812
|
userEvents.addTaskEvent("Clicked button", {
|
|
713
813
|
task: TaskTypes.PCI_DSS,
|
|
@@ -718,6 +818,7 @@ function TaskListInner({
|
|
|
718
818
|
const handleOnNavigateToTaskReview = () => onNavigateToTask(TaskTypes.REVIEW);
|
|
719
819
|
const handleOnNavigateToTaskIndividual = () => onNavigateToTask(TaskTypes.INDIVIDUAL);
|
|
720
820
|
const handleOnNavigateToTaskBusinessDetails = () => onNavigateToTask(TaskTypes.BUSINESS_DETAILS);
|
|
821
|
+
const handleOnNavigateToTaskBusinessLines = () => onNavigateToTask(TaskTypes.BUSINESS_LINES);
|
|
721
822
|
const handleOnNavigateToTaskCustomerSupport = () => onNavigateToTask(TaskTypes.CUSTOMER_SUPPORT);
|
|
722
823
|
const handleOnNavigateToTaskDecisionMaker = () => onNavigateToTask(TaskTypes.DECISION_MAKER_OVERVIEW);
|
|
723
824
|
const handleOnNavigateToTaskTrust = () => onNavigateToTask(TaskTypes.TRUST);
|
|
@@ -743,19 +844,17 @@ function TaskListInner({
|
|
|
743
844
|
}
|
|
744
845
|
}, [showDecisionMakersWarning, userEvents]);
|
|
745
846
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
|
|
746
|
-
canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children:
|
|
847
|
+
canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: t(($) => $["goToIntroduction"]) }) }),
|
|
747
848
|
canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
|
|
748
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
849
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["setUpYourAccount"]) }),
|
|
749
850
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "title", className: "adyen-task-list__description", children: [
|
|
750
|
-
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children:
|
|
751
|
-
|
|
752
|
-
businessSetup: businessSetup ? i18n.get(businessSetup) : i18n.get("unknown")
|
|
753
|
-
}
|
|
851
|
+
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: t(($) => $["yourBusinessSetup"], {
|
|
852
|
+
businessSetup: businessSetup ? t(($) => $[businessSetup]) : t(($) => $["unknown"])
|
|
754
853
|
}) }),
|
|
755
854
|
/* @__PURE__ */ jsx(
|
|
756
855
|
IconButton,
|
|
757
856
|
{
|
|
758
|
-
ariaLabel:
|
|
857
|
+
ariaLabel: t(($) => $["editBusinessSetup"]),
|
|
759
858
|
icon: "edit",
|
|
760
859
|
variant: "tertiary",
|
|
761
860
|
onClick: onEditBusinessSetupClick
|
|
@@ -765,7 +864,7 @@ function TaskListInner({
|
|
|
765
864
|
] }),
|
|
766
865
|
singpassComponent,
|
|
767
866
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
768
|
-
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
867
|
+
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
|
|
769
868
|
tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
|
|
770
869
|
TaskListItem,
|
|
771
870
|
{
|
|
@@ -816,17 +915,27 @@ function TaskListInner({
|
|
|
816
915
|
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
817
916
|
}
|
|
818
917
|
),
|
|
918
|
+
tasks.includes(TaskTypes.BUSINESS_LINES) && /* @__PURE__ */ jsx(
|
|
919
|
+
TaskListItem,
|
|
920
|
+
{
|
|
921
|
+
testId: TaskTypes.BUSINESS_LINES,
|
|
922
|
+
onNavigateToTask: handleOnNavigateToTaskBusinessLines,
|
|
923
|
+
icon: "solutionPayments",
|
|
924
|
+
titleKey: "businessLines",
|
|
925
|
+
status: getTaskStatus2(TaskTypes.BUSINESS_LINES)
|
|
926
|
+
}
|
|
927
|
+
),
|
|
819
928
|
showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
|
|
820
929
|
TaskListItem,
|
|
821
930
|
{
|
|
822
931
|
onNavigateToTask: handleOnNavigateToTaskCustomerSupport,
|
|
823
932
|
icon: "webinar",
|
|
824
933
|
titleKey: "customerSupport",
|
|
825
|
-
status: normalizedTasks?.CUSTOMER_SUPPORT?.status ??
|
|
934
|
+
status: normalizedTasks?.CUSTOMER_SUPPORT?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
826
935
|
}
|
|
827
936
|
)
|
|
828
937
|
] }),
|
|
829
|
-
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
938
|
+
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["trustDetailsDescription"]), children: [
|
|
830
939
|
/* @__PURE__ */ jsx(
|
|
831
940
|
TaskListItem,
|
|
832
941
|
{
|
|
@@ -847,7 +956,7 @@ function TaskListInner({
|
|
|
847
956
|
}
|
|
848
957
|
)
|
|
849
958
|
] }),
|
|
850
|
-
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
959
|
+
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["partnershipUnincorporated"]), children: [
|
|
851
960
|
/* @__PURE__ */ jsx(
|
|
852
961
|
TaskListItem,
|
|
853
962
|
{
|
|
@@ -884,7 +993,7 @@ function TaskListInner({
|
|
|
884
993
|
onNavigateToTask: handleOnNavigateToSourceOfFunds,
|
|
885
994
|
icon: "cash-stack",
|
|
886
995
|
titleKey: "fundingSources",
|
|
887
|
-
status: normalizedTasks?.SOURCE_OF_FUNDS?.status ??
|
|
996
|
+
status: normalizedTasks?.SOURCE_OF_FUNDS?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
888
997
|
}
|
|
889
998
|
),
|
|
890
999
|
tasks.includes(TaskTypes.BUSINESS_FINANCING) && /* @__PURE__ */ jsx(
|
|
@@ -893,7 +1002,7 @@ function TaskListInner({
|
|
|
893
1002
|
onNavigateToTask: handleOnNavigateToBusinessFinancing,
|
|
894
1003
|
icon: "capital",
|
|
895
1004
|
titleKey: "businessFinancing",
|
|
896
|
-
status: normalizedTasks?.BUSINESS_FINANCING?.status ??
|
|
1005
|
+
status: normalizedTasks?.BUSINESS_FINANCING?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
897
1006
|
}
|
|
898
1007
|
)
|
|
899
1008
|
] }),
|
|
@@ -903,14 +1012,14 @@ function TaskListInner({
|
|
|
903
1012
|
onNavigateToTask: handleOnNavigateToTaxReporting,
|
|
904
1013
|
icon: "reporting",
|
|
905
1014
|
titleKey: "taxReporting",
|
|
906
|
-
status: normalizedTasks?.TAX_REPORTING?.status ??
|
|
1015
|
+
status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatuses.DETAILS_REQUIRED
|
|
907
1016
|
}
|
|
908
1017
|
) }),
|
|
909
1018
|
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
|
|
910
1019
|
TaskListGroup,
|
|
911
1020
|
{
|
|
912
|
-
title: canChangeEntityType ?
|
|
913
|
-
hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey
|
|
1021
|
+
title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
|
|
1022
|
+
($) => $[hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey]
|
|
914
1023
|
),
|
|
915
1024
|
children: transferInstruments.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
916
1025
|
transferInstruments.map((transferInstrument) => /* @__PURE__ */ jsx(
|
|
@@ -932,8 +1041,8 @@ function TaskListInner({
|
|
|
932
1041
|
disabled: !canAddPayoutAccount,
|
|
933
1042
|
children: [
|
|
934
1043
|
/* @__PURE__ */ jsx(Icon, { name: "plus", className: "adyen-task-list__card-icon " }),
|
|
935
|
-
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ?
|
|
936
|
-
hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"
|
|
1044
|
+
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ? t(($) => $["addExtraBankAccount"]) : t(
|
|
1045
|
+
($) => $[hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"]
|
|
937
1046
|
) })
|
|
938
1047
|
]
|
|
939
1048
|
}
|
|
@@ -944,25 +1053,25 @@ function TaskListInner({
|
|
|
944
1053
|
onNavigateToTask: () => handleOnNavigateToTaskPayout(),
|
|
945
1054
|
icon: "payout",
|
|
946
1055
|
titleKey: canChangeEntityType ? "bankAccountDetails" : hasPayinTaskNotPayout ? "payinDetails" : "payoutDetails",
|
|
947
|
-
status:
|
|
1056
|
+
status: TaskStatuses.DETAILS_REQUIRED,
|
|
948
1057
|
disabled: !canAddPayoutAccount,
|
|
949
1058
|
problems: getEmptyBankAccountProblems()
|
|
950
1059
|
}
|
|
951
1060
|
)
|
|
952
1061
|
}
|
|
953
1062
|
),
|
|
954
|
-
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
1063
|
+
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["reviewAndSignLegalDisclosures"]), children: [
|
|
955
1064
|
showPciTask && /* @__PURE__ */ jsx(
|
|
956
1065
|
TaskListItem,
|
|
957
1066
|
{
|
|
958
1067
|
onNavigateToTask: handleOnNavigateToPci,
|
|
959
1068
|
icon: "pci",
|
|
960
1069
|
titleKey: "pciDssQuestionnaire",
|
|
961
|
-
status: canDownloadPci ?
|
|
962
|
-
statusLabel: canDownloadPci ?
|
|
1070
|
+
status: canDownloadPci ? TaskStatuses.DOWNLOAD : TaskStatuses.SIGN,
|
|
1071
|
+
statusLabel: canDownloadPci ? t(($) => $["downloadACopy"]) : void 0,
|
|
963
1072
|
downloadHandler: onPciDownload,
|
|
964
1073
|
disabled: isPciTaskDisabled,
|
|
965
|
-
info: isPciTaskDisabled && !canDownloadPci ?
|
|
1074
|
+
info: isPciTaskDisabled && !canDownloadPci ? t(($) => $["requiresDecisionMakers"]) : void 0
|
|
966
1075
|
}
|
|
967
1076
|
),
|
|
968
1077
|
showServiceAgreementTask && /* @__PURE__ */ jsx(
|
|
@@ -972,18 +1081,18 @@ function TaskListInner({
|
|
|
972
1081
|
icon: "contract",
|
|
973
1082
|
titleKey: "signServiceAgreement",
|
|
974
1083
|
disabled: areServiceAgreementTasksDisabled,
|
|
975
|
-
status: serviceAgreementTypes.length ?
|
|
976
|
-
info: EnableSignPCIBeforeTOS && shouldSignPciFirst ?
|
|
1084
|
+
status: serviceAgreementTypes.length ? TaskStatuses.SIGN : TaskStatuses.SIGNED,
|
|
1085
|
+
info: EnableSignPCIBeforeTOS && shouldSignPciFirst ? t(($) => $["signPciFirst"]) : !hasServiceAgreementSigners ? t(($) => $["requiresSignatory"]) : void 0
|
|
977
1086
|
}
|
|
978
1087
|
)
|
|
979
1088
|
] }),
|
|
980
|
-
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title:
|
|
1089
|
+
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: t(($) => $["pleaseEnsureTheFollowing"]), children: /* @__PURE__ */ jsx(
|
|
981
1090
|
TaskListItem,
|
|
982
1091
|
{
|
|
983
1092
|
onNavigateToTask: handleOnNavigateToTaskReview,
|
|
984
1093
|
icon: "review",
|
|
985
1094
|
titleKey: "submitReviewOfYourData",
|
|
986
|
-
status:
|
|
1095
|
+
status: TaskStatuses.SUBMIT,
|
|
987
1096
|
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id],
|
|
988
1097
|
showErrorAlerts: "always"
|
|
989
1098
|
}
|
|
@@ -992,6 +1101,45 @@ function TaskListInner({
|
|
|
992
1101
|
] });
|
|
993
1102
|
}
|
|
994
1103
|
const isNewEntity = Symbol("isNewEntity");
|
|
1104
|
+
const businessLines = "adyen-kyc-business-lines";
|
|
1105
|
+
const styles$4 = {
|
|
1106
|
+
businessLines
|
|
1107
|
+
};
|
|
1108
|
+
const BusinessLinesGettingStarted = ({
|
|
1109
|
+
handleGettingStartedClick,
|
|
1110
|
+
handleCancelClick
|
|
1111
|
+
}) => {
|
|
1112
|
+
const { t } = useTranslation(["businessLines", "common"]);
|
|
1113
|
+
return /* @__PURE__ */ jsx(
|
|
1114
|
+
LandingLayout,
|
|
1115
|
+
{
|
|
1116
|
+
title: t(($) => $["businessLines"]),
|
|
1117
|
+
description: t(($) => $["businessLinesGettingStarted"]),
|
|
1118
|
+
media: /* @__PURE__ */ jsx(Svg, { type: "image", name: "business-lines" }),
|
|
1119
|
+
actions: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1120
|
+
/* @__PURE__ */ jsx(Button, { fullWidth: true, onClick: handleGettingStartedClick, children: t(($) => $["gettingStarted"], { ns: "common" }) }),
|
|
1121
|
+
/* @__PURE__ */ jsx(Button, { variant: "tertiary", fullWidth: true, onClick: handleCancelClick, children: t(($) => $["finishLater"], { ns: "common" }) })
|
|
1122
|
+
] })
|
|
1123
|
+
}
|
|
1124
|
+
);
|
|
1125
|
+
};
|
|
1126
|
+
function BusinessLinesDropin({ handleHomeClick }) {
|
|
1127
|
+
const [gettingStarted, setGettingStarted] = useState(true);
|
|
1128
|
+
return /* @__PURE__ */ jsx("div", { className: styles$4.businessLines, children: gettingStarted && /* @__PURE__ */ jsx(
|
|
1129
|
+
BusinessLinesGettingStarted,
|
|
1130
|
+
{
|
|
1131
|
+
handleGettingStartedClick: () => setGettingStarted(false),
|
|
1132
|
+
handleCancelClick: () => handleHomeClick?.()
|
|
1133
|
+
}
|
|
1134
|
+
) });
|
|
1135
|
+
}
|
|
1136
|
+
const RootBusinessLinesPage = ({ handleHomeClick }) => {
|
|
1137
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
1138
|
+
if (!rootLe) {
|
|
1139
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
1140
|
+
}
|
|
1141
|
+
return /* @__PURE__ */ jsx(BusinessLinesDropin, { handleHomeClick });
|
|
1142
|
+
};
|
|
995
1143
|
const useExemptSettlor = ({
|
|
996
1144
|
trust
|
|
997
1145
|
}) => {
|
|
@@ -1025,24 +1173,24 @@ const convertEntityAssociationIntoTrustMember = (association, associations, exem
|
|
|
1025
1173
|
legalEntityType: association.entityType,
|
|
1026
1174
|
legalEntityId: association.legalEntityId,
|
|
1027
1175
|
settlorExemptionReason: association.settlorExemptionReason,
|
|
1028
|
-
exemptSettlorName: association.entityType ===
|
|
1176
|
+
exemptSettlorName: association.entityType === LegalEntityTypes.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
1029
1177
|
name: association.name
|
|
1030
1178
|
};
|
|
1031
1179
|
}
|
|
1032
|
-
if (association.entityType ===
|
|
1180
|
+
if (association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
1033
1181
|
return {
|
|
1034
1182
|
trustMemberType: "company",
|
|
1035
1183
|
roles: [],
|
|
1036
|
-
legalEntityType:
|
|
1184
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1037
1185
|
legalEntityId: association.legalEntityId,
|
|
1038
1186
|
name: association.name,
|
|
1039
1187
|
ownerId: getTrustMemberOwnerId(association.legalEntityId, associations)
|
|
1040
1188
|
};
|
|
1041
|
-
if (association.entityType ===
|
|
1189
|
+
if (association.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
1042
1190
|
return {
|
|
1043
1191
|
trustMemberType: "regular",
|
|
1044
1192
|
roles: [],
|
|
1045
|
-
legalEntityType:
|
|
1193
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
1046
1194
|
legalEntityId: association.legalEntityId,
|
|
1047
1195
|
name: association.name
|
|
1048
1196
|
};
|
|
@@ -1127,7 +1275,7 @@ const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =
|
|
|
1127
1275
|
};
|
|
1128
1276
|
function useTrustMembers() {
|
|
1129
1277
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
1130
|
-
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity,
|
|
1278
|
+
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
|
|
1131
1279
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1132
1280
|
const exemptSettlor = useExemptSettlor({
|
|
1133
1281
|
trust
|
|
@@ -1200,7 +1348,7 @@ const convertExistingTrustMember = (trustMember) => {
|
|
|
1200
1348
|
switch (trustMember.trustMemberType) {
|
|
1201
1349
|
case "undefinedBeneficiary":
|
|
1202
1350
|
return {
|
|
1203
|
-
entityType:
|
|
1351
|
+
entityType: LegalEntityTypes.INDIVIDUAL,
|
|
1204
1352
|
role: ["undefinedBeneficiary"],
|
|
1205
1353
|
descriptionUndefinedBeneficiary: trustMember.description
|
|
1206
1354
|
};
|
|
@@ -1249,14 +1397,14 @@ const allowedCrossoverRolesMatrix = {
|
|
|
1249
1397
|
};
|
|
1250
1398
|
const allowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = {
|
|
1251
1399
|
rootTrustee: {
|
|
1252
|
-
[
|
|
1400
|
+
[LegalEntityTypes.INDIVIDUAL]: {
|
|
1253
1401
|
settlor: ["secondaryTrustee", "protector"],
|
|
1254
1402
|
secondaryTrustee: ["settlor", "protector", "definedBeneficiary"],
|
|
1255
1403
|
protector: ["settlor", "secondaryTrustee", "definedBeneficiary"],
|
|
1256
1404
|
definedBeneficiary: ["secondaryTrustee", "protector"],
|
|
1257
1405
|
undefinedBeneficiary: []
|
|
1258
1406
|
},
|
|
1259
|
-
[
|
|
1407
|
+
[LegalEntityTypes.ORGANIZATION]: {
|
|
1260
1408
|
settlor: ["secondaryTrustee", "protector"],
|
|
1261
1409
|
secondaryTrustee: ["settlor", "protector"],
|
|
1262
1410
|
protector: ["settlor", "secondaryTrustee"],
|
|
@@ -1282,8 +1430,8 @@ const getAllowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = (trustMemb
|
|
|
1282
1430
|
};
|
|
1283
1431
|
const availablesRolesByTrustMemberTypeAndLegalEntityType = {
|
|
1284
1432
|
rootTrustee: {
|
|
1285
|
-
[
|
|
1286
|
-
[
|
|
1433
|
+
[LegalEntityTypes.INDIVIDUAL]: ["settlor", "protector", "definedBeneficiary"],
|
|
1434
|
+
[LegalEntityTypes.ORGANIZATION]: ["settlor", "protector"]
|
|
1287
1435
|
}
|
|
1288
1436
|
};
|
|
1289
1437
|
const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
|
|
@@ -1312,8 +1460,8 @@ const getAvailableRoles = (currentRoles) => {
|
|
|
1312
1460
|
);
|
|
1313
1461
|
};
|
|
1314
1462
|
const trustMemberLegalEntityTypes = [
|
|
1315
|
-
|
|
1316
|
-
|
|
1463
|
+
LegalEntityTypes.INDIVIDUAL,
|
|
1464
|
+
LegalEntityTypes.ORGANIZATION
|
|
1317
1465
|
];
|
|
1318
1466
|
const countriesWhereSettlorExemptionReasonNotApplicable = [CountryCodes.NewZealand];
|
|
1319
1467
|
const settlorExemptionReasons = [
|
|
@@ -1325,9 +1473,9 @@ const settlorExemptionReasonWithNoneOfTheAbove = [
|
|
|
1325
1473
|
...settlorExemptionReasons,
|
|
1326
1474
|
"noneOfTheAbove"
|
|
1327
1475
|
];
|
|
1328
|
-
const couldBeExemptSettlor = (data, country) => data.entityType ===
|
|
1476
|
+
const couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityTypes.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
|
|
1329
1477
|
const isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
|
|
1330
|
-
const isOrganizationAndSettlor = (data) => data.entityType ===
|
|
1478
|
+
const isOrganizationAndSettlor = (data) => data.entityType === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
|
|
1331
1479
|
const roleAndTypeValidationRules = {
|
|
1332
1480
|
entityType: {
|
|
1333
1481
|
modes: ["blur"],
|
|
@@ -1362,12 +1510,12 @@ const roleAndTypeValidationRules = {
|
|
|
1362
1510
|
};
|
|
1363
1511
|
const CHARACTERS_LIMIT = 256;
|
|
1364
1512
|
const leTypeCardDetails$1 = {
|
|
1365
|
-
[
|
|
1513
|
+
[LegalEntityTypes.INDIVIDUAL]: {
|
|
1366
1514
|
id: "individual",
|
|
1367
1515
|
name: "naturalPersonTitle",
|
|
1368
1516
|
description: "naturalPersonDescription"
|
|
1369
1517
|
},
|
|
1370
|
-
[
|
|
1518
|
+
[LegalEntityTypes.ORGANIZATION]: {
|
|
1371
1519
|
id: "organization",
|
|
1372
1520
|
name: "businessEntityTitle",
|
|
1373
1521
|
description: "businessEntityDescription"
|
|
@@ -1383,6 +1531,7 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
|
|
|
1383
1531
|
return convertExistingTrustMember(trustMember);
|
|
1384
1532
|
};
|
|
1385
1533
|
const TrustRoleAndEntityType = (props) => {
|
|
1534
|
+
const { t } = useTranslation();
|
|
1386
1535
|
const { i18n } = useI18nContext();
|
|
1387
1536
|
const { existingTrustMember, isOrganizationSettlorWithExemptionEnabled, onChange, id, country } = props;
|
|
1388
1537
|
const trustRoleAndEntityTypeCountry = country;
|
|
@@ -1404,7 +1553,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1404
1553
|
existingTrustMember,
|
|
1405
1554
|
allowMoreRolesForMainRootTrusteeEnabled
|
|
1406
1555
|
);
|
|
1407
|
-
const formUtils = createFormUtils(mergedProps,
|
|
1556
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
1408
1557
|
const decideFields = (data2) => {
|
|
1409
1558
|
if (data2.role?.includes("undefinedBeneficiary")) {
|
|
1410
1559
|
return ["role", "descriptionUndefinedBeneficiary"];
|
|
@@ -1470,7 +1619,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1470
1619
|
};
|
|
1471
1620
|
const nameProps = getFieldProps(props, nameFields);
|
|
1472
1621
|
const onEntityTypeChange = (value) => {
|
|
1473
|
-
if (isOrganizationSettlorWithExemptionEnabled && value ===
|
|
1622
|
+
if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor") {
|
|
1474
1623
|
changeSettlorExemptionReasons(["professionalServiceProvider"]);
|
|
1475
1624
|
}
|
|
1476
1625
|
handleChangeFor("entityType")(value);
|
|
@@ -1504,7 +1653,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1504
1653
|
selected: data.role ?? [],
|
|
1505
1654
|
onSelect: changeRoles,
|
|
1506
1655
|
mapToSelectItem: (role) => ({
|
|
1507
|
-
...makeSelectItemForRole(role,
|
|
1656
|
+
...makeSelectItemForRole(role, t),
|
|
1508
1657
|
disabled: !availableRoles.includes(role)
|
|
1509
1658
|
})
|
|
1510
1659
|
}
|
|
@@ -1652,7 +1801,7 @@ const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
|
1652
1801
|
entityType: trustMember.legalEntityType,
|
|
1653
1802
|
type: TrustMemberTypes.SETTLOR,
|
|
1654
1803
|
settlorExemptionReason: trustMember.settlorExemptionReason,
|
|
1655
|
-
name: trustMember.legalEntityType ===
|
|
1804
|
+
name: trustMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
|
|
1656
1805
|
}
|
|
1657
1806
|
];
|
|
1658
1807
|
return trustMember.roles.map((role) => ({
|
|
@@ -1721,7 +1870,7 @@ const createExemptSettlor = async ({
|
|
|
1721
1870
|
handleCreateLegalEntity
|
|
1722
1871
|
}) => {
|
|
1723
1872
|
const exemptSettlorLE = {
|
|
1724
|
-
type:
|
|
1873
|
+
type: LegalEntityTypes.INDIVIDUAL,
|
|
1725
1874
|
individual: {
|
|
1726
1875
|
name: {
|
|
1727
1876
|
firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
|
|
@@ -1739,7 +1888,7 @@ const createOrganizationExemptSettlor = async ({
|
|
|
1739
1888
|
handleCreateLegalEntity
|
|
1740
1889
|
}) => {
|
|
1741
1890
|
const exemptSettlorLE = {
|
|
1742
|
-
type:
|
|
1891
|
+
type: LegalEntityTypes.ORGANIZATION,
|
|
1743
1892
|
organization: {
|
|
1744
1893
|
legalName: exemptSettlor.name ?? "",
|
|
1745
1894
|
registeredAddress: {
|
|
@@ -1870,18 +2019,18 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
|
|
|
1870
2019
|
return {
|
|
1871
2020
|
trustMemberType: "rootTrustee",
|
|
1872
2021
|
roles: data.role ?? [],
|
|
1873
|
-
legalEntityType: data.entityType ??
|
|
2022
|
+
legalEntityType: data.entityType ?? LegalEntityTypes.ORGANIZATION,
|
|
1874
2023
|
legalEntityId: "",
|
|
1875
2024
|
name: data.firstName ?? ""
|
|
1876
2025
|
};
|
|
1877
2026
|
}
|
|
1878
2027
|
if (data.role?.length) {
|
|
1879
2028
|
if (isExemptSettlor(data)) {
|
|
1880
|
-
if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType ===
|
|
2029
|
+
if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityTypes.ORGANIZATION) {
|
|
1881
2030
|
return {
|
|
1882
2031
|
trustMemberType: "exemptSettlor",
|
|
1883
2032
|
roles: [TrustMemberTypes.SETTLOR],
|
|
1884
|
-
legalEntityType:
|
|
2033
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1885
2034
|
legalEntityId: existingId ?? isNewEntity,
|
|
1886
2035
|
name: data.legalCompanyName ?? "",
|
|
1887
2036
|
settlorExemptionReason: ["professionalServiceProvider"],
|
|
@@ -1891,7 +2040,7 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
|
|
|
1891
2040
|
return {
|
|
1892
2041
|
trustMemberType: "exemptSettlor",
|
|
1893
2042
|
roles: [TrustMemberTypes.SETTLOR],
|
|
1894
|
-
legalEntityType:
|
|
2043
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
1895
2044
|
settlorExemptionReason: data.settlorExemptionReason.filter(
|
|
1896
2045
|
(reason) => reason !== "noneOfTheAbove"
|
|
1897
2046
|
),
|
|
@@ -1909,21 +2058,21 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
|
|
|
1909
2058
|
description: data.descriptionUndefinedBeneficiary ?? "",
|
|
1910
2059
|
reference: existingId ?? isNewEntity
|
|
1911
2060
|
};
|
|
1912
|
-
if (data.entityType ===
|
|
2061
|
+
if (data.entityType === LegalEntityTypes.ORGANIZATION) {
|
|
1913
2062
|
return {
|
|
1914
2063
|
trustMemberType: "company",
|
|
1915
2064
|
roles: data.role,
|
|
1916
|
-
legalEntityType:
|
|
2065
|
+
legalEntityType: LegalEntityTypes.ORGANIZATION,
|
|
1917
2066
|
legalEntityId: existingId ?? isNewEntity,
|
|
1918
2067
|
name: data.legalCompanyName ?? "",
|
|
1919
2068
|
country: data.country
|
|
1920
2069
|
};
|
|
1921
2070
|
}
|
|
1922
|
-
if (data.entityType ===
|
|
2071
|
+
if (data.entityType === LegalEntityTypes.INDIVIDUAL)
|
|
1923
2072
|
return {
|
|
1924
2073
|
trustMemberType: "regular",
|
|
1925
2074
|
roles: data.role,
|
|
1926
|
-
legalEntityType:
|
|
2075
|
+
legalEntityType: LegalEntityTypes.INDIVIDUAL,
|
|
1927
2076
|
legalEntityId: existingId ?? isNewEntity,
|
|
1928
2077
|
name: ""
|
|
1929
2078
|
};
|
|
@@ -2211,7 +2360,6 @@ const EntityGuidanceStatus = ({
|
|
|
2211
2360
|
entityLabel,
|
|
2212
2361
|
status
|
|
2213
2362
|
}) => {
|
|
2214
|
-
const { i18n } = useI18nContext();
|
|
2215
2363
|
const { t } = useTranslation();
|
|
2216
2364
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-status__container", children: [
|
|
2217
2365
|
/* @__PURE__ */ jsx(EntityStatusIcon, { status }),
|
|
@@ -2220,7 +2368,7 @@ const EntityGuidanceStatus = ({
|
|
|
2220
2368
|
{
|
|
2221
2369
|
className: "adyen-kyc-entity-status__tag",
|
|
2222
2370
|
variant: getRoleTagVariant(entityLabel),
|
|
2223
|
-
children:
|
|
2371
|
+
children: t(($) => $[getRoleName(entityLabel)])
|
|
2224
2372
|
},
|
|
2225
2373
|
entityLabel
|
|
2226
2374
|
),
|
|
@@ -2322,7 +2470,7 @@ const EntityAssociation = ({
|
|
|
2322
2470
|
isRemoveDisabled = false,
|
|
2323
2471
|
handleIsRemoveDisabled
|
|
2324
2472
|
}) => {
|
|
2325
|
-
const {
|
|
2473
|
+
const { t } = useTranslation();
|
|
2326
2474
|
const [showingActions, setShowingActions] = useState(false);
|
|
2327
2475
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
2328
2476
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2336,7 +2484,7 @@ const EntityAssociation = ({
|
|
|
2336
2484
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__top", children: [
|
|
2337
2485
|
/* @__PURE__ */ jsx("h3", { className: "adyen-kyc-entity-association__title", children: name }),
|
|
2338
2486
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__info", children: [
|
|
2339
|
-
/* @__PURE__ */ jsx(TaskItemStatus, { status: isStatusRemoving ?
|
|
2487
|
+
/* @__PURE__ */ jsx(TaskItemStatus, { status: isStatusRemoving ? TaskStatuses.REMOVING : status }),
|
|
2340
2488
|
actions && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__actions", children: [
|
|
2341
2489
|
/* @__PURE__ */ jsx(
|
|
2342
2490
|
IconButton,
|
|
@@ -2347,7 +2495,7 @@ const EntityAssociation = ({
|
|
|
2347
2495
|
event.stopPropagation();
|
|
2348
2496
|
setShowingActions(!showingActions);
|
|
2349
2497
|
},
|
|
2350
|
-
ariaLabel:
|
|
2498
|
+
ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
|
|
2351
2499
|
}
|
|
2352
2500
|
),
|
|
2353
2501
|
/* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
|
|
@@ -2368,11 +2516,11 @@ const EntityAssociation = ({
|
|
|
2368
2516
|
{
|
|
2369
2517
|
className: "adyen-kyc-entity-association__tag",
|
|
2370
2518
|
variant: getRoleTagVariant(type),
|
|
2371
|
-
children:
|
|
2519
|
+
children: t(($) => $[getRoleName(type)])
|
|
2372
2520
|
},
|
|
2373
2521
|
type
|
|
2374
2522
|
)) }),
|
|
2375
|
-
status ===
|
|
2523
|
+
status === TaskStatuses.ERROR && /* @__PURE__ */ jsx(
|
|
2376
2524
|
VerificationErrorAlert,
|
|
2377
2525
|
{
|
|
2378
2526
|
className: "adyen-kyc-entity-association-alert",
|
|
@@ -2449,7 +2597,7 @@ const ExemptSettlorTaskItem = ({
|
|
|
2449
2597
|
onDelete
|
|
2450
2598
|
}) => {
|
|
2451
2599
|
const { i18n } = useI18nContext();
|
|
2452
|
-
const settlorName = exemptSettlor.legalEntityType ===
|
|
2600
|
+
const settlorName = exemptSettlor.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
|
|
2453
2601
|
const actions = [
|
|
2454
2602
|
{
|
|
2455
2603
|
icon: "edit",
|
|
@@ -2559,7 +2707,7 @@ const UndefinedBeneficiaryTaskItem = ({
|
|
|
2559
2707
|
{
|
|
2560
2708
|
name: undefinedBeneficiary.description,
|
|
2561
2709
|
types: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
|
|
2562
|
-
status:
|
|
2710
|
+
status: TaskStatuses.FINISHED,
|
|
2563
2711
|
actions,
|
|
2564
2712
|
onNavigateToEntity: onEdit
|
|
2565
2713
|
},
|
|
@@ -2574,7 +2722,7 @@ const TrustMembersOverview = ({
|
|
|
2574
2722
|
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
2575
2723
|
const { data: trustLe, refetch: refetchTrust } = useAssociatedLegalEntity(
|
|
2576
2724
|
rootLe,
|
|
2577
|
-
|
|
2725
|
+
LegalEntityTypes.TRUST
|
|
2578
2726
|
);
|
|
2579
2727
|
const trustMembers = useTrustMembers();
|
|
2580
2728
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
@@ -2789,7 +2937,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2789
2937
|
setActiveMember(createdMember);
|
|
2790
2938
|
if (rootLegalEntityId.value === createdMember?.legalEntityId) {
|
|
2791
2939
|
navigateTo(
|
|
2792
|
-
createdMember.legalEntityType ===
|
|
2940
|
+
createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
|
|
2793
2941
|
);
|
|
2794
2942
|
return;
|
|
2795
2943
|
}
|
|
@@ -2798,7 +2946,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2798
2946
|
return;
|
|
2799
2947
|
}
|
|
2800
2948
|
navigateTo(
|
|
2801
|
-
createdMember?.legalEntityType ===
|
|
2949
|
+
createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
|
|
2802
2950
|
);
|
|
2803
2951
|
};
|
|
2804
2952
|
return {
|
|
@@ -2880,12 +3028,12 @@ const regularForms = {
|
|
|
2880
3028
|
}
|
|
2881
3029
|
};
|
|
2882
3030
|
const leTypeCardDetails = {
|
|
2883
|
-
[
|
|
3031
|
+
[LegalEntityTypes.INDIVIDUAL]: {
|
|
2884
3032
|
id: "individual",
|
|
2885
3033
|
name: "individualMember",
|
|
2886
3034
|
description: "partnerNotABusiness"
|
|
2887
3035
|
},
|
|
2888
|
-
[
|
|
3036
|
+
[LegalEntityTypes.ORGANIZATION]: {
|
|
2889
3037
|
id: "organization",
|
|
2890
3038
|
name: "companyMember",
|
|
2891
3039
|
description: "partnerIsABusiness"
|
|
@@ -2901,12 +3049,13 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2901
3049
|
onNavigateToMember,
|
|
2902
3050
|
activeMember
|
|
2903
3051
|
}) {
|
|
3052
|
+
const { t } = useTranslation();
|
|
2904
3053
|
const { i18n } = useI18nContext();
|
|
2905
3054
|
const [shouldValidate, setShouldValidate] = useState(false);
|
|
2906
3055
|
const activeForm = regularForms.roleAndEntityType;
|
|
2907
3056
|
const formUtils = createFormUtils(
|
|
2908
3057
|
{},
|
|
2909
|
-
|
|
3058
|
+
t
|
|
2910
3059
|
);
|
|
2911
3060
|
const formsWithValidity = Object.values(regularForms).map((form) => ({
|
|
2912
3061
|
formId: form.formId,
|
|
@@ -2928,7 +3077,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2928
3077
|
)
|
|
2929
3078
|
};
|
|
2930
3079
|
const decideFields = (data2) => {
|
|
2931
|
-
if (data2.entityType ===
|
|
3080
|
+
if (data2.entityType === LegalEntityTypes.INDIVIDUAL) {
|
|
2932
3081
|
return ["entityType", "uboThroughControl", "uboThroughOwnership"];
|
|
2933
3082
|
}
|
|
2934
3083
|
return ["entityType"];
|
|
@@ -2940,12 +3089,14 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2940
3089
|
shouldValidate
|
|
2941
3090
|
});
|
|
2942
3091
|
const onNextClick = () => {
|
|
2943
|
-
if (Object.values(data).some((fieldValue) => !fieldValue) && data.entityType !==
|
|
3092
|
+
if (Object.values(data).some((fieldValue) => !fieldValue) && data.entityType !== LegalEntityTypes.ORGANIZATION) {
|
|
2944
3093
|
setShouldValidate(true);
|
|
2945
3094
|
return;
|
|
2946
3095
|
}
|
|
2947
|
-
const selectedRoles = [
|
|
2948
|
-
|
|
3096
|
+
const selectedRoles = [
|
|
3097
|
+
UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER
|
|
3098
|
+
];
|
|
3099
|
+
if (data.entityType === LegalEntityTypes.INDIVIDUAL) {
|
|
2949
3100
|
if (data.uboThroughControl === "yes") {
|
|
2950
3101
|
selectedRoles.push(UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON);
|
|
2951
3102
|
}
|
|
@@ -3065,7 +3216,7 @@ const styles = {
|
|
|
3065
3216
|
};
|
|
3066
3217
|
const isPrimaryPartner = (member) => member?.roles?.includes("primaryPartner");
|
|
3067
3218
|
const isMemberMissingOwner = (member) => {
|
|
3068
|
-
return !isPrimaryPartner(member) && member.legalEntityType ===
|
|
3219
|
+
return !isPrimaryPartner(member) && member.legalEntityType === LegalEntityTypes.ORGANIZATION && !member.ownerId;
|
|
3069
3220
|
};
|
|
3070
3221
|
const UnincorporatedPartnershipMembersOverview = ({
|
|
3071
3222
|
navigateBackToTaskList,
|
|
@@ -3076,7 +3227,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3076
3227
|
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
3077
3228
|
const { data: partnershipLe, refetch: refetchPartnership } = useAssociatedLegalEntity(
|
|
3078
3229
|
rootLe,
|
|
3079
|
-
|
|
3230
|
+
LegalEntityTypes.UNINCORPORATED_PARTNERSHIP
|
|
3080
3231
|
);
|
|
3081
3232
|
const partnershipMembers = useUnincorporatedPartnershipMembers();
|
|
3082
3233
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
@@ -3111,7 +3262,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3111
3262
|
})
|
|
3112
3263
|
}
|
|
3113
3264
|
];
|
|
3114
|
-
if (member.legalEntityType ===
|
|
3265
|
+
if (member.legalEntityType === LegalEntityTypes.ORGANIZATION && !isPrimaryPartner(member)) {
|
|
3115
3266
|
const missingOwner = isMemberMissingOwner(member);
|
|
3116
3267
|
baseActions.push({
|
|
3117
3268
|
icon: missingOwner ? "plus" : "edit",
|
|
@@ -3173,7 +3324,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3173
3324
|
types: member.roles,
|
|
3174
3325
|
name: member.name,
|
|
3175
3326
|
status: getTaskStatus2(
|
|
3176
|
-
member.legalEntityType ===
|
|
3327
|
+
member.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY,
|
|
3177
3328
|
member.legalEntityId
|
|
3178
3329
|
),
|
|
3179
3330
|
actions: getActions(member),
|
|
@@ -3340,72 +3491,75 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
3340
3491
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
3341
3492
|
};
|
|
3342
3493
|
const Introduction = lazy(
|
|
3343
|
-
async () => (await import("./Introduction-
|
|
3494
|
+
async () => (await import("./Introduction-BEM_wmkj.js")).Introduction
|
|
3344
3495
|
);
|
|
3345
3496
|
const BusinessTypeSelectionPage = lazy(
|
|
3346
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
3497
|
+
async () => (await import("./BusinessTypeSelectionPage-DmjbM57I.js")).BusinessTypeSelectionPage
|
|
3347
3498
|
);
|
|
3348
3499
|
const SingpassSelection = lazy(
|
|
3349
|
-
async () => (await import("./SingpassSelection-
|
|
3500
|
+
async () => (await import("./SingpassSelection-BJNZw1u-.js")).SingpassSelection
|
|
3350
3501
|
);
|
|
3351
3502
|
const AccountSetupRejected = lazy(
|
|
3352
|
-
async () => (await import("./AccountSetupRejected-
|
|
3503
|
+
async () => (await import("./AccountSetupRejected-gAGWuJ9N.js")).AccountSetupRejected
|
|
3353
3504
|
);
|
|
3354
3505
|
const DecisionMakers = lazy(
|
|
3355
|
-
async () => (await import("./DecisionMakers-
|
|
3506
|
+
async () => (await import("./DecisionMakers-C2awPhE6.js")).DecisionMakers
|
|
3356
3507
|
);
|
|
3357
3508
|
const CustomerSupport = lazy(
|
|
3358
|
-
async () => (await import("./CustomerSupport-
|
|
3509
|
+
async () => (await import("./CustomerSupport-rSYElbVr.js")).CustomerSupport
|
|
3359
3510
|
);
|
|
3360
|
-
const Review = lazy(async () => (await import("./Review-
|
|
3511
|
+
const Review = lazy(async () => (await import("./Review-C4HOjR6y.js")).Review);
|
|
3361
3512
|
const SignPCIComponent = lazy(
|
|
3362
|
-
async () => (await import("./SignPCIComponent-
|
|
3513
|
+
async () => (await import("./SignPCIComponent-Cx8oL8wu.js")).SignPCIComponent
|
|
3363
3514
|
);
|
|
3364
3515
|
const AcceptTermsOfService = lazy(
|
|
3365
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
3516
|
+
async () => (await import("./AcceptTermsOfServiceComponent-DBSkKRHS.js")).AcceptTermsOfServiceComponent
|
|
3366
3517
|
);
|
|
3367
3518
|
const TaxReportingDropin = lazy(
|
|
3368
|
-
async () => (await import("./TaxReportingDropin-
|
|
3519
|
+
async () => (await import("./TaxReportingDropin-CbDYoO31.js")).TaxReportingDropin
|
|
3369
3520
|
);
|
|
3370
3521
|
const PayoutDetailsPage = lazy(
|
|
3371
|
-
async () => (await import("./StoreProvider-
|
|
3522
|
+
async () => (await import("./StoreProvider-DhQ4sdLg.js").then((n) => n.fE)).PayoutDetailsPage
|
|
3372
3523
|
);
|
|
3373
3524
|
const RootBusinessDetailsPage = lazy(
|
|
3374
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
3525
|
+
async () => (await import("./RootBusinessDetailsPage-DeqKfOFX.js")).RootBusinessDetailsPage
|
|
3375
3526
|
);
|
|
3376
3527
|
const SoleProprietorshipPage = lazy(
|
|
3377
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
3528
|
+
async () => (await import("./SoleProprietorshipPage-Dtw3XHVJ.js")).SoleProprietorshipPage
|
|
3378
3529
|
);
|
|
3379
3530
|
const TrustMemberCompanyPage = lazy(
|
|
3380
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
3531
|
+
async () => (await import("./TrustMemberCompanyPage-CLTOpWzU.js")).TrustMemberCompanyPage
|
|
3381
3532
|
);
|
|
3382
3533
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
3383
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
3534
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
3384
3535
|
);
|
|
3385
3536
|
const BusinessFinancingPage = lazy(
|
|
3386
|
-
async () => (await import("./BusinessFinancingPage-
|
|
3537
|
+
async () => (await import("./BusinessFinancingPage-DyItV5SR.js")).BusinessFinancingPage
|
|
3387
3538
|
);
|
|
3388
3539
|
const TrustDetailsPage = lazy(
|
|
3389
|
-
async () => (await import("./TrustDetailsPage-
|
|
3540
|
+
async () => (await import("./TrustDetailsPage-DktRQRum.js")).TrustDetailsPage
|
|
3390
3541
|
);
|
|
3391
3542
|
const SourceOfFundsPage = lazy(
|
|
3392
|
-
async () => (await import("./SourceOfFundsPage-
|
|
3543
|
+
async () => (await import("./SourceOfFundsPage-gPmK4QX6.js")).SourceOfFundsPage
|
|
3393
3544
|
);
|
|
3394
3545
|
const RootIndividualDetailsPage = lazy(
|
|
3395
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
3546
|
+
async () => (await import("./RootIndividualDetailsPage-CKOquQ0-.js")).RootIndividualDetailsPage
|
|
3396
3547
|
);
|
|
3397
3548
|
const LegalRepresentativeDetailsPage = lazy(
|
|
3398
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
3549
|
+
async () => (await import("./LegalRepresentativeDetailsPage-1tw_BPLr.js")).LegalRepresentativeDetailsPage
|
|
3399
3550
|
);
|
|
3400
3551
|
const TrustMemberIndividualPage = lazy(
|
|
3401
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
3552
|
+
async () => (await import("./TrustMemberIndividualPage-wPh86-GQ.js")).TrustMemberIndividualPage
|
|
3402
3553
|
);
|
|
3403
3554
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
3404
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
3555
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-B-2i68Nd.js")).UnincorporatedPartnershipIndividualPage
|
|
3405
3556
|
);
|
|
3406
3557
|
const DecisionMakerDetailsPage = lazy(
|
|
3407
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
3558
|
+
async () => (await import("./DecisionMakerDetailsPage-DQcWSwTb.js")).DecisionMakerDetailsPage
|
|
3408
3559
|
);
|
|
3560
|
+
function isIn(values, x) {
|
|
3561
|
+
return values.includes(x);
|
|
3562
|
+
}
|
|
3409
3563
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
3410
3564
|
const logger = createLogger();
|
|
3411
3565
|
function DropinComposer({
|
|
@@ -3449,7 +3603,7 @@ function DropinComposer({
|
|
|
3449
3603
|
refetchInterval: (query) => {
|
|
3450
3604
|
const legalEntityData2 = query.state.data;
|
|
3451
3605
|
if (legalEntityData2) {
|
|
3452
|
-
return !currentTask || !PAGES_WITH_POLLING
|
|
3606
|
+
return !currentTask || !isIn(PAGES_WITH_POLLING, currentTask) || hasAllCapabilitiesResolved(legalEntityData2) || hasRejectedCapabilities(legalEntityData2) ? false : 3e3;
|
|
3453
3607
|
}
|
|
3454
3608
|
return 3e3;
|
|
3455
3609
|
}
|
|
@@ -3477,12 +3631,12 @@ function DropinComposer({
|
|
|
3477
3631
|
const singpassTabRef = useRef(null);
|
|
3478
3632
|
const { data: trust, refetch: refetchTrust } = useAssociatedLegalEntity(
|
|
3479
3633
|
rootLegalEntity,
|
|
3480
|
-
|
|
3634
|
+
LegalEntityTypes.TRUST
|
|
3481
3635
|
);
|
|
3482
|
-
const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity,
|
|
3636
|
+
const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
|
|
3483
3637
|
const { data: soleProp } = useAssociatedLegalEntity(
|
|
3484
3638
|
rootLegalEntity,
|
|
3485
|
-
|
|
3639
|
+
LegalEntityTypes.SOLE_PROPRIETORSHIP
|
|
3486
3640
|
);
|
|
3487
3641
|
const [parentId, setParentId] = useState();
|
|
3488
3642
|
const [currentDecisionMakerId, setCurrentDecisionMakerId] = useState();
|
|
@@ -3622,7 +3776,7 @@ function DropinComposer({
|
|
|
3622
3776
|
singpassTabRef.current?.close();
|
|
3623
3777
|
} else {
|
|
3624
3778
|
handleSingpassMyInfoLoginFailure(
|
|
3625
|
-
legalEntityResponse.type ===
|
|
3779
|
+
legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
|
|
3626
3780
|
);
|
|
3627
3781
|
}
|
|
3628
3782
|
},
|
|
@@ -3693,9 +3847,9 @@ function DropinComposer({
|
|
|
3693
3847
|
setTargetLegalEntityType(void 0);
|
|
3694
3848
|
},
|
|
3695
3849
|
handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
|
|
3696
|
-
isTargetLegalEntityType: targetLegalEntityType ===
|
|
3850
|
+
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL,
|
|
3697
3851
|
trustedFields: singpassTrustedFields,
|
|
3698
|
-
trustedFieldsProvider: isEligibleForSingpass ?
|
|
3852
|
+
trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProviders.SINGPASS : void 0
|
|
3699
3853
|
}
|
|
3700
3854
|
) });
|
|
3701
3855
|
case TaskTypes.CUSTOMER_SUPPORT:
|
|
@@ -3717,7 +3871,7 @@ function DropinComposer({
|
|
|
3717
3871
|
onSubmit: handleOnSubmit,
|
|
3718
3872
|
handleHomeClick: navigateBack,
|
|
3719
3873
|
trustedFields: singpassTrustedFields,
|
|
3720
|
-
trustedFieldsProvider: isEligibleForSingpass ?
|
|
3874
|
+
trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProviders.SINGPASS : void 0,
|
|
3721
3875
|
trustedRoles: trustedEntityAssociations.find((ea) => ea.reference === currentDecisionMaker?.id)?.types || []
|
|
3722
3876
|
}
|
|
3723
3877
|
) });
|
|
@@ -3758,7 +3912,7 @@ function DropinComposer({
|
|
|
3758
3912
|
setTargetLegalEntityType(void 0);
|
|
3759
3913
|
},
|
|
3760
3914
|
handleHomeClick: navigateBack,
|
|
3761
|
-
isTargetLegalEntityType: targetLegalEntityType ===
|
|
3915
|
+
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
3762
3916
|
}
|
|
3763
3917
|
) });
|
|
3764
3918
|
case TaskTypes.TRUST_MEMBER_COMPANY:
|
|
@@ -3770,7 +3924,7 @@ function DropinComposer({
|
|
|
3770
3924
|
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3771
3925
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3772
3926
|
handleHomeClick: navigateBack,
|
|
3773
|
-
isTargetLegalEntityType: targetLegalEntityType ===
|
|
3927
|
+
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
3774
3928
|
}
|
|
3775
3929
|
) });
|
|
3776
3930
|
case TaskTypes.PAYOUT:
|
|
@@ -3865,7 +4019,7 @@ function DropinComposer({
|
|
|
3865
4019
|
),
|
|
3866
4020
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3867
4021
|
handleHomeClick: navigateBack,
|
|
3868
|
-
isTargetLegalEntityType: targetLegalEntityType ===
|
|
4022
|
+
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
3869
4023
|
}
|
|
3870
4024
|
) });
|
|
3871
4025
|
case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER:
|
|
@@ -3918,7 +4072,7 @@ function DropinComposer({
|
|
|
3918
4072
|
solePropId: soleProp?.id,
|
|
3919
4073
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3920
4074
|
handleHomeClick: navigateBack,
|
|
3921
|
-
isTargetLegalEntityType: targetLegalEntityType ===
|
|
4075
|
+
isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
|
|
3922
4076
|
}
|
|
3923
4077
|
) });
|
|
3924
4078
|
case TaskTypes.SERVICE_AGREEMENT:
|
|
@@ -3964,6 +4118,8 @@ function DropinComposer({
|
|
|
3964
4118
|
) });
|
|
3965
4119
|
case TaskTypes.TAX_REPORTING:
|
|
3966
4120
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(TaxReportingDropin, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) }) });
|
|
4121
|
+
case TaskTypes.BUSINESS_LINES:
|
|
4122
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(RootBusinessLinesPage, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) }) });
|
|
3967
4123
|
default:
|
|
3968
4124
|
return null;
|
|
3969
4125
|
}
|
|
@@ -3988,12 +4144,14 @@ export {
|
|
|
3988
4144
|
DropinLayout as D,
|
|
3989
4145
|
EntityGuidanceStatus as E,
|
|
3990
4146
|
OnboardingDropinComponent as O,
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
4147
|
+
usePciStatus as a,
|
|
4148
|
+
useCanSeeIntroduction as b,
|
|
4149
|
+
useLegalEntityType as c,
|
|
4150
|
+
allowIndividualWithoutSoleProp as d,
|
|
4151
|
+
useDataMissingRemediations as e,
|
|
4152
|
+
EntityAssociation as f,
|
|
4153
|
+
useTrustMembers as g,
|
|
3996
4154
|
iconStatus as i,
|
|
3997
4155
|
normalizedTaskStatusStore as n,
|
|
3998
|
-
|
|
4156
|
+
useSalesChannelsSettings as u
|
|
3999
4157
|
};
|