@adyen/kyc-components 4.0.0-beta.1 → 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-BQ4Yct7L.js → AcceptTermsOfServiceComponent-i222mdxX.js} +53 -49
- package/dist/{AccountSetupRejected-UVhxMcAe.js → AccountSetupRejected-DHph9lFl.js} +6 -6
- package/dist/{Avatar-NEiNEcRx.js → Avatar-vCjWXfC7.js} +2 -2
- package/dist/{BusinessDetailsDropin-l0xfPekL.js → BusinessDetailsDropin-DQcfiSR8.js} +333 -287
- package/dist/{BusinessFinancingComponent-Bs-poF2d.js → BusinessFinancingComponent-DC3jzBrq.js} +3 -3
- package/dist/{BusinessFinancingDropin-DoRzdS4n.js → BusinessFinancingDropin-D2lMEbNh.js} +161 -264
- package/dist/{BusinessFinancingPage-DSlmJmOK.js → BusinessFinancingPage-BPD2cSDR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Bmi_8K2g.js → BusinessTypeSelectionPage-Cdp8joPJ.js} +82 -87
- package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
- package/dist/{ContractViewer-R4-gfVmp.js → ContractViewer-B0bZ14Ts.js} +305 -296
- package/dist/{CreateIndividualComponent-D3aXuYRk.js → CreateIndividualComponent-D9wnexv4.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-C-ncZ-A8.js → CreateTransferInstrumentComponent-COzPdQjC.js} +4 -4
- package/dist/{CustomerSupport-CMFRgQNa.js → CustomerSupport-NGBoBg3N.js} +27 -32
- package/dist/{DebugModal-BEmhG3UP.js → DebugModal-I2U6TjGT.js} +43 -35
- package/dist/{DecisionMakerDetailsPage-DI2Ubmef.js → DecisionMakerDetailsPage-BN-H1sJF.js} +3 -3
- package/dist/{DecisionMakers-BKhtcs_K.js → DecisionMakers-CZ5-IRtU.js} +128 -23
- package/dist/{EmbeddedStatus-BsZsXbKc.js → EmbeddedStatus-Blr0seRl.js} +6 -6
- package/dist/FormEndState-JB6QFSet.js +59 -0
- package/dist/{FormFlow-Bt-mu4Wm.js → FormFlow-DjvdNEiV.js} +18 -19
- package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
- package/dist/{IndividualOnfidoDropin-DGMCOm9M.js → IndividualOnfidoDropin-DHhyO2ai.js} +732 -739
- package/dist/{Introduction-DJ6qIUPC.js → Introduction-erRXgreE.js} +32 -34
- package/dist/LandingLayout-B45lEjOv.js +84 -0
- package/dist/{LegalRepresentativeDetailsPage-CyHwQR_W.js → LegalRepresentativeDetailsPage-rS5K4657.js} +3 -3
- package/dist/{ManageIndividualComponent-BIMCvcr2.js → ManageIndividualComponent-BEzE5lkX.js} +8 -12
- package/dist/{ManagePCIComponent-Blj60xLa.js → ManagePCIComponent-BgdGfAuT.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-CsM23jq3.js → ManageTermsOfServiceComponent-BWkwy6YC.js} +7 -8
- package/dist/{ManageTransferInstrumentComponent-Vut9_bRn.js → ManageTransferInstrumentComponent-B8kRNftW.js} +21 -29
- package/dist/{OnboardingDropinComponent-BW6er2HU.js → OnboardingDropinComponent-DBW5N3Dr.js} +243 -281
- package/dist/{ProviderButton-DAsW5EVa.js → ProviderButton-B58n0cRC.js} +12 -13
- package/dist/{Review-DWDbL9-9.js → Review-O6Al47Cu.js} +11 -11
- package/dist/{RootBusinessDetailsPage-BTYIldSf.js → RootBusinessDetailsPage-q_6wAcer.js} +3 -3
- package/dist/{RootIndividualDetailsPage-DCxJ3ycQ.js → RootIndividualDetailsPage-CiXgSJsV.js} +3 -3
- package/dist/{SignPCIComponent-kHaxhkWa.js → SignPCIComponent-cqRNhGdl.js} +17 -19
- package/dist/{SingpassSelection-Dmlbiq4Z.js → SingpassSelection-BWEJ3Yi-.js} +6 -9
- package/dist/{SoleProprietorshipPage-Bdhs90-q.js → SoleProprietorshipPage-CRcJSpn9.js} +3 -3
- package/dist/{SourceOfFundsPage-Bj22DAFv.js → SourceOfFundsPage-BxLGXTHb.js} +500 -481
- package/dist/{StoreProvider-BmzY19Td.js → StoreProvider-ClKLaHzy.js} +8753 -10118
- package/dist/{TaskItemStatus-CB6FEOnk.js → TaskItemStatus-DrTIwCTx.js} +14 -14
- package/dist/TaskStatusIndicator-CTtKjo0m.js +69 -0
- package/dist/{TaxReportingDropin-jofokkei.js → TaxReportingDropin-DFZ2ehfk.js} +82 -101
- package/dist/{TileGroup-i5Jc08ns.js → TileGroup-BtE472I1.js} +6 -8
- package/dist/{TrustDetailsPage-B6HmvYUf.js → TrustDetailsPage-CGiiTbfR.js} +71 -73
- package/dist/{TrustMemberCompanyPage-D3VJOq6a.js → TrustMemberCompanyPage-oLNhg0hg.js} +4 -4
- package/dist/{TrustMemberIndividualPage-1aeOYsnG.js → TrustMemberIndividualPage-Bgsis586.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js → UnincorporatedPartnershipIndividualPage-DPE3grqL.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js → UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js} +3 -3
- package/dist/{VerificationErrorAlert-DhtKOmjt.js → VerificationErrorAlert-BBdJmGJu.js} +10 -8
- package/dist/{ViewVerificationStatusComponent-DtKLcCGI.js → ViewVerificationStatusComponent-DDtXG_pM.js} +12 -13
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +135 -118
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +14 -6
- package/dist/adyen-sign-pci.js +8 -15
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- 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 +2 -2
- 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-CQUoQdd2.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-BW8_TEQl.js → getFieldsWithExistingData-BY--eXBQ.js} +3 -4
- package/dist/{hasDataChanged-Mu0HyZ3E.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-DWikzB4g.js → json-Dk6RRAV8.js} +2 -2
- package/dist/{localizeDateString-QtCjf8Fg.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-C-2jp0wg.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-B39yQnOr.js → plaintext-9WNCwUtz.js} +2 -2
- package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
- package/dist/preact/adyen-transfer-instrument.js +1 -1
- 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-Dx0BPNMa.js → resolveEnvironment-DQH1ab0S.js} +3 -3
- 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-CUANHpja.js → rules-CCnLDGvk.js} +43 -70
- 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 +417 -605
- package/dist/styles-CLV89_hH.js +417 -605
- 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/companySelection/useCompanySelection.d.ts +18 -1
- package/dist/types/api/configurations/useScenarios.d.ts +6 -6
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +4 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5 -307
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +2 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
- 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/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/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/Summary/Summary.d.ts +0 -1
- 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/types.d.ts +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
- 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/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/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -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/ui/atoms/Accordion/Accordion.d.ts +1 -2
- 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/Field/Field.d.ts +3 -6
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +9 -12
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +4 -4
- 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/svgs.d.ts +6 -0
- 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/Card/Card.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -4
- 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/FormEndState/FormEndState.d.ts +0 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
- package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +8 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
- package/dist/types/core/UIElement/UIElement.d.ts +1 -0
- package/dist/types/core/models/api/financialReport.d.ts +2 -2
- package/dist/types/core/models/api/get-scenarios.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +10 -2
- package/dist/types/core/models/api/organization.d.ts +8 -0
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +5 -3
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/hooks/useForm/types.d.ts +0 -2
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
- package/dist/types/hooks/useMultiForm/types.d.ts +36 -34
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- 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 +11 -2
- package/dist/types/types/datasets/country-code.d.ts +249 -249
- package/dist/types/utils/entityAssociationUtil.d.ts +1 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
- package/dist/types/utils/regex/patternValidators.d.ts +2 -0
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
- package/dist/types/utils/urlUtils.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{useMultiForm-Bwx2nVhh.js → useMultiForm-KQwxav4F.js} +158 -135
- package/dist/{useOnboardingStatus-Cwba-HzS.js → useOnboardingStatus-BMyj9Pwn.js} +1 -1
- package/dist/{useSalesChannelsSettings-BLzegVJh.js → useSalesChannelsSettings-43TfSoxc.js} +2 -2
- package/dist/{useTermsOfServiceStatus-C-i9mF4m.js → useTermsOfServiceStatus-CBHKWYSb.js} +1 -1
- package/dist/{useUpdateLegalEntity-xQlAqIqy.js → useUpdateLegalEntity-D8dw9Oc3.js} +2 -2
- package/dist/{utils-DXv7uAh6.js → utils-CL9qlD-O.js} +18 -11
- package/dist/{validate-BN5p-GhK.js → validate-CeF0YKvL.js} +2 -2
- package/dist/vue/adyen-transfer-instrument.js +5 -4
- package/dist/{yaml-jFdy-qnY.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 +28 -27
- package/dist/FormEndState-C3HCmXcw.js +0 -32
- package/dist/SourceOfFunds.module-xwHIboir.js +0 -128
- package/dist/bg-BG-COTwZXwN.js +0 -2040
- package/dist/cs-CZ-DUlgJKVq.js +0 -2040
- package/dist/da-DK-BDzDHhVR.js +0 -2040
- package/dist/de-DE-B3TpRjZX.js +0 -994
- package/dist/de-DE-DJdgXqS_.js +0 -2040
- package/dist/el-GR-CFEuLvxK.js +0 -994
- package/dist/el-GR-D5i9BNyh.js +0 -2040
- package/dist/en-US-ghR-1_C2.js +0 -994
- package/dist/es-ES-BtWn2FOQ.js +0 -994
- package/dist/es-ES-VOSWszW5.js +0 -2040
- package/dist/et-EE-Bp4Ngsn4.js +0 -2040
- package/dist/fi-FI-DaujOE-a.js +0 -2040
- package/dist/fr-FR-BdPZxk11.js +0 -2040
- package/dist/fr-FR-HvIkGqJf.js +0 -994
- package/dist/hr-HR-BY7C7NxY.js +0 -2040
- package/dist/hu-HU-DHCty-Tc.js +0 -2040
- package/dist/it-IT-BMsuhZEQ.js +0 -2040
- package/dist/it-IT-CjbZahlB.js +0 -994
- package/dist/ja-JP-4jufT0xh.js +0 -994
- package/dist/ja-JP-BYDz1z2G.js +0 -2040
- package/dist/lt-LT-DNJ9V9xV.js +0 -2040
- package/dist/lv-LV-CFJwN5wq.js +0 -2040
- package/dist/nl-NL-B3xjfpMi.js +0 -994
- package/dist/nl-NL-DibAf790.js +0 -2040
- package/dist/no-NO-DHCy5rXx.js +0 -2040
- package/dist/pl-PL-eZBNH5HH.js +0 -2040
- package/dist/pt-PT-BpYDD-PX.js +0 -994
- package/dist/pt-PT-CiN_Wmfe.js +0 -2040
- package/dist/ro-RO-CgyMTvLc.js +0 -2040
- package/dist/ru-RU-BlgIj-Q4.js +0 -994
- package/dist/sk-SK-B5qlQB_U.js +0 -2040
- package/dist/sl-SI-8PPfrGzL.js +0 -2040
- package/dist/sv-SE-7lcf_fB9.js +0 -994
- package/dist/sv-SE-ZWLw6D3j.js +0 -2040
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +0 -5
- package/dist/types/utils/sanitizeHtml.d.ts +0 -3
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
- package/dist/zh-CN-xYZH718R.js +0 -994
- package/dist/zh-TW-DqBBNurv.js +0 -994
package/dist/{OnboardingDropinComponent-BW6er2HU.js → OnboardingDropinComponent-DBW5N3Dr.js}
RENAMED
|
@@ -2,25 +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 { p as useApiContext, q as useQuery, r as httpGet, t as useLocalStorage, v as getLegalRepresentative,
|
|
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 useSingpassMyInfoLogin } from "./ProviderButton-
|
|
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 useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-
|
|
16
|
+
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-43TfSoxc.js";
|
|
17
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-CBHKWYSb.js";
|
|
18
18
|
import { signal } from "@preact/signals";
|
|
19
19
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
20
|
-
import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-
|
|
21
|
-
import { A as Avatar } from "./Avatar-
|
|
22
|
-
import { T as TaskItemStatus } from "./TaskItemStatus-
|
|
23
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
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";
|
|
24
24
|
import { T as Tag } from "./Tag-DdkVScyr.js";
|
|
25
25
|
const getTaskTypes = async (id, baseUrl) => {
|
|
26
26
|
return httpGet({
|
|
@@ -60,7 +60,7 @@ const useAssociatedLegalRepresentative = (legalEntity) => {
|
|
|
60
60
|
return getLegalRepresentative(legalEntity);
|
|
61
61
|
}, [legalEntity]);
|
|
62
62
|
const { data } = useLegalEntity(
|
|
63
|
-
doesLegalEntityRequiresLegalRepresentative(legalEntity) &&
|
|
63
|
+
doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken
|
|
64
64
|
);
|
|
65
65
|
return data;
|
|
66
66
|
};
|
|
@@ -97,6 +97,7 @@ const SingpassBanner = ({
|
|
|
97
97
|
onMessage,
|
|
98
98
|
legalEntityType
|
|
99
99
|
}) => {
|
|
100
|
+
const { t } = useTranslation();
|
|
100
101
|
const { baseUrl } = useApiContext();
|
|
101
102
|
const singpassEventListener = useCallback(
|
|
102
103
|
(event) => {
|
|
@@ -114,7 +115,6 @@ const SingpassBanner = ({
|
|
|
114
115
|
channel.onmessage = onMessage;
|
|
115
116
|
return () => channel.close();
|
|
116
117
|
}, [channel, onMessage]);
|
|
117
|
-
const { i18n } = useI18nContext();
|
|
118
118
|
if (isLoading) {
|
|
119
119
|
return /* @__PURE__ */ jsx(Skeleton, {});
|
|
120
120
|
}
|
|
@@ -125,18 +125,26 @@ const SingpassBanner = ({
|
|
|
125
125
|
Alert,
|
|
126
126
|
{
|
|
127
127
|
variant: "success",
|
|
128
|
-
title: successTitleText &&
|
|
128
|
+
title: successTitleText && t(($) => $[successTitleText]),
|
|
129
129
|
onClose: onAlertClose,
|
|
130
|
-
children: successContentText &&
|
|
130
|
+
children: successContentText && t(($) => $[successContentText])
|
|
131
131
|
}
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
const providerName = legalEntityTypeToProviderButtonKey[legalEntityType];
|
|
135
135
|
if (errorMessage) {
|
|
136
|
-
return /* @__PURE__ */ jsx(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
+
);
|
|
140
148
|
}
|
|
141
149
|
const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
|
|
142
150
|
return /* @__PURE__ */ jsxs(
|
|
@@ -144,9 +152,9 @@ const SingpassBanner = ({
|
|
|
144
152
|
{
|
|
145
153
|
className: cx("adyen-task-list-singpass-banner"),
|
|
146
154
|
icon: false,
|
|
147
|
-
title:
|
|
155
|
+
title: t(($) => $["getSetUpInstantly"]),
|
|
148
156
|
children: [
|
|
149
|
-
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]) }),
|
|
150
158
|
providerName && /* @__PURE__ */ jsx(ProviderButton, { provider: providerName, onClick, fullWidth: true })
|
|
151
159
|
]
|
|
152
160
|
}
|
|
@@ -244,7 +252,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
244
252
|
if (accountHolder) {
|
|
245
253
|
return accountHolder;
|
|
246
254
|
}
|
|
247
|
-
if (!
|
|
255
|
+
if (!legalEntityResponse?.type) return void 0;
|
|
248
256
|
if (hasOwnEntityAssociationOfType(
|
|
249
257
|
LegalEntityType.SOLE_PROPRIETORSHIP,
|
|
250
258
|
legalEntityResponse.entityAssociations,
|
|
@@ -270,7 +278,7 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
270
278
|
return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
|
|
271
279
|
}
|
|
272
280
|
};
|
|
273
|
-
const allowIndividualWithoutSoleProp = (capabilities) => !
|
|
281
|
+
const allowIndividualWithoutSoleProp = (capabilities) => !capabilities?.map((c) => c.replace("Commercial", "").replace("Consumer", "")).some((c) => capabilitiesToPreventTypeChange.includes(c));
|
|
274
282
|
const businessTypeMapping = {
|
|
275
283
|
myName: {
|
|
276
284
|
[LegalEntityType.INDIVIDUAL]: "individual"
|
|
@@ -307,35 +315,33 @@ const companyTypesMapping = {
|
|
|
307
315
|
/* SOLE_PROPRIETORSHIP */
|
|
308
316
|
};
|
|
309
317
|
const useBusinessSetup = (legalEntityResponse) => {
|
|
310
|
-
var _a, _b;
|
|
311
318
|
const { accountHolder } = useAccountHolder();
|
|
312
319
|
const accountHolderType = accountHolder || getDefaultAccountHolderType(legalEntityResponse);
|
|
313
|
-
const organizationType =
|
|
314
|
-
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];
|
|
315
322
|
return businessSetup;
|
|
316
323
|
};
|
|
317
324
|
function useDataMissingRemediations({
|
|
318
325
|
legalEntityId,
|
|
319
326
|
problems
|
|
320
327
|
}) {
|
|
321
|
-
const {
|
|
328
|
+
const { t } = useTranslation();
|
|
322
329
|
const decisionMakersRemediationMessage = useMemo(() => {
|
|
323
|
-
|
|
324
|
-
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) => {
|
|
325
331
|
const remediation = DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING[error.code];
|
|
326
332
|
return remediation ? [...remediations, remediation] : remediations;
|
|
327
333
|
}, []);
|
|
328
334
|
const uniqueRemediations = [...new Set(remediationCodes)];
|
|
329
|
-
switch (uniqueRemediations
|
|
335
|
+
switch (uniqueRemediations?.length) {
|
|
330
336
|
case void 0:
|
|
331
337
|
case 0:
|
|
332
338
|
return void 0;
|
|
333
339
|
case 1:
|
|
334
|
-
return uniqueRemediations[0] ?
|
|
340
|
+
return uniqueRemediations[0] ? t(($) => $[`remediationMessage_${uniqueRemediations[0]}`]) : t(($) => $["missingMultipleDecisionMakers"]);
|
|
335
341
|
default:
|
|
336
|
-
return
|
|
342
|
+
return t(($) => $["missingMultipleDecisionMakers"]);
|
|
337
343
|
}
|
|
338
|
-
}, [problems,
|
|
344
|
+
}, [problems, t, legalEntityId]);
|
|
339
345
|
return {
|
|
340
346
|
remediationMessages: {
|
|
341
347
|
[TaskTypes.DECISION_MAKER]: decisionMakersRemediationMessage
|
|
@@ -344,8 +350,7 @@ function useDataMissingRemediations({
|
|
|
344
350
|
}
|
|
345
351
|
const logger$2 = createLogger();
|
|
346
352
|
const normalizeTaskStatuses = (taskStatuses) => {
|
|
347
|
-
|
|
348
|
-
return (_a = taskStatuses == null ? void 0 : taskStatuses.statuses) == null ? void 0 : _a.reduce((acc, currentTask) => {
|
|
353
|
+
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
349
354
|
const status = TaskStatus[currentTask.status];
|
|
350
355
|
const statusEntries = currentTask.taskStatusEntries;
|
|
351
356
|
acc[currentTask.type] = {
|
|
@@ -358,11 +363,11 @@ const normalizeTaskStatuses = (taskStatuses) => {
|
|
|
358
363
|
const TASK_STATUS_POLLING_INTERVAL_MS = 3e3;
|
|
359
364
|
const TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS = 6e3;
|
|
360
365
|
const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
|
|
361
|
-
const taskStatusEntries = payinPayoutTaskStatus
|
|
362
|
-
const taskStatusEntry = taskStatusEntries
|
|
366
|
+
const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
|
|
367
|
+
const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
|
|
363
368
|
if (!taskStatusEntry) {
|
|
364
369
|
logger$2.warn(`No task status for this account: ${accountId}`);
|
|
365
|
-
return
|
|
370
|
+
return payinPayoutTaskStatus?.status ?? TaskStatus.PROCESSING;
|
|
366
371
|
}
|
|
367
372
|
return TaskStatus[taskStatusEntry.status];
|
|
368
373
|
};
|
|
@@ -377,7 +382,7 @@ const Remove = ({
|
|
|
377
382
|
handleIsRemoveDisabled,
|
|
378
383
|
label
|
|
379
384
|
}) => {
|
|
380
|
-
const {
|
|
385
|
+
const { t } = useTranslation();
|
|
381
386
|
const [undoTimer, setUndoTimer] = useState(5);
|
|
382
387
|
const [isRemoving, setIsRemoving] = useState(false);
|
|
383
388
|
useEffect(() => {
|
|
@@ -396,13 +401,13 @@ const Remove = ({
|
|
|
396
401
|
event.preventDefault();
|
|
397
402
|
if (!isRemoving) {
|
|
398
403
|
setIsRemoving(true);
|
|
399
|
-
onRemoveStatusChange
|
|
400
|
-
handleIsRemoveDisabled
|
|
404
|
+
onRemoveStatusChange?.(true);
|
|
405
|
+
handleIsRemoveDisabled?.(true);
|
|
401
406
|
} else {
|
|
402
407
|
setUndoTimer(5);
|
|
403
408
|
setIsRemoving(false);
|
|
404
|
-
onRemoveStatusChange
|
|
405
|
-
handleIsRemoveDisabled
|
|
409
|
+
onRemoveStatusChange?.(false);
|
|
410
|
+
handleIsRemoveDisabled?.(false);
|
|
406
411
|
}
|
|
407
412
|
};
|
|
408
413
|
useEffect(() => {
|
|
@@ -410,15 +415,15 @@ const Remove = ({
|
|
|
410
415
|
(async () => {
|
|
411
416
|
setIsRemoving(false);
|
|
412
417
|
await onRemove();
|
|
413
|
-
onRemoveStatusChange
|
|
414
|
-
handleIsRemoveDisabled
|
|
418
|
+
onRemoveStatusChange?.(false);
|
|
419
|
+
handleIsRemoveDisabled?.(false);
|
|
415
420
|
})();
|
|
416
421
|
}
|
|
417
422
|
}, [undoTimer, isRemoving, onRemoveStatusChange, handleIsRemoveDisabled, onRemove]);
|
|
418
|
-
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(
|
|
419
424
|
IconButton,
|
|
420
425
|
{
|
|
421
|
-
ariaLabel:
|
|
426
|
+
ariaLabel: label && t(($) => $[label]),
|
|
422
427
|
icon: "bin",
|
|
423
428
|
variant: "tertiary",
|
|
424
429
|
onClick: onClickHandler,
|
|
@@ -446,7 +451,7 @@ const TaskListItem = ({
|
|
|
446
451
|
testId,
|
|
447
452
|
enableTracking = true
|
|
448
453
|
}) => {
|
|
449
|
-
const {
|
|
454
|
+
const { t } = useTranslation();
|
|
450
455
|
const userEvents = useAnalyticsContext();
|
|
451
456
|
const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatus.ERROR;
|
|
452
457
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
@@ -458,7 +463,7 @@ const TaskListItem = ({
|
|
|
458
463
|
label: titleKey
|
|
459
464
|
});
|
|
460
465
|
}
|
|
461
|
-
onNavigateToTask
|
|
466
|
+
onNavigateToTask?.();
|
|
462
467
|
};
|
|
463
468
|
const avatarVariant = disabled ? "disabled" : "primary";
|
|
464
469
|
return /* @__PURE__ */ jsx(
|
|
@@ -481,7 +486,7 @@ const TaskListItem = ({
|
|
|
481
486
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__header", children: [
|
|
482
487
|
/* @__PURE__ */ jsxs("div", { className: "adyen-task-item__heading", children: [
|
|
483
488
|
/* @__PURE__ */ jsx(Avatar, { variant: avatarVariant, iconName: icon }),
|
|
484
|
-
/* @__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]) }) })
|
|
485
490
|
] }),
|
|
486
491
|
info && /* @__PURE__ */ jsxs("div", { className: "adyen-task-item__info", children: [
|
|
487
492
|
/* @__PURE__ */ jsx(Icon, { name: "info-circle" }),
|
|
@@ -521,8 +526,7 @@ const PayoutAccountTaskListItem = ({
|
|
|
521
526
|
onNavigateToTask,
|
|
522
527
|
payinPayoutTaskStatus
|
|
523
528
|
}) => {
|
|
524
|
-
|
|
525
|
-
const { i18n } = useI18nContext();
|
|
529
|
+
const { t } = useTranslation();
|
|
526
530
|
const { showToast } = useToastContext();
|
|
527
531
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
528
532
|
const { mutateAsync: deleteTransferInstrument } = useDeleteTransferInstrument();
|
|
@@ -535,9 +539,9 @@ const PayoutAccountTaskListItem = ({
|
|
|
535
539
|
const handleDeleteTransferInstrument = async () => {
|
|
536
540
|
try {
|
|
537
541
|
await deleteTransferInstrument(account.id);
|
|
538
|
-
showToast({ label:
|
|
542
|
+
showToast({ label: t(($) => $["transferInstrumentDeleted"]), variant: "success" });
|
|
539
543
|
} catch {
|
|
540
|
-
showToast({ label:
|
|
544
|
+
showToast({ label: t(($) => $["failedToDeletePayoutAccount"]), variant: "error" });
|
|
541
545
|
}
|
|
542
546
|
};
|
|
543
547
|
return /* @__PURE__ */ jsx(
|
|
@@ -549,7 +553,7 @@ const PayoutAccountTaskListItem = ({
|
|
|
549
553
|
titleKey: "accountNumber",
|
|
550
554
|
title: obscuredAccountNumber,
|
|
551
555
|
status,
|
|
552
|
-
problems:
|
|
556
|
+
problems: capabilityProblems?.BankAccount?.[account.id],
|
|
553
557
|
loading: isDeletingTransferInstrument,
|
|
554
558
|
removeEntity: () => {
|
|
555
559
|
setIsDeletingTransferInstrument(true);
|
|
@@ -592,9 +596,8 @@ function TaskListInner({
|
|
|
592
596
|
capabilityProblems,
|
|
593
597
|
singpassComponent
|
|
594
598
|
}) {
|
|
595
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
596
|
-
const { i18n } = useI18nContext();
|
|
597
599
|
const userEvents = useAnalyticsContext();
|
|
600
|
+
const { t } = useTranslation();
|
|
598
601
|
const { showToast } = useToastContext();
|
|
599
602
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
600
603
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -619,8 +622,8 @@ function TaskListInner({
|
|
|
619
622
|
const { data: taskStatuses } = useTaskStatus({
|
|
620
623
|
refetchInterval: (query) => {
|
|
621
624
|
const { data: response } = query.state || {};
|
|
622
|
-
const statuses = response
|
|
623
|
-
const areAllTasksFinishedOrEmpty =
|
|
625
|
+
const statuses = response?.statuses;
|
|
626
|
+
const areAllTasksFinishedOrEmpty = statuses?.length === 0 || statuses?.every((task) => task.status === TaskStatus[TaskStatus.FINISHED]);
|
|
624
627
|
return areAllTasksFinishedOrEmpty ? TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS : TASK_STATUS_POLLING_INTERVAL_MS;
|
|
625
628
|
}
|
|
626
629
|
});
|
|
@@ -632,39 +635,39 @@ function TaskListInner({
|
|
|
632
635
|
const transferInstrumentLimit = useSetting("transferInstrumentLimit");
|
|
633
636
|
const normalizedTasks = normalizeTaskStatuses(taskStatuses);
|
|
634
637
|
setNormalizedTaskStatusStore(normalizedTasks);
|
|
635
|
-
const payinPayoutTaskStatus =
|
|
636
|
-
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ?
|
|
638
|
+
const payinPayoutTaskStatus = normalizedTasks?.PAYOUT ?? normalizedTasks?.PAYIN;
|
|
639
|
+
const businessDetailsTaskStatus = isExperimentEnabled("EnableBusinessDetailsTaskStatusService") ? normalizedTasks?.BUSINESS_DETAILS?.status ?? TaskStatus.DETAILS_REQUIRED : getTaskStatus2(TaskTypes.BUSINESS_DETAILS);
|
|
637
640
|
const isReview = Boolean(
|
|
638
|
-
|
|
641
|
+
capabilityProblems?.LegalEntity?.[legalEntityResponse.id]?.isReviewRequired
|
|
639
642
|
);
|
|
640
643
|
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
641
644
|
const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
|
|
642
645
|
const hasSoleProprietorship = accountHolder === "mySoleProprietorName" || hasSolePropInLegalEntity(legalEntityResponse);
|
|
643
646
|
const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
|
|
644
647
|
const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
|
|
645
|
-
const transferInstruments =
|
|
646
|
-
const canAddPayoutAccount =
|
|
648
|
+
const transferInstruments = legalEntityResponse?.transferInstruments || [];
|
|
649
|
+
const canAddPayoutAccount = legalEntityResponse?.organization?.legalName || legalEntityResponse?.individual?.name;
|
|
647
650
|
const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
|
|
648
651
|
const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
|
|
649
|
-
const pciHasDocuments = !!
|
|
652
|
+
const pciHasDocuments = !!pciQuestionnaireList?.data?.length;
|
|
650
653
|
const canSignPci = (
|
|
651
654
|
// PCI requires decision makers to be added
|
|
652
|
-
legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!
|
|
655
|
+
legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!legalEntityResponse?.entityAssociations?.length || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!legalEntityResponse?.entityAssociations?.length
|
|
653
656
|
);
|
|
654
|
-
const canDownloadPci = !
|
|
655
|
-
const hasSignedPci = !
|
|
656
|
-
const serviceAgreementTypes =
|
|
657
|
-
const serviceAgreementAcceptanceInfos =
|
|
658
|
-
const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!
|
|
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;
|
|
659
662
|
const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
|
|
660
663
|
const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
|
|
661
664
|
const hasFinancingTasks = tasks.includes(TaskTypes.BUSINESS_FINANCING) || tasks.includes(TaskTypes.SOURCE_OF_FUNDS);
|
|
662
665
|
const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && (serviceAgreementTypes.length > 0 || serviceAgreementAcceptanceInfos.length > 0);
|
|
663
|
-
const showPciTask = tasks.includes(TaskTypes.PCI_DSS) && (canDownloadPci ||
|
|
666
|
+
const showPciTask = tasks.includes(TaskTypes.PCI_DSS) && (canDownloadPci || pciStatus?.signingRequired) && !hidePciTaskExperiment;
|
|
664
667
|
const showContractTasks = hasContractTasks && (showPciTask || showServiceAgreementTask);
|
|
665
668
|
const shouldSignPciFirst = showServiceAgreementTask && showPciTask && !hasSignedPci;
|
|
666
669
|
const areServiceAgreementTasksDisabled = EnableSignPCIBeforeTOS ? !hasServiceAgreementSigners || shouldSignPciFirst : !hasServiceAgreementSigners;
|
|
667
|
-
const isPciTaskDisabled = !
|
|
670
|
+
const isPciTaskDisabled = !pciStatus?.signingRequired || !canSignPci;
|
|
668
671
|
const getBusinessTaskListTitleKey = () => {
|
|
669
672
|
if (hasUnincorporatedPartnership) {
|
|
670
673
|
return "tellUsMoreAboutPrimaryPartner";
|
|
@@ -677,9 +680,8 @@ function TaskListInner({
|
|
|
677
680
|
}
|
|
678
681
|
};
|
|
679
682
|
const getEmptyBankAccountProblems = () => {
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
return transferInstrumentId ? (_c2 = capabilityProblems == null ? void 0 : capabilityProblems.BankAccount) == null ? void 0 : _c2[transferInstrumentId] : void 0;
|
|
683
|
+
const transferInstrumentId = legalEntityResponse?.transferInstruments?.[0]?.id;
|
|
684
|
+
return transferInstrumentId ? capabilityProblems?.BankAccount?.[transferInstrumentId] : void 0;
|
|
683
685
|
};
|
|
684
686
|
const onEditBusinessSetupClick = () => {
|
|
685
687
|
userEvents.addTaskEvent("Clicked button", {
|
|
@@ -703,7 +705,7 @@ function TaskListInner({
|
|
|
703
705
|
})
|
|
704
706
|
);
|
|
705
707
|
} catch {
|
|
706
|
-
showToast({ label:
|
|
708
|
+
showToast({ label: t(($) => $["failedToDownloadPci"]), variant: "error" });
|
|
707
709
|
} finally {
|
|
708
710
|
userEvents.addTaskEvent("Clicked button", {
|
|
709
711
|
task: TaskTypes.PCI_DSS,
|
|
@@ -739,19 +741,17 @@ function TaskListInner({
|
|
|
739
741
|
}
|
|
740
742
|
}, [showDecisionMakersWarning, userEvents]);
|
|
741
743
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-task-list__container", children: [
|
|
742
|
-
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"]) }) }),
|
|
743
745
|
canChangeEntityType && /* @__PURE__ */ jsxs("header", { className: "adyen-task-list__heading", children: [
|
|
744
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children:
|
|
746
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: t(($) => $["setUpYourAccount"]) }),
|
|
745
747
|
/* @__PURE__ */ jsxs(Typography, { el: "p", variant: "title", className: "adyen-task-list__description", children: [
|
|
746
|
-
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children:
|
|
747
|
-
|
|
748
|
-
businessSetup: businessSetup ? i18n.get(businessSetup) : i18n.get("unknown")
|
|
749
|
-
}
|
|
748
|
+
/* @__PURE__ */ jsx(Typography, { el: "span", variant: "body-strongest", children: t(($) => $["yourBusinessSetup"], {
|
|
749
|
+
businessSetup: businessSetup ? t(($) => $[businessSetup]) : t(($) => $["unknown"])
|
|
750
750
|
}) }),
|
|
751
751
|
/* @__PURE__ */ jsx(
|
|
752
752
|
IconButton,
|
|
753
753
|
{
|
|
754
|
-
ariaLabel:
|
|
754
|
+
ariaLabel: t(($) => $["editBusinessSetup"]),
|
|
755
755
|
icon: "edit",
|
|
756
756
|
variant: "tertiary",
|
|
757
757
|
onClick: onEditBusinessSetupClick
|
|
@@ -761,7 +761,7 @@ function TaskListInner({
|
|
|
761
761
|
] }),
|
|
762
762
|
singpassComponent,
|
|
763
763
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
764
|
-
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
764
|
+
hasTaskOfGroupAccountDetails && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $[getBusinessTaskListTitleKey()]), children: [
|
|
765
765
|
tasks.includes(TaskTypes.INDIVIDUAL) && /* @__PURE__ */ jsx(
|
|
766
766
|
TaskListItem,
|
|
767
767
|
{
|
|
@@ -769,7 +769,7 @@ function TaskListInner({
|
|
|
769
769
|
icon: "decision-maker",
|
|
770
770
|
titleKey: hasTrust ? "trusteePersonalDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "personalDetails",
|
|
771
771
|
status: getTaskStatus2(TaskTypes.INDIVIDUAL),
|
|
772
|
-
problems:
|
|
772
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
|
|
773
773
|
}
|
|
774
774
|
),
|
|
775
775
|
tasks.includes(TaskTypes.BUSINESS_DETAILS) && /* @__PURE__ */ jsx(
|
|
@@ -780,7 +780,7 @@ function TaskListInner({
|
|
|
780
780
|
icon: "company",
|
|
781
781
|
titleKey: hasTrust ? "businessTrusteeDetails" : hasUnincorporatedPartnership ? "primaryPartnerDetails" : "businessDetails",
|
|
782
782
|
status: businessDetailsTaskStatus,
|
|
783
|
-
problems:
|
|
783
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id]
|
|
784
784
|
}
|
|
785
785
|
),
|
|
786
786
|
hasSoleProprietorship && /* @__PURE__ */ jsx(
|
|
@@ -809,7 +809,7 @@ function TaskListInner({
|
|
|
809
809
|
icon: "decision-maker",
|
|
810
810
|
titleKey: hasUnincorporatedPartnership ? "entityDecisionMakers" : "decisionMakers",
|
|
811
811
|
status: getTaskStatus2(TaskTypes.DECISION_MAKER_OVERVIEW),
|
|
812
|
-
warningMessage: remediationMessages[TaskTypes.DECISION_MAKER]
|
|
812
|
+
warningMessage: showDecisionMakersWarning ? remediationMessages[TaskTypes.DECISION_MAKER] : void 0
|
|
813
813
|
}
|
|
814
814
|
),
|
|
815
815
|
showCustomerSupportV4 && tasks.includes(TaskTypes.CUSTOMER_SUPPORT) && /* @__PURE__ */ jsx(
|
|
@@ -818,11 +818,11 @@ function TaskListInner({
|
|
|
818
818
|
onNavigateToTask: handleOnNavigateToTaskCustomerSupport,
|
|
819
819
|
icon: "webinar",
|
|
820
820
|
titleKey: "customerSupport",
|
|
821
|
-
status:
|
|
821
|
+
status: normalizedTasks?.CUSTOMER_SUPPORT?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
822
822
|
}
|
|
823
823
|
)
|
|
824
824
|
] }),
|
|
825
|
-
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
825
|
+
hasTrust && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["trustDetailsDescription"]), children: [
|
|
826
826
|
/* @__PURE__ */ jsx(
|
|
827
827
|
TaskListItem,
|
|
828
828
|
{
|
|
@@ -843,7 +843,7 @@ function TaskListInner({
|
|
|
843
843
|
}
|
|
844
844
|
)
|
|
845
845
|
] }),
|
|
846
|
-
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
846
|
+
hasUnincorporatedPartnership && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["partnershipUnincorporated"]), children: [
|
|
847
847
|
/* @__PURE__ */ jsx(
|
|
848
848
|
TaskListItem,
|
|
849
849
|
{
|
|
@@ -880,7 +880,7 @@ function TaskListInner({
|
|
|
880
880
|
onNavigateToTask: handleOnNavigateToSourceOfFunds,
|
|
881
881
|
icon: "cash-stack",
|
|
882
882
|
titleKey: "fundingSources",
|
|
883
|
-
status:
|
|
883
|
+
status: normalizedTasks?.SOURCE_OF_FUNDS?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
884
884
|
}
|
|
885
885
|
),
|
|
886
886
|
tasks.includes(TaskTypes.BUSINESS_FINANCING) && /* @__PURE__ */ jsx(
|
|
@@ -889,7 +889,7 @@ function TaskListInner({
|
|
|
889
889
|
onNavigateToTask: handleOnNavigateToBusinessFinancing,
|
|
890
890
|
icon: "capital",
|
|
891
891
|
titleKey: "businessFinancing",
|
|
892
|
-
status:
|
|
892
|
+
status: normalizedTasks?.BUSINESS_FINANCING?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
893
893
|
}
|
|
894
894
|
)
|
|
895
895
|
] }),
|
|
@@ -899,14 +899,14 @@ function TaskListInner({
|
|
|
899
899
|
onNavigateToTask: handleOnNavigateToTaxReporting,
|
|
900
900
|
icon: "reporting",
|
|
901
901
|
titleKey: "taxReporting",
|
|
902
|
-
status:
|
|
902
|
+
status: normalizedTasks?.TAX_REPORTING?.status ?? TaskStatus.DETAILS_REQUIRED
|
|
903
903
|
}
|
|
904
904
|
) }),
|
|
905
905
|
(tasks.includes(TaskTypes.PAYOUT) || tasks.includes(TaskTypes.PAYIN)) && !hidePayoutAccountTaskExperiment && /* @__PURE__ */ jsx(
|
|
906
906
|
TaskListGroup,
|
|
907
907
|
{
|
|
908
|
-
title: canChangeEntityType ?
|
|
909
|
-
hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey
|
|
908
|
+
title: canChangeEntityType ? t(($) => $["payoutBankAccounts"]) : t(
|
|
909
|
+
($) => $[hasPayinTaskNotPayout ? "payinAccountsDescription" : payoutTaskDescriptionKey]
|
|
910
910
|
),
|
|
911
911
|
children: transferInstruments.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
912
912
|
transferInstruments.map((transferInstrument) => /* @__PURE__ */ jsx(
|
|
@@ -928,8 +928,8 @@ function TaskListInner({
|
|
|
928
928
|
disabled: !canAddPayoutAccount,
|
|
929
929
|
children: [
|
|
930
930
|
/* @__PURE__ */ jsx(Icon, { name: "plus", className: "adyen-task-list__card-icon " }),
|
|
931
|
-
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ?
|
|
932
|
-
hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"
|
|
931
|
+
/* @__PURE__ */ jsx("span", { children: canChangeEntityType ? t(($) => $["addExtraBankAccount"]) : t(
|
|
932
|
+
($) => $[hasPayinTaskNotPayout ? "addExtraPayinAccount" : "addExtraPayoutAccount"]
|
|
933
933
|
) })
|
|
934
934
|
]
|
|
935
935
|
}
|
|
@@ -947,7 +947,7 @@ function TaskListInner({
|
|
|
947
947
|
)
|
|
948
948
|
}
|
|
949
949
|
),
|
|
950
|
-
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title:
|
|
950
|
+
showContractTasks && /* @__PURE__ */ jsxs(TaskListGroup, { title: t(($) => $["reviewAndSignLegalDisclosures"]), children: [
|
|
951
951
|
showPciTask && /* @__PURE__ */ jsx(
|
|
952
952
|
TaskListItem,
|
|
953
953
|
{
|
|
@@ -955,10 +955,10 @@ function TaskListInner({
|
|
|
955
955
|
icon: "pci",
|
|
956
956
|
titleKey: "pciDssQuestionnaire",
|
|
957
957
|
status: canDownloadPci ? TaskStatus.DOWNLOAD : TaskStatus.SIGN,
|
|
958
|
-
statusLabel: canDownloadPci ?
|
|
958
|
+
statusLabel: canDownloadPci ? t(($) => $["downloadACopy"]) : void 0,
|
|
959
959
|
downloadHandler: onPciDownload,
|
|
960
960
|
disabled: isPciTaskDisabled,
|
|
961
|
-
info: isPciTaskDisabled && !canDownloadPci ?
|
|
961
|
+
info: isPciTaskDisabled && !canDownloadPci ? t(($) => $["requiresDecisionMakers"]) : void 0
|
|
962
962
|
}
|
|
963
963
|
),
|
|
964
964
|
showServiceAgreementTask && /* @__PURE__ */ jsx(
|
|
@@ -969,18 +969,18 @@ function TaskListInner({
|
|
|
969
969
|
titleKey: "signServiceAgreement",
|
|
970
970
|
disabled: areServiceAgreementTasksDisabled,
|
|
971
971
|
status: serviceAgreementTypes.length ? TaskStatus.SIGN : TaskStatus.SIGNED,
|
|
972
|
-
info: EnableSignPCIBeforeTOS && shouldSignPciFirst ?
|
|
972
|
+
info: EnableSignPCIBeforeTOS && shouldSignPciFirst ? t(($) => $["signPciFirst"]) : !hasServiceAgreementSigners ? t(($) => $["requiresSignatory"]) : void 0
|
|
973
973
|
}
|
|
974
974
|
)
|
|
975
975
|
] }),
|
|
976
|
-
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title:
|
|
976
|
+
isReview && /* @__PURE__ */ jsx(TaskListGroup, { title: t(($) => $["pleaseEnsureTheFollowing"]), children: /* @__PURE__ */ jsx(
|
|
977
977
|
TaskListItem,
|
|
978
978
|
{
|
|
979
979
|
onNavigateToTask: handleOnNavigateToTaskReview,
|
|
980
980
|
icon: "review",
|
|
981
981
|
titleKey: "submitReviewOfYourData",
|
|
982
982
|
status: TaskStatus.SUBMIT,
|
|
983
|
-
problems:
|
|
983
|
+
problems: capabilityProblems?.LegalEntity?.[legalEntityResponse.id],
|
|
984
984
|
showErrorAlerts: "always"
|
|
985
985
|
}
|
|
986
986
|
) })
|
|
@@ -997,7 +997,7 @@ const useExemptSettlor = ({
|
|
|
997
997
|
(association) => association.type === TrustMemberTypes.SETTLOR && Boolean(association.settlorExemptionReason)
|
|
998
998
|
);
|
|
999
999
|
}, [trust]);
|
|
1000
|
-
const { data } = useLegalEntity(
|
|
1000
|
+
const { data } = useLegalEntity(matchingAssociation?.legalEntityId ?? skipToken);
|
|
1001
1001
|
return data;
|
|
1002
1002
|
};
|
|
1003
1003
|
const splitAtFirstOccurrence = (str, separator) => {
|
|
@@ -1005,10 +1005,7 @@ const splitAtFirstOccurrence = (str, separator) => {
|
|
|
1005
1005
|
if (firstOccurrence === -1) return [str];
|
|
1006
1006
|
return [str.slice(0, firstOccurrence), str.slice(firstOccurrence + 1)];
|
|
1007
1007
|
};
|
|
1008
|
-
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) =>
|
|
1009
|
-
var _a;
|
|
1010
|
-
return (_a = entityAssociations.find((association) => association.associatorId === trustMemberId)) == null ? void 0 : _a.legalEntityId;
|
|
1011
|
-
};
|
|
1008
|
+
const getTrustMemberOwnerId = (trustMemberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === trustMemberId)?.legalEntityId;
|
|
1012
1009
|
const getFallbackName = (exemptSettlorAssociation) => {
|
|
1013
1010
|
const [firstName, lastName] = splitAtFirstOccurrence(exemptSettlorAssociation.name ?? "", " ");
|
|
1014
1011
|
return {
|
|
@@ -1017,7 +1014,6 @@ const getFallbackName = (exemptSettlorAssociation) => {
|
|
|
1017
1014
|
};
|
|
1018
1015
|
};
|
|
1019
1016
|
const convertEntityAssociationIntoTrustMember = (association, associations, exemptSettlorLE) => {
|
|
1020
|
-
var _a;
|
|
1021
1017
|
if (association.settlorExemptionReason) {
|
|
1022
1018
|
return {
|
|
1023
1019
|
trustMemberType: "exemptSettlor",
|
|
@@ -1025,7 +1021,7 @@ const convertEntityAssociationIntoTrustMember = (association, associations, exem
|
|
|
1025
1021
|
legalEntityType: association.entityType,
|
|
1026
1022
|
legalEntityId: association.legalEntityId,
|
|
1027
1023
|
settlorExemptionReason: association.settlorExemptionReason,
|
|
1028
|
-
exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ?
|
|
1024
|
+
exemptSettlorName: association.entityType === LegalEntityType.INDIVIDUAL ? exemptSettlorLE?.individual?.name ?? getFallbackName(association) : void 0,
|
|
1029
1025
|
name: association.name
|
|
1030
1026
|
};
|
|
1031
1027
|
}
|
|
@@ -1083,18 +1079,15 @@ const mapUndefinedBeneficiaryInfoToTrustMembers = (undefinedBeneficiaryInfo) =>
|
|
|
1083
1079
|
reference,
|
|
1084
1080
|
description
|
|
1085
1081
|
}));
|
|
1086
|
-
const getTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =>
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(((_a = trustLE.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [])
|
|
1096
|
-
];
|
|
1097
|
-
};
|
|
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
|
+
];
|
|
1098
1091
|
const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAssociations) => {
|
|
1099
1092
|
const allowedRolesForRootLegalEntity = [
|
|
1100
1093
|
TrustMemberTypes.SETTLOR,
|
|
@@ -1111,7 +1104,6 @@ const combineRootLegalEntityWithEntityAssociations = (rootLegalEntity, entityAss
|
|
|
1111
1104
|
};
|
|
1112
1105
|
};
|
|
1113
1106
|
const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) => {
|
|
1114
|
-
var _a;
|
|
1115
1107
|
const entityAssociations = trustLE.entityAssociations ?? [];
|
|
1116
1108
|
const rootLegalEntityAssociations = entityAssociations.filter(
|
|
1117
1109
|
(a) => a.legalEntityId === rootLegalEntity.id
|
|
@@ -1126,7 +1118,7 @@ const getRootTrusteeTrustMembers = (trustLE, rootLegalEntity, exemptSettlorLE) =
|
|
|
1126
1118
|
nonRootLegalEntityAssociations ?? [],
|
|
1127
1119
|
exemptSettlorLE
|
|
1128
1120
|
),
|
|
1129
|
-
...mapUndefinedBeneficiaryInfoToTrustMembers(
|
|
1121
|
+
...mapUndefinedBeneficiaryInfoToTrustMembers(trustLE.trust?.undefinedBeneficiaryInfo ?? [])
|
|
1130
1122
|
];
|
|
1131
1123
|
};
|
|
1132
1124
|
function useTrustMembers() {
|
|
@@ -1138,7 +1130,7 @@ function useTrustMembers() {
|
|
|
1138
1130
|
});
|
|
1139
1131
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
1140
1132
|
return useMemo(() => {
|
|
1141
|
-
if (!rootLegalEntity || !
|
|
1133
|
+
if (!rootLegalEntity || !trust?.trust) return [];
|
|
1142
1134
|
return allowMoreRolesForMainRootTrustee ? getRootTrusteeTrustMembers(trust, rootLegalEntity, exemptSettlor) : getTrustMembers(trust, rootLegalEntity, exemptSettlor);
|
|
1143
1135
|
}, [rootLegalEntity, trust, exemptSettlor, allowMoreRolesForMainRootTrustee]);
|
|
1144
1136
|
}
|
|
@@ -1201,7 +1193,6 @@ const convertExistingSettlorExemptionReasons = (existingReasons) => {
|
|
|
1201
1193
|
return existingReasons;
|
|
1202
1194
|
};
|
|
1203
1195
|
const convertExistingTrustMember = (trustMember) => {
|
|
1204
|
-
var _a, _b;
|
|
1205
1196
|
switch (trustMember.trustMemberType) {
|
|
1206
1197
|
case "undefinedBeneficiary":
|
|
1207
1198
|
return {
|
|
@@ -1232,8 +1223,8 @@ const convertExistingTrustMember = (trustMember) => {
|
|
|
1232
1223
|
settlorExemptionReason: convertExistingSettlorExemptionReasons(
|
|
1233
1224
|
trustMember.settlorExemptionReason
|
|
1234
1225
|
),
|
|
1235
|
-
firstName:
|
|
1236
|
-
lastName:
|
|
1226
|
+
firstName: trustMember.exemptSettlorName?.firstName,
|
|
1227
|
+
lastName: trustMember.exemptSettlorName?.lastName,
|
|
1237
1228
|
legalCompanyName: trustMember.name,
|
|
1238
1229
|
country: trustMember.country
|
|
1239
1230
|
};
|
|
@@ -1292,7 +1283,7 @@ const availablesRolesByTrustMemberTypeAndLegalEntityType = {
|
|
|
1292
1283
|
}
|
|
1293
1284
|
};
|
|
1294
1285
|
const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
|
|
1295
|
-
if (!
|
|
1286
|
+
if (!currentRoles?.length) {
|
|
1296
1287
|
const { trustMemberType, legalEntityType } = trustMember;
|
|
1297
1288
|
const availableRolesByTrustMemberType = availablesRolesByTrustMemberTypeAndLegalEntityType[trustMemberType];
|
|
1298
1289
|
if (!availableRolesByTrustMemberType) {
|
|
@@ -1311,7 +1302,7 @@ const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trus
|
|
|
1311
1302
|
return roles.filter((r) => r !== "secondaryTrustee");
|
|
1312
1303
|
};
|
|
1313
1304
|
const getAvailableRoles = (currentRoles) => {
|
|
1314
|
-
if (!
|
|
1305
|
+
if (!currentRoles?.length) return Object.values(TrustMemberTypes);
|
|
1315
1306
|
return currentRoles.map((role) => [role, ...allowedCrossoverRolesMatrix[role]]).reduce(
|
|
1316
1307
|
(existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
|
|
1317
1308
|
);
|
|
@@ -1331,14 +1322,8 @@ const settlorExemptionReasonWithNoneOfTheAbove = [
|
|
|
1331
1322
|
"noneOfTheAbove"
|
|
1332
1323
|
];
|
|
1333
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));
|
|
1334
|
-
const isExemptSettlor = (data) =>
|
|
1335
|
-
|
|
1336
|
-
return ((_a = data.settlorExemptionReason) == null ? void 0 : _a.some((reason) => reason !== "noneOfTheAbove")) ?? false;
|
|
1337
|
-
};
|
|
1338
|
-
const isOrganizationAndSettlor = (data) => {
|
|
1339
|
-
var _a;
|
|
1340
|
-
return data.entityType === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor";
|
|
1341
|
-
};
|
|
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";
|
|
1342
1327
|
const roleAndTypeValidationRules = {
|
|
1343
1328
|
entityType: {
|
|
1344
1329
|
modes: ["blur"],
|
|
@@ -1347,7 +1332,7 @@ const roleAndTypeValidationRules = {
|
|
|
1347
1332
|
},
|
|
1348
1333
|
role: {
|
|
1349
1334
|
modes: ["blur"],
|
|
1350
|
-
validate: (role) => !!
|
|
1335
|
+
validate: (role) => !!role?.length,
|
|
1351
1336
|
errorMessage: "fieldIsRequired"
|
|
1352
1337
|
},
|
|
1353
1338
|
descriptionUndefinedBeneficiary: {
|
|
@@ -1357,7 +1342,7 @@ const roleAndTypeValidationRules = {
|
|
|
1357
1342
|
},
|
|
1358
1343
|
settlorExemptionReason: {
|
|
1359
1344
|
modes: ["blur"],
|
|
1360
|
-
validate: (reasons) => Boolean(reasons
|
|
1345
|
+
validate: (reasons) => Boolean(reasons?.length),
|
|
1361
1346
|
errorMessage: "fieldIsRequired"
|
|
1362
1347
|
},
|
|
1363
1348
|
country: {
|
|
@@ -1394,6 +1379,7 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
|
|
|
1394
1379
|
return convertExistingTrustMember(trustMember);
|
|
1395
1380
|
};
|
|
1396
1381
|
const TrustRoleAndEntityType = (props) => {
|
|
1382
|
+
const { t } = useTranslation();
|
|
1397
1383
|
const { i18n } = useI18nContext();
|
|
1398
1384
|
const { existingTrustMember, isOrganizationSettlorWithExemptionEnabled, onChange, id, country } = props;
|
|
1399
1385
|
const trustRoleAndEntityTypeCountry = country;
|
|
@@ -1417,11 +1403,10 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1417
1403
|
);
|
|
1418
1404
|
const formUtils = createFormUtils(mergedProps, i18n);
|
|
1419
1405
|
const decideFields = (data2) => {
|
|
1420
|
-
|
|
1421
|
-
if ((_a = data2.role) == null ? void 0 : _a.includes("undefinedBeneficiary")) {
|
|
1406
|
+
if (data2.role?.includes("undefinedBeneficiary")) {
|
|
1422
1407
|
return ["role", "descriptionUndefinedBeneficiary"];
|
|
1423
1408
|
}
|
|
1424
|
-
if (
|
|
1409
|
+
if (data2.role?.length) {
|
|
1425
1410
|
if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
|
|
1426
1411
|
return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
|
|
1427
1412
|
}
|
|
@@ -1437,9 +1422,9 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1437
1422
|
schema: decideFields,
|
|
1438
1423
|
rules: roleAndTypeValidationRules,
|
|
1439
1424
|
defaultData,
|
|
1440
|
-
fieldProblems: props
|
|
1425
|
+
fieldProblems: props?.fieldValidationErrors
|
|
1441
1426
|
});
|
|
1442
|
-
const availableRoles = allowMoreRolesForMainRootTrusteeEnabled &&
|
|
1427
|
+
const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && existingTrustMember?.trustMemberType === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
|
|
1443
1428
|
const { data: exemptSettlorLe } = useLegalEntity(
|
|
1444
1429
|
isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== isNewEntity && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" ? existingTrustMember.legalEntityId : skipToken
|
|
1445
1430
|
);
|
|
@@ -1449,7 +1434,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1449
1434
|
}
|
|
1450
1435
|
}, [exemptSettlorLe]);
|
|
1451
1436
|
useEffect(() => {
|
|
1452
|
-
onChange
|
|
1437
|
+
onChange?.({
|
|
1453
1438
|
schema,
|
|
1454
1439
|
data,
|
|
1455
1440
|
errors,
|
|
@@ -1472,10 +1457,9 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1472
1457
|
}
|
|
1473
1458
|
};
|
|
1474
1459
|
const changeSettlorExemptionReasons = (exemptionReasons) => {
|
|
1475
|
-
var _a;
|
|
1476
1460
|
if (exemptionReasons.includes("noneOfTheAbove")) {
|
|
1477
1461
|
handleChangeFor("settlorExemptionReason")(
|
|
1478
|
-
|
|
1462
|
+
data.settlorExemptionReason?.includes("noneOfTheAbove") ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
|
|
1479
1463
|
);
|
|
1480
1464
|
return;
|
|
1481
1465
|
}
|
|
@@ -1483,8 +1467,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1483
1467
|
};
|
|
1484
1468
|
const nameProps = getFieldProps(props, nameFields);
|
|
1485
1469
|
const onEntityTypeChange = (value) => {
|
|
1486
|
-
|
|
1487
|
-
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") {
|
|
1488
1471
|
changeSettlorExemptionReasons(["professionalServiceProvider"]);
|
|
1489
1472
|
}
|
|
1490
1473
|
handleChangeFor("entityType")(value);
|
|
@@ -1494,8 +1477,8 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1494
1477
|
/* @__PURE__ */ jsx(
|
|
1495
1478
|
ErrorPanel,
|
|
1496
1479
|
{
|
|
1497
|
-
verificationErrors: props
|
|
1498
|
-
validationErrors: props
|
|
1480
|
+
verificationErrors: props?.formVerificationErrors,
|
|
1481
|
+
validationErrors: props?.fieldValidationErrors,
|
|
1499
1482
|
formUtils,
|
|
1500
1483
|
id: "ariaErrorField"
|
|
1501
1484
|
}
|
|
@@ -1506,7 +1489,6 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1506
1489
|
el: "fieldset",
|
|
1507
1490
|
name: "role",
|
|
1508
1491
|
label: formUtils.getLabel("role", "selectTheApplicableRoles"),
|
|
1509
|
-
classNameModifiers: ["role"],
|
|
1510
1492
|
errorMessage: formUtils.getErrorMessage("role", errors, fieldProblems),
|
|
1511
1493
|
isValid: valid.role,
|
|
1512
1494
|
disabled: availableRoles.length === 0,
|
|
@@ -1519,14 +1501,14 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1519
1501
|
selected: data.role ?? [],
|
|
1520
1502
|
onSelect: changeRoles,
|
|
1521
1503
|
mapToSelectItem: (role) => ({
|
|
1522
|
-
...makeSelectItemForRole(role,
|
|
1504
|
+
...makeSelectItemForRole(role, t),
|
|
1523
1505
|
disabled: !availableRoles.includes(role)
|
|
1524
1506
|
})
|
|
1525
1507
|
}
|
|
1526
1508
|
)
|
|
1527
1509
|
}
|
|
1528
1510
|
),
|
|
1529
|
-
|
|
1511
|
+
schema?.includes("entityType") && /* @__PURE__ */ jsx(
|
|
1530
1512
|
Field,
|
|
1531
1513
|
{
|
|
1532
1514
|
el: "fieldset",
|
|
@@ -1552,7 +1534,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1552
1534
|
)
|
|
1553
1535
|
}
|
|
1554
1536
|
),
|
|
1555
|
-
|
|
1537
|
+
schema?.includes("descriptionUndefinedBeneficiary") && /* @__PURE__ */ jsx(
|
|
1556
1538
|
Field,
|
|
1557
1539
|
{
|
|
1558
1540
|
name: "descriptionUndefinedBeneficiary",
|
|
@@ -1578,7 +1560,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1578
1560
|
)
|
|
1579
1561
|
}
|
|
1580
1562
|
),
|
|
1581
|
-
|
|
1563
|
+
schema?.includes("settlorExemptionReason") && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
|
|
1582
1564
|
Field,
|
|
1583
1565
|
{
|
|
1584
1566
|
el: "fieldset",
|
|
@@ -1626,7 +1608,7 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1626
1608
|
dataStoreId: id
|
|
1627
1609
|
}
|
|
1628
1610
|
) : void 0,
|
|
1629
|
-
isOrganizationSettlorWithExemptionEnabled &&
|
|
1611
|
+
isOrganizationSettlorWithExemptionEnabled && schema?.includes("country") && schema?.includes("legalCompanyName") ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1630
1612
|
/* @__PURE__ */ jsx(
|
|
1631
1613
|
CountryField,
|
|
1632
1614
|
{
|
|
@@ -1657,7 +1639,6 @@ const TrustRoleAndEntityType = (props) => {
|
|
|
1657
1639
|
] });
|
|
1658
1640
|
};
|
|
1659
1641
|
const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
1660
|
-
var _a, _b;
|
|
1661
1642
|
if (trustMember.legalEntityId === isNewEntity) {
|
|
1662
1643
|
throw Error("Cannot map a new trust member, you must create it first");
|
|
1663
1644
|
}
|
|
@@ -1668,7 +1649,7 @@ const mapTrustMemberToEntityAssociations = (trustMember) => {
|
|
|
1668
1649
|
entityType: trustMember.legalEntityType,
|
|
1669
1650
|
type: TrustMemberTypes.SETTLOR,
|
|
1670
1651
|
settlorExemptionReason: trustMember.settlorExemptionReason,
|
|
1671
|
-
name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${
|
|
1652
|
+
name: trustMember.legalEntityType === LegalEntityType.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
|
|
1672
1653
|
}
|
|
1673
1654
|
];
|
|
1674
1655
|
return trustMember.roles.map((role) => ({
|
|
@@ -1713,10 +1694,9 @@ const addOrUpdateUndefinedBeneficiary = async ({
|
|
|
1713
1694
|
trust,
|
|
1714
1695
|
updateLegalEntity
|
|
1715
1696
|
}) => {
|
|
1716
|
-
|
|
1717
|
-
const otherUndefinedBeneficiaries = ((_b = (_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) == null ? void 0 : _b.filter(
|
|
1697
|
+
const otherUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo?.filter(
|
|
1718
1698
|
(ub) => ub.reference !== newOrUpdated.reference
|
|
1719
|
-
)
|
|
1699
|
+
) ?? [];
|
|
1720
1700
|
const patchLE = {
|
|
1721
1701
|
trust: {
|
|
1722
1702
|
undefinedBeneficiaryInfo: [
|
|
@@ -1737,13 +1717,12 @@ const createExemptSettlor = async ({
|
|
|
1737
1717
|
trust,
|
|
1738
1718
|
handleCreateLegalEntity
|
|
1739
1719
|
}) => {
|
|
1740
|
-
var _a, _b;
|
|
1741
1720
|
const exemptSettlorLE = {
|
|
1742
1721
|
type: LegalEntityType.INDIVIDUAL,
|
|
1743
1722
|
individual: {
|
|
1744
1723
|
name: {
|
|
1745
|
-
firstName:
|
|
1746
|
-
lastName:
|
|
1724
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
|
|
1725
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName ?? ""
|
|
1747
1726
|
},
|
|
1748
1727
|
residentialAddress: {
|
|
1749
1728
|
country: trust.trust.registeredAddress.country
|
|
@@ -1772,12 +1751,11 @@ const updateExemptSettlorName = async ({
|
|
|
1772
1751
|
exemptSettlor,
|
|
1773
1752
|
updateLegalEntity
|
|
1774
1753
|
}) => {
|
|
1775
|
-
var _a, _b;
|
|
1776
1754
|
const exemptSettlorPatch = {
|
|
1777
1755
|
individual: {
|
|
1778
1756
|
name: {
|
|
1779
|
-
firstName:
|
|
1780
|
-
lastName:
|
|
1757
|
+
firstName: exemptSettlor.exemptSettlorName?.firstName,
|
|
1758
|
+
lastName: exemptSettlor.exemptSettlorName?.lastName
|
|
1781
1759
|
}
|
|
1782
1760
|
}
|
|
1783
1761
|
};
|
|
@@ -1810,7 +1788,6 @@ const styles$3 = {
|
|
|
1810
1788
|
const formatRolesForSummary = (roles, i18n) => roles.map((role) => i18n.get(getRoleName(role))).join(", ");
|
|
1811
1789
|
const formatSettlorExemptionReasonsForSummary = (reasons, i18n) => /* @__PURE__ */ jsx("ul", { className: styles$3.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: i18n.get(reason) }, reason)) });
|
|
1812
1790
|
const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExemptionEnabled) => {
|
|
1813
|
-
var _a, _b;
|
|
1814
1791
|
const { trustMemberType, roles } = data;
|
|
1815
1792
|
const role = formatRolesForSummary(roles, i18n);
|
|
1816
1793
|
switch (trustMemberType) {
|
|
@@ -1823,8 +1800,8 @@ const formatRoleAndEntityTypeSummary = (data, i18n, isOrganizationSettlorWithExe
|
|
|
1823
1800
|
return {
|
|
1824
1801
|
role,
|
|
1825
1802
|
entityType: i18n.get(data.legalEntityType),
|
|
1826
|
-
firstName:
|
|
1827
|
-
lastName:
|
|
1803
|
+
firstName: data.exemptSettlorName?.firstName,
|
|
1804
|
+
lastName: data.exemptSettlorName?.lastName,
|
|
1828
1805
|
country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
|
|
1829
1806
|
legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
|
|
1830
1807
|
settlorExemptionReason: summaryItem(
|
|
@@ -1885,7 +1862,6 @@ const decideForms = (trustMember) => {
|
|
|
1885
1862
|
}
|
|
1886
1863
|
};
|
|
1887
1864
|
const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettlorWithExemptionReasonEnabled = false) => {
|
|
1888
|
-
var _a;
|
|
1889
1865
|
const existingId = existingTrustMember ? existingTrustMember.trustMemberType === "undefinedBeneficiary" ? existingTrustMember.reference : existingTrustMember.legalEntityId : void 0;
|
|
1890
1866
|
if (data.trustMemberType === "rootTrustee") {
|
|
1891
1867
|
return {
|
|
@@ -1896,7 +1872,7 @@ const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettl
|
|
|
1896
1872
|
name: data.firstName ?? ""
|
|
1897
1873
|
};
|
|
1898
1874
|
}
|
|
1899
|
-
if (
|
|
1875
|
+
if (data.role?.length) {
|
|
1900
1876
|
if (isExemptSettlor(data)) {
|
|
1901
1877
|
if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityType.ORGANIZATION) {
|
|
1902
1878
|
return {
|
|
@@ -1960,7 +1936,6 @@ function RoleAndTypeDropin({
|
|
|
1960
1936
|
navigateBack,
|
|
1961
1937
|
country
|
|
1962
1938
|
}) {
|
|
1963
|
-
var _a;
|
|
1964
1939
|
const { i18n } = useI18nContext();
|
|
1965
1940
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1966
1941
|
const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
|
|
@@ -1971,7 +1946,7 @@ function RoleAndTypeDropin({
|
|
|
1971
1946
|
const { showToast } = useToastContext();
|
|
1972
1947
|
const isOrganizationSettlorWithExemptionReasonEnabled = (country2) => country2 === CountryCodes.Australia;
|
|
1973
1948
|
const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(
|
|
1974
|
-
|
|
1949
|
+
trust?.trust?.countryOfGoverningLaw
|
|
1975
1950
|
);
|
|
1976
1951
|
const formList = decideForms(trustMember);
|
|
1977
1952
|
const forms = Object.values(formList);
|
|
@@ -2070,7 +2045,7 @@ function RoleAndTypeDropin({
|
|
|
2070
2045
|
};
|
|
2071
2046
|
const saveRolesAndNavigate = async () => {
|
|
2072
2047
|
if (trustMember === "incomplete") return;
|
|
2073
|
-
if (hasRolesChanged(trustMember.roles, existingTrustMember
|
|
2048
|
+
if (hasRolesChanged(trustMember.roles, existingTrustMember?.roles)) {
|
|
2074
2049
|
addOrUpdateTrustMember(trustMember);
|
|
2075
2050
|
}
|
|
2076
2051
|
navigateBack();
|
|
@@ -2233,7 +2208,7 @@ const EntityGuidanceStatus = ({
|
|
|
2233
2208
|
entityLabel,
|
|
2234
2209
|
status
|
|
2235
2210
|
}) => {
|
|
2236
|
-
const {
|
|
2211
|
+
const { t } = useTranslation();
|
|
2237
2212
|
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-status__container", children: [
|
|
2238
2213
|
/* @__PURE__ */ jsx(EntityStatusIcon, { status }),
|
|
2239
2214
|
/* @__PURE__ */ jsx(
|
|
@@ -2241,7 +2216,7 @@ const EntityGuidanceStatus = ({
|
|
|
2241
2216
|
{
|
|
2242
2217
|
className: "adyen-kyc-entity-status__tag",
|
|
2243
2218
|
variant: getRoleTagVariant(entityLabel),
|
|
2244
|
-
children:
|
|
2219
|
+
children: t(($) => $[getRoleName(entityLabel)])
|
|
2245
2220
|
},
|
|
2246
2221
|
entityLabel
|
|
2247
2222
|
),
|
|
@@ -2250,9 +2225,13 @@ const EntityGuidanceStatus = ({
|
|
|
2250
2225
|
{
|
|
2251
2226
|
className: "adyen-kyc-entity-status--text",
|
|
2252
2227
|
"data-testid": `${entityLabel}-rule--description`,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2228
|
+
children: /* @__PURE__ */ jsx(
|
|
2229
|
+
Trans,
|
|
2230
|
+
{
|
|
2231
|
+
t,
|
|
2232
|
+
i18nKey: ($) => $[getEntityStatusRuleDescription(country, currentTask, entityLabel)]
|
|
2233
|
+
}
|
|
2234
|
+
)
|
|
2256
2235
|
}
|
|
2257
2236
|
)
|
|
2258
2237
|
] });
|
|
@@ -2275,8 +2254,7 @@ const deleteUndefinedBeneficiary = async ({
|
|
|
2275
2254
|
trust,
|
|
2276
2255
|
asyncMutation
|
|
2277
2256
|
}) => {
|
|
2278
|
-
|
|
2279
|
-
const existingUndefinedBeneficiaries = ((_a = trust.trust) == null ? void 0 : _a.undefinedBeneficiaryInfo) ?? [];
|
|
2257
|
+
const existingUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo ?? [];
|
|
2280
2258
|
const updatedTrust = {
|
|
2281
2259
|
trust: {
|
|
2282
2260
|
undefinedBeneficiaryInfo: existingUndefinedBeneficiaries.filter(
|
|
@@ -2340,7 +2318,7 @@ const EntityAssociation = ({
|
|
|
2340
2318
|
isRemoveDisabled = false,
|
|
2341
2319
|
handleIsRemoveDisabled
|
|
2342
2320
|
}) => {
|
|
2343
|
-
const {
|
|
2321
|
+
const { t } = useTranslation();
|
|
2344
2322
|
const [showingActions, setShowingActions] = useState(false);
|
|
2345
2323
|
const [isStatusRemoving, setIsStatusRemoving] = useState(false);
|
|
2346
2324
|
return /* @__PURE__ */ jsxs(
|
|
@@ -2365,7 +2343,7 @@ const EntityAssociation = ({
|
|
|
2365
2343
|
event.stopPropagation();
|
|
2366
2344
|
setShowingActions(!showingActions);
|
|
2367
2345
|
},
|
|
2368
|
-
ariaLabel:
|
|
2346
|
+
ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
|
|
2369
2347
|
}
|
|
2370
2348
|
),
|
|
2371
2349
|
/* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
|
|
@@ -2386,7 +2364,7 @@ const EntityAssociation = ({
|
|
|
2386
2364
|
{
|
|
2387
2365
|
className: "adyen-kyc-entity-association__tag",
|
|
2388
2366
|
variant: getRoleTagVariant(type),
|
|
2389
|
-
children:
|
|
2367
|
+
children: t(($) => $[getRoleName(type)])
|
|
2390
2368
|
},
|
|
2391
2369
|
type
|
|
2392
2370
|
)) }),
|
|
@@ -2466,9 +2444,8 @@ const ExemptSettlorTaskItem = ({
|
|
|
2466
2444
|
onEdit,
|
|
2467
2445
|
onDelete
|
|
2468
2446
|
}) => {
|
|
2469
|
-
var _a, _b;
|
|
2470
2447
|
const { i18n } = useI18nContext();
|
|
2471
|
-
const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${
|
|
2448
|
+
const settlorName = exemptSettlor.legalEntityType === LegalEntityType.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
|
|
2472
2449
|
const actions = [
|
|
2473
2450
|
{
|
|
2474
2451
|
icon: "edit",
|
|
@@ -2649,6 +2626,7 @@ const TrustMembersOverviewInner = ({
|
|
|
2649
2626
|
navigateToEditTrustMemberOwner
|
|
2650
2627
|
}) => {
|
|
2651
2628
|
const { i18n } = useI18nContext();
|
|
2629
|
+
const { t } = useTranslation("common");
|
|
2652
2630
|
const trustMemberRequirements = DEFAULT_TRUST_MEMBER_REQUIREMENTS;
|
|
2653
2631
|
const trustMembersWithOneOfGivenRoles = (roleTypes) => trustMembers.filter(
|
|
2654
2632
|
({ roles }) => roleTypes.some((label) => roles.includes(label))
|
|
@@ -2681,15 +2659,7 @@ const TrustMembersOverviewInner = ({
|
|
|
2681
2659
|
ContextGuidance,
|
|
2682
2660
|
{
|
|
2683
2661
|
title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
|
|
2684
|
-
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx(
|
|
2685
|
-
"li",
|
|
2686
|
-
{
|
|
2687
|
-
dangerouslySetInnerHTML: {
|
|
2688
|
-
__html: i18n.get(`${label}GuideDescription`)
|
|
2689
|
-
}
|
|
2690
|
-
},
|
|
2691
|
-
label
|
|
2692
|
-
)) }),
|
|
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)) }),
|
|
2693
2663
|
titleId: "whatIsTheDifferenceBetweenTheseRoles",
|
|
2694
2664
|
contentId: "differenceBetweenTrustMemberRoles"
|
|
2695
2665
|
}
|
|
@@ -2793,13 +2763,13 @@ const TrustMembersOverviewInner = ({
|
|
|
2793
2763
|
);
|
|
2794
2764
|
};
|
|
2795
2765
|
const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
|
|
2796
|
-
const firstRole = selectedRoles
|
|
2766
|
+
const firstRole = selectedRoles?.[0];
|
|
2797
2767
|
return {
|
|
2798
|
-
memberType:
|
|
2799
|
-
roles: selectedRoles ||
|
|
2768
|
+
memberType: selectedMember?.memberType || firstRole,
|
|
2769
|
+
roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
|
|
2800
2770
|
legalEntityType: selectedEntityType,
|
|
2801
|
-
legalEntityId:
|
|
2802
|
-
name:
|
|
2771
|
+
legalEntityId: selectedMember?.legalEntityId || "",
|
|
2772
|
+
name: selectedMember?.name || ""
|
|
2803
2773
|
};
|
|
2804
2774
|
};
|
|
2805
2775
|
const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
@@ -2813,7 +2783,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2813
2783
|
}) => {
|
|
2814
2784
|
const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
|
|
2815
2785
|
setActiveMember(createdMember);
|
|
2816
|
-
if (rootLegalEntityId.value ===
|
|
2786
|
+
if (rootLegalEntityId.value === createdMember?.legalEntityId) {
|
|
2817
2787
|
navigateTo(
|
|
2818
2788
|
createdMember.legalEntityType === LegalEntityType.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
|
|
2819
2789
|
);
|
|
@@ -2824,7 +2794,7 @@ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
|
|
|
2824
2794
|
return;
|
|
2825
2795
|
}
|
|
2826
2796
|
navigateTo(
|
|
2827
|
-
|
|
2797
|
+
createdMember?.legalEntityType === LegalEntityType.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
|
|
2828
2798
|
);
|
|
2829
2799
|
};
|
|
2830
2800
|
return {
|
|
@@ -2921,7 +2891,7 @@ function getUboStatus(roles, roleType, existingMember) {
|
|
|
2921
2891
|
if (!existingMember) {
|
|
2922
2892
|
return void 0;
|
|
2923
2893
|
}
|
|
2924
|
-
return
|
|
2894
|
+
return roles?.includes(roleType) ? "yes" : "no";
|
|
2925
2895
|
}
|
|
2926
2896
|
function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
2927
2897
|
onNavigateToMember,
|
|
@@ -2939,16 +2909,16 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2939
2909
|
formName: form.formName,
|
|
2940
2910
|
isValid: false
|
|
2941
2911
|
}));
|
|
2942
|
-
const existingMember = activeMember
|
|
2912
|
+
const existingMember = activeMember?.legalEntityId;
|
|
2943
2913
|
const defaultData = {
|
|
2944
|
-
entityType: activeMember
|
|
2914
|
+
entityType: activeMember?.legalEntityType,
|
|
2945
2915
|
uboThroughControl: getUboStatus(
|
|
2946
|
-
activeMember
|
|
2916
|
+
activeMember?.roles,
|
|
2947
2917
|
UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
|
|
2948
2918
|
existingMember
|
|
2949
2919
|
),
|
|
2950
2920
|
uboThroughOwnership: getUboStatus(
|
|
2951
|
-
activeMember
|
|
2921
|
+
activeMember?.roles,
|
|
2952
2922
|
UnincorporatedPartnershipMemberTypes.OWNER,
|
|
2953
2923
|
existingMember
|
|
2954
2924
|
)
|
|
@@ -2990,7 +2960,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
2990
2960
|
FormNavigation,
|
|
2991
2961
|
{
|
|
2992
2962
|
forms: formsWithValidity,
|
|
2993
|
-
activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) ||
|
|
2963
|
+
activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) || formsWithValidity?.[0],
|
|
2994
2964
|
taskName: "unincorporatedPartnershipMembers",
|
|
2995
2965
|
gotoForm: () => {
|
|
2996
2966
|
}
|
|
@@ -3022,7 +2992,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3022
2992
|
...childProps,
|
|
3023
2993
|
name: "entityType",
|
|
3024
2994
|
options: trustMemberLegalEntityTypes,
|
|
3025
|
-
selected: data
|
|
2995
|
+
selected: data?.entityType,
|
|
3026
2996
|
onSelect: (option) => handleChangeFor("entityType")(option),
|
|
3027
2997
|
optionId: (option) => leTypeCardDetails[option].id,
|
|
3028
2998
|
optionName: (option) => leTypeCardDetails[option].name,
|
|
@@ -3042,7 +3012,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3042
3012
|
errors,
|
|
3043
3013
|
fieldProblems
|
|
3044
3014
|
),
|
|
3045
|
-
value: data
|
|
3015
|
+
value: data?.uboThroughOwnership
|
|
3046
3016
|
}
|
|
3047
3017
|
),
|
|
3048
3018
|
schema.includes("uboThroughControl") && /* @__PURE__ */ jsx(
|
|
@@ -3055,7 +3025,7 @@ function UnincorporatedPartnershipRoleAndTypeDropin({
|
|
|
3055
3025
|
errors,
|
|
3056
3026
|
fieldProblems
|
|
3057
3027
|
),
|
|
3058
|
-
value: data
|
|
3028
|
+
value: data?.uboThroughControl
|
|
3059
3029
|
}
|
|
3060
3030
|
)
|
|
3061
3031
|
] })
|
|
@@ -3089,10 +3059,7 @@ const alertHeader = "adyen-kyc-alert-header";
|
|
|
3089
3059
|
const styles = {
|
|
3090
3060
|
alertHeader
|
|
3091
3061
|
};
|
|
3092
|
-
const isPrimaryPartner = (member) =>
|
|
3093
|
-
var _a;
|
|
3094
|
-
return (_a = member == null ? void 0 : member.roles) == null ? void 0 : _a.includes("primaryPartner");
|
|
3095
|
-
};
|
|
3062
|
+
const isPrimaryPartner = (member) => member?.roles?.includes("primaryPartner");
|
|
3096
3063
|
const isMemberMissingOwner = (member) => {
|
|
3097
3064
|
return !isPrimaryPartner(member) && member.legalEntityType === LegalEntityType.ORGANIZATION && !member.ownerId;
|
|
3098
3065
|
};
|
|
@@ -3144,7 +3111,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3144
3111
|
const missingOwner = isMemberMissingOwner(member);
|
|
3145
3112
|
baseActions.push({
|
|
3146
3113
|
icon: missingOwner ? "plus" : "edit",
|
|
3147
|
-
onSelect: () => navigateToEditMemberOwner(member
|
|
3114
|
+
onSelect: () => navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId),
|
|
3148
3115
|
label: i18n.get(missingOwner ? "addOwnerToTrustMember" : "editOwnerOfTrustMember", {
|
|
3149
3116
|
values: { trustMember: member.name }
|
|
3150
3117
|
})
|
|
@@ -3174,7 +3141,7 @@ const UnincorporatedPartnershipMembersOverview = ({
|
|
|
3174
3141
|
onClick: (e) => {
|
|
3175
3142
|
e.preventDefault();
|
|
3176
3143
|
e.stopPropagation();
|
|
3177
|
-
navigateToEditMemberOwner(member
|
|
3144
|
+
navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId);
|
|
3178
3145
|
},
|
|
3179
3146
|
variant: "link",
|
|
3180
3147
|
children: i18n.get("providePersonalDetailsOfOwner")
|
|
@@ -3263,7 +3230,7 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
|
|
|
3263
3230
|
const handleNavigation = useCallback(
|
|
3264
3231
|
(task) => {
|
|
3265
3232
|
userEvents.updateBaseTrackingPayload({ task });
|
|
3266
|
-
onNavigate
|
|
3233
|
+
onNavigate?.(task);
|
|
3267
3234
|
},
|
|
3268
3235
|
[onNavigate]
|
|
3269
3236
|
);
|
|
@@ -3288,11 +3255,11 @@ const useNavigation = ({ legalEntity, onNavigate }) => {
|
|
|
3288
3255
|
}
|
|
3289
3256
|
if (prevTask === TaskTypes.TASKS_OVERVIEW) {
|
|
3290
3257
|
setTaskHistory([TaskTypes.TASKS_OVERVIEW]);
|
|
3291
|
-
handleNavigation
|
|
3258
|
+
handleNavigation?.(TaskTypes.TASKS_OVERVIEW);
|
|
3292
3259
|
return;
|
|
3293
3260
|
}
|
|
3294
3261
|
setTaskHistory(taskHistory.slice(0, -1 * stepCount));
|
|
3295
|
-
handleNavigation
|
|
3262
|
+
handleNavigation?.(prevTask);
|
|
3296
3263
|
userEvents.updateBaseTrackingPayload({ task: prevTask });
|
|
3297
3264
|
},
|
|
3298
3265
|
[taskHistory, handleNavigation]
|
|
@@ -3362,79 +3329,78 @@ const getDefaultTask = ({
|
|
|
3362
3329
|
return TaskTypes.TASKS_OVERVIEW;
|
|
3363
3330
|
};
|
|
3364
3331
|
const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
3365
|
-
|
|
3366
|
-
const hasOwnEntityAssocation = (_a = legalEntity.entityAssociations) == null ? void 0 : _a.some(
|
|
3332
|
+
const hasOwnEntityAssocation = legalEntity.entityAssociations?.some(
|
|
3367
3333
|
(ea) => ea.associatorId === legalEntity.id
|
|
3368
3334
|
);
|
|
3369
|
-
const hasOrganizationType =
|
|
3335
|
+
const hasOrganizationType = legalEntity.organization?.type;
|
|
3370
3336
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
3371
3337
|
};
|
|
3372
3338
|
const Introduction = lazy(
|
|
3373
|
-
async () => (await import("./Introduction-
|
|
3339
|
+
async () => (await import("./Introduction-erRXgreE.js")).Introduction
|
|
3374
3340
|
);
|
|
3375
3341
|
const BusinessTypeSelectionPage = lazy(
|
|
3376
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
3342
|
+
async () => (await import("./BusinessTypeSelectionPage-Cdp8joPJ.js")).BusinessTypeSelectionPage
|
|
3377
3343
|
);
|
|
3378
3344
|
const SingpassSelection = lazy(
|
|
3379
|
-
async () => (await import("./SingpassSelection-
|
|
3345
|
+
async () => (await import("./SingpassSelection-BWEJ3Yi-.js")).SingpassSelection
|
|
3380
3346
|
);
|
|
3381
3347
|
const AccountSetupRejected = lazy(
|
|
3382
|
-
async () => (await import("./AccountSetupRejected-
|
|
3348
|
+
async () => (await import("./AccountSetupRejected-DHph9lFl.js")).AccountSetupRejected
|
|
3383
3349
|
);
|
|
3384
3350
|
const DecisionMakers = lazy(
|
|
3385
|
-
async () => (await import("./DecisionMakers-
|
|
3351
|
+
async () => (await import("./DecisionMakers-CZ5-IRtU.js")).DecisionMakers
|
|
3386
3352
|
);
|
|
3387
3353
|
const CustomerSupport = lazy(
|
|
3388
|
-
async () => (await import("./CustomerSupport-
|
|
3354
|
+
async () => (await import("./CustomerSupport-NGBoBg3N.js")).CustomerSupport
|
|
3389
3355
|
);
|
|
3390
|
-
const Review = lazy(async () => (await import("./Review-
|
|
3356
|
+
const Review = lazy(async () => (await import("./Review-O6Al47Cu.js")).Review);
|
|
3391
3357
|
const SignPCIComponent = lazy(
|
|
3392
|
-
async () => (await import("./SignPCIComponent-
|
|
3358
|
+
async () => (await import("./SignPCIComponent-cqRNhGdl.js")).SignPCIComponent
|
|
3393
3359
|
);
|
|
3394
3360
|
const AcceptTermsOfService = lazy(
|
|
3395
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
3361
|
+
async () => (await import("./AcceptTermsOfServiceComponent-i222mdxX.js")).AcceptTermsOfServiceComponent
|
|
3396
3362
|
);
|
|
3397
3363
|
const TaxReportingDropin = lazy(
|
|
3398
|
-
async () => (await import("./TaxReportingDropin-
|
|
3364
|
+
async () => (await import("./TaxReportingDropin-DFZ2ehfk.js")).TaxReportingDropin
|
|
3399
3365
|
);
|
|
3400
3366
|
const PayoutDetailsPage = lazy(
|
|
3401
|
-
async () => (await import("./StoreProvider-
|
|
3367
|
+
async () => (await import("./StoreProvider-ClKLaHzy.js").then((n) => n.eI)).PayoutDetailsPage
|
|
3402
3368
|
);
|
|
3403
3369
|
const RootBusinessDetailsPage = lazy(
|
|
3404
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
3370
|
+
async () => (await import("./RootBusinessDetailsPage-q_6wAcer.js")).RootBusinessDetailsPage
|
|
3405
3371
|
);
|
|
3406
3372
|
const SoleProprietorshipPage = lazy(
|
|
3407
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
3373
|
+
async () => (await import("./SoleProprietorshipPage-CRcJSpn9.js")).SoleProprietorshipPage
|
|
3408
3374
|
);
|
|
3409
3375
|
const TrustMemberCompanyPage = lazy(
|
|
3410
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
3376
|
+
async () => (await import("./TrustMemberCompanyPage-oLNhg0hg.js")).TrustMemberCompanyPage
|
|
3411
3377
|
);
|
|
3412
3378
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
3413
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
3379
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
3414
3380
|
);
|
|
3415
3381
|
const BusinessFinancingPage = lazy(
|
|
3416
|
-
async () => (await import("./BusinessFinancingPage-
|
|
3382
|
+
async () => (await import("./BusinessFinancingPage-BPD2cSDR.js")).BusinessFinancingPage
|
|
3417
3383
|
);
|
|
3418
3384
|
const TrustDetailsPage = lazy(
|
|
3419
|
-
async () => (await import("./TrustDetailsPage-
|
|
3385
|
+
async () => (await import("./TrustDetailsPage-CGiiTbfR.js")).TrustDetailsPage
|
|
3420
3386
|
);
|
|
3421
3387
|
const SourceOfFundsPage = lazy(
|
|
3422
|
-
async () => (await import("./SourceOfFundsPage-
|
|
3388
|
+
async () => (await import("./SourceOfFundsPage-BxLGXTHb.js")).SourceOfFundsPage
|
|
3423
3389
|
);
|
|
3424
3390
|
const RootIndividualDetailsPage = lazy(
|
|
3425
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
3391
|
+
async () => (await import("./RootIndividualDetailsPage-CiXgSJsV.js")).RootIndividualDetailsPage
|
|
3426
3392
|
);
|
|
3427
3393
|
const LegalRepresentativeDetailsPage = lazy(
|
|
3428
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
3394
|
+
async () => (await import("./LegalRepresentativeDetailsPage-rS5K4657.js")).LegalRepresentativeDetailsPage
|
|
3429
3395
|
);
|
|
3430
3396
|
const TrustMemberIndividualPage = lazy(
|
|
3431
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
3397
|
+
async () => (await import("./TrustMemberIndividualPage-Bgsis586.js")).TrustMemberIndividualPage
|
|
3432
3398
|
);
|
|
3433
3399
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
3434
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
3400
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-DPE3grqL.js")).UnincorporatedPartnershipIndividualPage
|
|
3435
3401
|
);
|
|
3436
3402
|
const DecisionMakerDetailsPage = lazy(
|
|
3437
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
3403
|
+
async () => (await import("./DecisionMakerDetailsPage-BN-H1sJF.js")).DecisionMakerDetailsPage
|
|
3438
3404
|
);
|
|
3439
3405
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
3440
3406
|
const logger = createLogger();
|
|
@@ -3444,7 +3410,6 @@ function DropinComposer({
|
|
|
3444
3410
|
onNavigate = noop,
|
|
3445
3411
|
openBankingPartnerConfigId
|
|
3446
3412
|
}) {
|
|
3447
|
-
var _a;
|
|
3448
3413
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
3449
3414
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
3450
3415
|
const userEvents = useAnalyticsContext();
|
|
@@ -3538,7 +3503,6 @@ function DropinComposer({
|
|
|
3538
3503
|
navigateTo
|
|
3539
3504
|
});
|
|
3540
3505
|
const handleSingpassSelectionNextClick = async (method) => {
|
|
3541
|
-
var _a2;
|
|
3542
3506
|
if (method === "singpass") {
|
|
3543
3507
|
try {
|
|
3544
3508
|
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
@@ -3547,7 +3511,7 @@ function DropinComposer({
|
|
|
3547
3511
|
}
|
|
3548
3512
|
setHasSeenSingpassSelection(true);
|
|
3549
3513
|
singpassTabRef.current = window.open(authUrl, "_blank");
|
|
3550
|
-
|
|
3514
|
+
singpassTabRef.current?.focus();
|
|
3551
3515
|
} catch (e) {
|
|
3552
3516
|
logger.error(e);
|
|
3553
3517
|
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
@@ -3600,7 +3564,7 @@ function DropinComposer({
|
|
|
3600
3564
|
}
|
|
3601
3565
|
};
|
|
3602
3566
|
const handleOnSubmit = async (data, backStepCount) => {
|
|
3603
|
-
onSubmit
|
|
3567
|
+
onSubmit?.(data);
|
|
3604
3568
|
await refetchLegalEntity();
|
|
3605
3569
|
navigateBack(backStepCount);
|
|
3606
3570
|
};
|
|
@@ -3638,29 +3602,27 @@ function DropinComposer({
|
|
|
3638
3602
|
handleSingpassMyInfoLoginReset();
|
|
3639
3603
|
},
|
|
3640
3604
|
onClick: async () => {
|
|
3641
|
-
var _a2;
|
|
3642
3605
|
try {
|
|
3643
3606
|
const authUrl = await handleInitiateSingpassMyInfoLogin();
|
|
3644
3607
|
singpassTabRef.current = window.open(authUrl);
|
|
3645
|
-
|
|
3608
|
+
singpassTabRef.current?.focus();
|
|
3646
3609
|
} catch (e) {
|
|
3647
3610
|
logger.error(e);
|
|
3648
3611
|
if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
|
|
3649
3612
|
}
|
|
3650
3613
|
},
|
|
3651
3614
|
onMessage: async ({ data: { isSuccessful } }) => {
|
|
3652
|
-
var _a2;
|
|
3653
3615
|
if (isSuccessful) {
|
|
3654
3616
|
handleSingpassMyInfoLoginSuccess();
|
|
3655
3617
|
await refetchLegalEntity();
|
|
3656
|
-
|
|
3618
|
+
singpassTabRef.current?.close();
|
|
3657
3619
|
} else {
|
|
3658
3620
|
handleSingpassMyInfoLoginFailure(
|
|
3659
3621
|
legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness"
|
|
3660
3622
|
);
|
|
3661
3623
|
}
|
|
3662
3624
|
},
|
|
3663
|
-
legalEntityType: legalEntityResponse
|
|
3625
|
+
legalEntityType: legalEntityResponse?.type
|
|
3664
3626
|
}
|
|
3665
3627
|
) : void 0;
|
|
3666
3628
|
if (isLoadingConfiguration) {
|
|
@@ -3721,7 +3683,7 @@ function DropinComposer({
|
|
|
3721
3683
|
RootIndividualDetailsPage,
|
|
3722
3684
|
{
|
|
3723
3685
|
onSubmit: async (data) => {
|
|
3724
|
-
onSubmit
|
|
3686
|
+
onSubmit?.(data);
|
|
3725
3687
|
await refetchLegalEntity();
|
|
3726
3688
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3727
3689
|
setTargetLegalEntityType(void 0);
|
|
@@ -3746,13 +3708,13 @@ function DropinComposer({
|
|
|
3746
3708
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3747
3709
|
DecisionMakerDetailsPage,
|
|
3748
3710
|
{
|
|
3749
|
-
decisionMakerId: currentDecisionMaker
|
|
3711
|
+
decisionMakerId: currentDecisionMaker?.id,
|
|
3750
3712
|
parentCompanyId: parentId,
|
|
3751
3713
|
onSubmit: handleOnSubmit,
|
|
3752
3714
|
handleHomeClick: navigateBack,
|
|
3753
3715
|
trustedFields: singpassTrustedFields,
|
|
3754
3716
|
trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProvider.SINGPASS : void 0,
|
|
3755
|
-
trustedRoles:
|
|
3717
|
+
trustedRoles: trustedEntityAssociations.find((ea) => ea.reference === currentDecisionMaker?.id)?.types || []
|
|
3756
3718
|
}
|
|
3757
3719
|
) });
|
|
3758
3720
|
case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
|
|
@@ -3773,9 +3735,9 @@ function DropinComposer({
|
|
|
3773
3735
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3774
3736
|
TrustMemberIndividualPage,
|
|
3775
3737
|
{
|
|
3776
|
-
memberId: currentTrustMemberLe
|
|
3738
|
+
memberId: currentTrustMemberLe?.id,
|
|
3777
3739
|
trustId: trust.id,
|
|
3778
|
-
newMember:
|
|
3740
|
+
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3779
3741
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3780
3742
|
handleBackClick: navigateBack,
|
|
3781
3743
|
handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
|
|
@@ -3786,7 +3748,7 @@ function DropinComposer({
|
|
|
3786
3748
|
RootBusinessDetailsPage,
|
|
3787
3749
|
{
|
|
3788
3750
|
onSubmit: async (data) => {
|
|
3789
|
-
onSubmit
|
|
3751
|
+
onSubmit?.(data);
|
|
3790
3752
|
await refetchLegalEntity();
|
|
3791
3753
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3792
3754
|
setTargetLegalEntityType(void 0);
|
|
@@ -3800,8 +3762,8 @@ function DropinComposer({
|
|
|
3800
3762
|
TrustMemberCompanyPage,
|
|
3801
3763
|
{
|
|
3802
3764
|
trustId: trust.id,
|
|
3803
|
-
trustMemberCompanyId: currentTrustMemberLe
|
|
3804
|
-
newMember:
|
|
3765
|
+
trustMemberCompanyId: currentTrustMemberLe?.id,
|
|
3766
|
+
newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
|
|
3805
3767
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3806
3768
|
handleHomeClick: navigateBack,
|
|
3807
3769
|
isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
|
|
@@ -3825,7 +3787,7 @@ function DropinComposer({
|
|
|
3825
3787
|
TrustDetailsPage,
|
|
3826
3788
|
{
|
|
3827
3789
|
taskType: TaskTypes.TRUST,
|
|
3828
|
-
trustId: trust
|
|
3790
|
+
trustId: trust?.id,
|
|
3829
3791
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3830
3792
|
handleHomeClick: navigateBack
|
|
3831
3793
|
}
|
|
@@ -3848,7 +3810,7 @@ function DropinComposer({
|
|
|
3848
3810
|
TrustMemberRoleAndTypePage,
|
|
3849
3811
|
{
|
|
3850
3812
|
trustId: trust.id,
|
|
3851
|
-
memberId: currentTrustMemberLe
|
|
3813
|
+
memberId: currentTrustMemberLe?.id,
|
|
3852
3814
|
navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
|
|
3853
3815
|
navigateBack: async () => {
|
|
3854
3816
|
await refetchTrust();
|
|
@@ -3861,7 +3823,7 @@ function DropinComposer({
|
|
|
3861
3823
|
TrustDetailsPage,
|
|
3862
3824
|
{
|
|
3863
3825
|
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
|
|
3864
|
-
trustId: unincorporatedPartnership
|
|
3826
|
+
trustId: unincorporatedPartnership?.id,
|
|
3865
3827
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3866
3828
|
handleHomeClick: navigateBack
|
|
3867
3829
|
}
|
|
@@ -3873,8 +3835,8 @@ function DropinComposer({
|
|
|
3873
3835
|
navigateBackToTaskList: navigateBack,
|
|
3874
3836
|
navigateToEditMember: (member) => onNavigateToMember({
|
|
3875
3837
|
selectedMember: member,
|
|
3876
|
-
selectedEntityType: member
|
|
3877
|
-
selectedRoles: member
|
|
3838
|
+
selectedEntityType: member?.legalEntityType,
|
|
3839
|
+
selectedRoles: member?.roles,
|
|
3878
3840
|
roleAndType: true
|
|
3879
3841
|
}),
|
|
3880
3842
|
navigateToEditMemberOwner: (memberOwnerId, memberId) => {
|
|
@@ -3892,10 +3854,10 @@ function DropinComposer({
|
|
|
3892
3854
|
UnincorporatedPartnershipMemberCompanyPage,
|
|
3893
3855
|
{
|
|
3894
3856
|
partnershipId: unincorporatedPartnership.id,
|
|
3895
|
-
partnershipMemberCompanyId: unincorporatedPartnershipMember
|
|
3857
|
+
partnershipMemberCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3896
3858
|
newMember: (
|
|
3897
3859
|
// empty string for legalEntityId means it's a new member
|
|
3898
|
-
|
|
3860
|
+
unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0
|
|
3899
3861
|
),
|
|
3900
3862
|
onSubmit: (data) => handleOnSubmit(data, 2),
|
|
3901
3863
|
handleHomeClick: navigateBack,
|
|
@@ -3907,7 +3869,7 @@ function DropinComposer({
|
|
|
3907
3869
|
DecisionMakerDetailsPage,
|
|
3908
3870
|
{
|
|
3909
3871
|
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
|
|
3910
|
-
parentCompanyId: unincorporatedPartnershipMember
|
|
3872
|
+
parentCompanyId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3911
3873
|
decisionMakerId: currentDecisionMakerId,
|
|
3912
3874
|
onSubmit: async (data) => {
|
|
3913
3875
|
await handleOnSubmit(data);
|
|
@@ -3920,7 +3882,7 @@ function DropinComposer({
|
|
|
3920
3882
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3921
3883
|
UnincorporatedPartnershipIndividualPage,
|
|
3922
3884
|
{
|
|
3923
|
-
memberId: unincorporatedPartnershipMember
|
|
3885
|
+
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3924
3886
|
partnershipId: unincorporatedPartnership.id,
|
|
3925
3887
|
member: unincorporatedPartnershipMember,
|
|
3926
3888
|
onSubmit: (data) => {
|
|
@@ -3935,7 +3897,7 @@ function DropinComposer({
|
|
|
3935
3897
|
return /* @__PURE__ */ jsx(
|
|
3936
3898
|
UnincorporatedPartnershipMemberRoleAndTypePage,
|
|
3937
3899
|
{
|
|
3938
|
-
memberId: unincorporatedPartnershipMember
|
|
3900
|
+
memberId: unincorporatedPartnershipMember?.legalEntityId,
|
|
3939
3901
|
onNavigateToMember,
|
|
3940
3902
|
navigateBack: async () => {
|
|
3941
3903
|
await refetchUnincorporatedPartnership();
|
|
@@ -3949,7 +3911,7 @@ function DropinComposer({
|
|
|
3949
3911
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3950
3912
|
SoleProprietorshipPage,
|
|
3951
3913
|
{
|
|
3952
|
-
solePropId: soleProp
|
|
3914
|
+
solePropId: soleProp?.id,
|
|
3953
3915
|
onSubmit: (data) => handleOnSubmit(data, 1),
|
|
3954
3916
|
handleHomeClick: navigateBack,
|
|
3955
3917
|
isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.ORGANIZATION
|
|
@@ -3971,7 +3933,7 @@ function DropinComposer({
|
|
|
3971
3933
|
return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(
|
|
3972
3934
|
LegalRepresentativeDetailsPage,
|
|
3973
3935
|
{
|
|
3974
|
-
legalRepresentativeId: associatedLegalRepresentative
|
|
3936
|
+
legalRepresentativeId: associatedLegalRepresentative?.id,
|
|
3975
3937
|
onSubmit: handleOnSubmit,
|
|
3976
3938
|
handleHomeClick: navigateBack
|
|
3977
3939
|
}
|
|
@@ -3989,7 +3951,7 @@ function DropinComposer({
|
|
|
3989
3951
|
BusinessFinancingPage,
|
|
3990
3952
|
{
|
|
3991
3953
|
onSubmit: async (data) => {
|
|
3992
|
-
onSubmit
|
|
3954
|
+
onSubmit?.(data);
|
|
3993
3955
|
await refetchLegalEntity();
|
|
3994
3956
|
navigateTo(TaskTypes.TASKS_OVERVIEW);
|
|
3995
3957
|
},
|
|
@@ -4023,9 +3985,9 @@ export {
|
|
|
4023
3985
|
EntityGuidanceStatus as E,
|
|
4024
3986
|
OnboardingDropinComponent as O,
|
|
4025
3987
|
useLegalEntityType as a,
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
3988
|
+
allowIndividualWithoutSoleProp as b,
|
|
3989
|
+
useDataMissingRemediations as c,
|
|
3990
|
+
EntityAssociation as d,
|
|
4029
3991
|
useTrustMembers as e,
|
|
4030
3992
|
iconStatus as i,
|
|
4031
3993
|
normalizedTaskStatusStore as n,
|