@adyen/kyc-components 4.0.0-beta.0 → 4.0.0-beta.3
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-Dh7RSJoE.js → AcceptTermsOfServiceComponent-i222mdxX.js} +54 -59
- package/dist/{AccountSetupRejected-PdYyKwbS.js → AccountSetupRejected-DHph9lFl.js} +6 -6
- package/dist/{Avatar-C8aZB2wq.js → Avatar-vCjWXfC7.js} +2 -2
- package/dist/{BusinessDetailsDropin-DC8FEWvP.js → BusinessDetailsDropin-DQcfiSR8.js} +408 -393
- package/dist/{BusinessFinancingComponent-B0vW7r62.js → BusinessFinancingComponent-DC3jzBrq.js} +3 -3
- package/dist/{BusinessFinancingDropin-D8HAwTSq.js → BusinessFinancingDropin-D2lMEbNh.js} +529 -701
- package/dist/{BusinessFinancingPage-L1APYvzn.js → BusinessFinancingPage-BPD2cSDR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-sfGqHnp6.js → BusinessTypeSelectionPage-Cdp8joPJ.js} +86 -91
- package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
- package/dist/ContractViewer-B0bZ14Ts.js +947 -0
- package/dist/{CreateIndividualComponent-i-QNCzp0.js → CreateIndividualComponent-D9wnexv4.js} +7 -8
- package/dist/{CreateTransferInstrumentComponent-8n3tjBYK.js → CreateTransferInstrumentComponent-COzPdQjC.js} +4 -5
- package/dist/{CustomerSupport-BER6nSK2.js → CustomerSupport-NGBoBg3N.js} +27 -33
- package/dist/{DebugModal-DeSsKkh_.js → DebugModal-I2U6TjGT.js} +43 -69
- package/dist/{DecisionMakerDetailsPage-DgjlfKyP.js → DecisionMakerDetailsPage-BN-H1sJF.js} +3 -4
- package/dist/{DecisionMakers-D2TjKnOc.js → DecisionMakers-CZ5-IRtU.js} +128 -25
- package/dist/{ES-JRIf-4xI.js → ES-BlWV7xvh.js} +4 -6
- package/dist/{EmbeddedStatus-Bn5KNA0V.js → EmbeddedStatus-Blr0seRl.js} +13 -5
- package/dist/FormEndState-JB6QFSet.js +59 -0
- package/dist/{FormFlow-CZgc09E3.js → FormFlow-DjvdNEiV.js} +18 -22
- package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
- package/dist/{IndividualOnfidoDropin-D6uwo7VI.js → IndividualOnfidoDropin-DHhyO2ai.js} +1364 -867
- package/dist/{Introduction-DW2IQ57R.js → Introduction-erRXgreE.js} +32 -35
- package/dist/LandingLayout-B45lEjOv.js +84 -0
- package/dist/{LegalRepresentativeDetailsPage-BfIDXqv1.js → LegalRepresentativeDetailsPage-rS5K4657.js} +3 -4
- package/dist/{ManageIndividualComponent-DJoEsE2m.js → ManageIndividualComponent-BEzE5lkX.js} +8 -12
- package/dist/{ManagePCIComponent-BGESFWL6.js → ManagePCIComponent-BgdGfAuT.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-_wTZrjqd.js → ManageTermsOfServiceComponent-BWkwy6YC.js} +7 -8
- package/dist/{ManageTransferInstrumentComponent-Cvc3kk94.js → ManageTransferInstrumentComponent-B8kRNftW.js} +21 -34
- package/dist/{OnboardingDropinComponent-CocnpjvA.js → OnboardingDropinComponent-DBW5N3Dr.js} +325 -364
- package/dist/{ProviderButton-vD5DUJaN.js → ProviderButton-B58n0cRC.js} +13 -24
- package/dist/{Review-BFgzcIDj.js → Review-O6Al47Cu.js} +11 -12
- package/dist/{RootBusinessDetailsPage-C6lHQShI.js → RootBusinessDetailsPage-q_6wAcer.js} +3 -4
- package/dist/{RootIndividualDetailsPage-DfpqHdAS.js → RootIndividualDetailsPage-CiXgSJsV.js} +3 -4
- package/dist/{SignPCIComponent-D35913wJ.js → SignPCIComponent-cqRNhGdl.js} +17 -23
- package/dist/{SingpassSelection-D2Xe1wGv.js → SingpassSelection-BWEJ3Yi-.js} +6 -9
- package/dist/{SoleProprietorshipPage-D2F8Ghmo.js → SoleProprietorshipPage-CRcJSpn9.js} +4 -5
- package/dist/{SourceOfFundsPage-RjAcZ3Bo.js → SourceOfFundsPage-BxLGXTHb.js} +533 -517
- package/dist/{StoreProvider-COHi02bX.js → StoreProvider-ClKLaHzy.js} +23640 -25317
- package/dist/{TaskItemStatus-Bi1L8gea.js → TaskItemStatus-DrTIwCTx.js} +14 -14
- package/dist/TaskStatusIndicator-CTtKjo0m.js +69 -0
- package/dist/{TaxReportingDropin-BLXgRbuR.js → TaxReportingDropin-DFZ2ehfk.js} +82 -102
- package/dist/{TileGroup-B1IymoWv.js → TileGroup-BtE472I1.js} +6 -8
- package/dist/{TrustDetailsPage-DVvGJ_Ta.js → TrustDetailsPage-CGiiTbfR.js} +93 -114
- package/dist/{TrustMemberCompanyPage-D0wTEhuh.js → TrustMemberCompanyPage-oLNhg0hg.js} +4 -5
- package/dist/{TrustMemberIndividualPage-BLuaBi3j.js → TrustMemberIndividualPage-Bgsis586.js} +3 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-BhIihH2v.js → UnincorporatedPartnershipIndividualPage-DPE3grqL.js} +3 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CgujXwfX.js → UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js} +3 -4
- package/dist/{VerificationErrorAlert-BkImnGA-.js → VerificationErrorAlert-BBdJmGJu.js} +10 -8
- package/dist/{ViewVerificationStatusComponent-CRefu327.js → ViewVerificationStatusComponent-DDtXG_pM.js} +12 -13
- package/dist/adyen-business-financing.js +22 -29
- package/dist/adyen-individual.js +21 -22
- package/dist/adyen-kyc-components.js +137 -122
- package/dist/adyen-manage-individual.js +18 -21
- package/dist/adyen-manage-pci.js +18 -21
- package/dist/adyen-manage-terms-of-service.js +18 -21
- package/dist/adyen-manage-transfer-instruments.js +27 -30
- package/dist/adyen-onboarding.js +25 -22
- package/dist/adyen-sign-pci.js +22 -32
- package/dist/adyen-terms-of-service.js +32 -29
- package/dist/adyen-transfer-instrument.js +32 -31
- package/dist/{adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js → adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js} +5 -1
- package/dist/adyen-verification-status.js +30 -33
- package/dist/bg-BG-BY3Wa361.js +54 -0
- package/dist/bg-BG-BvSUDgGF.js +13 -0
- package/dist/bg-BG-HpLj_LOM.js +16 -0
- package/dist/cs-CZ-BEFeaKsV.js +54 -0
- package/dist/cs-CZ-CQ_M3lEp.js +16 -0
- package/dist/cs-CZ-y4mvq4Lv.js +13 -0
- package/dist/{css-DZNXkIaY.js → css-BJGWcW8A.js} +2 -2
- package/dist/da-DK-D6UK8XT9.js +54 -0
- package/dist/da-DK-k4JW3iVF.js +16 -0
- package/dist/da-DK-qgQOVjDp.js +13 -0
- package/dist/de-DE-B3nctkG8.js +13 -0
- package/dist/de-DE-C7mjtS5w.js +16 -0
- package/dist/de-DE-DUl6gRKv.js +54 -0
- package/dist/de-DE-pSdsxBpQ.js +13 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-Bvjk5Sw8.js +13 -0
- package/dist/el-GR-CEQrkYHW.js +16 -0
- package/dist/el-GR-CdgLZhuO.js +13 -0
- package/dist/en-US-Bq2Twy6x.js +54 -0
- package/dist/en-US-DDagIr01.js +16 -0
- package/dist/en-US-DSoLr6rp.js +13 -0
- package/dist/es-ES-BRfK6tX7.js +13 -0
- package/dist/es-ES-Cavm0szq.js +54 -0
- package/dist/es-ES-DB1c74Kv.js +16 -0
- package/dist/es-ES-Dy1uR2H_.js +13 -0
- package/dist/et-EE-DUWZ2Vqm.js +54 -0
- package/dist/et-EE-d9V24rcf.js +13 -0
- package/dist/et-EE-xIegUSuv.js +16 -0
- package/dist/fi-FI-B0fnAFV2.js +13 -0
- package/dist/fi-FI-DVa-ccaW.js +54 -0
- package/dist/fi-FI-NCxneAqU.js +16 -0
- package/dist/fr-FR-BoKzVp2q.js +13 -0
- package/dist/fr-FR-CY9emHgF.js +54 -0
- package/dist/fr-FR-Dk6Lw2On.js +13 -0
- package/dist/fr-FR-daiUnUwo.js +16 -0
- package/dist/{getFieldsWithExistingData-UNUNInq5.js → getFieldsWithExistingData-BY--eXBQ.js} +3 -4
- package/dist/{hasDataChanged-CIg-bPSm.js → hasDataChanged-CwfuS4et.js} +4 -4
- package/dist/hr-HR-BAUywqDj.js +16 -0
- package/dist/hr-HR-CF0AHQzi.js +13 -0
- package/dist/hr-HR-CnP5sqih.js +54 -0
- package/dist/hu-HU-3GQojIHR.js +16 -0
- package/dist/hu-HU-BTlpbCpc.js +54 -0
- package/dist/hu-HU-CSPhOvLC.js +13 -0
- package/dist/it-IT-BH-eqIKH.js +13 -0
- package/dist/it-IT-D7G4BaP7.js +13 -0
- package/dist/it-IT-GgHc0cHR.js +54 -0
- package/dist/it-IT-pDWPFHEh.js +16 -0
- package/dist/ja-JP-B3yqM_FM.js +13 -0
- package/dist/ja-JP-BhS-_dIx.js +54 -0
- package/dist/ja-JP-DTW_hY1L.js +13 -0
- package/dist/ja-JP-scPXJ93L.js +16 -0
- package/dist/{json-DGARJCng.js → json-Dk6RRAV8.js} +2 -2
- package/dist/{localizeDateString-KlstHAcM.js → localizeDateString-CKCBXzSn.js} +6 -6
- package/dist/lt-LT-BcGNy8Ti.js +16 -0
- package/dist/lt-LT-DTQGR9M0.js +54 -0
- package/dist/lt-LT-Lzl_Cbw-.js +13 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -0
- package/dist/lv-LV-CBD07r1Y.js +16 -0
- package/dist/lv-LV-y00wN1pj.js +13 -0
- package/dist/{mapFinancialReportsToFinancialInformation-Cid31JpK.js → mapFinancialReportsToFinancialInformation-D_6u_bSS.js} +19 -12
- package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
- package/dist/nl-NL-BxJUDHMK.js +16 -0
- package/dist/nl-NL-CFzm75Jw.js +13 -0
- package/dist/nl-NL-CUcML482.js +54 -0
- package/dist/nl-NL-DmnFXAQC.js +13 -0
- package/dist/no-NO-BBCvsecq.js +54 -0
- package/dist/no-NO-DbvFfP96.js +13 -0
- package/dist/no-NO-Drup6Jyy.js +16 -0
- package/dist/pl-PL--mmxopYA.js +13 -0
- package/dist/pl-PL-BXv8Mmzb.js +16 -0
- package/dist/pl-PL-kGaeUP-w.js +54 -0
- package/dist/{plaintext-jF9fCLMp.js → plaintext-9WNCwUtz.js} +2 -2
- package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
- package/dist/preact/adyen-terms-of-service.js +1 -1
- package/dist/preact/adyen-transfer-instrument.js +2 -2
- package/dist/pt-PT-BVzXBFp7.js +13 -0
- package/dist/pt-PT-D8nU-UM2.js +16 -0
- package/dist/pt-PT-DpDxAynk.js +13 -0
- package/dist/pt-PT-JVqqgvPs.js +54 -0
- package/dist/resolveEnvironment-DQH1ab0S.js +84 -0
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-CG33OwqS.js +16 -0
- package/dist/ro-RO-Cdmevo9A.js +13 -0
- package/dist/ru-RU-FZb2upqh.js +13 -0
- package/dist/{rules-a4kJDPzY.js → rules-CCnLDGvk.js} +63 -64
- package/dist/sk-SK-CgLJIuJw.js +54 -0
- package/dist/sk-SK-DV_xkO69.js +16 -0
- package/dist/sk-SK-nfeuTcY5.js +13 -0
- package/dist/sl-SI-B5yeoadY.js +16 -0
- package/dist/sl-SI-BzeVaC1Z.js +54 -0
- package/dist/sl-SI-DUTZDqkP.js +13 -0
- package/dist/style.css +2124 -3093
- package/dist/styles-CLV89_hH.js +2125 -3094
- package/dist/sv-SE-BTx2XKAp.js +13 -0
- package/dist/sv-SE-CVmo11gI.js +54 -0
- package/dist/sv-SE-CfxyR53r.js +16 -0
- package/dist/sv-SE-rckxD-43.js +13 -0
- package/dist/types/api/address/address.types.d.ts +0 -1
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +0 -1
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
- package/dist/types/api/companyDataSet/constants.d.ts +1 -1
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
- package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
- package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +21 -0
- package/dist/types/api/configurations/configurations.types.d.ts +9 -0
- package/dist/types/api/configurations/useScenarios.d.ts +33 -35
- package/dist/types/api/configurations/useSupportedCountries.d.ts +3 -3
- package/dist/types/api/configurations/useTaskTypes.d.ts +2 -2
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +11 -11
- package/dist/types/api/datasets/datasets.types.d.ts +6 -0
- package/dist/types/api/datasets/useLegalForms.d.ts +3 -8
- package/dist/types/api/datasets/useNaceCodes.d.ts +2 -2
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +2 -2
- package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +15 -0
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -17
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +7 -0
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +14 -0
- package/dist/types/api/idVerificationProviders/idVerificationProviders.types.d.ts +6 -0
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +3 -7
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +7 -7
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +285 -223
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
- package/dist/types/api/onboardingStatus/onboardingStatus.types.d.ts +7 -0
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -5
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +9 -0
- package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +2 -4
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +7 -9
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +4 -9
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +2 -2
- package/dist/types/api/pciTemplate/useSignPci.d.ts +2 -2
- package/dist/types/api/providersConfiguration/providersConfiguration.types.d.ts +9 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +3 -13
- package/dist/types/api/queryKeys.d.ts +5 -3
- package/dist/types/api/taskStatus/taskStatus.types.d.ts +4 -0
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +0 -3
- package/dist/types/api/taxClassification/taxClassification.types.d.ts +2 -0
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -2
- package/dist/types/api/termsOfService/termsOfService.types.d.ts +10 -0
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +3 -10
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -8
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +12 -5
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
- package/dist/types/api/tinVerification/tinVerification.types.d.ts +4 -0
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +2 -4
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +25 -0
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -14
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +3 -6
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +4 -7
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -9
- package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +7 -0
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -14
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -6
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +4 -7
- package/dist/types/api/validation/validation.types.d.ts +8 -0
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +3 -2
- package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +3 -3
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +6 -6
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +3 -9
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1613 -1919
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
- package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -3
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +3 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessSelection/{BusinessInformationCard.d.ts → BusinessInformationCard/BusinessInformationCard.d.ts} +4 -6
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -1
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +23 -20
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -4
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +0 -1
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +6 -3
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -0
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2053 -24
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +5 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +10 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +11 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.d.ts +6 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +7 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +7 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +27 -112
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +17 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +22 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
- package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -2
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +3 -3
- package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
- package/dist/types/components/Individual/fields/LocalizedNameFields/LocalizedNameFields.d.ts +2 -0
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +13 -0
- package/dist/types/components/Individual/fields/NameFields/types.d.ts +23 -0
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentManualUpload.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +7 -5
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +34 -32
- package/dist/types/components/Individual/forms/Individual/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +37 -34
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +1 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaireModalContent.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.d.ts +1 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +5 -0
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +3 -0
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +3 -1
- package/dist/types/components/Individual/mapping/mapLocalization.d.ts +3 -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/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
- package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -2
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +1 -1
- package/dist/types/components/Shared/Summary/types.d.ts +3 -3
- package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +6 -4
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +6 -8
- package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +3 -3
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/Currency/types.d.ts +3 -3
- package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.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/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +4 -3
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +11 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
- package/dist/types/components/Shared/fields/Name/Name.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +4 -4
- package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.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 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +3 -5
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +3 -3
- package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -3
- package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +7 -7
- package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/ContactDetails/ContactDetails.d.ts +1 -1
- package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +2 -2
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -3
- package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/Trust.d.ts +19 -3
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +6 -6
- package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +14 -14
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +4 -4
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +3 -3
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +1 -1
- package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
- package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +11 -12
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +5 -5
- package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +10 -0
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
- package/dist/types/components/ui/molecules/Alert/Alert.d.ts +1 -1
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/Confirm/Confirm.d.ts +1 -1
- package/dist/types/components/ui/molecules/Confirm/Confirm.types.d.ts +1 -0
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +3 -5
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/VerificationErrors.d.ts +2 -1
- package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +2 -3
- package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
- package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +1 -1
- package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +1 -1
- package/dist/types/components/ui/molecules/InputText/InputText.d.ts +1 -1
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +3 -7
- package/dist/types/constants/countries.d.ts +1 -1
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +18 -1
- package/dist/types/context/FormContext/FormContext.d.ts +1 -1
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +1 -1
- package/dist/types/context/FormRouterContext/types.d.ts +1 -1
- package/dist/types/context/SettingsContext/SettingsContext.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +1 -1
- package/dist/types/context/StateContext/StateContext.d.ts +1 -1
- package/dist/types/context/StateContext/StateContextSetter.d.ts +1 -1
- package/dist/types/context/StateContext/StateReducer.d.ts +4 -10
- package/dist/types/context/StateContext/types.d.ts +19 -17
- package/dist/types/context/StateContext/useGlobalData.d.ts +2 -2
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +2 -1
- package/dist/types/core/UIElement/UIElement.d.ts +2 -1
- package/dist/types/core/analytics.d.ts +12 -10
- package/dist/types/core/environment/resolveEnvironment.d.ts +1 -1
- package/dist/types/core/error.d.ts +1 -1
- package/dist/types/core/errorMapping.d.ts +3 -3
- package/dist/types/core/models/api/address.d.ts +1 -1
- package/dist/types/core/models/api/financialReport.d.ts +3 -3
- package/dist/types/core/models/api/get-scenarios.d.ts +2 -8
- package/dist/types/core/models/api/individual.d.ts +10 -0
- package/dist/types/core/models/api/legal-arrangement.d.ts +10 -2
- package/dist/types/core/models/api/legal-entity-association.d.ts +5 -0
- package/dist/types/core/models/api/organization.d.ts +9 -1
- package/dist/types/core/models/api/phone.d.ts +1 -1
- package/dist/types/core/models/api/remediating-action.d.ts +1 -1
- package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
- package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
- package/dist/types/core/models/api/verification-error.d.ts +1 -1
- package/dist/types/core/models/api/view-verification-status.d.ts +0 -4
- package/dist/types/core/process-field-configurations.d.ts +9 -9
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +14 -3
- package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +2 -2
- package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +3 -3
- package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
- package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
- package/dist/types/embeds/EmbedBaseElement.d.ts +41 -0
- package/dist/types/embeds/EmbedCore.d.ts +22 -0
- package/dist/types/embeds/baseEmbedProps.d.ts +21 -0
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +13 -0
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/AdyenIndividual.d.ts +12 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +12 -0
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +12 -0
- package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +12 -0
- package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +15 -0
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +12 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +14 -0
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +5 -3
- package/dist/types/embeds/terms-of-service/AdyenTermsOfService.d.ts +12 -0
- 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 +16 -0
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +20 -0
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
- package/dist/types/hooks/useAccountHolder.d.ts +1 -1
- package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
- package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useDataConflicts.d.ts +0 -6
- package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
- package/dist/types/hooks/useForm/reducer.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +14 -19
- package/dist/types/hooks/useFormComposer.d.ts +2 -2
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
- package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
- package/dist/types/hooks/useMultiForm/types.d.ts +36 -73
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +5 -5
- package/dist/types/language/Language.d.ts +1 -7
- package/dist/types/language/i18n.d.ts +2 -0
- package/dist/types/language/types.d.ts +3 -0
- package/dist/types/language/utils.d.ts +12 -3
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +1 -1
- package/dist/types/stores/globalStore/globalStore.d.ts +4 -4
- package/dist/types/stores/globalStore/taskStatus.d.ts +1 -1
- package/dist/types/types/datasets/country-code.d.ts +251 -0
- package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
- package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +1 -1
- package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
- package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
- package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
- package/dist/types/{core/models → types}/form.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/api/documentUtils.d.ts +1 -1
- package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
- package/dist/types/utils/api/processValidationErrors.d.ts +3 -3
- package/dist/types/utils/birthDateUtils.d.ts +53 -2
- package/dist/types/utils/country.d.ts +5 -2
- package/dist/types/utils/datasetUtil.d.ts +3 -3
- package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
- package/dist/types/utils/dropinUtils.d.ts +2 -2
- package/dist/types/utils/entityAssociationUtil.d.ts +6 -7
- package/dist/types/utils/entityStatusUtil.d.ts +2 -2
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
- package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
- package/dist/types/utils/formUtils.d.ts +1 -1
- package/dist/types/utils/formatCurrency.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/getSSNType.d.ts +1 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
- package/dist/types/utils/mapping/utils.d.ts +7 -10
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
- package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
- package/dist/types/utils/perCountry.d.ts +1 -1
- package/dist/types/utils/perState.d.ts +3 -2
- package/dist/types/utils/regex/patternValidators.d.ts +2 -0
- package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
- package/dist/types/utils/trackNavigation.d.ts +1 -2
- package/dist/types/utils/urlUtils.d.ts +1 -0
- package/dist/types/utils/validation/types.d.ts +1 -1
- package/dist/types/utils/validation/validationResult.d.ts +1 -1
- package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
- package/dist/types/utils/validatorUtils.d.ts +7 -3
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +2 -2
- package/dist/{useMultiForm-Lh2i5tRJ.js → useMultiForm-KQwxav4F.js} +160 -136
- package/dist/{useOnboardingStatus-D1ym3MHp.js → useOnboardingStatus-BMyj9Pwn.js} +2 -2
- package/dist/{useSalesChannelsSettings-BGuBY0ls.js → useSalesChannelsSettings-43TfSoxc.js} +2 -2
- package/dist/{useTermsOfServiceStatus-DGZYHVsm.js → useTermsOfServiceStatus-CBHKWYSb.js} +4 -4
- package/dist/{useUpdateLegalEntity-By6uwPUg.js → useUpdateLegalEntity-D8dw9Oc3.js} +2 -2
- package/dist/{utils-BPrqY9DW.js → utils-CL9qlD-O.js} +18 -11
- package/dist/{validate-Dyb8B4Hi.js → validate-CeF0YKvL.js} +2 -2
- package/dist/validate-CuwYJGc9.js +94 -0
- package/dist/vue/adyen-individual.js +1 -1
- package/dist/vue/adyen-manage-individual.js +1 -1
- package/dist/vue/adyen-terms-of-service.js +1 -1
- package/dist/vue/adyen-transfer-instrument.js +5 -4
- package/dist/{yaml-Ba_Tz8d4.js → yaml-CBkrSAtc.js} +2 -2
- package/dist/zh-CN-wUb4MmTZ.js +13 -0
- package/dist/zh-TW-DNTXHLKa.js +13 -0
- package/package.json +53 -51
- package/dist/CXEL7IU7-B_FIdhoh.js +0 -55
- package/dist/Confirm-okTxq40p.js +0 -56
- package/dist/ContractViewer-BChszuWL.js +0 -980
- package/dist/FormEndState-BQOQ83vO.js +0 -32
- package/dist/FormNavigation-B6RspX9C.js +0 -145
- package/dist/FormWrapper-Dvm1o4tC.js +0 -149
- package/dist/HASRA6WW-C1SPXfmX.js +0 -12411
- package/dist/I3HPI4QX-A8JLvlId.js +0 -46
- package/dist/MaybeModal-Djz8fRfd.js +0 -18
- package/dist/Modal-CRNejb1x.js +0 -135
- package/dist/PayoutDetailsDropin-Bw29V8E7.js +0 -901
- package/dist/PayoutDetailsPage-BHNHaMbR.js +0 -57
- package/dist/ShadowStylesRoot-D4KvocCc.js +0 -103
- package/dist/SourceOfFunds.module-OqFTr4WQ.js +0 -128
- package/dist/Spacer-BK3jDget.js +0 -18
- package/dist/StepProgressIndicator-BuGfVdlr.js +0 -74
- package/dist/bg-BG-CGHVGS50.js +0 -1986
- package/dist/cs-CZ-5Os6MsQs.js +0 -1986
- package/dist/da-DK-Dk9852pS.js +0 -1986
- package/dist/de-DE-B3TpRjZX.js +0 -994
- package/dist/de-DE-dk9CMgxF.js +0 -1986
- package/dist/documentUtils-51iMbUyU.js +0 -226
- package/dist/dropinUtils-Bk0T79SK.js +0 -204
- package/dist/el-GR-CFEuLvxK.js +0 -994
- package/dist/el-GR-DgI6Cgl6.js +0 -1986
- package/dist/en-US-ghR-1_C2.js +0 -994
- package/dist/es-ES-BtWn2FOQ.js +0 -994
- package/dist/es-ES-BzoYprDP.js +0 -1986
- package/dist/et-EE-DlbiEFQu.js +0 -1986
- package/dist/fi-FI-GSyT4vm7.js +0 -1986
- package/dist/fr-FR-BEImhl_J.js +0 -1986
- package/dist/fr-FR-HvIkGqJf.js +0 -994
- package/dist/hr-HR-CNFI9uDD.js +0 -1986
- package/dist/hu-HU-D4xFA3R6.js +0 -1986
- package/dist/individualFormConfig-BrFLPTfr.js +0 -171
- package/dist/it-IT-B65JP9Qv.js +0 -1986
- package/dist/it-IT-CjbZahlB.js +0 -994
- package/dist/ja-JP-4jufT0xh.js +0 -994
- package/dist/ja-JP-CgGmwtzl.js +0 -1986
- package/dist/lt-LT-D_Q1Z3N4.js +0 -1986
- package/dist/lv-LV-aF5bMtic.js +0 -1986
- package/dist/mapExistingFile-BE74t9jV.js +0 -25
- package/dist/mapTransferInstrumentToPayoutAccount-DR8zv8gS.js +0 -30
- package/dist/nl-NL-B3xjfpMi.js +0 -994
- package/dist/nl-NL-GDXpht_y.js +0 -1986
- package/dist/no-NO-CEow5Bac.js +0 -1986
- package/dist/omitObscuredFieldsIfUnchanged-DhCrqm4T.js +0 -28
- package/dist/pl-PL-Bir_Ltlv.js +0 -1986
- package/dist/process-field-configurations-DugpEY9k.js +0 -185
- package/dist/processValidationErrors-RYlNmxB9.js +0 -203
- package/dist/pt-PT-BpYDD-PX.js +0 -994
- package/dist/pt-PT-lkmVY63I.js +0 -1986
- package/dist/ro-RO-CTQvP4R9.js +0 -1986
- package/dist/ru-RU-BlgIj-Q4.js +0 -994
- package/dist/sk-SK-Ct3OVI0e.js +0 -1986
- package/dist/sl-SI-CNjkFWB7.js +0 -1986
- package/dist/sv-SE-7lcf_fB9.js +0 -994
- package/dist/sv-SE-BwREUuQq.js +0 -1986
- package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
- package/dist/types/core/models/country-code.d.ts +0 -250
- package/dist/types/embeds/ShadowStylesRoot.d.ts +0 -3
- package/dist/types/utils/sanitizeHtml.d.ts +0 -3
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
- package/dist/useToastContext-CF2xonft.js +0 -21
- package/dist/utils-B1H_8b1P.js +0 -74
- package/dist/validate-wd48TLfx.js +0 -245
- package/dist/zh-CN-xYZH718R.js +0 -994
- package/dist/zh-TW-DqBBNurv.js +0 -994
- /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
- /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
- /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
- /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
- /package/dist/types/{core/models → types}/file.d.ts +0 -0
package/dist/{OnboardingDropinComponent-CocnpjvA.js → OnboardingDropinComponent-DBW5N3Dr.js}
RENAMED
|
@@ -2,27 +2,25 @@
|
|
|
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] = "3746545c-b537-460f-9662-e8ce8f96724b", e._sentryDebugIdIdentifier = "sentry-dbid-3746545c-b537-460f-9662-e8ce8f96724b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { p as useApiContext, q as useQuery, r as httpGet, t as useLocalStorage, v as getLegalRepresentative, b as useLegalEntity, w as skipToken, x as doesLegalEntityRequiresLegalRepresentative, y as LegalEntityType, a as useTranslation, z as Skeleton, B as Alert, C as translateStringOrObject, G as Typography, H as isPartOfTrustFromLegalEntity, J as hasSolePropInLegalEntity, K as useSettingsContext, M as SettingNames, N as hasOwnEntityAssociationOfType, O as isEmptyEntity, P as CompanyTypesValue, U as useAccountHolder, V as EntityType, W as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, X as TaskTypes, Y as createLogger, Z as TaskStatus, _ as Button, $ as IconButton, a0 as useAnalyticsContext, a1 as Card, a2 as handleKeys, a3 as LoaderWrapper, a4 as Icon, a5 as noop, a6 as useToastContext, a7 as useExperimentsContext, a8 as isInstantVerifiedAccount, a9 as getObscuredAccountNumber, aa as useGetTaskStatus, ab as CardGroup, R as ROOT_LE, ac as useCapabilityProblems, L as Loader, ad as useGlobalStore, ae as useSetting, af as isPartOfUnincorporatedPartnership, ag as getOwnSignatories, ah as getOwnDecisionMakersLegalEntityIds, ai as getOwnSolePropProblems, aj as getOwnTrustProblems, ak as getOwnUnincorporatedPartnershipProblems, al as getOwnEntityAssociations, am as TrustMemberTypes, an as getLegalEntityNameBasedOnType, ao as useAssociatedLegalEntity, ap as useI18nContext, aq as CountryCodes, ar as isEmpty, as as mergeFieldMetadataIntoProps, at as resolveFieldMetadata, au as defaultFieldMetadata, av as defaultFieldConfig, aw as useForm, ax as getFieldProps, ay as nameFields, F as FormHeader, az as ErrorPanel, aA as createFormUtils, aB as Field, aC as MultiSelectList, aD as makeSelectItemForRole, aE as RadioGroupCard, aF as TextArea, aG as Name, aH as CountryField, aI as COUNTRY_FIELD, aJ as LegalCompanyNameField, aK as LEGAL_COMPANY_NAME_FIELD, aL as summaryItem, aM as getRoleName, aN as summaryStep, aO as FormNavigation, aP as Summary, aQ as ActionBar, g as getLegalEntityCountry, aR as UnincorporatedPartnershipMemberTypes, aS as getDecisionMakerDescriptionMap, aT as TRUST_DEFAULT_DESCRIPTIONS_MAP, aU as getRoleTagVariant, aV as Trans, aW as DEFAULT_TRUST_MEMBER_REQUIREMENTS, aX as ContextGuidance, aY as RadioGroup, aZ as useUnincorporatedPartnershipMembers, a_ as deleteUnincorporatedPartnershipMember, a$ as hasAllCapabilitiesResolved, b0 as hasRejectedCapabilities, b1 as objectsDeepEqual, b2 as TrustedFieldsProvider } from "./StoreProvider-ClKLaHzy.js";
|
|
12
12
|
import { lazy, Suspense } from "preact/compat";
|
|
13
13
|
import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
|
|
14
|
-
import { P as ProviderButton, u as
|
|
14
|
+
import { P as ProviderButton, u as useSingpassMyInfoLogin } from "./ProviderButton-B58n0cRC.js";
|
|
15
15
|
import cx from "classnames";
|
|
16
|
-
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as useToastContext } from "./useToastContext-CF2xonft.js";
|
|
16
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-43TfSoxc.js";
|
|
17
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-CBHKWYSb.js";
|
|
19
18
|
import { signal } from "@preact/signals";
|
|
20
19
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
21
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-
|
|
22
|
-
import { A as Avatar } from "./Avatar-
|
|
23
|
-
import { T as TaskItemStatus } from "./TaskItemStatus-
|
|
24
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
25
|
-
import { F as FormNavigation } from "./FormNavigation-B6RspX9C.js";
|
|
20
|
+
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-BBdJmGJu.js";
|
|
21
|
+
import { A as Avatar } from "./Avatar-vCjWXfC7.js";
|
|
22
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-DrTIwCTx.js";
|
|
23
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-D8dw9Oc3.js";
|
|
26
24
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
27
25
|
const getTaskTypes = async (id, baseUrl) => {
|
|
28
26
|
return httpGet({
|
|
@@ -62,7 +60,7 @@ const useAssociatedLegalRepresentative = (legalEntity) => {
|
|
|
62
60
|
return getLegalRepresentative(legalEntity);
|
|
63
61
|
}, [legalEntity]);
|
|
64
62
|
const { data } = useLegalEntity(
|
|
65
|
-
doesLegalEntityRequiresLegalRepresentative(legalEntity) &&
|
|
63
|
+
doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken
|
|
66
64
|
);
|
|
67
65
|
return data;
|
|
68
66
|
};
|
|
@@ -99,6 +97,7 @@ const SingpassBanner = ({
|
|
|
99
97
|
onMessage,
|
|
100
98
|
legalEntityType
|
|
101
99
|
}) => {
|
|
100
|
+
const { t } = useTranslation();
|
|
102
101
|
const { baseUrl } = useApiContext();
|
|
103
102
|
const singpassEventListener = useCallback(
|
|
104
103
|
(event) => {
|
|
@@ -116,7 +115,6 @@ const SingpassBanner = ({
|
|
|
116
115
|
channel.onmessage = onMessage;
|
|
117
116
|
return () => channel.close();
|
|
118
117
|
}, [channel, onMessage]);
|
|
119
|
-
const { i18n } = useI18nContext();
|
|
120
118
|
if (isLoading) {
|
|
121
119
|
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
122
120
|
}
|
|
@@ -127,18 +125,26 @@ const SingpassBanner = ({
|
|
|
127
125
|
Alert,
|
|
128
126
|
{
|
|
129
127
|
variant: "success",
|
|
130
|
-
title: successTitleText &&
|
|
128
|
+
title: successTitleText && t(($) => $[successTitleText]),
|
|
131
129
|
onClose: onAlertClose,
|
|
132
|
-
children: successContentText &&
|
|
130
|
+
children: successContentText && t(($) => $[successContentText])
|
|
133
131
|
}
|
|
134
132
|
);
|
|
135
133
|
}
|
|
136
134
|
const providerName = legalEntityTypeToProviderButtonKey[legalEntityType];
|
|
137
135
|
if (errorMessage) {
|
|
138
|
-
return /* @__PURE__ */ jsx(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
return /* @__PURE__ */ jsx(
|
|
137
|
+
Alert,
|
|
138
|
+
{
|
|
139
|
+
variant: "warning",
|
|
140
|
+
title: translateStringOrObject(t, errorMessage),
|
|
141
|
+
onClose: onAlertClose,
|
|
142
|
+
children: /* @__PURE__ */ jsxs(Typography, { variant: "body", children: [
|
|
143
|
+
t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]),
|
|
144
|
+
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
|
|
145
|
+
] })
|
|
146
|
+
}
|
|
147
|
+
);
|
|
142
148
|
}
|
|
143
149
|
const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
|
|
144
150
|
return /* @__PURE__ */ jsxs(
|
|
@@ -146,9 +152,9 @@ const SingpassBanner = ({
|
|
|
146
152
|
{
|
|
147
153
|
className: cx("adyen-task-list-singpass-banner"),
|
|
148
154
|
icon: false,
|
|
149
|
-
title:
|
|
155
|
+
title: t(($) => $["getSetUpInstantly"]),
|
|
150
156
|
children: [
|
|
151
|
-
subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children:
|
|
157
|
+
subtitleTranslationKey && /* @__PURE__ */ jsx("div", { className: cx("adyen-task-list-singpass-banner__subtitle"), children: t(($) => $[subtitleTranslationKey]) }),
|
|
152
158
|
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
|
|
153
159
|
]
|
|
154
160
|
}
|
|
@@ -246,7 +252,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
246
252
|
if (accountHolder) {
|
|
247
253
|
return accountHolder;
|
|
248
254
|
}
|
|
249
|
-
if (!
|
|
255
|
+
if (!legalEntityResponse?.type) return void 0;
|
|
250
256
|
if (hasOwnEntityAssociationOfType(
|
|
251
257
|
LegalEntityType.SOLE_PROPRIETORSHIP,
|
|
252
258
|
legalEntityResponse.entityAssociations,
|
|
@@ -272,7 +278,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
272
278
|
return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
|
|
273
279
|
}
|
|
274
280
|
};
|
|
275
|
-
const allowIndividualWithoutSoleProp = (capabilities) => !
|
|
281
|
+
const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
|
|
276
282
|
const businessTypeMapping = {
|
|
277
283
|
myName: {
|
|
278
284
|
[LegalEntityType.INDIVIDUAL]: "individual"
|
|
@@ -309,44 +315,42 @@ const companyTypesMapping = {
|
|
|
309
315
|
/* SOLE_PROPRIETORSHIP */
|
|
310
316
|
};
|
|
311
317
|
const useBusinessSetup = (legalEntityResponse) => {
|
|
312
|
-
var _a, _b;
|
|
313
318
|
const { accountHolder } = useAccountHolder();
|
|
314
319
|
const accountHolderType = accountHolder || getDefaultAccountHolderType(legalEntityResponse);
|
|
315
|
-
const organizationType =
|
|
316
|
-
const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] :
|
|
320
|
+
const organizationType = legalEntityResponse?.organization?.type;
|
|
321
|
+
const businessSetup = accountHolderType === "theCompanyIWorkFor" && organizationType ? companyTypesMapping[organizationType] : businessTypeMapping[accountHolderType]?.[legalEntityResponse?.type];
|
|
317
322
|
return businessSetup;
|
|
318
323
|
};
|
|
319
324
|
function useDataMissingRemediations({
|
|
320
325
|
legalEntityId,
|
|
321
326
|
problems
|
|
322
327
|
}) {
|
|
323
|
-
const {
|
|
328
|
+
const { t } = useTranslation();
|
|
324
329
|
const decisionMakersRemediationMessage = useMemo(() => {
|
|
325
|
-
|
|
326
|
-
const remediationCodes = (_c = (_b = (_a = problems[EntityType.LEGAL_ENTITY]) == null ? void 0 : _a[legalEntityId]) == null ? void 0 : _b.missingData) == null ? void 0 : _c.reduce((remediations, error) => {
|
|
330
|
+
const remediationCodes = problems[EntityType.LEGAL_ENTITY]?.[legalEntityId]?.missingData?.reduce((remediations, error) => {
|
|
327
331
|
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
328
332
|
return remediation ? [...remediations, remediation] : remediations;
|
|
329
333
|
}, []);
|
|
330
334
|
const uniqueRemediations = [...new Set(remediationCodes)];
|
|
331
|
-
switch (uniqueRemediations
|
|
335
|
+
switch (uniqueRemediations?.length) {
|
|
332
336
|
case void 0:
|
|
333
337
|
case 0:
|
|
334
338
|
return void 0;
|
|
335
339
|
case 1:
|
|
336
|
-
return uniqueRemediations[0] ?
|
|
340
|
+
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
337
341
|
default:
|
|
338
|
-
return
|
|
342
|
+
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
339
343
|
}
|
|
340
|
-
}, [problems,
|
|
344
|
+
}, [problems, t, legalEntityId]);
|
|
341
345
|
return {
|
|
342
346
|
remediationMessages: {
|
|
343
347
|
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
344
348
|
}
|
|
345
349
|
};
|
|
346
350
|
}
|
|
351
|
+
const logger$2 = createLogger();
|
|
347
352
|
const normalizeTaskStatuses = (taskStatuses) => {
|
|
348
|
-
|
|
349
|
-
return (_a = taskStatuses == null ? void 0 : taskStatuses.statuses) == null ? void 0 : _a.reduce((acc, currentTask) => {
|
|
353
|
+
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
350
354
|
const status = TaskStatus[currentTask.status];
|
|
351
355
|
const statusEntries = currentTask.taskStatusEntries;
|
|
352
356
|
acc[currentTask.type] = {
|
|
@@ -359,11 +363,11 @@ const normalizeTaskStatuses = (taskStatuses) => {
|
|
|
359
363
|
const TASK_STATUS_POLLING_INTERVAL_MS = 3e3;
|
|
360
364
|
const TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS = 6e3;
|
|
361
365
|
const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
362
|
-
const taskStatusEntries = payinPayoutTaskStatus
|
|
363
|
-
const taskStatusEntry = taskStatusEntries
|
|
366
|
+
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
367
|
+
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
364
368
|
if (!taskStatusEntry) {
|
|
365
|
-
|
|
366
|
-
return
|
|
369
|
+
logger$2.warn(`No task status for this account: ${accountId}`);
|
|
370
|
+
return payinPayoutTaskStatus?.status ?? TaskStatus.PROCESSING;
|
|
367
371
|
}
|
|
368
372
|
return TaskStatus[taskStatusEntry.status];
|
|
369
373
|
};
|
|
@@ -378,7 +382,7 @@ const Remove = ({
|
|
|
378
382
|
handleIsRemoveDisabled,
|
|
379
383
|
label
|
|
380
384
|
}) => {
|
|
381
|
-
const {
|
|
385
|
+
const { t } = useTranslation();
|
|
382
386
|
const [undoTimer, setUndoTimer] = useState(5);
|
|
383
387
|
const [isRemoving, setIsRemoving] = useState(false);
|
|
384
388
|
useEffect(() => {
|
|
@@ -397,13 +401,13 @@ const Remove = ({
|
|
|
397
401
|
event.preventDefault();
|
|
398
402
|
if (!isRemoving) {
|
|
399
403
|
setIsRemoving(true);
|
|
400
|
-
onRemoveStatusChange
|
|
401
|
-
handleIsRemoveDisabled
|
|
404
|
+
onRemoveStatusChange?.(true);
|
|
405
|
+
handleIsRemoveDisabled?.(true);
|
|
402
406
|
} else {
|
|
403
407
|
setUndoTimer(5);
|
|
404
408
|
setIsRemoving(false);
|
|
405
|
-
onRemoveStatusChange
|
|
406
|
-
handleIsRemoveDisabled
|
|
409
|
+
onRemoveStatusChange?.(false);
|
|
410
|
+
handleIsRemoveDisabled?.(false);
|
|
407
411
|
}
|
|
408
412
|
};
|
|
409
413
|
useEffect(() => {
|
|
@@ -411,15 +415,15 @@ const Remove = ({
|
|
|
411
415
|
(async () => {
|
|
412
416
|
setIsRemoving(false);
|
|
413
417
|
await onRemove();
|
|
414
|
-
onRemoveStatusChange
|
|
415
|
-
handleIsRemoveDisabled
|
|
418
|
+
onRemoveStatusChange?.(false);
|
|
419
|
+
handleIsRemoveDisabled?.(false);
|
|
416
420
|
})();
|
|
417
421
|
}
|
|
418
422
|
}, [undoTimer, isRemoving, onRemoveStatusChange, handleIsRemoveDisabled, onRemove]);
|
|
419
|
-
return isRemoving ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onClickHandler, children:
|
|
423
|
+
return isRemoving ? /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: onClickHandler, children: t(($) => $["undoWithTimer"], { secondsLeft: undoTimer }) }) : /* @__PURE__ */ jsx(
|
|
420
424
|
IconButton,
|
|
421
425
|
{
|
|
422
|
-
ariaLabel:
|
|
426
|
+
ariaLabel: label && t(($) => $[label]),
|
|
423
427
|
icon: "bin",
|
|
424
428
|
variant: "tertiary",
|
|
425
429
|
onClick: onClickHandler,
|
|
@@ -447,7 +451,7 @@ const TaskListItem = ({
|
|
|
447
451
|
testId,
|
|
448
452
|
enableTracking = true
|
|
449
453
|
}) => {
|
|
450
|
-
const {
|
|
454
|
+
const { t } = useTranslation();
|
|
451
455
|
const userEvents = useAnalyticsContext();
|
|
452
456
|
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatus.ERROR;
|
|
453
457
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
@@ -459,7 +463,7 @@ const TaskListItem = ({
|
|
|
459
463
|
label: titleKey
|
|
460
464
|
});
|
|
461
465
|
}
|
|
462
|
-
onNavigateToTask
|
|
466
|
+
onNavigateToTask?.();
|
|
463
467
|
};
|
|
464
468
|
const avatarVariant = disabled ? "disabled" : "primary";
|
|
465
469
|
return /* @__PURE__ */ jsx(
|
|
@@ -482,7 +486,7 @@ const TaskListItem = ({
|
|
|
482
486
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
|
|
483
487
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
|
|
484
488
|
/* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
|
|
485
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title ||
|
|
489
|
+
/* @__PURE__ */ jsx("div", { className: "adyen-task-item__body", children: /* @__PURE__ */ jsx("span", { className: "adyen-task-item__title", children: title || t(($) => $[titleKey]) }) })
|
|
486
490
|
] }),
|
|
487
491
|
info && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
|
|
488
492
|
/* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
|
|
@@ -522,8 +526,7 @@ const PayoutAccountTaskListItem = ({
|
|
|
522
526
|
onNavigateToTask,
|
|
523
527
|
payinPayoutTaskStatus
|
|
524
528
|
}) => {
|
|
525
|
-
|
|
526
|
-
const { i18n } = useI18nContext();
|
|
529
|
+
const { t } = useTranslation();
|
|
527
530
|
const { showToast } = useToastContext();
|
|
528
531
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
529
532
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
@@ -536,9 +539,9 @@ const PayoutAccountTaskListItem = ({
|
|
|
536
539
|
const handleDeleteTransferInstrument = async () => {
|
|
537
540
|
try {
|
|
538
541
|
await deleteTransferInstrument(account.id);
|
|
539
|
-
showToast({ label:
|
|
542
|
+
showToast({ label: t(($) => $["transferInstrumentDeleted"]), variant: "success" });
|
|
540
543
|
} catch {
|
|
541
|
-
showToast({ label:
|
|
544
|
+
showToast({ label: t(($) => $["failedToDeletePayoutAccount"]), variant: "error" });
|
|
542
545
|
}
|
|
543
546
|
};
|
|
544
547
|
return /* @__PURE__ */ jsx(
|
|
@@ -550,7 +553,7 @@ const PayoutAccountTaskListItem = ({
|
|
|
550
553
|
titleKey: "accountNumber",
|
|
551
554
|
title: obscuredAccountNumber,
|
|
552
555
|
status,
|
|
553
|
-
problems:
|
|
556
|
+
problems: capabilityProblems?.BankAccount?.[account.id],
|
|
554
557
|
loading: isDeletingTransferInstrument,
|
|
555
558
|
removeEntity: () => {
|
|
556
559
|
setIsDeletingTransferInstrument(true);
|
|
@@ -593,64 +596,100 @@ function TaskListInner({
|
|
|
593
596
|
capabilityProblems,
|
|
594
597
|
singpassComponent
|
|
595
598
|
}) {
|
|
596
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
597
|
-
const isReview = Boolean(
|
|
598
|
-
(_b = (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[legalEntityResponse.id]) == null ? void 0 : _b.isReviewRequired
|
|
599
|
-
);
|
|
600
|
-
const { accountHolder } = useAccountHolder();
|
|
601
|
-
const { i18n } = useI18nContext();
|
|
602
599
|
const userEvents = useAnalyticsContext();
|
|
603
|
-
const {
|
|
600
|
+
const { t } = useTranslation();
|
|
604
601
|
const { showToast } = useToastContext();
|
|
605
|
-
const
|
|
602
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
606
603
|
const { isSettingEnabled } = useSettingsContext();
|
|
607
|
-
const
|
|
604
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
605
|
+
const { accountHolder } = useAccountHolder();
|
|
606
|
+
const tasks = useGlobalStore().tasks.value;
|
|
607
|
+
const getTaskStatus2 = useGetTaskStatus();
|
|
608
|
+
const businessSetup = useBusinessSetup(legalEntityResponse);
|
|
608
609
|
const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
|
|
610
|
+
const additionalSalesChannels = useSalesChannelsSettings();
|
|
609
611
|
const { remediationMessages } = useDataMissingRemediations({
|
|
610
612
|
legalEntityId: legalEntityResponse.id,
|
|
611
613
|
problems: capabilityProblems
|
|
612
614
|
});
|
|
613
|
-
const businessSetup = useBusinessSetup(legalEntityResponse);
|
|
614
|
-
const tasks = useGlobalStore().tasks.value;
|
|
615
|
-
const getTaskStatus2 = useGetTaskStatus();
|
|
616
|
-
const additionalSalesChannels = useSalesChannelsSettings();
|
|
617
615
|
const { data: pciStatus } = usePciStatus(
|
|
618
616
|
{ additionalSalesChannels },
|
|
619
617
|
{ enabled: tasks.includes(TaskTypes.PCI_DSS) }
|
|
620
618
|
);
|
|
621
619
|
const { data: pciQuestionnaireList } = usePciQuestionnaireList();
|
|
622
|
-
const
|
|
623
|
-
const
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
620
|
+
const { data: termsOfServiceStatus } = useTermsOfServiceStatus();
|
|
621
|
+
const { data: termsOfServiceStatusAcceptanceInfos } = useTermsOfServiceAcceptanceInfos();
|
|
622
|
+
const { data: taskStatuses } = useTaskStatus({
|
|
623
|
+
refetchInterval: (query) => {
|
|
624
|
+
const { data: response } = query.state || {};
|
|
625
|
+
const statuses = response?.statuses;
|
|
626
|
+
const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status === TaskStatus[TaskStatus.FINISHED]);
|
|
627
|
+
return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
629
631
|
const hidePayoutAccountTaskExperiment = isExperimentEnabled("HidePayoutAccountTask");
|
|
630
632
|
const hidePciTaskExperiment = isExperimentEnabled("HidePciTask");
|
|
631
|
-
const { data: termsOfServiceStatusAcceptanceInfos } = useTermsOfServiceAcceptanceInfos();
|
|
632
|
-
const { data: termsOfServiceStatus } = useTermsOfServiceStatus();
|
|
633
|
-
const serviceAgreementTypes = (termsOfServiceStatus == null ? void 0 : termsOfServiceStatus.termsOfServiceTypes) ?? [];
|
|
634
|
-
const serviceAgreementAcceptanceInfos = (termsOfServiceStatusAcceptanceInfos == null ? void 0 : termsOfServiceStatusAcceptanceInfos.data) ?? [];
|
|
635
633
|
const showCustomerSupportV4 = isExperimentEnabled("ShowCustomerSupportV4");
|
|
634
|
+
const EnableSignPCIBeforeTOS = isExperimentEnabled("EnableSignPCIBeforeTOS");
|
|
635
|
+
const transferInstrumentLimit = useSetting("transferInstrumentLimit");
|
|
636
|
+
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
637
|
+
setNormalizedTaskStatusStore(normalizedTasks);
|
|
638
|
+
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
639
|
+
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatus.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
|
|
640
|
+
const isReview = Boolean(
|
|
641
|
+
capabilityProblems?.LegalEntity?.[legalEntityResponse.id]?.isReviewRequired
|
|
642
|
+
);
|
|
643
|
+
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
644
|
+
const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
|
|
645
|
+
const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
|
|
636
646
|
const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
|
|
637
647
|
const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
|
|
638
|
-
const transferInstruments =
|
|
639
|
-
const canAddPayoutAccount =
|
|
648
|
+
const transferInstruments = legalEntityResponse?.transferInstruments || [];
|
|
649
|
+
const canAddPayoutAccount = legalEntityResponse?.organization?.legalName || legalEntityResponse?.individual?.name;
|
|
640
650
|
const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
|
|
641
|
-
const
|
|
642
|
-
const
|
|
643
|
-
const
|
|
644
|
-
|
|
645
|
-
|
|
651
|
+
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
652
|
+
const pciHasDocuments = !!pciQuestionnaireList?.data?.length;
|
|
653
|
+
const canSignPci = (
|
|
654
|
+
// PCI requires decision makers to be added
|
|
655
|
+
legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!legalEntityResponse?.entityAssociations?.length || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!legalEntityResponse?.entityAssociations?.length
|
|
656
|
+
);
|
|
657
|
+
const canDownloadPci = !pciStatus?.signingRequired && pciHasDocuments;
|
|
658
|
+
const hasSignedPci = !pciStatus?.signingRequired && canSignPci;
|
|
659
|
+
const serviceAgreementTypes = termsOfServiceStatus?.termsOfServiceTypes ?? [];
|
|
660
|
+
const serviceAgreementAcceptanceInfos = termsOfServiceStatusAcceptanceInfos?.data ?? [];
|
|
661
|
+
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!legalEntityResponse?.individual;
|
|
662
|
+
const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
|
|
663
|
+
const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
|
|
664
|
+
const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
|
|
646
665
|
const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && (serviceAgreementTypes.length > 0 || serviceAgreementAcceptanceInfos.length > 0);
|
|
647
|
-
const
|
|
648
|
-
const areServiceAgreementTasksDisabled = !hasServiceAgreementSigners;
|
|
666
|
+
const showPciTask = tasks.includes(TaskTypes.PCI_DSS) && (canDownloadPci || pciStatus?.signingRequired) && !hidePciTaskExperiment;
|
|
649
667
|
const showContractTasks = hasContractTasks && (showPciTask || showServiceAgreementTask);
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
const
|
|
668
|
+
const shouldSignPciFirst = showServiceAgreementTask && showPciTask && !hasSignedPci;
|
|
669
|
+
const areServiceAgreementTasksDisabled = EnableSignPCIBeforeTOS ? !hasServiceAgreementSigners || shouldSignPciFirst : !hasServiceAgreementSigners;
|
|
670
|
+
const isPciTaskDisabled = !pciStatus?.signingRequired || !canSignPci;
|
|
671
|
+
const getBusinessTaskListTitleKey = () => {
|
|
672
|
+
if (hasUnincorporatedPartnership) {
|
|
673
|
+
return "tellUsMoreAboutPrimaryPartner";
|
|
674
|
+
} else if (tasks.includes(TaskTypes.BUSINESS_DETAILS)) {
|
|
675
|
+
return isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
676
|
+
} else if (canChangeEntityType) {
|
|
677
|
+
return "provideFewDetailsAboutYourself";
|
|
678
|
+
} else {
|
|
679
|
+
return "accountDetailsDescription";
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
const getEmptyBankAccountProblems = () => {
|
|
683
|
+
const transferInstrumentId = legalEntityResponse?.transferInstruments?.[0]?.id;
|
|
684
|
+
return transferInstrumentId ? capabilityProblems?.BankAccount?.[transferInstrumentId] : void 0;
|
|
685
|
+
};
|
|
686
|
+
const onEditBusinessSetupClick = () => {
|
|
687
|
+
userEvents.addTaskEvent("Clicked button", {
|
|
688
|
+
task: TaskTypes.TASKS_OVERVIEW,
|
|
689
|
+
actionType: "edit"
|
|
690
|
+
});
|
|
691
|
+
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
692
|
+
};
|
|
654
693
|
const onPciDownload = async () => {
|
|
655
694
|
try {
|
|
656
695
|
const response = await getPciQuestionnaireList(rootLegalEntityId.value, baseUrl.value);
|
|
@@ -666,7 +705,7 @@ function TaskListInner({
|
|
|
666
705
|
})
|
|
667
706
|
);
|
|
668
707
|
} catch {
|
|
669
|
-
showToast({ label:
|
|
708
|
+
showToast({ label: t(($) => $["failedToDownloadPci"]), variant: "error" });
|
|
670
709
|
} finally {
|
|
671
710
|
userEvents.addTaskEvent("Clicked button", {
|
|
672
711
|
task: TaskTypes.PCI_DSS,
|
|
@@ -689,31 +728,9 @@ function TaskListInner({
|
|
|
689
728
|
const handleOnNavigateToSourceOfFunds = () => onNavigateToTask(TaskTypes.SOURCE_OF_FUNDS);
|
|
690
729
|
const handleOnNavigateToBusinessFinancing = () => onNavigateToTask(TaskTypes.BUSINESS_FINANCING);
|
|
691
730
|
const handleOnNavigateToTaxReporting = () => onNavigateToTask(TaskTypes.TAX_REPORTING);
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
696
|
-
task: TaskTypes.TASKS_OVERVIEW,
|
|
697
|
-
actionType: "edit"
|
|
698
|
-
});
|
|
699
|
-
onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
|
|
700
|
-
};
|
|
701
|
-
const getBusinessTaskListTitleKey = () => {
|
|
702
|
-
if (hasUnincorporatedPartnership) {
|
|
703
|
-
return "tellUsMoreAboutPrimaryPartner";
|
|
704
|
-
} else if (tasks.includes(TaskTypes.BUSINESS_DETAILS)) {
|
|
705
|
-
return isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
|
|
706
|
-
} else if (canChangeEntityType) {
|
|
707
|
-
return "provideFewDetailsAboutYourself";
|
|
708
|
-
} else {
|
|
709
|
-
return "accountDetailsDescription";
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
const getEmptyBankAccountProblems = () => {
|
|
713
|
-
var _a2, _b2, _c2;
|
|
714
|
-
const transferInstrumentId = (_b2 = (_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.id;
|
|
715
|
-
return transferInstrumentId ? (_c2 = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _c2[transferInstrumentId] : void 0;
|
|
716
|
-
};
|
|
731
|
+
const showDecisionMakersWarning = Boolean(
|
|
732
|
+
getOwnDecisionMakersLegalEntityIds(legalEntityResponse).length && remediationMessages.DECISION_MAKER
|
|
733
|
+
);
|
|
717
734
|
useEffect(() => {
|
|
718
735
|
if (showDecisionMakersWarning) {
|
|
719
736
|
userEvents.addTaskEvent("Encountered error", {
|
|
@@ -723,32 +740,18 @@ function TaskListInner({
|
|
|
723
740
|
});
|
|
724
741
|
}
|
|
725
742
|
}, [showDecisionMakersWarning, userEvents]);
|
|
726
|
-
const { data: taskStatuses } = useTaskStatus({
|
|
727
|
-
refetchInterval: (query) => {
|
|
728
|
-
const { data: response } = query.state || {};
|
|
729
|
-
const statuses = response == null ? void 0 : response.statuses;
|
|
730
|
-
const areAllTasksFinishedOrEmpty = (statuses == null ? void 0 : statuses.length) === 0 || (statuses == null ? void 0 : statuses.every((task) => task.status === TaskStatus[TaskStatus.FINISHED]));
|
|
731
|
-
return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
|
|
732
|
-
}
|
|
733
|
-
});
|
|
734
|
-
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
735
|
-
setNormalizedTaskStatusStore(normalizedTasks);
|
|
736
|
-
const payinPayoutTaskStatus = (normalizedTasks == null ? void 0 : normalizedTasks.PAYOUT) ?? (normalizedTasks == null ? void 0 : normalizedTasks.PAYIN);
|
|
737
|
-
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? ((_h = normalizedTasks == null ? void 0 : normalizedTasks.BUSINESS_DETAILS) == null ? void 0 : _h.status) ?? TaskStatus.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
|
|
738
743
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
|
|
739
|
-
canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children:
|
|
744
|
+
canSeeIntroduction && /* @__PURE__ */ jsx("div", { className: "adyen-task-list__nav", children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => onNavigateToTask(TaskTypes.INTRODUCTION), children: t(($) => $["goToIntroduction"]) }) }),
|
|
740
745
|
canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
|
|
741
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
746
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["setUpYourAccount"]) }),
|
|
742
747
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "title", className: "adyen-task-list__description", children: [
|
|
743
|
-
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children:
|
|
744
|
-
|
|
745
|
-
businessSetup: businessSetup ? i18n.get(businessSetup) : i18n.get("unknown")
|
|
746
|
-
}
|
|
748
|
+
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: t(($) => $["yourBusinessSetup"], {
|
|
749
|
+
businessSetup: businessSetup ? t(($) => $[businessSetup]) : t(($) => $["unknown"])
|
|
747
750
|
}) }),
|
|
748
751
|
/* @__PURE__ */ jsx(
|
|
749
752
|
IconButton,
|
|
750
753
|
{
|
|
751
|
-
ariaLabel:
|
|
754
|
+
ariaLabel: t(($) => $["editBusinessSetup"]),
|
|
752
755
|
icon: "edit",
|
|
753
756
|
variant: "tertiary",
|
|
754
757
|
onClick: onEditBusinessSetupClick
|
|
@@ -758,7 +761,7 @@ function TaskListInner({
|
|
|
758
761
|
] }),
|
|
759
762
|
singpassComponent,
|
|
760
763
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
761
|
-
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
764
|
+
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
|
|
762
765
|
tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
|
|
763
766
|
TaskListItem,
|
|
764
767
|
{
|
|
@@ -766,7 +769,7 @@ function TaskListInner({
|
|
|
766
769
|
icon: "decision-maker",
|
|
767
770
|
titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
|
|
768
771
|
status: getTaskStatus2(TaskTypes.INDIVIDUAL),
|
|
769
|
-
problems:
|
|
772
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
|
|
770
773
|
}
|
|
771
774
|
),
|
|
772
775
|
tasks.includes(TaskTypes.BUSINESS_DETAILS) && /* @__PURE__ */ jsx(
|
|
@@ -777,7 +780,7 @@ function TaskListInner({
|
|
|
777
780
|
icon: "company",
|
|
778
781
|
titleKey: hasTrust ? "businessTrusteeDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "businessDetails",
|
|
779
782
|
status: businessDetailsTaskStatus,
|
|
780
|
-
problems:
|
|
783
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
|
|
781
784
|
}
|
|
782
785
|
),
|
|
783
786
|
hasSoleProprietorship && /* @__PURE__ */ jsx(
|
|
@@ -806,7 +809,7 @@ function TaskListInner({
|
|
|
806
809
|
icon: "decision-maker",
|
|
807
810
|
titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
|
|
808
811
|
status: getTaskStatus2(TaskTypes.DECISION_MAKER_OVERVIEW),
|
|
809
|
-
warningMessage: remediationMessages[TaskTypes.DECISION_MAKER]
|
|
812
|
+
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
810
813
|
}
|
|
811
814
|
),
|
|
812
815
|
showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
|
|
@@ -815,11 +818,11 @@ function TaskListInner({
|
|
|
815
818
|
onNavigateToTask: handleOnNavigateToTaskCustomerSupport,
|
|
816
819
|
icon: "webinar",
|
|
817
820
|
titleKey: "customerSupport",
|
|
818
|
-
status:
|
|
821
|
+
status: normalizedTasks?.CUSTOMER_SUPPORT?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
819
822
|
}
|
|
820
823
|
)
|
|
821
824
|
] }),
|
|
822
|
-
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
825
|
+
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["trustDetailsDescription"]), children: [
|
|
823
826
|
/* @__PURE__ */ jsx(
|
|
824
827
|
TaskListItem,
|
|
825
828
|
{
|
|
@@ -840,7 +843,7 @@ function TaskListInner({
|
|
|
840
843
|
}
|
|
841
844
|
)
|
|
842
845
|
] }),
|
|
843
|
-
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
846
|
+
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["partnershipUnincorporated"]), children: [
|
|
844
847
|
/* @__PURE__ */ jsx(
|
|
845
848
|
TaskListItem,
|
|
846
849
|
{
|
|
@@ -877,7 +880,7 @@ function TaskListInner({
|
|
|
877
880
|
onNavigateToTask: handleOnNavigateToSourceOfFunds,
|
|
878
881
|
icon: "cash-stack",
|
|
879
882
|
titleKey: "fundingSources",
|
|
880
|
-
status:
|
|
883
|
+
status: normalizedTasks?.SOURCE_OF_FUNDS?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
881
884
|
}
|
|
882
885
|
),
|
|
883
886
|
tasks.includes(TaskTypes.BUSINESS_FINANCING) && /* @__PURE__ */ jsx(
|
|
@@ -886,7 +889,7 @@ function TaskListInner({
|
|
|
886
889
|
onNavigateToTask: handleOnNavigateToBusinessFinancing,
|
|
887
890
|
icon: "capital",
|
|
888
891
|
titleKey: "businessFinancing",
|
|
889
|
-
status:
|
|
892
|
+
status: normalizedTasks?.BUSINESS_FINANCING?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
890
893
|
}
|
|
891
894
|
)
|
|
892
895
|
] }),
|
|
@@ -896,14 +899,14 @@ function TaskListInner({
|
|
|
896
899
|
onNavigateToTask: handleOnNavigateToTaxReporting,
|
|
897
900
|
icon: "reporting",
|
|
898
901
|
titleKey: "taxReporting",
|
|
899
|
-
status:
|
|
902
|
+
status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
900
903
|
}
|
|
901
904
|
) }),
|
|
902
905
|
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
|
|
903
906
|
TaskListGroup,
|
|
904
907
|
{
|
|
905
|
-
title: canChangeEntityType ?
|
|
906
|
-
hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey
|
|
908
|
+
title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
|
|
909
|
+
($) => $[hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey]
|
|
907
910
|
),
|
|
908
911
|
children: transferInstruments.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
909
912
|
transferInstruments.map((transferInstrument) => /* @__PURE__ */ jsx(
|
|
@@ -925,8 +928,8 @@ function TaskListInner({
|
|
|
925
928
|
disabled: !canAddPayoutAccount,
|
|
926
929
|
children: [
|
|
927
930
|
/* @__PURE__ */ jsx(Icon, { name: "plus", className: "adyen-task-list__card-icon " }),
|
|
928
|
-
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ?
|
|
929
|
-
hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"
|
|
931
|
+
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ? t(($) => $["addExtraBankAccount"]) : t(
|
|
932
|
+
($) => $[hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"]
|
|
930
933
|
) })
|
|
931
934
|
]
|
|
932
935
|
}
|
|
@@ -944,18 +947,7 @@ function TaskListInner({
|
|
|
944
947
|
)
|
|
945
948
|
}
|
|
946
949
|
),
|
|
947
|
-
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
948
|
-
showServiceAgreementTask && /* @__PURE__ */ jsx(
|
|
949
|
-
TaskListItem,
|
|
950
|
-
{
|
|
951
|
-
onNavigateToTask: handleOnNavigateToServiceAgreement,
|
|
952
|
-
icon: "contract",
|
|
953
|
-
titleKey: "signServiceAgreement",
|
|
954
|
-
disabled: areServiceAgreementTasksDisabled,
|
|
955
|
-
status: serviceAgreementTypes.length ? TaskStatus.SIGN : TaskStatus.SIGNED,
|
|
956
|
-
info: areServiceAgreementTasksDisabled ? i18n.get("requiresSignatory") : void 0
|
|
957
|
-
}
|
|
958
|
-
),
|
|
950
|
+
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["reviewAndSignLegalDisclosures"]), children: [
|
|
959
951
|
showPciTask && /* @__PURE__ */ jsx(
|
|
960
952
|
TaskListItem,
|
|
961
953
|
{
|
|
@@ -963,21 +955,32 @@ function TaskListInner({
|
|
|
963
955
|
icon: "pci",
|
|
964
956
|
titleKey: "pciDssQuestionnaire",
|
|
965
957
|
status: canDownloadPci ? TaskStatus.DOWNLOAD : TaskStatus.SIGN,
|
|
966
|
-
statusLabel: canDownloadPci ?
|
|
958
|
+
statusLabel: canDownloadPci ? t(($) => $["downloadACopy"]) : void 0,
|
|
967
959
|
downloadHandler: onPciDownload,
|
|
968
960
|
disabled: isPciTaskDisabled,
|
|
969
|
-
info: isPciTaskDisabled && !canDownloadPci ?
|
|
961
|
+
info: isPciTaskDisabled && !canDownloadPci ? t(($) => $["requiresDecisionMakers"]) : void 0
|
|
962
|
+
}
|
|
963
|
+
),
|
|
964
|
+
showServiceAgreementTask && /* @__PURE__ */ jsx(
|
|
965
|
+
TaskListItem,
|
|
966
|
+
{
|
|
967
|
+
onNavigateToTask: handleOnNavigateToServiceAgreement,
|
|
968
|
+
icon: "contract",
|
|
969
|
+
titleKey: "signServiceAgreement",
|
|
970
|
+
disabled: areServiceAgreementTasksDisabled,
|
|
971
|
+
status: serviceAgreementTypes.length ? TaskStatus.SIGN : TaskStatus.SIGNED,
|
|
972
|
+
info: EnableSignPCIBeforeTOS && shouldSignPciFirst ? t(($) => $["signPciFirst"]) : !hasServiceAgreementSigners ? t(($) => $["requiresSignatory"]) : void 0
|
|
970
973
|
}
|
|
971
974
|
)
|
|
972
975
|
] }),
|
|
973
|
-
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title:
|
|
976
|
+
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: t(($) => $["pleaseEnsureTheFollowing"]), children: /* @__PURE__ */ jsx(
|
|
974
977
|
TaskListItem,
|
|
975
978
|
{
|
|
976
979
|
onNavigateToTask: handleOnNavigateToTaskReview,
|
|
977
980
|
icon: "review",
|
|
978
981
|
titleKey: "submitReviewOfYourData",
|
|
979
982
|
status: TaskStatus.SUBMIT,
|
|
980
|
-
problems:
|
|
983
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id],
|
|
981
984
|
showErrorAlerts: "always"
|
|
982
985
|
}
|
|
983
986
|
) })
|
|
@@ -985,15 +988,24 @@ function TaskListInner({
|
|
|
985
988
|
] });
|
|
986
989
|
}
|
|
987
990
|
const isNewEntity = Symbol("isNewEntity");
|
|
991
|
+
const useExemptSettlor = ({
|
|
992
|
+
trust
|
|
993
|
+
}) => {
|
|
994
|
+
const matchingAssociation = useMemo(() => {
|
|
995
|
+
if (!trust) return void 0;
|
|
996
|
+
return getOwnEntityAssociations(trust).find(
|
|
997
|
+
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
998
|
+
);
|
|
999
|
+
}, [trust]);
|
|
1000
|
+
const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
|
|
1001
|
+
return data;
|
|
1002
|
+
};
|
|
988
1003
|
const splitAtFirstOccurrence = (str, separator) => {
|
|
989
1004
|
const firstOccurrence = str.indexOf(separator);
|
|
990
1005
|
if (firstOccurrence === -1) return [str];
|
|
991
1006
|
return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
|
|
992
1007
|
};
|
|
993
|
-
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) =>
|
|
994
|
-
var _a;
|
|
995
|
-
return (_a = entityAssociations.find((association) => association.associatorId === trustMemberId)) == null ? void 0 : _a.legalEntityId;
|
|
996
|
-
};
|
|
1008
|
+
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
|
|
997
1009
|
const getFallbackName = (exemptSettlorAssociation) => {
|
|
998
1010
|
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
999
1011
|
return {
|
|
@@ -1002,7 +1014,6 @@ const getFallbackName = (exemptSettlorAssociation) => {
|
|
|
1002
1014
|
};
|
|
1003
1015
|
};
|
|
1004
1016
|
const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
|
|
1005
|
-
var _a;
|
|
1006
1017
|
if (association.settlorExemptionReason) {
|
|
1007
1018
|
return {
|
|
1008
1019
|
trustMemberType: "exemptSettlor",
|
|
@@ -1010,7 +1021,7 @@ const convertEntityAssociationIntoTrustMember = (association, associations, exem
|
|
|
1010
1021
|
legalEntityType: association.entityType,
|
|
1011
1022
|
legalEntityId: association.legalEntityId,
|
|
1012
1023
|
settlorExemptionReason: association.settlorExemptionReason,
|
|
1013
|
-
exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ?
|
|
1024
|
+
exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
1014
1025
|
name: association.name
|
|
1015
1026
|
};
|
|
1016
1027
|
}
|
|
@@ -1068,18 +1079,15 @@ const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) =>
|
|
|
1068
1079
|
reference,
|
|
1069
1080
|
description
|
|
1070
1081
|
}));
|
|
1071
|
-
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =>
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(((_a = trustLE.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [])
|
|
1081
|
-
];
|
|
1082
|
-
};
|
|
1082
|
+
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => [
|
|
1083
|
+
mapRootLegalEntityToTrustMember(rootLegalEntity),
|
|
1084
|
+
...mapEntityAssociationsToTrustMembers(
|
|
1085
|
+
trustLE.id,
|
|
1086
|
+
trustLE.entityAssociations ?? [],
|
|
1087
|
+
exemptSettlorLE
|
|
1088
|
+
),
|
|
1089
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1090
|
+
];
|
|
1083
1091
|
const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
|
|
1084
1092
|
const allowedRolesForRootLegalEntity = [
|
|
1085
1093
|
TrustMemberTypes.SETTLOR,
|
|
@@ -1096,7 +1104,6 @@ const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAss
|
|
|
1096
1104
|
};
|
|
1097
1105
|
};
|
|
1098
1106
|
const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
|
|
1099
|
-
var _a;
|
|
1100
1107
|
const entityAssociations = trustLE.entityAssociations ?? [];
|
|
1101
1108
|
const rootLegalEntityAssociations = entityAssociations.filter(
|
|
1102
1109
|
(a) => a.legalEntityId === rootLegalEntity.id
|
|
@@ -1111,21 +1118,9 @@ const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =
|
|
|
1111
1118
|
nonRootLegalEntityAssociations ?? [],
|
|
1112
1119
|
exemptSettlorLE
|
|
1113
1120
|
),
|
|
1114
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(
|
|
1121
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1115
1122
|
];
|
|
1116
1123
|
};
|
|
1117
|
-
const useExemptSettlor = ({
|
|
1118
|
-
trust
|
|
1119
|
-
}) => {
|
|
1120
|
-
const matchingAssociation = useMemo(() => {
|
|
1121
|
-
if (!trust) return void 0;
|
|
1122
|
-
return getOwnEntityAssociations(trust).find(
|
|
1123
|
-
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
1124
|
-
);
|
|
1125
|
-
}, [trust]);
|
|
1126
|
-
const { data } = useLegalEntity((matchingAssociation == null ? void 0 : matchingAssociation.legalEntityId) ?? skipToken);
|
|
1127
|
-
return data;
|
|
1128
|
-
};
|
|
1129
1124
|
function useTrustMembers() {
|
|
1130
1125
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
1131
1126
|
const { data: trust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityType.TRUST);
|
|
@@ -1135,7 +1130,7 @@ function useTrustMembers() {
|
|
|
1135
1130
|
});
|
|
1136
1131
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
1137
1132
|
return useMemo(() => {
|
|
1138
|
-
if (!rootLegalEntity || !
|
|
1133
|
+
if (!rootLegalEntity || !trust?.trust) return [];
|
|
1139
1134
|
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
1140
1135
|
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
1141
1136
|
}
|
|
@@ -1198,7 +1193,6 @@ const convertExistingSettlorExemptionReasons = (existingReasons) => {
|
|
|
1198
1193
|
return existingReasons;
|
|
1199
1194
|
};
|
|
1200
1195
|
const convertExistingTrustMember = (trustMember) => {
|
|
1201
|
-
var _a, _b;
|
|
1202
1196
|
switch (trustMember.trustMemberType) {
|
|
1203
1197
|
case "undefinedBeneficiary":
|
|
1204
1198
|
return {
|
|
@@ -1229,8 +1223,8 @@ const convertExistingTrustMember = (trustMember) => {
|
|
|
1229
1223
|
settlorExemptionReason: convertExistingSettlorExemptionReasons(
|
|
1230
1224
|
trustMember.settlorExemptionReason
|
|
1231
1225
|
),
|
|
1232
|
-
firstName:
|
|
1233
|
-
lastName:
|
|
1226
|
+
firstName: trustMember.exemptSettlorName?.firstName,
|
|
1227
|
+
lastName: trustMember.exemptSettlorName?.lastName,
|
|
1234
1228
|
legalCompanyName: trustMember.name,
|
|
1235
1229
|
country: trustMember.country
|
|
1236
1230
|
};
|
|
@@ -1289,7 +1283,7 @@ const availablesRolesByTrustMemberTypeAndLegalEntityType = {
|
|
|
1289
1283
|
}
|
|
1290
1284
|
};
|
|
1291
1285
|
const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
|
|
1292
|
-
if (!
|
|
1286
|
+
if (!currentRoles?.length) {
|
|
1293
1287
|
const { trustMemberType, legalEntityType } = trustMember;
|
|
1294
1288
|
const availableRolesByTrustMemberType = availablesRolesByTrustMemberTypeAndLegalEntityType[trustMemberType];
|
|
1295
1289
|
if (!availableRolesByTrustMemberType) {
|
|
@@ -1308,7 +1302,7 @@ const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trus
|
|
|
1308
1302
|
return roles.filter((r) => r !== "secondaryTrustee");
|
|
1309
1303
|
};
|
|
1310
1304
|
const getAvailableRoles = (currentRoles) => {
|
|
1311
|
-
if (!
|
|
1305
|
+
if (!currentRoles?.length) return Object.values(TrustMemberTypes);
|
|
1312
1306
|
return currentRoles.map((role) => [role, ...allowedCrossoverRolesMatrix[role]]).reduce(
|
|
1313
1307
|
(existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
|
|
1314
1308
|
);
|
|
@@ -1328,14 +1322,8 @@ const settlorExemptionReasonWithNoneOfTheAbove = [
|
|
|
1328
1322
|
"noneOfTheAbove"
|
|
1329
1323
|
];
|
|
1330
1324
|
const couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityType.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
|
|
1331
|
-
const isExemptSettlor = (data) =>
|
|
1332
|
-
|
|
1333
|
-
return ((_a = data.settlorExemptionReason) == null ? void 0 : _a.some((reason) => reason !== "noneOfTheAbove")) ?? false;
|
|
1334
|
-
};
|
|
1335
|
-
const isOrganizationAndSettlor = (data) => {
|
|
1336
|
-
var _a;
|
|
1337
|
-
return data.entityType === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor";
|
|
1338
|
-
};
|
|
1325
|
+
const isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
|
|
1326
|
+
const isOrganizationAndSettlor = (data) => data.entityType === LegalEntityType.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
|
|
1339
1327
|
const roleAndTypeValidationRules = {
|
|
1340
1328
|
entityType: {
|
|
1341
1329
|
modes: ["blur"],
|
|
@@ -1344,7 +1332,7 @@ const roleAndTypeValidationRules = {
|
|
|
1344
1332
|
},
|
|
1345
1333
|
role: {
|
|
1346
1334
|
modes: ["blur"],
|
|
1347
|
-
validate: (role) => !!
|
|
1335
|
+
validate: (role) => !!role?.length,
|
|
1348
1336
|
errorMessage: "fieldIsRequired"
|
|
1349
1337
|
},
|
|
1350
1338
|
descriptionUndefinedBeneficiary: {
|
|
@@ -1354,7 +1342,7 @@ const roleAndTypeValidationRules = {
|
|
|
1354
1342
|
},
|
|
1355
1343
|
settlorExemptionReason: {
|
|
1356
1344
|
modes: ["blur"],
|
|
1357
|
-
validate: (reasons) => Boolean(reasons
|
|
1345
|
+
validate: (reasons) => Boolean(reasons?.length),
|
|
1358
1346
|
errorMessage: "fieldIsRequired"
|
|
1359
1347
|
},
|
|
1360
1348
|
country: {
|
|
@@ -1391,6 +1379,7 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
|
|
|
1391
1379
|
return convertExistingTrustMember(trustMember);
|
|
1392
1380
|
};
|
|
1393
1381
|
const TrustRoleAndEntityType = (props) => {
|
|
1382
|
+
const { t } = useTranslation();
|
|
1394
1383
|
const { i18n } = useI18nContext();
|
|
1395
1384
|
const { existingTrustMember, isOrganizationSettlorWithExemptionEnabled, onChange, id, country } = props;
|
|
1396
1385
|
const trustRoleAndEntityTypeCountry = country;
|
|
@@ -1414,11 +1403,10 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1414
1403
|
);
|
|
1415
1404
|
const formUtils = createFormUtils(mergedProps, i18n);
|
|
1416
1405
|
const decideFields = (data2) => {
|
|
1417
|
-
|
|
1418
|
-
if ((_a = data2.role) == null ? void 0 : _a.includes("undefinedBeneficiary")) {
|
|
1406
|
+
if (data2.role?.includes("undefinedBeneficiary")) {
|
|
1419
1407
|
return ["role", "descriptionUndefinedBeneficiary"];
|
|
1420
1408
|
}
|
|
1421
|
-
if (
|
|
1409
|
+
if (data2.role?.length) {
|
|
1422
1410
|
if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
|
|
1423
1411
|
return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
|
|
1424
1412
|
}
|
|
@@ -1434,9 +1422,9 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1434
1422
|
schema: decideFields,
|
|
1435
1423
|
rules: roleAndTypeValidationRules,
|
|
1436
1424
|
defaultData,
|
|
1437
|
-
fieldProblems: props
|
|
1425
|
+
fieldProblems: props?.fieldValidationErrors
|
|
1438
1426
|
});
|
|
1439
|
-
const availableRoles = allowMoreRolesForMainRootTrusteeEnabled &&
|
|
1427
|
+
const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && existingTrustMember?.trustMemberType === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
|
|
1440
1428
|
const { data: exemptSettlorLe } = useLegalEntity(
|
|
1441
1429
|
isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== isNewEntity && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" ? existingTrustMember.legalEntityId : skipToken
|
|
1442
1430
|
);
|
|
@@ -1446,7 +1434,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1446
1434
|
}
|
|
1447
1435
|
}, [exemptSettlorLe]);
|
|
1448
1436
|
useEffect(() => {
|
|
1449
|
-
onChange
|
|
1437
|
+
onChange?.({
|
|
1450
1438
|
schema,
|
|
1451
1439
|
data,
|
|
1452
1440
|
errors,
|
|
@@ -1469,10 +1457,9 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1469
1457
|
}
|
|
1470
1458
|
};
|
|
1471
1459
|
const changeSettlorExemptionReasons = (exemptionReasons) => {
|
|
1472
|
-
var _a;
|
|
1473
1460
|
if (exemptionReasons.includes("noneOfTheAbove")) {
|
|
1474
1461
|
handleChangeFor("settlorExemptionReason")(
|
|
1475
|
-
|
|
1462
|
+
data.settlorExemptionReason?.includes("noneOfTheAbove") ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
|
|
1476
1463
|
);
|
|
1477
1464
|
return;
|
|
1478
1465
|
}
|
|
@@ -1480,8 +1467,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1480
1467
|
};
|
|
1481
1468
|
const nameProps = getFieldProps(props, nameFields);
|
|
1482
1469
|
const onEntityTypeChange = (value) => {
|
|
1483
|
-
|
|
1484
|
-
if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor") {
|
|
1470
|
+
if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor") {
|
|
1485
1471
|
changeSettlorExemptionReasons(["professionalServiceProvider"]);
|
|
1486
1472
|
}
|
|
1487
1473
|
handleChangeFor("entityType")(value);
|
|
@@ -1491,8 +1477,8 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1491
1477
|
/* @__PURE__ */ jsx(
|
|
1492
1478
|
ErrorPanel,
|
|
1493
1479
|
{
|
|
1494
|
-
verificationErrors: props
|
|
1495
|
-
validationErrors: props
|
|
1480
|
+
verificationErrors: props?.formVerificationErrors,
|
|
1481
|
+
validationErrors: props?.fieldValidationErrors,
|
|
1496
1482
|
formUtils,
|
|
1497
1483
|
id: "ariaErrorField"
|
|
1498
1484
|
}
|
|
@@ -1503,7 +1489,6 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1503
1489
|
el: "fieldset",
|
|
1504
1490
|
name: "role",
|
|
1505
1491
|
label: formUtils.getLabel("role", "selectTheApplicableRoles"),
|
|
1506
|
-
classNameModifiers: ["role"],
|
|
1507
1492
|
errorMessage: formUtils.getErrorMessage("role", errors, fieldProblems),
|
|
1508
1493
|
isValid: valid.role,
|
|
1509
1494
|
disabled: availableRoles.length === 0,
|
|
@@ -1516,14 +1501,14 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1516
1501
|
selected: data.role ?? [],
|
|
1517
1502
|
onSelect: changeRoles,
|
|
1518
1503
|
mapToSelectItem: (role) => ({
|
|
1519
|
-
...makeSelectItemForRole(role,
|
|
1504
|
+
...makeSelectItemForRole(role, t),
|
|
1520
1505
|
disabled: !availableRoles.includes(role)
|
|
1521
1506
|
})
|
|
1522
1507
|
}
|
|
1523
1508
|
)
|
|
1524
1509
|
}
|
|
1525
1510
|
),
|
|
1526
|
-
|
|
1511
|
+
schema?.includes("entityType") && /* @__PURE__ */ jsx(
|
|
1527
1512
|
Field,
|
|
1528
1513
|
{
|
|
1529
1514
|
el: "fieldset",
|
|
@@ -1549,7 +1534,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1549
1534
|
)
|
|
1550
1535
|
}
|
|
1551
1536
|
),
|
|
1552
|
-
|
|
1537
|
+
schema?.includes("descriptionUndefinedBeneficiary") && /* @__PURE__ */ jsx(
|
|
1553
1538
|
Field,
|
|
1554
1539
|
{
|
|
1555
1540
|
name: "descriptionUndefinedBeneficiary",
|
|
@@ -1575,7 +1560,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1575
1560
|
)
|
|
1576
1561
|
}
|
|
1577
1562
|
),
|
|
1578
|
-
|
|
1563
|
+
schema?.includes("settlorExemptionReason") && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
|
|
1579
1564
|
Field,
|
|
1580
1565
|
{
|
|
1581
1566
|
el: "fieldset",
|
|
@@ -1623,7 +1608,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1623
1608
|
dataStoreId: id
|
|
1624
1609
|
}
|
|
1625
1610
|
) : void 0,
|
|
1626
|
-
isOrganizationSettlorWithExemptionEnabled &&
|
|
1611
|
+
isOrganizationSettlorWithExemptionEnabled && schema?.includes("country") && schema?.includes("legalCompanyName") ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1627
1612
|
/* @__PURE__ */ jsx(
|
|
1628
1613
|
CountryField,
|
|
1629
1614
|
{
|
|
@@ -1632,7 +1617,6 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1632
1617
|
errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
|
|
1633
1618
|
labels: formUtils.getFieldLabels(COUNTRY_FIELD),
|
|
1634
1619
|
readonly: false,
|
|
1635
|
-
classNameModifiers: COUNTRY_FIELD,
|
|
1636
1620
|
allowedCountries: void 0,
|
|
1637
1621
|
handleChangeFor
|
|
1638
1622
|
}
|
|
@@ -1655,7 +1639,6 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1655
1639
|
] });
|
|
1656
1640
|
};
|
|
1657
1641
|
const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
1658
|
-
var _a, _b;
|
|
1659
1642
|
if (trustMember.legalEntityId === isNewEntity) {
|
|
1660
1643
|
throw Error("Cannot map a new trust member, you must create it first");
|
|
1661
1644
|
}
|
|
@@ -1666,7 +1649,7 @@ const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
|
1666
1649
|
entityType: trustMember.legalEntityType,
|
|
1667
1650
|
type: TrustMemberTypes.SETTLOR,
|
|
1668
1651
|
settlorExemptionReason: trustMember.settlorExemptionReason,
|
|
1669
|
-
name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${
|
|
1652
|
+
name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
|
|
1670
1653
|
}
|
|
1671
1654
|
];
|
|
1672
1655
|
return trustMember.roles.map((role) => ({
|
|
@@ -1711,10 +1694,9 @@ const addOrUpdateUndefinedBeneficiary = async ({
|
|
|
1711
1694
|
trust,
|
|
1712
1695
|
updateLegalEntity
|
|
1713
1696
|
}) => {
|
|
1714
|
-
|
|
1715
|
-
const otherUndefinedBeneficiaries = ((_b = (_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) == null ? void 0 : _b.filter(
|
|
1697
|
+
const otherUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo?.filter(
|
|
1716
1698
|
(ub) => ub.reference !== newOrUpdated.reference
|
|
1717
|
-
)
|
|
1699
|
+
) ?? [];
|
|
1718
1700
|
const patchLE = {
|
|
1719
1701
|
trust: {
|
|
1720
1702
|
undefinedBeneficiaryInfo: [
|
|
@@ -1735,13 +1717,12 @@ const createExemptSettlor = async ({
|
|
|
1735
1717
|
trust,
|
|
1736
1718
|
handleCreateLegalEntity
|
|
1737
1719
|
}) => {
|
|
1738
|
-
var _a, _b;
|
|
1739
1720
|
const exemptSettlorLE = {
|
|
1740
1721
|
type: LegalEntityType.INDIVIDUAL,
|
|
1741
1722
|
individual: {
|
|
1742
1723
|
name: {
|
|
1743
|
-
firstName:
|
|
1744
|
-
lastName:
|
|
1724
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
|
|
1725
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName ?? ""
|
|
1745
1726
|
},
|
|
1746
1727
|
residentialAddress: {
|
|
1747
1728
|
country: trust.trust.registeredAddress.country
|
|
@@ -1770,12 +1751,11 @@ const updateExemptSettlorName = async ({
|
|
|
1770
1751
|
exemptSettlor,
|
|
1771
1752
|
updateLegalEntity
|
|
1772
1753
|
}) => {
|
|
1773
|
-
var _a, _b;
|
|
1774
1754
|
const exemptSettlorPatch = {
|
|
1775
1755
|
individual: {
|
|
1776
1756
|
name: {
|
|
1777
|
-
firstName:
|
|
1778
|
-
lastName:
|
|
1757
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName,
|
|
1758
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName
|
|
1779
1759
|
}
|
|
1780
1760
|
}
|
|
1781
1761
|
};
|
|
@@ -1808,7 +1788,6 @@ const styles$3 = {
|
|
|
1808
1788
|
const formatRolesForSummary = (roles, i18n) => roles.map((role) => i18n.get(getRoleName(role))).join(", ");
|
|
1809
1789
|
const formatSettlorExemptionReasonsForSummary = (reasons, i18n) => /* @__PURE__ */ jsx("ul", { className: styles$3.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: i18n.get(reason) }, reason)) });
|
|
1810
1790
|
const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExemptionEnabled) => {
|
|
1811
|
-
var _a, _b;
|
|
1812
1791
|
const { trustMemberType, roles } = data;
|
|
1813
1792
|
const role = formatRolesForSummary(roles, i18n);
|
|
1814
1793
|
switch (trustMemberType) {
|
|
@@ -1821,8 +1800,8 @@ const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExe
|
|
|
1821
1800
|
return {
|
|
1822
1801
|
role,
|
|
1823
1802
|
entityType: i18n.get(data.legalEntityType),
|
|
1824
|
-
firstName:
|
|
1825
|
-
lastName:
|
|
1803
|
+
firstName: data.exemptSettlorName?.firstName,
|
|
1804
|
+
lastName: data.exemptSettlorName?.lastName,
|
|
1826
1805
|
country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
|
|
1827
1806
|
legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
|
|
1828
1807
|
settlorExemptionReason: summaryItem(
|
|
@@ -1883,7 +1862,6 @@ const decideForms = (trustMember) => {
|
|
|
1883
1862
|
}
|
|
1884
1863
|
};
|
|
1885
1864
|
const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettlorWithExemptionReasonEnabled = false) => {
|
|
1886
|
-
var _a;
|
|
1887
1865
|
const existingId = existingTrustMember ? existingTrustMember.trustMemberType === "undefinedBeneficiary" ? existingTrustMember.reference : existingTrustMember.legalEntityId : void 0;
|
|
1888
1866
|
if (data.trustMemberType === "rootTrustee") {
|
|
1889
1867
|
return {
|
|
@@ -1894,7 +1872,7 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
|
|
|
1894
1872
|
name: data.firstName ?? ""
|
|
1895
1873
|
};
|
|
1896
1874
|
}
|
|
1897
|
-
if (
|
|
1875
|
+
if (data.role?.length) {
|
|
1898
1876
|
if (isExemptSettlor(data)) {
|
|
1899
1877
|
if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityType.ORGANIZATION) {
|
|
1900
1878
|
return {
|
|
@@ -1958,7 +1936,6 @@ function RoleAndTypeDropin({
|
|
|
1958
1936
|
navigateBack,
|
|
1959
1937
|
country
|
|
1960
1938
|
}) {
|
|
1961
|
-
var _a;
|
|
1962
1939
|
const { i18n } = useI18nContext();
|
|
1963
1940
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1964
1941
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
@@ -1969,7 +1946,7 @@ function RoleAndTypeDropin({
|
|
|
1969
1946
|
const { showToast } = useToastContext();
|
|
1970
1947
|
const isOrganizationSettlorWithExemptionReasonEnabled = (country2) => country2 === CountryCodes.Australia;
|
|
1971
1948
|
const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(
|
|
1972
|
-
|
|
1949
|
+
trust?.trust?.countryOfGoverningLaw
|
|
1973
1950
|
);
|
|
1974
1951
|
const formList = decideForms(trustMember);
|
|
1975
1952
|
const forms = Object.values(formList);
|
|
@@ -2068,7 +2045,7 @@ function RoleAndTypeDropin({
|
|
|
2068
2045
|
};
|
|
2069
2046
|
const saveRolesAndNavigate = async () => {
|
|
2070
2047
|
if (trustMember === "incomplete") return;
|
|
2071
|
-
if (hasRolesChanged(trustMember.roles, existingTrustMember
|
|
2048
|
+
if (hasRolesChanged(trustMember.roles, existingTrustMember?.roles)) {
|
|
2072
2049
|
addOrUpdateTrustMember(trustMember);
|
|
2073
2050
|
}
|
|
2074
2051
|
navigateBack();
|
|
@@ -2231,7 +2208,7 @@ const EntityGuidanceStatus = ({
|
|
|
2231
2208
|
entityLabel,
|
|
2232
2209
|
status
|
|
2233
2210
|
}) => {
|
|
2234
|
-
const {
|
|
2211
|
+
const { t } = useTranslation();
|
|
2235
2212
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-status__container", children: [
|
|
2236
2213
|
/* @__PURE__ */ jsx(EntityStatusIcon, { status }),
|
|
2237
2214
|
/* @__PURE__ */ jsx(
|
|
@@ -2239,7 +2216,7 @@ const EntityGuidanceStatus = ({
|
|
|
2239
2216
|
{
|
|
2240
2217
|
className: "adyen-kyc-entity-status__tag",
|
|
2241
2218
|
variant: getRoleTagVariant(entityLabel),
|
|
2242
|
-
children:
|
|
2219
|
+
children: t(($) => $[getRoleName(entityLabel)])
|
|
2243
2220
|
},
|
|
2244
2221
|
entityLabel
|
|
2245
2222
|
),
|
|
@@ -2248,9 +2225,13 @@ const EntityGuidanceStatus = ({
|
|
|
2248
2225
|
{
|
|
2249
2226
|
className: "adyen-kyc-entity-status--text",
|
|
2250
2227
|
"data-testid": `${entityLabel}-rule--description`,
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2228
|
+
children: /* @__PURE__ */ jsx(
|
|
2229
|
+
Trans,
|
|
2230
|
+
{
|
|
2231
|
+
t,
|
|
2232
|
+
i18nKey: ($) => $[getEntityStatusRuleDescription(country, currentTask, entityLabel)]
|
|
2233
|
+
}
|
|
2234
|
+
)
|
|
2254
2235
|
}
|
|
2255
2236
|
)
|
|
2256
2237
|
] });
|
|
@@ -2273,8 +2254,7 @@ const deleteUndefinedBeneficiary = async ({
|
|
|
2273
2254
|
trust,
|
|
2274
2255
|
asyncMutation
|
|
2275
2256
|
}) => {
|
|
2276
|
-
|
|
2277
|
-
const existingUndefinedBeneficiaries = ((_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [];
|
|
2257
|
+
const existingUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo ?? [];
|
|
2278
2258
|
const updatedTrust = {
|
|
2279
2259
|
trust: {
|
|
2280
2260
|
undefinedBeneficiaryInfo: existingUndefinedBeneficiaries.filter(
|
|
@@ -2338,7 +2318,7 @@ const EntityAssociation = ({
|
|
|
2338
2318
|
isRemoveDisabled = false,
|
|
2339
2319
|
handleIsRemoveDisabled
|
|
2340
2320
|
}) => {
|
|
2341
|
-
const {
|
|
2321
|
+
const { t } = useTranslation();
|
|
2342
2322
|
const [showingActions, setShowingActions] = useState(false);
|
|
2343
2323
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
2344
2324
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2363,7 +2343,7 @@ const EntityAssociation = ({
|
|
|
2363
2343
|
event.stopPropagation();
|
|
2364
2344
|
setShowingActions(!showingActions);
|
|
2365
2345
|
},
|
|
2366
|
-
ariaLabel:
|
|
2346
|
+
ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
|
|
2367
2347
|
}
|
|
2368
2348
|
),
|
|
2369
2349
|
/* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
|
|
@@ -2384,7 +2364,7 @@ const EntityAssociation = ({
|
|
|
2384
2364
|
{
|
|
2385
2365
|
className: "adyen-kyc-entity-association__tag",
|
|
2386
2366
|
variant: getRoleTagVariant(type),
|
|
2387
|
-
children:
|
|
2367
|
+
children: t(($) => $[getRoleName(type)])
|
|
2388
2368
|
},
|
|
2389
2369
|
type
|
|
2390
2370
|
)) }),
|
|
@@ -2464,9 +2444,8 @@ const ExemptSettlorTaskItem = ({
|
|
|
2464
2444
|
onEdit,
|
|
2465
2445
|
onDelete
|
|
2466
2446
|
}) => {
|
|
2467
|
-
var _a, _b;
|
|
2468
2447
|
const { i18n } = useI18nContext();
|
|
2469
|
-
const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${
|
|
2448
|
+
const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
|
|
2470
2449
|
const actions = [
|
|
2471
2450
|
{
|
|
2472
2451
|
icon: "edit",
|
|
@@ -2647,6 +2626,7 @@ const TrustMembersOverviewInner = ({
|
|
|
2647
2626
|
navigateToEditTrustMemberOwner
|
|
2648
2627
|
}) => {
|
|
2649
2628
|
const { i18n } = useI18nContext();
|
|
2629
|
+
const { t } = useTranslation("common");
|
|
2650
2630
|
const trustMemberRequirements = DEFAULT_TRUST_MEMBER_REQUIREMENTS;
|
|
2651
2631
|
const trustMembersWithOneOfGivenRoles = (roleTypes) => trustMembers.filter(
|
|
2652
2632
|
({ roles }) => roleTypes.some((label) => roles.includes(label))
|
|
@@ -2679,15 +2659,7 @@ const TrustMembersOverviewInner = ({
|
|
|
2679
2659
|
ContextGuidance,
|
|
2680
2660
|
{
|
|
2681
2661
|
title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
|
|
2682
|
-
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx(
|
|
2683
|
-
"li",
|
|
2684
|
-
{
|
|
2685
|
-
dangerouslySetInnerHTML: {
|
|
2686
|
-
__html: i18n.get(`${label}GuideDescription`)
|
|
2687
|
-
}
|
|
2688
|
-
},
|
|
2689
|
-
label
|
|
2690
|
-
)) }),
|
|
2662
|
+
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, { t, ns: "common", i18nKey: ($) => $[`${label}GuideDescription`] }) }, label)) }),
|
|
2691
2663
|
titleId: "whatIsTheDifferenceBetweenTheseRoles",
|
|
2692
2664
|
contentId: "differenceBetweenTrustMemberRoles"
|
|
2693
2665
|
}
|
|
@@ -2791,13 +2763,13 @@ const TrustMembersOverviewInner = ({
|
|
|
2791
2763
|
);
|
|
2792
2764
|
};
|
|
2793
2765
|
const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
|
|
2794
|
-
const firstRole = selectedRoles
|
|
2766
|
+
const firstRole = selectedRoles?.[0];
|
|
2795
2767
|
return {
|
|
2796
|
-
memberType:
|
|
2797
|
-
roles: selectedRoles ||
|
|
2768
|
+
memberType: selectedMember?.memberType || firstRole,
|
|
2769
|
+
roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
|
|
2798
2770
|
legalEntityType: selectedEntityType,
|
|
2799
|
-
legalEntityId:
|
|
2800
|
-
name:
|
|
2771
|
+
legalEntityId: selectedMember?.legalEntityId || "",
|
|
2772
|
+
name: selectedMember?.name || ""
|
|
2801
2773
|
};
|
|
2802
2774
|
};
|
|
2803
2775
|
const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
@@ -2811,7 +2783,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2811
2783
|
}) => {
|
|
2812
2784
|
const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
|
|
2813
2785
|
setActiveMember(createdMember);
|
|
2814
|
-
if (rootLegalEntityId.value ===
|
|
2786
|
+
if (rootLegalEntityId.value === createdMember?.legalEntityId) {
|
|
2815
2787
|
navigateTo(
|
|
2816
2788
|
createdMember.legalEntityType === LegalEntityType.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
|
|
2817
2789
|
);
|
|
@@ -2822,7 +2794,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2822
2794
|
return;
|
|
2823
2795
|
}
|
|
2824
2796
|
navigateTo(
|
|
2825
|
-
|
|
2797
|
+
createdMember?.legalEntityType === LegalEntityType.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
|
|
2826
2798
|
);
|
|
2827
2799
|
};
|
|
2828
2800
|
return {
|
|
@@ -2919,7 +2891,7 @@ function getUboStatus(roles, roleType, existingMember) {
|
|
|
2919
2891
|
if (!existingMember) {
|
|
2920
2892
|
return void 0;
|
|
2921
2893
|
}
|
|
2922
|
-
return
|
|
2894
|
+
return roles?.includes(roleType) ? "yes" : "no";
|
|
2923
2895
|
}
|
|
2924
2896
|
function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
2925
2897
|
onNavigateToMember,
|
|
@@ -2937,16 +2909,16 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2937
2909
|
formName: form.formName,
|
|
2938
2910
|
isValid: false
|
|
2939
2911
|
}));
|
|
2940
|
-
const existingMember = activeMember
|
|
2912
|
+
const existingMember = activeMember?.legalEntityId;
|
|
2941
2913
|
const defaultData = {
|
|
2942
|
-
entityType: activeMember
|
|
2914
|
+
entityType: activeMember?.legalEntityType,
|
|
2943
2915
|
uboThroughControl: getUboStatus(
|
|
2944
|
-
activeMember
|
|
2916
|
+
activeMember?.roles,
|
|
2945
2917
|
UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
|
|
2946
2918
|
existingMember
|
|
2947
2919
|
),
|
|
2948
2920
|
uboThroughOwnership: getUboStatus(
|
|
2949
|
-
activeMember
|
|
2921
|
+
activeMember?.roles,
|
|
2950
2922
|
UnincorporatedPartnershipMemberTypes.OWNER,
|
|
2951
2923
|
existingMember
|
|
2952
2924
|
)
|
|
@@ -2988,7 +2960,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2988
2960
|
FormNavigation,
|
|
2989
2961
|
{
|
|
2990
2962
|
forms: formsWithValidity,
|
|
2991
|
-
activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) ||
|
|
2963
|
+
activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) || formsWithValidity?.[0],
|
|
2992
2964
|
taskName: "unincorporatedPartnershipMembers",
|
|
2993
2965
|
gotoForm: () => {
|
|
2994
2966
|
}
|
|
@@ -3020,7 +2992,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3020
2992
|
...childProps,
|
|
3021
2993
|
name: "entityType",
|
|
3022
2994
|
options: trustMemberLegalEntityTypes,
|
|
3023
|
-
selected: data
|
|
2995
|
+
selected: data?.entityType,
|
|
3024
2996
|
onSelect: (option) => handleChangeFor("entityType")(option),
|
|
3025
2997
|
optionId: (option) => leTypeCardDetails[option].id,
|
|
3026
2998
|
optionName: (option) => leTypeCardDetails[option].name,
|
|
@@ -3040,7 +3012,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3040
3012
|
errors,
|
|
3041
3013
|
fieldProblems
|
|
3042
3014
|
),
|
|
3043
|
-
value: data
|
|
3015
|
+
value: data?.uboThroughOwnership
|
|
3044
3016
|
}
|
|
3045
3017
|
),
|
|
3046
3018
|
schema.includes("uboThroughControl") && /* @__PURE__ */ jsx(
|
|
@@ -3053,7 +3025,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3053
3025
|
errors,
|
|
3054
3026
|
fieldProblems
|
|
3055
3027
|
),
|
|
3056
|
-
value: data
|
|
3028
|
+
value: data?.uboThroughControl
|
|
3057
3029
|
}
|
|
3058
3030
|
)
|
|
3059
3031
|
] })
|
|
@@ -3087,10 +3059,7 @@ const alertHeader = "adyen-kyc-alert-header";
|
|
|
3087
3059
|
const styles = {
|
|
3088
3060
|
alertHeader
|
|
3089
3061
|
};
|
|
3090
|
-
const isPrimaryPartner = (member) =>
|
|
3091
|
-
var _a;
|
|
3092
|
-
return (_a = member == null ? void 0 : member.roles) == null ? void 0 : _a.includes("primaryPartner");
|
|
3093
|
-
};
|
|
3062
|
+
const isPrimaryPartner = (member) => member?.roles?.includes("primaryPartner");
|
|
3094
3063
|
const isMemberMissingOwner = (member) => {
|
|
3095
3064
|
return !isPrimaryPartner(member) && member.legalEntityType === LegalEntityType.ORGANIZATION && !member.ownerId;
|
|
3096
3065
|
};
|
|
@@ -3142,7 +3111,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3142
3111
|
const missingOwner = isMemberMissingOwner(member);
|
|
3143
3112
|
baseActions.push({
|
|
3144
3113
|
icon: missingOwner ? "plus" : "edit",
|
|
3145
|
-
onSelect: () => navigateToEditMemberOwner(member
|
|
3114
|
+
onSelect: () => navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId),
|
|
3146
3115
|
label: i18n.get(missingOwner ? "addOwnerToTrustMember" : "editOwnerOfTrustMember", {
|
|
3147
3116
|
values: { trustMember: member.name }
|
|
3148
3117
|
})
|
|
@@ -3172,7 +3141,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3172
3141
|
onClick: (e) => {
|
|
3173
3142
|
e.preventDefault();
|
|
3174
3143
|
e.stopPropagation();
|
|
3175
|
-
navigateToEditMemberOwner(member
|
|
3144
|
+
navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId);
|
|
3176
3145
|
},
|
|
3177
3146
|
variant: "link",
|
|
3178
3147
|
children: i18n.get("providePersonalDetailsOfOwner")
|
|
@@ -3261,7 +3230,7 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
|
|
|
3261
3230
|
const handleNavigation = useCallback(
|
|
3262
3231
|
(task) => {
|
|
3263
3232
|
userEvents.updateBaseTrackingPayload({ task });
|
|
3264
|
-
onNavigate
|
|
3233
|
+
onNavigate?.(task);
|
|
3265
3234
|
},
|
|
3266
3235
|
[onNavigate]
|
|
3267
3236
|
);
|
|
@@ -3286,11 +3255,11 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
|
|
|
3286
3255
|
}
|
|
3287
3256
|
if (prevTask === TaskTypes.TASKS_OVERVIEW) {
|
|
3288
3257
|
setTaskHistory([TaskTypes.TASKS_OVERVIEW]);
|
|
3289
|
-
handleNavigation
|
|
3258
|
+
handleNavigation?.(TaskTypes.TASKS_OVERVIEW);
|
|
3290
3259
|
return;
|
|
3291
3260
|
}
|
|
3292
3261
|
setTaskHistory(taskHistory.slice(0, -1 * stepCount));
|
|
3293
|
-
handleNavigation
|
|
3262
|
+
handleNavigation?.(prevTask);
|
|
3294
3263
|
userEvents.updateBaseTrackingPayload({ task: prevTask });
|
|
3295
3264
|
},
|
|
3296
3265
|
[taskHistory, handleNavigation]
|
|
@@ -3360,79 +3329,78 @@ const getDefaultTask = ({
|
|
|
3360
3329
|
return TaskTypes.TASKS_OVERVIEW;
|
|
3361
3330
|
};
|
|
3362
3331
|
const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
3363
|
-
|
|
3364
|
-
const hasOwnEntityAssocation = (_a = legalEntity.entityAssociations) == null ? void 0 : _a.some(
|
|
3332
|
+
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
3365
3333
|
(ea) => ea.associatorId === legalEntity.id
|
|
3366
3334
|
);
|
|
3367
|
-
const hasOrganizationType =
|
|
3335
|
+
const hasOrganizationType = legalEntity.organization?.type;
|
|
3368
3336
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
3369
3337
|
};
|
|
3370
3338
|
const Introduction = lazy(
|
|
3371
|
-
async () => (await import("./Introduction-
|
|
3339
|
+
async () => (await import("./Introduction-erRXgreE.js")).Introduction
|
|
3372
3340
|
);
|
|
3373
3341
|
const BusinessTypeSelectionPage = lazy(
|
|
3374
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
3342
|
+
async () => (await import("./BusinessTypeSelectionPage-Cdp8joPJ.js")).BusinessTypeSelectionPage
|
|
3375
3343
|
);
|
|
3376
3344
|
const SingpassSelection = lazy(
|
|
3377
|
-
async () => (await import("./SingpassSelection-
|
|
3345
|
+
async () => (await import("./SingpassSelection-BWEJ3Yi-.js")).SingpassSelection
|
|
3378
3346
|
);
|
|
3379
3347
|
const AccountSetupRejected = lazy(
|
|
3380
|
-
async () => (await import("./AccountSetupRejected-
|
|
3348
|
+
async () => (await import("./AccountSetupRejected-DHph9lFl.js")).AccountSetupRejected
|
|
3381
3349
|
);
|
|
3382
3350
|
const DecisionMakers = lazy(
|
|
3383
|
-
async () => (await import("./DecisionMakers-
|
|
3351
|
+
async () => (await import("./DecisionMakers-CZ5-IRtU.js")).DecisionMakers
|
|
3384
3352
|
);
|
|
3385
3353
|
const CustomerSupport = lazy(
|
|
3386
|
-
async () => (await import("./CustomerSupport-
|
|
3354
|
+
async () => (await import("./CustomerSupport-NGBoBg3N.js")).CustomerSupport
|
|
3387
3355
|
);
|
|
3388
|
-
const Review = lazy(async () => (await import("./Review-
|
|
3356
|
+
const Review = lazy(async () => (await import("./Review-O6Al47Cu.js")).Review);
|
|
3389
3357
|
const SignPCIComponent = lazy(
|
|
3390
|
-
async () => (await import("./SignPCIComponent-
|
|
3358
|
+
async () => (await import("./SignPCIComponent-cqRNhGdl.js")).SignPCIComponent
|
|
3391
3359
|
);
|
|
3392
3360
|
const AcceptTermsOfService = lazy(
|
|
3393
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
3361
|
+
async () => (await import("./AcceptTermsOfServiceComponent-i222mdxX.js")).AcceptTermsOfServiceComponent
|
|
3394
3362
|
);
|
|
3395
3363
|
const TaxReportingDropin = lazy(
|
|
3396
|
-
async () => (await import("./TaxReportingDropin-
|
|
3364
|
+
async () => (await import("./TaxReportingDropin-DFZ2ehfk.js")).TaxReportingDropin
|
|
3397
3365
|
);
|
|
3398
3366
|
const PayoutDetailsPage = lazy(
|
|
3399
|
-
async () => (await import("./
|
|
3367
|
+
async () => (await import("./StoreProvider-ClKLaHzy.js").then((n) => n.eI)).PayoutDetailsPage
|
|
3400
3368
|
);
|
|
3401
3369
|
const RootBusinessDetailsPage = lazy(
|
|
3402
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
3370
|
+
async () => (await import("./RootBusinessDetailsPage-q_6wAcer.js")).RootBusinessDetailsPage
|
|
3403
3371
|
);
|
|
3404
3372
|
const SoleProprietorshipPage = lazy(
|
|
3405
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
3373
|
+
async () => (await import("./SoleProprietorshipPage-CRcJSpn9.js")).SoleProprietorshipPage
|
|
3406
3374
|
);
|
|
3407
3375
|
const TrustMemberCompanyPage = lazy(
|
|
3408
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
3376
|
+
async () => (await import("./TrustMemberCompanyPage-oLNhg0hg.js")).TrustMemberCompanyPage
|
|
3409
3377
|
);
|
|
3410
3378
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
3411
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
3379
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
3412
3380
|
);
|
|
3413
3381
|
const BusinessFinancingPage = lazy(
|
|
3414
|
-
async () => (await import("./BusinessFinancingPage-
|
|
3382
|
+
async () => (await import("./BusinessFinancingPage-BPD2cSDR.js")).BusinessFinancingPage
|
|
3415
3383
|
);
|
|
3416
3384
|
const TrustDetailsPage = lazy(
|
|
3417
|
-
async () => (await import("./TrustDetailsPage-
|
|
3385
|
+
async () => (await import("./TrustDetailsPage-CGiiTbfR.js")).TrustDetailsPage
|
|
3418
3386
|
);
|
|
3419
3387
|
const SourceOfFundsPage = lazy(
|
|
3420
|
-
async () => (await import("./SourceOfFundsPage-
|
|
3388
|
+
async () => (await import("./SourceOfFundsPage-BxLGXTHb.js")).SourceOfFundsPage
|
|
3421
3389
|
);
|
|
3422
3390
|
const RootIndividualDetailsPage = lazy(
|
|
3423
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
3391
|
+
async () => (await import("./RootIndividualDetailsPage-CiXgSJsV.js")).RootIndividualDetailsPage
|
|
3424
3392
|
);
|
|
3425
3393
|
const LegalRepresentativeDetailsPage = lazy(
|
|
3426
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
3394
|
+
async () => (await import("./LegalRepresentativeDetailsPage-rS5K4657.js")).LegalRepresentativeDetailsPage
|
|
3427
3395
|
);
|
|
3428
3396
|
const TrustMemberIndividualPage = lazy(
|
|
3429
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
3397
|
+
async () => (await import("./TrustMemberIndividualPage-Bgsis586.js")).TrustMemberIndividualPage
|
|
3430
3398
|
);
|
|
3431
3399
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
3432
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
3400
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-DPE3grqL.js")).UnincorporatedPartnershipIndividualPage
|
|
3433
3401
|
);
|
|
3434
3402
|
const DecisionMakerDetailsPage = lazy(
|
|
3435
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
3403
|
+
async () => (await import("./DecisionMakerDetailsPage-BN-H1sJF.js")).DecisionMakerDetailsPage
|
|
3436
3404
|
);
|
|
3437
3405
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
3438
3406
|
const logger = createLogger();
|
|
@@ -3442,7 +3410,6 @@ function DropinComposer({
|
|
|
3442
3410
|
onNavigate = noop,
|
|
3443
3411
|
openBankingPartnerConfigId
|
|
3444
3412
|
}) {
|
|
3445
|
-
var _a;
|
|
3446
3413
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
3447
3414
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
3448
3415
|
const userEvents = useAnalyticsContext();
|
|
@@ -3470,10 +3437,7 @@ function DropinComposer({
|
|
|
3470
3437
|
const taskTypes = taskTypesSignal.value;
|
|
3471
3438
|
const { data: rawTaskTypes, isLoading: isLoadingConfiguration } = useTaskTypes();
|
|
3472
3439
|
useEffect(() => {
|
|
3473
|
-
|
|
3474
|
-
(item) => item === "COMPANY" ? TaskTypes.BUSINESS_DETAILS : item
|
|
3475
|
-
);
|
|
3476
|
-
if (rawTaskTypes) setTaskTypes(taskListWithoutCompany);
|
|
3440
|
+
if (rawTaskTypes) setTaskTypes(rawTaskTypes);
|
|
3477
3441
|
}, [rawTaskTypes, setTaskTypes]);
|
|
3478
3442
|
const { data: legalEntityData, refetch: refetchLegalEntity } = useLegalEntity(
|
|
3479
3443
|
legalEntityResponse.id,
|
|
@@ -3539,7 +3503,6 @@ function DropinComposer({
|
|
|
3539
3503
|
navigateTo
|
|
3540
3504
|
});
|
|
3541
3505
|
const handleSingpassSelectionNextClick = async (method) => {
|
|
3542
|
-
var _a2;
|
|
3543
3506
|
if (method === "singpass") {
|
|
3544
3507
|
try {
|
|
3545
3508
|
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
@@ -3548,7 +3511,7 @@ function DropinComposer({
|
|
|
3548
3511
|
}
|
|
3549
3512
|
setHasSeenSingpassSelection(true);
|
|
3550
3513
|
singpassTabRef.current = window.open(authUrl, "_blank");
|
|
3551
|
-
|
|
3514
|
+
singpassTabRef.current?.focus();
|
|
3552
3515
|
} catch (e) {
|
|
3553
3516
|
logger.error(e);
|
|
3554
3517
|
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
@@ -3601,7 +3564,7 @@ function DropinComposer({
|
|
|
3601
3564
|
}
|
|
3602
3565
|
};
|
|
3603
3566
|
const handleOnSubmit = async (data, backStepCount) => {
|
|
3604
|
-
onSubmit
|
|
3567
|
+
onSubmit?.(data);
|
|
3605
3568
|
await refetchLegalEntity();
|
|
3606
3569
|
navigateBack(backStepCount);
|
|
3607
3570
|
};
|
|
@@ -3639,29 +3602,27 @@ function DropinComposer({
|
|
|
3639
3602
|
handleSingpassMyInfoLoginReset();
|
|
3640
3603
|
},
|
|
3641
3604
|
onClick: async () => {
|
|
3642
|
-
var _a2;
|
|
3643
3605
|
try {
|
|
3644
3606
|
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
3645
3607
|
singpassTabRef.current = window.open(authUrl);
|
|
3646
|
-
|
|
3608
|
+
singpassTabRef.current?.focus();
|
|
3647
3609
|
} catch (e) {
|
|
3648
3610
|
logger.error(e);
|
|
3649
3611
|
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
3650
3612
|
}
|
|
3651
3613
|
},
|
|
3652
3614
|
onMessage: async ({ data: { isSuccessful } }) => {
|
|
3653
|
-
var _a2;
|
|
3654
3615
|
if (isSuccessful) {
|
|
3655
3616
|
handleSingpassMyInfoLoginSuccess();
|
|
3656
3617
|
await refetchLegalEntity();
|
|
3657
|
-
|
|
3618
|
+
singpassTabRef.current?.close();
|
|
3658
3619
|
} else {
|
|
3659
3620
|
handleSingpassMyInfoLoginFailure(
|
|
3660
3621
|
legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
|
|
3661
3622
|
);
|
|
3662
3623
|
}
|
|
3663
3624
|
},
|
|
3664
|
-
legalEntityType: legalEntityResponse
|
|
3625
|
+
legalEntityType: legalEntityResponse?.type
|
|
3665
3626
|
}
|
|
3666
3627
|
) : void 0;
|
|
3667
3628
|
if (isLoadingConfiguration) {
|
|
@@ -3669,7 +3630,7 @@ function DropinComposer({
|
|
|
3669
3630
|
}
|
|
3670
3631
|
switch (currentTask) {
|
|
3671
3632
|
case TaskTypes.BUSINESS_TYPE_SELECTION:
|
|
3672
|
-
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center
|
|
3633
|
+
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-display-flex adyen-kyc-u-justify-content-center", children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3673
3634
|
BusinessTypeSelectionPage,
|
|
3674
3635
|
{
|
|
3675
3636
|
onComplete: async (newAccountHolder) => {
|
|
@@ -3722,7 +3683,7 @@ function DropinComposer({
|
|
|
3722
3683
|
RootIndividualDetailsPage,
|
|
3723
3684
|
{
|
|
3724
3685
|
onSubmit: async (data) => {
|
|
3725
|
-
onSubmit
|
|
3686
|
+
onSubmit?.(data);
|
|
3726
3687
|
await refetchLegalEntity();
|
|
3727
3688
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3728
3689
|
setTargetLegalEntityType(void 0);
|
|
@@ -3747,13 +3708,13 @@ function DropinComposer({
|
|
|
3747
3708
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3748
3709
|
DecisionMakerDetailsPage,
|
|
3749
3710
|
{
|
|
3750
|
-
decisionMakerId: currentDecisionMaker
|
|
3711
|
+
decisionMakerId: currentDecisionMaker?.id,
|
|
3751
3712
|
parentCompanyId: parentId,
|
|
3752
3713
|
onSubmit: handleOnSubmit,
|
|
3753
3714
|
handleHomeClick: navigateBack,
|
|
3754
3715
|
trustedFields: singpassTrustedFields,
|
|
3755
3716
|
trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProvider.SINGPASS : void 0,
|
|
3756
|
-
trustedRoles:
|
|
3717
|
+
trustedRoles: trustedEntityAssociations.find((ea) => ea.reference === currentDecisionMaker?.id)?.types || []
|
|
3757
3718
|
}
|
|
3758
3719
|
) });
|
|
3759
3720
|
case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
|
|
@@ -3774,9 +3735,9 @@ function DropinComposer({
|
|
|
3774
3735
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3775
3736
|
TrustMemberIndividualPage,
|
|
3776
3737
|
{
|
|
3777
|
-
memberId: currentTrustMemberLe
|
|
3738
|
+
memberId: currentTrustMemberLe?.id,
|
|
3778
3739
|
trustId: trust.id,
|
|
3779
|
-
newMember:
|
|
3740
|
+
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3780
3741
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3781
3742
|
handleBackClick: navigateBack,
|
|
3782
3743
|
handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
@@ -3787,7 +3748,7 @@ function DropinComposer({
|
|
|
3787
3748
|
RootBusinessDetailsPage,
|
|
3788
3749
|
{
|
|
3789
3750
|
onSubmit: async (data) => {
|
|
3790
|
-
onSubmit
|
|
3751
|
+
onSubmit?.(data);
|
|
3791
3752
|
await refetchLegalEntity();
|
|
3792
3753
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3793
3754
|
setTargetLegalEntityType(void 0);
|
|
@@ -3801,8 +3762,8 @@ function DropinComposer({
|
|
|
3801
3762
|
TrustMemberCompanyPage,
|
|
3802
3763
|
{
|
|
3803
3764
|
trustId: trust.id,
|
|
3804
|
-
trustMemberCompanyId: currentTrustMemberLe
|
|
3805
|
-
newMember:
|
|
3765
|
+
trustMemberCompanyId: currentTrustMemberLe?.id,
|
|
3766
|
+
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3806
3767
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3807
3768
|
handleHomeClick: navigateBack,
|
|
3808
3769
|
isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
|
|
@@ -3826,7 +3787,7 @@ function DropinComposer({
|
|
|
3826
3787
|
TrustDetailsPage,
|
|
3827
3788
|
{
|
|
3828
3789
|
taskType: TaskTypes.TRUST,
|
|
3829
|
-
trustId: trust
|
|
3790
|
+
trustId: trust?.id,
|
|
3830
3791
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3831
3792
|
handleHomeClick: navigateBack
|
|
3832
3793
|
}
|
|
@@ -3849,7 +3810,7 @@ function DropinComposer({
|
|
|
3849
3810
|
TrustMemberRoleAndTypePage,
|
|
3850
3811
|
{
|
|
3851
3812
|
trustId: trust.id,
|
|
3852
|
-
memberId: currentTrustMemberLe
|
|
3813
|
+
memberId: currentTrustMemberLe?.id,
|
|
3853
3814
|
navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
|
|
3854
3815
|
navigateBack: async () => {
|
|
3855
3816
|
await refetchTrust();
|
|
@@ -3862,7 +3823,7 @@ function DropinComposer({
|
|
|
3862
3823
|
TrustDetailsPage,
|
|
3863
3824
|
{
|
|
3864
3825
|
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
|
|
3865
|
-
trustId: unincorporatedPartnership
|
|
3826
|
+
trustId: unincorporatedPartnership?.id,
|
|
3866
3827
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3867
3828
|
handleHomeClick: navigateBack
|
|
3868
3829
|
}
|
|
@@ -3874,8 +3835,8 @@ function DropinComposer({
|
|
|
3874
3835
|
navigateBackToTaskList: navigateBack,
|
|
3875
3836
|
navigateToEditMember: (member) => onNavigateToMember({
|
|
3876
3837
|
selectedMember: member,
|
|
3877
|
-
selectedEntityType: member
|
|
3878
|
-
selectedRoles: member
|
|
3838
|
+
selectedEntityType: member?.legalEntityType,
|
|
3839
|
+
selectedRoles: member?.roles,
|
|
3879
3840
|
roleAndType: true
|
|
3880
3841
|
}),
|
|
3881
3842
|
navigateToEditMemberOwner: (memberOwnerId, memberId) => {
|
|
@@ -3893,10 +3854,10 @@ function DropinComposer({
|
|
|
3893
3854
|
UnincorporatedPartnershipMemberCompanyPage,
|
|
3894
3855
|
{
|
|
3895
3856
|
partnershipId: unincorporatedPartnership.id,
|
|
3896
|
-
partnershipMemberCompanyId: unincorporatedPartnershipMember
|
|
3857
|
+
partnershipMemberCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3897
3858
|
newMember: (
|
|
3898
3859
|
// empty string for legalEntityId means it's a new member
|
|
3899
|
-
|
|
3860
|
+
unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0
|
|
3900
3861
|
),
|
|
3901
3862
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3902
3863
|
handleHomeClick: navigateBack,
|
|
@@ -3908,7 +3869,7 @@ function DropinComposer({
|
|
|
3908
3869
|
DecisionMakerDetailsPage,
|
|
3909
3870
|
{
|
|
3910
3871
|
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
3911
|
-
parentCompanyId: unincorporatedPartnershipMember
|
|
3872
|
+
parentCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3912
3873
|
decisionMakerId: currentDecisionMakerId,
|
|
3913
3874
|
onSubmit: async (data) => {
|
|
3914
3875
|
await handleOnSubmit(data);
|
|
@@ -3921,7 +3882,7 @@ function DropinComposer({
|
|
|
3921
3882
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3922
3883
|
UnincorporatedPartnershipIndividualPage,
|
|
3923
3884
|
{
|
|
3924
|
-
memberId: unincorporatedPartnershipMember
|
|
3885
|
+
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3925
3886
|
partnershipId: unincorporatedPartnership.id,
|
|
3926
3887
|
member: unincorporatedPartnershipMember,
|
|
3927
3888
|
onSubmit: (data) => {
|
|
@@ -3936,7 +3897,7 @@ function DropinComposer({
|
|
|
3936
3897
|
return /* @__PURE__ */ jsx(
|
|
3937
3898
|
UnincorporatedPartnershipMemberRoleAndTypePage,
|
|
3938
3899
|
{
|
|
3939
|
-
memberId: unincorporatedPartnershipMember
|
|
3900
|
+
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3940
3901
|
onNavigateToMember,
|
|
3941
3902
|
navigateBack: async () => {
|
|
3942
3903
|
await refetchUnincorporatedPartnership();
|
|
@@ -3950,7 +3911,7 @@ function DropinComposer({
|
|
|
3950
3911
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3951
3912
|
SoleProprietorshipPage,
|
|
3952
3913
|
{
|
|
3953
|
-
solePropId: soleProp
|
|
3914
|
+
solePropId: soleProp?.id,
|
|
3954
3915
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3955
3916
|
handleHomeClick: navigateBack,
|
|
3956
3917
|
isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
|
|
@@ -3972,7 +3933,7 @@ function DropinComposer({
|
|
|
3972
3933
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3973
3934
|
LegalRepresentativeDetailsPage,
|
|
3974
3935
|
{
|
|
3975
|
-
legalRepresentativeId: associatedLegalRepresentative
|
|
3936
|
+
legalRepresentativeId: associatedLegalRepresentative?.id,
|
|
3976
3937
|
onSubmit: handleOnSubmit,
|
|
3977
3938
|
handleHomeClick: navigateBack
|
|
3978
3939
|
}
|
|
@@ -3990,7 +3951,7 @@ function DropinComposer({
|
|
|
3990
3951
|
BusinessFinancingPage,
|
|
3991
3952
|
{
|
|
3992
3953
|
onSubmit: async (data) => {
|
|
3993
|
-
onSubmit
|
|
3954
|
+
onSubmit?.(data);
|
|
3994
3955
|
await refetchLegalEntity();
|
|
3995
3956
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3996
3957
|
},
|
|
@@ -4024,9 +3985,9 @@ export {
|
|
|
4024
3985
|
EntityGuidanceStatus as E,
|
|
4025
3986
|
OnboardingDropinComponent as O,
|
|
4026
3987
|
useLegalEntityType as a,
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3988
|
+
allowIndividualWithoutSoleProp as b,
|
|
3989
|
+
useDataMissingRemediations as c,
|
|
3990
|
+
EntityAssociation as d,
|
|
4030
3991
|
useTrustMembers as e,
|
|
4031
3992
|
iconStatus as i,
|
|
4032
3993
|
normalizedTaskStatusStore as n,
|